Skip to content

Commit 4be7ff1

Browse files
SDK regeneration
1 parent 9bce25e commit 4be7ff1

File tree

17 files changed

+164
-87
lines changed

17 files changed

+164
-87
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "polytomic"
33

44
[tool.poetry]
55
name = "polytomic"
6-
version = "1.15.5"
6+
version = "0.0.0"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,7 @@ client.models.get_enrichment_source(
25482548
<dl>
25492549
<dd>
25502550

2551-
**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
2551+
**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`
25522552

25532553
</dd>
25542554
</dl>
@@ -3432,7 +3432,7 @@ client.model_sync.get_source(
34323432
<dl>
34333433
<dd>
34343434

3435-
**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
3435+
**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`
34363436

34373437
</dd>
34383438
</dl>
@@ -3497,7 +3497,7 @@ client.model_sync.get_source_fields(
34973497
<dl>
34983498
<dd>
34993499

3500-
**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
3500+
**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`
35013501

35023502
</dd>
35033503
</dl>
@@ -4663,8 +4663,8 @@ client = Polytomic(
46634663
token="YOUR_TOKEN",
46644664
)
46654665
client.jobs.get(
4666-
id="248df4b7-aa70-47b8-a036-33ac447e668d",
46674666
type="createmodel",
4667+
id="248df4b7-aa70-47b8-a036-33ac447e668d",
46684668
)
46694669

46704670
```
@@ -4681,15 +4681,15 @@ client.jobs.get(
46814681
<dl>
46824682
<dd>
46834683

4684-
**id:** `str`
4684+
**type:** `str`
46854685

46864686
</dd>
46874687
</dl>
46884688

46894689
<dl>
46904690
<dd>
46914691

4692-
**type:** `str`
4692+
**id:** `str`
46934693

46944694
</dd>
46954695
</dl>
@@ -5519,8 +5519,8 @@ client = Polytomic(
55195519
token="YOUR_TOKEN",
55205520
)
55215521
client.users.get(
5522-
id="248df4b7-aa70-47b8-a036-33ac447e668d",
55235522
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
5523+
id="248df4b7-aa70-47b8-a036-33ac447e668d",
55245524
)
55255525

55265526
```
@@ -5537,15 +5537,15 @@ client.users.get(
55375537
<dl>
55385538
<dd>
55395539

5540-
**id:** `str`
5540+
**org_id:** `str`
55415541

55425542
</dd>
55435543
</dl>
55445544

55455545
<dl>
55465546
<dd>
55475547

5548-
**org_id:** `str`
5548+
**id:** `str`
55495549

55505550
</dd>
55515551
</dl>
@@ -5601,8 +5601,8 @@ client = Polytomic(
56015601
token="YOUR_TOKEN",
56025602
)
56035603
client.users.update(
5604-
id="248df4b7-aa70-47b8-a036-33ac447e668d",
56055604
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
5605+
id="248df4b7-aa70-47b8-a036-33ac447e668d",
56065606
email="mail@example.com",
56075607
)
56085608

@@ -5620,15 +5620,15 @@ client.users.update(
56205620
<dl>
56215621
<dd>
56225622

5623-
**id:** `str`
5623+
**org_id:** `str`
56245624

56255625
</dd>
56265626
</dl>
56275627

56285628
<dl>
56295629
<dd>
56305630

5631-
**org_id:** `str`
5631+
**id:** `str`
56325632

56335633
</dd>
56345634
</dl>
@@ -5700,8 +5700,8 @@ client = Polytomic(
57005700
token="YOUR_TOKEN",
57015701
)
57025702
client.users.remove(
5703-
id="248df4b7-aa70-47b8-a036-33ac447e668d",
57045703
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
5704+
id="248df4b7-aa70-47b8-a036-33ac447e668d",
57055705
)
57065706

57075707
```
@@ -5718,15 +5718,15 @@ client.users.remove(
57185718
<dl>
57195719
<dd>
57205720

5721-
**id:** `str`
5721+
**org_id:** `str`
57225722

57235723
</dd>
57245724
</dl>
57255725

57265726
<dl>
57275727
<dd>
57285728

5729-
**org_id:** `str`
5729+
**id:** `str`
57305730

57315731
</dd>
57325732
</dl>
@@ -6762,7 +6762,7 @@ client.bulk_sync.schemas.list(
67626762
<dl>
67636763
<dd>
67646764

6765-
**filters:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]`
6765+
**filters:** `typing.Optional[typing.Dict[str, str]]`
67666766

67676767
</dd>
67686768
</dl>
@@ -6999,7 +6999,7 @@ client.bulk_sync.schemas.update(
69996999
<dl>
70007000
<dd>
70017001

7002-
**filters:** `typing.Optional[typing.Sequence[BulkFilter]]`
7002+
**filters:** `typing.Optional[typing.Sequence[BulkFilter2]]`
70037003

70047004
</dd>
70057005
</dl>

src/polytomic/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
BulkFetchMode,
1616
BulkField,
1717
BulkFilter,
18+
BulkFilter2,
1819
BulkItemizedSchedule,
1920
BulkMultiScheduleConfiguration,
2021
BulkNormalizeNames,
@@ -50,6 +51,7 @@
5051
CancelModelSyncResponseEnvelope,
5152
CommonOutputActor,
5253
ConfigurationValue,
54+
ConfigurationValue2,
5355
ConnectCardResponse,
5456
ConnectCardResponseEnvelope,
5557
ConnectionListResponseEnvelope,
@@ -122,6 +124,7 @@
122124
Override,
123125
Pagination,
124126
PaginationDetails,
127+
PaginationDetails2,
125128
PickValue,
126129
PolicyAction,
127130
PolicyResponse,
@@ -247,6 +250,7 @@
247250
"BulkFetchMode",
248251
"BulkField",
249252
"BulkFilter",
253+
"BulkFilter2",
250254
"BulkItemizedSchedule",
251255
"BulkMultiScheduleConfiguration",
252256
"BulkNormalizeNames",
@@ -282,6 +286,7 @@
282286
"CancelModelSyncResponseEnvelope",
283287
"CommonOutputActor",
284288
"ConfigurationValue",
289+
"ConfigurationValue2",
285290
"ConflictError",
286291
"ConnectCardResponse",
287292
"ConnectCardResponseEnvelope",
@@ -358,6 +363,7 @@
358363
"Override",
359364
"Pagination",
360365
"PaginationDetails",
366+
"PaginationDetails2",
361367
"PickValue",
362368
"PolicyAction",
363369
"PolicyResponse",

src/polytomic/bulk_sync/schemas/client.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from ...types.bulk_schema_envelope import BulkSchemaEnvelope
2121
import datetime as dt
2222
from ...types.update_bulk_field import UpdateBulkField
23-
from ...types.bulk_filter import BulkFilter
23+
from ...types.bulk_filter_2 import BulkFilter2
2424
from ...core.client_wrapper import AsyncClientWrapper
2525

2626
# this is used as the default value for optional parameters
@@ -35,15 +35,15 @@ def list(
3535
self,
3636
id: str,
3737
*,
38-
filters: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None,
38+
filters: typing.Optional[typing.Dict[str, str]] = None,
3939
request_options: typing.Optional[RequestOptions] = None,
4040
) -> ListBulkSchema:
4141
"""
4242
Parameters
4343
----------
4444
id : str
4545
46-
filters : typing.Optional[typing.Dict[str, typing.Optional[str]]]
46+
filters : typing.Optional[typing.Dict[str, str]]
4747
4848
request_options : typing.Optional[RequestOptions]
4949
Request-specific configuration.
@@ -298,7 +298,7 @@ def update(
298298
disable_data_cutoff: typing.Optional[bool] = OMIT,
299299
enabled: typing.Optional[bool] = OMIT,
300300
fields: typing.Optional[typing.Sequence[UpdateBulkField]] = OMIT,
301-
filters: typing.Optional[typing.Sequence[BulkFilter]] = OMIT,
301+
filters: typing.Optional[typing.Sequence[BulkFilter2]] = OMIT,
302302
partition_key: typing.Optional[str] = OMIT,
303303
tracking_field: typing.Optional[str] = OMIT,
304304
user_output_name: typing.Optional[str] = OMIT,
@@ -319,7 +319,7 @@ def update(
319319
320320
fields : typing.Optional[typing.Sequence[UpdateBulkField]]
321321
322-
filters : typing.Optional[typing.Sequence[BulkFilter]]
322+
filters : typing.Optional[typing.Sequence[BulkFilter2]]
323323
324324
partition_key : typing.Optional[str]
325325
@@ -359,7 +359,7 @@ def update(
359359
object_=fields, annotation=typing.Sequence[UpdateBulkField], direction="write"
360360
),
361361
"filters": convert_and_respect_annotation_metadata(
362-
object_=filters, annotation=typing.Sequence[BulkFilter], direction="write"
362+
object_=filters, annotation=typing.Sequence[BulkFilter2], direction="write"
363363
),
364364
"partition_key": partition_key,
365365
"tracking_field": tracking_field,
@@ -434,15 +434,15 @@ async def list(
434434
self,
435435
id: str,
436436
*,
437-
filters: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None,
437+
filters: typing.Optional[typing.Dict[str, str]] = None,
438438
request_options: typing.Optional[RequestOptions] = None,
439439
) -> ListBulkSchema:
440440
"""
441441
Parameters
442442
----------
443443
id : str
444444
445-
filters : typing.Optional[typing.Dict[str, typing.Optional[str]]]
445+
filters : typing.Optional[typing.Dict[str, str]]
446446
447447
request_options : typing.Optional[RequestOptions]
448448
Request-specific configuration.
@@ -721,7 +721,7 @@ async def update(
721721
disable_data_cutoff: typing.Optional[bool] = OMIT,
722722
enabled: typing.Optional[bool] = OMIT,
723723
fields: typing.Optional[typing.Sequence[UpdateBulkField]] = OMIT,
724-
filters: typing.Optional[typing.Sequence[BulkFilter]] = OMIT,
724+
filters: typing.Optional[typing.Sequence[BulkFilter2]] = OMIT,
725725
partition_key: typing.Optional[str] = OMIT,
726726
tracking_field: typing.Optional[str] = OMIT,
727727
user_output_name: typing.Optional[str] = OMIT,
@@ -742,7 +742,7 @@ async def update(
742742
743743
fields : typing.Optional[typing.Sequence[UpdateBulkField]]
744744
745-
filters : typing.Optional[typing.Sequence[BulkFilter]]
745+
filters : typing.Optional[typing.Sequence[BulkFilter2]]
746746
747747
partition_key : typing.Optional[str]
748748
@@ -790,7 +790,7 @@ async def main() -> None:
790790
object_=fields, annotation=typing.Sequence[UpdateBulkField], direction="write"
791791
),
792792
"filters": convert_and_respect_annotation_metadata(
793-
object_=filters, annotation=typing.Sequence[BulkFilter], direction="write"
793+
object_=filters, annotation=typing.Sequence[BulkFilter2], direction="write"
794794
),
795795
"partition_key": partition_key,
796796
"tracking_field": tracking_field,

src/polytomic/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Polytomic:
5353
5454
5555
56-
version : typing.Optional[str]
56+
version : typing.Optional[typing.Any]
5757
token : typing.Union[str, typing.Callable[[], str]]
5858
timeout : typing.Optional[float]
5959
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__(
7979
*,
8080
base_url: typing.Optional[str] = None,
8181
environment: PolytomicEnvironment = PolytomicEnvironment.DEFAULT,
82-
version: typing.Optional[str] = None,
82+
version: typing.Optional[typing.Any] = None,
8383
token: typing.Union[str, typing.Callable[[], str]],
8484
timeout: typing.Optional[float] = None,
8585
follow_redirects: typing.Optional[bool] = True,
@@ -131,7 +131,7 @@ class AsyncPolytomic:
131131
132132
133133
134-
version : typing.Optional[str]
134+
version : typing.Optional[typing.Any]
135135
token : typing.Union[str, typing.Callable[[], str]]
136136
timeout : typing.Optional[float]
137137
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__(
157157
*,
158158
base_url: typing.Optional[str] = None,
159159
environment: PolytomicEnvironment = PolytomicEnvironment.DEFAULT,
160-
version: typing.Optional[str] = None,
160+
version: typing.Optional[typing.Any] = None,
161161
token: typing.Union[str, typing.Callable[[], str]],
162162
timeout: typing.Optional[float] = None,
163163
follow_redirects: typing.Optional[bool] = True,

src/polytomic/core/client_wrapper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class BaseClientWrapper:
1010
def __init__(
1111
self,
1212
*,
13-
version: typing.Optional[str] = None,
13+
version: typing.Optional[typing.Any] = None,
1414
token: typing.Union[str, typing.Callable[[], str]],
1515
base_url: str,
1616
timeout: typing.Optional[float] = None,
@@ -24,7 +24,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
2525
"X-Fern-Language": "Python",
2626
"X-Fern-SDK-Name": "polytomic",
27-
"X-Fern-SDK-Version": "1.15.5",
27+
"X-Fern-SDK-Version": "0.0.0",
2828
}
2929
if self._version is not None:
3030
headers["X-Polytomic-Version"] = self._version
@@ -48,7 +48,7 @@ class SyncClientWrapper(BaseClientWrapper):
4848
def __init__(
4949
self,
5050
*,
51-
version: typing.Optional[str] = None,
51+
version: typing.Optional[typing.Any] = None,
5252
token: typing.Union[str, typing.Callable[[], str]],
5353
base_url: str,
5454
timeout: typing.Optional[float] = None,
@@ -67,7 +67,7 @@ class AsyncClientWrapper(BaseClientWrapper):
6767
def __init__(
6868
self,
6969
*,
70-
version: typing.Optional[str] = None,
70+
version: typing.Optional[typing.Any] = None,
7171
token: typing.Union[str, typing.Callable[[], str]],
7272
base_url: str,
7373
timeout: typing.Optional[float] = None,

0 commit comments

Comments
 (0)