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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 2 additions & 0 deletions src/sayari/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@
UnprocessableContentResponse,
)
from .shared_types import (
CaseInfo,
CaseStatus,
ClientName,
CompanyType,
Expand Down Expand Up @@ -467,6 +468,7 @@
"BusinessPurposeProperties",
"BusinessPurposeStandard",
"BuyerSearchResponse",
"CaseInfo",
"CaseStatus",
"ClientName",
"CompanyStatus",
Expand Down
2 changes: 1 addition & 1 deletion src/sayari/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion src/sayari/project_entity/types/project_entities_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class ProjectEntitiesResponse(UniversalBaseModel):
TradeCounts,
UpstreamInfo,
)
from sayari.shared_types import CaseInfo

ProjectEntitiesResponse(
limit=20,
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/sayari/project_entity/types/project_entity_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class SingleProjectEntityResponse(UniversalBaseModel):
TradeCounts,
UpstreamInfo,
)
from sayari.shared_types import CaseInfo

SingleProjectEntityResponse(
data=ProjectEntityResponse(
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/sayari/shared_types/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

from .types import (
CaseInfo,
CaseStatus,
ClientName,
CompanyType,
Expand Down Expand Up @@ -42,6 +43,7 @@
)

__all__ = [
"CaseInfo",
"CaseStatus",
"ClientName",
"CompanyType",
Expand Down
2 changes: 2 additions & 0 deletions src/sayari/shared_types/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 .case_info import CaseInfo
from .case_status import CaseStatus
from .client_name import ClientName
from .company_type import CompanyType
Expand Down Expand Up @@ -40,6 +41,7 @@
from .status import Status

__all__ = [
"CaseInfo",
"CaseStatus",
"ClientName",
"CompanyType",
Expand Down
23 changes: 23 additions & 0 deletions src/sayari/shared_types/types/case_info.py
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/sayari/shared_types/types/possibly_same_as.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class PossiblySameAs(PaginatedResponse):
"""
List of entities that are Possibly the Same As (PSA) the entity.
<Warning>This property is deprecated.</Warning> List of entities that are Possibly the Same As (PSA) the entity.
"""

offset: typing.Optional[int] = None
Expand Down