robosystems-client 0.1.17__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 +25 -0
- robosystems_client/api/agent/batch_process_queries.py +25 -0
- robosystems_client/api/agent/execute_specific_agent.py +25 -0
- robosystems_client/api/agent/get_agent_metadata.py +25 -0
- robosystems_client/api/agent/list_agents.py +20 -0
- robosystems_client/api/agent/recommend_agent.py +25 -0
- robosystems_client/api/backup/create_backup.py +25 -0
- robosystems_client/api/backup/export_backup.py +25 -0
- robosystems_client/api/backup/get_backup_download_url.py +20 -0
- robosystems_client/api/backup/get_backup_stats.py +25 -0
- robosystems_client/api/backup/list_backups.py +20 -0
- robosystems_client/api/backup/restore_backup.py +25 -0
- robosystems_client/api/connections/create_connection.py +25 -0
- robosystems_client/api/connections/create_link_token.py +25 -0
- robosystems_client/api/connections/delete_connection.py +25 -0
- robosystems_client/api/connections/exchange_link_token.py +25 -0
- robosystems_client/api/connections/get_connection.py +25 -0
- robosystems_client/api/connections/get_connection_options.py +25 -0
- robosystems_client/api/connections/init_o_auth.py +25 -0
- robosystems_client/api/connections/list_connections.py +20 -0
- robosystems_client/api/connections/oauth_callback.py +25 -0
- robosystems_client/api/connections/sync_connection.py +25 -0
- robosystems_client/api/copy/copy_data_to_graph.py +25 -0
- robosystems_client/api/create/create_graph.py +25 -0
- robosystems_client/api/graph_analytics/get_graph_metrics.py +25 -0
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -0
- robosystems_client/api/graph_billing/get_current_graph_bill.py +25 -0
- robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -0
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +25 -0
- robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -0
- robosystems_client/api/graph_credits/check_credit_balance.py +20 -0
- robosystems_client/api/graph_credits/check_storage_limits.py +25 -0
- robosystems_client/api/graph_credits/get_credit_summary.py +25 -0
- robosystems_client/api/graph_credits/get_storage_usage.py +20 -0
- robosystems_client/api/graph_credits/list_credit_transactions.py +20 -0
- robosystems_client/api/graph_health/get_database_health.py +25 -0
- robosystems_client/api/graph_info/get_database_info.py +25 -0
- robosystems_client/api/graph_limits/get_graph_limits.py +25 -0
- robosystems_client/api/mcp/call_mcp_tool.py +20 -0
- robosystems_client/api/mcp/list_mcp_tools.py +25 -0
- robosystems_client/api/operations/cancel_operation.py +25 -0
- robosystems_client/api/operations/get_operation_status.py +25 -0
- robosystems_client/api/operations/stream_operation_events.py +20 -0
- robosystems_client/api/query/execute_cypher_query.py +20 -0
- robosystems_client/api/schema/export_graph_schema.py +20 -0
- robosystems_client/api/schema/get_graph_schema_info.py +25 -0
- robosystems_client/api/schema/list_schema_extensions.py +25 -0
- robosystems_client/api/schema/validate_schema.py +25 -0
- robosystems_client/api/subgraphs/create_subgraph.py +25 -0
- robosystems_client/api/subgraphs/delete_subgraph.py +25 -0
- robosystems_client/api/subgraphs/get_subgraph_info.py +25 -0
- robosystems_client/api/subgraphs/get_subgraph_quota.py +25 -0
- robosystems_client/api/subgraphs/list_subgraphs.py +25 -0
- robosystems_client/api/user/create_user_api_key.py +25 -0
- robosystems_client/api/user/get_all_credit_summaries.py +25 -0
- robosystems_client/api/user/get_current_user.py +25 -0
- robosystems_client/api/user/get_user_graphs.py +25 -0
- robosystems_client/api/user/list_user_api_keys.py +25 -0
- robosystems_client/api/user/revoke_user_api_key.py +25 -0
- robosystems_client/api/user/select_user_graph.py +25 -0
- robosystems_client/api/user/update_user.py +25 -0
- robosystems_client/api/user/update_user_api_key.py +25 -0
- robosystems_client/api/user/update_user_password.py +25 -0
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -0
- robosystems_client/api/user_analytics/get_user_usage_overview.py +25 -0
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +25 -0
- robosystems_client/api/user_limits/get_shared_repository_limits.py +25 -0
- robosystems_client/api/user_limits/get_user_limits.py +25 -0
- robosystems_client/api/user_limits/get_user_usage.py +25 -0
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +25 -0
- robosystems_client/api/user_subscriptions/get_repository_credits.py +25 -0
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +25 -0
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -0
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +25 -0
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +25 -0
- 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-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +92 -88
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/WHEEL +0 -0
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/licenses/LICENSE +0 -0
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: BackupRestoreRequest,
|
|
18
|
+
token: Union[None, Unset, str] = UNSET,
|
|
18
19
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
20
|
) -> dict[str, Any]:
|
|
20
21
|
headers: dict[str, Any] = {}
|
|
21
22
|
if not isinstance(authorization, Unset):
|
|
22
23
|
headers["authorization"] = authorization
|
|
23
24
|
|
|
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}
|
|
35
|
+
|
|
24
36
|
_kwargs: dict[str, Any] = {
|
|
25
37
|
"method": "post",
|
|
26
38
|
"url": f"/v1/{graph_id}/backups/restore",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -82,6 +95,7 @@ def sync_detailed(
|
|
|
82
95
|
*,
|
|
83
96
|
client: AuthenticatedClient,
|
|
84
97
|
body: BackupRestoreRequest,
|
|
98
|
+
token: Union[None, Unset, str] = UNSET,
|
|
85
99
|
authorization: Union[None, Unset, str] = UNSET,
|
|
86
100
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
87
101
|
"""Restore Encrypted Backup
|
|
@@ -131,6 +145,7 @@ def sync_detailed(
|
|
|
131
145
|
|
|
132
146
|
Args:
|
|
133
147
|
graph_id (str): Graph database identifier
|
|
148
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
134
149
|
authorization (Union[None, Unset, str]):
|
|
135
150
|
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
136
151
|
|
|
@@ -145,6 +160,7 @@ def sync_detailed(
|
|
|
145
160
|
kwargs = _get_kwargs(
|
|
146
161
|
graph_id=graph_id,
|
|
147
162
|
body=body,
|
|
163
|
+
token=token,
|
|
148
164
|
authorization=authorization,
|
|
149
165
|
)
|
|
150
166
|
|
|
@@ -160,6 +176,7 @@ def sync(
|
|
|
160
176
|
*,
|
|
161
177
|
client: AuthenticatedClient,
|
|
162
178
|
body: BackupRestoreRequest,
|
|
179
|
+
token: Union[None, Unset, str] = UNSET,
|
|
163
180
|
authorization: Union[None, Unset, str] = UNSET,
|
|
164
181
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
165
182
|
"""Restore Encrypted Backup
|
|
@@ -209,6 +226,7 @@ def sync(
|
|
|
209
226
|
|
|
210
227
|
Args:
|
|
211
228
|
graph_id (str): Graph database identifier
|
|
229
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
212
230
|
authorization (Union[None, Unset, str]):
|
|
213
231
|
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
214
232
|
|
|
@@ -224,6 +242,7 @@ def sync(
|
|
|
224
242
|
graph_id=graph_id,
|
|
225
243
|
client=client,
|
|
226
244
|
body=body,
|
|
245
|
+
token=token,
|
|
227
246
|
authorization=authorization,
|
|
228
247
|
).parsed
|
|
229
248
|
|
|
@@ -233,6 +252,7 @@ async def asyncio_detailed(
|
|
|
233
252
|
*,
|
|
234
253
|
client: AuthenticatedClient,
|
|
235
254
|
body: BackupRestoreRequest,
|
|
255
|
+
token: Union[None, Unset, str] = UNSET,
|
|
236
256
|
authorization: Union[None, Unset, str] = UNSET,
|
|
237
257
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
238
258
|
"""Restore Encrypted Backup
|
|
@@ -282,6 +302,7 @@ async def asyncio_detailed(
|
|
|
282
302
|
|
|
283
303
|
Args:
|
|
284
304
|
graph_id (str): Graph database identifier
|
|
305
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
285
306
|
authorization (Union[None, Unset, str]):
|
|
286
307
|
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
287
308
|
|
|
@@ -296,6 +317,7 @@ async def asyncio_detailed(
|
|
|
296
317
|
kwargs = _get_kwargs(
|
|
297
318
|
graph_id=graph_id,
|
|
298
319
|
body=body,
|
|
320
|
+
token=token,
|
|
299
321
|
authorization=authorization,
|
|
300
322
|
)
|
|
301
323
|
|
|
@@ -309,6 +331,7 @@ async def asyncio(
|
|
|
309
331
|
*,
|
|
310
332
|
client: AuthenticatedClient,
|
|
311
333
|
body: BackupRestoreRequest,
|
|
334
|
+
token: Union[None, Unset, str] = UNSET,
|
|
312
335
|
authorization: Union[None, Unset, str] = UNSET,
|
|
313
336
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
314
337
|
"""Restore Encrypted Backup
|
|
@@ -358,6 +381,7 @@ async def asyncio(
|
|
|
358
381
|
|
|
359
382
|
Args:
|
|
360
383
|
graph_id (str): Graph database identifier
|
|
384
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
361
385
|
authorization (Union[None, Unset, str]):
|
|
362
386
|
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
363
387
|
|
|
@@ -374,6 +398,7 @@ async def asyncio(
|
|
|
374
398
|
graph_id=graph_id,
|
|
375
399
|
client=client,
|
|
376
400
|
body=body,
|
|
401
|
+
token=token,
|
|
377
402
|
authorization=authorization,
|
|
378
403
|
)
|
|
379
404
|
).parsed
|
|
@@ -16,15 +16,28 @@ def _get_kwargs(
|
|
|
16
16
|
graph_id: str,
|
|
17
17
|
*,
|
|
18
18
|
body: CreateConnectionRequest,
|
|
19
|
+
token: Union[None, Unset, str] = UNSET,
|
|
19
20
|
authorization: Union[None, Unset, str] = UNSET,
|
|
20
21
|
) -> dict[str, Any]:
|
|
21
22
|
headers: dict[str, Any] = {}
|
|
22
23
|
if not isinstance(authorization, Unset):
|
|
23
24
|
headers["authorization"] = authorization
|
|
24
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
|
+
|
|
25
37
|
_kwargs: dict[str, Any] = {
|
|
26
38
|
"method": "post",
|
|
27
39
|
"url": f"/v1/{graph_id}/connections",
|
|
40
|
+
"params": params,
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
_kwargs["json"] = body.to_dict()
|
|
@@ -84,6 +97,7 @@ def sync_detailed(
|
|
|
84
97
|
*,
|
|
85
98
|
client: AuthenticatedClient,
|
|
86
99
|
body: CreateConnectionRequest,
|
|
100
|
+
token: Union[None, Unset, str] = UNSET,
|
|
87
101
|
authorization: Union[None, Unset, str] = UNSET,
|
|
88
102
|
) -> Response[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
89
103
|
"""Create Connection
|
|
@@ -112,6 +126,7 @@ def sync_detailed(
|
|
|
112
126
|
|
|
113
127
|
Args:
|
|
114
128
|
graph_id (str): Graph database identifier
|
|
129
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
115
130
|
authorization (Union[None, Unset, str]):
|
|
116
131
|
body (CreateConnectionRequest): Request to create a new connection.
|
|
117
132
|
|
|
@@ -126,6 +141,7 @@ def sync_detailed(
|
|
|
126
141
|
kwargs = _get_kwargs(
|
|
127
142
|
graph_id=graph_id,
|
|
128
143
|
body=body,
|
|
144
|
+
token=token,
|
|
129
145
|
authorization=authorization,
|
|
130
146
|
)
|
|
131
147
|
|
|
@@ -141,6 +157,7 @@ def sync(
|
|
|
141
157
|
*,
|
|
142
158
|
client: AuthenticatedClient,
|
|
143
159
|
body: CreateConnectionRequest,
|
|
160
|
+
token: Union[None, Unset, str] = UNSET,
|
|
144
161
|
authorization: Union[None, Unset, str] = UNSET,
|
|
145
162
|
) -> Optional[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
146
163
|
"""Create Connection
|
|
@@ -169,6 +186,7 @@ def sync(
|
|
|
169
186
|
|
|
170
187
|
Args:
|
|
171
188
|
graph_id (str): Graph database identifier
|
|
189
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
172
190
|
authorization (Union[None, Unset, str]):
|
|
173
191
|
body (CreateConnectionRequest): Request to create a new connection.
|
|
174
192
|
|
|
@@ -184,6 +202,7 @@ def sync(
|
|
|
184
202
|
graph_id=graph_id,
|
|
185
203
|
client=client,
|
|
186
204
|
body=body,
|
|
205
|
+
token=token,
|
|
187
206
|
authorization=authorization,
|
|
188
207
|
).parsed
|
|
189
208
|
|
|
@@ -193,6 +212,7 @@ async def asyncio_detailed(
|
|
|
193
212
|
*,
|
|
194
213
|
client: AuthenticatedClient,
|
|
195
214
|
body: CreateConnectionRequest,
|
|
215
|
+
token: Union[None, Unset, str] = UNSET,
|
|
196
216
|
authorization: Union[None, Unset, str] = UNSET,
|
|
197
217
|
) -> Response[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
198
218
|
"""Create Connection
|
|
@@ -221,6 +241,7 @@ async def asyncio_detailed(
|
|
|
221
241
|
|
|
222
242
|
Args:
|
|
223
243
|
graph_id (str): Graph database identifier
|
|
244
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
224
245
|
authorization (Union[None, Unset, str]):
|
|
225
246
|
body (CreateConnectionRequest): Request to create a new connection.
|
|
226
247
|
|
|
@@ -235,6 +256,7 @@ async def asyncio_detailed(
|
|
|
235
256
|
kwargs = _get_kwargs(
|
|
236
257
|
graph_id=graph_id,
|
|
237
258
|
body=body,
|
|
259
|
+
token=token,
|
|
238
260
|
authorization=authorization,
|
|
239
261
|
)
|
|
240
262
|
|
|
@@ -248,6 +270,7 @@ async def asyncio(
|
|
|
248
270
|
*,
|
|
249
271
|
client: AuthenticatedClient,
|
|
250
272
|
body: CreateConnectionRequest,
|
|
273
|
+
token: Union[None, Unset, str] = UNSET,
|
|
251
274
|
authorization: Union[None, Unset, str] = UNSET,
|
|
252
275
|
) -> Optional[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
253
276
|
"""Create Connection
|
|
@@ -276,6 +299,7 @@ async def asyncio(
|
|
|
276
299
|
|
|
277
300
|
Args:
|
|
278
301
|
graph_id (str): Graph database identifier
|
|
302
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
279
303
|
authorization (Union[None, Unset, str]):
|
|
280
304
|
body (CreateConnectionRequest): Request to create a new connection.
|
|
281
305
|
|
|
@@ -292,6 +316,7 @@ async def asyncio(
|
|
|
292
316
|
graph_id=graph_id,
|
|
293
317
|
client=client,
|
|
294
318
|
body=body,
|
|
319
|
+
token=token,
|
|
295
320
|
authorization=authorization,
|
|
296
321
|
)
|
|
297
322
|
).parsed
|
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: LinkTokenRequest,
|
|
18
|
+
token: Union[None, Unset, str] = UNSET,
|
|
18
19
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
20
|
) -> dict[str, Any]:
|
|
20
21
|
headers: dict[str, Any] = {}
|
|
21
22
|
if not isinstance(authorization, Unset):
|
|
22
23
|
headers["authorization"] = authorization
|
|
23
24
|
|
|
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}
|
|
35
|
+
|
|
24
36
|
_kwargs: dict[str, Any] = {
|
|
25
37
|
"method": "post",
|
|
26
38
|
"url": f"/v1/{graph_id}/connections/link/token",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -78,6 +91,7 @@ def sync_detailed(
|
|
|
78
91
|
*,
|
|
79
92
|
client: AuthenticatedClient,
|
|
80
93
|
body: LinkTokenRequest,
|
|
94
|
+
token: Union[None, Unset, str] = UNSET,
|
|
81
95
|
authorization: Union[None, Unset, str] = UNSET,
|
|
82
96
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
83
97
|
"""Create Link Token
|
|
@@ -99,6 +113,7 @@ def sync_detailed(
|
|
|
99
113
|
|
|
100
114
|
Args:
|
|
101
115
|
graph_id (str): Graph database identifier
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
102
117
|
authorization (Union[None, Unset, str]):
|
|
103
118
|
body (LinkTokenRequest): Request to create a link token for embedded authentication.
|
|
104
119
|
|
|
@@ -113,6 +128,7 @@ def sync_detailed(
|
|
|
113
128
|
kwargs = _get_kwargs(
|
|
114
129
|
graph_id=graph_id,
|
|
115
130
|
body=body,
|
|
131
|
+
token=token,
|
|
116
132
|
authorization=authorization,
|
|
117
133
|
)
|
|
118
134
|
|
|
@@ -128,6 +144,7 @@ def sync(
|
|
|
128
144
|
*,
|
|
129
145
|
client: AuthenticatedClient,
|
|
130
146
|
body: LinkTokenRequest,
|
|
147
|
+
token: Union[None, Unset, str] = UNSET,
|
|
131
148
|
authorization: Union[None, Unset, str] = UNSET,
|
|
132
149
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
133
150
|
"""Create Link Token
|
|
@@ -149,6 +166,7 @@ def sync(
|
|
|
149
166
|
|
|
150
167
|
Args:
|
|
151
168
|
graph_id (str): Graph database identifier
|
|
169
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
152
170
|
authorization (Union[None, Unset, str]):
|
|
153
171
|
body (LinkTokenRequest): Request to create a link token for embedded authentication.
|
|
154
172
|
|
|
@@ -164,6 +182,7 @@ def sync(
|
|
|
164
182
|
graph_id=graph_id,
|
|
165
183
|
client=client,
|
|
166
184
|
body=body,
|
|
185
|
+
token=token,
|
|
167
186
|
authorization=authorization,
|
|
168
187
|
).parsed
|
|
169
188
|
|
|
@@ -173,6 +192,7 @@ async def asyncio_detailed(
|
|
|
173
192
|
*,
|
|
174
193
|
client: AuthenticatedClient,
|
|
175
194
|
body: LinkTokenRequest,
|
|
195
|
+
token: Union[None, Unset, str] = UNSET,
|
|
176
196
|
authorization: Union[None, Unset, str] = UNSET,
|
|
177
197
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
178
198
|
"""Create Link Token
|
|
@@ -194,6 +214,7 @@ async def asyncio_detailed(
|
|
|
194
214
|
|
|
195
215
|
Args:
|
|
196
216
|
graph_id (str): Graph database identifier
|
|
217
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
197
218
|
authorization (Union[None, Unset, str]):
|
|
198
219
|
body (LinkTokenRequest): Request to create a link token for embedded authentication.
|
|
199
220
|
|
|
@@ -208,6 +229,7 @@ async def asyncio_detailed(
|
|
|
208
229
|
kwargs = _get_kwargs(
|
|
209
230
|
graph_id=graph_id,
|
|
210
231
|
body=body,
|
|
232
|
+
token=token,
|
|
211
233
|
authorization=authorization,
|
|
212
234
|
)
|
|
213
235
|
|
|
@@ -221,6 +243,7 @@ async def asyncio(
|
|
|
221
243
|
*,
|
|
222
244
|
client: AuthenticatedClient,
|
|
223
245
|
body: LinkTokenRequest,
|
|
246
|
+
token: Union[None, Unset, str] = UNSET,
|
|
224
247
|
authorization: Union[None, Unset, str] = UNSET,
|
|
225
248
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
226
249
|
"""Create Link Token
|
|
@@ -242,6 +265,7 @@ async def asyncio(
|
|
|
242
265
|
|
|
243
266
|
Args:
|
|
244
267
|
graph_id (str): Graph database identifier
|
|
268
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
245
269
|
authorization (Union[None, Unset, str]):
|
|
246
270
|
body (LinkTokenRequest): Request to create a link token for embedded authentication.
|
|
247
271
|
|
|
@@ -258,6 +282,7 @@ async def asyncio(
|
|
|
258
282
|
graph_id=graph_id,
|
|
259
283
|
client=client,
|
|
260
284
|
body=body,
|
|
285
|
+
token=token,
|
|
261
286
|
authorization=authorization,
|
|
262
287
|
)
|
|
263
288
|
).parsed
|
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
connection_id: str,
|
|
17
17
|
*,
|
|
18
|
+
token: Union[None, Unset, str] = UNSET,
|
|
18
19
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
20
|
) -> dict[str, Any]:
|
|
20
21
|
headers: dict[str, Any] = {}
|
|
21
22
|
if not isinstance(authorization, Unset):
|
|
22
23
|
headers["authorization"] = authorization
|
|
23
24
|
|
|
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}
|
|
35
|
+
|
|
24
36
|
_kwargs: dict[str, Any] = {
|
|
25
37
|
"method": "delete",
|
|
26
38
|
"url": f"/v1/{graph_id}/connections/{connection_id}",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["headers"] = headers
|
|
@@ -75,6 +88,7 @@ def sync_detailed(
|
|
|
75
88
|
connection_id: str,
|
|
76
89
|
*,
|
|
77
90
|
client: AuthenticatedClient,
|
|
91
|
+
token: Union[None, Unset, str] = UNSET,
|
|
78
92
|
authorization: Union[None, Unset, str] = UNSET,
|
|
79
93
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
80
94
|
"""Delete Connection
|
|
@@ -95,6 +109,7 @@ def sync_detailed(
|
|
|
95
109
|
Args:
|
|
96
110
|
graph_id (str): Graph database identifier
|
|
97
111
|
connection_id (str): Connection identifier
|
|
112
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
98
113
|
authorization (Union[None, Unset, str]):
|
|
99
114
|
|
|
100
115
|
Raises:
|
|
@@ -108,6 +123,7 @@ def sync_detailed(
|
|
|
108
123
|
kwargs = _get_kwargs(
|
|
109
124
|
graph_id=graph_id,
|
|
110
125
|
connection_id=connection_id,
|
|
126
|
+
token=token,
|
|
111
127
|
authorization=authorization,
|
|
112
128
|
)
|
|
113
129
|
|
|
@@ -123,6 +139,7 @@ def sync(
|
|
|
123
139
|
connection_id: str,
|
|
124
140
|
*,
|
|
125
141
|
client: AuthenticatedClient,
|
|
142
|
+
token: Union[None, Unset, str] = UNSET,
|
|
126
143
|
authorization: Union[None, Unset, str] = UNSET,
|
|
127
144
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
128
145
|
"""Delete Connection
|
|
@@ -143,6 +160,7 @@ def sync(
|
|
|
143
160
|
Args:
|
|
144
161
|
graph_id (str): Graph database identifier
|
|
145
162
|
connection_id (str): Connection identifier
|
|
163
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
146
164
|
authorization (Union[None, Unset, str]):
|
|
147
165
|
|
|
148
166
|
Raises:
|
|
@@ -157,6 +175,7 @@ def sync(
|
|
|
157
175
|
graph_id=graph_id,
|
|
158
176
|
connection_id=connection_id,
|
|
159
177
|
client=client,
|
|
178
|
+
token=token,
|
|
160
179
|
authorization=authorization,
|
|
161
180
|
).parsed
|
|
162
181
|
|
|
@@ -166,6 +185,7 @@ async def asyncio_detailed(
|
|
|
166
185
|
connection_id: str,
|
|
167
186
|
*,
|
|
168
187
|
client: AuthenticatedClient,
|
|
188
|
+
token: Union[None, Unset, str] = UNSET,
|
|
169
189
|
authorization: Union[None, Unset, str] = UNSET,
|
|
170
190
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
171
191
|
"""Delete Connection
|
|
@@ -186,6 +206,7 @@ async def asyncio_detailed(
|
|
|
186
206
|
Args:
|
|
187
207
|
graph_id (str): Graph database identifier
|
|
188
208
|
connection_id (str): Connection identifier
|
|
209
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
189
210
|
authorization (Union[None, Unset, str]):
|
|
190
211
|
|
|
191
212
|
Raises:
|
|
@@ -199,6 +220,7 @@ async def asyncio_detailed(
|
|
|
199
220
|
kwargs = _get_kwargs(
|
|
200
221
|
graph_id=graph_id,
|
|
201
222
|
connection_id=connection_id,
|
|
223
|
+
token=token,
|
|
202
224
|
authorization=authorization,
|
|
203
225
|
)
|
|
204
226
|
|
|
@@ -212,6 +234,7 @@ async def asyncio(
|
|
|
212
234
|
connection_id: str,
|
|
213
235
|
*,
|
|
214
236
|
client: AuthenticatedClient,
|
|
237
|
+
token: Union[None, Unset, str] = UNSET,
|
|
215
238
|
authorization: Union[None, Unset, str] = UNSET,
|
|
216
239
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
217
240
|
"""Delete Connection
|
|
@@ -232,6 +255,7 @@ async def asyncio(
|
|
|
232
255
|
Args:
|
|
233
256
|
graph_id (str): Graph database identifier
|
|
234
257
|
connection_id (str): Connection identifier
|
|
258
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
235
259
|
authorization (Union[None, Unset, str]):
|
|
236
260
|
|
|
237
261
|
Raises:
|
|
@@ -247,6 +271,7 @@ async def asyncio(
|
|
|
247
271
|
graph_id=graph_id,
|
|
248
272
|
connection_id=connection_id,
|
|
249
273
|
client=client,
|
|
274
|
+
token=token,
|
|
250
275
|
authorization=authorization,
|
|
251
276
|
)
|
|
252
277
|
).parsed
|
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: ExchangeTokenRequest,
|
|
18
|
+
token: Union[None, Unset, str] = UNSET,
|
|
18
19
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
20
|
) -> dict[str, Any]:
|
|
20
21
|
headers: dict[str, Any] = {}
|
|
21
22
|
if not isinstance(authorization, Unset):
|
|
22
23
|
headers["authorization"] = authorization
|
|
23
24
|
|
|
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}
|
|
35
|
+
|
|
24
36
|
_kwargs: dict[str, Any] = {
|
|
25
37
|
"method": "post",
|
|
26
38
|
"url": f"/v1/{graph_id}/connections/link/exchange",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -78,6 +91,7 @@ def sync_detailed(
|
|
|
78
91
|
*,
|
|
79
92
|
client: AuthenticatedClient,
|
|
80
93
|
body: ExchangeTokenRequest,
|
|
94
|
+
token: Union[None, Unset, str] = UNSET,
|
|
81
95
|
authorization: Union[None, Unset, str] = UNSET,
|
|
82
96
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
83
97
|
"""Exchange Link Token
|
|
@@ -104,6 +118,7 @@ def sync_detailed(
|
|
|
104
118
|
|
|
105
119
|
Args:
|
|
106
120
|
graph_id (str): Graph database identifier
|
|
121
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
107
122
|
authorization (Union[None, Unset, str]):
|
|
108
123
|
body (ExchangeTokenRequest): Exchange temporary token for permanent credentials.
|
|
109
124
|
|
|
@@ -118,6 +133,7 @@ def sync_detailed(
|
|
|
118
133
|
kwargs = _get_kwargs(
|
|
119
134
|
graph_id=graph_id,
|
|
120
135
|
body=body,
|
|
136
|
+
token=token,
|
|
121
137
|
authorization=authorization,
|
|
122
138
|
)
|
|
123
139
|
|
|
@@ -133,6 +149,7 @@ def sync(
|
|
|
133
149
|
*,
|
|
134
150
|
client: AuthenticatedClient,
|
|
135
151
|
body: ExchangeTokenRequest,
|
|
152
|
+
token: Union[None, Unset, str] = UNSET,
|
|
136
153
|
authorization: Union[None, Unset, str] = UNSET,
|
|
137
154
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
138
155
|
"""Exchange Link Token
|
|
@@ -159,6 +176,7 @@ def sync(
|
|
|
159
176
|
|
|
160
177
|
Args:
|
|
161
178
|
graph_id (str): Graph database identifier
|
|
179
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
162
180
|
authorization (Union[None, Unset, str]):
|
|
163
181
|
body (ExchangeTokenRequest): Exchange temporary token for permanent credentials.
|
|
164
182
|
|
|
@@ -174,6 +192,7 @@ def sync(
|
|
|
174
192
|
graph_id=graph_id,
|
|
175
193
|
client=client,
|
|
176
194
|
body=body,
|
|
195
|
+
token=token,
|
|
177
196
|
authorization=authorization,
|
|
178
197
|
).parsed
|
|
179
198
|
|
|
@@ -183,6 +202,7 @@ async def asyncio_detailed(
|
|
|
183
202
|
*,
|
|
184
203
|
client: AuthenticatedClient,
|
|
185
204
|
body: ExchangeTokenRequest,
|
|
205
|
+
token: Union[None, Unset, str] = UNSET,
|
|
186
206
|
authorization: Union[None, Unset, str] = UNSET,
|
|
187
207
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
188
208
|
"""Exchange Link Token
|
|
@@ -209,6 +229,7 @@ async def asyncio_detailed(
|
|
|
209
229
|
|
|
210
230
|
Args:
|
|
211
231
|
graph_id (str): Graph database identifier
|
|
232
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
212
233
|
authorization (Union[None, Unset, str]):
|
|
213
234
|
body (ExchangeTokenRequest): Exchange temporary token for permanent credentials.
|
|
214
235
|
|
|
@@ -223,6 +244,7 @@ async def asyncio_detailed(
|
|
|
223
244
|
kwargs = _get_kwargs(
|
|
224
245
|
graph_id=graph_id,
|
|
225
246
|
body=body,
|
|
247
|
+
token=token,
|
|
226
248
|
authorization=authorization,
|
|
227
249
|
)
|
|
228
250
|
|
|
@@ -236,6 +258,7 @@ async def asyncio(
|
|
|
236
258
|
*,
|
|
237
259
|
client: AuthenticatedClient,
|
|
238
260
|
body: ExchangeTokenRequest,
|
|
261
|
+
token: Union[None, Unset, str] = UNSET,
|
|
239
262
|
authorization: Union[None, Unset, str] = UNSET,
|
|
240
263
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
241
264
|
"""Exchange Link Token
|
|
@@ -262,6 +285,7 @@ async def asyncio(
|
|
|
262
285
|
|
|
263
286
|
Args:
|
|
264
287
|
graph_id (str): Graph database identifier
|
|
288
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
265
289
|
authorization (Union[None, Unset, str]):
|
|
266
290
|
body (ExchangeTokenRequest): Exchange temporary token for permanent credentials.
|
|
267
291
|
|
|
@@ -278,6 +302,7 @@ async def asyncio(
|
|
|
278
302
|
graph_id=graph_id,
|
|
279
303
|
client=client,
|
|
280
304
|
body=body,
|
|
305
|
+
token=token,
|
|
281
306
|
authorization=authorization,
|
|
282
307
|
)
|
|
283
308
|
).parsed
|