robosystems-client 0.1.17__py3-none-any.whl → 0.1.19__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.
- robosystems_client/__init__.py +15 -4
- robosystems_client/api/agent/auto_select_agent.py +26 -1
- robosystems_client/api/agent/batch_process_queries.py +26 -1
- robosystems_client/api/agent/execute_specific_agent.py +26 -1
- robosystems_client/api/agent/get_agent_metadata.py +26 -1
- robosystems_client/api/agent/list_agents.py +21 -1
- robosystems_client/api/agent/recommend_agent.py +26 -1
- robosystems_client/api/backup/create_backup.py +26 -1
- robosystems_client/api/backup/export_backup.py +26 -1
- robosystems_client/api/backup/get_backup_download_url.py +21 -1
- robosystems_client/api/backup/get_backup_stats.py +26 -1
- robosystems_client/api/backup/list_backups.py +21 -1
- robosystems_client/api/backup/restore_backup.py +26 -1
- robosystems_client/api/connections/create_connection.py +26 -1
- robosystems_client/api/connections/create_link_token.py +26 -1
- robosystems_client/api/connections/delete_connection.py +26 -1
- robosystems_client/api/connections/exchange_link_token.py +26 -1
- robosystems_client/api/connections/get_connection.py +26 -1
- robosystems_client/api/connections/get_connection_options.py +26 -1
- robosystems_client/api/connections/init_o_auth.py +26 -1
- robosystems_client/api/connections/list_connections.py +21 -1
- robosystems_client/api/connections/oauth_callback.py +26 -1
- robosystems_client/api/connections/sync_connection.py +26 -1
- robosystems_client/api/copy/copy_data_to_graph.py +26 -1
- robosystems_client/api/graph_analytics/get_graph_metrics.py +26 -1
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +21 -1
- robosystems_client/api/graph_billing/get_current_graph_bill.py +26 -1
- robosystems_client/api/graph_billing/get_graph_billing_history.py +21 -1
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +26 -1
- robosystems_client/api/graph_billing/get_graph_usage_details.py +21 -1
- robosystems_client/api/graph_credits/check_credit_balance.py +21 -1
- robosystems_client/api/graph_credits/check_storage_limits.py +26 -1
- robosystems_client/api/graph_credits/get_credit_summary.py +26 -1
- robosystems_client/api/graph_credits/get_storage_usage.py +21 -1
- robosystems_client/api/graph_credits/list_credit_transactions.py +21 -1
- robosystems_client/api/graph_health/get_database_health.py +26 -1
- robosystems_client/api/graph_info/get_database_info.py +26 -1
- robosystems_client/api/graph_limits/get_graph_limits.py +26 -1
- robosystems_client/api/{create → graphs}/create_graph.py +26 -1
- robosystems_client/api/{create → graphs}/get_available_extensions.py +1 -1
- robosystems_client/api/{user/get_user_graphs.py → graphs/get_graphs.py} +26 -1
- robosystems_client/api/{user/select_user_graph.py → graphs/select_graph.py} +30 -5
- robosystems_client/api/mcp/call_mcp_tool.py +21 -1
- robosystems_client/api/mcp/list_mcp_tools.py +26 -1
- robosystems_client/api/operations/cancel_operation.py +25 -0
- robosystems_client/api/operations/get_operation_status.py +25 -0
- robosystems_client/api/operations/stream_operation_events.py +20 -0
- robosystems_client/api/query/execute_cypher_query.py +21 -1
- robosystems_client/api/schema/export_graph_schema.py +21 -1
- robosystems_client/api/schema/get_graph_schema_info.py +26 -1
- robosystems_client/api/schema/list_schema_extensions.py +26 -1
- robosystems_client/api/schema/validate_schema.py +26 -1
- robosystems_client/api/subgraphs/create_subgraph.py +26 -1
- robosystems_client/api/subgraphs/delete_subgraph.py +26 -1
- robosystems_client/api/subgraphs/get_subgraph_info.py +26 -1
- robosystems_client/api/subgraphs/get_subgraph_quota.py +26 -1
- robosystems_client/api/subgraphs/list_subgraphs.py +26 -1
- robosystems_client/api/user/create_user_api_key.py +25 -0
- robosystems_client/api/user/get_all_credit_summaries.py +25 -0
- robosystems_client/api/user/get_current_user.py +25 -0
- robosystems_client/api/user/list_user_api_keys.py +25 -0
- robosystems_client/api/user/revoke_user_api_key.py +25 -0
- robosystems_client/api/user/update_user.py +25 -0
- robosystems_client/api/user/update_user_api_key.py +25 -0
- robosystems_client/api/user/update_user_password.py +25 -0
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -0
- robosystems_client/api/user_analytics/get_user_usage_overview.py +25 -0
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +25 -0
- robosystems_client/api/user_limits/get_shared_repository_limits.py +25 -0
- robosystems_client/api/user_limits/get_user_limits.py +25 -0
- robosystems_client/api/user_limits/get_user_usage.py +25 -0
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +25 -0
- robosystems_client/api/user_subscriptions/get_repository_credits.py +25 -0
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +25 -0
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -0
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +25 -0
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +25 -0
- robosystems_client/extensions/__init__.py +70 -0
- robosystems_client/extensions/auth_integration.py +14 -1
- robosystems_client/extensions/copy_client.py +32 -22
- robosystems_client/extensions/dataframe_utils.py +455 -0
- robosystems_client/extensions/extensions.py +16 -0
- robosystems_client/extensions/operation_client.py +43 -21
- robosystems_client/extensions/query_client.py +109 -12
- robosystems_client/extensions/tests/test_dataframe_utils.py +334 -0
- robosystems_client/extensions/tests/test_integration.py +1 -1
- robosystems_client/extensions/tests/test_token_utils.py +274 -0
- robosystems_client/extensions/token_utils.py +417 -0
- robosystems_client/extensions/utils.py +32 -2
- robosystems_client/models/__init__.py +0 -2
- robosystems_client/models/api_key_info.py +20 -0
- robosystems_client/models/create_api_key_request.py +20 -0
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/RECORD +97 -95
- robosystems_client/api/auth/sso_login.py +0 -177
- robosystems_client/models/sso_login_request.py +0 -60
- /robosystems_client/api/{create → graphs}/__init__.py +0 -0
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/WHEEL +0 -0
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/licenses/LICENSE +0 -0
|
@@ -16,15 +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
21
|
) -> dict[str, Any]:
|
|
21
22
|
headers: dict[str, Any] = {}
|
|
22
23
|
if not isinstance(authorization, Unset):
|
|
23
24
|
headers["authorization"] = authorization
|
|
24
25
|
|
|
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}
|
|
36
|
+
|
|
25
37
|
_kwargs: dict[str, Any] = {
|
|
26
38
|
"method": "post",
|
|
27
|
-
"url": f"/v1/{graph_id}/connections/oauth/callback/{provider}",
|
|
39
|
+
"url": f"/v1/graphs/{graph_id}/connections/oauth/callback/{provider}",
|
|
40
|
+
"params": params,
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
_kwargs["json"] = body.to_dict()
|
|
@@ -84,6 +97,7 @@ def sync_detailed(
|
|
|
84
97
|
*,
|
|
85
98
|
client: AuthenticatedClient,
|
|
86
99
|
body: OAuthCallbackRequest,
|
|
100
|
+
token: Union[None, Unset, str] = UNSET,
|
|
87
101
|
authorization: Union[None, Unset, str] = UNSET,
|
|
88
102
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
89
103
|
"""OAuth Callback
|
|
@@ -111,6 +125,7 @@ def sync_detailed(
|
|
|
111
125
|
Args:
|
|
112
126
|
graph_id (str): Graph database identifier
|
|
113
127
|
provider (str): OAuth provider name
|
|
128
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
114
129
|
authorization (Union[None, Unset, str]):
|
|
115
130
|
body (OAuthCallbackRequest): OAuth callback parameters.
|
|
116
131
|
|
|
@@ -126,6 +141,7 @@ def sync_detailed(
|
|
|
126
141
|
graph_id=graph_id,
|
|
127
142
|
provider=provider,
|
|
128
143
|
body=body,
|
|
144
|
+
token=token,
|
|
129
145
|
authorization=authorization,
|
|
130
146
|
)
|
|
131
147
|
|
|
@@ -142,6 +158,7 @@ def sync(
|
|
|
142
158
|
*,
|
|
143
159
|
client: AuthenticatedClient,
|
|
144
160
|
body: OAuthCallbackRequest,
|
|
161
|
+
token: Union[None, Unset, str] = UNSET,
|
|
145
162
|
authorization: Union[None, Unset, str] = UNSET,
|
|
146
163
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
147
164
|
"""OAuth Callback
|
|
@@ -169,6 +186,7 @@ def sync(
|
|
|
169
186
|
Args:
|
|
170
187
|
graph_id (str): Graph database identifier
|
|
171
188
|
provider (str): OAuth provider name
|
|
189
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
172
190
|
authorization (Union[None, Unset, str]):
|
|
173
191
|
body (OAuthCallbackRequest): OAuth callback parameters.
|
|
174
192
|
|
|
@@ -185,6 +203,7 @@ def sync(
|
|
|
185
203
|
provider=provider,
|
|
186
204
|
client=client,
|
|
187
205
|
body=body,
|
|
206
|
+
token=token,
|
|
188
207
|
authorization=authorization,
|
|
189
208
|
).parsed
|
|
190
209
|
|
|
@@ -195,6 +214,7 @@ async def asyncio_detailed(
|
|
|
195
214
|
*,
|
|
196
215
|
client: AuthenticatedClient,
|
|
197
216
|
body: OAuthCallbackRequest,
|
|
217
|
+
token: Union[None, Unset, str] = UNSET,
|
|
198
218
|
authorization: Union[None, Unset, str] = UNSET,
|
|
199
219
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
200
220
|
"""OAuth Callback
|
|
@@ -222,6 +242,7 @@ async def asyncio_detailed(
|
|
|
222
242
|
Args:
|
|
223
243
|
graph_id (str): Graph database identifier
|
|
224
244
|
provider (str): OAuth provider name
|
|
245
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
225
246
|
authorization (Union[None, Unset, str]):
|
|
226
247
|
body (OAuthCallbackRequest): OAuth callback parameters.
|
|
227
248
|
|
|
@@ -237,6 +258,7 @@ async def asyncio_detailed(
|
|
|
237
258
|
graph_id=graph_id,
|
|
238
259
|
provider=provider,
|
|
239
260
|
body=body,
|
|
261
|
+
token=token,
|
|
240
262
|
authorization=authorization,
|
|
241
263
|
)
|
|
242
264
|
|
|
@@ -251,6 +273,7 @@ async def asyncio(
|
|
|
251
273
|
*,
|
|
252
274
|
client: AuthenticatedClient,
|
|
253
275
|
body: OAuthCallbackRequest,
|
|
276
|
+
token: Union[None, Unset, str] = UNSET,
|
|
254
277
|
authorization: Union[None, Unset, str] = UNSET,
|
|
255
278
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
256
279
|
"""OAuth Callback
|
|
@@ -278,6 +301,7 @@ async def asyncio(
|
|
|
278
301
|
Args:
|
|
279
302
|
graph_id (str): Graph database identifier
|
|
280
303
|
provider (str): OAuth provider name
|
|
304
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
281
305
|
authorization (Union[None, Unset, str]):
|
|
282
306
|
body (OAuthCallbackRequest): OAuth callback parameters.
|
|
283
307
|
|
|
@@ -295,6 +319,7 @@ async def asyncio(
|
|
|
295
319
|
provider=provider,
|
|
296
320
|
client=client,
|
|
297
321
|
body=body,
|
|
322
|
+
token=token,
|
|
298
323
|
authorization=authorization,
|
|
299
324
|
)
|
|
300
325
|
).parsed
|
|
@@ -19,15 +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
24
|
) -> dict[str, Any]:
|
|
24
25
|
headers: dict[str, Any] = {}
|
|
25
26
|
if not isinstance(authorization, Unset):
|
|
26
27
|
headers["authorization"] = authorization
|
|
27
28
|
|
|
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}
|
|
39
|
+
|
|
28
40
|
_kwargs: dict[str, Any] = {
|
|
29
41
|
"method": "post",
|
|
30
|
-
"url": f"/v1/{graph_id}/connections/{connection_id}/sync",
|
|
42
|
+
"url": f"/v1/graphs/{graph_id}/connections/{connection_id}/sync",
|
|
43
|
+
"params": params,
|
|
31
44
|
}
|
|
32
45
|
|
|
33
46
|
_kwargs["json"] = body.to_dict()
|
|
@@ -88,6 +101,7 @@ def sync_detailed(
|
|
|
88
101
|
*,
|
|
89
102
|
client: AuthenticatedClient,
|
|
90
103
|
body: SyncConnectionRequest,
|
|
104
|
+
token: Union[None, Unset, str] = UNSET,
|
|
91
105
|
authorization: Union[None, Unset, str] = UNSET,
|
|
92
106
|
) -> Response[
|
|
93
107
|
Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
|
|
@@ -122,6 +136,7 @@ def sync_detailed(
|
|
|
122
136
|
Args:
|
|
123
137
|
graph_id (str): Graph database identifier
|
|
124
138
|
connection_id (str): Connection identifier
|
|
139
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
140
|
authorization (Union[None, Unset, str]):
|
|
126
141
|
body (SyncConnectionRequest): Request to sync a connection.
|
|
127
142
|
|
|
@@ -137,6 +152,7 @@ def sync_detailed(
|
|
|
137
152
|
graph_id=graph_id,
|
|
138
153
|
connection_id=connection_id,
|
|
139
154
|
body=body,
|
|
155
|
+
token=token,
|
|
140
156
|
authorization=authorization,
|
|
141
157
|
)
|
|
142
158
|
|
|
@@ -153,6 +169,7 @@ def sync(
|
|
|
153
169
|
*,
|
|
154
170
|
client: AuthenticatedClient,
|
|
155
171
|
body: SyncConnectionRequest,
|
|
172
|
+
token: Union[None, Unset, str] = UNSET,
|
|
156
173
|
authorization: Union[None, Unset, str] = UNSET,
|
|
157
174
|
) -> Optional[
|
|
158
175
|
Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
|
|
@@ -187,6 +204,7 @@ def sync(
|
|
|
187
204
|
Args:
|
|
188
205
|
graph_id (str): Graph database identifier
|
|
189
206
|
connection_id (str): Connection identifier
|
|
207
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
190
208
|
authorization (Union[None, Unset, str]):
|
|
191
209
|
body (SyncConnectionRequest): Request to sync a connection.
|
|
192
210
|
|
|
@@ -203,6 +221,7 @@ def sync(
|
|
|
203
221
|
connection_id=connection_id,
|
|
204
222
|
client=client,
|
|
205
223
|
body=body,
|
|
224
|
+
token=token,
|
|
206
225
|
authorization=authorization,
|
|
207
226
|
).parsed
|
|
208
227
|
|
|
@@ -213,6 +232,7 @@ async def asyncio_detailed(
|
|
|
213
232
|
*,
|
|
214
233
|
client: AuthenticatedClient,
|
|
215
234
|
body: SyncConnectionRequest,
|
|
235
|
+
token: Union[None, Unset, str] = UNSET,
|
|
216
236
|
authorization: Union[None, Unset, str] = UNSET,
|
|
217
237
|
) -> Response[
|
|
218
238
|
Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
|
|
@@ -247,6 +267,7 @@ async def asyncio_detailed(
|
|
|
247
267
|
Args:
|
|
248
268
|
graph_id (str): Graph database identifier
|
|
249
269
|
connection_id (str): Connection identifier
|
|
270
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
250
271
|
authorization (Union[None, Unset, str]):
|
|
251
272
|
body (SyncConnectionRequest): Request to sync a connection.
|
|
252
273
|
|
|
@@ -262,6 +283,7 @@ async def asyncio_detailed(
|
|
|
262
283
|
graph_id=graph_id,
|
|
263
284
|
connection_id=connection_id,
|
|
264
285
|
body=body,
|
|
286
|
+
token=token,
|
|
265
287
|
authorization=authorization,
|
|
266
288
|
)
|
|
267
289
|
|
|
@@ -276,6 +298,7 @@ async def asyncio(
|
|
|
276
298
|
*,
|
|
277
299
|
client: AuthenticatedClient,
|
|
278
300
|
body: SyncConnectionRequest,
|
|
301
|
+
token: Union[None, Unset, str] = UNSET,
|
|
279
302
|
authorization: Union[None, Unset, str] = UNSET,
|
|
280
303
|
) -> Optional[
|
|
281
304
|
Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
|
|
@@ -310,6 +333,7 @@ async def asyncio(
|
|
|
310
333
|
Args:
|
|
311
334
|
graph_id (str): Graph database identifier
|
|
312
335
|
connection_id (str): Connection identifier
|
|
336
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
313
337
|
authorization (Union[None, Unset, str]):
|
|
314
338
|
body (SyncConnectionRequest): Request to sync a connection.
|
|
315
339
|
|
|
@@ -327,6 +351,7 @@ async def asyncio(
|
|
|
327
351
|
connection_id=connection_id,
|
|
328
352
|
client=client,
|
|
329
353
|
body=body,
|
|
354
|
+
token=token,
|
|
330
355
|
authorization=authorization,
|
|
331
356
|
)
|
|
332
357
|
).parsed
|
|
@@ -17,15 +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
22
|
) -> dict[str, Any]:
|
|
22
23
|
headers: dict[str, Any] = {}
|
|
23
24
|
if not isinstance(authorization, Unset):
|
|
24
25
|
headers["authorization"] = authorization
|
|
25
26
|
|
|
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}
|
|
37
|
+
|
|
26
38
|
_kwargs: dict[str, Any] = {
|
|
27
39
|
"method": "post",
|
|
28
|
-
"url": f"/v1/{graph_id}/copy",
|
|
40
|
+
"url": f"/v1/graphs/{graph_id}/copy",
|
|
41
|
+
"params": params,
|
|
29
42
|
}
|
|
30
43
|
|
|
31
44
|
_kwargs["json"]: dict[str, Any]
|
|
@@ -96,6 +109,7 @@ def sync_detailed(
|
|
|
96
109
|
*,
|
|
97
110
|
client: AuthenticatedClient,
|
|
98
111
|
body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
|
|
112
|
+
token: Union[None, Unset, str] = UNSET,
|
|
99
113
|
authorization: Union[None, Unset, str] = UNSET,
|
|
100
114
|
) -> Response[Union[Any, CopyResponse, HTTPValidationError]]:
|
|
101
115
|
"""Copy Data to Graph
|
|
@@ -162,6 +176,7 @@ def sync_detailed(
|
|
|
162
176
|
Args:
|
|
163
177
|
graph_id (str): Target graph identifier (user graphs only - shared repositories not
|
|
164
178
|
allowed)
|
|
179
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
165
180
|
authorization (Union[None, Unset, str]):
|
|
166
181
|
body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
|
|
167
182
|
|
|
@@ -176,6 +191,7 @@ def sync_detailed(
|
|
|
176
191
|
kwargs = _get_kwargs(
|
|
177
192
|
graph_id=graph_id,
|
|
178
193
|
body=body,
|
|
194
|
+
token=token,
|
|
179
195
|
authorization=authorization,
|
|
180
196
|
)
|
|
181
197
|
|
|
@@ -191,6 +207,7 @@ def sync(
|
|
|
191
207
|
*,
|
|
192
208
|
client: AuthenticatedClient,
|
|
193
209
|
body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
|
|
210
|
+
token: Union[None, Unset, str] = UNSET,
|
|
194
211
|
authorization: Union[None, Unset, str] = UNSET,
|
|
195
212
|
) -> Optional[Union[Any, CopyResponse, HTTPValidationError]]:
|
|
196
213
|
"""Copy Data to Graph
|
|
@@ -257,6 +274,7 @@ def sync(
|
|
|
257
274
|
Args:
|
|
258
275
|
graph_id (str): Target graph identifier (user graphs only - shared repositories not
|
|
259
276
|
allowed)
|
|
277
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
260
278
|
authorization (Union[None, Unset, str]):
|
|
261
279
|
body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
|
|
262
280
|
|
|
@@ -272,6 +290,7 @@ def sync(
|
|
|
272
290
|
graph_id=graph_id,
|
|
273
291
|
client=client,
|
|
274
292
|
body=body,
|
|
293
|
+
token=token,
|
|
275
294
|
authorization=authorization,
|
|
276
295
|
).parsed
|
|
277
296
|
|
|
@@ -281,6 +300,7 @@ async def asyncio_detailed(
|
|
|
281
300
|
*,
|
|
282
301
|
client: AuthenticatedClient,
|
|
283
302
|
body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
|
|
303
|
+
token: Union[None, Unset, str] = UNSET,
|
|
284
304
|
authorization: Union[None, Unset, str] = UNSET,
|
|
285
305
|
) -> Response[Union[Any, CopyResponse, HTTPValidationError]]:
|
|
286
306
|
"""Copy Data to Graph
|
|
@@ -347,6 +367,7 @@ async def asyncio_detailed(
|
|
|
347
367
|
Args:
|
|
348
368
|
graph_id (str): Target graph identifier (user graphs only - shared repositories not
|
|
349
369
|
allowed)
|
|
370
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
350
371
|
authorization (Union[None, Unset, str]):
|
|
351
372
|
body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
|
|
352
373
|
|
|
@@ -361,6 +382,7 @@ async def asyncio_detailed(
|
|
|
361
382
|
kwargs = _get_kwargs(
|
|
362
383
|
graph_id=graph_id,
|
|
363
384
|
body=body,
|
|
385
|
+
token=token,
|
|
364
386
|
authorization=authorization,
|
|
365
387
|
)
|
|
366
388
|
|
|
@@ -374,6 +396,7 @@ async def asyncio(
|
|
|
374
396
|
*,
|
|
375
397
|
client: AuthenticatedClient,
|
|
376
398
|
body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
|
|
399
|
+
token: Union[None, Unset, str] = UNSET,
|
|
377
400
|
authorization: Union[None, Unset, str] = UNSET,
|
|
378
401
|
) -> Optional[Union[Any, CopyResponse, HTTPValidationError]]:
|
|
379
402
|
"""Copy Data to Graph
|
|
@@ -440,6 +463,7 @@ async def asyncio(
|
|
|
440
463
|
Args:
|
|
441
464
|
graph_id (str): Target graph identifier (user graphs only - shared repositories not
|
|
442
465
|
allowed)
|
|
466
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
443
467
|
authorization (Union[None, Unset, str]):
|
|
444
468
|
body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
|
|
445
469
|
|
|
@@ -456,6 +480,7 @@ async def asyncio(
|
|
|
456
480
|
graph_id=graph_id,
|
|
457
481
|
client=client,
|
|
458
482
|
body=body,
|
|
483
|
+
token=token,
|
|
459
484
|
authorization=authorization,
|
|
460
485
|
)
|
|
461
486
|
).parsed
|
|
@@ -14,15 +14,28 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
|
+
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
18
19
|
) -> dict[str, Any]:
|
|
19
20
|
headers: dict[str, Any] = {}
|
|
20
21
|
if not isinstance(authorization, Unset):
|
|
21
22
|
headers["authorization"] = authorization
|
|
22
23
|
|
|
24
|
+
params: dict[str, Any] = {}
|
|
25
|
+
|
|
26
|
+
json_token: Union[None, Unset, str]
|
|
27
|
+
if isinstance(token, Unset):
|
|
28
|
+
json_token = UNSET
|
|
29
|
+
else:
|
|
30
|
+
json_token = token
|
|
31
|
+
params["token"] = json_token
|
|
32
|
+
|
|
33
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
34
|
+
|
|
23
35
|
_kwargs: dict[str, Any] = {
|
|
24
36
|
"method": "get",
|
|
25
|
-
"url": f"/v1/{graph_id}/analytics",
|
|
37
|
+
"url": f"/v1/graphs/{graph_id}/analytics",
|
|
38
|
+
"params": params,
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
_kwargs["headers"] = headers
|
|
@@ -73,6 +86,7 @@ def sync_detailed(
|
|
|
73
86
|
graph_id: str,
|
|
74
87
|
*,
|
|
75
88
|
client: AuthenticatedClient,
|
|
89
|
+
token: Union[None, Unset, str] = UNSET,
|
|
76
90
|
authorization: Union[None, Unset, str] = UNSET,
|
|
77
91
|
) -> Response[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
|
|
78
92
|
"""Get Graph Metrics
|
|
@@ -97,6 +111,7 @@ def sync_detailed(
|
|
|
97
111
|
|
|
98
112
|
Args:
|
|
99
113
|
graph_id (str): The graph ID to get metrics for
|
|
114
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
100
115
|
authorization (Union[None, Unset, str]):
|
|
101
116
|
|
|
102
117
|
Raises:
|
|
@@ -109,6 +124,7 @@ def sync_detailed(
|
|
|
109
124
|
|
|
110
125
|
kwargs = _get_kwargs(
|
|
111
126
|
graph_id=graph_id,
|
|
127
|
+
token=token,
|
|
112
128
|
authorization=authorization,
|
|
113
129
|
)
|
|
114
130
|
|
|
@@ -123,6 +139,7 @@ def sync(
|
|
|
123
139
|
graph_id: str,
|
|
124
140
|
*,
|
|
125
141
|
client: AuthenticatedClient,
|
|
142
|
+
token: Union[None, Unset, str] = UNSET,
|
|
126
143
|
authorization: Union[None, Unset, str] = UNSET,
|
|
127
144
|
) -> Optional[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
|
|
128
145
|
"""Get Graph Metrics
|
|
@@ -147,6 +164,7 @@ def sync(
|
|
|
147
164
|
|
|
148
165
|
Args:
|
|
149
166
|
graph_id (str): The graph ID to get metrics for
|
|
167
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
150
168
|
authorization (Union[None, Unset, str]):
|
|
151
169
|
|
|
152
170
|
Raises:
|
|
@@ -160,6 +178,7 @@ def sync(
|
|
|
160
178
|
return sync_detailed(
|
|
161
179
|
graph_id=graph_id,
|
|
162
180
|
client=client,
|
|
181
|
+
token=token,
|
|
163
182
|
authorization=authorization,
|
|
164
183
|
).parsed
|
|
165
184
|
|
|
@@ -168,6 +187,7 @@ async def asyncio_detailed(
|
|
|
168
187
|
graph_id: str,
|
|
169
188
|
*,
|
|
170
189
|
client: AuthenticatedClient,
|
|
190
|
+
token: Union[None, Unset, str] = UNSET,
|
|
171
191
|
authorization: Union[None, Unset, str] = UNSET,
|
|
172
192
|
) -> Response[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
|
|
173
193
|
"""Get Graph Metrics
|
|
@@ -192,6 +212,7 @@ async def asyncio_detailed(
|
|
|
192
212
|
|
|
193
213
|
Args:
|
|
194
214
|
graph_id (str): The graph ID to get metrics for
|
|
215
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
195
216
|
authorization (Union[None, Unset, str]):
|
|
196
217
|
|
|
197
218
|
Raises:
|
|
@@ -204,6 +225,7 @@ async def asyncio_detailed(
|
|
|
204
225
|
|
|
205
226
|
kwargs = _get_kwargs(
|
|
206
227
|
graph_id=graph_id,
|
|
228
|
+
token=token,
|
|
207
229
|
authorization=authorization,
|
|
208
230
|
)
|
|
209
231
|
|
|
@@ -216,6 +238,7 @@ async def asyncio(
|
|
|
216
238
|
graph_id: str,
|
|
217
239
|
*,
|
|
218
240
|
client: AuthenticatedClient,
|
|
241
|
+
token: Union[None, Unset, str] = UNSET,
|
|
219
242
|
authorization: Union[None, Unset, str] = UNSET,
|
|
220
243
|
) -> Optional[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
|
|
221
244
|
"""Get Graph Metrics
|
|
@@ -240,6 +263,7 @@ async def asyncio(
|
|
|
240
263
|
|
|
241
264
|
Args:
|
|
242
265
|
graph_id (str): The graph ID to get metrics for
|
|
266
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
243
267
|
authorization (Union[None, Unset, str]):
|
|
244
268
|
|
|
245
269
|
Raises:
|
|
@@ -254,6 +278,7 @@ async def asyncio(
|
|
|
254
278
|
await asyncio_detailed(
|
|
255
279
|
graph_id=graph_id,
|
|
256
280
|
client=client,
|
|
281
|
+
token=token,
|
|
257
282
|
authorization=authorization,
|
|
258
283
|
)
|
|
259
284
|
).parsed
|
|
@@ -15,6 +15,7 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
include_details: Union[Unset, bool] = False,
|
|
18
|
+
token: Union[None, Unset, str] = UNSET,
|
|
18
19
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
20
|
) -> dict[str, Any]:
|
|
20
21
|
headers: dict[str, Any] = {}
|
|
@@ -25,11 +26,18 @@ def _get_kwargs(
|
|
|
25
26
|
|
|
26
27
|
params["include_details"] = include_details
|
|
27
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
|
+
|
|
28
36
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
29
37
|
|
|
30
38
|
_kwargs: dict[str, Any] = {
|
|
31
39
|
"method": "get",
|
|
32
|
-
"url": f"/v1/{graph_id}/analytics/usage",
|
|
40
|
+
"url": f"/v1/graphs/{graph_id}/analytics/usage",
|
|
33
41
|
"params": params,
|
|
34
42
|
}
|
|
35
43
|
|
|
@@ -78,6 +86,7 @@ def sync_detailed(
|
|
|
78
86
|
*,
|
|
79
87
|
client: AuthenticatedClient,
|
|
80
88
|
include_details: Union[Unset, bool] = False,
|
|
89
|
+
token: Union[None, Unset, str] = UNSET,
|
|
81
90
|
authorization: Union[None, Unset, str] = UNSET,
|
|
82
91
|
) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
83
92
|
"""Get Usage Statistics
|
|
@@ -110,6 +119,7 @@ def sync_detailed(
|
|
|
110
119
|
graph_id (str): The graph ID to get usage stats for
|
|
111
120
|
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
112
121
|
False.
|
|
122
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
113
123
|
authorization (Union[None, Unset, str]):
|
|
114
124
|
|
|
115
125
|
Raises:
|
|
@@ -123,6 +133,7 @@ def sync_detailed(
|
|
|
123
133
|
kwargs = _get_kwargs(
|
|
124
134
|
graph_id=graph_id,
|
|
125
135
|
include_details=include_details,
|
|
136
|
+
token=token,
|
|
126
137
|
authorization=authorization,
|
|
127
138
|
)
|
|
128
139
|
|
|
@@ -138,6 +149,7 @@ def sync(
|
|
|
138
149
|
*,
|
|
139
150
|
client: AuthenticatedClient,
|
|
140
151
|
include_details: Union[Unset, bool] = False,
|
|
152
|
+
token: Union[None, Unset, str] = UNSET,
|
|
141
153
|
authorization: Union[None, Unset, str] = UNSET,
|
|
142
154
|
) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
143
155
|
"""Get Usage Statistics
|
|
@@ -170,6 +182,7 @@ def sync(
|
|
|
170
182
|
graph_id (str): The graph ID to get usage stats for
|
|
171
183
|
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
172
184
|
False.
|
|
185
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
173
186
|
authorization (Union[None, Unset, str]):
|
|
174
187
|
|
|
175
188
|
Raises:
|
|
@@ -184,6 +197,7 @@ def sync(
|
|
|
184
197
|
graph_id=graph_id,
|
|
185
198
|
client=client,
|
|
186
199
|
include_details=include_details,
|
|
200
|
+
token=token,
|
|
187
201
|
authorization=authorization,
|
|
188
202
|
).parsed
|
|
189
203
|
|
|
@@ -193,6 +207,7 @@ async def asyncio_detailed(
|
|
|
193
207
|
*,
|
|
194
208
|
client: AuthenticatedClient,
|
|
195
209
|
include_details: Union[Unset, bool] = False,
|
|
210
|
+
token: Union[None, Unset, str] = UNSET,
|
|
196
211
|
authorization: Union[None, Unset, str] = UNSET,
|
|
197
212
|
) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
198
213
|
"""Get Usage Statistics
|
|
@@ -225,6 +240,7 @@ async def asyncio_detailed(
|
|
|
225
240
|
graph_id (str): The graph ID to get usage stats for
|
|
226
241
|
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
227
242
|
False.
|
|
243
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
228
244
|
authorization (Union[None, Unset, str]):
|
|
229
245
|
|
|
230
246
|
Raises:
|
|
@@ -238,6 +254,7 @@ async def asyncio_detailed(
|
|
|
238
254
|
kwargs = _get_kwargs(
|
|
239
255
|
graph_id=graph_id,
|
|
240
256
|
include_details=include_details,
|
|
257
|
+
token=token,
|
|
241
258
|
authorization=authorization,
|
|
242
259
|
)
|
|
243
260
|
|
|
@@ -251,6 +268,7 @@ async def asyncio(
|
|
|
251
268
|
*,
|
|
252
269
|
client: AuthenticatedClient,
|
|
253
270
|
include_details: Union[Unset, bool] = False,
|
|
271
|
+
token: Union[None, Unset, str] = UNSET,
|
|
254
272
|
authorization: Union[None, Unset, str] = UNSET,
|
|
255
273
|
) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
256
274
|
"""Get Usage Statistics
|
|
@@ -283,6 +301,7 @@ async def asyncio(
|
|
|
283
301
|
graph_id (str): The graph ID to get usage stats for
|
|
284
302
|
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
285
303
|
False.
|
|
304
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
286
305
|
authorization (Union[None, Unset, str]):
|
|
287
306
|
|
|
288
307
|
Raises:
|
|
@@ -298,6 +317,7 @@ async def asyncio(
|
|
|
298
317
|
graph_id=graph_id,
|
|
299
318
|
client=client,
|
|
300
319
|
include_details=include_details,
|
|
320
|
+
token=token,
|
|
301
321
|
authorization=authorization,
|
|
302
322
|
)
|
|
303
323
|
).parsed
|