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
|
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
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[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
37
|
"url": f"/v1/{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
38
|
"url": f"/v1/{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,6 +42,13 @@ 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] = {
|
|
@@ -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
|
|
@@ -16,15 +16,28 @@ def _get_kwargs(
|
|
|
16
16
|
provider: str,
|
|
17
17
|
*,
|
|
18
18
|
body: OAuthCallbackRequest,
|
|
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/oauth/callback/{provider}",
|
|
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: OAuthCallbackRequest,
|
|
100
|
+
token: Union[None, Unset, str] = UNSET,
|
|
87
101
|
authorization: Union[None, Unset, str] = UNSET,
|
|
88
102
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
89
103
|
"""OAuth Callback
|
|
@@ -111,6 +125,7 @@ def sync_detailed(
|
|
|
111
125
|
Args:
|
|
112
126
|
graph_id (str): Graph database identifier
|
|
113
127
|
provider (str): OAuth provider name
|
|
128
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
114
129
|
authorization (Union[None, Unset, str]):
|
|
115
130
|
body (OAuthCallbackRequest): OAuth callback parameters.
|
|
116
131
|
|
|
@@ -126,6 +141,7 @@ def sync_detailed(
|
|
|
126
141
|
graph_id=graph_id,
|
|
127
142
|
provider=provider,
|
|
128
143
|
body=body,
|
|
144
|
+
token=token,
|
|
129
145
|
authorization=authorization,
|
|
130
146
|
)
|
|
131
147
|
|
|
@@ -142,6 +158,7 @@ def sync(
|
|
|
142
158
|
*,
|
|
143
159
|
client: AuthenticatedClient,
|
|
144
160
|
body: OAuthCallbackRequest,
|
|
161
|
+
token: Union[None, Unset, str] = UNSET,
|
|
145
162
|
authorization: Union[None, Unset, str] = UNSET,
|
|
146
163
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
147
164
|
"""OAuth Callback
|
|
@@ -169,6 +186,7 @@ def sync(
|
|
|
169
186
|
Args:
|
|
170
187
|
graph_id (str): Graph database identifier
|
|
171
188
|
provider (str): OAuth provider name
|
|
189
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
172
190
|
authorization (Union[None, Unset, str]):
|
|
173
191
|
body (OAuthCallbackRequest): OAuth callback parameters.
|
|
174
192
|
|
|
@@ -185,6 +203,7 @@ def sync(
|
|
|
185
203
|
provider=provider,
|
|
186
204
|
client=client,
|
|
187
205
|
body=body,
|
|
206
|
+
token=token,
|
|
188
207
|
authorization=authorization,
|
|
189
208
|
).parsed
|
|
190
209
|
|
|
@@ -195,6 +214,7 @@ async def asyncio_detailed(
|
|
|
195
214
|
*,
|
|
196
215
|
client: AuthenticatedClient,
|
|
197
216
|
body: OAuthCallbackRequest,
|
|
217
|
+
token: Union[None, Unset, str] = UNSET,
|
|
198
218
|
authorization: Union[None, Unset, str] = UNSET,
|
|
199
219
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
200
220
|
"""OAuth Callback
|
|
@@ -222,6 +242,7 @@ async def asyncio_detailed(
|
|
|
222
242
|
Args:
|
|
223
243
|
graph_id (str): Graph database identifier
|
|
224
244
|
provider (str): OAuth provider name
|
|
245
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
225
246
|
authorization (Union[None, Unset, str]):
|
|
226
247
|
body (OAuthCallbackRequest): OAuth callback parameters.
|
|
227
248
|
|
|
@@ -237,6 +258,7 @@ async def asyncio_detailed(
|
|
|
237
258
|
graph_id=graph_id,
|
|
238
259
|
provider=provider,
|
|
239
260
|
body=body,
|
|
261
|
+
token=token,
|
|
240
262
|
authorization=authorization,
|
|
241
263
|
)
|
|
242
264
|
|
|
@@ -251,6 +273,7 @@ async def asyncio(
|
|
|
251
273
|
*,
|
|
252
274
|
client: AuthenticatedClient,
|
|
253
275
|
body: OAuthCallbackRequest,
|
|
276
|
+
token: Union[None, Unset, str] = UNSET,
|
|
254
277
|
authorization: Union[None, Unset, str] = UNSET,
|
|
255
278
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
256
279
|
"""OAuth Callback
|
|
@@ -278,6 +301,7 @@ async def asyncio(
|
|
|
278
301
|
Args:
|
|
279
302
|
graph_id (str): Graph database identifier
|
|
280
303
|
provider (str): OAuth provider name
|
|
304
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
281
305
|
authorization (Union[None, Unset, str]):
|
|
282
306
|
body (OAuthCallbackRequest): OAuth callback parameters.
|
|
283
307
|
|
|
@@ -295,6 +319,7 @@ async def asyncio(
|
|
|
295
319
|
provider=provider,
|
|
296
320
|
client=client,
|
|
297
321
|
body=body,
|
|
322
|
+
token=token,
|
|
298
323
|
authorization=authorization,
|
|
299
324
|
)
|
|
300
325
|
).parsed
|