robosystems-client 0.2.2__py3-none-any.whl → 0.2.4__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/api/agent/auto_select_agent.py +1 -41
- robosystems_client/api/agent/batch_process_queries.py +1 -41
- robosystems_client/api/agent/execute_specific_agent.py +1 -41
- robosystems_client/api/agent/get_agent_metadata.py +5 -49
- robosystems_client/api/agent/list_agents.py +4 -42
- robosystems_client/api/agent/recommend_agent.py +5 -45
- robosystems_client/api/auth/generate_sso_token.py +0 -18
- robosystems_client/api/auth/get_current_auth_user.py +14 -74
- robosystems_client/api/auth/logout_user.py +14 -50
- robosystems_client/api/auth/refresh_auth_session.py +14 -50
- robosystems_client/api/auth/resend_verification_email.py +14 -74
- robosystems_client/api/backup/create_backup.py +5 -45
- robosystems_client/api/backup/get_backup_download_url.py +4 -42
- robosystems_client/api/backup/get_backup_stats.py +5 -49
- robosystems_client/api/backup/list_backups.py +4 -42
- robosystems_client/api/backup/restore_backup.py +5 -45
- robosystems_client/api/connections/create_connection.py +5 -45
- robosystems_client/api/connections/create_link_token.py +5 -45
- robosystems_client/api/connections/delete_connection.py +5 -49
- robosystems_client/api/connections/exchange_link_token.py +5 -45
- robosystems_client/api/connections/get_connection.py +5 -49
- robosystems_client/api/connections/get_connection_options.py +5 -49
- robosystems_client/api/connections/init_o_auth.py +5 -45
- robosystems_client/api/connections/list_connections.py +4 -42
- robosystems_client/api/connections/oauth_callback.py +5 -45
- robosystems_client/api/connections/sync_connection.py +5 -45
- robosystems_client/api/graph_analytics/get_graph_metrics.py +5 -49
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +4 -42
- robosystems_client/api/graph_billing/get_current_graph_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_billing_history.py +4 -42
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_usage_details.py +4 -42
- robosystems_client/api/graph_credits/check_credit_balance.py +0 -38
- robosystems_client/api/graph_credits/check_storage_limits.py +1 -45
- robosystems_client/api/graph_credits/get_credit_summary.py +1 -45
- robosystems_client/api/graph_credits/get_storage_usage.py +0 -38
- robosystems_client/api/graph_credits/list_credit_transactions.py +4 -42
- robosystems_client/api/graph_health/get_database_health.py +5 -49
- robosystems_client/api/graph_info/get_database_info.py +5 -49
- robosystems_client/api/graph_limits/get_graph_limits.py +5 -49
- robosystems_client/api/graphs/create_graph.py +21 -57
- robosystems_client/api/graphs/get_available_extensions.py +131 -15
- robosystems_client/api/graphs/get_graphs.py +154 -79
- robosystems_client/api/graphs/select_graph.py +117 -49
- robosystems_client/api/mcp/call_mcp_tool.py +24 -47
- robosystems_client/api/mcp/list_mcp_tools.py +13 -61
- robosystems_client/api/operations/cancel_operation.py +1 -45
- robosystems_client/api/operations/get_operation_status.py +1 -45
- robosystems_client/api/query/execute_cypher_query.py +68 -57
- robosystems_client/api/schema/export_graph_schema.py +223 -65
- robosystems_client/api/schema/get_graph_schema.py +137 -79
- robosystems_client/api/schema/validate_schema.py +5 -45
- robosystems_client/api/subgraphs/create_subgraph.py +5 -45
- robosystems_client/api/subgraphs/delete_subgraph.py +5 -45
- robosystems_client/api/subgraphs/get_subgraph_info.py +5 -49
- robosystems_client/api/subgraphs/get_subgraph_quota.py +5 -49
- robosystems_client/api/subgraphs/list_subgraphs.py +5 -49
- robosystems_client/api/tables/delete_file.py +317 -0
- robosystems_client/api/tables/get_file_info.py +249 -0
- robosystems_client/api/tables/get_upload_url.py +352 -0
- robosystems_client/api/tables/ingest_tables.py +428 -0
- robosystems_client/api/tables/list_table_files.py +329 -0
- robosystems_client/api/tables/list_tables.py +316 -0
- robosystems_client/api/tables/query_tables.py +431 -0
- robosystems_client/api/tables/update_file_status.py +395 -0
- robosystems_client/api/user/create_user_api_key.py +1 -41
- robosystems_client/api/user/get_all_credit_summaries.py +14 -111
- robosystems_client/api/user/get_current_user.py +14 -75
- robosystems_client/api/user/list_user_api_keys.py +14 -75
- robosystems_client/api/user/revoke_user_api_key.py +1 -45
- robosystems_client/api/user/update_user.py +1 -41
- robosystems_client/api/user/update_user_api_key.py +1 -41
- robosystems_client/api/user/update_user_password.py +1 -41
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -38
- robosystems_client/api/user_analytics/get_user_usage_overview.py +14 -75
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +14 -105
- robosystems_client/api/user_limits/get_shared_repository_limits.py +1 -45
- robosystems_client/api/user_limits/get_user_limits.py +14 -75
- robosystems_client/api/user_limits/get_user_usage.py +14 -75
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +1 -45
- robosystems_client/api/user_subscriptions/get_repository_credits.py +1 -45
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +14 -75
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -38
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +1 -41
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +1 -41
- robosystems_client/extensions/__init__.py +8 -1
- robosystems_client/extensions/auth_integration.py +1 -2
- robosystems_client/extensions/graph_client.py +5 -0
- robosystems_client/extensions/query_client.py +3 -2
- robosystems_client/extensions/sse_client.py +1 -1
- robosystems_client/extensions/table_ingest_client.py +36 -40
- robosystems_client/extensions/utils.py +2 -2
- robosystems_client/models/__init__.py +17 -21
- robosystems_client/models/create_graph_request.py +15 -3
- robosystems_client/models/cypher_query_request.py +5 -22
- robosystems_client/models/{delete_file_v1_graphs_graph_id_tables_files_file_id_delete_response_delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py → delete_file_response.py} +45 -9
- robosystems_client/models/file_info.py +169 -0
- robosystems_client/models/file_status_update.py +41 -0
- robosystems_client/models/get_file_info_response.py +205 -0
- robosystems_client/models/list_table_files_response.py +105 -0
- robosystems_client/models/schema_export_response.py +4 -2
- robosystems_client/models/schema_info_response.py +77 -0
- robosystems_client/models/{get_graph_schema_response_getgraphschema.py → schema_info_response_schema.py} +6 -6
- robosystems_client/models/schema_validation_response.py +7 -6
- robosystems_client/models/table_query_request.py +37 -2
- robosystems_client/models/{get_file_info_v1_graphs_graph_id_tables_files_file_id_get_response_get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py → update_file_status_response_updatefilestatus.py} +5 -8
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +110 -108
- robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +0 -287
- robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +0 -283
- robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +0 -260
- robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +0 -251
- robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -283
- robosystems_client/api/tables/list_tables_v1_graphs_graph_id_tables_get.py +0 -224
- robosystems_client/api/tables/query_tables_v1_graphs_graph_id_tables_query_post.py +0 -247
- robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -306
- robosystems_client/models/file_update_request.py +0 -62
- robosystems_client/models/list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -47
- robosystems_client/models/update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -47
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -8,37 +8,17 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.error_response import ErrorResponse
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
10
|
from ...models.success_response import SuccessResponse
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
api_key_id: str,
|
|
16
|
-
*,
|
|
17
|
-
token: Union[None, Unset, str] = UNSET,
|
|
18
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
19
16
|
) -> dict[str, Any]:
|
|
20
|
-
headers: dict[str, Any] = {}
|
|
21
|
-
if not isinstance(authorization, Unset):
|
|
22
|
-
headers["authorization"] = authorization
|
|
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
|
-
|
|
35
17
|
_kwargs: dict[str, Any] = {
|
|
36
18
|
"method": "delete",
|
|
37
19
|
"url": f"/v1/user/api-keys/{api_key_id}",
|
|
38
|
-
"params": params,
|
|
39
20
|
}
|
|
40
21
|
|
|
41
|
-
_kwargs["headers"] = headers
|
|
42
22
|
return _kwargs
|
|
43
23
|
|
|
44
24
|
|
|
@@ -86,8 +66,6 @@ def sync_detailed(
|
|
|
86
66
|
api_key_id: str,
|
|
87
67
|
*,
|
|
88
68
|
client: AuthenticatedClient,
|
|
89
|
-
token: Union[None, Unset, str] = UNSET,
|
|
90
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
91
69
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
92
70
|
"""Revoke API Key
|
|
93
71
|
|
|
@@ -95,8 +73,6 @@ def sync_detailed(
|
|
|
95
73
|
|
|
96
74
|
Args:
|
|
97
75
|
api_key_id (str):
|
|
98
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
99
|
-
authorization (Union[None, Unset, str]):
|
|
100
76
|
|
|
101
77
|
Raises:
|
|
102
78
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -108,8 +84,6 @@ def sync_detailed(
|
|
|
108
84
|
|
|
109
85
|
kwargs = _get_kwargs(
|
|
110
86
|
api_key_id=api_key_id,
|
|
111
|
-
token=token,
|
|
112
|
-
authorization=authorization,
|
|
113
87
|
)
|
|
114
88
|
|
|
115
89
|
response = client.get_httpx_client().request(
|
|
@@ -123,8 +97,6 @@ def sync(
|
|
|
123
97
|
api_key_id: str,
|
|
124
98
|
*,
|
|
125
99
|
client: AuthenticatedClient,
|
|
126
|
-
token: Union[None, Unset, str] = UNSET,
|
|
127
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
128
100
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
129
101
|
"""Revoke API Key
|
|
130
102
|
|
|
@@ -132,8 +104,6 @@ def sync(
|
|
|
132
104
|
|
|
133
105
|
Args:
|
|
134
106
|
api_key_id (str):
|
|
135
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
136
|
-
authorization (Union[None, Unset, str]):
|
|
137
107
|
|
|
138
108
|
Raises:
|
|
139
109
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -146,8 +116,6 @@ def sync(
|
|
|
146
116
|
return sync_detailed(
|
|
147
117
|
api_key_id=api_key_id,
|
|
148
118
|
client=client,
|
|
149
|
-
token=token,
|
|
150
|
-
authorization=authorization,
|
|
151
119
|
).parsed
|
|
152
120
|
|
|
153
121
|
|
|
@@ -155,8 +123,6 @@ async def asyncio_detailed(
|
|
|
155
123
|
api_key_id: str,
|
|
156
124
|
*,
|
|
157
125
|
client: AuthenticatedClient,
|
|
158
|
-
token: Union[None, Unset, str] = UNSET,
|
|
159
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
160
126
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
161
127
|
"""Revoke API Key
|
|
162
128
|
|
|
@@ -164,8 +130,6 @@ async def asyncio_detailed(
|
|
|
164
130
|
|
|
165
131
|
Args:
|
|
166
132
|
api_key_id (str):
|
|
167
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
168
|
-
authorization (Union[None, Unset, str]):
|
|
169
133
|
|
|
170
134
|
Raises:
|
|
171
135
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -177,8 +141,6 @@ async def asyncio_detailed(
|
|
|
177
141
|
|
|
178
142
|
kwargs = _get_kwargs(
|
|
179
143
|
api_key_id=api_key_id,
|
|
180
|
-
token=token,
|
|
181
|
-
authorization=authorization,
|
|
182
144
|
)
|
|
183
145
|
|
|
184
146
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -190,8 +152,6 @@ async def asyncio(
|
|
|
190
152
|
api_key_id: str,
|
|
191
153
|
*,
|
|
192
154
|
client: AuthenticatedClient,
|
|
193
|
-
token: Union[None, Unset, str] = UNSET,
|
|
194
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
195
155
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
196
156
|
"""Revoke API Key
|
|
197
157
|
|
|
@@ -199,8 +159,6 @@ async def asyncio(
|
|
|
199
159
|
|
|
200
160
|
Args:
|
|
201
161
|
api_key_id (str):
|
|
202
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
203
|
-
authorization (Union[None, Unset, str]):
|
|
204
162
|
|
|
205
163
|
Raises:
|
|
206
164
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -214,7 +172,5 @@ async def asyncio(
|
|
|
214
172
|
await asyncio_detailed(
|
|
215
173
|
api_key_id=api_key_id,
|
|
216
174
|
client=client,
|
|
217
|
-
token=token,
|
|
218
|
-
authorization=authorization,
|
|
219
175
|
)
|
|
220
176
|
).parsed
|
|
@@ -8,34 +8,18 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.http_validation_error import HTTPValidationError
|
|
9
9
|
from ...models.update_user_request import UpdateUserRequest
|
|
10
10
|
from ...models.user_response import UserResponse
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
16
|
body: UpdateUserRequest,
|
|
17
|
-
token: Union[None, Unset, str] = UNSET,
|
|
18
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
19
17
|
) -> dict[str, Any]:
|
|
20
18
|
headers: dict[str, Any] = {}
|
|
21
|
-
if not isinstance(authorization, Unset):
|
|
22
|
-
headers["authorization"] = authorization
|
|
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
19
|
|
|
35
20
|
_kwargs: dict[str, Any] = {
|
|
36
21
|
"method": "put",
|
|
37
22
|
"url": "/v1/user",
|
|
38
|
-
"params": params,
|
|
39
23
|
}
|
|
40
24
|
|
|
41
25
|
_kwargs["json"] = body.to_dict()
|
|
@@ -80,16 +64,12 @@ def sync_detailed(
|
|
|
80
64
|
*,
|
|
81
65
|
client: AuthenticatedClient,
|
|
82
66
|
body: UpdateUserRequest,
|
|
83
|
-
token: Union[None, Unset, str] = UNSET,
|
|
84
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
85
67
|
) -> Response[Union[HTTPValidationError, UserResponse]]:
|
|
86
68
|
"""Update User Profile
|
|
87
69
|
|
|
88
70
|
Update the current user's profile information.
|
|
89
71
|
|
|
90
72
|
Args:
|
|
91
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
92
|
-
authorization (Union[None, Unset, str]):
|
|
93
73
|
body (UpdateUserRequest): Request model for updating user profile.
|
|
94
74
|
|
|
95
75
|
Raises:
|
|
@@ -102,8 +82,6 @@ def sync_detailed(
|
|
|
102
82
|
|
|
103
83
|
kwargs = _get_kwargs(
|
|
104
84
|
body=body,
|
|
105
|
-
token=token,
|
|
106
|
-
authorization=authorization,
|
|
107
85
|
)
|
|
108
86
|
|
|
109
87
|
response = client.get_httpx_client().request(
|
|
@@ -117,16 +95,12 @@ def sync(
|
|
|
117
95
|
*,
|
|
118
96
|
client: AuthenticatedClient,
|
|
119
97
|
body: UpdateUserRequest,
|
|
120
|
-
token: Union[None, Unset, str] = UNSET,
|
|
121
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
122
98
|
) -> Optional[Union[HTTPValidationError, UserResponse]]:
|
|
123
99
|
"""Update User Profile
|
|
124
100
|
|
|
125
101
|
Update the current user's profile information.
|
|
126
102
|
|
|
127
103
|
Args:
|
|
128
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
129
|
-
authorization (Union[None, Unset, str]):
|
|
130
104
|
body (UpdateUserRequest): Request model for updating user profile.
|
|
131
105
|
|
|
132
106
|
Raises:
|
|
@@ -140,8 +114,6 @@ def sync(
|
|
|
140
114
|
return sync_detailed(
|
|
141
115
|
client=client,
|
|
142
116
|
body=body,
|
|
143
|
-
token=token,
|
|
144
|
-
authorization=authorization,
|
|
145
117
|
).parsed
|
|
146
118
|
|
|
147
119
|
|
|
@@ -149,16 +121,12 @@ async def asyncio_detailed(
|
|
|
149
121
|
*,
|
|
150
122
|
client: AuthenticatedClient,
|
|
151
123
|
body: UpdateUserRequest,
|
|
152
|
-
token: Union[None, Unset, str] = UNSET,
|
|
153
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
154
124
|
) -> Response[Union[HTTPValidationError, UserResponse]]:
|
|
155
125
|
"""Update User Profile
|
|
156
126
|
|
|
157
127
|
Update the current user's profile information.
|
|
158
128
|
|
|
159
129
|
Args:
|
|
160
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
161
|
-
authorization (Union[None, Unset, str]):
|
|
162
130
|
body (UpdateUserRequest): Request model for updating user profile.
|
|
163
131
|
|
|
164
132
|
Raises:
|
|
@@ -171,8 +139,6 @@ async def asyncio_detailed(
|
|
|
171
139
|
|
|
172
140
|
kwargs = _get_kwargs(
|
|
173
141
|
body=body,
|
|
174
|
-
token=token,
|
|
175
|
-
authorization=authorization,
|
|
176
142
|
)
|
|
177
143
|
|
|
178
144
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -184,16 +150,12 @@ async def asyncio(
|
|
|
184
150
|
*,
|
|
185
151
|
client: AuthenticatedClient,
|
|
186
152
|
body: UpdateUserRequest,
|
|
187
|
-
token: Union[None, Unset, str] = UNSET,
|
|
188
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
189
153
|
) -> Optional[Union[HTTPValidationError, UserResponse]]:
|
|
190
154
|
"""Update User Profile
|
|
191
155
|
|
|
192
156
|
Update the current user's profile information.
|
|
193
157
|
|
|
194
158
|
Args:
|
|
195
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
196
|
-
authorization (Union[None, Unset, str]):
|
|
197
159
|
body (UpdateUserRequest): Request model for updating user profile.
|
|
198
160
|
|
|
199
161
|
Raises:
|
|
@@ -208,7 +170,5 @@ async def asyncio(
|
|
|
208
170
|
await asyncio_detailed(
|
|
209
171
|
client=client,
|
|
210
172
|
body=body,
|
|
211
|
-
token=token,
|
|
212
|
-
authorization=authorization,
|
|
213
173
|
)
|
|
214
174
|
).parsed
|
|
@@ -8,35 +8,19 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.api_key_info import APIKeyInfo
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
10
|
from ...models.update_api_key_request import UpdateAPIKeyRequest
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
api_key_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: UpdateAPIKeyRequest,
|
|
18
|
-
token: Union[None, Unset, str] = UNSET,
|
|
19
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
20
18
|
) -> dict[str, Any]:
|
|
21
19
|
headers: dict[str, Any] = {}
|
|
22
|
-
if not isinstance(authorization, Unset):
|
|
23
|
-
headers["authorization"] = authorization
|
|
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
20
|
|
|
36
21
|
_kwargs: dict[str, Any] = {
|
|
37
22
|
"method": "put",
|
|
38
23
|
"url": f"/v1/user/api-keys/{api_key_id}",
|
|
39
|
-
"params": params,
|
|
40
24
|
}
|
|
41
25
|
|
|
42
26
|
_kwargs["json"] = body.to_dict()
|
|
@@ -82,8 +66,6 @@ def sync_detailed(
|
|
|
82
66
|
*,
|
|
83
67
|
client: AuthenticatedClient,
|
|
84
68
|
body: UpdateAPIKeyRequest,
|
|
85
|
-
token: Union[None, Unset, str] = UNSET,
|
|
86
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
87
69
|
) -> Response[Union[APIKeyInfo, HTTPValidationError]]:
|
|
88
70
|
"""Update API Key
|
|
89
71
|
|
|
@@ -91,8 +73,6 @@ def sync_detailed(
|
|
|
91
73
|
|
|
92
74
|
Args:
|
|
93
75
|
api_key_id (str):
|
|
94
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
95
|
-
authorization (Union[None, Unset, str]):
|
|
96
76
|
body (UpdateAPIKeyRequest): Request model for updating an API key.
|
|
97
77
|
|
|
98
78
|
Raises:
|
|
@@ -106,8 +86,6 @@ def sync_detailed(
|
|
|
106
86
|
kwargs = _get_kwargs(
|
|
107
87
|
api_key_id=api_key_id,
|
|
108
88
|
body=body,
|
|
109
|
-
token=token,
|
|
110
|
-
authorization=authorization,
|
|
111
89
|
)
|
|
112
90
|
|
|
113
91
|
response = client.get_httpx_client().request(
|
|
@@ -122,8 +100,6 @@ def sync(
|
|
|
122
100
|
*,
|
|
123
101
|
client: AuthenticatedClient,
|
|
124
102
|
body: UpdateAPIKeyRequest,
|
|
125
|
-
token: Union[None, Unset, str] = UNSET,
|
|
126
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
127
103
|
) -> Optional[Union[APIKeyInfo, HTTPValidationError]]:
|
|
128
104
|
"""Update API Key
|
|
129
105
|
|
|
@@ -131,8 +107,6 @@ def sync(
|
|
|
131
107
|
|
|
132
108
|
Args:
|
|
133
109
|
api_key_id (str):
|
|
134
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
135
|
-
authorization (Union[None, Unset, str]):
|
|
136
110
|
body (UpdateAPIKeyRequest): Request model for updating an API key.
|
|
137
111
|
|
|
138
112
|
Raises:
|
|
@@ -147,8 +121,6 @@ def sync(
|
|
|
147
121
|
api_key_id=api_key_id,
|
|
148
122
|
client=client,
|
|
149
123
|
body=body,
|
|
150
|
-
token=token,
|
|
151
|
-
authorization=authorization,
|
|
152
124
|
).parsed
|
|
153
125
|
|
|
154
126
|
|
|
@@ -157,8 +129,6 @@ async def asyncio_detailed(
|
|
|
157
129
|
*,
|
|
158
130
|
client: AuthenticatedClient,
|
|
159
131
|
body: UpdateAPIKeyRequest,
|
|
160
|
-
token: Union[None, Unset, str] = UNSET,
|
|
161
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
162
132
|
) -> Response[Union[APIKeyInfo, HTTPValidationError]]:
|
|
163
133
|
"""Update API Key
|
|
164
134
|
|
|
@@ -166,8 +136,6 @@ async def asyncio_detailed(
|
|
|
166
136
|
|
|
167
137
|
Args:
|
|
168
138
|
api_key_id (str):
|
|
169
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
170
|
-
authorization (Union[None, Unset, str]):
|
|
171
139
|
body (UpdateAPIKeyRequest): Request model for updating an API key.
|
|
172
140
|
|
|
173
141
|
Raises:
|
|
@@ -181,8 +149,6 @@ async def asyncio_detailed(
|
|
|
181
149
|
kwargs = _get_kwargs(
|
|
182
150
|
api_key_id=api_key_id,
|
|
183
151
|
body=body,
|
|
184
|
-
token=token,
|
|
185
|
-
authorization=authorization,
|
|
186
152
|
)
|
|
187
153
|
|
|
188
154
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -195,8 +161,6 @@ async def asyncio(
|
|
|
195
161
|
*,
|
|
196
162
|
client: AuthenticatedClient,
|
|
197
163
|
body: UpdateAPIKeyRequest,
|
|
198
|
-
token: Union[None, Unset, str] = UNSET,
|
|
199
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
200
164
|
) -> Optional[Union[APIKeyInfo, HTTPValidationError]]:
|
|
201
165
|
"""Update API Key
|
|
202
166
|
|
|
@@ -204,8 +168,6 @@ async def asyncio(
|
|
|
204
168
|
|
|
205
169
|
Args:
|
|
206
170
|
api_key_id (str):
|
|
207
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
208
|
-
authorization (Union[None, Unset, str]):
|
|
209
171
|
body (UpdateAPIKeyRequest): Request model for updating an API key.
|
|
210
172
|
|
|
211
173
|
Raises:
|
|
@@ -221,7 +183,5 @@ async def asyncio(
|
|
|
221
183
|
api_key_id=api_key_id,
|
|
222
184
|
client=client,
|
|
223
185
|
body=body,
|
|
224
|
-
token=token,
|
|
225
|
-
authorization=authorization,
|
|
226
186
|
)
|
|
227
187
|
).parsed
|
|
@@ -9,34 +9,18 @@ from ...models.error_response import ErrorResponse
|
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
10
|
from ...models.success_response import SuccessResponse
|
|
11
11
|
from ...models.update_password_request import UpdatePasswordRequest
|
|
12
|
-
from ...types import
|
|
12
|
+
from ...types import Response
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
*,
|
|
17
17
|
body: UpdatePasswordRequest,
|
|
18
|
-
token: Union[None, Unset, str] = UNSET,
|
|
19
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
20
18
|
) -> dict[str, Any]:
|
|
21
19
|
headers: dict[str, Any] = {}
|
|
22
|
-
if not isinstance(authorization, Unset):
|
|
23
|
-
headers["authorization"] = authorization
|
|
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
20
|
|
|
36
21
|
_kwargs: dict[str, Any] = {
|
|
37
22
|
"method": "put",
|
|
38
23
|
"url": "/v1/user/password",
|
|
39
|
-
"params": params,
|
|
40
24
|
}
|
|
41
25
|
|
|
42
26
|
_kwargs["json"] = body.to_dict()
|
|
@@ -96,16 +80,12 @@ def sync_detailed(
|
|
|
96
80
|
*,
|
|
97
81
|
client: AuthenticatedClient,
|
|
98
82
|
body: UpdatePasswordRequest,
|
|
99
|
-
token: Union[None, Unset, str] = UNSET,
|
|
100
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
101
83
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
102
84
|
"""Update Password
|
|
103
85
|
|
|
104
86
|
Update the current user's password.
|
|
105
87
|
|
|
106
88
|
Args:
|
|
107
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
108
|
-
authorization (Union[None, Unset, str]):
|
|
109
89
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
110
90
|
|
|
111
91
|
Raises:
|
|
@@ -118,8 +98,6 @@ def sync_detailed(
|
|
|
118
98
|
|
|
119
99
|
kwargs = _get_kwargs(
|
|
120
100
|
body=body,
|
|
121
|
-
token=token,
|
|
122
|
-
authorization=authorization,
|
|
123
101
|
)
|
|
124
102
|
|
|
125
103
|
response = client.get_httpx_client().request(
|
|
@@ -133,16 +111,12 @@ def sync(
|
|
|
133
111
|
*,
|
|
134
112
|
client: AuthenticatedClient,
|
|
135
113
|
body: UpdatePasswordRequest,
|
|
136
|
-
token: Union[None, Unset, str] = UNSET,
|
|
137
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
138
114
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
139
115
|
"""Update Password
|
|
140
116
|
|
|
141
117
|
Update the current user's password.
|
|
142
118
|
|
|
143
119
|
Args:
|
|
144
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
145
|
-
authorization (Union[None, Unset, str]):
|
|
146
120
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
147
121
|
|
|
148
122
|
Raises:
|
|
@@ -156,8 +130,6 @@ def sync(
|
|
|
156
130
|
return sync_detailed(
|
|
157
131
|
client=client,
|
|
158
132
|
body=body,
|
|
159
|
-
token=token,
|
|
160
|
-
authorization=authorization,
|
|
161
133
|
).parsed
|
|
162
134
|
|
|
163
135
|
|
|
@@ -165,16 +137,12 @@ async def asyncio_detailed(
|
|
|
165
137
|
*,
|
|
166
138
|
client: AuthenticatedClient,
|
|
167
139
|
body: UpdatePasswordRequest,
|
|
168
|
-
token: Union[None, Unset, str] = UNSET,
|
|
169
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
170
140
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
171
141
|
"""Update Password
|
|
172
142
|
|
|
173
143
|
Update the current user's password.
|
|
174
144
|
|
|
175
145
|
Args:
|
|
176
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
177
|
-
authorization (Union[None, Unset, str]):
|
|
178
146
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
179
147
|
|
|
180
148
|
Raises:
|
|
@@ -187,8 +155,6 @@ async def asyncio_detailed(
|
|
|
187
155
|
|
|
188
156
|
kwargs = _get_kwargs(
|
|
189
157
|
body=body,
|
|
190
|
-
token=token,
|
|
191
|
-
authorization=authorization,
|
|
192
158
|
)
|
|
193
159
|
|
|
194
160
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -200,16 +166,12 @@ async def asyncio(
|
|
|
200
166
|
*,
|
|
201
167
|
client: AuthenticatedClient,
|
|
202
168
|
body: UpdatePasswordRequest,
|
|
203
|
-
token: Union[None, Unset, str] = UNSET,
|
|
204
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
205
169
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
206
170
|
"""Update Password
|
|
207
171
|
|
|
208
172
|
Update the current user's password.
|
|
209
173
|
|
|
210
174
|
Args:
|
|
211
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
212
|
-
authorization (Union[None, Unset, str]):
|
|
213
175
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
214
176
|
|
|
215
177
|
Raises:
|
|
@@ -224,7 +186,5 @@ async def asyncio(
|
|
|
224
186
|
await asyncio_detailed(
|
|
225
187
|
client=client,
|
|
226
188
|
body=body,
|
|
227
|
-
token=token,
|
|
228
|
-
authorization=authorization,
|
|
229
189
|
)
|
|
230
190
|
).parsed
|
|
@@ -14,26 +14,13 @@ def _get_kwargs(
|
|
|
14
14
|
*,
|
|
15
15
|
include_api_stats: Union[Unset, bool] = True,
|
|
16
16
|
include_recent_activity: Union[Unset, bool] = True,
|
|
17
|
-
token: Union[None, Unset, str] = UNSET,
|
|
18
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
19
17
|
) -> dict[str, Any]:
|
|
20
|
-
headers: dict[str, Any] = {}
|
|
21
|
-
if not isinstance(authorization, Unset):
|
|
22
|
-
headers["authorization"] = authorization
|
|
23
|
-
|
|
24
18
|
params: dict[str, Any] = {}
|
|
25
19
|
|
|
26
20
|
params["include_api_stats"] = include_api_stats
|
|
27
21
|
|
|
28
22
|
params["include_recent_activity"] = include_recent_activity
|
|
29
23
|
|
|
30
|
-
json_token: Union[None, Unset, str]
|
|
31
|
-
if isinstance(token, Unset):
|
|
32
|
-
json_token = UNSET
|
|
33
|
-
else:
|
|
34
|
-
json_token = token
|
|
35
|
-
params["token"] = json_token
|
|
36
|
-
|
|
37
24
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
38
25
|
|
|
39
26
|
_kwargs: dict[str, Any] = {
|
|
@@ -42,7 +29,6 @@ def _get_kwargs(
|
|
|
42
29
|
"params": params,
|
|
43
30
|
}
|
|
44
31
|
|
|
45
|
-
_kwargs["headers"] = headers
|
|
46
32
|
return _kwargs
|
|
47
33
|
|
|
48
34
|
|
|
@@ -81,8 +67,6 @@ def sync_detailed(
|
|
|
81
67
|
client: AuthenticatedClient,
|
|
82
68
|
include_api_stats: Union[Unset, bool] = True,
|
|
83
69
|
include_recent_activity: Union[Unset, bool] = True,
|
|
84
|
-
token: Union[None, Unset, str] = UNSET,
|
|
85
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
86
70
|
) -> Response[Union[HTTPValidationError, UserAnalyticsResponse]]:
|
|
87
71
|
"""Get Detailed User Analytics
|
|
88
72
|
|
|
@@ -91,8 +75,6 @@ def sync_detailed(
|
|
|
91
75
|
Args:
|
|
92
76
|
include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
|
|
93
77
|
include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
|
|
94
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
95
|
-
authorization (Union[None, Unset, str]):
|
|
96
78
|
|
|
97
79
|
Raises:
|
|
98
80
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -105,8 +87,6 @@ def sync_detailed(
|
|
|
105
87
|
kwargs = _get_kwargs(
|
|
106
88
|
include_api_stats=include_api_stats,
|
|
107
89
|
include_recent_activity=include_recent_activity,
|
|
108
|
-
token=token,
|
|
109
|
-
authorization=authorization,
|
|
110
90
|
)
|
|
111
91
|
|
|
112
92
|
response = client.get_httpx_client().request(
|
|
@@ -121,8 +101,6 @@ def sync(
|
|
|
121
101
|
client: AuthenticatedClient,
|
|
122
102
|
include_api_stats: Union[Unset, bool] = True,
|
|
123
103
|
include_recent_activity: Union[Unset, bool] = True,
|
|
124
|
-
token: Union[None, Unset, str] = UNSET,
|
|
125
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
126
104
|
) -> Optional[Union[HTTPValidationError, UserAnalyticsResponse]]:
|
|
127
105
|
"""Get Detailed User Analytics
|
|
128
106
|
|
|
@@ -131,8 +109,6 @@ def sync(
|
|
|
131
109
|
Args:
|
|
132
110
|
include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
|
|
133
111
|
include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
|
|
134
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
135
|
-
authorization (Union[None, Unset, str]):
|
|
136
112
|
|
|
137
113
|
Raises:
|
|
138
114
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -146,8 +122,6 @@ def sync(
|
|
|
146
122
|
client=client,
|
|
147
123
|
include_api_stats=include_api_stats,
|
|
148
124
|
include_recent_activity=include_recent_activity,
|
|
149
|
-
token=token,
|
|
150
|
-
authorization=authorization,
|
|
151
125
|
).parsed
|
|
152
126
|
|
|
153
127
|
|
|
@@ -156,8 +130,6 @@ async def asyncio_detailed(
|
|
|
156
130
|
client: AuthenticatedClient,
|
|
157
131
|
include_api_stats: Union[Unset, bool] = True,
|
|
158
132
|
include_recent_activity: Union[Unset, bool] = True,
|
|
159
|
-
token: Union[None, Unset, str] = UNSET,
|
|
160
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
161
133
|
) -> Response[Union[HTTPValidationError, UserAnalyticsResponse]]:
|
|
162
134
|
"""Get Detailed User Analytics
|
|
163
135
|
|
|
@@ -166,8 +138,6 @@ async def asyncio_detailed(
|
|
|
166
138
|
Args:
|
|
167
139
|
include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
|
|
168
140
|
include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
|
|
169
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
170
|
-
authorization (Union[None, Unset, str]):
|
|
171
141
|
|
|
172
142
|
Raises:
|
|
173
143
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -180,8 +150,6 @@ async def asyncio_detailed(
|
|
|
180
150
|
kwargs = _get_kwargs(
|
|
181
151
|
include_api_stats=include_api_stats,
|
|
182
152
|
include_recent_activity=include_recent_activity,
|
|
183
|
-
token=token,
|
|
184
|
-
authorization=authorization,
|
|
185
153
|
)
|
|
186
154
|
|
|
187
155
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -194,8 +162,6 @@ async def asyncio(
|
|
|
194
162
|
client: AuthenticatedClient,
|
|
195
163
|
include_api_stats: Union[Unset, bool] = True,
|
|
196
164
|
include_recent_activity: Union[Unset, bool] = True,
|
|
197
|
-
token: Union[None, Unset, str] = UNSET,
|
|
198
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
199
165
|
) -> Optional[Union[HTTPValidationError, UserAnalyticsResponse]]:
|
|
200
166
|
"""Get Detailed User Analytics
|
|
201
167
|
|
|
@@ -204,8 +170,6 @@ async def asyncio(
|
|
|
204
170
|
Args:
|
|
205
171
|
include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
|
|
206
172
|
include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
|
|
207
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
208
|
-
authorization (Union[None, Unset, str]):
|
|
209
173
|
|
|
210
174
|
Raises:
|
|
211
175
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -220,7 +184,5 @@ async def asyncio(
|
|
|
220
184
|
client=client,
|
|
221
185
|
include_api_stats=include_api_stats,
|
|
222
186
|
include_recent_activity=include_recent_activity,
|
|
223
|
-
token=token,
|
|
224
|
-
authorization=authorization,
|
|
225
187
|
)
|
|
226
188
|
).parsed
|