robosystems-client 0.2.3__py3-none-any.whl → 0.2.4__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/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.4.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +103 -102
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -18,13 +18,7 @@ def _get_kwargs(
|
|
|
18
18
|
*,
|
|
19
19
|
operation_type: str,
|
|
20
20
|
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
21
|
-
token: Union[None, Unset, str] = UNSET,
|
|
22
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
23
21
|
) -> dict[str, Any]:
|
|
24
|
-
headers: dict[str, Any] = {}
|
|
25
|
-
if not isinstance(authorization, Unset):
|
|
26
|
-
headers["authorization"] = authorization
|
|
27
|
-
|
|
28
22
|
params: dict[str, Any] = {}
|
|
29
23
|
|
|
30
24
|
params["operation_type"] = operation_type
|
|
@@ -36,13 +30,6 @@ def _get_kwargs(
|
|
|
36
30
|
json_base_cost = base_cost
|
|
37
31
|
params["base_cost"] = json_base_cost
|
|
38
32
|
|
|
39
|
-
json_token: Union[None, Unset, str]
|
|
40
|
-
if isinstance(token, Unset):
|
|
41
|
-
json_token = UNSET
|
|
42
|
-
else:
|
|
43
|
-
json_token = token
|
|
44
|
-
params["token"] = json_token
|
|
45
|
-
|
|
46
33
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
47
34
|
|
|
48
35
|
_kwargs: dict[str, Any] = {
|
|
@@ -51,7 +38,6 @@ def _get_kwargs(
|
|
|
51
38
|
"params": params,
|
|
52
39
|
}
|
|
53
40
|
|
|
54
|
-
_kwargs["headers"] = headers
|
|
55
41
|
return _kwargs
|
|
56
42
|
|
|
57
43
|
|
|
@@ -116,8 +102,6 @@ def sync_detailed(
|
|
|
116
102
|
client: AuthenticatedClient,
|
|
117
103
|
operation_type: str,
|
|
118
104
|
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
119
|
-
token: Union[None, Unset, str] = UNSET,
|
|
120
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
121
105
|
) -> Response[
|
|
122
106
|
Union[
|
|
123
107
|
CheckCreditBalanceResponseCheckcreditbalance, ErrorResponse, HTTPValidationError
|
|
@@ -142,8 +126,6 @@ def sync_detailed(
|
|
|
142
126
|
operation_type (str): Type of operation to check
|
|
143
127
|
base_cost (Union[None, Unset, float, str]): Custom base cost (uses default if not
|
|
144
128
|
provided)
|
|
145
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
146
|
-
authorization (Union[None, Unset, str]):
|
|
147
129
|
|
|
148
130
|
Raises:
|
|
149
131
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -157,8 +139,6 @@ def sync_detailed(
|
|
|
157
139
|
graph_id=graph_id,
|
|
158
140
|
operation_type=operation_type,
|
|
159
141
|
base_cost=base_cost,
|
|
160
|
-
token=token,
|
|
161
|
-
authorization=authorization,
|
|
162
142
|
)
|
|
163
143
|
|
|
164
144
|
response = client.get_httpx_client().request(
|
|
@@ -174,8 +154,6 @@ def sync(
|
|
|
174
154
|
client: AuthenticatedClient,
|
|
175
155
|
operation_type: str,
|
|
176
156
|
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
177
|
-
token: Union[None, Unset, str] = UNSET,
|
|
178
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
179
157
|
) -> Optional[
|
|
180
158
|
Union[
|
|
181
159
|
CheckCreditBalanceResponseCheckcreditbalance, ErrorResponse, HTTPValidationError
|
|
@@ -200,8 +178,6 @@ def sync(
|
|
|
200
178
|
operation_type (str): Type of operation to check
|
|
201
179
|
base_cost (Union[None, Unset, float, str]): Custom base cost (uses default if not
|
|
202
180
|
provided)
|
|
203
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
204
|
-
authorization (Union[None, Unset, str]):
|
|
205
181
|
|
|
206
182
|
Raises:
|
|
207
183
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -216,8 +192,6 @@ def sync(
|
|
|
216
192
|
client=client,
|
|
217
193
|
operation_type=operation_type,
|
|
218
194
|
base_cost=base_cost,
|
|
219
|
-
token=token,
|
|
220
|
-
authorization=authorization,
|
|
221
195
|
).parsed
|
|
222
196
|
|
|
223
197
|
|
|
@@ -227,8 +201,6 @@ async def asyncio_detailed(
|
|
|
227
201
|
client: AuthenticatedClient,
|
|
228
202
|
operation_type: str,
|
|
229
203
|
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
230
|
-
token: Union[None, Unset, str] = UNSET,
|
|
231
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
232
204
|
) -> Response[
|
|
233
205
|
Union[
|
|
234
206
|
CheckCreditBalanceResponseCheckcreditbalance, ErrorResponse, HTTPValidationError
|
|
@@ -253,8 +225,6 @@ async def asyncio_detailed(
|
|
|
253
225
|
operation_type (str): Type of operation to check
|
|
254
226
|
base_cost (Union[None, Unset, float, str]): Custom base cost (uses default if not
|
|
255
227
|
provided)
|
|
256
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
257
|
-
authorization (Union[None, Unset, str]):
|
|
258
228
|
|
|
259
229
|
Raises:
|
|
260
230
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -268,8 +238,6 @@ async def asyncio_detailed(
|
|
|
268
238
|
graph_id=graph_id,
|
|
269
239
|
operation_type=operation_type,
|
|
270
240
|
base_cost=base_cost,
|
|
271
|
-
token=token,
|
|
272
|
-
authorization=authorization,
|
|
273
241
|
)
|
|
274
242
|
|
|
275
243
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -283,8 +251,6 @@ async def asyncio(
|
|
|
283
251
|
client: AuthenticatedClient,
|
|
284
252
|
operation_type: str,
|
|
285
253
|
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
286
|
-
token: Union[None, Unset, str] = UNSET,
|
|
287
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
288
254
|
) -> Optional[
|
|
289
255
|
Union[
|
|
290
256
|
CheckCreditBalanceResponseCheckcreditbalance, ErrorResponse, HTTPValidationError
|
|
@@ -309,8 +275,6 @@ async def asyncio(
|
|
|
309
275
|
operation_type (str): Type of operation to check
|
|
310
276
|
base_cost (Union[None, Unset, float, str]): Custom base cost (uses default if not
|
|
311
277
|
provided)
|
|
312
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
313
|
-
authorization (Union[None, Unset, str]):
|
|
314
278
|
|
|
315
279
|
Raises:
|
|
316
280
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -326,7 +290,5 @@ async def asyncio(
|
|
|
326
290
|
client=client,
|
|
327
291
|
operation_type=operation_type,
|
|
328
292
|
base_cost=base_cost,
|
|
329
|
-
token=token,
|
|
330
|
-
authorization=authorization,
|
|
331
293
|
)
|
|
332
294
|
).parsed
|
|
@@ -8,37 +8,17 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.error_response import ErrorResponse
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
10
|
from ...models.storage_limit_response import StorageLimitResponse
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
graph_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}/credits/storage/limits",
|
|
38
|
-
"params": params,
|
|
39
20
|
}
|
|
40
21
|
|
|
41
|
-
_kwargs["headers"] = headers
|
|
42
22
|
return _kwargs
|
|
43
23
|
|
|
44
24
|
|
|
@@ -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[ErrorResponse, HTTPValidationError, StorageLimitResponse]]:
|
|
97
75
|
"""Check Storage Limits
|
|
98
76
|
|
|
@@ -109,8 +87,6 @@ def sync_detailed(
|
|
|
109
87
|
|
|
110
88
|
Args:
|
|
111
89
|
graph_id (str): Graph database identifier
|
|
112
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
113
|
-
authorization (Union[None, Unset, str]):
|
|
114
90
|
|
|
115
91
|
Raises:
|
|
116
92
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -122,8 +98,6 @@ def sync_detailed(
|
|
|
122
98
|
|
|
123
99
|
kwargs = _get_kwargs(
|
|
124
100
|
graph_id=graph_id,
|
|
125
|
-
token=token,
|
|
126
|
-
authorization=authorization,
|
|
127
101
|
)
|
|
128
102
|
|
|
129
103
|
response = client.get_httpx_client().request(
|
|
@@ -137,8 +111,6 @@ def sync(
|
|
|
137
111
|
graph_id: str,
|
|
138
112
|
*,
|
|
139
113
|
client: AuthenticatedClient,
|
|
140
|
-
token: Union[None, Unset, str] = UNSET,
|
|
141
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
142
114
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, StorageLimitResponse]]:
|
|
143
115
|
"""Check Storage Limits
|
|
144
116
|
|
|
@@ -155,8 +127,6 @@ def sync(
|
|
|
155
127
|
|
|
156
128
|
Args:
|
|
157
129
|
graph_id (str): Graph database identifier
|
|
158
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
159
|
-
authorization (Union[None, Unset, str]):
|
|
160
130
|
|
|
161
131
|
Raises:
|
|
162
132
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -169,8 +139,6 @@ def sync(
|
|
|
169
139
|
return sync_detailed(
|
|
170
140
|
graph_id=graph_id,
|
|
171
141
|
client=client,
|
|
172
|
-
token=token,
|
|
173
|
-
authorization=authorization,
|
|
174
142
|
).parsed
|
|
175
143
|
|
|
176
144
|
|
|
@@ -178,8 +146,6 @@ async def asyncio_detailed(
|
|
|
178
146
|
graph_id: str,
|
|
179
147
|
*,
|
|
180
148
|
client: AuthenticatedClient,
|
|
181
|
-
token: Union[None, Unset, str] = UNSET,
|
|
182
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
183
149
|
) -> Response[Union[ErrorResponse, HTTPValidationError, StorageLimitResponse]]:
|
|
184
150
|
"""Check Storage Limits
|
|
185
151
|
|
|
@@ -196,8 +162,6 @@ async def asyncio_detailed(
|
|
|
196
162
|
|
|
197
163
|
Args:
|
|
198
164
|
graph_id (str): Graph database identifier
|
|
199
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
200
|
-
authorization (Union[None, Unset, str]):
|
|
201
165
|
|
|
202
166
|
Raises:
|
|
203
167
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -209,8 +173,6 @@ async def asyncio_detailed(
|
|
|
209
173
|
|
|
210
174
|
kwargs = _get_kwargs(
|
|
211
175
|
graph_id=graph_id,
|
|
212
|
-
token=token,
|
|
213
|
-
authorization=authorization,
|
|
214
176
|
)
|
|
215
177
|
|
|
216
178
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -222,8 +184,6 @@ async def asyncio(
|
|
|
222
184
|
graph_id: str,
|
|
223
185
|
*,
|
|
224
186
|
client: AuthenticatedClient,
|
|
225
|
-
token: Union[None, Unset, str] = UNSET,
|
|
226
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
227
187
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, StorageLimitResponse]]:
|
|
228
188
|
"""Check Storage Limits
|
|
229
189
|
|
|
@@ -240,8 +200,6 @@ async def asyncio(
|
|
|
240
200
|
|
|
241
201
|
Args:
|
|
242
202
|
graph_id (str): Graph database identifier
|
|
243
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
244
|
-
authorization (Union[None, Unset, str]):
|
|
245
203
|
|
|
246
204
|
Raises:
|
|
247
205
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -255,7 +213,5 @@ async def asyncio(
|
|
|
255
213
|
await asyncio_detailed(
|
|
256
214
|
graph_id=graph_id,
|
|
257
215
|
client=client,
|
|
258
|
-
token=token,
|
|
259
|
-
authorization=authorization,
|
|
260
216
|
)
|
|
261
217
|
).parsed
|
|
@@ -8,37 +8,17 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.credit_summary_response import CreditSummaryResponse
|
|
9
9
|
from ...models.error_response import ErrorResponse
|
|
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(
|
|
15
15
|
graph_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}/credits/summary",
|
|
38
|
-
"params": params,
|
|
39
20
|
}
|
|
40
21
|
|
|
41
|
-
_kwargs["headers"] = headers
|
|
42
22
|
return _kwargs
|
|
43
23
|
|
|
44
24
|
|
|
@@ -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[CreditSummaryResponse, ErrorResponse, HTTPValidationError]]:
|
|
97
75
|
"""Get Credit Summary
|
|
98
76
|
|
|
@@ -108,8 +86,6 @@ def sync_detailed(
|
|
|
108
86
|
|
|
109
87
|
Args:
|
|
110
88
|
graph_id (str): Graph database identifier
|
|
111
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
112
|
-
authorization (Union[None, Unset, str]):
|
|
113
89
|
|
|
114
90
|
Raises:
|
|
115
91
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -121,8 +97,6 @@ def sync_detailed(
|
|
|
121
97
|
|
|
122
98
|
kwargs = _get_kwargs(
|
|
123
99
|
graph_id=graph_id,
|
|
124
|
-
token=token,
|
|
125
|
-
authorization=authorization,
|
|
126
100
|
)
|
|
127
101
|
|
|
128
102
|
response = client.get_httpx_client().request(
|
|
@@ -136,8 +110,6 @@ def sync(
|
|
|
136
110
|
graph_id: str,
|
|
137
111
|
*,
|
|
138
112
|
client: AuthenticatedClient,
|
|
139
|
-
token: Union[None, Unset, str] = UNSET,
|
|
140
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
141
113
|
) -> Optional[Union[CreditSummaryResponse, ErrorResponse, HTTPValidationError]]:
|
|
142
114
|
"""Get Credit Summary
|
|
143
115
|
|
|
@@ -153,8 +125,6 @@ def sync(
|
|
|
153
125
|
|
|
154
126
|
Args:
|
|
155
127
|
graph_id (str): Graph database identifier
|
|
156
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
157
|
-
authorization (Union[None, Unset, str]):
|
|
158
128
|
|
|
159
129
|
Raises:
|
|
160
130
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -167,8 +137,6 @@ def sync(
|
|
|
167
137
|
return sync_detailed(
|
|
168
138
|
graph_id=graph_id,
|
|
169
139
|
client=client,
|
|
170
|
-
token=token,
|
|
171
|
-
authorization=authorization,
|
|
172
140
|
).parsed
|
|
173
141
|
|
|
174
142
|
|
|
@@ -176,8 +144,6 @@ async def asyncio_detailed(
|
|
|
176
144
|
graph_id: str,
|
|
177
145
|
*,
|
|
178
146
|
client: AuthenticatedClient,
|
|
179
|
-
token: Union[None, Unset, str] = UNSET,
|
|
180
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
181
147
|
) -> Response[Union[CreditSummaryResponse, ErrorResponse, HTTPValidationError]]:
|
|
182
148
|
"""Get Credit Summary
|
|
183
149
|
|
|
@@ -193,8 +159,6 @@ async def asyncio_detailed(
|
|
|
193
159
|
|
|
194
160
|
Args:
|
|
195
161
|
graph_id (str): Graph database identifier
|
|
196
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
197
|
-
authorization (Union[None, Unset, str]):
|
|
198
162
|
|
|
199
163
|
Raises:
|
|
200
164
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -206,8 +170,6 @@ async def asyncio_detailed(
|
|
|
206
170
|
|
|
207
171
|
kwargs = _get_kwargs(
|
|
208
172
|
graph_id=graph_id,
|
|
209
|
-
token=token,
|
|
210
|
-
authorization=authorization,
|
|
211
173
|
)
|
|
212
174
|
|
|
213
175
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -219,8 +181,6 @@ async def asyncio(
|
|
|
219
181
|
graph_id: str,
|
|
220
182
|
*,
|
|
221
183
|
client: AuthenticatedClient,
|
|
222
|
-
token: Union[None, Unset, str] = UNSET,
|
|
223
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
224
184
|
) -> Optional[Union[CreditSummaryResponse, ErrorResponse, HTTPValidationError]]:
|
|
225
185
|
"""Get Credit Summary
|
|
226
186
|
|
|
@@ -236,8 +196,6 @@ async def asyncio(
|
|
|
236
196
|
|
|
237
197
|
Args:
|
|
238
198
|
graph_id (str): Graph database identifier
|
|
239
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
240
|
-
authorization (Union[None, Unset, str]):
|
|
241
199
|
|
|
242
200
|
Raises:
|
|
243
201
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -251,7 +209,5 @@ async def asyncio(
|
|
|
251
209
|
await asyncio_detailed(
|
|
252
210
|
graph_id=graph_id,
|
|
253
211
|
client=client,
|
|
254
|
-
token=token,
|
|
255
|
-
authorization=authorization,
|
|
256
212
|
)
|
|
257
213
|
).parsed
|
|
@@ -17,24 +17,11 @@ def _get_kwargs(
|
|
|
17
17
|
graph_id: str,
|
|
18
18
|
*,
|
|
19
19
|
days: Union[Unset, int] = 30,
|
|
20
|
-
token: Union[None, Unset, str] = UNSET,
|
|
21
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
22
20
|
) -> dict[str, Any]:
|
|
23
|
-
headers: dict[str, Any] = {}
|
|
24
|
-
if not isinstance(authorization, Unset):
|
|
25
|
-
headers["authorization"] = authorization
|
|
26
|
-
|
|
27
21
|
params: dict[str, Any] = {}
|
|
28
22
|
|
|
29
23
|
params["days"] = days
|
|
30
24
|
|
|
31
|
-
json_token: Union[None, Unset, str]
|
|
32
|
-
if isinstance(token, Unset):
|
|
33
|
-
json_token = UNSET
|
|
34
|
-
else:
|
|
35
|
-
json_token = token
|
|
36
|
-
params["token"] = json_token
|
|
37
|
-
|
|
38
25
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
39
26
|
|
|
40
27
|
_kwargs: dict[str, Any] = {
|
|
@@ -43,7 +30,6 @@ def _get_kwargs(
|
|
|
43
30
|
"params": params,
|
|
44
31
|
}
|
|
45
32
|
|
|
46
|
-
_kwargs["headers"] = headers
|
|
47
33
|
return _kwargs
|
|
48
34
|
|
|
49
35
|
|
|
@@ -96,8 +82,6 @@ def sync_detailed(
|
|
|
96
82
|
*,
|
|
97
83
|
client: AuthenticatedClient,
|
|
98
84
|
days: Union[Unset, int] = 30,
|
|
99
|
-
token: Union[None, Unset, str] = UNSET,
|
|
100
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
101
85
|
) -> Response[
|
|
102
86
|
Union[ErrorResponse, GetStorageUsageResponseGetstorageusage, HTTPValidationError]
|
|
103
87
|
]:
|
|
@@ -117,8 +101,6 @@ def sync_detailed(
|
|
|
117
101
|
Args:
|
|
118
102
|
graph_id (str): Graph database identifier
|
|
119
103
|
days (Union[Unset, int]): Number of days of history to return Default: 30.
|
|
120
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
121
|
-
authorization (Union[None, Unset, str]):
|
|
122
104
|
|
|
123
105
|
Raises:
|
|
124
106
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -131,8 +113,6 @@ def sync_detailed(
|
|
|
131
113
|
kwargs = _get_kwargs(
|
|
132
114
|
graph_id=graph_id,
|
|
133
115
|
days=days,
|
|
134
|
-
token=token,
|
|
135
|
-
authorization=authorization,
|
|
136
116
|
)
|
|
137
117
|
|
|
138
118
|
response = client.get_httpx_client().request(
|
|
@@ -147,8 +127,6 @@ def sync(
|
|
|
147
127
|
*,
|
|
148
128
|
client: AuthenticatedClient,
|
|
149
129
|
days: Union[Unset, int] = 30,
|
|
150
|
-
token: Union[None, Unset, str] = UNSET,
|
|
151
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
152
130
|
) -> Optional[
|
|
153
131
|
Union[ErrorResponse, GetStorageUsageResponseGetstorageusage, HTTPValidationError]
|
|
154
132
|
]:
|
|
@@ -168,8 +146,6 @@ def sync(
|
|
|
168
146
|
Args:
|
|
169
147
|
graph_id (str): Graph database identifier
|
|
170
148
|
days (Union[Unset, int]): Number of days of history to return Default: 30.
|
|
171
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
172
|
-
authorization (Union[None, Unset, str]):
|
|
173
149
|
|
|
174
150
|
Raises:
|
|
175
151
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -183,8 +159,6 @@ def sync(
|
|
|
183
159
|
graph_id=graph_id,
|
|
184
160
|
client=client,
|
|
185
161
|
days=days,
|
|
186
|
-
token=token,
|
|
187
|
-
authorization=authorization,
|
|
188
162
|
).parsed
|
|
189
163
|
|
|
190
164
|
|
|
@@ -193,8 +167,6 @@ async def asyncio_detailed(
|
|
|
193
167
|
*,
|
|
194
168
|
client: AuthenticatedClient,
|
|
195
169
|
days: Union[Unset, int] = 30,
|
|
196
|
-
token: Union[None, Unset, str] = UNSET,
|
|
197
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
198
170
|
) -> Response[
|
|
199
171
|
Union[ErrorResponse, GetStorageUsageResponseGetstorageusage, HTTPValidationError]
|
|
200
172
|
]:
|
|
@@ -214,8 +186,6 @@ async def asyncio_detailed(
|
|
|
214
186
|
Args:
|
|
215
187
|
graph_id (str): Graph database identifier
|
|
216
188
|
days (Union[Unset, int]): Number of days of history to return Default: 30.
|
|
217
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
218
|
-
authorization (Union[None, Unset, str]):
|
|
219
189
|
|
|
220
190
|
Raises:
|
|
221
191
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -228,8 +198,6 @@ async def asyncio_detailed(
|
|
|
228
198
|
kwargs = _get_kwargs(
|
|
229
199
|
graph_id=graph_id,
|
|
230
200
|
days=days,
|
|
231
|
-
token=token,
|
|
232
|
-
authorization=authorization,
|
|
233
201
|
)
|
|
234
202
|
|
|
235
203
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -242,8 +210,6 @@ async def asyncio(
|
|
|
242
210
|
*,
|
|
243
211
|
client: AuthenticatedClient,
|
|
244
212
|
days: Union[Unset, int] = 30,
|
|
245
|
-
token: Union[None, Unset, str] = UNSET,
|
|
246
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
247
213
|
) -> Optional[
|
|
248
214
|
Union[ErrorResponse, GetStorageUsageResponseGetstorageusage, HTTPValidationError]
|
|
249
215
|
]:
|
|
@@ -263,8 +229,6 @@ async def asyncio(
|
|
|
263
229
|
Args:
|
|
264
230
|
graph_id (str): Graph database identifier
|
|
265
231
|
days (Union[Unset, int]): Number of days of history to return Default: 30.
|
|
266
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
267
|
-
authorization (Union[None, Unset, str]):
|
|
268
232
|
|
|
269
233
|
Raises:
|
|
270
234
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -279,7 +243,5 @@ async def asyncio(
|
|
|
279
243
|
graph_id=graph_id,
|
|
280
244
|
client=client,
|
|
281
245
|
days=days,
|
|
282
|
-
token=token,
|
|
283
|
-
authorization=authorization,
|
|
284
246
|
)
|
|
285
247
|
).parsed
|