robosystems-client 0.2.3__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.
- robosystems_client/api/agent/auto_select_agent.py +1 -41
- robosystems_client/api/agent/batch_process_queries.py +1 -41
- robosystems_client/api/agent/execute_specific_agent.py +1 -41
- robosystems_client/api/agent/get_agent_metadata.py +5 -49
- robosystems_client/api/agent/list_agents.py +4 -42
- robosystems_client/api/agent/recommend_agent.py +5 -45
- robosystems_client/api/auth/generate_sso_token.py +0 -18
- robosystems_client/api/auth/get_current_auth_user.py +14 -74
- robosystems_client/api/auth/logout_user.py +14 -50
- robosystems_client/api/auth/refresh_auth_session.py +14 -50
- robosystems_client/api/auth/resend_verification_email.py +14 -74
- robosystems_client/api/backup/create_backup.py +5 -45
- robosystems_client/api/backup/get_backup_download_url.py +4 -42
- robosystems_client/api/backup/get_backup_stats.py +5 -49
- robosystems_client/api/backup/list_backups.py +4 -42
- robosystems_client/api/backup/restore_backup.py +5 -45
- robosystems_client/api/connections/create_connection.py +5 -45
- robosystems_client/api/connections/create_link_token.py +5 -45
- robosystems_client/api/connections/delete_connection.py +5 -49
- robosystems_client/api/connections/exchange_link_token.py +5 -45
- robosystems_client/api/connections/get_connection.py +5 -49
- robosystems_client/api/connections/get_connection_options.py +5 -49
- robosystems_client/api/connections/init_o_auth.py +5 -45
- robosystems_client/api/connections/list_connections.py +4 -42
- robosystems_client/api/connections/oauth_callback.py +5 -45
- robosystems_client/api/connections/sync_connection.py +5 -45
- robosystems_client/api/graph_analytics/get_graph_metrics.py +5 -49
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +4 -42
- robosystems_client/api/graph_billing/get_current_graph_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_billing_history.py +4 -42
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_usage_details.py +4 -42
- robosystems_client/api/graph_credits/check_credit_balance.py +0 -38
- robosystems_client/api/graph_credits/check_storage_limits.py +1 -45
- robosystems_client/api/graph_credits/get_credit_summary.py +1 -45
- robosystems_client/api/graph_credits/get_storage_usage.py +0 -38
- robosystems_client/api/graph_credits/list_credit_transactions.py +4 -42
- robosystems_client/api/graph_health/get_database_health.py +5 -49
- robosystems_client/api/graph_info/get_database_info.py +5 -49
- robosystems_client/api/graph_limits/get_graph_limits.py +5 -49
- robosystems_client/api/graphs/create_graph.py +21 -57
- robosystems_client/api/graphs/get_available_extensions.py +131 -15
- robosystems_client/api/graphs/get_graphs.py +154 -79
- robosystems_client/api/graphs/select_graph.py +117 -49
- robosystems_client/api/mcp/call_mcp_tool.py +24 -47
- robosystems_client/api/mcp/list_mcp_tools.py +13 -61
- robosystems_client/api/operations/cancel_operation.py +1 -45
- robosystems_client/api/operations/get_operation_status.py +1 -45
- robosystems_client/api/query/execute_cypher_query.py +69 -53
- robosystems_client/api/schema/export_graph_schema.py +223 -65
- robosystems_client/api/schema/get_graph_schema.py +137 -79
- robosystems_client/api/schema/validate_schema.py +5 -45
- robosystems_client/api/subgraphs/create_subgraph.py +5 -45
- robosystems_client/api/subgraphs/delete_subgraph.py +5 -45
- robosystems_client/api/subgraphs/get_subgraph_info.py +5 -49
- robosystems_client/api/subgraphs/get_subgraph_quota.py +5 -49
- robosystems_client/api/subgraphs/list_subgraphs.py +5 -49
- robosystems_client/api/tables/delete_file.py +181 -301
- robosystems_client/api/tables/get_file_info.py +117 -265
- robosystems_client/api/tables/get_upload_url.py +193 -389
- robosystems_client/api/tables/ingest_tables.py +277 -465
- robosystems_client/api/tables/list_table_files.py +193 -373
- robosystems_client/api/tables/list_tables.py +189 -361
- robosystems_client/api/tables/query_tables.py +85 -141
- robosystems_client/api/tables/update_file_status.py +205 -349
- robosystems_client/api/user/create_user_api_key.py +1 -41
- robosystems_client/api/user/get_all_credit_summaries.py +14 -111
- robosystems_client/api/user/get_current_user.py +14 -75
- robosystems_client/api/user/list_user_api_keys.py +14 -75
- robosystems_client/api/user/revoke_user_api_key.py +1 -45
- robosystems_client/api/user/update_user.py +1 -41
- robosystems_client/api/user/update_user_api_key.py +1 -41
- robosystems_client/api/user/update_user_password.py +1 -41
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -38
- robosystems_client/api/user_analytics/get_user_usage_overview.py +14 -75
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +14 -105
- robosystems_client/api/user_limits/get_shared_repository_limits.py +1 -45
- robosystems_client/api/user_limits/get_user_limits.py +14 -75
- robosystems_client/api/user_limits/get_user_usage.py +14 -75
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +1 -45
- robosystems_client/api/user_subscriptions/get_repository_credits.py +1 -45
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +14 -75
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -38
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +1 -41
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +1 -41
- robosystems_client/extensions/__init__.py +8 -1
- robosystems_client/extensions/auth_integration.py +1 -2
- robosystems_client/extensions/query_client.py +3 -2
- robosystems_client/extensions/sse_client.py +1 -1
- robosystems_client/extensions/table_ingest_client.py +5 -0
- robosystems_client/extensions/utils.py +2 -2
- robosystems_client/models/__init__.py +4 -4
- robosystems_client/models/create_graph_request.py +4 -3
- robosystems_client/models/cypher_query_request.py +5 -22
- robosystems_client/models/schema_export_response.py +4 -2
- robosystems_client/models/schema_info_response.py +77 -0
- robosystems_client/models/{get_graph_schema_response_getgraphschema.py → schema_info_response_schema.py} +6 -6
- robosystems_client/models/schema_validation_response.py +7 -6
- robosystems_client/models/table_query_request.py +37 -2
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +103 -102
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -8,38 +8,18 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.delete_file_response import DeleteFileResponse
|
|
9
9
|
from ...models.error_response import ErrorResponse
|
|
10
10
|
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
graph_id: str,
|
|
16
16
|
file_id: str,
|
|
17
|
-
*,
|
|
18
|
-
token: Union[None, Unset, str] = UNSET,
|
|
19
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
20
17
|
) -> dict[str, Any]:
|
|
21
|
-
headers: dict[str, Any] = {}
|
|
22
|
-
if not isinstance(authorization, Unset):
|
|
23
|
-
headers["authorization"] = authorization
|
|
24
|
-
|
|
25
|
-
params: dict[str, Any] = {}
|
|
26
|
-
|
|
27
|
-
json_token: Union[None, Unset, str]
|
|
28
|
-
if isinstance(token, Unset):
|
|
29
|
-
json_token = UNSET
|
|
30
|
-
else:
|
|
31
|
-
json_token = token
|
|
32
|
-
params["token"] = json_token
|
|
33
|
-
|
|
34
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
35
|
-
|
|
36
18
|
_kwargs: dict[str, Any] = {
|
|
37
19
|
"method": "delete",
|
|
38
20
|
"url": f"/v1/graphs/{graph_id}/tables/files/{file_id}",
|
|
39
|
-
"params": params,
|
|
40
21
|
}
|
|
41
22
|
|
|
42
|
-
_kwargs["headers"] = headers
|
|
43
23
|
return _kwargs
|
|
44
24
|
|
|
45
25
|
|
|
@@ -96,81 +76,56 @@ def sync_detailed(
|
|
|
96
76
|
file_id: str,
|
|
97
77
|
*,
|
|
98
78
|
client: AuthenticatedClient,
|
|
99
|
-
token: Union[None, Unset, str] = UNSET,
|
|
100
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
101
79
|
) -> Response[Union[Any, DeleteFileResponse, ErrorResponse, HTTPValidationError]]:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
- Delete files before ingestion for best results
|
|
148
|
-
- Table statistics update automatically
|
|
149
|
-
- No need to refresh DuckDB - exclusion is automatic
|
|
150
|
-
- Consider re-uploading corrected version after deletion
|
|
151
|
-
|
|
152
|
-
**Note:**
|
|
153
|
-
File deletion is included - no credit consumption.
|
|
154
|
-
|
|
155
|
-
Args:
|
|
156
|
-
graph_id (str): Graph database identifier
|
|
157
|
-
file_id (str): File ID
|
|
158
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
159
|
-
authorization (Union[None, Unset, str]):
|
|
160
|
-
|
|
161
|
-
Raises:
|
|
162
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
163
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
164
|
-
|
|
165
|
-
Returns:
|
|
166
|
-
Response[Union[Any, DeleteFileResponse, ErrorResponse, HTTPValidationError]]
|
|
167
|
-
"""
|
|
80
|
+
"""Delete File from Staging
|
|
81
|
+
|
|
82
|
+
Delete a file from S3 storage and database tracking.
|
|
83
|
+
|
|
84
|
+
Remove unwanted, duplicate, or incorrect files from staging tables before ingestion.
|
|
85
|
+
The file is deleted from both S3 and database tracking, and table statistics
|
|
86
|
+
are automatically recalculated.
|
|
87
|
+
|
|
88
|
+
**Use Cases:**
|
|
89
|
+
- Remove duplicate uploads
|
|
90
|
+
- Delete files with incorrect data
|
|
91
|
+
- Clean up failed uploads
|
|
92
|
+
- Fix data quality issues before ingestion
|
|
93
|
+
- Manage storage usage
|
|
94
|
+
|
|
95
|
+
**What Happens:**
|
|
96
|
+
1. File deleted from S3 storage
|
|
97
|
+
2. Database tracking record removed
|
|
98
|
+
3. Table statistics recalculated (file count, size, row count)
|
|
99
|
+
4. DuckDB automatically excludes file from future queries
|
|
100
|
+
|
|
101
|
+
**Security:**
|
|
102
|
+
- Write access required (verified via auth)
|
|
103
|
+
- Shared repositories block file deletions
|
|
104
|
+
- Full audit trail of deletion operations
|
|
105
|
+
- Cannot delete after ingestion to graph
|
|
106
|
+
|
|
107
|
+
**Important Notes:**
|
|
108
|
+
- Delete files before ingestion for best results
|
|
109
|
+
- Table statistics update automatically
|
|
110
|
+
- No need to refresh DuckDB - exclusion is automatic
|
|
111
|
+
- Consider re-uploading corrected version after deletion
|
|
112
|
+
- File deletion is included - no credit consumption
|
|
113
|
+
|
|
114
|
+
Args:
|
|
115
|
+
graph_id (str):
|
|
116
|
+
file_id (str): File ID
|
|
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, DeleteFileResponse, ErrorResponse, HTTPValidationError]]
|
|
124
|
+
"""
|
|
168
125
|
|
|
169
126
|
kwargs = _get_kwargs(
|
|
170
127
|
graph_id=graph_id,
|
|
171
128
|
file_id=file_id,
|
|
172
|
-
token=token,
|
|
173
|
-
authorization=authorization,
|
|
174
129
|
)
|
|
175
130
|
|
|
176
131
|
response = client.get_httpx_client().request(
|
|
@@ -185,82 +140,57 @@ def sync(
|
|
|
185
140
|
file_id: str,
|
|
186
141
|
*,
|
|
187
142
|
client: AuthenticatedClient,
|
|
188
|
-
token: Union[None, Unset, str] = UNSET,
|
|
189
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
190
143
|
) -> Optional[Union[Any, DeleteFileResponse, ErrorResponse, HTTPValidationError]]:
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
- Delete files before ingestion for best results
|
|
237
|
-
- Table statistics update automatically
|
|
238
|
-
- No need to refresh DuckDB - exclusion is automatic
|
|
239
|
-
- Consider re-uploading corrected version after deletion
|
|
240
|
-
|
|
241
|
-
**Note:**
|
|
242
|
-
File deletion is included - no credit consumption.
|
|
243
|
-
|
|
244
|
-
Args:
|
|
245
|
-
graph_id (str): Graph database identifier
|
|
246
|
-
file_id (str): File ID
|
|
247
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
248
|
-
authorization (Union[None, Unset, str]):
|
|
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
|
-
Union[Any, DeleteFileResponse, ErrorResponse, HTTPValidationError]
|
|
256
|
-
"""
|
|
144
|
+
"""Delete File from Staging
|
|
145
|
+
|
|
146
|
+
Delete a file from S3 storage and database tracking.
|
|
147
|
+
|
|
148
|
+
Remove unwanted, duplicate, or incorrect files from staging tables before ingestion.
|
|
149
|
+
The file is deleted from both S3 and database tracking, and table statistics
|
|
150
|
+
are automatically recalculated.
|
|
151
|
+
|
|
152
|
+
**Use Cases:**
|
|
153
|
+
- Remove duplicate uploads
|
|
154
|
+
- Delete files with incorrect data
|
|
155
|
+
- Clean up failed uploads
|
|
156
|
+
- Fix data quality issues before ingestion
|
|
157
|
+
- Manage storage usage
|
|
158
|
+
|
|
159
|
+
**What Happens:**
|
|
160
|
+
1. File deleted from S3 storage
|
|
161
|
+
2. Database tracking record removed
|
|
162
|
+
3. Table statistics recalculated (file count, size, row count)
|
|
163
|
+
4. DuckDB automatically excludes file from future queries
|
|
164
|
+
|
|
165
|
+
**Security:**
|
|
166
|
+
- Write access required (verified via auth)
|
|
167
|
+
- Shared repositories block file deletions
|
|
168
|
+
- Full audit trail of deletion operations
|
|
169
|
+
- Cannot delete after ingestion to graph
|
|
170
|
+
|
|
171
|
+
**Important Notes:**
|
|
172
|
+
- Delete files before ingestion for best results
|
|
173
|
+
- Table statistics update automatically
|
|
174
|
+
- No need to refresh DuckDB - exclusion is automatic
|
|
175
|
+
- Consider re-uploading corrected version after deletion
|
|
176
|
+
- File deletion is included - no credit consumption
|
|
177
|
+
|
|
178
|
+
Args:
|
|
179
|
+
graph_id (str):
|
|
180
|
+
file_id (str): File ID
|
|
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, DeleteFileResponse, ErrorResponse, HTTPValidationError]
|
|
188
|
+
"""
|
|
257
189
|
|
|
258
190
|
return sync_detailed(
|
|
259
191
|
graph_id=graph_id,
|
|
260
192
|
file_id=file_id,
|
|
261
193
|
client=client,
|
|
262
|
-
token=token,
|
|
263
|
-
authorization=authorization,
|
|
264
194
|
).parsed
|
|
265
195
|
|
|
266
196
|
|
|
@@ -269,81 +199,56 @@ async def asyncio_detailed(
|
|
|
269
199
|
file_id: str,
|
|
270
200
|
*,
|
|
271
201
|
client: AuthenticatedClient,
|
|
272
|
-
token: Union[None, Unset, str] = UNSET,
|
|
273
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
274
202
|
) -> Response[Union[Any, DeleteFileResponse, ErrorResponse, HTTPValidationError]]:
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
- Delete files before ingestion for best results
|
|
321
|
-
- Table statistics update automatically
|
|
322
|
-
- No need to refresh DuckDB - exclusion is automatic
|
|
323
|
-
- Consider re-uploading corrected version after deletion
|
|
324
|
-
|
|
325
|
-
**Note:**
|
|
326
|
-
File deletion is included - no credit consumption.
|
|
327
|
-
|
|
328
|
-
Args:
|
|
329
|
-
graph_id (str): Graph database identifier
|
|
330
|
-
file_id (str): File ID
|
|
331
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
332
|
-
authorization (Union[None, Unset, str]):
|
|
333
|
-
|
|
334
|
-
Raises:
|
|
335
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
336
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
337
|
-
|
|
338
|
-
Returns:
|
|
339
|
-
Response[Union[Any, DeleteFileResponse, ErrorResponse, HTTPValidationError]]
|
|
340
|
-
"""
|
|
203
|
+
"""Delete File from Staging
|
|
204
|
+
|
|
205
|
+
Delete a file from S3 storage and database tracking.
|
|
206
|
+
|
|
207
|
+
Remove unwanted, duplicate, or incorrect files from staging tables before ingestion.
|
|
208
|
+
The file is deleted from both S3 and database tracking, and table statistics
|
|
209
|
+
are automatically recalculated.
|
|
210
|
+
|
|
211
|
+
**Use Cases:**
|
|
212
|
+
- Remove duplicate uploads
|
|
213
|
+
- Delete files with incorrect data
|
|
214
|
+
- Clean up failed uploads
|
|
215
|
+
- Fix data quality issues before ingestion
|
|
216
|
+
- Manage storage usage
|
|
217
|
+
|
|
218
|
+
**What Happens:**
|
|
219
|
+
1. File deleted from S3 storage
|
|
220
|
+
2. Database tracking record removed
|
|
221
|
+
3. Table statistics recalculated (file count, size, row count)
|
|
222
|
+
4. DuckDB automatically excludes file from future queries
|
|
223
|
+
|
|
224
|
+
**Security:**
|
|
225
|
+
- Write access required (verified via auth)
|
|
226
|
+
- Shared repositories block file deletions
|
|
227
|
+
- Full audit trail of deletion operations
|
|
228
|
+
- Cannot delete after ingestion to graph
|
|
229
|
+
|
|
230
|
+
**Important Notes:**
|
|
231
|
+
- Delete files before ingestion for best results
|
|
232
|
+
- Table statistics update automatically
|
|
233
|
+
- No need to refresh DuckDB - exclusion is automatic
|
|
234
|
+
- Consider re-uploading corrected version after deletion
|
|
235
|
+
- File deletion is included - no credit consumption
|
|
236
|
+
|
|
237
|
+
Args:
|
|
238
|
+
graph_id (str):
|
|
239
|
+
file_id (str): File ID
|
|
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, DeleteFileResponse, ErrorResponse, HTTPValidationError]]
|
|
247
|
+
"""
|
|
341
248
|
|
|
342
249
|
kwargs = _get_kwargs(
|
|
343
250
|
graph_id=graph_id,
|
|
344
251
|
file_id=file_id,
|
|
345
|
-
token=token,
|
|
346
|
-
authorization=authorization,
|
|
347
252
|
)
|
|
348
253
|
|
|
349
254
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -356,82 +261,57 @@ async def asyncio(
|
|
|
356
261
|
file_id: str,
|
|
357
262
|
*,
|
|
358
263
|
client: AuthenticatedClient,
|
|
359
|
-
token: Union[None, Unset, str] = UNSET,
|
|
360
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
361
264
|
) -> Optional[Union[Any, DeleteFileResponse, ErrorResponse, HTTPValidationError]]:
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
- Delete files before ingestion for best results
|
|
408
|
-
- Table statistics update automatically
|
|
409
|
-
- No need to refresh DuckDB - exclusion is automatic
|
|
410
|
-
- Consider re-uploading corrected version after deletion
|
|
411
|
-
|
|
412
|
-
**Note:**
|
|
413
|
-
File deletion is included - no credit consumption.
|
|
414
|
-
|
|
415
|
-
Args:
|
|
416
|
-
graph_id (str): Graph database identifier
|
|
417
|
-
file_id (str): File ID
|
|
418
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
419
|
-
authorization (Union[None, Unset, str]):
|
|
420
|
-
|
|
421
|
-
Raises:
|
|
422
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
423
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
424
|
-
|
|
425
|
-
Returns:
|
|
426
|
-
Union[Any, DeleteFileResponse, ErrorResponse, HTTPValidationError]
|
|
427
|
-
"""
|
|
265
|
+
"""Delete File from Staging
|
|
266
|
+
|
|
267
|
+
Delete a file from S3 storage and database tracking.
|
|
268
|
+
|
|
269
|
+
Remove unwanted, duplicate, or incorrect files from staging tables before ingestion.
|
|
270
|
+
The file is deleted from both S3 and database tracking, and table statistics
|
|
271
|
+
are automatically recalculated.
|
|
272
|
+
|
|
273
|
+
**Use Cases:**
|
|
274
|
+
- Remove duplicate uploads
|
|
275
|
+
- Delete files with incorrect data
|
|
276
|
+
- Clean up failed uploads
|
|
277
|
+
- Fix data quality issues before ingestion
|
|
278
|
+
- Manage storage usage
|
|
279
|
+
|
|
280
|
+
**What Happens:**
|
|
281
|
+
1. File deleted from S3 storage
|
|
282
|
+
2. Database tracking record removed
|
|
283
|
+
3. Table statistics recalculated (file count, size, row count)
|
|
284
|
+
4. DuckDB automatically excludes file from future queries
|
|
285
|
+
|
|
286
|
+
**Security:**
|
|
287
|
+
- Write access required (verified via auth)
|
|
288
|
+
- Shared repositories block file deletions
|
|
289
|
+
- Full audit trail of deletion operations
|
|
290
|
+
- Cannot delete after ingestion to graph
|
|
291
|
+
|
|
292
|
+
**Important Notes:**
|
|
293
|
+
- Delete files before ingestion for best results
|
|
294
|
+
- Table statistics update automatically
|
|
295
|
+
- No need to refresh DuckDB - exclusion is automatic
|
|
296
|
+
- Consider re-uploading corrected version after deletion
|
|
297
|
+
- File deletion is included - no credit consumption
|
|
298
|
+
|
|
299
|
+
Args:
|
|
300
|
+
graph_id (str):
|
|
301
|
+
file_id (str): File ID
|
|
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, DeleteFileResponse, ErrorResponse, HTTPValidationError]
|
|
309
|
+
"""
|
|
428
310
|
|
|
429
311
|
return (
|
|
430
312
|
await asyncio_detailed(
|
|
431
313
|
graph_id=graph_id,
|
|
432
314
|
file_id=file_id,
|
|
433
315
|
client=client,
|
|
434
|
-
token=token,
|
|
435
|
-
authorization=authorization,
|
|
436
316
|
)
|
|
437
317
|
).parsed
|