robosystems-client 0.1.17__py3-none-any.whl → 0.1.19__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 (99) hide show
  1. robosystems_client/__init__.py +15 -4
  2. robosystems_client/api/agent/auto_select_agent.py +26 -1
  3. robosystems_client/api/agent/batch_process_queries.py +26 -1
  4. robosystems_client/api/agent/execute_specific_agent.py +26 -1
  5. robosystems_client/api/agent/get_agent_metadata.py +26 -1
  6. robosystems_client/api/agent/list_agents.py +21 -1
  7. robosystems_client/api/agent/recommend_agent.py +26 -1
  8. robosystems_client/api/backup/create_backup.py +26 -1
  9. robosystems_client/api/backup/export_backup.py +26 -1
  10. robosystems_client/api/backup/get_backup_download_url.py +21 -1
  11. robosystems_client/api/backup/get_backup_stats.py +26 -1
  12. robosystems_client/api/backup/list_backups.py +21 -1
  13. robosystems_client/api/backup/restore_backup.py +26 -1
  14. robosystems_client/api/connections/create_connection.py +26 -1
  15. robosystems_client/api/connections/create_link_token.py +26 -1
  16. robosystems_client/api/connections/delete_connection.py +26 -1
  17. robosystems_client/api/connections/exchange_link_token.py +26 -1
  18. robosystems_client/api/connections/get_connection.py +26 -1
  19. robosystems_client/api/connections/get_connection_options.py +26 -1
  20. robosystems_client/api/connections/init_o_auth.py +26 -1
  21. robosystems_client/api/connections/list_connections.py +21 -1
  22. robosystems_client/api/connections/oauth_callback.py +26 -1
  23. robosystems_client/api/connections/sync_connection.py +26 -1
  24. robosystems_client/api/copy/copy_data_to_graph.py +26 -1
  25. robosystems_client/api/graph_analytics/get_graph_metrics.py +26 -1
  26. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +21 -1
  27. robosystems_client/api/graph_billing/get_current_graph_bill.py +26 -1
  28. robosystems_client/api/graph_billing/get_graph_billing_history.py +21 -1
  29. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +26 -1
  30. robosystems_client/api/graph_billing/get_graph_usage_details.py +21 -1
  31. robosystems_client/api/graph_credits/check_credit_balance.py +21 -1
  32. robosystems_client/api/graph_credits/check_storage_limits.py +26 -1
  33. robosystems_client/api/graph_credits/get_credit_summary.py +26 -1
  34. robosystems_client/api/graph_credits/get_storage_usage.py +21 -1
  35. robosystems_client/api/graph_credits/list_credit_transactions.py +21 -1
  36. robosystems_client/api/graph_health/get_database_health.py +26 -1
  37. robosystems_client/api/graph_info/get_database_info.py +26 -1
  38. robosystems_client/api/graph_limits/get_graph_limits.py +26 -1
  39. robosystems_client/api/{create → graphs}/create_graph.py +26 -1
  40. robosystems_client/api/{create → graphs}/get_available_extensions.py +1 -1
  41. robosystems_client/api/{user/get_user_graphs.py → graphs/get_graphs.py} +26 -1
  42. robosystems_client/api/{user/select_user_graph.py → graphs/select_graph.py} +30 -5
  43. robosystems_client/api/mcp/call_mcp_tool.py +21 -1
  44. robosystems_client/api/mcp/list_mcp_tools.py +26 -1
  45. robosystems_client/api/operations/cancel_operation.py +25 -0
  46. robosystems_client/api/operations/get_operation_status.py +25 -0
  47. robosystems_client/api/operations/stream_operation_events.py +20 -0
  48. robosystems_client/api/query/execute_cypher_query.py +21 -1
  49. robosystems_client/api/schema/export_graph_schema.py +21 -1
  50. robosystems_client/api/schema/get_graph_schema_info.py +26 -1
  51. robosystems_client/api/schema/list_schema_extensions.py +26 -1
  52. robosystems_client/api/schema/validate_schema.py +26 -1
  53. robosystems_client/api/subgraphs/create_subgraph.py +26 -1
  54. robosystems_client/api/subgraphs/delete_subgraph.py +26 -1
  55. robosystems_client/api/subgraphs/get_subgraph_info.py +26 -1
  56. robosystems_client/api/subgraphs/get_subgraph_quota.py +26 -1
  57. robosystems_client/api/subgraphs/list_subgraphs.py +26 -1
  58. robosystems_client/api/user/create_user_api_key.py +25 -0
  59. robosystems_client/api/user/get_all_credit_summaries.py +25 -0
  60. robosystems_client/api/user/get_current_user.py +25 -0
  61. robosystems_client/api/user/list_user_api_keys.py +25 -0
  62. robosystems_client/api/user/revoke_user_api_key.py +25 -0
  63. robosystems_client/api/user/update_user.py +25 -0
  64. robosystems_client/api/user/update_user_api_key.py +25 -0
  65. robosystems_client/api/user/update_user_password.py +25 -0
  66. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -0
  67. robosystems_client/api/user_analytics/get_user_usage_overview.py +25 -0
  68. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +25 -0
  69. robosystems_client/api/user_limits/get_shared_repository_limits.py +25 -0
  70. robosystems_client/api/user_limits/get_user_limits.py +25 -0
  71. robosystems_client/api/user_limits/get_user_usage.py +25 -0
  72. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +25 -0
  73. robosystems_client/api/user_subscriptions/get_repository_credits.py +25 -0
  74. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +25 -0
  75. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -0
  76. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +25 -0
  77. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +25 -0
  78. robosystems_client/extensions/__init__.py +70 -0
  79. robosystems_client/extensions/auth_integration.py +14 -1
  80. robosystems_client/extensions/copy_client.py +32 -22
  81. robosystems_client/extensions/dataframe_utils.py +455 -0
  82. robosystems_client/extensions/extensions.py +16 -0
  83. robosystems_client/extensions/operation_client.py +43 -21
  84. robosystems_client/extensions/query_client.py +109 -12
  85. robosystems_client/extensions/tests/test_dataframe_utils.py +334 -0
  86. robosystems_client/extensions/tests/test_integration.py +1 -1
  87. robosystems_client/extensions/tests/test_token_utils.py +274 -0
  88. robosystems_client/extensions/token_utils.py +417 -0
  89. robosystems_client/extensions/utils.py +32 -2
  90. robosystems_client/models/__init__.py +0 -2
  91. robosystems_client/models/api_key_info.py +20 -0
  92. robosystems_client/models/create_api_key_request.py +20 -0
  93. {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/METADATA +1 -1
  94. {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/RECORD +97 -95
  95. robosystems_client/api/auth/sso_login.py +0 -177
  96. robosystems_client/models/sso_login_request.py +0 -60
  97. /robosystems_client/api/{create → graphs}/__init__.py +0 -0
  98. {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/WHEEL +0 -0
  99. {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.19.dist-info}/licenses/LICENSE +0 -0
@@ -13,15 +13,28 @@ from ...types import UNSET, Response, Unset
13
13
  def _get_kwargs(
14
14
  graph_id: str,
15
15
  *,
16
+ token: Union[None, Unset, str] = UNSET,
16
17
  authorization: Union[None, Unset, str] = UNSET,
17
18
  ) -> dict[str, Any]:
18
19
  headers: dict[str, Any] = {}
19
20
  if not isinstance(authorization, Unset):
20
21
  headers["authorization"] = authorization
21
22
 
23
+ params: dict[str, Any] = {}
24
+
25
+ json_token: Union[None, Unset, str]
26
+ if isinstance(token, Unset):
27
+ json_token = UNSET
28
+ else:
29
+ json_token = token
30
+ params["token"] = json_token
31
+
32
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
33
+
22
34
  _kwargs: dict[str, Any] = {
23
35
  "method": "get",
24
- "url": f"/v1/{graph_id}/info",
36
+ "url": f"/v1/graphs/{graph_id}/info",
37
+ "params": params,
25
38
  }
26
39
 
27
40
  _kwargs["headers"] = headers
@@ -69,6 +82,7 @@ def sync_detailed(
69
82
  graph_id: str,
70
83
  *,
71
84
  client: AuthenticatedClient,
85
+ token: Union[None, Unset, str] = UNSET,
72
86
  authorization: Union[None, Unset, str] = UNSET,
73
87
  ) -> Response[Union[Any, DatabaseInfoResponse, HTTPValidationError]]:
74
88
  """Database Information
@@ -94,6 +108,7 @@ def sync_detailed(
94
108
 
95
109
  Args:
96
110
  graph_id (str): Graph database identifier
111
+ token (Union[None, Unset, str]): JWT token for SSE authentication
97
112
  authorization (Union[None, Unset, str]):
98
113
 
99
114
  Raises:
@@ -106,6 +121,7 @@ def sync_detailed(
106
121
 
107
122
  kwargs = _get_kwargs(
108
123
  graph_id=graph_id,
124
+ token=token,
109
125
  authorization=authorization,
110
126
  )
111
127
 
@@ -120,6 +136,7 @@ def sync(
120
136
  graph_id: str,
121
137
  *,
122
138
  client: AuthenticatedClient,
139
+ token: Union[None, Unset, str] = UNSET,
123
140
  authorization: Union[None, Unset, str] = UNSET,
124
141
  ) -> Optional[Union[Any, DatabaseInfoResponse, HTTPValidationError]]:
125
142
  """Database Information
@@ -145,6 +162,7 @@ def sync(
145
162
 
146
163
  Args:
147
164
  graph_id (str): Graph database identifier
165
+ token (Union[None, Unset, str]): JWT token for SSE authentication
148
166
  authorization (Union[None, Unset, str]):
149
167
 
150
168
  Raises:
@@ -158,6 +176,7 @@ def sync(
158
176
  return sync_detailed(
159
177
  graph_id=graph_id,
160
178
  client=client,
179
+ token=token,
161
180
  authorization=authorization,
162
181
  ).parsed
163
182
 
@@ -166,6 +185,7 @@ async def asyncio_detailed(
166
185
  graph_id: str,
167
186
  *,
168
187
  client: AuthenticatedClient,
188
+ token: Union[None, Unset, str] = UNSET,
169
189
  authorization: Union[None, Unset, str] = UNSET,
170
190
  ) -> Response[Union[Any, DatabaseInfoResponse, HTTPValidationError]]:
171
191
  """Database Information
@@ -191,6 +211,7 @@ async def asyncio_detailed(
191
211
 
192
212
  Args:
193
213
  graph_id (str): Graph database identifier
214
+ token (Union[None, Unset, str]): JWT token for SSE authentication
194
215
  authorization (Union[None, Unset, str]):
195
216
 
196
217
  Raises:
@@ -203,6 +224,7 @@ async def asyncio_detailed(
203
224
 
204
225
  kwargs = _get_kwargs(
205
226
  graph_id=graph_id,
227
+ token=token,
206
228
  authorization=authorization,
207
229
  )
208
230
 
@@ -215,6 +237,7 @@ async def asyncio(
215
237
  graph_id: str,
216
238
  *,
217
239
  client: AuthenticatedClient,
240
+ token: Union[None, Unset, str] = UNSET,
218
241
  authorization: Union[None, Unset, str] = UNSET,
219
242
  ) -> Optional[Union[Any, DatabaseInfoResponse, HTTPValidationError]]:
220
243
  """Database Information
@@ -240,6 +263,7 @@ async def asyncio(
240
263
 
241
264
  Args:
242
265
  graph_id (str): Graph database identifier
266
+ token (Union[None, Unset, str]): JWT token for SSE authentication
243
267
  authorization (Union[None, Unset, str]):
244
268
 
245
269
  Raises:
@@ -254,6 +278,7 @@ async def asyncio(
254
278
  await asyncio_detailed(
255
279
  graph_id=graph_id,
256
280
  client=client,
281
+ token=token,
257
282
  authorization=authorization,
258
283
  )
259
284
  ).parsed
@@ -15,15 +15,28 @@ from ...types import UNSET, Response, Unset
15
15
  def _get_kwargs(
16
16
  graph_id: str,
17
17
  *,
18
+ token: Union[None, Unset, str] = UNSET,
18
19
  authorization: Union[None, Unset, str] = UNSET,
19
20
  ) -> dict[str, Any]:
20
21
  headers: dict[str, Any] = {}
21
22
  if not isinstance(authorization, Unset):
22
23
  headers["authorization"] = authorization
23
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
+
24
36
  _kwargs: dict[str, Any] = {
25
37
  "method": "get",
26
- "url": f"/v1/{graph_id}/limits",
38
+ "url": f"/v1/graphs/{graph_id}/limits",
39
+ "params": params,
27
40
  }
28
41
 
29
42
  _kwargs["headers"] = headers
@@ -71,6 +84,7 @@ def sync_detailed(
71
84
  graph_id: str,
72
85
  *,
73
86
  client: AuthenticatedClient,
87
+ token: Union[None, Unset, str] = UNSET,
74
88
  authorization: Union[None, Unset, str] = UNSET,
75
89
  ) -> Response[Union[Any, GetGraphLimitsResponseGetgraphlimits, HTTPValidationError]]:
76
90
  """Get Graph Operational Limits
@@ -91,6 +105,7 @@ def sync_detailed(
91
105
 
92
106
  Args:
93
107
  graph_id (str): Graph database identifier (user graph or shared repository)
108
+ token (Union[None, Unset, str]): JWT token for SSE authentication
94
109
  authorization (Union[None, Unset, str]):
95
110
 
96
111
  Raises:
@@ -103,6 +118,7 @@ def sync_detailed(
103
118
 
104
119
  kwargs = _get_kwargs(
105
120
  graph_id=graph_id,
121
+ token=token,
106
122
  authorization=authorization,
107
123
  )
108
124
 
@@ -117,6 +133,7 @@ def sync(
117
133
  graph_id: str,
118
134
  *,
119
135
  client: AuthenticatedClient,
136
+ token: Union[None, Unset, str] = UNSET,
120
137
  authorization: Union[None, Unset, str] = UNSET,
121
138
  ) -> Optional[Union[Any, GetGraphLimitsResponseGetgraphlimits, HTTPValidationError]]:
122
139
  """Get Graph Operational Limits
@@ -137,6 +154,7 @@ def sync(
137
154
 
138
155
  Args:
139
156
  graph_id (str): Graph database identifier (user graph or shared repository)
157
+ token (Union[None, Unset, str]): JWT token for SSE authentication
140
158
  authorization (Union[None, Unset, str]):
141
159
 
142
160
  Raises:
@@ -150,6 +168,7 @@ def sync(
150
168
  return sync_detailed(
151
169
  graph_id=graph_id,
152
170
  client=client,
171
+ token=token,
153
172
  authorization=authorization,
154
173
  ).parsed
155
174
 
@@ -158,6 +177,7 @@ async def asyncio_detailed(
158
177
  graph_id: str,
159
178
  *,
160
179
  client: AuthenticatedClient,
180
+ token: Union[None, Unset, str] = UNSET,
161
181
  authorization: Union[None, Unset, str] = UNSET,
162
182
  ) -> Response[Union[Any, GetGraphLimitsResponseGetgraphlimits, HTTPValidationError]]:
163
183
  """Get Graph Operational Limits
@@ -178,6 +198,7 @@ async def asyncio_detailed(
178
198
 
179
199
  Args:
180
200
  graph_id (str): Graph database identifier (user graph or shared repository)
201
+ token (Union[None, Unset, str]): JWT token for SSE authentication
181
202
  authorization (Union[None, Unset, str]):
182
203
 
183
204
  Raises:
@@ -190,6 +211,7 @@ async def asyncio_detailed(
190
211
 
191
212
  kwargs = _get_kwargs(
192
213
  graph_id=graph_id,
214
+ token=token,
193
215
  authorization=authorization,
194
216
  )
195
217
 
@@ -202,6 +224,7 @@ async def asyncio(
202
224
  graph_id: str,
203
225
  *,
204
226
  client: AuthenticatedClient,
227
+ token: Union[None, Unset, str] = UNSET,
205
228
  authorization: Union[None, Unset, str] = UNSET,
206
229
  ) -> Optional[Union[Any, GetGraphLimitsResponseGetgraphlimits, HTTPValidationError]]:
207
230
  """Get Graph Operational Limits
@@ -222,6 +245,7 @@ async def asyncio(
222
245
 
223
246
  Args:
224
247
  graph_id (str): Graph database identifier (user graph or shared repository)
248
+ token (Union[None, Unset, str]): JWT token for SSE authentication
225
249
  authorization (Union[None, Unset, str]):
226
250
 
227
251
  Raises:
@@ -236,6 +260,7 @@ async def asyncio(
236
260
  await asyncio_detailed(
237
261
  graph_id=graph_id,
238
262
  client=client,
263
+ token=token,
239
264
  authorization=authorization,
240
265
  )
241
266
  ).parsed
@@ -13,15 +13,28 @@ from ...types import UNSET, Response, Unset
13
13
  def _get_kwargs(
14
14
  *,
15
15
  body: CreateGraphRequest,
16
+ token: Union[None, Unset, str] = UNSET,
16
17
  authorization: Union[None, Unset, str] = UNSET,
17
18
  ) -> dict[str, Any]:
18
19
  headers: dict[str, Any] = {}
19
20
  if not isinstance(authorization, Unset):
20
21
  headers["authorization"] = authorization
21
22
 
23
+ params: dict[str, Any] = {}
24
+
25
+ json_token: Union[None, Unset, str]
26
+ if isinstance(token, Unset):
27
+ json_token = UNSET
28
+ else:
29
+ json_token = token
30
+ params["token"] = json_token
31
+
32
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
33
+
22
34
  _kwargs: dict[str, Any] = {
23
35
  "method": "post",
24
- "url": "/v1/create/graph",
36
+ "url": "/v1/graphs",
37
+ "params": params,
25
38
  }
26
39
 
27
40
  _kwargs["json"] = body.to_dict()
@@ -63,6 +76,7 @@ def sync_detailed(
63
76
  *,
64
77
  client: AuthenticatedClient,
65
78
  body: CreateGraphRequest,
79
+ token: Union[None, Unset, str] = UNSET,
66
80
  authorization: Union[None, Unset, str] = UNSET,
67
81
  ) -> Response[Union[Any, HTTPValidationError]]:
68
82
  """Create New Graph Database
@@ -109,6 +123,7 @@ def sync_detailed(
109
123
  - `_links.status`: Point-in-time status check endpoint
110
124
 
111
125
  Args:
126
+ token (Union[None, Unset, str]): JWT token for SSE authentication
112
127
  authorization (Union[None, Unset, str]):
113
128
  body (CreateGraphRequest): Request model for creating a new graph. Example:
114
129
  {'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
@@ -126,6 +141,7 @@ def sync_detailed(
126
141
 
127
142
  kwargs = _get_kwargs(
128
143
  body=body,
144
+ token=token,
129
145
  authorization=authorization,
130
146
  )
131
147
 
@@ -140,6 +156,7 @@ def sync(
140
156
  *,
141
157
  client: AuthenticatedClient,
142
158
  body: CreateGraphRequest,
159
+ token: Union[None, Unset, str] = UNSET,
143
160
  authorization: Union[None, Unset, str] = UNSET,
144
161
  ) -> Optional[Union[Any, HTTPValidationError]]:
145
162
  """Create New Graph Database
@@ -186,6 +203,7 @@ def sync(
186
203
  - `_links.status`: Point-in-time status check endpoint
187
204
 
188
205
  Args:
206
+ token (Union[None, Unset, str]): JWT token for SSE authentication
189
207
  authorization (Union[None, Unset, str]):
190
208
  body (CreateGraphRequest): Request model for creating a new graph. Example:
191
209
  {'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
@@ -204,6 +222,7 @@ def sync(
204
222
  return sync_detailed(
205
223
  client=client,
206
224
  body=body,
225
+ token=token,
207
226
  authorization=authorization,
208
227
  ).parsed
209
228
 
@@ -212,6 +231,7 @@ async def asyncio_detailed(
212
231
  *,
213
232
  client: AuthenticatedClient,
214
233
  body: CreateGraphRequest,
234
+ token: Union[None, Unset, str] = UNSET,
215
235
  authorization: Union[None, Unset, str] = UNSET,
216
236
  ) -> Response[Union[Any, HTTPValidationError]]:
217
237
  """Create New Graph Database
@@ -258,6 +278,7 @@ async def asyncio_detailed(
258
278
  - `_links.status`: Point-in-time status check endpoint
259
279
 
260
280
  Args:
281
+ token (Union[None, Unset, str]): JWT token for SSE authentication
261
282
  authorization (Union[None, Unset, str]):
262
283
  body (CreateGraphRequest): Request model for creating a new graph. Example:
263
284
  {'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
@@ -275,6 +296,7 @@ async def asyncio_detailed(
275
296
 
276
297
  kwargs = _get_kwargs(
277
298
  body=body,
299
+ token=token,
278
300
  authorization=authorization,
279
301
  )
280
302
 
@@ -287,6 +309,7 @@ async def asyncio(
287
309
  *,
288
310
  client: AuthenticatedClient,
289
311
  body: CreateGraphRequest,
312
+ token: Union[None, Unset, str] = UNSET,
290
313
  authorization: Union[None, Unset, str] = UNSET,
291
314
  ) -> Optional[Union[Any, HTTPValidationError]]:
292
315
  """Create New Graph Database
@@ -333,6 +356,7 @@ async def asyncio(
333
356
  - `_links.status`: Point-in-time status check endpoint
334
357
 
335
358
  Args:
359
+ token (Union[None, Unset, str]): JWT token for SSE authentication
336
360
  authorization (Union[None, Unset, str]):
337
361
  body (CreateGraphRequest): Request model for creating a new graph. Example:
338
362
  {'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
@@ -352,6 +376,7 @@ async def asyncio(
352
376
  await asyncio_detailed(
353
377
  client=client,
354
378
  body=body,
379
+ token=token,
355
380
  authorization=authorization,
356
381
  )
357
382
  ).parsed
@@ -12,7 +12,7 @@ from ...types import Response
12
12
  def _get_kwargs() -> dict[str, Any]:
13
13
  _kwargs: dict[str, Any] = {
14
14
  "method": "get",
15
- "url": "/v1/create/graph/extensions",
15
+ "url": "/v1/graphs/extensions",
16
16
  }
17
17
 
18
18
  return _kwargs
@@ -12,15 +12,28 @@ from ...types import UNSET, Response, Unset
12
12
 
13
13
  def _get_kwargs(
14
14
  *,
15
+ token: Union[None, Unset, str] = UNSET,
15
16
  authorization: Union[None, Unset, str] = UNSET,
16
17
  ) -> dict[str, Any]:
17
18
  headers: dict[str, Any] = {}
18
19
  if not isinstance(authorization, Unset):
19
20
  headers["authorization"] = authorization
20
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
+
21
33
  _kwargs: dict[str, Any] = {
22
34
  "method": "get",
23
- "url": "/v1/user/graphs",
35
+ "url": "/v1/graphs",
36
+ "params": params,
24
37
  }
25
38
 
26
39
  _kwargs["headers"] = headers
@@ -58,6 +71,7 @@ def _build_response(
58
71
  def sync_detailed(
59
72
  *,
60
73
  client: AuthenticatedClient,
74
+ token: Union[None, Unset, str] = UNSET,
61
75
  authorization: Union[None, Unset, str] = UNSET,
62
76
  ) -> Response[Union[HTTPValidationError, UserGraphsResponse]]:
63
77
  """Get User Graphs
@@ -65,6 +79,7 @@ def sync_detailed(
65
79
  Get all graph databases accessible to the current user.
66
80
 
67
81
  Args:
82
+ token (Union[None, Unset, str]): JWT token for SSE authentication
68
83
  authorization (Union[None, Unset, str]):
69
84
 
70
85
  Raises:
@@ -76,6 +91,7 @@ def sync_detailed(
76
91
  """
77
92
 
78
93
  kwargs = _get_kwargs(
94
+ token=token,
79
95
  authorization=authorization,
80
96
  )
81
97
 
@@ -89,6 +105,7 @@ def sync_detailed(
89
105
  def sync(
90
106
  *,
91
107
  client: AuthenticatedClient,
108
+ token: Union[None, Unset, str] = UNSET,
92
109
  authorization: Union[None, Unset, str] = UNSET,
93
110
  ) -> Optional[Union[HTTPValidationError, UserGraphsResponse]]:
94
111
  """Get User Graphs
@@ -96,6 +113,7 @@ def sync(
96
113
  Get all graph databases accessible to the current user.
97
114
 
98
115
  Args:
116
+ token (Union[None, Unset, str]): JWT token for SSE authentication
99
117
  authorization (Union[None, Unset, str]):
100
118
 
101
119
  Raises:
@@ -108,6 +126,7 @@ def sync(
108
126
 
109
127
  return sync_detailed(
110
128
  client=client,
129
+ token=token,
111
130
  authorization=authorization,
112
131
  ).parsed
113
132
 
@@ -115,6 +134,7 @@ def sync(
115
134
  async def asyncio_detailed(
116
135
  *,
117
136
  client: AuthenticatedClient,
137
+ token: Union[None, Unset, str] = UNSET,
118
138
  authorization: Union[None, Unset, str] = UNSET,
119
139
  ) -> Response[Union[HTTPValidationError, UserGraphsResponse]]:
120
140
  """Get User Graphs
@@ -122,6 +142,7 @@ async def asyncio_detailed(
122
142
  Get all graph databases accessible to the current user.
123
143
 
124
144
  Args:
145
+ token (Union[None, Unset, str]): JWT token for SSE authentication
125
146
  authorization (Union[None, Unset, str]):
126
147
 
127
148
  Raises:
@@ -133,6 +154,7 @@ async def asyncio_detailed(
133
154
  """
134
155
 
135
156
  kwargs = _get_kwargs(
157
+ token=token,
136
158
  authorization=authorization,
137
159
  )
138
160
 
@@ -144,6 +166,7 @@ async def asyncio_detailed(
144
166
  async def asyncio(
145
167
  *,
146
168
  client: AuthenticatedClient,
169
+ token: Union[None, Unset, str] = UNSET,
147
170
  authorization: Union[None, Unset, str] = UNSET,
148
171
  ) -> Optional[Union[HTTPValidationError, UserGraphsResponse]]:
149
172
  """Get User Graphs
@@ -151,6 +174,7 @@ async def asyncio(
151
174
  Get all graph databases accessible to the current user.
152
175
 
153
176
  Args:
177
+ token (Union[None, Unset, str]): JWT token for SSE authentication
154
178
  authorization (Union[None, Unset, str]):
155
179
 
156
180
  Raises:
@@ -164,6 +188,7 @@ async def asyncio(
164
188
  return (
165
189
  await asyncio_detailed(
166
190
  client=client,
191
+ token=token,
167
192
  authorization=authorization,
168
193
  )
169
194
  ).parsed
@@ -14,15 +14,28 @@ from ...types import UNSET, Response, Unset
14
14
  def _get_kwargs(
15
15
  graph_id: str,
16
16
  *,
17
+ token: Union[None, Unset, str] = UNSET,
17
18
  authorization: Union[None, Unset, str] = UNSET,
18
19
  ) -> dict[str, Any]:
19
20
  headers: dict[str, Any] = {}
20
21
  if not isinstance(authorization, Unset):
21
22
  headers["authorization"] = authorization
22
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
+
23
35
  _kwargs: dict[str, Any] = {
24
36
  "method": "post",
25
- "url": f"/v1/user/graphs/{graph_id}/select",
37
+ "url": f"/v1/graphs/{graph_id}/select",
38
+ "params": params,
26
39
  }
27
40
 
28
41
  _kwargs["headers"] = headers
@@ -73,14 +86,16 @@ def sync_detailed(
73
86
  graph_id: str,
74
87
  *,
75
88
  client: AuthenticatedClient,
89
+ token: Union[None, Unset, str] = UNSET,
76
90
  authorization: Union[None, Unset, str] = UNSET,
77
91
  ) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
78
- """Select User Graph
92
+ """Select Graph
79
93
 
80
94
  Select a specific graph as the active graph for the user.
81
95
 
82
96
  Args:
83
97
  graph_id (str):
98
+ token (Union[None, Unset, str]): JWT token for SSE authentication
84
99
  authorization (Union[None, Unset, str]):
85
100
 
86
101
  Raises:
@@ -93,6 +108,7 @@ def sync_detailed(
93
108
 
94
109
  kwargs = _get_kwargs(
95
110
  graph_id=graph_id,
111
+ token=token,
96
112
  authorization=authorization,
97
113
  )
98
114
 
@@ -107,14 +123,16 @@ def sync(
107
123
  graph_id: str,
108
124
  *,
109
125
  client: AuthenticatedClient,
126
+ token: Union[None, Unset, str] = UNSET,
110
127
  authorization: Union[None, Unset, str] = UNSET,
111
128
  ) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
112
- """Select User Graph
129
+ """Select Graph
113
130
 
114
131
  Select a specific graph as the active graph for the user.
115
132
 
116
133
  Args:
117
134
  graph_id (str):
135
+ token (Union[None, Unset, str]): JWT token for SSE authentication
118
136
  authorization (Union[None, Unset, str]):
119
137
 
120
138
  Raises:
@@ -128,6 +146,7 @@ def sync(
128
146
  return sync_detailed(
129
147
  graph_id=graph_id,
130
148
  client=client,
149
+ token=token,
131
150
  authorization=authorization,
132
151
  ).parsed
133
152
 
@@ -136,14 +155,16 @@ async def asyncio_detailed(
136
155
  graph_id: str,
137
156
  *,
138
157
  client: AuthenticatedClient,
158
+ token: Union[None, Unset, str] = UNSET,
139
159
  authorization: Union[None, Unset, str] = UNSET,
140
160
  ) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
141
- """Select User Graph
161
+ """Select Graph
142
162
 
143
163
  Select a specific graph as the active graph for the user.
144
164
 
145
165
  Args:
146
166
  graph_id (str):
167
+ token (Union[None, Unset, str]): JWT token for SSE authentication
147
168
  authorization (Union[None, Unset, str]):
148
169
 
149
170
  Raises:
@@ -156,6 +177,7 @@ async def asyncio_detailed(
156
177
 
157
178
  kwargs = _get_kwargs(
158
179
  graph_id=graph_id,
180
+ token=token,
159
181
  authorization=authorization,
160
182
  )
161
183
 
@@ -168,14 +190,16 @@ async def asyncio(
168
190
  graph_id: str,
169
191
  *,
170
192
  client: AuthenticatedClient,
193
+ token: Union[None, Unset, str] = UNSET,
171
194
  authorization: Union[None, Unset, str] = UNSET,
172
195
  ) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
173
- """Select User Graph
196
+ """Select Graph
174
197
 
175
198
  Select a specific graph as the active graph for the user.
176
199
 
177
200
  Args:
178
201
  graph_id (str):
202
+ token (Union[None, Unset, str]): JWT token for SSE authentication
179
203
  authorization (Union[None, Unset, str]):
180
204
 
181
205
  Raises:
@@ -190,6 +214,7 @@ async def asyncio(
190
214
  await asyncio_detailed(
191
215
  graph_id=graph_id,
192
216
  client=client,
217
+ token=token,
193
218
  authorization=authorization,
194
219
  )
195
220
  ).parsed