robosystems-client 0.2.2__py3-none-any.whl → 0.2.4__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 (121) hide show
  1. robosystems_client/api/agent/auto_select_agent.py +1 -41
  2. robosystems_client/api/agent/batch_process_queries.py +1 -41
  3. robosystems_client/api/agent/execute_specific_agent.py +1 -41
  4. robosystems_client/api/agent/get_agent_metadata.py +5 -49
  5. robosystems_client/api/agent/list_agents.py +4 -42
  6. robosystems_client/api/agent/recommend_agent.py +5 -45
  7. robosystems_client/api/auth/generate_sso_token.py +0 -18
  8. robosystems_client/api/auth/get_current_auth_user.py +14 -74
  9. robosystems_client/api/auth/logout_user.py +14 -50
  10. robosystems_client/api/auth/refresh_auth_session.py +14 -50
  11. robosystems_client/api/auth/resend_verification_email.py +14 -74
  12. robosystems_client/api/backup/create_backup.py +5 -45
  13. robosystems_client/api/backup/get_backup_download_url.py +4 -42
  14. robosystems_client/api/backup/get_backup_stats.py +5 -49
  15. robosystems_client/api/backup/list_backups.py +4 -42
  16. robosystems_client/api/backup/restore_backup.py +5 -45
  17. robosystems_client/api/connections/create_connection.py +5 -45
  18. robosystems_client/api/connections/create_link_token.py +5 -45
  19. robosystems_client/api/connections/delete_connection.py +5 -49
  20. robosystems_client/api/connections/exchange_link_token.py +5 -45
  21. robosystems_client/api/connections/get_connection.py +5 -49
  22. robosystems_client/api/connections/get_connection_options.py +5 -49
  23. robosystems_client/api/connections/init_o_auth.py +5 -45
  24. robosystems_client/api/connections/list_connections.py +4 -42
  25. robosystems_client/api/connections/oauth_callback.py +5 -45
  26. robosystems_client/api/connections/sync_connection.py +5 -45
  27. robosystems_client/api/graph_analytics/get_graph_metrics.py +5 -49
  28. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +4 -42
  29. robosystems_client/api/graph_billing/get_current_graph_bill.py +5 -49
  30. robosystems_client/api/graph_billing/get_graph_billing_history.py +4 -42
  31. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +5 -49
  32. robosystems_client/api/graph_billing/get_graph_usage_details.py +4 -42
  33. robosystems_client/api/graph_credits/check_credit_balance.py +0 -38
  34. robosystems_client/api/graph_credits/check_storage_limits.py +1 -45
  35. robosystems_client/api/graph_credits/get_credit_summary.py +1 -45
  36. robosystems_client/api/graph_credits/get_storage_usage.py +0 -38
  37. robosystems_client/api/graph_credits/list_credit_transactions.py +4 -42
  38. robosystems_client/api/graph_health/get_database_health.py +5 -49
  39. robosystems_client/api/graph_info/get_database_info.py +5 -49
  40. robosystems_client/api/graph_limits/get_graph_limits.py +5 -49
  41. robosystems_client/api/graphs/create_graph.py +21 -57
  42. robosystems_client/api/graphs/get_available_extensions.py +131 -15
  43. robosystems_client/api/graphs/get_graphs.py +154 -79
  44. robosystems_client/api/graphs/select_graph.py +117 -49
  45. robosystems_client/api/mcp/call_mcp_tool.py +24 -47
  46. robosystems_client/api/mcp/list_mcp_tools.py +13 -61
  47. robosystems_client/api/operations/cancel_operation.py +1 -45
  48. robosystems_client/api/operations/get_operation_status.py +1 -45
  49. robosystems_client/api/query/execute_cypher_query.py +68 -57
  50. robosystems_client/api/schema/export_graph_schema.py +223 -65
  51. robosystems_client/api/schema/get_graph_schema.py +137 -79
  52. robosystems_client/api/schema/validate_schema.py +5 -45
  53. robosystems_client/api/subgraphs/create_subgraph.py +5 -45
  54. robosystems_client/api/subgraphs/delete_subgraph.py +5 -45
  55. robosystems_client/api/subgraphs/get_subgraph_info.py +5 -49
  56. robosystems_client/api/subgraphs/get_subgraph_quota.py +5 -49
  57. robosystems_client/api/subgraphs/list_subgraphs.py +5 -49
  58. robosystems_client/api/tables/delete_file.py +317 -0
  59. robosystems_client/api/tables/get_file_info.py +249 -0
  60. robosystems_client/api/tables/get_upload_url.py +352 -0
  61. robosystems_client/api/tables/ingest_tables.py +428 -0
  62. robosystems_client/api/tables/list_table_files.py +329 -0
  63. robosystems_client/api/tables/list_tables.py +316 -0
  64. robosystems_client/api/tables/query_tables.py +431 -0
  65. robosystems_client/api/tables/update_file_status.py +395 -0
  66. robosystems_client/api/user/create_user_api_key.py +1 -41
  67. robosystems_client/api/user/get_all_credit_summaries.py +14 -111
  68. robosystems_client/api/user/get_current_user.py +14 -75
  69. robosystems_client/api/user/list_user_api_keys.py +14 -75
  70. robosystems_client/api/user/revoke_user_api_key.py +1 -45
  71. robosystems_client/api/user/update_user.py +1 -41
  72. robosystems_client/api/user/update_user_api_key.py +1 -41
  73. robosystems_client/api/user/update_user_password.py +1 -41
  74. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -38
  75. robosystems_client/api/user_analytics/get_user_usage_overview.py +14 -75
  76. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +14 -105
  77. robosystems_client/api/user_limits/get_shared_repository_limits.py +1 -45
  78. robosystems_client/api/user_limits/get_user_limits.py +14 -75
  79. robosystems_client/api/user_limits/get_user_usage.py +14 -75
  80. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +1 -45
  81. robosystems_client/api/user_subscriptions/get_repository_credits.py +1 -45
  82. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +14 -75
  83. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -38
  84. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +1 -41
  85. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +1 -41
  86. robosystems_client/extensions/__init__.py +8 -1
  87. robosystems_client/extensions/auth_integration.py +1 -2
  88. robosystems_client/extensions/graph_client.py +5 -0
  89. robosystems_client/extensions/query_client.py +3 -2
  90. robosystems_client/extensions/sse_client.py +1 -1
  91. robosystems_client/extensions/table_ingest_client.py +36 -40
  92. robosystems_client/extensions/utils.py +2 -2
  93. robosystems_client/models/__init__.py +17 -21
  94. robosystems_client/models/create_graph_request.py +15 -3
  95. robosystems_client/models/cypher_query_request.py +5 -22
  96. 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 → delete_file_response.py} +45 -9
  97. robosystems_client/models/file_info.py +169 -0
  98. robosystems_client/models/file_status_update.py +41 -0
  99. robosystems_client/models/get_file_info_response.py +205 -0
  100. robosystems_client/models/list_table_files_response.py +105 -0
  101. robosystems_client/models/schema_export_response.py +4 -2
  102. robosystems_client/models/schema_info_response.py +77 -0
  103. robosystems_client/models/{get_graph_schema_response_getgraphschema.py → schema_info_response_schema.py} +6 -6
  104. robosystems_client/models/schema_validation_response.py +7 -6
  105. robosystems_client/models/table_query_request.py +37 -2
  106. robosystems_client/models/{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 → update_file_status_response_updatefilestatus.py} +5 -8
  107. {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/METADATA +2 -4
  108. {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +110 -108
  109. robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +0 -287
  110. robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +0 -283
  111. robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +0 -260
  112. robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +0 -251
  113. robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -283
  114. robosystems_client/api/tables/list_tables_v1_graphs_graph_id_tables_get.py +0 -224
  115. robosystems_client/api/tables/query_tables_v1_graphs_graph_id_tables_query_post.py +0 -247
  116. robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -306
  117. robosystems_client/models/file_update_request.py +0 -62
  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 +0 -47
  119. robosystems_client/models/update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -47
  120. {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
  121. {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,329 @@
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.http_validation_error import HTTPValidationError
10
+ from ...models.list_table_files_response import ListTableFilesResponse
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ graph_id: str,
16
+ table_name: str,
17
+ ) -> dict[str, Any]:
18
+ _kwargs: dict[str, Any] = {
19
+ "method": "get",
20
+ "url": f"/v1/graphs/{graph_id}/tables/{table_name}/files",
21
+ }
22
+
23
+ return _kwargs
24
+
25
+
26
+ def _parse_response(
27
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
28
+ ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]]:
29
+ if response.status_code == 200:
30
+ response_200 = ListTableFilesResponse.from_dict(response.json())
31
+
32
+ return response_200
33
+
34
+ if response.status_code == 401:
35
+ response_401 = cast(Any, None)
36
+ return response_401
37
+
38
+ if response.status_code == 403:
39
+ response_403 = ErrorResponse.from_dict(response.json())
40
+
41
+ return response_403
42
+
43
+ if response.status_code == 404:
44
+ response_404 = ErrorResponse.from_dict(response.json())
45
+
46
+ return response_404
47
+
48
+ if response.status_code == 422:
49
+ response_422 = HTTPValidationError.from_dict(response.json())
50
+
51
+ return response_422
52
+
53
+ if response.status_code == 500:
54
+ response_500 = cast(Any, None)
55
+ return response_500
56
+
57
+ if client.raise_on_unexpected_status:
58
+ raise errors.UnexpectedStatus(response.status_code, response.content)
59
+ else:
60
+ return None
61
+
62
+
63
+ def _build_response(
64
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
65
+ ) -> Response[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]]:
66
+ return Response(
67
+ status_code=HTTPStatus(response.status_code),
68
+ content=response.content,
69
+ headers=response.headers,
70
+ parsed=_parse_response(client=client, response=response),
71
+ )
72
+
73
+
74
+ def sync_detailed(
75
+ graph_id: str,
76
+ table_name: str,
77
+ *,
78
+ client: AuthenticatedClient,
79
+ ) -> Response[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]]:
80
+ """List Files in Staging Table
81
+
82
+ List all files uploaded to a staging table with comprehensive metadata.
83
+
84
+ Get a complete inventory of all files in a staging table, including upload status,
85
+ file sizes, row counts, and S3 locations. Essential for monitoring upload progress
86
+ and validating data before ingestion.
87
+
88
+ **Use Cases:**
89
+ - Monitor file upload progress
90
+ - Verify files are ready for ingestion
91
+ - Check file formats and sizes
92
+ - Track storage usage per table
93
+ - Identify failed or incomplete uploads
94
+ - Pre-ingestion validation
95
+
96
+ **Returned Metadata:**
97
+ - File ID, name, and format (parquet, csv, json)
98
+ - Size in bytes and row count (if available)
99
+ - Upload status and method
100
+ - Creation and upload timestamps
101
+ - S3 key for reference
102
+
103
+ **Upload Status Values:**
104
+ - `pending`: Upload URL generated, awaiting upload
105
+ - `uploaded`: Successfully uploaded, ready for ingestion
106
+ - `disabled`: Excluded from ingestion
107
+ - `archived`: Soft deleted
108
+ - `failed`: Upload failed
109
+
110
+ **Important Notes:**
111
+ - Only `uploaded` files are ingested
112
+ - Check `row_count` to estimate data volume
113
+ - Use `total_size_bytes` for storage monitoring
114
+ - Files with `failed` status should be deleted and re-uploaded
115
+ - File listing is included - no credit consumption
116
+
117
+ Args:
118
+ graph_id (str):
119
+ table_name (str): Table name
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, HTTPValidationError, ListTableFilesResponse]]
127
+ """
128
+
129
+ kwargs = _get_kwargs(
130
+ graph_id=graph_id,
131
+ table_name=table_name,
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
+ table_name: str,
144
+ *,
145
+ client: AuthenticatedClient,
146
+ ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]]:
147
+ """List Files in Staging Table
148
+
149
+ List all files uploaded to a staging table with comprehensive metadata.
150
+
151
+ Get a complete inventory of all files in a staging table, including upload status,
152
+ file sizes, row counts, and S3 locations. Essential for monitoring upload progress
153
+ and validating data before ingestion.
154
+
155
+ **Use Cases:**
156
+ - Monitor file upload progress
157
+ - Verify files are ready for ingestion
158
+ - Check file formats and sizes
159
+ - Track storage usage per table
160
+ - Identify failed or incomplete uploads
161
+ - Pre-ingestion validation
162
+
163
+ **Returned Metadata:**
164
+ - File ID, name, and format (parquet, csv, json)
165
+ - Size in bytes and row count (if available)
166
+ - Upload status and method
167
+ - Creation and upload timestamps
168
+ - S3 key for reference
169
+
170
+ **Upload Status Values:**
171
+ - `pending`: Upload URL generated, awaiting upload
172
+ - `uploaded`: Successfully uploaded, ready for ingestion
173
+ - `disabled`: Excluded from ingestion
174
+ - `archived`: Soft deleted
175
+ - `failed`: Upload failed
176
+
177
+ **Important Notes:**
178
+ - Only `uploaded` files are ingested
179
+ - Check `row_count` to estimate data volume
180
+ - Use `total_size_bytes` for storage monitoring
181
+ - Files with `failed` status should be deleted and re-uploaded
182
+ - File listing is included - no credit consumption
183
+
184
+ Args:
185
+ graph_id (str):
186
+ table_name (str): Table name
187
+
188
+ Raises:
189
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
190
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
191
+
192
+ Returns:
193
+ Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]
194
+ """
195
+
196
+ return sync_detailed(
197
+ graph_id=graph_id,
198
+ table_name=table_name,
199
+ client=client,
200
+ ).parsed
201
+
202
+
203
+ async def asyncio_detailed(
204
+ graph_id: str,
205
+ table_name: str,
206
+ *,
207
+ client: AuthenticatedClient,
208
+ ) -> Response[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]]:
209
+ """List Files in Staging Table
210
+
211
+ List all files uploaded to a staging table with comprehensive metadata.
212
+
213
+ Get a complete inventory of all files in a staging table, including upload status,
214
+ file sizes, row counts, and S3 locations. Essential for monitoring upload progress
215
+ and validating data before ingestion.
216
+
217
+ **Use Cases:**
218
+ - Monitor file upload progress
219
+ - Verify files are ready for ingestion
220
+ - Check file formats and sizes
221
+ - Track storage usage per table
222
+ - Identify failed or incomplete uploads
223
+ - Pre-ingestion validation
224
+
225
+ **Returned Metadata:**
226
+ - File ID, name, and format (parquet, csv, json)
227
+ - Size in bytes and row count (if available)
228
+ - Upload status and method
229
+ - Creation and upload timestamps
230
+ - S3 key for reference
231
+
232
+ **Upload Status Values:**
233
+ - `pending`: Upload URL generated, awaiting upload
234
+ - `uploaded`: Successfully uploaded, ready for ingestion
235
+ - `disabled`: Excluded from ingestion
236
+ - `archived`: Soft deleted
237
+ - `failed`: Upload failed
238
+
239
+ **Important Notes:**
240
+ - Only `uploaded` files are ingested
241
+ - Check `row_count` to estimate data volume
242
+ - Use `total_size_bytes` for storage monitoring
243
+ - Files with `failed` status should be deleted and re-uploaded
244
+ - File listing is included - no credit consumption
245
+
246
+ Args:
247
+ graph_id (str):
248
+ table_name (str): Table name
249
+
250
+ Raises:
251
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
252
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
253
+
254
+ Returns:
255
+ Response[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]]
256
+ """
257
+
258
+ kwargs = _get_kwargs(
259
+ graph_id=graph_id,
260
+ table_name=table_name,
261
+ )
262
+
263
+ response = await client.get_async_httpx_client().request(**kwargs)
264
+
265
+ return _build_response(client=client, response=response)
266
+
267
+
268
+ async def asyncio(
269
+ graph_id: str,
270
+ table_name: str,
271
+ *,
272
+ client: AuthenticatedClient,
273
+ ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]]:
274
+ """List Files in Staging Table
275
+
276
+ List all files uploaded to a staging table with comprehensive metadata.
277
+
278
+ Get a complete inventory of all files in a staging table, including upload status,
279
+ file sizes, row counts, and S3 locations. Essential for monitoring upload progress
280
+ and validating data before ingestion.
281
+
282
+ **Use Cases:**
283
+ - Monitor file upload progress
284
+ - Verify files are ready for ingestion
285
+ - Check file formats and sizes
286
+ - Track storage usage per table
287
+ - Identify failed or incomplete uploads
288
+ - Pre-ingestion validation
289
+
290
+ **Returned Metadata:**
291
+ - File ID, name, and format (parquet, csv, json)
292
+ - Size in bytes and row count (if available)
293
+ - Upload status and method
294
+ - Creation and upload timestamps
295
+ - S3 key for reference
296
+
297
+ **Upload Status Values:**
298
+ - `pending`: Upload URL generated, awaiting upload
299
+ - `uploaded`: Successfully uploaded, ready for ingestion
300
+ - `disabled`: Excluded from ingestion
301
+ - `archived`: Soft deleted
302
+ - `failed`: Upload failed
303
+
304
+ **Important Notes:**
305
+ - Only `uploaded` files are ingested
306
+ - Check `row_count` to estimate data volume
307
+ - Use `total_size_bytes` for storage monitoring
308
+ - Files with `failed` status should be deleted and re-uploaded
309
+ - File listing is included - no credit consumption
310
+
311
+ Args:
312
+ graph_id (str):
313
+ table_name (str): Table name
314
+
315
+ Raises:
316
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
317
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
318
+
319
+ Returns:
320
+ Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesResponse]
321
+ """
322
+
323
+ return (
324
+ await asyncio_detailed(
325
+ graph_id=graph_id,
326
+ table_name=table_name,
327
+ client=client,
328
+ )
329
+ ).parsed
@@ -0,0 +1,316 @@
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.http_validation_error import HTTPValidationError
10
+ from ...models.table_list_response import TableListResponse
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ graph_id: str,
16
+ ) -> dict[str, Any]:
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "get",
19
+ "url": f"/v1/graphs/{graph_id}/tables",
20
+ }
21
+
22
+ return _kwargs
23
+
24
+
25
+ def _parse_response(
26
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
27
+ ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
28
+ if response.status_code == 200:
29
+ response_200 = TableListResponse.from_dict(response.json())
30
+
31
+ return response_200
32
+
33
+ if response.status_code == 401:
34
+ response_401 = cast(Any, None)
35
+ return response_401
36
+
37
+ if response.status_code == 403:
38
+ response_403 = ErrorResponse.from_dict(response.json())
39
+
40
+ return response_403
41
+
42
+ if response.status_code == 404:
43
+ response_404 = ErrorResponse.from_dict(response.json())
44
+
45
+ return response_404
46
+
47
+ if response.status_code == 422:
48
+ response_422 = HTTPValidationError.from_dict(response.json())
49
+
50
+ return response_422
51
+
52
+ if response.status_code == 500:
53
+ response_500 = cast(Any, None)
54
+ return response_500
55
+
56
+ if client.raise_on_unexpected_status:
57
+ raise errors.UnexpectedStatus(response.status_code, response.content)
58
+ else:
59
+ return None
60
+
61
+
62
+ def _build_response(
63
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
64
+ ) -> Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
65
+ return Response(
66
+ status_code=HTTPStatus(response.status_code),
67
+ content=response.content,
68
+ headers=response.headers,
69
+ parsed=_parse_response(client=client, response=response),
70
+ )
71
+
72
+
73
+ def sync_detailed(
74
+ graph_id: str,
75
+ *,
76
+ client: AuthenticatedClient,
77
+ ) -> Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
78
+ """List Staging Tables
79
+
80
+ List all DuckDB staging tables with comprehensive metrics and status.
81
+
82
+ Get a complete inventory of all staging tables for a graph, including
83
+ file counts, storage sizes, and row estimates. Essential for monitoring
84
+ the data pipeline and determining which tables are ready for ingestion.
85
+
86
+ **Returned Metrics:**
87
+ - Table name and type (node/relationship)
88
+ - File count per table
89
+ - Total storage size in bytes
90
+ - Estimated row count
91
+ - S3 location pattern
92
+ - Ready-for-ingestion status
93
+
94
+ **Use Cases:**
95
+ - Monitor data upload progress
96
+ - Check which tables have files ready
97
+ - Track storage consumption
98
+ - Validate pipeline before ingestion
99
+ - Capacity planning
100
+
101
+ **Workflow:**
102
+ 1. List tables to see current state
103
+ 2. Upload files to empty tables
104
+ 3. Re-list to verify uploads
105
+ 4. Check file counts and sizes
106
+ 5. Ingest when ready
107
+
108
+ **Important Notes:**
109
+ - Tables with `file_count > 0` have data ready
110
+ - Check `total_size_bytes` for storage monitoring
111
+ - Use `s3_location` to verify upload paths
112
+ - Empty tables (file_count=0) are skipped during ingestion
113
+ - Table queries are included - no credit consumption
114
+
115
+ Args:
116
+ graph_id (str):
117
+
118
+ Raises:
119
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
120
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
121
+
122
+ Returns:
123
+ Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]
124
+ """
125
+
126
+ kwargs = _get_kwargs(
127
+ graph_id=graph_id,
128
+ )
129
+
130
+ response = client.get_httpx_client().request(
131
+ **kwargs,
132
+ )
133
+
134
+ return _build_response(client=client, response=response)
135
+
136
+
137
+ def sync(
138
+ graph_id: str,
139
+ *,
140
+ client: AuthenticatedClient,
141
+ ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
142
+ """List Staging Tables
143
+
144
+ List all DuckDB staging tables with comprehensive metrics and status.
145
+
146
+ Get a complete inventory of all staging tables for a graph, including
147
+ file counts, storage sizes, and row estimates. Essential for monitoring
148
+ the data pipeline and determining which tables are ready for ingestion.
149
+
150
+ **Returned Metrics:**
151
+ - Table name and type (node/relationship)
152
+ - File count per table
153
+ - Total storage size in bytes
154
+ - Estimated row count
155
+ - S3 location pattern
156
+ - Ready-for-ingestion status
157
+
158
+ **Use Cases:**
159
+ - Monitor data upload progress
160
+ - Check which tables have files ready
161
+ - Track storage consumption
162
+ - Validate pipeline before ingestion
163
+ - Capacity planning
164
+
165
+ **Workflow:**
166
+ 1. List tables to see current state
167
+ 2. Upload files to empty tables
168
+ 3. Re-list to verify uploads
169
+ 4. Check file counts and sizes
170
+ 5. Ingest when ready
171
+
172
+ **Important Notes:**
173
+ - Tables with `file_count > 0` have data ready
174
+ - Check `total_size_bytes` for storage monitoring
175
+ - Use `s3_location` to verify upload paths
176
+ - Empty tables (file_count=0) are skipped during ingestion
177
+ - Table queries are included - no credit consumption
178
+
179
+ Args:
180
+ graph_id (str):
181
+
182
+ Raises:
183
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
184
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
185
+
186
+ Returns:
187
+ Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]
188
+ """
189
+
190
+ return sync_detailed(
191
+ graph_id=graph_id,
192
+ client=client,
193
+ ).parsed
194
+
195
+
196
+ async def asyncio_detailed(
197
+ graph_id: str,
198
+ *,
199
+ client: AuthenticatedClient,
200
+ ) -> Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
201
+ """List Staging Tables
202
+
203
+ List all DuckDB staging tables with comprehensive metrics and status.
204
+
205
+ Get a complete inventory of all staging tables for a graph, including
206
+ file counts, storage sizes, and row estimates. Essential for monitoring
207
+ the data pipeline and determining which tables are ready for ingestion.
208
+
209
+ **Returned Metrics:**
210
+ - Table name and type (node/relationship)
211
+ - File count per table
212
+ - Total storage size in bytes
213
+ - Estimated row count
214
+ - S3 location pattern
215
+ - Ready-for-ingestion status
216
+
217
+ **Use Cases:**
218
+ - Monitor data upload progress
219
+ - Check which tables have files ready
220
+ - Track storage consumption
221
+ - Validate pipeline before ingestion
222
+ - Capacity planning
223
+
224
+ **Workflow:**
225
+ 1. List tables to see current state
226
+ 2. Upload files to empty tables
227
+ 3. Re-list to verify uploads
228
+ 4. Check file counts and sizes
229
+ 5. Ingest when ready
230
+
231
+ **Important Notes:**
232
+ - Tables with `file_count > 0` have data ready
233
+ - Check `total_size_bytes` for storage monitoring
234
+ - Use `s3_location` to verify upload paths
235
+ - Empty tables (file_count=0) are skipped during ingestion
236
+ - Table queries are included - no credit consumption
237
+
238
+ Args:
239
+ graph_id (str):
240
+
241
+ Raises:
242
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
243
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
244
+
245
+ Returns:
246
+ Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]
247
+ """
248
+
249
+ kwargs = _get_kwargs(
250
+ graph_id=graph_id,
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
+ ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
263
+ """List Staging Tables
264
+
265
+ List all DuckDB staging tables with comprehensive metrics and status.
266
+
267
+ Get a complete inventory of all staging tables for a graph, including
268
+ file counts, storage sizes, and row estimates. Essential for monitoring
269
+ the data pipeline and determining which tables are ready for ingestion.
270
+
271
+ **Returned Metrics:**
272
+ - Table name and type (node/relationship)
273
+ - File count per table
274
+ - Total storage size in bytes
275
+ - Estimated row count
276
+ - S3 location pattern
277
+ - Ready-for-ingestion status
278
+
279
+ **Use Cases:**
280
+ - Monitor data upload progress
281
+ - Check which tables have files ready
282
+ - Track storage consumption
283
+ - Validate pipeline before ingestion
284
+ - Capacity planning
285
+
286
+ **Workflow:**
287
+ 1. List tables to see current state
288
+ 2. Upload files to empty tables
289
+ 3. Re-list to verify uploads
290
+ 4. Check file counts and sizes
291
+ 5. Ingest when ready
292
+
293
+ **Important Notes:**
294
+ - Tables with `file_count > 0` have data ready
295
+ - Check `total_size_bytes` for storage monitoring
296
+ - Use `s3_location` to verify upload paths
297
+ - Empty tables (file_count=0) are skipped during ingestion
298
+ - Table queries are included - no credit consumption
299
+
300
+ Args:
301
+ graph_id (str):
302
+
303
+ Raises:
304
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
305
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
306
+
307
+ Returns:
308
+ Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]
309
+ """
310
+
311
+ return (
312
+ await asyncio_detailed(
313
+ graph_id=graph_id,
314
+ client=client,
315
+ )
316
+ ).parsed