Skip to content

Commit bd7d4a6

Browse files
Release 1.2.0
1 parent 54b70cc commit bd7d4a6

15 files changed

+544
-142
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "polytomic"
3-
version = "1.0.0"
3+
version = "1.2.0"
44
description = ""
55
readme = "README.md"
66
authors = []

src/polytomic/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
ConnectionTypeSchema,
4949
CreateConnectionResponseEnvelope,
5050
CreateConnectionResponseSchema,
51+
CreateModelRequest,
52+
Enrichment,
5153
Event,
5254
EventTypesEnvelope,
5355
EventsEnvelope,
@@ -125,6 +127,9 @@
125127
TargetResponseEnvelope,
126128
User,
127129
UserEnvelope,
130+
V2EnricherConfiguration,
131+
V2EnricherMapping,
132+
V2GetEnrichmentInputFieldsResponseEnvelope,
128133
Webhook,
129134
WebhookEnvelope,
130135
WebhookListEnvelope,
@@ -204,6 +209,8 @@
204209
"ConnectionTypeSchema",
205210
"CreateConnectionResponseEnvelope",
206211
"CreateConnectionResponseSchema",
212+
"CreateModelRequest",
213+
"Enrichment",
207214
"Event",
208215
"EventTypesEnvelope",
209216
"EventsEnvelope",
@@ -287,6 +294,9 @@
287294
"UnprocessableEntityError",
288295
"User",
289296
"UserEnvelope",
297+
"V2EnricherConfiguration",
298+
"V2EnricherMapping",
299+
"V2GetEnrichmentInputFieldsResponseEnvelope",
290300
"Webhook",
291301
"WebhookEnvelope",
292302
"WebhookListEnvelope",

