Skip to content

Commit ef36915

Browse files
committed
[fern-generated] Update SDK
Generated by Fern CLI Version: 0.66.25 Generators: - fernapi/fern-python-sdk: 4.3.18
1 parent 15a726d commit ef36915

17 files changed

Lines changed: 202 additions & 135 deletions

.fern/replay.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.fernignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ Makefile
66
README.md
77
src/sayari/client.py
88
tests/custom/test_sdk.py
9+
.fern/replay.lock
10+
.fern/replay.yml
11+
.gitattributes

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.fern/replay.lock linguist-generated=true

poetry.lock

Lines changed: 58 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ client.info.get_history()
10591059
<dl>
10601060
<dd>
10611061

1062-
Get metadta about the api, both its versions, which releases are present, and the identity of the authenticated user.
1062+
Get metadata about the api, both its versions, which releases are present, and the identity of the authenticated user.
10631063
</dd>
10641064
</dl>
10651065
</dd>
@@ -3396,7 +3396,10 @@ The resolution endpoints allow users to search for matching entities against a p
33963396

33973397
```python
33983398
from sayari import Sayari
3399-
from sayari.project_entity import CreateResolvedProjectEntityRequest
3399+
from sayari.project_entity import (
3400+
CreateResolvedProjectEntityRequest,
3401+
ResolutionAttrSchema,
3402+
)
34003403

34013404
client = Sayari(
34023405
client_id="YOUR_CLIENT_ID",
@@ -3405,11 +3408,15 @@ client = Sayari(
34053408
client.project_entity.create_project_entity(
34063409
project_id="0n4473",
34073410
request=CreateResolvedProjectEntityRequest(
3408-
name=["Marvel Garment"],
3409-
country=["KHM"],
3410-
address=[
3411-
"Beung Thom 3 Village, Sangkat Beung Thom, Posenchey, Phnom Penh"
3412-
],
3411+
limit=25,
3412+
profile="suppliers",
3413+
attributes=ResolutionAttrSchema(
3414+
name=["Marvel Garment"],
3415+
country=["KHM"],
3416+
address=[
3417+
"Beung Thom 3 Village, Sangkat Beung Thom, Posenchey, Phnom Penh"
3418+
],
3419+
),
34133420
),
34143421
)
34153422

@@ -4069,7 +4076,7 @@ Checks if a project entity with the given attributes already exists.
40694076

40704077
```python
40714078
from sayari import Sayari
4072-
from sayari.project_entity import ResolutionAttributes
4079+
from sayari.project_entity import ResolutionAttributes, ResolutionAttrSchema
40734080

