robosystems-client 0.2.3__py3-none-any.whl → 0.2.4__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/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.4.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +103 -102
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -9,34 +9,18 @@ from ...models.error_response import ErrorResponse
|
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
10
|
from ...models.success_response import SuccessResponse
|
|
11
11
|
from ...models.update_password_request import UpdatePasswordRequest
|
|
12
|
-
from ...types import
|
|
12
|
+
from ...types import Response
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
*,
|
|
17
17
|
body: UpdatePasswordRequest,
|
|
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": "put",
|
|
38
23
|
"url": "/v1/user/password",
|
|
39
|
-
"params": params,
|
|
40
24
|
}
|
|
41
25
|
|
|
42
26
|
_kwargs["json"] = body.to_dict()
|
|
@@ -96,16 +80,12 @@ def sync_detailed(
|
|
|
96
80
|
*,
|
|
97
81
|
client: AuthenticatedClient,
|
|
98
82
|
body: UpdatePasswordRequest,
|
|
99
|
-
token: Union[None, Unset, str] = UNSET,
|
|
100
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
101
83
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
102
84
|
"""Update Password
|
|
103
85
|
|
|
104
86
|
Update the current user's password.
|
|
105
87
|
|
|
106
88
|
Args:
|
|
107
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
108
|
-
authorization (Union[None, Unset, str]):
|
|
109
89
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
110
90
|
|
|
111
91
|
Raises:
|
|
@@ -118,8 +98,6 @@ def sync_detailed(
|
|
|
118
98
|
|
|
119
99
|
kwargs = _get_kwargs(
|
|
120
100
|
body=body,
|
|
121
|
-
token=token,
|
|
122
|
-
authorization=authorization,
|
|
123
101
|
)
|
|
124
102
|
|
|
125
103
|
response = client.get_httpx_client().request(
|
|
@@ -133,16 +111,12 @@ def sync(
|
|
|
133
111
|
*,
|
|
134
112
|
client: AuthenticatedClient,
|
|
135
113
|
body: UpdatePasswordRequest,
|
|
136
|
-
token: Union[None, Unset, str] = UNSET,
|
|
137
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
138
114
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
139
115
|
"""Update Password
|
|
140
116
|
|
|
141
117
|
Update the current user's password.
|
|
142
118
|
|
|
143
119
|
Args:
|
|
144
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
145
|
-
authorization (Union[None, Unset, str]):
|
|
146
120
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
147
121
|
|
|
148
122
|
Raises:
|
|
@@ -156,8 +130,6 @@ def sync(
|
|
|
156
130
|
return sync_detailed(
|
|
157
131
|
client=client,
|
|
158
132
|
body=body,
|
|
159
|
-
token=token,
|
|
160
|
-
authorization=authorization,
|
|
161
133
|
).parsed
|
|
162
134
|
|
|
163
135
|
|
|
@@ -165,16 +137,12 @@ async def asyncio_detailed(
|
|
|
165
137
|
*,
|
|
166
138
|
client: AuthenticatedClient,
|
|
167
139
|
body: UpdatePasswordRequest,
|
|
168
|
-
token: Union[None, Unset, str] = UNSET,
|
|
169
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
170
140
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
171
141
|
"""Update Password
|
|
172
142
|
|
|
173
143
|
Update the current user's password.
|
|
174
144
|
|
|
175
145
|
Args:
|
|
176
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
177
|
-
authorization (Union[None, Unset, str]):
|
|
178
146
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
179
147
|
|
|
180
148
|
Raises:
|
|
@@ -187,8 +155,6 @@ async def asyncio_detailed(
|
|
|
187
155
|
|
|
188
156
|
kwargs = _get_kwargs(
|
|
189
157
|
body=body,
|
|
190
|
-
token=token,
|
|
191
|
-
authorization=authorization,
|
|
192
158
|
)
|
|
193
159
|
|
|
194
160
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -200,16 +166,12 @@ async def asyncio(
|
|
|
200
166
|
*,
|
|
201
167
|
client: AuthenticatedClient,
|
|
202
168
|
body: UpdatePasswordRequest,
|
|
203
|
-
token: Union[None, Unset, str] = UNSET,
|
|
204
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
205
169
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
206
170
|
"""Update Password
|
|
207
171
|
|
|
208
172
|
Update the current user's password.
|
|
209
173
|
|
|
210
174
|
Args:
|
|
211
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
212
|
-
authorization (Union[None, Unset, str]):
|
|
213
175
|
body (UpdatePasswordRequest): Request model for updating user password.
|
|
214
176
|
|
|
215
177
|
Raises:
|
|
@@ -224,7 +186,5 @@ async def asyncio(
|
|
|
224
186
|
await asyncio_detailed(
|
|
225
187
|
client=client,
|
|
226
188
|
body=body,
|
|
227
|
-
token=token,
|
|
228
|
-
authorization=authorization,
|
|
229
189
|
)
|
|
230
190
|
).parsed
|
|
@@ -14,26 +14,13 @@ def _get_kwargs(
|
|
|
14
14
|
*,
|
|
15
15
|
include_api_stats: Union[Unset, bool] = True,
|
|
16
16
|
include_recent_activity: Union[Unset, bool] = True,
|
|
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
|
params["include_api_stats"] = include_api_stats
|
|
27
21
|
|
|
28
22
|
params["include_recent_activity"] = include_recent_activity
|
|
29
23
|
|
|
30
|
-
json_token: Union[None, Unset, str]
|
|
31
|
-
if isinstance(token, Unset):
|
|
32
|
-
json_token = UNSET
|
|
33
|
-
else:
|
|
34
|
-
json_token = token
|
|
35
|
-
params["token"] = json_token
|
|
36
|
-
|
|
37
24
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
38
25
|
|
|
39
26
|
_kwargs: dict[str, Any] = {
|
|
@@ -42,7 +29,6 @@ def _get_kwargs(
|
|
|
42
29
|
"params": params,
|
|
43
30
|
}
|
|
44
31
|
|
|
45
|
-
_kwargs["headers"] = headers
|
|
46
32
|
return _kwargs
|
|
47
33
|
|
|
48
34
|
|
|
@@ -81,8 +67,6 @@ def sync_detailed(
|
|
|
81
67
|
client: AuthenticatedClient,
|
|
82
68
|
include_api_stats: Union[Unset, bool] = True,
|
|
83
69
|
include_recent_activity: Union[Unset, bool] = True,
|
|
84
|
-
token: Union[None, Unset, str] = UNSET,
|
|
85
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
86
70
|
) -> Response[Union[HTTPValidationError, UserAnalyticsResponse]]:
|
|
87
71
|
"""Get Detailed User Analytics
|
|
88
72
|
|
|
@@ -91,8 +75,6 @@ def sync_detailed(
|
|
|
91
75
|
Args:
|
|
92
76
|
include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
|
|
93
77
|
include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
|
|
94
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
95
|
-
authorization (Union[None, Unset, str]):
|
|
96
78
|
|
|
97
79
|
Raises:
|
|
98
80
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -105,8 +87,6 @@ def sync_detailed(
|
|
|
105
87
|
kwargs = _get_kwargs(
|
|
106
88
|
include_api_stats=include_api_stats,
|
|
107
89
|
include_recent_activity=include_recent_activity,
|
|
108
|
-
token=token,
|
|
109
|
-
authorization=authorization,
|
|
110
90
|
)
|
|
111
91
|
|
|
112
92
|
response = client.get_httpx_client().request(
|
|
@@ -121,8 +101,6 @@ def sync(
|
|
|
121
101
|
client: AuthenticatedClient,
|
|
122
102
|
include_api_stats: Union[Unset, bool] = True,
|
|
123
103
|
include_recent_activity: Union[Unset, bool] = True,
|
|
124
|
-
token: Union[None, Unset, str] = UNSET,
|
|
125
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
126
104
|
) -> Optional[Union[HTTPValidationError, UserAnalyticsResponse]]:
|
|
127
105
|
"""Get Detailed User Analytics
|
|
128
106
|
|
|
@@ -131,8 +109,6 @@ def sync(
|
|
|
131
109
|
Args:
|
|
132
110
|
include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
|
|
133
111
|
include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
|
|
134
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
135
|
-
authorization (Union[None, Unset, str]):
|
|
136
112
|
|
|
137
113
|
Raises:
|
|
138
114
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -146,8 +122,6 @@ def sync(
|
|
|
146
122
|
client=client,
|
|
147
123
|
include_api_stats=include_api_stats,
|
|
148
124
|
include_recent_activity=include_recent_activity,
|
|
149
|
-
token=token,
|
|
150
|
-
authorization=authorization,
|
|
151
125
|
).parsed
|
|
152
126
|
|
|
153
127
|
|
|
@@ -156,8 +130,6 @@ async def asyncio_detailed(
|
|
|
156
130
|
client: AuthenticatedClient,
|
|
157
131
|
include_api_stats: Union[Unset, bool] = True,
|
|
158
132
|
include_recent_activity: Union[Unset, bool] = True,
|
|
159
|
-
token: Union[None, Unset, str] = UNSET,
|
|
160
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
161
133
|
) -> Response[Union[HTTPValidationError, UserAnalyticsResponse]]:
|
|
162
134
|
"""Get Detailed User Analytics
|
|
163
135
|
|
|
@@ -166,8 +138,6 @@ async def asyncio_detailed(
|
|
|
166
138
|
Args:
|
|
167
139
|
include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
|
|
168
140
|
include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
|
|
169
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
170
|
-
authorization (Union[None, Unset, str]):
|
|
171
141
|
|
|
172
142
|
Raises:
|
|
173
143
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -180,8 +150,6 @@ async def asyncio_detailed(
|
|
|
180
150
|
kwargs = _get_kwargs(
|
|
181
151
|
include_api_stats=include_api_stats,
|
|
182
152
|
include_recent_activity=include_recent_activity,
|
|
183
|
-
token=token,
|
|
184
|
-
authorization=authorization,
|
|
185
153
|
)
|
|
186
154
|
|
|
187
155
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -194,8 +162,6 @@ async def asyncio(
|
|
|
194
162
|
client: AuthenticatedClient,
|
|
195
163
|
include_api_stats: Union[Unset, bool] = True,
|
|
196
164
|
include_recent_activity: Union[Unset, bool] = True,
|
|
197
|
-
token: Union[None, Unset, str] = UNSET,
|
|
198
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
199
165
|
) -> Optional[Union[HTTPValidationError, UserAnalyticsResponse]]:
|
|
200
166
|
"""Get Detailed User Analytics
|
|
201
167
|
|
|
@@ -204,8 +170,6 @@ async def asyncio(
|
|
|
204
170
|
Args:
|
|
205
171
|
include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
|
|
206
172
|
include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
|
|
207
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
208
|
-
authorization (Union[None, Unset, str]):
|
|
209
173
|
|
|
210
174
|
Raises:
|
|
211
175
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -220,7 +184,5 @@ async def asyncio(
|
|
|
220
184
|
client=client,
|
|
221
185
|
include_api_stats=include_api_stats,
|
|
222
186
|
include_recent_activity=include_recent_activity,
|
|
223
|
-
token=token,
|
|
224
|
-
authorization=authorization,
|
|
225
187
|
)
|
|
226
188
|
).parsed
|
|
@@ -5,54 +5,27 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.http_validation_error import HTTPValidationError
|
|
9
8
|
from ...models.user_usage_summary_response import UserUsageSummaryResponse
|
|
10
|
-
from ...types import
|
|
9
|
+
from ...types import Response
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
def _get_kwargs(
|
|
14
|
-
*,
|
|
15
|
-
token: Union[None, Unset, str] = UNSET,
|
|
16
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
-
) -> dict[str, Any]:
|
|
18
|
-
headers: dict[str, Any] = {}
|
|
19
|
-
if not isinstance(authorization, Unset):
|
|
20
|
-
headers["authorization"] = authorization
|
|
21
|
-
|
|
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}
|
|
32
|
-
|
|
12
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
33
13
|
_kwargs: dict[str, Any] = {
|
|
34
14
|
"method": "get",
|
|
35
15
|
"url": "/v1/user/analytics/overview",
|
|
36
|
-
"params": params,
|
|
37
16
|
}
|
|
38
17
|
|
|
39
|
-
_kwargs["headers"] = headers
|
|
40
18
|
return _kwargs
|
|
41
19
|
|
|
42
20
|
|
|
43
21
|
def _parse_response(
|
|
44
22
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
45
|
-
) -> Optional[
|
|
23
|
+
) -> Optional[UserUsageSummaryResponse]:
|
|
46
24
|
if response.status_code == 200:
|
|
47
25
|
response_200 = UserUsageSummaryResponse.from_dict(response.json())
|
|
48
26
|
|
|
49
27
|
return response_200
|
|
50
28
|
|
|
51
|
-
if response.status_code == 422:
|
|
52
|
-
response_422 = HTTPValidationError.from_dict(response.json())
|
|
53
|
-
|
|
54
|
-
return response_422
|
|
55
|
-
|
|
56
29
|
if client.raise_on_unexpected_status:
|
|
57
30
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
58
31
|
else:
|
|
@@ -61,7 +34,7 @@ def _parse_response(
|
|
|
61
34
|
|
|
62
35
|
def _build_response(
|
|
63
36
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
64
|
-
) -> Response[
|
|
37
|
+
) -> Response[UserUsageSummaryResponse]:
|
|
65
38
|
return Response(
|
|
66
39
|
status_code=HTTPStatus(response.status_code),
|
|
67
40
|
content=response.content,
|
|
@@ -73,29 +46,20 @@ def _build_response(
|
|
|
73
46
|
def sync_detailed(
|
|
74
47
|
*,
|
|
75
48
|
client: AuthenticatedClient,
|
|
76
|
-
|
|
77
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
78
|
-
) -> Response[Union[HTTPValidationError, UserUsageSummaryResponse]]:
|
|
49
|
+
) -> Response[UserUsageSummaryResponse]:
|
|
79
50
|
"""Get User Usage Overview
|
|
80
51
|
|
|
81
52
|
Get a high-level overview of usage statistics for the current user.
|
|
82
53
|
|
|
83
|
-
Args:
|
|
84
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
85
|
-
authorization (Union[None, Unset, str]):
|
|
86
|
-
|
|
87
54
|
Raises:
|
|
88
55
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
89
56
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
90
57
|
|
|
91
58
|
Returns:
|
|
92
|
-
Response[
|
|
59
|
+
Response[UserUsageSummaryResponse]
|
|
93
60
|
"""
|
|
94
61
|
|
|
95
|
-
kwargs = _get_kwargs(
|
|
96
|
-
token=token,
|
|
97
|
-
authorization=authorization,
|
|
98
|
-
)
|
|
62
|
+
kwargs = _get_kwargs()
|
|
99
63
|
|
|
100
64
|
response = client.get_httpx_client().request(
|
|
101
65
|
**kwargs,
|
|
@@ -107,58 +71,41 @@ def sync_detailed(
|
|
|
107
71
|
def sync(
|
|
108
72
|
*,
|
|
109
73
|
client: AuthenticatedClient,
|
|
110
|
-
|
|
111
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
112
|
-
) -> Optional[Union[HTTPValidationError, UserUsageSummaryResponse]]:
|
|
74
|
+
) -> Optional[UserUsageSummaryResponse]:
|
|
113
75
|
"""Get User Usage Overview
|
|
114
76
|
|
|
115
77
|
Get a high-level overview of usage statistics for the current user.
|
|
116
78
|
|
|
117
|
-
Args:
|
|
118
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
119
|
-
authorization (Union[None, Unset, str]):
|
|
120
|
-
|
|
121
79
|
Raises:
|
|
122
80
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
123
81
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
82
|
|
|
125
83
|
Returns:
|
|
126
|
-
|
|
84
|
+
UserUsageSummaryResponse
|
|
127
85
|
"""
|
|
128
86
|
|
|
129
87
|
return sync_detailed(
|
|
130
88
|
client=client,
|
|
131
|
-
token=token,
|
|
132
|
-
authorization=authorization,
|
|
133
89
|
).parsed
|
|
134
90
|
|
|
135
91
|
|
|
136
92
|
async def asyncio_detailed(
|
|
137
93
|
*,
|
|
138
94
|
client: AuthenticatedClient,
|
|
139
|
-
|
|
140
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
141
|
-
) -> Response[Union[HTTPValidationError, UserUsageSummaryResponse]]:
|
|
95
|
+
) -> Response[UserUsageSummaryResponse]:
|
|
142
96
|
"""Get User Usage Overview
|
|
143
97
|
|
|
144
98
|
Get a high-level overview of usage statistics for the current user.
|
|
145
99
|
|
|
146
|
-
Args:
|
|
147
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
148
|
-
authorization (Union[None, Unset, str]):
|
|
149
|
-
|
|
150
100
|
Raises:
|
|
151
101
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
152
102
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
103
|
|
|
154
104
|
Returns:
|
|
155
|
-
Response[
|
|
105
|
+
Response[UserUsageSummaryResponse]
|
|
156
106
|
"""
|
|
157
107
|
|
|
158
|
-
kwargs = _get_kwargs(
|
|
159
|
-
token=token,
|
|
160
|
-
authorization=authorization,
|
|
161
|
-
)
|
|
108
|
+
kwargs = _get_kwargs()
|
|
162
109
|
|
|
163
110
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
164
111
|
|
|
@@ -168,29 +115,21 @@ async def asyncio_detailed(
|
|
|
168
115
|
async def asyncio(
|
|
169
116
|
*,
|
|
170
117
|
client: AuthenticatedClient,
|
|
171
|
-
|
|
172
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
173
|
-
) -> Optional[Union[HTTPValidationError, UserUsageSummaryResponse]]:
|
|
118
|
+
) -> Optional[UserUsageSummaryResponse]:
|
|
174
119
|
"""Get User Usage Overview
|
|
175
120
|
|
|
176
121
|
Get a high-level overview of usage statistics for the current user.
|
|
177
122
|
|
|
178
|
-
Args:
|
|
179
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
180
|
-
authorization (Union[None, Unset, str]):
|
|
181
|
-
|
|
182
123
|
Raises:
|
|
183
124
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
184
125
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
185
126
|
|
|
186
127
|
Returns:
|
|
187
|
-
|
|
128
|
+
UserUsageSummaryResponse
|
|
188
129
|
"""
|
|
189
130
|
|
|
190
131
|
return (
|
|
191
132
|
await asyncio_detailed(
|
|
192
133
|
client=client,
|
|
193
|
-
token=token,
|
|
194
|
-
authorization=authorization,
|
|
195
134
|
)
|
|
196
135
|
).parsed
|
|
@@ -8,48 +8,21 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.get_all_shared_repository_limits_response_getallsharedrepositorylimits import (
|
|
9
9
|
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
10
10
|
)
|
|
11
|
-
from ...
|
|
12
|
-
from ...types import UNSET, Response, Unset
|
|
11
|
+
from ...types import Response
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
def _get_kwargs(
|
|
16
|
-
*,
|
|
17
|
-
token: Union[None, Unset, str] = UNSET,
|
|
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
|
-
|
|
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}
|
|
34
|
-
|
|
14
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
35
15
|
_kwargs: dict[str, Any] = {
|
|
36
16
|
"method": "get",
|
|
37
17
|
"url": "/v1/user/limits/shared-repositories/summary",
|
|
38
|
-
"params": params,
|
|
39
18
|
}
|
|
40
19
|
|
|
41
|
-
_kwargs["headers"] = headers
|
|
42
20
|
return _kwargs
|
|
43
21
|
|
|
44
22
|
|
|
45
23
|
def _parse_response(
|
|
46
24
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
47
|
-
) -> Optional[
|
|
48
|
-
Union[
|
|
49
|
-
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
50
|
-
HTTPValidationError,
|
|
51
|
-
]
|
|
52
|
-
]:
|
|
25
|
+
) -> Optional[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
|
|
53
26
|
if response.status_code == 200:
|
|
54
27
|
response_200 = (
|
|
55
28
|
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits.from_dict(
|
|
@@ -59,11 +32,6 @@ def _parse_response(
|
|
|
59
32
|
|
|
60
33
|
return response_200
|
|
61
34
|
|
|
62
|
-
if response.status_code == 422:
|
|
63
|
-
response_422 = HTTPValidationError.from_dict(response.json())
|
|
64
|
-
|
|
65
|
-
return response_422
|
|
66
|
-
|
|
67
35
|
if client.raise_on_unexpected_status:
|
|
68
36
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
69
37
|
else:
|
|
@@ -72,12 +40,7 @@ def _parse_response(
|
|
|
72
40
|
|
|
73
41
|
def _build_response(
|
|
74
42
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
75
|
-
) -> Response[
|
|
76
|
-
Union[
|
|
77
|
-
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
78
|
-
HTTPValidationError,
|
|
79
|
-
]
|
|
80
|
-
]:
|
|
43
|
+
) -> Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
|
|
81
44
|
return Response(
|
|
82
45
|
status_code=HTTPStatus(response.status_code),
|
|
83
46
|
content=response.content,
|
|
@@ -89,34 +52,20 @@ def _build_response(
|
|
|
89
52
|
def sync_detailed(
|
|
90
53
|
*,
|
|
91
54
|
client: AuthenticatedClient,
|
|
92
|
-
|
|
93
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
94
|
-
) -> Response[
|
|
95
|
-
Union[
|
|
96
|
-
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
97
|
-
HTTPValidationError,
|
|
98
|
-
]
|
|
99
|
-
]:
|
|
55
|
+
) -> Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
|
|
100
56
|
"""Get all shared repository limits
|
|
101
57
|
|
|
102
58
|
Get rate limit status for all shared repositories the user has access to.
|
|
103
59
|
|
|
104
|
-
Args:
|
|
105
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
106
|
-
authorization (Union[None, Unset, str]):
|
|
107
|
-
|
|
108
60
|
Raises:
|
|
109
61
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
110
62
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
111
63
|
|
|
112
64
|
Returns:
|
|
113
|
-
Response[
|
|
65
|
+
Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]
|
|
114
66
|
"""
|
|
115
67
|
|
|
116
|
-
kwargs = _get_kwargs(
|
|
117
|
-
token=token,
|
|
118
|
-
authorization=authorization,
|
|
119
|
-
)
|
|
68
|
+
kwargs = _get_kwargs()
|
|
120
69
|
|
|
121
70
|
response = client.get_httpx_client().request(
|
|
122
71
|
**kwargs,
|
|
@@ -128,68 +77,41 @@ def sync_detailed(
|
|
|
128
77
|
def sync(
|
|
129
78
|
*,
|
|
130
79
|
client: AuthenticatedClient,
|
|
131
|
-
|
|
132
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
133
|
-
) -> Optional[
|
|
134
|
-
Union[
|
|
135
|
-
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
136
|
-
HTTPValidationError,
|
|
137
|
-
]
|
|
138
|
-
]:
|
|
80
|
+
) -> Optional[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
|
|
139
81
|
"""Get all shared repository limits
|
|
140
82
|
|
|
141
83
|
Get rate limit status for all shared repositories the user has access to.
|
|
142
84
|
|
|
143
|
-
Args:
|
|
144
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
145
|
-
authorization (Union[None, Unset, str]):
|
|
146
|
-
|
|
147
85
|
Raises:
|
|
148
86
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
149
87
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
150
88
|
|
|
151
89
|
Returns:
|
|
152
|
-
|
|
90
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits
|
|
153
91
|
"""
|
|
154
92
|
|
|
155
93
|
return sync_detailed(
|
|
156
94
|
client=client,
|
|
157
|
-
token=token,
|
|
158
|
-
authorization=authorization,
|
|
159
95
|
).parsed
|
|
160
96
|
|
|
161
97
|
|
|
162
98
|
async def asyncio_detailed(
|
|
163
99
|
*,
|
|
164
100
|
client: AuthenticatedClient,
|
|
165
|
-
|
|
166
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
167
|
-
) -> Response[
|
|
168
|
-
Union[
|
|
169
|
-
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
170
|
-
HTTPValidationError,
|
|
171
|
-
]
|
|
172
|
-
]:
|
|
101
|
+
) -> Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
|
|
173
102
|
"""Get all shared repository limits
|
|
174
103
|
|
|
175
104
|
Get rate limit status for all shared repositories the user has access to.
|
|
176
105
|
|
|
177
|
-
Args:
|
|
178
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
179
|
-
authorization (Union[None, Unset, str]):
|
|
180
|
-
|
|
181
106
|
Raises:
|
|
182
107
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
183
108
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
184
109
|
|
|
185
110
|
Returns:
|
|
186
|
-
Response[
|
|
111
|
+
Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]
|
|
187
112
|
"""
|
|
188
113
|
|
|
189
|
-
kwargs = _get_kwargs(
|
|
190
|
-
token=token,
|
|
191
|
-
authorization=authorization,
|
|
192
|
-
)
|
|
114
|
+
kwargs = _get_kwargs()
|
|
193
115
|
|
|
194
116
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
195
117
|
|
|
@@ -199,34 +121,21 @@ async def asyncio_detailed(
|
|
|
199
121
|
async def asyncio(
|
|
200
122
|
*,
|
|
201
123
|
client: AuthenticatedClient,
|
|
202
|
-
|
|
203
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
204
|
-
) -> Optional[
|
|
205
|
-
Union[
|
|
206
|
-
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
207
|
-
HTTPValidationError,
|
|
208
|
-
]
|
|
209
|
-
]:
|
|
124
|
+
) -> Optional[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
|
|
210
125
|
"""Get all shared repository limits
|
|
211
126
|
|
|
212
127
|
Get rate limit status for all shared repositories the user has access to.
|
|
213
128
|
|
|
214
|
-
Args:
|
|
215
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
216
|
-
authorization (Union[None, Unset, str]):
|
|
217
|
-
|
|
218
129
|
Raises:
|
|
219
130
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
220
131
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
221
132
|
|
|
222
133
|
Returns:
|
|
223
|
-
|
|
134
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits
|
|
224
135
|
"""
|
|
225
136
|
|
|
226
137
|
return (
|
|
227
138
|
await asyncio_detailed(
|
|
228
139
|
client=client,
|
|
229
|
-
token=token,
|
|
230
|
-
authorization=authorization,
|
|
231
140
|
)
|
|
232
141
|
).parsed
|