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,17 +14,13 @@ 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,
|
|
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
|
-
cookies = {}
|
|
25
|
-
if auth_token is not UNSET:
|
|
26
|
-
cookies["auth-token"] = auth_token
|
|
27
|
-
|
|
28
24
|
params: dict[str, Any] = {}
|
|
29
25
|
|
|
30
26
|
json_capability: Union[None, Unset, str]
|
|
@@ -34,13 +30,19 @@ def _get_kwargs(
|
|
|
34
30
|
json_capability = capability
|
|
35
31
|
params["capability"] = json_capability
|
|
36
32
|
|
|
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
|
+
|
|
37
40
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
38
41
|
|
|
39
42
|
_kwargs: dict[str, Any] = {
|
|
40
43
|
"method": "get",
|
|
41
44
|
"url": f"/v1/{graph_id}/agent/list",
|
|
42
45
|
"params": params,
|
|
43
|
-
"cookies": cookies,
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
_kwargs["headers"] = headers
|
|
@@ -83,8 +85,8 @@ def sync_detailed(
|
|
|
83
85
|
*,
|
|
84
86
|
client: AuthenticatedClient,
|
|
85
87
|
capability: Union[None, Unset, str] = UNSET,
|
|
88
|
+
token: Union[None, Unset, str] = UNSET,
|
|
86
89
|
authorization: Union[None, Unset, str] = UNSET,
|
|
87
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
88
90
|
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
89
91
|
"""List available agents
|
|
90
92
|
|
|
@@ -102,8 +104,8 @@ def sync_detailed(
|
|
|
102
104
|
graph_id (str): Graph database identifier
|
|
103
105
|
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
104
106
|
'rag_search')
|
|
107
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
105
108
|
authorization (Union[None, Unset, str]):
|
|
106
|
-
auth_token (Union[None, Unset, str]):
|
|
107
109
|
|
|
108
110
|
Raises:
|
|
109
111
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -116,8 +118,8 @@ def sync_detailed(
|
|
|
116
118
|
kwargs = _get_kwargs(
|
|
117
119
|
graph_id=graph_id,
|
|
118
120
|
capability=capability,
|
|
121
|
+
token=token,
|
|
119
122
|
authorization=authorization,
|
|
120
|
-
auth_token=auth_token,
|
|
121
123
|
)
|
|
122
124
|
|
|
123
125
|
response = client.get_httpx_client().request(
|
|
@@ -132,8 +134,8 @@ def sync(
|
|
|
132
134
|
*,
|
|
133
135
|
client: AuthenticatedClient,
|
|
134
136
|
capability: Union[None, Unset, str] = UNSET,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
135
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
136
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
137
139
|
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
138
140
|
"""List available agents
|
|
139
141
|
|
|
@@ -151,8 +153,8 @@ def sync(
|
|
|
151
153
|
graph_id (str): Graph database identifier
|
|
152
154
|
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
153
155
|
'rag_search')
|
|
156
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
154
157
|
authorization (Union[None, Unset, str]):
|
|
155
|
-
auth_token (Union[None, Unset, str]):
|
|
156
158
|
|
|
157
159
|
Raises:
|
|
158
160
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -166,8 +168,8 @@ def sync(
|
|
|
166
168
|
graph_id=graph_id,
|
|
167
169
|
client=client,
|
|
168
170
|
capability=capability,
|
|
171
|
+
token=token,
|
|
169
172
|
authorization=authorization,
|
|
170
|
-
auth_token=auth_token,
|
|
171
173
|
).parsed
|
|
172
174
|
|
|
173
175
|
|
|
@@ -176,8 +178,8 @@ async def asyncio_detailed(
|
|
|
176
178
|
*,
|
|
177
179
|
client: AuthenticatedClient,
|
|
178
180
|
capability: Union[None, Unset, str] = UNSET,
|
|
181
|
+
token: Union[None, Unset, str] = UNSET,
|
|
179
182
|
authorization: Union[None, Unset, str] = UNSET,
|
|
180
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
181
183
|
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
182
184
|
"""List available agents
|
|
183
185
|
|
|
@@ -195,8 +197,8 @@ async def asyncio_detailed(
|
|
|
195
197
|
graph_id (str): Graph database identifier
|
|
196
198
|
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
197
199
|
'rag_search')
|
|
200
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
198
201
|
authorization (Union[None, Unset, str]):
|
|
199
|
-
auth_token (Union[None, Unset, str]):
|
|
200
202
|
|
|
201
203
|
Raises:
|
|
202
204
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -209,8 +211,8 @@ async def asyncio_detailed(
|
|
|
209
211
|
kwargs = _get_kwargs(
|
|
210
212
|
graph_id=graph_id,
|
|
211
213
|
capability=capability,
|
|
214
|
+
token=token,
|
|
212
215
|
authorization=authorization,
|
|
213
|
-
auth_token=auth_token,
|
|
214
216
|
)
|
|
215
217
|
|
|
216
218
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -223,8 +225,8 @@ async def asyncio(
|
|
|
223
225
|
*,
|
|
224
226
|
client: AuthenticatedClient,
|
|
225
227
|
capability: Union[None, Unset, str] = UNSET,
|
|
228
|
+
token: Union[None, Unset, str] = UNSET,
|
|
226
229
|
authorization: Union[None, Unset, str] = UNSET,
|
|
227
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
228
230
|
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
229
231
|
"""List available agents
|
|
230
232
|
|
|
@@ -242,8 +244,8 @@ async def asyncio(
|
|
|
242
244
|
graph_id (str): Graph database identifier
|
|
243
245
|
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
244
246
|
'rag_search')
|
|
247
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
245
248
|
authorization (Union[None, Unset, str]):
|
|
246
|
-
auth_token (Union[None, Unset, str]):
|
|
247
249
|
|
|
248
250
|
Raises:
|
|
249
251
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -258,7 +260,7 @@ async def asyncio(
|
|
|
258
260
|
graph_id=graph_id,
|
|
259
261
|
client=client,
|
|
260
262
|
capability=capability,
|
|
263
|
+
token=token,
|
|
261
264
|
authorization=authorization,
|
|
262
|
-
auth_token=auth_token,
|
|
263
265
|
)
|
|
264
266
|
).parsed
|
|
@@ -15,21 +15,28 @@ def _get_kwargs(
|
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: AgentRecommendationRequest,
|
|
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": "post",
|
|
31
38
|
"url": f"/v1/{graph_id}/agent/recommend",
|
|
32
|
-
"
|
|
39
|
+
"params": params,
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
_kwargs["json"] = body.to_dict()
|
|
@@ -76,8 +83,8 @@ def sync_detailed(
|
|
|
76
83
|
*,
|
|
77
84
|
client: AuthenticatedClient,
|
|
78
85
|
body: AgentRecommendationRequest,
|
|
86
|
+
token: Union[None, Unset, str] = UNSET,
|
|
79
87
|
authorization: Union[None, Unset, str] = UNSET,
|
|
80
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
81
88
|
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
82
89
|
"""Get agent recommendations
|
|
83
90
|
|
|
@@ -98,8 +105,8 @@ def sync_detailed(
|
|
|
98
105
|
|
|
99
106
|
Args:
|
|
100
107
|
graph_id (str): Graph database identifier
|
|
108
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
101
109
|
authorization (Union[None, Unset, str]):
|
|
102
|
-
auth_token (Union[None, Unset, str]):
|
|
103
110
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
104
111
|
|
|
105
112
|
Raises:
|
|
@@ -113,8 +120,8 @@ def sync_detailed(
|
|
|
113
120
|
kwargs = _get_kwargs(
|
|
114
121
|
graph_id=graph_id,
|
|
115
122
|
body=body,
|
|
123
|
+
token=token,
|
|
116
124
|
authorization=authorization,
|
|
117
|
-
auth_token=auth_token,
|
|
118
125
|
)
|
|
119
126
|
|
|
120
127
|
response = client.get_httpx_client().request(
|
|
@@ -129,8 +136,8 @@ def sync(
|
|
|
129
136
|
*,
|
|
130
137
|
client: AuthenticatedClient,
|
|
131
138
|
body: AgentRecommendationRequest,
|
|
139
|
+
token: Union[None, Unset, str] = UNSET,
|
|
132
140
|
authorization: Union[None, Unset, str] = UNSET,
|
|
133
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
134
141
|
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
135
142
|
"""Get agent recommendations
|
|
136
143
|
|
|
@@ -151,8 +158,8 @@ def sync(
|
|
|
151
158
|
|
|
152
159
|
Args:
|
|
153
160
|
graph_id (str): Graph database identifier
|
|
161
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
154
162
|
authorization (Union[None, Unset, str]):
|
|
155
|
-
auth_token (Union[None, Unset, str]):
|
|
156
163
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
157
164
|
|
|
158
165
|
Raises:
|
|
@@ -167,8 +174,8 @@ def sync(
|
|
|
167
174
|
graph_id=graph_id,
|
|
168
175
|
client=client,
|
|
169
176
|
body=body,
|
|
177
|
+
token=token,
|
|
170
178
|
authorization=authorization,
|
|
171
|
-
auth_token=auth_token,
|
|
172
179
|
).parsed
|
|
173
180
|
|
|
174
181
|
|
|
@@ -177,8 +184,8 @@ async def asyncio_detailed(
|
|
|
177
184
|
*,
|
|
178
185
|
client: AuthenticatedClient,
|
|
179
186
|
body: AgentRecommendationRequest,
|
|
187
|
+
token: Union[None, Unset, str] = UNSET,
|
|
180
188
|
authorization: Union[None, Unset, str] = UNSET,
|
|
181
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
182
189
|
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
183
190
|
"""Get agent recommendations
|
|
184
191
|
|
|
@@ -199,8 +206,8 @@ async def asyncio_detailed(
|
|
|
199
206
|
|
|
200
207
|
Args:
|
|
201
208
|
graph_id (str): Graph database identifier
|
|
209
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
202
210
|
authorization (Union[None, Unset, str]):
|
|
203
|
-
auth_token (Union[None, Unset, str]):
|
|
204
211
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
205
212
|
|
|
206
213
|
Raises:
|
|
@@ -214,8 +221,8 @@ async def asyncio_detailed(
|
|
|
214
221
|
kwargs = _get_kwargs(
|
|
215
222
|
graph_id=graph_id,
|
|
216
223
|
body=body,
|
|
224
|
+
token=token,
|
|
217
225
|
authorization=authorization,
|
|
218
|
-
auth_token=auth_token,
|
|
219
226
|
)
|
|
220
227
|
|
|
221
228
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -228,8 +235,8 @@ async def asyncio(
|
|
|
228
235
|
*,
|
|
229
236
|
client: AuthenticatedClient,
|
|
230
237
|
body: AgentRecommendationRequest,
|
|
238
|
+
token: Union[None, Unset, str] = UNSET,
|
|
231
239
|
authorization: Union[None, Unset, str] = UNSET,
|
|
232
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
233
240
|
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
234
241
|
"""Get agent recommendations
|
|
235
242
|
|
|
@@ -250,8 +257,8 @@ async def asyncio(
|
|
|
250
257
|
|
|
251
258
|
Args:
|
|
252
259
|
graph_id (str): Graph database identifier
|
|
260
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
253
261
|
authorization (Union[None, Unset, str]):
|
|
254
|
-
auth_token (Union[None, Unset, str]):
|
|
255
262
|
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
256
263
|
|
|
257
264
|
Raises:
|
|
@@ -267,7 +274,7 @@ async def asyncio(
|
|
|
267
274
|
graph_id=graph_id,
|
|
268
275
|
client=client,
|
|
269
276
|
body=body,
|
|
277
|
+
token=token,
|
|
270
278
|
authorization=authorization,
|
|
271
|
-
auth_token=auth_token,
|
|
272
279
|
)
|
|
273
280
|
).parsed
|
|
@@ -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
|