robosystems-client 0.1.16__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 +24 -17
- robosystems_client/api/agent/batch_process_queries.py +24 -17
- robosystems_client/api/agent/execute_specific_agent.py +24 -17
- robosystems_client/api/agent/get_agent_metadata.py +24 -17
- robosystems_client/api/agent/list_agents.py +20 -18
- robosystems_client/api/agent/recommend_agent.py +24 -17
- robosystems_client/api/auth/forgot_password.py +191 -0
- robosystems_client/api/auth/generate_sso_token.py +18 -0
- robosystems_client/api/auth/get_current_auth_user.py +4 -22
- robosystems_client/api/auth/logout_user.py +17 -17
- robosystems_client/api/auth/{refresh_session.py → refresh_auth_session.py} +21 -21
- robosystems_client/api/auth/resend_verification_email.py +222 -0
- robosystems_client/api/auth/reset_password.py +177 -0
- robosystems_client/api/auth/validate_reset_token.py +171 -0
- robosystems_client/api/auth/verify_email.py +177 -0
- robosystems_client/api/backup/create_backup.py +24 -17
- robosystems_client/api/backup/export_backup.py +24 -17
- robosystems_client/api/backup/get_backup_download_url.py +20 -18
- robosystems_client/api/backup/get_backup_stats.py +24 -17
- robosystems_client/api/backup/list_backups.py +20 -18
- robosystems_client/api/backup/restore_backup.py +24 -17
- robosystems_client/api/connections/create_connection.py +24 -17
- robosystems_client/api/connections/create_link_token.py +24 -17
- robosystems_client/api/connections/delete_connection.py +24 -17
- robosystems_client/api/connections/exchange_link_token.py +24 -17
- robosystems_client/api/connections/get_connection.py +24 -17
- robosystems_client/api/connections/get_connection_options.py +24 -17
- robosystems_client/api/connections/init_o_auth.py +24 -17
- robosystems_client/api/connections/list_connections.py +20 -18
- robosystems_client/api/connections/oauth_callback.py +28 -21
- robosystems_client/api/connections/sync_connection.py +24 -17
- robosystems_client/api/copy/copy_data_to_graph.py +24 -17
- robosystems_client/api/create/create_graph.py +24 -17
- robosystems_client/api/graph_analytics/get_graph_metrics.py +24 -17
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -18
- robosystems_client/api/graph_billing/get_current_graph_bill.py +24 -17
- robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -18
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +24 -17
- robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -18
- robosystems_client/api/graph_credits/check_credit_balance.py +20 -18
- robosystems_client/api/graph_credits/check_storage_limits.py +24 -17
- robosystems_client/api/graph_credits/get_credit_summary.py +24 -17
- robosystems_client/api/graph_credits/get_storage_usage.py +20 -18
- robosystems_client/api/graph_credits/list_credit_transactions.py +20 -18
- robosystems_client/api/graph_health/get_database_health.py +24 -17
- robosystems_client/api/graph_info/get_database_info.py +24 -17
- robosystems_client/api/graph_limits/get_graph_limits.py +24 -17
- robosystems_client/api/mcp/call_mcp_tool.py +20 -18
- robosystems_client/api/mcp/list_mcp_tools.py +24 -17
- robosystems_client/api/operations/cancel_operation.py +24 -17
- robosystems_client/api/operations/get_operation_status.py +24 -17
- robosystems_client/api/operations/stream_operation_events.py +20 -18
- robosystems_client/api/query/execute_cypher_query.py +20 -18
- robosystems_client/api/schema/export_graph_schema.py +20 -18
- robosystems_client/api/schema/get_graph_schema_info.py +24 -17
- robosystems_client/api/schema/list_schema_extensions.py +24 -17
- robosystems_client/api/schema/validate_schema.py +24 -17
- robosystems_client/api/subgraphs/create_subgraph.py +24 -17
- robosystems_client/api/subgraphs/delete_subgraph.py +24 -17
- robosystems_client/api/subgraphs/get_subgraph_info.py +24 -17
- robosystems_client/api/subgraphs/get_subgraph_quota.py +24 -17
- robosystems_client/api/subgraphs/list_subgraphs.py +24 -17
- robosystems_client/api/user/create_user_api_key.py +24 -17
- robosystems_client/api/user/get_all_credit_summaries.py +24 -17
- robosystems_client/api/user/get_current_user.py +24 -17
- robosystems_client/api/user/get_user_graphs.py +24 -17
- robosystems_client/api/user/list_user_api_keys.py +24 -17
- robosystems_client/api/user/revoke_user_api_key.py +24 -17
- robosystems_client/api/user/select_user_graph.py +24 -17
- robosystems_client/api/user/update_user.py +24 -17
- robosystems_client/api/user/update_user_api_key.py +24 -17
- robosystems_client/api/user/update_user_password.py +24 -17
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -18
- robosystems_client/api/user_analytics/get_user_usage_overview.py +24 -17
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +24 -17
- robosystems_client/api/user_limits/get_shared_repository_limits.py +24 -17
- robosystems_client/api/user_limits/get_user_limits.py +24 -17
- robosystems_client/api/user_limits/get_user_usage.py +24 -17
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +24 -17
- robosystems_client/api/user_subscriptions/get_repository_credits.py +24 -17
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +24 -17
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -18
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +24 -17
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +24 -17
- 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/models/__init__.py +16 -0
- robosystems_client/models/email_verification_request.py +60 -0
- robosystems_client/models/forgot_password_request.py +60 -0
- robosystems_client/models/forgot_password_response_forgotpassword.py +44 -0
- robosystems_client/models/resend_verification_email_response_resendverificationemail.py +44 -0
- robosystems_client/models/reset_password_request.py +68 -0
- robosystems_client/models/reset_password_validate_response.py +82 -0
- robosystems_client-0.1.18.dist-info/METADATA +89 -0
- {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +108 -92
- robosystems_client-0.1.18.dist-info/licenses/LICENSE +21 -0
- robosystems_client-0.1.16.dist-info/METADATA +0 -302
- {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/WHEEL +0 -0
|
@@ -14,21 +14,28 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
|
+
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
18
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
19
19
|
) -> dict[str, Any]:
|
|
20
20
|
headers: dict[str, Any] = {}
|
|
21
21
|
if not isinstance(authorization, Unset):
|
|
22
22
|
headers["authorization"] = authorization
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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}
|
|
27
34
|
|
|
28
35
|
_kwargs: dict[str, Any] = {
|
|
29
36
|
"method": "post",
|
|
30
37
|
"url": f"/v1/user/graphs/{graph_id}/select",
|
|
31
|
-
"
|
|
38
|
+
"params": params,
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
_kwargs["headers"] = headers
|
|
@@ -79,8 +86,8 @@ def sync_detailed(
|
|
|
79
86
|
graph_id: str,
|
|
80
87
|
*,
|
|
81
88
|
client: AuthenticatedClient,
|
|
89
|
+
token: Union[None, Unset, str] = UNSET,
|
|
82
90
|
authorization: Union[None, Unset, str] = UNSET,
|
|
83
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
84
91
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
85
92
|
"""Select User Graph
|
|
86
93
|
|
|
@@ -88,8 +95,8 @@ def sync_detailed(
|
|
|
88
95
|
|
|
89
96
|
Args:
|
|
90
97
|
graph_id (str):
|
|
98
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
91
99
|
authorization (Union[None, Unset, str]):
|
|
92
|
-
auth_token (Union[None, Unset, str]):
|
|
93
100
|
|
|
94
101
|
Raises:
|
|
95
102
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -101,8 +108,8 @@ def sync_detailed(
|
|
|
101
108
|
|
|
102
109
|
kwargs = _get_kwargs(
|
|
103
110
|
graph_id=graph_id,
|
|
111
|
+
token=token,
|
|
104
112
|
authorization=authorization,
|
|
105
|
-
auth_token=auth_token,
|
|
106
113
|
)
|
|
107
114
|
|
|
108
115
|
response = client.get_httpx_client().request(
|
|
@@ -116,8 +123,8 @@ def sync(
|
|
|
116
123
|
graph_id: str,
|
|
117
124
|
*,
|
|
118
125
|
client: AuthenticatedClient,
|
|
126
|
+
token: Union[None, Unset, str] = UNSET,
|
|
119
127
|
authorization: Union[None, Unset, str] = UNSET,
|
|
120
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
121
128
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
122
129
|
"""Select User Graph
|
|
123
130
|
|
|
@@ -125,8 +132,8 @@ def sync(
|
|
|
125
132
|
|
|
126
133
|
Args:
|
|
127
134
|
graph_id (str):
|
|
135
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
128
136
|
authorization (Union[None, Unset, str]):
|
|
129
|
-
auth_token (Union[None, Unset, str]):
|
|
130
137
|
|
|
131
138
|
Raises:
|
|
132
139
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -139,8 +146,8 @@ def sync(
|
|
|
139
146
|
return sync_detailed(
|
|
140
147
|
graph_id=graph_id,
|
|
141
148
|
client=client,
|
|
149
|
+
token=token,
|
|
142
150
|
authorization=authorization,
|
|
143
|
-
auth_token=auth_token,
|
|
144
151
|
).parsed
|
|
145
152
|
|
|
146
153
|
|
|
@@ -148,8 +155,8 @@ async def asyncio_detailed(
|
|
|
148
155
|
graph_id: str,
|
|
149
156
|
*,
|
|
150
157
|
client: AuthenticatedClient,
|
|
158
|
+
token: Union[None, Unset, str] = UNSET,
|
|
151
159
|
authorization: Union[None, Unset, str] = UNSET,
|
|
152
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
153
160
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
154
161
|
"""Select User Graph
|
|
155
162
|
|
|
@@ -157,8 +164,8 @@ async def asyncio_detailed(
|
|
|
157
164
|
|
|
158
165
|
Args:
|
|
159
166
|
graph_id (str):
|
|
167
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
160
168
|
authorization (Union[None, Unset, str]):
|
|
161
|
-
auth_token (Union[None, Unset, str]):
|
|
162
169
|
|
|
163
170
|
Raises:
|
|
164
171
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -170,8 +177,8 @@ async def asyncio_detailed(
|
|
|
170
177
|
|
|
171
178
|
kwargs = _get_kwargs(
|
|
172
179
|
graph_id=graph_id,
|
|
180
|
+
token=token,
|
|
173
181
|
authorization=authorization,
|
|
174
|
-
auth_token=auth_token,
|
|
175
182
|
)
|
|
176
183
|
|
|
177
184
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -183,8 +190,8 @@ async def asyncio(
|
|
|
183
190
|
graph_id: str,
|
|
184
191
|
*,
|
|
185
192
|
client: AuthenticatedClient,
|
|
193
|
+
token: Union[None, Unset, str] = UNSET,
|
|
186
194
|
authorization: Union[None, Unset, str] = UNSET,
|
|
187
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
188
195
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
189
196
|
"""Select User Graph
|
|
190
197
|
|
|
@@ -192,8 +199,8 @@ async def asyncio(
|
|
|
192
199
|
|
|
193
200
|
Args:
|
|
194
201
|
graph_id (str):
|
|
202
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
195
203
|
authorization (Union[None, Unset, str]):
|
|
196
|
-
auth_token (Union[None, Unset, str]):
|
|
197
204
|
|
|
198
205
|
Raises:
|
|
199
206
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -207,7 +214,7 @@ async def asyncio(
|
|
|
207
214
|
await asyncio_detailed(
|
|
208
215
|
graph_id=graph_id,
|
|
209
216
|
client=client,
|
|
217
|
+
token=token,
|
|
210
218
|
authorization=authorization,
|
|
211
|
-
auth_token=auth_token,
|
|
212
219
|
)
|
|
213
220
|
).parsed
|
|
@@ -14,21 +14,28 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
16
|
body: UpdateUserRequest,
|
|
17
|
+
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
18
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
19
19
|
) -> dict[str, Any]:
|
|
20
20
|
headers: dict[str, Any] = {}
|
|
21
21
|
if not isinstance(authorization, Unset):
|
|
22
22
|
headers["authorization"] = authorization
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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}
|
|
27
34
|
|
|
28
35
|
_kwargs: dict[str, Any] = {
|
|
29
36
|
"method": "put",
|
|
30
37
|
"url": "/v1/user",
|
|
31
|
-
"
|
|
38
|
+
"params": params,
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
_kwargs["json"] = body.to_dict()
|
|
@@ -71,16 +78,16 @@ def sync_detailed(
|
|
|
71
78
|
*,
|
|
72
79
|
client: AuthenticatedClient,
|
|
73
80
|
body: UpdateUserRequest,
|
|
81
|
+
token: Union[None, Unset, str] = UNSET,
|
|
74
82
|
authorization: Union[None, Unset, str] = UNSET,
|
|
75
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
76
83
|
) -> Response[Union[HTTPValidationError, UserResponse]]:
|
|
77
84
|
"""Update User Profile
|
|
78
85
|
|
|
79
86
|
Update the current user's profile information.
|
|
80
87
|
|
|
81
88
|
Args:
|
|
89
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
82
90
|
authorization (Union[None, Unset, str]):
|
|
83
|
-
auth_token (Union[None, Unset, str]):
|
|
84
91
|
body (UpdateUserRequest): Request model for updating user profile.
|
|
85
92
|
|
|
86
93
|
Raises:
|
|
@@ -93,8 +100,8 @@ def sync_detailed(
|
|
|
93
100
|
|
|
94
101
|
kwargs = _get_kwargs(
|
|
95
102
|
body=body,
|
|
103
|
+
token=token,
|
|
96
104
|
authorization=authorization,
|
|
97
|
-
auth_token=auth_token,
|
|
98
105
|
)
|
|
99
106
|
|
|
100
107
|
response = client.get_httpx_client().request(
|
|
@@ -108,16 +115,16 @@ def sync(
|
|
|
108
115
|
*,
|
|
109
116
|
client: AuthenticatedClient,
|
|
110
117
|
body: UpdateUserRequest,
|
|
118
|
+
token: Union[None, Unset, str] = UNSET,
|
|
111
119
|
authorization: Union[None, Unset, str] = UNSET,
|
|
112
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
113
120
|
) -> Optional[Union[HTTPValidationError, UserResponse]]:
|
|
114
121
|
"""Update User Profile
|
|
115
122
|
|
|
116
123
|
Update the current user's profile information.
|
|
117
124
|
|
|
118
125
|
Args:
|
|
126
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
119
127
|
authorization (Union[None, Unset, str]):
|
|
120
|
-
auth_token (Union[None, Unset, str]):
|
|
121
128
|
body (UpdateUserRequest): Request model for updating user profile.
|
|
122
129
|
|
|
123
130
|
Raises:
|
|
@@ -131,8 +138,8 @@ def sync(
|
|
|
131
138
|
return sync_detailed(
|
|
132
139
|
client=client,
|
|
133
140
|
body=body,
|
|
141
|
+
token=token,
|
|
134
142
|
authorization=authorization,
|
|
135
|
-
auth_token=auth_token,
|
|
136
143
|
).parsed
|
|
137
144
|
|
|
138
145
|
|
|
@@ -140,16 +147,16 @@ async def asyncio_detailed(
|
|
|
140
147
|
*,
|
|
141
148
|
client: AuthenticatedClient,
|
|
142
149
|
body: UpdateUserRequest,
|
|
150
|
+
token: Union[None, Unset, str] = UNSET,
|
|
143
151
|
authorization: Union[None, Unset, str] = UNSET,
|
|
144
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
145
152
|
) -> Response[Union[HTTPValidationError, UserResponse]]:
|
|
146
153
|
"""Update User Profile
|
|
147
154
|
|
|
148
155
|
Update the current user's profile information.
|
|
149
156
|
|
|
150
157
|
Args:
|
|
158
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
151
159
|
authorization (Union[None, Unset, str]):
|
|
152
|
-
auth_token (Union[None, Unset, str]):
|
|
153
160
|
body (UpdateUserRequest): Request model for updating user profile.
|
|
154
161
|
|
|
155
162
|
Raises:
|
|
@@ -162,8 +169,8 @@ async def asyncio_detailed(
|
|
|
162
169
|
|
|
163
170
|
kwargs = _get_kwargs(
|
|
164
171
|
body=body,
|
|
172
|
+
token=token,
|
|
165
173
|
authorization=authorization,
|
|
166
|
-
auth_token=auth_token,
|
|
167
174
|
)
|
|
168
175
|
|
|
169
176
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -175,16 +182,16 @@ async def asyncio(
|
|
|
175
182
|
*,
|
|
176
183
|
client: AuthenticatedClient,
|
|
177
184
|
body: UpdateUserRequest,
|
|
185
|
+
token: Union[None, Unset, str] = UNSET,
|
|
178
186
|
authorization: Union[None, Unset, str] = UNSET,
|
|
179
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
180
187
|
) -> Optional[Union[HTTPValidationError, UserResponse]]:
|
|
181
188
|
"""Update User Profile
|
|
182
189
|
|
|
183
190
|
Update the current user's profile information.
|
|
184
191
|
|
|
185
192
|
Args:
|
|
193
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
186
194
|
authorization (Union[None, Unset, str]):
|
|
187
|
-
auth_token (Union[None, Unset, str]):
|
|
188
195
|
body (UpdateUserRequest): Request model for updating user profile.
|
|
189
196
|
|
|
190
197
|
Raises:
|
|
@@ -199,7 +206,7 @@ async def asyncio(
|
|
|
199
206
|
await asyncio_detailed(
|
|
200
207
|
client=client,
|
|
201
208
|
body=body,
|
|
209
|
+
token=token,
|
|
202
210
|
authorization=authorization,
|
|
203
|
-
auth_token=auth_token,
|
|
204
211
|
)
|
|
205
212
|
).parsed
|
|
@@ -15,21 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
api_key_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: UpdateAPIKeyRequest,
|
|
18
|
+
token: Union[None, Unset, str] = UNSET,
|
|
18
19
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
20
20
|
) -> dict[str, Any]:
|
|
21
21
|
headers: dict[str, Any] = {}
|
|
22
22
|
if not isinstance(authorization, Unset):
|
|
23
23
|
headers["authorization"] = authorization
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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}
|
|
28
35
|
|
|
29
36
|
_kwargs: dict[str, Any] = {
|
|
30
37
|
"method": "put",
|
|
31
38
|
"url": f"/v1/user/api-keys/{api_key_id}",
|
|
32
|
-
"
|
|
39
|
+
"params": params,
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -73,8 +80,8 @@ def sync_detailed(
|
|
|
73
80
|
*,
|
|
74
81
|
client: AuthenticatedClient,
|
|
75
82
|
body: UpdateAPIKeyRequest,
|
|
83
|
+
token: Union[None, Unset, str] = UNSET,
|
|
76
84
|
authorization: Union[None, Unset, str] = UNSET,
|
|
77
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
78
85
|
) -> Response[Union[APIKeyInfo, HTTPValidationError]]:
|
|
79
86
|
"""Update API Key
|
|
80
87
|
|
|
@@ -82,8 +89,8 @@ def sync_detailed(
|
|
|
82
89
|
|
|
83
90
|
Args:
|
|
84
91
|
api_key_id (str):
|
|
92
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
85
93
|
authorization (Union[None, Unset, str]):
|
|
86
|
-
auth_token (Union[None, Unset, str]):
|
|
87
94
|
body (UpdateAPIKeyRequest): Request model for updating an API key.
|
|
88
95
|
|
|
89
96
|
Raises:
|
|
@@ -97,8 +104,8 @@ def sync_detailed(
|
|
|
97
104
|
kwargs = _get_kwargs(
|
|
98
105
|
api_key_id=api_key_id,
|
|
99
106
|
body=body,
|
|
107
|
+
token=token,
|
|
100
108
|
authorization=authorization,
|
|
101
|
-
auth_token=auth_token,
|
|
102
109
|
)
|
|
103
110
|
|
|
104
111
|
response = client.get_httpx_client().request(
|
|
@@ -113,8 +120,8 @@ def sync(
|
|
|
113
120
|
*,
|
|
114
121
|
client: AuthenticatedClient,
|
|
115
122
|
body: UpdateAPIKeyRequest,
|
|
123
|
+
token: Union[None, Unset, str] = UNSET,
|
|
116
124
|
authorization: Union[None, Unset, str] = UNSET,
|
|
117
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
118
125
|
) -> Optional[Union[APIKeyInfo, HTTPValidationError]]:
|
|
119
126
|
"""Update API Key
|
|
120
127
|
|
|
@@ -122,8 +129,8 @@ def sync(
|
|
|
122
129
|
|
|
123
130
|
Args:
|
|
124
131
|
api_key_id (str):
|
|
132
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
133
|
authorization (Union[None, Unset, str]):
|
|
126
|
-
auth_token (Union[None, Unset, str]):
|
|
127
134
|
body (UpdateAPIKeyRequest): Request model for updating an API key.
|
|
128
135
|
|
|
129
136
|
Raises:
|
|
@@ -138,8 +145,8 @@ def sync(
|
|
|
138
145
|
api_key_id=api_key_id,
|
|
139
146
|
client=client,
|
|
140
147
|
body=body,
|
|
148
|
+
token=token,
|
|
141
149
|
authorization=authorization,
|
|
142
|
-
auth_token=auth_token,
|
|
143
150
|
).parsed
|
|
144
151
|
|
|
145
152
|
|
|
@@ -148,8 +155,8 @@ async def asyncio_detailed(
|
|
|
148
155
|
*,
|
|
149
156
|
client: AuthenticatedClient,
|
|
150
157
|
body: UpdateAPIKeyRequest,
|
|
158
|
+
token: Union[None, Unset, str] = UNSET,
|
|
151
159
|
authorization: Union[None, Unset, str] = UNSET,
|
|
152
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
153
160
|
) -> Response[Union[APIKeyInfo, HTTPValidationError]]:
|
|
154
161
|
"""Update API Key
|
|
155
162
|
|
|
@@ -157,8 +164,8 @@ async def asyncio_detailed(
|
|
|
157
164
|
|
|
158
165
|
Args:
|
|
159
166
|
api_key_id (str):
|
|
167
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
160
168
|
authorization (Union[None, Unset, str]):
|
|
161
|
-
auth_token (Union[None, Unset, str]):
|
|
162
169
|
body (UpdateAPIKeyRequest): Request model for updating an API key.
|
|
163
170
|
|
|
164
171
|
Raises:
|
|
@@ -172,8 +179,8 @@ async def asyncio_detailed(
|
|
|
172
179
|
kwargs = _get_kwargs(
|
|
173
180
|
api_key_id=api_key_id,
|
|
174
181
|
body=body,
|
|
182
|
+
token=token,
|
|
175
183
|
authorization=authorization,
|
|
176
|
-
auth_token=auth_token,
|
|
177
184
|
)
|
|
178
185
|
|
|
179
186
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -186,8 +193,8 @@ async def asyncio(
|
|
|
186
193
|
*,
|
|
187
194
|
client: AuthenticatedClient,
|
|
188
195
|
body: UpdateAPIKeyRequest,
|
|
196
|
+
token: Union[None, Unset, str] = UNSET,
|
|
189
197
|
authorization: Union[None, Unset, str] = UNSET,
|
|
190
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
191
198
|
) -> Optional[Union[APIKeyInfo, HTTPValidationError]]:
|
|
192
199
|
"""Update API Key
|
|
193
200
|
|
|
@@ -195,8 +202,8 @@ async def asyncio(
|
|
|
195
202
|
|
|
196
203
|
Args:
|
|
197
204
|
api_key_id (str):
|
|
205
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
198
206
|
authorization (Union[None, Unset, str]):
|
|
199
|
-
auth_token (Union[None, Unset, str]):
|
|
200
207
|
body (UpdateAPIKeyRequest): Request model for updating an API key.
|
|
201
208
|
|
|
202
209
|
Raises:
|
|
@@ -212,7 +219,7 @@ async def asyncio(
|
|
|
212
219
|
api_key_id=api_key_id,
|
|
213
220
|
client=client,
|
|
214
221
|
body=body,
|
|
222
|
+
token=token,
|
|
215
223
|
authorization=authorization,
|
|
216
|
-
auth_token=auth_token,
|
|
217
224
|
)
|
|
218
225
|
).parsed
|
|
@@ -15,21 +15,28 @@ from ...types import UNSET, Response, Unset
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
*,
|
|
17
17
|
body: UpdatePasswordRequest,
|
|
18
|
+
token: Union[None, Unset, str] = UNSET,
|
|
18
19
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
20
20
|
) -> dict[str, Any]:
|
|
21
21
|
headers: dict[str, Any] = {}
|
|
22
22
|
if not isinstance(authorization, Unset):
|
|
23
23
|
headers["authorization"] = authorization
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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}
|
|
28
35
|
|
|
29
36
|
_kwargs: dict[str, Any] = {
|
|
30
37
|
"method": "put",
|
|
31
38
|
"url": "/v1/user/password",
|
|
32
|
-
"
|
|
39
|
+
"params": params,
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -84,16 +91,16 @@ def sync_detailed(
|
|
|
84
91
|
*,
|
|
85
92
|
client: AuthenticatedClient,
|
|
86
93
|
body: UpdatePasswordRequest,
|
|
94
|
+
token: Union[None, Unset, str] = UNSET,
|
|
87
95
|
authorization: Union[None, Unset, str] = UNSET,
|
|
88
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
89
96
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
90
97
|
"""Update Password
|
|
91
98
|
|
|
92
99
|
Update the current user's password.
|
|
93
100
|
|
|
94
101
|
Args:
|
|
102
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
95
103
|
authorization (Union[None, Unset, str]):
|
|
96
|
-
auth_token (Union[None, Unset, str]):
|
|
97
104
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
98
105
|
|
|
99
106
|
Raises:
|
|
@@ -106,8 +113,8 @@ def sync_detailed(
|
|
|
106
113
|
|
|
107
114
|
kwargs = _get_kwargs(
|
|
108
115
|
body=body,
|
|
116
|
+
token=token,
|
|
109
117
|
authorization=authorization,
|
|
110
|
-
auth_token=auth_token,
|
|
111
118
|
)
|
|
112
119
|
|
|
113
120
|
response = client.get_httpx_client().request(
|
|
@@ -121,16 +128,16 @@ def sync(
|
|
|
121
128
|
*,
|
|
122
129
|
client: AuthenticatedClient,
|
|
123
130
|
body: UpdatePasswordRequest,
|
|
131
|
+
token: Union[None, Unset, str] = UNSET,
|
|
124
132
|
authorization: Union[None, Unset, str] = UNSET,
|
|
125
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
126
133
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
127
134
|
"""Update Password
|
|
128
135
|
|
|
129
136
|
Update the current user's password.
|
|
130
137
|
|
|
131
138
|
Args:
|
|
139
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
132
140
|
authorization (Union[None, Unset, str]):
|
|
133
|
-
auth_token (Union[None, Unset, str]):
|
|
134
141
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
135
142
|
|
|
136
143
|
Raises:
|
|
@@ -144,8 +151,8 @@ def sync(
|
|
|
144
151
|
return sync_detailed(
|
|
145
152
|
client=client,
|
|
146
153
|
body=body,
|
|
154
|
+
token=token,
|
|
147
155
|
authorization=authorization,
|
|
148
|
-
auth_token=auth_token,
|
|
149
156
|
).parsed
|
|
150
157
|
|
|
151
158
|
|
|
@@ -153,16 +160,16 @@ async def asyncio_detailed(
|
|
|
153
160
|
*,
|
|
154
161
|
client: AuthenticatedClient,
|
|
155
162
|
body: UpdatePasswordRequest,
|
|
163
|
+
token: Union[None, Unset, str] = UNSET,
|
|
156
164
|
authorization: Union[None, Unset, str] = UNSET,
|
|
157
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
158
165
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
159
166
|
"""Update Password
|
|
160
167
|
|
|
161
168
|
Update the current user's password.
|
|
162
169
|
|
|
163
170
|
Args:
|
|
171
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
164
172
|
authorization (Union[None, Unset, str]):
|
|
165
|
-
auth_token (Union[None, Unset, str]):
|
|
166
173
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
167
174
|
|
|
168
175
|
Raises:
|
|
@@ -175,8 +182,8 @@ async def asyncio_detailed(
|
|
|
175
182
|
|
|
176
183
|
kwargs = _get_kwargs(
|
|
177
184
|
body=body,
|
|
185
|
+
token=token,
|
|
178
186
|
authorization=authorization,
|
|
179
|
-
auth_token=auth_token,
|
|
180
187
|
)
|
|
181
188
|
|
|
182
189
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -188,16 +195,16 @@ async def asyncio(
|
|
|
188
195
|
*,
|
|
189
196
|
client: AuthenticatedClient,
|
|
190
197
|
body: UpdatePasswordRequest,
|
|
198
|
+
token: Union[None, Unset, str] = UNSET,
|
|
191
199
|
authorization: Union[None, Unset, str] = UNSET,
|
|
192
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
193
200
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
194
201
|
"""Update Password
|
|
195
202
|
|
|
196
203
|
Update the current user's password.
|
|
197
204
|
|
|
198
205
|
Args:
|
|
206
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
199
207
|
authorization (Union[None, Unset, str]):
|
|
200
|
-
auth_token (Union[None, Unset, str]):
|
|
201
208
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
202
209
|
|
|
203
210
|
Raises:
|
|
@@ -212,7 +219,7 @@ async def asyncio(
|
|
|
212
219
|
await asyncio_detailed(
|
|
213
220
|
client=client,
|
|
214
221
|
body=body,
|
|
222
|
+
token=token,
|
|
215
223
|
authorization=authorization,
|
|
216
|
-
auth_token=auth_token,
|
|
217
224
|
)
|
|
218
225
|
).parsed
|