robosystems-client 0.1.11__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 +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/extensions/README.md +2 -6
- robosystems_client/models/__init__.py +20 -0
- 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/delete_subgraph_request.py +89 -0
- robosystems_client/models/delete_subgraph_response.py +120 -0
- robosystems_client/models/list_subgraphs_response.py +148 -0
- robosystems_client/models/subgraph_quota_response.py +158 -0
- robosystems_client/models/subgraph_response.py +279 -0
- robosystems_client/models/subgraph_response_metadata_type_0.py +44 -0
- robosystems_client/models/subgraph_summary.py +155 -0
- robosystems_client/models/subgraph_type.py +11 -0
- {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.12.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.12.dist-info}/RECORD +23 -7
- {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.12.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
9
|
+
from ...models.subgraph_quota_response import SubgraphQuotaResponse
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
graph_id: str,
|
|
15
|
+
*,
|
|
16
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
if not isinstance(authorization, Unset):
|
|
21
|
+
headers["authorization"] = authorization
|
|
22
|
+
|
|
23
|
+
cookies = {}
|
|
24
|
+
if auth_token is not UNSET:
|
|
25
|
+
cookies["auth-token"] = auth_token
|
|
26
|
+
|
|
27
|
+
_kwargs: dict[str, Any] = {
|
|
28
|
+
"method": "get",
|
|
29
|
+
"url": f"/v1/{graph_id}/subgraphs/quota",
|
|
30
|
+
"cookies": cookies,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
_kwargs["headers"] = headers
|
|
34
|
+
return _kwargs
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _parse_response(
|
|
38
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
39
|
+
) -> Optional[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
40
|
+
if response.status_code == 200:
|
|
41
|
+
response_200 = SubgraphQuotaResponse.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_200
|
|
44
|
+
if response.status_code == 401:
|
|
45
|
+
response_401 = cast(Any, None)
|
|
46
|
+
return response_401
|
|
47
|
+
if response.status_code == 403:
|
|
48
|
+
response_403 = cast(Any, None)
|
|
49
|
+
return response_403
|
|
50
|
+
if response.status_code == 404:
|
|
51
|
+
response_404 = cast(Any, None)
|
|
52
|
+
return response_404
|
|
53
|
+
if response.status_code == 500:
|
|
54
|
+
response_500 = cast(Any, None)
|
|
55
|
+
return response_500
|
|
56
|
+
if response.status_code == 422:
|
|
57
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
58
|
+
|
|
59
|
+
return response_422
|
|
60
|
+
if client.raise_on_unexpected_status:
|
|
61
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
62
|
+
else:
|
|
63
|
+
return None
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _build_response(
|
|
67
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
68
|
+
) -> Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
69
|
+
return Response(
|
|
70
|
+
status_code=HTTPStatus(response.status_code),
|
|
71
|
+
content=response.content,
|
|
72
|
+
headers=response.headers,
|
|
73
|
+
parsed=_parse_response(client=client, response=response),
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def sync_detailed(
|
|
78
|
+
graph_id: str,
|
|
79
|
+
*,
|
|
80
|
+
client: AuthenticatedClient,
|
|
81
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
82
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
83
|
+
) -> Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
84
|
+
"""Get Subgraph Quota
|
|
85
|
+
|
|
86
|
+
Get subgraph quota and usage information for a parent graph.
|
|
87
|
+
|
|
88
|
+
**Shows:**
|
|
89
|
+
- Current subgraph count
|
|
90
|
+
- Maximum allowed subgraphs per tier
|
|
91
|
+
- Remaining capacity
|
|
92
|
+
- Total size usage across all subgraphs
|
|
93
|
+
|
|
94
|
+
**Tier Limits:**
|
|
95
|
+
- Standard: 0 subgraphs (not supported)
|
|
96
|
+
- Enterprise: 10 subgraphs maximum
|
|
97
|
+
- Premium: Unlimited subgraphs
|
|
98
|
+
|
|
99
|
+
**Size Tracking:**
|
|
100
|
+
Provides aggregate size metrics when available.
|
|
101
|
+
Individual subgraph sizes shown in list endpoint.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
graph_id (str): Parent graph identifier
|
|
105
|
+
authorization (Union[None, Unset, str]):
|
|
106
|
+
auth_token (Union[None, Unset, str]):
|
|
107
|
+
|
|
108
|
+
Raises:
|
|
109
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
110
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
111
|
+
|
|
112
|
+
Returns:
|
|
113
|
+
Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
kwargs = _get_kwargs(
|
|
117
|
+
graph_id=graph_id,
|
|
118
|
+
authorization=authorization,
|
|
119
|
+
auth_token=auth_token,
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
response = client.get_httpx_client().request(
|
|
123
|
+
**kwargs,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
return _build_response(client=client, response=response)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def sync(
|
|
130
|
+
graph_id: str,
|
|
131
|
+
*,
|
|
132
|
+
client: AuthenticatedClient,
|
|
133
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
134
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
135
|
+
) -> Optional[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
136
|
+
"""Get Subgraph Quota
|
|
137
|
+
|
|
138
|
+
Get subgraph quota and usage information for a parent graph.
|
|
139
|
+
|
|
140
|
+
**Shows:**
|
|
141
|
+
- Current subgraph count
|
|
142
|
+
- Maximum allowed subgraphs per tier
|
|
143
|
+
- Remaining capacity
|
|
144
|
+
- Total size usage across all subgraphs
|
|
145
|
+
|
|
146
|
+
**Tier Limits:**
|
|
147
|
+
- Standard: 0 subgraphs (not supported)
|
|
148
|
+
- Enterprise: 10 subgraphs maximum
|
|
149
|
+
- Premium: Unlimited subgraphs
|
|
150
|
+
|
|
151
|
+
**Size Tracking:**
|
|
152
|
+
Provides aggregate size metrics when available.
|
|
153
|
+
Individual subgraph sizes shown in list endpoint.
|
|
154
|
+
|
|
155
|
+
Args:
|
|
156
|
+
graph_id (str): Parent graph identifier
|
|
157
|
+
authorization (Union[None, Unset, str]):
|
|
158
|
+
auth_token (Union[None, Unset, str]):
|
|
159
|
+
|
|
160
|
+
Raises:
|
|
161
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
162
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
163
|
+
|
|
164
|
+
Returns:
|
|
165
|
+
Union[Any, HTTPValidationError, SubgraphQuotaResponse]
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
return sync_detailed(
|
|
169
|
+
graph_id=graph_id,
|
|
170
|
+
client=client,
|
|
171
|
+
authorization=authorization,
|
|
172
|
+
auth_token=auth_token,
|
|
173
|
+
).parsed
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
async def asyncio_detailed(
|
|
177
|
+
graph_id: str,
|
|
178
|
+
*,
|
|
179
|
+
client: AuthenticatedClient,
|
|
180
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
181
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
182
|
+
) -> Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
183
|
+
"""Get Subgraph Quota
|
|
184
|
+
|
|
185
|
+
Get subgraph quota and usage information for a parent graph.
|
|
186
|
+
|
|
187
|
+
**Shows:**
|
|
188
|
+
- Current subgraph count
|
|
189
|
+
- Maximum allowed subgraphs per tier
|
|
190
|
+
- Remaining capacity
|
|
191
|
+
- Total size usage across all subgraphs
|
|
192
|
+
|
|
193
|
+
**Tier Limits:**
|
|
194
|
+
- Standard: 0 subgraphs (not supported)
|
|
195
|
+
- Enterprise: 10 subgraphs maximum
|
|
196
|
+
- Premium: Unlimited subgraphs
|
|
197
|
+
|
|
198
|
+
**Size Tracking:**
|
|
199
|
+
Provides aggregate size metrics when available.
|
|
200
|
+
Individual subgraph sizes shown in list endpoint.
|
|
201
|
+
|
|
202
|
+
Args:
|
|
203
|
+
graph_id (str): Parent graph identifier
|
|
204
|
+
authorization (Union[None, Unset, str]):
|
|
205
|
+
auth_token (Union[None, Unset, str]):
|
|
206
|
+
|
|
207
|
+
Raises:
|
|
208
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
209
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
210
|
+
|
|
211
|
+
Returns:
|
|
212
|
+
Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
kwargs = _get_kwargs(
|
|
216
|
+
graph_id=graph_id,
|
|
217
|
+
authorization=authorization,
|
|
218
|
+
auth_token=auth_token,
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
222
|
+
|
|
223
|
+
return _build_response(client=client, response=response)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
async def asyncio(
|
|
227
|
+
graph_id: str,
|
|
228
|
+
*,
|
|
229
|
+
client: AuthenticatedClient,
|
|
230
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
231
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
232
|
+
) -> Optional[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
|
|
233
|
+
"""Get Subgraph Quota
|
|
234
|
+
|
|
235
|
+
Get subgraph quota and usage information for a parent graph.
|
|
236
|
+
|
|
237
|
+
**Shows:**
|
|
238
|
+
- Current subgraph count
|
|
239
|
+
- Maximum allowed subgraphs per tier
|
|
240
|
+
- Remaining capacity
|
|
241
|
+
- Total size usage across all subgraphs
|
|
242
|
+
|
|
243
|
+
**Tier Limits:**
|
|
244
|
+
- Standard: 0 subgraphs (not supported)
|
|
245
|
+
- Enterprise: 10 subgraphs maximum
|
|
246
|
+
- Premium: Unlimited subgraphs
|
|
247
|
+
|
|
248
|
+
**Size Tracking:**
|
|
249
|
+
Provides aggregate size metrics when available.
|
|
250
|
+
Individual subgraph sizes shown in list endpoint.
|
|
251
|
+
|
|
252
|
+
Args:
|
|
253
|
+
graph_id (str): Parent graph identifier
|
|
254
|
+
authorization (Union[None, Unset, str]):
|
|
255
|
+
auth_token (Union[None, Unset, str]):
|
|
256
|
+
|
|
257
|
+
Raises:
|
|
258
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
259
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
260
|
+
|
|
261
|
+
Returns:
|
|
262
|
+
Union[Any, HTTPValidationError, SubgraphQuotaResponse]
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
return (
|
|
266
|
+
await asyncio_detailed(
|
|
267
|
+
graph_id=graph_id,
|
|
268
|
+
client=client,
|
|
269
|
+
authorization=authorization,
|
|
270
|
+
auth_token=auth_token,
|
|
271
|
+
)
|
|
272
|
+
).parsed
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
9
|
+
from ...models.list_subgraphs_response import ListSubgraphsResponse
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
graph_id: str,
|
|
15
|
+
*,
|
|
16
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
if not isinstance(authorization, Unset):
|
|
21
|
+
headers["authorization"] = authorization
|
|
22
|
+
|
|
23
|
+
cookies = {}
|
|
24
|
+
if auth_token is not UNSET:
|
|
25
|
+
cookies["auth-token"] = auth_token
|
|
26
|
+
|
|
27
|
+
_kwargs: dict[str, Any] = {
|
|
28
|
+
"method": "get",
|
|
29
|
+
"url": f"/v1/{graph_id}/subgraphs",
|
|
30
|
+
"cookies": cookies,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
_kwargs["headers"] = headers
|
|
34
|
+
return _kwargs
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _parse_response(
|
|
38
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
39
|
+
) -> Optional[Union[Any, HTTPValidationError, ListSubgraphsResponse]]:
|
|
40
|
+
if response.status_code == 200:
|
|
41
|
+
response_200 = ListSubgraphsResponse.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_200
|
|
44
|
+
if response.status_code == 401:
|
|
45
|
+
response_401 = cast(Any, None)
|
|
46
|
+
return response_401
|
|
47
|
+
if response.status_code == 403:
|
|
48
|
+
response_403 = cast(Any, None)
|
|
49
|
+
return response_403
|
|
50
|
+
if response.status_code == 404:
|
|
51
|
+
response_404 = cast(Any, None)
|
|
52
|
+
return response_404
|
|
53
|
+
if response.status_code == 500:
|
|
54
|
+
response_500 = cast(Any, None)
|
|
55
|
+
return response_500
|
|
56
|
+
if response.status_code == 422:
|
|
57
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
58
|
+
|
|
59
|
+
return response_422
|
|
60
|
+
if client.raise_on_unexpected_status:
|
|
61
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
62
|
+
else:
|
|
63
|
+
return None
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _build_response(
|
|
67
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
68
|
+
) -> Response[Union[Any, HTTPValidationError, ListSubgraphsResponse]]:
|
|
69
|
+
return Response(
|
|
70
|
+
status_code=HTTPStatus(response.status_code),
|
|
71
|
+
content=response.content,
|
|
72
|
+
headers=response.headers,
|
|
73
|
+
parsed=_parse_response(client=client, response=response),
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def sync_detailed(
|
|
78
|
+
graph_id: str,
|
|
79
|
+
*,
|
|
80
|
+
client: AuthenticatedClient,
|
|
81
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
82
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
83
|
+
) -> Response[Union[Any, HTTPValidationError, ListSubgraphsResponse]]:
|
|
84
|
+
"""List Subgraphs
|
|
85
|
+
|
|
86
|
+
List all subgraphs for a parent graph.
|
|
87
|
+
|
|
88
|
+
**Requirements:**
|
|
89
|
+
- User must have at least read access to parent graph
|
|
90
|
+
|
|
91
|
+
**Response includes:**
|
|
92
|
+
- List of all subgraphs with metadata
|
|
93
|
+
- Current usage vs limits
|
|
94
|
+
- Size and statistics per subgraph
|
|
95
|
+
- Creation timestamps
|
|
96
|
+
|
|
97
|
+
**Filtering:**
|
|
98
|
+
Currently returns all subgraphs. Future versions will support:
|
|
99
|
+
- Filtering by status
|
|
100
|
+
- Filtering by creation date
|
|
101
|
+
- Pagination for large lists
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
graph_id (str): Parent graph identifier
|
|
105
|
+
authorization (Union[None, Unset, str]):
|
|
106
|
+
auth_token (Union[None, Unset, str]):
|
|
107
|
+
|
|
108
|
+
Raises:
|
|
109
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
110
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
111
|
+
|
|
112
|
+
Returns:
|
|
113
|
+
Response[Union[Any, HTTPValidationError, ListSubgraphsResponse]]
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
kwargs = _get_kwargs(
|
|
117
|
+
graph_id=graph_id,
|
|
118
|
+
authorization=authorization,
|
|
119
|
+
auth_token=auth_token,
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
response = client.get_httpx_client().request(
|
|
123
|
+
**kwargs,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
return _build_response(client=client, response=response)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def sync(
|
|
130
|
+
graph_id: str,
|
|
131
|
+
*,
|
|
132
|
+
client: AuthenticatedClient,
|
|
133
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
134
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
135
|
+
) -> Optional[Union[Any, HTTPValidationError, ListSubgraphsResponse]]:
|
|
136
|
+
"""List Subgraphs
|
|
137
|
+
|
|
138
|
+
List all subgraphs for a parent graph.
|
|
139
|
+
|
|
140
|
+
**Requirements:**
|
|
141
|
+
- User must have at least read access to parent graph
|
|
142
|
+
|
|
143
|
+
**Response includes:**
|
|
144
|
+
- List of all subgraphs with metadata
|
|
145
|
+
- Current usage vs limits
|
|
146
|
+
- Size and statistics per subgraph
|
|
147
|
+
- Creation timestamps
|
|
148
|
+
|
|
149
|
+
**Filtering:**
|
|
150
|
+
Currently returns all subgraphs. Future versions will support:
|
|
151
|
+
- Filtering by status
|
|
152
|
+
- Filtering by creation date
|
|
153
|
+
- Pagination for large lists
|
|
154
|
+
|
|
155
|
+
Args:
|
|
156
|
+
graph_id (str): Parent graph identifier
|
|
157
|
+
authorization (Union[None, Unset, str]):
|
|
158
|
+
auth_token (Union[None, Unset, str]):
|
|
159
|
+
|
|
160
|
+
Raises:
|
|
161
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
162
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
163
|
+
|
|
164
|
+
Returns:
|
|
165
|
+
Union[Any, HTTPValidationError, ListSubgraphsResponse]
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
return sync_detailed(
|
|
169
|
+
graph_id=graph_id,
|
|
170
|
+
client=client,
|
|
171
|
+
authorization=authorization,
|
|
172
|
+
auth_token=auth_token,
|
|
173
|
+
).parsed
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
async def asyncio_detailed(
|
|
177
|
+
graph_id: str,
|
|
178
|
+
*,
|
|
179
|
+
client: AuthenticatedClient,
|
|
180
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
181
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
182
|
+
) -> Response[Union[Any, HTTPValidationError, ListSubgraphsResponse]]:
|
|
183
|
+
"""List Subgraphs
|
|
184
|
+
|
|
185
|
+
List all subgraphs for a parent graph.
|
|
186
|
+
|
|
187
|
+
**Requirements:**
|
|
188
|
+
- User must have at least read access to parent graph
|
|
189
|
+
|
|
190
|
+
**Response includes:**
|
|
191
|
+
- List of all subgraphs with metadata
|
|
192
|
+
- Current usage vs limits
|
|
193
|
+
- Size and statistics per subgraph
|
|
194
|
+
- Creation timestamps
|
|
195
|
+
|
|
196
|
+
**Filtering:**
|
|
197
|
+
Currently returns all subgraphs. Future versions will support:
|
|
198
|
+
- Filtering by status
|
|
199
|
+
- Filtering by creation date
|
|
200
|
+
- Pagination for large lists
|
|
201
|
+
|
|
202
|
+
Args:
|
|
203
|
+
graph_id (str): Parent graph identifier
|
|
204
|
+
authorization (Union[None, Unset, str]):
|
|
205
|
+
auth_token (Union[None, Unset, str]):
|
|
206
|
+
|
|
207
|
+
Raises:
|
|
208
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
209
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
210
|
+
|
|
211
|
+
Returns:
|
|
212
|
+
Response[Union[Any, HTTPValidationError, ListSubgraphsResponse]]
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
kwargs = _get_kwargs(
|
|
216
|
+
graph_id=graph_id,
|
|
217
|
+
authorization=authorization,
|
|
218
|
+
auth_token=auth_token,
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
222
|
+
|
|
223
|
+
return _build_response(client=client, response=response)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
async def asyncio(
|
|
227
|
+
graph_id: str,
|
|
228
|
+
*,
|
|
229
|
+
client: AuthenticatedClient,
|
|
230
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
231
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
232
|
+
) -> Optional[Union[Any, HTTPValidationError, ListSubgraphsResponse]]:
|
|
233
|
+
"""List Subgraphs
|
|
234
|
+
|
|
235
|
+
List all subgraphs for a parent graph.
|
|
236
|
+
|
|
237
|
+
**Requirements:**
|
|
238
|
+
- User must have at least read access to parent graph
|
|
239
|
+
|
|
240
|
+
**Response includes:**
|
|
241
|
+
- List of all subgraphs with metadata
|
|
242
|
+
- Current usage vs limits
|
|
243
|
+
- Size and statistics per subgraph
|
|
244
|
+
- Creation timestamps
|
|
245
|
+
|
|
246
|
+
**Filtering:**
|
|
247
|
+
Currently returns all subgraphs. Future versions will support:
|
|
248
|
+
- Filtering by status
|
|
249
|
+
- Filtering by creation date
|
|
250
|
+
- Pagination for large lists
|
|
251
|
+
|
|
252
|
+
Args:
|
|
253
|
+
graph_id (str): Parent graph identifier
|
|
254
|
+
authorization (Union[None, Unset, str]):
|
|
255
|
+
auth_token (Union[None, Unset, str]):
|
|
256
|
+
|
|
257
|
+
Raises:
|
|
258
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
259
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
260
|
+
|
|
261
|
+
Returns:
|
|
262
|
+
Union[Any, HTTPValidationError, ListSubgraphsResponse]
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
return (
|
|
266
|
+
await asyncio_detailed(
|
|
267
|
+
graph_id=graph_id,
|
|
268
|
+
client=client,
|
|
269
|
+
authorization=authorization,
|
|
270
|
+
auth_token=auth_token,
|
|
271
|
+
)
|
|
272
|
+
).parsed
|
|
@@ -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**: hello@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*
|
|
@@ -39,6 +39,8 @@ from .create_api_key_response import CreateAPIKeyResponse
|
|
|
39
39
|
from .create_connection_request import CreateConnectionRequest
|
|
40
40
|
from .create_connection_request_provider import CreateConnectionRequestProvider
|
|
41
41
|
from .create_graph_request import CreateGraphRequest
|
|
42
|
+
from .create_subgraph_request import CreateSubgraphRequest
|
|
43
|
+
from .create_subgraph_request_metadata_type_0 import CreateSubgraphRequestMetadataType0
|
|
42
44
|
from .credit_check_request import CreditCheckRequest
|
|
43
45
|
from .credit_summary import CreditSummary
|
|
44
46
|
from .credit_summary_response import CreditSummaryResponse
|
|
@@ -56,6 +58,8 @@ from .cypher_query_request import CypherQueryRequest
|
|
|
56
58
|
from .cypher_query_request_parameters_type_0 import CypherQueryRequestParametersType0
|
|
57
59
|
from .database_health_response import DatabaseHealthResponse
|
|
58
60
|
from .database_info_response import DatabaseInfoResponse
|
|
61
|
+
from .delete_subgraph_request import DeleteSubgraphRequest
|
|
62
|
+
from .delete_subgraph_response import DeleteSubgraphResponse
|
|
59
63
|
from .detailed_transactions_response import DetailedTransactionsResponse
|
|
60
64
|
from .detailed_transactions_response_date_range import (
|
|
61
65
|
DetailedTransactionsResponseDateRange,
|
|
@@ -131,6 +135,7 @@ from .list_connections_provider_type_0 import ListConnectionsProviderType0
|
|
|
131
135
|
from .list_schema_extensions_response_listschemaextensions import (
|
|
132
136
|
ListSchemaExtensionsResponseListschemaextensions,
|
|
133
137
|
)
|
|
138
|
+
from .list_subgraphs_response import ListSubgraphsResponse
|
|
134
139
|
from .login_request import LoginRequest
|
|
135
140
|
from .logout_user_response_logoutuser import LogoutUserResponseLogoutuser
|
|
136
141
|
from .mcp_tool_call import MCPToolCall
|
|
@@ -182,6 +187,11 @@ from .sso_exchange_response import SSOExchangeResponse
|
|
|
182
187
|
from .sso_login_request import SSOLoginRequest
|
|
183
188
|
from .sso_token_response import SSOTokenResponse
|
|
184
189
|
from .storage_limit_response import StorageLimitResponse
|
|
190
|
+
from .subgraph_quota_response import SubgraphQuotaResponse
|
|
191
|
+
from .subgraph_response import SubgraphResponse
|
|
192
|
+
from .subgraph_response_metadata_type_0 import SubgraphResponseMetadataType0
|
|
193
|
+
from .subgraph_summary import SubgraphSummary
|
|
194
|
+
from .subgraph_type import SubgraphType
|
|
185
195
|
from .subscription_info import SubscriptionInfo
|
|
186
196
|
from .subscription_info_metadata import SubscriptionInfoMetadata
|
|
187
197
|
from .subscription_request import SubscriptionRequest
|
|
@@ -258,6 +268,8 @@ __all__ = (
|
|
|
258
268
|
"CreateConnectionRequest",
|
|
259
269
|
"CreateConnectionRequestProvider",
|
|
260
270
|
"CreateGraphRequest",
|
|
271
|
+
"CreateSubgraphRequest",
|
|
272
|
+
"CreateSubgraphRequestMetadataType0",
|
|
261
273
|
"CreditCheckRequest",
|
|
262
274
|
"CreditsSummaryResponse",
|
|
263
275
|
"CreditsSummaryResponseCreditsByAddonItem",
|
|
@@ -271,6 +283,8 @@ __all__ = (
|
|
|
271
283
|
"CypherQueryRequestParametersType0",
|
|
272
284
|
"DatabaseHealthResponse",
|
|
273
285
|
"DatabaseInfoResponse",
|
|
286
|
+
"DeleteSubgraphRequest",
|
|
287
|
+
"DeleteSubgraphResponse",
|
|
274
288
|
"DetailedTransactionsResponse",
|
|
275
289
|
"DetailedTransactionsResponseDateRange",
|
|
276
290
|
"DetailedTransactionsResponseSummary",
|
|
@@ -312,6 +326,7 @@ __all__ = (
|
|
|
312
326
|
"LinkTokenRequestProviderType0",
|
|
313
327
|
"ListConnectionsProviderType0",
|
|
314
328
|
"ListSchemaExtensionsResponseListschemaextensions",
|
|
329
|
+
"ListSubgraphsResponse",
|
|
315
330
|
"LoginRequest",
|
|
316
331
|
"LogoutUserResponseLogoutuser",
|
|
317
332
|
"MCPToolCall",
|
|
@@ -351,6 +366,11 @@ __all__ = (
|
|
|
351
366
|
"SSOLoginRequest",
|
|
352
367
|
"SSOTokenResponse",
|
|
353
368
|
"StorageLimitResponse",
|
|
369
|
+
"SubgraphQuotaResponse",
|
|
370
|
+
"SubgraphResponse",
|
|
371
|
+
"SubgraphResponseMetadataType0",
|
|
372
|
+
"SubgraphSummary",
|
|
373
|
+
"SubgraphType",
|
|
354
374
|
"SubscriptionInfo",
|
|
355
375
|
"SubscriptionInfoMetadata",
|
|
356
376
|
"SubscriptionRequest",
|