robosystems-client 0.1.16__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 (109) hide show
  1. robosystems_client/__init__.py +15 -4
  2. robosystems_client/api/agent/auto_select_agent.py +24 -17
  3. robosystems_client/api/agent/batch_process_queries.py +24 -17
  4. robosystems_client/api/agent/execute_specific_agent.py +24 -17
  5. robosystems_client/api/agent/get_agent_metadata.py +24 -17
  6. robosystems_client/api/agent/list_agents.py +20 -18
  7. robosystems_client/api/agent/recommend_agent.py +24 -17
  8. robosystems_client/api/auth/forgot_password.py +191 -0
  9. robosystems_client/api/auth/generate_sso_token.py +18 -0
  10. robosystems_client/api/auth/get_current_auth_user.py +4 -22
  11. robosystems_client/api/auth/logout_user.py +17 -17
  12. robosystems_client/api/auth/{refresh_session.py → refresh_auth_session.py} +21 -21
  13. robosystems_client/api/auth/resend_verification_email.py +222 -0
  14. robosystems_client/api/auth/reset_password.py +177 -0
  15. robosystems_client/api/auth/validate_reset_token.py +171 -0
  16. robosystems_client/api/auth/verify_email.py +177 -0
  17. robosystems_client/api/backup/create_backup.py +24 -17
  18. robosystems_client/api/backup/export_backup.py +24 -17
  19. robosystems_client/api/backup/get_backup_download_url.py +20 -18
  20. robosystems_client/api/backup/get_backup_stats.py +24 -17
  21. robosystems_client/api/backup/list_backups.py +20 -18
  22. robosystems_client/api/backup/restore_backup.py +24 -17
  23. robosystems_client/api/connections/create_connection.py +24 -17
  24. robosystems_client/api/connections/create_link_token.py +24 -17
  25. robosystems_client/api/connections/delete_connection.py +24 -17
  26. robosystems_client/api/connections/exchange_link_token.py +24 -17
  27. robosystems_client/api/connections/get_connection.py +24 -17
  28. robosystems_client/api/connections/get_connection_options.py +24 -17
  29. robosystems_client/api/connections/init_o_auth.py +24 -17
  30. robosystems_client/api/connections/list_connections.py +20 -18
  31. robosystems_client/api/connections/oauth_callback.py +28 -21
  32. robosystems_client/api/connections/sync_connection.py +24 -17
  33. robosystems_client/api/copy/copy_data_to_graph.py +24 -17
  34. robosystems_client/api/create/create_graph.py +24 -17
  35. robosystems_client/api/graph_analytics/get_graph_metrics.py +24 -17
  36. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -18
  37. robosystems_client/api/graph_billing/get_current_graph_bill.py +24 -17
  38. robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -18
  39. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +24 -17
  40. robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -18
  41. robosystems_client/api/graph_credits/check_credit_balance.py +20 -18
  42. robosystems_client/api/graph_credits/check_storage_limits.py +24 -17
  43. robosystems_client/api/graph_credits/get_credit_summary.py +24 -17
  44. robosystems_client/api/graph_credits/get_storage_usage.py +20 -18
  45. robosystems_client/api/graph_credits/list_credit_transactions.py +20 -18
  46. robosystems_client/api/graph_health/get_database_health.py +24 -17
  47. robosystems_client/api/graph_info/get_database_info.py +24 -17
  48. robosystems_client/api/graph_limits/get_graph_limits.py +24 -17
  49. robosystems_client/api/mcp/call_mcp_tool.py +20 -18
  50. robosystems_client/api/mcp/list_mcp_tools.py +24 -17
  51. robosystems_client/api/operations/cancel_operation.py +24 -17
  52. robosystems_client/api/operations/get_operation_status.py +24 -17
  53. robosystems_client/api/operations/stream_operation_events.py +20 -18
  54. robosystems_client/api/query/execute_cypher_query.py +20 -18
  55. robosystems_client/api/schema/export_graph_schema.py +20 -18
  56. robosystems_client/api/schema/get_graph_schema_info.py +24 -17
  57. robosystems_client/api/schema/list_schema_extensions.py +24 -17
  58. robosystems_client/api/schema/validate_schema.py +24 -17
  59. robosystems_client/api/subgraphs/create_subgraph.py +24 -17
  60. robosystems_client/api/subgraphs/delete_subgraph.py +24 -17
  61. robosystems_client/api/subgraphs/get_subgraph_info.py +24 -17
  62. robosystems_client/api/subgraphs/get_subgraph_quota.py +24 -17
  63. robosystems_client/api/subgraphs/list_subgraphs.py +24 -17
  64. robosystems_client/api/user/create_user_api_key.py +24 -17
  65. robosystems_client/api/user/get_all_credit_summaries.py +24 -17
  66. robosystems_client/api/user/get_current_user.py +24 -17
  67. robosystems_client/api/user/get_user_graphs.py +24 -17
  68. robosystems_client/api/user/list_user_api_keys.py +24 -17
  69. robosystems_client/api/user/revoke_user_api_key.py +24 -17
  70. robosystems_client/api/user/select_user_graph.py +24 -17
  71. robosystems_client/api/user/update_user.py +24 -17
  72. robosystems_client/api/user/update_user_api_key.py +24 -17
  73. robosystems_client/api/user/update_user_password.py +24 -17
  74. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -18
  75. robosystems_client/api/user_analytics/get_user_usage_overview.py +24 -17
  76. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +24 -17
  77. robosystems_client/api/user_limits/get_shared_repository_limits.py +24 -17
  78. robosystems_client/api/user_limits/get_user_limits.py +24 -17
  79. robosystems_client/api/user_limits/get_user_usage.py +24 -17
  80. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +24 -17
  81. robosystems_client/api/user_subscriptions/get_repository_credits.py +24 -17
  82. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +24 -17
  83. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -18
  84. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +24 -17
  85. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +24 -17
  86. robosystems_client/extensions/__init__.py +70 -0
  87. robosystems_client/extensions/auth_integration.py +14 -1
  88. robosystems_client/extensions/copy_client.py +32 -22
  89. robosystems_client/extensions/dataframe_utils.py +455 -0
  90. robosystems_client/extensions/extensions.py +16 -0
  91. robosystems_client/extensions/operation_client.py +43 -21
  92. robosystems_client/extensions/query_client.py +109 -12
  93. robosystems_client/extensions/tests/test_dataframe_utils.py +334 -0
  94. robosystems_client/extensions/tests/test_integration.py +1 -1
  95. robosystems_client/extensions/tests/test_token_utils.py +274 -0
  96. robosystems_client/extensions/token_utils.py +417 -0
  97. robosystems_client/extensions/utils.py +32 -2
  98. robosystems_client/models/__init__.py +16 -0
  99. robosystems_client/models/email_verification_request.py +60 -0
  100. robosystems_client/models/forgot_password_request.py +60 -0
  101. robosystems_client/models/forgot_password_response_forgotpassword.py +44 -0
  102. robosystems_client/models/resend_verification_email_response_resendverificationemail.py +44 -0
  103. robosystems_client/models/reset_password_request.py +68 -0
  104. robosystems_client/models/reset_password_validate_response.py +82 -0
  105. robosystems_client-0.1.18.dist-info/METADATA +89 -0
  106. {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +108 -92
  107. robosystems_client-0.1.18.dist-info/licenses/LICENSE +21 -0
  108. robosystems_client-0.1.16.dist-info/METADATA +0 -302
  109. {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/WHEEL +0 -0
@@ -13,21 +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
- auth_token: Union[None, Unset, str] = UNSET,
18
18
  ) -> dict[str, Any]:
19
19
  headers: dict[str, Any] = {}
20
20
  if not isinstance(authorization, Unset):
21
21
  headers["authorization"] = authorization
22
22
 
23
- cookies = {}
24
- if auth_token is not UNSET:
25
- cookies["auth-token"] = auth_token
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}
26
33
 