src/polytomic/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def __init__(
6464
self.connections = ConnectionsClient(client_wrapper=self._client_wrapper)
6565
self.model_sync = ModelSyncClient(client_wrapper=self._client_wrapper)
6666
self.schemas = SchemasClient(client_wrapper=self._client_wrapper)
67+
self.models = ModelsClient(client_wrapper=self._client_wrapper)
6768
self.events = EventsClient(client_wrapper=self._client_wrapper)
6869
self.jobs = JobsClient(client_wrapper=self._client_wrapper)
6970
self.identity = IdentityClient(client_wrapper=self._client_wrapper)
70-
self.models = ModelsClient(client_wrapper=self._client_wrapper)
7171
self.organization = OrganizationClient(client_wrapper=self._client_wrapper)
7272
self.users = UsersClient(client_wrapper=self._client_wrapper)
7373
self.permissions = PermissionsClient(client_wrapper=self._client_wrapper)
@@ -118,10 +118,10 @@ def __init__(
118118
self.connections = AsyncConnectionsClient(client_wrapper=self._client_wrapper)
119119
self.model_sync = AsyncModelSyncClient(client_wrapper=self._client_wrapper)
120120
self.schemas = AsyncSchemasClient(client_wrapper=self._client_wrapper)
121+
self.models = AsyncModelsClient(client_wrapper=self._client_wrapper)
121122
self.events = AsyncEventsClient(client_wrapper=self._client_wrapper)
122123
self.jobs = AsyncJobsClient(client_wrapper=self._client_wrapper)
123124
self.identity = AsyncIdentityClient(client_wrapper=self._client_wrapper)
124-
self.models = AsyncModelsClient(client_wrapper=self._client_wrapper)
125125
self.organization = AsyncOrganizationClient(client_wrapper=self._client_wrapper)
126126
self.users = AsyncUsersClient(client_wrapper=self._client_wrapper)
127127
self.permissions = AsyncPermissionsClient(client_wrapper=self._client_wrapper)

src/polytomic/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2323
headers: typing.Dict[str, str] = {
2424
"X-Fern-Language": "Python",
2525
"X-Fern-SDK-Name": "polytomic",
26-
"X-Fern-SDK-Version": "1.0.0",
26+
"X-Fern-SDK-Version": "1.2.0",
2727
}
2828
headers["Authorization"] = f"Bearer {self._get_token()}"
2929
headers["X-Polytomic-Version"] = "2024-02-08"

src/polytomic/resources/model_sync/client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from ...types.activate_sync_envelope import ActivateSyncEnvelope
1919
from ...types.activate_sync_input import ActivateSyncInput
2020
from ...types.api_error import ApiError as types_api_error_ApiError
21+
from ...types.enrichment import Enrichment
2122
from ...types.filter import Filter
2223
from ...types.get_connection_meta_envelope import GetConnectionMetaEnvelope
2324
from ...types.get_model_sync_source_meta_envelope import GetModelSyncSourceMetaEnvelope
@@ -387,6 +388,7 @@ def create(
387388
self,
388389
*,
389390
active: typing.Optional[bool] = OMIT,
391+
enricher: typing.Optional[Enrichment] = OMIT,
390392
fields: typing.Optional[typing.Sequence[ModelSyncField]] = OMIT,
391393
filter_logic: typing.Optional[str] = OMIT,
392394
filters: typing.Optional[typing.Sequence[Filter]] = OMIT,
@@ -406,6 +408,8 @@ def create(
406408
Parameters:
407409
- active: typing.Optional[bool].
408410
411+
- enricher: typing.Optional[Enrichment].
412+
409413
- fields: typing.Optional[typing.Sequence[ModelSyncField]].
410414
411415
- filter_logic: typing.Optional[str].
@@ -453,6 +457,8 @@ def create(
453457
_request: typing.Dict[str, typing.Any] = {"mode": mode, "name": name, "schedule": schedule, "target": target}
454458
if active is not OMIT:
455459
_request["active"] = active
460+
if enricher is not OMIT:
461+
_request["enricher"] = enricher
456462
if fields is not OMIT:
457463
_request["fields"] = fields
458464
if filter_logic is not OMIT:
@@ -618,6 +624,7 @@ def update(
618624
id: str,
619625
*,
620626
active: typing.Optional[bool] = OMIT,
627+
enricher: typing.Optional[Enrichment] = OMIT,
621628
fields: typing.Optional[typing.Sequence[ModelSyncField]] = OMIT,
622629
filter_logic: typing.Optional[str] = OMIT,
623630
filters: typing.Optional[typing.Sequence[Filter]] = OMIT,
@@ -639,6 +646,8 @@ def update(
639646
640647
- active: typing.Optional[bool].
641648
649+
- enricher: typing.Optional[Enrichment].
650+
642651
- fields: typing.Optional[typing.Sequence[ModelSyncField]].
643652
644653
- filter_logic: typing.Optional[str].
@@ -687,6 +696,8 @@ def update(
687696
_request: typing.Dict[str, typing.Any] = {"mode": mode, "name": name, "schedule": schedule, "target": target}
688697
if active is not OMIT:
689698
_request["active"] = active
699+
if enricher is not OMIT:
700+
_request["enricher"] = enricher
690701
if fields is not OMIT:
691702
_request["fields"] = fields
692703
if filter_logic is not OMIT:
@@ -1348,6 +1359,7 @@ async def create(
13481359
self,
13491360
*,
13501361
active: typing.Optional[bool] = OMIT,
1362+
enricher: typing.Optional[Enrichment] = OMIT,
13511363
fields: typing.Optional[typing.Sequence[ModelSyncField]] = OMIT,
13521364
filter_logic: typing.Optional[str] = OMIT,
13531365
filters: typing.Optional[typing.Sequence[Filter]] = OMIT,
@@ -1367,6 +1379,8 @@ async def create(
13671379
Parameters:
13681380
- active: typing.Optional[bool].
13691381
1382+
- enricher: typing.Optional[Enrichment].
1383+
13701384
- fields: typing.Optional[typing.Sequence[ModelSyncField]].
13711385
13721386
- filter_logic: typing.Optional[str].
@@ -1414,6 +1428,8 @@ async def create(
14141428
_request: typing.Dict[str, typing.Any] = {"mode": mode, "name": name, "schedule": schedule, "target": target}
14151429
if active is not OMIT:
14161430
_request["active"] = active
1431+
if enricher is not OMIT:
1432+
_request["enricher"] = enricher
14171433
if fields is not OMIT:
14181434
_request["fields"] = fields
14191435
if filter_logic is not OMIT:
@@ -1581,6 +1597,7 @@ async def update(
15811597
id: str,
15821598
*,
15831599
active: typing.Optional[bool] = OMIT,
1600+
enricher: typing.Optional[Enrichment] = OMIT,
15841601
fields: typing.Optional[typing.Sequence[ModelSyncField]] = OMIT,
15851602
filter_logic: typing.Optional[str] = OMIT,
15861603
filters: typing.Optional[typing.Sequence[Filter]] = OMIT,
@@ -1602,6 +1619,8 @@ async def update(
16021619
16031620
- active: typing.Optional[bool].
16041621
1622+
- enricher: typing.Optional[Enrichment].
1623+
16051624
- fields: typing.Optional[typing.Sequence[ModelSyncField]].
16061625
16071626
- filter_logic: typing.Optional[str].
@@ -1650,6 +1669,8 @@ async def update(
16501669
_request: typing.Dict[str, typing.Any] = {"mode": mode, "name": name, "schedule": schedule, "target": target}
16511670
if active is not OMIT:
16521671
_request["active"] = active
1672+
if enricher is not OMIT:
1673+
_request["enricher"] = enricher
16531674
if fields is not OMIT:
16541675
_request["fields"] = fields
16551676
if filter_logic is not OMIT:

0 commit comments

Comments
 (0)