robosystems-client 0.2.2__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 +68 -57
- 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 +317 -0
- robosystems_client/api/tables/get_file_info.py +249 -0
- robosystems_client/api/tables/get_upload_url.py +352 -0
- robosystems_client/api/tables/ingest_tables.py +428 -0
- robosystems_client/api/tables/list_table_files.py +329 -0
- robosystems_client/api/tables/list_tables.py +316 -0
- robosystems_client/api/tables/query_tables.py +431 -0
- robosystems_client/api/tables/update_file_status.py +395 -0
- 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/graph_client.py +5 -0
- robosystems_client/extensions/query_client.py +3 -2
- robosystems_client/extensions/sse_client.py +1 -1
- robosystems_client/extensions/table_ingest_client.py +36 -40
- robosystems_client/extensions/utils.py +2 -2
- robosystems_client/models/__init__.py +17 -21
- robosystems_client/models/create_graph_request.py +15 -3
- robosystems_client/models/cypher_query_request.py +5 -22
- robosystems_client/models/{delete_file_v1_graphs_graph_id_tables_files_file_id_delete_response_delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py → delete_file_response.py} +45 -9
- robosystems_client/models/file_info.py +169 -0
- robosystems_client/models/file_status_update.py +41 -0
- robosystems_client/models/get_file_info_response.py +205 -0
- robosystems_client/models/list_table_files_response.py +105 -0
- 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/models/{get_file_info_v1_graphs_graph_id_tables_files_file_id_get_response_get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py → update_file_status_response_updatefilestatus.py} +5 -8
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +110 -108
- robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +0 -287
- robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +0 -283
- robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +0 -260
- robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +0 -251
- robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -283
- robosystems_client/api/tables/list_tables_v1_graphs_graph_id_tables_get.py +0 -224
- robosystems_client/api/tables/query_tables_v1_graphs_graph_id_tables_query_post.py +0 -247
- robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -306
- robosystems_client/models/file_update_request.py +0 -62
- robosystems_client/models/list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -47
- robosystems_client/models/update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -47
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
|
@@ -9,37 +9,17 @@ from ...models.get_shared_repository_limits_response_getsharedrepositorylimits i
|
|
|
9
9
|
GetSharedRepositoryLimitsResponseGetsharedrepositorylimits,
|
|
10
10
|
)
|
|
11
11
|
from ...models.http_validation_error import HTTPValidationError
|
|
12
|
-
from ...types import
|
|
12
|
+
from ...types import Response
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
repository: str,
|
|
17
|
-
*,
|
|
18
|
-
token: Union[None, Unset, str] = UNSET,
|
|
19
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
20
17
|
) -> dict[str, Any]:
|
|
21
|
-
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
|
-
|
|
36
18
|
_kwargs: dict[str, Any] = {
|
|
37
19
|
"method": "get",
|
|
38
20
|
"url": f"/v1/user/limits/shared-repositories/{repository}",
|
|
39
|
-
"params": params,
|
|
40
21
|
}
|
|
41
22
|
|
|
42
|
-
_kwargs["headers"] = headers
|
|
43
23
|
return _kwargs
|
|
44
24
|
|
|
45
25
|
|
|
@@ -83,8 +63,6 @@ def sync_detailed(
|
|
|
83
63
|
repository: str,
|
|
84
64
|
*,
|
|
85
65
|
client: AuthenticatedClient,
|
|
86
|
-
token: Union[None, Unset, str] = UNSET,
|
|
87
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
88
66
|
) -> Response[
|
|
89
67
|
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
90
68
|
]:
|
|
@@ -102,8 +80,6 @@ def sync_detailed(
|
|
|
102
80
|
|
|
103
81
|
Args:
|
|
104
82
|
repository (str): Repository name (e.g., 'sec')
|
|
105
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
106
|
-
authorization (Union[None, Unset, str]):
|
|
107
83
|
|
|
108
84
|
Raises:
|
|
109
85
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -115,8 +91,6 @@ def sync_detailed(
|
|
|
115
91
|
|
|
116
92
|
kwargs = _get_kwargs(
|
|
117
93
|
repository=repository,
|
|
118
|
-
token=token,
|
|
119
|
-
authorization=authorization,
|
|
120
94
|
)
|
|
121
95
|
|
|
122
96
|
response = client.get_httpx_client().request(
|
|
@@ -130,8 +104,6 @@ def sync(
|
|
|
130
104
|
repository: str,
|
|
131
105
|
*,
|
|
132
106
|
client: AuthenticatedClient,
|
|
133
|
-
token: Union[None, Unset, str] = UNSET,
|
|
134
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
135
107
|
) -> Optional[
|
|
136
108
|
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
137
109
|
]:
|
|
@@ -149,8 +121,6 @@ def sync(
|
|
|
149
121
|
|
|
150
122
|
Args:
|
|
151
123
|
repository (str): Repository name (e.g., 'sec')
|
|
152
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
153
|
-
authorization (Union[None, Unset, str]):
|
|
154
124
|
|
|
155
125
|
Raises:
|
|
156
126
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -163,8 +133,6 @@ def sync(
|
|
|
163
133
|
return sync_detailed(
|
|
164
134
|
repository=repository,
|
|
165
135
|
client=client,
|
|
166
|
-
token=token,
|
|
167
|
-
authorization=authorization,
|
|
168
136
|
).parsed
|
|
169
137
|
|
|
170
138
|
|
|
@@ -172,8 +140,6 @@ async def asyncio_detailed(
|
|
|
172
140
|
repository: str,
|
|
173
141
|
*,
|
|
174
142
|
client: AuthenticatedClient,
|
|
175
|
-
token: Union[None, Unset, str] = UNSET,
|
|
176
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
177
143
|
) -> Response[
|
|
178
144
|
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
179
145
|
]:
|
|
@@ -191,8 +157,6 @@ async def asyncio_detailed(
|
|
|
191
157
|
|
|
192
158
|
Args:
|
|
193
159
|
repository (str): Repository name (e.g., 'sec')
|
|
194
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
195
|
-
authorization (Union[None, Unset, str]):
|
|
196
160
|
|
|
197
161
|
Raises:
|
|
198
162
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -204,8 +168,6 @@ async def asyncio_detailed(
|
|
|
204
168
|
|
|
205
169
|
kwargs = _get_kwargs(
|
|
206
170
|
repository=repository,
|
|
207
|
-
token=token,
|
|
208
|
-
authorization=authorization,
|
|
209
171
|
)
|
|
210
172
|
|
|
211
173
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -217,8 +179,6 @@ async def asyncio(
|
|
|
217
179
|
repository: str,
|
|
218
180
|
*,
|
|
219
181
|
client: AuthenticatedClient,
|
|
220
|
-
token: Union[None, Unset, str] = UNSET,
|
|
221
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
222
182
|
) -> Optional[
|
|
223
183
|
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
224
184
|
]:
|
|
@@ -236,8 +196,6 @@ async def asyncio(
|
|
|
236
196
|
|
|
237
197
|
Args:
|
|
238
198
|
repository (str): Repository name (e.g., 'sec')
|
|
239
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
240
|
-
authorization (Union[None, Unset, str]):
|
|
241
199
|
|
|
242
200
|
Raises:
|
|
243
201
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -251,7 +209,5 @@ async def asyncio(
|
|
|
251
209
|
await asyncio_detailed(
|
|
252
210
|
repository=repository,
|
|
253
211
|
client=client,
|
|
254
|
-
token=token,
|
|
255
|
-
authorization=authorization,
|
|
256
212
|
)
|
|
257
213
|
).parsed
|