robosystems-client 0.1.19__py3-none-any.whl → 0.2.1__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 (141) hide show
  1. robosystems_client/api/agent/auto_select_agent.py +9 -3
  2. robosystems_client/api/agent/batch_process_queries.py +8 -3
  3. robosystems_client/api/agent/execute_specific_agent.py +10 -3
  4. robosystems_client/api/agent/get_agent_metadata.py +3 -0
  5. robosystems_client/api/agent/list_agents.py +3 -0
  6. robosystems_client/api/agent/recommend_agent.py +3 -0
  7. robosystems_client/api/auth/check_password_strength.py +2 -0
  8. robosystems_client/api/auth/complete_sso_auth.py +3 -0
  9. robosystems_client/api/auth/forgot_password.py +6 -3
  10. robosystems_client/api/auth/generate_sso_token.py +3 -0
  11. robosystems_client/api/auth/get_captcha_config.py +1 -0
  12. robosystems_client/api/auth/get_current_auth_user.py +3 -0
  13. robosystems_client/api/auth/get_password_policy.py +1 -0
  14. robosystems_client/api/auth/login_user.py +7 -3
  15. robosystems_client/api/auth/logout_user.py +2 -0
  16. robosystems_client/api/auth/refresh_auth_session.py +3 -0
  17. robosystems_client/api/auth/register_user.py +11 -6
  18. robosystems_client/api/auth/resend_verification_email.py +8 -3
  19. robosystems_client/api/auth/reset_password.py +3 -0
  20. robosystems_client/api/auth/sso_token_exchange.py +7 -3
  21. robosystems_client/api/auth/validate_reset_token.py +2 -0
  22. robosystems_client/api/auth/verify_email.py +3 -0
  23. robosystems_client/api/backup/create_backup.py +13 -7
  24. robosystems_client/api/backup/get_backup_download_url.py +8 -3
  25. robosystems_client/api/backup/get_backup_stats.py +2 -0
  26. robosystems_client/api/backup/list_backups.py +6 -4
  27. robosystems_client/api/backup/restore_backup.py +27 -8
  28. robosystems_client/api/connections/create_connection.py +13 -7
  29. robosystems_client/api/connections/create_link_token.py +8 -3
  30. robosystems_client/api/connections/delete_connection.py +12 -7
  31. robosystems_client/api/connections/exchange_link_token.py +8 -3
  32. robosystems_client/api/connections/get_connection.py +8 -3
  33. robosystems_client/api/connections/get_connection_options.py +7 -3
  34. robosystems_client/api/connections/init_o_auth.py +2 -0
  35. robosystems_client/api/connections/list_connections.py +7 -3
  36. robosystems_client/api/connections/oauth_callback.py +9 -3
  37. robosystems_client/api/connections/sync_connection.py +12 -7
  38. robosystems_client/api/graph_analytics/get_graph_metrics.py +12 -7
  39. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +11 -7
  40. robosystems_client/api/graph_billing/get_current_graph_bill.py +8 -3
  41. robosystems_client/api/graph_billing/get_graph_billing_history.py +8 -3
  42. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +9 -3
  43. robosystems_client/api/graph_billing/get_graph_usage_details.py +9 -3
  44. robosystems_client/api/graph_credits/check_credit_balance.py +8 -3
  45. robosystems_client/api/graph_credits/check_storage_limits.py +8 -3
  46. robosystems_client/api/graph_credits/get_credit_summary.py +8 -3
  47. robosystems_client/api/graph_credits/get_storage_usage.py +7 -3
  48. robosystems_client/api/graph_credits/list_credit_transactions.py +8 -3
  49. robosystems_client/api/graph_health/get_database_health.py +8 -3
  50. robosystems_client/api/graph_info/get_database_info.py +8 -3
  51. robosystems_client/api/graph_limits/get_graph_limits.py +8 -3
  52. robosystems_client/api/graphs/create_graph.py +6 -4
  53. robosystems_client/api/graphs/get_available_extensions.py +1 -0
  54. robosystems_client/api/graphs/get_graphs.py +2 -0
  55. robosystems_client/api/graphs/select_graph.py +8 -3
  56. robosystems_client/api/mcp/call_mcp_tool.py +17 -7
  57. robosystems_client/api/mcp/list_mcp_tools.py +11 -7
  58. robosystems_client/api/operations/cancel_operation.py +9 -3
  59. robosystems_client/api/operations/get_operation_status.py +8 -3
  60. robosystems_client/api/operations/stream_operation_events.py +8 -3
  61. robosystems_client/api/query/execute_cypher_query.py +48 -15
  62. robosystems_client/api/schema/export_graph_schema.py +2 -0
  63. robosystems_client/api/schema/{get_graph_schema_info.py → get_graph_schema.py} +37 -47
  64. robosystems_client/api/schema/validate_schema.py +9 -4
  65. robosystems_client/api/service_offerings/get_service_offerings.py +2 -0
  66. robosystems_client/api/status/get_service_status.py +1 -0
  67. robosystems_client/api/subgraphs/create_subgraph.py +2 -0
  68. robosystems_client/api/subgraphs/delete_subgraph.py +14 -6
  69. robosystems_client/api/subgraphs/get_subgraph_info.py +13 -6
  70. robosystems_client/api/subgraphs/get_subgraph_quota.py +9 -3
  71. robosystems_client/api/subgraphs/list_subgraphs.py +2 -0
  72. robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +287 -0
  73. robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +283 -0
  74. robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +260 -0
  75. robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +251 -0
  76. robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +283 -0
  77. robosystems_client/api/{backup/export_backup.py → tables/list_tables_v1_graphs_graph_id_tables_get.py} +36 -36
  78. robosystems_client/api/{schema/list_schema_extensions.py → tables/query_tables_v1_graphs_graph_id_tables_query_post.py} +67 -43
  79. robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +306 -0
  80. robosystems_client/api/user/create_user_api_key.py +2 -0
  81. robosystems_client/api/user/get_all_credit_summaries.py +6 -3
  82. robosystems_client/api/user/get_current_user.py +2 -0
  83. robosystems_client/api/user/list_user_api_keys.py +2 -0
  84. robosystems_client/api/user/revoke_user_api_key.py +7 -3
  85. robosystems_client/api/user/update_user.py +2 -0
  86. robosystems_client/api/user/update_user_api_key.py +2 -0
  87. robosystems_client/api/user/update_user_password.py +8 -3
  88. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +2 -0
  89. robosystems_client/api/user_analytics/get_user_usage_overview.py +2 -0
  90. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +2 -0
  91. robosystems_client/api/user_limits/get_shared_repository_limits.py +6 -4
  92. robosystems_client/api/user_limits/get_user_limits.py +3 -0
  93. robosystems_client/api/user_limits/get_user_usage.py +2 -0
  94. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +11 -6
  95. robosystems_client/api/user_subscriptions/get_repository_credits.py +7 -3
  96. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +7 -3
  97. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +7 -3
  98. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +8 -3
  99. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +12 -6
  100. robosystems_client/extensions/README.md +1 -212
  101. robosystems_client/extensions/__init__.py +12 -28
  102. robosystems_client/extensions/extensions.py +3 -17
  103. robosystems_client/extensions/operation_client.py +12 -4
  104. robosystems_client/extensions/query_client.py +38 -24
  105. robosystems_client/extensions/sse_client.py +11 -0
  106. robosystems_client/extensions/table_ingest_client.py +466 -0
  107. robosystems_client/models/__init__.py +39 -29
  108. robosystems_client/models/backup_restore_request.py +1 -12
  109. robosystems_client/models/bulk_ingest_request.py +50 -0
  110. robosystems_client/models/bulk_ingest_response.py +137 -0
  111. robosystems_client/models/create_graph_request.py +4 -3
  112. robosystems_client/models/delete_file_v1_graphs_graph_id_tables_files_file_id_delete_response_delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +47 -0
  113. robosystems_client/models/file_update_request.py +62 -0
  114. robosystems_client/models/file_upload_request.py +51 -0
  115. robosystems_client/models/file_upload_response.py +83 -0
  116. robosystems_client/models/{get_graph_schema_info_response_getgraphschemainfo.py → get_file_info_v1_graphs_graph_id_tables_files_file_id_get_response_get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py} +8 -5
  117. robosystems_client/models/{copy_response_error_details_type_0.py → get_graph_schema_response_getgraphschema.py} +5 -5
  118. robosystems_client/models/list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +47 -0
  119. robosystems_client/models/table_info.py +107 -0
  120. robosystems_client/models/table_ingest_result.py +107 -0
  121. robosystems_client/models/table_list_response.py +81 -0
  122. robosystems_client/models/table_query_request.py +40 -0
  123. robosystems_client/models/table_query_response.py +92 -0
  124. robosystems_client/models/{list_schema_extensions_response_listschemaextensions.py → update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.py} +8 -5
  125. {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.1.dist-info}/METADATA +25 -12
  126. {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.1.dist-info}/RECORD +129 -122
  127. robosystems_client/api/copy/copy_data_to_graph.py +0 -486
  128. robosystems_client/extensions/copy_client.py +0 -479
  129. robosystems_client/models/copy_response.py +0 -275
  130. robosystems_client/models/copy_response_status.py +0 -11
  131. robosystems_client/models/data_frame_copy_request.py +0 -125
  132. robosystems_client/models/data_frame_copy_request_format.py +0 -10
  133. robosystems_client/models/s3_copy_request.py +0 -378
  134. robosystems_client/models/s3_copy_request_file_format.py +0 -12
  135. robosystems_client/models/s3_copy_request_s3_url_style_type_0.py +0 -9
  136. robosystems_client/models/url_copy_request.py +0 -157
  137. robosystems_client/models/url_copy_request_file_format.py +0 -10
  138. robosystems_client/models/url_copy_request_headers_type_0.py +0 -44
  139. /robosystems_client/api/{copy → tables}/__init__.py +0 -0
  140. {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.1.dist-info}/WHEEL +0 -0
  141. {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,260 @@
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.error_response import ErrorResponse
9
+ from ...models.file_upload_request import FileUploadRequest
10
+ from ...models.file_upload_response import FileUploadResponse
11
+ from ...models.http_validation_error import HTTPValidationError
12
+ from ...types import UNSET, Response, Unset
13
+
14
+
15
+ def _get_kwargs(
16
+ graph_id: str,
17
+ table_name: str,
18
+ *,
19
+ body: FileUploadRequest,
20
+ token: Union[None, Unset, str] = UNSET,
21
+ authorization: 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
+ params: dict[str, Any] = {}
28
+
29
+ json_token: Union[None, Unset, str]
30
+ if isinstance(token, Unset):
31
+ json_token = UNSET
32
+ else:
33
+ json_token = token
34
+ params["token"] = json_token
35
+
36
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
37
+
38
+ _kwargs: dict[str, Any] = {
39
+ "method": "post",
40
+ "url": f"/v1/graphs/{graph_id}/tables/{table_name}/files",
41
+ "params": params,
42
+ }
43
+
44
+ _kwargs["json"] = body.to_dict()
45
+
46
+ headers["Content-Type"] = "application/json"
47
+
48
+ _kwargs["headers"] = headers
49
+ return _kwargs
50
+
51
+
52
+ def _parse_response(
53
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
54
+ ) -> Optional[Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]]:
55
+ if response.status_code == 200:
56
+ response_200 = FileUploadResponse.from_dict(response.json())
57
+
58
+ return response_200
59
+
60
+ if response.status_code == 400:
61
+ response_400 = ErrorResponse.from_dict(response.json())
62
+
63
+ return response_400
64
+
65
+ if response.status_code == 401:
66
+ response_401 = cast(Any, None)
67
+ return response_401
68
+
69
+ if response.status_code == 403:
70
+ response_403 = ErrorResponse.from_dict(response.json())
71
+
72
+ return response_403
73
+
74
+ if response.status_code == 404:
75
+ response_404 = ErrorResponse.from_dict(response.json())
76
+
77
+ return response_404
78
+
79
+ if response.status_code == 422:
80
+ response_422 = HTTPValidationError.from_dict(response.json())
81
+
82
+ return response_422
83
+
84
+ if client.raise_on_unexpected_status:
85
+ raise errors.UnexpectedStatus(response.status_code, response.content)
86
+ else:
87
+ return None
88
+
89
+
90
+ def _build_response(
91
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
92
+ ) -> Response[Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]]:
93
+ return Response(
94
+ status_code=HTTPStatus(response.status_code),
95
+ content=response.content,
96
+ headers=response.headers,
97
+ parsed=_parse_response(client=client, response=response),
98
+ )
99
+
100
+
101
+ def sync_detailed(
102
+ graph_id: str,
103
+ table_name: str,
104
+ *,
105
+ client: AuthenticatedClient,
106
+ body: FileUploadRequest,
107
+ token: Union[None, Unset, str] = UNSET,
108
+ authorization: Union[None, Unset, str] = UNSET,
109
+ ) -> Response[Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]]:
110
+ """Create File Upload
111
+
112
+ Create a new file upload for a table and get a presigned S3 URL
113
+
114
+ Args:
115
+ graph_id (str): Graph database identifier
116
+ table_name (str): Table name
117
+ token (Union[None, Unset, str]): JWT token for SSE authentication
118
+ authorization (Union[None, Unset, str]):
119
+ body (FileUploadRequest):
120
+
121
+ Raises:
122
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
123
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
124
+
125
+ Returns:
126
+ Response[Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]]
127
+ """
128
+
129
+ kwargs = _get_kwargs(
130
+ graph_id=graph_id,
131
+ table_name=table_name,
132
+ body=body,
133
+ token=token,
134
+ authorization=authorization,
135
+ )
136
+
137
+ response = client.get_httpx_client().request(
138
+ **kwargs,
139
+ )
140
+
141
+ return _build_response(client=client, response=response)
142
+
143
+
144
+ def sync(
145
+ graph_id: str,
146
+ table_name: str,
147
+ *,
148
+ client: AuthenticatedClient,
149
+ body: FileUploadRequest,
150
+ token: Union[None, Unset, str] = UNSET,
151
+ authorization: Union[None, Unset, str] = UNSET,
152
+ ) -> Optional[Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]]:
153
+ """Create File Upload
154
+
155
+ Create a new file upload for a table and get a presigned S3 URL
156
+
157
+ Args:
158
+ graph_id (str): Graph database identifier
159
+ table_name (str): Table name
160
+ token (Union[None, Unset, str]): JWT token for SSE authentication
161
+ authorization (Union[None, Unset, str]):
162
+ body (FileUploadRequest):
163
+
164
+ Raises:
165
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
166
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
167
+
168
+ Returns:
169
+ Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]
170
+ """
171
+
172
+ return sync_detailed(
173
+ graph_id=graph_id,
174
+ table_name=table_name,
175
+ client=client,
176
+ body=body,
177
+ token=token,
178
+ authorization=authorization,
179
+ ).parsed
180
+
181
+
182
+ async def asyncio_detailed(
183
+ graph_id: str,
184
+ table_name: str,
185
+ *,
186
+ client: AuthenticatedClient,
187
+ body: FileUploadRequest,
188
+ token: Union[None, Unset, str] = UNSET,
189
+ authorization: Union[None, Unset, str] = UNSET,
190
+ ) -> Response[Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]]:
191
+ """Create File Upload
192
+
193
+ Create a new file upload for a table and get a presigned S3 URL
194
+
195
+ Args:
196
+ graph_id (str): Graph database identifier
197
+ table_name (str): Table name
198
+ token (Union[None, Unset, str]): JWT token for SSE authentication
199
+ authorization (Union[None, Unset, str]):
200
+ body (FileUploadRequest):
201
+
202
+ Raises:
203
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
204
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
205
+
206
+ Returns:
207
+ Response[Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]]
208
+ """
209
+
210
+ kwargs = _get_kwargs(
211
+ graph_id=graph_id,
212
+ table_name=table_name,
213
+ body=body,
214
+ token=token,
215
+ authorization=authorization,
216
+ )
217
+
218
+ response = await client.get_async_httpx_client().request(**kwargs)
219
+
220
+ return _build_response(client=client, response=response)
221
+
222
+
223
+ async def asyncio(
224
+ graph_id: str,
225
+ table_name: str,
226
+ *,
227
+ client: AuthenticatedClient,
228
+ body: FileUploadRequest,
229
+ token: Union[None, Unset, str] = UNSET,
230
+ authorization: Union[None, Unset, str] = UNSET,
231
+ ) -> Optional[Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]]:
232
+ """Create File Upload
233
+
234
+ Create a new file upload for a table and get a presigned S3 URL
235
+
236
+ Args:
237
+ graph_id (str): Graph database identifier
238
+ table_name (str): Table name
239
+ token (Union[None, Unset, str]): JWT token for SSE authentication
240
+ authorization (Union[None, Unset, str]):
241
+ body (FileUploadRequest):
242
+
243
+ Raises:
244
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
245
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
246
+
247
+ Returns:
248
+ Union[Any, ErrorResponse, FileUploadResponse, HTTPValidationError]
249
+ """
250
+
251
+ return (
252
+ await asyncio_detailed(
253
+ graph_id=graph_id,
254
+ table_name=table_name,
255
+ client=client,
256
+ body=body,
257
+ token=token,
258
+ authorization=authorization,
259
+ )
260
+ ).parsed
@@ -0,0 +1,251 @@
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.bulk_ingest_request import BulkIngestRequest
9
+ from ...models.bulk_ingest_response import BulkIngestResponse
10
+ from ...models.error_response import ErrorResponse
11
+ from ...models.http_validation_error import HTTPValidationError
12
+ from ...types import UNSET, Response, Unset
13
+
14
+
15
+ def _get_kwargs(
16
+ graph_id: str,
17
+ *,
18
+ body: BulkIngestRequest,
19
+ token: Union[None, Unset, str] = UNSET,
20
+ authorization: Union[None, Unset, str] = UNSET,
21
+ ) -> dict[str, Any]:
22
+ headers: dict[str, Any] = {}
23
+ if not isinstance(authorization, Unset):
24
+ headers["authorization"] = authorization
25
+
26
+ params: dict[str, Any] = {}
27
+
28
+ json_token: Union[None, Unset, str]
29
+ if isinstance(token, Unset):
30
+ json_token = UNSET
31
+ else:
32
+ json_token = token
33
+ params["token"] = json_token
34
+
35
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
36
+
37
+ _kwargs: dict[str, Any] = {
38
+ "method": "post",
39
+ "url": f"/v1/graphs/{graph_id}/tables/ingest",
40
+ "params": params,
41
+ }
42
+
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[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]]:
54
+ if response.status_code == 200:
55
+ response_200 = BulkIngestResponse.from_dict(response.json())
56
+
57
+ return response_200
58
+
59
+ if response.status_code == 401:
60
+ response_401 = cast(Any, None)
61
+ return response_401
62
+
63
+ if response.status_code == 403:
64
+ response_403 = ErrorResponse.from_dict(response.json())
65
+
66
+ return response_403
67
+
68
+ if response.status_code == 404:
69
+ response_404 = ErrorResponse.from_dict(response.json())
70
+
71
+ return response_404
72
+
73
+ if response.status_code == 422:
74
+ response_422 = HTTPValidationError.from_dict(response.json())
75
+
76
+ return response_422
77
+
78
+ if response.status_code == 500:
79
+ response_500 = ErrorResponse.from_dict(response.json())
80
+
81
+ return response_500
82
+
83
+ if client.raise_on_unexpected_status:
84
+ raise errors.UnexpectedStatus(response.status_code, response.content)
85
+ else:
86
+ return None
87
+
88
+
89
+ def _build_response(
90
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
91
+ ) -> Response[Union[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]]:
92
+ return Response(
93
+ status_code=HTTPStatus(response.status_code),
94
+ content=response.content,
95
+ headers=response.headers,
96
+ parsed=_parse_response(client=client, response=response),
97
+ )
98
+
99
+
100
+ def sync_detailed(
101
+ graph_id: str,
102
+ *,
103
+ client: AuthenticatedClient,
104
+ body: BulkIngestRequest,
105
+ token: Union[None, Unset, str] = UNSET,
106
+ authorization: Union[None, Unset, str] = UNSET,
107
+ ) -> Response[Union[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]]:
108
+ """Ingest Tables to Graph
109
+
110
+ Load all files from S3 into DuckDB staging tables and ingest into Kuzu graph database. Use
111
+ rebuild=true to regenerate the entire graph from scratch (safe operation - S3 is source of truth).
112
+
113
+ Args:
114
+ graph_id (str): Graph database identifier
115
+ token (Union[None, Unset, str]): JWT token for SSE authentication
116
+ authorization (Union[None, Unset, str]):
117
+ body (BulkIngestRequest):
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[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]]
125
+ """
126
+
127
+ kwargs = _get_kwargs(
128
+ graph_id=graph_id,
129
+ body=body,
130
+ token=token,
131
+ authorization=authorization,
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: BulkIngestRequest,
146
+ token: Union[None, Unset, str] = UNSET,
147
+ authorization: Union[None, Unset, str] = UNSET,
148
+ ) -> Optional[Union[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]]:
149
+ """Ingest Tables to Graph
150
+
151
+ Load all files from S3 into DuckDB staging tables and ingest into Kuzu graph database. Use
152
+ rebuild=true to regenerate the entire graph from scratch (safe operation - S3 is source of truth).
153
+
154
+ Args:
155
+ graph_id (str): Graph database identifier
156
+ token (Union[None, Unset, str]): JWT token for SSE authentication
157
+ authorization (Union[None, Unset, str]):
158
+ body (BulkIngestRequest):
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, BulkIngestResponse, ErrorResponse, HTTPValidationError]
166
+ """
167
+
168
+ return sync_detailed(
169
+ graph_id=graph_id,
170
+ client=client,
171
+ body=body,
172
+ token=token,
173
+ authorization=authorization,
174
+ ).parsed
175
+
176
+
177
+ async def asyncio_detailed(
178
+ graph_id: str,
179
+ *,
180
+ client: AuthenticatedClient,
181
+ body: BulkIngestRequest,
182
+ token: Union[None, Unset, str] = UNSET,
183
+ authorization: Union[None, Unset, str] = UNSET,
184
+ ) -> Response[Union[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]]:
185
+ """Ingest Tables to Graph
186
+
187
+ Load all files from S3 into DuckDB staging tables and ingest into Kuzu graph database. Use
188
+ rebuild=true to regenerate the entire graph from scratch (safe operation - S3 is source of truth).
189
+
190
+ Args:
191
+ graph_id (str): Graph database identifier
192
+ token (Union[None, Unset, str]): JWT token for SSE authentication
193
+ authorization (Union[None, Unset, str]):
194
+ body (BulkIngestRequest):
195
+
196
+ Raises:
197
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
198
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
199
+
200
+ Returns:
201
+ Response[Union[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]]
202
+ """
203
+
204
+ kwargs = _get_kwargs(
205
+ graph_id=graph_id,
206
+ body=body,
207
+ token=token,
208
+ authorization=authorization,
209
+ )
210
+
211
+ response = await client.get_async_httpx_client().request(**kwargs)
212
+
213
+ return _build_response(client=client, response=response)
214
+
215
+
216
+ async def asyncio(
217
+ graph_id: str,
218
+ *,
219
+ client: AuthenticatedClient,
220
+ body: BulkIngestRequest,
221
+ token: Union[None, Unset, str] = UNSET,
222
+ authorization: Union[None, Unset, str] = UNSET,
223
+ ) -> Optional[Union[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]]:
224
+ """Ingest Tables to Graph
225
+
226
+ Load all files from S3 into DuckDB staging tables and ingest into Kuzu graph database. Use
227
+ rebuild=true to regenerate the entire graph from scratch (safe operation - S3 is source of truth).
228
+
229
+ Args:
230
+ graph_id (str): Graph database identifier
231
+ token (Union[None, Unset, str]): JWT token for SSE authentication
232
+ authorization (Union[None, Unset, str]):
233
+ body (BulkIngestRequest):
234
+
235
+ Raises:
236
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
237
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
238
+
239
+ Returns:
240
+ Union[Any, BulkIngestResponse, ErrorResponse, HTTPValidationError]
241
+ """
242
+
243
+ return (
244
+ await asyncio_detailed(
245
+ graph_id=graph_id,
246
+ client=client,
247
+ body=body,
248
+ token=token,
249
+ authorization=authorization,
250
+ )
251
+ ).parsed