robosystems-client 0.1.17__py3-none-any.whl → 0.1.19__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 +26 -1
- robosystems_client/api/agent/batch_process_queries.py +26 -1
- robosystems_client/api/agent/execute_specific_agent.py +26 -1
- robosystems_client/api/agent/get_agent_metadata.py +26 -1
- robosystems_client/api/agent/list_agents.py +21 -1
- robosystems_client/api/agent/recommend_agent.py +26 -1
- robosystems_client/api/backup/create_backup.py +26 -1
- robosystems_client/api/backup/export_backup.py +26 -1
- robosystems_client/api/backup/get_backup_download_url.py +21 -1
- robosystems_client/api/backup/get_backup_stats.py +26 -1
- robosystems_client/api/backup/list_backups.py +21 -1
- robosystems_client/api/backup/restore_backup.py +26 -1
- robosystems_client/api/connections/create_connection.py +26 -1
- robosystems_client/api/connections/create_link_token.py +26 -1
- robosystems_client/api/connections/delete_connection.py +26 -1
- robosystems_client/api/connections/exchange_link_token.py +26 -1
- robosystems_client/api/connections/get_connection.py +26 -1
- robosystems_client/api/connections/get_connection_options.py +26 -1
- robosystems_client/api/connections/init_o_auth.py +26 -1
- robosystems_client/api/connections/list_connections.py +21 -1
- robosystems_client/api/connections/oauth_callback.py +26 -1
- robosystems_client/api/connections/sync_connection.py +26 -1
- robosystems_client/api/copy/copy_data_to_graph.py +26 -1
- robosystems_client/api/graph_analytics/get_graph_metrics.py +26 -1
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +21 -1
- robosystems_client/api/graph_billing/get_current_graph_bill.py +26 -1
- robosystems_client/api/graph_billing/get_graph_billing_history.py +21 -1
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +26 -1
- robosystems_client/api/graph_billing/get_graph_usage_details.py +21 -1
- robosystems_client/api/graph_credits/check_credit_balance.py +21 -1
- robosystems_client/api/graph_credits/check_storage_limits.py +26 -1
- robosystems_client/api/graph_credits/get_credit_summary.py +26 -1
- robosystems_client/api/graph_credits/get_storage_usage.py +21 -1
- robosystems_client/api/graph_credits/list_credit_transactions.py +21 -1
- robosystems_client/api/graph_health/get_database_health.py +26 -1
- robosystems_client/api/graph_info/get_database_info.py +26 -1
- robosystems_client/api/graph_limits/get_graph_limits.py +26 -1
- robosystems_client/api/{create → graphs}/create_graph.py +26 -1
- robosystems_client/api/{create → graphs}/get_available_extensions.py +1 -1
- robosystems_client/api/{user/get_user_graphs.py → graphs/get_graphs.py} +26 -1
- robosystems_client/api/{user/select_user_graph.py → graphs/select_graph.py} +30 -5
- robosystems_client/api/mcp/call_mcp_tool.py +21 -1
- robosystems_client/api/mcp/list_mcp_tools.py +26 -1
- 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 +21 -1
- robosystems_client/api/schema/export_graph_schema.py +21 -1
- robosystems_client/api/schema/get_graph_schema_info.py +26 -1
- robosystems_client/api/schema/list_schema_extensions.py +26 -1
- robosystems_client/api/schema/validate_schema.py +26 -1
- robosystems_client/api/subgraphs/create_subgraph.py +26 -1
- robosystems_client/api/subgraphs/delete_subgraph.py +26 -1
- robosystems_client/api/subgraphs/get_subgraph_info.py +26 -1
- robosystems_client/api/subgraphs/get_subgraph_quota.py +26 -1
- robosystems_client/api/subgraphs/list_subgraphs.py +26 -1
- 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/list_user_api_keys.py +25 -0
- robosystems_client/api/user/revoke_user_api_key.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/models/__init__.py +0 -2
- robosystems_client/models/api_key_info.py +20 -0
- robosystems_client/models/create_api_key_request.py +20 -0
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/RECORD +97 -95
- robosystems_client/api/auth/sso_login.py +0 -177
- robosystems_client/models/sso_login_request.py +0 -60
- /robosystems_client/api/{create → graphs}/__init__.py +0 -0
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/WHEEL +0 -0
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
-
"url": f"/v1/{graph_id}/connections/link/exchange",
|
|
38
|
+
"url": f"/v1/graphs/{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
|
|
@@ -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": "get",
|
|
26
|
-
"url": f"/v1/{graph_id}/connections/{connection_id}",
|
|
38
|
+
"url": f"/v1/graphs/{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[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
80
94
|
"""Get Connection
|
|
@@ -93,6 +107,7 @@ def sync_detailed(
|
|
|
93
107
|
Args:
|
|
94
108
|
graph_id (str): Graph database identifier
|
|
95
109
|
connection_id (str): Unique connection identifier
|
|
110
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
96
111
|
authorization (Union[None, Unset, str]):
|
|
97
112
|
|
|
98
113
|
Raises:
|
|
@@ -106,6 +121,7 @@ def sync_detailed(
|
|
|
106
121
|
kwargs = _get_kwargs(
|
|
107
122
|
graph_id=graph_id,
|
|
108
123
|
connection_id=connection_id,
|
|
124
|
+
token=token,
|
|
109
125
|
authorization=authorization,
|
|
110
126
|
)
|
|
111
127
|
|
|
@@ -121,6 +137,7 @@ def sync(
|
|
|
121
137
|
connection_id: str,
|
|
122
138
|
*,
|
|
123
139
|
client: AuthenticatedClient,
|
|
140
|
+
token: Union[None, Unset, str] = UNSET,
|
|
124
141
|
authorization: Union[None, Unset, str] = UNSET,
|
|
125
142
|
) -> Optional[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
126
143
|
"""Get Connection
|
|
@@ -139,6 +156,7 @@ def sync(
|
|
|
139
156
|
Args:
|
|
140
157
|
graph_id (str): Graph database identifier
|
|
141
158
|
connection_id (str): Unique connection identifier
|
|
159
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
142
160
|
authorization (Union[None, Unset, str]):
|
|
143
161
|
|
|
144
162
|
Raises:
|
|
@@ -153,6 +171,7 @@ def sync(
|
|
|
153
171
|
graph_id=graph_id,
|
|
154
172
|
connection_id=connection_id,
|
|
155
173
|
client=client,
|
|
174
|
+
token=token,
|
|
156
175
|
authorization=authorization,
|
|
157
176
|
).parsed
|
|
158
177
|
|
|
@@ -162,6 +181,7 @@ async def asyncio_detailed(
|
|
|
162
181
|
connection_id: str,
|
|
163
182
|
*,
|
|
164
183
|
client: AuthenticatedClient,
|
|
184
|
+
token: Union[None, Unset, str] = UNSET,
|
|
165
185
|
authorization: Union[None, Unset, str] = UNSET,
|
|
166
186
|
) -> Response[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
167
187
|
"""Get Connection
|
|
@@ -180,6 +200,7 @@ async def asyncio_detailed(
|
|
|
180
200
|
Args:
|
|
181
201
|
graph_id (str): Graph database identifier
|
|
182
202
|
connection_id (str): Unique connection identifier
|
|
203
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
183
204
|
authorization (Union[None, Unset, str]):
|
|
184
205
|
|
|
185
206
|
Raises:
|
|
@@ -193,6 +214,7 @@ async def asyncio_detailed(
|
|
|
193
214
|
kwargs = _get_kwargs(
|
|
194
215
|
graph_id=graph_id,
|
|
195
216
|
connection_id=connection_id,
|
|
217
|
+
token=token,
|
|
196
218
|
authorization=authorization,
|
|
197
219
|
)
|
|
198
220
|
|
|
@@ -206,6 +228,7 @@ async def asyncio(
|
|
|
206
228
|
connection_id: str,
|
|
207
229
|
*,
|
|
208
230
|
client: AuthenticatedClient,
|
|
231
|
+
token: Union[None, Unset, str] = UNSET,
|
|
209
232
|
authorization: Union[None, Unset, str] = UNSET,
|
|
210
233
|
) -> Optional[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
211
234
|
"""Get Connection
|
|
@@ -224,6 +247,7 @@ async def asyncio(
|
|
|
224
247
|
Args:
|
|
225
248
|
graph_id (str): Graph database identifier
|
|
226
249
|
connection_id (str): Unique connection identifier
|
|
250
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
227
251
|
authorization (Union[None, Unset, str]):
|
|
228
252
|
|
|
229
253
|
Raises:
|
|
@@ -239,6 +263,7 @@ async def asyncio(
|
|
|
239
263
|
graph_id=graph_id,
|
|
240
264
|
connection_id=connection_id,
|
|
241
265
|
client=client,
|
|
266
|
+
token=token,
|
|
242
267
|
authorization=authorization,
|
|
243
268
|
)
|
|
244
269
|
).parsed
|
|
@@ -14,15 +14,28 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
|
+
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
18
19
|
) -> dict[str, Any]:
|
|
19
20
|
headers: dict[str, Any] = {}
|
|
20
21
|
if not isinstance(authorization, Unset):
|
|
21
22
|
headers["authorization"] = authorization
|
|
22
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
|
+
|
|
23
35
|
_kwargs: dict[str, Any] = {
|
|
24
36
|
"method": "get",
|
|
25
|
-
"url": f"/v1/{graph_id}/connections/options",
|
|
37
|
+
"url": f"/v1/graphs/{graph_id}/connections/options",
|
|
38
|
+
"params": params,
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
_kwargs["headers"] = headers
|
|
@@ -69,6 +82,7 @@ def sync_detailed(
|
|
|
69
82
|
graph_id: str,
|
|
70
83
|
*,
|
|
71
84
|
client: AuthenticatedClient,
|
|
85
|
+
token: Union[None, Unset, str] = UNSET,
|
|
72
86
|
authorization: Union[None, Unset, str] = UNSET,
|
|
73
87
|
) -> Response[Union[ConnectionOptionsResponse, ErrorResponse, HTTPValidationError]]:
|
|
74
88
|
"""List Connection Options
|
|
@@ -96,6 +110,7 @@ def sync_detailed(
|
|
|
96
110
|
|
|
97
111
|
Args:
|
|
98
112
|
graph_id (str): Graph database identifier
|
|
113
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
99
114
|
authorization (Union[None, Unset, str]):
|
|
100
115
|
|
|
101
116
|
Raises:
|
|
@@ -108,6 +123,7 @@ def sync_detailed(
|
|
|
108
123
|
|
|
109
124
|
kwargs = _get_kwargs(
|
|
110
125
|
graph_id=graph_id,
|
|
126
|
+
token=token,
|
|
111
127
|
authorization=authorization,
|
|
112
128
|
)
|
|
113
129
|
|
|
@@ -122,6 +138,7 @@ def sync(
|
|
|
122
138
|
graph_id: str,
|
|
123
139
|
*,
|
|
124
140
|
client: AuthenticatedClient,
|
|
141
|
+
token: Union[None, Unset, str] = UNSET,
|
|
125
142
|
authorization: Union[None, Unset, str] = UNSET,
|
|
126
143
|
) -> Optional[Union[ConnectionOptionsResponse, ErrorResponse, HTTPValidationError]]:
|
|
127
144
|
"""List Connection Options
|
|
@@ -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
|
|
|
154
172
|
Raises:
|
|
@@ -162,6 +180,7 @@ def sync(
|
|
|
162
180
|
return sync_detailed(
|
|
163
181
|
graph_id=graph_id,
|
|
164
182
|
client=client,
|
|
183
|
+
token=token,
|
|
165
184
|
authorization=authorization,
|
|
166
185
|
).parsed
|
|
167
186
|
|
|
@@ -170,6 +189,7 @@ async def asyncio_detailed(
|
|
|
170
189
|
graph_id: str,
|
|
171
190
|
*,
|
|
172
191
|
client: AuthenticatedClient,
|
|
192
|
+
token: Union[None, Unset, str] = UNSET,
|
|
173
193
|
authorization: Union[None, Unset, str] = UNSET,
|
|
174
194
|
) -> Response[Union[ConnectionOptionsResponse, ErrorResponse, HTTPValidationError]]:
|
|
175
195
|
"""List Connection Options
|
|
@@ -197,6 +217,7 @@ async def asyncio_detailed(
|
|
|
197
217
|
|
|
198
218
|
Args:
|
|
199
219
|
graph_id (str): Graph database identifier
|
|
220
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
200
221
|
authorization (Union[None, Unset, str]):
|
|
201
222
|
|
|
202
223
|
Raises:
|
|
@@ -209,6 +230,7 @@ async def asyncio_detailed(
|
|
|
209
230
|
|
|
210
231
|
kwargs = _get_kwargs(
|
|
211
232
|
graph_id=graph_id,
|
|
233
|
+
token=token,
|
|
212
234
|
authorization=authorization,
|
|
213
235
|
)
|
|
214
236
|
|
|
@@ -221,6 +243,7 @@ async def asyncio(
|
|
|
221
243
|
graph_id: str,
|
|
222
244
|
*,
|
|
223
245
|
client: AuthenticatedClient,
|
|
246
|
+
token: Union[None, Unset, str] = UNSET,
|
|
224
247
|
authorization: Union[None, Unset, str] = UNSET,
|
|
225
248
|
) -> Optional[Union[ConnectionOptionsResponse, ErrorResponse, HTTPValidationError]]:
|
|
226
249
|
"""List Connection Options
|
|
@@ -248,6 +271,7 @@ async def asyncio(
|
|
|
248
271
|
|
|
249
272
|
Args:
|
|
250
273
|
graph_id (str): Graph database identifier
|
|
274
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
251
275
|
authorization (Union[None, Unset, str]):
|
|
252
276
|
|
|
253
277
|
Raises:
|
|
@@ -262,6 +286,7 @@ async def asyncio(
|
|
|
262
286
|
await asyncio_detailed(
|
|
263
287
|
graph_id=graph_id,
|
|
264
288
|
client=client,
|
|
289
|
+
token=token,
|
|
265
290
|
authorization=authorization,
|
|
266
291
|
)
|
|
267
292
|
).parsed
|
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: OAuthInitRequest,
|
|
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
|
-
"url": f"/v1/{graph_id}/connections/oauth/init",
|
|
38
|
+
"url": f"/v1/graphs/{graph_id}/connections/oauth/init",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -67,6 +80,7 @@ def sync_detailed(
|
|
|
67
80
|
*,
|
|
68
81
|
client: AuthenticatedClient,
|
|
69
82
|
body: OAuthInitRequest,
|
|
83
|
+
token: Union[None, Unset, str] = UNSET,
|
|
70
84
|
authorization: Union[None, Unset, str] = UNSET,
|
|
71
85
|
) -> Response[Union[HTTPValidationError, OAuthInitResponse]]:
|
|
72
86
|
"""Init Oauth
|
|
@@ -78,6 +92,7 @@ def sync_detailed(
|
|
|
78
92
|
|
|
79
93
|
Args:
|
|
80
94
|
graph_id (str): Graph database identifier
|
|
95
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
81
96
|
authorization (Union[None, Unset, str]):
|
|
82
97
|
body (OAuthInitRequest): Request to initiate OAuth flow.
|
|
83
98
|
|
|
@@ -92,6 +107,7 @@ def sync_detailed(
|
|
|
92
107
|
kwargs = _get_kwargs(
|
|
93
108
|
graph_id=graph_id,
|
|
94
109
|
body=body,
|
|
110
|
+
token=token,
|
|
95
111
|
authorization=authorization,
|
|
96
112
|
)
|
|
97
113
|
|
|
@@ -107,6 +123,7 @@ def sync(
|
|
|
107
123
|
*,
|
|
108
124
|
client: AuthenticatedClient,
|
|
109
125
|
body: OAuthInitRequest,
|
|
126
|
+
token: Union[None, Unset, str] = UNSET,
|
|
110
127
|
authorization: Union[None, Unset, str] = UNSET,
|
|
111
128
|
) -> Optional[Union[HTTPValidationError, OAuthInitResponse]]:
|
|
112
129
|
"""Init Oauth
|
|
@@ -118,6 +135,7 @@ def sync(
|
|
|
118
135
|
|
|
119
136
|
Args:
|
|
120
137
|
graph_id (str): Graph database identifier
|
|
138
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
121
139
|
authorization (Union[None, Unset, str]):
|
|
122
140
|
body (OAuthInitRequest): Request to initiate OAuth flow.
|
|
123
141
|
|
|
@@ -133,6 +151,7 @@ def sync(
|
|
|
133
151
|
graph_id=graph_id,
|
|
134
152
|
client=client,
|
|
135
153
|
body=body,
|
|
154
|
+
token=token,
|
|
136
155
|
authorization=authorization,
|
|
137
156
|
).parsed
|
|
138
157
|
|
|
@@ -142,6 +161,7 @@ async def asyncio_detailed(
|
|
|
142
161
|
*,
|
|
143
162
|
client: AuthenticatedClient,
|
|
144
163
|
body: OAuthInitRequest,
|
|
164
|
+
token: Union[None, Unset, str] = UNSET,
|
|
145
165
|
authorization: Union[None, Unset, str] = UNSET,
|
|
146
166
|
) -> Response[Union[HTTPValidationError, OAuthInitResponse]]:
|
|
147
167
|
"""Init Oauth
|
|
@@ -153,6 +173,7 @@ async def asyncio_detailed(
|
|
|
153
173
|
|
|
154
174
|
Args:
|
|
155
175
|
graph_id (str): Graph database identifier
|
|
176
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
156
177
|
authorization (Union[None, Unset, str]):
|
|
157
178
|
body (OAuthInitRequest): Request to initiate OAuth flow.
|
|
158
179
|
|
|
@@ -167,6 +188,7 @@ async def asyncio_detailed(
|
|
|
167
188
|
kwargs = _get_kwargs(
|
|
168
189
|
graph_id=graph_id,
|
|
169
190
|
body=body,
|
|
191
|
+
token=token,
|
|
170
192
|
authorization=authorization,
|
|
171
193
|
)
|
|
172
194
|
|
|
@@ -180,6 +202,7 @@ async def asyncio(
|
|
|
180
202
|
*,
|
|
181
203
|
client: AuthenticatedClient,
|
|
182
204
|
body: OAuthInitRequest,
|
|
205
|
+
token: Union[None, Unset, str] = UNSET,
|
|
183
206
|
authorization: Union[None, Unset, str] = UNSET,
|
|
184
207
|
) -> Optional[Union[HTTPValidationError, OAuthInitResponse]]:
|
|
185
208
|
"""Init Oauth
|
|
@@ -191,6 +214,7 @@ async def asyncio(
|
|
|
191
214
|
|
|
192
215
|
Args:
|
|
193
216
|
graph_id (str): Graph database identifier
|
|
217
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
194
218
|
authorization (Union[None, Unset, str]):
|
|
195
219
|
body (OAuthInitRequest): Request to initiate OAuth flow.
|
|
196
220
|
|
|
@@ -207,6 +231,7 @@ async def asyncio(
|
|
|
207
231
|
graph_id=graph_id,
|
|
208
232
|
client=client,
|
|
209
233
|
body=body,
|
|
234
|
+
token=token,
|
|
210
235
|
authorization=authorization,
|
|
211
236
|
)
|
|
212
237
|
).parsed
|
|
@@ -17,6 +17,7 @@ def _get_kwargs(
|
|
|
17
17
|
*,
|
|
18
18
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
19
19
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
20
|
+
token: Union[None, Unset, str] = UNSET,
|
|
20
21
|
authorization: Union[None, Unset, str] = UNSET,
|
|
21
22
|
) -> dict[str, Any]:
|
|
22
23
|
headers: dict[str, Any] = {}
|
|
@@ -41,11 +42,18 @@ def _get_kwargs(
|
|
|
41
42
|
json_provider = provider
|
|
42
43
|
params["provider"] = json_provider
|
|
43
44
|
|
|
45
|
+
json_token: Union[None, Unset, str]
|
|
46
|
+
if isinstance(token, Unset):
|
|
47
|
+
json_token = UNSET
|
|
48
|
+
else:
|
|
49
|
+
json_token = token
|
|
50
|
+
params["token"] = json_token
|
|
51
|
+
|
|
44
52
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
45
53
|
|
|
46
54
|
_kwargs: dict[str, Any] = {
|
|
47
55
|
"method": "get",
|
|
48
|
-
"url": f"/v1/{graph_id}/connections",
|
|
56
|
+
"url": f"/v1/graphs/{graph_id}/connections",
|
|
49
57
|
"params": params,
|
|
50
58
|
}
|
|
51
59
|
|
|
@@ -100,6 +108,7 @@ def sync_detailed(
|
|
|
100
108
|
client: AuthenticatedClient,
|
|
101
109
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
102
110
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
111
|
+
token: Union[None, Unset, str] = UNSET,
|
|
103
112
|
authorization: Union[None, Unset, str] = UNSET,
|
|
104
113
|
) -> Response[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
|
|
105
114
|
"""List Connections
|
|
@@ -123,6 +132,7 @@ def sync_detailed(
|
|
|
123
132
|
graph_id (str): Graph database identifier
|
|
124
133
|
entity_id (Union[None, Unset, str]): Filter by entity ID
|
|
125
134
|
provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
|
|
135
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
126
136
|
authorization (Union[None, Unset, str]):
|
|
127
137
|
|
|
128
138
|
Raises:
|
|
@@ -137,6 +147,7 @@ def sync_detailed(
|
|
|
137
147
|
graph_id=graph_id,
|
|
138
148
|
entity_id=entity_id,
|
|
139
149
|
provider=provider,
|
|
150
|
+
token=token,
|
|
140
151
|
authorization=authorization,
|
|
141
152
|
)
|
|
142
153
|
|
|
@@ -153,6 +164,7 @@ def sync(
|
|
|
153
164
|
client: AuthenticatedClient,
|
|
154
165
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
155
166
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
167
|
+
token: Union[None, Unset, str] = UNSET,
|
|
156
168
|
authorization: Union[None, Unset, str] = UNSET,
|
|
157
169
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
|
|
158
170
|
"""List Connections
|
|
@@ -176,6 +188,7 @@ def sync(
|
|
|
176
188
|
graph_id (str): Graph database identifier
|
|
177
189
|
entity_id (Union[None, Unset, str]): Filter by entity ID
|
|
178
190
|
provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
|
|
191
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
179
192
|
authorization (Union[None, Unset, str]):
|
|
180
193
|
|
|
181
194
|
Raises:
|
|
@@ -191,6 +204,7 @@ def sync(
|
|
|
191
204
|
client=client,
|
|
192
205
|
entity_id=entity_id,
|
|
193
206
|
provider=provider,
|
|
207
|
+
token=token,
|
|
194
208
|
authorization=authorization,
|
|
195
209
|
).parsed
|
|
196
210
|
|
|
@@ -201,6 +215,7 @@ async def asyncio_detailed(
|
|
|
201
215
|
client: AuthenticatedClient,
|
|
202
216
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
203
217
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
218
|
+
token: Union[None, Unset, str] = UNSET,
|
|
204
219
|
authorization: Union[None, Unset, str] = UNSET,
|
|
205
220
|
) -> Response[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
|
|
206
221
|
"""List Connections
|
|
@@ -224,6 +239,7 @@ async def asyncio_detailed(
|
|
|
224
239
|
graph_id (str): Graph database identifier
|
|
225
240
|
entity_id (Union[None, Unset, str]): Filter by entity ID
|
|
226
241
|
provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
|
|
242
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
227
243
|
authorization (Union[None, Unset, str]):
|
|
228
244
|
|
|
229
245
|
Raises:
|
|
@@ -238,6 +254,7 @@ async def asyncio_detailed(
|
|
|
238
254
|
graph_id=graph_id,
|
|
239
255
|
entity_id=entity_id,
|
|
240
256
|
provider=provider,
|
|
257
|
+
token=token,
|
|
241
258
|
authorization=authorization,
|
|
242
259
|
)
|
|
243
260
|
|
|
@@ -252,6 +269,7 @@ async def asyncio(
|
|
|
252
269
|
client: AuthenticatedClient,
|
|
253
270
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
254
271
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
272
|
+
token: Union[None, Unset, str] = UNSET,
|
|
255
273
|
authorization: Union[None, Unset, str] = UNSET,
|
|
256
274
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
|
|
257
275
|
"""List Connections
|
|
@@ -275,6 +293,7 @@ async def asyncio(
|
|
|
275
293
|
graph_id (str): Graph database identifier
|
|
276
294
|
entity_id (Union[None, Unset, str]): Filter by entity ID
|
|
277
295
|
provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
|
|
296
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
278
297
|
authorization (Union[None, Unset, str]):
|
|
279
298
|
|
|
280
299
|
Raises:
|
|
@@ -291,6 +310,7 @@ async def asyncio(
|
|
|
291
310
|
client=client,
|
|
292
311
|
entity_id=entity_id,
|
|
293
312
|
provider=provider,
|
|
313
|
+
token=token,
|
|
294
314
|
authorization=authorization,
|
|
295
315
|
)
|
|
296
316
|
).parsed
|