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
|
@@ -15,21 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: SchemaValidationRequest,
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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}
|
|
28
35
|
|
|
29
36
|
_kwargs: dict[str, Any] = {
|
|
30
37
|
"method": "post",
|
|
31
38
|
"url": f"/v1/{graph_id}/schema/validate",
|
|
32
|
-
"
|
|
39
|
+
"params": params,
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -85,8 +92,8 @@ def sync_detailed(
|
|
|
85
92
|
*,
|
|
86
93
|
client: AuthenticatedClient,
|
|
87
94
|
body: SchemaValidationRequest,
|
|
95
|
+
token: Union[None, Unset, str] = UNSET,
|
|
88
96
|
authorization: Union[None, Unset, str] = UNSET,
|
|
89
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
90
97
|
) -> Response[Union[ErrorResponse, SchemaValidationResponse]]:
|
|
91
98
|
"""Validate Schema
|
|
92
99
|
|
|
@@ -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
|
body (SchemaValidationRequest): Request model for schema validation.
|
|
121
128
|
|
|
122
129
|
Raises:
|
|
@@ -130,8 +137,8 @@ def sync_detailed(
|
|
|
130
137
|
kwargs = _get_kwargs(
|
|
131
138
|
graph_id=graph_id,
|
|
132
139
|
body=body,
|
|
140
|
+
token=token,
|
|
133
141
|
authorization=authorization,
|
|
134
|
-
auth_token=auth_token,
|
|
135
142
|
)
|
|
136
143
|
|
|
137
144
|
response = client.get_httpx_client().request(
|
|
@@ -146,8 +153,8 @@ def sync(
|
|
|
146
153
|
*,
|
|
147
154
|
client: AuthenticatedClient,
|
|
148
155
|
body: SchemaValidationRequest,
|
|
156
|
+
token: Union[None, Unset, str] = UNSET,
|
|
149
157
|
authorization: Union[None, Unset, str] = UNSET,
|
|
150
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
151
158
|
) -> Optional[Union[ErrorResponse, SchemaValidationResponse]]:
|
|
152
159
|
"""Validate Schema
|
|
153
160
|
|
|
@@ -176,8 +183,8 @@ def sync(
|
|
|
176
183
|
|
|
177
184
|
Args:
|
|
178
185
|
graph_id (str): Graph database identifier
|
|
186
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
179
187
|
authorization (Union[None, Unset, str]):
|
|
180
|
-
auth_token (Union[None, Unset, str]):
|
|
181
188
|
body (SchemaValidationRequest): Request model for schema validation.
|
|
182
189
|
|
|
183
190
|
Raises:
|
|
@@ -192,8 +199,8 @@ def sync(
|
|
|
192
199
|
graph_id=graph_id,
|
|
193
200
|
client=client,
|
|
194
201
|
body=body,
|
|
202
|
+
token=token,
|
|
195
203
|
authorization=authorization,
|
|
196
|
-
auth_token=auth_token,
|
|
197
204
|
).parsed
|
|
198
205
|
|
|
199
206
|
|
|
@@ -202,8 +209,8 @@ async def asyncio_detailed(
|
|
|
202
209
|
*,
|
|
203
210
|
client: AuthenticatedClient,
|
|
204
211
|
body: SchemaValidationRequest,
|
|
212
|
+
token: Union[None, Unset, str] = UNSET,
|
|
205
213
|
authorization: Union[None, Unset, str] = UNSET,
|
|
206
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
207
214
|
) -> Response[Union[ErrorResponse, SchemaValidationResponse]]:
|
|
208
215
|
"""Validate Schema
|
|
209
216
|
|
|
@@ -232,8 +239,8 @@ async def asyncio_detailed(
|
|
|
232
239
|
|
|
233
240
|
Args:
|
|
234
241
|
graph_id (str): Graph database identifier
|
|
242
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
235
243
|
authorization (Union[None, Unset, str]):
|
|
236
|
-
auth_token (Union[None, Unset, str]):
|
|
237
244
|
body (SchemaValidationRequest): Request model for schema validation.
|
|
238
245
|
|
|
239
246
|
Raises:
|
|
@@ -247,8 +254,8 @@ async def asyncio_detailed(
|
|
|
247
254
|
kwargs = _get_kwargs(
|
|
248
255
|
graph_id=graph_id,
|
|
249
256
|
body=body,
|
|
257
|
+
token=token,
|
|
250
258
|
authorization=authorization,
|
|
251
|
-
auth_token=auth_token,
|
|
252
259
|
)
|
|
253
260
|
|
|
254
261
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -261,8 +268,8 @@ async def asyncio(
|
|
|
261
268
|
*,
|
|
262
269
|
client: AuthenticatedClient,
|
|
263
270
|
body: SchemaValidationRequest,
|
|
271
|
+
token: Union[None, Unset, str] = UNSET,
|
|
264
272
|
authorization: Union[None, Unset, str] = UNSET,
|
|
265
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
266
273
|
) -> Optional[Union[ErrorResponse, SchemaValidationResponse]]:
|
|
267
274
|
"""Validate Schema
|
|
268
275
|
|
|
@@ -291,8 +298,8 @@ async def asyncio(
|
|
|
291
298
|
|
|
292
299
|
Args:
|
|
293
300
|
graph_id (str): Graph database identifier
|
|
301
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
294
302
|
authorization (Union[None, Unset, str]):
|
|
295
|
-
auth_token (Union[None, Unset, str]):
|
|
296
303
|
body (SchemaValidationRequest): Request model for schema validation.
|
|
297
304
|
|
|
298
305
|
Raises:
|
|
@@ -308,7 +315,7 @@ async def asyncio(
|
|
|
308
315
|
graph_id=graph_id,
|
|
309
316
|
client=client,
|
|
310
317
|
body=body,
|
|
318
|
+
token=token,
|
|
311
319
|
authorization=authorization,
|
|
312
|
-
auth_token=auth_token,
|
|
313
320
|
)
|
|
314
321
|
).parsed
|
|
@@ -15,21 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: CreateSubgraphRequest,
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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}
|
|
28
35
|
|
|
29
36
|
_kwargs: dict[str, Any] = {
|
|
30
37
|
"method": "post",
|
|
31
38
|
"url": f"/v1/{graph_id}/subgraphs",
|
|
32
|
-
"
|
|
39
|
+
"params": params,
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -73,8 +80,8 @@ def sync_detailed(
|
|
|
73
80
|
*,
|
|
74
81
|
client: AuthenticatedClient,
|
|
75
82
|
body: CreateSubgraphRequest,
|
|
83
|
+
token: Union[None, Unset, str] = UNSET,
|
|
76
84
|
authorization: Union[None, Unset, str] = UNSET,
|
|
77
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
78
85
|
) -> Response[Union[HTTPValidationError, SubgraphResponse]]:
|
|
79
86
|
"""Create Subgraph
|
|
80
87
|
|
|
@@ -93,8 +100,8 @@ def sync_detailed(
|
|
|
93
100
|
|
|
94
101
|
Args:
|
|
95
102
|
graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
|
|
103
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
96
104
|
authorization (Union[None, Unset, str]):
|
|
97
|
-
auth_token (Union[None, Unset, str]):
|
|
98
105
|
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
99
106
|
|
|
100
107
|
Raises:
|
|
@@ -108,8 +115,8 @@ def sync_detailed(
|
|
|
108
115
|
kwargs = _get_kwargs(
|
|
109
116
|
graph_id=graph_id,
|
|
110
117
|
body=body,
|
|
118
|
+
token=token,
|
|
111
119
|
authorization=authorization,
|
|
112
|
-
auth_token=auth_token,
|
|
113
120
|
)
|
|
114
121
|
|
|
115
122
|
response = client.get_httpx_client().request(
|
|
@@ -124,8 +131,8 @@ def sync(
|
|
|
124
131
|
*,
|
|
125
132
|
client: AuthenticatedClient,
|
|
126
133
|
body: CreateSubgraphRequest,
|
|
134
|
+
token: Union[None, Unset, str] = UNSET,
|
|
127
135
|
authorization: Union[None, Unset, str] = UNSET,
|
|
128
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
129
136
|
) -> Optional[Union[HTTPValidationError, SubgraphResponse]]:
|
|
130
137
|
"""Create Subgraph
|
|
131
138
|
|
|
@@ -144,8 +151,8 @@ def sync(
|
|
|
144
151
|
|
|
145
152
|
Args:
|
|
146
153
|
graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
|
|
154
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
147
155
|
authorization (Union[None, Unset, str]):
|
|
148
|
-
auth_token (Union[None, Unset, str]):
|
|
149
156
|
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
150
157
|
|
|
151
158
|
Raises:
|
|
@@ -160,8 +167,8 @@ def sync(
|
|
|
160
167
|
graph_id=graph_id,
|
|
161
168
|
client=client,
|
|
162
169
|
body=body,
|
|
170
|
+
token=token,
|
|
163
171
|
authorization=authorization,
|
|
164
|
-
auth_token=auth_token,
|
|
165
172
|
).parsed
|
|
166
173
|
|
|
167
174
|
|
|
@@ -170,8 +177,8 @@ async def asyncio_detailed(
|
|
|
170
177
|
*,
|
|
171
178
|
client: AuthenticatedClient,
|
|
172
179
|
body: CreateSubgraphRequest,
|
|
180
|
+
token: Union[None, Unset, str] = UNSET,
|
|
173
181
|
authorization: Union[None, Unset, str] = UNSET,
|
|
174
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
175
182
|
) -> Response[Union[HTTPValidationError, SubgraphResponse]]:
|
|
176
183
|
"""Create Subgraph
|
|
177
184
|
|
|
@@ -190,8 +197,8 @@ async def asyncio_detailed(
|
|
|
190
197
|
|
|
191
198
|
Args:
|
|
192
199
|
graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
|
|
200
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
193
201
|
authorization (Union[None, Unset, str]):
|
|
194
|
-
auth_token (Union[None, Unset, str]):
|
|
195
202
|
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
196
203
|
|
|
197
204
|
Raises:
|
|
@@ -205,8 +212,8 @@ async def asyncio_detailed(
|
|
|
205
212
|
kwargs = _get_kwargs(
|
|
206
213
|
graph_id=graph_id,
|
|
207
214
|
body=body,
|
|
215
|
+
token=token,
|
|
208
216
|
authorization=authorization,
|
|
209
|
-
auth_token=auth_token,
|
|
210
217
|
)
|
|
211
218
|
|
|
212
219
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -219,8 +226,8 @@ async def asyncio(
|
|
|
219
226
|
*,
|
|
220
227
|
client: AuthenticatedClient,
|
|
221
228
|
body: CreateSubgraphRequest,
|
|
229
|
+
token: Union[None, Unset, str] = UNSET,
|
|
222
230
|
authorization: Union[None, Unset, str] = UNSET,
|
|
223
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
224
231
|
) -> Optional[Union[HTTPValidationError, SubgraphResponse]]:
|
|
225
232
|
"""Create Subgraph
|
|
226
233
|
|
|
@@ -239,8 +246,8 @@ async def asyncio(
|
|
|
239
246
|
|
|
240
247
|
Args:
|
|
241
248
|
graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
|
|
249
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
242
250
|
authorization (Union[None, Unset, str]):
|
|
243
|
-
auth_token (Union[None, Unset, str]):
|
|
244
251
|
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
245
252
|
|
|
246
253
|
Raises:
|
|
@@ -256,7 +263,7 @@ async def asyncio(
|
|
|
256
263
|
graph_id=graph_id,
|
|
257
264
|
client=client,
|
|
258
265
|
body=body,
|
|
266
|
+
token=token,
|
|
259
267
|
authorization=authorization,
|
|
260
|
-
auth_token=auth_token,
|
|
261
268
|
)
|
|
262
269
|
).parsed
|
|
@@ -16,21 +16,28 @@ def _get_kwargs(
|
|
|
16
16
|
subgraph_id: str,
|
|
17
17
|
*,
|
|
18
18
|
body: DeleteSubgraphRequest,
|
|
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": "delete",
|
|
32
39
|
"url": f"/v1/{graph_id}/subgraphs/{subgraph_id}",
|
|
33
|
-
"
|
|
40
|
+
"params": params,
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
_kwargs["json"] = body.to_dict()
|
|
@@ -93,8 +100,8 @@ def sync_detailed(
|
|
|
93
100
|
*,
|
|
94
101
|
client: AuthenticatedClient,
|
|
95
102
|
body: DeleteSubgraphRequest,
|
|
103
|
+
token: Union[None, Unset, str] = UNSET,
|
|
96
104
|
authorization: Union[None, Unset, str] = UNSET,
|
|
97
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
98
105
|
) -> Response[Union[Any, DeleteSubgraphResponse, HTTPValidationError]]:
|
|
99
106
|
"""Delete Subgraph
|
|
100
107
|
|
|
@@ -120,8 +127,8 @@ def sync_detailed(
|
|
|
120
127
|
Args:
|
|
121
128
|
graph_id (str): Parent graph identifier
|
|
122
129
|
subgraph_id (str): Subgraph identifier to delete
|
|
130
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
123
131
|
authorization (Union[None, Unset, str]):
|
|
124
|
-
auth_token (Union[None, Unset, str]):
|
|
125
132
|
body (DeleteSubgraphRequest): Request model for deleting a subgraph.
|
|
126
133
|
|
|
127
134
|
Raises:
|
|
@@ -136,8 +143,8 @@ def sync_detailed(
|
|
|
136
143
|
graph_id=graph_id,
|
|
137
144
|
subgraph_id=subgraph_id,
|
|
138
145
|
body=body,
|
|
146
|
+
token=token,
|
|
139
147
|
authorization=authorization,
|
|
140
|
-
auth_token=auth_token,
|
|
141
148
|
)
|
|
142
149
|
|
|
143
150
|
response = client.get_httpx_client().request(
|
|
@@ -153,8 +160,8 @@ def sync(
|
|
|
153
160
|
*,
|
|
154
161
|
client: AuthenticatedClient,
|
|
155
162
|
body: DeleteSubgraphRequest,
|
|
163
|
+
token: Union[None, Unset, str] = UNSET,
|
|
156
164
|
authorization: Union[None, Unset, str] = UNSET,
|
|
157
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
158
165
|
) -> Optional[Union[Any, DeleteSubgraphResponse, HTTPValidationError]]:
|
|
159
166
|
"""Delete Subgraph
|
|
160
167
|
|
|
@@ -180,8 +187,8 @@ def sync(
|
|
|
180
187
|
Args:
|
|
181
188
|
graph_id (str): Parent graph identifier
|
|
182
189
|
subgraph_id (str): Subgraph identifier to delete
|
|
190
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
183
191
|
authorization (Union[None, Unset, str]):
|
|
184
|
-
auth_token (Union[None, Unset, str]):
|
|
185
192
|
body (DeleteSubgraphRequest): Request model for deleting a subgraph.
|
|
186
193
|
|
|
187
194
|
Raises:
|
|
@@ -197,8 +204,8 @@ def sync(
|
|
|
197
204
|
subgraph_id=subgraph_id,
|
|
198
205
|
client=client,
|
|
199
206
|
body=body,
|
|
207
|
+
token=token,
|
|
200
208
|
authorization=authorization,
|
|
201
|
-
auth_token=auth_token,
|
|
202
209
|
).parsed
|
|
203
210
|
|
|
204
211
|
|
|
@@ -208,8 +215,8 @@ async def asyncio_detailed(
|
|
|
208
215
|
*,
|
|
209
216
|
client: AuthenticatedClient,
|
|
210
217
|
body: DeleteSubgraphRequest,
|
|
218
|
+
token: Union[None, Unset, str] = UNSET,
|
|
211
219
|
authorization: Union[None, Unset, str] = UNSET,
|
|
212
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
213
220
|
) -> Response[Union[Any, DeleteSubgraphResponse, HTTPValidationError]]:
|
|
214
221
|
"""Delete Subgraph
|
|
215
222
|
|
|
@@ -235,8 +242,8 @@ async def asyncio_detailed(
|
|
|
235
242
|
Args:
|
|
236
243
|
graph_id (str): Parent graph identifier
|
|
237
244
|
subgraph_id (str): Subgraph identifier to delete
|
|
245
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
238
246
|
authorization (Union[None, Unset, str]):
|
|
239
|
-
auth_token (Union[None, Unset, str]):
|
|
240
247
|
body (DeleteSubgraphRequest): Request model for deleting a subgraph.
|
|
241
248
|
|
|
242
249
|
Raises:
|
|
@@ -251,8 +258,8 @@ async def asyncio_detailed(
|
|
|
251
258
|
graph_id=graph_id,
|
|
252
259
|
subgraph_id=subgraph_id,
|
|
253
260
|
body=body,
|
|
261
|
+
token=token,
|
|
254
262
|
authorization=authorization,
|
|
255
|
-
auth_token=auth_token,
|
|
256
263
|
)
|
|
257
264
|
|
|
258
265
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -266,8 +273,8 @@ async def asyncio(
|
|
|
266
273
|
*,
|
|
267
274
|
client: AuthenticatedClient,
|
|
268
275
|
body: DeleteSubgraphRequest,
|
|
276
|
+
token: Union[None, Unset, str] = UNSET,
|
|
269
277
|
authorization: Union[None, Unset, str] = UNSET,
|
|
270
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
271
278
|
) -> Optional[Union[Any, DeleteSubgraphResponse, HTTPValidationError]]:
|
|
272
279
|
"""Delete Subgraph
|
|
273
280
|
|
|
@@ -293,8 +300,8 @@ async def asyncio(
|
|
|
293
300
|
Args:
|
|
294
301
|
graph_id (str): Parent graph identifier
|
|
295
302
|
subgraph_id (str): Subgraph identifier to delete
|
|
303
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
296
304
|
authorization (Union[None, Unset, str]):
|
|
297
|
-
auth_token (Union[None, Unset, str]):
|
|
298
305
|
body (DeleteSubgraphRequest): Request model for deleting a subgraph.
|
|
299
306
|
|
|
300
307
|
Raises:
|
|
@@ -311,7 +318,7 @@ async def asyncio(
|
|
|
311
318
|
subgraph_id=subgraph_id,
|
|
312
319
|
client=client,
|
|
313
320
|
body=body,
|
|
321
|
+
token=token,
|
|
314
322
|
authorization=authorization,
|
|
315
|
-
auth_token=auth_token,
|
|
316
323
|
)
|
|
317
324
|
).parsed
|
|
@@ -14,21 +14,28 @@ def _get_kwargs(
|
|
|
14
14
|
graph_id: str,
|
|
15
15
|
subgraph_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}/subgraphs/{subgraph_id}/info",
|
|
31
|
-
"
|
|
38
|
+
"params": params,
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
_kwargs["headers"] = headers
|
|
@@ -83,8 +90,8 @@ def sync_detailed(
|
|
|
83
90
|
subgraph_id: str,
|
|
84
91
|
*,
|
|
85
92
|
client: AuthenticatedClient,
|
|
93
|
+
token: Union[None, Unset, str] = UNSET,
|
|
86
94
|
authorization: Union[None, Unset, str] = UNSET,
|
|
87
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
88
95
|
) -> Response[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
89
96
|
"""Get Subgraph Details
|
|
90
97
|
|
|
@@ -111,8 +118,8 @@ def sync_detailed(
|
|
|
111
118
|
Args:
|
|
112
119
|
graph_id (str): Parent graph identifier
|
|
113
120
|
subgraph_id (str): Subgraph identifier
|
|
121
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
114
122
|
authorization (Union[None, Unset, str]):
|
|
115
|
-
auth_token (Union[None, Unset, str]):
|
|
116
123
|
|
|
117
124
|
Raises:
|
|
118
125
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -125,8 +132,8 @@ def sync_detailed(
|
|
|
125
132
|
kwargs = _get_kwargs(
|
|
126
133
|
graph_id=graph_id,
|
|
127
134
|
subgraph_id=subgraph_id,
|
|
135
|
+
token=token,
|
|
128
136
|
authorization=authorization,
|
|
129
|
-
auth_token=auth_token,
|
|
130
137
|
)
|
|
131
138
|
|
|
132
139
|
response = client.get_httpx_client().request(
|
|
@@ -141,8 +148,8 @@ def sync(
|
|
|
141
148
|
subgraph_id: str,
|
|
142
149
|
*,
|
|
143
150
|
client: AuthenticatedClient,
|
|
151
|
+
token: Union[None, Unset, str] = UNSET,
|
|
144
152
|
authorization: Union[None, Unset, str] = UNSET,
|
|
145
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
146
153
|
) -> Optional[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
147
154
|
"""Get Subgraph Details
|
|
148
155
|
|
|
@@ -169,8 +176,8 @@ def sync(
|
|
|
169
176
|
Args:
|
|
170
177
|
graph_id (str): Parent graph identifier
|
|
171
178
|
subgraph_id (str): Subgraph identifier
|
|
179
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
172
180
|
authorization (Union[None, Unset, str]):
|
|
173
|
-
auth_token (Union[None, Unset, str]):
|
|
174
181
|
|
|
175
182
|
Raises:
|
|
176
183
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -184,8 +191,8 @@ def sync(
|
|
|
184
191
|
graph_id=graph_id,
|
|
185
192
|
subgraph_id=subgraph_id,
|
|
186
193
|
client=client,
|
|
194
|
+
token=token,
|
|
187
195
|
authorization=authorization,
|
|
188
|
-
auth_token=auth_token,
|
|
189
196
|
).parsed
|
|
190
197
|
|
|
191
198
|
|
|
@@ -194,8 +201,8 @@ async def asyncio_detailed(
|
|
|
194
201
|
subgraph_id: str,
|
|
195
202
|
*,
|
|
196
203
|
client: AuthenticatedClient,
|
|
204
|
+
token: Union[None, Unset, str] = UNSET,
|
|
197
205
|
authorization: Union[None, Unset, str] = UNSET,
|
|
198
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
199
206
|
) -> Response[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
200
207
|
"""Get Subgraph Details
|
|
201
208
|
|
|
@@ -222,8 +229,8 @@ async def asyncio_detailed(
|
|
|
222
229
|
Args:
|
|
223
230
|
graph_id (str): Parent graph identifier
|
|
224
231
|
subgraph_id (str): Subgraph identifier
|
|
232
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
225
233
|
authorization (Union[None, Unset, str]):
|
|
226
|
-
auth_token (Union[None, Unset, str]):
|
|
227
234
|
|
|
228
235
|
Raises:
|
|
229
236
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -236,8 +243,8 @@ async def asyncio_detailed(
|
|
|
236
243
|
kwargs = _get_kwargs(
|
|
237
244
|
graph_id=graph_id,
|
|
238
245
|
subgraph_id=subgraph_id,
|
|
246
|
+
token=token,
|
|
239
247
|
authorization=authorization,
|
|
240
|
-
auth_token=auth_token,
|
|
241
248
|
)
|
|
242
249
|
|
|
243
250
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -250,8 +257,8 @@ async def asyncio(
|
|
|
250
257
|
subgraph_id: str,
|
|
251
258
|
*,
|
|
252
259
|
client: AuthenticatedClient,
|
|
260
|
+
token: Union[None, Unset, str] = UNSET,
|
|
253
261
|
authorization: Union[None, Unset, str] = UNSET,
|
|
254
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
255
262
|
) -> Optional[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
256
263
|
"""Get Subgraph Details
|
|
257
264
|
|
|
@@ -278,8 +285,8 @@ async def asyncio(
|
|
|
278
285
|
Args:
|
|
279
286
|
graph_id (str): Parent graph identifier
|
|
280
287
|
subgraph_id (str): Subgraph identifier
|
|
288
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
281
289
|
authorization (Union[None, Unset, str]):
|
|
282
|
-
auth_token (Union[None, Unset, str]):
|
|
283
290
|
|
|
284
291
|
Raises:
|
|
285
292
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -294,7 +301,7 @@ async def asyncio(
|
|
|
294
301
|
graph_id=graph_id,
|
|
295
302
|
subgraph_id=subgraph_id,
|
|
296
303
|
client=client,
|
|
304
|
+
token=token,
|
|
297
305
|
authorization=authorization,
|
|
298
|
-
auth_token=auth_token,
|
|
299
306
|
)
|
|
300
307
|
).parsed
|