27
34
  _kwargs: dict[str, Any] = {
28
35
  "method": "get",
29
36
  "url": f"/v1/{graph_id}/subgraphs/quota",
30
- "cookies": cookies,
37
+ "params": params,
31
38
  }
32
39
 
33
40
  _kwargs["headers"] = headers
@@ -78,8 +85,8 @@ def sync_detailed(
78
85
  graph_id: str,
79
86
  *,
80
87
  client: AuthenticatedClient,
88
+ token: Union[None, Unset, str] = UNSET,
81
89
  authorization: Union[None, Unset, str] = UNSET,
82
- auth_token: Union[None, Unset, str] = UNSET,
83
90
  ) -> Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
84
91
  """Get Subgraph Quota
85
92
 
@@ -103,8 +110,8 @@ def sync_detailed(
103
110
 
104
111
  Args:
105
112
  graph_id (str): Parent graph identifier
113
+ token (Union[None, Unset, str]): JWT token for SSE authentication
106
114
  authorization (Union[None, Unset, str]):
107
- auth_token (Union[None, Unset, str]):
108
115
 
109
116
  Raises:
110
117
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -116,8 +123,8 @@ def sync_detailed(
116
123
 
117
124
  kwargs = _get_kwargs(
118
125
  graph_id=graph_id,
126
+ token=token,
119
127
  authorization=authorization,
120
- auth_token=auth_token,
121
128
  )
122
129
 
123
130
  response = client.get_httpx_client().request(
@@ -131,8 +138,8 @@ def sync(
131
138
  graph_id: str,
132
139
  *,
133
140
  client: AuthenticatedClient,
141
+ token: Union[None, Unset, str] = UNSET,
134
142
  authorization: Union[None, Unset, str] = UNSET,
135
- auth_token: Union[None, Unset, str] = UNSET,
136
143
  ) -> Optional[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
137
144
  """Get Subgraph Quota
