robosystems-client 0.1.12__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 (57) hide show
  1. robosystems_client/api/backup/create_backup.py +1 -1
  2. robosystems_client/api/backup/export_backup.py +14 -19
  3. robosystems_client/api/backup/get_backup_download_url.py +1 -1
  4. robosystems_client/api/backup/get_backup_stats.py +19 -1
  5. robosystems_client/api/backup/list_backups.py +19 -1
  6. robosystems_client/api/backup/restore_backup.py +1 -1
  7. robosystems_client/api/copy/copy_data_to_graph.py +314 -0
  8. robosystems_client/api/{credits_ → graph_credits}/check_credit_balance.py +42 -20
  9. robosystems_client/api/graph_health/__init__.py +1 -0
  10. robosystems_client/api/{graph_status → graph_health}/get_database_health.py +1 -1
  11. robosystems_client/api/graph_info/__init__.py +1 -0
  12. robosystems_client/api/{graph_status → graph_info}/get_database_info.py +1 -1
  13. robosystems_client/api/graph_limits/__init__.py +1 -0
  14. robosystems_client/api/graph_limits/get_graph_limits.py +259 -0
  15. robosystems_client/api/subgraphs/create_subgraph.py +63 -173
  16. robosystems_client/api/subgraphs/delete_subgraph.py +14 -14
  17. robosystems_client/api/subgraphs/get_subgraph_info.py +14 -14
  18. robosystems_client/api/subgraphs/get_subgraph_quota.py +8 -4
  19. robosystems_client/api/subgraphs/list_subgraphs.py +39 -75
  20. robosystems_client/api/user/get_all_credit_summaries.py +1 -1
  21. robosystems_client/models/__init__.py +26 -10
  22. robosystems_client/models/copy_response.py +223 -0
  23. robosystems_client/models/{kuzu_backup_health_response_kuzubackuphealth.py → copy_response_error_details_type_0.py} +5 -5
  24. robosystems_client/models/copy_response_status.py +10 -0
  25. robosystems_client/models/custom_schema_definition.py +2 -2
  26. robosystems_client/models/data_frame_copy_request.py +125 -0
  27. robosystems_client/models/data_frame_copy_request_format.py +10 -0
  28. robosystems_client/models/get_graph_limits_response_getgraphlimits.py +44 -0
  29. robosystems_client/models/s3_copy_request.py +375 -0
  30. robosystems_client/models/s3_copy_request_file_format.py +12 -0
  31. robosystems_client/models/s3_copy_request_s3_url_style_type_0.py +9 -0
  32. robosystems_client/models/url_copy_request.py +157 -0
  33. robosystems_client/models/url_copy_request_file_format.py +10 -0
  34. robosystems_client/models/url_copy_request_headers_type_0.py +44 -0
  35. {robosystems_client-0.1.12.dist-info → robosystems_client-0.1.13.dist-info}/METADATA +1 -1
  36. {robosystems_client-0.1.12.dist-info → robosystems_client-0.1.13.dist-info}/RECORD +48 -41
  37. robosystems_client/api/backup/kuzu_backup_health.py +0 -202
  38. robosystems_client/api/billing/get_available_subscription_plans_v1_graph_id_billing_available_plans_get.py +0 -198
  39. robosystems_client/api/billing/get_credit_billing_info_v1_graph_id_billing_credits_get.py +0 -210
  40. robosystems_client/api/billing/get_graph_pricing_info_v1_graph_id_billing_pricing_get.py +0 -198
  41. robosystems_client/api/billing/get_graph_subscription_v1_graph_id_billing_subscription_get.py +0 -198
  42. robosystems_client/api/billing/upgrade_graph_subscription_v1_graph_id_billing_subscription_upgrade_post.py +0 -216
  43. robosystems_client/models/backup_export_request.py +0 -72
  44. robosystems_client/models/credit_check_request.py +0 -82
  45. robosystems_client/models/upgrade_subscription_request.py +0 -82
  46. /robosystems_client/api/{billing → copy}/__init__.py +0 -0
  47. /robosystems_client/api/{credits_ → graph_billing}/__init__.py +0 -0
  48. /robosystems_client/api/{billing → graph_billing}/get_current_graph_bill.py +0 -0
  49. /robosystems_client/api/{billing → graph_billing}/get_graph_billing_history.py +0 -0
  50. /robosystems_client/api/{billing → graph_billing}/get_graph_monthly_bill.py +0 -0
  51. /robosystems_client/api/{billing → graph_billing}/get_graph_usage_details.py +0 -0
  52. /robosystems_client/api/{graph_status → graph_credits}/__init__.py +0 -0
  53. /robosystems_client/api/{credits_ → graph_credits}/check_storage_limits.py +0 -0
  54. /robosystems_client/api/{credits_ → graph_credits}/get_credit_summary.py +0 -0
  55. /robosystems_client/api/{credits_ → graph_credits}/get_storage_usage.py +0 -0
  56. /robosystems_client/api/{credits_ → graph_credits}/list_credit_transactions.py +0 -0
  57. {robosystems_client-0.1.12.dist-info → robosystems_client-0.1.13.dist-info}/WHEEL +0 -0
