Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
710 changes: 399 additions & 311 deletions reference.md

Large diffs are not rendered by default.

59 changes: 46 additions & 13 deletions src/sayari/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
search,
shared_errors,
shared_types,
source,
supply_chain,
trade,
traversal,
)
from .attributes import AddAttribute, AttributeProperties, AttributeResponse, AttributeResponseData, UpdateAttribute
from .auth import AuthResponse
from .auth import Audience, AuthResponse
from .base_types import CountQualifier, CustomFieldValue, PaginatedResponse, QualifiedCount
from .client import AsyncSayari, Sayari
from .entity import EntitySummaryResponse, GetEntityResponse
Expand Down Expand Up @@ -202,7 +201,6 @@
ProjectCounts,
ProjectEntitiesAggs,
ProjectEntitiesAggsDefinition,
ProjectEntitiesFilter,
ProjectEntity,
ProjectEntityUpstream,
ProjectShareOnCreate,
Expand All @@ -225,26 +223,34 @@
AttributeValues,
AttributesResponse,
BusinessPurpose,
CaseStatus,
CountType,
CreateResolvedProjectEntityRequest,
FacetBucket,
FacetsResponse,
FieldMatchQuality,
GroupedAttribute,
GroupedAttributeValue,
Location,
MatchCount,
MatchProfileEnum,
MatchStrengthEnum,
MatchedAttributes,
ProductBucket,
ProductCount,
ProductMapping,
ProjectEntitiesCustomFieldFilter,
ProjectEntitiesExactFilter,
ProjectEntitiesFilter,
ProjectEntitiesFuzzyFilter,
ProjectEntitiesResponse,
ProjectEntityExistsResponseData,
ProjectEntityIdResponse,
ProjectEntityMatchExplanation,
ProjectEntityMatchResponse,
ProjectEntityResponse,
ProjectEntityRiskSummaryData,
ProjectEntityRiskSummaryFilters,
ProjectEntityRiskSummaryNetworkPath,
ProjectEntityRiskSummaryResponse,
ProjectEntityRiskSummaryResponseFilters,
ProjectEntityRiskSummaryRiskFactor,
ProjectEntitySupplyChainSummaryResponse,
ProjectEntitySupplyChainSummaryResponseData,
ProjectEntitySupplyChainUpstream,
Expand All @@ -254,6 +260,7 @@
ResolutionProfile,
RiskCategoriesSummary,
SaveProjectEntityBody,
ShareInformation,
SingleProjectEntityResponse,
SourceField,
SpecialFacetBucket,
Expand All @@ -268,6 +275,12 @@
UpstreamInfo,
)
from .project_entity_attributes import (
CreateProjectEntityAttributeRequest,
CreateProjectEntityAttributeResponse,
CreateProjectEntityAttributeResponseData,
ProjectEntityAttribute,
ProjectEntityAttributeValue,
ProjectEntityAttributesResponse,
UpdateProjectEntityAttributeRequest,
UpdateProjectEntityAttributeResponse,
UpdateProjectEntityAttributeResponseData,
Expand Down Expand Up @@ -327,8 +340,11 @@
RateLimitResponse,
Unauthorized,
UnauthorizedResponse,
UnprocessableContent,
UnprocessableContentResponse,
)
from .shared_types import (
CaseStatus,
ClientName,
CompanyType,
Coordinate,
Expand All @@ -343,6 +359,8 @@
EntitySummary,
EntityTranslatedLabel,
Identifier,
MatchCount,
MatchStrengthEnum,
PossiblySameAs,
PossiblySameAsData,
PossiblySameAsMatch,
Expand All @@ -365,7 +383,6 @@
SourceCountInfo,
Status,
)
from .source import GetSourceResponse, ListSourcesResponse, Source
from .supply_chain import (
TradeTraversalComponent,
TradeTraversalData,
Expand Down Expand Up @@ -427,6 +444,7 @@
"AttributeValues",
"Attributes",
"AttributesResponse",
"Audience",
"AuthResponse",
"BadGateway",
"BadGatewayResponse",
Expand Down Expand Up @@ -463,6 +481,9 @@
"CountryData",
"CountryInfo",
"CountryProperties",
"CreateProjectEntityAttributeRequest",
"CreateProjectEntityAttributeResponse",
"CreateProjectEntityAttributeResponseData",
"CreateProjectEntitySupplyChainSnapshotRequest",
"CreateProjectEntitySupplyChainSnapshotResponse",
"CreateProjectRequest",
Expand Down Expand Up @@ -493,6 +514,7 @@
"EventInfo",
"FacetBucket",
"FacetsResponse",
"FieldMatchQuality",
"FilterList",
"FinanceType",
"FinancesData",
Expand Down Expand Up @@ -528,7 +550,6 @@
"GetProjectEntitiesResponse",
"GetProjectsResponse",
"GetRecordResponse",
"GetSourceResponse",
"GroupedAttribute",
"GroupedAttributeValue",
"HistoryInfo",
Expand All @@ -544,15 +565,13 @@
"InternalServerError",
"InternalServerErrorResponse",
"Language",
"ListSourcesResponse",
"Location",
"MatchCount",
"MatchExplanation",
"MatchProfileEnum",
"MatchQuality",
"MatchStrength",
"MatchStrengthEnum",
"MatchedAttributes",
"MeasurementData",
"MeasurementInfo",
"MeasurementProperties",
Expand Down Expand Up @@ -625,13 +644,26 @@
"ProjectCounts",
"ProjectEntitiesAggs",
"ProjectEntitiesAggsDefinition",
"ProjectEntitiesCustomFieldFilter",
"ProjectEntitiesExactFilter",
"ProjectEntitiesFilter",
"ProjectEntitiesFuzzyFilter",
"ProjectEntitiesResponse",
"ProjectEntity",
"ProjectEntityAttribute",
"ProjectEntityAttributeValue",
"ProjectEntityAttributesResponse",
"ProjectEntityExistsResponseData",
"ProjectEntityIdResponse",
"ProjectEntityMatchExplanation",
"ProjectEntityMatchResponse",
"ProjectEntityResponse",
"ProjectEntityRiskSummaryData",
"ProjectEntityRiskSummaryFilters",
"ProjectEntityRiskSummaryNetworkPath",
"ProjectEntityRiskSummaryResponse",
"ProjectEntityRiskSummaryResponseFilters",
"ProjectEntityRiskSummaryRiskFactor",
"ProjectEntitySupplyChainSnapshotByIdResponse",
"ProjectEntitySupplyChainSnapshotData",
"ProjectEntitySupplyChainSnapshotDetailData",
Expand Down Expand Up @@ -699,6 +731,7 @@
"SayariEnvironment",
"SearchField",
"SearchResults",
"ShareInformation",
"SharesData",
"SharesInfo",
"SharesProperties",
Expand All @@ -714,7 +747,6 @@
"ShortestPathResponse",
"SingleProjectEntityResponse",
"SortField",
"Source",
"SourceCountInfo",
"SourceField",
"SourceId",
Expand Down Expand Up @@ -760,6 +792,8 @@
"Unauthorized",
"UnauthorizedResponse",
"Unit",
"UnprocessableContent",
"UnprocessableContentResponse",
"UpdateAttribute",
"UpdateEntityTagsResponse",
"UpdateProjectEntityAttributeRequest",
Expand Down Expand Up @@ -799,7 +833,6 @@
"search",
"shared_errors",
"shared_types",
"source",
"supply_chain",
"trade",
"traversal",
Expand Down
4 changes: 2 additions & 2 deletions src/sayari/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

from .types import AuthResponse
from .types import Audience, AuthResponse

__all__ = ["AuthResponse"]
__all__ = ["Audience", "AuthResponse"]
3 changes: 2 additions & 1 deletion src/sayari/auth/types/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This file was auto-generated by Fern from our API Definition.

from .audience import Audience
from .auth_response import AuthResponse

__all__ = ["AuthResponse"]
__all__ = ["Audience", "AuthResponse"]
5 changes: 5 additions & 0 deletions src/sayari/auth/types/audience.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

Audience = typing.Union[typing.Literal["sayari.com", "uk.sayari.com"], typing.Any]
4 changes: 0 additions & 4 deletions src/sayari/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from .resolution.client import ResolutionClient
from .resource.client import ResourceClient
from .search.client import SearchClient
from .source.client import SourceClient
from .supply_chain.client import SupplyChainClient
from .trade.client import TradeClient
from .traversal.client import TraversalClient
Expand All @@ -42,7 +41,6 @@
from .resolution.client import AsyncResolutionClient
from .resource.client import AsyncResourceClient
from .search.client import AsyncSearchClient
from .source.client import AsyncSourceClient
from .supply_chain.client import AsyncSupplyChainClient
from .trade.client import AsyncTradeClient
from .traversal.client import AsyncTraversalClient
Expand Down Expand Up @@ -140,7 +138,6 @@ def __init__(
self.resolution = ResolutionClient(client_wrapper=self._client_wrapper)
self.resource = ResourceClient(client_wrapper=self._client_wrapper)
self.search = SearchClient(client_wrapper=self._client_wrapper)
self.source = SourceClient(client_wrapper=self._client_wrapper)
self.supply_chain = SupplyChainClient(client_wrapper=self._client_wrapper)
self.trade = TradeClient(client_wrapper=self._client_wrapper)
self.traversal = TraversalClient(client_wrapper=self._client_wrapper)
Expand Down Expand Up @@ -238,7 +235,6 @@ def __init__(
self.resolution = AsyncResolutionClient(client_wrapper=self._client_wrapper)
self.resource = AsyncResourceClient(client_wrapper=self._client_wrapper)
self.search = AsyncSearchClient(client_wrapper=self._client_wrapper)
self.source = AsyncSourceClient(client_wrapper=self._client_wrapper)
self.supply_chain = AsyncSupplyChainClient(client_wrapper=self._client_wrapper)
self.trade = AsyncTradeClient(client_wrapper=self._client_wrapper)
self.traversal = AsyncTraversalClient(client_wrapper=self._client_wrapper)
Expand Down
5 changes: 5 additions & 0 deletions src/sayari/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ class SayariEnvironment(enum.Enum):
"""
Sayari development - utilized for internal testing before promotion to production
"""

PRODUCTION_UK = "https://api.uk.sayari.com"
"""
Sayari production - UK environment
"""
11 changes: 11 additions & 0 deletions src/sayari/generated_types/types/identifier_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"bih_mbs_number",
"bill_of_lading",
"bitcoin_address",
"blr_passport",
"blr_registration_number",
"blz_bccar_reg_no",
"bmu_registrar_of_companies_number",
Expand Down Expand Up @@ -108,6 +109,7 @@
"can_tm_registration_no",
"ccamlr_rfmo_id",
"ccs_registration",
"ccsbt_rfmo_id",
"che_ch_id_number",
"che_seco_sanction_number",
"che_uid_number",
Expand Down Expand Up @@ -211,6 +213,7 @@
"fl_prop_folio",
"fl_prop_folio_dade",
"fra_asset_freeze_id",
"fra_passport",
"fra_rna",
"fra_siren",
"fra_siret",
Expand Down Expand Up @@ -257,6 +260,7 @@
"hun_tax_number",
"iattc_rfmo_id",
"iban",
"iccat_rfmo_id",
"icij_offshore_internal_id",
"icij_offshore_node_id",
"idn_nik_id",
Expand Down Expand Up @@ -306,6 +310,7 @@
"isr_association_number",
"isr_company_number",
"isr_national_id",
"isr_passport",
"isr_pbc_number",
"ita_fiscal_code",
"ita_rea_number",
Expand Down Expand Up @@ -372,6 +377,7 @@
"mex_shipment_number",
"mex_tm_no",
"mex_yucatan_folio",
"mh_reg_id",
"mkd_archive_number",
"mkd_embs_branch_number",
"mkd_embs_number",
Expand Down Expand Up @@ -429,6 +435,7 @@
"omn_passport",
"on_business_id_number",
"ontario_corporation_number",
"open_sanctions_internal_id",
"pak_co_ntn",
"pak_egm_id",
"pak_ind_ntn",
Expand Down Expand Up @@ -503,6 +510,7 @@
"sgp_passport",
"sgp_unqiue_entity_number",
"siger_internal_id",
"slb_reg_id",
"slv_commercial_reg_number",
"slv_mcas",
"slv_numero_identificacion_tributaria",
Expand Down Expand Up @@ -560,13 +568,15 @@
"tza_brela_reg_num",
"tza_tansad_number",
"tza_tin",
"uga_tin",
"uk_company_number",
"uk_firm_reference_number",
"uk_passport",
"uk_person_number",
"uk_title_number",
"ukr_fiu_list_number",
"ukr_moj_id",
"ukr_passport",
"ukr_reg_num",
"ukr_sanctions_nazk_company_internal_id",
"ukr_sanctions_nazk_person_internal_id",
Expand Down Expand Up @@ -688,6 +698,7 @@
"vnm_enterprise_code",
"vnm_person_id_no",
"vut_corp_reg_number",
"wcpfc_rfmo_id",
"wipo_intl_ref_no",
"wipo_intl_reg_no",
"xxx_acuris_id",
Expand Down
4 changes: 3 additions & 1 deletion src/sayari/generated_types/types/measurement_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

import typing

MeasurementType = typing.Union[typing.Literal["gross_weight", "net_weight", "quantity"], typing.Any]
MeasurementType = typing.Union[
typing.Literal["built_area", "gross_weight", "land_area", "net_weight", "quantity"], typing.Any
]
Loading