99from .resources .bulk_sync .client import AsyncBulkSyncClient , BulkSyncClient
1010from .resources .connections .client import AsyncConnectionsClient , ConnectionsClient
1111from .resources .events .client import AsyncEventsClient , EventsClient
12+ from .resources .identity .client import AsyncIdentityClient , IdentityClient
1213from .resources .jobs .client import AsyncJobsClient , JobsClient
1314from .resources .model_sync .client import AsyncModelSyncClient , ModelSyncClient
1415from .resources .models .client import AsyncModelsClient , ModelsClient
@@ -30,9 +31,7 @@ class Polytomic:
3031
3132 Defaults to PolytomicEnvironment.DEFAULT
3233
33- - x_polytomic_version: typing.Optional[typing.Literal["2023-04-25"]].
34-
35- - token: typing.Optional[typing.Union[str, typing.Callable[[], str]]].
34+ - token: typing.Union[str, typing.Callable[[], str]].
3635
3736 - 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 a default is not set.
3837
@@ -41,7 +40,6 @@ class Polytomic:
4140 from polytomic.client import Polytomic
4241
4342 client = Polytomic(
44- x_polytomic_version="YOUR_X_POLYTOMIC_VERSION",
4543 token="YOUR_TOKEN",
4644 )
4745 """
@@ -51,29 +49,28 @@ def __init__(
5149 * ,
5250 base_url : typing .Optional [str ] = None ,
5351 environment : PolytomicEnvironment = PolytomicEnvironment .DEFAULT ,
54- x_polytomic_version : typing .Optional [typing .Literal ["2023-04-25" ]] = None ,
55- token : typing .Optional [typing .Union [str , typing .Callable [[], str ]]] = None ,
52+ token : typing .Union [str , typing .Callable [[], str ]],
5653 timeout : typing .Optional [float ] = None ,
5754 httpx_client : typing .Optional [httpx .Client ] = None
5855 ):
5956 _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
6057 self ._client_wrapper = SyncClientWrapper (
6158 base_url = _get_base_url (base_url = base_url , environment = environment ),
62- x_polytomic_version = x_polytomic_version ,
6359 token = token ,
6460 httpx_client = httpx .Client (timeout = _defaulted_timeout ) if httpx_client is None else httpx_client ,
6561 timeout = _defaulted_timeout ,
6662 )
6763 self .bulk_sync = BulkSyncClient (client_wrapper = self ._client_wrapper )
6864 self .connections = ConnectionsClient (client_wrapper = self ._client_wrapper )
65+ self .model_sync = ModelSyncClient (client_wrapper = self ._client_wrapper )
6966 self .schemas = SchemasClient (client_wrapper = self ._client_wrapper )
7067 self .events = EventsClient (client_wrapper = self ._client_wrapper )
7168 self .jobs = JobsClient (client_wrapper = self ._client_wrapper )
69+ self .identity = IdentityClient (client_wrapper = self ._client_wrapper )
7270 self .models = ModelsClient (client_wrapper = self ._client_wrapper )
7371 self .organization = OrganizationClient (client_wrapper = self ._client_wrapper )
7472 self .users = UsersClient (client_wrapper = self ._client_wrapper )
7573 self .permissions = PermissionsClient (client_wrapper = self ._client_wrapper )
76- self .model_sync = ModelSyncClient (client_wrapper = self ._client_wrapper )
7774 self .webhooks = WebhooksClient (client_wrapper = self ._client_wrapper )
7875
7976
@@ -88,9 +85,7 @@ class AsyncPolytomic:
8885
8986 Defaults to PolytomicEnvironment.DEFAULT
9087
91- - x_polytomic_version: typing.Optional[typing.Literal["2023-04-25"]].
92-
93- - token: typing.Optional[typing.Union[str, typing.Callable[[], str]]].
88+ - token: typing.Union[str, typing.Callable[[], str]].
9489
9590 - 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 a default is not set.
9691
@@ -99,7 +94,6 @@ class AsyncPolytomic:
9994 from polytomic.client import AsyncPolytomic
10095
10196 client = AsyncPolytomic(
102- x_polytomic_version="YOUR_X_POLYTOMIC_VERSION",
10397 token="YOUR_TOKEN",
10498 )
10599 """
@@ -109,29 +103,28 @@ def __init__(
109103 * ,
110104 base_url : typing .Optional [str ] = None ,
111105 environment : PolytomicEnvironment = PolytomicEnvironment .DEFAULT ,
112- x_polytomic_version : typing .Optional [typing .Literal ["2023-04-25" ]] = None ,
113- token : typing .Optional [typing .Union [str , typing .Callable [[], str ]]] = None ,
106+ token : typing .Union [str , typing .Callable [[], str ]],
114107 timeout : typing .Optional [float ] = None ,
115108 httpx_client : typing .Optional [httpx .AsyncClient ] = None
116109 ):
117110 _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
118111 self ._client_wrapper = AsyncClientWrapper (
119112 base_url = _get_base_url (base_url = base_url , environment = environment ),
120- x_polytomic_version = x_polytomic_version ,
121113 token = token ,
122114 httpx_client = httpx .AsyncClient (timeout = _defaulted_timeout ) if httpx_client is None else httpx_client ,
123115 timeout = _defaulted_timeout ,
124116 )
125117 self .bulk_sync = AsyncBulkSyncClient (client_wrapper = self ._client_wrapper )
126118 self .connections = AsyncConnectionsClient (client_wrapper = self ._client_wrapper )
119+ self .model_sync = AsyncModelSyncClient (client_wrapper = self ._client_wrapper )
127120 self .schemas = AsyncSchemasClient (client_wrapper = self ._client_wrapper )
128121 self .events = AsyncEventsClient (client_wrapper = self ._client_wrapper )
129122 self .jobs = AsyncJobsClient (client_wrapper = self ._client_wrapper )
123+ self .identity = AsyncIdentityClient (client_wrapper = self ._client_wrapper )
130124 self .models = AsyncModelsClient (client_wrapper = self ._client_wrapper )
131125 self .organization = AsyncOrganizationClient (client_wrapper = self ._client_wrapper )
132126 self .users = AsyncUsersClient (client_wrapper = self ._client_wrapper )
133127 self .permissions = AsyncPermissionsClient (client_wrapper = self ._client_wrapper )
134- self .model_sync = AsyncModelSyncClient (client_wrapper = self ._client_wrapper )
135128 self .webhooks = AsyncWebhooksClient (client_wrapper = self ._client_wrapper )
136129
137130
0 commit comments