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
@@ -1,287 +0,0 @@
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.delete_file_v1_graphs_graph_id_tables_files_file_id_delete_response_delete_file_v1_graphs_graph_id_tables_files_file_id_delete import (
9
- DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete,
10
- )
11
- from ...models.error_response import ErrorResponse
12
- from ...models.http_validation_error import HTTPValidationError
13
- from ...types import UNSET, Response, Unset
14
-
15
-
16
- def _get_kwargs(
17
- graph_id: str,
18
- file_id: str,
19
- *,
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": "delete",
40
- "url": f"/v1/graphs/{graph_id}/tables/files/{file_id}",
41
- "params": params,
42
- }
43
-
44
- _kwargs["headers"] = headers
45
- return _kwargs
46
-
47
-
48
- def _parse_response(
49
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
50
- ) -> Optional[
51
- Union[
52
- Any,
53
- DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete,
54
- ErrorResponse,
55
- HTTPValidationError,
56
- ]
57
- ]:
58
- if response.status_code == 200:
59
- response_200 = DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete.from_dict(
60
- response.json()
61
- )
62
-
63
- return response_200
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[
93
- Union[
94
- Any,
95
- DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete,
96
- ErrorResponse,
97
- HTTPValidationError,
98
- ]
99
- ]:
100
- return Response(
101
- status_code=HTTPStatus(response.status_code),
102
- content=response.content,
103
- headers=response.headers,
104
- parsed=_parse_response(client=client, response=response),
105
- )
106
-
107
-
108
- def sync_detailed(
109
- graph_id: str,
110
- file_id: str,
111
- *,
112
- client: AuthenticatedClient,
113
- token: Union[None, Unset, str] = UNSET,
114
- authorization: Union[None, Unset, str] = UNSET,
115
- ) -> Response[
116
- Union[
117
- Any,
118
- DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete,
119
- ErrorResponse,
120
- HTTPValidationError,
121
- ]
122
- ]:
123
- """Delete File
124
-
125
- Delete a specific file from S3 and database tracking. DuckDB will automatically exclude it from
126
- queries.
127
-
128
- Args:
129
- graph_id (str): Graph database identifier
130
- file_id (str): File ID
131
- token (Union[None, Unset, str]): JWT token for SSE authentication
132
- authorization (Union[None, Unset, str]):
133
-
134
- Raises:
135
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
136
- httpx.TimeoutException: If the request takes longer than Client.timeout.
137
-
138
- Returns:
139
- Response[Union[Any, DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete, ErrorResponse, HTTPValidationError]]
140
- """
141
-
142
- kwargs = _get_kwargs(
143
- graph_id=graph_id,
144
- file_id=file_id,
145
- token=token,
146
- authorization=authorization,
147
- )
148
-
149
- response = client.get_httpx_client().request(
150
- **kwargs,
151
- )
152
-
153
- return _build_response(client=client, response=response)
154
-
155
-
156
- def sync(
157
- graph_id: str,
158
- file_id: str,
159
- *,
160
- client: AuthenticatedClient,
161
- token: Union[None, Unset, str] = UNSET,
162
- authorization: Union[None, Unset, str] = UNSET,
163
- ) -> Optional[
164
- Union[
165
- Any,
166
- DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete,
167
- ErrorResponse,
168
- HTTPValidationError,
169
- ]
170
- ]:
171
- """Delete File
172
-
173
- Delete a specific file from S3 and database tracking. DuckDB will automatically exclude it from
174
- queries.
175
-
176
- Args:
177
- graph_id (str): Graph database identifier
178
- file_id (str): File ID
179
- token (Union[None, Unset, str]): JWT token for SSE authentication
180
- authorization (Union[None, Unset, 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, DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete, ErrorResponse, HTTPValidationError]
188
- """
189
-
190
- return sync_detailed(
191
- graph_id=graph_id,
192
- file_id=file_id,
193
- client=client,
194
- token=token,
195
- authorization=authorization,
196
- ).parsed
197
-
198
-
199
- async def asyncio_detailed(
200
- graph_id: str,
201
- file_id: str,
202
- *,
203
- client: AuthenticatedClient,
204
- token: Union[None, Unset, str] = UNSET,
205
- authorization: Union[None, Unset, str] = UNSET,
206
- ) -> Response[
207
- Union[
208
- Any,
209
- DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete,
210
- ErrorResponse,
211
- HTTPValidationError,
212
- ]
213
- ]:
214
- """Delete File
215
-
216
- Delete a specific file from S3 and database tracking. DuckDB will automatically exclude it from
217
- queries.
218
-
219
- Args:
220
- graph_id (str): Graph database identifier
221
- file_id (str): File ID
222
- token (Union[None, Unset, str]): JWT token for SSE authentication
223
- authorization (Union[None, Unset, str]):
224
-
225
- Raises:
226
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
227
- httpx.TimeoutException: If the request takes longer than Client.timeout.
228
-
229
- Returns:
230
- Response[Union[Any, DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete, ErrorResponse, HTTPValidationError]]
231
- """
232
-
233
- kwargs = _get_kwargs(
234
- graph_id=graph_id,
235
- file_id=file_id,
236
- token=token,
237
- authorization=authorization,
238
- )
239
-
240
- response = await client.get_async_httpx_client().request(**kwargs)
241
-
242
- return _build_response(client=client, response=response)
243
-
244
-
245
- async def asyncio(
246
- graph_id: str,
247
- file_id: str,
248
- *,
249
- client: AuthenticatedClient,
250
- token: Union[None, Unset, str] = UNSET,
251
- authorization: Union[None, Unset, str] = UNSET,
252
- ) -> Optional[
253
- Union[
254
- Any,
255
- DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete,
256
- ErrorResponse,
257
- HTTPValidationError,
258
- ]
259
- ]:
260
- """Delete File
261
-
262
- Delete a specific file from S3 and database tracking. DuckDB will automatically exclude it from
263
- queries.
264
-
265
- Args:
266
- graph_id (str): Graph database identifier
267
- file_id (str): File ID
268
- token (Union[None, Unset, str]): JWT token for SSE authentication
269
- authorization (Union[None, Unset, str]):
270
-
271
- Raises:
272
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
273
- httpx.TimeoutException: If the request takes longer than Client.timeout.
274
-
275
- Returns:
276
- Union[Any, DeleteFileV1GraphsGraphIdTablesFilesFileIdDeleteResponseDeleteFileV1GraphsGraphIdTablesFilesFileIdDelete, ErrorResponse, HTTPValidationError]
277
- """
278
-
279
- return (
280
- await asyncio_detailed(
281
- graph_id=graph_id,
282
- file_id=file_id,
283
- client=client,
284
- token=token,
285
- authorization=authorization,
286
- )
287
- ).parsed
@@ -1,283 +0,0 @@
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.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 import (
10
- GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet,
11
- )
12
- from ...models.http_validation_error import HTTPValidationError
13
- from ...types import UNSET, Response, Unset
14
-
15
-
16
- def _get_kwargs(
17
- graph_id: str,
18
- file_id: str,
19
- *,
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": "get",
40
- "url": f"/v1/graphs/{graph_id}/tables/files/{file_id}",
41
- "params": params,
42
- }
43
-
44
- _kwargs["headers"] = headers
45
- return _kwargs
46
-
47
-
48
- def _parse_response(
49
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
50
- ) -> Optional[
51
- Union[
52
- Any,
53
- ErrorResponse,
54
- GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet,
55
- HTTPValidationError,
56
- ]
57
- ]:
58
- if response.status_code == 200:
59
- response_200 = GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet.from_dict(
60
- response.json()
61
- )
62
-
63
- return response_200
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[
93
- Union[
94
- Any,
95
- ErrorResponse,
96
- GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet,
97
- HTTPValidationError,
98
- ]
99
- ]:
100
- return Response(
101
- status_code=HTTPStatus(response.status_code),
102
- content=response.content,
103
- headers=response.headers,
104
- parsed=_parse_response(client=client, response=response),
105
- )
106
-
107
-
108
- def sync_detailed(
109
- graph_id: str,
110
- file_id: str,
111
- *,
112
- client: AuthenticatedClient,
113
- token: Union[None, Unset, str] = UNSET,
114
- authorization: Union[None, Unset, str] = UNSET,
115
- ) -> Response[
116
- Union[
117
- Any,
118
- ErrorResponse,
119
- GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet,
120
- HTTPValidationError,
121
- ]
122
- ]:
123
- """Get File Info
124
-
125
- Get detailed information about a specific file
126
-
127
- Args:
128
- graph_id (str): Graph database identifier
129
- file_id (str): File ID
130
- token (Union[None, Unset, str]): JWT token for SSE authentication
131
- authorization (Union[None, Unset, str]):
132
-
133
- Raises:
134
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
135
- httpx.TimeoutException: If the request takes longer than Client.timeout.
136
-
137
- Returns:
138
- Response[Union[Any, ErrorResponse, GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet, HTTPValidationError]]
139
- """
140
-
141
- kwargs = _get_kwargs(
142
- graph_id=graph_id,
143
- file_id=file_id,
144
- token=token,
145
- authorization=authorization,
146
- )
147
-
148
- response = client.get_httpx_client().request(
149
- **kwargs,
150
- )
151
-
152
- return _build_response(client=client, response=response)
153
-
154
-
155
- def sync(
156
- graph_id: str,
157
- file_id: str,
158
- *,
159
- client: AuthenticatedClient,
160
- token: Union[None, Unset, str] = UNSET,
161
- authorization: Union[None, Unset, str] = UNSET,
162
- ) -> Optional[
163
- Union[
164
- Any,
165
- ErrorResponse,
166
- GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet,
167
- HTTPValidationError,
168
- ]
169
- ]:
170
- """Get File Info
171
-
172
- Get detailed information about a specific file
173
-
174
- Args:
175
- graph_id (str): Graph database identifier
176
- file_id (str): File ID
177
- token (Union[None, Unset, str]): JWT token for SSE authentication
178
- authorization (Union[None, Unset, str]):
179
-
180
- Raises:
181
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
182
- httpx.TimeoutException: If the request takes longer than Client.timeout.
183
-
184
- Returns:
185
- Union[Any, ErrorResponse, GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet, HTTPValidationError]
186
- """
187
-
188
- return sync_detailed(
189
- graph_id=graph_id,
190
- file_id=file_id,
191
- client=client,
192
- token=token,
193
- authorization=authorization,
194
- ).parsed
195
-
196
-
197
- async def asyncio_detailed(
198
- graph_id: str,
199
- file_id: str,
200
- *,
201
- client: AuthenticatedClient,
202
- token: Union[None, Unset, str] = UNSET,
203
- authorization: Union[None, Unset, str] = UNSET,
204
- ) -> Response[
205
- Union[
206
- Any,
207
- ErrorResponse,
208
- GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet,
209
- HTTPValidationError,
210
- ]
211
- ]:
212
- """Get File Info
213
-
214
- Get detailed information about a specific file
215
-
216
- Args:
217
- graph_id (str): Graph database identifier
218
- file_id (str): File ID
219
- token (Union[None, Unset, str]): JWT token for SSE authentication
220
- authorization (Union[None, Unset, str]):
221
-
222
- Raises:
223
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
224
- httpx.TimeoutException: If the request takes longer than Client.timeout.
225
-
226
- Returns:
227
- Response[Union[Any, ErrorResponse, GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet, HTTPValidationError]]
228
- """
229
-
230
- kwargs = _get_kwargs(
231
- graph_id=graph_id,
232
- file_id=file_id,
233
- token=token,
234
- authorization=authorization,
235
- )
236
-
237
- response = await client.get_async_httpx_client().request(**kwargs)
238
-
239
- return _build_response(client=client, response=response)
240
-
241
-
242
- async def asyncio(
243
- graph_id: str,
244
- file_id: str,
245
- *,
246
- client: AuthenticatedClient,
247
- token: Union[None, Unset, str] = UNSET,
248
- authorization: Union[None, Unset, str] = UNSET,
249
- ) -> Optional[
250
- Union[
251
- Any,
252
- ErrorResponse,
253
- GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet,
254
- HTTPValidationError,
255
- ]
256
- ]:
257
- """Get File Info
258
-
259
- Get detailed information about a specific file
260
-
261
- Args:
262
- graph_id (str): Graph database identifier
263
- file_id (str): File ID
264
- token (Union[None, Unset, str]): JWT token for SSE authentication
265
- authorization (Union[None, Unset, str]):
266
-
267
- Raises:
268
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
269
- httpx.TimeoutException: If the request takes longer than Client.timeout.
270
-
271
- Returns:
272
- Union[Any, ErrorResponse, GetFileInfoV1GraphsGraphIdTablesFilesFileIdGetResponseGetFileInfoV1GraphsGraphIdTablesFilesFileIdGet, HTTPValidationError]
273
- """
274
-
275
- return (
276
- await asyncio_detailed(
277
- graph_id=graph_id,
278
- file_id=file_id,
279
- client=client,
280
- token=token,
281
- authorization=authorization,
282
- )
283
- ).parsed