robosystems-client 0.1.10__py3-none-any.whl → 0.1.12__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.
- 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/subgraphs/__init__.py +1 -0
- robosystems_client/api/subgraphs/create_subgraph.py +372 -0
- robosystems_client/api/subgraphs/delete_subgraph.py +317 -0
- robosystems_client/api/subgraphs/get_subgraph_info.py +300 -0
- robosystems_client/api/subgraphs/get_subgraph_quota.py +272 -0
- robosystems_client/api/subgraphs/list_subgraphs.py +272 -0
- 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 +2 -6
- 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 +28 -2
- robosystems_client/models/create_graph_request.py +5 -25
- robosystems_client/models/create_subgraph_request.py +185 -0
- robosystems_client/models/create_subgraph_request_metadata_type_0.py +44 -0
- robosystems_client/models/credit_summary_response.py +0 -8
- robosystems_client/models/database_health_response.py +1 -1
- robosystems_client/models/database_info_response.py +2 -2
- robosystems_client/models/delete_subgraph_request.py +89 -0
- robosystems_client/models/delete_subgraph_response.py +120 -0
- robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +46 -0
- robosystems_client/models/get_shared_repository_limits_response_getsharedrepositorylimits.py +44 -0
- robosystems_client/models/list_subgraphs_response.py +148 -0
- robosystems_client/models/repository_credits_response.py +6 -6
- robosystems_client/models/schema_export_response.py +2 -2
- robosystems_client/models/subgraph_quota_response.py +158 -0
- robosystems_client/models/subgraph_response.py +279 -0
- robosystems_client/models/{get_mcp_health_response_getmcphealth.py → subgraph_response_metadata_type_0.py} +5 -5
- robosystems_client/models/subgraph_summary.py +155 -0
- robosystems_client/models/subgraph_type.py +11 -0
- 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.12.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.12.dist-info}/RECORD +60 -42
- robosystems_client/api/status/get_mcp_health.py +0 -136
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.12.dist-info}/WHEEL +0 -0
|
@@ -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
|
|
@@ -11,7 +11,7 @@ from ...types import UNSET, Response, Unset
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
|
-
|
|
14
|
+
repository: str,
|
|
15
15
|
*,
|
|
16
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
17
17
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
@@ -26,7 +26,7 @@ def _get_kwargs(
|
|
|
26
26
|
|
|
27
27
|
_kwargs: dict[str, Any] = {
|
|
28
28
|
"method": "get",
|
|
29
|
-
"url": f"/v1/user/subscriptions/shared-repositories/credits/{
|
|
29
|
+
"url": f"/v1/user/subscriptions/shared-repositories/credits/{repository}",
|
|
30
30
|
"cookies": cookies,
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -69,7 +69,7 @@ def _build_response(
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
def sync_detailed(
|
|
72
|
-
|
|
72
|
+
repository: str,
|
|
73
73
|
*,
|
|
74
74
|
client: AuthenticatedClient,
|
|
75
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -77,10 +77,10 @@ def sync_detailed(
|
|
|
77
77
|
) -> Response[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
78
78
|
"""Get Repository Credits
|
|
79
79
|
|
|
80
|
-
Get credit balance for a specific shared repository
|
|
80
|
+
Get credit balance for a specific shared repository
|
|
81
81
|
|
|
82
82
|
Args:
|
|
83
|
-
|
|
83
|
+
repository (str):
|
|
84
84
|
authorization (Union[None, Unset, str]):
|
|
85
85
|
auth_token (Union[None, Unset, str]):
|
|
86
86
|
|
|
@@ -93,7 +93,7 @@ def sync_detailed(
|
|
|
93
93
|
"""
|
|
94
94
|
|
|
95
95
|
kwargs = _get_kwargs(
|
|
96
|
-
|
|
96
|
+
repository=repository,
|
|
97
97
|
authorization=authorization,
|
|
98
98
|
auth_token=auth_token,
|
|
99
99
|
)
|
|
@@ -106,7 +106,7 @@ def sync_detailed(
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
def sync(
|
|
109
|
-
|
|
109
|
+
repository: str,
|
|
110
110
|
*,
|
|
111
111
|
client: AuthenticatedClient,
|
|
112
112
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -114,10 +114,10 @@ def sync(
|
|
|
114
114
|
) -> Optional[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
115
115
|
"""Get Repository Credits
|
|
116
116
|
|
|
117
|
-
Get credit balance for a specific shared repository
|
|
117
|
+
Get credit balance for a specific shared repository
|
|
118
118
|
|
|
119
119
|
Args:
|
|
120
|
-
|
|
120
|
+
repository (str):
|
|
121
121
|
authorization (Union[None, Unset, str]):
|
|
122
122
|
auth_token (Union[None, Unset, str]):
|
|
123
123
|
|
|
@@ -130,7 +130,7 @@ def sync(
|
|
|
130
130
|
"""
|
|
131
131
|
|
|
132
132
|
return sync_detailed(
|
|
133
|
-
|
|
133
|
+
repository=repository,
|
|
134
134
|
client=client,
|
|
135
135
|
authorization=authorization,
|
|
136
136
|
auth_token=auth_token,
|
|
@@ -138,7 +138,7 @@ def sync(
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
async def asyncio_detailed(
|
|
141
|
-
|
|
141
|
+
repository: str,
|
|
142
142
|
*,
|
|
143
143
|
client: AuthenticatedClient,
|
|
144
144
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -146,10 +146,10 @@ async def asyncio_detailed(
|
|
|
146
146
|
) -> Response[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
147
147
|
"""Get Repository Credits
|
|
148
148
|
|
|
149
|
-
Get credit balance for a specific shared repository
|
|
149
|
+
Get credit balance for a specific shared repository
|
|
150
150
|
|
|
151
151
|
Args:
|
|
152
|
-
|
|
152
|
+
repository (str):
|
|
153
153
|
authorization (Union[None, Unset, str]):
|
|
154
154
|
auth_token (Union[None, Unset, str]):
|
|
155
155
|
|
|
@@ -162,7 +162,7 @@ async def asyncio_detailed(
|
|
|
162
162
|
"""
|
|
163
163
|
|
|
164
164
|
kwargs = _get_kwargs(
|
|
165
|
-
|
|
165
|
+
repository=repository,
|
|
166
166
|
authorization=authorization,
|
|
167
167
|
auth_token=auth_token,
|
|
168
168
|
)
|
|
@@ -173,7 +173,7 @@ async def asyncio_detailed(
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
async def asyncio(
|
|
176
|
-
|
|
176
|
+
repository: str,
|
|
177
177
|
*,
|
|
178
178
|
client: AuthenticatedClient,
|
|
179
179
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -181,10 +181,10 @@ async def asyncio(
|
|
|
181
181
|
) -> Optional[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
182
182
|
"""Get Repository Credits
|
|
183
183
|
|
|
184
|
-
Get credit balance for a specific shared repository
|
|
184
|
+
Get credit balance for a specific shared repository
|
|
185
185
|
|
|
186
186
|
Args:
|
|
187
|
-
|
|
187
|
+
repository (str):
|
|
188
188
|
authorization (Union[None, Unset, str]):
|
|
189
189
|
auth_token (Union[None, Unset, str]):
|
|
190
190
|
|
|
@@ -198,7 +198,7 @@ async def asyncio(
|
|
|
198
198
|
|
|
199
199
|
return (
|
|
200
200
|
await asyncio_detailed(
|
|
201
|
-
|
|
201
|
+
repository=repository,
|
|
202
202
|
client=client,
|
|
203
203
|
authorization=authorization,
|
|
204
204
|
auth_token=auth_token,
|
|
@@ -599,13 +599,9 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
599
599
|
|
|
600
600
|
## 📞 Support
|
|
601
601
|
|
|
602
|
-
- **
|
|
603
|
-
- **
|
|
604
|
-
- **Issues**: [GitHub Issues](https://github.com/robosystems/python-sdk/issues)
|
|
605
|
-
- **Email**: support@robosystems.ai
|
|
602
|
+
- **API Reference**: [api.robosystems.ai](https://api.robosystems.ai)
|
|
603
|
+
- **Issues**: [GitHub Issues](https://github.com/RoboFinSystems/robosystems-python-client/issues)
|
|
606
604
|
|
|
607
605
|
---
|
|
608
606
|
|
|
609
607
|
**RoboSystems Python Client Extensions** - Production-ready streaming, monitoring, and query capabilities for financial knowledge graphs.
|
|
610
|
-
|
|
611
|
-
*Built with ❤️ by the RoboSystems team*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"""Authentication Integration for RoboSystems
|
|
1
|
+
"""Authentication Integration for RoboSystems Client Extensions
|
|
2
2
|
|
|
3
|
-
Provides proper integration with the generated
|
|
3
|
+
Provides proper integration with the generated Client authentication system.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
from typing import Dict, Any
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"""Tests for RoboSystems
|
|
1
|
+
"""Tests for RoboSystems Client Extensions"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"""Integration Tests for RoboSystems
|
|
1
|
+
"""Integration Tests for RoboSystems Client Extensions
|
|
2
2
|
|
|
3
3
|
These tests demonstrate real usage patterns and verify the extensions work correctly
|
|
4
|
-
with the generated
|
|
4
|
+
with the generated Client.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
import pytest
|
|
@@ -438,7 +438,7 @@ class TestUtilityIntegration:
|
|
|
438
438
|
# Integration test runner
|
|
439
439
|
def run_integration_tests():
|
|
440
440
|
"""Run all integration tests manually (for environments without pytest)"""
|
|
441
|
-
print("Running RoboSystems
|
|
441
|
+
print("Running RoboSystems Client Extensions Integration Tests...")
|
|
442
442
|
|
|
443
443
|
# Test classes to run
|
|
444
444
|
test_classes = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Unit Tests for RoboSystems
|
|
1
|
+
"""Unit Tests for RoboSystems Client Extensions
|
|
2
2
|
|
|
3
3
|
Focused unit tests for individual components.
|
|
4
4
|
"""
|
|
@@ -14,8 +14,10 @@ import os
|
|
|
14
14
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../.."))
|
|
15
15
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
|
16
16
|
|
|
17
|
-
from
|
|
18
|
-
|
|
17
|
+
from robosystems_client.extensions import (
|
|
18
|
+
SSEClient,
|
|
19
|
+
SSEConfig,
|
|
20
|
+
SSEEvent,
|
|
19
21
|
QueryBuilder,
|
|
20
22
|
CacheManager,
|
|
21
23
|
ProgressTracker,
|