robosystems-client 0.2.3__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 +69 -53
- 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 +181 -301
- robosystems_client/api/tables/get_file_info.py +117 -265
- robosystems_client/api/tables/get_upload_url.py +193 -389
- robosystems_client/api/tables/ingest_tables.py +277 -465
- robosystems_client/api/tables/list_table_files.py +193 -373
- robosystems_client/api/tables/list_tables.py +189 -361
- robosystems_client/api/tables/query_tables.py +85 -141
- robosystems_client/api/tables/update_file_status.py +205 -349
- 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/query_client.py +3 -2
- robosystems_client/extensions/sse_client.py +1 -1
- robosystems_client/extensions/table_ingest_client.py +5 -0
- robosystems_client/extensions/utils.py +2 -2
- robosystems_client/models/__init__.py +4 -4
- robosystems_client/models/create_graph_request.py +4 -3
- robosystems_client/models/cypher_query_request.py +5 -22
- 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-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +103 -102
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -6,53 +6,26 @@ import httpx
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.api_keys_response import APIKeysResponse
|
|
9
|
-
from ...
|
|
10
|
-
from ...types import UNSET, Response, Unset
|
|
9
|
+
from ...types import Response
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
def _get_kwargs(
|
|
14
|
-
*,
|
|
15
|
-
token: Union[None, Unset, str] = UNSET,
|
|
16
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
-
) -> dict[str, Any]:
|
|
18
|
-
headers: dict[str, Any] = {}
|
|
19
|
-
if not isinstance(authorization, Unset):
|
|
20
|
-
headers["authorization"] = authorization
|
|
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
|
-
|
|
12
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
33
13
|
_kwargs: dict[str, Any] = {
|
|
34
14
|
"method": "get",
|
|
35
15
|
"url": "/v1/user/api-keys",
|
|
36
|
-
"params": params,
|
|
37
16
|
}
|
|
38
17
|
|
|
39
|
-
_kwargs["headers"] = headers
|
|
40
18
|
return _kwargs
|
|
41
19
|
|
|
42
20
|
|
|
43
21
|
def _parse_response(
|
|
44
22
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
45
|
-
) -> Optional[
|
|
23
|
+
) -> Optional[APIKeysResponse]:
|
|
46
24
|
if response.status_code == 200:
|
|
47
25
|
response_200 = APIKeysResponse.from_dict(response.json())
|
|
48
26
|
|
|
49
27
|
return response_200
|
|
50
28
|
|
|
51
|
-
if response.status_code == 422:
|
|
52
|
-
response_422 = HTTPValidationError.from_dict(response.json())
|
|
53
|
-
|
|
54
|
-
return response_422
|
|
55
|
-
|
|
56
29
|
if client.raise_on_unexpected_status:
|
|
57
30
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
58
31
|
else:
|
|
@@ -61,7 +34,7 @@ def _parse_response(
|
|
|
61
34
|
|
|
62
35
|
def _build_response(
|
|
63
36
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
64
|
-
) -> Response[
|
|
37
|
+
) -> Response[APIKeysResponse]:
|
|
65
38
|
return Response(
|
|
66
39
|
status_code=HTTPStatus(response.status_code),
|
|
67
40
|
content=response.content,
|
|
@@ -73,29 +46,20 @@ def _build_response(
|
|
|
73
46
|
def sync_detailed(
|
|
74
47
|
*,
|
|
75
48
|
client: AuthenticatedClient,
|
|
76
|
-
|
|
77
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
78
|
-
) -> Response[Union[APIKeysResponse, HTTPValidationError]]:
|
|
49
|
+
) -> Response[APIKeysResponse]:
|
|
79
50
|
"""List API Keys
|
|
80
51
|
|
|
81
52
|
Get all API keys for the current user.
|
|
82
53
|
|
|
83
|
-
Args:
|
|
84
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
85
|
-
authorization (Union[None, Unset, str]):
|
|
86
|
-
|
|
87
54
|
Raises:
|
|
88
55
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
89
56
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
90
57
|
|
|
91
58
|
Returns:
|
|
92
|
-
Response[
|
|
59
|
+
Response[APIKeysResponse]
|
|
93
60
|
"""
|
|
94
61
|
|
|
95
|
-
kwargs = _get_kwargs(
|
|
96
|
-
token=token,
|
|
97
|
-
authorization=authorization,
|
|
98
|
-
)
|
|
62
|
+
kwargs = _get_kwargs()
|
|
99
63
|
|
|
100
64
|
response = client.get_httpx_client().request(
|
|
101
65
|
**kwargs,
|
|
@@ -107,58 +71,41 @@ def sync_detailed(
|
|
|
107
71
|
def sync(
|
|
108
72
|
*,
|
|
109
73
|
client: AuthenticatedClient,
|
|
110
|
-
|
|
111
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
112
|
-
) -> Optional[Union[APIKeysResponse, HTTPValidationError]]:
|
|
74
|
+
) -> Optional[APIKeysResponse]:
|
|
113
75
|
"""List API Keys
|
|
114
76
|
|
|
115
77
|
Get all API keys for the current user.
|
|
116
78
|
|
|
117
|
-
Args:
|
|
118
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
119
|
-
authorization (Union[None, Unset, str]):
|
|
120
|
-
|
|
121
79
|
Raises:
|
|
122
80
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
123
81
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
82
|
|
|
125
83
|
Returns:
|
|
126
|
-
|
|
84
|
+
APIKeysResponse
|
|
127
85
|
"""
|
|
128
86
|
|
|
129
87
|
return sync_detailed(
|
|
130
88
|
client=client,
|
|
131
|
-
token=token,
|
|
132
|
-
authorization=authorization,
|
|
133
89
|
).parsed
|
|
134
90
|
|
|
135
91
|
|
|
136
92
|
async def asyncio_detailed(
|
|
137
93
|
*,
|
|
138
94
|
client: AuthenticatedClient,
|
|
139
|
-
|
|
140
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
141
|
-
) -> Response[Union[APIKeysResponse, HTTPValidationError]]:
|
|
95
|
+
) -> Response[APIKeysResponse]:
|
|
142
96
|
"""List API Keys
|
|
143
97
|
|
|
144
98
|
Get all API keys for the current user.
|
|
145
99
|
|
|
146
|
-
Args:
|
|
147
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
148
|
-
authorization (Union[None, Unset, str]):
|
|
149
|
-
|
|
150
100
|
Raises:
|
|
151
101
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
152
102
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
103
|
|
|
154
104
|
Returns:
|
|
155
|
-
Response[
|
|
105
|
+
Response[APIKeysResponse]
|
|
156
106
|
"""
|
|
157
107
|
|
|
158
|
-
kwargs = _get_kwargs(
|
|
159
|
-
token=token,
|
|
160
|
-
authorization=authorization,
|
|
161
|
-
)
|
|
108
|
+
kwargs = _get_kwargs()
|
|
162
109
|
|
|
163
110
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
164
111
|
|
|
@@ -168,29 +115,21 @@ async def asyncio_detailed(
|
|
|
168
115
|
async def asyncio(
|
|
169
116
|
*,
|
|
170
117
|
client: AuthenticatedClient,
|
|
171
|
-
|
|
172
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
173
|
-
) -> Optional[Union[APIKeysResponse, HTTPValidationError]]:
|
|
118
|
+
) -> Optional[APIKeysResponse]:
|
|
174
119
|
"""List API Keys
|
|
175
120
|
|
|
176
121
|
Get all API keys for the current user.
|
|
177
122
|
|
|
178
|
-
Args:
|
|
179
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
180
|
-
authorization (Union[None, Unset, str]):
|
|
181
|
-
|
|
182
123
|
Raises:
|
|
183
124
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
184
125
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
185
126
|
|
|
186
127
|
Returns:
|
|
187
|
-
|
|
128
|
+
APIKeysResponse
|
|
188
129
|
"""
|
|
189
130
|
|
|
190
131
|
return (
|
|
191
132
|
await asyncio_detailed(
|
|
192
133
|
client=client,
|
|
193
|
-
token=token,
|
|
194
|
-
authorization=authorization,
|
|
195
134
|
)
|
|
196
135
|
).parsed
|
|
@@ -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
|