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
@@ -14,15 +14,28 @@ from ...types import UNSET, Response, Unset
14
14
  def _get_kwargs(
15
15
  *,
16
16
  body: UpdateUserRequest,
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": "put",
25
37
  "url": "/v1/user",
38
+ "params": params,
26
39
  }
27
40
 
28
41
  _kwargs["json"] = body.to_dict()
@@ -65,6 +78,7 @@ def sync_detailed(
65
78
  *,
66
79
  client: AuthenticatedClient,
67
80
  body: UpdateUserRequest,
81
+ token: Union[None, Unset, str] = UNSET,
68
82
  authorization: Union[None, Unset, str] = UNSET,
69
83
  ) -> Response[Union[HTTPValidationError, UserResponse]]:
70
84
  """Update User Profile
@@ -72,6 +86,7 @@ def sync_detailed(
72
86
  Update the current user's profile information.
73
87
 
74
88
  Args:
89
+ token (Union[None, Unset, str]): JWT token for SSE authentication
75
90
  authorization (Union[None, Unset, str]):
76
91
  body (UpdateUserRequest): Request model for updating user profile.
77
92
 
@@ -85,6 +100,7 @@ def sync_detailed(
85
100
 
86
101
  kwargs = _get_kwargs(
87
102
  body=body,
103
+ token=token,
88
104
  authorization=authorization,
89
105
  )
90
106
 
@@ -99,6 +115,7 @@ def sync(
99
115
  *,
100
116
  client: AuthenticatedClient,
101
117
  body: UpdateUserRequest,
118
+ token: Union[None, Unset, str] = UNSET,
102
119
  authorization: Union[None, Unset, str] = UNSET,
103
120
  ) -> Optional[Union[HTTPValidationError, UserResponse]]:
104
121
  """Update User Profile
