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,6 +15,7 @@ def _get_kwargs(
|
|
|
15
15
|
*,
|
|
16
16
|
format_: Union[Unset, str] = "json",
|
|
17
17
|
include_data_stats: Union[Unset, bool] = False,
|
|
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] = {}
|
|
@@ -27,6 +28,13 @@ def _get_kwargs(
|
|
|
27
28
|
|
|
28
29
|
params["include_data_stats"] = include_data_stats
|
|
29
30
|
|
|
31
|
+
json_token: Union[None, Unset, str]
|
|
32
|
+
if isinstance(token, Unset):
|
|
33
|
+
json_token = UNSET
|
|
34
|
+
else:
|
|
35
|
+
json_token = token
|
|
36
|
+
params["token"] = json_token
|
|
37
|
+
|
|
30
38
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
31
39
|
|
|
32
40
|
_kwargs: dict[str, Any] = {
|
|
@@ -73,6 +81,7 @@ def sync_detailed(
|
|
|
73
81
|
client: AuthenticatedClient,
|
|
74
82
|
format_: Union[Unset, str] = "json",
|
|
75
83
|
include_data_stats: Union[Unset, bool] = False,
|
|
84
|
+
token: Union[None, Unset, str] = UNSET,
|
|
76
85
|
authorization: Union[None, Unset, str] = UNSET,
|
|
77
86
|
) -> Response[Union[HTTPValidationError, SchemaExportResponse]]:
|
|
78
87
|
"""Export Graph Schema
|
|
@@ -84,6 +93,7 @@ def sync_detailed(
|
|
|
84
93
|
format_ (Union[Unset, str]): Export format: json, yaml, or cypher Default: 'json'.
|
|
85
94
|
include_data_stats (Union[Unset, bool]): Include statistics about actual data in the graph
|
|
86
95
|
Default: False.
|
|
96
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
87
97
|
authorization (Union[None, Unset, str]):
|
|
88
98
|
|
|
89
99
|
Raises:
|
|
@@ -98,6 +108,7 @@ def sync_detailed(
|
|
|
98
108
|
graph_id=graph_id,
|
|
99
109
|
format_=format_,
|
|
100
110
|
include_data_stats=include_data_stats,
|
|
111
|
+
token=token,
|
|
101
112
|
authorization=authorization,
|
|
102
113
|
)
|
|
103
114
|
|
|
@@ -114,6 +125,7 @@ def sync(
|
|
|
114
125
|
client: AuthenticatedClient,
|
|
115
126
|
format_: Union[Unset, str] = "json",
|
|
116
127
|
include_data_stats: Union[Unset, bool] = False,
|
|
128
|
+
token: Union[None, Unset, str] = UNSET,
|
|
117
129
|
authorization: Union[None, Unset, str] = UNSET,
|
|
118
130
|
) -> Optional[Union[HTTPValidationError, SchemaExportResponse]]:
|
|
119
131
|
"""Export Graph Schema
|
|
@@ -125,6 +137,7 @@ def sync(
|
|
|
125
137
|
format_ (Union[Unset, str]): Export format: json, yaml, or cypher Default: 'json'.
|
|
126
138
|
include_data_stats (Union[Unset, bool]): Include statistics about actual data in the graph
|
|
127
139
|
Default: False.
|
|
140
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
128
141
|
authorization (Union[None, Unset, str]):
|
|
129
142
|
|
|
130
143
|
Raises:
|
|
@@ -140,6 +153,7 @@ def sync(
|
|
|
140
153
|
client=client,
|
|
141
154
|
format_=format_,
|
|
142
155
|
include_data_stats=include_data_stats,
|
|
156
|
+
token=token,
|
|
143
157
|
authorization=authorization,
|
|
144
158
|
).parsed
|
|
145
159
|
|
|
@@ -150,6 +164,7 @@ async def asyncio_detailed(
|
|
|
150
164
|
client: AuthenticatedClient,
|
|
151
165
|
format_: Union[Unset, str] = "json",
|
|
152
166
|
include_data_stats: Union[Unset, bool] = False,
|
|
167
|
+
token: Union[None, Unset, str] = UNSET,
|
|
153
168
|
authorization: Union[None, Unset, str] = UNSET,
|
|
154
169
|
) -> Response[Union[HTTPValidationError, SchemaExportResponse]]:
|
|
155
170
|
"""Export Graph Schema
|
|
@@ -161,6 +176,7 @@ async def asyncio_detailed(
|
|
|
161
176
|
format_ (Union[Unset, str]): Export format: json, yaml, or cypher Default: 'json'.
|
|
162
177
|
include_data_stats (Union[Unset, bool]): Include statistics about actual data in the graph
|
|
163
178
|
Default: False.
|
|
179
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
164
180
|
authorization (Union[None, Unset, str]):
|
|
165
181
|
|
|
166
182
|
Raises:
|
|
@@ -175,6 +191,7 @@ async def asyncio_detailed(
|
|
|
175
191
|
graph_id=graph_id,
|
|
176
192
|
format_=format_,
|
|
177
193
|
include_data_stats=include_data_stats,
|
|
194
|
+
token=token,
|
|
178
195
|
authorization=authorization,
|
|
179
196
|
)
|
|
180
197
|
|
|
@@ -189,6 +206,7 @@ async def asyncio(
|
|
|
189
206
|
client: AuthenticatedClient,
|
|
190
207
|
format_: Union[Unset, str] = "json",
|
|
191
208
|
include_data_stats: Union[Unset, bool] = False,
|
|
209
|
+
token: Union[None, Unset, str] = UNSET,
|
|
192
210
|
authorization: Union[None, Unset, str] = UNSET,
|
|
193
211
|
) -> Optional[Union[HTTPValidationError, SchemaExportResponse]]:
|
|
194
212
|
"""Export Graph Schema
|
|
@@ -200,6 +218,7 @@ async def asyncio(
|
|
|
200
218
|
format_ (Union[Unset, str]): Export format: json, yaml, or cypher Default: 'json'.
|
|
201
219
|
include_data_stats (Union[Unset, bool]): Include statistics about actual data in the graph
|
|
202
220
|
Default: False.
|
|
221
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
203
222
|
authorization (Union[None, Unset, str]):
|
|
204
223
|
|
|
205
224
|
Raises:
|
|
@@ -216,6 +235,7 @@ async def asyncio(
|
|
|
216
235
|
client=client,
|
|
217
236
|
format_=format_,
|
|
218
237
|
include_data_stats=include_data_stats,
|
|
238
|
+
token=token,
|
|
219
239
|
authorization=authorization,
|
|
220
240
|
)
|
|
221
241
|
).parsed
|
|
@@ -15,15 +15,28 @@ from ...types import UNSET, Response, Unset
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
graph_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}/schema/info",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["headers"] = headers
|
|
@@ -74,6 +87,7 @@ def sync_detailed(
|
|
|
74
87
|
graph_id: str,
|
|
75
88
|
*,
|
|
76
89
|
client: AuthenticatedClient,
|
|
90
|
+
token: Union[None, Unset, str] = UNSET,
|
|
77
91
|
authorization: Union[None, Unset, str] = UNSET,
|
|
78
92
|
) -> Response[
|
|
79
93
|
Union[Any, GetGraphSchemaInfoResponseGetgraphschemainfo, HTTPValidationError]
|
|
@@ -94,6 +108,7 @@ def sync_detailed(
|
|
|
94
108
|
|
|
95
109
|
Args:
|
|
96
110
|
graph_id (str): The graph database to get schema for
|
|
111
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
97
112
|
authorization (Union[None, Unset, str]):
|
|
98
113
|
|
|
99
114
|
Raises:
|
|
@@ -106,6 +121,7 @@ def sync_detailed(
|
|
|
106
121
|
|
|
107
122
|
kwargs = _get_kwargs(
|
|
108
123
|
graph_id=graph_id,
|
|
124
|
+
token=token,
|
|
109
125
|
authorization=authorization,
|
|
110
126
|
)
|
|
111
127
|
|
|
@@ -120,6 +136,7 @@ def sync(
|
|
|
120
136
|
graph_id: str,
|
|
121
137
|
*,
|
|
122
138
|
client: AuthenticatedClient,
|
|
139
|
+
token: Union[None, Unset, str] = UNSET,
|
|
123
140
|
authorization: Union[None, Unset, str] = UNSET,
|
|
124
141
|
) -> Optional[
|
|
125
142
|
Union[Any, GetGraphSchemaInfoResponseGetgraphschemainfo, HTTPValidationError]
|
|
@@ -140,6 +157,7 @@ def sync(
|
|
|
140
157
|
|
|
141
158
|
Args:
|
|
142
159
|
graph_id (str): The graph database to get schema for
|
|
160
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
143
161
|
authorization (Union[None, Unset, str]):
|
|
144
162
|
|
|
145
163
|
Raises:
|
|
@@ -153,6 +171,7 @@ def sync(
|
|
|
153
171
|
return sync_detailed(
|
|
154
172
|
graph_id=graph_id,
|
|
155
173
|
client=client,
|
|
174
|
+
token=token,
|
|
156
175
|
authorization=authorization,
|
|
157
176
|
).parsed
|
|
158
177
|
|
|
@@ -161,6 +180,7 @@ async def asyncio_detailed(
|
|
|
161
180
|
graph_id: str,
|
|
162
181
|
*,
|
|
163
182
|
client: AuthenticatedClient,
|
|
183
|
+
token: Union[None, Unset, str] = UNSET,
|
|
164
184
|
authorization: Union[None, Unset, str] = UNSET,
|
|
165
185
|
) -> Response[
|
|
166
186
|
Union[Any, GetGraphSchemaInfoResponseGetgraphschemainfo, HTTPValidationError]
|
|
@@ -181,6 +201,7 @@ async def asyncio_detailed(
|
|
|
181
201
|
|
|
182
202
|
Args:
|
|
183
203
|
graph_id (str): The graph database to get schema for
|
|
204
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
184
205
|
authorization (Union[None, Unset, str]):
|
|
185
206
|
|
|
186
207
|
Raises:
|
|
@@ -193,6 +214,7 @@ async def asyncio_detailed(
|
|
|
193
214
|
|
|
194
215
|
kwargs = _get_kwargs(
|
|
195
216
|
graph_id=graph_id,
|
|
217
|
+
token=token,
|
|
196
218
|
authorization=authorization,
|
|
197
219
|
)
|
|
198
220
|
|
|
@@ -205,6 +227,7 @@ async def asyncio(
|
|
|
205
227
|
graph_id: str,
|
|
206
228
|
*,
|
|
207
229
|
client: AuthenticatedClient,
|
|
230
|
+
token: Union[None, Unset, str] = UNSET,
|
|
208
231
|
authorization: Union[None, Unset, str] = UNSET,
|
|
209
232
|
) -> Optional[
|
|
210
233
|
Union[Any, GetGraphSchemaInfoResponseGetgraphschemainfo, HTTPValidationError]
|
|
@@ -225,6 +248,7 @@ async def asyncio(
|
|
|
225
248
|
|
|
226
249
|
Args:
|
|
227
250
|
graph_id (str): The graph database to get schema for
|
|
251
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
228
252
|
authorization (Union[None, Unset, str]):
|
|
229
253
|
|
|
230
254
|
Raises:
|
|
@@ -239,6 +263,7 @@ async def asyncio(
|
|
|
239
263
|
await asyncio_detailed(
|
|
240
264
|
graph_id=graph_id,
|
|
241
265
|
client=client,
|
|
266
|
+
token=token,
|
|
242
267
|
authorization=authorization,
|
|
243
268
|
)
|
|
244
269
|
).parsed
|
|
@@ -15,15 +15,28 @@ from ...types import UNSET, Response, Unset
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
graph_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}/schema/extensions",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["headers"] = headers
|
|
@@ -68,6 +81,7 @@ def sync_detailed(
|
|
|
68
81
|
graph_id: str,
|
|
69
82
|
*,
|
|
70
83
|
client: AuthenticatedClient,
|
|
84
|
+
token: Union[None, Unset, str] = UNSET,
|
|
71
85
|
authorization: Union[None, Unset, str] = UNSET,
|
|
72
86
|
) -> Response[
|
|
73
87
|
Union[HTTPValidationError, ListSchemaExtensionsResponseListschemaextensions]
|
|
@@ -78,6 +92,7 @@ def sync_detailed(
|
|
|
78
92
|
|
|
79
93
|
Args:
|
|
80
94
|
graph_id (str): The graph ID to list extensions for
|
|
95
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
81
96
|
authorization (Union[None, Unset, str]):
|
|
82
97
|
|
|
83
98
|
Raises:
|
|
@@ -90,6 +105,7 @@ def sync_detailed(
|
|
|
90
105
|
|
|
91
106
|
kwargs = _get_kwargs(
|
|
92
107
|
graph_id=graph_id,
|
|
108
|
+
token=token,
|
|
93
109
|
authorization=authorization,
|
|
94
110
|
)
|
|
95
111
|
|
|
@@ -104,6 +120,7 @@ def sync(
|
|
|
104
120
|
graph_id: str,
|
|
105
121
|
*,
|
|
106
122
|
client: AuthenticatedClient,
|
|
123
|
+
token: Union[None, Unset, str] = UNSET,
|
|
107
124
|
authorization: Union[None, Unset, str] = UNSET,
|
|
108
125
|
) -> Optional[
|
|
109
126
|
Union[HTTPValidationError, ListSchemaExtensionsResponseListschemaextensions]
|
|
@@ -114,6 +131,7 @@ def sync(
|
|
|
114
131
|
|
|
115
132
|
Args:
|
|
116
133
|
graph_id (str): The graph ID to list extensions for
|
|
134
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
117
135
|
authorization (Union[None, Unset, str]):
|
|
118
136
|
|
|
119
137
|
Raises:
|
|
@@ -127,6 +145,7 @@ def sync(
|
|
|
127
145
|
return sync_detailed(
|
|
128
146
|
graph_id=graph_id,
|
|
129
147
|
client=client,
|
|
148
|
+
token=token,
|
|
130
149
|
authorization=authorization,
|
|
131
150
|
).parsed
|
|
132
151
|
|
|
@@ -135,6 +154,7 @@ async def asyncio_detailed(
|
|
|
135
154
|
graph_id: str,
|
|
136
155
|
*,
|
|
137
156
|
client: AuthenticatedClient,
|
|
157
|
+
token: Union[None, Unset, str] = UNSET,
|
|
138
158
|
authorization: Union[None, Unset, str] = UNSET,
|
|
139
159
|
) -> Response[
|
|
140
160
|
Union[HTTPValidationError, ListSchemaExtensionsResponseListschemaextensions]
|
|
@@ -145,6 +165,7 @@ async def asyncio_detailed(
|
|
|
145
165
|
|
|
146
166
|
Args:
|
|
147
167
|
graph_id (str): The graph ID to list extensions for
|
|
168
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
148
169
|
authorization (Union[None, Unset, str]):
|
|
149
170
|
|
|
150
171
|
Raises:
|
|
@@ -157,6 +178,7 @@ async def asyncio_detailed(
|
|
|
157
178
|
|
|
158
179
|
kwargs = _get_kwargs(
|
|
159
180
|
graph_id=graph_id,
|
|
181
|
+
token=token,
|
|
160
182
|
authorization=authorization,
|
|
161
183
|
)
|
|
162
184
|
|
|
@@ -169,6 +191,7 @@ async def asyncio(
|
|
|
169
191
|
graph_id: str,
|
|
170
192
|
*,
|
|
171
193
|
client: AuthenticatedClient,
|
|
194
|
+
token: Union[None, Unset, str] = UNSET,
|
|
172
195
|
authorization: Union[None, Unset, str] = UNSET,
|
|
173
196
|
) -> Optional[
|
|
174
197
|
Union[HTTPValidationError, ListSchemaExtensionsResponseListschemaextensions]
|
|
@@ -179,6 +202,7 @@ async def asyncio(
|
|
|
179
202
|
|
|
180
203
|
Args:
|
|
181
204
|
graph_id (str): The graph ID to list extensions for
|
|
205
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
182
206
|
authorization (Union[None, Unset, str]):
|
|
183
207
|
|
|
184
208
|
Raises:
|
|
@@ -193,6 +217,7 @@ async def asyncio(
|
|
|
193
217
|
await asyncio_detailed(
|
|
194
218
|
graph_id=graph_id,
|
|
195
219
|
client=client,
|
|
220
|
+
token=token,
|
|
196
221
|
authorization=authorization,
|
|
197
222
|
)
|
|
198
223
|
).parsed
|
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: SchemaValidationRequest,
|
|
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}/schema/validate",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -79,6 +92,7 @@ def sync_detailed(
|
|
|
79
92
|
*,
|
|
80
93
|
client: AuthenticatedClient,
|
|
81
94
|
body: SchemaValidationRequest,
|
|
95
|
+
token: Union[None, Unset, str] = UNSET,
|
|
82
96
|
authorization: Union[None, Unset, str] = UNSET,
|
|
83
97
|
) -> Response[Union[ErrorResponse, SchemaValidationResponse]]:
|
|
84
98
|
"""Validate Schema
|
|
@@ -108,6 +122,7 @@ def sync_detailed(
|
|
|
108
122
|
|
|
109
123
|
Args:
|
|
110
124
|
graph_id (str): Graph database identifier
|
|
125
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
111
126
|
authorization (Union[None, Unset, str]):
|
|
112
127
|
body (SchemaValidationRequest): Request model for schema validation.
|
|
113
128
|
|
|
@@ -122,6 +137,7 @@ def sync_detailed(
|
|
|
122
137
|
kwargs = _get_kwargs(
|
|
123
138
|
graph_id=graph_id,
|
|
124
139
|
body=body,
|
|
140
|
+
token=token,
|
|
125
141
|
authorization=authorization,
|
|
126
142
|
)
|
|
127
143
|
|
|
@@ -137,6 +153,7 @@ def sync(
|
|
|
137
153
|
*,
|
|
138
154
|
client: AuthenticatedClient,
|
|
139
155
|
body: SchemaValidationRequest,
|
|
156
|
+
token: Union[None, Unset, str] = UNSET,
|
|
140
157
|
authorization: Union[None, Unset, str] = UNSET,
|
|
141
158
|
) -> Optional[Union[ErrorResponse, SchemaValidationResponse]]:
|
|
142
159
|
"""Validate Schema
|
|
@@ -166,6 +183,7 @@ def sync(
|
|
|
166
183
|
|
|
167
184
|
Args:
|
|
168
185
|
graph_id (str): Graph database identifier
|
|
186
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
169
187
|
authorization (Union[None, Unset, str]):
|
|
170
188
|
body (SchemaValidationRequest): Request model for schema validation.
|
|
171
189
|
|
|
@@ -181,6 +199,7 @@ def sync(
|
|
|
181
199
|
graph_id=graph_id,
|
|
182
200
|
client=client,
|
|
183
201
|
body=body,
|
|
202
|
+
token=token,
|
|
184
203
|
authorization=authorization,
|
|
185
204
|
).parsed
|
|
186
205
|
|
|
@@ -190,6 +209,7 @@ async def asyncio_detailed(
|
|
|
190
209
|
*,
|
|
191
210
|
client: AuthenticatedClient,
|
|
192
211
|
body: SchemaValidationRequest,
|
|
212
|
+
token: Union[None, Unset, str] = UNSET,
|
|
193
213
|
authorization: Union[None, Unset, str] = UNSET,
|
|
194
214
|
) -> Response[Union[ErrorResponse, SchemaValidationResponse]]:
|
|
195
215
|
"""Validate Schema
|
|
@@ -219,6 +239,7 @@ async def asyncio_detailed(
|
|
|
219
239
|
|
|
220
240
|
Args:
|
|
221
241
|
graph_id (str): Graph database identifier
|
|
242
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
222
243
|
authorization (Union[None, Unset, str]):
|
|
223
244
|
body (SchemaValidationRequest): Request model for schema validation.
|
|
224
245
|
|
|
@@ -233,6 +254,7 @@ async def asyncio_detailed(
|
|
|
233
254
|
kwargs = _get_kwargs(
|
|
234
255
|
graph_id=graph_id,
|
|
235
256
|
body=body,
|
|
257
|
+
token=token,
|
|
236
258
|
authorization=authorization,
|
|
237
259
|
)
|
|
238
260
|
|
|
@@ -246,6 +268,7 @@ async def asyncio(
|
|
|
246
268
|
*,
|
|
247
269
|
client: AuthenticatedClient,
|
|
248
270
|
body: SchemaValidationRequest,
|
|
271
|
+
token: Union[None, Unset, str] = UNSET,
|
|
249
272
|
authorization: Union[None, Unset, str] = UNSET,
|
|
250
273
|
) -> Optional[Union[ErrorResponse, SchemaValidationResponse]]:
|
|
251
274
|
"""Validate Schema
|
|
@@ -275,6 +298,7 @@ async def asyncio(
|
|
|
275
298
|
|
|
276
299
|
Args:
|
|
277
300
|
graph_id (str): Graph database identifier
|
|
301
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
278
302
|
authorization (Union[None, Unset, str]):
|
|
279
303
|
body (SchemaValidationRequest): Request model for schema validation.
|
|
280
304
|
|
|
@@ -291,6 +315,7 @@ async def asyncio(
|
|
|
291
315
|
graph_id=graph_id,
|
|
292
316
|
client=client,
|
|
293
317
|
body=body,
|
|
318
|
+
token=token,
|
|
294
319
|
authorization=authorization,
|
|
295
320
|
)
|
|
296
321
|
).parsed
|
|
@@ -15,15 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: CreateSubgraphRequest,
|
|
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}/subgraphs",
|
|
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: CreateSubgraphRequest,
|
|
83
|
+
token: Union[None, Unset, str] = UNSET,
|
|
70
84
|
authorization: Union[None, Unset, str] = UNSET,
|
|
71
85
|
) -> Response[Union[HTTPValidationError, SubgraphResponse]]:
|
|
72
86
|
"""Create Subgraph
|
|
@@ -86,6 +100,7 @@ def sync_detailed(
|
|
|
86
100
|
|
|
87
101
|
Args:
|
|
88
102
|
graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
|
|
103
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
89
104
|
authorization (Union[None, Unset, str]):
|
|
90
105
|
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
91
106
|
|
|
@@ -100,6 +115,7 @@ def sync_detailed(
|
|
|
100
115
|
kwargs = _get_kwargs(
|
|
101
116
|
graph_id=graph_id,
|
|
102
117
|
body=body,
|
|
118
|
+
token=token,
|
|
103
119
|
authorization=authorization,
|
|
104
120
|
)
|
|
105
121
|
|
|
@@ -115,6 +131,7 @@ def sync(
|
|
|
115
131
|
*,
|
|
116
132
|
client: AuthenticatedClient,
|
|
117
133
|
body: CreateSubgraphRequest,
|
|
134
|
+
token: Union[None, Unset, str] = UNSET,
|
|
118
135
|
authorization: Union[None, Unset, str] = UNSET,
|
|
119
136
|
) -> Optional[Union[HTTPValidationError, SubgraphResponse]]:
|
|
120
137
|
"""Create Subgraph
|
|
@@ -134,6 +151,7 @@ def sync(
|
|
|
134
151
|
|
|
135
152
|
Args:
|
|
136
153
|
graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
|
|
154
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
137
155
|
authorization (Union[None, Unset, str]):
|
|
138
156
|
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
139
157
|
|
|
@@ -149,6 +167,7 @@ def sync(
|
|
|
149
167
|
graph_id=graph_id,
|
|
150
168
|
client=client,
|
|
151
169
|
body=body,
|
|
170
|
+
token=token,
|
|
152
171
|
authorization=authorization,
|
|
153
172
|
).parsed
|
|
154
173
|
|
|
@@ -158,6 +177,7 @@ async def asyncio_detailed(
|
|
|
158
177
|
*,
|
|
159
178
|
client: AuthenticatedClient,
|
|
160
179
|
body: CreateSubgraphRequest,
|
|
180
|
+
token: Union[None, Unset, str] = UNSET,
|
|
161
181
|
authorization: Union[None, Unset, str] = UNSET,
|
|
162
182
|
) -> Response[Union[HTTPValidationError, SubgraphResponse]]:
|
|
163
183
|
"""Create Subgraph
|
|
@@ -177,6 +197,7 @@ async def asyncio_detailed(
|
|
|
177
197
|
|
|
178
198
|
Args:
|
|
179
199
|
graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
|
|
200
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
180
201
|
authorization (Union[None, Unset, str]):
|
|
181
202
|
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
182
203
|
|
|
@@ -191,6 +212,7 @@ async def asyncio_detailed(
|
|
|
191
212
|
kwargs = _get_kwargs(
|
|
192
213
|
graph_id=graph_id,
|
|
193
214
|
body=body,
|
|
215
|
+
token=token,
|
|
194
216
|
authorization=authorization,
|
|
195
217
|
)
|
|
196
218
|
|
|
@@ -204,6 +226,7 @@ async def asyncio(
|
|
|
204
226
|
*,
|
|
205
227
|
client: AuthenticatedClient,
|
|
206
228
|
body: CreateSubgraphRequest,
|
|
229
|
+
token: Union[None, Unset, str] = UNSET,
|
|
207
230
|
authorization: Union[None, Unset, str] = UNSET,
|
|
208
231
|
) -> Optional[Union[HTTPValidationError, SubgraphResponse]]:
|
|
209
232
|
"""Create Subgraph
|
|
@@ -223,6 +246,7 @@ async def asyncio(
|
|
|
223
246
|
|
|
224
247
|
Args:
|
|
225
248
|
graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
|
|
249
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
226
250
|
authorization (Union[None, Unset, str]):
|
|
227
251
|
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
228
252
|
|
|
@@ -239,6 +263,7 @@ async def asyncio(
|
|
|
239
263
|
graph_id=graph_id,
|
|
240
264
|
client=client,
|
|
241
265
|
body=body,
|
|
266
|
+
token=token,
|
|
242
267
|
authorization=authorization,
|
|
243
268
|
)
|
|
244
269
|
).parsed
|