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.
- 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 +68 -57
- 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 +317 -0
- robosystems_client/api/tables/get_file_info.py +249 -0
- robosystems_client/api/tables/get_upload_url.py +352 -0
- robosystems_client/api/tables/ingest_tables.py +428 -0
- robosystems_client/api/tables/list_table_files.py +329 -0
- robosystems_client/api/tables/list_tables.py +316 -0
- robosystems_client/api/tables/query_tables.py +431 -0
- robosystems_client/api/tables/update_file_status.py +395 -0
- 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/graph_client.py +5 -0
- robosystems_client/extensions/query_client.py +3 -2
- robosystems_client/extensions/sse_client.py +1 -1
- robosystems_client/extensions/table_ingest_client.py +36 -40
- robosystems_client/extensions/utils.py +2 -2
- robosystems_client/models/__init__.py +17 -21
- robosystems_client/models/create_graph_request.py +15 -3
- robosystems_client/models/cypher_query_request.py +5 -22
- 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
- robosystems_client/models/file_info.py +169 -0
- robosystems_client/models/file_status_update.py +41 -0
- robosystems_client/models/get_file_info_response.py +205 -0
- robosystems_client/models/list_table_files_response.py +105 -0
- 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/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
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +110 -108
- robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +0 -287
- robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +0 -283
- robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +0 -260
- robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +0 -251
- robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -283
- robosystems_client/api/tables/list_tables_v1_graphs_graph_id_tables_get.py +0 -224
- robosystems_client/api/tables/query_tables_v1_graphs_graph_id_tables_query_post.py +0 -247
- robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -306
- robosystems_client/models/file_update_request.py +0 -62
- 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
- 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
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.2.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.connection_response import ConnectionResponse
|
|
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
|
connection_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": "get",
|
|
38
20
|
"url": f"/v1/graphs/{graph_id}/connections/{connection_id}",
|
|
39
|
-
"params": params,
|
|
40
21
|
}
|
|
41
22
|
|
|
42
|
-
_kwargs["headers"] = headers
|
|
43
23
|
return _kwargs
|
|
44
24
|
|
|
45
25
|
|
|
@@ -93,8 +73,6 @@ def sync_detailed(
|
|
|
93
73
|
connection_id: str,
|
|
94
74
|
*,
|
|
95
75
|
client: AuthenticatedClient,
|
|
96
|
-
token: Union[None, Unset, str] = UNSET,
|
|
97
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
98
76
|
) -> Response[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
99
77
|
"""Get Connection
|
|
100
78
|
|
|
@@ -110,10 +88,8 @@ def sync_detailed(
|
|
|
110
88
|
No credits are consumed for viewing connection details.
|
|
111
89
|
|
|
112
90
|
Args:
|
|
113
|
-
graph_id (str):
|
|
91
|
+
graph_id (str):
|
|
114
92
|
connection_id (str): Unique connection identifier
|
|
115
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
116
|
-
authorization (Union[None, Unset, str]):
|
|
117
93
|
|
|
118
94
|
Raises:
|
|
119
95
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -126,8 +102,6 @@ def sync_detailed(
|
|
|
126
102
|
kwargs = _get_kwargs(
|
|
127
103
|
graph_id=graph_id,
|
|
128
104
|
connection_id=connection_id,
|
|
129
|
-
token=token,
|
|
130
|
-
authorization=authorization,
|
|
131
105
|
)
|
|
132
106
|
|
|
133
107
|
response = client.get_httpx_client().request(
|
|
@@ -142,8 +116,6 @@ def sync(
|
|
|
142
116
|
connection_id: str,
|
|
143
117
|
*,
|
|
144
118
|
client: AuthenticatedClient,
|
|
145
|
-
token: Union[None, Unset, str] = UNSET,
|
|
146
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
147
119
|
) -> Optional[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
148
120
|
"""Get Connection
|
|
149
121
|
|
|
@@ -159,10 +131,8 @@ def sync(
|
|
|
159
131
|
No credits are consumed for viewing connection details.
|
|
160
132
|
|
|
161
133
|
Args:
|
|
162
|
-
graph_id (str):
|
|
134
|
+
graph_id (str):
|
|
163
135
|
connection_id (str): Unique connection identifier
|
|
164
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
165
|
-
authorization (Union[None, Unset, str]):
|
|
166
136
|
|
|
167
137
|
Raises:
|
|
168
138
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -176,8 +146,6 @@ def sync(
|
|
|
176
146
|
graph_id=graph_id,
|
|
177
147
|
connection_id=connection_id,
|
|
178
148
|
client=client,
|
|
179
|
-
token=token,
|
|
180
|
-
authorization=authorization,
|
|
181
149
|
).parsed
|
|
182
150
|
|
|
183
151
|
|
|
@@ -186,8 +154,6 @@ async def asyncio_detailed(
|
|
|
186
154
|
connection_id: str,
|
|
187
155
|
*,
|
|
188
156
|
client: AuthenticatedClient,
|
|
189
|
-
token: Union[None, Unset, str] = UNSET,
|
|
190
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
191
157
|
) -> Response[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
192
158
|
"""Get Connection
|
|
193
159
|
|
|
@@ -203,10 +169,8 @@ async def asyncio_detailed(
|
|
|
203
169
|
No credits are consumed for viewing connection details.
|
|
204
170
|
|
|
205
171
|
Args:
|
|
206
|
-
graph_id (str):
|
|
172
|
+
graph_id (str):
|
|
207
173
|
connection_id (str): Unique connection identifier
|
|
208
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
209
|
-
authorization (Union[None, Unset, str]):
|
|
210
174
|
|
|
211
175
|
Raises:
|
|
212
176
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -219,8 +183,6 @@ async def asyncio_detailed(
|
|
|
219
183
|
kwargs = _get_kwargs(
|
|
220
184
|
graph_id=graph_id,
|
|
221
185
|
connection_id=connection_id,
|
|
222
|
-
token=token,
|
|
223
|
-
authorization=authorization,
|
|
224
186
|
)
|
|
225
187
|
|
|
226
188
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -233,8 +195,6 @@ async def asyncio(
|
|
|
233
195
|
connection_id: str,
|
|
234
196
|
*,
|
|
235
197
|
client: AuthenticatedClient,
|
|
236
|
-
token: Union[None, Unset, str] = UNSET,
|
|
237
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
238
198
|
) -> Optional[Union[ConnectionResponse, ErrorResponse, HTTPValidationError]]:
|
|
239
199
|
"""Get Connection
|
|
240
200
|
|
|
@@ -250,10 +210,8 @@ async def asyncio(
|
|
|
250
210
|
No credits are consumed for viewing connection details.
|
|
251
211
|
|
|
252
212
|
Args:
|
|
253
|
-
graph_id (str):
|
|
213
|
+
graph_id (str):
|
|
254
214
|
connection_id (str): Unique connection identifier
|
|
255
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
256
|
-
authorization (Union[None, Unset, str]):
|
|
257
215
|
|
|
258
216
|
Raises:
|
|
259
217
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -268,7 +226,5 @@ async def asyncio(
|
|
|
268
226
|
graph_id=graph_id,
|
|
269
227
|
connection_id=connection_id,
|
|
270
228
|
client=client,
|
|
271
|
-
token=token,
|
|
272
|
-
authorization=authorization,
|
|
273
229
|
)
|
|
274
230
|
).parsed
|
|
@@ -8,37 +8,17 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.connection_options_response import ConnectionOptionsResponse
|
|
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
|
-
*,
|
|
17
|
-
token: Union[None, Unset, str] = UNSET,
|
|
18
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
19
16
|
) -> dict[str, Any]:
|
|
20
|
-
headers: dict[str, Any] = {}
|
|
21
|
-
if not isinstance(authorization, Unset):
|
|
22
|
-
headers["authorization"] = authorization
|
|
23
|
-
|
|
24
|
-
params: dict[str, Any] = {}
|
|
25
|
-
|
|
26
|
-
json_token: Union[None, Unset, str]
|
|
27
|
-
if isinstance(token, Unset):
|
|
28
|
-
json_token = UNSET
|
|
29
|
-
else:
|
|
30
|
-
json_token = token
|
|
31
|
-
params["token"] = json_token
|
|
32
|
-
|
|
33
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
34
|
-
|
|
35
17
|
_kwargs: dict[str, Any] = {
|
|
36
18
|
"method": "get",
|
|
37
19
|
"url": f"/v1/graphs/{graph_id}/connections/options",
|
|
38
|
-
"params": params,
|
|
39
20
|
}
|
|
40
21
|
|
|
41
|
-
_kwargs["headers"] = headers
|
|
42
22
|
return _kwargs
|
|
43
23
|
|
|
44
24
|
|
|
@@ -86,8 +66,6 @@ def sync_detailed(
|
|
|
86
66
|
graph_id: str,
|
|
87
67
|
*,
|
|
88
68
|
client: AuthenticatedClient,
|
|
89
|
-
token: Union[None, Unset, str] = UNSET,
|
|
90
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
91
69
|
) -> Response[Union[ConnectionOptionsResponse, ErrorResponse, HTTPValidationError]]:
|
|
92
70
|
"""List Connection Options
|
|
93
71
|
|
|
@@ -113,9 +91,7 @@ def sync_detailed(
|
|
|
113
91
|
No credits are consumed for viewing connection options.
|
|
114
92
|
|
|
115
93
|
Args:
|
|
116
|
-
graph_id (str):
|
|
117
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
118
|
-
authorization (Union[None, Unset, str]):
|
|
94
|
+
graph_id (str):
|
|
119
95
|
|
|
120
96
|
Raises:
|
|
121
97
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -127,8 +103,6 @@ def sync_detailed(
|
|
|
127
103
|
|
|
128
104
|
kwargs = _get_kwargs(
|
|
129
105
|
graph_id=graph_id,
|
|
130
|
-
token=token,
|
|
131
|
-
authorization=authorization,
|
|
132
106
|
)
|
|
133
107
|
|
|
134
108
|
response = client.get_httpx_client().request(
|
|
@@ -142,8 +116,6 @@ def sync(
|
|
|
142
116
|
graph_id: str,
|
|
143
117
|
*,
|
|
144
118
|
client: AuthenticatedClient,
|
|
145
|
-
token: Union[None, Unset, str] = UNSET,
|
|
146
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
147
119
|
) -> Optional[Union[ConnectionOptionsResponse, ErrorResponse, HTTPValidationError]]:
|
|
148
120
|
"""List Connection Options
|
|
149
121
|
|
|
@@ -169,9 +141,7 @@ def sync(
|
|
|
169
141
|
No credits are consumed for viewing connection options.
|
|
170
142
|
|
|
171
143
|
Args:
|
|
172
|
-
graph_id (str):
|
|
173
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
174
|
-
authorization (Union[None, Unset, str]):
|
|
144
|
+
graph_id (str):
|
|
175
145
|
|
|
176
146
|
Raises:
|
|
177
147
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -184,8 +154,6 @@ def sync(
|
|
|
184
154
|
return sync_detailed(
|
|
185
155
|
graph_id=graph_id,
|
|
186
156
|
client=client,
|
|
187
|
-
token=token,
|
|
188
|
-
authorization=authorization,
|
|
189
157
|
).parsed
|
|
190
158
|
|
|
191
159
|
|
|
@@ -193,8 +161,6 @@ async def asyncio_detailed(
|
|
|
193
161
|
graph_id: str,
|
|
194
162
|
*,
|
|
195
163
|
client: AuthenticatedClient,
|
|
196
|
-
token: Union[None, Unset, str] = UNSET,
|
|
197
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
198
164
|
) -> Response[Union[ConnectionOptionsResponse, ErrorResponse, HTTPValidationError]]:
|
|
199
165
|
"""List Connection Options
|
|
200
166
|
|
|
@@ -220,9 +186,7 @@ async def asyncio_detailed(
|
|
|
220
186
|
No credits are consumed for viewing connection options.
|
|
221
187
|
|
|
222
188
|
Args:
|
|
223
|
-
graph_id (str):
|
|
224
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
225
|
-
authorization (Union[None, Unset, str]):
|
|
189
|
+
graph_id (str):
|
|
226
190
|
|
|
227
191
|
Raises:
|
|
228
192
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -234,8 +198,6 @@ async def asyncio_detailed(
|
|
|
234
198
|
|
|
235
199
|
kwargs = _get_kwargs(
|
|
236
200
|
graph_id=graph_id,
|
|
237
|
-
token=token,
|
|
238
|
-
authorization=authorization,
|
|
239
201
|
)
|
|
240
202
|
|
|
241
203
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -247,8 +209,6 @@ async def asyncio(
|
|
|
247
209
|
graph_id: str,
|
|
248
210
|
*,
|
|
249
211
|
client: AuthenticatedClient,
|
|
250
|
-
token: Union[None, Unset, str] = UNSET,
|
|
251
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
252
212
|
) -> Optional[Union[ConnectionOptionsResponse, ErrorResponse, HTTPValidationError]]:
|
|
253
213
|
"""List Connection Options
|
|
254
214
|
|
|
@@ -274,9 +234,7 @@ async def asyncio(
|
|
|
274
234
|
No credits are consumed for viewing connection options.
|
|
275
235
|
|
|
276
236
|
Args:
|
|
277
|
-
graph_id (str):
|
|
278
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
279
|
-
authorization (Union[None, Unset, str]):
|
|
237
|
+
graph_id (str):
|
|
280
238
|
|
|
281
239
|
Raises:
|
|
282
240
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -290,7 +248,5 @@ async def asyncio(
|
|
|
290
248
|
await asyncio_detailed(
|
|
291
249
|
graph_id=graph_id,
|
|
292
250
|
client=client,
|
|
293
|
-
token=token,
|
|
294
|
-
authorization=authorization,
|
|
295
251
|
)
|
|
296
252
|
).parsed
|
|
@@ -8,35 +8,19 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.http_validation_error import HTTPValidationError
|
|
9
9
|
from ...models.o_auth_init_request import OAuthInitRequest
|
|
10
10
|
from ...models.o_auth_init_response import OAuthInitResponse
|
|
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
|
*,
|
|
17
17
|
body: OAuthInitRequest,
|
|
18
|
-
token: Union[None, Unset, str] = UNSET,
|
|
19
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
20
18
|
) -> dict[str, Any]:
|
|
21
19
|
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
20
|
|
|
36
21
|
_kwargs: dict[str, Any] = {
|
|
37
22
|
"method": "post",
|
|
38
23
|
"url": f"/v1/graphs/{graph_id}/connections/oauth/init",
|
|
39
|
-
"params": params,
|
|
40
24
|
}
|
|
41
25
|
|
|
42
26
|
_kwargs["json"] = body.to_dict()
|
|
@@ -82,8 +66,6 @@ def sync_detailed(
|
|
|
82
66
|
*,
|
|
83
67
|
client: AuthenticatedClient,
|
|
84
68
|
body: OAuthInitRequest,
|
|
85
|
-
token: Union[None, Unset, str] = UNSET,
|
|
86
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
87
69
|
) -> Response[Union[HTTPValidationError, OAuthInitResponse]]:
|
|
88
70
|
"""Init Oauth
|
|
89
71
|
|
|
@@ -93,9 +75,7 @@ def sync_detailed(
|
|
|
93
75
|
Currently supports: QuickBooks
|
|
94
76
|
|
|
95
77
|
Args:
|
|
96
|
-
graph_id (str):
|
|
97
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
98
|
-
authorization (Union[None, Unset, str]):
|
|
78
|
+
graph_id (str):
|
|
99
79
|
body (OAuthInitRequest): Request to initiate OAuth flow.
|
|
100
80
|
|
|
101
81
|
Raises:
|
|
@@ -109,8 +89,6 @@ def sync_detailed(
|
|
|
109
89
|
kwargs = _get_kwargs(
|
|
110
90
|
graph_id=graph_id,
|
|
111
91
|
body=body,
|
|
112
|
-
token=token,
|
|
113
|
-
authorization=authorization,
|
|
114
92
|
)
|
|
115
93
|
|
|
116
94
|
response = client.get_httpx_client().request(
|
|
@@ -125,8 +103,6 @@ def sync(
|
|
|
125
103
|
*,
|
|
126
104
|
client: AuthenticatedClient,
|
|
127
105
|
body: OAuthInitRequest,
|
|
128
|
-
token: Union[None, Unset, str] = UNSET,
|
|
129
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
130
106
|
) -> Optional[Union[HTTPValidationError, OAuthInitResponse]]:
|
|
131
107
|
"""Init Oauth
|
|
132
108
|
|
|
@@ -136,9 +112,7 @@ def sync(
|
|
|
136
112
|
Currently supports: QuickBooks
|
|
137
113
|
|
|
138
114
|
Args:
|
|
139
|
-
graph_id (str):
|
|
140
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
141
|
-
authorization (Union[None, Unset, str]):
|
|
115
|
+
graph_id (str):
|
|
142
116
|
body (OAuthInitRequest): Request to initiate OAuth flow.
|
|
143
117
|
|
|
144
118
|
Raises:
|
|
@@ -153,8 +127,6 @@ def sync(
|
|
|
153
127
|
graph_id=graph_id,
|
|
154
128
|
client=client,
|
|
155
129
|
body=body,
|
|
156
|
-
token=token,
|
|
157
|
-
authorization=authorization,
|
|
158
130
|
).parsed
|
|
159
131
|
|
|
160
132
|
|
|
@@ -163,8 +135,6 @@ async def asyncio_detailed(
|
|
|
163
135
|
*,
|
|
164
136
|
client: AuthenticatedClient,
|
|
165
137
|
body: OAuthInitRequest,
|
|
166
|
-
token: Union[None, Unset, str] = UNSET,
|
|
167
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
168
138
|
) -> Response[Union[HTTPValidationError, OAuthInitResponse]]:
|
|
169
139
|
"""Init Oauth
|
|
170
140
|
|
|
@@ -174,9 +144,7 @@ async def asyncio_detailed(
|
|
|
174
144
|
Currently supports: QuickBooks
|
|
175
145
|
|
|
176
146
|
Args:
|
|
177
|
-
graph_id (str):
|
|
178
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
179
|
-
authorization (Union[None, Unset, str]):
|
|
147
|
+
graph_id (str):
|
|
180
148
|
body (OAuthInitRequest): Request to initiate OAuth flow.
|
|
181
149
|
|
|
182
150
|
Raises:
|
|
@@ -190,8 +158,6 @@ async def asyncio_detailed(
|
|
|
190
158
|
kwargs = _get_kwargs(
|
|
191
159
|
graph_id=graph_id,
|
|
192
160
|
body=body,
|
|
193
|
-
token=token,
|
|
194
|
-
authorization=authorization,
|
|
195
161
|
)
|
|
196
162
|
|
|
197
163
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -204,8 +170,6 @@ async def asyncio(
|
|
|
204
170
|
*,
|
|
205
171
|
client: AuthenticatedClient,
|
|
206
172
|
body: OAuthInitRequest,
|
|
207
|
-
token: Union[None, Unset, str] = UNSET,
|
|
208
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
209
173
|
) -> Optional[Union[HTTPValidationError, OAuthInitResponse]]:
|
|
210
174
|
"""Init Oauth
|
|
211
175
|
|
|
@@ -215,9 +179,7 @@ async def asyncio(
|
|
|
215
179
|
Currently supports: QuickBooks
|
|
216
180
|
|
|
217
181
|
Args:
|
|
218
|
-
graph_id (str):
|
|
219
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
220
|
-
authorization (Union[None, Unset, str]):
|
|
182
|
+
graph_id (str):
|
|
221
183
|
body (OAuthInitRequest): Request to initiate OAuth flow.
|
|
222
184
|
|
|
223
185
|
Raises:
|
|
@@ -233,7 +195,5 @@ async def asyncio(
|
|
|
233
195
|
graph_id=graph_id,
|
|
234
196
|
client=client,
|
|
235
197
|
body=body,
|
|
236
|
-
token=token,
|
|
237
|
-
authorization=authorization,
|
|
238
198
|
)
|
|
239
199
|
).parsed
|
|
@@ -17,13 +17,7 @@ def _get_kwargs(
|
|
|
17
17
|
*,
|
|
18
18
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
19
19
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
20
|
-
token: Union[None, Unset, str] = UNSET,
|
|
21
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
22
20
|
) -> dict[str, Any]:
|
|
23
|
-
headers: dict[str, Any] = {}
|
|
24
|
-
if not isinstance(authorization, Unset):
|
|
25
|
-
headers["authorization"] = authorization
|
|
26
|
-
|
|
27
21
|
params: dict[str, Any] = {}
|
|
28
22
|
|
|
29
23
|
json_entity_id: Union[None, Unset, str]
|
|
@@ -42,13 +36,6 @@ def _get_kwargs(
|
|
|
42
36
|
json_provider = provider
|
|
43
37
|
params["provider"] = json_provider
|
|
44
38
|
|
|
45
|
-
json_token: Union[None, Unset, str]
|
|
46
|
-
if isinstance(token, Unset):
|
|
47
|
-
json_token = UNSET
|
|
48
|
-
else:
|
|
49
|
-
json_token = token
|
|
50
|
-
params["token"] = json_token
|
|
51
|
-
|
|
52
39
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
53
40
|
|
|
54
41
|
_kwargs: dict[str, Any] = {
|
|
@@ -57,7 +44,6 @@ def _get_kwargs(
|
|
|
57
44
|
"params": params,
|
|
58
45
|
}
|
|
59
46
|
|
|
60
|
-
_kwargs["headers"] = headers
|
|
61
47
|
return _kwargs
|
|
62
48
|
|
|
63
49
|
|
|
@@ -112,8 +98,6 @@ def sync_detailed(
|
|
|
112
98
|
client: AuthenticatedClient,
|
|
113
99
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
114
100
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
115
|
-
token: Union[None, Unset, str] = UNSET,
|
|
116
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
117
101
|
) -> Response[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
|
|
118
102
|
"""List Connections
|
|
119
103
|
|
|
@@ -133,11 +117,9 @@ def sync_detailed(
|
|
|
133
117
|
No credits are consumed for listing connections.
|
|
134
118
|
|
|
135
119
|
Args:
|
|
136
|
-
graph_id (str):
|
|
120
|
+
graph_id (str):
|
|
137
121
|
entity_id (Union[None, Unset, str]): Filter by entity ID
|
|
138
122
|
provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
|
|
139
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
140
|
-
authorization (Union[None, Unset, str]):
|
|
141
123
|
|
|
142
124
|
Raises:
|
|
143
125
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -151,8 +133,6 @@ def sync_detailed(
|
|
|
151
133
|
graph_id=graph_id,
|
|
152
134
|
entity_id=entity_id,
|
|
153
135
|
provider=provider,
|
|
154
|
-
token=token,
|
|
155
|
-
authorization=authorization,
|
|
156
136
|
)
|
|
157
137
|
|
|
158
138
|
response = client.get_httpx_client().request(
|
|
@@ -168,8 +148,6 @@ def sync(
|
|
|
168
148
|
client: AuthenticatedClient,
|
|
169
149
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
170
150
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
171
|
-
token: Union[None, Unset, str] = UNSET,
|
|
172
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
173
151
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
|
|
174
152
|
"""List Connections
|
|
175
153
|
|
|
@@ -189,11 +167,9 @@ def sync(
|
|
|
189
167
|
No credits are consumed for listing connections.
|
|
190
168
|
|
|
191
169
|
Args:
|
|
192
|
-
graph_id (str):
|
|
170
|
+
graph_id (str):
|
|
193
171
|
entity_id (Union[None, Unset, str]): Filter by entity ID
|
|
194
172
|
provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
|
|
195
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
196
|
-
authorization (Union[None, Unset, str]):
|
|
197
173
|
|
|
198
174
|
Raises:
|
|
199
175
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -208,8 +184,6 @@ def sync(
|
|
|
208
184
|
client=client,
|
|
209
185
|
entity_id=entity_id,
|
|
210
186
|
provider=provider,
|
|
211
|
-
token=token,
|
|
212
|
-
authorization=authorization,
|
|
213
187
|
).parsed
|
|
214
188
|
|
|
215
189
|
|
|
@@ -219,8 +193,6 @@ async def asyncio_detailed(
|
|
|
219
193
|
client: AuthenticatedClient,
|
|
220
194
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
221
195
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
222
|
-
token: Union[None, Unset, str] = UNSET,
|
|
223
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
224
196
|
) -> Response[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
|
|
225
197
|
"""List Connections
|
|
226
198
|
|
|
@@ -240,11 +212,9 @@ async def asyncio_detailed(
|
|
|
240
212
|
No credits are consumed for listing connections.
|
|
241
213
|
|
|
242
214
|
Args:
|
|
243
|
-
graph_id (str):
|
|
215
|
+
graph_id (str):
|
|
244
216
|
entity_id (Union[None, Unset, str]): Filter by entity ID
|
|
245
217
|
provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
|
|
246
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
247
|
-
authorization (Union[None, Unset, str]):
|
|
248
218
|
|
|
249
219
|
Raises:
|
|
250
220
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -258,8 +228,6 @@ async def asyncio_detailed(
|
|
|
258
228
|
graph_id=graph_id,
|
|
259
229
|
entity_id=entity_id,
|
|
260
230
|
provider=provider,
|
|
261
|
-
token=token,
|
|
262
|
-
authorization=authorization,
|
|
263
231
|
)
|
|
264
232
|
|
|
265
233
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -273,8 +241,6 @@ async def asyncio(
|
|
|
273
241
|
client: AuthenticatedClient,
|
|
274
242
|
entity_id: Union[None, Unset, str] = UNSET,
|
|
275
243
|
provider: Union[ListConnectionsProviderType0, None, Unset] = UNSET,
|
|
276
|
-
token: Union[None, Unset, str] = UNSET,
|
|
277
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
278
244
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, list["ConnectionResponse"]]]:
|
|
279
245
|
"""List Connections
|
|
280
246
|
|
|
@@ -294,11 +260,9 @@ async def asyncio(
|
|
|
294
260
|
No credits are consumed for listing connections.
|
|
295
261
|
|
|
296
262
|
Args:
|
|
297
|
-
graph_id (str):
|
|
263
|
+
graph_id (str):
|
|
298
264
|
entity_id (Union[None, Unset, str]): Filter by entity ID
|
|
299
265
|
provider (Union[ListConnectionsProviderType0, None, Unset]): Filter by provider type
|
|
300
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
301
|
-
authorization (Union[None, Unset, str]):
|
|
302
266
|
|
|
303
267
|
Raises:
|
|
304
268
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -314,7 +278,5 @@ async def asyncio(
|
|
|
314
278
|
client=client,
|
|
315
279
|
entity_id=entity_id,
|
|
316
280
|
provider=provider,
|
|
317
|
-
token=token,
|
|
318
|
-
authorization=authorization,
|
|
319
281
|
)
|
|
320
282
|
).parsed
|