robosystems-client 0.1.17__py3-none-any.whl → 0.1.18__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 (92) hide show
  1. robosystems_client/__init__.py +15 -4
  2. robosystems_client/api/agent/auto_select_agent.py +25 -0
  3. robosystems_client/api/agent/batch_process_queries.py +25 -0
  4. robosystems_client/api/agent/execute_specific_agent.py +25 -0
  5. robosystems_client/api/agent/get_agent_metadata.py +25 -0
  6. robosystems_client/api/agent/list_agents.py +20 -0
  7. robosystems_client/api/agent/recommend_agent.py +25 -0
  8. robosystems_client/api/backup/create_backup.py +25 -0
  9. robosystems_client/api/backup/export_backup.py +25 -0
  10. robosystems_client/api/backup/get_backup_download_url.py +20 -0
  11. robosystems_client/api/backup/get_backup_stats.py +25 -0
  12. robosystems_client/api/backup/list_backups.py +20 -0
  13. robosystems_client/api/backup/restore_backup.py +25 -0
  14. robosystems_client/api/connections/create_connection.py +25 -0
  15. robosystems_client/api/connections/create_link_token.py +25 -0
  16. robosystems_client/api/connections/delete_connection.py +25 -0
  17. robosystems_client/api/connections/exchange_link_token.py +25 -0
  18. robosystems_client/api/connections/get_connection.py +25 -0
  19. robosystems_client/api/connections/get_connection_options.py +25 -0
  20. robosystems_client/api/connections/init_o_auth.py +25 -0
  21. robosystems_client/api/connections/list_connections.py +20 -0
  22. robosystems_client/api/connections/oauth_callback.py +25 -0
  23. robosystems_client/api/connections/sync_connection.py +25 -0
  24. robosystems_client/api/copy/copy_data_to_graph.py +25 -0
  25. robosystems_client/api/create/create_graph.py +25 -0
  26. robosystems_client/api/graph_analytics/get_graph_metrics.py +25 -0
  27. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -0
  28. robosystems_client/api/graph_billing/get_current_graph_bill.py +25 -0
  29. robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -0
  30. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +25 -0
  31. robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -0
  32. robosystems_client/api/graph_credits/check_credit_balance.py +20 -0
  33. robosystems_client/api/graph_credits/check_storage_limits.py +25 -0
  34. robosystems_client/api/graph_credits/get_credit_summary.py +25 -0
  35. robosystems_client/api/graph_credits/get_storage_usage.py +20 -0
  36. robosystems_client/api/graph_credits/list_credit_transactions.py +20 -0
  37. robosystems_client/api/graph_health/get_database_health.py +25 -0
  38. robosystems_client/api/graph_info/get_database_info.py +25 -0
  39. robosystems_client/api/graph_limits/get_graph_limits.py +25 -0
  40. robosystems_client/api/mcp/call_mcp_tool.py +20 -0
  41. robosystems_client/api/mcp/list_mcp_tools.py +25 -0
  42. robosystems_client/api/operations/cancel_operation.py +25 -0
  43. robosystems_client/api/operations/get_operation_status.py +25 -0
  44. robosystems_client/api/operations/stream_operation_events.py +20 -0
  45. robosystems_client/api/query/execute_cypher_query.py +20 -0
  46. robosystems_client/api/schema/export_graph_schema.py +20 -0
  47. robosystems_client/api/schema/get_graph_schema_info.py +25 -0
  48. robosystems_client/api/schema/list_schema_extensions.py +25 -0
  49. robosystems_client/api/schema/validate_schema.py +25 -0
  50. robosystems_client/api/subgraphs/create_subgraph.py +25 -0
  51. robosystems_client/api/subgraphs/delete_subgraph.py +25 -0
  52. robosystems_client/api/subgraphs/get_subgraph_info.py +25 -0
  53. robosystems_client/api/subgraphs/get_subgraph_quota.py +25 -0
  54. robosystems_client/api/subgraphs/list_subgraphs.py +25 -0
  55. robosystems_client/api/user/create_user_api_key.py +25 -0
  56. robosystems_client/api/user/get_all_credit_summaries.py +25 -0
  57. robosystems_client/api/user/get_current_user.py +25 -0
  58. robosystems_client/api/user/get_user_graphs.py +25 -0
  59. robosystems_client/api/user/list_user_api_keys.py +25 -0
  60. robosystems_client/api/user/revoke_user_api_key.py +25 -0
  61. robosystems_client/api/user/select_user_graph.py +25 -0
  62. robosystems_client/api/user/update_user.py +25 -0
  63. robosystems_client/api/user/update_user_api_key.py +25 -0
  64. robosystems_client/api/user/update_user_password.py +25 -0
  65. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -0
  66. robosystems_client/api/user_analytics/get_user_usage_overview.py +25 -0
  67. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +25 -0
  68. robosystems_client/api/user_limits/get_shared_repository_limits.py +25 -0
  69. robosystems_client/api/user_limits/get_user_limits.py +25 -0
  70. robosystems_client/api/user_limits/get_user_usage.py +25 -0
  71. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +25 -0
  72. robosystems_client/api/user_subscriptions/get_repository_credits.py +25 -0
  73. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +25 -0
  74. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -0
  75. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +25 -0
  76. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +25 -0
  77. robosystems_client/extensions/__init__.py +70 -0
  78. robosystems_client/extensions/auth_integration.py +14 -1
  79. robosystems_client/extensions/copy_client.py +32 -22
  80. robosystems_client/extensions/dataframe_utils.py +455 -0
  81. robosystems_client/extensions/extensions.py +16 -0
  82. robosystems_client/extensions/operation_client.py +43 -21
  83. robosystems_client/extensions/query_client.py +109 -12
  84. robosystems_client/extensions/tests/test_dataframe_utils.py +334 -0
  85. robosystems_client/extensions/tests/test_integration.py +1 -1
  86. robosystems_client/extensions/tests/test_token_utils.py +274 -0
  87. robosystems_client/extensions/token_utils.py +417 -0
  88. robosystems_client/extensions/utils.py +32 -2
  89. {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/METADATA +1 -1
  90. {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +92 -88
  91. {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/WHEEL +0 -0
  92. {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/licenses/LICENSE +0 -0
@@ -19,15 +19,28 @@ def _get_kwargs(
19
19
  connection_id: str,
20
20
  *,
21
21
  body: SyncConnectionRequest,
22
+ token: Union[None, Unset, str] = UNSET,
22
23
  authorization: Union[None, Unset, str] = UNSET,
23
24
  ) -> dict[str, Any]:
24
25
  headers: dict[str, Any] = {}
25
26
  if not isinstance(authorization, Unset):
26
27
  headers["authorization"] = authorization
27
28
 
29
+ params: dict[str, Any] = {}
30
+
31
+ json_token: Union[None, Unset, str]
32
+ if isinstance(token, Unset):
33
+ json_token = UNSET
34
+ else:
35
+ json_token = token
36
+ params["token"] = json_token
37
+
38
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
39
+
28
40
  _kwargs: dict[str, Any] = {
29
41
  "method": "post",
30
42
  "url": f"/v1/{graph_id}/connections/{connection_id}/sync",
43
+ "params": params,
31
44
  }
32
45
 
33
46
  _kwargs["json"] = body.to_dict()
@@ -88,6 +101,7 @@ def sync_detailed(
88
101
  *,
89
102
  client: AuthenticatedClient,
90
103
  body: SyncConnectionRequest,
104
+ token: Union[None, Unset, str] = UNSET,
91
105
  authorization: Union[None, Unset, str] = UNSET,
92
106
  ) -> Response[
93
107
  Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
@@ -122,6 +136,7 @@ def sync_detailed(
122
136
  Args:
123
137
  graph_id (str): Graph database identifier
124
138
  connection_id (str): Connection identifier
139
+ token (Union[None, Unset, str]): JWT token for SSE authentication
125
140
  authorization (Union[None, Unset, str]):
126
141
  body (SyncConnectionRequest): Request to sync a connection.
127
142
 
@@ -137,6 +152,7 @@ def sync_detailed(
137
152
  graph_id=graph_id,
138
153
  connection_id=connection_id,
139
154
  body=body,
155
+ token=token,
140
156
  authorization=authorization,
141
157
  )
142
158
 
@@ -153,6 +169,7 @@ def sync(
153
169
  *,
154
170
  client: AuthenticatedClient,
155
171
  body: SyncConnectionRequest,
172
+ token: Union[None, Unset, str] = UNSET,
156
173
  authorization: Union[None, Unset, str] = UNSET,
157
174
  ) -> Optional[
158
175
  Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
@@ -187,6 +204,7 @@ def sync(
187
204
  Args:
188
205
  graph_id (str): Graph database identifier
189
206
  connection_id (str): Connection identifier
207
+ token (Union[None, Unset, str]): JWT token for SSE authentication
190
208
  authorization (Union[None, Unset, str]):
191
209
  body (SyncConnectionRequest): Request to sync a connection.
192
210
 
@@ -203,6 +221,7 @@ def sync(
203
221
  connection_id=connection_id,
204
222
  client=client,
205
223
  body=body,
224
+ token=token,
206
225
  authorization=authorization,
207
226
  ).parsed
208
227
 
@@ -213,6 +232,7 @@ async def asyncio_detailed(
213
232
  *,
214
233
  client: AuthenticatedClient,
215
234
  body: SyncConnectionRequest,
235
+ token: Union[None, Unset, str] = UNSET,
216
236
  authorization: Union[None, Unset, str] = UNSET,
217
237
  ) -> Response[
218
238
  Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
@@ -247,6 +267,7 @@ async def asyncio_detailed(
247
267
  Args:
248
268
  graph_id (str): Graph database identifier
249
269
  connection_id (str): Connection identifier
270
+ token (Union[None, Unset, str]): JWT token for SSE authentication
250
271
  authorization (Union[None, Unset, str]):
251
272
  body (SyncConnectionRequest): Request to sync a connection.
252
273
 
@@ -262,6 +283,7 @@ async def asyncio_detailed(
262
283
  graph_id=graph_id,
263
284
  connection_id=connection_id,
264
285
  body=body,
286
+ token=token,
265
287
  authorization=authorization,
266
288
  )
267
289
 
@@ -276,6 +298,7 @@ async def asyncio(
276
298
  *,
277
299
  client: AuthenticatedClient,
278
300
  body: SyncConnectionRequest,
301
+ token: Union[None, Unset, str] = UNSET,
279
302
  authorization: Union[None, Unset, str] = UNSET,
280
303
  ) -> Optional[
281
304
  Union[ErrorResponse, HTTPValidationError, SyncConnectionResponseSyncconnection]
@@ -310,6 +333,7 @@ async def asyncio(
310
333
  Args:
311
334
  graph_id (str): Graph database identifier
312
335
  connection_id (str): Connection identifier
336
+ token (Union[None, Unset, str]): JWT token for SSE authentication
313
337
  authorization (Union[None, Unset, str]):
314
338
  body (SyncConnectionRequest): Request to sync a connection.
315
339
 
@@ -327,6 +351,7 @@ async def asyncio(
327
351
  connection_id=connection_id,
328
352
  client=client,
329
353
  body=body,
354
+ token=token,
330
355
  authorization=authorization,
331
356
  )
332
357
  ).parsed
@@ -17,15 +17,28 @@ def _get_kwargs(
17
17
  graph_id: str,
18
18
  *,
19
19
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
20
+ token: Union[None, Unset, str] = UNSET,
20
21
  authorization: Union[None, Unset, str] = UNSET,
21
22
  ) -> dict[str, Any]:
22
23
  headers: dict[str, Any] = {}
23
24
  if not isinstance(authorization, Unset):
24
25
  headers["authorization"] = authorization
25
26
 
27
+ params: dict[str, Any] = {}
28
+
29
+ json_token: Union[None, Unset, str]
30
+ if isinstance(token, Unset):
31
+ json_token = UNSET
32
+ else:
33
+ json_token = token
34
+ params["token"] = json_token
35
+
36
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
37
+
26
38
  _kwargs: dict[str, Any] = {
27
39
  "method": "post",
28
40
  "url": f"/v1/{graph_id}/copy",
41
+ "params": params,
29
42
  }
30
43
 
31
44
  _kwargs["json"]: dict[str, Any]
@@ -96,6 +109,7 @@ def sync_detailed(
96
109
  *,
97
110
  client: AuthenticatedClient,
98
111
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
112
+ token: Union[None, Unset, str] = UNSET,
99
113
  authorization: Union[None, Unset, str] = UNSET,
100
114
  ) -> Response[Union[Any, CopyResponse, HTTPValidationError]]:
101
115
  """Copy Data to Graph
@@ -162,6 +176,7 @@ def sync_detailed(
162
176
  Args:
163
177
  graph_id (str): Target graph identifier (user graphs only - shared repositories not
164
178
  allowed)
179
+ token (Union[None, Unset, str]): JWT token for SSE authentication
165
180
  authorization (Union[None, Unset, str]):
166
181
  body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
167
182
 
@@ -176,6 +191,7 @@ def sync_detailed(
176
191
  kwargs = _get_kwargs(
177
192
  graph_id=graph_id,
178
193
  body=body,
194
+ token=token,
179
195
  authorization=authorization,
180
196
  )
181
197
 
@@ -191,6 +207,7 @@ def sync(
191
207
  *,
192
208
  client: AuthenticatedClient,
193
209
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
210
+ token: Union[None, Unset, str] = UNSET,
194
211
  authorization: Union[None, Unset, str] = UNSET,
195
212
  ) -> Optional[Union[Any, CopyResponse, HTTPValidationError]]:
196
213
  """Copy Data to Graph
@@ -257,6 +274,7 @@ def sync(
257
274
  Args:
258
275
  graph_id (str): Target graph identifier (user graphs only - shared repositories not
259
276
  allowed)
277
+ token (Union[None, Unset, str]): JWT token for SSE authentication
260
278
  authorization (Union[None, Unset, str]):
261
279
  body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
262
280
 
@@ -272,6 +290,7 @@ def sync(
272
290
  graph_id=graph_id,
273
291
  client=client,
274
292
  body=body,
293
+ token=token,
275
294
  authorization=authorization,
276
295
  ).parsed
277
296
 
@@ -281,6 +300,7 @@ async def asyncio_detailed(
281
300
  *,
282
301
  client: AuthenticatedClient,
283
302
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
303
+ token: Union[None, Unset, str] = UNSET,
284
304
  authorization: Union[None, Unset, str] = UNSET,
285
305
  ) -> Response[Union[Any, CopyResponse, HTTPValidationError]]:
286
306
  """Copy Data to Graph
@@ -347,6 +367,7 @@ async def asyncio_detailed(
347
367
  Args:
348
368
  graph_id (str): Target graph identifier (user graphs only - shared repositories not
349
369
  allowed)
370
+ token (Union[None, Unset, str]): JWT token for SSE authentication
350
371
  authorization (Union[None, Unset, str]):
351
372
  body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
352
373
 
@@ -361,6 +382,7 @@ async def asyncio_detailed(
361
382
  kwargs = _get_kwargs(
362
383
  graph_id=graph_id,
363
384
  body=body,
385
+ token=token,
364
386
  authorization=authorization,
365
387
  )
366
388
 
@@ -374,6 +396,7 @@ async def asyncio(
374
396
  *,
375
397
  client: AuthenticatedClient,
376
398
  body: Union["DataFrameCopyRequest", "S3CopyRequest", "URLCopyRequest"],
399
+ token: Union[None, Unset, str] = UNSET,
377
400
  authorization: Union[None, Unset, str] = UNSET,
378
401
  ) -> Optional[Union[Any, CopyResponse, HTTPValidationError]]:
379
402
  """Copy Data to Graph
@@ -440,6 +463,7 @@ async def asyncio(
440
463
  Args:
441
464
  graph_id (str): Target graph identifier (user graphs only - shared repositories not
442
465
  allowed)
466
+ token (Union[None, Unset, str]): JWT token for SSE authentication
443
467
  authorization (Union[None, Unset, str]):
444
468
  body (Union['DataFrameCopyRequest', 'S3CopyRequest', 'URLCopyRequest']):
445
469
 
@@ -456,6 +480,7 @@ async def asyncio(
456
480
  graph_id=graph_id,
457
481
  client=client,
458
482
  body=body,
483
+ token=token,
459
484
  authorization=authorization,
460
485
  )
461
486
  ).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
36
  "url": "/v1/create/graph",
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
@@ -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": "get",
25
37
  "url": f"/v1/{graph_id}/analytics",
38
+ "params": params,
26
39
  }
27
40
 
28
41
  _kwargs["headers"] = headers
@@ -73,6 +86,7 @@ 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, GraphMetricsResponse, HTTPValidationError]]:
78
92
  """Get Graph Metrics
@@ -97,6 +111,7 @@ def sync_detailed(
97
111
 
98
112
  Args:
99
113
  graph_id (str): The graph ID to get metrics for
114
+ token (Union[None, Unset, str]): JWT token for SSE authentication
100
115
  authorization (Union[None, Unset, str]):
101
116
 
102
117
  Raises:
@@ -109,6 +124,7 @@ def sync_detailed(
109
124
 
110
125
  kwargs = _get_kwargs(
111
126
  graph_id=graph_id,
127
+ token=token,
112
128
  authorization=authorization,
113
129
  )
114
130
 
@@ -123,6 +139,7 @@ def sync(
123
139
  graph_id: str,
124
140
  *,
125
141
  client: AuthenticatedClient,
142
+ token: Union[None, Unset, str] = UNSET,
126
143
  authorization: Union[None, Unset, str] = UNSET,
127
144
  ) -> Optional[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
128
145
  """Get Graph Metrics
@@ -147,6 +164,7 @@ def sync(
147
164
 
148
165
  Args:
149
166
  graph_id (str): The graph ID to get metrics for
167
+ token (Union[None, Unset, str]): JWT token for SSE authentication
150
168
  authorization (Union[None, Unset, str]):
151
169
 
152
170
  Raises:
@@ -160,6 +178,7 @@ def sync(
160
178
  return sync_detailed(
161
179
  graph_id=graph_id,
162
180
  client=client,
181
+ token=token,
163
182
  authorization=authorization,
164
183
  ).parsed
165
184
 
@@ -168,6 +187,7 @@ async def asyncio_detailed(
168
187
  graph_id: str,
169
188
  *,
170
189
  client: AuthenticatedClient,
190
+ token: Union[None, Unset, str] = UNSET,
171
191
  authorization: Union[None, Unset, str] = UNSET,
172
192
  ) -> Response[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
173
193
  """Get Graph Metrics
@@ -192,6 +212,7 @@ async def asyncio_detailed(
192
212
 
193
213
  Args:
194
214
  graph_id (str): The graph ID to get metrics for
215
+ token (Union[None, Unset, str]): JWT token for SSE authentication
195
216
  authorization (Union[None, Unset, str]):
196
217
 
197
218
  Raises:
@@ -204,6 +225,7 @@ async def asyncio_detailed(
204
225
 
205
226
  kwargs = _get_kwargs(
206
227
  graph_id=graph_id,
228
+ token=token,
207
229
  authorization=authorization,
208
230
  )
209
231
 
@@ -216,6 +238,7 @@ async def asyncio(
216
238
  graph_id: str,
217
239
  *,
218
240
  client: AuthenticatedClient,
241
+ token: Union[None, Unset, str] = UNSET,
219
242
  authorization: Union[None, Unset, str] = UNSET,
220
243
  ) -> Optional[Union[ErrorResponse, GraphMetricsResponse, HTTPValidationError]]:
221
244
  """Get Graph Metrics
@@ -240,6 +263,7 @@ async def asyncio(
240
263
 
241
264
  Args:
242
265
  graph_id (str): The graph ID to get metrics for
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,6 +15,7 @@ def _get_kwargs(
15
15
  graph_id: str,
16
16
  *,
17
17
  include_details: Union[Unset, bool] = False,
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] = {}
@@ -25,6 +26,13 @@ def _get_kwargs(
25
26
 
26
27
  params["include_details"] = include_details
27
28
 
29
+ json_token: Union[None, Unset, str]
30
+ if isinstance(token, Unset):
31
+ json_token = UNSET
32
+ else:
33
+ json_token = token
34
+ params["token"] = json_token
35
+
28
36
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
29
37
 
30
38
  _kwargs: dict[str, Any] = {
@@ -78,6 +86,7 @@ def sync_detailed(
78
86
  *,
79
87
  client: AuthenticatedClient,
80
88
  include_details: Union[Unset, bool] = False,
89
+ token: Union[None, Unset, str] = UNSET,
81
90
  authorization: Union[None, Unset, str] = UNSET,
82
91
  ) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
83
92
  """Get Usage Statistics
@@ -110,6 +119,7 @@ def sync_detailed(
110
119
  graph_id (str): The graph ID to get usage stats for
111
120
  include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
112
121
  False.
122
+ token (Union[None, Unset, str]): JWT token for SSE authentication
113
123
  authorization (Union[None, Unset, str]):
114
124
 
115
125
  Raises:
@@ -123,6 +133,7 @@ def sync_detailed(
123
133
  kwargs = _get_kwargs(
124
134
  graph_id=graph_id,
125
135
  include_details=include_details,
136
+ token=token,
126
137
  authorization=authorization,
127
138
  )
128
139
 
@@ -138,6 +149,7 @@ def sync(
138
149
  *,
139
150
  client: AuthenticatedClient,
140
151
  include_details: Union[Unset, bool] = False,
152
+ token: Union[None, Unset, str] = UNSET,
141
153
  authorization: Union[None, Unset, str] = UNSET,
142
154
  ) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
143
155
  """Get Usage Statistics
@@ -170,6 +182,7 @@ def sync(
170
182
  graph_id (str): The graph ID to get usage stats for
171
183
  include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
172
184
  False.
185
+ token (Union[None, Unset, str]): JWT token for SSE authentication
173
186
  authorization (Union[None, Unset, str]):
174
187
 
175
188
  Raises:
@@ -184,6 +197,7 @@ def sync(
184
197
  graph_id=graph_id,
185
198
  client=client,
186
199
  include_details=include_details,
200
+ token=token,
187
201
  authorization=authorization,
188
202
  ).parsed
189
203
 
@@ -193,6 +207,7 @@ async def asyncio_detailed(
193
207
  *,
194
208
  client: AuthenticatedClient,
195
209
  include_details: Union[Unset, bool] = False,
210
+ token: Union[None, Unset, str] = UNSET,
196
211
  authorization: Union[None, Unset, str] = UNSET,
197
212
  ) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
198
213
  """Get Usage Statistics
@@ -225,6 +240,7 @@ async def asyncio_detailed(
225
240
  graph_id (str): The graph ID to get usage stats for
226
241
  include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
227
242
  False.
243
+ token (Union[None, Unset, str]): JWT token for SSE authentication
228
244
  authorization (Union[None, Unset, str]):
229
245
 
230
246
  Raises:
@@ -238,6 +254,7 @@ async def asyncio_detailed(
238
254
  kwargs = _get_kwargs(
239
255
  graph_id=graph_id,
240
256
  include_details=include_details,
257
+ token=token,
241
258
  authorization=authorization,
242
259
  )
243
260
 
@@ -251,6 +268,7 @@ async def asyncio(
251
268
  *,
252
269
  client: AuthenticatedClient,
253
270
  include_details: Union[Unset, bool] = False,
271
+ token: Union[None, Unset, str] = UNSET,
254
272
  authorization: Union[None, Unset, str] = UNSET,
255
273
  ) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
256
274
  """Get Usage Statistics
@@ -283,6 +301,7 @@ async def asyncio(
283
301
  graph_id (str): The graph ID to get usage stats for
284
302
  include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
285
303
  False.
304
+ token (Union[None, Unset, str]): JWT token for SSE authentication
286
305
  authorization (Union[None, Unset, str]):
287
306
 
288
307
  Raises:
@@ -298,6 +317,7 @@ async def asyncio(
298
317
  graph_id=graph_id,
299
318
  client=client,
300
319
  include_details=include_details,
320
+ token=token,
301
321
  authorization=authorization,
302
322
  )
303
323
  ).parsed