138
145
 
@@ -156,8 +163,8 @@ def sync(
156
163
 
157
164
  Args:
158
165
  graph_id (str): Parent graph identifier
166
+ token (Union[None, Unset, str]): JWT token for SSE authentication
159
167
  authorization (Union[None, Unset, str]):
160
- auth_token (Union[None, Unset, str]):
161
168
 
162
169
  Raises:
163
170
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -170,8 +177,8 @@ def sync(
170
177
  return sync_detailed(
171
178
  graph_id=graph_id,
172
179
  client=client,
180
+ token=token,
173
181
  authorization=authorization,
174
- auth_token=auth_token,
175
182
  ).parsed
176
183
 
177
184
 
@@ -179,8 +186,8 @@ async def asyncio_detailed(
179
186
  graph_id: str,
180
187
  *,
181
188
  client: AuthenticatedClient,
189
+ token: Union[None, Unset, str] = UNSET,
182
190
  authorization: Union[None, Unset, str] = UNSET,
183
- auth_token: Union[None, Unset, str] = UNSET,
184
191
  ) -> Response[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
185
192
  """Get Subgraph Quota
186
193
 
@@ -204,8 +211,8 @@ async def asyncio_detailed(
204
211
 
205
212
  Args:
206
213
  graph_id (str): Parent graph identifier
214
+ token (Union[None, Unset, str]): JWT token for SSE authentication
207
215
  authorization (Union[None, Unset, str]):
208
- auth_token (Union[None, Unset, str]):
209
216
 
210
217
  Raises:
211
218
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -217,8 +224,8 @@ async def asyncio_detailed(
217
224
 
218
225
  kwargs = _get_kwargs(
219
226
  graph_id=graph_id,
227
+ token=token,
220
228
  authorization=authorization,
221
- auth_token=auth_token,
222
229
  )
223
230
 
224
231
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -230,8 +237,8 @@ async def asyncio(
230
237
  graph_id: str,
231
238
  *,
232
239
  client: AuthenticatedClient,
240
+ token: Union[None, Unset, str] = UNSET,
233
241
  authorization: Union[None, Unset, str] = UNSET,
234
- auth_token: Union[None, Unset, str] = UNSET,
235
242
  ) -> Optional[Union[Any, HTTPValidationError, SubgraphQuotaResponse]]:
236
243
  """Get Subgraph Quota
237
244
 
@@ -255,8 +262,8 @@ async def asyncio(
255
262
 
256
263
  Args:
257
264
  graph_id (str): Parent graph identifier
265
+ token (Union[None, Unset, str]): JWT token for SSE authentication
258
266
  authorization (Union[None, Unset, str]):
259
- auth_token (Union[None, Unset, str]):
260
267
 
261
268
  Raises:
262
269
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -270,7 +277,7 @@ async def asyncio(
270
277
  await asyncio_detailed(
271
278
  graph_id=graph_id,
272
279
  client=client,
280
+ token=token,
273
281
  authorization=authorization,
274
- auth_token=auth_token,
275
282
  )
276
283
  ).parsed
@@ -13,21 +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
- auth_token: Union[None, Unset, str] = UNSET,
18
18
  ) -> dict[str, Any]:
19
19
  headers: dict[str, Any] = {}
20
20
  if not isinstance(authorization, Unset):
21
21
  headers["authorization"] = authorization
22
22
 
23
- cookies = {}
24
- if auth_token is not UNSET:
25
- cookies["auth-token"] = auth_token
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}
26
33
 
27
34
  _kwargs: dict[str, Any] = {
28
35
  "method": "get",
29
36
  "url": f"/v1/{graph_id}/subgraphs",
30
- "cookies": cookies,
37
+ "params": params,
31
38
  }
32
39
 
33
40
  _kwargs["headers"] = headers
@@ -66,8 +73,8 @@ def sync_detailed(
66
73
  graph_id: str,
67
74
  *,
68
75
  client: AuthenticatedClient,
76
+ token: Union[None, Unset, str] = UNSET,
69
77
  authorization: Union[None, Unset, str] = UNSET,
70
- auth_token: Union[None, Unset, str] = UNSET,
71
78
  ) -> Response[Union[HTTPValidationError, ListSubgraphsResponse]]:
72
79
  """List Subgraphs
73
80
 
@@ -84,8 +91,8 @@ def sync_detailed(
84
91
 
85
92
  Args:
86
93
  graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
94
+ token (Union[None, Unset, str]): JWT token for SSE authentication
87
95
  authorization (Union[None, Unset, str]):
88
- auth_token (Union[None, Unset, str]):
89
96
 
90
97
  Raises:
91
98
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -97,8 +104,8 @@ def sync_detailed(
97
104
 
98
105
  kwargs = _get_kwargs(
99
106
  graph_id=graph_id,
107
+ token=token,
100
108
  authorization=authorization,
101
- auth_token=auth_token,
102
109
  )
103
110
 
104
111
  response = client.get_httpx_client().request(
@@ -112,8 +119,8 @@ def sync(
112
119
  graph_id: str,
113
120
  *,
114
121
  client: AuthenticatedClient,
122
+ token: Union[None, Unset, str] = UNSET,
115
123
  authorization: Union[None, Unset, str] = UNSET,
116
- auth_token: Union[None, Unset, str] = UNSET,
117
124
  ) -> Optional[Union[HTTPValidationError, ListSubgraphsResponse]]:
118
125
  """List Subgraphs
119
126
 
@@ -130,8 +137,8 @@ def sync(
130
137
 
131
138
  Args:
132
139
  graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
140
+ token (Union[None, Unset, str]): JWT token for SSE authentication
133
141
  authorization (Union[None, Unset, str]):
134
- auth_token (Union[None, Unset, str]):
135
142
 
136
143
  Raises:
137
144
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -144,8 +151,8 @@ def sync(
144
151
  return sync_detailed(
145
152
  graph_id=graph_id,
146
153
  client=client,
154
+ token=token,
147
155
  authorization=authorization,
148
- auth_token=auth_token,
149
156
  ).parsed
150
157
 
151
158
 
@@ -153,8 +160,8 @@ async def asyncio_detailed(
153
160
  graph_id: str,
154
161
  *,
155
162
  client: AuthenticatedClient,
163
+ token: Union[None, Unset, str] = UNSET,
156
164
  authorization: Union[None, Unset, str] = UNSET,
157
- auth_token: Union[None, Unset, str] = UNSET,
158
165
  ) -> Response[Union[HTTPValidationError, ListSubgraphsResponse]]:
159
166
  """List Subgraphs
160
167
 
@@ -171,8 +178,8 @@ async def asyncio_detailed(
171
178
 
172
179
  Args:
173
180
  graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
181
+ token (Union[None, Unset, str]): JWT token for SSE authentication
174
182
  authorization (Union[None, Unset, str]):
175
- auth_token (Union[None, Unset, str]):
176
183
 
177
184
  Raises:
178
185
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -184,8 +191,8 @@ async def asyncio_detailed(
184
191
 
185
192
  kwargs = _get_kwargs(
186
193
  graph_id=graph_id,
194
+ token=token,
187
195
  authorization=authorization,
188
- auth_token=auth_token,
189
196
  )
190
197
 
191
198
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -197,8 +204,8 @@ async def asyncio(
197
204
  graph_id: str,
198
205
  *,
199
206
  client: AuthenticatedClient,
207
+ token: Union[None, Unset, str] = UNSET,
200
208
  authorization: Union[None, Unset, str] = UNSET,
201
- auth_token: Union[None, Unset, str] = UNSET,
202
209
  ) -> Optional[Union[HTTPValidationError, ListSubgraphsResponse]]:
203
210
  """List Subgraphs
204
211
 
@@ -215,8 +222,8 @@ async def asyncio(
215
222
 
216
223
  Args:
217
224
  graph_id (str): Parent graph ID (e.g., 'kg1a2b3c4d5')
225
+ token (Union[None, Unset, str]): JWT token for SSE authentication
218
226
  authorization (Union[None, Unset, str]):
219
- auth_token (Union[None, Unset, str]):
220
227
 
221
228
  Raises:
222
229
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -230,7 +237,7 @@ async def asyncio(
230
237
  await asyncio_detailed(
231
238
  graph_id=graph_id,
232
239
  client=client,
240
+ token=token,
233
241
  authorization=authorization,
234
- auth_token=auth_token,
235
242
  )
236
243
  ).parsed
@@ -14,21 +14,28 @@ from ...types import UNSET, Response, Unset
14
14
  def _get_kwargs(
15
15
  *,
16
16
  body: CreateAPIKeyRequest,
17
+ token: Union[None, Unset, str] = UNSET,
17
18
  authorization: Union[None, Unset, str] = UNSET,
18
- auth_token: Union[None, Unset, str] = UNSET,
19
19
  ) -> dict[str, Any]:
20
20
  headers: dict[str, Any] = {}
21
21
  if not isinstance(authorization, Unset):
22
22
  headers["authorization"] = authorization
23
23
 
24
- cookies = {}
25
- if auth_token is not UNSET:
26
- cookies["auth-token"] = auth_token
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}
27
34
 
28
35
  _kwargs: dict[str, Any] = {
29
36
  "method": "post",
30
37
  "url": "/v1/user/api-keys",
31
- "cookies": cookies,
38
+ "params": params,
32
39
  }
33
40
 
34
41
  _kwargs["json"] = body.to_dict()
@@ -71,16 +78,16 @@ def sync_detailed(
71
78
  *,
72
79
  client: AuthenticatedClient,
73
80
  body: CreateAPIKeyRequest,
81
+ token: Union[None, Unset, str] = UNSET,
74
82
  authorization: Union[None, Unset, str] = UNSET,
75
- auth_token: Union[None, Unset, str] = UNSET,
76
83
  ) -> Response[Union[CreateAPIKeyResponse, HTTPValidationError]]:
77
84
  """Create API Key
78
85
 
79
86
  Create a new API key for the current user.
80
87
 
81
88
  Args:
89
+ token (Union[None, Unset, str]): JWT token for SSE authentication
82
90
  authorization (Union[None, Unset, str]):
83
- auth_token (Union[None, Unset, str]):
84
91
  body (CreateAPIKeyRequest): Request model for creating a new API key.
85
92
 
86
93
  Raises:
@@ -93,8 +100,8 @@ def sync_detailed(
93
100
 
94
101
  kwargs = _get_kwargs(
95
102
  body=body,
103
+ token=token,
96
104
  authorization=authorization,
97
- auth_token=auth_token,
98
105
  )
99
106
 
100
107
  response = client.get_httpx_client().request(
@@ -108,16 +115,16 @@ def sync(
108
115
  *,
109
116
  client: AuthenticatedClient,
110
117
  body: CreateAPIKeyRequest,
118
+ token: Union[None, Unset, str] = UNSET,
111
119
  authorization: Union[None, Unset, str] = UNSET,
112
- auth_token: Union[None, Unset, str] = UNSET,
113
120
  ) -> Optional[Union[CreateAPIKeyResponse, HTTPValidationError]]:
114
121
  """Create API Key
115
122
 
116
123
  Create a new API key for the current user.
117
124
 
118
125
  Args:
126
+ token (Union[None, Unset, str]): JWT token for SSE authentication
119
127
  authorization (Union[None, Unset, str]):
120
- auth_token (Union[None, Unset, str]):
121
128
  body (CreateAPIKeyRequest): Request model for creating a new API key.
122
129
 
123
130
  Raises:
@@ -131,8 +138,8 @@ def sync(
131
138
  return sync_detailed(
132
139
  client=client,
133
140
  body=body,
141
+ token=token,
134
142
  authorization=authorization,
135
- auth_token=auth_token,
136
143
  ).parsed
137
144
 
138
145
 
@@ -140,16 +147,16 @@ async def asyncio_detailed(
140
147
  *,
141
148
  client: AuthenticatedClient,
142
149
  body: CreateAPIKeyRequest,
150
+ token: Union[None, Unset, str] = UNSET,
143
151
  authorization: Union[None, Unset, str] = UNSET,
144
- auth_token: Union[None, Unset, str] = UNSET,
145
152
  ) -> Response[Union[CreateAPIKeyResponse, HTTPValidationError]]:
146
153
  """Create API Key
147
154
 
148
155
  Create a new API key for the current user.
149
156
 
150
157
  Args:
158
+ token (Union[None, Unset, str]): JWT token for SSE authentication
151
159
  authorization (Union[None, Unset, str]):
152
- auth_token (Union[None, Unset, str]):
153
160
  body (CreateAPIKeyRequest): Request model for creating a new API key.
154
161
 
155
162
  Raises:
@@ -162,8 +169,8 @@ async def asyncio_detailed(
162
169
 
163
170
  kwargs = _get_kwargs(
164
171
  body=body,
172
+ token=token,
165
173
  authorization=authorization,
166
- auth_token=auth_token,
167
174
  )
168
175
 
169
176
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -175,16 +182,16 @@ async def asyncio(
175
182
  *,
176
183
  client: AuthenticatedClient,
177
184
  body: CreateAPIKeyRequest,
185
+ token: Union[None, Unset, str] = UNSET,
178
186
  authorization: Union[None, Unset, str] = UNSET,
179
- auth_token: Union[None, Unset, str] = UNSET,
180
187
  ) -> Optional[Union[CreateAPIKeyResponse, HTTPValidationError]]:
181
188
  """Create API Key
182
189
 
183
190
  Create a new API key for the current user.
184
191
 
185
192
  Args:
193
+ token (Union[None, Unset, str]): JWT token for SSE authentication
186
194
  authorization (Union[None, Unset, str]):
187
- auth_token (Union[None, Unset, str]):
188
195
  body (CreateAPIKeyRequest): Request model for creating a new API key.
189
196
 
190
197
  Raises:
@@ -199,7 +206,7 @@ async def asyncio(
199
206
  await asyncio_detailed(
200
207
  client=client,
201
208
  body=body,
209
+ token=token,
202
210
  authorization=authorization,
203
- auth_token=auth_token,
204
211
  )
205
212
  ).parsed
@@ -15,21 +15,28 @@ from ...types import UNSET, Response, Unset
15
15
 
16
16
  def _get_kwargs(
17
17
  *,
18
+ token: Union[None, Unset, str] = UNSET,
18
19
  authorization: Union[None, Unset, str] = UNSET,
19
- auth_token: Union[None, Unset, str] = UNSET,
20
20
  ) -> dict[str, Any]:
21
21
  headers: dict[str, Any] = {}
22
22
  if not isinstance(authorization, Unset):
23
23
  headers["authorization"] = authorization
24
24
 
25
- cookies = {}
26
- if auth_token is not UNSET:
27
- cookies["auth-token"] = auth_token
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}
28
35
 
29
36
  _kwargs: dict[str, Any] = {
30
37
  "method": "get",
31
38
  "url": "/v1/user/credits",
32
- "cookies": cookies,
39
+ "params": params,
33
40
  }
34
41
 
35
42
  _kwargs["headers"] = headers
@@ -85,8 +92,8 @@ def _build_response(
85
92
  def sync_detailed(
86
93
  *,
87
94
  client: AuthenticatedClient,
95
+ token: Union[None, Unset, str] = UNSET,
88
96
  authorization: Union[None, Unset, str] = UNSET,
89
- auth_token: Union[None, Unset, str] = UNSET,
90
97
  ) -> Response[
91
98
  Union[
92
99
  ErrorResponse,
@@ -105,8 +112,8 @@ def sync_detailed(
105
112
  No credits are consumed for viewing summaries.
106
113
 
107
114
  Args:
115
+ token (Union[None, Unset, str]): JWT token for SSE authentication
108
116
  authorization (Union[None, Unset, str]):
109
- auth_token (Union[None, Unset, str]):
110
117
 
111
118
  Raises:
112
119
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -117,8 +124,8 @@ def sync_detailed(
117
124
  """
118
125
 
119
126
  kwargs = _get_kwargs(
127
+ token=token,
120
128
  authorization=authorization,
121
- auth_token=auth_token,
122
129
  )
123
130
 
124
131
  response = client.get_httpx_client().request(
@@ -131,8 +138,8 @@ def sync_detailed(
131
138
  def sync(
132
139
  *,
133
140
  client: AuthenticatedClient,
141
+ token: Union[None, Unset, str] = UNSET,
134
142
  authorization: Union[None, Unset, str] = UNSET,
135
- auth_token: Union[None, Unset, str] = UNSET,
136
143
  ) -> Optional[
137
144
  Union[
138
145
  ErrorResponse,
@@ -151,8 +158,8 @@ def sync(
151
158
  No credits are consumed for viewing summaries.
152
159
 
153
160
  Args:
161
+ token (Union[None, Unset, str]): JWT token for SSE authentication
154
162
  authorization (Union[None, Unset, str]):
155
- auth_token (Union[None, Unset, str]):
156
163
 
157
164
  Raises:
158
165
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -164,16 +171,16 @@ def sync(
164
171
 
165
172
  return sync_detailed(
166
173
  client=client,
174
+ token=token,
167
175
  authorization=authorization,
168
- auth_token=auth_token,
169
176
  ).parsed
170
177
 
171
178
 
172
179
  async def asyncio_detailed(
173
180
  *,
174
181
  client: AuthenticatedClient,
182
+ token: Union[None, Unset, str] = UNSET,
175
183
  authorization: Union[None, Unset, str] = UNSET,
176
- auth_token: Union[None, Unset, str] = UNSET,
177
184
  ) -> Response[
178
185
  Union[
179
186
  ErrorResponse,
@@ -192,8 +199,8 @@ async def asyncio_detailed(
192
199
  No credits are consumed for viewing summaries.
193
200
 
194
201
  Args:
202
+ token (Union[None, Unset, str]): JWT token for SSE authentication
195
203
  authorization (Union[None, Unset, str]):
196
- auth_token (Union[None, Unset, str]):
197
204
 
198
205
  Raises:
199
206
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -204,8 +211,8 @@ async def asyncio_detailed(
204
211
  """
205
212
 
206
213
  kwargs = _get_kwargs(
214
+ token=token,
207
215
  authorization=authorization,
208
- auth_token=auth_token,
209
216
  )
210
217
 
211
218
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -216,8 +223,8 @@ async def asyncio_detailed(
216
223
  async def asyncio(
217
224
  *,
218
225
  client: AuthenticatedClient,
226
+ token: Union[None, Unset, str] = UNSET,
219
227
  authorization: Union[None, Unset, str] = UNSET,
220
- auth_token: Union[None, Unset, str] = UNSET,
221
228
  ) -> Optional[
222
229
  Union[
223
230
  ErrorResponse,
@@ -236,8 +243,8 @@ async def asyncio(
236
243
  No credits are consumed for viewing summaries.
237
244
 
238
245
  Args:
246
+ token (Union[None, Unset, str]): JWT token for SSE authentication
239
247
  authorization (Union[None, Unset, str]):
240
- auth_token (Union[None, Unset, str]):
241
248
 
242
249
  Raises:
243
250
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -250,7 +257,7 @@ async def asyncio(
250
257
  return (
251
258
  await asyncio_detailed(
252
259
  client=client,
260
+ token=token,
253
261
  authorization=authorization,
254
- auth_token=auth_token,
255
262
  )
256
263
  ).parsed