From fea3d1f8ecab0fa5a04b123518e366c73f174620 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Fri, 13 Feb 2026 20:04:05 +0000
Subject: [PATCH] SDK regeneration
---
pyproject.toml | 2 +-
reference.md | 238 ++++++++----------
src/polytomic/__init__.py | 6 +
src/polytomic/bulk_sync/client.py | 50 ++--
src/polytomic/bulk_sync/executions/client.py | 18 +-
src/polytomic/bulk_sync/schedules/client.py | 12 +-
src/polytomic/bulk_sync/schemas/client.py | 34 +--
src/polytomic/client.py | 8 +-
src/polytomic/connections/client.py | 74 ++----
src/polytomic/core/client_wrapper.py | 8 +-
src/polytomic/events/client.py | 8 -
src/polytomic/jobs/client.py | 16 +-
src/polytomic/model_sync/client.py | 66 ++---
src/polytomic/model_sync/executions/client.py | 26 +-
src/polytomic/model_sync/targets/client.py | 6 +-
src/polytomic/models/client.py | 54 ++--
src/polytomic/organization/client.py | 12 +-
src/polytomic/permissions/policies/client.py | 12 +-
src/polytomic/permissions/roles/client.py | 12 +-
src/polytomic/schemas/client.py | 28 +--
src/polytomic/types/__init__.py | 6 +
src/polytomic/types/bulk_filter_2.py | 26 ++
src/polytomic/types/bulk_schema.py | 4 +-
src/polytomic/types/configuration_value_2.py | 20 ++
.../list_bulk_sync_executions_envelope.py | 4 +-
.../types/model_sync_source_meta_response.py | 4 +-
src/polytomic/types/pagination_details_2.py | 19 ++
src/polytomic/users/client.py | 74 +++---
src/polytomic/webhooks/client.py | 20 +-
29 files changed, 426 insertions(+), 441 deletions(-)
create mode 100644 src/polytomic/types/bulk_filter_2.py
create mode 100644 src/polytomic/types/configuration_value_2.py
create mode 100644 src/polytomic/types/pagination_details_2.py
diff --git a/pyproject.toml b/pyproject.toml
index 26af50f..9ed158f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,7 @@ name = "polytomic"
[tool.poetry]
name = "polytomic"
-version = "1.15.5"
+version = "0.0.0"
description = ""
readme = "README.md"
authors = []
diff --git a/reference.md b/reference.md
index c7dc842..e70d36e 100644
--- a/reference.md
+++ b/reference.md
@@ -116,13 +116,13 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.create(
- destination_configuration={"schema": "my_schema"},
- destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Bulk Sync",
+ destination_configuration={"destination_configuration": {"key": "value"}},
+ destination_connection_id="destination_connection_id",
+ name="name",
schedule=BulkSchedule(
frequency="manual",
),
- source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ source_connection_id="source_connection_id",
)
```
@@ -324,7 +324,6 @@ client = Polytomic(
)
client.bulk_sync.get(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
)
```
@@ -405,14 +404,14 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- destination_configuration={"schema": "my_schema"},
- destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Bulk Sync",
+ id="id",
+ destination_configuration={"destination_configuration": {"key": "value"}},
+ destination_connection_id="destination_connection_id",
+ name="name",
schedule=BulkSchedule(
frequency="manual",
),
- source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ source_connection_id="source_connection_id",
)
```
@@ -622,7 +621,6 @@ client = Polytomic(
)
client.bulk_sync.remove(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
)
```
@@ -753,7 +751,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.start(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -900,7 +898,6 @@ client = Polytomic(
)
client.bulk_sync.get_source(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- include_fields=True,
)
```
@@ -1174,15 +1171,9 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.create(
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "********",
- "port": 5432,
- "username": "user",
- },
- name="My Postgres Connection",
- type="postgresql",
+ configuration={"configuration": {"key": "value"}},
+ name="name",
+ type="type",
)
```
@@ -1317,7 +1308,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.connect(
- name="Salesforce Connection",
+ name="name",
redirect_url="redirect_url",
)
@@ -1437,14 +1428,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.test_connection(
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "password",
- "port": 5432,
- "username": "user",
- },
- type="postgresql",
+ configuration={"configuration": {"key": "value"}},
+ type="type",
)
```
@@ -1574,15 +1559,9 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "********",
- "port": 5432,
- "username": "user",
- },
- name="My Postgres Connection",
+ id="id",
+ configuration={"configuration": {"key": "value"}},
+ name="name",
)
```
@@ -1704,7 +1683,6 @@ client = Polytomic(
)
client.connections.remove(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
)
```
@@ -1959,8 +1937,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.upsert_field(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
```
@@ -2108,8 +2086,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.set_primary_keys(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
```
@@ -2196,8 +2174,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.reset_primary_keys(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
```
@@ -2262,7 +2240,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.refresh(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -2548,7 +2526,7 @@ client.models.get_enrichment_source(
-
-**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
+**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`
@@ -2602,7 +2580,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.post(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
)
```
@@ -2667,9 +2645,9 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.preview(
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
```
@@ -2869,9 +2847,9 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.create(
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
```
@@ -3089,11 +3067,10 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- async_=False,
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ id="id",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
```
@@ -3432,7 +3409,7 @@ client.model_sync.get_source(
-
-**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
+**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`
@@ -3497,7 +3474,7 @@ client.model_sync.get_source_fields(
-
-**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
+**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`
@@ -3538,7 +3515,6 @@ client = Polytomic(
)
client.model_sync.list(
active=True,
- target_connection_id="0b155265-c537-44c9-9359-a3ceb468a4da",
)
```
@@ -3682,14 +3658,17 @@ client = Polytomic(
client.model_sync.create(
fields=[
ModelSyncField(
- target="name",
- )
+ target="target",
+ ),
+ ModelSyncField(
+ target="target",
+ ),
],
mode="create",
- name="Users Sync",
+ name="name",
schedule=Schedule(),
target=Target(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
),
)
@@ -3979,17 +3958,20 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
fields=[
ModelSyncField(
- target="name",
- )
+ target="target",
+ ),
+ ModelSyncField(
+ target="target",
+ ),
],
mode="create",
- name="Users Sync",
+ name="name",
schedule=Schedule(),
target=Target(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
),
)
@@ -4520,13 +4502,9 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.events.list(
- organization_id="248df4b7-aa70-47b8-a036-33ac447e668d",
starting_after=datetime.datetime.fromisoformat(
"2020-01-01 00:00:00+00:00",
),
- ending_before=datetime.datetime.fromisoformat(
- "2020-01-01 00:00:00+00:00",
- ),
)
```
@@ -4663,8 +4641,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.jobs.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
type="createmodel",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
```
@@ -4681,7 +4659,7 @@ client.jobs.get(
-
-**id:** `str`
+**type:** `str`
@@ -4689,7 +4667,7 @@ client.jobs.get(
-
-**type:** `str`
+**id:** `str`
@@ -4974,7 +4952,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.organization.create(
- name="My Organization",
+ name="name",
)
```
@@ -5160,8 +5138,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.organization.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Organization",
+ id="id",
+ name="name",
)
```
@@ -5429,8 +5407,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.create(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- email="mail@example.com",
+ org_id="org_id",
+ email="email",
)
```
@@ -5519,8 +5497,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
```
@@ -5537,7 +5515,7 @@ client.users.get(
-
-**id:** `str`
+**org_id:** `str`
@@ -5545,7 +5523,7 @@ client.users.get(
-
-**org_id:** `str`
+**id:** `str`
@@ -5601,9 +5579,9 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- email="mail@example.com",
+ org_id="org_id",
+ id="id",
+ email="email",
)
```
@@ -5620,7 +5598,7 @@ client.users.update(
-
-**id:** `str`
+**org_id:** `str`
@@ -5628,7 +5606,7 @@ client.users.update(
-
-**org_id:** `str`
+**id:** `str`
@@ -5700,8 +5678,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
```
@@ -5718,7 +5696,7 @@ client.users.remove(
-
-**id:** `str`
+**org_id:** `str`
@@ -5726,7 +5704,7 @@ client.users.remove(
-
-**org_id:** `str`
+**id:** `str`
@@ -5782,9 +5760,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.create_api_key(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
+ org_id="org_id",
+ id="id",
)
```
@@ -5941,8 +5918,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.webhooks.create(
- endpoint="https://example.com/webhook",
- secret="secret",
+ endpoint="endpoint",
+ secret="banana",
)
```
@@ -6108,9 +6085,9 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.webhooks.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- endpoint="https://example.com/webhook",
- secret="secret",
+ id="id",
+ endpoint="endpoint",
+ secret="banana",
)
```
@@ -6364,7 +6341,6 @@ client = Polytomic(
)
client.bulk_sync.executions.list_status(
all_=True,
- active=True,
)
```
@@ -6438,10 +6414,6 @@ client = Polytomic(
)
client.bulk_sync.executions.list(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_terminal=True,
- ascending=True,
- limit=100,
)
```
@@ -6662,8 +6634,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.executions.export_logs(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- execution_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ execution_id="execution_id",
)
```
@@ -6762,7 +6734,7 @@ client.bulk_sync.schemas.list(
-
-**filters:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]`
+**filters:** `typing.Optional[typing.Dict[str, str]]`
@@ -6802,7 +6774,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.patch(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -6933,8 +6905,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="contact",
+ id="id",
+ schema_id="schema_id",
)
```
@@ -6999,7 +6971,7 @@ client.bulk_sync.schemas.update(
-
-**filters:** `typing.Optional[typing.Sequence[BulkFilter]]`
+**filters:** `typing.Optional[typing.Sequence[BulkFilter2]]`
@@ -7121,7 +7093,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.create(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
schedule=V4BulkSyncScheduleApi(
frequency="manual",
),
@@ -7255,8 +7227,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.update(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
schedule=V4BulkSyncScheduleApi(
frequency="manual",
),
@@ -7474,7 +7446,6 @@ client = Polytomic(
client.model_sync.targets.get_target_fields(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
target="database.table",
- refresh=False,
)
```
@@ -7677,7 +7648,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.targets.get_create_property(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
property="property",
)
@@ -7745,9 +7716,6 @@ client = Polytomic(
)
client.model_sync.executions.list(
sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_completed=True,
- ascending=True,
)
```
@@ -7894,8 +7862,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.executions.update(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
status="created",
)
@@ -8044,10 +8012,10 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.executions.get_logs(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="0ecd09c1-b901-4d27-9053-f0367c427254",
+ sync_id="sync_id",
+ id="id",
type="records",
- filename="path/to/file.json",
+ filename="filename",
)
```
@@ -8176,7 +8144,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.policies.create(
- name="Custom",
+ name="name",
)
```
@@ -8306,8 +8274,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.policies.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Custom",
+ id="id",
+ name="name",
)
```
@@ -8493,7 +8461,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.roles.create(
- name="Custom",
+ name="name",
)
```
@@ -8615,8 +8583,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.roles.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Custom",
+ id="id",
+ name="name",
)
```
diff --git a/src/polytomic/__init__.py b/src/polytomic/__init__.py
index 6bf93da..8ec3aec 100644
--- a/src/polytomic/__init__.py
+++ b/src/polytomic/__init__.py
@@ -15,6 +15,7 @@
BulkFetchMode,
BulkField,
BulkFilter,
+ BulkFilter2,
BulkItemizedSchedule,
BulkMultiScheduleConfiguration,
BulkNormalizeNames,
@@ -50,6 +51,7 @@
CancelModelSyncResponseEnvelope,
CommonOutputActor,
ConfigurationValue,
+ ConfigurationValue2,
ConnectCardResponse,
ConnectCardResponseEnvelope,
ConnectionListResponseEnvelope,
@@ -122,6 +124,7 @@
Override,
Pagination,
PaginationDetails,
+ PaginationDetails2,
PickValue,
PolicyAction,
PolicyResponse,
@@ -247,6 +250,7 @@
"BulkFetchMode",
"BulkField",
"BulkFilter",
+ "BulkFilter2",
"BulkItemizedSchedule",
"BulkMultiScheduleConfiguration",
"BulkNormalizeNames",
@@ -282,6 +286,7 @@
"CancelModelSyncResponseEnvelope",
"CommonOutputActor",
"ConfigurationValue",
+ "ConfigurationValue2",
"ConflictError",
"ConnectCardResponse",
"ConnectCardResponseEnvelope",
@@ -358,6 +363,7 @@
"Override",
"Pagination",
"PaginationDetails",
+ "PaginationDetails2",
"PickValue",
"PolicyAction",
"PolicyResponse",
diff --git a/src/polytomic/bulk_sync/client.py b/src/polytomic/bulk_sync/client.py
index d7c1313..475bfe2 100644
--- a/src/polytomic/bulk_sync/client.py
+++ b/src/polytomic/bulk_sync/client.py
@@ -234,13 +234,13 @@ def create(
token="YOUR_TOKEN",
)
client.bulk_sync.create(
- destination_configuration={"schema": "my_schema"},
- destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Bulk Sync",
+ destination_configuration={"destination_configuration": {"key": "value"}},
+ destination_connection_id="destination_connection_id",
+ name="name",
schedule=BulkSchedule(
frequency="manual",
),
- source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ source_connection_id="source_connection_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -373,7 +373,6 @@ def get(
)
client.bulk_sync.get(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -511,14 +510,14 @@ def update(
token="YOUR_TOKEN",
)
client.bulk_sync.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- destination_configuration={"schema": "my_schema"},
- destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Bulk Sync",
+ id="id",
+ destination_configuration={"destination_configuration": {"key": "value"}},
+ destination_connection_id="destination_connection_id",
+ name="name",
schedule=BulkSchedule(
frequency="manual",
),
- source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ source_connection_id="source_connection_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -650,7 +649,6 @@ def remove(
)
client.bulk_sync.remove(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -843,7 +841,7 @@ def start(
token="YOUR_TOKEN",
)
client.bulk_sync.start(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1012,7 +1010,6 @@ def get_source(
)
client.bulk_sync.get_source(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- include_fields=True,
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1368,13 +1365,15 @@ async def create(
async def main() -> None:
await client.bulk_sync.create(
- destination_configuration={"schema": "my_schema"},
- destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Bulk Sync",
+ destination_configuration={
+ "destination_configuration": {"key": "value"}
+ },
+ destination_connection_id="destination_connection_id",
+ name="name",
schedule=BulkSchedule(
frequency="manual",
),
- source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ source_connection_id="source_connection_id",
)
@@ -1515,7 +1514,6 @@ async def get(
async def main() -> None:
await client.bulk_sync.get(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
)
@@ -1661,14 +1659,16 @@ async def update(
async def main() -> None:
await client.bulk_sync.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- destination_configuration={"schema": "my_schema"},
- destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Bulk Sync",
+ id="id",
+ destination_configuration={
+ "destination_configuration": {"key": "value"}
+ },
+ destination_connection_id="destination_connection_id",
+ name="name",
schedule=BulkSchedule(
frequency="manual",
),
- source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ source_connection_id="source_connection_id",
)
@@ -1808,7 +1808,6 @@ async def remove(
async def main() -> None:
await client.bulk_sync.remove(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
)
@@ -2017,7 +2016,7 @@ async def start(
async def main() -> None:
await client.bulk_sync.start(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -2204,7 +2203,6 @@ async def get_source(
async def main() -> None:
await client.bulk_sync.get_source(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- include_fields=True,
)
diff --git a/src/polytomic/bulk_sync/executions/client.py b/src/polytomic/bulk_sync/executions/client.py
index a47b5ad..b79f7e9 100644
--- a/src/polytomic/bulk_sync/executions/client.py
+++ b/src/polytomic/bulk_sync/executions/client.py
@@ -63,7 +63,6 @@ def list_status(
)
client.bulk_sync.executions.list_status(
all_=True,
- active=True,
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -151,10 +150,6 @@ def list(
)
client.bulk_sync.executions.list(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_terminal=True,
- ascending=True,
- limit=100,
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -377,8 +372,8 @@ def export_logs(
token="YOUR_TOKEN",
)
client.bulk_sync.executions.export_logs(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- execution_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ execution_id="execution_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -491,7 +486,6 @@ async def list_status(
async def main() -> None:
await client.bulk_sync.executions.list_status(
all_=True,
- active=True,
)
@@ -587,10 +581,6 @@ async def list(
async def main() -> None:
await client.bulk_sync.executions.list(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_terminal=True,
- ascending=True,
- limit=100,
)
@@ -837,8 +827,8 @@ async def export_logs(
async def main() -> None:
await client.bulk_sync.executions.export_logs(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- execution_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ execution_id="execution_id",
)
diff --git a/src/polytomic/bulk_sync/schedules/client.py b/src/polytomic/bulk_sync/schedules/client.py
index 2d941ad..c5ee42c 100644
--- a/src/polytomic/bulk_sync/schedules/client.py
+++ b/src/polytomic/bulk_sync/schedules/client.py
@@ -140,7 +140,7 @@ def create(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.create(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
schedule=V4BulkSyncScheduleApi(
frequency="manual",
),
@@ -348,8 +348,8 @@ def update(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.update(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
schedule=V4BulkSyncScheduleApi(
frequency="manual",
),
@@ -646,7 +646,7 @@ async def create(
async def main() -> None:
await client.bulk_sync.schedules.create(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
schedule=V4BulkSyncScheduleApi(
frequency="manual",
),
@@ -870,8 +870,8 @@ async def update(
async def main() -> None:
await client.bulk_sync.schedules.update(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
schedule=V4BulkSyncScheduleApi(
frequency="manual",
),
diff --git a/src/polytomic/bulk_sync/schemas/client.py b/src/polytomic/bulk_sync/schemas/client.py
index b20a8a8..a63c562 100644
--- a/src/polytomic/bulk_sync/schemas/client.py
+++ b/src/polytomic/bulk_sync/schemas/client.py
@@ -20,7 +20,7 @@
from ...types.bulk_schema_envelope import BulkSchemaEnvelope
import datetime as dt
from ...types.update_bulk_field import UpdateBulkField
-from ...types.bulk_filter import BulkFilter
+from ...types.bulk_filter_2 import BulkFilter2
from ...core.client_wrapper import AsyncClientWrapper
# this is used as the default value for optional parameters
@@ -35,7 +35,7 @@ def list(
self,
id: str,
*,
- filters: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None,
+ filters: typing.Optional[typing.Dict[str, str]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ListBulkSchema:
"""
@@ -43,7 +43,7 @@ def list(
----------
id : str
- filters : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ filters : typing.Optional[typing.Dict[str, str]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -138,7 +138,7 @@ def patch(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.patch(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -298,7 +298,7 @@ def update(
disable_data_cutoff: typing.Optional[bool] = OMIT,
enabled: typing.Optional[bool] = OMIT,
fields: typing.Optional[typing.Sequence[UpdateBulkField]] = OMIT,
- filters: typing.Optional[typing.Sequence[BulkFilter]] = OMIT,
+ filters: typing.Optional[typing.Sequence[BulkFilter2]] = OMIT,
partition_key: typing.Optional[str] = OMIT,
tracking_field: typing.Optional[str] = OMIT,
user_output_name: typing.Optional[str] = OMIT,
@@ -319,7 +319,7 @@ def update(
fields : typing.Optional[typing.Sequence[UpdateBulkField]]
- filters : typing.Optional[typing.Sequence[BulkFilter]]
+ filters : typing.Optional[typing.Sequence[BulkFilter2]]
partition_key : typing.Optional[str]
@@ -344,8 +344,8 @@ def update(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="contact",
+ id="id",
+ schema_id="schema_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -359,7 +359,7 @@ def update(
object_=fields, annotation=typing.Sequence[UpdateBulkField], direction="write"
),
"filters": convert_and_respect_annotation_metadata(
- object_=filters, annotation=typing.Sequence[BulkFilter], direction="write"
+ object_=filters, annotation=typing.Sequence[BulkFilter2], direction="write"
),
"partition_key": partition_key,
"tracking_field": tracking_field,
@@ -434,7 +434,7 @@ async def list(
self,
id: str,
*,
- filters: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None,
+ filters: typing.Optional[typing.Dict[str, str]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ListBulkSchema:
"""
@@ -442,7 +442,7 @@ async def list(
----------
id : str
- filters : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ filters : typing.Optional[typing.Dict[str, str]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -550,7 +550,7 @@ async def patch(
async def main() -> None:
await client.bulk_sync.schemas.patch(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -721,7 +721,7 @@ async def update(
disable_data_cutoff: typing.Optional[bool] = OMIT,
enabled: typing.Optional[bool] = OMIT,
fields: typing.Optional[typing.Sequence[UpdateBulkField]] = OMIT,
- filters: typing.Optional[typing.Sequence[BulkFilter]] = OMIT,
+ filters: typing.Optional[typing.Sequence[BulkFilter2]] = OMIT,
partition_key: typing.Optional[str] = OMIT,
tracking_field: typing.Optional[str] = OMIT,
user_output_name: typing.Optional[str] = OMIT,
@@ -742,7 +742,7 @@ async def update(
fields : typing.Optional[typing.Sequence[UpdateBulkField]]
- filters : typing.Optional[typing.Sequence[BulkFilter]]
+ filters : typing.Optional[typing.Sequence[BulkFilter2]]
partition_key : typing.Optional[str]
@@ -772,8 +772,8 @@ async def update(
async def main() -> None:
await client.bulk_sync.schemas.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="contact",
+ id="id",
+ schema_id="schema_id",
)
@@ -790,7 +790,7 @@ async def main() -> None:
object_=fields, annotation=typing.Sequence[UpdateBulkField], direction="write"
),
"filters": convert_and_respect_annotation_metadata(
- object_=filters, annotation=typing.Sequence[BulkFilter], direction="write"
+ object_=filters, annotation=typing.Sequence[BulkFilter2], direction="write"
),
"partition_key": partition_key,
"tracking_field": tracking_field,
diff --git a/src/polytomic/client.py b/src/polytomic/client.py
index f0762a7..5518539 100644
--- a/src/polytomic/client.py
+++ b/src/polytomic/client.py
@@ -53,7 +53,7 @@ class Polytomic:
- version : typing.Optional[str]
+ version : typing.Optional[typing.Any]
token : typing.Union[str, typing.Callable[[], str]]
timeout : typing.Optional[float]
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
@@ -79,7 +79,7 @@ def __init__(
*,
base_url: typing.Optional[str] = None,
environment: PolytomicEnvironment = PolytomicEnvironment.DEFAULT,
- version: typing.Optional[str] = None,
+ version: typing.Optional[typing.Any] = None,
token: typing.Union[str, typing.Callable[[], str]],
timeout: typing.Optional[float] = None,
follow_redirects: typing.Optional[bool] = True,
@@ -131,7 +131,7 @@ class AsyncPolytomic:
- version : typing.Optional[str]
+ version : typing.Optional[typing.Any]
token : typing.Union[str, typing.Callable[[], str]]
timeout : typing.Optional[float]
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
@@ -157,7 +157,7 @@ def __init__(
*,
base_url: typing.Optional[str] = None,
environment: PolytomicEnvironment = PolytomicEnvironment.DEFAULT,
- version: typing.Optional[str] = None,
+ version: typing.Optional[typing.Any] = None,
token: typing.Union[str, typing.Callable[[], str]],
timeout: typing.Optional[float] = None,
follow_redirects: typing.Optional[bool] = True,
diff --git a/src/polytomic/connections/client.py b/src/polytomic/connections/client.py
index c7915c6..479592f 100644
--- a/src/polytomic/connections/client.py
+++ b/src/polytomic/connections/client.py
@@ -283,15 +283,9 @@ def create(
token="YOUR_TOKEN",
)
client.connections.create(
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "********",
- "port": 5432,
- "username": "user",
- },
- name="My Postgres Connection",
- type="postgresql",
+ configuration={"configuration": {"key": "value"}},
+ name="name",
+ type="type",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -439,7 +433,7 @@ def connect(
token="YOUR_TOKEN",
)
client.connections.connect(
- name="Salesforce Connection",
+ name="name",
redirect_url="redirect_url",
)
"""
@@ -553,14 +547,8 @@ def test_connection(
token="YOUR_TOKEN",
)
client.connections.test_connection(
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "password",
- "port": 5432,
- "username": "user",
- },
- type="postgresql",
+ configuration={"configuration": {"key": "value"}},
+ type="type",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -754,15 +742,9 @@ def update(
token="YOUR_TOKEN",
)
client.connections.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "********",
- "port": 5432,
- "username": "user",
- },
- name="My Postgres Connection",
+ id="id",
+ configuration={"configuration": {"key": "value"}},
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -885,7 +867,6 @@ def remove(
)
client.connections.remove(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1318,15 +1299,9 @@ async def create(
async def main() -> None:
await client.connections.create(
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "********",
- "port": 5432,
- "username": "user",
- },
- name="My Postgres Connection",
- type="postgresql",
+ configuration={"configuration": {"key": "value"}},
+ name="name",
+ type="type",
)
@@ -1482,7 +1457,7 @@ async def connect(
async def main() -> None:
await client.connections.connect(
- name="Salesforce Connection",
+ name="name",
redirect_url="redirect_url",
)
@@ -1604,14 +1579,8 @@ async def test_connection(
async def main() -> None:
await client.connections.test_connection(
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "password",
- "port": 5432,
- "username": "user",
- },
- type="postgresql",
+ configuration={"configuration": {"key": "value"}},
+ type="type",
)
@@ -1823,15 +1792,9 @@ async def update(
async def main() -> None:
await client.connections.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- configuration={
- "database": "example",
- "hostname": "postgres.example.com",
- "password": "********",
- "port": 5432,
- "username": "user",
- },
- name="My Postgres Connection",
+ id="id",
+ configuration={"configuration": {"key": "value"}},
+ name="name",
)
@@ -1962,7 +1925,6 @@ async def remove(
async def main() -> None:
await client.connections.remove(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
)
diff --git a/src/polytomic/core/client_wrapper.py b/src/polytomic/core/client_wrapper.py
index bd3a034..221e1e0 100644
--- a/src/polytomic/core/client_wrapper.py
+++ b/src/polytomic/core/client_wrapper.py
@@ -10,7 +10,7 @@ class BaseClientWrapper:
def __init__(
self,
*,
- version: typing.Optional[str] = None,
+ version: typing.Optional[typing.Any] = None,
token: typing.Union[str, typing.Callable[[], str]],
base_url: str,
timeout: typing.Optional[float] = None,
@@ -24,7 +24,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.5",
+ "X-Fern-SDK-Version": "0.0.0",
}
if self._version is not None:
headers["X-Polytomic-Version"] = self._version
@@ -48,7 +48,7 @@ class SyncClientWrapper(BaseClientWrapper):
def __init__(
self,
*,
- version: typing.Optional[str] = None,
+ version: typing.Optional[typing.Any] = None,
token: typing.Union[str, typing.Callable[[], str]],
base_url: str,
timeout: typing.Optional[float] = None,
@@ -67,7 +67,7 @@ class AsyncClientWrapper(BaseClientWrapper):
def __init__(
self,
*,
- version: typing.Optional[str] = None,
+ version: typing.Optional[typing.Any] = None,
token: typing.Union[str, typing.Callable[[], str]],
base_url: str,
timeout: typing.Optional[float] = None,
diff --git a/src/polytomic/events/client.py b/src/polytomic/events/client.py
index 01d4d77..55b484b 100644
--- a/src/polytomic/events/client.py
+++ b/src/polytomic/events/client.py
@@ -64,13 +64,9 @@ def list(
token="YOUR_TOKEN",
)
client.events.list(
- organization_id="248df4b7-aa70-47b8-a036-33ac447e668d",
starting_after=datetime.datetime.fromisoformat(
"2020-01-01 00:00:00+00:00",
),
- ending_before=datetime.datetime.fromisoformat(
- "2020-01-01 00:00:00+00:00",
- ),
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -231,13 +227,9 @@ async def list(
async def main() -> None:
await client.events.list(
- organization_id="248df4b7-aa70-47b8-a036-33ac447e668d",
starting_after=datetime.datetime.fromisoformat(
"2020-01-01 00:00:00+00:00",
),
- ending_before=datetime.datetime.fromisoformat(
- "2020-01-01 00:00:00+00:00",
- ),
)
diff --git a/src/polytomic/jobs/client.py b/src/polytomic/jobs/client.py
index 32ba6b8..8b8141f 100644
--- a/src/polytomic/jobs/client.py
+++ b/src/polytomic/jobs/client.py
@@ -22,15 +22,15 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
self._client_wrapper = client_wrapper
def get(
- self, id: str, type: str, *, request_options: typing.Optional[RequestOptions] = None
+ self, type: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
) -> JobResponseEnvelope:
"""
Parameters
----------
- id : str
-
type : str
+ id : str
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -48,8 +48,8 @@ def get(
token="YOUR_TOKEN",
)
client.jobs.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
type="createmodel",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -117,15 +117,15 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
self._client_wrapper = client_wrapper
async def get(
- self, id: str, type: str, *, request_options: typing.Optional[RequestOptions] = None
+ self, type: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
) -> JobResponseEnvelope:
"""
Parameters
----------
- id : str
-
type : str
+ id : str
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -148,8 +148,8 @@ async def get(
async def main() -> None:
await client.jobs.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
type="createmodel",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
diff --git a/src/polytomic/model_sync/client.py b/src/polytomic/model_sync/client.py
index b5a0048..244287d 100644
--- a/src/polytomic/model_sync/client.py
+++ b/src/polytomic/model_sync/client.py
@@ -53,7 +53,7 @@ def get_source(
self,
id: str,
*,
- params: typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]] = None,
+ params: typing.Optional[typing.Dict[str, typing.Sequence[str]]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> GetModelSyncSourceMetaEnvelope:
"""
@@ -61,7 +61,7 @@ def get_source(
----------
id : str
- params : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]
+ params : typing.Optional[typing.Dict[str, typing.Sequence[str]]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -159,7 +159,7 @@ def get_source_fields(
self,
id: str,
*,
- params: typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]] = None,
+ params: typing.Optional[typing.Dict[str, typing.Sequence[str]]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ModelFieldResponse:
"""
@@ -167,7 +167,7 @@ def get_source_fields(
----------
id : str
- params : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]
+ params : typing.Optional[typing.Dict[str, typing.Sequence[str]]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -296,7 +296,6 @@ def list(
)
client.model_sync.list(
active=True,
- target_connection_id="0b155265-c537-44c9-9359-a3ceb468a4da",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -509,14 +508,17 @@ def create(
client.model_sync.create(
fields=[
ModelSyncField(
- target="name",
- )
+ target="target",
+ ),
+ ModelSyncField(
+ target="target",
+ ),
],
mode="create",
- name="Users Sync",
+ name="name",
schedule=Schedule(),
target=Target(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
),
)
"""
@@ -852,17 +854,20 @@ def update(
token="YOUR_TOKEN",
)
client.model_sync.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
fields=[
ModelSyncField(
- target="name",
- )
+ target="target",
+ ),
+ ModelSyncField(
+ target="target",
+ ),
],
mode="create",
- name="Users Sync",
+ name="name",
schedule=Schedule(),
target=Target(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
),
)
"""
@@ -1468,7 +1473,7 @@ async def get_source(
self,
id: str,
*,
- params: typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]] = None,
+ params: typing.Optional[typing.Dict[str, typing.Sequence[str]]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> GetModelSyncSourceMetaEnvelope:
"""
@@ -1476,7 +1481,7 @@ async def get_source(
----------
id : str
- params : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]
+ params : typing.Optional[typing.Dict[str, typing.Sequence[str]]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -1582,7 +1587,7 @@ async def get_source_fields(
self,
id: str,
*,
- params: typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]] = None,
+ params: typing.Optional[typing.Dict[str, typing.Sequence[str]]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ModelFieldResponse:
"""
@@ -1590,7 +1595,7 @@ async def get_source_fields(
----------
id : str
- params : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]
+ params : typing.Optional[typing.Dict[str, typing.Sequence[str]]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -1732,7 +1737,6 @@ async def list(
async def main() -> None:
await client.model_sync.list(
active=True,
- target_connection_id="0b155265-c537-44c9-9359-a3ceb468a4da",
)
@@ -1953,14 +1957,17 @@ async def main() -> None:
await client.model_sync.create(
fields=[
ModelSyncField(
- target="name",
- )
+ target="target",
+ ),
+ ModelSyncField(
+ target="target",
+ ),
],
mode="create",
- name="Users Sync",
+ name="name",
schedule=Schedule(),
target=Target(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
),
)
@@ -2322,17 +2329,20 @@ async def update(
async def main() -> None:
await client.model_sync.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
fields=[
ModelSyncField(
- target="name",
- )
+ target="target",
+ ),
+ ModelSyncField(
+ target="target",
+ ),
],
mode="create",
- name="Users Sync",
+ name="name",
schedule=Schedule(),
target=Target(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
),
)
diff --git a/src/polytomic/model_sync/executions/client.py b/src/polytomic/model_sync/executions/client.py
index a1e1140..da4e148 100644
--- a/src/polytomic/model_sync/executions/client.py
+++ b/src/polytomic/model_sync/executions/client.py
@@ -67,9 +67,6 @@ def list(
)
client.model_sync.executions.list(
sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_completed=True,
- ascending=True,
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -226,8 +223,8 @@ def update(
token="YOUR_TOKEN",
)
client.model_sync.executions.update(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
status="created",
)
"""
@@ -441,10 +438,10 @@ def get_logs(
token="YOUR_TOKEN",
)
client.model_sync.executions.get_logs(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="0ecd09c1-b901-4d27-9053-f0367c427254",
+ sync_id="sync_id",
+ id="id",
type="records",
- filename="path/to/file.json",
+ filename="filename",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -548,9 +545,6 @@ async def list(
async def main() -> None:
await client.model_sync.executions.list(
sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_completed=True,
- ascending=True,
)
@@ -723,8 +717,8 @@ async def update(
async def main() -> None:
await client.model_sync.executions.update(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
status="created",
)
@@ -954,10 +948,10 @@ async def get_logs(
async def main() -> None:
await client.model_sync.executions.get_logs(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="0ecd09c1-b901-4d27-9053-f0367c427254",
+ sync_id="sync_id",
+ id="id",
type="records",
- filename="path/to/file.json",
+ filename="filename",
)
diff --git a/src/polytomic/model_sync/targets/client.py b/src/polytomic/model_sync/targets/client.py
index 59dcf67..1686277 100644
--- a/src/polytomic/model_sync/targets/client.py
+++ b/src/polytomic/model_sync/targets/client.py
@@ -171,7 +171,6 @@ def get_target_fields(
client.model_sync.targets.get_target_fields(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
target="database.table",
- refresh=False,
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -410,7 +409,7 @@ def get_create_property(
token="YOUR_TOKEN",
)
client.model_sync.targets.get_create_property(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
property="property",
)
"""
@@ -647,7 +646,6 @@ async def main() -> None:
await client.model_sync.targets.get_target_fields(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
target="database.table",
- refresh=False,
)
@@ -902,7 +900,7 @@ async def get_create_property(
async def main() -> None:
await client.model_sync.targets.get_create_property(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
property="property",
)
diff --git a/src/polytomic/models/client.py b/src/polytomic/models/client.py
index 45efe7f..24cccd5 100644
--- a/src/polytomic/models/client.py
+++ b/src/polytomic/models/client.py
@@ -38,7 +38,7 @@ def get_enrichment_source(
self,
id: str,
*,
- params: typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]] = None,
+ params: typing.Optional[typing.Dict[str, typing.Sequence[str]]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> GetModelSyncSourceMetaEnvelope:
"""
@@ -46,7 +46,7 @@ def get_enrichment_source(
----------
id : str
- params : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]
+ params : typing.Optional[typing.Dict[str, typing.Sequence[str]]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -173,7 +173,7 @@ def post(
token="YOUR_TOKEN",
)
client.models.post(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -306,9 +306,9 @@ def preview(
token="YOUR_TOKEN",
)
client.models.preview(
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -519,9 +519,9 @@ def create(
token="YOUR_TOKEN",
)
client.models.create(
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -759,11 +759,10 @@ def update(
token="YOUR_TOKEN",
)
client.models.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- async_=False,
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ id="id",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1041,7 +1040,7 @@ async def get_enrichment_source(
self,
id: str,
*,
- params: typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]] = None,
+ params: typing.Optional[typing.Dict[str, typing.Sequence[str]]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> GetModelSyncSourceMetaEnvelope:
"""
@@ -1049,7 +1048,7 @@ async def get_enrichment_source(
----------
id : str
- params : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]
+ params : typing.Optional[typing.Dict[str, typing.Sequence[str]]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -1189,7 +1188,7 @@ async def post(
async def main() -> None:
await client.models.post(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
)
@@ -1330,9 +1329,9 @@ async def preview(
async def main() -> None:
await client.models.preview(
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
@@ -1559,9 +1558,9 @@ async def create(
async def main() -> None:
await client.models.create(
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
@@ -1815,11 +1814,10 @@ async def update(
async def main() -> None:
await client.models.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- async_=False,
- configuration={"table": "public.users"},
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Users",
+ id="id",
+ configuration={"configuration": {"key": "value"}},
+ connection_id="connection_id",
+ name="name",
)
diff --git a/src/polytomic/organization/client.py b/src/polytomic/organization/client.py
index 8929e07..6d332b8 100644
--- a/src/polytomic/organization/client.py
+++ b/src/polytomic/organization/client.py
@@ -138,7 +138,7 @@ def create(
token="YOUR_TOKEN",
)
client.organization.create(
- name="My Organization",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -331,8 +331,8 @@ def update(
token="YOUR_TOKEN",
)
client.organization.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Organization",
+ id="id",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -608,7 +608,7 @@ async def create(
async def main() -> None:
await client.organization.create(
- name="My Organization",
+ name="name",
)
@@ -817,8 +817,8 @@ async def update(
async def main() -> None:
await client.organization.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Organization",
+ id="id",
+ name="name",
)
diff --git a/src/polytomic/permissions/policies/client.py b/src/polytomic/permissions/policies/client.py
index a0fc74a..402f4d0 100644
--- a/src/polytomic/permissions/policies/client.py
+++ b/src/polytomic/permissions/policies/client.py
@@ -123,7 +123,7 @@ def create(
token="YOUR_TOKEN",
)
client.permissions.policies.create(
- name="Custom",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -318,8 +318,8 @@ def update(
token="YOUR_TOKEN",
)
client.permissions.policies.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Custom",
+ id="id",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -593,7 +593,7 @@ async def create(
async def main() -> None:
await client.permissions.policies.create(
- name="Custom",
+ name="name",
)
@@ -804,8 +804,8 @@ async def update(
async def main() -> None:
await client.permissions.policies.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Custom",
+ id="id",
+ name="name",
)
diff --git a/src/polytomic/permissions/roles/client.py b/src/polytomic/permissions/roles/client.py
index b7a80bc..6aebff1 100644
--- a/src/polytomic/permissions/roles/client.py
+++ b/src/polytomic/permissions/roles/client.py
@@ -118,7 +118,7 @@ def create(
token="YOUR_TOKEN",
)
client.permissions.roles.create(
- name="Custom",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -297,8 +297,8 @@ def update(
token="YOUR_TOKEN",
)
client.permissions.roles.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Custom",
+ id="id",
+ name="name",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -566,7 +566,7 @@ async def create(
async def main() -> None:
await client.permissions.roles.create(
- name="Custom",
+ name="name",
)
@@ -761,8 +761,8 @@ async def update(
async def main() -> None:
await client.permissions.roles.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Custom",
+ id="id",
+ name="name",
)
diff --git a/src/polytomic/schemas/client.py b/src/polytomic/schemas/client.py
index 04edb01..112a86e 100644
--- a/src/polytomic/schemas/client.py
+++ b/src/polytomic/schemas/client.py
@@ -63,8 +63,8 @@ def upsert_field(
token="YOUR_TOKEN",
)
client.schemas.upsert_field(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -253,8 +253,8 @@ def set_primary_keys(
token="YOUR_TOKEN",
)
client.schemas.set_primary_keys(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -347,8 +347,8 @@ def reset_primary_keys(
token="YOUR_TOKEN",
)
client.schemas.reset_primary_keys(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -426,7 +426,7 @@ def refresh(self, id: str, *, request_options: typing.Optional[RequestOptions] =
token="YOUR_TOKEN",
)
client.schemas.refresh(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -804,8 +804,8 @@ async def upsert_field(
async def main() -> None:
await client.schemas.upsert_field(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
@@ -1010,8 +1010,8 @@ async def set_primary_keys(
async def main() -> None:
await client.schemas.set_primary_keys(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
@@ -1112,8 +1112,8 @@ async def reset_primary_keys(
async def main() -> None:
await client.schemas.reset_primary_keys(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ connection_id="connection_id",
+ schema_id="schema_id",
)
@@ -1199,7 +1199,7 @@ async def refresh(self, id: str, *, request_options: typing.Optional[RequestOpti
async def main() -> None:
await client.schemas.refresh(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
diff --git a/src/polytomic/types/__init__.py b/src/polytomic/types/__init__.py
index fdf1e45..1062e4c 100644
--- a/src/polytomic/types/__init__.py
+++ b/src/polytomic/types/__init__.py
@@ -15,6 +15,7 @@
from .bulk_fetch_mode import BulkFetchMode
from .bulk_field import BulkField
from .bulk_filter import BulkFilter
+from .bulk_filter_2 import BulkFilter2
from .bulk_itemized_schedule import BulkItemizedSchedule
from .bulk_multi_schedule_configuration import BulkMultiScheduleConfiguration
from .bulk_normalize_names import BulkNormalizeNames
@@ -50,6 +51,7 @@
from .cancel_model_sync_response_envelope import CancelModelSyncResponseEnvelope
from .common_output_actor import CommonOutputActor
from .configuration_value import ConfigurationValue
+from .configuration_value_2 import ConfigurationValue2
from .connect_card_response import ConnectCardResponse
from .connect_card_response_envelope import ConnectCardResponseEnvelope
from .connection_list_response_envelope import ConnectionListResponseEnvelope
@@ -122,6 +124,7 @@
from .override import Override
from .pagination import Pagination
from .pagination_details import PaginationDetails
+from .pagination_details_2 import PaginationDetails2
from .pick_value import PickValue
from .policy_action import PolicyAction
from .policy_response import PolicyResponse
@@ -216,6 +219,7 @@
"BulkFetchMode",
"BulkField",
"BulkFilter",
+ "BulkFilter2",
"BulkItemizedSchedule",
"BulkMultiScheduleConfiguration",
"BulkNormalizeNames",
@@ -251,6 +255,7 @@
"CancelModelSyncResponseEnvelope",
"CommonOutputActor",
"ConfigurationValue",
+ "ConfigurationValue2",
"ConnectCardResponse",
"ConnectCardResponseEnvelope",
"ConnectionListResponseEnvelope",
@@ -323,6 +328,7 @@
"Override",
"Pagination",
"PaginationDetails",
+ "PaginationDetails2",
"PickValue",
"PolicyAction",
"PolicyResponse",
diff --git a/src/polytomic/types/bulk_filter_2.py b/src/polytomic/types/bulk_filter_2.py
new file mode 100644
index 0000000..0d6e162
--- /dev/null
+++ b/src/polytomic/types/bulk_filter_2.py
@@ -0,0 +1,26 @@
+# This file was auto-generated by Fern from our API Definition.
+
+from ..core.pydantic_utilities import UniversalBaseModel
+import typing
+import pydantic
+from .filter_function import FilterFunction
+from ..core.pydantic_utilities import IS_PYDANTIC_V2
+
+
+class BulkFilter2(UniversalBaseModel):
+ field_id: typing.Optional[str] = pydantic.Field(default=None)
+ """
+ Schema field ID to filter on.
+ """
+
+ function: FilterFunction
+ value: typing.Optional[typing.Optional[typing.Any]] = 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
diff --git a/src/polytomic/types/bulk_schema.py b/src/polytomic/types/bulk_schema.py
index 22ce3f7..8dba581 100644
--- a/src/polytomic/types/bulk_schema.py
+++ b/src/polytomic/types/bulk_schema.py
@@ -4,7 +4,7 @@
import typing
import datetime as dt
from .bulk_field import BulkField
-from .bulk_filter import BulkFilter
+from .bulk_filter_2 import BulkFilter2
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
@@ -14,7 +14,7 @@ class BulkSchema(UniversalBaseModel):
disable_data_cutoff: typing.Optional[bool] = None
enabled: typing.Optional[bool] = None
fields: typing.Optional[typing.List[BulkField]] = None
- filters: typing.Optional[typing.List[BulkFilter]] = None
+ filters: typing.Optional[typing.List[BulkFilter2]] = None
id: typing.Optional[str] = None
output_name: typing.Optional[str] = None
partition_key: typing.Optional[str] = None
diff --git a/src/polytomic/types/configuration_value_2.py b/src/polytomic/types/configuration_value_2.py
new file mode 100644
index 0000000..73ef8bc
--- /dev/null
+++ b/src/polytomic/types/configuration_value_2.py
@@ -0,0 +1,20 @@
+# This file was auto-generated by Fern from our API Definition.
+
+from ..core.pydantic_utilities import UniversalBaseModel
+import typing
+from ..core.pydantic_utilities import IS_PYDANTIC_V2
+import pydantic
+
+
+class ConfigurationValue2(UniversalBaseModel):
+ items: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
+ type: 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
diff --git a/src/polytomic/types/list_bulk_sync_executions_envelope.py b/src/polytomic/types/list_bulk_sync_executions_envelope.py
index a63f897..37de437 100644
--- a/src/polytomic/types/list_bulk_sync_executions_envelope.py
+++ b/src/polytomic/types/list_bulk_sync_executions_envelope.py
@@ -3,14 +3,14 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
from .bulk_sync_execution import BulkSyncExecution
-from .pagination_details import PaginationDetails
+from .pagination_details_2 import PaginationDetails2
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
class ListBulkSyncExecutionsEnvelope(UniversalBaseModel):
data: typing.Optional[typing.List[BulkSyncExecution]] = None
- pagination: typing.Optional[PaginationDetails] = None
+ pagination: typing.Optional[PaginationDetails2] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/src/polytomic/types/model_sync_source_meta_response.py b/src/polytomic/types/model_sync_source_meta_response.py
index 552befd..79ea47b 100644
--- a/src/polytomic/types/model_sync_source_meta_response.py
+++ b/src/polytomic/types/model_sync_source_meta_response.py
@@ -2,14 +2,14 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
-from .configuration_value import ConfigurationValue
+from .configuration_value_2 import ConfigurationValue2
from .source_meta import SourceMeta
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
class ModelSyncSourceMetaResponse(UniversalBaseModel):
- configuration: typing.Optional[typing.Dict[str, ConfigurationValue]] = None
+ configuration: typing.Optional[typing.Dict[str, ConfigurationValue2]] = None
items: typing.Optional[typing.Dict[str, typing.Optional[SourceMeta]]] = None
requires_one_of: typing.Optional[typing.List[str]] = None
diff --git a/src/polytomic/types/pagination_details_2.py b/src/polytomic/types/pagination_details_2.py
new file mode 100644
index 0000000..eac847e
--- /dev/null
+++ b/src/polytomic/types/pagination_details_2.py
@@ -0,0 +1,19 @@
+# This file was auto-generated by Fern from our API Definition.
+
+from ..core.pydantic_utilities import UniversalBaseModel
+import typing
+from ..core.pydantic_utilities import IS_PYDANTIC_V2
+import pydantic
+
+
+class PaginationDetails2(UniversalBaseModel):
+ next_page_token: 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
diff --git a/src/polytomic/users/client.py b/src/polytomic/users/client.py
index aa0148e..ad73b43 100644
--- a/src/polytomic/users/client.py
+++ b/src/polytomic/users/client.py
@@ -133,8 +133,8 @@ def create(
token="YOUR_TOKEN",
)
client.users.create(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- email="mail@example.com",
+ org_id="org_id",
+ email="email",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -194,7 +194,7 @@ def create(
raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
- def get(self, id: str, org_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> UserEnvelope:
+ def get(self, org_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> UserEnvelope:
"""
> 🚧 Requires partner key
>
@@ -202,10 +202,10 @@ def get(self, id: str, org_id: str, *, request_options: typing.Optional[RequestO
Parameters
----------
- id : str
-
org_id : str
+ id : str
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -223,8 +223,8 @@ def get(self, id: str, org_id: str, *, request_options: typing.Optional[RequestO
token="YOUR_TOKEN",
)
client.users.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -278,8 +278,8 @@ def get(self, id: str, org_id: str, *, request_options: typing.Optional[RequestO
def update(
self,
- id: str,
org_id: str,
+ id: str,
*,
email: str,
role: typing.Optional[str] = OMIT,
@@ -292,10 +292,10 @@ def update(
Parameters
----------
- id : str
-
org_id : str
+ id : str
+
email : str
role : typing.Optional[str]
@@ -317,9 +317,9 @@ def update(
token="YOUR_TOKEN",
)
client.users.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- email="mail@example.com",
+ org_id="org_id",
+ id="id",
+ email="email",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -379,7 +379,7 @@ def update(
raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
- def remove(self, id: str, org_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> UserEnvelope:
+ def remove(self, org_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> UserEnvelope:
"""
> 🚧 Requires partner key
>
@@ -387,10 +387,10 @@ def remove(self, id: str, org_id: str, *, request_options: typing.Optional[Reque
Parameters
----------
- id : str
-
org_id : str
+ id : str
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -408,8 +408,8 @@ def remove(self, id: str, org_id: str, *, request_options: typing.Optional[Reque
token="YOUR_TOKEN",
)
client.users.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -499,9 +499,8 @@ def create_api_key(
token="YOUR_TOKEN",
)
client.users.create_api_key(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
+ org_id="org_id",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -681,8 +680,8 @@ async def create(
async def main() -> None:
await client.users.create(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- email="mail@example.com",
+ org_id="org_id",
+ email="email",
)
@@ -746,7 +745,7 @@ async def main() -> None:
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
async def get(
- self, id: str, org_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ self, org_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
) -> UserEnvelope:
"""
> 🚧 Requires partner key
@@ -755,10 +754,10 @@ async def get(
Parameters
----------
- id : str
-
org_id : str
+ id : str
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -781,8 +780,8 @@ async def get(
async def main() -> None:
await client.users.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
@@ -839,8 +838,8 @@ async def main() -> None:
async def update(
self,
- id: str,
org_id: str,
+ id: str,
*,
email: str,
role: typing.Optional[str] = OMIT,
@@ -853,10 +852,10 @@ async def update(
Parameters
----------
- id : str
-
org_id : str
+ id : str
+
email : str
role : typing.Optional[str]
@@ -883,9 +882,9 @@ async def update(
async def main() -> None:
await client.users.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- email="mail@example.com",
+ org_id="org_id",
+ id="id",
+ email="email",
)
@@ -949,7 +948,7 @@ async def main() -> None:
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
async def remove(
- self, id: str, org_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ self, org_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
) -> UserEnvelope:
"""
> 🚧 Requires partner key
@@ -958,10 +957,10 @@ async def remove(
Parameters
----------
- id : str
-
org_id : str
+ id : str
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -984,8 +983,8 @@ async def remove(
async def main() -> None:
await client.users.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
@@ -1083,9 +1082,8 @@ async def create_api_key(
async def main() -> None:
await client.users.create_api_key(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
+ org_id="org_id",
+ id="id",
)
diff --git a/src/polytomic/webhooks/client.py b/src/polytomic/webhooks/client.py
index e50958d..26abec2 100644
--- a/src/polytomic/webhooks/client.py
+++ b/src/polytomic/webhooks/client.py
@@ -132,8 +132,8 @@ def create(
token="YOUR_TOKEN",
)
client.webhooks.create(
- endpoint="https://example.com/webhook",
- secret="secret",
+ endpoint="endpoint",
+ secret="banana",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -308,9 +308,9 @@ def update(
token="YOUR_TOKEN",
)
client.webhooks.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- endpoint="https://example.com/webhook",
- secret="secret",
+ id="id",
+ endpoint="endpoint",
+ secret="banana",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -714,8 +714,8 @@ async def create(
async def main() -> None:
await client.webhooks.create(
- endpoint="https://example.com/webhook",
- secret="secret",
+ endpoint="endpoint",
+ secret="banana",
)
@@ -906,9 +906,9 @@ async def update(
async def main() -> None:
await client.webhooks.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- endpoint="https://example.com/webhook",
- secret="secret",
+ id="id",
+ endpoint="endpoint",
+ secret="banana",
)