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
|
@@ -1,57 +1,34 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Optional, Union
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.http_validation_error import HTTPValidationError
|
|
9
8
|
from ...models.user_graphs_response import UserGraphsResponse
|
|
10
|
-
from ...types import
|
|
9
|
+
from ...types import Response
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
def _get_kwargs(
|
|
14
|
-
*,
|
|
15
|
-
token: Union[None, Unset, str] = UNSET,
|
|
16
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
-
) -> dict[str, Any]:
|
|
18
|
-
headers: dict[str, Any] = {}
|
|
19
|
-
if not isinstance(authorization, Unset):
|
|
20
|
-
headers["authorization"] = authorization
|
|
21
|
-
|
|
22
|
-
params: dict[str, Any] = {}
|
|
23
|
-
|
|
24
|
-
json_token: Union[None, Unset, str]
|
|
25
|
-
if isinstance(token, Unset):
|
|
26
|
-
json_token = UNSET
|
|
27
|
-
else:
|
|
28
|
-
json_token = token
|
|
29
|
-
params["token"] = json_token
|
|
30
|
-
|
|
31
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
32
|
-
|
|
12
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
33
13
|
_kwargs: dict[str, Any] = {
|
|
34
14
|
"method": "get",
|
|
35
15
|
"url": "/v1/graphs",
|
|
36
|
-
"params": params,
|
|
37
16
|
}
|
|
38
17
|
|
|
39
|
-
_kwargs["headers"] = headers
|
|
40
18
|
return _kwargs
|
|
41
19
|
|
|
42
20
|
|
|
43
21
|
def _parse_response(
|
|
44
22
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
45
|
-
) -> Optional[Union[
|
|
23
|
+
) -> Optional[Union[Any, UserGraphsResponse]]:
|
|
46
24
|
if response.status_code == 200:
|
|
47
25
|
response_200 = UserGraphsResponse.from_dict(response.json())
|
|
48
26
|
|
|
49
27
|
return response_200
|
|
50
28
|
|
|
51
|
-
if response.status_code ==
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return response_422
|
|
29
|
+
if response.status_code == 500:
|
|
30
|
+
response_500 = cast(Any, None)
|
|
31
|
+
return response_500
|
|
55
32
|
|
|
56
33
|
if client.raise_on_unexpected_status:
|
|
57
34
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
@@ -61,7 +38,7 @@ def _parse_response(
|
|
|
61
38
|
|
|
62
39
|
def _build_response(
|
|
63
40
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
64
|
-
) -> Response[Union[
|
|
41
|
+
) -> Response[Union[Any, UserGraphsResponse]]:
|
|
65
42
|
return Response(
|
|
66
43
|
status_code=HTTPStatus(response.status_code),
|
|
67
44
|
content=response.content,
|
|
@@ -73,29 +50,53 @@ def _build_response(
|
|
|
73
50
|
def sync_detailed(
|
|
74
51
|
*,
|
|
75
52
|
client: AuthenticatedClient,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
53
|
+
) -> Response[Union[Any, UserGraphsResponse]]:
|
|
54
|
+
r"""Get User Graphs
|
|
55
|
+
|
|
56
|
+
List all graph databases accessible to the current user with roles and selection status.
|
|
57
|
+
|
|
58
|
+
Returns a comprehensive list of all graphs the user can access, including their
|
|
59
|
+
role in each graph (admin or member) and which graph is currently selected as
|
|
60
|
+
the active workspace.
|
|
61
|
+
|
|
62
|
+
**Returned Information:**
|
|
63
|
+
- Graph ID and display name for each accessible graph
|
|
64
|
+
- User's role (admin/member) indicating permission level
|
|
65
|
+
- Selection status (one graph can be marked as \"selected\")
|
|
66
|
+
- Creation timestamp for each graph
|
|
80
67
|
|
|
81
|
-
|
|
68
|
+
**Graph Roles:**
|
|
69
|
+
- `admin`: Full access - can manage graph settings, invite users, delete graph
|
|
70
|
+
- `member`: Read/write access - can query and modify data, cannot manage settings
|
|
82
71
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
**Selected Graph Concept:**
|
|
73
|
+
The \"selected\" graph is the user's currently active workspace. Many API operations
|
|
74
|
+
default to the selected graph if no graph_id is provided. Users can change their
|
|
75
|
+
selected graph via the `POST /v1/graphs/{graph_id}/select` endpoint.
|
|
76
|
+
|
|
77
|
+
**Use Cases:**
|
|
78
|
+
- Display graph selector in UI
|
|
79
|
+
- Show user's accessible workspaces
|
|
80
|
+
- Identify which graph is currently active
|
|
81
|
+
- Filter graphs by role for permission-based features
|
|
82
|
+
|
|
83
|
+
**Empty Response:**
|
|
84
|
+
New users or users without graph access will receive an empty list with
|
|
85
|
+
`selectedGraphId: null`. Users should create a new graph or request access
|
|
86
|
+
to an existing graph.
|
|
87
|
+
|
|
88
|
+
**Note:**
|
|
89
|
+
Graph listing is included - no credit consumption required.
|
|
86
90
|
|
|
87
91
|
Raises:
|
|
88
92
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
89
93
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
90
94
|
|
|
91
95
|
Returns:
|
|
92
|
-
Response[Union[
|
|
96
|
+
Response[Union[Any, UserGraphsResponse]]
|
|
93
97
|
"""
|
|
94
98
|
|
|
95
|
-
kwargs = _get_kwargs(
|
|
96
|
-
token=token,
|
|
97
|
-
authorization=authorization,
|
|
98
|
-
)
|
|
99
|
+
kwargs = _get_kwargs()
|
|
99
100
|
|
|
100
101
|
response = client.get_httpx_client().request(
|
|
101
102
|
**kwargs,
|
|
@@ -107,58 +108,107 @@ def sync_detailed(
|
|
|
107
108
|
def sync(
|
|
108
109
|
*,
|
|
109
110
|
client: AuthenticatedClient,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
) -> Optional[Union[Any, UserGraphsResponse]]:
|
|
112
|
+
r"""Get User Graphs
|
|
113
|
+
|
|
114
|
+
List all graph databases accessible to the current user with roles and selection status.
|
|
115
|
+
|
|
116
|
+
Returns a comprehensive list of all graphs the user can access, including their
|
|
117
|
+
role in each graph (admin or member) and which graph is currently selected as
|
|
118
|
+
the active workspace.
|
|
119
|
+
|
|
120
|
+
**Returned Information:**
|
|
121
|
+
- Graph ID and display name for each accessible graph
|
|
122
|
+
- User's role (admin/member) indicating permission level
|
|
123
|
+
- Selection status (one graph can be marked as \"selected\")
|
|
124
|
+
- Creation timestamp for each graph
|
|
125
|
+
|
|
126
|
+
**Graph Roles:**
|
|
127
|
+
- `admin`: Full access - can manage graph settings, invite users, delete graph
|
|
128
|
+
- `member`: Read/write access - can query and modify data, cannot manage settings
|
|
114
129
|
|
|
115
|
-
|
|
130
|
+
**Selected Graph Concept:**
|
|
131
|
+
The \"selected\" graph is the user's currently active workspace. Many API operations
|
|
132
|
+
default to the selected graph if no graph_id is provided. Users can change their
|
|
133
|
+
selected graph via the `POST /v1/graphs/{graph_id}/select` endpoint.
|
|
116
134
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
135
|
+
**Use Cases:**
|
|
136
|
+
- Display graph selector in UI
|
|
137
|
+
- Show user's accessible workspaces
|
|
138
|
+
- Identify which graph is currently active
|
|
139
|
+
- Filter graphs by role for permission-based features
|
|
140
|
+
|
|
141
|
+
**Empty Response:**
|
|
142
|
+
New users or users without graph access will receive an empty list with
|
|
143
|
+
`selectedGraphId: null`. Users should create a new graph or request access
|
|
144
|
+
to an existing graph.
|
|
145
|
+
|
|
146
|
+
**Note:**
|
|
147
|
+
Graph listing is included - no credit consumption required.
|
|
120
148
|
|
|
121
149
|
Raises:
|
|
122
150
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
123
151
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
152
|
|
|
125
153
|
Returns:
|
|
126
|
-
Union[
|
|
154
|
+
Union[Any, UserGraphsResponse]
|
|
127
155
|
"""
|
|
128
156
|
|
|
129
157
|
return sync_detailed(
|
|
130
158
|
client=client,
|
|
131
|
-
token=token,
|
|
132
|
-
authorization=authorization,
|
|
133
159
|
).parsed
|
|
134
160
|
|
|
135
161
|
|
|
136
162
|
async def asyncio_detailed(
|
|
137
163
|
*,
|
|
138
164
|
client: AuthenticatedClient,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
165
|
+
) -> Response[Union[Any, UserGraphsResponse]]:
|
|
166
|
+
r"""Get User Graphs
|
|
167
|
+
|
|
168
|
+
List all graph databases accessible to the current user with roles and selection status.
|
|
169
|
+
|
|
170
|
+
Returns a comprehensive list of all graphs the user can access, including their
|
|
171
|
+
role in each graph (admin or member) and which graph is currently selected as
|
|
172
|
+
the active workspace.
|
|
173
|
+
|
|
174
|
+
**Returned Information:**
|
|
175
|
+
- Graph ID and display name for each accessible graph
|
|
176
|
+
- User's role (admin/member) indicating permission level
|
|
177
|
+
- Selection status (one graph can be marked as \"selected\")
|
|
178
|
+
- Creation timestamp for each graph
|
|
179
|
+
|
|
180
|
+
**Graph Roles:**
|
|
181
|
+
- `admin`: Full access - can manage graph settings, invite users, delete graph
|
|
182
|
+
- `member`: Read/write access - can query and modify data, cannot manage settings
|
|
183
|
+
|
|
184
|
+
**Selected Graph Concept:**
|
|
185
|
+
The \"selected\" graph is the user's currently active workspace. Many API operations
|
|
186
|
+
default to the selected graph if no graph_id is provided. Users can change their
|
|
187
|
+
selected graph via the `POST /v1/graphs/{graph_id}/select` endpoint.
|
|
188
|
+
|
|
189
|
+
**Use Cases:**
|
|
190
|
+
- Display graph selector in UI
|
|
191
|
+
- Show user's accessible workspaces
|
|
192
|
+
- Identify which graph is currently active
|
|
193
|
+
- Filter graphs by role for permission-based features
|
|
143
194
|
|
|
144
|
-
|
|
195
|
+
**Empty Response:**
|
|
196
|
+
New users or users without graph access will receive an empty list with
|
|
197
|
+
`selectedGraphId: null`. Users should create a new graph or request access
|
|
198
|
+
to an existing graph.
|
|
145
199
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
authorization (Union[None, Unset, str]):
|
|
200
|
+
**Note:**
|
|
201
|
+
Graph listing is included - no credit consumption required.
|
|
149
202
|
|
|
150
203
|
Raises:
|
|
151
204
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
152
205
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
206
|
|
|
154
207
|
Returns:
|
|
155
|
-
Response[Union[
|
|
208
|
+
Response[Union[Any, UserGraphsResponse]]
|
|
156
209
|
"""
|
|
157
210
|
|
|
158
|
-
kwargs = _get_kwargs(
|
|
159
|
-
token=token,
|
|
160
|
-
authorization=authorization,
|
|
161
|
-
)
|
|
211
|
+
kwargs = _get_kwargs()
|
|
162
212
|
|
|
163
213
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
164
214
|
|
|
@@ -168,29 +218,54 @@ async def asyncio_detailed(
|
|
|
168
218
|
async def asyncio(
|
|
169
219
|
*,
|
|
170
220
|
client: AuthenticatedClient,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
221
|
+
) -> Optional[Union[Any, UserGraphsResponse]]:
|
|
222
|
+
r"""Get User Graphs
|
|
223
|
+
|
|
224
|
+
List all graph databases accessible to the current user with roles and selection status.
|
|
225
|
+
|
|
226
|
+
Returns a comprehensive list of all graphs the user can access, including their
|
|
227
|
+
role in each graph (admin or member) and which graph is currently selected as
|
|
228
|
+
the active workspace.
|
|
229
|
+
|
|
230
|
+
**Returned Information:**
|
|
231
|
+
- Graph ID and display name for each accessible graph
|
|
232
|
+
- User's role (admin/member) indicating permission level
|
|
233
|
+
- Selection status (one graph can be marked as \"selected\")
|
|
234
|
+
- Creation timestamp for each graph
|
|
235
|
+
|
|
236
|
+
**Graph Roles:**
|
|
237
|
+
- `admin`: Full access - can manage graph settings, invite users, delete graph
|
|
238
|
+
- `member`: Read/write access - can query and modify data, cannot manage settings
|
|
239
|
+
|
|
240
|
+
**Selected Graph Concept:**
|
|
241
|
+
The \"selected\" graph is the user's currently active workspace. Many API operations
|
|
242
|
+
default to the selected graph if no graph_id is provided. Users can change their
|
|
243
|
+
selected graph via the `POST /v1/graphs/{graph_id}/select` endpoint.
|
|
244
|
+
|
|
245
|
+
**Use Cases:**
|
|
246
|
+
- Display graph selector in UI
|
|
247
|
+
- Show user's accessible workspaces
|
|
248
|
+
- Identify which graph is currently active
|
|
249
|
+
- Filter graphs by role for permission-based features
|
|
175
250
|
|
|
176
|
-
|
|
251
|
+
**Empty Response:**
|
|
252
|
+
New users or users without graph access will receive an empty list with
|
|
253
|
+
`selectedGraphId: null`. Users should create a new graph or request access
|
|
254
|
+
to an existing graph.
|
|
177
255
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
authorization (Union[None, Unset, str]):
|
|
256
|
+
**Note:**
|
|
257
|
+
Graph listing is included - no credit consumption required.
|
|
181
258
|
|
|
182
259
|
Raises:
|
|
183
260
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
184
261
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
185
262
|
|
|
186
263
|
Returns:
|
|
187
|
-
Union[
|
|
264
|
+
Union[Any, UserGraphsResponse]
|
|
188
265
|
"""
|
|
189
266
|
|
|
190
267
|
return (
|
|
191
268
|
await asyncio_detailed(
|
|
192
269
|
client=client,
|
|
193
|
-
token=token,
|
|
194
|
-
authorization=authorization,
|
|
195
270
|
)
|
|
196
271
|
).parsed
|
|
@@ -8,37 +8,17 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.error_response import ErrorResponse
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
10
|
from ...models.success_response import SuccessResponse
|
|
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": "post",
|
|
37
19
|
"url": f"/v1/graphs/{graph_id}/select",
|
|
38
|
-
"params": params,
|
|
39
20
|
}
|
|
40
21
|
|
|
41
|
-
_kwargs["headers"] = headers
|
|
42
22
|
return _kwargs
|
|
43
23
|
|
|
44
24
|
|
|
@@ -91,17 +71,41 @@ def sync_detailed(
|
|
|
91
71
|
graph_id: str,
|
|
92
72
|
*,
|
|
93
73
|
client: AuthenticatedClient,
|
|
94
|
-
token: Union[None, Unset, str] = UNSET,
|
|
95
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
96
74
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
97
75
|
"""Select Graph
|
|
98
76
|
|
|
99
|
-
Select a specific graph as the active
|
|
77
|
+
Select a specific graph as the active workspace for the user.
|
|
78
|
+
|
|
79
|
+
The selected graph becomes the default context for operations in client applications
|
|
80
|
+
and can be used to maintain user workspace preferences across sessions.
|
|
81
|
+
|
|
82
|
+
**Functionality:**
|
|
83
|
+
- Sets the specified graph as the user's currently selected graph
|
|
84
|
+
- Deselects any previously selected graph (only one can be selected at a time)
|
|
85
|
+
- Persists selection across sessions until changed
|
|
86
|
+
- Returns confirmation with the selected graph ID
|
|
87
|
+
|
|
88
|
+
**Requirements:**
|
|
89
|
+
- User must have access to the graph (as admin or member)
|
|
90
|
+
- Graph must exist and not be deleted
|
|
91
|
+
- User can only select graphs they have permission to access
|
|
92
|
+
|
|
93
|
+
**Use Cases:**
|
|
94
|
+
- Switch between multiple graphs in a multi-graph environment
|
|
95
|
+
- Set default workspace after creating a new graph
|
|
96
|
+
- Restore user's preferred workspace on login
|
|
97
|
+
- Support graph context switching in client applications
|
|
98
|
+
|
|
99
|
+
**Client Integration:**
|
|
100
|
+
Many client operations can default to the selected graph, simplifying API calls
|
|
101
|
+
by eliminating the need to specify graph_id repeatedly. Check the selected
|
|
102
|
+
graph with `GET /v1/graphs` which returns `selectedGraphId`.
|
|
103
|
+
|
|
104
|
+
**Note:**
|
|
105
|
+
Graph selection is included - no credit consumption required.
|
|
100
106
|
|
|
101
107
|
Args:
|
|
102
108
|
graph_id (str):
|
|
103
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
104
|
-
authorization (Union[None, Unset, str]):
|
|
105
109
|
|
|
106
110
|
Raises:
|
|
107
111
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -113,8 +117,6 @@ def sync_detailed(
|
|
|
113
117
|
|
|
114
118
|
kwargs = _get_kwargs(
|
|
115
119
|
graph_id=graph_id,
|
|
116
|
-
token=token,
|
|
117
|
-
authorization=authorization,
|
|
118
120
|
)
|
|
119
121
|
|
|
120
122
|
response = client.get_httpx_client().request(
|
|
@@ -128,17 +130,41 @@ def sync(
|
|
|
128
130
|
graph_id: str,
|
|
129
131
|
*,
|
|
130
132
|
client: AuthenticatedClient,
|
|
131
|
-
token: Union[None, Unset, str] = UNSET,
|
|
132
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
133
133
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
134
134
|
"""Select Graph
|
|
135
135
|
|
|
136
|
-
Select a specific graph as the active
|
|
136
|
+
Select a specific graph as the active workspace for the user.
|
|
137
|
+
|
|
138
|
+
The selected graph becomes the default context for operations in client applications
|
|
139
|
+
and can be used to maintain user workspace preferences across sessions.
|
|
140
|
+
|
|
141
|
+
**Functionality:**
|
|
142
|
+
- Sets the specified graph as the user's currently selected graph
|
|
143
|
+
- Deselects any previously selected graph (only one can be selected at a time)
|
|
144
|
+
- Persists selection across sessions until changed
|
|
145
|
+
- Returns confirmation with the selected graph ID
|
|
146
|
+
|
|
147
|
+
**Requirements:**
|
|
148
|
+
- User must have access to the graph (as admin or member)
|
|
149
|
+
- Graph must exist and not be deleted
|
|
150
|
+
- User can only select graphs they have permission to access
|
|
151
|
+
|
|
152
|
+
**Use Cases:**
|
|
153
|
+
- Switch between multiple graphs in a multi-graph environment
|
|
154
|
+
- Set default workspace after creating a new graph
|
|
155
|
+
- Restore user's preferred workspace on login
|
|
156
|
+
- Support graph context switching in client applications
|
|
157
|
+
|
|
158
|
+
**Client Integration:**
|
|
159
|
+
Many client operations can default to the selected graph, simplifying API calls
|
|
160
|
+
by eliminating the need to specify graph_id repeatedly. Check the selected
|
|
161
|
+
graph with `GET /v1/graphs` which returns `selectedGraphId`.
|
|
162
|
+
|
|
163
|
+
**Note:**
|
|
164
|
+
Graph selection is included - no credit consumption required.
|
|
137
165
|
|
|
138
166
|
Args:
|
|
139
167
|
graph_id (str):
|
|
140
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
141
|
-
authorization (Union[None, Unset, str]):
|
|
142
168
|
|
|
143
169
|
Raises:
|
|
144
170
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -151,8 +177,6 @@ def sync(
|
|
|
151
177
|
return sync_detailed(
|
|
152
178
|
graph_id=graph_id,
|
|
153
179
|
client=client,
|
|
154
|
-
token=token,
|
|
155
|
-
authorization=authorization,
|
|
156
180
|
).parsed
|
|
157
181
|
|
|
158
182
|
|
|
@@ -160,17 +184,41 @@ async def asyncio_detailed(
|
|
|
160
184
|
graph_id: str,
|
|
161
185
|
*,
|
|
162
186
|
client: AuthenticatedClient,
|
|
163
|
-
token: Union[None, Unset, str] = UNSET,
|
|
164
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
165
187
|
) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
166
188
|
"""Select Graph
|
|
167
189
|
|
|
168
|
-
Select a specific graph as the active
|
|
190
|
+
Select a specific graph as the active workspace for the user.
|
|
191
|
+
|
|
192
|
+
The selected graph becomes the default context for operations in client applications
|
|
193
|
+
and can be used to maintain user workspace preferences across sessions.
|
|
194
|
+
|
|
195
|
+
**Functionality:**
|
|
196
|
+
- Sets the specified graph as the user's currently selected graph
|
|
197
|
+
- Deselects any previously selected graph (only one can be selected at a time)
|
|
198
|
+
- Persists selection across sessions until changed
|
|
199
|
+
- Returns confirmation with the selected graph ID
|
|
200
|
+
|
|
201
|
+
**Requirements:**
|
|
202
|
+
- User must have access to the graph (as admin or member)
|
|
203
|
+
- Graph must exist and not be deleted
|
|
204
|
+
- User can only select graphs they have permission to access
|
|
205
|
+
|
|
206
|
+
**Use Cases:**
|
|
207
|
+
- Switch between multiple graphs in a multi-graph environment
|
|
208
|
+
- Set default workspace after creating a new graph
|
|
209
|
+
- Restore user's preferred workspace on login
|
|
210
|
+
- Support graph context switching in client applications
|
|
211
|
+
|
|
212
|
+
**Client Integration:**
|
|
213
|
+
Many client operations can default to the selected graph, simplifying API calls
|
|
214
|
+
by eliminating the need to specify graph_id repeatedly. Check the selected
|
|
215
|
+
graph with `GET /v1/graphs` which returns `selectedGraphId`.
|
|
216
|
+
|
|
217
|
+
**Note:**
|
|
218
|
+
Graph selection is included - no credit consumption required.
|
|
169
219
|
|
|
170
220
|
Args:
|
|
171
221
|
graph_id (str):
|
|
172
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
173
|
-
authorization (Union[None, Unset, str]):
|
|
174
222
|
|
|
175
223
|
Raises:
|
|
176
224
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -182,8 +230,6 @@ async def asyncio_detailed(
|
|
|
182
230
|
|
|
183
231
|
kwargs = _get_kwargs(
|
|
184
232
|
graph_id=graph_id,
|
|
185
|
-
token=token,
|
|
186
|
-
authorization=authorization,
|
|
187
233
|
)
|
|
188
234
|
|
|
189
235
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -195,17 +241,41 @@ async def asyncio(
|
|
|
195
241
|
graph_id: str,
|
|
196
242
|
*,
|
|
197
243
|
client: AuthenticatedClient,
|
|
198
|
-
token: Union[None, Unset, str] = UNSET,
|
|
199
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
200
244
|
) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
|
|
201
245
|
"""Select Graph
|
|
202
246
|
|
|
203
|
-
Select a specific graph as the active
|
|
247
|
+
Select a specific graph as the active workspace for the user.
|
|
248
|
+
|
|
249
|
+
The selected graph becomes the default context for operations in client applications
|
|
250
|
+
and can be used to maintain user workspace preferences across sessions.
|
|
251
|
+
|
|
252
|
+
**Functionality:**
|
|
253
|
+
- Sets the specified graph as the user's currently selected graph
|
|
254
|
+
- Deselects any previously selected graph (only one can be selected at a time)
|
|
255
|
+
- Persists selection across sessions until changed
|
|
256
|
+
- Returns confirmation with the selected graph ID
|
|
257
|
+
|
|
258
|
+
**Requirements:**
|
|
259
|
+
- User must have access to the graph (as admin or member)
|
|
260
|
+
- Graph must exist and not be deleted
|
|
261
|
+
- User can only select graphs they have permission to access
|
|
262
|
+
|
|
263
|
+
**Use Cases:**
|
|
264
|
+
- Switch between multiple graphs in a multi-graph environment
|
|
265
|
+
- Set default workspace after creating a new graph
|
|
266
|
+
- Restore user's preferred workspace on login
|
|
267
|
+
- Support graph context switching in client applications
|
|
268
|
+
|
|
269
|
+
**Client Integration:**
|
|
270
|
+
Many client operations can default to the selected graph, simplifying API calls
|
|
271
|
+
by eliminating the need to specify graph_id repeatedly. Check the selected
|
|
272
|
+
graph with `GET /v1/graphs` which returns `selectedGraphId`.
|
|
273
|
+
|
|
274
|
+
**Note:**
|
|
275
|
+
Graph selection is included - no credit consumption required.
|
|
204
276
|
|
|
205
277
|
Args:
|
|
206
278
|
graph_id (str):
|
|
207
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
208
|
-
authorization (Union[None, Unset, str]):
|
|
209
279
|
|
|
210
280
|
Raises:
|
|
211
281
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -219,7 +289,5 @@ async def asyncio(
|
|
|
219
289
|
await asyncio_detailed(
|
|
220
290
|
graph_id=graph_id,
|
|
221
291
|
client=client,
|
|
222
|
-
token=token,
|
|
223
|
-
authorization=authorization,
|
|
224
292
|
)
|
|
225
293
|
).parsed
|