From 63a12996823e7f48c5e419362029c4b81fccda95 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Mon, 9 Feb 2026 21:28:12 +0000
Subject: [PATCH] SDK regeneration
---
pyproject.toml | 2 +-
reference.md | 395 ++++++++----------
src/polytomic/__init__.py | 6 +
src/polytomic/bulk_sync/client.py | 86 ++--
src/polytomic/bulk_sync/executions/client.py | 50 +--
src/polytomic/bulk_sync/schedules/client.py | 34 +-
src/polytomic/bulk_sync/schemas/client.py | 46 +-
src/polytomic/bulk_sync/types/__init__.py | 4 +-
...2create_bulk_sync_request_schemas_item.py} | 0
...2update_bulk_sync_request_schemas_item.py} | 0
src/polytomic/client.py | 8 +-
src/polytomic/connections/client.py | 90 ++--
src/polytomic/core/client_wrapper.py | 8 +-
src/polytomic/events/client.py | 23 +-
src/polytomic/jobs/client.py | 20 +-
src/polytomic/model_sync/client.py | 106 ++---
src/polytomic/model_sync/executions/client.py | 48 +--
src/polytomic/model_sync/targets/client.py | 26 +-
src/polytomic/models/client.py | 74 ++--
src/polytomic/notifications/client.py | 2 +-
src/polytomic/organization/client.py | 20 +-
src/polytomic/permissions/policies/client.py | 20 +-
src/polytomic/permissions/roles/client.py | 20 +-
src/polytomic/query_runner/client.py | 14 +-
src/polytomic/schemas/client.py | 62 +--
src/polytomic/types/__init__.py | 50 ++-
src/polytomic/types/bulk_filter2.py | 26 ++
src/polytomic/types/bulk_schema.py | 4 +-
src/polytomic/types/configuration_value2.py | 20 +
.../types/connection_response_schema.py | 6 +-
src/polytomic/types/connection_type.py | 2 +-
src/polytomic/types/enrichment.py | 4 +-
src/polytomic/types/jsonschema_schema.py | 2 +-
.../list_bulk_sync_executions_envelope.py | 4 +-
src/polytomic/types/model_sample.py | 2 +-
.../types/model_sync_source_meta_response.py | 4 +-
src/polytomic/types/pagination_details2.py | 19 +
src/polytomic/types/schema_configuration.py | 2 +-
...onnection_form.py => v2connection_form.py} | 0
...uration.py => v2enricher_configuration.py} | 0
...icher_mapping.py => v2enricher_mapping.py} | 0
...on_log_type.py => v2execution_log_type.py} | 0
...ichment_input_fields_response_envelope.py} | 0
...g_github_com_invopop_jsonschema_schema.py} | 0
..._2_sample_record.py => v2sample_record.py} | 0
... => v2schema_configuration_fields_item.py} | 0
..._logs.py => v4bulk_sync_execution_logs.py} | 0
...=> v4bulk_sync_execution_logs_envelope.py} | 2 +-
...ule_api.py => v4bulk_sync_schedule_api.py} | 0
...lope.py => v4export_sync_logs_envelope.py} | 2 +-
...onse.py => v4export_sync_logs_response.py} | 0
...=> v4global_error_subscribers_response.py} | 0
...nvelope.py => v4query_results_envelope.py} | 2 +-
...ry_envelope.py => v4run_query_envelope.py} | 2 +-
..._query_result.py => v4run_query_result.py} | 0
..._target_creator.py => v4target_creator.py} | 0
... => v4target_objects_response_envelope.py} | 2 +-
..._values.py => v4target_property_values.py} | 0
...y => v4target_property_values_envelope.py} | 2 +-
...eld_request.py => v4user_field_request.py} | 0
src/polytomic/users/client.py | 86 ++--
src/polytomic/webhooks/client.py | 36 +-
62 files changed, 697 insertions(+), 746 deletions(-)
rename src/polytomic/bulk_sync/types/{v_2_create_bulk_sync_request_schemas_item.py => v2create_bulk_sync_request_schemas_item.py} (100%)
rename src/polytomic/bulk_sync/types/{v_2_update_bulk_sync_request_schemas_item.py => v2update_bulk_sync_request_schemas_item.py} (100%)
create mode 100644 src/polytomic/types/bulk_filter2.py
create mode 100644 src/polytomic/types/configuration_value2.py
create mode 100644 src/polytomic/types/pagination_details2.py
rename src/polytomic/types/{v_2_connection_form.py => v2connection_form.py} (100%)
rename src/polytomic/types/{v_2_enricher_configuration.py => v2enricher_configuration.py} (100%)
rename src/polytomic/types/{v_2_enricher_mapping.py => v2enricher_mapping.py} (100%)
rename src/polytomic/types/{v_2_execution_log_type.py => v2execution_log_type.py} (100%)
rename src/polytomic/types/{v_2_get_enrichment_input_fields_response_envelope.py => v2get_enrichment_input_fields_response_envelope.py} (100%)
rename src/polytomic/types/{v_2_ordered_map_string_github_com_invopop_jsonschema_schema.py => v2ordered_map_string_github_com_invopop_jsonschema_schema.py} (100%)
rename src/polytomic/types/{v_2_sample_record.py => v2sample_record.py} (100%)
rename src/polytomic/types/{v_2_schema_configuration_fields_item.py => v2schema_configuration_fields_item.py} (100%)
rename src/polytomic/types/{v_4_bulk_sync_execution_logs.py => v4bulk_sync_execution_logs.py} (100%)
rename src/polytomic/types/{v_4_bulk_sync_execution_logs_envelope.py => v4bulk_sync_execution_logs_envelope.py} (90%)
rename src/polytomic/types/{v_4_bulk_sync_schedule_api.py => v4bulk_sync_schedule_api.py} (100%)
rename src/polytomic/types/{v_4_export_sync_logs_envelope.py => v4export_sync_logs_envelope.py} (91%)
rename src/polytomic/types/{v_4_export_sync_logs_response.py => v4export_sync_logs_response.py} (100%)
rename src/polytomic/types/{v_4_global_error_subscribers_response.py => v4global_error_subscribers_response.py} (100%)
rename src/polytomic/types/{v_4_query_results_envelope.py => v4query_results_envelope.py} (93%)
rename src/polytomic/types/{v_4_run_query_envelope.py => v4run_query_envelope.py} (92%)
rename src/polytomic/types/{v_4_run_query_result.py => v4run_query_result.py} (100%)
rename src/polytomic/types/{v_4_target_creator.py => v4target_creator.py} (100%)
rename src/polytomic/types/{v_4_target_objects_response_envelope.py => v4target_objects_response_envelope.py} (93%)
rename src/polytomic/types/{v_4_target_property_values.py => v4target_property_values.py} (100%)
rename src/polytomic/types/{v_4_target_property_values_envelope.py => v4target_property_values_envelope.py} (90%)
rename src/polytomic/types/{v_4_user_field_request.py => v4user_field_request.py} (100%)
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..558e705 100644
--- a/reference.md
+++ b/reference.md
@@ -19,9 +19,7 @@ client = Polytomic(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
-client.bulk_sync.list(
- active=True,
-)
+client.bulk_sync.list()
```
@@ -116,13 +114,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",
)
```
@@ -323,8 +321,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
+ id="id",
)
```
@@ -405,14 +402,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",
)
```
@@ -621,8 +618,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
+ id="id",
)
```
@@ -687,7 +683,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.activate(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
active=True,
)
@@ -753,7 +749,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.start(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -842,7 +838,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -899,8 +895,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.get_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- include_fields=True,
+ id="id",
)
```
@@ -965,7 +960,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.get_destination(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -1070,7 +1065,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.get_connection_type_schema(
- id="postgresql",
+ id="id",
)
```
@@ -1174,15 +1169,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 +1306,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.connect(
- name="Salesforce Connection",
+ name="name",
redirect_url="redirect_url",
)
@@ -1437,14 +1426,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",
)
```
@@ -1517,7 +1500,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -1574,15 +1557,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",
)
```
@@ -1703,8 +1680,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
+ id="id",
)
```
@@ -1769,7 +1745,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.connections.get_parameter_values(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -1827,8 +1803,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.query_runner.run_query(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- query="SELECT * FROM table",
+ connection_id="connection_id",
)
```
@@ -1893,7 +1868,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.query_runner.get_query(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -1959,8 +1934,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",
)
```
@@ -2033,9 +2008,9 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.delete_field(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
- field_id="first_name",
+ connection_id="connection_id",
+ schema_id="schema_id",
+ field_id="field_id",
)
```
@@ -2108,8 +2083,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 +2171,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 +2237,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.refresh(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -2333,7 +2308,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -2390,8 +2365,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ id="id",
+ schema_id="schema_id",
)
```
@@ -2456,8 +2431,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.schemas.get_records(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ id="id",
+ schema_id="schema_id",
)
```
@@ -2523,7 +2498,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.get_enrichment_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -2548,7 +2523,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 +2577,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.post(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ connection_id="connection_id",
)
```
@@ -2667,9 +2642,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 +2844,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",
)
```
@@ -3024,7 +2999,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -3089,11 +3064,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",
)
```
@@ -3262,7 +3236,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -3341,7 +3315,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.models.sample(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -3407,7 +3381,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.get_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -3432,7 +3406,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]]]`
@@ -3472,7 +3446,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.get_source_fields(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -3497,7 +3471,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]]]`
@@ -3536,10 +3510,7 @@ client = Polytomic(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
-client.model_sync.list(
- active=True,
- target_connection_id="0b155265-c537-44c9-9359-a3ceb468a4da",
-)
+client.model_sync.list()
```
@@ -3682,14 +3653,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",
),
)
@@ -3922,7 +3896,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -3979,17 +3953,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",
),
)
@@ -4183,7 +4160,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -4240,7 +4217,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.activate(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
active=True,
)
@@ -4306,7 +4283,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.cancel(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -4379,7 +4356,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.start(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -4460,7 +4437,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -4511,23 +4488,13 @@ client.model_sync.get_status(
```python
-import datetime
-
from polytomic import Polytomic
client = Polytomic(
version="YOUR_VERSION",
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",
- ),
-)
+client.events.list()
```
@@ -4663,8 +4630,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.jobs.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- type="createmodel",
+ type="type",
+ id="id",
)
```
@@ -4681,7 +4648,7 @@ client.jobs.get(
-
-**id:** `str`
+**type:** `str`
@@ -4689,7 +4656,7 @@ client.jobs.get(
-
-**type:** `str`
+**id:** `str`
@@ -4974,7 +4941,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.organization.create(
- name="My Organization",
+ name="name",
)
```
@@ -5087,7 +5054,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.organization.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -5160,8 +5127,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.organization.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="My Organization",
+ id="id",
+ name="name",
)
```
@@ -5282,7 +5249,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.organization.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -5356,7 +5323,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.list(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ org_id="org_id",
)
```
@@ -5429,8 +5396,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 +5486,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ org_id="org_id",
+ id="id",
)
```
@@ -5537,7 +5504,7 @@ client.users.get(
-
-**id:** `str`
+**org_id:** `str`
@@ -5545,7 +5512,7 @@ client.users.get(
-
-**org_id:** `str`
+**id:** `str`
@@ -5601,9 +5568,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 +5587,7 @@ client.users.update(
-
-**id:** `str`
+**org_id:** `str`
@@ -5628,7 +5595,7 @@ client.users.update(
-
-**org_id:** `str`
+**id:** `str`
@@ -5700,8 +5667,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ org_id="org_id",
+ id="id",
)
```
@@ -5718,7 +5685,7 @@ client.users.remove(
-
-**id:** `str`
+**org_id:** `str`
@@ -5726,7 +5693,7 @@ client.users.remove(
-
-**org_id:** `str`
+**id:** `str`
@@ -5782,9 +5749,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 +5907,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.webhooks.create(
- endpoint="https://example.com/webhook",
- secret="secret",
+ endpoint="endpoint",
+ secret="banana",
)
```
@@ -6033,7 +5999,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.webhooks.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -6108,9 +6074,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",
)
```
@@ -6191,7 +6157,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.webhooks.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -6248,7 +6214,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.webhooks.disable(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -6305,7 +6271,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.webhooks.enable(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -6362,10 +6328,7 @@ client = Polytomic(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
-client.bulk_sync.executions.list_status(
- all_=True,
- active=True,
-)
+client.bulk_sync.executions.list_status()
```
@@ -6437,11 +6400,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.executions.list(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_terminal=True,
- ascending=True,
- limit=100,
+ id="id",
)
```
@@ -6530,8 +6489,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.executions.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- exec_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
+ exec_id="exec_id",
)
```
@@ -6596,8 +6555,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.executions.get_logs(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- execution_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ execution_id="execution_id",
)
```
@@ -6662,8 +6621,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",
)
```
@@ -6737,7 +6696,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.list(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -6762,7 +6721,7 @@ client.bulk_sync.schemas.list(
-
-**filters:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]`
+**filters:** `typing.Optional[typing.Dict[str, str]]`
@@ -6802,7 +6761,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.patch(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -6867,8 +6826,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="Contact",
+ id="id",
+ schema_id="schema_id",
)
```
@@ -6933,8 +6892,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 +6958,7 @@ client.bulk_sync.schemas.update(
-
-**filters:** `typing.Optional[typing.Sequence[BulkFilter]]`
+**filters:** `typing.Optional[typing.Sequence[BulkFilter2]]`
@@ -7064,7 +7023,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.list(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
)
```
@@ -7121,7 +7080,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",
),
@@ -7189,8 +7148,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.get(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
)
```
@@ -7255,8 +7214,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",
),
@@ -7332,8 +7291,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.delete(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
)
```
@@ -7399,7 +7358,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.targets.get_target(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -7472,9 +7431,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.targets.get_target_fields(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- target="database.table",
- refresh=False,
+ id="id",
+ target="target",
)
```
@@ -7577,7 +7535,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.targets.list(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -7677,7 +7635,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.targets.get_create_property(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
property="property",
)
@@ -7744,10 +7702,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.executions.list(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_completed=True,
- ascending=True,
+ sync_id="sync_id",
)
```
@@ -7828,8 +7783,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.executions.get(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
)
```
@@ -7894,8 +7849,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",
)
@@ -7969,8 +7924,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.executions.get_log_urls(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
type="records",
)
@@ -8044,10 +7999,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 +8131,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.policies.create(
- name="Custom",
+ name="name",
)
```
@@ -8249,7 +8204,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.policies.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -8306,8 +8261,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.policies.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Custom",
+ id="id",
+ name="name",
)
```
@@ -8388,7 +8343,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.policies.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -8493,7 +8448,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.roles.create(
- name="Custom",
+ name="name",
)
```
@@ -8558,7 +8513,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.roles.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
@@ -8615,8 +8570,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.roles.update(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- name="Custom",
+ id="id",
+ name="name",
)
```
@@ -8689,7 +8644,7 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.permissions.roles.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
```
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..426595e 100644
--- a/src/polytomic/bulk_sync/client.py
+++ b/src/polytomic/bulk_sync/client.py
@@ -19,7 +19,7 @@
import datetime as dt
from ..types.bulk_sync_mode import BulkSyncMode
from ..types.bulk_normalize_names import BulkNormalizeNames
-from .types.v_2_create_bulk_sync_request_schemas_item import V2CreateBulkSyncRequestSchemasItem
+from .types.v2create_bulk_sync_request_schemas_item import V2CreateBulkSyncRequestSchemasItem
from ..types.bulk_sync_response_envelope import BulkSyncResponseEnvelope
from ..core.serialization import convert_and_respect_annotation_metadata
from ..errors.bad_request_error import BadRequestError
@@ -27,7 +27,7 @@
from ..errors.unprocessable_entity_error import UnprocessableEntityError
from ..core.jsonable_encoder import jsonable_encoder
from ..errors.not_found_error import NotFoundError
-from .types.v_2_update_bulk_sync_request_schemas_item import V2UpdateBulkSyncRequestSchemasItem
+from .types.v2update_bulk_sync_request_schemas_item import V2UpdateBulkSyncRequestSchemasItem
from ..types.activate_sync_envelope import ActivateSyncEnvelope
from ..types.bulk_fetch_mode import BulkFetchMode
from ..types.bulk_sync_execution_envelope import BulkSyncExecutionEnvelope
@@ -75,9 +75,7 @@ def list(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
- client.bulk_sync.list(
- active=True,
- )
+ client.bulk_sync.list()
"""
_response = self._client_wrapper.httpx_client.request(
"api/bulk/syncs",
@@ -234,13 +232,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(
@@ -372,8 +370,7 @@ def get(
token="YOUR_TOKEN",
)
client.bulk_sync.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -511,14 +508,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(
@@ -649,8 +646,7 @@ def remove(
token="YOUR_TOKEN",
)
client.bulk_sync.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -736,7 +732,7 @@ def activate(
token="YOUR_TOKEN",
)
client.bulk_sync.activate(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
active=True,
)
"""
@@ -843,7 +839,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(
@@ -928,7 +924,7 @@ def get_status(self, id: str, *, request_options: typing.Optional[RequestOptions
token="YOUR_TOKEN",
)
client.bulk_sync.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1011,8 +1007,7 @@ def get_source(
token="YOUR_TOKEN",
)
client.bulk_sync.get_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- include_fields=True,
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1102,7 +1097,7 @@ def get_destination(
token="YOUR_TOKEN",
)
client.bulk_sync.get_destination(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1201,9 +1196,7 @@ async def list(
async def main() -> None:
- await client.bulk_sync.list(
- active=True,
- )
+ await client.bulk_sync.list()
asyncio.run(main())
@@ -1368,13 +1361,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",
)
@@ -1514,8 +1509,7 @@ async def get(
async def main() -> None:
await client.bulk_sync.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
+ id="id",
)
@@ -1661,14 +1655,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",
)
@@ -1807,8 +1803,7 @@ async def remove(
async def main() -> None:
await client.bulk_sync.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- refresh_schemas=True,
+ id="id",
)
@@ -1902,7 +1897,7 @@ async def activate(
async def main() -> None:
await client.bulk_sync.activate(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
active=True,
)
@@ -2017,7 +2012,7 @@ async def start(
async def main() -> None:
await client.bulk_sync.start(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -2112,7 +2107,7 @@ async def get_status(
async def main() -> None:
await client.bulk_sync.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -2203,8 +2198,7 @@ async def get_source(
async def main() -> None:
await client.bulk_sync.get_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- include_fields=True,
+ id="id",
)
@@ -2302,7 +2296,7 @@ async def get_destination(
async def main() -> None:
await client.bulk_sync.get_destination(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
diff --git a/src/polytomic/bulk_sync/executions/client.py b/src/polytomic/bulk_sync/executions/client.py
index a47b5ad..35a9578 100644
--- a/src/polytomic/bulk_sync/executions/client.py
+++ b/src/polytomic/bulk_sync/executions/client.py
@@ -14,8 +14,8 @@
from ...types.list_bulk_sync_executions_envelope import ListBulkSyncExecutionsEnvelope
from ...core.jsonable_encoder import jsonable_encoder
from ...types.bulk_sync_execution_envelope import BulkSyncExecutionEnvelope
-from ...types.v_4_bulk_sync_execution_logs_envelope import V4BulkSyncExecutionLogsEnvelope
-from ...types.v_4_export_sync_logs_envelope import V4ExportSyncLogsEnvelope
+from ...types.v4bulk_sync_execution_logs_envelope import V4BulkSyncExecutionLogsEnvelope
+from ...types.v4export_sync_logs_envelope import V4ExportSyncLogsEnvelope
from ...errors.bad_request_error import BadRequestError
from ...errors.internal_server_error import InternalServerError
from ...core.client_wrapper import AsyncClientWrapper
@@ -61,10 +61,7 @@ def list_status(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
- client.bulk_sync.executions.list_status(
- all_=True,
- active=True,
- )
+ client.bulk_sync.executions.list_status()
"""
_response = self._client_wrapper.httpx_client.request(
"api/bulk/syncs/status",
@@ -150,11 +147,7 @@ def list(
token="YOUR_TOKEN",
)
client.bulk_sync.executions.list(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_terminal=True,
- ascending=True,
- limit=100,
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -229,8 +222,8 @@ def get(
token="YOUR_TOKEN",
)
client.bulk_sync.executions.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- exec_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
+ exec_id="exec_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -299,8 +292,8 @@ def get_logs(
token="YOUR_TOKEN",
)
client.bulk_sync.executions.get_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(
@@ -377,8 +370,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(
@@ -489,10 +482,7 @@ async def list_status(
async def main() -> None:
- await client.bulk_sync.executions.list_status(
- all_=True,
- active=True,
- )
+ await client.bulk_sync.executions.list_status()
asyncio.run(main())
@@ -586,11 +576,7 @@ 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,
+ id="id",
)
@@ -673,8 +659,8 @@ async def get(
async def main() -> None:
await client.bulk_sync.executions.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- exec_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
+ exec_id="exec_id",
)
@@ -751,8 +737,8 @@ async def get_logs(
async def main() -> None:
await client.bulk_sync.executions.get_logs(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- execution_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ execution_id="execution_id",
)
@@ -837,8 +823,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..c19436f 100644
--- a/src/polytomic/bulk_sync/schedules/client.py
+++ b/src/polytomic/bulk_sync/schedules/client.py
@@ -14,7 +14,7 @@
from ...errors.internal_server_error import InternalServerError
from json.decoder import JSONDecodeError
from ...core.api_error import ApiError as core_api_error_ApiError
-from ...types.v_4_bulk_sync_schedule_api import V4BulkSyncScheduleApi
+from ...types.v4bulk_sync_schedule_api import V4BulkSyncScheduleApi
from ...types.schedule_envelope import ScheduleEnvelope
from ...core.serialization import convert_and_respect_annotation_metadata
from ...errors.bad_request_error import BadRequestError
@@ -51,7 +51,7 @@ def list(self, sync_id: str, *, request_options: typing.Optional[RequestOptions]
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.list(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -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",
),
@@ -251,8 +251,8 @@ def get(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.get(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -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",
),
@@ -459,8 +459,8 @@ def delete(
token="YOUR_TOKEN",
)
client.bulk_sync.schedules.delete(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -549,7 +549,7 @@ async def list(self, sync_id: str, *, request_options: typing.Optional[RequestOp
async def main() -> None:
await client.bulk_sync.schedules.list(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
)
@@ -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",
),
@@ -765,8 +765,8 @@ async def get(
async def main() -> None:
await client.bulk_sync.schedules.get(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
)
@@ -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",
),
@@ -989,8 +989,8 @@ async def delete(
async def main() -> None:
await client.bulk_sync.schedules.delete(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schedule_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ schedule_id="schedule_id",
)
diff --git a/src/polytomic/bulk_sync/schemas/client.py b/src/polytomic/bulk_sync/schemas/client.py
index b20a8a8..218dc1b 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_filter2 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.
@@ -62,7 +62,7 @@ def list(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.list(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -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(
@@ -246,8 +246,8 @@ def get(
token="YOUR_TOKEN",
)
client.bulk_sync.schemas.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="Contact",
+ id="id",
+ schema_id="schema_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.
@@ -466,7 +466,7 @@ async def list(
async def main() -> None:
await client.bulk_sync.schemas.list(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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",
)
@@ -666,8 +666,8 @@ async def get(
async def main() -> None:
await client.bulk_sync.schemas.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="Contact",
+ id="id",
+ schema_id="schema_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/bulk_sync/types/__init__.py b/src/polytomic/bulk_sync/types/__init__.py
index 09a2010..c6510c5 100644
--- a/src/polytomic/bulk_sync/types/__init__.py
+++ b/src/polytomic/bulk_sync/types/__init__.py
@@ -1,6 +1,6 @@
# This file was auto-generated by Fern from our API Definition.
-from .v_2_create_bulk_sync_request_schemas_item import V2CreateBulkSyncRequestSchemasItem
-from .v_2_update_bulk_sync_request_schemas_item import V2UpdateBulkSyncRequestSchemasItem
+from .v2create_bulk_sync_request_schemas_item import V2CreateBulkSyncRequestSchemasItem
+from .v2update_bulk_sync_request_schemas_item import V2UpdateBulkSyncRequestSchemasItem
__all__ = ["V2CreateBulkSyncRequestSchemasItem", "V2UpdateBulkSyncRequestSchemasItem"]
diff --git a/src/polytomic/bulk_sync/types/v_2_create_bulk_sync_request_schemas_item.py b/src/polytomic/bulk_sync/types/v2create_bulk_sync_request_schemas_item.py
similarity index 100%
rename from src/polytomic/bulk_sync/types/v_2_create_bulk_sync_request_schemas_item.py
rename to src/polytomic/bulk_sync/types/v2create_bulk_sync_request_schemas_item.py
diff --git a/src/polytomic/bulk_sync/types/v_2_update_bulk_sync_request_schemas_item.py b/src/polytomic/bulk_sync/types/v2update_bulk_sync_request_schemas_item.py
similarity index 100%
rename from src/polytomic/bulk_sync/types/v_2_update_bulk_sync_request_schemas_item.py
rename to src/polytomic/bulk_sync/types/v2update_bulk_sync_request_schemas_item.py
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..e050b5a 100644
--- a/src/polytomic/connections/client.py
+++ b/src/polytomic/connections/client.py
@@ -118,7 +118,7 @@ def get_connection_type_schema(
token="YOUR_TOKEN",
)
client.connections.get_connection_type_schema(
- id="postgresql",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -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(
@@ -648,7 +636,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non
token="YOUR_TOKEN",
)
client.connections.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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(
@@ -884,8 +866,7 @@ def remove(
token="YOUR_TOKEN",
)
client.connections.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -979,7 +960,7 @@ def get_parameter_values(
token="YOUR_TOKEN",
)
client.connections.get_parameter_values(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1137,7 +1118,7 @@ async def get_connection_type_schema(
async def main() -> None:
await client.connections.get_connection_type_schema(
- id="postgresql",
+ id="id",
)
@@ -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",
)
@@ -1709,7 +1678,7 @@ async def get(
async def main() -> None:
await client.connections.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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",
)
@@ -1961,8 +1924,7 @@ async def remove(
async def main() -> None:
await client.connections.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- force=True,
+ id="id",
)
@@ -2064,7 +2026,7 @@ async def get_parameter_values(
async def main() -> None:
await client.connections.get_parameter_values(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
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..baa2ae0 100644
--- a/src/polytomic/events/client.py
+++ b/src/polytomic/events/client.py
@@ -55,23 +55,13 @@ def list(
Examples
--------
- import datetime
-
from polytomic import Polytomic
client = Polytomic(
version="YOUR_VERSION",
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",
- ),
- )
+ client.events.list()
"""
_response = self._client_wrapper.httpx_client.request(
"api/events",
@@ -219,7 +209,6 @@ async def list(
Examples
--------
import asyncio
- import datetime
from polytomic import AsyncPolytomic
@@ -230,15 +219,7 @@ 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",
- ),
- )
+ await client.events.list()
asyncio.run(main())
diff --git a/src/polytomic/jobs/client.py b/src/polytomic/jobs/client.py
index 32ba6b8..79451ce 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",
+ type="type",
+ id="id",
)
"""
_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",
+ type="type",
+ id="id",
)
diff --git a/src/polytomic/model_sync/client.py b/src/polytomic/model_sync/client.py
index b5a0048..4bad9e4 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.
@@ -80,7 +80,7 @@ def get_source(
token="YOUR_TOKEN",
)
client.model_sync.get_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -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.
@@ -186,7 +186,7 @@ def get_source_fields(
token="YOUR_TOKEN",
)
client.model_sync.get_source_fields(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -294,10 +294,7 @@ def list(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
- client.model_sync.list(
- active=True,
- target_connection_id="0b155265-c537-44c9-9359-a3ceb468a4da",
- )
+ client.model_sync.list()
"""
_response = self._client_wrapper.httpx_client.request(
"api/syncs",
@@ -509,14 +506,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",
),
)
"""
@@ -710,7 +710,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non
token="YOUR_TOKEN",
)
client.model_sync.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -852,17 +852,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",
),
)
"""
@@ -1002,7 +1005,7 @@ def remove(self, id: str, *, request_options: typing.Optional[RequestOptions] =
token="YOUR_TOKEN",
)
client.model_sync.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1095,7 +1098,7 @@ def activate(
token="YOUR_TOKEN",
)
client.model_sync.activate(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
active=True,
)
"""
@@ -1188,7 +1191,7 @@ def cancel(
token="YOUR_TOKEN",
)
client.model_sync.cancel(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1291,7 +1294,7 @@ def start(
token="YOUR_TOKEN",
)
client.model_sync.start(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1405,7 +1408,7 @@ def get_status(self, id: str, *, request_options: typing.Optional[RequestOptions
token="YOUR_TOKEN",
)
client.model_sync.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1468,7 +1471,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 +1479,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.
@@ -1500,7 +1503,7 @@ async def get_source(
async def main() -> None:
await client.model_sync.get_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -1582,7 +1585,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 +1593,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.
@@ -1614,7 +1617,7 @@ async def get_source_fields(
async def main() -> None:
await client.model_sync.get_source_fields(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -1730,10 +1733,7 @@ async def list(
async def main() -> None:
- await client.model_sync.list(
- active=True,
- target_connection_id="0b155265-c537-44c9-9359-a3ceb468a4da",
- )
+ await client.model_sync.list()
asyncio.run(main())
@@ -1953,14 +1953,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",
),
)
@@ -2172,7 +2175,7 @@ async def get(
async def main() -> None:
await client.model_sync.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -2322,17 +2325,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",
),
)
@@ -2480,7 +2486,7 @@ async def remove(self, id: str, *, request_options: typing.Optional[RequestOptio
async def main() -> None:
await client.model_sync.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -2581,7 +2587,7 @@ async def activate(
async def main() -> None:
await client.model_sync.activate(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
active=True,
)
@@ -2682,7 +2688,7 @@ async def cancel(
async def main() -> None:
await client.model_sync.cancel(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -2793,7 +2799,7 @@ async def start(
async def main() -> None:
await client.model_sync.start(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -2917,7 +2923,7 @@ async def get_status(
async def main() -> None:
await client.model_sync.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
diff --git a/src/polytomic/model_sync/executions/client.py b/src/polytomic/model_sync/executions/client.py
index a1e1140..1e20140 100644
--- a/src/polytomic/model_sync/executions/client.py
+++ b/src/polytomic/model_sync/executions/client.py
@@ -17,7 +17,7 @@
from ...types.execution_status import ExecutionStatus
from ...errors.bad_request_error import BadRequestError
from ...errors.forbidden_error import ForbiddenError
-from ...types.v_2_execution_log_type import V2ExecutionLogType
+from ...types.v2execution_log_type import V2ExecutionLogType
from ...types.execution_logs_response_envelope import ExecutionLogsResponseEnvelope
from ...core.client_wrapper import AsyncClientWrapper
@@ -66,10 +66,7 @@ def list(
token="YOUR_TOKEN",
)
client.model_sync.executions.list(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- page_token="AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_completed=True,
- ascending=True,
+ sync_id="sync_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -143,8 +140,8 @@ def get(
token="YOUR_TOKEN",
)
client.model_sync.executions.get(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
)
"""
_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",
)
"""
@@ -341,8 +338,8 @@ def get_log_urls(
token="YOUR_TOKEN",
)
client.model_sync.executions.get_log_urls(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
type="records",
)
"""
@@ -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(
@@ -547,10 +544,7 @@ 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,
+ sync_id="sync_id",
)
@@ -632,8 +626,8 @@ async def get(
async def main() -> None:
await client.model_sync.executions.get(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
)
@@ -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",
)
@@ -846,8 +840,8 @@ async def get_log_urls(
async def main() -> None:
await client.model_sync.executions.get_log_urls(
- sync_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ sync_id="sync_id",
+ id="id",
type="records",
)
@@ -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..480fcd1 100644
--- a/src/polytomic/model_sync/targets/client.py
+++ b/src/polytomic/model_sync/targets/client.py
@@ -16,8 +16,8 @@
from json.decoder import JSONDecodeError
from ...core.api_error import ApiError as core_api_error_ApiError
from ...types.target_response_envelope import TargetResponseEnvelope
-from ...types.v_4_target_objects_response_envelope import V4TargetObjectsResponseEnvelope
-from ...types.v_4_target_property_values_envelope import V4TargetPropertyValuesEnvelope
+from ...types.v4target_objects_response_envelope import V4TargetObjectsResponseEnvelope
+from ...types.v4target_property_values_envelope import V4TargetPropertyValuesEnvelope
from ...core.client_wrapper import AsyncClientWrapper
@@ -59,7 +59,7 @@ def get_target(
token="YOUR_TOKEN",
)
client.model_sync.targets.get_target(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -169,9 +169,8 @@ def get_target_fields(
token="YOUR_TOKEN",
)
client.model_sync.targets.get_target_fields(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- target="database.table",
- refresh=False,
+ id="id",
+ target="target",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -280,7 +279,7 @@ def list(
token="YOUR_TOKEN",
)
client.model_sync.targets.list(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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",
)
"""
@@ -527,7 +526,7 @@ async def get_target(
async def main() -> None:
await client.model_sync.targets.get_target(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -645,9 +644,8 @@ async def get_target_fields(
async def main() -> None:
await client.model_sync.targets.get_target_fields(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- target="database.table",
- refresh=False,
+ id="id",
+ target="target",
)
@@ -764,7 +762,7 @@ async def list(
async def main() -> None:
await client.model_sync.targets.list(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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..de8e49e 100644
--- a/src/polytomic/models/client.py
+++ b/src/polytomic/models/client.py
@@ -15,8 +15,8 @@
from ..errors.internal_server_error import InternalServerError
from json.decoder import JSONDecodeError
from ..core.api_error import ApiError as core_api_error_ApiError
-from ..types.v_2_enricher_configuration import V2EnricherConfiguration
-from ..types.v_2_get_enrichment_input_fields_response_envelope import V2GetEnrichmentInputFieldsResponseEnvelope
+from ..types.v2enricher_configuration import V2EnricherConfiguration
+from ..types.v2get_enrichment_input_fields_response_envelope import V2GetEnrichmentInputFieldsResponseEnvelope
from ..types.model_model_field_request import ModelModelFieldRequest
from ..types.enrichment import Enrichment
from ..types.model_relation import ModelRelation
@@ -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.
@@ -65,7 +65,7 @@ def get_enrichment_source(
token="YOUR_TOKEN",
)
client.models.get_enrichment_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -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(
@@ -634,7 +634,7 @@ def get(
token="YOUR_TOKEN",
)
client.models.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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(
@@ -879,7 +878,7 @@ def remove(
token="YOUR_TOKEN",
)
client.models.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -967,7 +966,7 @@ def sample(
token="YOUR_TOKEN",
)
client.models.sample(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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.
@@ -1073,7 +1072,7 @@ async def get_enrichment_source(
async def main() -> None:
await client.models.get_enrichment_source(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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",
)
@@ -1682,7 +1681,7 @@ async def get(
async def main() -> None:
await client.models.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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",
)
@@ -1943,7 +1941,7 @@ async def remove(
async def main() -> None:
await client.models.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -2039,7 +2037,7 @@ async def sample(
async def main() -> None:
await client.models.sample(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
diff --git a/src/polytomic/notifications/client.py b/src/polytomic/notifications/client.py
index aed56ee..290abf1 100644
--- a/src/polytomic/notifications/client.py
+++ b/src/polytomic/notifications/client.py
@@ -3,7 +3,7 @@
import typing
from ..core.client_wrapper import SyncClientWrapper
from ..core.request_options import RequestOptions
-from ..types.v_4_global_error_subscribers_response import V4GlobalErrorSubscribersResponse
+from ..types.v4global_error_subscribers_response import V4GlobalErrorSubscribersResponse
from ..core.pydantic_utilities import parse_obj_as
from ..errors.unauthorized_error import UnauthorizedError
from ..types.rest_err_response import RestErrResponse
diff --git a/src/polytomic/organization/client.py b/src/polytomic/organization/client.py
index 8929e07..c02bfb5 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(
@@ -239,7 +239,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non
token="YOUR_TOKEN",
)
client.organization.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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(
@@ -432,7 +432,7 @@ def remove(self, id: str, *, request_options: typing.Optional[RequestOptions] =
token="YOUR_TOKEN",
)
client.organization.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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",
)
@@ -717,7 +717,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions]
async def main() -> None:
await client.organization.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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",
)
@@ -926,7 +926,7 @@ async def remove(self, id: str, *, request_options: typing.Optional[RequestOptio
async def main() -> None:
await client.organization.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
diff --git a/src/polytomic/permissions/policies/client.py b/src/polytomic/permissions/policies/client.py
index a0fc74a..a8a9950 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(
@@ -229,7 +229,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non
token="YOUR_TOKEN",
)
client.permissions.policies.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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(
@@ -424,7 +424,7 @@ def remove(self, id: str, *, request_options: typing.Optional[RequestOptions] =
token="YOUR_TOKEN",
)
client.permissions.policies.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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",
)
@@ -707,7 +707,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions]
async def main() -> None:
await client.permissions.policies.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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",
)
@@ -918,7 +918,7 @@ async def remove(self, id: str, *, request_options: typing.Optional[RequestOptio
async def main() -> None:
await client.permissions.policies.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
diff --git a/src/polytomic/permissions/roles/client.py b/src/polytomic/permissions/roles/client.py
index b7a80bc..ee1c8db 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(
@@ -221,7 +221,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non
token="YOUR_TOKEN",
)
client.permissions.roles.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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(
@@ -400,7 +400,7 @@ def remove(self, id: str, *, request_options: typing.Optional[RequestOptions] =
token="YOUR_TOKEN",
)
client.permissions.roles.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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",
)
@@ -677,7 +677,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions]
async def main() -> None:
await client.permissions.roles.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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",
)
@@ -872,7 +872,7 @@ async def remove(self, id: str, *, request_options: typing.Optional[RequestOptio
async def main() -> None:
await client.permissions.roles.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
diff --git a/src/polytomic/query_runner/client.py b/src/polytomic/query_runner/client.py
index cd5fc5b..80a1812 100644
--- a/src/polytomic/query_runner/client.py
+++ b/src/polytomic/query_runner/client.py
@@ -3,7 +3,7 @@
import typing
from ..core.client_wrapper import SyncClientWrapper
from ..core.request_options import RequestOptions
-from ..types.v_4_run_query_envelope import V4RunQueryEnvelope
+from ..types.v4run_query_envelope import V4RunQueryEnvelope
from ..core.jsonable_encoder import jsonable_encoder
from ..core.pydantic_utilities import parse_obj_as
from ..errors.bad_request_error import BadRequestError
@@ -14,7 +14,7 @@
from ..errors.internal_server_error import InternalServerError
from json.decoder import JSONDecodeError
from ..core.api_error import ApiError as core_api_error_ApiError
-from ..types.v_4_query_results_envelope import V4QueryResultsEnvelope
+from ..types.v4query_results_envelope import V4QueryResultsEnvelope
from ..core.client_wrapper import AsyncClientWrapper
# this is used as the default value for optional parameters
@@ -57,8 +57,7 @@ def run_query(
token="YOUR_TOKEN",
)
client.query_runner.run_query(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- query="SELECT * FROM table",
+ connection_id="connection_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -155,7 +154,7 @@ def get_query(
token="YOUR_TOKEN",
)
client.query_runner.get_query(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -262,8 +261,7 @@ async def run_query(
async def main() -> None:
await client.query_runner.run_query(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- query="SELECT * FROM table",
+ connection_id="connection_id",
)
@@ -368,7 +366,7 @@ async def get_query(
async def main() -> None:
await client.query_runner.get_query(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
diff --git a/src/polytomic/schemas/client.py b/src/polytomic/schemas/client.py
index 04edb01..8a8986a 100644
--- a/src/polytomic/schemas/client.py
+++ b/src/polytomic/schemas/client.py
@@ -2,7 +2,7 @@
import typing
from ..core.client_wrapper import SyncClientWrapper
-from ..types.v_4_user_field_request import V4UserFieldRequest
+from ..types.v4user_field_request import V4UserFieldRequest
from ..core.request_options import RequestOptions
from ..core.jsonable_encoder import jsonable_encoder
from ..core.serialization import convert_and_respect_annotation_metadata
@@ -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(
@@ -162,9 +162,9 @@ def delete_field(
token="YOUR_TOKEN",
)
client.schemas.delete_field(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
- field_id="first_name",
+ connection_id="connection_id",
+ schema_id="schema_id",
+ field_id="field_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(
@@ -509,7 +509,7 @@ def get_status(
token="YOUR_TOKEN",
)
client.schemas.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -598,8 +598,8 @@ def get(
token="YOUR_TOKEN",
)
client.schemas.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ id="id",
+ schema_id="schema_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -688,8 +688,8 @@ def get_records(
token="YOUR_TOKEN",
)
client.schemas.get_records(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ id="id",
+ schema_id="schema_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",
)
@@ -911,9 +911,9 @@ async def delete_field(
async def main() -> None:
await client.schemas.delete_field(
- connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
- field_id="first_name",
+ connection_id="connection_id",
+ schema_id="schema_id",
+ field_id="field_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",
)
@@ -1290,7 +1290,7 @@ async def get_status(
async def main() -> None:
await client.schemas.get_status(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -1387,8 +1387,8 @@ async def get(
async def main() -> None:
await client.schemas.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ id="id",
+ schema_id="schema_id",
)
@@ -1485,8 +1485,8 @@ async def get_records(
async def main() -> None:
await client.schemas.get_records(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
- schema_id="public.users",
+ id="id",
+ schema_id="schema_id",
)
diff --git a/src/polytomic/types/__init__.py b/src/polytomic/types/__init__.py
index fdf1e45..6ddac18 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_filter2 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_value2 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_details2 import PaginationDetails2
from .pick_value import PickValue
from .policy_action import PolicyAction
from .policy_response import PolicyResponse
@@ -172,30 +175,30 @@
from .user_envelope import UserEnvelope
from .util_enum_value import UtilEnumValue
from .util_field_type import UtilFieldType
-from .v_2_connection_form import V2ConnectionForm
-from .v_2_enricher_configuration import V2EnricherConfiguration
-from .v_2_enricher_mapping import V2EnricherMapping
-from .v_2_execution_log_type import V2ExecutionLogType
-from .v_2_get_enrichment_input_fields_response_envelope import V2GetEnrichmentInputFieldsResponseEnvelope
-from .v_2_ordered_map_string_github_com_invopop_jsonschema_schema import (
+from .v2connection_form import V2ConnectionForm
+from .v2enricher_configuration import V2EnricherConfiguration
+from .v2enricher_mapping import V2EnricherMapping
+from .v2execution_log_type import V2ExecutionLogType
+from .v2get_enrichment_input_fields_response_envelope import V2GetEnrichmentInputFieldsResponseEnvelope
+from .v2ordered_map_string_github_com_invopop_jsonschema_schema import (
V2OrderedMapStringGithubComInvopopJsonschemaSchema,
)
-from .v_2_sample_record import V2SampleRecord
-from .v_2_schema_configuration_fields_item import V2SchemaConfigurationFieldsItem
-from .v_4_bulk_sync_execution_logs import V4BulkSyncExecutionLogs
-from .v_4_bulk_sync_execution_logs_envelope import V4BulkSyncExecutionLogsEnvelope
-from .v_4_bulk_sync_schedule_api import V4BulkSyncScheduleApi
-from .v_4_export_sync_logs_envelope import V4ExportSyncLogsEnvelope
-from .v_4_export_sync_logs_response import V4ExportSyncLogsResponse
-from .v_4_global_error_subscribers_response import V4GlobalErrorSubscribersResponse
-from .v_4_query_results_envelope import V4QueryResultsEnvelope
-from .v_4_run_query_envelope import V4RunQueryEnvelope
-from .v_4_run_query_result import V4RunQueryResult
-from .v_4_target_creator import V4TargetCreator
-from .v_4_target_objects_response_envelope import V4TargetObjectsResponseEnvelope
-from .v_4_target_property_values import V4TargetPropertyValues
-from .v_4_target_property_values_envelope import V4TargetPropertyValuesEnvelope
-from .v_4_user_field_request import V4UserFieldRequest
+from .v2sample_record import V2SampleRecord
+from .v2schema_configuration_fields_item import V2SchemaConfigurationFieldsItem
+from .v4bulk_sync_execution_logs import V4BulkSyncExecutionLogs
+from .v4bulk_sync_execution_logs_envelope import V4BulkSyncExecutionLogsEnvelope
+from .v4bulk_sync_schedule_api import V4BulkSyncScheduleApi
+from .v4export_sync_logs_envelope import V4ExportSyncLogsEnvelope
+from .v4export_sync_logs_response import V4ExportSyncLogsResponse
+from .v4global_error_subscribers_response import V4GlobalErrorSubscribersResponse
+from .v4query_results_envelope import V4QueryResultsEnvelope
+from .v4run_query_envelope import V4RunQueryEnvelope
+from .v4run_query_result import V4RunQueryResult
+from .v4target_creator import V4TargetCreator
+from .v4target_objects_response_envelope import V4TargetObjectsResponseEnvelope
+from .v4target_property_values import V4TargetPropertyValues
+from .v4target_property_values_envelope import V4TargetPropertyValuesEnvelope
+from .v4user_field_request import V4UserFieldRequest
from .webhook import Webhook
from .webhook_envelope import WebhookEnvelope
from .webhook_list_envelope import WebhookListEnvelope
@@ -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_filter2.py b/src/polytomic/types/bulk_filter2.py
new file mode 100644
index 0000000..0d6e162
--- /dev/null
+++ b/src/polytomic/types/bulk_filter2.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..2c6f491 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_filter2 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_value2.py b/src/polytomic/types/configuration_value2.py
new file mode 100644
index 0000000..73ef8bc
--- /dev/null
+++ b/src/polytomic/types/configuration_value2.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/connection_response_schema.py b/src/polytomic/types/connection_response_schema.py
index cf08ff0..29efa76 100644
--- a/src/polytomic/types/connection_response_schema.py
+++ b/src/polytomic/types/connection_response_schema.py
@@ -1,7 +1,9 @@
# This file was auto-generated by Fern from our API Definition.
from ..core.pydantic_utilities import UniversalBaseModel
+import typing_extensions
import typing
+from ..core.serialization import FieldMetadata
import pydantic
import datetime as dt
from .common_output_actor import CommonOutputActor
@@ -10,7 +12,9 @@
class ConnectionResponseSchema(UniversalBaseModel):
- api_calls_last_24_hours: typing.Optional[int] = pydantic.Field(default=None)
+ api_calls_last24hours: typing_extensions.Annotated[
+ typing.Optional[int], FieldMetadata(alias="api_calls_last_24_hours")
+ ] = pydantic.Field(default=None)
"""
API calls made to service in the last 24h (supported integrations only).
"""
diff --git a/src/polytomic/types/connection_type.py b/src/polytomic/types/connection_type.py
index fe2bd1f..9e4fd64 100644
--- a/src/polytomic/types/connection_type.py
+++ b/src/polytomic/types/connection_type.py
@@ -4,7 +4,7 @@
from .backend_connection_capabilities import BackendConnectionCapabilities
import typing_extensions
import typing
-from .v_2_connection_form import V2ConnectionForm
+from .v2connection_form import V2ConnectionForm
from ..core.serialization import FieldMetadata
from .backend_o_auth_prompt import BackendOAuthPrompt
from ..core.pydantic_utilities import IS_PYDANTIC_V2
diff --git a/src/polytomic/types/enrichment.py b/src/polytomic/types/enrichment.py
index 7def672..d326c4e 100644
--- a/src/polytomic/types/enrichment.py
+++ b/src/polytomic/types/enrichment.py
@@ -2,10 +2,10 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
-from .v_2_enricher_configuration import V2EnricherConfiguration
+from .v2enricher_configuration import V2EnricherConfiguration
import pydantic
from .model_field import ModelField
-from .v_2_enricher_mapping import V2EnricherMapping
+from .v2enricher_mapping import V2EnricherMapping
from ..core.pydantic_utilities import IS_PYDANTIC_V2
diff --git a/src/polytomic/types/jsonschema_schema.py b/src/polytomic/types/jsonschema_schema.py
index cc657fb..335b46c 100644
--- a/src/polytomic/types/jsonschema_schema.py
+++ b/src/polytomic/types/jsonschema_schema.py
@@ -5,7 +5,7 @@
import typing_extensions
import typing
from ..core.serialization import FieldMetadata
-from .v_2_ordered_map_string_github_com_invopop_jsonschema_schema import (
+from .v2ordered_map_string_github_com_invopop_jsonschema_schema import (
V2OrderedMapStringGithubComInvopopJsonschemaSchema,
)
from ..core.pydantic_utilities import IS_PYDANTIC_V2
diff --git a/src/polytomic/types/list_bulk_sync_executions_envelope.py b/src/polytomic/types/list_bulk_sync_executions_envelope.py
index a63f897..fc60a5e 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_details2 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_sample.py b/src/polytomic/types/model_sample.py
index 10ce391..d07a40b 100644
--- a/src/polytomic/types/model_sample.py
+++ b/src/polytomic/types/model_sample.py
@@ -2,7 +2,7 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
-from .v_2_sample_record import V2SampleRecord
+from .v2sample_record import V2SampleRecord
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
diff --git a/src/polytomic/types/model_sync_source_meta_response.py b/src/polytomic/types/model_sync_source_meta_response.py
index 552befd..578fbd5 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_value2 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_details2.py b/src/polytomic/types/pagination_details2.py
new file mode 100644
index 0000000..eac847e
--- /dev/null
+++ b/src/polytomic/types/pagination_details2.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/types/schema_configuration.py b/src/polytomic/types/schema_configuration.py
index 530c3f4..36bf064 100644
--- a/src/polytomic/types/schema_configuration.py
+++ b/src/polytomic/types/schema_configuration.py
@@ -4,7 +4,7 @@
import typing
import datetime as dt
import pydantic
-from .v_2_schema_configuration_fields_item import V2SchemaConfigurationFieldsItem
+from .v2schema_configuration_fields_item import V2SchemaConfigurationFieldsItem
from .bulk_filter import BulkFilter
from ..core.pydantic_utilities import IS_PYDANTIC_V2
diff --git a/src/polytomic/types/v_2_connection_form.py b/src/polytomic/types/v2connection_form.py
similarity index 100%
rename from src/polytomic/types/v_2_connection_form.py
rename to src/polytomic/types/v2connection_form.py
diff --git a/src/polytomic/types/v_2_enricher_configuration.py b/src/polytomic/types/v2enricher_configuration.py
similarity index 100%
rename from src/polytomic/types/v_2_enricher_configuration.py
rename to src/polytomic/types/v2enricher_configuration.py
diff --git a/src/polytomic/types/v_2_enricher_mapping.py b/src/polytomic/types/v2enricher_mapping.py
similarity index 100%
rename from src/polytomic/types/v_2_enricher_mapping.py
rename to src/polytomic/types/v2enricher_mapping.py
diff --git a/src/polytomic/types/v_2_execution_log_type.py b/src/polytomic/types/v2execution_log_type.py
similarity index 100%
rename from src/polytomic/types/v_2_execution_log_type.py
rename to src/polytomic/types/v2execution_log_type.py
diff --git a/src/polytomic/types/v_2_get_enrichment_input_fields_response_envelope.py b/src/polytomic/types/v2get_enrichment_input_fields_response_envelope.py
similarity index 100%
rename from src/polytomic/types/v_2_get_enrichment_input_fields_response_envelope.py
rename to src/polytomic/types/v2get_enrichment_input_fields_response_envelope.py
diff --git a/src/polytomic/types/v_2_ordered_map_string_github_com_invopop_jsonschema_schema.py b/src/polytomic/types/v2ordered_map_string_github_com_invopop_jsonschema_schema.py
similarity index 100%
rename from src/polytomic/types/v_2_ordered_map_string_github_com_invopop_jsonschema_schema.py
rename to src/polytomic/types/v2ordered_map_string_github_com_invopop_jsonschema_schema.py
diff --git a/src/polytomic/types/v_2_sample_record.py b/src/polytomic/types/v2sample_record.py
similarity index 100%
rename from src/polytomic/types/v_2_sample_record.py
rename to src/polytomic/types/v2sample_record.py
diff --git a/src/polytomic/types/v_2_schema_configuration_fields_item.py b/src/polytomic/types/v2schema_configuration_fields_item.py
similarity index 100%
rename from src/polytomic/types/v_2_schema_configuration_fields_item.py
rename to src/polytomic/types/v2schema_configuration_fields_item.py
diff --git a/src/polytomic/types/v_4_bulk_sync_execution_logs.py b/src/polytomic/types/v4bulk_sync_execution_logs.py
similarity index 100%
rename from src/polytomic/types/v_4_bulk_sync_execution_logs.py
rename to src/polytomic/types/v4bulk_sync_execution_logs.py
diff --git a/src/polytomic/types/v_4_bulk_sync_execution_logs_envelope.py b/src/polytomic/types/v4bulk_sync_execution_logs_envelope.py
similarity index 90%
rename from src/polytomic/types/v_4_bulk_sync_execution_logs_envelope.py
rename to src/polytomic/types/v4bulk_sync_execution_logs_envelope.py
index dc1a325..0107fa9 100644
--- a/src/polytomic/types/v_4_bulk_sync_execution_logs_envelope.py
+++ b/src/polytomic/types/v4bulk_sync_execution_logs_envelope.py
@@ -2,7 +2,7 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
-from .v_4_bulk_sync_execution_logs import V4BulkSyncExecutionLogs
+from .v4bulk_sync_execution_logs import V4BulkSyncExecutionLogs
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
diff --git a/src/polytomic/types/v_4_bulk_sync_schedule_api.py b/src/polytomic/types/v4bulk_sync_schedule_api.py
similarity index 100%
rename from src/polytomic/types/v_4_bulk_sync_schedule_api.py
rename to src/polytomic/types/v4bulk_sync_schedule_api.py
diff --git a/src/polytomic/types/v_4_export_sync_logs_envelope.py b/src/polytomic/types/v4export_sync_logs_envelope.py
similarity index 91%
rename from src/polytomic/types/v_4_export_sync_logs_envelope.py
rename to src/polytomic/types/v4export_sync_logs_envelope.py
index c4d35c0..3d7ca23 100644
--- a/src/polytomic/types/v_4_export_sync_logs_envelope.py
+++ b/src/polytomic/types/v4export_sync_logs_envelope.py
@@ -2,7 +2,7 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
-from .v_4_export_sync_logs_response import V4ExportSyncLogsResponse
+from .v4export_sync_logs_response import V4ExportSyncLogsResponse
from .job_response import JobResponse
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
diff --git a/src/polytomic/types/v_4_export_sync_logs_response.py b/src/polytomic/types/v4export_sync_logs_response.py
similarity index 100%
rename from src/polytomic/types/v_4_export_sync_logs_response.py
rename to src/polytomic/types/v4export_sync_logs_response.py
diff --git a/src/polytomic/types/v_4_global_error_subscribers_response.py b/src/polytomic/types/v4global_error_subscribers_response.py
similarity index 100%
rename from src/polytomic/types/v_4_global_error_subscribers_response.py
rename to src/polytomic/types/v4global_error_subscribers_response.py
diff --git a/src/polytomic/types/v_4_query_results_envelope.py b/src/polytomic/types/v4query_results_envelope.py
similarity index 93%
rename from src/polytomic/types/v_4_query_results_envelope.py
rename to src/polytomic/types/v4query_results_envelope.py
index ddadfc2..24e00e7 100644
--- a/src/polytomic/types/v_4_query_results_envelope.py
+++ b/src/polytomic/types/v4query_results_envelope.py
@@ -2,7 +2,7 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
-from .v_4_run_query_result import V4RunQueryResult
+from .v4run_query_result import V4RunQueryResult
from .pagination import Pagination
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
diff --git a/src/polytomic/types/v_4_run_query_envelope.py b/src/polytomic/types/v4run_query_envelope.py
similarity index 92%
rename from src/polytomic/types/v_4_run_query_envelope.py
rename to src/polytomic/types/v4run_query_envelope.py
index 9e16f20..ec8352b 100644
--- a/src/polytomic/types/v_4_run_query_envelope.py
+++ b/src/polytomic/types/v4run_query_envelope.py
@@ -2,7 +2,7 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
-from .v_4_run_query_result import V4RunQueryResult
+from .v4run_query_result import V4RunQueryResult
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
diff --git a/src/polytomic/types/v_4_run_query_result.py b/src/polytomic/types/v4run_query_result.py
similarity index 100%
rename from src/polytomic/types/v_4_run_query_result.py
rename to src/polytomic/types/v4run_query_result.py
diff --git a/src/polytomic/types/v_4_target_creator.py b/src/polytomic/types/v4target_creator.py
similarity index 100%
rename from src/polytomic/types/v_4_target_creator.py
rename to src/polytomic/types/v4target_creator.py
diff --git a/src/polytomic/types/v_4_target_objects_response_envelope.py b/src/polytomic/types/v4target_objects_response_envelope.py
similarity index 93%
rename from src/polytomic/types/v_4_target_objects_response_envelope.py
rename to src/polytomic/types/v4target_objects_response_envelope.py
index 178d0f9..144febe 100644
--- a/src/polytomic/types/v_4_target_objects_response_envelope.py
+++ b/src/polytomic/types/v4target_objects_response_envelope.py
@@ -3,7 +3,7 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
from .target_object import TargetObject
-from .v_4_target_creator import V4TargetCreator
+from .v4target_creator import V4TargetCreator
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
diff --git a/src/polytomic/types/v_4_target_property_values.py b/src/polytomic/types/v4target_property_values.py
similarity index 100%
rename from src/polytomic/types/v_4_target_property_values.py
rename to src/polytomic/types/v4target_property_values.py
diff --git a/src/polytomic/types/v_4_target_property_values_envelope.py b/src/polytomic/types/v4target_property_values_envelope.py
similarity index 90%
rename from src/polytomic/types/v_4_target_property_values_envelope.py
rename to src/polytomic/types/v4target_property_values_envelope.py
index 1986743..9a97e3a 100644
--- a/src/polytomic/types/v_4_target_property_values_envelope.py
+++ b/src/polytomic/types/v4target_property_values_envelope.py
@@ -2,7 +2,7 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing
-from .v_4_target_property_values import V4TargetPropertyValues
+from .v4target_property_values import V4TargetPropertyValues
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
diff --git a/src/polytomic/types/v_4_user_field_request.py b/src/polytomic/types/v4user_field_request.py
similarity index 100%
rename from src/polytomic/types/v_4_user_field_request.py
rename to src/polytomic/types/v4user_field_request.py
diff --git a/src/polytomic/users/client.py b/src/polytomic/users/client.py
index aa0148e..5b0f28a 100644
--- a/src/polytomic/users/client.py
+++ b/src/polytomic/users/client.py
@@ -53,7 +53,7 @@ def list(self, org_id: str, *, request_options: typing.Optional[RequestOptions]
token="YOUR_TOKEN",
)
client.users.list(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ org_id="org_id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -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",
+ org_id="org_id",
+ id="id",
)
"""
_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",
+ org_id="org_id",
+ id="id",
)
"""
_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(
@@ -593,7 +592,7 @@ async def list(self, org_id: str, *, request_options: typing.Optional[RequestOpt
async def main() -> None:
await client.users.list(
- org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ org_id="org_id",
)
@@ -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",
+ org_id="org_id",
+ id="id",
)
@@ -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",
+ org_id="org_id",
+ id="id",
)
@@ -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..3ea06fa 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(
@@ -223,7 +223,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non
token="YOUR_TOKEN",
)
client.webhooks.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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(
@@ -393,7 +393,7 @@ def remove(self, id: str, *, request_options: typing.Optional[RequestOptions] =
token="YOUR_TOKEN",
)
client.webhooks.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -462,7 +462,7 @@ def disable(self, id: str, *, request_options: typing.Optional[RequestOptions] =
token="YOUR_TOKEN",
)
client.webhooks.disable(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_response = self._client_wrapper.httpx_client.request(
@@ -537,7 +537,7 @@ def enable(self, id: str, *, request_options: typing.Optional[RequestOptions] =
token="YOUR_TOKEN",
)
client.webhooks.enable(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
"""
_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",
)
@@ -813,7 +813,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions]
async def main() -> None:
await client.webhooks.get(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -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",
)
@@ -999,7 +999,7 @@ async def remove(self, id: str, *, request_options: typing.Optional[RequestOptio
async def main() -> None:
await client.webhooks.remove(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -1076,7 +1076,7 @@ async def disable(self, id: str, *, request_options: typing.Optional[RequestOpti
async def main() -> None:
await client.webhooks.disable(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)
@@ -1159,7 +1159,7 @@ async def enable(self, id: str, *, request_options: typing.Optional[RequestOptio
async def main() -> None:
await client.webhooks.enable(
- id="248df4b7-aa70-47b8-a036-33ac447e668d",
+ id="id",
)