robosystems-client 0.1.10__py3-none-any.whl → 0.1.11__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/query_financial_agent.py +16 -16
- robosystems_client/api/backup/create_backup.py +0 -4
- robosystems_client/api/backup/export_backup.py +0 -3
- robosystems_client/api/backup/get_backup_download_url.py +1 -1
- robosystems_client/api/backup/restore_backup.py +0 -4
- robosystems_client/api/connections/create_connection.py +8 -20
- robosystems_client/api/connections/delete_connection.py +8 -16
- robosystems_client/api/connections/sync_connection.py +8 -20
- robosystems_client/api/create/get_available_extensions.py +1 -1
- robosystems_client/api/graph_analytics/get_graph_metrics.py +8 -16
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +8 -16
- robosystems_client/api/mcp/call_mcp_tool.py +8 -20
- robosystems_client/api/query/execute_cypher_query.py +28 -31
- robosystems_client/api/schema/get_graph_schema_info.py +4 -19
- robosystems_client/api/schema/validate_schema.py +4 -16
- robosystems_client/api/service_offerings/get_service_offerings.py +4 -4
- robosystems_client/api/user/select_user_graph.py +1 -1
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +223 -0
- robosystems_client/api/user_limits/get_shared_repository_limits.py +248 -0
- robosystems_client/api/user_subscriptions/get_repository_credits.py +18 -18
- robosystems_client/extensions/README.md +1 -1
- robosystems_client/extensions/__init__.py +1 -1
- robosystems_client/extensions/auth_integration.py +2 -2
- robosystems_client/extensions/extensions.py +1 -1
- robosystems_client/extensions/tests/__init__.py +1 -1
- robosystems_client/extensions/tests/test_integration.py +3 -3
- robosystems_client/extensions/tests/test_unit.py +5 -3
- robosystems_client/extensions/utils.py +1 -1
- robosystems_client/models/__init__.py +8 -2
- robosystems_client/models/create_graph_request.py +5 -25
- robosystems_client/models/database_health_response.py +1 -1
- robosystems_client/models/database_info_response.py +2 -2
- robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +46 -0
- robosystems_client/models/{get_mcp_health_response_getmcphealth.py → get_shared_repository_limits_response_getsharedrepositorylimits.py} +5 -5
- robosystems_client/models/repository_credits_response.py +6 -6
- robosystems_client/models/schema_export_response.py +2 -2
- robosystems_client/models/subscription_info.py +0 -28
- robosystems_client/models/subscription_request.py +0 -9
- robosystems_client/models/subscription_response.py +0 -8
- robosystems_client/sdk-config.yaml +1 -1
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.11.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.11.dist-info}/RECORD +43 -41
- robosystems_client/api/status/get_mcp_health.py +0 -136
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.11.dist-info}/WHEEL +0 -0
|
@@ -47,9 +47,6 @@ def _parse_response(
|
|
|
47
47
|
)
|
|
48
48
|
|
|
49
49
|
return response_200
|
|
50
|
-
if response.status_code == 402:
|
|
51
|
-
response_402 = cast(Any, None)
|
|
52
|
-
return response_402
|
|
53
50
|
if response.status_code == 403:
|
|
54
51
|
response_403 = cast(Any, None)
|
|
55
52
|
return response_403
|
|
@@ -100,10 +97,7 @@ def sync_detailed(
|
|
|
100
97
|
This is different from custom schema management - it shows what actually exists in the database,
|
|
101
98
|
useful for understanding the current graph structure before writing queries.
|
|
102
99
|
|
|
103
|
-
|
|
104
|
-
- Base cost: 2.0 credits
|
|
105
|
-
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
|
|
106
|
-
- Schema information is cached for performance
|
|
100
|
+
This operation is FREE - no credit consumption required.
|
|
107
101
|
|
|
108
102
|
Args:
|
|
109
103
|
graph_id (str): The graph database to get schema for
|
|
@@ -152,10 +146,7 @@ def sync(
|
|
|
152
146
|
This is different from custom schema management - it shows what actually exists in the database,
|
|
153
147
|
useful for understanding the current graph structure before writing queries.
|
|
154
148
|
|
|
155
|
-
|
|
156
|
-
- Base cost: 2.0 credits
|
|
157
|
-
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
|
|
158
|
-
- Schema information is cached for performance
|
|
149
|
+
This operation is FREE - no credit consumption required.
|
|
159
150
|
|
|
160
151
|
Args:
|
|
161
152
|
graph_id (str): The graph database to get schema for
|
|
@@ -199,10 +190,7 @@ async def asyncio_detailed(
|
|
|
199
190
|
This is different from custom schema management - it shows what actually exists in the database,
|
|
200
191
|
useful for understanding the current graph structure before writing queries.
|
|
201
192
|
|
|
202
|
-
|
|
203
|
-
- Base cost: 2.0 credits
|
|
204
|
-
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
|
|
205
|
-
- Schema information is cached for performance
|
|
193
|
+
This operation is FREE - no credit consumption required.
|
|
206
194
|
|
|
207
195
|
Args:
|
|
208
196
|
graph_id (str): The graph database to get schema for
|
|
@@ -249,10 +237,7 @@ async def asyncio(
|
|
|
249
237
|
This is different from custom schema management - it shows what actually exists in the database,
|
|
250
238
|
useful for understanding the current graph structure before writing queries.
|
|
251
239
|
|
|
252
|
-
|
|
253
|
-
- Base cost: 2.0 credits
|
|
254
|
-
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
|
|
255
|
-
- Schema information is cached for performance
|
|
240
|
+
This operation is FREE - no credit consumption required.
|
|
256
241
|
|
|
257
242
|
Args:
|
|
258
243
|
graph_id (str): The graph database to get schema for
|
|
@@ -51,10 +51,6 @@ def _parse_response(
|
|
|
51
51
|
response_400 = ErrorResponse.from_dict(response.json())
|
|
52
52
|
|
|
53
53
|
return response_400
|
|
54
|
-
if response.status_code == 402:
|
|
55
|
-
response_402 = ErrorResponse.from_dict(response.json())
|
|
56
|
-
|
|
57
|
-
return response_402
|
|
58
54
|
if response.status_code == 403:
|
|
59
55
|
response_403 = ErrorResponse.from_dict(response.json())
|
|
60
56
|
|
|
@@ -115,9 +111,7 @@ def sync_detailed(
|
|
|
115
111
|
- Performance problems
|
|
116
112
|
- Naming conflicts
|
|
117
113
|
|
|
118
|
-
|
|
119
|
-
- Base cost: 5.0 credits
|
|
120
|
-
- Multiplied by graph tier
|
|
114
|
+
This operation is FREE - no credit consumption required.
|
|
121
115
|
|
|
122
116
|
Args:
|
|
123
117
|
graph_id (str): Graph database identifier
|
|
@@ -178,9 +172,7 @@ def sync(
|
|
|
178
172
|
- Performance problems
|
|
179
173
|
- Naming conflicts
|
|
180
174
|
|
|
181
|
-
|
|
182
|
-
- Base cost: 5.0 credits
|
|
183
|
-
- Multiplied by graph tier
|
|
175
|
+
This operation is FREE - no credit consumption required.
|
|
184
176
|
|
|
185
177
|
Args:
|
|
186
178
|
graph_id (str): Graph database identifier
|
|
@@ -236,9 +228,7 @@ async def asyncio_detailed(
|
|
|
236
228
|
- Performance problems
|
|
237
229
|
- Naming conflicts
|
|
238
230
|
|
|
239
|
-
|
|
240
|
-
- Base cost: 5.0 credits
|
|
241
|
-
- Multiplied by graph tier
|
|
231
|
+
This operation is FREE - no credit consumption required.
|
|
242
232
|
|
|
243
233
|
Args:
|
|
244
234
|
graph_id (str): Graph database identifier
|
|
@@ -297,9 +287,7 @@ async def asyncio(
|
|
|
297
287
|
- Performance problems
|
|
298
288
|
- Naming conflicts
|
|
299
289
|
|
|
300
|
-
|
|
301
|
-
- Base cost: 5.0 credits
|
|
302
|
-
- Multiplied by graph tier
|
|
290
|
+
This operation is FREE - no credit consumption required.
|
|
303
291
|
|
|
304
292
|
Args:
|
|
305
293
|
graph_id (str): Graph database identifier
|
|
@@ -58,7 +58,7 @@ def sync_detailed(
|
|
|
58
58
|
applications to display subscription options.
|
|
59
59
|
|
|
60
60
|
Includes:
|
|
61
|
-
- Graph subscription tiers (
|
|
61
|
+
- Graph subscription tiers (standard, enterprise, premium)
|
|
62
62
|
- Shared repository subscriptions (SEC, industry, economic data)
|
|
63
63
|
- Operation costs and credit information
|
|
64
64
|
- Features and capabilities for each tier
|
|
@@ -98,7 +98,7 @@ def sync(
|
|
|
98
98
|
applications to display subscription options.
|
|
99
99
|
|
|
100
100
|
Includes:
|
|
101
|
-
- Graph subscription tiers (
|
|
101
|
+
- Graph subscription tiers (standard, enterprise, premium)
|
|
102
102
|
- Shared repository subscriptions (SEC, industry, economic data)
|
|
103
103
|
- Operation costs and credit information
|
|
104
104
|
- Features and capabilities for each tier
|
|
@@ -134,7 +134,7 @@ async def asyncio_detailed(
|
|
|
134
134
|
applications to display subscription options.
|
|
135
135
|
|
|
136
136
|
Includes:
|
|
137
|
-
- Graph subscription tiers (
|
|
137
|
+
- Graph subscription tiers (standard, enterprise, premium)
|
|
138
138
|
- Shared repository subscriptions (SEC, industry, economic data)
|
|
139
139
|
- Operation costs and credit information
|
|
140
140
|
- Features and capabilities for each tier
|
|
@@ -172,7 +172,7 @@ async def asyncio(
|
|
|
172
172
|
applications to display subscription options.
|
|
173
173
|
|
|
174
174
|
Includes:
|
|
175
|
-
- Graph subscription tiers (
|
|
175
|
+
- Graph subscription tiers (standard, enterprise, premium)
|
|
176
176
|
- Shared repository subscriptions (SEC, industry, economic data)
|
|
177
177
|
- Operation costs and credit information
|
|
178
178
|
- Features and capabilities for each tier
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.get_all_shared_repository_limits_response_getallsharedrepositorylimits import (
|
|
9
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
10
|
+
)
|
|
11
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
12
|
+
from ...types import UNSET, Response, Unset
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
*,
|
|
17
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
18
|
+
auth_token: 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
|
+
cookies = {}
|
|
25
|
+
if auth_token is not UNSET:
|
|
26
|
+
cookies["auth-token"] = auth_token
|
|
27
|
+
|
|
28
|
+
_kwargs: dict[str, Any] = {
|
|
29
|
+
"method": "get",
|
|
30
|
+
"url": "/v1/user/limits/shared-repositories/summary",
|
|
31
|
+
"cookies": cookies,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
_kwargs["headers"] = headers
|
|
35
|
+
return _kwargs
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def _parse_response(
|
|
39
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
40
|
+
) -> Optional[
|
|
41
|
+
Union[
|
|
42
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
43
|
+
HTTPValidationError,
|
|
44
|
+
]
|
|
45
|
+
]:
|
|
46
|
+
if response.status_code == 200:
|
|
47
|
+
response_200 = (
|
|
48
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits.from_dict(
|
|
49
|
+
response.json()
|
|
50
|
+
)
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
return response_200
|
|
54
|
+
if response.status_code == 422:
|
|
55
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
56
|
+
|
|
57
|
+
return response_422
|
|
58
|
+
if client.raise_on_unexpected_status:
|
|
59
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
60
|
+
else:
|
|
61
|
+
return None
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def _build_response(
|
|
65
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
66
|
+
) -> Response[
|
|
67
|
+
Union[
|
|
68
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
69
|
+
HTTPValidationError,
|
|
70
|
+
]
|
|
71
|
+
]:
|
|
72
|
+
return Response(
|
|
73
|
+
status_code=HTTPStatus(response.status_code),
|
|
74
|
+
content=response.content,
|
|
75
|
+
headers=response.headers,
|
|
76
|
+
parsed=_parse_response(client=client, response=response),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def sync_detailed(
|
|
81
|
+
*,
|
|
82
|
+
client: AuthenticatedClient,
|
|
83
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
84
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
85
|
+
) -> Response[
|
|
86
|
+
Union[
|
|
87
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
88
|
+
HTTPValidationError,
|
|
89
|
+
]
|
|
90
|
+
]:
|
|
91
|
+
"""Get all shared repository limits
|
|
92
|
+
|
|
93
|
+
Get rate limit status for all shared repositories the user has access to.
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
authorization (Union[None, Unset, str]):
|
|
97
|
+
auth_token (Union[None, Unset, str]):
|
|
98
|
+
|
|
99
|
+
Raises:
|
|
100
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
101
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
102
|
+
|
|
103
|
+
Returns:
|
|
104
|
+
Response[Union[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits, HTTPValidationError]]
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
kwargs = _get_kwargs(
|
|
108
|
+
authorization=authorization,
|
|
109
|
+
auth_token=auth_token,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
response = client.get_httpx_client().request(
|
|
113
|
+
**kwargs,
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
return _build_response(client=client, response=response)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def sync(
|
|
120
|
+
*,
|
|
121
|
+
client: AuthenticatedClient,
|
|
122
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
123
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
124
|
+
) -> Optional[
|
|
125
|
+
Union[
|
|
126
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
127
|
+
HTTPValidationError,
|
|
128
|
+
]
|
|
129
|
+
]:
|
|
130
|
+
"""Get all shared repository limits
|
|
131
|
+
|
|
132
|
+
Get rate limit status for all shared repositories the user has access to.
|
|
133
|
+
|
|
134
|
+
Args:
|
|
135
|
+
authorization (Union[None, Unset, str]):
|
|
136
|
+
auth_token (Union[None, Unset, str]):
|
|
137
|
+
|
|
138
|
+
Raises:
|
|
139
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
140
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
141
|
+
|
|
142
|
+
Returns:
|
|
143
|
+
Union[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits, HTTPValidationError]
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
return sync_detailed(
|
|
147
|
+
client=client,
|
|
148
|
+
authorization=authorization,
|
|
149
|
+
auth_token=auth_token,
|
|
150
|
+
).parsed
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
async def asyncio_detailed(
|
|
154
|
+
*,
|
|
155
|
+
client: AuthenticatedClient,
|
|
156
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
157
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
158
|
+
) -> Response[
|
|
159
|
+
Union[
|
|
160
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
161
|
+
HTTPValidationError,
|
|
162
|
+
]
|
|
163
|
+
]:
|
|
164
|
+
"""Get all shared repository limits
|
|
165
|
+
|
|
166
|
+
Get rate limit status for all shared repositories the user has access to.
|
|
167
|
+
|
|
168
|
+
Args:
|
|
169
|
+
authorization (Union[None, Unset, str]):
|
|
170
|
+
auth_token (Union[None, Unset, str]):
|
|
171
|
+
|
|
172
|
+
Raises:
|
|
173
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
174
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
175
|
+
|
|
176
|
+
Returns:
|
|
177
|
+
Response[Union[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits, HTTPValidationError]]
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
kwargs = _get_kwargs(
|
|
181
|
+
authorization=authorization,
|
|
182
|
+
auth_token=auth_token,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
186
|
+
|
|
187
|
+
return _build_response(client=client, response=response)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
async def asyncio(
|
|
191
|
+
*,
|
|
192
|
+
client: AuthenticatedClient,
|
|
193
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
194
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
195
|
+
) -> Optional[
|
|
196
|
+
Union[
|
|
197
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
198
|
+
HTTPValidationError,
|
|
199
|
+
]
|
|
200
|
+
]:
|
|
201
|
+
"""Get all shared repository limits
|
|
202
|
+
|
|
203
|
+
Get rate limit status for all shared repositories the user has access to.
|
|
204
|
+
|
|
205
|
+
Args:
|
|
206
|
+
authorization (Union[None, Unset, str]):
|
|
207
|
+
auth_token (Union[None, Unset, str]):
|
|
208
|
+
|
|
209
|
+
Raises:
|
|
210
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
211
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
212
|
+
|
|
213
|
+
Returns:
|
|
214
|
+
Union[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits, HTTPValidationError]
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
return (
|
|
218
|
+
await asyncio_detailed(
|
|
219
|
+
client=client,
|
|
220
|
+
authorization=authorization,
|
|
221
|
+
auth_token=auth_token,
|
|
222
|
+
)
|
|
223
|
+
).parsed
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.get_shared_repository_limits_response_getsharedrepositorylimits import (
|
|
9
|
+
GetSharedRepositoryLimitsResponseGetsharedrepositorylimits,
|
|
10
|
+
)
|
|
11
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
12
|
+
from ...types import UNSET, Response, Unset
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
repository: str,
|
|
17
|
+
*,
|
|
18
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
19
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
headers: dict[str, Any] = {}
|
|
22
|
+
if not isinstance(authorization, Unset):
|
|
23
|
+
headers["authorization"] = authorization
|
|
24
|
+
|
|
25
|
+
cookies = {}
|
|
26
|
+
if auth_token is not UNSET:
|
|
27
|
+
cookies["auth-token"] = auth_token
|
|
28
|
+
|
|
29
|
+
_kwargs: dict[str, Any] = {
|
|
30
|
+
"method": "get",
|
|
31
|
+
"url": f"/v1/user/limits/shared-repositories/{repository}",
|
|
32
|
+
"cookies": cookies,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_kwargs["headers"] = headers
|
|
36
|
+
return _kwargs
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _parse_response(
|
|
40
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
41
|
+
) -> Optional[
|
|
42
|
+
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
43
|
+
]:
|
|
44
|
+
if response.status_code == 200:
|
|
45
|
+
response_200 = GetSharedRepositoryLimitsResponseGetsharedrepositorylimits.from_dict(
|
|
46
|
+
response.json()
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return response_200
|
|
50
|
+
if response.status_code == 422:
|
|
51
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
52
|
+
|
|
53
|
+
return response_422
|
|
54
|
+
if client.raise_on_unexpected_status:
|
|
55
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
56
|
+
else:
|
|
57
|
+
return None
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def _build_response(
|
|
61
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
62
|
+
) -> Response[
|
|
63
|
+
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
64
|
+
]:
|
|
65
|
+
return Response(
|
|
66
|
+
status_code=HTTPStatus(response.status_code),
|
|
67
|
+
content=response.content,
|
|
68
|
+
headers=response.headers,
|
|
69
|
+
parsed=_parse_response(client=client, response=response),
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync_detailed(
|
|
74
|
+
repository: str,
|
|
75
|
+
*,
|
|
76
|
+
client: AuthenticatedClient,
|
|
77
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
78
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
79
|
+
) -> Response[
|
|
80
|
+
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
81
|
+
]:
|
|
82
|
+
"""Get shared repository rate limit status
|
|
83
|
+
|
|
84
|
+
Get current rate limit status and usage for a shared repository.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
- Current usage across different time windows
|
|
88
|
+
- Rate limits based on subscription tier
|
|
89
|
+
- Remaining quota
|
|
90
|
+
- Reset times
|
|
91
|
+
|
|
92
|
+
Note: All queries are FREE - this only shows rate limit status.
|
|
93
|
+
|
|
94
|
+
Args:
|
|
95
|
+
repository (str): Repository name (e.g., 'sec')
|
|
96
|
+
authorization (Union[None, Unset, str]):
|
|
97
|
+
auth_token (Union[None, Unset, str]):
|
|
98
|
+
|
|
99
|
+
Raises:
|
|
100
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
101
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
102
|
+
|
|
103
|
+
Returns:
|
|
104
|
+
Response[Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]]
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
kwargs = _get_kwargs(
|
|
108
|
+
repository=repository,
|
|
109
|
+
authorization=authorization,
|
|
110
|
+
auth_token=auth_token,
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
response = client.get_httpx_client().request(
|
|
114
|
+
**kwargs,
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
return _build_response(client=client, response=response)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def sync(
|
|
121
|
+
repository: str,
|
|
122
|
+
*,
|
|
123
|
+
client: AuthenticatedClient,
|
|
124
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
125
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
126
|
+
) -> Optional[
|
|
127
|
+
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
128
|
+
]:
|
|
129
|
+
"""Get shared repository rate limit status
|
|
130
|
+
|
|
131
|
+
Get current rate limit status and usage for a shared repository.
|
|
132
|
+
|
|
133
|
+
Returns:
|
|
134
|
+
- Current usage across different time windows
|
|
135
|
+
- Rate limits based on subscription tier
|
|
136
|
+
- Remaining quota
|
|
137
|
+
- Reset times
|
|
138
|
+
|
|
139
|
+
Note: All queries are FREE - this only shows rate limit status.
|
|
140
|
+
|
|
141
|
+
Args:
|
|
142
|
+
repository (str): Repository name (e.g., 'sec')
|
|
143
|
+
authorization (Union[None, Unset, str]):
|
|
144
|
+
auth_token (Union[None, Unset, str]):
|
|
145
|
+
|
|
146
|
+
Raises:
|
|
147
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
return sync_detailed(
|
|
155
|
+
repository=repository,
|
|
156
|
+
client=client,
|
|
157
|
+
authorization=authorization,
|
|
158
|
+
auth_token=auth_token,
|
|
159
|
+
).parsed
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
async def asyncio_detailed(
|
|
163
|
+
repository: str,
|
|
164
|
+
*,
|
|
165
|
+
client: AuthenticatedClient,
|
|
166
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
167
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
168
|
+
) -> Response[
|
|
169
|
+
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
170
|
+
]:
|
|
171
|
+
"""Get shared repository rate limit status
|
|
172
|
+
|
|
173
|
+
Get current rate limit status and usage for a shared repository.
|
|
174
|
+
|
|
175
|
+
Returns:
|
|
176
|
+
- Current usage across different time windows
|
|
177
|
+
- Rate limits based on subscription tier
|
|
178
|
+
- Remaining quota
|
|
179
|
+
- Reset times
|
|
180
|
+
|
|
181
|
+
Note: All queries are FREE - this only shows rate limit status.
|
|
182
|
+
|
|
183
|
+
Args:
|
|
184
|
+
repository (str): Repository name (e.g., 'sec')
|
|
185
|
+
authorization (Union[None, Unset, str]):
|
|
186
|
+
auth_token (Union[None, Unset, str]):
|
|
187
|
+
|
|
188
|
+
Raises:
|
|
189
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
190
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
191
|
+
|
|
192
|
+
Returns:
|
|
193
|
+
Response[Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]]
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
kwargs = _get_kwargs(
|
|
197
|
+
repository=repository,
|
|
198
|
+
authorization=authorization,
|
|
199
|
+
auth_token=auth_token,
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
203
|
+
|
|
204
|
+
return _build_response(client=client, response=response)
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
async def asyncio(
|
|
208
|
+
repository: str,
|
|
209
|
+
*,
|
|
210
|
+
client: AuthenticatedClient,
|
|
211
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
212
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
213
|
+
) -> Optional[
|
|
214
|
+
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
215
|
+
]:
|
|
216
|
+
"""Get shared repository rate limit status
|
|
217
|
+
|
|
218
|
+
Get current rate limit status and usage for a shared repository.
|
|
219
|
+
|
|
220
|
+
Returns:
|
|
221
|
+
- Current usage across different time windows
|
|
222
|
+
- Rate limits based on subscription tier
|
|
223
|
+
- Remaining quota
|
|
224
|
+
- Reset times
|
|
225
|
+
|
|
226
|
+
Note: All queries are FREE - this only shows rate limit status.
|
|
227
|
+
|
|
228
|
+
Args:
|
|
229
|
+
repository (str): Repository name (e.g., 'sec')
|
|
230
|
+
authorization (Union[None, Unset, str]):
|
|
231
|
+
auth_token (Union[None, Unset, str]):
|
|
232
|
+
|
|
233
|
+
Raises:
|
|
234
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
235
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
236
|
+
|
|
237
|
+
Returns:
|
|
238
|
+
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
239
|
+
"""
|
|
240
|
+
|
|
241
|
+
return (
|
|
242
|
+
await asyncio_detailed(
|
|
243
|
+
repository=repository,
|
|
244
|
+
client=client,
|
|
245
|
+
authorization=authorization,
|
|
246
|
+
auth_token=auth_token,
|
|
247
|
+
)
|
|
248
|
+
).parsed
|