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
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: AgentRecommendationRequest,
|
|
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] = {}
|
|
21
22
|
if not isinstance(authorization, Unset):
|
|
22
23
|
headers["authorization"] = authorization
|
|
23
24
|
|
|
25
|
+
params: dict[str, Any] = {}
|
|
26
|
+
|
|
27
|
+
json_token: Union[None, Unset, str]
|
|
28
|
+
if isinstance(token, Unset):
|
|
29
|
+
json_token = UNSET
|
|
30
|
+
else:
|
|
31
|
+
json_token = token
|
|
32
|
+
params["token"] = json_token
|
|
33
|
+
|
|
34
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
35
|
+
|
|
24
36
|
_kwargs: dict[str, Any] = {
|
|
25
37
|
"method": "post",
|
|
26
|
-
"url": f"/v1/{graph_id}/agent/recommend",
|
|
38
|
+
"url": f"/v1/graphs/{graph_id}/agent/recommend",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -70,6 +83,7 @@ def sync_detailed(
|
|
|
70
83
|
*,
|
|
71
84
|
client: AuthenticatedClient,
|
|
72
85
|
body: AgentRecommendationRequest,
|
|
86
|
+
token: Union[None, Unset, str] = UNSET,
|
|
73
87
|
authorization: Union[None, Unset, str] = UNSET,
|
|
74
88
|
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
75
89
|
"""Get agent recommendations
|
|
@@ -91,6 +105,7 @@ def sync_detailed(
|
|
|
91
105
|
|
|
92
106
|
Args:
|
|
93
107
|
graph_id (str): Graph database identifier
|
|
108
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
94
109
|
authorization (Union[None, Unset, str]):
|
|
95
110
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
96
111
|
|
|
@@ -105,6 +120,7 @@ def sync_detailed(
|
|
|
105
120
|
kwargs = _get_kwargs(
|
|
106
121
|
graph_id=graph_id,
|
|
107
122
|
body=body,
|
|
123
|
+
token=token,
|
|
108
124
|
authorization=authorization,
|
|
109
125
|
)
|
|
110
126
|
|
|
@@ -120,6 +136,7 @@ def sync(
|
|
|
120
136
|
*,
|
|
121
137
|
client: AuthenticatedClient,
|
|
122
138
|
body: AgentRecommendationRequest,
|
|
139
|
+
token: Union[None, Unset, str] = UNSET,
|
|
123
140
|
authorization: Union[None, Unset, str] = UNSET,
|
|
124
141
|
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
125
142
|
"""Get agent recommendations
|
|
@@ -141,6 +158,7 @@ def sync(
|
|
|
141
158
|
|
|
142
159
|
Args:
|
|
143
160
|
graph_id (str): Graph database identifier
|
|
161
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
144
162
|
authorization (Union[None, Unset, str]):
|
|
145
163
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
146
164
|
|
|
@@ -156,6 +174,7 @@ def sync(
|
|
|
156
174
|
graph_id=graph_id,
|
|
157
175
|
client=client,
|
|
158
176
|
body=body,
|
|
177
|
+
token=token,
|
|
159
178
|
authorization=authorization,
|
|
160
179
|
).parsed
|
|
161
180
|
|
|
@@ -165,6 +184,7 @@ async def asyncio_detailed(
|
|
|
165
184
|
*,
|
|
166
185
|
client: AuthenticatedClient,
|
|
167
186
|
body: AgentRecommendationRequest,
|
|
187
|
+
token: Union[None, Unset, str] = UNSET,
|
|
168
188
|
authorization: Union[None, Unset, str] = UNSET,
|
|
169
189
|
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
170
190
|
"""Get agent recommendations
|
|
@@ -186,6 +206,7 @@ async def asyncio_detailed(
|
|
|
186
206
|
|
|
187
207
|
Args:
|
|
188
208
|
graph_id (str): Graph database identifier
|
|
209
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
189
210
|
authorization (Union[None, Unset, str]):
|
|
190
211
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
191
212
|
|
|
@@ -200,6 +221,7 @@ async def asyncio_detailed(
|
|
|
200
221
|
kwargs = _get_kwargs(
|
|
201
222
|
graph_id=graph_id,
|
|
202
223
|
body=body,
|
|
224
|
+
token=token,
|
|
203
225
|
authorization=authorization,
|
|
204
226
|
)
|
|
205
227
|
|
|
@@ -213,6 +235,7 @@ async def asyncio(
|
|
|
213
235
|
*,
|
|
214
236
|
client: AuthenticatedClient,
|
|
215
237
|
body: AgentRecommendationRequest,
|
|
238
|
+
token: Union[None, Unset, str] = UNSET,
|
|
216
239
|
authorization: Union[None, Unset, str] = UNSET,
|
|
217
240
|
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
218
241
|
"""Get agent recommendations
|
|
@@ -234,6 +257,7 @@ async def asyncio(
|
|
|
234
257
|
|
|
235
258
|
Args:
|
|
236
259
|
graph_id (str): Graph database identifier
|
|
260
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
237
261
|
authorization (Union[None, Unset, str]):
|
|
238
262
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
239
263
|
|
|
@@ -250,6 +274,7 @@ async def asyncio(
|
|
|
250
274
|
graph_id=graph_id,
|
|
251
275
|
client=client,
|
|
252
276
|
body=body,
|
|
277
|
+
token=token,
|
|
253
278
|
authorization=authorization,
|
|
254
279
|
)
|
|
255
280
|
).parsed
|
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: BackupCreateRequest,
|
|
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] = {}
|
|
21
22
|
if not isinstance(authorization, Unset):
|
|
22
23
|
headers["authorization"] = authorization
|
|
23
24
|
|
|
25
|
+
params: dict[str, Any] = {}
|
|
26
|
+
|
|
27
|
+
json_token: Union[None, Unset, str]
|
|
28
|
+
if isinstance(token, Unset):
|
|
29
|
+
json_token = UNSET
|
|
30
|
+
else:
|
|
31
|
+
json_token = token
|
|
32
|
+
params["token"] = json_token
|
|
33
|
+
|
|
34
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
35
|
+
|
|
24
36
|
_kwargs: dict[str, Any] = {
|
|
25
37
|
"method": "post",
|
|
26
|
-
"url": f"/v1/{graph_id}/backups",
|
|
38
|
+
"url": f"/v1/graphs/{graph_id}/backups",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -82,6 +95,7 @@ def sync_detailed(
|
|
|
82
95
|
*,
|
|
83
96
|
client: AuthenticatedClient,
|
|
84
97
|
body: BackupCreateRequest,
|
|
98
|
+
token: Union[None, Unset, str] = UNSET,
|
|
85
99
|
authorization: Union[None, Unset, str] = UNSET,
|
|
86
100
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
87
101
|
"""Create Backup
|
|
@@ -131,6 +145,7 @@ def sync_detailed(
|
|
|
131
145
|
|
|
132
146
|
Args:
|
|
133
147
|
graph_id (str): Graph database identifier
|
|
148
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
134
149
|
authorization (Union[None, Unset, str]):
|
|
135
150
|
body (BackupCreateRequest): Request model for creating a backup.
|
|
136
151
|
|
|
@@ -145,6 +160,7 @@ def sync_detailed(
|
|
|
145
160
|
kwargs = _get_kwargs(
|
|
146
161
|
graph_id=graph_id,
|
|
147
162
|
body=body,
|
|
163
|
+
token=token,
|
|
148
164
|
authorization=authorization,
|
|
149
165
|
)
|
|
150
166
|
|
|
@@ -160,6 +176,7 @@ def sync(
|
|
|
160
176
|
*,
|
|
161
177
|
client: AuthenticatedClient,
|
|
162
178
|
body: BackupCreateRequest,
|
|
179
|
+
token: Union[None, Unset, str] = UNSET,
|
|
163
180
|
authorization: Union[None, Unset, str] = UNSET,
|
|
164
181
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
165
182
|
"""Create Backup
|
|
@@ -209,6 +226,7 @@ def sync(
|
|
|
209
226
|
|
|
210
227
|
Args:
|
|
211
228
|
graph_id (str): Graph database identifier
|
|
229
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
212
230
|
authorization (Union[None, Unset, str]):
|
|
213
231
|
body (BackupCreateRequest): Request model for creating a backup.
|
|
214
232
|
|
|
@@ -224,6 +242,7 @@ def sync(
|
|
|
224
242
|
graph_id=graph_id,
|
|
225
243
|
client=client,
|
|
226
244
|
body=body,
|
|
245
|
+
token=token,
|
|
227
246
|
authorization=authorization,
|
|
228
247
|
).parsed
|
|
229
248
|
|
|
@@ -233,6 +252,7 @@ async def asyncio_detailed(
|
|
|
233
252
|
*,
|
|
234
253
|
client: AuthenticatedClient,
|
|
235
254
|
body: BackupCreateRequest,
|
|
255
|
+
token: Union[None, Unset, str] = UNSET,
|
|
236
256
|
authorization: Union[None, Unset, str] = UNSET,
|
|
237
257
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
238
258
|
"""Create Backup
|
|
@@ -282,6 +302,7 @@ async def asyncio_detailed(
|
|
|
282
302
|
|
|
283
303
|
Args:
|
|
284
304
|
graph_id (str): Graph database identifier
|
|
305
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
285
306
|
authorization (Union[None, Unset, str]):
|
|
286
307
|
body (BackupCreateRequest): Request model for creating a backup.
|
|
287
308
|
|
|
@@ -296,6 +317,7 @@ async def asyncio_detailed(
|
|
|
296
317
|
kwargs = _get_kwargs(
|
|
297
318
|
graph_id=graph_id,
|
|
298
319
|
body=body,
|
|
320
|
+
token=token,
|
|
299
321
|
authorization=authorization,
|
|
300
322
|
)
|
|
301
323
|
|
|
@@ -309,6 +331,7 @@ async def asyncio(
|
|
|
309
331
|
*,
|
|
310
332
|
client: AuthenticatedClient,
|
|
311
333
|
body: BackupCreateRequest,
|
|
334
|
+
token: Union[None, Unset, str] = UNSET,
|
|
312
335
|
authorization: Union[None, Unset, str] = UNSET,
|
|
313
336
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
314
337
|
"""Create Backup
|
|
@@ -358,6 +381,7 @@ async def asyncio(
|
|
|
358
381
|
|
|
359
382
|
Args:
|
|
360
383
|
graph_id (str): Graph database identifier
|
|
384
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
361
385
|
authorization (Union[None, Unset, str]):
|
|
362
386
|
body (BackupCreateRequest): Request model for creating a backup.
|
|
363
387
|
|
|
@@ -374,6 +398,7 @@ async def asyncio(
|
|
|
374
398
|
graph_id=graph_id,
|
|
375
399
|
client=client,
|
|
376
400
|
body=body,
|
|
401
|
+
token=token,
|
|
377
402
|
authorization=authorization,
|
|
378
403
|
)
|
|
379
404
|
).parsed
|
|
@@ -13,15 +13,28 @@ def _get_kwargs(
|
|
|
13
13
|
graph_id: str,
|
|
14
14
|
backup_id: str,
|
|
15
15
|
*,
|
|
16
|
+
token: Union[None, Unset, str] = UNSET,
|
|
16
17
|
authorization: Union[None, Unset, str] = UNSET,
|
|
17
18
|
) -> dict[str, Any]:
|
|
18
19
|
headers: dict[str, Any] = {}
|
|
19
20
|
if not isinstance(authorization, Unset):
|
|
20
21
|
headers["authorization"] = authorization
|
|
21
22
|
|
|
23
|
+
params: dict[str, Any] = {}
|
|
24
|
+
|
|
25
|
+
json_token: Union[None, Unset, str]
|
|
26
|
+
if isinstance(token, Unset):
|
|
27
|
+
json_token = UNSET
|
|
28
|
+
else:
|
|
29
|
+
json_token = token
|
|
30
|
+
params["token"] = json_token
|
|
31
|
+
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
33
|
+
|
|
22
34
|
_kwargs: dict[str, Any] = {
|
|
23
35
|
"method": "post",
|
|
24
|
-
"url": f"/v1/{graph_id}/backups/{backup_id}/export",
|
|
36
|
+
"url": f"/v1/graphs/{graph_id}/backups/{backup_id}/export",
|
|
37
|
+
"params": params,
|
|
25
38
|
}
|
|
26
39
|
|
|
27
40
|
_kwargs["headers"] = headers
|
|
@@ -66,6 +79,7 @@ def sync_detailed(
|
|
|
66
79
|
backup_id: str,
|
|
67
80
|
*,
|
|
68
81
|
client: AuthenticatedClient,
|
|
82
|
+
token: Union[None, Unset, str] = UNSET,
|
|
69
83
|
authorization: Union[None, Unset, str] = UNSET,
|
|
70
84
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
71
85
|
"""Export Kuzu backup for download
|
|
@@ -75,6 +89,7 @@ def sync_detailed(
|
|
|
75
89
|
Args:
|
|
76
90
|
graph_id (str): Graph database identifier
|
|
77
91
|
backup_id (str): Backup identifier
|
|
92
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
78
93
|
authorization (Union[None, Unset, str]):
|
|
79
94
|
|
|
80
95
|
Raises:
|
|
@@ -88,6 +103,7 @@ def sync_detailed(
|
|
|
88
103
|
kwargs = _get_kwargs(
|
|
89
104
|
graph_id=graph_id,
|
|
90
105
|
backup_id=backup_id,
|
|
106
|
+
token=token,
|
|
91
107
|
authorization=authorization,
|
|
92
108
|
)
|
|
93
109
|
|
|
@@ -103,6 +119,7 @@ def sync(
|
|
|
103
119
|
backup_id: str,
|
|
104
120
|
*,
|
|
105
121
|
client: AuthenticatedClient,
|
|
122
|
+
token: Union[None, Unset, str] = UNSET,
|
|
106
123
|
authorization: Union[None, Unset, str] = UNSET,
|
|
107
124
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
108
125
|
"""Export Kuzu backup for download
|
|
@@ -112,6 +129,7 @@ def sync(
|
|
|
112
129
|
Args:
|
|
113
130
|
graph_id (str): Graph database identifier
|
|
114
131
|
backup_id (str): Backup identifier
|
|
132
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
115
133
|
authorization (Union[None, Unset, str]):
|
|
116
134
|
|
|
117
135
|
Raises:
|
|
@@ -126,6 +144,7 @@ def sync(
|
|
|
126
144
|
graph_id=graph_id,
|
|
127
145
|
backup_id=backup_id,
|
|
128
146
|
client=client,
|
|
147
|
+
token=token,
|
|
129
148
|
authorization=authorization,
|
|
130
149
|
).parsed
|
|
131
150
|
|
|
@@ -135,6 +154,7 @@ async def asyncio_detailed(
|
|
|
135
154
|
backup_id: str,
|
|
136
155
|
*,
|
|
137
156
|
client: AuthenticatedClient,
|
|
157
|
+
token: Union[None, Unset, str] = UNSET,
|
|
138
158
|
authorization: Union[None, Unset, str] = UNSET,
|
|
139
159
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
140
160
|
"""Export Kuzu backup for download
|
|
@@ -144,6 +164,7 @@ async def asyncio_detailed(
|
|
|
144
164
|
Args:
|
|
145
165
|
graph_id (str): Graph database identifier
|
|
146
166
|
backup_id (str): Backup identifier
|
|
167
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
147
168
|
authorization (Union[None, Unset, str]):
|
|
148
169
|
|
|
149
170
|
Raises:
|
|
@@ -157,6 +178,7 @@ async def asyncio_detailed(
|
|
|
157
178
|
kwargs = _get_kwargs(
|
|
158
179
|
graph_id=graph_id,
|
|
159
180
|
backup_id=backup_id,
|
|
181
|
+
token=token,
|
|
160
182
|
authorization=authorization,
|
|
161
183
|
)
|
|
162
184
|
|
|
@@ -170,6 +192,7 @@ async def asyncio(
|
|
|
170
192
|
backup_id: str,
|
|
171
193
|
*,
|
|
172
194
|
client: AuthenticatedClient,
|
|
195
|
+
token: Union[None, Unset, str] = UNSET,
|
|
173
196
|
authorization: Union[None, Unset, str] = UNSET,
|
|
174
197
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
175
198
|
"""Export Kuzu backup for download
|
|
@@ -179,6 +202,7 @@ async def asyncio(
|
|
|
179
202
|
Args:
|
|
180
203
|
graph_id (str): Graph database identifier
|
|
181
204
|
backup_id (str): Backup identifier
|
|
205
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
182
206
|
authorization (Union[None, Unset, str]):
|
|
183
207
|
|
|
184
208
|
Raises:
|
|
@@ -194,6 +218,7 @@ async def asyncio(
|
|
|
194
218
|
graph_id=graph_id,
|
|
195
219
|
backup_id=backup_id,
|
|
196
220
|
client=client,
|
|
221
|
+
token=token,
|
|
197
222
|
authorization=authorization,
|
|
198
223
|
)
|
|
199
224
|
).parsed
|
|
@@ -17,6 +17,7 @@ def _get_kwargs(
|
|
|
17
17
|
backup_id: str,
|
|
18
18
|
*,
|
|
19
19
|
expires_in: Union[Unset, int] = 3600,
|
|
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] = {}
|
|
@@ -27,11 +28,18 @@ def _get_kwargs(
|
|
|
27
28
|
|
|
28
29
|
params["expires_in"] = expires_in
|
|
29
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
|
+
|
|
30
38
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
31
39
|
|
|
32
40
|
_kwargs: dict[str, Any] = {
|
|
33
41
|
"method": "get",
|
|
34
|
-
"url": f"/v1/{graph_id}/backups/{backup_id}/download",
|
|
42
|
+
"url": f"/v1/graphs/{graph_id}/backups/{backup_id}/download",
|
|
35
43
|
"params": params,
|
|
36
44
|
}
|
|
37
45
|
|
|
@@ -88,6 +96,7 @@ def sync_detailed(
|
|
|
88
96
|
*,
|
|
89
97
|
client: AuthenticatedClient,
|
|
90
98
|
expires_in: Union[Unset, int] = 3600,
|
|
99
|
+
token: Union[None, Unset, str] = UNSET,
|
|
91
100
|
authorization: Union[None, Unset, str] = UNSET,
|
|
92
101
|
) -> Response[
|
|
93
102
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
@@ -100,6 +109,7 @@ def sync_detailed(
|
|
|
100
109
|
graph_id (str): Graph database identifier
|
|
101
110
|
backup_id (str): Backup identifier
|
|
102
111
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
112
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
103
113
|
authorization (Union[None, Unset, str]):
|
|
104
114
|
|
|
105
115
|
Raises:
|
|
@@ -114,6 +124,7 @@ def sync_detailed(
|
|
|
114
124
|
graph_id=graph_id,
|
|
115
125
|
backup_id=backup_id,
|
|
116
126
|
expires_in=expires_in,
|
|
127
|
+
token=token,
|
|
117
128
|
authorization=authorization,
|
|
118
129
|
)
|
|
119
130
|
|
|
@@ -130,6 +141,7 @@ def sync(
|
|
|
130
141
|
*,
|
|
131
142
|
client: AuthenticatedClient,
|
|
132
143
|
expires_in: Union[Unset, int] = 3600,
|
|
144
|
+
token: Union[None, Unset, str] = UNSET,
|
|
133
145
|
authorization: Union[None, Unset, str] = UNSET,
|
|
134
146
|
) -> Optional[
|
|
135
147
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
@@ -142,6 +154,7 @@ def sync(
|
|
|
142
154
|
graph_id (str): Graph database identifier
|
|
143
155
|
backup_id (str): Backup identifier
|
|
144
156
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
157
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
145
158
|
authorization (Union[None, Unset, str]):
|
|
146
159
|
|
|
147
160
|
Raises:
|
|
@@ -157,6 +170,7 @@ def sync(
|
|
|
157
170
|
backup_id=backup_id,
|
|
158
171
|
client=client,
|
|
159
172
|
expires_in=expires_in,
|
|
173
|
+
token=token,
|
|
160
174
|
authorization=authorization,
|
|
161
175
|
).parsed
|
|
162
176
|
|
|
@@ -167,6 +181,7 @@ async def asyncio_detailed(
|
|
|
167
181
|
*,
|
|
168
182
|
client: AuthenticatedClient,
|
|
169
183
|
expires_in: Union[Unset, int] = 3600,
|
|
184
|
+
token: Union[None, Unset, str] = UNSET,
|
|
170
185
|
authorization: Union[None, Unset, str] = UNSET,
|
|
171
186
|
) -> Response[
|
|
172
187
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
@@ -179,6 +194,7 @@ async def asyncio_detailed(
|
|
|
179
194
|
graph_id (str): Graph database identifier
|
|
180
195
|
backup_id (str): Backup identifier
|
|
181
196
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
197
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
182
198
|
authorization (Union[None, Unset, str]):
|
|
183
199
|
|
|
184
200
|
Raises:
|
|
@@ -193,6 +209,7 @@ async def asyncio_detailed(
|
|
|
193
209
|
graph_id=graph_id,
|
|
194
210
|
backup_id=backup_id,
|
|
195
211
|
expires_in=expires_in,
|
|
212
|
+
token=token,
|
|
196
213
|
authorization=authorization,
|
|
197
214
|
)
|
|
198
215
|
|
|
@@ -207,6 +224,7 @@ async def asyncio(
|
|
|
207
224
|
*,
|
|
208
225
|
client: AuthenticatedClient,
|
|
209
226
|
expires_in: Union[Unset, int] = 3600,
|
|
227
|
+
token: Union[None, Unset, str] = UNSET,
|
|
210
228
|
authorization: Union[None, Unset, str] = UNSET,
|
|
211
229
|
) -> Optional[
|
|
212
230
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
@@ -219,6 +237,7 @@ async def asyncio(
|
|
|
219
237
|
graph_id (str): Graph database identifier
|
|
220
238
|
backup_id (str): Backup identifier
|
|
221
239
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
240
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
222
241
|
authorization (Union[None, Unset, str]):
|
|
223
242
|
|
|
224
243
|
Raises:
|
|
@@ -235,6 +254,7 @@ async def asyncio(
|
|
|
235
254
|
backup_id=backup_id,
|
|
236
255
|
client=client,
|
|
237
256
|
expires_in=expires_in,
|
|
257
|
+
token=token,
|
|
238
258
|
authorization=authorization,
|
|
239
259
|
)
|
|
240
260
|
).parsed
|
|
@@ -13,15 +13,28 @@ from ...types import UNSET, Response, Unset
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
graph_id: str,
|
|
15
15
|
*,
|
|
16
|
+
token: Union[None, Unset, str] = UNSET,
|
|
16
17
|
authorization: Union[None, Unset, str] = UNSET,
|
|
17
18
|
) -> dict[str, Any]:
|
|
18
19
|
headers: dict[str, Any] = {}
|
|
19
20
|
if not isinstance(authorization, Unset):
|
|
20
21
|
headers["authorization"] = authorization
|
|
21
22
|
|
|
23
|
+
params: dict[str, Any] = {}
|
|
24
|
+
|
|
25
|
+
json_token: Union[None, Unset, str]
|
|
26
|
+
if isinstance(token, Unset):
|
|
27
|
+
json_token = UNSET
|
|
28
|
+
else:
|
|
29
|
+
json_token = token
|
|
30
|
+
params["token"] = json_token
|
|
31
|
+
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
33
|
+
|
|
22
34
|
_kwargs: dict[str, Any] = {
|
|
23
35
|
"method": "get",
|
|
24
|
-
"url": f"/v1/{graph_id}/backups/stats",
|
|
36
|
+
"url": f"/v1/graphs/{graph_id}/backups/stats",
|
|
37
|
+
"params": params,
|
|
25
38
|
}
|
|
26
39
|
|
|
27
40
|
_kwargs["headers"] = headers
|
|
@@ -60,6 +73,7 @@ def sync_detailed(
|
|
|
60
73
|
graph_id: str,
|
|
61
74
|
*,
|
|
62
75
|
client: AuthenticatedClient,
|
|
76
|
+
token: Union[None, Unset, str] = UNSET,
|
|
63
77
|
authorization: Union[None, Unset, str] = UNSET,
|
|
64
78
|
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
65
79
|
"""Get backup statistics
|
|
@@ -68,6 +82,7 @@ def sync_detailed(
|
|
|
68
82
|
|
|
69
83
|
Args:
|
|
70
84
|
graph_id (str): Graph database identifier
|
|
85
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
71
86
|
authorization (Union[None, Unset, str]):
|
|
72
87
|
|
|
73
88
|
Raises:
|
|
@@ -80,6 +95,7 @@ def sync_detailed(
|
|
|
80
95
|
|
|
81
96
|
kwargs = _get_kwargs(
|
|
82
97
|
graph_id=graph_id,
|
|
98
|
+
token=token,
|
|
83
99
|
authorization=authorization,
|
|
84
100
|
)
|
|
85
101
|
|
|
@@ -94,6 +110,7 @@ def sync(
|
|
|
94
110
|
graph_id: str,
|
|
95
111
|
*,
|
|
96
112
|
client: AuthenticatedClient,
|
|
113
|
+
token: Union[None, Unset, str] = UNSET,
|
|
97
114
|
authorization: Union[None, Unset, str] = UNSET,
|
|
98
115
|
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
99
116
|
"""Get backup statistics
|
|
@@ -102,6 +119,7 @@ def sync(
|
|
|
102
119
|
|
|
103
120
|
Args:
|
|
104
121
|
graph_id (str): Graph database identifier
|
|
122
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
105
123
|
authorization (Union[None, Unset, str]):
|
|
106
124
|
|
|
107
125
|
Raises:
|
|
@@ -115,6 +133,7 @@ def sync(
|
|
|
115
133
|
return sync_detailed(
|
|
116
134
|
graph_id=graph_id,
|
|
117
135
|
client=client,
|
|
136
|
+
token=token,
|
|
118
137
|
authorization=authorization,
|
|
119
138
|
).parsed
|
|
120
139
|
|
|
@@ -123,6 +142,7 @@ async def asyncio_detailed(
|
|
|
123
142
|
graph_id: str,
|
|
124
143
|
*,
|
|
125
144
|
client: AuthenticatedClient,
|
|
145
|
+
token: Union[None, Unset, str] = UNSET,
|
|
126
146
|
authorization: Union[None, Unset, str] = UNSET,
|
|
127
147
|
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
128
148
|
"""Get backup statistics
|
|
@@ -131,6 +151,7 @@ async def asyncio_detailed(
|
|
|
131
151
|
|
|
132
152
|
Args:
|
|
133
153
|
graph_id (str): Graph database identifier
|
|
154
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
134
155
|
authorization (Union[None, Unset, str]):
|
|
135
156
|
|
|
136
157
|
Raises:
|
|
@@ -143,6 +164,7 @@ async def asyncio_detailed(
|
|
|
143
164
|
|
|
144
165
|
kwargs = _get_kwargs(
|
|
145
166
|
graph_id=graph_id,
|
|
167
|
+
token=token,
|
|
146
168
|
authorization=authorization,
|
|
147
169
|
)
|
|
148
170
|
|
|
@@ -155,6 +177,7 @@ async def asyncio(
|
|
|
155
177
|
graph_id: str,
|
|
156
178
|
*,
|
|
157
179
|
client: AuthenticatedClient,
|
|
180
|
+
token: Union[None, Unset, str] = UNSET,
|
|
158
181
|
authorization: Union[None, Unset, str] = UNSET,
|
|
159
182
|
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
160
183
|
"""Get backup statistics
|
|
@@ -163,6 +186,7 @@ async def asyncio(
|
|
|
163
186
|
|
|
164
187
|
Args:
|
|
165
188
|
graph_id (str): Graph database identifier
|
|
189
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
166
190
|
authorization (Union[None, Unset, str]):
|
|
167
191
|
|
|
168
192
|
Raises:
|
|
@@ -177,6 +201,7 @@ async def asyncio(
|
|
|
177
201
|
await asyncio_detailed(
|
|
178
202
|
graph_id=graph_id,
|
|
179
203
|
client=client,
|
|
204
|
+
token=token,
|
|
180
205
|
authorization=authorization,
|
|
181
206
|
)
|
|
182
207
|
).parsed
|