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
|
@@ -12,21 +12,28 @@ from ...types import UNSET, Response, Unset
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
+
token: Union[None, Unset, str] = UNSET,
|
|
15
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
16
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
17
17
|
) -> dict[str, Any]:
|
|
18
18
|
headers: dict[str, Any] = {}
|
|
19
19
|
if not isinstance(authorization, Unset):
|
|
20
20
|
headers["authorization"] = authorization
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
params: dict[str, Any] = {}
|
|
23
|
+
|
|
24
|
+
json_token: Union[None, Unset, str]
|
|
25
|
+
if isinstance(token, Unset):
|
|
26
|
+
json_token = UNSET
|
|
27
|
+
else:
|
|
28
|
+
json_token = token
|
|
29
|
+
params["token"] = json_token
|
|
30
|
+
|
|
31
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
25
32
|
|
|
26
33
|
_kwargs: dict[str, Any] = {
|
|
27
34
|
"method": "get",
|
|
28
35
|
"url": "/v1/user",
|
|
29
|
-
"
|
|
36
|
+
"params": params,
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
_kwargs["headers"] = headers
|
|
@@ -64,16 +71,16 @@ def _build_response(
|
|
|
64
71
|
def sync_detailed(
|
|
65
72
|
*,
|
|
66
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
67
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
68
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
69
76
|
) -> Response[Union[HTTPValidationError, UserResponse]]:
|
|
70
77
|
"""Get Current User
|
|
71
78
|
|
|
72
79
|
Returns information about the currently authenticated user.
|
|
73
80
|
|
|
74
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
75
83
|
authorization (Union[None, Unset, str]):
|
|
76
|
-
auth_token (Union[None, Unset, str]):
|
|
77
84
|
|
|
78
85
|
Raises:
|
|
79
86
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -84,8 +91,8 @@ def sync_detailed(
|
|
|
84
91
|
"""
|
|
85
92
|
|
|
86
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
87
95
|
authorization=authorization,
|
|
88
|
-
auth_token=auth_token,
|
|
89
96
|
)
|
|
90
97
|
|
|
91
98
|
response = client.get_httpx_client().request(
|
|
@@ -98,16 +105,16 @@ def sync_detailed(
|
|
|
98
105
|
def sync(
|
|
99
106
|
*,
|
|
100
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
101
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
102
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
103
110
|
) -> Optional[Union[HTTPValidationError, UserResponse]]:
|
|
104
111
|
"""Get Current User
|
|
105
112
|
|
|
106
113
|
Returns information about the currently authenticated user.
|
|
107
114
|
|
|
108
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
109
117
|
authorization (Union[None, Unset, str]):
|
|
110
|
-
auth_token (Union[None, Unset, str]):
|
|
111
118
|
|
|
112
119
|
Raises:
|
|
113
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -119,24 +126,24 @@ def sync(
|
|
|
119
126
|
|
|
120
127
|
return sync_detailed(
|
|
121
128
|
client=client,
|
|
129
|
+
token=token,
|
|
122
130
|
authorization=authorization,
|
|
123
|
-
auth_token=auth_token,
|
|
124
131
|
).parsed
|
|
125
132
|
|
|
126
133
|
|
|
127
134
|
async def asyncio_detailed(
|
|
128
135
|
*,
|
|
129
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
130
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
131
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
132
139
|
) -> Response[Union[HTTPValidationError, UserResponse]]:
|
|
133
140
|
"""Get Current User
|
|
134
141
|
|
|
135
142
|
Returns information about the currently authenticated user.
|
|
136
143
|
|
|
137
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
138
146
|
authorization (Union[None, Unset, str]):
|
|
139
|
-
auth_token (Union[None, Unset, str]):
|
|
140
147
|
|
|
141
148
|
Raises:
|
|
142
149
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -147,8 +154,8 @@ async def asyncio_detailed(
|
|
|
147
154
|
"""
|
|
148
155
|
|
|
149
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
150
158
|
authorization=authorization,
|
|
151
|
-
auth_token=auth_token,
|
|
152
159
|
)
|
|
153
160
|
|
|
154
161
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -159,16 +166,16 @@ async def asyncio_detailed(
|
|
|
159
166
|
async def asyncio(
|
|
160
167
|
*,
|
|
161
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
162
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
163
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
164
171
|
) -> Optional[Union[HTTPValidationError, UserResponse]]:
|
|
165
172
|
"""Get Current User
|
|
166
173
|
|
|
167
174
|
Returns information about the currently authenticated user.
|
|
168
175
|
|
|
169
176
|
Args:
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
170
178
|
authorization (Union[None, Unset, str]):
|
|
171
|
-
auth_token (Union[None, Unset, str]):
|
|
172
179
|
|
|
173
180
|
Raises:
|
|
174
181
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -181,7 +188,7 @@ async def asyncio(
|
|
|
181
188
|
return (
|
|
182
189
|
await asyncio_detailed(
|
|
183
190
|
client=client,
|
|
191
|
+
token=token,
|
|
184
192
|
authorization=authorization,
|
|
185
|
-
auth_token=auth_token,
|
|
186
193
|
)
|
|
187
194
|
).parsed
|
|
@@ -12,21 +12,28 @@ from ...types import UNSET, Response, Unset
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
+
token: Union[None, Unset, str] = UNSET,
|
|
15
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
16
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
17
17
|
) -> dict[str, Any]:
|
|
18
18
|
headers: dict[str, Any] = {}
|
|
19
19
|
if not isinstance(authorization, Unset):
|
|
20
20
|
headers["authorization"] = authorization
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
params: dict[str, Any] = {}
|
|
23
|
+
|
|
24
|
+
json_token: Union[None, Unset, str]
|
|
25
|
+
if isinstance(token, Unset):
|
|
26
|
+
json_token = UNSET
|
|
27
|
+
else:
|
|
28
|
+
json_token = token
|
|
29
|
+
params["token"] = json_token
|
|
30
|
+
|
|
31
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
25
32
|
|
|
26
33
|
_kwargs: dict[str, Any] = {
|
|
27
34
|
"method": "get",
|
|
28
35
|
"url": "/v1/user/graphs",
|
|
29
|
-
"
|
|
36
|
+
"params": params,
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
_kwargs["headers"] = headers
|
|
@@ -64,16 +71,16 @@ def _build_response(
|
|
|
64
71
|
def sync_detailed(
|
|
65
72
|
*,
|
|
66
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
67
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
68
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
69
76
|
) -> Response[Union[HTTPValidationError, UserGraphsResponse]]:
|
|
70
77
|
"""Get User Graphs
|
|
71
78
|
|
|
72
79
|
Get all graph databases accessible to the current user.
|
|
73
80
|
|
|
74
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
75
83
|
authorization (Union[None, Unset, str]):
|
|
76
|
-
auth_token (Union[None, Unset, str]):
|
|
77
84
|
|
|
78
85
|
Raises:
|
|
79
86
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -84,8 +91,8 @@ def sync_detailed(
|
|
|
84
91
|
"""
|
|
85
92
|
|
|
86
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
87
95
|
authorization=authorization,
|
|
88
|
-
auth_token=auth_token,
|
|
89
96
|
)
|
|
90
97
|
|
|
91
98
|
response = client.get_httpx_client().request(
|
|
@@ -98,16 +105,16 @@ def sync_detailed(
|
|
|
98
105
|
def sync(
|
|
99
106
|
*,
|
|
100
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
101
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
102
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
103
110
|
) -> Optional[Union[HTTPValidationError, UserGraphsResponse]]:
|
|
104
111
|
"""Get User Graphs
|
|
105
112
|
|
|
106
113
|
Get all graph databases accessible to the current user.
|
|
107
114
|
|
|
108
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
109
117
|
authorization (Union[None, Unset, str]):
|
|
110
|
-
auth_token (Union[None, Unset, str]):
|
|
111
118
|
|
|
112
119
|
Raises:
|
|
113
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -119,24 +126,24 @@ def sync(
|
|
|
119
126
|
|
|
120
127
|
return sync_detailed(
|
|
121
128
|
client=client,
|
|
129
|
+
token=token,
|
|
122
130
|
authorization=authorization,
|
|
123
|
-
auth_token=auth_token,
|
|
124
131
|
).parsed
|
|
125
132
|
|
|
126
133
|
|
|
127
134
|
async def asyncio_detailed(
|
|
128
135
|
*,
|
|
129
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
130
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
131
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
132
139
|
) -> Response[Union[HTTPValidationError, UserGraphsResponse]]:
|
|
133
140
|
"""Get User Graphs
|
|
134
141
|
|
|
135
142
|
Get all graph databases accessible to the current user.
|
|
136
143
|
|
|
137
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
138
146
|
authorization (Union[None, Unset, str]):
|
|
139
|
-
auth_token (Union[None, Unset, str]):
|
|
140
147
|
|
|
141
148
|
Raises:
|
|
142
149
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -147,8 +154,8 @@ async def asyncio_detailed(
|
|
|
147
154
|
"""
|
|
148
155
|
|
|
149
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
150
158
|
authorization=authorization,
|
|
151
|
-
auth_token=auth_token,
|
|
152
159
|
)
|
|
153
160
|
|
|
154
161
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -159,16 +166,16 @@ async def asyncio_detailed(
|
|
|
159
166
|
async def asyncio(
|
|
160
167
|
*,
|
|
161
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
162
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
163
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
164
171
|
) -> Optional[Union[HTTPValidationError, UserGraphsResponse]]:
|
|
165
172
|
"""Get User Graphs
|
|
166
173
|
|
|
167
174
|
Get all graph databases accessible to the current user.
|
|
168
175
|
|
|
169
176
|
Args:
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
170
178
|
authorization (Union[None, Unset, str]):
|
|
171
|
-
auth_token (Union[None, Unset, str]):
|
|
172
179
|
|
|
173
180
|
Raises:
|
|
174
181
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -181,7 +188,7 @@ async def asyncio(
|
|
|
181
188
|
return (
|
|
182
189
|
await asyncio_detailed(
|
|
183
190
|
client=client,
|
|
191
|
+
token=token,
|
|
184
192
|
authorization=authorization,
|
|
185
|
-
auth_token=auth_token,
|
|
186
193
|
)
|
|
187
194
|
).parsed
|
|
@@ -12,21 +12,28 @@ from ...types import UNSET, Response, Unset
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
+
token: Union[None, Unset, str] = UNSET,
|
|
15
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
16
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
17
17
|
) -> dict[str, Any]:
|
|
18
18
|
headers: dict[str, Any] = {}
|
|
19
19
|
if not isinstance(authorization, Unset):
|
|
20
20
|
headers["authorization"] = authorization
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
params: dict[str, Any] = {}
|
|
23
|
+
|
|
24
|
+
json_token: Union[None, Unset, str]
|
|
25
|
+
if isinstance(token, Unset):
|
|
26
|
+
json_token = UNSET
|
|
27
|
+
else:
|
|
28
|
+
json_token = token
|
|
29
|
+
params["token"] = json_token
|
|
30
|
+
|
|
31
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
25
32
|
|
|
26
33
|
_kwargs: dict[str, Any] = {
|
|
27
34
|
"method": "get",
|
|
28
35
|
"url": "/v1/user/api-keys",
|
|
29
|
-
"
|
|
36
|
+
"params": params,
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
_kwargs["headers"] = headers
|
|
@@ -64,16 +71,16 @@ def _build_response(
|
|
|
64
71
|
def sync_detailed(
|
|
65
72
|
*,
|
|
66
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
67
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
68
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
69
76
|
) -> Response[Union[APIKeysResponse, HTTPValidationError]]:
|
|
70
77
|
"""List API Keys
|
|
71
78
|
|
|
72
79
|
Get all API keys for the current user.
|
|
73
80
|
|
|
74
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
75
83
|
authorization (Union[None, Unset, str]):
|
|
76
|
-
auth_token (Union[None, Unset, str]):
|
|
77
84
|
|
|
78
85
|
Raises:
|
|
79
86
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -84,8 +91,8 @@ def sync_detailed(
|
|
|
84
91
|
"""
|
|
85
92
|
|
|
86
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
87
95
|
authorization=authorization,
|
|
88
|
-
auth_token=auth_token,
|
|
89
96
|
)
|
|
90
97
|
|
|
91
98
|
response = client.get_httpx_client().request(
|
|
@@ -98,16 +105,16 @@ def sync_detailed(
|
|
|
98
105
|
def sync(
|
|
99
106
|
*,
|
|
100
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
101
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
102
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
103
110
|
) -> Optional[Union[APIKeysResponse, HTTPValidationError]]:
|
|
104
111
|
"""List API Keys
|
|
105
112
|
|
|
106
113
|
Get all API keys for the current user.
|
|
107
114
|
|
|
108
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
109
117
|
authorization (Union[None, Unset, str]):
|
|
110
|
-
auth_token (Union[None, Unset, str]):
|
|
111
118
|
|
|
112
119
|
Raises:
|
|
113
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -119,24 +126,24 @@ def sync(
|
|
|
119
126
|
|
|
120
127
|
return sync_detailed(
|
|
121
128
|
client=client,
|
|
129
|
+
token=token,
|
|
122
130
|
authorization=authorization,
|
|
123
|
-
auth_token=auth_token,
|
|
124
131
|
).parsed
|
|
125
132
|
|
|
126
133
|
|
|
127
134
|
async def asyncio_detailed(
|
|
128
135
|
*,
|
|
129
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
130
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
131
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
132
139
|
) -> Response[Union[APIKeysResponse, HTTPValidationError]]:
|
|
133
140
|
"""List API Keys
|
|
134
141
|
|
|
135
142
|
Get all API keys for the current user.
|
|
136
143
|
|
|
137
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
138
146
|
authorization (Union[None, Unset, str]):
|
|
139
|
-
auth_token (Union[None, Unset, str]):
|
|
140
147
|
|
|
141
148
|
Raises:
|
|
142
149
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -147,8 +154,8 @@ async def asyncio_detailed(
|
|
|
147
154
|
"""
|
|
148
155
|
|
|
149
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
150
158
|
authorization=authorization,
|
|
151
|
-
auth_token=auth_token,
|
|
152
159
|
)
|
|
153
160
|
|
|
154
161
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -159,16 +166,16 @@ async def asyncio_detailed(
|
|
|
159
166
|
async def asyncio(
|
|
160
167
|
*,
|
|
161
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
162
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
163
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
164
171
|
) -> Optional[Union[APIKeysResponse, HTTPValidationError]]:
|
|
165
172
|
"""List API Keys
|
|
166
173
|
|
|
167
174
|
Get all API keys for the current user.
|
|
168
175
|
|
|
169
176
|
Args:
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
170
178
|
authorization (Union[None, Unset, str]):
|
|
171
|
-
auth_token (Union[None, Unset, str]):
|
|
172
179
|
|
|
173
180
|
Raises:
|
|
174
181
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -181,7 +188,7 @@ async def asyncio(
|
|
|
181
188
|
return (
|
|
182
189
|
await asyncio_detailed(
|
|
183
190
|
client=client,
|
|
191
|
+
token=token,
|
|
184
192
|
authorization=authorization,
|
|
185
|
-
auth_token=auth_token,
|
|
186
193
|
)
|
|
187
194
|
).parsed
|
|
@@ -14,21 +14,28 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
api_key_id: str,
|
|
16
16
|
*,
|
|
17
|
+
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
18
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
19
19
|
) -> dict[str, Any]:
|
|
20
20
|
headers: dict[str, Any] = {}
|
|
21
21
|
if not isinstance(authorization, Unset):
|
|
22
22
|
headers["authorization"] = authorization
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
params: dict[str, Any] = {}
|
|
25
|
+
|
|
26
|
+
json_token: Union[None, Unset, str]
|
|
27
|
+
if isinstance(token, Unset):
|
|
28
|
+
json_token = UNSET
|
|
29
|
+
else:
|
|
30
|
+
json_token = token
|
|
31
|
+
params["token"] = json_token
|
|
32
|
+
|
|
33
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
27
34
|
|
|
28
35
|
_kwargs: dict[str, Any] = {
|
|
29
36
|
"method": "delete",
|
|
30
37
|
"url": f"/v1/user/api-keys/{api_key_id}",
|
|
31
|
-
"
|
|
38
|
+
"params": params,
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
_kwargs["headers"] = headers
|
|
@@ -75,8 +82,8 @@ def sync_detailed(
|
|
|
75
82
|
api_key_id: str,
|
|
76
83
|
*,
|
|
77
84
|
client: AuthenticatedClient,
|
|
85
|
+
token: Union[None, Unset, str] = UNSET,
|
|
78
86
|
authorization: Union[None, Unset, str] = UNSET,
|
|
79
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
80
87
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
81
88
|
"""Revoke API Key
|
|
82
89
|
|
|
@@ -84,8 +91,8 @@ def sync_detailed(
|
|
|
84
91
|
|
|
85
92
|
Args:
|
|
86
93
|
api_key_id (str):
|
|
94
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
87
95
|
authorization (Union[None, Unset, str]):
|
|
88
|
-
auth_token (Union[None, Unset, str]):
|
|
89
96
|
|
|
90
97
|
Raises:
|
|
91
98
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -97,8 +104,8 @@ def sync_detailed(
|
|
|
97
104
|
|
|
98
105
|
kwargs = _get_kwargs(
|
|
99
106
|
api_key_id=api_key_id,
|
|
107
|
+
token=token,
|
|
100
108
|
authorization=authorization,
|
|
101
|
-
auth_token=auth_token,
|
|
102
109
|
)
|
|
103
110
|
|
|
104
111
|
response = client.get_httpx_client().request(
|
|
@@ -112,8 +119,8 @@ def sync(
|
|
|
112
119
|
api_key_id: str,
|
|
113
120
|
*,
|
|
114
121
|
client: AuthenticatedClient,
|
|
122
|
+
token: Union[None, Unset, str] = UNSET,
|
|
115
123
|
authorization: Union[None, Unset, str] = UNSET,
|
|
116
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
117
124
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
118
125
|
"""Revoke API Key
|
|
119
126
|
|
|
@@ -121,8 +128,8 @@ def sync(
|
|
|
121
128
|
|
|
122
129
|
Args:
|
|
123
130
|
api_key_id (str):
|
|
131
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
124
132
|
authorization (Union[None, Unset, str]):
|
|
125
|
-
auth_token (Union[None, Unset, str]):
|
|
126
133
|
|
|
127
134
|
Raises:
|
|
128
135
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -135,8 +142,8 @@ def sync(
|
|
|
135
142
|
return sync_detailed(
|
|
136
143
|
api_key_id=api_key_id,
|
|
137
144
|
client=client,
|
|
145
|
+
token=token,
|
|
138
146
|
authorization=authorization,
|
|
139
|
-
auth_token=auth_token,
|
|
140
147
|
).parsed
|
|
141
148
|
|
|
142
149
|
|
|
@@ -144,8 +151,8 @@ async def asyncio_detailed(
|
|
|
144
151
|
api_key_id: str,
|
|
145
152
|
*,
|
|
146
153
|
client: AuthenticatedClient,
|
|
154
|
+
token: Union[None, Unset, str] = UNSET,
|
|
147
155
|
authorization: Union[None, Unset, str] = UNSET,
|
|
148
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
149
156
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
150
157
|
"""Revoke API Key
|
|
151
158
|
|
|
@@ -153,8 +160,8 @@ async def asyncio_detailed(
|
|
|
153
160
|
|
|
154
161
|
Args:
|
|
155
162
|
api_key_id (str):
|
|
163
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
156
164
|
authorization (Union[None, Unset, str]):
|
|
157
|
-
auth_token (Union[None, Unset, str]):
|
|
158
165
|
|
|
159
166
|
Raises:
|
|
160
167
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -166,8 +173,8 @@ async def asyncio_detailed(
|
|
|
166
173
|
|
|
167
174
|
kwargs = _get_kwargs(
|
|
168
175
|
api_key_id=api_key_id,
|
|
176
|
+
token=token,
|
|
169
177
|
authorization=authorization,
|
|
170
|
-
auth_token=auth_token,
|
|
171
178
|
)
|
|
172
179
|
|
|
173
180
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -179,8 +186,8 @@ async def asyncio(
|
|
|
179
186
|
api_key_id: str,
|
|
180
187
|
*,
|
|
181
188
|
client: AuthenticatedClient,
|
|
189
|
+
token: Union[None, Unset, str] = UNSET,
|
|
182
190
|
authorization: Union[None, Unset, str] = UNSET,
|
|
183
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
184
191
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
185
192
|
"""Revoke API Key
|
|
186
193
|
|
|
@@ -188,8 +195,8 @@ async def asyncio(
|
|
|
188
195
|
|
|
189
196
|
Args:
|
|
190
197
|
api_key_id (str):
|
|
198
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
191
199
|
authorization (Union[None, Unset, str]):
|
|
192
|
-
auth_token (Union[None, Unset, str]):
|
|
193
200
|
|
|
194
201
|
Raises:
|
|
195
202
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -203,7 +210,7 @@ async def asyncio(
|
|
|
203
210
|
await asyncio_detailed(
|
|
204
211
|
api_key_id=api_key_id,
|
|
205
212
|
client=client,
|
|
213
|
+
token=token,
|
|
206
214
|
authorization=authorization,
|
|
207
|
-
auth_token=auth_token,
|
|
208
215
|
)
|
|
209
216
|
).parsed
|