From 79b669a5e1295eea1204ebeb7b2719e00b1ca83e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 6 Nov 2025 18:08:50 +0000 Subject: [PATCH] SDK regeneration --- pyproject.toml | 2 +- src/sayari/__init__.py | 2 ++ src/sayari/core/client_wrapper.py | 2 +- .../generated_types/types/identifier_type.py | 7 ++++++ src/sayari/generated_types/types/risk.py | 17 ++++++++++++++ .../types/weak_identifier_type.py | 2 ++ .../types/project_entities_response.py | 7 +++++- .../types/project_entity_response.py | 4 ++-- .../types/single_project_entity_response.py | 7 +++++- src/sayari/shared_types/__init__.py | 2 ++ src/sayari/shared_types/types/__init__.py | 2 ++ src/sayari/shared_types/types/case_info.py | 23 +++++++++++++++++++ .../shared_types/types/possibly_same_as.py | 2 +- 13 files changed, 72 insertions(+), 7 deletions(-) create mode 100644 src/sayari/shared_types/types/case_info.py diff --git a/pyproject.toml b/pyproject.toml index c9f17861..f9299f31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "sayari" [tool.poetry] name = "sayari" -version = "0.1.43" +version = "0.1.44" description = "A Python SDK for Sayari" readme = "README.md" authors = [ diff --git a/src/sayari/__init__.py b/src/sayari/__init__.py index d73b5232..f69f70fd 100644 --- a/src/sayari/__init__.py +++ b/src/sayari/__init__.py @@ -353,6 +353,7 @@ UnprocessableContentResponse, ) from .shared_types import ( + CaseInfo, CaseStatus, ClientName, CompanyType, @@ -467,6 +468,7 @@ "BusinessPurposeProperties", "BusinessPurposeStandard", "BuyerSearchResponse", + "CaseInfo", "CaseStatus", "ClientName", "CompanyStatus", diff --git a/src/sayari/core/client_wrapper.py b/src/sayari/core/client_wrapper.py index f5ae1103..b2e88806 100644 --- a/src/sayari/core/client_wrapper.py +++ b/src/sayari/core/client_wrapper.py @@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "sayari", - "X-Fern-SDK-Version": "0.1.43", + "X-Fern-SDK-Version": "0.1.44", } token = self._get_token() if token is not None: diff --git a/src/sayari/generated_types/types/identifier_type.py b/src/sayari/generated_types/types/identifier_type.py index defba80a..bde8faac 100644 --- a/src/sayari/generated_types/types/identifier_type.py +++ b/src/sayari/generated_types/types/identifier_type.py @@ -44,6 +44,7 @@ "aus_credit_licence_number", "aus_credit_rep_number", "aus_passport", + "aus_trademark_reg_no", "aut_firmenbuch_no", "aut_uid", "aze_tin_number", @@ -287,8 +288,10 @@ "ind_passport", "ind_permanent_account_number", "ind_society_registration_number", + "ind_techsalerator_id", "ind_tin", "ind_trademark_submission_ref", + "ind_udyam", "int_maritime_org_id", "internal_curated_merge_id", "internal_curated_split_id", @@ -328,6 +331,7 @@ "jpn_edinet_code", "jpn_trade_internal_shipment_id", "kaz_bin", + "kaz_business_identification_number", "kaz_identifier", "kaz_okpo_num", "kaz_state_reg_num", @@ -545,6 +549,8 @@ "tjk_ein_number", "tjk_tin_number", "tokyo_stock_exchange_no", + "ton_reg_id", + "ton_tax_id", "tto_biz_number", "tun_passport", "tur_id", @@ -701,6 +707,7 @@ "wcpfc_rfmo_id", "wipo_intl_ref_no", "wipo_intl_reg_no", + "wsm_reg_id", "xxx_acuris_id", "xxx_cedar_rose_uid", "xxx_crb_monitor_entity_id", diff --git a/src/sayari/generated_types/types/risk.py b/src/sayari/generated_types/types/risk.py index 46dcb8d2..363053bb 100644 --- a/src/sayari/generated_types/types/risk.py +++ b/src/sayari/generated_types/types/risk.py @@ -8,6 +8,7 @@ "aspi_uyghur_forced_labor_report_entity_adjacent", "basel_aml", "bis_addresses_high_diversion_risk", + "bis_affiliates_50_percent_rule", "bis_boycott_requester_list", "chinese_soe_adjacent", "chinese_state_owned", @@ -40,12 +41,15 @@ "export_controls_bis_entity_50_percent_rule", "export_controls_bis_meu", "export_controls_bis_meu_50_percent_rule", + "export_controls_other", + "export_controls_other_adjacent", "export_controls_section_1260h", "export_controls_section_1260h_50_percent_rule", "export_controls_unverified_list", "export_controls_unverified_list_50_percent_rule", "export_to_chinese_soe", "export_to_sanctioned", + "export_to_sanctioned_other", "export_to_soe", "exports_bis_high_priority_items_critical_components_direct", "exports_bis_high_priority_items_critical_components_indirect", @@ -202,6 +206,7 @@ "owned_by_chinese_soe", "owned_by_cmic_entity", "owned_by_entity_in_export_controls", + "owned_by_entity_in_export_controls_other", "owned_by_forced_labor_xinjiang_uflpa", "owned_by_jpn_meti_end_user_entity", "owned_by_jpn_mofa_export_ban_entity", @@ -233,6 +238,7 @@ "owned_by_sanctioned_mys_moha_entity", "owned_by_sanctioned_nld_mofa_entity", "owned_by_sanctioned_nzl_mfat_rus_entity", + "owned_by_sanctioned_other_entity", "owned_by_sanctioned_pol_mia_entity", "owned_by_sanctioned_sgp_agc_entity", "owned_by_sanctioned_ukr_nsdc_entity", @@ -257,6 +263,7 @@ "owner_of_aspi_forced_labor_entity", "owner_of_chinese_soe", "owner_of_export_controls_entity", + "owner_of_export_controls_other_entity", "owner_of_forced_labor_xinjiang_entity", "owner_of_forced_labor_xinjiang_uflpa", "owner_of_jpn_meti_end_user_entity", @@ -289,6 +296,7 @@ "owner_of_sanctioned_mys_moha_entity", "owner_of_sanctioned_nld_mofa_entity", "owner_of_sanctioned_nzl_mfat_rus_entity", + "owner_of_sanctioned_other_entity", "owner_of_sanctioned_pol_mia_entity", "owner_of_sanctioned_sgp_agc_entity", "owner_of_sanctioned_ukr_nsdc_entity", @@ -319,10 +327,12 @@ "psa_export_controls", "psa_export_controls_bis_entity_50_percent_rule", "psa_export_controls_bis_meu_50_percent_rule", + "psa_export_controls_other", "psa_export_controls_section_1260h_50_percent_rule", "psa_export_controls_unverified_list_50_percent_rule", "psa_export_to_chinese_soe", "psa_export_to_sanctioned", + "psa_export_to_sanctioned_other", "psa_export_to_soe", "psa_exports_bis_high_priority_items_critical_components_direct", "psa_exports_bis_high_priority_items_critical_components_indirect", @@ -429,6 +439,7 @@ "psa_owned_by_chinese_soe", "psa_owned_by_cmic_entity", "psa_owned_by_entity_in_export_controls", + "psa_owned_by_entity_in_export_controls_other", "psa_owned_by_forced_labor_xinjiang_uflpa", "psa_owned_by_jpn_meti_end_user_entity", "psa_owned_by_jpn_mofa_export_ban_entity", @@ -460,6 +471,7 @@ "psa_owned_by_sanctioned_mys_moha_entity", "psa_owned_by_sanctioned_nld_mofa_entity", "psa_owned_by_sanctioned_nzl_mfat_rus_entity", + "psa_owned_by_sanctioned_other_entity", "psa_owned_by_sanctioned_pol_mia_entity", "psa_owned_by_sanctioned_sgp_agc_entity", "psa_owned_by_sanctioned_ukr_nsdc_entity", @@ -484,6 +496,7 @@ "psa_owner_of_aspi_forced_labor_entity", "psa_owner_of_chinese_soe", "psa_owner_of_export_controls_entity", + "psa_owner_of_export_controls_other_entity", "psa_owner_of_forced_labor_xinjiang_entity", "psa_owner_of_forced_labor_xinjiang_uflpa", "psa_owner_of_jpn_meti_end_user_entity", @@ -516,6 +529,7 @@ "psa_owner_of_sanctioned_mys_moha_entity", "psa_owner_of_sanctioned_nld_mofa_entity", "psa_owner_of_sanctioned_nzl_mfat_rus_entity", + "psa_owner_of_sanctioned_other_entity", "psa_owner_of_sanctioned_pol_mia_entity", "psa_owner_of_sanctioned_sgp_agc_entity", "psa_owner_of_sanctioned_ukr_nsdc_entity", @@ -558,6 +572,7 @@ "psa_sanctioned_mys_moha", "psa_sanctioned_nld_mofa", "psa_sanctioned_nzl_mfat_rus", + "psa_sanctioned_other", "psa_sanctioned_pol_mia", "psa_sanctioned_sgp_agc", "psa_sanctioned_ukr_nsdc", @@ -616,6 +631,8 @@ "sanctioned_mys_moha", "sanctioned_nld_mofa", "sanctioned_nzl_mfat_rus", + "sanctioned_other", + "sanctioned_other_adjacent", "sanctioned_pol_mia", "sanctioned_sgp_agc", "sanctioned_ukr_nsdc", diff --git a/src/sayari/generated_types/types/weak_identifier_type.py b/src/sayari/generated_types/types/weak_identifier_type.py index efdfc676..f5b9dd81 100644 --- a/src/sayari/generated_types/types/weak_identifier_type.py +++ b/src/sayari/generated_types/types/weak_identifier_type.py @@ -54,6 +54,7 @@ "ind_sebi", "ind_shipment_bill_id", "int_trade_internal_shipment_id", + "international_trademark_no", "irl_registration_no", "irn_reg_number", "irq_provision_card", @@ -129,6 +130,7 @@ "south_africa_partial_id_number", "svk_filing_number", "tokyo_shoko_id", + "ton_foreign_investor_id", "tur_declaration_number", "tur_office_registration_number", "tur_partial_mersis_number", diff --git a/src/sayari/project_entity/types/project_entities_response.py b/src/sayari/project_entity/types/project_entities_response.py index 942590db..300c2a31 100644 --- a/src/sayari/project_entity/types/project_entities_response.py +++ b/src/sayari/project_entity/types/project_entities_response.py @@ -27,6 +27,7 @@ class ProjectEntitiesResponse(UniversalBaseModel): TradeCounts, UpstreamInfo, ) + from sayari.shared_types import CaseInfo ProjectEntitiesResponse( limit=20, @@ -138,7 +139,11 @@ class ProjectEntitiesResponse(UniversalBaseModel): products=[], ), tags=[], - case="not_assigned", + case=CaseInfo( + id="YZB88Y", + status="not_assigned", + created_at="2025-10-02", + ), matches=[ ProjectEntityMatchResponse( match_id="52z4Wa:dy-rh2g0QtzUN_jC_e9S_A", diff --git a/src/sayari/project_entity/types/project_entity_response.py b/src/sayari/project_entity/types/project_entity_response.py index dbd976cf..e96b3c93 100644 --- a/src/sayari/project_entity/types/project_entity_response.py +++ b/src/sayari/project_entity/types/project_entity_response.py @@ -8,7 +8,7 @@ from .project_risk_factor import ProjectRiskFactor from .upstream_info import UpstreamInfo from .tag_response import TagResponse -from ...shared_types.types.case_status import CaseStatus +from ...shared_types.types.case_info import CaseInfo from .project_entity_match_response import ProjectEntityMatchResponse from ...core.pydantic_utilities import IS_PYDANTIC_V2 import pydantic @@ -27,7 +27,7 @@ class ProjectEntityResponse(UniversalBaseModel): risk_factors: typing.List[ProjectRiskFactor] upstream: UpstreamInfo tags: typing.List[TagResponse] - case: typing.Optional[CaseStatus] = None + case: typing.Optional[CaseInfo] = None matches: typing.List[ProjectEntityMatchResponse] updated_at: typing.Optional[str] = None diff --git a/src/sayari/project_entity/types/single_project_entity_response.py b/src/sayari/project_entity/types/single_project_entity_response.py index 1f9373e5..3f9ee0b8 100644 --- a/src/sayari/project_entity/types/single_project_entity_response.py +++ b/src/sayari/project_entity/types/single_project_entity_response.py @@ -25,6 +25,7 @@ class SingleProjectEntityResponse(UniversalBaseModel): TradeCounts, UpstreamInfo, ) + from sayari.shared_types import CaseInfo SingleProjectEntityResponse( data=ProjectEntityResponse( @@ -134,7 +135,11 @@ class SingleProjectEntityResponse(UniversalBaseModel): products=[], ), tags=[], - case="not_assigned", + case=CaseInfo( + id="YVB88Y", + status="not_assigned", + created_at="2025-10-02", + ), matches=[ ProjectEntityMatchResponse( match_id="52z4Wa:dy-rh2g0QtzUN_jC_e9S_A", diff --git a/src/sayari/shared_types/__init__.py b/src/sayari/shared_types/__init__.py index 1a2063e3..955bbad2 100644 --- a/src/sayari/shared_types/__init__.py +++ b/src/sayari/shared_types/__init__.py @@ -1,6 +1,7 @@ # This file was auto-generated by Fern from our API Definition. from .types import ( + CaseInfo, CaseStatus, ClientName, CompanyType, @@ -42,6 +43,7 @@ ) __all__ = [ + "CaseInfo", "CaseStatus", "ClientName", "CompanyType", diff --git a/src/sayari/shared_types/types/__init__.py b/src/sayari/shared_types/types/__init__.py index f93f2ae6..9ae0f709 100644 --- a/src/sayari/shared_types/types/__init__.py +++ b/src/sayari/shared_types/types/__init__.py @@ -1,5 +1,6 @@ # This file was auto-generated by Fern from our API Definition. +from .case_info import CaseInfo from .case_status import CaseStatus from .client_name import ClientName from .company_type import CompanyType @@ -40,6 +41,7 @@ from .status import Status __all__ = [ + "CaseInfo", "CaseStatus", "ClientName", "CompanyType", diff --git a/src/sayari/shared_types/types/case_info.py b/src/sayari/shared_types/types/case_info.py new file mode 100644 index 00000000..fef5a6dc --- /dev/null +++ b/src/sayari/shared_types/types/case_info.py @@ -0,0 +1,23 @@ +# This file was auto-generated by Fern from our API Definition. + +from ...core.pydantic_utilities import UniversalBaseModel +from .case_status import CaseStatus +import typing +from ...core.pydantic_utilities import IS_PYDANTIC_V2 +import pydantic + + +class CaseInfo(UniversalBaseModel): + id: str + status: CaseStatus + created_at: str + comment: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/sayari/shared_types/types/possibly_same_as.py b/src/sayari/shared_types/types/possibly_same_as.py index 501c0ed3..e1b975d3 100644 --- a/src/sayari/shared_types/types/possibly_same_as.py +++ b/src/sayari/shared_types/types/possibly_same_as.py @@ -9,7 +9,7 @@ class PossiblySameAs(PaginatedResponse): """ - List of entities that are Possibly the Same As (PSA) the entity. + This property is deprecated. List of entities that are Possibly the Same As (PSA) the entity. """ offset: typing.Optional[int] = None