robosystems-client 0.1.16__py3-none-any.whl → 0.1.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of robosystems-client might be problematic. Click here for more details.

Files changed (109) hide show
  1. robosystems_client/__init__.py +15 -4
  2. robosystems_client/api/agent/auto_select_agent.py +24 -17
  3. robosystems_client/api/agent/batch_process_queries.py +24 -17
  4. robosystems_client/api/agent/execute_specific_agent.py +24 -17
  5. robosystems_client/api/agent/get_agent_metadata.py +24 -17
  6. robosystems_client/api/agent/list_agents.py +20 -18
  7. robosystems_client/api/agent/recommend_agent.py +24 -17
  8. robosystems_client/api/auth/forgot_password.py +191 -0
  9. robosystems_client/api/auth/generate_sso_token.py +18 -0
  10. robosystems_client/api/auth/get_current_auth_user.py +4 -22
  11. robosystems_client/api/auth/logout_user.py +17 -17
  12. robosystems_client/api/auth/{refresh_session.py → refresh_auth_session.py} +21 -21
  13. robosystems_client/api/auth/resend_verification_email.py +222 -0
  14. robosystems_client/api/auth/reset_password.py +177 -0
  15. robosystems_client/api/auth/validate_reset_token.py +171 -0
  16. robosystems_client/api/auth/verify_email.py +177 -0
  17. robosystems_client/api/backup/create_backup.py +24 -17
  18. robosystems_client/api/backup/export_backup.py +24 -17
  19. robosystems_client/api/backup/get_backup_download_url.py +20 -18
  20. robosystems_client/api/backup/get_backup_stats.py +24 -17
  21. robosystems_client/api/backup/list_backups.py +20 -18
  22. robosystems_client/api/backup/restore_backup.py +24 -17
  23. robosystems_client/api/connections/create_connection.py +24 -17
  24. robosystems_client/api/connections/create_link_token.py +24 -17
  25. robosystems_client/api/connections/delete_connection.py +24 -17
  26. robosystems_client/api/connections/exchange_link_token.py +24 -17
  27. robosystems_client/api/connections/get_connection.py +24 -17
  28. robosystems_client/api/connections/get_connection_options.py +24 -17
  29. robosystems_client/api/connections/init_o_auth.py +24 -17
  30. robosystems_client/api/connections/list_connections.py +20 -18
  31. robosystems_client/api/connections/oauth_callback.py +28 -21
  32. robosystems_client/api/connections/sync_connection.py +24 -17
  33. robosystems_client/api/copy/copy_data_to_graph.py +24 -17
  34. robosystems_client/api/create/create_graph.py +24 -17
  35. robosystems_client/api/graph_analytics/get_graph_metrics.py +24 -17
  36. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -18
  37. robosystems_client/api/graph_billing/get_current_graph_bill.py +24 -17
  38. robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -18
  39. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +24 -17
  40. robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -18
  41. robosystems_client/api/graph_credits/check_credit_balance.py +20 -18
  42. robosystems_client/api/graph_credits/check_storage_limits.py +24 -17
  43. robosystems_client/api/graph_credits/get_credit_summary.py +24 -17
  44. robosystems_client/api/graph_credits/get_storage_usage.py +20 -18
  45. robosystems_client/api/graph_credits/list_credit_transactions.py +20 -18
  46. robosystems_client/api/graph_health/get_database_health.py +24 -17
  47. robosystems_client/api/graph_info/get_database_info.py +24 -17
  48. robosystems_client/api/graph_limits/get_graph_limits.py +24 -17
  49. robosystems_client/api/mcp/call_mcp_tool.py +20 -18
  50. robosystems_client/api/mcp/list_mcp_tools.py +24 -17
  51. robosystems_client/api/operations/cancel_operation.py +24 -17
  52. robosystems_client/api/operations/get_operation_status.py +24 -17
  53. robosystems_client/api/operations/stream_operation_events.py +20 -18
  54. robosystems_client/api/query/execute_cypher_query.py +20 -18
  55. robosystems_client/api/schema/export_graph_schema.py +20 -18
  56. robosystems_client/api/schema/get_graph_schema_info.py +24 -17
  57. robosystems_client/api/schema/list_schema_extensions.py +24 -17
  58. robosystems_client/api/schema/validate_schema.py +24 -17
  59. robosystems_client/api/subgraphs/create_subgraph.py +24 -17
  60. robosystems_client/api/subgraphs/delete_subgraph.py +24 -17
  61. robosystems_client/api/subgraphs/get_subgraph_info.py +24 -17
  62. robosystems_client/api/subgraphs/get_subgraph_quota.py +24 -17
  63. robosystems_client/api/subgraphs/list_subgraphs.py +24 -17
  64. robosystems_client/api/user/create_user_api_key.py +24 -17
  65. robosystems_client/api/user/get_all_credit_summaries.py +24 -17
  66. robosystems_client/api/user/get_current_user.py +24 -17
  67. robosystems_client/api/user/get_user_graphs.py +24 -17
  68. robosystems_client/api/user/list_user_api_keys.py +24 -17
  69. robosystems_client/api/user/revoke_user_api_key.py +24 -17
  70. robosystems_client/api/user/select_user_graph.py +24 -17
  71. robosystems_client/api/user/update_user.py +24 -17
  72. robosystems_client/api/user/update_user_api_key.py +24 -17
  73. robosystems_client/api/user/update_user_password.py +24 -17
  74. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -18
  75. robosystems_client/api/user_analytics/get_user_usage_overview.py +24 -17
  76. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +24 -17
  77. robosystems_client/api/user_limits/get_shared_repository_limits.py +24 -17
  78. robosystems_client/api/user_limits/get_user_limits.py +24 -17
  79. robosystems_client/api/user_limits/get_user_usage.py +24 -17
  80. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +24 -17
  81. robosystems_client/api/user_subscriptions/get_repository_credits.py +24 -17
  82. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +24 -17
  83. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -18
  84. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +24 -17
  85. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +24 -17
  86. robosystems_client/extensions/__init__.py +70 -0
  87. robosystems_client/extensions/auth_integration.py +14 -1
  88. robosystems_client/extensions/copy_client.py +32 -22
  89. robosystems_client/extensions/dataframe_utils.py +455 -0
  90. robosystems_client/extensions/extensions.py +16 -0
  91. robosystems_client/extensions/operation_client.py +43 -21
  92. robosystems_client/extensions/query_client.py +109 -12
  93. robosystems_client/extensions/tests/test_dataframe_utils.py +334 -0
  94. robosystems_client/extensions/tests/test_integration.py +1 -1
  95. robosystems_client/extensions/tests/test_token_utils.py +274 -0
  96. robosystems_client/extensions/token_utils.py +417 -0
  97. robosystems_client/extensions/utils.py +32 -2
  98. robosystems_client/models/__init__.py +16 -0
  99. robosystems_client/models/email_verification_request.py +60 -0
  100. robosystems_client/models/forgot_password_request.py +60 -0
  101. robosystems_client/models/forgot_password_response_forgotpassword.py +44 -0
  102. robosystems_client/models/resend_verification_email_response_resendverificationemail.py +44 -0
  103. robosystems_client/models/reset_password_request.py +68 -0
  104. robosystems_client/models/reset_password_validate_response.py +82 -0
  105. robosystems_client-0.1.18.dist-info/METADATA +89 -0
  106. {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +108 -92
  107. robosystems_client-0.1.18.dist-info/licenses/LICENSE +21 -0
  108. robosystems_client-0.1.16.dist-info/METADATA +0 -302
  109. {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/WHEEL +0 -0
@@ -17,17 +17,13 @@ def _get_kwargs(
17
17
  *,
18
18
  entity_id: Union[None, Unset, str] = UNSET,
19
19
  provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
20
+ token: Union[None, Unset, str] = UNSET,
20
21
  authorization: Union[None, Unset, str] = UNSET,
21
- auth_token: Union[None, Unset, str] = UNSET,
22
22
  ) -> dict[str, Any]:
23
23
  headers: dict[str, Any] = {}
24
24
  if not isinstance(authorization, Unset):
25
25
  headers["authorization"] = authorization
26
26
 
27
- cookies = {}
28
- if auth_token is not UNSET:
29
- cookies["auth-token"] = auth_token
30
-
31
27
  params: dict[str, Any] = {}
32
28
 
33
29
  json_entity_id: Union[None, Unset, str]
@@ -46,13 +42,19 @@ def _get_kwargs(
46
42
  json_provider = provider
47
43
  params["provider"] = json_provider
48
44
 
45
+ json_token: Union[None, Unset, str]
46
+ if isinstance(token, Unset):
47
+ json_token = UNSET
48
+ else:
49
+ json_token = token
50
+ params["token"] = json_token
51
+
49
52
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
50
53
 
51
54
  _kwargs: dict[str, Any] = {
52
55
  "method": "get",
53
56
  "url": f"/v1/{graph_id}/connections",
54
57
  "params": params,
55
- "cookies": cookies,
56
58
  }
57
59
 
58
60
  _kwargs["headers"] = headers
@@ -106,8 +108,8 @@ def sync_detailed(
106
108
  client: AuthenticatedClient,
107
109
  entity_id: Union[None, Unset, str] = UNSET,
108
110
  provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
111
+ token: Union[None, Unset, str] = UNSET,
109
112
  authorization: Union[None, Unset, str] = UNSET,
110
- auth_token: Union[None, Unset, str] = UNSET,
111
113
  ) -> Response[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
112
114
  """List Connections
113
115
 
@@ -130,8 +132,8 @@ def sync_detailed(
130
132
  graph_id (str): Graph database identifier
131
133
  entity_id (Union[None, Unset, str]): Filter by entity ID
132
134
  provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
135
+ token (Union[None, Unset, str]): JWT token for SSE authentication
133
136
  authorization (Union[None, Unset, str]):
134
- auth_token (Union[None, Unset, str]):
135
137
 
136
138
  Raises:
137
139
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -145,8 +147,8 @@ def sync_detailed(
145
147
  graph_id=graph_id,
146
148
  entity_id=entity_id,
147
149
  provider=provider,
150
+ token=token,
148
151
  authorization=authorization,
149
- auth_token=auth_token,
150
152
  )
151
153
 
152
154
  response = client.get_httpx_client().request(
@@ -162,8 +164,8 @@ def sync(
162
164
  client: AuthenticatedClient,
163
165
  entity_id: Union[None, Unset, str] = UNSET,
164
166
  provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
167
+ token: Union[None, Unset, str] = UNSET,
165
168
  authorization: Union[None, Unset, str] = UNSET,
166
- auth_token: Union[None, Unset, str] = UNSET,
167
169
  ) -> Optional[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
168
170
  """List Connections
169
171
 
@@ -186,8 +188,8 @@ def sync(
186
188
  graph_id (str): Graph database identifier
187
189
  entity_id (Union[None, Unset, str]): Filter by entity ID
188
190
  provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
191
+ token (Union[None, Unset, str]): JWT token for SSE authentication
189
192
  authorization (Union[None, Unset, str]):
190
- auth_token (Union[None, Unset, str]):
191
193
 
192
194
  Raises:
193
195
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -202,8 +204,8 @@ def sync(
202
204
  client=client,
203
205
  entity_id=entity_id,
204
206
  provider=provider,
207
+ token=token,
205
208
  authorization=authorization,
206
- auth_token=auth_token,
207
209
  ).parsed
208
210
 
209
211
 
@@ -213,8 +215,8 @@ async def asyncio_detailed(
213
215
  client: AuthenticatedClient,
214
216
  entity_id: Union[None, Unset, str] = UNSET,
215
217
  provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
218
+ token: Union[None, Unset, str] = UNSET,
216
219
  authorization: Union[None, Unset, str] = UNSET,
217
- auth_token: Union[None, Unset, str] = UNSET,
218
220
  ) -> Response[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
219
221
  """List Connections
220
222
 
@@ -237,8 +239,8 @@ async def asyncio_detailed(
237
239
  graph_id (str): Graph database identifier
238
240
  entity_id (Union[None, Unset, str]): Filter by entity ID
239
241
  provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
242
+ token (Union[None, Unset, str]): JWT token for SSE authentication
240
243
  authorization (Union[None, Unset, str]):
241
- auth_token (Union[None, Unset, str]):
242
244
 
243
245
  Raises:
244
246
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -252,8 +254,8 @@ async def asyncio_detailed(
252
254
  graph_id=graph_id,
253
255
  entity_id=entity_id,
254
256
  provider=provider,
257
+ token=token,
255
258
  authorization=authorization,
256
- auth_token=auth_token,
257
259
  )
258
260
 
259
261
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -267,8 +269,8 @@ async def asyncio(
267
269
  client: AuthenticatedClient,
268
270
  entity_id: Union[None, Unset, str] = UNSET,
269
271
  provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
272
+ token: Union[None, Unset, str] = UNSET,
270
273
  authorization: Union[None, Unset, str] = UNSET,
271
- auth_token: Union[None, Unset, str] = UNSET,
272
274
  ) -> Optional[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
273
275
  """List Connections
274
276
 
@@ -291,8 +293,8 @@ async def asyncio(
291
293
  graph_id (str): Graph database identifier
292
294
  entity_id (Union[None, Unset, str]): Filter by entity ID
293
295
  provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
296
+ token (Union[None, Unset, str]): JWT token for SSE authentication
294
297
  authorization (Union[None, Unset, str]):
295
- auth_token (Union[None, Unset, str]):
296
298
 
297
299
  Raises:
298
300
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -308,7 +310,7 @@ async def asyncio(
308
310
  client=client,
309
311
  entity_id=entity_id,
310
312
  provider=provider,
313
+ token=token,
311
314
  authorization=authorization,
312
- auth_token=auth_token,
313
315
  )
314
316
  ).parsed
@@ -16,21 +16,28 @@ def _get_kwargs(
16
16
  provider: str,
17
17
  *,
18
18
  body: OAuthCallbackRequest,
19
+ token: Union[None, Unset, str] = UNSET,
19
20
  authorization: Union[None, Unset, str] = UNSET,
20
- auth_token: Union[None, Unset, str] = UNSET,
21
21
  ) -> dict[str, Any]:
22
22
  headers: dict[str, Any] = {}
23
23
  if not isinstance(authorization, Unset):
24
24
  headers["authorization"] = authorization
25
25
 
26
- cookies = {}
27
- if auth_token is not UNSET:
28
- cookies["auth-token"] = auth_token
26
+ params: dict[str, Any] = {}
27
+
28
+ json_token: Union[None, Unset, str]
29
+ if isinstance(token, Unset):
30
+ json_token = UNSET
31
+ else:
32
+ json_token = token
33
+ params["token"] = json_token
34
+
35
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
29
36
 
30
37
  _kwargs: dict[str, Any] = {
31
38
  "method": "post",
32
39
  "url": f"/v1/{graph_id}/connections/oauth/callback/{provider}",
33
- "cookies": cookies,
40
+ "params": params,
34
41
  }
35
42
 
36
43
  _kwargs["json"] = body.to_dict()
@@ -90,8 +97,8 @@ def sync_detailed(
90
97
  *,
91
98
  client: AuthenticatedClient,
92
99
  body: OAuthCallbackRequest,
100
+ token: Union[None, Unset, str] = UNSET,
93
101
  authorization: Union[None, Unset, str] = UNSET,
94
- auth_token: Union[None, Unset, str] = UNSET,
95
102
  ) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
96
103
  """OAuth Callback
97
104
 
@@ -108,7 +115,7 @@ def sync_detailed(
108
115
  - **QuickBooks**: Accounting data integration
109
116
 
110
117
  Security measures:
111
- - State validation prevents CSRF attacks
118
+ - State validation prevents session hijacking
112
119
  - User context is verified
113
120
  - Tokens are encrypted before storage
114
121
  - Full audit trail is maintained
@@ -118,8 +125,8 @@ def sync_detailed(
118
125
  Args:
119
126
  graph_id (str): Graph database identifier
120
127
  provider (str): OAuth provider name
128
+ token (Union[None, Unset, str]): JWT token for SSE authentication
121
129
  authorization (Union[None, Unset, str]):
122
- auth_token (Union[None, Unset, str]):
123
130
  body (OAuthCallbackRequest): OAuth callback parameters.
124
131
 
125
132
  Raises:
@@ -134,8 +141,8 @@ def sync_detailed(
134
141
  graph_id=graph_id,
135
142
  provider=provider,
136
143
  body=body,
144
+ token=token,
137
145
  authorization=authorization,
138
- auth_token=auth_token,
139
146
  )
140
147
 
141
148
  response = client.get_httpx_client().request(
@@ -151,8 +158,8 @@ def sync(
151
158
  *,
152
159
  client: AuthenticatedClient,
153
160
  body: OAuthCallbackRequest,
161
+ token: Union[None, Unset, str] = UNSET,
154
162
  authorization: Union[None, Unset, str] = UNSET,
155
- auth_token: Union[None, Unset, str] = UNSET,
156
163
  ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
157
164
  """OAuth Callback
158
165
 
@@ -169,7 +176,7 @@ def sync(
169
176
  - **QuickBooks**: Accounting data integration
170
177
 
171
178
  Security measures:
172
- - State validation prevents CSRF attacks
179
+ - State validation prevents session hijacking
173
180
  - User context is verified
174
181
  - Tokens are encrypted before storage
175
182
  - Full audit trail is maintained
@@ -179,8 +186,8 @@ def sync(
179
186
  Args:
180
187
  graph_id (str): Graph database identifier
181
188
  provider (str): OAuth provider name
189
+ token (Union[None, Unset, str]): JWT token for SSE authentication
182
190
  authorization (Union[None, Unset, str]):
183
- auth_token (Union[None, Unset, str]):
184
191
  body (OAuthCallbackRequest): OAuth callback parameters.
185
192
 
186
193
  Raises:
@@ -196,8 +203,8 @@ def sync(
196
203
  provider=provider,
197
204
  client=client,
198
205
  body=body,
206
+ token=token,
199
207
  authorization=authorization,
200
- auth_token=auth_token,
201
208
  ).parsed
202
209
 
203
210
 
@@ -207,8 +214,8 @@ async def asyncio_detailed(
207
214
  *,
208
215
  client: AuthenticatedClient,
209
216
  body: OAuthCallbackRequest,
217
+ token: Union[None, Unset, str] = UNSET,
210
218
  authorization: Union[None, Unset, str] = UNSET,
211
- auth_token: Union[None, Unset, str] = UNSET,
212
219
  ) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
213
220
  """OAuth Callback
214
221
 
@@ -225,7 +232,7 @@ async def asyncio_detailed(
225
232
  - **QuickBooks**: Accounting data integration
226
233
 
227
234
  Security measures:
228
- - State validation prevents CSRF attacks
235
+ - State validation prevents session hijacking
229
236
  - User context is verified
230
237
  - Tokens are encrypted before storage
231
238
  - Full audit trail is maintained
@@ -235,8 +242,8 @@ async def asyncio_detailed(
235
242
  Args:
236
243
  graph_id (str): Graph database identifier
237
244
  provider (str): OAuth provider name
245
+ token (Union[None, Unset, str]): JWT token for SSE authentication
238
246
  authorization (Union[None, Unset, str]):
239
- auth_token (Union[None, Unset, str]):
240
247
  body (OAuthCallbackRequest): OAuth callback parameters.
241
248
 
242
249
  Raises:
@@ -251,8 +258,8 @@ async def asyncio_detailed(
251
258
  graph_id=graph_id,
252
259
  provider=provider,
253
260
  body=body,
261
+ token=token,
254
262
  authorization=authorization,
255
- auth_token=auth_token,
256
263
  )
257
264
 
258
265
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -266,8 +273,8 @@ async def asyncio(
266
273
  *,
267
274
  client: AuthenticatedClient,
268
275
  body: OAuthCallbackRequest,
276
+ token: Union[None, Unset, str] = UNSET,
269
277
  authorization: Union[None, Unset, str] = UNSET,
270
- auth_token: Union[None, Unset, str] = UNSET,
271
278
  ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
272
279
  """OAuth Callback
273
280
 
@@ -284,7 +291,7 @@ async def asyncio(
284
291
  - **QuickBooks**: Accounting data integration
285
292
 
286
293
  Security measures:
287
- - State validation prevents CSRF attacks
294
+ - State validation prevents session hijacking
288
295
  - User context is verified
289
296
  - Tokens are encrypted before storage
290
297
  - Full audit trail is maintained
@@ -294,8 +301,8 @@ async def asyncio(
294
301
  Args:
295
302
  graph_id (str): Graph database identifier
296
303
  provider (str): OAuth provider name
304
+ token (Union[None, Unset, str]): JWT token for SSE authentication
297
305
  authorization (Union[None, Unset, str]):
298
- auth_token (Union[None, Unset, str]):
299
306
  body (OAuthCallbackRequest): OAuth callback parameters.
300
307
 
301
308
  Raises:
@@ -312,7 +319,7 @@ async def asyncio(
312
319
  provider=provider,
313
320
  client=client,
314
321
  body=body,
322
+ token=token,
315
323
  authorization=authorization,
316
- auth_token=auth_token,
317
324
  )
318
325
  ).parsed
@@ -19,21 +19,28 @@ def _get_kwargs(
19
19
  connection_id: str,
20
20
  *,
21
21
  body: SyncConnectionRequest,
22
+ token: Union[None, Unset, str] = UNSET,
22
23
  authorization: Union[None, Unset, str] = UNSET,
23
- auth_token: Union[None, Unset, str] = UNSET,
24
24
  ) -> dict[str, Any]:
25
25
  headers: dict[str, Any] = {}
26
26
  if not isinstance(authorization, Unset):
27
27
  headers["authorization"] = authorization
28
28
 
29
- cookies = {}
30
- if auth_token is not UNSET:
31
- cookies["auth-token"] = auth_token
29
+ params: dict[str, Any] = {}
30
+
31
+ json_token: Union[None, Unset, str]
32
+ if isinstance(token, Unset):
33
+ json_token = UNSET
34
+ else:
35
+ json_token = token
36
+ params["token"] = json_token
37
+
38
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
32
39
 
33
40
  _kwargs: dict[str, Any] = {
34
41
  "method": "post",
35
42
  "url": f"/v1/{graph_id}/connections/{connection_id}/sync",
36
- "cookies": cookies,
43
+ "params": params,
37
44
  }
38
45
 
39
46
  _kwargs["json"] = body.to_dict()
@@ -94,8 +101,8 @@ def sync_detailed(
94
101
  *,
95
102
  client: AuthenticatedClient,
96
103
  body: SyncConnectionRequest,
104
+ token: Union[None, Unset, str] = UNSET,
97
105
  authorization: Union[None, Unset, str] = UNSET,
98
- auth_token: Union[None, Unset, str] = UNSET,
99
106
  ) -> Response[
100
107
  Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
101
108
  ]:
@@ -129,8 +136,8 @@ def sync_detailed(
129
136
  Args:
130
137
  graph_id (str): Graph database identifier
131
138
  connection_id (str): Connection identifier
139
+ token (Union[None, Unset, str]): JWT token for SSE authentication
132
140
  authorization (Union[None, Unset, str]):
133
- auth_token (Union[None, Unset, str]):
134
141
  body (SyncConnectionRequest): Request to sync a connection.
135
142
 
136
143
  Raises:
@@ -145,8 +152,8 @@ def sync_detailed(
145
152
  graph_id=graph_id,
146
153
  connection_id=connection_id,
147
154
  body=body,
155
+ token=token,
148
156
  authorization=authorization,
149
- auth_token=auth_token,
150
157
  )
151
158
 
152
159
  response = client.get_httpx_client().request(
@@ -162,8 +169,8 @@ def sync(
162
169
  *,
163
170
  client: AuthenticatedClient,
164
171
  body: SyncConnectionRequest,
172
+ token: Union[None, Unset, str] = UNSET,
165
173
  authorization: Union[None, Unset, str] = UNSET,
166
- auth_token: Union[None, Unset, str] = UNSET,
167
174
  ) -> Optional[
168
175
  Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
169
176
  ]:
@@ -197,8 +204,8 @@ def sync(
197
204
  Args:
198
205
  graph_id (str): Graph database identifier
199
206
  connection_id (str): Connection identifier
207
+ token (Union[None, Unset, str]): JWT token for SSE authentication
200
208
  authorization (Union[None, Unset, str]):
201
- auth_token (Union[None, Unset, str]):
202
209
  body (SyncConnectionRequest): Request to sync a connection.
203
210
 
204
211
  Raises:
@@ -214,8 +221,8 @@ def sync(
214
221
  connection_id=connection_id,
215
222
  client=client,
216
223
  body=body,
224
+ token=token,
217
225
  authorization=authorization,
218
- auth_token=auth_token,
219
226
  ).parsed
220
227
 
221
228
 
@@ -225,8 +232,8 @@ async def asyncio_detailed(
225
232
  *,
226
233
  client: AuthenticatedClient,
227
234
  body: SyncConnectionRequest,
235
+ token: Union[None, Unset, str] = UNSET,
228
236
  authorization: Union[None, Unset, str] = UNSET,
229
- auth_token: Union[None, Unset, str] = UNSET,
230
237
  ) -> Response[
231
238
  Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
232
239
  ]:
@@ -260,8 +267,8 @@ async def asyncio_detailed(
260
267
  Args:
261
268
  graph_id (str): Graph database identifier
262
269
  connection_id (str): Connection identifier
270
+ token (Union[None, Unset, str]): JWT token for SSE authentication
263
271
  authorization (Union[None, Unset, str]):
264
- auth_token (Union[None, Unset, str]):
265
272
  body (SyncConnectionRequest): Request to sync a connection.
266
273
 
267
274
  Raises:
@@ -276,8 +283,8 @@ async def asyncio_detailed(
276
283
  graph_id=graph_id,
277
284
  connection_id=connection_id,
278
285
  body=body,
286
+ token=token,
279
287
  authorization=authorization,
280
- auth_token=auth_token,
281
288
  )
282
289
 
283
290
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -291,8 +298,8 @@ async def asyncio(
291
298
  *,
292
299
  client: AuthenticatedClient,
293
300
  body: SyncConnectionRequest,
301
+ token: Union[None, Unset, str] = UNSET,
294
302
  authorization: Union[None, Unset, str] = UNSET,
295
- auth_token: Union[None, Unset, str] = UNSET,
296
303
  ) -> Optional[
297
304
  Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
298
305
  ]:
@@ -326,8 +333,8 @@ async def asyncio(
326
333
  Args:
327
334
  graph_id (str): Graph database identifier
328
335
  connection_id (str): Connection identifier
336
+ token (Union[None, Unset, str]): JWT token for SSE authentication
329
337
  authorization (Union[None, Unset, str]):
330
- auth_token (Union[None, Unset, str]):
331
338
  body (SyncConnectionRequest): Request to sync a connection.
332
339
 
333
340
  Raises:
@@ -344,7 +351,7 @@ async def asyncio(
344
351
  connection_id=connection_id,
345
352
  client=client,
346
353
  body=body,
354
+ token=token,
347
355
  authorization=authorization,
348
- auth_token=auth_token,
349
356
  )
350
357
  ).parsed
@@ -17,21 +17,28 @@ def _get_kwargs(
17
17
  graph_id: str,
18
18
  *,
19
19
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
20
+ token: Union[None, Unset, str] = UNSET,
20
21
  authorization: Union[None, Unset, str] = UNSET,
21
- auth_token: Union[None, Unset, str] = UNSET,
22
22
  ) -> dict[str, Any]:
23
23
  headers: dict[str, Any] = {}
24
24
  if not isinstance(authorization, Unset):
25
25
  headers["authorization"] = authorization
26
26
 
27
- cookies = {}
28
- if auth_token is not UNSET:
29
- cookies["auth-token"] = auth_token
27
+ params: dict[str, Any] = {}
28
+
29
+ json_token: Union[None, Unset, str]
30
+ if isinstance(token, Unset):
31
+ json_token = UNSET
32
+ else:
33
+ json_token = token
34
+ params["token"] = json_token
35
+
36
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
30
37
 
31
38
  _kwargs: dict[str, Any] = {
32
39
  "method": "post",
33
40
  "url": f"/v1/{graph_id}/copy",
34
- "cookies": cookies,
41
+ "params": params,
35
42
  }
36
43
 
37
44
  _kwargs["json"]: dict[str, Any]
@@ -102,8 +109,8 @@ def sync_detailed(
102
109
  *,
103
110
  client: AuthenticatedClient,
104
111
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
112
+ token: Union[None, Unset, str] = UNSET,
105
113
  authorization: Union[None, Unset, str] = UNSET,
106
- auth_token: Union[None, Unset, str] = UNSET,
107
114
  ) -> Response[Union[Any, CopyResponse, HTTPValidationError]]:
108
115
  """Copy Data to Graph
109
116
 
@@ -169,8 +176,8 @@ def sync_detailed(
169
176
  Args:
170
177
  graph_id (str): Target graph identifier (user graphs only - shared repositories not
171
178
  allowed)
179
+ token (Union[None, Unset, str]): JWT token for SSE authentication
172
180
  authorization (Union[None, Unset, str]):
173
- auth_token (Union[None, Unset, str]):
174
181
  body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
175
182
 
176
183
  Raises:
@@ -184,8 +191,8 @@ def sync_detailed(
184
191
  kwargs = _get_kwargs(
185
192
  graph_id=graph_id,
186
193
  body=body,
194
+ token=token,
187
195
  authorization=authorization,
188
- auth_token=auth_token,
189
196
  )
190
197
 
191
198
  response = client.get_httpx_client().request(
@@ -200,8 +207,8 @@ def sync(
200
207
  *,
201
208
  client: AuthenticatedClient,
202
209
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
210
+ token: Union[None, Unset, str] = UNSET,
203
211
  authorization: Union[None, Unset, str] = UNSET,
204
- auth_token: Union[None, Unset, str] = UNSET,
205
212
  ) -> Optional[Union[Any, CopyResponse, HTTPValidationError]]:
206
213
  """Copy Data to Graph
207
214
 
@@ -267,8 +274,8 @@ def sync(
267
274
  Args:
268
275
  graph_id (str): Target graph identifier (user graphs only - shared repositories not
269
276
  allowed)
277
+ token (Union[None, Unset, str]): JWT token for SSE authentication
270
278
  authorization (Union[None, Unset, str]):
271
- auth_token (Union[None, Unset, str]):
272
279
  body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
273
280
 
274
281
  Raises:
@@ -283,8 +290,8 @@ def sync(
283
290
  graph_id=graph_id,
284
291
  client=client,
285
292
  body=body,
293
+ token=token,
286
294
  authorization=authorization,
287
- auth_token=auth_token,
288
295
  ).parsed
289
296
 
290
297
 
@@ -293,8 +300,8 @@ async def asyncio_detailed(
293
300
  *,
294
301
  client: AuthenticatedClient,
295
302
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
303
+ token: Union[None, Unset, str] = UNSET,
296
304
  authorization: Union[None, Unset, str] = UNSET,
297
- auth_token: Union[None, Unset, str] = UNSET,
298
305
  ) -> Response[Union[Any, CopyResponse, HTTPValidationError]]:
299
306
  """Copy Data to Graph
300
307
 
@@ -360,8 +367,8 @@ async def asyncio_detailed(
360
367
  Args:
361
368
  graph_id (str): Target graph identifier (user graphs only - shared repositories not
362
369
  allowed)
370
+ token (Union[None, Unset, str]): JWT token for SSE authentication
363
371
  authorization (Union[None, Unset, str]):
364
- auth_token (Union[None, Unset, str]):
365
372
  body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
366
373
 
367
374
  Raises:
@@ -375,8 +382,8 @@ async def asyncio_detailed(
375
382
  kwargs = _get_kwargs(
376
383
  graph_id=graph_id,
377
384
  body=body,
385
+ token=token,
378
386
  authorization=authorization,
379
- auth_token=auth_token,
380
387
  )
381
388
 
382
389
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -389,8 +396,8 @@ async def asyncio(
389
396
  *,
390
397
  client: AuthenticatedClient,
391
398
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
399
+ token: Union[None, Unset, str] = UNSET,
392
400
  authorization: Union[None, Unset, str] = UNSET,
393
- auth_token: Union[None, Unset, str] = UNSET,
394
401
  ) -> Optional[Union[Any, CopyResponse, HTTPValidationError]]:
395
402
  """Copy Data to Graph
396
403
 
@@ -456,8 +463,8 @@ async def asyncio(
456
463
  Args:
457
464
  graph_id (str): Target graph identifier (user graphs only - shared repositories not
458
465
  allowed)
466
+ token (Union[None, Unset, str]): JWT token for SSE authentication
459
467
  authorization (Union[None, Unset, str]):
460
- auth_token (Union[None, Unset, str]):
461
468
  body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
462
469
 
463
470
  Raises:
@@ -473,7 +480,7 @@ async def asyncio(
473
480
  graph_id=graph_id,
474
481
  client=client,
475
482
  body=body,
483
+ token=token,
476
484
  authorization=authorization,
477
- auth_token=auth_token,
478
485
  )
479
486
  ).parsed