robosystems-client 0.2.3__py3-none-any.whl → 0.2.5__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/auth_response.py +40 -0
- 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.5.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/RECORD +104 -103
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -14,13 +14,7 @@ def _get_kwargs(
|
|
|
14
14
|
graph_id: str,
|
|
15
15
|
*,
|
|
16
16
|
capability: Union[None, Unset, str] = UNSET,
|
|
17
|
-
token: Union[None, Unset, str] = UNSET,
|
|
18
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
19
17
|
) -> dict[str, Any]:
|
|
20
|
-
headers: dict[str, Any] = {}
|
|
21
|
-
if not isinstance(authorization, Unset):
|
|
22
|
-
headers["authorization"] = authorization
|
|
23
|
-
|
|
24
18
|
params: dict[str, Any] = {}
|
|
25
19
|
|
|
26
20
|
json_capability: Union[None, Unset, str]
|
|
@@ -30,13 +24,6 @@ def _get_kwargs(
|
|
|
30
24
|
json_capability = capability
|
|
31
25
|
params["capability"] = json_capability
|
|
32
26
|
|
|
33
|
-
json_token: Union[None, Unset, str]
|
|
34
|
-
if isinstance(token, Unset):
|
|
35
|
-
json_token = UNSET
|
|
36
|
-
else:
|
|
37
|
-
json_token = token
|
|
38
|
-
params["token"] = json_token
|
|
39
|
-
|
|
40
27
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
41
28
|
|
|
42
29
|
_kwargs: dict[str, Any] = {
|
|
@@ -45,7 +32,6 @@ def _get_kwargs(
|
|
|
45
32
|
"params": params,
|
|
46
33
|
}
|
|
47
34
|
|
|
48
|
-
_kwargs["headers"] = headers
|
|
49
35
|
return _kwargs
|
|
50
36
|
|
|
51
37
|
|
|
@@ -88,8 +74,6 @@ def sync_detailed(
|
|
|
88
74
|
*,
|
|
89
75
|
client: AuthenticatedClient,
|
|
90
76
|
capability: Union[None, Unset, str] = UNSET,
|
|
91
|
-
token: Union[None, Unset, str] = UNSET,
|
|
92
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
93
77
|
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
94
78
|
"""List available agents
|
|
95
79
|
|
|
@@ -104,11 +88,9 @@ def sync_detailed(
|
|
|
104
88
|
Use the optional `capability` filter to find agents with specific capabilities.
|
|
105
89
|
|
|
106
90
|
Args:
|
|
107
|
-
graph_id (str):
|
|
91
|
+
graph_id (str):
|
|
108
92
|
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
109
93
|
'rag_search')
|
|
110
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
111
|
-
authorization (Union[None, Unset, str]):
|
|
112
94
|
|
|
113
95
|
Raises:
|
|
114
96
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -121,8 +103,6 @@ def sync_detailed(
|
|
|
121
103
|
kwargs = _get_kwargs(
|
|
122
104
|
graph_id=graph_id,
|
|
123
105
|
capability=capability,
|
|
124
|
-
token=token,
|
|
125
|
-
authorization=authorization,
|
|
126
106
|
)
|
|
127
107
|
|
|
128
108
|
response = client.get_httpx_client().request(
|
|
@@ -137,8 +117,6 @@ def sync(
|
|
|
137
117
|
*,
|
|
138
118
|
client: AuthenticatedClient,
|
|
139
119
|
capability: Union[None, Unset, str] = UNSET,
|
|
140
|
-
token: Union[None, Unset, str] = UNSET,
|
|
141
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
142
120
|
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
143
121
|
"""List available agents
|
|
144
122
|
|
|
@@ -153,11 +131,9 @@ def sync(
|
|
|
153
131
|
Use the optional `capability` filter to find agents with specific capabilities.
|
|
154
132
|
|
|
155
133
|
Args:
|
|
156
|
-
graph_id (str):
|
|
134
|
+
graph_id (str):
|
|
157
135
|
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
158
136
|
'rag_search')
|
|
159
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
160
|
-
authorization (Union[None, Unset, str]):
|
|
161
137
|
|
|
162
138
|
Raises:
|
|
163
139
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -171,8 +147,6 @@ def sync(
|
|
|
171
147
|
graph_id=graph_id,
|
|
172
148
|
client=client,
|
|
173
149
|
capability=capability,
|
|
174
|
-
token=token,
|
|
175
|
-
authorization=authorization,
|
|
176
150
|
).parsed
|
|
177
151
|
|
|
178
152
|
|
|
@@ -181,8 +155,6 @@ async def asyncio_detailed(
|
|
|
181
155
|
*,
|
|
182
156
|
client: AuthenticatedClient,
|
|
183
157
|
capability: Union[None, Unset, str] = UNSET,
|
|
184
|
-
token: Union[None, Unset, str] = UNSET,
|
|
185
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
186
158
|
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
187
159
|
"""List available agents
|
|
188
160
|
|
|
@@ -197,11 +169,9 @@ async def asyncio_detailed(
|
|
|
197
169
|
Use the optional `capability` filter to find agents with specific capabilities.
|
|
198
170
|
|
|
199
171
|
Args:
|
|
200
|
-
graph_id (str):
|
|
172
|
+
graph_id (str):
|
|
201
173
|
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
202
174
|
'rag_search')
|
|
203
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
204
|
-
authorization (Union[None, Unset, str]):
|
|
205
175
|
|
|
206
176
|
Raises:
|
|
207
177
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -214,8 +184,6 @@ async def asyncio_detailed(
|
|
|
214
184
|
kwargs = _get_kwargs(
|
|
215
185
|
graph_id=graph_id,
|
|
216
186
|
capability=capability,
|
|
217
|
-
token=token,
|
|
218
|
-
authorization=authorization,
|
|
219
187
|
)
|
|
220
188
|
|
|
221
189
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -228,8 +196,6 @@ async def asyncio(
|
|
|
228
196
|
*,
|
|
229
197
|
client: AuthenticatedClient,
|
|
230
198
|
capability: Union[None, Unset, str] = UNSET,
|
|
231
|
-
token: Union[None, Unset, str] = UNSET,
|
|
232
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
233
199
|
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
234
200
|
"""List available agents
|
|
235
201
|
|
|
@@ -244,11 +210,9 @@ async def asyncio(
|
|
|
244
210
|
Use the optional `capability` filter to find agents with specific capabilities.
|
|
245
211
|
|
|
246
212
|
Args:
|
|
247
|
-
graph_id (str):
|
|
213
|
+
graph_id (str):
|
|
248
214
|
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
249
215
|
'rag_search')
|
|
250
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
251
|
-
authorization (Union[None, Unset, str]):
|
|
252
216
|
|
|
253
217
|
Raises:
|
|
254
218
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -263,7 +227,5 @@ async def asyncio(
|
|
|
263
227
|
graph_id=graph_id,
|
|
264
228
|
client=client,
|
|
265
229
|
capability=capability,
|
|
266
|
-
token=token,
|
|
267
|
-
authorization=authorization,
|
|
268
230
|
)
|
|
269
231
|
).parsed
|
|
@@ -8,35 +8,19 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.agent_recommendation_request import AgentRecommendationRequest
|
|
9
9
|
from ...models.agent_recommendation_response import AgentRecommendationResponse
|
|
10
10
|
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: AgentRecommendationRequest,
|
|
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": "post",
|
|
38
23
|
"url": f"/v1/graphs/{graph_id}/agent/recommend",
|
|
39
|
-
"params": params,
|
|
40
24
|
}
|
|
41
25
|
|
|
42
26
|
_kwargs["json"] = body.to_dict()
|
|
@@ -86,8 +70,6 @@ def sync_detailed(
|
|
|
86
70
|
*,
|
|
87
71
|
client: AuthenticatedClient,
|
|
88
72
|
body: AgentRecommendationRequest,
|
|
89
|
-
token: Union[None, Unset, str] = UNSET,
|
|
90
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
91
73
|
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
92
74
|
"""Get agent recommendations
|
|
93
75
|
|
|
@@ -107,9 +89,7 @@ def sync_detailed(
|
|
|
107
89
|
Returns top agents ranked by confidence with explanations.
|
|
108
90
|
|
|
109
91
|
Args:
|
|
110
|
-
graph_id (str):
|
|
111
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
112
|
-
authorization (Union[None, Unset, str]):
|
|
92
|
+
graph_id (str):
|
|
113
93
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
114
94
|
|
|
115
95
|
Raises:
|
|
@@ -123,8 +103,6 @@ def sync_detailed(
|
|
|
123
103
|
kwargs = _get_kwargs(
|
|
124
104
|
graph_id=graph_id,
|
|
125
105
|
body=body,
|
|
126
|
-
token=token,
|
|
127
|
-
authorization=authorization,
|
|
128
106
|
)
|
|
129
107
|
|
|
130
108
|
response = client.get_httpx_client().request(
|
|
@@ -139,8 +117,6 @@ def sync(
|
|
|
139
117
|
*,
|
|
140
118
|
client: AuthenticatedClient,
|
|
141
119
|
body: AgentRecommendationRequest,
|
|
142
|
-
token: Union[None, Unset, str] = UNSET,
|
|
143
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
144
120
|
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
145
121
|
"""Get agent recommendations
|
|
146
122
|
|
|
@@ -160,9 +136,7 @@ def sync(
|
|
|
160
136
|
Returns top agents ranked by confidence with explanations.
|
|
161
137
|
|
|
162
138
|
Args:
|
|
163
|
-
graph_id (str):
|
|
164
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
165
|
-
authorization (Union[None, Unset, str]):
|
|
139
|
+
graph_id (str):
|
|
166
140
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
167
141
|
|
|
168
142
|
Raises:
|
|
@@ -177,8 +151,6 @@ def sync(
|
|
|
177
151
|
graph_id=graph_id,
|
|
178
152
|
client=client,
|
|
179
153
|
body=body,
|
|
180
|
-
token=token,
|
|
181
|
-
authorization=authorization,
|
|
182
154
|
).parsed
|
|
183
155
|
|
|
184
156
|
|
|
@@ -187,8 +159,6 @@ async def asyncio_detailed(
|
|
|
187
159
|
*,
|
|
188
160
|
client: AuthenticatedClient,
|
|
189
161
|
body: AgentRecommendationRequest,
|
|
190
|
-
token: Union[None, Unset, str] = UNSET,
|
|
191
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
192
162
|
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
193
163
|
"""Get agent recommendations
|
|
194
164
|
|
|
@@ -208,9 +178,7 @@ async def asyncio_detailed(
|
|
|
208
178
|
Returns top agents ranked by confidence with explanations.
|
|
209
179
|
|
|
210
180
|
Args:
|
|
211
|
-
graph_id (str):
|
|
212
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
213
|
-
authorization (Union[None, Unset, str]):
|
|
181
|
+
graph_id (str):
|
|
214
182
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
215
183
|
|
|
216
184
|
Raises:
|
|
@@ -224,8 +192,6 @@ async def asyncio_detailed(
|
|
|
224
192
|
kwargs = _get_kwargs(
|
|
225
193
|
graph_id=graph_id,
|
|
226
194
|
body=body,
|
|
227
|
-
token=token,
|
|
228
|
-
authorization=authorization,
|
|
229
195
|
)
|
|
230
196
|
|
|
231
197
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -238,8 +204,6 @@ async def asyncio(
|
|
|
238
204
|
*,
|
|
239
205
|
client: AuthenticatedClient,
|
|
240
206
|
body: AgentRecommendationRequest,
|
|
241
|
-
token: Union[None, Unset, str] = UNSET,
|
|
242
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
243
207
|
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
244
208
|
"""Get agent recommendations
|
|
245
209
|
|
|
@@ -259,9 +223,7 @@ async def asyncio(
|
|
|
259
223
|
Returns top agents ranked by confidence with explanations.
|
|
260
224
|
|
|
261
225
|
Args:
|
|
262
|
-
graph_id (str):
|
|
263
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
264
|
-
authorization (Union[None, Unset, str]):
|
|
226
|
+
graph_id (str):
|
|
265
227
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
266
228
|
|
|
267
229
|
Raises:
|
|
@@ -277,7 +239,5 @@ async def asyncio(
|
|
|
277
239
|
graph_id=graph_id,
|
|
278
240
|
client=client,
|
|
279
241
|
body=body,
|
|
280
|
-
token=token,
|
|
281
|
-
authorization=authorization,
|
|
282
242
|
)
|
|
283
243
|
).parsed
|
|
@@ -13,13 +13,8 @@ from ...types import UNSET, Response, Unset
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
17
16
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
18
17
|
) -> dict[str, Any]:
|
|
19
|
-
headers: dict[str, Any] = {}
|
|
20
|
-
if not isinstance(authorization, Unset):
|
|
21
|
-
headers["authorization"] = authorization
|
|
22
|
-
|
|
23
18
|
cookies = {}
|
|
24
19
|
if auth_token is not UNSET:
|
|
25
20
|
cookies["auth-token"] = auth_token
|
|
@@ -30,7 +25,6 @@ def _get_kwargs(
|
|
|
30
25
|
"cookies": cookies,
|
|
31
26
|
}
|
|
32
27
|
|
|
33
|
-
_kwargs["headers"] = headers
|
|
34
28
|
return _kwargs
|
|
35
29
|
|
|
36
30
|
|
|
@@ -72,7 +66,6 @@ def _build_response(
|
|
|
72
66
|
def sync_detailed(
|
|
73
67
|
*,
|
|
74
68
|
client: Union[AuthenticatedClient, Client],
|
|
75
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
76
69
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
77
70
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SSOTokenResponse]]:
|
|
78
71
|
"""Generate SSO Token
|
|
@@ -80,7 +73,6 @@ def sync_detailed(
|
|
|
80
73
|
Generate a temporary SSO token for cross-app authentication.
|
|
81
74
|
|
|
82
75
|
Args:
|
|
83
|
-
authorization (Union[None, Unset, str]):
|
|
84
76
|
auth_token (Union[None, Unset, str]):
|
|
85
77
|
|
|
86
78
|
Raises:
|
|
@@ -92,7 +84,6 @@ def sync_detailed(
|
|
|
92
84
|
"""
|
|
93
85
|
|
|
94
86
|
kwargs = _get_kwargs(
|
|
95
|
-
authorization=authorization,
|
|
96
87
|
auth_token=auth_token,
|
|
97
88
|
)
|
|
98
89
|
|
|
@@ -106,7 +97,6 @@ def sync_detailed(
|
|
|
106
97
|
def sync(
|
|
107
98
|
*,
|
|
108
99
|
client: Union[AuthenticatedClient, Client],
|
|
109
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
110
100
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
111
101
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SSOTokenResponse]]:
|
|
112
102
|
"""Generate SSO Token
|
|
@@ -114,7 +104,6 @@ def sync(
|
|
|
114
104
|
Generate a temporary SSO token for cross-app authentication.
|
|
115
105
|
|
|
116
106
|
Args:
|
|
117
|
-
authorization (Union[None, Unset, str]):
|
|
118
107
|
auth_token (Union[None, Unset, str]):
|
|
119
108
|
|
|
120
109
|
Raises:
|
|
@@ -127,7 +116,6 @@ def sync(
|
|
|
127
116
|
|
|
128
117
|
return sync_detailed(
|
|
129
118
|
client=client,
|
|
130
|
-
authorization=authorization,
|
|
131
119
|
auth_token=auth_token,
|
|
132
120
|
).parsed
|
|
133
121
|
|
|
@@ -135,7 +123,6 @@ def sync(
|
|
|
135
123
|
async def asyncio_detailed(
|
|
136
124
|
*,
|
|
137
125
|
client: Union[AuthenticatedClient, Client],
|
|
138
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
139
126
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
140
127
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SSOTokenResponse]]:
|
|
141
128
|
"""Generate SSO Token
|
|
@@ -143,7 +130,6 @@ async def asyncio_detailed(
|
|
|
143
130
|
Generate a temporary SSO token for cross-app authentication.
|
|
144
131
|
|
|
145
132
|
Args:
|
|
146
|
-
authorization (Union[None, Unset, str]):
|
|
147
133
|
auth_token (Union[None, Unset, str]):
|
|
148
134
|
|
|
149
135
|
Raises:
|
|
@@ -155,7 +141,6 @@ async def asyncio_detailed(
|
|
|
155
141
|
"""
|
|
156
142
|
|
|
157
143
|
kwargs = _get_kwargs(
|
|
158
|
-
authorization=authorization,
|
|
159
144
|
auth_token=auth_token,
|
|
160
145
|
)
|
|
161
146
|
|
|
@@ -167,7 +152,6 @@ async def asyncio_detailed(
|
|
|
167
152
|
async def asyncio(
|
|
168
153
|
*,
|
|
169
154
|
client: Union[AuthenticatedClient, Client],
|
|
170
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
171
155
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
172
156
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SSOTokenResponse]]:
|
|
173
157
|
"""Generate SSO Token
|
|
@@ -175,7 +159,6 @@ async def asyncio(
|
|
|
175
159
|
Generate a temporary SSO token for cross-app authentication.
|
|
176
160
|
|
|
177
161
|
Args:
|
|
178
|
-
authorization (Union[None, Unset, str]):
|
|
179
162
|
auth_token (Union[None, Unset, str]):
|
|
180
163
|
|
|
181
164
|
Raises:
|
|
@@ -189,7 +172,6 @@ async def asyncio(
|
|
|
189
172
|
return (
|
|
190
173
|
await asyncio_detailed(
|
|
191
174
|
client=client,
|
|
192
|
-
authorization=authorization,
|
|
193
175
|
auth_token=auth_token,
|
|
194
176
|
)
|
|
195
177
|
).parsed
|
|
@@ -9,34 +9,21 @@ from ...models.error_response import ErrorResponse
|
|
|
9
9
|
from ...models.get_current_auth_user_response_getcurrentauthuser import (
|
|
10
10
|
GetCurrentAuthUserResponseGetcurrentauthuser,
|
|
11
11
|
)
|
|
12
|
-
from ...
|
|
13
|
-
from ...types import UNSET, Response, Unset
|
|
12
|
+
from ...types import Response
|
|
14
13
|
|
|
15
14
|
|
|
16
|
-
def _get_kwargs(
|
|
17
|
-
*,
|
|
18
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
19
|
-
) -> dict[str, Any]:
|
|
20
|
-
headers: dict[str, Any] = {}
|
|
21
|
-
if not isinstance(authorization, Unset):
|
|
22
|
-
headers["authorization"] = authorization
|
|
23
|
-
|
|
15
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
24
16
|
_kwargs: dict[str, Any] = {
|
|
25
17
|
"method": "get",
|
|
26
18
|
"url": "/v1/auth/me",
|
|
27
19
|
}
|
|
28
20
|
|
|
29
|
-
_kwargs["headers"] = headers
|
|
30
21
|
return _kwargs
|
|
31
22
|
|
|
32
23
|
|
|
33
24
|
def _parse_response(
|
|
34
25
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
35
|
-
) -> Optional[
|
|
36
|
-
Union[
|
|
37
|
-
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
38
|
-
]
|
|
39
|
-
]:
|
|
26
|
+
) -> Optional[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]]:
|
|
40
27
|
if response.status_code == 200:
|
|
41
28
|
response_200 = GetCurrentAuthUserResponseGetcurrentauthuser.from_dict(
|
|
42
29
|
response.json()
|
|
@@ -49,11 +36,6 @@ def _parse_response(
|
|
|
49
36
|
|
|
50
37
|
return response_401
|
|
51
38
|
|
|
52
|
-
if response.status_code == 422:
|
|
53
|
-
response_422 = HTTPValidationError.from_dict(response.json())
|
|
54
|
-
|
|
55
|
-
return response_422
|
|
56
|
-
|
|
57
39
|
if client.raise_on_unexpected_status:
|
|
58
40
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
59
41
|
else:
|
|
@@ -62,11 +44,7 @@ def _parse_response(
|
|
|
62
44
|
|
|
63
45
|
def _build_response(
|
|
64
46
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
65
|
-
) -> Response[
|
|
66
|
-
Union[
|
|
67
|
-
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
68
|
-
]
|
|
69
|
-
]:
|
|
47
|
+
) -> Response[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]]:
|
|
70
48
|
return Response(
|
|
71
49
|
status_code=HTTPStatus(response.status_code),
|
|
72
50
|
content=response.content,
|
|
@@ -78,30 +56,20 @@ def _build_response(
|
|
|
78
56
|
def sync_detailed(
|
|
79
57
|
*,
|
|
80
58
|
client: Union[AuthenticatedClient, Client],
|
|
81
|
-
|
|
82
|
-
) -> Response[
|
|
83
|
-
Union[
|
|
84
|
-
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
85
|
-
]
|
|
86
|
-
]:
|
|
59
|
+
) -> Response[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]]:
|
|
87
60
|
"""Get Current User
|
|
88
61
|
|
|
89
62
|
Get the currently authenticated user.
|
|
90
63
|
|
|
91
|
-
Args:
|
|
92
|
-
authorization (Union[None, Unset, str]):
|
|
93
|
-
|
|
94
64
|
Raises:
|
|
95
65
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
96
66
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
97
67
|
|
|
98
68
|
Returns:
|
|
99
|
-
Response[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser
|
|
69
|
+
Response[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]]
|
|
100
70
|
"""
|
|
101
71
|
|
|
102
|
-
kwargs = _get_kwargs(
|
|
103
|
-
authorization=authorization,
|
|
104
|
-
)
|
|
72
|
+
kwargs = _get_kwargs()
|
|
105
73
|
|
|
106
74
|
response = client.get_httpx_client().request(
|
|
107
75
|
**kwargs,
|
|
@@ -113,60 +81,41 @@ def sync_detailed(
|
|
|
113
81
|
def sync(
|
|
114
82
|
*,
|
|
115
83
|
client: Union[AuthenticatedClient, Client],
|
|
116
|
-
|
|
117
|
-
) -> Optional[
|
|
118
|
-
Union[
|
|
119
|
-
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
120
|
-
]
|
|
121
|
-
]:
|
|
84
|
+
) -> Optional[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]]:
|
|
122
85
|
"""Get Current User
|
|
123
86
|
|
|
124
87
|
Get the currently authenticated user.
|
|
125
88
|
|
|
126
|
-
Args:
|
|
127
|
-
authorization (Union[None, Unset, str]):
|
|
128
|
-
|
|
129
89
|
Raises:
|
|
130
90
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
131
91
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
132
92
|
|
|
133
93
|
Returns:
|
|
134
|
-
Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser
|
|
94
|
+
Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]
|
|
135
95
|
"""
|
|
136
96
|
|
|
137
97
|
return sync_detailed(
|
|
138
98
|
client=client,
|
|
139
|
-
authorization=authorization,
|
|
140
99
|
).parsed
|
|
141
100
|
|
|
142
101
|
|
|
143
102
|
async def asyncio_detailed(
|
|
144
103
|
*,
|
|
145
104
|
client: Union[AuthenticatedClient, Client],
|
|
146
|
-
|
|
147
|
-
) -> Response[
|
|
148
|
-
Union[
|
|
149
|
-
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
150
|
-
]
|
|
151
|
-
]:
|
|
105
|
+
) -> Response[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]]:
|
|
152
106
|
"""Get Current User
|
|
153
107
|
|
|
154
108
|
Get the currently authenticated user.
|
|
155
109
|
|
|
156
|
-
Args:
|
|
157
|
-
authorization (Union[None, Unset, str]):
|
|
158
|
-
|
|
159
110
|
Raises:
|
|
160
111
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
161
112
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
162
113
|
|
|
163
114
|
Returns:
|
|
164
|
-
Response[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser
|
|
115
|
+
Response[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]]
|
|
165
116
|
"""
|
|
166
117
|
|
|
167
|
-
kwargs = _get_kwargs(
|
|
168
|
-
authorization=authorization,
|
|
169
|
-
)
|
|
118
|
+
kwargs = _get_kwargs()
|
|
170
119
|
|
|
171
120
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
172
121
|
|
|
@@ -176,30 +125,21 @@ async def asyncio_detailed(
|
|
|
176
125
|
async def asyncio(
|
|
177
126
|
*,
|
|
178
127
|
client: Union[AuthenticatedClient, Client],
|
|
179
|
-
|
|
180
|
-
) -> Optional[
|
|
181
|
-
Union[
|
|
182
|
-
ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser, HTTPValidationError
|
|
183
|
-
]
|
|
184
|
-
]:
|
|
128
|
+
) -> Optional[Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]]:
|
|
185
129
|
"""Get Current User
|
|
186
130
|
|
|
187
131
|
Get the currently authenticated user.
|
|
188
132
|
|
|
189
|
-
Args:
|
|
190
|
-
authorization (Union[None, Unset, str]):
|
|
191
|
-
|
|
192
133
|
Raises:
|
|
193
134
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
194
135
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
195
136
|
|
|
196
137
|
Returns:
|
|
197
|
-
Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser
|
|
138
|
+
Union[ErrorResponse, GetCurrentAuthUserResponseGetcurrentauthuser]
|
|
198
139
|
"""
|
|
199
140
|
|
|
200
141
|
return (
|
|
201
142
|
await asyncio_detailed(
|
|
202
143
|
client=client,
|
|
203
|
-
authorization=authorization,
|
|
204
144
|
)
|
|
205
145
|
).parsed
|