robosystems-client 0.1.11__py3-none-any.whl → 0.1.13__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.

Files changed (69) hide show
  1. robosystems_client/api/agent/query_financial_agent.py +4 -4
  2. robosystems_client/api/backup/create_backup.py +1 -1
  3. robosystems_client/api/backup/export_backup.py +14 -19
  4. robosystems_client/api/backup/get_backup_download_url.py +1 -1
  5. robosystems_client/api/backup/get_backup_stats.py +19 -1
  6. robosystems_client/api/backup/list_backups.py +19 -1
  7. robosystems_client/api/backup/restore_backup.py +1 -1
  8. robosystems_client/api/copy/copy_data_to_graph.py +314 -0
  9. robosystems_client/api/{credits_ → graph_credits}/check_credit_balance.py +42 -20
  10. robosystems_client/api/graph_health/__init__.py +1 -0
  11. robosystems_client/api/{graph_status → graph_health}/get_database_health.py +1 -1
  12. robosystems_client/api/graph_info/__init__.py +1 -0
  13. robosystems_client/api/{graph_status → graph_info}/get_database_info.py +1 -1
  14. robosystems_client/api/graph_limits/__init__.py +1 -0
  15. robosystems_client/api/graph_limits/get_graph_limits.py +259 -0
  16. robosystems_client/api/subgraphs/__init__.py +1 -0
  17. robosystems_client/api/{billing/upgrade_graph_subscription_v1_graph_id_billing_subscription_upgrade_post.py → subgraphs/create_subgraph.py} +82 -36
  18. robosystems_client/api/subgraphs/delete_subgraph.py +317 -0
  19. robosystems_client/api/subgraphs/get_subgraph_info.py +300 -0
  20. robosystems_client/api/subgraphs/get_subgraph_quota.py +276 -0
  21. robosystems_client/api/{billing/get_credit_billing_info_v1_graph_id_billing_credits_get.py → subgraphs/list_subgraphs.py} +58 -32
  22. robosystems_client/api/user/get_all_credit_summaries.py +1 -1
  23. robosystems_client/extensions/README.md +2 -6
  24. robosystems_client/models/__init__.py +46 -10
  25. robosystems_client/models/copy_response.py +223 -0
  26. robosystems_client/models/{kuzu_backup_health_response_kuzubackuphealth.py → copy_response_error_details_type_0.py} +5 -5
  27. robosystems_client/models/copy_response_status.py +10 -0
  28. robosystems_client/models/create_subgraph_request.py +185 -0
  29. robosystems_client/models/create_subgraph_request_metadata_type_0.py +44 -0
  30. robosystems_client/models/credit_summary_response.py +0 -8
  31. robosystems_client/models/custom_schema_definition.py +2 -2
  32. robosystems_client/models/data_frame_copy_request.py +125 -0
  33. robosystems_client/models/data_frame_copy_request_format.py +10 -0
  34. robosystems_client/models/delete_subgraph_request.py +89 -0
  35. robosystems_client/models/delete_subgraph_response.py +120 -0
  36. robosystems_client/models/get_graph_limits_response_getgraphlimits.py +44 -0
  37. robosystems_client/models/list_subgraphs_response.py +148 -0
  38. robosystems_client/models/s3_copy_request.py +375 -0
  39. robosystems_client/models/s3_copy_request_file_format.py +12 -0
  40. robosystems_client/models/s3_copy_request_s3_url_style_type_0.py +9 -0
  41. robosystems_client/models/subgraph_quota_response.py +158 -0
  42. robosystems_client/models/subgraph_response.py +279 -0
  43. robosystems_client/models/subgraph_response_metadata_type_0.py +44 -0
  44. robosystems_client/models/subgraph_summary.py +155 -0
  45. robosystems_client/models/subgraph_type.py +11 -0
  46. robosystems_client/models/url_copy_request.py +157 -0
  47. robosystems_client/models/url_copy_request_file_format.py +10 -0
  48. robosystems_client/models/url_copy_request_headers_type_0.py +44 -0
  49. {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.13.dist-info}/METADATA +1 -1
  50. {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.13.dist-info}/RECORD +62 -39
  51. robosystems_client/api/backup/kuzu_backup_health.py +0 -202
  52. robosystems_client/api/billing/get_available_subscription_plans_v1_graph_id_billing_available_plans_get.py +0 -198
  53. robosystems_client/api/billing/get_graph_pricing_info_v1_graph_id_billing_pricing_get.py +0 -198
  54. robosystems_client/api/billing/get_graph_subscription_v1_graph_id_billing_subscription_get.py +0 -198
  55. robosystems_client/models/backup_export_request.py +0 -72
  56. robosystems_client/models/credit_check_request.py +0 -82
  57. robosystems_client/models/upgrade_subscription_request.py +0 -82
  58. /robosystems_client/api/{billing → copy}/__init__.py +0 -0
  59. /robosystems_client/api/{credits_ → graph_billing}/__init__.py +0 -0
  60. /robosystems_client/api/{billing → graph_billing}/get_current_graph_bill.py +0 -0
  61. /robosystems_client/api/{billing → graph_billing}/get_graph_billing_history.py +0 -0
  62. /robosystems_client/api/{billing → graph_billing}/get_graph_monthly_bill.py +0 -0
  63. /robosystems_client/api/{billing → graph_billing}/get_graph_usage_details.py +0 -0
  64. /robosystems_client/api/{graph_status → graph_credits}/__init__.py +0 -0
  65. /robosystems_client/api/{credits_ → graph_credits}/check_storage_limits.py +0 -0
  66. /robosystems_client/api/{credits_ → graph_credits}/get_credit_summary.py +0 -0
  67. /robosystems_client/api/{credits_ → graph_credits}/get_storage_usage.py +0 -0
  68. /robosystems_client/api/{credits_ → graph_credits}/list_credit_transactions.py +0 -0
  69. {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.13.dist-info}/WHEEL +0 -0