@@ -106,6 +123,7 @@ def sync(
106
123
  Update the current user's profile information.
107
124
 
108
125
  Args:
126
+ token (Union[None, Unset, str]): JWT token for SSE authentication
109
127
  authorization (Union[None, Unset, str]):
110
128
  body (UpdateUserRequest): Request model for updating user profile.
111
129
 
@@ -120,6 +138,7 @@ def sync(
120
138
  return sync_detailed(
121
139
  client=client,
122
140
  body=body,
141
+ token=token,
123
142
  authorization=authorization,
124
143
  ).parsed
125
144
 
@@ -128,6 +147,7 @@ async def asyncio_detailed(
128
147
  *,
129
148
  client: AuthenticatedClient,
130
149
  body: UpdateUserRequest,
150
+ token: Union[None, Unset, str] = UNSET,
131
151
  authorization: Union[None, Unset, str] = UNSET,
132
152
  ) -> Response[Union[HTTPValidationError, UserResponse]]:
133
153
  """Update User Profile
@@ -135,6 +155,7 @@ async def asyncio_detailed(
135
155
  Update the current user's profile information.
136
156
 
137
157
  Args:
158
+ token (Union[None, Unset, str]): JWT token for SSE authentication
138
159
  authorization (Union[None, Unset, str]):
139
160
  body (UpdateUserRequest): Request model for updating user profile.
140
161
 
@@ -148,6 +169,7 @@ async def asyncio_detailed(
148
169
 
149
170
  kwargs = _get_kwargs(
150
171
  body=body,
172
+ token=token,
151
173
  authorization=authorization,
152
174
  )
153
175
 
@@ -160,6 +182,7 @@ async def asyncio(
160
182
  *,
161
183
  client: AuthenticatedClient,
162
184
  body: UpdateUserRequest,
185
+ token: Union[None, Unset, str] = UNSET,
163
186
  authorization: Union[None, Unset, str] = UNSET,
164
187
  ) -> Optional[Union[HTTPValidationError, UserResponse]]:
165
188
  """Update User Profile
@@ -167,6 +190,7 @@ async def asyncio(
167
190
  Update the current user's profile information.
168
191
 
169
192
  Args:
193
+ token (Union[None, Unset, str]): JWT token for SSE authentication
170
194
  authorization (Union[None, Unset, str]):
171
195
  body (UpdateUserRequest): Request model for updating user profile.
172
196
 
@@ -182,6 +206,7 @@ async def asyncio(
182
206
  await asyncio_detailed(
183
207
  client=client,
184
208
  body=body,
209
+ token=token,
185
210
  authorization=authorization,
186
211
  )
187
212
  ).parsed
@@ -15,15 +15,28 @@ def _get_kwargs(
15
15
  api_key_id: str,
16
16
  *,
17
17
  body: UpdateAPIKeyRequest,
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": "put",
26
38
  "url": f"/v1/user/api-keys/{api_key_id}",
39
+ "params": params,
27
40
  }
28
41
 
29
42
  _kwargs["json"] = body.to_dict()
@@ -67,6 +80,7 @@ def sync_detailed(
67
80
  *,
68
81
  client: AuthenticatedClient,
69
82
  body: UpdateAPIKeyRequest,
83
+ token: Union[None, Unset, str] = UNSET,
70
84
  authorization: Union[None, Unset, str] = UNSET,
71
85
  ) -> Response[Union[APIKeyInfo, HTTPValidationError]]:
72
86
  """Update API Key
@@ -75,6 +89,7 @@ def sync_detailed(
75
89
 
76
90
  Args:
77
91
  api_key_id (str):
92
+ token (Union[None, Unset, str]): JWT token for SSE authentication
78
93
  authorization (Union[None, Unset, str]):
79
94
  body (UpdateAPIKeyRequest): Request model for updating an API key.
80
95
 
@@ -89,6 +104,7 @@ def sync_detailed(
89
104
  kwargs = _get_kwargs(
90
105
  api_key_id=api_key_id,
91
106
  body=body,
107
+ token=token,
92
108
  authorization=authorization,
93
109
  )
94
110
 
@@ -104,6 +120,7 @@ def sync(
104
120
  *,
105
121
  client: AuthenticatedClient,
106
122
  body: UpdateAPIKeyRequest,
123
+ token: Union[None, Unset, str] = UNSET,
107
124
  authorization: Union[None, Unset, str] = UNSET,
108
125
  ) -> Optional[Union[APIKeyInfo, HTTPValidationError]]:
109
126
  """Update API Key
@@ -112,6 +129,7 @@ def sync(
112
129
 
113
130
  Args:
114
131
  api_key_id (str):
132
+ token (Union[None, Unset, str]): JWT token for SSE authentication
115
133
  authorization (Union[None, Unset, str]):
116
134
  body (UpdateAPIKeyRequest): Request model for updating an API key.
117
135
 
@@ -127,6 +145,7 @@ def sync(
127
145
  api_key_id=api_key_id,
128
146
  client=client,
129
147
  body=body,
148
+ token=token,
130
149
  authorization=authorization,
131
150
  ).parsed
132
151
 
@@ -136,6 +155,7 @@ async def asyncio_detailed(
136
155
  *,
137
156
  client: AuthenticatedClient,
138
157
  body: UpdateAPIKeyRequest,
158
+ token: Union[None, Unset, str] = UNSET,
139
159
  authorization: Union[None, Unset, str] = UNSET,
140
160
  ) -> Response[Union[APIKeyInfo, HTTPValidationError]]:
141
161
  """Update API Key
@@ -144,6 +164,7 @@ async def asyncio_detailed(
144
164
 
145
165
  Args:
146
166
  api_key_id (str):
167
+ token (Union[None, Unset, str]): JWT token for SSE authentication
147
168
  authorization (Union[None, Unset, str]):
148
169
  body (UpdateAPIKeyRequest): Request model for updating an API key.
149
170
 
@@ -158,6 +179,7 @@ async def asyncio_detailed(
158
179
  kwargs = _get_kwargs(
159
180
  api_key_id=api_key_id,
160
181
  body=body,
182
+ token=token,
161
183
  authorization=authorization,
162
184
  )
163
185
 
@@ -171,6 +193,7 @@ async def asyncio(
171
193
  *,
172
194
  client: AuthenticatedClient,
173
195
  body: UpdateAPIKeyRequest,
196
+ token: Union[None, Unset, str] = UNSET,
174
197
  authorization: Union[None, Unset, str] = UNSET,
175
198
  ) -> Optional[Union[APIKeyInfo, HTTPValidationError]]:
176
199
  """Update API Key
@@ -179,6 +202,7 @@ async def asyncio(
179
202
 
180
203
  Args:
181
204
  api_key_id (str):
205
+ token (Union[None, Unset, str]): JWT token for SSE authentication
182
206
  authorization (Union[None, Unset, str]):
183
207
  body (UpdateAPIKeyRequest): Request model for updating an API key.
184
208
 
@@ -195,6 +219,7 @@ async def asyncio(
195
219
  api_key_id=api_key_id,
196
220
  client=client,
197
221
  body=body,
222
+ token=token,
198
223
  authorization=authorization,
199
224
  )
200
225
  ).parsed
@@ -15,15 +15,28 @@ from ...types import UNSET, Response, Unset
15
15
  def _get_kwargs(
16
16
  *,
17
17
  body: UpdatePasswordRequest,
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": "put",
26
38
  "url": "/v1/user/password",
39
+ "params": params,
27
40
  }
28
41
 
29
42
  _kwargs["json"] = body.to_dict()
@@ -78,6 +91,7 @@ def sync_detailed(
78
91
  *,
79
92
  client: AuthenticatedClient,
80
93
  body: UpdatePasswordRequest,
94
+ token: Union[None, Unset, str] = UNSET,
81
95
  authorization: Union[None, Unset, str] = UNSET,
82
96
  ) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
83
97
  """Update Password
@@ -85,6 +99,7 @@ def sync_detailed(
85
99
  Update the current user's password.
86
100
 
87
101
  Args:
102
+ token (Union[None, Unset, str]): JWT token for SSE authentication
88
103
  authorization (Union[None, Unset, str]):
89
104
  body (UpdatePasswordRequest): Request model for updating user password.
90
105
 
@@ -98,6 +113,7 @@ def sync_detailed(
98
113
 
99
114
  kwargs = _get_kwargs(
100
115
  body=body,
116
+ token=token,
101
117
  authorization=authorization,
102
118
  )
103
119
 
@@ -112,6 +128,7 @@ def sync(
112
128
  *,
113
129
  client: AuthenticatedClient,
114
130
  body: UpdatePasswordRequest,
131
+ token: Union[None, Unset, str] = UNSET,
115
132
  authorization: Union[None, Unset, str] = UNSET,
116
133
  ) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
117
134
  """Update Password
@@ -119,6 +136,7 @@ def sync(
119
136
  Update the current user's password.
120
137
 
121
138
  Args:
139
+ token (Union[None, Unset, str]): JWT token for SSE authentication
122
140
  authorization (Union[None, Unset, str]):
123
141
  body (UpdatePasswordRequest): Request model for updating user password.
124
142
 
@@ -133,6 +151,7 @@ def sync(
133
151
  return sync_detailed(
134
152
  client=client,
135
153
  body=body,
154
+ token=token,
136
155
  authorization=authorization,
137
156
  ).parsed
138
157
 
@@ -141,6 +160,7 @@ async def asyncio_detailed(
141
160
  *,
142
161
  client: AuthenticatedClient,
143
162
  body: UpdatePasswordRequest,
163
+ token: Union[None, Unset, str] = UNSET,
144
164
  authorization: Union[None, Unset, str] = UNSET,
145
165
  ) -> Response[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
146
166
  """Update Password
@@ -148,6 +168,7 @@ async def asyncio_detailed(
148
168
  Update the current user's password.
149
169
 
150
170
  Args:
171
+ token (Union[None, Unset, str]): JWT token for SSE authentication
151
172
  authorization (Union[None, Unset, str]):
152
173
  body (UpdatePasswordRequest): Request model for updating user password.
153
174
 
@@ -161,6 +182,7 @@ async def asyncio_detailed(
161
182
 
162
183
  kwargs = _get_kwargs(
163
184
  body=body,
185
+ token=token,
164
186
  authorization=authorization,
165
187
  )
166
188
 
@@ -173,6 +195,7 @@ async def asyncio(
173
195
  *,
174
196
  client: AuthenticatedClient,
175
197
  body: UpdatePasswordRequest,
198
+ token: Union[None, Unset, str] = UNSET,
176
199
  authorization: Union[None, Unset, str] = UNSET,
177
200
  ) -> Optional[Union[ErrorResponse, HTTPValidationError, SuccessResponse]]:
178
201
  """Update Password
@@ -180,6 +203,7 @@ async def asyncio(
180
203
  Update the current user's password.
181
204
 
182
205
  Args:
206
+ token (Union[None, Unset, str]): JWT token for SSE authentication
183
207
  authorization (Union[None, Unset, str]):
184
208
  body (UpdatePasswordRequest): Request model for updating user password.
185
209
 
@@ -195,6 +219,7 @@ async def asyncio(
195
219
  await asyncio_detailed(
196
220
  client=client,
197
221
  body=body,
222
+ token=token,
198
223
  authorization=authorization,
199
224
  )
200
225
  ).parsed
@@ -14,6 +14,7 @@ def _get_kwargs(
14
14
  *,
15
15
  include_api_stats: Union[Unset, bool] = True,
16
16
  include_recent_activity: Union[Unset, bool] = True,
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] = {}
@@ -26,6 +27,13 @@ def _get_kwargs(
26
27
 
27
28
  params["include_recent_activity"] = include_recent_activity
28
29
 
30
+ json_token: Union[None, Unset, str]
31
+ if isinstance(token, Unset):
32
+ json_token = UNSET
33
+ else:
34
+ json_token = token
35
+ params["token"] = json_token
36
+
29
37
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
30
38
 
31
39
  _kwargs: dict[str, Any] = {
@@ -71,6 +79,7 @@ def sync_detailed(
71
79
  client: AuthenticatedClient,
72
80
  include_api_stats: Union[Unset, bool] = True,
73
81
  include_recent_activity: Union[Unset, bool] = True,
82
+ token: Union[None, Unset, str] = UNSET,
74
83
  authorization: Union[None, Unset, str] = UNSET,
75
84
  ) -> Response[Union[HTTPValidationError, UserAnalyticsResponse]]:
76
85
  """Get Detailed User Analytics
@@ -80,6 +89,7 @@ def sync_detailed(
80
89
  Args:
81
90
  include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
82
91
  include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
92
+ token (Union[None, Unset, str]): JWT token for SSE authentication
83
93
  authorization (Union[None, Unset, str]):
84
94
 
85
95
  Raises:
@@ -93,6 +103,7 @@ def sync_detailed(
93
103
  kwargs = _get_kwargs(
94
104
  include_api_stats=include_api_stats,
95
105
  include_recent_activity=include_recent_activity,
106
+ token=token,
96
107
  authorization=authorization,
97
108
  )
98
109
 
@@ -108,6 +119,7 @@ def sync(
108
119
  client: AuthenticatedClient,
109
120
  include_api_stats: Union[Unset, bool] = True,
110
121
  include_recent_activity: Union[Unset, bool] = True,
122
+ token: Union[None, Unset, str] = UNSET,
111
123
  authorization: Union[None, Unset, str] = UNSET,
112
124
  ) -> Optional[Union[HTTPValidationError, UserAnalyticsResponse]]:
113
125
  """Get Detailed User Analytics
@@ -117,6 +129,7 @@ def sync(
117
129
  Args:
118
130
  include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
119
131
  include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
132
+ token (Union[None, Unset, str]): JWT token for SSE authentication
120
133
  authorization (Union[None, Unset, str]):
121
134
 
122
135
  Raises:
@@ -131,6 +144,7 @@ def sync(
131
144
  client=client,
132
145
  include_api_stats=include_api_stats,
133
146
  include_recent_activity=include_recent_activity,
147
+ token=token,
134
148
  authorization=authorization,
135
149
  ).parsed
136
150
 
@@ -140,6 +154,7 @@ async def asyncio_detailed(
140
154
  client: AuthenticatedClient,
141
155
  include_api_stats: Union[Unset, bool] = True,
142
156
  include_recent_activity: Union[Unset, bool] = True,
157
+ token: Union[None, Unset, str] = UNSET,
143
158
  authorization: Union[None, Unset, str] = UNSET,
144
159
  ) -> Response[Union[HTTPValidationError, UserAnalyticsResponse]]:
145
160
  """Get Detailed User Analytics
@@ -149,6 +164,7 @@ async def asyncio_detailed(
149
164
  Args:
150
165
  include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
151
166
  include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
167
+ token (Union[None, Unset, str]): JWT token for SSE authentication
152
168
  authorization (Union[None, Unset, str]):
153
169
 
154
170
  Raises:
@@ -162,6 +178,7 @@ async def asyncio_detailed(
162
178
  kwargs = _get_kwargs(
163
179
  include_api_stats=include_api_stats,
164
180
  include_recent_activity=include_recent_activity,
181
+ token=token,
165
182
  authorization=authorization,
166
183
  )
167
184
 
@@ -175,6 +192,7 @@ async def asyncio(
175
192
  client: AuthenticatedClient,
176
193
  include_api_stats: Union[Unset, bool] = True,
177
194
  include_recent_activity: Union[Unset, bool] = True,
195
+ token: Union[None, Unset, str] = UNSET,
178
196
  authorization: Union[None, Unset, str] = UNSET,
179
197
  ) -> Optional[Union[HTTPValidationError, UserAnalyticsResponse]]:
180
198
  """Get Detailed User Analytics
@@ -184,6 +202,7 @@ async def asyncio(
184
202
  Args:
185
203
  include_api_stats (Union[Unset, bool]): Include API usage statistics Default: True.
186
204
  include_recent_activity (Union[Unset, bool]): Include recent activity Default: True.
205
+ token (Union[None, Unset, str]): JWT token for SSE authentication
187
206
  authorization (Union[None, Unset, str]):
188
207
 
189
208
  Raises:
@@ -199,6 +218,7 @@ async def asyncio(
199
218
  client=client,
200
219
  include_api_stats=include_api_stats,
201
220
  include_recent_activity=include_recent_activity,
221
+ token=token,
202
222
  authorization=authorization,
203
223
  )
204
224
  ).parsed
@@ -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
35
  "url": "/v1/user/analytics/overview",
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, UserUsageSummaryResponse]]:
63
77
  """Get User Usage Overview
@@ -65,6 +79,7 @@ def sync_detailed(
65
79
  Get a high-level overview of usage statistics for 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, UserUsageSummaryResponse]]:
94
111
  """Get User Usage Overview
@@ -96,6 +113,7 @@ def sync(
96
113
  Get a high-level overview of usage statistics for 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, UserUsageSummaryResponse]]:
120
140
  """Get User Usage Overview
@@ -122,6 +142,7 @@ async def asyncio_detailed(
122
142
  Get a high-level overview of usage statistics for 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, UserUsageSummaryResponse]]:
149
172
  """Get User Usage Overview
@@ -151,6 +174,7 @@ async def asyncio(
151
174
  Get a high-level overview of usage statistics for 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