robosystems-client 0.1.16__py3-none-any.whl → 0.1.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of robosystems-client might be problematic. Click here for more details.
- robosystems_client/__init__.py +15 -4
- robosystems_client/api/agent/auto_select_agent.py +24 -17
- robosystems_client/api/agent/batch_process_queries.py +24 -17
- robosystems_client/api/agent/execute_specific_agent.py +24 -17
- robosystems_client/api/agent/get_agent_metadata.py +24 -17
- robosystems_client/api/agent/list_agents.py +20 -18
- robosystems_client/api/agent/recommend_agent.py +24 -17
- 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 +24 -17
- robosystems_client/api/backup/export_backup.py +24 -17
- robosystems_client/api/backup/get_backup_download_url.py +20 -18
- robosystems_client/api/backup/get_backup_stats.py +24 -17
- robosystems_client/api/backup/list_backups.py +20 -18
- robosystems_client/api/backup/restore_backup.py +24 -17
- robosystems_client/api/connections/create_connection.py +24 -17
- robosystems_client/api/connections/create_link_token.py +24 -17
- robosystems_client/api/connections/delete_connection.py +24 -17
- robosystems_client/api/connections/exchange_link_token.py +24 -17
- robosystems_client/api/connections/get_connection.py +24 -17
- robosystems_client/api/connections/get_connection_options.py +24 -17
- robosystems_client/api/connections/init_o_auth.py +24 -17
- robosystems_client/api/connections/list_connections.py +20 -18
- robosystems_client/api/connections/oauth_callback.py +28 -21
- robosystems_client/api/connections/sync_connection.py +24 -17
- robosystems_client/api/copy/copy_data_to_graph.py +24 -17
- robosystems_client/api/create/create_graph.py +24 -17
- robosystems_client/api/graph_analytics/get_graph_metrics.py +24 -17
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -18
- robosystems_client/api/graph_billing/get_current_graph_bill.py +24 -17
- robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -18
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +24 -17
- robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -18
- robosystems_client/api/graph_credits/check_credit_balance.py +20 -18
- robosystems_client/api/graph_credits/check_storage_limits.py +24 -17
- robosystems_client/api/graph_credits/get_credit_summary.py +24 -17
- robosystems_client/api/graph_credits/get_storage_usage.py +20 -18
- robosystems_client/api/graph_credits/list_credit_transactions.py +20 -18
- robosystems_client/api/graph_health/get_database_health.py +24 -17
- robosystems_client/api/graph_info/get_database_info.py +24 -17
- robosystems_client/api/graph_limits/get_graph_limits.py +24 -17
- robosystems_client/api/mcp/call_mcp_tool.py +20 -18
- robosystems_client/api/mcp/list_mcp_tools.py +24 -17
- robosystems_client/api/operations/cancel_operation.py +24 -17
- robosystems_client/api/operations/get_operation_status.py +24 -17
- robosystems_client/api/operations/stream_operation_events.py +20 -18
- robosystems_client/api/query/execute_cypher_query.py +20 -18
- robosystems_client/api/schema/export_graph_schema.py +20 -18
- robosystems_client/api/schema/get_graph_schema_info.py +24 -17
- robosystems_client/api/schema/list_schema_extensions.py +24 -17
- robosystems_client/api/schema/validate_schema.py +24 -17
- robosystems_client/api/subgraphs/create_subgraph.py +24 -17
- robosystems_client/api/subgraphs/delete_subgraph.py +24 -17
- robosystems_client/api/subgraphs/get_subgraph_info.py +24 -17
- robosystems_client/api/subgraphs/get_subgraph_quota.py +24 -17
- robosystems_client/api/subgraphs/list_subgraphs.py +24 -17
- robosystems_client/api/user/create_user_api_key.py +24 -17
- robosystems_client/api/user/get_all_credit_summaries.py +24 -17
- robosystems_client/api/user/get_current_user.py +24 -17
- robosystems_client/api/user/get_user_graphs.py +24 -17
- robosystems_client/api/user/list_user_api_keys.py +24 -17
- robosystems_client/api/user/revoke_user_api_key.py +24 -17
- robosystems_client/api/user/select_user_graph.py +24 -17
- robosystems_client/api/user/update_user.py +24 -17
- robosystems_client/api/user/update_user_api_key.py +24 -17
- robosystems_client/api/user/update_user_password.py +24 -17
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -18
- robosystems_client/api/user_analytics/get_user_usage_overview.py +24 -17
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +24 -17
- robosystems_client/api/user_limits/get_shared_repository_limits.py +24 -17
- robosystems_client/api/user_limits/get_user_limits.py +24 -17
- robosystems_client/api/user_limits/get_user_usage.py +24 -17
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +24 -17
- robosystems_client/api/user_subscriptions/get_repository_credits.py +24 -17
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +24 -17
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -18
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +24 -17
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +24 -17
- 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 +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.18.dist-info/METADATA +89 -0
- {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +108 -92
- robosystems_client-0.1.18.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.18.dist-info}/WHEEL +0 -0
|
@@ -13,21 +13,28 @@ from ...types import UNSET, Response, Unset
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
15
|
body: CreateGraphRequest,
|
|
16
|
+
token: Union[None, Unset, str] = UNSET,
|
|
16
17
|
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
18
18
|
) -> dict[str, Any]:
|
|
19
19
|
headers: dict[str, Any] = {}
|
|
20
20
|
if not isinstance(authorization, Unset):
|
|
21
21
|
headers["authorization"] = authorization
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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}
|
|
26
33
|
|
|
27
34
|
_kwargs: dict[str, Any] = {
|
|
28
35
|
"method": "post",
|
|
29
36
|
"url": "/v1/create/graph",
|
|
30
|
-
"
|
|
37
|
+
"params": params,
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
_kwargs["json"] = body.to_dict()
|
|
@@ -69,8 +76,8 @@ def sync_detailed(
|
|
|
69
76
|
*,
|
|
70
77
|
client: AuthenticatedClient,
|
|
71
78
|
body: CreateGraphRequest,
|
|
79
|
+
token: Union[None, Unset, str] = UNSET,
|
|
72
80
|
authorization: Union[None, Unset, str] = UNSET,
|
|
73
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
74
81
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
75
82
|
"""Create New Graph Database
|
|
76
83
|
|
|
@@ -116,8 +123,8 @@ def sync_detailed(
|
|
|
116
123
|
- `_links.status`: Point-in-time status check endpoint
|
|
117
124
|
|
|
118
125
|
Args:
|
|
126
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
119
127
|
authorization (Union[None, Unset, str]):
|
|
120
|
-
auth_token (Union[None, Unset, str]):
|
|
121
128
|
body (CreateGraphRequest): Request model for creating a new graph. Example:
|
|
122
129
|
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
|
|
123
130
|
'instance_tier': 'standard', 'metadata': {'description': 'Main production graph',
|
|
@@ -134,8 +141,8 @@ def sync_detailed(
|
|
|
134
141
|
|
|
135
142
|
kwargs = _get_kwargs(
|
|
136
143
|
body=body,
|
|
144
|
+
token=token,
|
|
137
145
|
authorization=authorization,
|
|
138
|
-
auth_token=auth_token,
|
|
139
146
|
)
|
|
140
147
|
|
|
141
148
|
response = client.get_httpx_client().request(
|
|
@@ -149,8 +156,8 @@ def sync(
|
|
|
149
156
|
*,
|
|
150
157
|
client: AuthenticatedClient,
|
|
151
158
|
body: CreateGraphRequest,
|
|
159
|
+
token: Union[None, Unset, str] = UNSET,
|
|
152
160
|
authorization: Union[None, Unset, str] = UNSET,
|
|
153
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
154
161
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
155
162
|
"""Create New Graph Database
|
|
156
163
|
|
|
@@ -196,8 +203,8 @@ def sync(
|
|
|
196
203
|
- `_links.status`: Point-in-time status check endpoint
|
|
197
204
|
|
|
198
205
|
Args:
|
|
206
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
199
207
|
authorization (Union[None, Unset, str]):
|
|
200
|
-
auth_token (Union[None, Unset, str]):
|
|
201
208
|
body (CreateGraphRequest): Request model for creating a new graph. Example:
|
|
202
209
|
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
|
|
203
210
|
'instance_tier': 'standard', 'metadata': {'description': 'Main production graph',
|
|
@@ -215,8 +222,8 @@ def sync(
|
|
|
215
222
|
return sync_detailed(
|
|
216
223
|
client=client,
|
|
217
224
|
body=body,
|
|
225
|
+
token=token,
|
|
218
226
|
authorization=authorization,
|
|
219
|
-
auth_token=auth_token,
|
|
220
227
|
).parsed
|
|
221
228
|
|
|
222
229
|
|
|
@@ -224,8 +231,8 @@ async def asyncio_detailed(
|
|
|
224
231
|
*,
|
|
225
232
|
client: AuthenticatedClient,
|
|
226
233
|
body: CreateGraphRequest,
|
|
234
|
+
token: Union[None, Unset, str] = UNSET,
|
|
227
235
|
authorization: Union[None, Unset, str] = UNSET,
|
|
228
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
229
236
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
230
237
|
"""Create New Graph Database
|
|
231
238
|
|
|
@@ -271,8 +278,8 @@ async def asyncio_detailed(
|
|
|
271
278
|
- `_links.status`: Point-in-time status check endpoint
|
|
272
279
|
|
|
273
280
|
Args:
|
|
281
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
274
282
|
authorization (Union[None, Unset, str]):
|
|
275
|
-
auth_token (Union[None, Unset, str]):
|
|
276
283
|
body (CreateGraphRequest): Request model for creating a new graph. Example:
|
|
277
284
|
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
|
|
278
285
|
'instance_tier': 'standard', 'metadata': {'description': 'Main production graph',
|
|
@@ -289,8 +296,8 @@ async def asyncio_detailed(
|
|
|
289
296
|
|
|
290
297
|
kwargs = _get_kwargs(
|
|
291
298
|
body=body,
|
|
299
|
+
token=token,
|
|
292
300
|
authorization=authorization,
|
|
293
|
-
auth_token=auth_token,
|
|
294
301
|
)
|
|
295
302
|
|
|
296
303
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -302,8 +309,8 @@ async def asyncio(
|
|
|
302
309
|
*,
|
|
303
310
|
client: AuthenticatedClient,
|
|
304
311
|
body: CreateGraphRequest,
|
|
312
|
+
token: Union[None, Unset, str] = UNSET,
|
|
305
313
|
authorization: Union[None, Unset, str] = UNSET,
|
|
306
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
307
314
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
308
315
|
"""Create New Graph Database
|
|
309
316
|
|
|
@@ -349,8 +356,8 @@ async def asyncio(
|
|
|
349
356
|
- `_links.status`: Point-in-time status check endpoint
|
|
350
357
|
|
|
351
358
|
Args:
|
|
359
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
352
360
|
authorization (Union[None, Unset, str]):
|
|
353
|
-
auth_token (Union[None, Unset, str]):
|
|
354
361
|
body (CreateGraphRequest): Request model for creating a new graph. Example:
|
|
355
362
|
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
|
|
356
363
|
'instance_tier': 'standard', 'metadata': {'description': 'Main production graph',
|
|
@@ -369,7 +376,7 @@ async def asyncio(
|
|
|
369
376
|
await asyncio_detailed(
|
|
370
377
|
client=client,
|
|
371
378
|
body=body,
|
|
379
|
+
token=token,
|
|
372
380
|
authorization=authorization,
|
|
373
|
-
auth_token=auth_token,
|
|
374
381
|
)
|
|
375
382
|
).parsed
|
|
@@ -14,21 +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
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
19
19
|
) -> dict[str, Any]:
|
|
20
20
|
headers: dict[str, Any] = {}
|
|
21
21
|
if not isinstance(authorization, Unset):
|
|
22
22
|
headers["authorization"] = authorization
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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}
|
|
27
34
|
|
|
28
35
|
_kwargs: dict[str, Any] = {
|
|
29
36
|
"method": "get",
|
|
30
37
|
"url": f"/v1/{graph_id}/analytics",
|
|
31
|
-
"
|
|
38
|
+
"params": params,
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
_kwargs["headers"] = headers
|
|
@@ -79,8 +86,8 @@ def sync_detailed(
|
|
|
79
86
|
graph_id: str,
|
|
80
87
|
*,
|
|
81
88
|
client: AuthenticatedClient,
|
|
89
|
+
token: Union[None, Unset, str] = UNSET,
|
|
82
90
|
authorization: Union[None, Unset, str] = UNSET,
|
|
83
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
84
91
|
) -> Response[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
|
|
85
92
|
"""Get Graph Metrics
|
|
86
93
|
|
|
@@ -104,8 +111,8 @@ def sync_detailed(
|
|
|
104
111
|
|
|
105
112
|
Args:
|
|
106
113
|
graph_id (str): The graph ID to get metrics for
|
|
114
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
107
115
|
authorization (Union[None, Unset, str]):
|
|
108
|
-
auth_token (Union[None, Unset, str]):
|
|
109
116
|
|
|
110
117
|
Raises:
|
|
111
118
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -117,8 +124,8 @@ def sync_detailed(
|
|
|
117
124
|
|
|
118
125
|
kwargs = _get_kwargs(
|
|
119
126
|
graph_id=graph_id,
|
|
127
|
+
token=token,
|
|
120
128
|
authorization=authorization,
|
|
121
|
-
auth_token=auth_token,
|
|
122
129
|
)
|
|
123
130
|
|
|
124
131
|
response = client.get_httpx_client().request(
|
|
@@ -132,8 +139,8 @@ def sync(
|
|
|
132
139
|
graph_id: str,
|
|
133
140
|
*,
|
|
134
141
|
client: AuthenticatedClient,
|
|
142
|
+
token: Union[None, Unset, str] = UNSET,
|
|
135
143
|
authorization: Union[None, Unset, str] = UNSET,
|
|
136
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
137
144
|
) -> Optional[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
|
|
138
145
|
"""Get Graph Metrics
|
|
139
146
|
|
|
@@ -157,8 +164,8 @@ def sync(
|
|
|
157
164
|
|
|
158
165
|
Args:
|
|
159
166
|
graph_id (str): The graph ID to get metrics for
|
|
167
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
160
168
|
authorization (Union[None, Unset, str]):
|
|
161
|
-
auth_token (Union[None, Unset, str]):
|
|
162
169
|
|
|
163
170
|
Raises:
|
|
164
171
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -171,8 +178,8 @@ def sync(
|
|
|
171
178
|
return sync_detailed(
|
|
172
179
|
graph_id=graph_id,
|
|
173
180
|
client=client,
|
|
181
|
+
token=token,
|
|
174
182
|
authorization=authorization,
|
|
175
|
-
auth_token=auth_token,
|
|
176
183
|
).parsed
|
|
177
184
|
|
|
178
185
|
|
|
@@ -180,8 +187,8 @@ async def asyncio_detailed(
|
|
|
180
187
|
graph_id: str,
|
|
181
188
|
*,
|
|
182
189
|
client: AuthenticatedClient,
|
|
190
|
+
token: Union[None, Unset, str] = UNSET,
|
|
183
191
|
authorization: Union[None, Unset, str] = UNSET,
|
|
184
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
185
192
|
) -> Response[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
|
|
186
193
|
"""Get Graph Metrics
|
|
187
194
|
|
|
@@ -205,8 +212,8 @@ async def asyncio_detailed(
|
|
|
205
212
|
|
|
206
213
|
Args:
|
|
207
214
|
graph_id (str): The graph ID to get metrics for
|
|
215
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
208
216
|
authorization (Union[None, Unset, str]):
|
|
209
|
-
auth_token (Union[None, Unset, str]):
|
|
210
217
|
|
|
211
218
|
Raises:
|
|
212
219
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -218,8 +225,8 @@ async def asyncio_detailed(
|
|
|
218
225
|
|
|
219
226
|
kwargs = _get_kwargs(
|
|
220
227
|
graph_id=graph_id,
|
|
228
|
+
token=token,
|
|
221
229
|
authorization=authorization,
|
|
222
|
-
auth_token=auth_token,
|
|
223
230
|
)
|
|
224
231
|
|
|
225
232
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -231,8 +238,8 @@ async def asyncio(
|
|
|
231
238
|
graph_id: str,
|
|
232
239
|
*,
|
|
233
240
|
client: AuthenticatedClient,
|
|
241
|
+
token: Union[None, Unset, str] = UNSET,
|
|
234
242
|
authorization: Union[None, Unset, str] = UNSET,
|
|
235
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
236
243
|
) -> Optional[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
|
|
237
244
|
"""Get Graph Metrics
|
|
238
245
|
|
|
@@ -256,8 +263,8 @@ async def asyncio(
|
|
|
256
263
|
|
|
257
264
|
Args:
|
|
258
265
|
graph_id (str): The graph ID to get metrics for
|
|
266
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
259
267
|
authorization (Union[None, Unset, str]):
|
|
260
|
-
auth_token (Union[None, Unset, str]):
|
|
261
268
|
|
|
262
269
|
Raises:
|
|
263
270
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -271,7 +278,7 @@ async def asyncio(
|
|
|
271
278
|
await asyncio_detailed(
|
|
272
279
|
graph_id=graph_id,
|
|
273
280
|
client=client,
|
|
281
|
+
token=token,
|
|
274
282
|
authorization=authorization,
|
|
275
|
-
auth_token=auth_token,
|
|
276
283
|
)
|
|
277
284
|
).parsed
|
|
@@ -15,28 +15,30 @@ 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
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
20
20
|
) -> dict[str, Any]:
|
|
21
21
|
headers: dict[str, Any] = {}
|
|
22
22
|
if not isinstance(authorization, Unset):
|
|
23
23
|
headers["authorization"] = authorization
|
|
24
24
|
|
|
25
|
-
cookies = {}
|
|
26
|
-
if auth_token is not UNSET:
|
|
27
|
-
cookies["auth-token"] = auth_token
|
|
28
|
-
|
|
29
25
|
params: dict[str, Any] = {}
|
|
30
26
|
|
|
31
27
|
params["include_details"] = include_details
|
|
32
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
|
+
|
|
33
36
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
34
37
|
|
|
35
38
|
_kwargs: dict[str, Any] = {
|
|
36
39
|
"method": "get",
|
|
37
40
|
"url": f"/v1/{graph_id}/analytics/usage",
|
|
38
41
|
"params": params,
|
|
39
|
-
"cookies": cookies,
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
_kwargs["headers"] = headers
|
|
@@ -84,8 +86,8 @@ def sync_detailed(
|
|
|
84
86
|
*,
|
|
85
87
|
client: AuthenticatedClient,
|
|
86
88
|
include_details: Union[Unset, bool] = False,
|
|
89
|
+
token: Union[None, Unset, str] = UNSET,
|
|
87
90
|
authorization: Union[None, Unset, str] = UNSET,
|
|
88
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
89
91
|
) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
90
92
|
"""Get Usage Statistics
|
|
91
93
|
|
|
@@ -117,8 +119,8 @@ def sync_detailed(
|
|
|
117
119
|
graph_id (str): The graph ID to get usage stats for
|
|
118
120
|
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
119
121
|
False.
|
|
122
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
120
123
|
authorization (Union[None, Unset, str]):
|
|
121
|
-
auth_token (Union[None, Unset, str]):
|
|
122
124
|
|
|
123
125
|
Raises:
|
|
124
126
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -131,8 +133,8 @@ def sync_detailed(
|
|
|
131
133
|
kwargs = _get_kwargs(
|
|
132
134
|
graph_id=graph_id,
|
|
133
135
|
include_details=include_details,
|
|
136
|
+
token=token,
|
|
134
137
|
authorization=authorization,
|
|
135
|
-
auth_token=auth_token,
|
|
136
138
|
)
|
|
137
139
|
|
|
138
140
|
response = client.get_httpx_client().request(
|
|
@@ -147,8 +149,8 @@ def sync(
|
|
|
147
149
|
*,
|
|
148
150
|
client: AuthenticatedClient,
|
|
149
151
|
include_details: Union[Unset, bool] = False,
|
|
152
|
+
token: Union[None, Unset, str] = UNSET,
|
|
150
153
|
authorization: Union[None, Unset, str] = UNSET,
|
|
151
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
152
154
|
) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
153
155
|
"""Get Usage Statistics
|
|
154
156
|
|
|
@@ -180,8 +182,8 @@ def sync(
|
|
|
180
182
|
graph_id (str): The graph ID to get usage stats for
|
|
181
183
|
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
182
184
|
False.
|
|
185
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
183
186
|
authorization (Union[None, Unset, str]):
|
|
184
|
-
auth_token (Union[None, Unset, str]):
|
|
185
187
|
|
|
186
188
|
Raises:
|
|
187
189
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -195,8 +197,8 @@ def sync(
|
|
|
195
197
|
graph_id=graph_id,
|
|
196
198
|
client=client,
|
|
197
199
|
include_details=include_details,
|
|
200
|
+
token=token,
|
|
198
201
|
authorization=authorization,
|
|
199
|
-
auth_token=auth_token,
|
|
200
202
|
).parsed
|
|
201
203
|
|
|
202
204
|
|
|
@@ -205,8 +207,8 @@ async def asyncio_detailed(
|
|
|
205
207
|
*,
|
|
206
208
|
client: AuthenticatedClient,
|
|
207
209
|
include_details: Union[Unset, bool] = False,
|
|
210
|
+
token: Union[None, Unset, str] = UNSET,
|
|
208
211
|
authorization: Union[None, Unset, str] = UNSET,
|
|
209
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
210
212
|
) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
211
213
|
"""Get Usage Statistics
|
|
212
214
|
|
|
@@ -238,8 +240,8 @@ async def asyncio_detailed(
|
|
|
238
240
|
graph_id (str): The graph ID to get usage stats for
|
|
239
241
|
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
240
242
|
False.
|
|
243
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
241
244
|
authorization (Union[None, Unset, str]):
|
|
242
|
-
auth_token (Union[None, Unset, str]):
|
|
243
245
|
|
|
244
246
|
Raises:
|
|
245
247
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -252,8 +254,8 @@ async def asyncio_detailed(
|
|
|
252
254
|
kwargs = _get_kwargs(
|
|
253
255
|
graph_id=graph_id,
|
|
254
256
|
include_details=include_details,
|
|
257
|
+
token=token,
|
|
255
258
|
authorization=authorization,
|
|
256
|
-
auth_token=auth_token,
|
|
257
259
|
)
|
|
258
260
|
|
|
259
261
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -266,8 +268,8 @@ async def asyncio(
|
|
|
266
268
|
*,
|
|
267
269
|
client: AuthenticatedClient,
|
|
268
270
|
include_details: Union[Unset, bool] = False,
|
|
271
|
+
token: Union[None, Unset, str] = UNSET,
|
|
269
272
|
authorization: Union[None, Unset, str] = UNSET,
|
|
270
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
271
273
|
) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
272
274
|
"""Get Usage Statistics
|
|
273
275
|
|
|
@@ -299,8 +301,8 @@ async def asyncio(
|
|
|
299
301
|
graph_id (str): The graph ID to get usage stats for
|
|
300
302
|
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
301
303
|
False.
|
|
304
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
302
305
|
authorization (Union[None, Unset, str]):
|
|
303
|
-
auth_token (Union[None, Unset, str]):
|
|
304
306
|
|
|
305
307
|
Raises:
|
|
306
308
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -315,7 +317,7 @@ async def asyncio(
|
|
|
315
317
|
graph_id=graph_id,
|
|
316
318
|
client=client,
|
|
317
319
|
include_details=include_details,
|
|
320
|
+
token=token,
|
|
318
321
|
authorization=authorization,
|
|
319
|
-
auth_token=auth_token,
|
|
320
322
|
)
|
|
321
323
|
).parsed
|
|
@@ -16,21 +16,28 @@ from ...types import UNSET, Response, Unset
|
|
|
16
16
|
def _get_kwargs(
|
|
17
17
|
graph_id: str,
|
|
18
18
|
*,
|
|
19
|
+
token: Union[None, Unset, str] = UNSET,
|
|
19
20
|
authorization: Union[None, Unset, str] = UNSET,
|
|
20
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
21
21
|
) -> dict[str, Any]:
|
|
22
22
|
headers: dict[str, Any] = {}
|
|
23
23
|
if not isinstance(authorization, Unset):
|
|
24
24
|
headers["authorization"] = authorization
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
params: dict[str, Any] = {}
|
|
27
|
+
|
|
28
|
+
json_token: Union[None, Unset, str]
|
|
29
|
+
if isinstance(token, Unset):
|
|
30
|
+
json_token = UNSET
|
|
31
|
+
else:
|
|
32
|
+
json_token = token
|
|
33
|
+
params["token"] = json_token
|
|
34
|
+
|
|
35
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
29
36
|
|
|
30
37
|
_kwargs: dict[str, Any] = {
|
|
31
38
|
"method": "get",
|
|
32
39
|
"url": f"/v1/{graph_id}/billing/current",
|
|
33
|
-
"
|
|
40
|
+
"params": params,
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
_kwargs["headers"] = headers
|
|
@@ -91,8 +98,8 @@ def sync_detailed(
|
|
|
91
98
|
graph_id: str,
|
|
92
99
|
*,
|
|
93
100
|
client: AuthenticatedClient,
|
|
101
|
+
token: Union[None, Unset, str] = UNSET,
|
|
94
102
|
authorization: Union[None, Unset, str] = UNSET,
|
|
95
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
96
103
|
) -> Response[
|
|
97
104
|
Union[
|
|
98
105
|
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
@@ -115,8 +122,8 @@ def sync_detailed(
|
|
|
115
122
|
|
|
116
123
|
Args:
|
|
117
124
|
graph_id (str): Graph database identifier
|
|
125
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
118
126
|
authorization (Union[None, Unset, str]):
|
|
119
|
-
auth_token (Union[None, Unset, str]):
|
|
120
127
|
|
|
121
128
|
Raises:
|
|
122
129
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -128,8 +135,8 @@ def sync_detailed(
|
|
|
128
135
|
|
|
129
136
|
kwargs = _get_kwargs(
|
|
130
137
|
graph_id=graph_id,
|
|
138
|
+
token=token,
|
|
131
139
|
authorization=authorization,
|
|
132
|
-
auth_token=auth_token,
|
|
133
140
|
)
|
|
134
141
|
|
|
135
142
|
response = client.get_httpx_client().request(
|
|
@@ -143,8 +150,8 @@ def sync(
|
|
|
143
150
|
graph_id: str,
|
|
144
151
|
*,
|
|
145
152
|
client: AuthenticatedClient,
|
|
153
|
+
token: Union[None, Unset, str] = UNSET,
|
|
146
154
|
authorization: Union[None, Unset, str] = UNSET,
|
|
147
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
148
155
|
) -> Optional[
|
|
149
156
|
Union[
|
|
150
157
|
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
@@ -167,8 +174,8 @@ def sync(
|
|
|
167
174
|
|
|
168
175
|
Args:
|
|
169
176
|
graph_id (str): Graph database identifier
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
170
178
|
authorization (Union[None, Unset, str]):
|
|
171
|
-
auth_token (Union[None, Unset, str]):
|
|
172
179
|
|
|
173
180
|
Raises:
|
|
174
181
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -181,8 +188,8 @@ def sync(
|
|
|
181
188
|
return sync_detailed(
|
|
182
189
|
graph_id=graph_id,
|
|
183
190
|
client=client,
|
|
191
|
+
token=token,
|
|
184
192
|
authorization=authorization,
|
|
185
|
-
auth_token=auth_token,
|
|
186
193
|
).parsed
|
|
187
194
|
|
|
188
195
|
|
|
@@ -190,8 +197,8 @@ async def asyncio_detailed(
|
|
|
190
197
|
graph_id: str,
|
|
191
198
|
*,
|
|
192
199
|
client: AuthenticatedClient,
|
|
200
|
+
token: Union[None, Unset, str] = UNSET,
|
|
193
201
|
authorization: Union[None, Unset, str] = UNSET,
|
|
194
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
195
202
|
) -> Response[
|
|
196
203
|
Union[
|
|
197
204
|
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
@@ -214,8 +221,8 @@ async def asyncio_detailed(
|
|
|
214
221
|
|
|
215
222
|
Args:
|
|
216
223
|
graph_id (str): Graph database identifier
|
|
224
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
217
225
|
authorization (Union[None, Unset, str]):
|
|
218
|
-
auth_token (Union[None, Unset, str]):
|
|
219
226
|
|
|
220
227
|
Raises:
|
|
221
228
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -227,8 +234,8 @@ async def asyncio_detailed(
|
|
|
227
234
|
|
|
228
235
|
kwargs = _get_kwargs(
|
|
229
236
|
graph_id=graph_id,
|
|
237
|
+
token=token,
|
|
230
238
|
authorization=authorization,
|
|
231
|
-
auth_token=auth_token,
|
|
232
239
|
)
|
|
233
240
|
|
|
234
241
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -240,8 +247,8 @@ async def asyncio(
|
|
|
240
247
|
graph_id: str,
|
|
241
248
|
*,
|
|
242
249
|
client: AuthenticatedClient,
|
|
250
|
+
token: Union[None, Unset, str] = UNSET,
|
|
243
251
|
authorization: Union[None, Unset, str] = UNSET,
|
|
244
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
245
252
|
) -> Optional[
|
|
246
253
|
Union[
|
|
247
254
|
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
@@ -264,8 +271,8 @@ async def asyncio(
|
|
|
264
271
|
|
|
265
272
|
Args:
|
|
266
273
|
graph_id (str): Graph database identifier
|
|
274
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
267
275
|
authorization (Union[None, Unset, str]):
|
|
268
|
-
auth_token (Union[None, Unset, str]):
|
|
269
276
|
|
|
270
277
|
Raises:
|
|
271
278
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -279,7 +286,7 @@ async def asyncio(
|
|
|
279
286
|
await asyncio_detailed(
|
|
280
287
|
graph_id=graph_id,
|
|
281
288
|
client=client,
|
|
289
|
+
token=token,
|
|
282
290
|
authorization=authorization,
|
|
283
|
-
auth_token=auth_token,
|
|
284
291
|
)
|
|
285
292
|
).parsed
|