@@ -0,0 +1,314 @@
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.copy_response import CopyResponse
9
+ from ...models.data_frame_copy_request import DataFrameCopyRequest
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.s3_copy_request import S3CopyRequest
12
+ from ...models.url_copy_request import URLCopyRequest
13
+ from ...types import UNSET, Response, Unset
14
+
15
+
16
+ def _get_kwargs(
17
+ graph_id: str,
18
+ *,
19
+ body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
20
+ authorization: Union[None, Unset, str] = UNSET,
21
+ auth_token: Union[None, Unset, str] = UNSET,
22
+ ) -> dict[str, Any]:
23
+ headers: dict[str, Any] = {}
24
+ if not isinstance(authorization, Unset):
25
+ headers["authorization"] = authorization
26
+
27
+ cookies = {}
28
+ if auth_token is not UNSET:
29
+ cookies["auth-token"] = auth_token
30
+
31
+ _kwargs: dict[str, Any] = {
32
+ "method": "post",
33
+ "url": f"/v1/{graph_id}/copy",
34
+ "cookies": cookies,
35
+ }
36
+
37
+ _kwargs["json"]: dict[str, Any]
38
+ if isinstance(body, S3CopyRequest):
39
+ _kwargs["json"] = body.to_dict()
40
+ elif isinstance(body, URLCopyRequest):
41
+ _kwargs["json"] = body.to_dict()
42
+ else:
43
+ _kwargs["json"] = body.to_dict()
44
+
45
+ headers["Content-Type"] = "application/json"
46
+
47
+ _kwargs["headers"] = headers
48
+ return _kwargs
49
+
50
+
51
+ def _parse_response(
52
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
53
+ ) -> Optional[Union[CopyResponse, HTTPValidationError]]:
54
+ if response.status_code == 200:
55
+ response_200 = CopyResponse.from_dict(response.json())
56
+
57
+ return response_200
58
+ if response.status_code == 422:
59
+ response_422 = HTTPValidationError.from_dict(response.json())
60
+
61
+ return response_422
62
+ if client.raise_on_unexpected_status:
63
+ raise errors.UnexpectedStatus(response.status_code, response.content)
64
+ else:
65
+ return None
66
+
67
+
68
+ def _build_response(
69
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
70
+ ) -> Response[Union[CopyResponse, HTTPValidationError]]:
71
+ return Response(
72
+ status_code=HTTPStatus(response.status_code),
73
+ content=response.content,
74
+ headers=response.headers,
75
+ parsed=_parse_response(client=client, response=response),
76
+ )
77
+
78
+
79
+ def sync_detailed(
80
+ graph_id: str,
81
+ *,
82
+ client: AuthenticatedClient,
83
+ body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
84
+ authorization: Union[None, Unset, str] = UNSET,
85
+ auth_token: Union[None, Unset, str] = UNSET,
86
+ ) -> Response[Union[CopyResponse, HTTPValidationError]]:
87
+ """Copy Data to Graph
88
+
89
+ Copy data from external sources into the graph database.
90
+
91
+ This endpoint supports multiple data sources through a unified interface:
92
+ - **S3**: Copy from S3 buckets with user-provided credentials
93
+ - **URL** (future): Copy from HTTP(S) URLs
94
+ - **DataFrame** (future): Copy from uploaded DataFrames
95
+
96
+ **Security:**
97
+ - Requires write permissions to the target graph
98
+ - **Not allowed on shared repositories** (sec, industry, economic) - these are read-only
99
+ - User must provide their own AWS credentials for S3 access
100
+ - All operations are logged for audit purposes
101
+
102
+ **Tier Limits:**
103
+ - Standard: 10GB max file size, 15 min timeout
104
+ - Enterprise: 50GB max file size, 30 min timeout
105
+ - Premium: 100GB max file size, 60 min timeout
106
+
107
+ **Copy Options:**
108
+ - `ignore_errors`: Skip duplicate/invalid rows (enables upsert-like behavior)
109
+ - `extended_timeout`: Use extended timeout for large datasets
110
+ - `validate_schema`: Validate source schema against target table
111
+
112
+ Args:
113
+ graph_id (str): Target graph identifier (user graphs only - shared repositories not
114
+ allowed)
115
+ authorization (Union[None, Unset, str]):
116
+ auth_token (Union[None, Unset, str]):
117
+ body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
118
+
119
+ Raises:
120
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
122
+
123
+ Returns:
124
+ Response[Union[CopyResponse, HTTPValidationError]]
125
+ """
126
+
127
+ kwargs = _get_kwargs(
128
+ graph_id=graph_id,
129
+ body=body,
130
+ authorization=authorization,
131
+ auth_token=auth_token,
132
+ )
133
+
134
+ response = client.get_httpx_client().request(
135
+ **kwargs,
136
+ )
137
+
138
+ return _build_response(client=client, response=response)
139
+
140
+
141
+ def sync(
142
+ graph_id: str,
143
+ *,
144
+ client: AuthenticatedClient,
145
+ body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
146
+ authorization: Union[None, Unset, str] = UNSET,
147
+ auth_token: Union[None, Unset, str] = UNSET,
148
+ ) -> Optional[Union[CopyResponse, HTTPValidationError]]:
149
+ """Copy Data to Graph
150
+
151
+ Copy data from external sources into the graph database.
152
+
153
+ This endpoint supports multiple data sources through a unified interface:
154
+ - **S3**: Copy from S3 buckets with user-provided credentials
155
+ - **URL** (future): Copy from HTTP(S) URLs
156
+ - **DataFrame** (future): Copy from uploaded DataFrames
157
+
158
+ **Security:**
159
+ - Requires write permissions to the target graph
160
+ - **Not allowed on shared repositories** (sec, industry, economic) - these are read-only
161
+ - User must provide their own AWS credentials for S3 access
162
+ - All operations are logged for audit purposes
163
+
164
+ **Tier Limits:**
165
+ - Standard: 10GB max file size, 15 min timeout
166
+ - Enterprise: 50GB max file size, 30 min timeout
167
+ - Premium: 100GB max file size, 60 min timeout
168
+
169
+ **Copy Options:**
170
+ - `ignore_errors`: Skip duplicate/invalid rows (enables upsert-like behavior)
171
+ - `extended_timeout`: Use extended timeout for large datasets
172
+ - `validate_schema`: Validate source schema against target table
173
+
174
+ Args:
175
+ graph_id (str): Target graph identifier (user graphs only - shared repositories not
176
+ allowed)
177
+ authorization (Union[None, Unset, str]):
178
+ auth_token (Union[None, Unset, str]):
179
+ body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
180
+
181
+ Raises:
182
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
183
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
184
+
185
+ Returns:
186
+ Union[CopyResponse, HTTPValidationError]
187
+ """
188
+
189
+ return sync_detailed(
190
+ graph_id=graph_id,
191
+ client=client,
192
+ body=body,
193
+ authorization=authorization,
194
+ auth_token=auth_token,
195
+ ).parsed
196
+
197
+
198
+ async def asyncio_detailed(
199
+ graph_id: str,
200
+ *,
201
+ client: AuthenticatedClient,
202
+ body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
203
+ authorization: Union[None, Unset, str] = UNSET,
204
+ auth_token: Union[None, Unset, str] = UNSET,
205
+ ) -> Response[Union[CopyResponse, HTTPValidationError]]:
206
+ """Copy Data to Graph
207
+
208
+ Copy data from external sources into the graph database.
209
+
210
+ This endpoint supports multiple data sources through a unified interface:
211
+ - **S3**: Copy from S3 buckets with user-provided credentials
212
+ - **URL** (future): Copy from HTTP(S) URLs
213
+ - **DataFrame** (future): Copy from uploaded DataFrames
214
+
215
+ **Security:**
216
+ - Requires write permissions to the target graph
217
+ - **Not allowed on shared repositories** (sec, industry, economic) - these are read-only
218
+ - User must provide their own AWS credentials for S3 access
219
+ - All operations are logged for audit purposes
220
+
221
+ **Tier Limits:**
222
+ - Standard: 10GB max file size, 15 min timeout
223
+ - Enterprise: 50GB max file size, 30 min timeout
224
+ - Premium: 100GB max file size, 60 min timeout
225
+
226
+ **Copy Options:**
227
+ - `ignore_errors`: Skip duplicate/invalid rows (enables upsert-like behavior)
228
+ - `extended_timeout`: Use extended timeout for large datasets
229
+ - `validate_schema`: Validate source schema against target table
230
+
231
+ Args:
232
+ graph_id (str): Target graph identifier (user graphs only - shared repositories not
233
+ allowed)
234
+ authorization (Union[None, Unset, str]):
235
+ auth_token (Union[None, Unset, str]):
236
+ body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
237
+
238
+ Raises:
239
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
240
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
241
+
242
+ Returns:
243
+ Response[Union[CopyResponse, HTTPValidationError]]
244
+ """
245
+
246
+ kwargs = _get_kwargs(
247
+ graph_id=graph_id,
248
+ body=body,
249
+ authorization=authorization,
250
+ auth_token=auth_token,
251
+ )
252
+
253
+ response = await client.get_async_httpx_client().request(**kwargs)
254
+
255
+ return _build_response(client=client, response=response)
256
+
257
+
258
+ async def asyncio(
259
+ graph_id: str,
260
+ *,
261
+ client: AuthenticatedClient,
262
+ body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
263
+ authorization: Union[None, Unset, str] = UNSET,
264
+ auth_token: Union[None, Unset, str] = UNSET,
265
+ ) -> Optional[Union[CopyResponse, HTTPValidationError]]:
266
+ """Copy Data to Graph
267
+
268
+ Copy data from external sources into the graph database.
269
+
270
+ This endpoint supports multiple data sources through a unified interface:
271
+ - **S3**: Copy from S3 buckets with user-provided credentials
272
+ - **URL** (future): Copy from HTTP(S) URLs
273
+ - **DataFrame** (future): Copy from uploaded DataFrames
274
+
275
+ **Security:**
276
+ - Requires write permissions to the target graph
277
+ - **Not allowed on shared repositories** (sec, industry, economic) - these are read-only
278
+ - User must provide their own AWS credentials for S3 access
279
+ - All operations are logged for audit purposes
280
+
281
+ **Tier Limits:**
282
+ - Standard: 10GB max file size, 15 min timeout
283
+ - Enterprise: 50GB max file size, 30 min timeout
284
+ - Premium: 100GB max file size, 60 min timeout
285
+
286
+ **Copy Options:**
287
+ - `ignore_errors`: Skip duplicate/invalid rows (enables upsert-like behavior)
288
+ - `extended_timeout`: Use extended timeout for large datasets
289
+ - `validate_schema`: Validate source schema against target table
290
+
291
+ Args:
292
+ graph_id (str): Target graph identifier (user graphs only - shared repositories not
293
+ allowed)
294
+ authorization (Union[None, Unset, str]):
295
+ auth_token (Union[None, Unset, str]):
296
+ body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
297
+
298
+ Raises:
299
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
300
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
301
+
302
+ Returns:
303
+ Union[CopyResponse, HTTPValidationError]
304
+ """
305
+
306
+ return (
307
+ await asyncio_detailed(
308
+ graph_id=graph_id,
309
+ client=client,
310
+ body=body,
311
+ authorization=authorization,
312
+ auth_token=auth_token,
313
+ )
314
+ ).parsed
@@ -8,7 +8,6 @@ from ...client import AuthenticatedClient, Client
8
8
  from ...models.check_credit_balance_response_checkcreditbalance import (
9
9
  CheckCreditBalanceResponseCheckcreditbalance,
10
10
  )
