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 @@ from ...types import UNSET, Response, Unset
|
|
|
15
15
|
|
|
16
16
|
def _get_kwargs(
|
|
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": "/v1/user/credits",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["headers"] = headers
|
|
@@ -79,6 +92,7 @@ def _build_response(
|
|
|
79
92
|
def sync_detailed(
|
|
80
93
|
*,
|
|
81
94
|
client: AuthenticatedClient,
|
|
95
|
+
token: Union[None, Unset, str] = UNSET,
|
|
82
96
|
authorization: Union[None, Unset, str] = UNSET,
|
|
83
97
|
) -> Response[
|
|
84
98
|
Union[
|
|
@@ -98,6 +112,7 @@ def sync_detailed(
|
|
|
98
112
|
No credits are consumed for viewing summaries.
|
|
99
113
|
|
|
100
114
|
Args:
|
|
115
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
101
116
|
authorization (Union[None, Unset, str]):
|
|
102
117
|
|
|
103
118
|
Raises:
|
|
@@ -109,6 +124,7 @@ def sync_detailed(
|
|
|
109
124
|
"""
|
|
110
125
|
|
|
111
126
|
kwargs = _get_kwargs(
|
|
127
|
+
token=token,
|
|
112
128
|
authorization=authorization,
|
|
113
129
|
)
|
|
114
130
|
|
|
@@ -122,6 +138,7 @@ def sync_detailed(
|
|
|
122
138
|
def sync(
|
|
123
139
|
*,
|
|
124
140
|
client: AuthenticatedClient,
|
|
141
|
+
token: Union[None, Unset, str] = UNSET,
|
|
125
142
|
authorization: Union[None, Unset, str] = UNSET,
|
|
126
143
|
) -> Optional[
|
|
127
144
|
Union[
|
|
@@ -141,6 +158,7 @@ def sync(
|
|
|
141
158
|
No credits are consumed for viewing summaries.
|
|
142
159
|
|
|
143
160
|
Args:
|
|
161
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
144
162
|
authorization (Union[None, Unset, str]):
|
|
145
163
|
|
|
146
164
|
Raises:
|
|
@@ -153,6 +171,7 @@ def sync(
|
|
|
153
171
|
|
|
154
172
|
return sync_detailed(
|
|
155
173
|
client=client,
|
|
174
|
+
token=token,
|
|
156
175
|
authorization=authorization,
|
|
157
176
|
).parsed
|
|
158
177
|
|
|
@@ -160,6 +179,7 @@ def sync(
|
|
|
160
179
|
async def asyncio_detailed(
|
|
161
180
|
*,
|
|
162
181
|
client: AuthenticatedClient,
|
|
182
|
+
token: Union[None, Unset, str] = UNSET,
|
|
163
183
|
authorization: Union[None, Unset, str] = UNSET,
|
|
164
184
|
) -> Response[
|
|
165
185
|
Union[
|
|
@@ -179,6 +199,7 @@ async def asyncio_detailed(
|
|
|
179
199
|
No credits are consumed for viewing summaries.
|
|
180
200
|
|
|
181
201
|
Args:
|
|
202
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
182
203
|
authorization (Union[None, Unset, str]):
|
|
183
204
|
|
|
184
205
|
Raises:
|
|
@@ -190,6 +211,7 @@ async def asyncio_detailed(
|
|
|
190
211
|
"""
|
|
191
212
|
|
|
192
213
|
kwargs = _get_kwargs(
|
|
214
|
+
token=token,
|
|
193
215
|
authorization=authorization,
|
|
194
216
|
)
|
|
195
217
|
|
|
@@ -201,6 +223,7 @@ async def asyncio_detailed(
|
|
|
201
223
|
async def asyncio(
|
|
202
224
|
*,
|
|
203
225
|
client: AuthenticatedClient,
|
|
226
|
+
token: Union[None, Unset, str] = UNSET,
|
|
204
227
|
authorization: Union[None, Unset, str] = UNSET,
|
|
205
228
|
) -> Optional[
|
|
206
229
|
Union[
|
|
@@ -220,6 +243,7 @@ async def asyncio(
|
|
|
220
243
|
No credits are consumed for viewing summaries.
|
|
221
244
|
|
|
222
245
|
Args:
|
|
246
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
223
247
|
authorization (Union[None, Unset, str]):
|
|
224
248
|
|
|
225
249
|
Raises:
|
|
@@ -233,6 +257,7 @@ async def asyncio(
|
|
|
233
257
|
return (
|
|
234
258
|
await asyncio_detailed(
|
|
235
259
|
client=client,
|
|
260
|
+
token=token,
|
|
236
261
|
authorization=authorization,
|
|
237
262
|
)
|
|
238
263
|
).parsed
|
|
@@ -12,15 +12,28 @@ from ...types import UNSET, Response, Unset
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
+
token: Union[None, Unset, str] = UNSET,
|
|
15
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
16
17
|
) -> dict[str, Any]:
|
|
17
18
|
headers: dict[str, Any] = {}
|
|
18
19
|
if not isinstance(authorization, Unset):
|
|
19
20
|
headers["authorization"] = authorization
|
|
20
21
|
|
|
22
|
+
params: dict[str, Any] = {}
|
|
23
|
+
|
|
24
|
+
json_token: Union[None, Unset, str]
|
|
25
|
+
if isinstance(token, Unset):
|
|
26
|
+
json_token = UNSET
|
|
27
|
+
else:
|
|
28
|
+
json_token = token
|
|
29
|
+
params["token"] = json_token
|
|
30
|
+
|
|
31
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
32
|
+
|
|
21
33
|
_kwargs: dict[str, Any] = {
|
|
22
34
|
"method": "get",
|
|
23
35
|
"url": "/v1/user",
|
|
36
|
+
"params": params,
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
_kwargs["headers"] = headers
|
|
@@ -58,6 +71,7 @@ def _build_response(
|
|
|
58
71
|
def sync_detailed(
|
|
59
72
|
*,
|
|
60
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
61
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
62
76
|
) -> Response[Union[HTTPValidationError, UserResponse]]:
|
|
63
77
|
"""Get Current User
|
|
@@ -65,6 +79,7 @@ def sync_detailed(
|
|
|
65
79
|
Returns information about the currently authenticated user.
|
|
66
80
|
|
|
67
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
68
83
|
authorization (Union[None, Unset, str]):
|
|
69
84
|
|
|
70
85
|
Raises:
|
|
@@ -76,6 +91,7 @@ def sync_detailed(
|
|
|
76
91
|
"""
|
|
77
92
|
|
|
78
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
79
95
|
authorization=authorization,
|
|
80
96
|
)
|
|
81
97
|
|
|
@@ -89,6 +105,7 @@ def sync_detailed(
|
|
|
89
105
|
def sync(
|
|
90
106
|
*,
|
|
91
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
92
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
93
110
|
) -> Optional[Union[HTTPValidationError, UserResponse]]:
|
|
94
111
|
"""Get Current User
|
|
@@ -96,6 +113,7 @@ def sync(
|
|
|
96
113
|
Returns information about the currently authenticated user.
|
|
97
114
|
|
|
98
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
99
117
|
authorization (Union[None, Unset, str]):
|
|
100
118
|
|
|
101
119
|
Raises:
|
|
@@ -108,6 +126,7 @@ def sync(
|
|
|
108
126
|
|
|
109
127
|
return sync_detailed(
|
|
110
128
|
client=client,
|
|
129
|
+
token=token,
|
|
111
130
|
authorization=authorization,
|
|
112
131
|
).parsed
|
|
113
132
|
|
|
@@ -115,6 +134,7 @@ def sync(
|
|
|
115
134
|
async def asyncio_detailed(
|
|
116
135
|
*,
|
|
117
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
118
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
119
139
|
) -> Response[Union[HTTPValidationError, UserResponse]]:
|
|
120
140
|
"""Get Current User
|
|
@@ -122,6 +142,7 @@ async def asyncio_detailed(
|
|
|
122
142
|
Returns information about the currently authenticated user.
|
|
123
143
|
|
|
124
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
146
|
authorization (Union[None, Unset, str]):
|
|
126
147
|
|
|
127
148
|
Raises:
|
|
@@ -133,6 +154,7 @@ async def asyncio_detailed(
|
|
|
133
154
|
"""
|
|
134
155
|
|
|
135
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
136
158
|
authorization=authorization,
|
|
137
159
|
)
|
|
138
160
|
|
|
@@ -144,6 +166,7 @@ async def asyncio_detailed(
|
|
|
144
166
|
async def asyncio(
|
|
145
167
|
*,
|
|
146
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
147
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
148
171
|
) -> Optional[Union[HTTPValidationError, UserResponse]]:
|
|
149
172
|
"""Get Current User
|
|
@@ -151,6 +174,7 @@ async def asyncio(
|
|
|
151
174
|
Returns information about the currently authenticated user.
|
|
152
175
|
|
|
153
176
|
Args:
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
154
178
|
authorization (Union[None, Unset, str]):
|
|
155
179
|
|
|
156
180
|
Raises:
|
|
@@ -164,6 +188,7 @@ async def asyncio(
|
|
|
164
188
|
return (
|
|
165
189
|
await asyncio_detailed(
|
|
166
190
|
client=client,
|
|
191
|
+
token=token,
|
|
167
192
|
authorization=authorization,
|
|
168
193
|
)
|
|
169
194
|
).parsed
|
|
@@ -12,15 +12,28 @@ from ...types import UNSET, Response, Unset
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
+
token: Union[None, Unset, str] = UNSET,
|
|
15
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
16
17
|
) -> dict[str, Any]:
|
|
17
18
|
headers: dict[str, Any] = {}
|
|
18
19
|
if not isinstance(authorization, Unset):
|
|
19
20
|
headers["authorization"] = authorization
|
|
20
21
|
|
|
22
|
+
params: dict[str, Any] = {}
|
|
23
|
+
|
|
24
|
+
json_token: Union[None, Unset, str]
|
|
25
|
+
if isinstance(token, Unset):
|
|
26
|
+
json_token = UNSET
|
|
27
|
+
else:
|
|
28
|
+
json_token = token
|
|
29
|
+
params["token"] = json_token
|
|
30
|
+
|
|
31
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
32
|
+
|
|
21
33
|
_kwargs: dict[str, Any] = {
|
|
22
34
|
"method": "get",
|
|
23
35
|
"url": "/v1/user/graphs",
|
|
36
|
+
"params": params,
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
_kwargs["headers"] = headers
|
|
@@ -58,6 +71,7 @@ def _build_response(
|
|
|
58
71
|
def sync_detailed(
|
|
59
72
|
*,
|
|
60
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
61
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
62
76
|
) -> Response[Union[HTTPValidationError, UserGraphsResponse]]:
|
|
63
77
|
"""Get User Graphs
|
|
@@ -65,6 +79,7 @@ def sync_detailed(
|
|
|
65
79
|
Get all graph databases accessible to the current user.
|
|
66
80
|
|
|
67
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
68
83
|
authorization (Union[None, Unset, str]):
|
|
69
84
|
|
|
70
85
|
Raises:
|
|
@@ -76,6 +91,7 @@ def sync_detailed(
|
|
|
76
91
|
"""
|
|
77
92
|
|
|
78
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
79
95
|
authorization=authorization,
|
|
80
96
|
)
|
|
81
97
|
|
|
@@ -89,6 +105,7 @@ def sync_detailed(
|
|
|
89
105
|
def sync(
|
|
90
106
|
*,
|
|
91
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
92
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
93
110
|
) -> Optional[Union[HTTPValidationError, UserGraphsResponse]]:
|
|
94
111
|
"""Get User Graphs
|
|
@@ -96,6 +113,7 @@ def sync(
|
|
|
96
113
|
Get all graph databases accessible to the current user.
|
|
97
114
|
|
|
98
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
99
117
|
authorization (Union[None, Unset, str]):
|
|
100
118
|
|
|
101
119
|
Raises:
|
|
@@ -108,6 +126,7 @@ def sync(
|
|
|
108
126
|
|
|
109
127
|
return sync_detailed(
|
|
110
128
|
client=client,
|
|
129
|
+
token=token,
|
|
111
130
|
authorization=authorization,
|
|
112
131
|
).parsed
|
|
113
132
|
|
|
@@ -115,6 +134,7 @@ def sync(
|
|
|
115
134
|
async def asyncio_detailed(
|
|
116
135
|
*,
|
|
117
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
118
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
119
139
|
) -> Response[Union[HTTPValidationError, UserGraphsResponse]]:
|
|
120
140
|
"""Get User Graphs
|
|
@@ -122,6 +142,7 @@ async def asyncio_detailed(
|
|
|
122
142
|
Get all graph databases accessible to the current user.
|
|
123
143
|
|
|
124
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
146
|
authorization (Union[None, Unset, str]):
|
|
126
147
|
|
|
127
148
|
Raises:
|
|
@@ -133,6 +154,7 @@ async def asyncio_detailed(
|
|
|
133
154
|
"""
|
|
134
155
|
|
|
135
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
136
158
|
authorization=authorization,
|
|
137
159
|
)
|
|
138
160
|
|
|
@@ -144,6 +166,7 @@ async def asyncio_detailed(
|
|
|
144
166
|
async def asyncio(
|
|
145
167
|
*,
|
|
146
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
147
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
148
171
|
) -> Optional[Union[HTTPValidationError, UserGraphsResponse]]:
|
|
149
172
|
"""Get User Graphs
|
|
@@ -151,6 +174,7 @@ async def asyncio(
|
|
|
151
174
|
Get all graph databases accessible to the current user.
|
|
152
175
|
|
|
153
176
|
Args:
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
154
178
|
authorization (Union[None, Unset, str]):
|
|
155
179
|
|
|
156
180
|
Raises:
|
|
@@ -164,6 +188,7 @@ async def asyncio(
|
|
|
164
188
|
return (
|
|
165
189
|
await asyncio_detailed(
|
|
166
190
|
client=client,
|
|
191
|
+
token=token,
|
|
167
192
|
authorization=authorization,
|
|
168
193
|
)
|
|
169
194
|
).parsed
|
|
@@ -12,15 +12,28 @@ from ...types import UNSET, Response, Unset
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
+
token: Union[None, Unset, str] = UNSET,
|
|
15
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
16
17
|
) -> dict[str, Any]:
|
|
17
18
|
headers: dict[str, Any] = {}
|
|
18
19
|
if not isinstance(authorization, Unset):
|
|
19
20
|
headers["authorization"] = authorization
|
|
20
21
|
|
|
22
|
+
params: dict[str, Any] = {}
|
|
23
|
+
|
|
24
|
+
json_token: Union[None, Unset, str]
|
|
25
|
+
if isinstance(token, Unset):
|
|
26
|
+
json_token = UNSET
|
|
27
|
+
else:
|
|
28
|
+
json_token = token
|
|
29
|
+
params["token"] = json_token
|
|
30
|
+
|
|
31
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
32
|
+
|
|
21
33
|
_kwargs: dict[str, Any] = {
|
|
22
34
|
"method": "get",
|
|
23
35
|
"url": "/v1/user/api-keys",
|
|
36
|
+
"params": params,
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
_kwargs["headers"] = headers
|
|
@@ -58,6 +71,7 @@ def _build_response(
|
|
|
58
71
|
def sync_detailed(
|
|
59
72
|
*,
|
|
60
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
61
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
62
76
|
) -> Response[Union[APIKeysResponse, HTTPValidationError]]:
|
|
63
77
|
"""List API Keys
|
|
@@ -65,6 +79,7 @@ def sync_detailed(
|
|
|
65
79
|
Get all API keys for the current user.
|
|
66
80
|
|
|
67
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
68
83
|
authorization (Union[None, Unset, str]):
|
|
69
84
|
|
|
70
85
|
Raises:
|
|
@@ -76,6 +91,7 @@ def sync_detailed(
|
|
|
76
91
|
"""
|
|
77
92
|
|
|
78
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
79
95
|
authorization=authorization,
|
|
80
96
|
)
|
|
81
97
|
|
|
@@ -89,6 +105,7 @@ def sync_detailed(
|
|
|
89
105
|
def sync(
|
|
90
106
|
*,
|
|
91
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
92
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
93
110
|
) -> Optional[Union[APIKeysResponse, HTTPValidationError]]:
|
|
94
111
|
"""List API Keys
|
|
@@ -96,6 +113,7 @@ def sync(
|
|
|
96
113
|
Get all API keys for the current user.
|
|
97
114
|
|
|
98
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
99
117
|
authorization (Union[None, Unset, str]):
|
|
100
118
|
|
|
101
119
|
Raises:
|
|
@@ -108,6 +126,7 @@ def sync(
|
|
|
108
126
|
|
|
109
127
|
return sync_detailed(
|
|
110
128
|
client=client,
|
|
129
|
+
token=token,
|
|
111
130
|
authorization=authorization,
|
|
112
131
|
).parsed
|
|
113
132
|
|
|
@@ -115,6 +134,7 @@ def sync(
|
|
|
115
134
|
async def asyncio_detailed(
|
|
116
135
|
*,
|
|
117
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
118
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
119
139
|
) -> Response[Union[APIKeysResponse, HTTPValidationError]]:
|
|
120
140
|
"""List API Keys
|
|
@@ -122,6 +142,7 @@ async def asyncio_detailed(
|
|
|
122
142
|
Get all API keys for the current user.
|
|
123
143
|
|
|
124
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
146
|
authorization (Union[None, Unset, str]):
|
|
126
147
|
|
|
127
148
|
Raises:
|
|
@@ -133,6 +154,7 @@ async def asyncio_detailed(
|
|
|
133
154
|
"""
|
|
134
155
|
|
|
135
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
136
158
|
authorization=authorization,
|
|
137
159
|
)
|
|
138
160
|
|
|
@@ -144,6 +166,7 @@ async def asyncio_detailed(
|
|
|
144
166
|
async def asyncio(
|
|
145
167
|
*,
|
|
146
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
147
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
148
171
|
) -> Optional[Union[APIKeysResponse, HTTPValidationError]]:
|
|
149
172
|
"""List API Keys
|
|
@@ -151,6 +174,7 @@ async def asyncio(
|
|
|
151
174
|
Get all API keys for the current user.
|
|
152
175
|
|
|
153
176
|
Args:
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
154
178
|
authorization (Union[None, Unset, str]):
|
|
155
179
|
|
|
156
180
|
Raises:
|
|
@@ -164,6 +188,7 @@ async def asyncio(
|
|
|
164
188
|
return (
|
|
165
189
|
await asyncio_detailed(
|
|
166
190
|
client=client,
|
|
191
|
+
token=token,
|
|
167
192
|
authorization=authorization,
|
|
168
193
|
)
|
|
169
194
|
).parsed
|
|
@@ -14,15 +14,28 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
api_key_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": "delete",
|
|
25
37
|
"url": f"/v1/user/api-keys/{api_key_id}",
|
|
38
|
+
"params": params,
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
_kwargs["headers"] = headers
|
|
@@ -69,6 +82,7 @@ def sync_detailed(
|
|
|
69
82
|
api_key_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[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
74
88
|
"""Revoke API Key
|
|
@@ -77,6 +91,7 @@ def sync_detailed(
|
|
|
77
91
|
|
|
78
92
|
Args:
|
|
79
93
|
api_key_id (str):
|
|
94
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
80
95
|
authorization (Union[None, Unset, str]):
|
|
81
96
|
|
|
82
97
|
Raises:
|
|
@@ -89,6 +104,7 @@ def sync_detailed(
|
|
|
89
104
|
|
|
90
105
|
kwargs = _get_kwargs(
|
|
91
106
|
api_key_id=api_key_id,
|
|
107
|
+
token=token,
|
|
92
108
|
authorization=authorization,
|
|
93
109
|
)
|
|
94
110
|
|
|
@@ -103,6 +119,7 @@ def sync(
|
|
|
103
119
|
api_key_id: str,
|
|
104
120
|
*,
|
|
105
121
|
client: AuthenticatedClient,
|
|
122
|
+
token: Union[None, Unset, str] = UNSET,
|
|
106
123
|
authorization: Union[None, Unset, str] = UNSET,
|
|
107
124
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
108
125
|
"""Revoke API Key
|
|
@@ -111,6 +128,7 @@ def sync(
|
|
|
111
128
|
|
|
112
129
|
Args:
|
|
113
130
|
api_key_id (str):
|
|
131
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
114
132
|
authorization (Union[None, Unset, str]):
|
|
115
133
|
|
|
116
134
|
Raises:
|
|
@@ -124,6 +142,7 @@ def sync(
|
|
|
124
142
|
return sync_detailed(
|
|
125
143
|
api_key_id=api_key_id,
|
|
126
144
|
client=client,
|
|
145
|
+
token=token,
|
|
127
146
|
authorization=authorization,
|
|
128
147
|
).parsed
|
|
129
148
|
|
|
@@ -132,6 +151,7 @@ async def asyncio_detailed(
|
|
|
132
151
|
api_key_id: str,
|
|
133
152
|
*,
|
|
134
153
|
client: AuthenticatedClient,
|
|
154
|
+
token: Union[None, Unset, str] = UNSET,
|
|
135
155
|
authorization: Union[None, Unset, str] = UNSET,
|
|
136
156
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
137
157
|
"""Revoke API Key
|
|
@@ -140,6 +160,7 @@ async def asyncio_detailed(
|
|
|
140
160
|
|
|
141
161
|
Args:
|
|
142
162
|
api_key_id (str):
|
|
163
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
143
164
|
authorization (Union[None, Unset, str]):
|
|
144
165
|
|
|
145
166
|
Raises:
|
|
@@ -152,6 +173,7 @@ async def asyncio_detailed(
|
|
|
152
173
|
|
|
153
174
|
kwargs = _get_kwargs(
|
|
154
175
|
api_key_id=api_key_id,
|
|
176
|
+
token=token,
|
|
155
177
|
authorization=authorization,
|
|
156
178
|
)
|
|
157
179
|
|
|
@@ -164,6 +186,7 @@ async def asyncio(
|
|
|
164
186
|
api_key_id: str,
|
|
165
187
|
*,
|
|
166
188
|
client: AuthenticatedClient,
|
|
189
|
+
token: Union[None, Unset, str] = UNSET,
|
|
167
190
|
authorization: Union[None, Unset, str] = UNSET,
|
|
168
191
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
169
192
|
"""Revoke API Key
|
|
@@ -172,6 +195,7 @@ async def asyncio(
|
|
|
172
195
|
|
|
173
196
|
Args:
|
|
174
197
|
api_key_id (str):
|
|
198
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
175
199
|
authorization (Union[None, Unset, str]):
|
|
176
200
|
|
|
177
201
|
Raises:
|
|
@@ -186,6 +210,7 @@ async def asyncio(
|
|
|
186
210
|
await asyncio_detailed(
|
|
187
211
|
api_key_id=api_key_id,
|
|
188
212
|
client=client,
|
|
213
|
+
token=token,
|
|
189
214
|
authorization=authorization,
|
|
190
215
|
)
|
|
191
216
|
).parsed
|