40744081
client = Sayari(
40754082
client_id="YOUR_CLIENT_ID",
@@ -4078,8 +4085,10 @@ client = Sayari(
40784085
client.project_entity.project_entity_exists(
40794086
project_id="YVB88Y",
40804087
request=ResolutionAttributes(
4081-
name=["Example Company"],
4082-
country=["USA"],
4088+
attributes=ResolutionAttrSchema(
4089+
name=["Example Company"],
4090+
country=["USA"],
4091+
),
40834092
),
40844093
)
40854094

@@ -4153,7 +4162,7 @@ Stores a project entity given entity IDs and a list of attributes.
41534162

41544163
```python
41554164
from sayari import Sayari
4156-
from sayari.project_entity import ResolutionAttributes, SaveProjectEntityBody
4165+
from sayari.project_entity import ResolutionAttrSchema, SaveProjectEntityBody
41574166

41584167
client = Sayari(
41594168
client_id="YOUR_CLIENT_ID",
@@ -4163,7 +4172,7 @@ client.project_entity.save_project_entity(
41634172
project_id="YVB88Y",
41644173
request=SaveProjectEntityBody(
41654174
entity_ids=["entity_id_1", "entity_id_2"],
4166-
attributes=ResolutionAttributes(
4175+
attributes=ResolutionAttrSchema(
41674176
name=["Example Company"],
41684177
country=["USA"],
41694178
),
@@ -5711,7 +5720,7 @@ client.resolution.resolution(
57115720
<dl>
57125721
<dd>
57135722

5714-
**enable_llm_clean:** `typing.Optional[bool]` — Whether to enable LLM-based data cleaning to remove noise and standardize entity attributes. Defaults to true if not supplied. Set to false to disable LLM cleaning.
5723+
**enable_llm_clean:** `typing.Optional[bool]` — Whether to enable LLM-based data cleaning to remove noise and standardize entity attributes. Defaults to false if not supplied. Set to true to enable LLM cleaning.
57155724

57165725
</dd>
57175726
</dl>

src/sayari/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@
262262
ProjectRiskChangesResponse,
263263
ProjectRiskChangesResponseData,
264264
ProjectRiskFactor,
265+
ResolutionAttrSchema,
265266
ResolutionAttributes,
266267
ResolutionProfile,
267268
RiskCategoriesSummary,
@@ -717,6 +718,7 @@
717718
"RelationshipInfo",
718719
"Relationships",
719720
"ReportingPeriodType",
721+
"ResolutionAttrSchema",
720722
"ResolutionAttributes",
721723
"ResolutionBody",
722724
"ResolutionPersistedResponse",

src/sayari/metadata/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
2424

2525
def metadata(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetadataResponse:
2626
"""
27-
Get metadta about the api, both its versions, which releases are present, and the identity of the authenticated user.
27+
Get metadata about the api, both its versions, which releases are present, and the identity of the authenticated user.
2828
2929
Parameters
3030
----------
@@ -112,7 +112,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
112112

113113
async def metadata(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetadataResponse:
114114
"""
115-
Get metadta about the api, both its versions, which releases are present, and the identity of the authenticated user.
115+
Get metadata about the api, both its versions, which releases are present, and the identity of the authenticated user.
116116
117117
Parameters
118118
----------

src/sayari/project_entity/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
ProjectRiskChangesResponse,
4646
ProjectRiskChangesResponseData,
4747
ProjectRiskFactor,
48+
ResolutionAttrSchema,
4849
ResolutionAttributes,
4950
ResolutionProfile,
5051
RiskCategoriesSummary,
@@ -115,6 +116,7 @@
115116
"ProjectRiskChangesResponse",
116117
"ProjectRiskChangesResponseData",
117118
"ProjectRiskFactor",
119+
"ResolutionAttrSchema",
118120
"ResolutionAttributes",
119121
"ResolutionProfile",
120122
"RiskCategoriesSummary",

src/sayari/project_entity/client.py

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ def create_project_entity(
8080
Examples
8181
--------
8282
from sayari import Sayari
83-
from sayari.project_entity import CreateResolvedProjectEntityRequest
83+
from sayari.project_entity import (
84+
CreateResolvedProjectEntityRequest,
85+
ResolutionAttrSchema,
86+
)
8487
8588
client = Sayari(
8689
client_id="YOUR_CLIENT_ID",
@@ -89,11 +92,14 @@ def create_project_entity(
8992
client.project_entity.create_project_entity(
9093
project_id="YVB88Y",
9194
request=CreateResolvedProjectEntityRequest(
92-
name=["VTB Bank"],
93-
country=["RUS"],
94-
address=["Moscow"],
95-
identifier=["253400V1H6ART1UQ0N98"],
95+
limit=10,
9696
profile="corporate",
97+
attributes=ResolutionAttrSchema(
98+
name=["VTB Bank"],
99+
country=["RUS"],
100+
address=["Moscow"],
101+
identifier=["253400V1H6ART1UQ0N98"],
102+
),
97103
),
98104
)
99105
"""
@@ -933,7 +939,7 @@ def project_entity_exists(
933939
Examples
934940
--------
935941
from sayari import Sayari
936-
from sayari.project_entity import ResolutionAttributes
942+
from sayari.project_entity import ResolutionAttributes, ResolutionAttrSchema
937943
938944
client = Sayari(
939945
client_id="YOUR_CLIENT_ID",
@@ -942,8 +948,10 @@ def project_entity_exists(
942948
client.project_entity.project_entity_exists(
943949
project_id="YVB88Y",
944950
request=ResolutionAttributes(
945-
name=["Example Company"],
946-
country=["USA"],
951+
attributes=ResolutionAttrSchema(
952+
name=["Example Company"],
953+
country=["USA"],
954+
),
947955
),
948956
)
949957
"""
@@ -1056,7 +1064,7 @@ def save_project_entity(
10561064
Examples
10571065
--------
10581066
from sayari import Sayari
1059-
from sayari.project_entity import ResolutionAttributes, SaveProjectEntityBody
1067+
from sayari.project_entity import ResolutionAttrSchema, SaveProjectEntityBody
10601068
10611069
client = Sayari(
10621070
client_id="YOUR_CLIENT_ID",
@@ -1066,7 +1074,7 @@ def save_project_entity(
10661074
project_id="YVB88Y",
10671075
request=SaveProjectEntityBody(
10681076
entity_ids=["entity_id_1", "entity_id_2"],
1069-
attributes=ResolutionAttributes(
1077+
attributes=ResolutionAttrSchema(
10701078
name=["Example Company"],
10711079
country=["USA"],
10721080
),
@@ -2262,7 +2270,10 @@ async def create_project_entity(
22622270
import asyncio
22632271
22642272
from sayari import AsyncSayari
2265-
from sayari.project_entity import CreateResolvedProjectEntityRequest
2273+
from sayari.project_entity import (
2274+
CreateResolvedProjectEntityRequest,
2275+
ResolutionAttrSchema,
2276+
)
22662277
22672278
client = AsyncSayari(
22682279
client_id="YOUR_CLIENT_ID",
@@ -2274,11 +2285,14 @@ async def main() -> None:
22742285
await client.project_entity.create_project_entity(
22752286
project_id="YVB88Y",
22762287
request=CreateResolvedProjectEntityRequest(
2277-
name=["VTB Bank"],
2278-
country=["RUS"],
2279-
address=["Moscow"],
2280-
identifier=["253400V1H6ART1UQ0N98"],
2288+
limit=10,
22812289
profile="corporate",
2290+
attributes=ResolutionAttrSchema(
2291+
name=["VTB Bank"],
2292+
country=["RUS"],
2293+
address=["Moscow"],
2294+
identifier=["253400V1H6ART1UQ0N98"],
2295+
),
22822296
),
22832297
)
22842298
@@ -3171,7 +3185,7 @@ async def project_entity_exists(
31713185
import asyncio
31723186
31733187
from sayari import AsyncSayari
3174-
from sayari.project_entity import ResolutionAttributes
3188+
from sayari.project_entity import ResolutionAttributes, ResolutionAttrSchema
31753189
31763190
client = AsyncSayari(
31773191
client_id="YOUR_CLIENT_ID",
@@ -3183,8 +3197,10 @@ async def main() -> None:
31833197
await client.project_entity.project_entity_exists(
31843198
project_id="YVB88Y",
31853199
request=ResolutionAttributes(
3186-
name=["Example Company"],
3187-
country=["USA"],
3200+
attributes=ResolutionAttrSchema(
3201+
name=["Example Company"],
3202+
country=["USA"],
3203+
),
31883204
),
31893205
)
31903206
@@ -3302,7 +3318,7 @@ async def save_project_entity(
33023318
import asyncio
33033319
33043320
from sayari import AsyncSayari
3305-
from sayari.project_entity import ResolutionAttributes, SaveProjectEntityBody
3321+
from sayari.project_entity import ResolutionAttrSchema, SaveProjectEntityBody
33063322
33073323
client = AsyncSayari(
33083324
client_id="YOUR_CLIENT_ID",
@@ -3315,7 +3331,7 @@ async def main() -> None:
33153331
project_id="YVB88Y",
33163332
request=SaveProjectEntityBody(
33173333
entity_ids=["entity_id_1", "entity_id_2"],
3318-
attributes=ResolutionAttributes(
3334+
attributes=ResolutionAttrSchema(
33193335
name=["Example Company"],
33203336
country=["USA"],
33213337
),

src/sayari/project_entity/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
from .project_risk_changes_response import ProjectRiskChangesResponse
4545
from .project_risk_changes_response_data import ProjectRiskChangesResponseData
4646
from .project_risk_factor import ProjectRiskFactor
47+
from .resolution_attr_schema import ResolutionAttrSchema
4748
from .resolution_attributes import ResolutionAttributes
4849
from .resolution_profile import ResolutionProfile
4950
from .risk_categories_summary import RiskCategoriesSummary
@@ -113,6 +114,7 @@
113114
"ProjectRiskChangesResponse",
114115
"ProjectRiskChangesResponseData",
115116
"ProjectRiskFactor",
117+
"ResolutionAttrSchema",
116118
"ResolutionAttributes",
117119
"ResolutionProfile",
118120
"RiskCategoriesSummary",

0 commit comments

Comments
 (0)