@@ -28,7 +28,7 @@ def _get_kwargs(
28
28
 
29
29
  _kwargs: dict[str, Any] = {
30
30
  "method": "post",
31
- "url": f"/v1/{graph_id}/backup/create",
31
+ "url": f"/v1/{graph_id}/backups",
32
32
  "cookies": cookies,
33
33
  }
34
34
 
@@ -5,15 +5,14 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.backup_export_request import BackupExportRequest
9
8
  from ...models.http_validation_error import HTTPValidationError
10
9
  from ...types import UNSET, Response, Unset
11
10
 
12
11
 
13
12
  def _get_kwargs(
14
13
  graph_id: str,
14
+ backup_id: str,
15
15
  *,
16
- body: BackupExportRequest,
17
16
  authorization: Union[None, Unset, str] = UNSET,
18
17
  auth_token: Union[None, Unset, str] = UNSET,
19
18
  ) -> dict[str, Any]:
@@ -27,14 +26,10 @@ def _get_kwargs(
27
26
 
28
27
  _kwargs: dict[str, Any] = {
29
28
  "method": "post",
30
- "url": f"/v1/{graph_id}/backup/export",
29
+ "url": f"/v1/{graph_id}/backups/{backup_id}/export",
31
30
  "cookies": cookies,
32
31
  }
33
32
 
34
- _kwargs["json"] = body.to_dict()
35
-
36
- headers["Content-Type"] = "application/json"
37
-
38
33
  _kwargs["headers"] = headers
39
34
  return _kwargs
40
35
 
@@ -74,9 +69,9 @@ def _build_response(
74
69
 
75
70
  def sync_detailed(
76
71
  graph_id: str,
72
+ backup_id: str,
77
73
  *,
78
74
  client: AuthenticatedClient,
79
- body: BackupExportRequest,
80
75
  authorization: Union[None, Unset, str] = UNSET,
81
76
  auth_token: Union[None, Unset, str] = UNSET,
82
77
  ) -> Response[Union[Any, HTTPValidationError]]:
@@ -86,9 +81,9 @@ def sync_detailed(
86
81
 
87
82
  Args:
88
83
  graph_id (str): Graph database identifier
84
+ backup_id (str): Backup identifier
89
85
  authorization (Union[None, Unset, str]):
90
86
  auth_token (Union[None, Unset, str]):
91
- body (BackupExportRequest): Request model for exporting a backup.
92
87
 
93
88
  Raises:
94
89
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -100,7 +95,7 @@ def sync_detailed(
100
95
 
101
96
  kwargs = _get_kwargs(
102
97
  graph_id=graph_id,
103
- body=body,
98
+ backup_id=backup_id,
104
99
  authorization=authorization,
105
100
  auth_token=auth_token,
106
101
  )
@@ -114,9 +109,9 @@ def sync_detailed(
114
109
 
115
110
  def sync(
116
111
  graph_id: str,
112
+ backup_id: str,
117
113
  *,
118
114
  client: AuthenticatedClient,
119
- body: BackupExportRequest,
120
115
  authorization: Union[None, Unset, str] = UNSET,
121
116
  auth_token: Union[None, Unset, str] = UNSET,
122
117
  ) -> Optional[Union[Any, HTTPValidationError]]:
@@ -126,9 +121,9 @@ def sync(
126
121
 
127
122
  Args:
128
123
  graph_id (str): Graph database identifier
124
+ backup_id (str): Backup identifier
129
125
  authorization (Union[None, Unset, str]):
130
126
  auth_token (Union[None, Unset, str]):
131
- body (BackupExportRequest): Request model for exporting a backup.
132
127
 
133
128
  Raises:
134
129
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -140,8 +135,8 @@ def sync(
140
135
 
141
136
  return sync_detailed(
142
137
  graph_id=graph_id,
138
+ backup_id=backup_id,
143
139
  client=client,
144
- body=body,
145
140
  authorization=authorization,
146
141
  auth_token=auth_token,
147
142
  ).parsed
@@ -149,9 +144,9 @@ def sync(
149
144
 
150
145
  async def asyncio_detailed(
151
146
  graph_id: str,
147
+ backup_id: str,
152
148
  *,
153
149
  client: AuthenticatedClient,
154
- body: BackupExportRequest,
155
150
  authorization: Union[None, Unset, str] = UNSET,
156
151
  auth_token: Union[None, Unset, str] = UNSET,
157
152
  ) -> Response[Union[Any, HTTPValidationError]]:
@@ -161,9 +156,9 @@ async def asyncio_detailed(
161
156
 
162
157
  Args:
163
158
  graph_id (str): Graph database identifier
159
+ backup_id (str): Backup identifier
164
160
  authorization (Union[None, Unset, str]):
165
161
  auth_token (Union[None, Unset, str]):
166
- body (BackupExportRequest): Request model for exporting a backup.
167
162
 
168
163
  Raises:
169
164
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -175,7 +170,7 @@ async def asyncio_detailed(
175
170
 
176
171
  kwargs = _get_kwargs(
177
172
  graph_id=graph_id,
178
- body=body,
173
+ backup_id=backup_id,
179
174
  authorization=authorization,
180
175
  auth_token=auth_token,
181
176
  )
@@ -187,9 +182,9 @@ async def asyncio_detailed(
187
182
 
188
183
  async def asyncio(
189
184
  graph_id: str,
185
+ backup_id: str,
190
186
  *,
191
187
  client: AuthenticatedClient,
192
- body: BackupExportRequest,
193
188
  authorization: Union[None, Unset, str] = UNSET,
194
189
  auth_token: Union[None, Unset, str] = UNSET,
195
190
  ) -> Optional[Union[Any, HTTPValidationError]]:
@@ -199,9 +194,9 @@ async def asyncio(
199
194
 
200
195
  Args:
201
196
  graph_id (str): Graph database identifier
197
+ backup_id (str): Backup identifier
202
198
  authorization (Union[None, Unset, str]):
203
199
  auth_token (Union[None, Unset, str]):
204
- body (BackupExportRequest): Request model for exporting a backup.
205
200
 
206
201
  Raises:
207
202
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -214,8 +209,8 @@ async def asyncio(
214
209
  return (
215
210
  await asyncio_detailed(
216
211
  graph_id=graph_id,
212
+ backup_id=backup_id,
217
213
  client=client,
218
- body=body,
219
214
  authorization=authorization,
220
215
  auth_token=auth_token,
221
216
  )
@@ -36,7 +36,7 @@ def _get_kwargs(
36
36
 
37
37
  _kwargs: dict[str, Any] = {
38
38
  "method": "get",
39
- "url": f"/v1/{graph_id}/backup/{backup_id}/download",
39
+ "url": f"/v1/{graph_id}/backups/{backup_id}/download",
40
40
  "params": params,
41
41
  "cookies": cookies,
42
42
  }
@@ -13,18 +13,24 @@ from ...types import UNSET, Response, Unset
13
13
  def _get_kwargs(
14
14
  graph_id: str,
15
15
  *,
16
+ authorization: Union[None, Unset, str] = UNSET,
16
17
  auth_token: Union[None, Unset, str] = UNSET,
17
18
  ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+ if not isinstance(authorization, Unset):
21
+ headers["authorization"] = authorization
22
+
18
23
  cookies = {}
19
24
  if auth_token is not UNSET:
20
25
  cookies["auth-token"] = auth_token
21
26
 
22
27
  _kwargs: dict[str, Any] = {
23
28
  "method": "get",
24
- "url": f"/v1/{graph_id}/backup/stats",
29
+ "url": f"/v1/{graph_id}/backups/stats",
25
30
  "cookies": cookies,
26
31
  }
27
32
 
33
+ _kwargs["headers"] = headers
28
34
  return _kwargs
29
35
 
30
36
 
@@ -60,6 +66,7 @@ def sync_detailed(
60
66
  graph_id: str,
61
67
  *,
62
68
  client: AuthenticatedClient,
69
+ authorization: Union[None, Unset, str] = UNSET,
63
70
  auth_token: Union[None, Unset, str] = UNSET,
64
71
  ) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
65
72
  """Get backup statistics
@@ -68,6 +75,7 @@ def sync_detailed(
68
75
 
69
76
  Args:
70
77
  graph_id (str): Graph database identifier
78
+ authorization (Union[None, Unset, str]):
71
79
  auth_token (Union[None, Unset, str]):
72
80
 
73
81
  Raises:
@@ -80,6 +88,7 @@ def sync_detailed(
80
88
 
81
89
  kwargs = _get_kwargs(
82
90
  graph_id=graph_id,
91
+ authorization=authorization,
83
92
  auth_token=auth_token,
84
93
  )
85
94
 
@@ -94,6 +103,7 @@ def sync(
94
103
  graph_id: str,
95
104
  *,
96
105
  client: AuthenticatedClient,
106
+ authorization: Union[None, Unset, str] = UNSET,
97
107
  auth_token: Union[None, Unset, str] = UNSET,
98
108
  ) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
99
109
  """Get backup statistics
@@ -102,6 +112,7 @@ def sync(
102
112
 
103
113
  Args:
104
114
  graph_id (str): Graph database identifier
115
+ authorization (Union[None, Unset, str]):
105
116
  auth_token (Union[None, Unset, str]):
106
117
 
107
118
  Raises:
@@ -115,6 +126,7 @@ def sync(
115
126
  return sync_detailed(
116
127
  graph_id=graph_id,
117
128
  client=client,
129
+ authorization=authorization,
118
130
  auth_token=auth_token,
119
131
  ).parsed
120
132
 
@@ -123,6 +135,7 @@ async def asyncio_detailed(
123
135
  graph_id: str,
124
136
  *,
125
137
  client: AuthenticatedClient,
138
+ authorization: Union[None, Unset, str] = UNSET,
126
139
  auth_token: Union[None, Unset, str] = UNSET,
127
140
  ) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
128
141
  """Get backup statistics
@@ -131,6 +144,7 @@ async def asyncio_detailed(
131
144
 
132
145
  Args:
133
146
  graph_id (str): Graph database identifier
147
+ authorization (Union[None, Unset, str]):
134
148
  auth_token (Union[None, Unset, str]):
135
149
 
136
150
  Raises:
@@ -143,6 +157,7 @@ async def asyncio_detailed(
143
157
 
144
158
  kwargs = _get_kwargs(
145
159
  graph_id=graph_id,
160
+ authorization=authorization,
146
161
  auth_token=auth_token,
147
162
  )
148
163
 
@@ -155,6 +170,7 @@ async def asyncio(
155
170
  graph_id: str,
156
171
  *,
157
172
  client: AuthenticatedClient,
173
+ authorization: Union[None, Unset, str] = UNSET,
158
174
  auth_token: Union[None, Unset, str] = UNSET,
159
175
  ) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
160
176
  """Get backup statistics
@@ -163,6 +179,7 @@ async def asyncio(
163
179
 
164
180
  Args:
165
181
  graph_id (str): Graph database identifier
182
+ authorization (Union[None, Unset, str]):
166
183
  auth_token (Union[None, Unset, str]):
167
184
 
168
185
  Raises:
@@ -177,6 +194,7 @@ async def asyncio(
177
194
  await asyncio_detailed(
178
195
  graph_id=graph_id,
179
196
  client=client,
197
+ authorization=authorization,
180
198
  auth_token=auth_token,
181
199
  )
182
200
  ).parsed
@@ -15,8 +15,13 @@ def _get_kwargs(
15
15
  *,
16
16
  limit: Union[Unset, int] = 50,
17
17
  offset: Union[Unset, int] = 0,
18
+ authorization: Union[None, Unset, str] = UNSET,
18
19
  auth_token: Union[None, Unset, str] = UNSET,
19
20
  ) -> dict[str, Any]:
21
+ headers: dict[str, Any] = {}
22
+ if not isinstance(authorization, Unset):
23
+ headers["authorization"] = authorization
24
+
20
25
  cookies = {}
21
26
  if auth_token is not UNSET:
22
27
  cookies["auth-token"] = auth_token
@@ -31,11 +36,12 @@ def _get_kwargs(
31
36
 
32
37
  _kwargs: dict[str, Any] = {
33
38
  "method": "get",
34
- "url": f"/v1/{graph_id}/backup/list",
39
+ "url": f"/v1/{graph_id}/backups",
35
40
  "params": params,
36
41
  "cookies": cookies,
37
42
  }
38
43
 
44
+ _kwargs["headers"] = headers
39
45
  return _kwargs
40
46
 
41
47
 
@@ -73,6 +79,7 @@ def sync_detailed(
73
79
  client: AuthenticatedClient,
74
80
  limit: Union[Unset, int] = 50,
75
81
  offset: Union[Unset, int] = 0,
82
+ authorization: Union[None, Unset, str] = UNSET,
76
83
  auth_token: Union[None, Unset, str] = UNSET,
77
84
  ) -> Response[Union[BackupListResponse, HTTPValidationError]]:
78
85
  """List Kuzu graph backups
@@ -83,6 +90,7 @@ def sync_detailed(
83
90
  graph_id (str): Graph database identifier
84
91
  limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
85
92
  offset (Union[Unset, int]): Number of backups to skip Default: 0.
93
+ authorization (Union[None, Unset, str]):
86
94
  auth_token (Union[None, Unset, str]):
87
95
 
88
96
  Raises:
@@ -97,6 +105,7 @@ def sync_detailed(
97
105
  graph_id=graph_id,
98
106
  limit=limit,
99
107
  offset=offset,
108
+ authorization=authorization,
100
109
  auth_token=auth_token,
101
110
  )
102
111
 
@@ -113,6 +122,7 @@ def sync(
113
122
  client: AuthenticatedClient,
114
123
  limit: Union[Unset, int] = 50,
115
124
  offset: Union[Unset, int] = 0,
125
+ authorization: Union[None, Unset, str] = UNSET,
116
126
  auth_token: Union[None, Unset, str] = UNSET,
117
127
  ) -> Optional[Union[BackupListResponse, HTTPValidationError]]:
118
128
  """List Kuzu graph backups
@@ -123,6 +133,7 @@ def sync(
123
133
  graph_id (str): Graph database identifier
124
134
  limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
125
135
  offset (Union[Unset, int]): Number of backups to skip Default: 0.
136
+ authorization (Union[None, Unset, str]):
126
137
  auth_token (Union[None, Unset, str]):
127
138
 
128
139
  Raises:
@@ -138,6 +149,7 @@ def sync(
138
149
  client=client,
139
150
  limit=limit,
140
151
  offset=offset,
152
+ authorization=authorization,
141
153
  auth_token=auth_token,
142
154
  ).parsed
143
155
 
@@ -148,6 +160,7 @@ async def asyncio_detailed(
148
160
  client: AuthenticatedClient,
149
161
  limit: Union[Unset, int] = 50,
150
162
  offset: Union[Unset, int] = 0,
163
+ authorization: Union[None, Unset, str] = UNSET,
151
164
  auth_token: Union[None, Unset, str] = UNSET,
152
165
  ) -> Response[Union[BackupListResponse, HTTPValidationError]]:
153
166
  """List Kuzu graph backups
@@ -158,6 +171,7 @@ async def asyncio_detailed(
158
171
  graph_id (str): Graph database identifier
159
172
  limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
160
173
  offset (Union[Unset, int]): Number of backups to skip Default: 0.
174
+ authorization (Union[None, Unset, str]):
161
175
  auth_token (Union[None, Unset, str]):
162
176
 
163
177
  Raises:
@@ -172,6 +186,7 @@ async def asyncio_detailed(
172
186
  graph_id=graph_id,
173
187
  limit=limit,
174
188
  offset=offset,
189
+ authorization=authorization,
175
190
  auth_token=auth_token,
176
191
  )
177
192
 
@@ -186,6 +201,7 @@ async def asyncio(
186
201
  client: AuthenticatedClient,
187
202
  limit: Union[Unset, int] = 50,
188
203
  offset: Union[Unset, int] = 0,
204
+ authorization: Union[None, Unset, str] = UNSET,
189
205
  auth_token: Union[None, Unset, str] = UNSET,
190
206
  ) -> Optional[Union[BackupListResponse, HTTPValidationError]]:
191
207
  """List Kuzu graph backups
@@ -196,6 +212,7 @@ async def asyncio(
196
212
  graph_id (str): Graph database identifier
197
213
  limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
198
214
  offset (Union[Unset, int]): Number of backups to skip Default: 0.
215
+ authorization (Union[None, Unset, str]):
199
216
  auth_token (Union[None, Unset, str]):
200
217
 
201
218
  Raises:
@@ -212,6 +229,7 @@ async def asyncio(
212
229
  client=client,
213
230
  limit=limit,
214
231
  offset=offset,
232
+ authorization=authorization,
215
233
  auth_token=auth_token,
216
234
  )
217
235
  ).parsed
@@ -28,7 +28,7 @@ def _get_kwargs(
28
28
 
29
29
  _kwargs: dict[str, Any] = {
30
30
  "method": "post",
31
- "url": f"/v1/{graph_id}/backup/restore",
31
+ "url": f"/v1/{graph_id}/backups/restore",
32
32
  "cookies": cookies,
33
33
  }
34
34