Skip to content

Commit 1e5db78

Browse files
committed
SDK regeneration
1 parent 3daf19e commit 1e5db78

39 files changed

+1465
-948
lines changed

reference.md

Lines changed: 270 additions & 158 deletions
Large diffs are not rendered by default.

src/sayari/__init__.py

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121
search,
2222
shared_errors,
2323
shared_types,
24-
source,
2524
supply_chain,
2625
trade,
2726
traversal,
2827
)
2928
from .attributes import AddAttribute, AttributeProperties, AttributeResponse, AttributeResponseData, UpdateAttribute
30-
from .auth import AuthResponse
29+
from .auth import Audience, AuthResponse
3130
from .base_types import CountQualifier, CustomFieldValue, PaginatedResponse, QualifiedCount
3231
from .client import AsyncSayari, Sayari
3332
from .entity import EntitySummaryResponse, GetEntityResponse
@@ -230,19 +229,20 @@
230229
CreateResolvedProjectEntityRequest,
231230
FacetBucket,
232231
FacetsResponse,
232+
FieldMatchQuality,
233233
GroupedAttribute,
234234
GroupedAttributeValue,
235235
Location,
236236
MatchCount,
237237
MatchProfileEnum,
238238
MatchStrengthEnum,
239-
MatchedAttributes,
240239
ProductBucket,
241240
ProductCount,
242241
ProductMapping,
243242
ProjectEntitiesResponse,
244243
ProjectEntityExistsResponseData,
245244
ProjectEntityIdResponse,
245+
ProjectEntityMatchExplanation,
246246
ProjectEntityMatchResponse,
247247
ProjectEntityResponse,
248248
ProjectEntitySupplyChainSummaryResponse,
@@ -268,6 +268,12 @@
268268
UpstreamInfo,
269269
)
270270
from .project_entity_attributes import (
271+
CreateProjectEntityAttributeRequest,
272+
CreateProjectEntityAttributeResponse,
273+
CreateProjectEntityAttributeResponseData,
274+
ProjectEntityAttribute,
275+
ProjectEntityAttributeValue,
276+
ProjectEntityAttributesResponse,
271277
UpdateProjectEntityAttributeRequest,
272278
UpdateProjectEntityAttributeResponse,
273279
UpdateProjectEntityAttributeResponseData,
@@ -327,6 +333,8 @@
327333
RateLimitResponse,
328334
Unauthorized,
329335
UnauthorizedResponse,
336+
UnprocessableContent,
337+
UnprocessableContentResponse,
330338
)
331339
from .shared_types import (
332340
ClientName,
@@ -365,7 +373,6 @@
365373
SourceCountInfo,
366374
Status,
367375
)
368-
from .source import GetSourceResponse, ListSourcesResponse, Source
369376
from .supply_chain import (
370377
TradeTraversalComponent,
371378
TradeTraversalData,
@@ -427,6 +434,7 @@
427434
"AttributeValues",
428435
"Attributes",
429436
"AttributesResponse",
437+
"Audience",
430438
"AuthResponse",
431439
"BadGateway",
432440
"BadGatewayResponse",
@@ -463,6 +471,9 @@
463471
"CountryData",
464472
"CountryInfo",
465473
"CountryProperties",
474+
"CreateProjectEntityAttributeRequest",
475+
"CreateProjectEntityAttributeResponse",
476+
"CreateProjectEntityAttributeResponseData",
466477
"CreateProjectEntitySupplyChainSnapshotRequest",
467478
"CreateProjectEntitySupplyChainSnapshotResponse",
468479
"CreateProjectRequest",
@@ -493,6 +504,7 @@
493504
"EventInfo",
494505
"FacetBucket",
495506
"FacetsResponse",
507+
"FieldMatchQuality",
496508
"FilterList",
497509
"FinanceType",
498510
"FinancesData",
@@ -528,7 +540,6 @@
528540
"GetProjectEntitiesResponse",
529541
"GetProjectsResponse",
530542
"GetRecordResponse",
531-
"GetSourceResponse",
532543
"GroupedAttribute",
533544
"GroupedAttributeValue",
534545
"HistoryInfo",
@@ -544,15 +555,13 @@
544555
"InternalServerError",
545556
"InternalServerErrorResponse",
546557
"Language",
547-
"ListSourcesResponse",
548558
"Location",
549559
"MatchCount",
550560
"MatchExplanation",
551561
"MatchProfileEnum",
552562
"MatchQuality",
553563
"MatchStrength",
554564
"MatchStrengthEnum",
555-
"MatchedAttributes",
556565
"MeasurementData",
557566
"MeasurementInfo",
558567
"MeasurementProperties",
@@ -628,8 +637,12 @@
628637
"ProjectEntitiesFilter",
629638
"ProjectEntitiesResponse",
630639
"ProjectEntity",
640+
"ProjectEntityAttribute",
641+
"ProjectEntityAttributeValue",
642+
"ProjectEntityAttributesResponse",
631643
"ProjectEntityExistsResponseData",
632644
"ProjectEntityIdResponse",
645+
"ProjectEntityMatchExplanation",
633646
"ProjectEntityMatchResponse",
634647
"ProjectEntityResponse",
635648
"ProjectEntitySupplyChainSnapshotByIdResponse",
@@ -714,7 +727,6 @@
714727
"ShortestPathResponse",
715728
"SingleProjectEntityResponse",
716729
"SortField",
717-
"Source",
718730
"SourceCountInfo",
719731
"SourceField",
720732
"SourceId",
@@ -760,6 +772,8 @@
760772
"Unauthorized",
761773
"UnauthorizedResponse",
762774
"Unit",
775+
"UnprocessableContent",
776+
"UnprocessableContentResponse",
763777
"UpdateAttribute",
764778
"UpdateEntityTagsResponse",
765779
"UpdateProjectEntityAttributeRequest",
@@ -799,7 +813,6 @@
799813
"search",
800814
"shared_errors",
801815
"shared_types",
802-
"source",
803816
"supply_chain",
804817
"trade",
805818
"traversal",

src/sayari/auth/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3-
from .types import AuthResponse
3+
from .types import Audience, AuthResponse
44

5-
__all__ = ["AuthResponse"]
5+
__all__ = ["Audience", "AuthResponse"]

src/sayari/auth/types/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3+
from .audience import Audience
34
from .auth_response import AuthResponse
45

5-
__all__ = ["AuthResponse"]
6+
__all__ = ["Audience", "AuthResponse"]

src/sayari/auth/types/audience.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
Audience = typing.Union[typing.Literal["sayari.com", "uk.sayari.com"], typing.Any]

src/sayari/base_client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from .resolution.client import ResolutionClient
2222
from .resource.client import ResourceClient
2323
from .search.client import SearchClient
24-
from .source.client import SourceClient
2524
from .supply_chain.client import SupplyChainClient
2625
from .trade.client import TradeClient
2726
from .traversal.client import TraversalClient
@@ -42,7 +41,6 @@
4241
from .resolution.client import AsyncResolutionClient
4342
from .resource.client import AsyncResourceClient
4443
from .search.client import AsyncSearchClient
45-
from .source.client import AsyncSourceClient
4644
from .supply_chain.client import AsyncSupplyChainClient
4745
from .trade.client import AsyncTradeClient
4846
from .traversal.client import AsyncTraversalClient
@@ -140,7 +138,6 @@ def __init__(
140138
self.resolution = ResolutionClient(client_wrapper=self._client_wrapper)
141139
self.resource = ResourceClient(client_wrapper=self._client_wrapper)
142140
self.search = SearchClient(client_wrapper=self._client_wrapper)
143-
self.source = SourceClient(client_wrapper=self._client_wrapper)
144141
self.supply_chain = SupplyChainClient(client_wrapper=self._client_wrapper)
145142
self.trade = TradeClient(client_wrapper=self._client_wrapper)
146143
self.traversal = TraversalClient(client_wrapper=self._client_wrapper)
@@ -238,7 +235,6 @@ def __init__(
238235
self.resolution = AsyncResolutionClient(client_wrapper=self._client_wrapper)
239236
self.resource = AsyncResourceClient(client_wrapper=self._client_wrapper)
240237
self.search = AsyncSearchClient(client_wrapper=self._client_wrapper)
241-
self.source = AsyncSourceClient(client_wrapper=self._client_wrapper)
242238
self.supply_chain = AsyncSupplyChainClient(client_wrapper=self._client_wrapper)
243239
self.trade = AsyncTradeClient(client_wrapper=self._client_wrapper)
244240
self.traversal = AsyncTraversalClient(client_wrapper=self._client_wrapper)

src/sayari/environment.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ class SayariEnvironment(enum.Enum):
1313
"""
1414
Sayari development - utilized for internal testing before promotion to production
1515
"""
16+
17+
PRODUCTION_UK = "https://api.uk.sayari.com"
18+
"""
19+
Sayari production - UK environment
20+
"""

src/sayari/negative_news/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def negative_news(
4949
Risk category filter for targeted screening. Each topic represents a distinct risk domain (e.g., `environmental` for environmental violations, `financial` for financial misconduct).
5050
5151
until : typing.Optional[dt.date]
52-
Date cutoff for article inclusion in `YYYY-MM-DD` format. If provided, only articles published before this date will be included in results.
52+
Date cutoff for article inclusion in `YYYY-MM-DD` format. If provided, only articles published after this date will be included in results.
5353
5454
request_options : typing.Optional[RequestOptions]
5555
Request-specific configuration.
@@ -70,7 +70,7 @@ def negative_news(
7070
)
7171
client.negative_news.negative_news(
7272
name="Gazprom",
73-
topic="sanctions",
73+
topic="sanctions_and_regulatory",
7474
until=datetime.date.fromisoformat(
7575
"2024-10-01",
7676
),
@@ -178,7 +178,7 @@ async def negative_news(
178178
Risk category filter for targeted screening. Each topic represents a distinct risk domain (e.g., `environmental` for environmental violations, `financial` for financial misconduct).
179179
180180
until : typing.Optional[dt.date]
181-
Date cutoff for article inclusion in `YYYY-MM-DD` format. If provided, only articles published before this date will be included in results.
181+
Date cutoff for article inclusion in `YYYY-MM-DD` format. If provided, only articles published after this date will be included in results.
182182
183183
request_options : typing.Optional[RequestOptions]
184184
Request-specific configuration.
@@ -203,7 +203,7 @@ async def negative_news(
203203
async def main() -> None:
204204
await client.negative_news.negative_news(
205205
name="Gazprom",
206-
topic="sanctions",
206+
topic="sanctions_and_regulatory",
207207
until=datetime.date.fromisoformat(
208208
"2024-10-01",
209209
),

src/sayari/negative_news/types/topics.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@
44

55
Topics = typing.Union[
66
typing.Literal[
7-
"basic",
8-
"environmental",
9-
"social",
7+
"overview",
8+
"environmental_and_social",
109
"cybersecurity",
1110
"disruption",
1211
"criminal",
1312
"reputational",
1413
"financial",
15-
"regulatory",
14+
"sanctions_and_regulatory",
1615
"legal",
17-
"misconduct",
16+
"political",
1817
"terrorism",
19-
"sanctions",
20-
"all",
2118
],
2219
typing.Any,
2320
]

src/sayari/project_entity/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,20 @@
1212
CreateResolvedProjectEntityRequest,
1313
FacetBucket,
1414
FacetsResponse,
15+
FieldMatchQuality,
1516
GroupedAttribute,
1617
GroupedAttributeValue,
1718
Location,
1819
MatchCount,
1920
MatchProfileEnum,
2021
MatchStrengthEnum,
21-
MatchedAttributes,
2222
ProductBucket,
2323
ProductCount,
2424
ProductMapping,
2525
ProjectEntitiesResponse,
2626
ProjectEntityExistsResponseData,
2727
ProjectEntityIdResponse,
28+
ProjectEntityMatchExplanation,
2829
ProjectEntityMatchResponse,
2930
ProjectEntityResponse,
3031
ProjectEntitySupplyChainSummaryResponse,
@@ -62,19 +63,20 @@
6263
"CreateResolvedProjectEntityRequest",
6364
"FacetBucket",
6465
"FacetsResponse",
66+
"FieldMatchQuality",
6567
"GroupedAttribute",
6668
"GroupedAttributeValue",
6769
"Location",
6870
"MatchCount",
6971
"MatchProfileEnum",
7072
"MatchStrengthEnum",
71-
"MatchedAttributes",
7273
"ProductBucket",
7374
"ProductCount",
7475
"ProductMapping",
7576
"ProjectEntitiesResponse",
7677
"ProjectEntityExistsResponseData",
7778
"ProjectEntityIdResponse",
79+
"ProjectEntityMatchExplanation",
7880
"ProjectEntityMatchResponse",
7981
"ProjectEntityResponse",
8082
"ProjectEntitySupplyChainSummaryResponse",

0 commit comments

Comments
 (0)