11
- from ...models.credit_check_request import CreditCheckRequest
12
11
  from ...models.error_response import ErrorResponse
13
12
  from ...models.http_validation_error import HTTPValidationError
14
13
  from ...types import UNSET, Response, Unset
@@ -17,7 +16,8 @@ from ...types import UNSET, Response, Unset
17
16
  def _get_kwargs(
18
17
  graph_id: str,
19
18
  *,
20
- body: CreditCheckRequest,
19
+ operation_type: str,
20
+ base_cost: Union[None, Unset, float] = UNSET,
21
21
  authorization: Union[None, Unset, str] = UNSET,
22
22
  auth_token: Union[None, Unset, str] = UNSET,
23
23
  ) -> dict[str, Any]:
@@ -29,16 +29,26 @@ def _get_kwargs(
29
29
  if auth_token is not UNSET:
30
30
  cookies["auth-token"] = auth_token
31
31
 
32
+ params: dict[str, Any] = {}
33
+
34
+ params["operation_type"] = operation_type
35
+
36
+ json_base_cost: Union[None, Unset, float]
37
+ if isinstance(base_cost, Unset):
38
+ json_base_cost = UNSET
39
+ else:
40
+ json_base_cost = base_cost
41
+ params["base_cost"] = json_base_cost
42
+
43
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
44
+
32
45
  _kwargs: dict[str, Any] = {
33
- "method": "post",
34
- "url": f"/v1/{graph_id}/credits/check",
46
+ "method": "get",
47
+ "url": f"/v1/{graph_id}/credits/balance/check",
48
+ "params": params,
35
49
  "cookies": cookies,
36
50
  }
37
51
 
38
- _kwargs["json"] = body.to_dict()
39
-
40
- headers["Content-Type"] = "application/json"
41
-
42
52
  _kwargs["headers"] = headers
43
53
  return _kwargs
44
54
 
@@ -97,7 +107,8 @@ def sync_detailed(
97
107
  graph_id: str,
98
108
  *,
99
109
  client: AuthenticatedClient,
100
- body: CreditCheckRequest,
110
+ operation_type: str,
111
+ base_cost: Union[None, Unset, float] = UNSET,
101
112
  authorization: Union[None, Unset, str] = UNSET,
102
113
  auth_token: Union[None, Unset, str] = UNSET,
103
114
  ) -> Response[
@@ -121,9 +132,10 @@ def sync_detailed(
121
132
 
122
133
  Args:
123
134
  graph_id (str): Graph database identifier
135
+ operation_type (str): Type of operation to check
136
+ base_cost (Union[None, Unset, float]): Custom base cost (uses default if not provided)
124
137
  authorization (Union[None, Unset, str]):
125
138
  auth_token (Union[None, Unset, str]):
126
- body (CreditCheckRequest): Request to check credit balance.
127
139
 
128
140
  Raises:
129
141
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -135,7 +147,8 @@ def sync_detailed(
135
147
 
136
148
  kwargs = _get_kwargs(
137
149
  graph_id=graph_id,
138
- body=body,
150
+ operation_type=operation_type,
151
+ base_cost=base_cost,
139
152
  authorization=authorization,
140
153
  auth_token=auth_token,
141
154
  )
@@ -151,7 +164,8 @@ def sync(
151
164
  graph_id: str,
152
165
  *,
153
166
  client: AuthenticatedClient,
154
- body: CreditCheckRequest,
167
+ operation_type: str,
168
+ base_cost: Union[None, Unset, float] = UNSET,
155
169
  authorization: Union[None, Unset, str] = UNSET,
156
170
  auth_token: Union[None, Unset, str] = UNSET,
157
171
  ) -> Optional[
@@ -175,9 +189,10 @@ def sync(
175
189
 
176
190
  Args:
177
191
  graph_id (str): Graph database identifier
192
+ operation_type (str): Type of operation to check
193
+ base_cost (Union[None, Unset, float]): Custom base cost (uses default if not provided)
178
194
  authorization (Union[None, Unset, str]):
179
195
  auth_token (Union[None, Unset, str]):
180
- body (CreditCheckRequest): Request to check credit balance.
181
196
 
182
197
  Raises:
183
198
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -190,7 +205,8 @@ def sync(
190
205
  return sync_detailed(
191
206
  graph_id=graph_id,
192
207
  client=client,
193
- body=body,
208
+ operation_type=operation_type,
209
+ base_cost=base_cost,
194
210
  authorization=authorization,
195
211
  auth_token=auth_token,
196
212
  ).parsed
@@ -200,7 +216,8 @@ async def asyncio_detailed(
200
216
  graph_id: str,
201
217
  *,
202
218
  client: AuthenticatedClient,
203
- body: CreditCheckRequest,
219
+ operation_type: str,
220
+ base_cost: Union[None, Unset, float] = UNSET,
204
221
  authorization: Union[None, Unset, str] = UNSET,
205
222
  auth_token: Union[None, Unset, str] = UNSET,
206
223
  ) -> Response[
@@ -224,9 +241,10 @@ async def asyncio_detailed(
224
241
 
225
242
  Args:
226
243
  graph_id (str): Graph database identifier
244
+ operation_type (str): Type of operation to check
245
+ base_cost (Union[None, Unset, float]): Custom base cost (uses default if not provided)
227
246
  authorization (Union[None, Unset, str]):
228
247
  auth_token (Union[None, Unset, str]):
229
- body (CreditCheckRequest): Request to check credit balance.
230
248
 
231
249
  Raises:
232
250
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -238,7 +256,8 @@ async def asyncio_detailed(
238
256
 
239
257
  kwargs = _get_kwargs(
240
258
  graph_id=graph_id,
241
- body=body,
259
+ operation_type=operation_type,
260
+ base_cost=base_cost,
242
261
  authorization=authorization,
243
262
  auth_token=auth_token,
244
263
  )
@@ -252,7 +271,8 @@ async def asyncio(
252
271
  graph_id: str,
253
272
  *,
254
273
  client: AuthenticatedClient,
255
- body: CreditCheckRequest,
274
+ operation_type: str,
275
+ base_cost: Union[None, Unset, float] = UNSET,
256
276
  authorization: Union[None, Unset, str] = UNSET,
257
277
  auth_token: Union[None, Unset, str] = UNSET,
258
278
  ) -> Optional[
@@ -276,9 +296,10 @@ async def asyncio(
276
296
 
277
297
  Args:
278
298
  graph_id (str): Graph database identifier
299
+ operation_type (str): Type of operation to check
300
+ base_cost (Union[None, Unset, float]): Custom base cost (uses default if not provided)
279
301
  authorization (Union[None, Unset, str]):
280
302
  auth_token (Union[None, Unset, str]):
281
- body (CreditCheckRequest): Request to check credit balance.
282
303
 
283
304
  Raises:
284
305
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -292,7 +313,8 @@ async def asyncio(
292
313
  await asyncio_detailed(
293
314
  graph_id=graph_id,
294
315
  client=client,
295
- body=body,
316
+ operation_type=operation_type,
317
+ base_cost=base_cost,
296
318
  authorization=authorization,
297
319
  auth_token=auth_token,
298
320
  )
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -26,7 +26,7 @@ def _get_kwargs(
26
26
 
27
27
  _kwargs: dict[str, Any] = {
28
28
  "method": "get",
29
- "url": f"/v1/{graph_id}/status/health",
29
+ "url": f"/v1/{graph_id}/health",
30
30
  "cookies": cookies,
31
31
  }
32
32
 
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -26,7 +26,7 @@ def _get_kwargs(
26
26
 
27
27
  _kwargs: dict[str, Any] = {
28
28
  "method": "get",
29
- "url": f"/v1/{graph_id}/status/info",
29
+ "url": f"/v1/{graph_id}/info",
30
30
  "cookies": cookies,
31
31
  }
32
32
 
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""