robosystems-client 0.1.16__py3-none-any.whl → 0.1.17__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 +0 -18
- robosystems_client/api/agent/batch_process_queries.py +0 -18
- robosystems_client/api/agent/execute_specific_agent.py +0 -18
- robosystems_client/api/agent/get_agent_metadata.py +0 -18
- robosystems_client/api/agent/list_agents.py +0 -18
- robosystems_client/api/agent/recommend_agent.py +0 -18
- 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 +0 -18
- robosystems_client/api/backup/export_backup.py +0 -18
- robosystems_client/api/backup/get_backup_download_url.py +0 -18
- robosystems_client/api/backup/get_backup_stats.py +0 -18
- robosystems_client/api/backup/list_backups.py +0 -18
- robosystems_client/api/backup/restore_backup.py +0 -18
- robosystems_client/api/connections/create_connection.py +0 -18
- robosystems_client/api/connections/create_link_token.py +0 -18
- robosystems_client/api/connections/delete_connection.py +0 -18
- robosystems_client/api/connections/exchange_link_token.py +0 -18
- robosystems_client/api/connections/get_connection.py +0 -18
- robosystems_client/api/connections/get_connection_options.py +0 -18
- robosystems_client/api/connections/init_o_auth.py +0 -18
- robosystems_client/api/connections/list_connections.py +0 -18
- robosystems_client/api/connections/oauth_callback.py +4 -22
- robosystems_client/api/connections/sync_connection.py +0 -18
- robosystems_client/api/copy/copy_data_to_graph.py +0 -18
- robosystems_client/api/create/create_graph.py +0 -18
- robosystems_client/api/graph_analytics/get_graph_metrics.py +0 -18
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -18
- robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -18
- robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -18
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -18
- robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -18
- robosystems_client/api/graph_credits/check_credit_balance.py +0 -18
- robosystems_client/api/graph_credits/check_storage_limits.py +0 -18
- robosystems_client/api/graph_credits/get_credit_summary.py +0 -18
- robosystems_client/api/graph_credits/get_storage_usage.py +0 -18
- robosystems_client/api/graph_credits/list_credit_transactions.py +0 -18
- robosystems_client/api/graph_health/get_database_health.py +0 -18
- robosystems_client/api/graph_info/get_database_info.py +0 -18
- robosystems_client/api/graph_limits/get_graph_limits.py +0 -18
- robosystems_client/api/mcp/call_mcp_tool.py +0 -18
- robosystems_client/api/mcp/list_mcp_tools.py +0 -18
- robosystems_client/api/operations/cancel_operation.py +0 -18
- robosystems_client/api/operations/get_operation_status.py +0 -18
- robosystems_client/api/operations/stream_operation_events.py +0 -18
- robosystems_client/api/query/execute_cypher_query.py +0 -18
- robosystems_client/api/schema/export_graph_schema.py +0 -18
- robosystems_client/api/schema/get_graph_schema_info.py +0 -18
- robosystems_client/api/schema/list_schema_extensions.py +0 -18
- robosystems_client/api/schema/validate_schema.py +0 -18
- robosystems_client/api/subgraphs/create_subgraph.py +0 -18
- robosystems_client/api/subgraphs/delete_subgraph.py +0 -18
- robosystems_client/api/subgraphs/get_subgraph_info.py +0 -18
- robosystems_client/api/subgraphs/get_subgraph_quota.py +0 -18
- robosystems_client/api/subgraphs/list_subgraphs.py +0 -18
- robosystems_client/api/user/create_user_api_key.py +0 -18
- robosystems_client/api/user/get_all_credit_summaries.py +0 -18
- robosystems_client/api/user/get_current_user.py +0 -18
- robosystems_client/api/user/get_user_graphs.py +0 -18
- robosystems_client/api/user/list_user_api_keys.py +0 -18
- robosystems_client/api/user/revoke_user_api_key.py +0 -18
- robosystems_client/api/user/select_user_graph.py +0 -18
- robosystems_client/api/user/update_user.py +0 -18
- robosystems_client/api/user/update_user_api_key.py +0 -18
- robosystems_client/api/user/update_user_password.py +0 -18
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -18
- robosystems_client/api/user_analytics/get_user_usage_overview.py +0 -18
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +0 -18
- robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -18
- robosystems_client/api/user_limits/get_user_limits.py +0 -18
- robosystems_client/api/user_limits/get_user_usage.py +0 -18
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +0 -18
- robosystems_client/api/user_subscriptions/get_repository_credits.py +0 -18
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +0 -18
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -18
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +0 -18
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +0 -18
- 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.17.dist-info/METADATA +89 -0
- {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.17.dist-info}/RECORD +95 -83
- robosystems_client-0.1.17.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.17.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.error_response import ErrorResponse
|
|
9
|
+
from ...models.forgot_password_request import ForgotPasswordRequest
|
|
10
|
+
from ...models.forgot_password_response_forgotpassword import (
|
|
11
|
+
ForgotPasswordResponseForgotpassword,
|
|
12
|
+
)
|
|
13
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
14
|
+
from ...types import Response
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _get_kwargs(
|
|
18
|
+
*,
|
|
19
|
+
body: ForgotPasswordRequest,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
headers: dict[str, Any] = {}
|
|
22
|
+
|
|
23
|
+
_kwargs: dict[str, Any] = {
|
|
24
|
+
"method": "post",
|
|
25
|
+
"url": "/v1/auth/password/forgot",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
_kwargs["json"] = body.to_dict()
|
|
29
|
+
|
|
30
|
+
headers["Content-Type"] = "application/json"
|
|
31
|
+
|
|
32
|
+
_kwargs["headers"] = headers
|
|
33
|
+
return _kwargs
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _parse_response(
|
|
37
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
38
|
+
) -> Optional[
|
|
39
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
40
|
+
]:
|
|
41
|
+
if response.status_code == 200:
|
|
42
|
+
response_200 = ForgotPasswordResponseForgotpassword.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_200
|
|
45
|
+
if response.status_code == 429:
|
|
46
|
+
response_429 = ErrorResponse.from_dict(response.json())
|
|
47
|
+
|
|
48
|
+
return response_429
|
|
49
|
+
if response.status_code == 422:
|
|
50
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_422
|
|
53
|
+
if client.raise_on_unexpected_status:
|
|
54
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
55
|
+
else:
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _build_response(
|
|
60
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
61
|
+
) -> Response[
|
|
62
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
63
|
+
]:
|
|
64
|
+
return Response(
|
|
65
|
+
status_code=HTTPStatus(response.status_code),
|
|
66
|
+
content=response.content,
|
|
67
|
+
headers=response.headers,
|
|
68
|
+
parsed=_parse_response(client=client, response=response),
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def sync_detailed(
|
|
73
|
+
*,
|
|
74
|
+
client: Union[AuthenticatedClient, Client],
|
|
75
|
+
body: ForgotPasswordRequest,
|
|
76
|
+
) -> Response[
|
|
77
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
78
|
+
]:
|
|
79
|
+
"""Forgot Password
|
|
80
|
+
|
|
81
|
+
Request password reset email. Always returns success to prevent email enumeration.
|
|
82
|
+
|
|
83
|
+
Args:
|
|
84
|
+
body (ForgotPasswordRequest): Forgot password request model.
|
|
85
|
+
|
|
86
|
+
Raises:
|
|
87
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
88
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
89
|
+
|
|
90
|
+
Returns:
|
|
91
|
+
Response[Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]]
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
kwargs = _get_kwargs(
|
|
95
|
+
body=body,
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
response = client.get_httpx_client().request(
|
|
99
|
+
**kwargs,
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
return _build_response(client=client, response=response)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def sync(
|
|
106
|
+
*,
|
|
107
|
+
client: Union[AuthenticatedClient, Client],
|
|
108
|
+
body: ForgotPasswordRequest,
|
|
109
|
+
) -> Optional[
|
|
110
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
111
|
+
]:
|
|
112
|
+
"""Forgot Password
|
|
113
|
+
|
|
114
|
+
Request password reset email. Always returns success to prevent email enumeration.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
body (ForgotPasswordRequest): Forgot password request model.
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
return sync_detailed(
|
|
128
|
+
client=client,
|
|
129
|
+
body=body,
|
|
130
|
+
).parsed
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
async def asyncio_detailed(
|
|
134
|
+
*,
|
|
135
|
+
client: Union[AuthenticatedClient, Client],
|
|
136
|
+
body: ForgotPasswordRequest,
|
|
137
|
+
) -> Response[
|
|
138
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
139
|
+
]:
|
|
140
|
+
"""Forgot Password
|
|
141
|
+
|
|
142
|
+
Request password reset email. Always returns success to prevent email enumeration.
|
|
143
|
+
|
|
144
|
+
Args:
|
|
145
|
+
body (ForgotPasswordRequest): Forgot password request model.
|
|
146
|
+
|
|
147
|
+
Raises:
|
|
148
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
149
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
150
|
+
|
|
151
|
+
Returns:
|
|
152
|
+
Response[Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
kwargs = _get_kwargs(
|
|
156
|
+
body=body,
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
160
|
+
|
|
161
|
+
return _build_response(client=client, response=response)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
async def asyncio(
|
|
165
|
+
*,
|
|
166
|
+
client: Union[AuthenticatedClient, Client],
|
|
167
|
+
body: ForgotPasswordRequest,
|
|
168
|
+
) -> Optional[
|
|
169
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
170
|
+
]:
|
|
171
|
+
"""Forgot Password
|
|
172
|
+
|
|
173
|
+
Request password reset email. Always returns success to prevent email enumeration.
|
|
174
|
+
|
|
175
|
+
Args:
|
|
176
|
+
body (ForgotPasswordRequest): Forgot password request model.
|
|
177
|
+
|
|
178
|
+
Raises:
|
|
179
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
180
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
181
|
+
|
|
182
|
+
Returns:
|
|
183
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
return (
|
|
187
|
+
await asyncio_detailed(
|
|
188
|
+
client=client,
|
|
189
|
+
body=body,
|
|
190
|
+
)
|
|
191
|
+
).parsed
|
|
@@ -13,8 +13,13 @@ from ...types import UNSET, Response, Unset
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
16
17
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
if not isinstance(authorization, Unset):
|
|
21
|
+
headers["authorization"] = authorization
|
|
22
|
+
|
|
18
23
|
cookies = {}
|
|
19
24
|
if auth_token is not UNSET:
|
|
20
25
|
cookies["auth-token"] = auth_token
|
|
@@ -25,6 +30,7 @@ def _get_kwargs(
|
|
|
25
30
|
"cookies": cookies,
|
|
26
31
|
}
|
|
27
32
|
|
|
33
|
+
_kwargs["headers"] = headers
|
|
28
34
|
return _kwargs
|
|
29
35
|
|
|
30
36
|
|
|
@@ -63,6 +69,7 @@ def _build_response(
|
|
|
63
69
|
def sync_detailed(
|
|
64
70
|
*,
|
|
65
71
|
client: Union[AuthenticatedClient, Client],
|
|
72
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
66
73
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
67
74
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SSOTokenResponse]]:
|
|
68
75
|
"""Generate SSO Token
|
|
@@ -70,6 +77,7 @@ def sync_detailed(
|
|
|
70
77
|
Generate a temporary SSO token for cross-app authentication.
|
|
71
78
|
|
|
72
79
|
Args:
|
|
80
|
+
authorization (Union[None, Unset, str]):
|
|
73
81
|
auth_token (Union[None, Unset, str]):
|
|
74
82
|
|
|
75
83
|
Raises:
|
|
@@ -81,6 +89,7 @@ def sync_detailed(
|
|
|
81
89
|
"""
|
|
82
90
|
|
|
83
91
|
kwargs = _get_kwargs(
|
|
92
|
+
authorization=authorization,
|
|
84
93
|
auth_token=auth_token,
|
|
85
94
|
)
|
|
86
95
|
|
|
@@ -94,6 +103,7 @@ def sync_detailed(
|
|
|
94
103
|
def sync(
|
|
95
104
|
*,
|
|
96
105
|
client: Union[AuthenticatedClient, Client],
|
|
106
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
97
107
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
98
108
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SSOTokenResponse]]:
|
|
99
109
|
"""Generate SSO Token
|
|
@@ -101,6 +111,7 @@ def sync(
|
|
|
101
111
|
Generate a temporary SSO token for cross-app authentication.
|
|
102
112
|
|
|
103
113
|
Args:
|
|
114
|
+
authorization (Union[None, Unset, str]):
|
|
104
115
|
auth_token (Union[None, Unset, str]):
|
|
105
116
|
|
|
106
117
|
Raises:
|
|
@@ -113,6 +124,7 @@ def sync(
|
|
|
113
124
|
|
|
114
125
|
return sync_detailed(
|
|
115
126
|
client=client,
|
|
127
|
+
authorization=authorization,
|
|
116
128
|
auth_token=auth_token,
|
|
117
129
|
).parsed
|
|
118
130
|
|
|
@@ -120,6 +132,7 @@ def sync(
|
|
|
120
132
|
async def asyncio_detailed(
|
|
121
133
|
*,
|
|
122
134
|
client: Union[AuthenticatedClient, Client],
|
|
135
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
123
136
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
124
137
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SSOTokenResponse]]:
|
|
125
138
|
"""Generate SSO Token
|
|
@@ -127,6 +140,7 @@ async def asyncio_detailed(
|
|
|
127
140
|
Generate a temporary SSO token for cross-app authentication.
|
|
128
141
|
|
|
129
142
|
Args:
|
|
143
|
+
authorization (Union[None, Unset, str]):
|
|
130
144
|
auth_token (Union[None, Unset, str]):
|
|
131
145
|
|
|
132
146
|
Raises:
|
|
@@ -138,6 +152,7 @@ async def asyncio_detailed(
|
|
|
138
152
|
"""
|
|
139
153
|
|
|
140
154
|
kwargs = _get_kwargs(
|
|
155
|
+
authorization=authorization,
|
|
141
156
|
auth_token=auth_token,
|
|
142
157
|
)
|
|
143
158
|
|
|
@@ -149,6 +164,7 @@ async def asyncio_detailed(
|
|
|
149
164
|
async def asyncio(
|
|
150
165
|
*,
|
|
151
166
|
client: Union[AuthenticatedClient, Client],
|
|
167
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
152
168
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
153
169
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SSOTokenResponse]]:
|
|
154
170
|
"""Generate SSO Token
|
|
@@ -156,6 +172,7 @@ async def asyncio(
|
|
|
156
172
|
Generate a temporary SSO token for cross-app authentication.
|
|
157
173
|
|
|
158
174
|
Args:
|
|
175
|
+
authorization (Union[None, Unset, str]):
|
|
159
176
|
auth_token (Union[None, Unset, str]):
|
|
160
177
|
|
|
161
178
|
Raises:
|
|
@@ -169,6 +186,7 @@ async def asyncio(
|
|
|
169
186
|
return (
|
|
170
187
|
await asyncio_detailed(
|
|
171
188
|
client=client,
|
|
189
|
+
authorization=authorization,
|
|
172
190
|
auth_token=auth_token,
|
|
173
191
|
)
|
|
174
192
|
).parsed
|
|
@@ -16,20 +16,14 @@ from ...types import UNSET, Response, Unset
|
|
|
16
16
|
def _get_kwargs(
|
|
17
17
|
*,
|
|
18
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
20
19
|
) -> dict[str, Any]:
|
|
21
20
|
headers: dict[str, Any] = {}
|
|
22
21
|
if not isinstance(authorization, Unset):
|
|
23
22
|
headers["authorization"] = authorization
|
|
24
23
|
|
|
25
|
-
cookies = {}
|
|
26
|
-
if auth_token is not UNSET:
|
|
27
|
-
cookies["auth-token"] = auth_token
|
|
28
|
-
|
|
29
24
|
_kwargs: dict[str, Any] = {
|
|
30
25
|
"method": "get",
|
|
31
26
|
"url": "/v1/auth/me",
|
|
32
|
-
"cookies": cookies,
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
_kwargs["headers"] = headers
|
|
@@ -82,7 +76,6 @@ def sync_detailed(
|
|
|
82
76
|
*,
|
|
83
77
|
client: Union[AuthenticatedClient, Client],
|
|
84
78
|
authorization: Union[None, Unset, str] = UNSET,
|
|
85
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
86
79
|
) -> Response[
|
|
87
80
|
Union[
|
|
88
81
|
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
@@ -90,11 +83,10 @@ def sync_detailed(
|
|
|
90
83
|
]:
|
|
91
84
|
"""Get Current User
|
|
92
85
|
|
|
93
|
-
Get
|
|
86
|
+
Get the currently authenticated user.
|
|
94
87
|
|
|
95
88
|
Args:
|
|
96
89
|
authorization (Union[None, Unset, str]):
|
|
97
|
-
auth_token (Union[None, Unset, str]):
|
|
98
90
|
|
|
99
91
|
Raises:
|
|
100
92
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -106,7 +98,6 @@ def sync_detailed(
|
|
|
106
98
|
|
|
107
99
|
kwargs = _get_kwargs(
|
|
108
100
|
authorization=authorization,
|
|
109
|
-
auth_token=auth_token,
|
|
110
101
|
)
|
|
111
102
|
|
|
112
103
|
response = client.get_httpx_client().request(
|
|
@@ -120,7 +111,6 @@ def sync(
|
|
|
120
111
|
*,
|
|
121
112
|
client: Union[AuthenticatedClient, Client],
|
|
122
113
|
authorization: Union[None, Unset, str] = UNSET,
|
|
123
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
124
114
|
) -> Optional[
|
|
125
115
|
Union[
|
|
126
116
|
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
@@ -128,11 +118,10 @@ def sync(
|
|
|
128
118
|
]:
|
|
129
119
|
"""Get Current User
|
|
130
120
|
|
|
131
|
-
Get
|
|
121
|
+
Get the currently authenticated user.
|
|
132
122
|
|
|
133
123
|
Args:
|
|
134
124
|
authorization (Union[None, Unset, str]):
|
|
135
|
-
auth_token (Union[None, Unset, str]):
|
|
136
125
|
|
|
137
126
|
Raises:
|
|
138
127
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -145,7 +134,6 @@ def sync(
|
|
|
145
134
|
return sync_detailed(
|
|
146
135
|
client=client,
|
|
147
136
|
authorization=authorization,
|
|
148
|
-
auth_token=auth_token,
|
|
149
137
|
).parsed
|
|
150
138
|
|
|
151
139
|
|
|
@@ -153,7 +141,6 @@ async def asyncio_detailed(
|
|
|
153
141
|
*,
|
|
154
142
|
client: Union[AuthenticatedClient, Client],
|
|
155
143
|
authorization: Union[None, Unset, str] = UNSET,
|
|
156
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
157
144
|
) -> Response[
|
|
158
145
|
Union[
|
|
159
146
|
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
@@ -161,11 +148,10 @@ async def asyncio_detailed(
|
|
|
161
148
|
]:
|
|
162
149
|
"""Get Current User
|
|
163
150
|
|
|
164
|
-
Get
|
|
151
|
+
Get the currently authenticated user.
|
|
165
152
|
|
|
166
153
|
Args:
|
|
167
154
|
authorization (Union[None, Unset, str]):
|
|
168
|
-
auth_token (Union[None, Unset, str]):
|
|
169
155
|
|
|
170
156
|
Raises:
|
|
171
157
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -177,7 +163,6 @@ async def asyncio_detailed(
|
|
|
177
163
|
|
|
178
164
|
kwargs = _get_kwargs(
|
|
179
165
|
authorization=authorization,
|
|
180
|
-
auth_token=auth_token,
|
|
181
166
|
)
|
|
182
167
|
|
|
183
168
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -189,7 +174,6 @@ async def asyncio(
|
|
|
189
174
|
*,
|
|
190
175
|
client: Union[AuthenticatedClient, Client],
|
|
191
176
|
authorization: Union[None, Unset, str] = UNSET,
|
|
192
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
193
177
|
) -> Optional[
|
|
194
178
|
Union[
|
|
195
179
|
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
@@ -197,11 +181,10 @@ async def asyncio(
|
|
|
197
181
|
]:
|
|
198
182
|
"""Get Current User
|
|
199
183
|
|
|
200
|
-
Get
|
|
184
|
+
Get the currently authenticated user.
|
|
201
185
|
|
|
202
186
|
Args:
|
|
203
187
|
authorization (Union[None, Unset, str]):
|
|
204
|
-
auth_token (Union[None, Unset, str]):
|
|
205
188
|
|
|
206
189
|
Raises:
|
|
207
190
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -215,6 +198,5 @@ async def asyncio(
|
|
|
215
198
|
await asyncio_detailed(
|
|
216
199
|
client=client,
|
|
217
200
|
authorization=authorization,
|
|
218
|
-
auth_token=auth_token,
|
|
219
201
|
)
|
|
220
202
|
).parsed
|
|
@@ -12,18 +12,18 @@ from ...types import UNSET, Response, Unset
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
-
|
|
15
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
16
16
|
) -> dict[str, Any]:
|
|
17
|
-
|
|
18
|
-
if
|
|
19
|
-
|
|
17
|
+
headers: dict[str, Any] = {}
|
|
18
|
+
if not isinstance(authorization, Unset):
|
|
19
|
+
headers["authorization"] = authorization
|
|
20
20
|
|
|
21
21
|
_kwargs: dict[str, Any] = {
|
|
22
22
|
"method": "post",
|
|
23
23
|
"url": "/v1/auth/logout",
|
|
24
|
-
"cookies": cookies,
|
|
25
24
|
}
|
|
26
25
|
|
|
26
|
+
_kwargs["headers"] = headers
|
|
27
27
|
return _kwargs
|
|
28
28
|
|
|
29
29
|
|
|
@@ -58,14 +58,14 @@ def _build_response(
|
|
|
58
58
|
def sync_detailed(
|
|
59
59
|
*,
|
|
60
60
|
client: Union[AuthenticatedClient, Client],
|
|
61
|
-
|
|
61
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
62
62
|
) -> Response[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
|
|
63
63
|
"""User Logout
|
|
64
64
|
|
|
65
65
|
Logout user and invalidate session.
|
|
66
66
|
|
|
67
67
|
Args:
|
|
68
|
-
|
|
68
|
+
authorization (Union[None, Unset, str]):
|
|
69
69
|
|
|
70
70
|
Raises:
|
|
71
71
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -76,7 +76,7 @@ def sync_detailed(
|
|
|
76
76
|
"""
|
|
77
77
|
|
|
78
78
|
kwargs = _get_kwargs(
|
|
79
|
-
|
|
79
|
+
authorization=authorization,
|
|
80
80
|
)
|
|
81
81
|
|
|
82
82
|
response = client.get_httpx_client().request(
|
|
@@ -89,14 +89,14 @@ def sync_detailed(
|
|
|
89
89
|
def sync(
|
|
90
90
|
*,
|
|
91
91
|
client: Union[AuthenticatedClient, Client],
|
|
92
|
-
|
|
92
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
93
93
|
) -> Optional[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
|
|
94
94
|
"""User Logout
|
|
95
95
|
|
|
96
96
|
Logout user and invalidate session.
|
|
97
97
|
|
|
98
98
|
Args:
|
|
99
|
-
|
|
99
|
+
authorization (Union[None, Unset, str]):
|
|
100
100
|
|
|
101
101
|
Raises:
|
|
102
102
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -108,21 +108,21 @@ def sync(
|
|
|
108
108
|
|
|
109
109
|
return sync_detailed(
|
|
110
110
|
client=client,
|
|
111
|
-
|
|
111
|
+
authorization=authorization,
|
|
112
112
|
).parsed
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
async def asyncio_detailed(
|
|
116
116
|
*,
|
|
117
117
|
client: Union[AuthenticatedClient, Client],
|
|
118
|
-
|
|
118
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
119
119
|
) -> Response[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
|
|
120
120
|
"""User Logout
|
|
121
121
|
|
|
122
122
|
Logout user and invalidate session.
|
|
123
123
|
|
|
124
124
|
Args:
|
|
125
|
-
|
|
125
|
+
authorization (Union[None, Unset, str]):
|
|
126
126
|
|
|
127
127
|
Raises:
|
|
128
128
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -133,7 +133,7 @@ async def asyncio_detailed(
|
|
|
133
133
|
"""
|
|
134
134
|
|
|
135
135
|
kwargs = _get_kwargs(
|
|
136
|
-
|
|
136
|
+
authorization=authorization,
|
|
137
137
|
)
|
|
138
138
|
|
|
139
139
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -144,14 +144,14 @@ async def asyncio_detailed(
|
|
|
144
144
|
async def asyncio(
|
|
145
145
|
*,
|
|
146
146
|
client: Union[AuthenticatedClient, Client],
|
|
147
|
-
|
|
147
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
148
148
|
) -> Optional[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
|
|
149
149
|
"""User Logout
|
|
150
150
|
|
|
151
151
|
Logout user and invalidate session.
|
|
152
152
|
|
|
153
153
|
Args:
|
|
154
|
-
|
|
154
|
+
authorization (Union[None, Unset, str]):
|
|
155
155
|
|
|
156
156
|
Raises:
|
|
157
157
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -164,6 +164,6 @@ async def asyncio(
|
|
|
164
164
|
return (
|
|
165
165
|
await asyncio_detailed(
|
|
166
166
|
client=client,
|
|
167
|
-
|
|
167
|
+
authorization=authorization,
|
|
168
168
|
)
|
|
169
169
|
).parsed
|
|
@@ -13,18 +13,18 @@ from ...types import UNSET, Response, Unset
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
|
-
|
|
16
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
17
17
|
) -> dict[str, Any]:
|
|
18
|
-
|
|
19
|
-
if
|
|
20
|
-
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
if not isinstance(authorization, Unset):
|
|
20
|
+
headers["authorization"] = authorization
|
|
21
21
|
|
|
22
22
|
_kwargs: dict[str, Any] = {
|
|
23
23
|
"method": "post",
|
|
24
24
|
"url": "/v1/auth/refresh",
|
|
25
|
-
"cookies": cookies,
|
|
26
25
|
}
|
|
27
26
|
|
|
27
|
+
_kwargs["headers"] = headers
|
|
28
28
|
return _kwargs
|
|
29
29
|
|
|
30
30
|
|
|
@@ -63,14 +63,14 @@ def _build_response(
|
|
|
63
63
|
def sync_detailed(
|
|
64
64
|
*,
|
|
65
65
|
client: Union[AuthenticatedClient, Client],
|
|
66
|
-
|
|
66
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
67
67
|
) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
68
68
|
"""Refresh Session
|
|
69
69
|
|
|
70
|
-
Refresh
|
|
70
|
+
Refresh authentication session with a new JWT token.
|
|
71
71
|
|
|
72
72
|
Args:
|
|
73
|
-
|
|
73
|
+
authorization (Union[None, Unset, str]):
|
|
74
74
|
|
|
75
75
|
Raises:
|
|
76
76
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -81,7 +81,7 @@ def sync_detailed(
|
|
|
81
81
|
"""
|
|
82
82
|
|
|
83
83
|
kwargs = _get_kwargs(
|
|
84
|
-
|
|
84
|
+
authorization=authorization,
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
response = client.get_httpx_client().request(
|
|
@@ -94,14 +94,14 @@ def sync_detailed(
|
|
|
94
94
|
def sync(
|
|
95
95
|
*,
|
|
96
96
|
client: Union[AuthenticatedClient, Client],
|
|
97
|
-
|
|
97
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
98
98
|
) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
99
99
|
"""Refresh Session
|
|
100
100
|
|
|
101
|
-
Refresh
|
|
101
|
+
Refresh authentication session with a new JWT token.
|
|
102
102
|
|
|
103
103
|
Args:
|
|
104
|
-
|
|
104
|
+
authorization (Union[None, Unset, str]):
|
|
105
105
|
|
|
106
106
|
Raises:
|
|
107
107
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -113,21 +113,21 @@ def sync(
|
|
|
113
113
|
|
|
114
114
|
return sync_detailed(
|
|
115
115
|
client=client,
|
|
116
|
-
|
|
116
|
+
authorization=authorization,
|
|
117
117
|
).parsed
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
async def asyncio_detailed(
|
|
121
121
|
*,
|
|
122
122
|
client: Union[AuthenticatedClient, Client],
|
|
123
|
-
|
|
123
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
124
124
|
) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
125
125
|
"""Refresh Session
|
|
126
126
|
|
|
127
|
-
Refresh
|
|
127
|
+
Refresh authentication session with a new JWT token.
|
|
128
128
|
|
|
129
129
|
Args:
|
|
130
|
-
|
|
130
|
+
authorization (Union[None, Unset, str]):
|
|
131
131
|
|
|
132
132
|
Raises:
|
|
133
133
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -138,7 +138,7 @@ async def asyncio_detailed(
|
|
|
138
138
|
"""
|
|
139
139
|
|
|
140
140
|
kwargs = _get_kwargs(
|
|
141
|
-
|
|
141
|
+
authorization=authorization,
|
|
142
142
|
)
|
|
143
143
|
|
|
144
144
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -149,14 +149,14 @@ async def asyncio_detailed(
|
|
|
149
149
|
async def asyncio(
|
|
150
150
|
*,
|
|
151
151
|
client: Union[AuthenticatedClient, Client],
|
|
152
|
-
|
|
152
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
153
153
|
) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
|
|
154
154
|
"""Refresh Session
|
|
155
155
|
|
|
156
|
-
Refresh
|
|
156
|
+
Refresh authentication session with a new JWT token.
|
|
157
157
|
|
|
158
158
|
Args:
|
|
159
|
-
|
|
159
|
+
authorization (Union[None, Unset, str]):
|
|
160
160
|
|
|
161
161
|
Raises:
|
|
162
162
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -169,6 +169,6 @@ async def asyncio(
|
|
|
169
169
|
return (
|
|
170
170
|
await asyncio_detailed(
|
|
171
171
|
client=client,
|
|
172
|
-
|
|
172
|
+
authorization=authorization,
|
|
173
173
|
)
|
|
174
174
|
).parsed
|