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
|
@@ -138,7 +138,7 @@ def sync_detailed(
|
|
|
138
138
|
|
|
139
139
|
**Credit Consumption:**
|
|
140
140
|
- AI operations consume credits based on actual token usage
|
|
141
|
-
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
|
|
141
|
+
- Claude 4/4.1 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
|
|
142
142
|
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
|
|
143
143
|
- Credits are consumed after operation completes based on actual usage
|
|
144
144
|
|
|
@@ -225,7 +225,7 @@ def sync(
|
|
|
225
225
|
|
|
226
226
|
**Credit Consumption:**
|
|
227
227
|
- AI operations consume credits based on actual token usage
|
|
228
|
-
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
|
|
228
|
+
- Claude 4/4.1 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
|
|
229
229
|
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
|
|
230
230
|
- Credits are consumed after operation completes based on actual usage
|
|
231
231
|
|
|
@@ -307,7 +307,7 @@ async def asyncio_detailed(
|
|
|
307
307
|
|
|
308
308
|
**Credit Consumption:**
|
|
309
309
|
- AI operations consume credits based on actual token usage
|
|
310
|
-
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
|
|
310
|
+
- Claude 4/4.1 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
|
|
311
311
|
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
|
|
312
312
|
- Credits are consumed after operation completes based on actual usage
|
|
313
313
|
|
|
@@ -392,7 +392,7 @@ async def asyncio(
|
|
|
392
392
|
|
|
393
393
|
**Credit Consumption:**
|
|
394
394
|
- AI operations consume credits based on actual token usage
|
|
395
|
-
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
|
|
395
|
+
- Claude 4/4.1 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
|
|
396
396
|
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
|
|
397
397
|
- Credits are consumed after operation completes based on actual usage
|
|
398
398
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,372 @@
|
|
|
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.create_subgraph_request import CreateSubgraphRequest
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...models.subgraph_response import SubgraphResponse
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
graph_id: str,
|
|
16
|
+
*,
|
|
17
|
+
body: CreateSubgraphRequest,
|
|
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": "post",
|
|
31
|
+
"url": f"/v1/{graph_id}/subgraphs",
|
|
32
|
+
"cookies": cookies,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_kwargs["json"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/json"
|
|
38
|
+
|
|
39
|
+
_kwargs["headers"] = headers
|
|
40
|
+
return _kwargs
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _parse_response(
|
|
44
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
45
|
+
) -> Optional[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
46
|
+
if response.status_code == 200:
|
|
47
|
+
response_200 = SubgraphResponse.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_200
|
|
50
|
+
if response.status_code == 401:
|
|
51
|
+
response_401 = cast(Any, None)
|
|
52
|
+
return response_401
|
|
53
|
+
if response.status_code == 403:
|
|
54
|
+
response_403 = cast(Any, None)
|
|
55
|
+
return response_403
|
|
56
|
+
if response.status_code == 404:
|
|
57
|
+
response_404 = cast(Any, None)
|
|
58
|
+
return response_404
|
|
59
|
+
if response.status_code == 400:
|
|
60
|
+
response_400 = cast(Any, None)
|
|
61
|
+
return response_400
|
|
62
|
+
if response.status_code == 409:
|
|
63
|
+
response_409 = cast(Any, None)
|
|
64
|
+
return response_409
|
|
65
|
+
if response.status_code == 500:
|
|
66
|
+
response_500 = cast(Any, None)
|
|
67
|
+
return response_500
|
|
68
|
+
if response.status_code == 422:
|
|
69
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
70
|
+
|
|
71
|
+
return response_422
|
|
72
|
+
if client.raise_on_unexpected_status:
|
|
73
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
74
|
+
else:
|
|
75
|
+
return None
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def _build_response(
|
|
79
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
80
|
+
) -> Response[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
81
|
+
return Response(
|
|
82
|
+
status_code=HTTPStatus(response.status_code),
|
|
83
|
+
content=response.content,
|
|
84
|
+
headers=response.headers,
|
|
85
|
+
parsed=_parse_response(client=client, response=response),
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def sync_detailed(
|
|
90
|
+
graph_id: str,
|
|
91
|
+
*,
|
|
92
|
+
client: AuthenticatedClient,
|
|
93
|
+
body: CreateSubgraphRequest,
|
|
94
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
95
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
96
|
+
) -> Response[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
97
|
+
"""Create New Subgraph
|
|
98
|
+
|
|
99
|
+
Create a new subgraph database under an Enterprise or Premium parent graph.
|
|
100
|
+
|
|
101
|
+
**Requirements:**
|
|
102
|
+
- Parent graph must be Enterprise or Premium tier
|
|
103
|
+
- User must have admin access to parent graph
|
|
104
|
+
- Subgraph name must be unique within parent
|
|
105
|
+
- Subgraph name must be alphanumeric (1-20 chars)
|
|
106
|
+
|
|
107
|
+
**Subgraph Benefits:**
|
|
108
|
+
- Shares parent's infrastructure (no additional cost)
|
|
109
|
+
- Inherits parent's credit pool
|
|
110
|
+
- Isolated database on same instance
|
|
111
|
+
- Full Kuzu database capabilities
|
|
112
|
+
|
|
113
|
+
**Use Cases:**
|
|
114
|
+
- Separate environments (dev/staging/prod)
|
|
115
|
+
- Department-specific data isolation
|
|
116
|
+
- Multi-tenant applications
|
|
117
|
+
- Testing and experimentation
|
|
118
|
+
|
|
119
|
+
**Schema Inheritance:**
|
|
120
|
+
- Subgraphs can use parent's schema or custom extensions
|
|
121
|
+
- Extensions are additive only
|
|
122
|
+
- Base schema always included
|
|
123
|
+
|
|
124
|
+
**Limits:**
|
|
125
|
+
- Enterprise: Maximum 10 subgraphs
|
|
126
|
+
- Premium: Unlimited subgraphs
|
|
127
|
+
- Standard: Not supported
|
|
128
|
+
|
|
129
|
+
**Response includes:**
|
|
130
|
+
- `graph_id`: Full subgraph identifier
|
|
131
|
+
- `parent_graph_id`: Parent graph ID
|
|
132
|
+
- `subgraph_name`: Short name within parent
|
|
133
|
+
- `status`: Creation status
|
|
134
|
+
|
|
135
|
+
Args:
|
|
136
|
+
graph_id (str): Parent graph identifier
|
|
137
|
+
authorization (Union[None, Unset, str]):
|
|
138
|
+
auth_token (Union[None, Unset, str]):
|
|
139
|
+
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
140
|
+
|
|
141
|
+
Raises:
|
|
142
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
143
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
144
|
+
|
|
145
|
+
Returns:
|
|
146
|
+
Response[Union[Any, HTTPValidationError, SubgraphResponse]]
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
kwargs = _get_kwargs(
|
|
150
|
+
graph_id=graph_id,
|
|
151
|
+
body=body,
|
|
152
|
+
authorization=authorization,
|
|
153
|
+
auth_token=auth_token,
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
response = client.get_httpx_client().request(
|
|
157
|
+
**kwargs,
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
return _build_response(client=client, response=response)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def sync(
|
|
164
|
+
graph_id: str,
|
|
165
|
+
*,
|
|
166
|
+
client: AuthenticatedClient,
|
|
167
|
+
body: CreateSubgraphRequest,
|
|
168
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
169
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
170
|
+
) -> Optional[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
171
|
+
"""Create New Subgraph
|
|
172
|
+
|
|
173
|
+
Create a new subgraph database under an Enterprise or Premium parent graph.
|
|
174
|
+
|
|
175
|
+
**Requirements:**
|
|
176
|
+
- Parent graph must be Enterprise or Premium tier
|
|
177
|
+
- User must have admin access to parent graph
|
|
178
|
+
- Subgraph name must be unique within parent
|
|
179
|
+
- Subgraph name must be alphanumeric (1-20 chars)
|
|
180
|
+
|
|
181
|
+
**Subgraph Benefits:**
|
|
182
|
+
- Shares parent's infrastructure (no additional cost)
|
|
183
|
+
- Inherits parent's credit pool
|
|
184
|
+
- Isolated database on same instance
|
|
185
|
+
- Full Kuzu database capabilities
|
|
186
|
+
|
|
187
|
+
**Use Cases:**
|
|
188
|
+
- Separate environments (dev/staging/prod)
|
|
189
|
+
- Department-specific data isolation
|
|
190
|
+
- Multi-tenant applications
|
|
191
|
+
- Testing and experimentation
|
|
192
|
+
|
|
193
|
+
**Schema Inheritance:**
|
|
194
|
+
- Subgraphs can use parent's schema or custom extensions
|
|
195
|
+
- Extensions are additive only
|
|
196
|
+
- Base schema always included
|
|
197
|
+
|
|
198
|
+
**Limits:**
|
|
199
|
+
- Enterprise: Maximum 10 subgraphs
|
|
200
|
+
- Premium: Unlimited subgraphs
|
|
201
|
+
- Standard: Not supported
|
|
202
|
+
|
|
203
|
+
**Response includes:**
|
|
204
|
+
- `graph_id`: Full subgraph identifier
|
|
205
|
+
- `parent_graph_id`: Parent graph ID
|
|
206
|
+
- `subgraph_name`: Short name within parent
|
|
207
|
+
- `status`: Creation status
|
|
208
|
+
|
|
209
|
+
Args:
|
|
210
|
+
graph_id (str): Parent graph identifier
|
|
211
|
+
authorization (Union[None, Unset, str]):
|
|
212
|
+
auth_token (Union[None, Unset, str]):
|
|
213
|
+
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
214
|
+
|
|
215
|
+
Raises:
|
|
216
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
217
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
218
|
+
|
|
219
|
+
Returns:
|
|
220
|
+
Union[Any, HTTPValidationError, SubgraphResponse]
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
return sync_detailed(
|
|
224
|
+
graph_id=graph_id,
|
|
225
|
+
client=client,
|
|
226
|
+
body=body,
|
|
227
|
+
authorization=authorization,
|
|
228
|
+
auth_token=auth_token,
|
|
229
|
+
).parsed
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
async def asyncio_detailed(
|
|
233
|
+
graph_id: str,
|
|
234
|
+
*,
|
|
235
|
+
client: AuthenticatedClient,
|
|
236
|
+
body: CreateSubgraphRequest,
|
|
237
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
238
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
239
|
+
) -> Response[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
240
|
+
"""Create New Subgraph
|
|
241
|
+
|
|
242
|
+
Create a new subgraph database under an Enterprise or Premium parent graph.
|
|
243
|
+
|
|
244
|
+
**Requirements:**
|
|
245
|
+
- Parent graph must be Enterprise or Premium tier
|
|
246
|
+
- User must have admin access to parent graph
|
|
247
|
+
- Subgraph name must be unique within parent
|
|
248
|
+
- Subgraph name must be alphanumeric (1-20 chars)
|
|
249
|
+
|
|
250
|
+
**Subgraph Benefits:**
|
|
251
|
+
- Shares parent's infrastructure (no additional cost)
|
|
252
|
+
- Inherits parent's credit pool
|
|
253
|
+
- Isolated database on same instance
|
|
254
|
+
- Full Kuzu database capabilities
|
|
255
|
+
|
|
256
|
+
**Use Cases:**
|
|
257
|
+
- Separate environments (dev/staging/prod)
|
|
258
|
+
- Department-specific data isolation
|
|
259
|
+
- Multi-tenant applications
|
|
260
|
+
- Testing and experimentation
|
|
261
|
+
|
|
262
|
+
**Schema Inheritance:**
|
|
263
|
+
- Subgraphs can use parent's schema or custom extensions
|
|
264
|
+
- Extensions are additive only
|
|
265
|
+
- Base schema always included
|
|
266
|
+
|
|
267
|
+
**Limits:**
|
|
268
|
+
- Enterprise: Maximum 10 subgraphs
|
|
269
|
+
- Premium: Unlimited subgraphs
|
|
270
|
+
- Standard: Not supported
|
|
271
|
+
|
|
272
|
+
**Response includes:**
|
|
273
|
+
- `graph_id`: Full subgraph identifier
|
|
274
|
+
- `parent_graph_id`: Parent graph ID
|
|
275
|
+
- `subgraph_name`: Short name within parent
|
|
276
|
+
- `status`: Creation status
|
|
277
|
+
|
|
278
|
+
Args:
|
|
279
|
+
graph_id (str): Parent graph identifier
|
|
280
|
+
authorization (Union[None, Unset, str]):
|
|
281
|
+
auth_token (Union[None, Unset, str]):
|
|
282
|
+
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
283
|
+
|
|
284
|
+
Raises:
|
|
285
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
286
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
287
|
+
|
|
288
|
+
Returns:
|
|
289
|
+
Response[Union[Any, HTTPValidationError, SubgraphResponse]]
|
|
290
|
+
"""
|
|
291
|
+
|
|
292
|
+
kwargs = _get_kwargs(
|
|
293
|
+
graph_id=graph_id,
|
|
294
|
+
body=body,
|
|
295
|
+
authorization=authorization,
|
|
296
|
+
auth_token=auth_token,
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
300
|
+
|
|
301
|
+
return _build_response(client=client, response=response)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
async def asyncio(
|
|
305
|
+
graph_id: str,
|
|
306
|
+
*,
|
|
307
|
+
client: AuthenticatedClient,
|
|
308
|
+
body: CreateSubgraphRequest,
|
|
309
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
310
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
311
|
+
) -> Optional[Union[Any, HTTPValidationError, SubgraphResponse]]:
|
|
312
|
+
"""Create New Subgraph
|
|
313
|
+
|
|
314
|
+
Create a new subgraph database under an Enterprise or Premium parent graph.
|
|
315
|
+
|
|
316
|
+
**Requirements:**
|
|
317
|
+
- Parent graph must be Enterprise or Premium tier
|
|
318
|
+
- User must have admin access to parent graph
|
|
319
|
+
- Subgraph name must be unique within parent
|
|
320
|
+
- Subgraph name must be alphanumeric (1-20 chars)
|
|
321
|
+
|
|
322
|
+
**Subgraph Benefits:**
|
|
323
|
+
- Shares parent's infrastructure (no additional cost)
|
|
324
|
+
- Inherits parent's credit pool
|
|
325
|
+
- Isolated database on same instance
|
|
326
|
+
- Full Kuzu database capabilities
|
|
327
|
+
|
|
328
|
+
**Use Cases:**
|
|
329
|
+
- Separate environments (dev/staging/prod)
|
|
330
|
+
- Department-specific data isolation
|
|
331
|
+
- Multi-tenant applications
|
|
332
|
+
- Testing and experimentation
|
|
333
|
+
|
|
334
|
+
**Schema Inheritance:**
|
|
335
|
+
- Subgraphs can use parent's schema or custom extensions
|
|
336
|
+
- Extensions are additive only
|
|
337
|
+
- Base schema always included
|
|
338
|
+
|
|
339
|
+
**Limits:**
|
|
340
|
+
- Enterprise: Maximum 10 subgraphs
|
|
341
|
+
- Premium: Unlimited subgraphs
|
|
342
|
+
- Standard: Not supported
|
|
343
|
+
|
|
344
|
+
**Response includes:**
|
|
345
|
+
- `graph_id`: Full subgraph identifier
|
|
346
|
+
- `parent_graph_id`: Parent graph ID
|
|
347
|
+
- `subgraph_name`: Short name within parent
|
|
348
|
+
- `status`: Creation status
|
|
349
|
+
|
|
350
|
+
Args:
|
|
351
|
+
graph_id (str): Parent graph identifier
|
|
352
|
+
authorization (Union[None, Unset, str]):
|
|
353
|
+
auth_token (Union[None, Unset, str]):
|
|
354
|
+
body (CreateSubgraphRequest): Request model for creating a subgraph.
|
|
355
|
+
|
|
356
|
+
Raises:
|
|
357
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
358
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
359
|
+
|
|
360
|
+
Returns:
|
|
361
|
+
Union[Any, HTTPValidationError, SubgraphResponse]
|
|
362
|
+
"""
|
|
363
|
+
|
|
364
|
+
return (
|
|
365
|
+
await asyncio_detailed(
|
|
366
|
+
graph_id=graph_id,
|
|
367
|
+
client=client,
|
|
368
|
+
body=body,
|
|
369
|
+
authorization=authorization,
|
|
370
|
+
auth_token=auth_token,
|
|
371
|
+
)
|
|
372
|
+
).parsed
|