robosystems-client 0.2.3__py3-none-any.whl → 0.2.5__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 +1 -41
- robosystems_client/api/agent/batch_process_queries.py +1 -41
- robosystems_client/api/agent/execute_specific_agent.py +1 -41
- robosystems_client/api/agent/get_agent_metadata.py +5 -49
- robosystems_client/api/agent/list_agents.py +4 -42
- robosystems_client/api/agent/recommend_agent.py +5 -45
- robosystems_client/api/auth/generate_sso_token.py +0 -18
- robosystems_client/api/auth/get_current_auth_user.py +14 -74
- robosystems_client/api/auth/logout_user.py +14 -50
- robosystems_client/api/auth/refresh_auth_session.py +14 -50
- robosystems_client/api/auth/resend_verification_email.py +14 -74
- robosystems_client/api/backup/create_backup.py +5 -45
- robosystems_client/api/backup/get_backup_download_url.py +4 -42
- robosystems_client/api/backup/get_backup_stats.py +5 -49
- robosystems_client/api/backup/list_backups.py +4 -42
- robosystems_client/api/backup/restore_backup.py +5 -45
- robosystems_client/api/connections/create_connection.py +5 -45
- robosystems_client/api/connections/create_link_token.py +5 -45
- robosystems_client/api/connections/delete_connection.py +5 -49
- robosystems_client/api/connections/exchange_link_token.py +5 -45
- robosystems_client/api/connections/get_connection.py +5 -49
- robosystems_client/api/connections/get_connection_options.py +5 -49
- robosystems_client/api/connections/init_o_auth.py +5 -45
- robosystems_client/api/connections/list_connections.py +4 -42
- robosystems_client/api/connections/oauth_callback.py +5 -45
- robosystems_client/api/connections/sync_connection.py +5 -45
- robosystems_client/api/graph_analytics/get_graph_metrics.py +5 -49
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +4 -42
- robosystems_client/api/graph_billing/get_current_graph_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_billing_history.py +4 -42
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_usage_details.py +4 -42
- robosystems_client/api/graph_credits/check_credit_balance.py +0 -38
- robosystems_client/api/graph_credits/check_storage_limits.py +1 -45
- robosystems_client/api/graph_credits/get_credit_summary.py +1 -45
- robosystems_client/api/graph_credits/get_storage_usage.py +0 -38
- robosystems_client/api/graph_credits/list_credit_transactions.py +4 -42
- robosystems_client/api/graph_health/get_database_health.py +5 -49
- robosystems_client/api/graph_info/get_database_info.py +5 -49
- robosystems_client/api/graph_limits/get_graph_limits.py +5 -49
- robosystems_client/api/graphs/create_graph.py +21 -57
- robosystems_client/api/graphs/get_available_extensions.py +131 -15
- robosystems_client/api/graphs/get_graphs.py +154 -79
- robosystems_client/api/graphs/select_graph.py +117 -49
- robosystems_client/api/mcp/call_mcp_tool.py +24 -47
- robosystems_client/api/mcp/list_mcp_tools.py +13 -61
- robosystems_client/api/operations/cancel_operation.py +1 -45
- robosystems_client/api/operations/get_operation_status.py +1 -45
- robosystems_client/api/query/execute_cypher_query.py +69 -53
- robosystems_client/api/schema/export_graph_schema.py +223 -65
- robosystems_client/api/schema/get_graph_schema.py +137 -79
- robosystems_client/api/schema/validate_schema.py +5 -45
- robosystems_client/api/subgraphs/create_subgraph.py +5 -45
- robosystems_client/api/subgraphs/delete_subgraph.py +5 -45
- robosystems_client/api/subgraphs/get_subgraph_info.py +5 -49
- robosystems_client/api/subgraphs/get_subgraph_quota.py +5 -49
- robosystems_client/api/subgraphs/list_subgraphs.py +5 -49
- robosystems_client/api/tables/delete_file.py +181 -301
- robosystems_client/api/tables/get_file_info.py +117 -265
- robosystems_client/api/tables/get_upload_url.py +193 -389
- robosystems_client/api/tables/ingest_tables.py +277 -465
- robosystems_client/api/tables/list_table_files.py +193 -373
- robosystems_client/api/tables/list_tables.py +189 -361
- robosystems_client/api/tables/query_tables.py +85 -141
- robosystems_client/api/tables/update_file_status.py +205 -349
- robosystems_client/api/user/create_user_api_key.py +1 -41
- robosystems_client/api/user/get_all_credit_summaries.py +14 -111
- robosystems_client/api/user/get_current_user.py +14 -75
- robosystems_client/api/user/list_user_api_keys.py +14 -75
- robosystems_client/api/user/revoke_user_api_key.py +1 -45
- robosystems_client/api/user/update_user.py +1 -41
- robosystems_client/api/user/update_user_api_key.py +1 -41
- robosystems_client/api/user/update_user_password.py +1 -41
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -38
- robosystems_client/api/user_analytics/get_user_usage_overview.py +14 -75
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +14 -105
- robosystems_client/api/user_limits/get_shared_repository_limits.py +1 -45
- robosystems_client/api/user_limits/get_user_limits.py +14 -75
- robosystems_client/api/user_limits/get_user_usage.py +14 -75
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +1 -45
- robosystems_client/api/user_subscriptions/get_repository_credits.py +1 -45
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +14 -75
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -38
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +1 -41
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +1 -41
- robosystems_client/extensions/__init__.py +8 -1
- robosystems_client/extensions/auth_integration.py +1 -2
- robosystems_client/extensions/query_client.py +3 -2
- robosystems_client/extensions/sse_client.py +1 -1
- robosystems_client/extensions/table_ingest_client.py +5 -0
- robosystems_client/extensions/utils.py +2 -2
- robosystems_client/models/__init__.py +4 -4
- robosystems_client/models/auth_response.py +40 -0
- robosystems_client/models/create_graph_request.py +4 -3
- robosystems_client/models/cypher_query_request.py +5 -22
- robosystems_client/models/schema_export_response.py +4 -2
- robosystems_client/models/schema_info_response.py +77 -0
- robosystems_client/models/{get_graph_schema_response_getgraphschema.py → schema_info_response_schema.py} +6 -6
- robosystems_client/models/schema_validation_response.py +7 -6
- robosystems_client/models/table_query_request.py +37 -2
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/RECORD +104 -103
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -8,7 +8,7 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.delete_subgraph_request import DeleteSubgraphRequest
|
|
9
9
|
from ...models.delete_subgraph_response import DeleteSubgraphResponse
|
|
10
10
|
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
@@ -16,28 +16,12 @@ def _get_kwargs(
|
|
|
16
16
|
subgraph_id: str,
|
|
17
17
|
*,
|
|
18
18
|
body: DeleteSubgraphRequest,
|
|
19
|
-
token: Union[None, Unset, str] = UNSET,
|
|
20
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
21
19
|
) -> dict[str, Any]:
|
|
22
20
|
headers: dict[str, Any] = {}
|
|
23
|
-
if not isinstance(authorization, Unset):
|
|
24
|
-
headers["authorization"] = authorization
|
|
25
|
-
|
|
26
|
-
params: dict[str, Any] = {}
|
|
27
|
-
|
|
28
|
-
json_token: Union[None, Unset, str]
|
|
29
|
-
if isinstance(token, Unset):
|
|
30
|
-
json_token = UNSET
|
|
31
|
-
else:
|
|
32
|
-
json_token = token
|
|
33
|
-
params["token"] = json_token
|
|
34
|
-
|
|
35
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
36
21
|
|
|
37
22
|
_kwargs: dict[str, Any] = {
|
|
38
23
|
"method": "delete",
|
|
39
24
|
"url": f"/v1/graphs/{graph_id}/subgraphs/{subgraph_id}",
|
|
40
|
-
"params": params,
|
|
41
25
|
}
|
|
42
26
|
|
|
43
27
|
_kwargs["json"] = body.to_dict()
|
|
@@ -108,8 +92,6 @@ def sync_detailed(
|
|
|
108
92
|
*,
|
|
109
93
|
client: AuthenticatedClient,
|
|
110
94
|
body: DeleteSubgraphRequest,
|
|
111
|
-
token: Union[None, Unset, str] = UNSET,
|
|
112
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
113
95
|
) -> Response[Union[Any, DeleteSubgraphResponse, HTTPValidationError]]:
|
|
114
96
|
"""Delete Subgraph
|
|
115
97
|
|
|
@@ -133,10 +115,8 @@ def sync_detailed(
|
|
|
133
115
|
`s3://robosystems-backups/{instance_id}/{database_name}_{timestamp}.backup`
|
|
134
116
|
|
|
135
117
|
Args:
|
|
136
|
-
graph_id (str):
|
|
118
|
+
graph_id (str):
|
|
137
119
|
subgraph_id (str): Subgraph identifier to delete
|
|
138
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
139
|
-
authorization (Union[None, Unset, str]):
|
|
140
120
|
body (DeleteSubgraphRequest): Request model for deleting a subgraph.
|
|
141
121
|
|
|
142
122
|
Raises:
|
|
@@ -151,8 +131,6 @@ def sync_detailed(
|
|
|
151
131
|
graph_id=graph_id,
|
|
152
132
|
subgraph_id=subgraph_id,
|
|
153
133
|
body=body,
|
|
154
|
-
token=token,
|
|
155
|
-
authorization=authorization,
|
|
156
134
|
)
|
|
157
135
|
|
|
158
136
|
response = client.get_httpx_client().request(
|
|
@@ -168,8 +146,6 @@ def sync(
|
|
|
168
146
|
*,
|
|
169
147
|
client: AuthenticatedClient,
|
|
170
148
|
body: DeleteSubgraphRequest,
|
|
171
|
-
token: Union[None, Unset, str] = UNSET,
|
|
172
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
173
149
|
) -> Optional[Union[Any, DeleteSubgraphResponse, HTTPValidationError]]:
|
|
174
150
|
"""Delete Subgraph
|
|
175
151
|
|
|
@@ -193,10 +169,8 @@ def sync(
|
|
|
193
169
|
`s3://robosystems-backups/{instance_id}/{database_name}_{timestamp}.backup`
|
|
194
170
|
|
|
195
171
|
Args:
|
|
196
|
-
graph_id (str):
|
|
172
|
+
graph_id (str):
|
|
197
173
|
subgraph_id (str): Subgraph identifier to delete
|
|
198
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
199
|
-
authorization (Union[None, Unset, str]):
|
|
200
174
|
body (DeleteSubgraphRequest): Request model for deleting a subgraph.
|
|
201
175
|
|
|
202
176
|
Raises:
|
|
@@ -212,8 +186,6 @@ def sync(
|
|
|
212
186
|
subgraph_id=subgraph_id,
|
|
213
187
|
client=client,
|
|
214
188
|
body=body,
|
|
215
|
-
token=token,
|
|
216
|
-
authorization=authorization,
|
|
217
189
|
).parsed
|
|
218
190
|
|
|
219
191
|
|
|
@@ -223,8 +195,6 @@ async def asyncio_detailed(
|
|
|
223
195
|
*,
|
|
224
196
|
client: AuthenticatedClient,
|
|
225
197
|
body: DeleteSubgraphRequest,
|
|
226
|
-
token: Union[None, Unset, str] = UNSET,
|
|
227
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
228
198
|
) -> Response[Union[Any, DeleteSubgraphResponse, HTTPValidationError]]:
|
|
229
199
|
"""Delete Subgraph
|
|
230
200
|
|
|
@@ -248,10 +218,8 @@ async def asyncio_detailed(
|
|
|
248
218
|
`s3://robosystems-backups/{instance_id}/{database_name}_{timestamp}.backup`
|
|
249
219
|
|
|
250
220
|
Args:
|
|
251
|
-
graph_id (str):
|
|
221
|
+
graph_id (str):
|
|
252
222
|
subgraph_id (str): Subgraph identifier to delete
|
|
253
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
254
|
-
authorization (Union[None, Unset, str]):
|
|
255
223
|
body (DeleteSubgraphRequest): Request model for deleting a subgraph.
|
|
256
224
|
|
|
257
225
|
Raises:
|
|
@@ -266,8 +234,6 @@ async def asyncio_detailed(
|
|
|
266
234
|
graph_id=graph_id,
|
|
267
235
|
subgraph_id=subgraph_id,
|
|
268
236
|
body=body,
|
|
269
|
-
token=token,
|
|
270
|
-
authorization=authorization,
|
|
271
237
|
)
|
|
272
238
|
|
|
273
239
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -281,8 +247,6 @@ async def asyncio(
|
|
|
281
247
|
*,
|
|
282
248
|
client: AuthenticatedClient,
|
|
283
249
|
body: DeleteSubgraphRequest,
|
|
284
|
-
token: Union[None, Unset, str] = UNSET,
|
|
285
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
286
250
|
) -> Optional[Union[Any, DeleteSubgraphResponse, HTTPValidationError]]:
|
|
287
251
|
"""Delete Subgraph
|
|
288
252
|
|
|
@@ -306,10 +270,8 @@ async def asyncio(
|
|
|
306
270
|
`s3://robosystems-backups/{instance_id}/{database_name}_{timestamp}.backup`
|
|
307
271
|
|
|
308
272
|
Args:
|
|
309
|
-
graph_id (str):
|
|
273
|
+
graph_id (str):
|
|
310
274
|
subgraph_id (str): Subgraph identifier to delete
|
|
311
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
312
|
-
authorization (Union[None, Unset, str]):
|
|
313
275
|
body (DeleteSubgraphRequest): Request model for deleting a subgraph.
|
|
314
276
|
|
|
315
277
|
Raises:
|
|
@@ -326,7 +288,5 @@ async def asyncio(
|
|
|
326
288
|
subgraph_id=subgraph_id,
|
|
327
289
|
client=client,
|
|
328
290
|
body=body,
|
|
329
|
-
token=token,
|
|
330
|
-
authorization=authorization,
|
|
331
291
|
)
|
|
332
292
|
).parsed
|
|
@@ -7,38 +7,18 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.http_validation_error import HTTPValidationError
|
|
9
9
|
from ...models.subgraph_response import SubgraphResponse
|
|
10
|
-
from ...types import
|
|
10
|
+
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
graph_id: str,
|
|
15
15
|
subgraph_id: str,
|
|
16
|
-
*,
|
|
17
|
-
token: Union[None, Unset, str] = UNSET,
|
|
18
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
19
16
|
) -> dict[str, Any]:
|
|
20
|
-
headers: dict[str, Any] = {}
|
|
21
|
-
if not isinstance(authorization, Unset):
|
|
22
|
-
headers["authorization"] = authorization
|
|
23
|
-
|
|
24
|
-
params: dict[str, Any] = {}
|
|
25
|
-
|
|
26
|
-
json_token: Union[None, Unset, str]
|
|
27
|
-
if isinstance(token, Unset):
|
|
28
|
-
json_token = UNSET
|
|
29
|
-
else:
|
|
30
|
-
json_token = token
|
|
31
|
-
params["token"] = json_token
|
|
32
|
-
|
|
33
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
34
|
-
|
|
35
17
|
_kwargs: dict[str, Any] = {
|
|
36
18
|
"method": "get",
|
|
37
19
|
"url": f"/v1/graphs/{graph_id}/subgraphs/{subgraph_id}/info",
|
|
38
|
-
"params": params,
|
|
39
20
|
}
|
|
40
21
|
|
|
41
|
-
_kwargs["headers"] = headers
|
|
42
22
|
return _kwargs
|
|
43
23
|
|
|
44
24
|
|
|
@@ -97,8 +77,6 @@ def sync_detailed(
|
|
|
97
77
|
subgraph_id: str,
|
|
98
78
|
*,
|
|
99
79
|
client: AuthenticatedClient,
|
|
100
|
-
token: Union[None, Unset, str] = UNSET,
|
|
101
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
102
80
|
) -> Response[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
103
81
|
"""Get Subgraph Details
|
|
104
82
|
|
|
@@ -123,10 +101,8 @@ def sync_detailed(
|
|
|
123
101
|
- Schema information
|
|
124
102
|
|
|
125
103
|
Args:
|
|
126
|
-
graph_id (str):
|
|
104
|
+
graph_id (str):
|
|
127
105
|
subgraph_id (str): Subgraph identifier
|
|
128
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
129
|
-
authorization (Union[None, Unset, str]):
|
|
130
106
|
|
|
131
107
|
Raises:
|
|
132
108
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -139,8 +115,6 @@ def sync_detailed(
|
|
|
139
115
|
kwargs = _get_kwargs(
|
|
140
116
|
graph_id=graph_id,
|
|
141
117
|
subgraph_id=subgraph_id,
|
|
142
|
-
token=token,
|
|
143
|
-
authorization=authorization,
|
|
144
118
|
)
|
|
145
119
|
|
|
146
120
|
response = client.get_httpx_client().request(
|
|
@@ -155,8 +129,6 @@ def sync(
|
|
|
155
129
|
subgraph_id: str,
|
|
156
130
|
*,
|
|
157
131
|
client: AuthenticatedClient,
|
|
158
|
-
token: Union[None, Unset, str] = UNSET,
|
|
159
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
160
132
|
) -> Optional[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
161
133
|
"""Get Subgraph Details
|
|
162
134
|
|
|
@@ -181,10 +153,8 @@ def sync(
|
|
|
181
153
|
- Schema information
|
|
182
154
|
|
|
183
155
|
Args:
|
|
184
|
-
graph_id (str):
|
|
156
|
+
graph_id (str):
|
|
185
157
|
subgraph_id (str): Subgraph identifier
|
|
186
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
187
|
-
authorization (Union[None, Unset, str]):
|
|
188
158
|
|
|
189
159
|
Raises:
|
|
190
160
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -198,8 +168,6 @@ def sync(
|
|
|
198
168
|
graph_id=graph_id,
|
|
199
169
|
subgraph_id=subgraph_id,
|
|
200
170
|
client=client,
|
|
201
|
-
token=token,
|
|
202
|
-
authorization=authorization,
|
|
203
171
|
).parsed
|
|
204
172
|
|
|
205
173
|
|
|
@@ -208,8 +176,6 @@ async def asyncio_detailed(
|
|
|
208
176
|
subgraph_id: str,
|
|
209
177
|
*,
|
|
210
178
|
client: AuthenticatedClient,
|
|
211
|
-
token: Union[None, Unset, str] = UNSET,
|
|
212
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
213
179
|
) -> Response[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
214
180
|
"""Get Subgraph Details
|
|
215
181
|
|
|
@@ -234,10 +200,8 @@ async def asyncio_detailed(
|
|
|
234
200
|
- Schema information
|
|
235
201
|
|
|
236
202
|
Args:
|
|
237
|
-
graph_id (str):
|
|
203
|
+
graph_id (str):
|
|
238
204
|
subgraph_id (str): Subgraph identifier
|
|
239
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
240
|
-
authorization (Union[None, Unset, str]):
|
|
241
205
|
|
|
242
206
|
Raises:
|
|
243
207
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -250,8 +214,6 @@ async def asyncio_detailed(
|
|
|
250
214
|
kwargs = _get_kwargs(
|
|
251
215
|
graph_id=graph_id,
|
|
252
216
|
subgraph_id=subgraph_id,
|
|
253
|
-
token=token,
|
|
254
|
-
authorization=authorization,
|
|
255
217
|
)
|
|
256
218
|
|
|
257
219
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -264,8 +226,6 @@ async def asyncio(
|
|
|
264
226
|
subgraph_id: str,
|
|
265
227
|
*,
|
|
266
228
|
client: AuthenticatedClient,
|
|
267
|
-
token: Union[None, Unset, str] = UNSET,
|
|
268
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
269
229
|
) -> Optional[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
270
230
|
"""Get Subgraph Details
|
|
271
231
|
|
|
@@ -290,10 +250,8 @@ async def asyncio(
|
|
|
290
250
|
- Schema information
|
|
291
251
|
|
|
292
252
|
Args:
|
|
293
|
-
graph_id (str):
|
|
253
|
+
graph_id (str):
|
|
294
254
|
subgraph_id (str): Subgraph identifier
|
|
295
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
296
|
-
authorization (Union[None, Unset, str]):
|
|
297
255
|
|
|
298
256
|
Raises:
|
|
299
257
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -308,7 +266,5 @@ async def asyncio(
|
|
|
308
266
|
graph_id=graph_id,
|
|
309
267
|
subgraph_id=subgraph_id,
|
|
310
268
|
client=client,
|
|
311
|
-
token=token,
|
|
312
|
-
authorization=authorization,
|
|
313
269
|
)
|
|
314
270
|
).parsed
|
|
@@ -7,37 +7,17 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.http_validation_error import HTTPValidationError
|
|
9
9
|
from ...models.subgraph_quota_response import SubgraphQuotaResponse
|
|
10
|
-
from ...types import
|
|
10
|
+
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
graph_id: str,
|
|
15
|
-
*,
|
|
16
|
-
token: Union[None, Unset, str] = UNSET,
|
|
17
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
18
15
|
) -> dict[str, Any]:
|
|
19
|
-
headers: dict[str, Any] = {}
|
|
20
|
-
if not isinstance(authorization, Unset):
|
|
21
|
-
headers["authorization"] = authorization
|
|
22
|
-
|
|
23
|
-
params: dict[str, Any] = {}
|
|
24
|
-
|
|
25
|
-
json_token: Union[None, Unset, str]
|
|
26
|
-
if isinstance(token, Unset):
|
|
27
|
-
json_token = UNSET
|
|
28
|
-
else:
|
|
29
|
-
json_token = token
|
|
30
|
-
params["token"] = json_token
|
|
31
|
-
|
|
32
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
33
|
-
|
|
34
16
|
_kwargs: dict[str, Any] = {
|
|
35
17
|
"method": "get",
|
|
36
18
|
"url": f"/v1/graphs/{graph_id}/subgraphs/quota",
|
|
37
|
-
"params": params,
|
|
38
19
|
}
|
|
39
20
|
|
|
40
|
-
_kwargs["headers"] = headers
|
|
41
21
|
return _kwargs
|
|
42
22
|
|
|
43
23
|
|
|
@@ -91,8 +71,6 @@ def sync_detailed(
|
|
|
91
71
|
graph_id: str,
|
|
92
72
|
*,
|
|
93
73
|
client: AuthenticatedClient,
|
|
94
|
-
token: Union[None, Unset, str] = UNSET,
|
|
95
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
96
74
|
) -> Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
97
75
|
"""Get Subgraph Quota
|
|
98
76
|
|
|
@@ -115,9 +93,7 @@ def sync_detailed(
|
|
|
115
93
|
Individual subgraph sizes shown in list endpoint.
|
|
116
94
|
|
|
117
95
|
Args:
|
|
118
|
-
graph_id (str):
|
|
119
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
120
|
-
authorization (Union[None, Unset, str]):
|
|
96
|
+
graph_id (str):
|
|
121
97
|
|
|
122
98
|
Raises:
|
|
123
99
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -129,8 +105,6 @@ def sync_detailed(
|
|
|
129
105
|
|
|
130
106
|
kwargs = _get_kwargs(
|
|
131
107
|
graph_id=graph_id,
|
|
132
|
-
token=token,
|
|
133
|
-
authorization=authorization,
|
|
134
108
|
)
|
|
135
109
|
|
|
136
110
|
response = client.get_httpx_client().request(
|
|
@@ -144,8 +118,6 @@ def sync(
|
|
|
144
118
|
graph_id: str,
|
|
145
119
|
*,
|
|
146
120
|
client: AuthenticatedClient,
|
|
147
|
-
token: Union[None, Unset, str] = UNSET,
|
|
148
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
149
121
|
) -> Optional[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
150
122
|
"""Get Subgraph Quota
|
|
151
123
|
|
|
@@ -168,9 +140,7 @@ def sync(
|
|
|
168
140
|
Individual subgraph sizes shown in list endpoint.
|
|
169
141
|
|
|
170
142
|
Args:
|
|
171
|
-
graph_id (str):
|
|
172
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
173
|
-
authorization (Union[None, Unset, str]):
|
|
143
|
+
graph_id (str):
|
|
174
144
|
|
|
175
145
|
Raises:
|
|
176
146
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -183,8 +153,6 @@ def sync(
|
|
|
183
153
|
return sync_detailed(
|
|
184
154
|
graph_id=graph_id,
|
|
185
155
|
client=client,
|
|
186
|
-
token=token,
|
|
187
|
-
authorization=authorization,
|
|
188
156
|
).parsed
|
|
189
157
|
|
|
190
158
|
|
|
@@ -192,8 +160,6 @@ async def asyncio_detailed(
|
|
|
192
160
|
graph_id: str,
|
|
193
161
|
*,
|
|
194
162
|
client: AuthenticatedClient,
|
|
195
|
-
token: Union[None, Unset, str] = UNSET,
|
|
196
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
197
163
|
) -> Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
198
164
|
"""Get Subgraph Quota
|
|
199
165
|
|
|
@@ -216,9 +182,7 @@ async def asyncio_detailed(
|
|
|
216
182
|
Individual subgraph sizes shown in list endpoint.
|
|
217
183
|
|
|
218
184
|
Args:
|
|
219
|
-
graph_id (str):
|
|
220
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
221
|
-
authorization (Union[None, Unset, str]):
|
|
185
|
+
graph_id (str):
|
|
222
186
|
|
|
223
187
|
Raises:
|
|
224
188
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -230,8 +194,6 @@ async def asyncio_detailed(
|
|
|
230
194
|
|
|
231
195
|
kwargs = _get_kwargs(
|
|
232
196
|
graph_id=graph_id,
|
|
233
|
-
token=token,
|
|
234
|
-
authorization=authorization,
|
|
235
197
|
)
|
|
236
198
|
|
|
237
199
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -243,8 +205,6 @@ async def asyncio(
|
|
|
243
205
|
graph_id: str,
|
|
244
206
|
*,
|
|
245
207
|
client: AuthenticatedClient,
|
|
246
|
-
token: Union[None, Unset, str] = UNSET,
|
|
247
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
248
208
|
) -> Optional[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
249
209
|
"""Get Subgraph Quota
|
|
250
210
|
|
|
@@ -267,9 +227,7 @@ async def asyncio(
|
|
|
267
227
|
Individual subgraph sizes shown in list endpoint.
|
|
268
228
|
|
|
269
229
|
Args:
|
|
270
|
-
graph_id (str):
|
|
271
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
272
|
-
authorization (Union[None, Unset, str]):
|
|
230
|
+
graph_id (str):
|
|
273
231
|
|
|
274
232
|
Raises:
|
|
275
233
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -283,7 +241,5 @@ async def asyncio(
|
|
|
283
241
|
await asyncio_detailed(
|
|
284
242
|
graph_id=graph_id,
|
|
285
243
|
client=client,
|
|
286
|
-
token=token,
|
|
287
|
-
authorization=authorization,
|
|
288
244
|
)
|
|
289
245
|
).parsed
|
|
@@ -7,37 +7,17 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.http_validation_error import HTTPValidationError
|
|
9
9
|
from ...models.list_subgraphs_response import ListSubgraphsResponse
|
|
10
|
-
from ...types import
|
|
10
|
+
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
graph_id: str,
|
|
15
|
-
*,
|
|
16
|
-
token: Union[None, Unset, str] = UNSET,
|
|
17
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
18
15
|
) -> dict[str, Any]:
|
|
19
|
-
headers: dict[str, Any] = {}
|
|
20
|
-
if not isinstance(authorization, Unset):
|
|
21
|
-
headers["authorization"] = authorization
|
|
22
|
-
|
|
23
|
-
params: dict[str, Any] = {}
|
|
24
|
-
|
|
25
|
-
json_token: Union[None, Unset, str]
|
|
26
|
-
if isinstance(token, Unset):
|
|
27
|
-
json_token = UNSET
|
|
28
|
-
else:
|
|
29
|
-
json_token = token
|
|
30
|
-
params["token"] = json_token
|
|
31
|
-
|
|
32
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
33
|
-
|
|
34
16
|
_kwargs: dict[str, Any] = {
|
|
35
17
|
"method": "get",
|
|
36
18
|
"url": f"/v1/graphs/{graph_id}/subgraphs",
|
|
37
|
-
"params": params,
|
|
38
19
|
}
|
|
39
20
|
|
|
40
|
-
_kwargs["headers"] = headers
|
|
41
21
|
return _kwargs
|
|
42
22
|
|
|
43
23
|
|
|
@@ -75,8 +55,6 @@ def sync_detailed(
|
|
|
75
55
|
graph_id: str,
|
|
76
56
|
*,
|
|
77
57
|
client: AuthenticatedClient,
|
|
78
|
-
token: Union[None, Unset, str] = UNSET,
|
|
79
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
80
58
|
) -> Response[Union[HTTPValidationError, ListSubgraphsResponse]]:
|
|
81
59
|
"""List Subgraphs
|
|
82
60
|
|
|
@@ -92,9 +70,7 @@ def sync_detailed(
|
|
|
92
70
|
- Each subgraph includes its ID, name, description, type, status, and creation date
|
|
93
71
|
|
|
94
72
|
Args:
|
|
95
|
-
graph_id (str):
|
|
96
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
97
|
-
authorization (Union[None, Unset, str]):
|
|
73
|
+
graph_id (str):
|
|
98
74
|
|
|
99
75
|
Raises:
|
|
100
76
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -106,8 +82,6 @@ def sync_detailed(
|
|
|
106
82
|
|
|
107
83
|
kwargs = _get_kwargs(
|
|
108
84
|
graph_id=graph_id,
|
|
109
|
-
token=token,
|
|
110
|
-
authorization=authorization,
|
|
111
85
|
)
|
|
112
86
|
|
|
113
87
|
response = client.get_httpx_client().request(
|
|
@@ -121,8 +95,6 @@ def sync(
|
|
|
121
95
|
graph_id: str,
|
|
122
96
|
*,
|
|
123
97
|
client: AuthenticatedClient,
|
|
124
|
-
token: Union[None, Unset, str] = UNSET,
|
|
125
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
126
98
|
) -> Optional[Union[HTTPValidationError, ListSubgraphsResponse]]:
|
|
127
99
|
"""List Subgraphs
|
|
128
100
|
|
|
@@ -138,9 +110,7 @@ def sync(
|
|
|
138
110
|
- Each subgraph includes its ID, name, description, type, status, and creation date
|
|
139
111
|
|
|
140
112
|
Args:
|
|
141
|
-
graph_id (str):
|
|
142
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
143
|
-
authorization (Union[None, Unset, str]):
|
|
113
|
+
graph_id (str):
|
|
144
114
|
|
|
145
115
|
Raises:
|
|
146
116
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -153,8 +123,6 @@ def sync(
|
|
|
153
123
|
return sync_detailed(
|
|
154
124
|
graph_id=graph_id,
|
|
155
125
|
client=client,
|
|
156
|
-
token=token,
|
|
157
|
-
authorization=authorization,
|
|
158
126
|
).parsed
|
|
159
127
|
|
|
160
128
|
|
|
@@ -162,8 +130,6 @@ async def asyncio_detailed(
|
|
|
162
130
|
graph_id: str,
|
|
163
131
|
*,
|
|
164
132
|
client: AuthenticatedClient,
|
|
165
|
-
token: Union[None, Unset, str] = UNSET,
|
|
166
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
167
133
|
) -> Response[Union[HTTPValidationError, ListSubgraphsResponse]]:
|
|
168
134
|
"""List Subgraphs
|
|
169
135
|
|
|
@@ -179,9 +145,7 @@ async def asyncio_detailed(
|
|
|
179
145
|
- Each subgraph includes its ID, name, description, type, status, and creation date
|
|
180
146
|
|
|
181
147
|
Args:
|
|
182
|
-
graph_id (str):
|
|
183
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
184
|
-
authorization (Union[None, Unset, str]):
|
|
148
|
+
graph_id (str):
|
|
185
149
|
|
|
186
150
|
Raises:
|
|
187
151
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -193,8 +157,6 @@ async def asyncio_detailed(
|
|
|
193
157
|
|
|
194
158
|
kwargs = _get_kwargs(
|
|
195
159
|
graph_id=graph_id,
|
|
196
|
-
token=token,
|
|
197
|
-
authorization=authorization,
|
|
198
160
|
)
|
|
199
161
|
|
|
200
162
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -206,8 +168,6 @@ async def asyncio(
|
|
|
206
168
|
graph_id: str,
|
|
207
169
|
*,
|
|
208
170
|
client: AuthenticatedClient,
|
|
209
|
-
token: Union[None, Unset, str] = UNSET,
|
|
210
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
211
171
|
) -> Optional[Union[HTTPValidationError, ListSubgraphsResponse]]:
|
|
212
172
|
"""List Subgraphs
|
|
213
173
|
|
|
@@ -223,9 +183,7 @@ async def asyncio(
|
|
|
223
183
|
- Each subgraph includes its ID, name, description, type, status, and creation date
|
|
224
184
|
|
|
225
185
|
Args:
|
|
226
|
-
graph_id (str):
|
|
227
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
228
|
-
authorization (Union[None, Unset, str]):
|
|
186
|
+
graph_id (str):
|
|
229
187
|
|
|
230
188
|
Raises:
|
|
231
189
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -239,7 +197,5 @@ async def asyncio(
|
|
|
239
197
|
await asyncio_detailed(
|
|
240
198
|
graph_id=graph_id,
|
|
241
199
|
client=client,
|
|
242
|
-
token=token,
|
|
243
|
-
authorization=authorization,
|
|
244
200
|
)
|
|
245
201
|
).parsed
|