robosystems-client 0.1.16__py3-none-any.whl → 0.1.17__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/api/agent/auto_select_agent.py +0 -18
- robosystems_client/api/agent/batch_process_queries.py +0 -18
- robosystems_client/api/agent/execute_specific_agent.py +0 -18
- robosystems_client/api/agent/get_agent_metadata.py +0 -18
- robosystems_client/api/agent/list_agents.py +0 -18
- robosystems_client/api/agent/recommend_agent.py +0 -18
- robosystems_client/api/auth/forgot_password.py +191 -0
- robosystems_client/api/auth/generate_sso_token.py +18 -0
- robosystems_client/api/auth/get_current_auth_user.py +4 -22
- robosystems_client/api/auth/logout_user.py +17 -17
- robosystems_client/api/auth/{refresh_session.py → refresh_auth_session.py} +21 -21
- robosystems_client/api/auth/resend_verification_email.py +222 -0
- robosystems_client/api/auth/reset_password.py +177 -0
- robosystems_client/api/auth/validate_reset_token.py +171 -0
- robosystems_client/api/auth/verify_email.py +177 -0
- robosystems_client/api/backup/create_backup.py +0 -18
- robosystems_client/api/backup/export_backup.py +0 -18
- robosystems_client/api/backup/get_backup_download_url.py +0 -18
- robosystems_client/api/backup/get_backup_stats.py +0 -18
- robosystems_client/api/backup/list_backups.py +0 -18
- robosystems_client/api/backup/restore_backup.py +0 -18
- robosystems_client/api/connections/create_connection.py +0 -18
- robosystems_client/api/connections/create_link_token.py +0 -18
- robosystems_client/api/connections/delete_connection.py +0 -18
- robosystems_client/api/connections/exchange_link_token.py +0 -18
- robosystems_client/api/connections/get_connection.py +0 -18
- robosystems_client/api/connections/get_connection_options.py +0 -18
- robosystems_client/api/connections/init_o_auth.py +0 -18
- robosystems_client/api/connections/list_connections.py +0 -18
- robosystems_client/api/connections/oauth_callback.py +4 -22
- robosystems_client/api/connections/sync_connection.py +0 -18
- robosystems_client/api/copy/copy_data_to_graph.py +0 -18
- robosystems_client/api/create/create_graph.py +0 -18
- robosystems_client/api/graph_analytics/get_graph_metrics.py +0 -18
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -18
- robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -18
- robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -18
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -18
- robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -18
- robosystems_client/api/graph_credits/check_credit_balance.py +0 -18
- robosystems_client/api/graph_credits/check_storage_limits.py +0 -18
- robosystems_client/api/graph_credits/get_credit_summary.py +0 -18
- robosystems_client/api/graph_credits/get_storage_usage.py +0 -18
- robosystems_client/api/graph_credits/list_credit_transactions.py +0 -18
- robosystems_client/api/graph_health/get_database_health.py +0 -18
- robosystems_client/api/graph_info/get_database_info.py +0 -18
- robosystems_client/api/graph_limits/get_graph_limits.py +0 -18
- robosystems_client/api/mcp/call_mcp_tool.py +0 -18
- robosystems_client/api/mcp/list_mcp_tools.py +0 -18
- robosystems_client/api/operations/cancel_operation.py +0 -18
- robosystems_client/api/operations/get_operation_status.py +0 -18
- robosystems_client/api/operations/stream_operation_events.py +0 -18
- robosystems_client/api/query/execute_cypher_query.py +0 -18
- robosystems_client/api/schema/export_graph_schema.py +0 -18
- robosystems_client/api/schema/get_graph_schema_info.py +0 -18
- robosystems_client/api/schema/list_schema_extensions.py +0 -18
- robosystems_client/api/schema/validate_schema.py +0 -18
- robosystems_client/api/subgraphs/create_subgraph.py +0 -18
- robosystems_client/api/subgraphs/delete_subgraph.py +0 -18
- robosystems_client/api/subgraphs/get_subgraph_info.py +0 -18
- robosystems_client/api/subgraphs/get_subgraph_quota.py +0 -18
- robosystems_client/api/subgraphs/list_subgraphs.py +0 -18
- robosystems_client/api/user/create_user_api_key.py +0 -18
- robosystems_client/api/user/get_all_credit_summaries.py +0 -18
- robosystems_client/api/user/get_current_user.py +0 -18
- robosystems_client/api/user/get_user_graphs.py +0 -18
- robosystems_client/api/user/list_user_api_keys.py +0 -18
- robosystems_client/api/user/revoke_user_api_key.py +0 -18
- robosystems_client/api/user/select_user_graph.py +0 -18
- robosystems_client/api/user/update_user.py +0 -18
- robosystems_client/api/user/update_user_api_key.py +0 -18
- robosystems_client/api/user/update_user_password.py +0 -18
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -18
- robosystems_client/api/user_analytics/get_user_usage_overview.py +0 -18
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +0 -18
- robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -18
- robosystems_client/api/user_limits/get_user_limits.py +0 -18
- robosystems_client/api/user_limits/get_user_usage.py +0 -18
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +0 -18
- robosystems_client/api/user_subscriptions/get_repository_credits.py +0 -18
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +0 -18
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -18
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +0 -18
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +0 -18
- robosystems_client/models/__init__.py +16 -0
- robosystems_client/models/email_verification_request.py +60 -0
- robosystems_client/models/forgot_password_request.py +60 -0
- robosystems_client/models/forgot_password_response_forgotpassword.py +44 -0
- robosystems_client/models/resend_verification_email_response_resendverificationemail.py +44 -0
- robosystems_client/models/reset_password_request.py +68 -0
- robosystems_client/models/reset_password_validate_response.py +82 -0
- robosystems_client-0.1.17.dist-info/METADATA +89 -0
- {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.17.dist-info}/RECORD +95 -83
- robosystems_client-0.1.17.dist-info/licenses/LICENSE +21 -0
- robosystems_client-0.1.16.dist-info/METADATA +0 -302
- {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.17.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.auth_response import AuthResponse
|
|
9
|
+
from ...models.email_verification_request import EmailVerificationRequest
|
|
10
|
+
from ...models.error_response import ErrorResponse
|
|
11
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
12
|
+
from ...types import Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
*,
|
|
17
|
+
body: EmailVerificationRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": "/v1/auth/email/verify",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
27
|
+
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
37
|
+
if response.status_code == 200:
|
|
38
|
+
response_200 = AuthResponse.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_200
|
|
41
|
+
if response.status_code == 400:
|
|
42
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_400
|
|
45
|
+
if response.status_code == 422:
|
|
46
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
47
|
+
|
|
48
|
+
return response_422
|
|
49
|
+
if client.raise_on_unexpected_status:
|
|
50
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
51
|
+
else:
|
|
52
|
+
return None
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _build_response(
|
|
56
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
57
|
+
) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
58
|
+
return Response(
|
|
59
|
+
status_code=HTTPStatus(response.status_code),
|
|
60
|
+
content=response.content,
|
|
61
|
+
headers=response.headers,
|
|
62
|
+
parsed=_parse_response(client=client, response=response),
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def sync_detailed(
|
|
67
|
+
*,
|
|
68
|
+
client: Union[AuthenticatedClient, Client],
|
|
69
|
+
body: EmailVerificationRequest,
|
|
70
|
+
) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
71
|
+
"""Verify Email
|
|
72
|
+
|
|
73
|
+
Verify email address with token from email link. Returns JWT for auto-login.
|
|
74
|
+
|
|
75
|
+
Args:
|
|
76
|
+
body (EmailVerificationRequest): Email verification request model.
|
|
77
|
+
|
|
78
|
+
Raises:
|
|
79
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
80
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
81
|
+
|
|
82
|
+
Returns:
|
|
83
|
+
Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
kwargs = _get_kwargs(
|
|
87
|
+
body=body,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
response = client.get_httpx_client().request(
|
|
91
|
+
**kwargs,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
return _build_response(client=client, response=response)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def sync(
|
|
98
|
+
*,
|
|
99
|
+
client: Union[AuthenticatedClient, Client],
|
|
100
|
+
body: EmailVerificationRequest,
|
|
101
|
+
) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
102
|
+
"""Verify Email
|
|
103
|
+
|
|
104
|
+
Verify email address with token from email link. Returns JWT for auto-login.
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
body (EmailVerificationRequest): Email verification request model.
|
|
108
|
+
|
|
109
|
+
Raises:
|
|
110
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
111
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
112
|
+
|
|
113
|
+
Returns:
|
|
114
|
+
Union[AuthResponse, ErrorResponse, HTTPValidationError]
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
return sync_detailed(
|
|
118
|
+
client=client,
|
|
119
|
+
body=body,
|
|
120
|
+
).parsed
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
async def asyncio_detailed(
|
|
124
|
+
*,
|
|
125
|
+
client: Union[AuthenticatedClient, Client],
|
|
126
|
+
body: EmailVerificationRequest,
|
|
127
|
+
) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
128
|
+
"""Verify Email
|
|
129
|
+
|
|
130
|
+
Verify email address with token from email link. Returns JWT for auto-login.
|
|
131
|
+
|
|
132
|
+
Args:
|
|
133
|
+
body (EmailVerificationRequest): Email verification request model.
|
|
134
|
+
|
|
135
|
+
Raises:
|
|
136
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
137
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
138
|
+
|
|
139
|
+
Returns:
|
|
140
|
+
Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
kwargs = _get_kwargs(
|
|
144
|
+
body=body,
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
148
|
+
|
|
149
|
+
return _build_response(client=client, response=response)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
async def asyncio(
|
|
153
|
+
*,
|
|
154
|
+
client: Union[AuthenticatedClient, Client],
|
|
155
|
+
body: EmailVerificationRequest,
|
|
156
|
+
) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
157
|
+
"""Verify Email
|
|
158
|
+
|
|
159
|
+
Verify email address with token from email link. Returns JWT for auto-login.
|
|
160
|
+
|
|
161
|
+
Args:
|
|
162
|
+
body (EmailVerificationRequest): Email verification request model.
|
|
163
|
+
|
|
164
|
+
Raises:
|
|
165
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
166
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
167
|
+
|
|
168
|
+
Returns:
|
|
169
|
+
Union[AuthResponse, ErrorResponse, HTTPValidationError]
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
return (
|
|
173
|
+
await asyncio_detailed(
|
|
174
|
+
client=client,
|
|
175
|
+
body=body,
|
|
176
|
+
)
|
|
177
|
+
).parsed
|
|
@@ -16,20 +16,14 @@ def _get_kwargs(
|
|
|
16
16
|
*,
|
|
17
17
|
body: BackupCreateRequest,
|
|
18
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
20
19
|
) -> dict[str, Any]:
|
|
21
20
|
headers: dict[str, Any] = {}
|
|
22
21
|
if not isinstance(authorization, Unset):
|
|
23
22
|
headers["authorization"] = authorization
|
|
24
23
|
|
|
25
|
-
cookies = {}
|
|
26
|
-
if auth_token is not UNSET:
|
|
27
|
-
cookies["auth-token"] = auth_token
|
|
28
|
-
|
|
29
24
|
_kwargs: dict[str, Any] = {
|
|
30
25
|
"method": "post",
|
|
31
26
|
"url": f"/v1/{graph_id}/backups",
|
|
32
|
-
"cookies": cookies,
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
_kwargs["json"] = body.to_dict()
|
|
@@ -89,7 +83,6 @@ def sync_detailed(
|
|
|
89
83
|
client: AuthenticatedClient,
|
|
90
84
|
body: BackupCreateRequest,
|
|
91
85
|
authorization: Union[None, Unset, str] = UNSET,
|
|
92
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
93
86
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
94
87
|
"""Create Backup
|
|
95
88
|
|
|
@@ -139,7 +132,6 @@ def sync_detailed(
|
|
|
139
132
|
Args:
|
|
140
133
|
graph_id (str): Graph database identifier
|
|
141
134
|
authorization (Union[None, Unset, str]):
|
|
142
|
-
auth_token (Union[None, Unset, str]):
|
|
143
135
|
body (BackupCreateRequest): Request model for creating a backup.
|
|
144
136
|
|
|
145
137
|
Raises:
|
|
@@ -154,7 +146,6 @@ def sync_detailed(
|
|
|
154
146
|
graph_id=graph_id,
|
|
155
147
|
body=body,
|
|
156
148
|
authorization=authorization,
|
|
157
|
-
auth_token=auth_token,
|
|
158
149
|
)
|
|
159
150
|
|
|
160
151
|
response = client.get_httpx_client().request(
|
|
@@ -170,7 +161,6 @@ def sync(
|
|
|
170
161
|
client: AuthenticatedClient,
|
|
171
162
|
body: BackupCreateRequest,
|
|
172
163
|
authorization: Union[None, Unset, str] = UNSET,
|
|
173
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
174
164
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
175
165
|
"""Create Backup
|
|
176
166
|
|
|
@@ -220,7 +210,6 @@ def sync(
|
|
|
220
210
|
Args:
|
|
221
211
|
graph_id (str): Graph database identifier
|
|
222
212
|
authorization (Union[None, Unset, str]):
|
|
223
|
-
auth_token (Union[None, Unset, str]):
|
|
224
213
|
body (BackupCreateRequest): Request model for creating a backup.
|
|
225
214
|
|
|
226
215
|
Raises:
|
|
@@ -236,7 +225,6 @@ def sync(
|
|
|
236
225
|
client=client,
|
|
237
226
|
body=body,
|
|
238
227
|
authorization=authorization,
|
|
239
|
-
auth_token=auth_token,
|
|
240
228
|
).parsed
|
|
241
229
|
|
|
242
230
|
|
|
@@ -246,7 +234,6 @@ async def asyncio_detailed(
|
|
|
246
234
|
client: AuthenticatedClient,
|
|
247
235
|
body: BackupCreateRequest,
|
|
248
236
|
authorization: Union[None, Unset, str] = UNSET,
|
|
249
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
250
237
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
251
238
|
"""Create Backup
|
|
252
239
|
|
|
@@ -296,7 +283,6 @@ async def asyncio_detailed(
|
|
|
296
283
|
Args:
|
|
297
284
|
graph_id (str): Graph database identifier
|
|
298
285
|
authorization (Union[None, Unset, str]):
|
|
299
|
-
auth_token (Union[None, Unset, str]):
|
|
300
286
|
body (BackupCreateRequest): Request model for creating a backup.
|
|
301
287
|
|
|
302
288
|
Raises:
|
|
@@ -311,7 +297,6 @@ async def asyncio_detailed(
|
|
|
311
297
|
graph_id=graph_id,
|
|
312
298
|
body=body,
|
|
313
299
|
authorization=authorization,
|
|
314
|
-
auth_token=auth_token,
|
|
315
300
|
)
|
|
316
301
|
|
|
317
302
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -325,7 +310,6 @@ async def asyncio(
|
|
|
325
310
|
client: AuthenticatedClient,
|
|
326
311
|
body: BackupCreateRequest,
|
|
327
312
|
authorization: Union[None, Unset, str] = UNSET,
|
|
328
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
329
313
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
330
314
|
"""Create Backup
|
|
331
315
|
|
|
@@ -375,7 +359,6 @@ async def asyncio(
|
|
|
375
359
|
Args:
|
|
376
360
|
graph_id (str): Graph database identifier
|
|
377
361
|
authorization (Union[None, Unset, str]):
|
|
378
|
-
auth_token (Union[None, Unset, str]):
|
|
379
362
|
body (BackupCreateRequest): Request model for creating a backup.
|
|
380
363
|
|
|
381
364
|
Raises:
|
|
@@ -392,6 +375,5 @@ async def asyncio(
|
|
|
392
375
|
client=client,
|
|
393
376
|
body=body,
|
|
394
377
|
authorization=authorization,
|
|
395
|
-
auth_token=auth_token,
|
|
396
378
|
)
|
|
397
379
|
).parsed
|
|
@@ -14,20 +14,14 @@ def _get_kwargs(
|
|
|
14
14
|
backup_id: str,
|
|
15
15
|
*,
|
|
16
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
18
17
|
) -> dict[str, Any]:
|
|
19
18
|
headers: dict[str, Any] = {}
|
|
20
19
|
if not isinstance(authorization, Unset):
|
|
21
20
|
headers["authorization"] = authorization
|
|
22
21
|
|
|
23
|
-
cookies = {}
|
|
24
|
-
if auth_token is not UNSET:
|
|
25
|
-
cookies["auth-token"] = auth_token
|
|
26
|
-
|
|
27
22
|
_kwargs: dict[str, Any] = {
|
|
28
23
|
"method": "post",
|
|
29
24
|
"url": f"/v1/{graph_id}/backups/{backup_id}/export",
|
|
30
|
-
"cookies": cookies,
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
_kwargs["headers"] = headers
|
|
@@ -73,7 +67,6 @@ def sync_detailed(
|
|
|
73
67
|
*,
|
|
74
68
|
client: AuthenticatedClient,
|
|
75
69
|
authorization: Union[None, Unset, str] = UNSET,
|
|
76
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
77
70
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
78
71
|
"""Export Kuzu backup for download
|
|
79
72
|
|
|
@@ -83,7 +76,6 @@ def sync_detailed(
|
|
|
83
76
|
graph_id (str): Graph database identifier
|
|
84
77
|
backup_id (str): Backup identifier
|
|
85
78
|
authorization (Union[None, Unset, str]):
|
|
86
|
-
auth_token (Union[None, Unset, str]):
|
|
87
79
|
|
|
88
80
|
Raises:
|
|
89
81
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -97,7 +89,6 @@ def sync_detailed(
|
|
|
97
89
|
graph_id=graph_id,
|
|
98
90
|
backup_id=backup_id,
|
|
99
91
|
authorization=authorization,
|
|
100
|
-
auth_token=auth_token,
|
|
101
92
|
)
|
|
102
93
|
|
|
103
94
|
response = client.get_httpx_client().request(
|
|
@@ -113,7 +104,6 @@ def sync(
|
|
|
113
104
|
*,
|
|
114
105
|
client: AuthenticatedClient,
|
|
115
106
|
authorization: Union[None, Unset, str] = UNSET,
|
|
116
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
117
107
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
118
108
|
"""Export Kuzu backup for download
|
|
119
109
|
|
|
@@ -123,7 +113,6 @@ def sync(
|
|
|
123
113
|
graph_id (str): Graph database identifier
|
|
124
114
|
backup_id (str): Backup identifier
|
|
125
115
|
authorization (Union[None, Unset, str]):
|
|
126
|
-
auth_token (Union[None, Unset, str]):
|
|
127
116
|
|
|
128
117
|
Raises:
|
|
129
118
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -138,7 +127,6 @@ def sync(
|
|
|
138
127
|
backup_id=backup_id,
|
|
139
128
|
client=client,
|
|
140
129
|
authorization=authorization,
|
|
141
|
-
auth_token=auth_token,
|
|
142
130
|
).parsed
|
|
143
131
|
|
|
144
132
|
|
|
@@ -148,7 +136,6 @@ async def asyncio_detailed(
|
|
|
148
136
|
*,
|
|
149
137
|
client: AuthenticatedClient,
|
|
150
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
151
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
152
139
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
153
140
|
"""Export Kuzu backup for download
|
|
154
141
|
|
|
@@ -158,7 +145,6 @@ async def asyncio_detailed(
|
|
|
158
145
|
graph_id (str): Graph database identifier
|
|
159
146
|
backup_id (str): Backup identifier
|
|
160
147
|
authorization (Union[None, Unset, str]):
|
|
161
|
-
auth_token (Union[None, Unset, str]):
|
|
162
148
|
|
|
163
149
|
Raises:
|
|
164
150
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -172,7 +158,6 @@ async def asyncio_detailed(
|
|
|
172
158
|
graph_id=graph_id,
|
|
173
159
|
backup_id=backup_id,
|
|
174
160
|
authorization=authorization,
|
|
175
|
-
auth_token=auth_token,
|
|
176
161
|
)
|
|
177
162
|
|
|
178
163
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -186,7 +171,6 @@ async def asyncio(
|
|
|
186
171
|
*,
|
|
187
172
|
client: AuthenticatedClient,
|
|
188
173
|
authorization: Union[None, Unset, str] = UNSET,
|
|
189
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
190
174
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
191
175
|
"""Export Kuzu backup for download
|
|
192
176
|
|
|
@@ -196,7 +180,6 @@ async def asyncio(
|
|
|
196
180
|
graph_id (str): Graph database identifier
|
|
197
181
|
backup_id (str): Backup identifier
|
|
198
182
|
authorization (Union[None, Unset, str]):
|
|
199
|
-
auth_token (Union[None, Unset, str]):
|
|
200
183
|
|
|
201
184
|
Raises:
|
|
202
185
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -212,6 +195,5 @@ async def asyncio(
|
|
|
212
195
|
backup_id=backup_id,
|
|
213
196
|
client=client,
|
|
214
197
|
authorization=authorization,
|
|
215
|
-
auth_token=auth_token,
|
|
216
198
|
)
|
|
217
199
|
).parsed
|
|
@@ -18,16 +18,11 @@ def _get_kwargs(
|
|
|
18
18
|
*,
|
|
19
19
|
expires_in: Union[Unset, int] = 3600,
|
|
20
20
|
authorization: Union[None, Unset, str] = UNSET,
|
|
21
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
22
21
|
) -> dict[str, Any]:
|
|
23
22
|
headers: dict[str, Any] = {}
|
|
24
23
|
if not isinstance(authorization, Unset):
|
|
25
24
|
headers["authorization"] = authorization
|
|
26
25
|
|
|
27
|
-
cookies = {}
|
|
28
|
-
if auth_token is not UNSET:
|
|
29
|
-
cookies["auth-token"] = auth_token
|
|
30
|
-
|
|
31
26
|
params: dict[str, Any] = {}
|
|
32
27
|
|
|
33
28
|
params["expires_in"] = expires_in
|
|
@@ -38,7 +33,6 @@ def _get_kwargs(
|
|
|
38
33
|
"method": "get",
|
|
39
34
|
"url": f"/v1/{graph_id}/backups/{backup_id}/download",
|
|
40
35
|
"params": params,
|
|
41
|
-
"cookies": cookies,
|
|
42
36
|
}
|
|
43
37
|
|
|
44
38
|
_kwargs["headers"] = headers
|
|
@@ -95,7 +89,6 @@ def sync_detailed(
|
|
|
95
89
|
client: AuthenticatedClient,
|
|
96
90
|
expires_in: Union[Unset, int] = 3600,
|
|
97
91
|
authorization: Union[None, Unset, str] = UNSET,
|
|
98
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
99
92
|
) -> Response[
|
|
100
93
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
101
94
|
]:
|
|
@@ -108,7 +101,6 @@ def sync_detailed(
|
|
|
108
101
|
backup_id (str): Backup identifier
|
|
109
102
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
110
103
|
authorization (Union[None, Unset, str]):
|
|
111
|
-
auth_token (Union[None, Unset, str]):
|
|
112
104
|
|
|
113
105
|
Raises:
|
|
114
106
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -123,7 +115,6 @@ def sync_detailed(
|
|
|
123
115
|
backup_id=backup_id,
|
|
124
116
|
expires_in=expires_in,
|
|
125
117
|
authorization=authorization,
|
|
126
|
-
auth_token=auth_token,
|
|
127
118
|
)
|
|
128
119
|
|
|
129
120
|
response = client.get_httpx_client().request(
|
|
@@ -140,7 +131,6 @@ def sync(
|
|
|
140
131
|
client: AuthenticatedClient,
|
|
141
132
|
expires_in: Union[Unset, int] = 3600,
|
|
142
133
|
authorization: Union[None, Unset, str] = UNSET,
|
|
143
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
144
134
|
) -> Optional[
|
|
145
135
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
146
136
|
]:
|
|
@@ -153,7 +143,6 @@ def sync(
|
|
|
153
143
|
backup_id (str): Backup identifier
|
|
154
144
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
155
145
|
authorization (Union[None, Unset, str]):
|
|
156
|
-
auth_token (Union[None, Unset, str]):
|
|
157
146
|
|
|
158
147
|
Raises:
|
|
159
148
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -169,7 +158,6 @@ def sync(
|
|
|
169
158
|
client=client,
|
|
170
159
|
expires_in=expires_in,
|
|
171
160
|
authorization=authorization,
|
|
172
|
-
auth_token=auth_token,
|
|
173
161
|
).parsed
|
|
174
162
|
|
|
175
163
|
|
|
@@ -180,7 +168,6 @@ async def asyncio_detailed(
|
|
|
180
168
|
client: AuthenticatedClient,
|
|
181
169
|
expires_in: Union[Unset, int] = 3600,
|
|
182
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
183
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
184
171
|
) -> Response[
|
|
185
172
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
186
173
|
]:
|
|
@@ -193,7 +180,6 @@ async def asyncio_detailed(
|
|
|
193
180
|
backup_id (str): Backup identifier
|
|
194
181
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
195
182
|
authorization (Union[None, Unset, str]):
|
|
196
|
-
auth_token (Union[None, Unset, str]):
|
|
197
183
|
|
|
198
184
|
Raises:
|
|
199
185
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -208,7 +194,6 @@ async def asyncio_detailed(
|
|
|
208
194
|
backup_id=backup_id,
|
|
209
195
|
expires_in=expires_in,
|
|
210
196
|
authorization=authorization,
|
|
211
|
-
auth_token=auth_token,
|
|
212
197
|
)
|
|
213
198
|
|
|
214
199
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -223,7 +208,6 @@ async def asyncio(
|
|
|
223
208
|
client: AuthenticatedClient,
|
|
224
209
|
expires_in: Union[Unset, int] = 3600,
|
|
225
210
|
authorization: Union[None, Unset, str] = UNSET,
|
|
226
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
227
211
|
) -> Optional[
|
|
228
212
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
229
213
|
]:
|
|
@@ -236,7 +220,6 @@ async def asyncio(
|
|
|
236
220
|
backup_id (str): Backup identifier
|
|
237
221
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
238
222
|
authorization (Union[None, Unset, str]):
|
|
239
|
-
auth_token (Union[None, Unset, str]):
|
|
240
223
|
|
|
241
224
|
Raises:
|
|
242
225
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -253,6 +236,5 @@ async def asyncio(
|
|
|
253
236
|
client=client,
|
|
254
237
|
expires_in=expires_in,
|
|
255
238
|
authorization=authorization,
|
|
256
|
-
auth_token=auth_token,
|
|
257
239
|
)
|
|
258
240
|
).parsed
|
|
@@ -14,20 +14,14 @@ def _get_kwargs(
|
|
|
14
14
|
graph_id: str,
|
|
15
15
|
*,
|
|
16
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
18
17
|
) -> dict[str, Any]:
|
|
19
18
|
headers: dict[str, Any] = {}
|
|
20
19
|
if not isinstance(authorization, Unset):
|
|
21
20
|
headers["authorization"] = authorization
|
|
22
21
|
|
|
23
|
-
cookies = {}
|
|
24
|
-
if auth_token is not UNSET:
|
|
25
|
-
cookies["auth-token"] = auth_token
|
|
26
|
-
|
|
27
22
|
_kwargs: dict[str, Any] = {
|
|
28
23
|
"method": "get",
|
|
29
24
|
"url": f"/v1/{graph_id}/backups/stats",
|
|
30
|
-
"cookies": cookies,
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
_kwargs["headers"] = headers
|
|
@@ -67,7 +61,6 @@ def sync_detailed(
|
|
|
67
61
|
*,
|
|
68
62
|
client: AuthenticatedClient,
|
|
69
63
|
authorization: Union[None, Unset, str] = UNSET,
|
|
70
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
71
64
|
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
72
65
|
"""Get backup statistics
|
|
73
66
|
|
|
@@ -76,7 +69,6 @@ def sync_detailed(
|
|
|
76
69
|
Args:
|
|
77
70
|
graph_id (str): Graph database identifier
|
|
78
71
|
authorization (Union[None, Unset, str]):
|
|
79
|
-
auth_token (Union[None, Unset, str]):
|
|
80
72
|
|
|
81
73
|
Raises:
|
|
82
74
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -89,7 +81,6 @@ def sync_detailed(
|
|
|
89
81
|
kwargs = _get_kwargs(
|
|
90
82
|
graph_id=graph_id,
|
|
91
83
|
authorization=authorization,
|
|
92
|
-
auth_token=auth_token,
|
|
93
84
|
)
|
|
94
85
|
|
|
95
86
|
response = client.get_httpx_client().request(
|
|
@@ -104,7 +95,6 @@ def sync(
|
|
|
104
95
|
*,
|
|
105
96
|
client: AuthenticatedClient,
|
|
106
97
|
authorization: Union[None, Unset, str] = UNSET,
|
|
107
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
108
98
|
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
109
99
|
"""Get backup statistics
|
|
110
100
|
|
|
@@ -113,7 +103,6 @@ def sync(
|
|
|
113
103
|
Args:
|
|
114
104
|
graph_id (str): Graph database identifier
|
|
115
105
|
authorization (Union[None, Unset, str]):
|
|
116
|
-
auth_token (Union[None, Unset, str]):
|
|
117
106
|
|
|
118
107
|
Raises:
|
|
119
108
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -127,7 +116,6 @@ def sync(
|
|
|
127
116
|
graph_id=graph_id,
|
|
128
117
|
client=client,
|
|
129
118
|
authorization=authorization,
|
|
130
|
-
auth_token=auth_token,
|
|
131
119
|
).parsed
|
|
132
120
|
|
|
133
121
|
|
|
@@ -136,7 +124,6 @@ async def asyncio_detailed(
|
|
|
136
124
|
*,
|
|
137
125
|
client: AuthenticatedClient,
|
|
138
126
|
authorization: Union[None, Unset, str] = UNSET,
|
|
139
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
140
127
|
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
141
128
|
"""Get backup statistics
|
|
142
129
|
|
|
@@ -145,7 +132,6 @@ async def asyncio_detailed(
|
|
|
145
132
|
Args:
|
|
146
133
|
graph_id (str): Graph database identifier
|
|
147
134
|
authorization (Union[None, Unset, str]):
|
|
148
|
-
auth_token (Union[None, Unset, str]):
|
|
149
135
|
|
|
150
136
|
Raises:
|
|
151
137
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -158,7 +144,6 @@ async def asyncio_detailed(
|
|
|
158
144
|
kwargs = _get_kwargs(
|
|
159
145
|
graph_id=graph_id,
|
|
160
146
|
authorization=authorization,
|
|
161
|
-
auth_token=auth_token,
|
|
162
147
|
)
|
|
163
148
|
|
|
164
149
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -171,7 +156,6 @@ async def asyncio(
|
|
|
171
156
|
*,
|
|
172
157
|
client: AuthenticatedClient,
|
|
173
158
|
authorization: Union[None, Unset, str] = UNSET,
|
|
174
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
175
159
|
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
176
160
|
"""Get backup statistics
|
|
177
161
|
|
|
@@ -180,7 +164,6 @@ async def asyncio(
|
|
|
180
164
|
Args:
|
|
181
165
|
graph_id (str): Graph database identifier
|
|
182
166
|
authorization (Union[None, Unset, str]):
|
|
183
|
-
auth_token (Union[None, Unset, str]):
|
|
184
167
|
|
|
185
168
|
Raises:
|
|
186
169
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -195,6 +178,5 @@ async def asyncio(
|
|
|
195
178
|
graph_id=graph_id,
|
|
196
179
|
client=client,
|
|
197
180
|
authorization=authorization,
|
|
198
|
-
auth_token=auth_token,
|
|
199
181
|
)
|
|
200
182
|
).parsed
|