robosystems-client 0.2.3__py3-none-any.whl → 0.2.5__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 (104) hide show
  1. robosystems_client/api/agent/auto_select_agent.py +1 -41
  2. robosystems_client/api/agent/batch_process_queries.py +1 -41
  3. robosystems_client/api/agent/execute_specific_agent.py +1 -41
  4. robosystems_client/api/agent/get_agent_metadata.py +5 -49
  5. robosystems_client/api/agent/list_agents.py +4 -42
  6. robosystems_client/api/agent/recommend_agent.py +5 -45
  7. robosystems_client/api/auth/generate_sso_token.py +0 -18
  8. robosystems_client/api/auth/get_current_auth_user.py +14 -74
  9. robosystems_client/api/auth/logout_user.py +14 -50
  10. robosystems_client/api/auth/refresh_auth_session.py +14 -50
  11. robosystems_client/api/auth/resend_verification_email.py +14 -74
  12. robosystems_client/api/backup/create_backup.py +5 -45
  13. robosystems_client/api/backup/get_backup_download_url.py +4 -42
  14. robosystems_client/api/backup/get_backup_stats.py +5 -49
  15. robosystems_client/api/backup/list_backups.py +4 -42
  16. robosystems_client/api/backup/restore_backup.py +5 -45
  17. robosystems_client/api/connections/create_connection.py +5 -45
  18. robosystems_client/api/connections/create_link_token.py +5 -45
  19. robosystems_client/api/connections/delete_connection.py +5 -49
  20. robosystems_client/api/connections/exchange_link_token.py +5 -45
  21. robosystems_client/api/connections/get_connection.py +5 -49
  22. robosystems_client/api/connections/get_connection_options.py +5 -49
  23. robosystems_client/api/connections/init_o_auth.py +5 -45
  24. robosystems_client/api/connections/list_connections.py +4 -42
  25. robosystems_client/api/connections/oauth_callback.py +5 -45
  26. robosystems_client/api/connections/sync_connection.py +5 -45
  27. robosystems_client/api/graph_analytics/get_graph_metrics.py +5 -49
  28. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +4 -42
  29. robosystems_client/api/graph_billing/get_current_graph_bill.py +5 -49
  30. robosystems_client/api/graph_billing/get_graph_billing_history.py +4 -42
  31. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +5 -49
  32. robosystems_client/api/graph_billing/get_graph_usage_details.py +4 -42
  33. robosystems_client/api/graph_credits/check_credit_balance.py +0 -38
  34. robosystems_client/api/graph_credits/check_storage_limits.py +1 -45
  35. robosystems_client/api/graph_credits/get_credit_summary.py +1 -45
  36. robosystems_client/api/graph_credits/get_storage_usage.py +0 -38
  37. robosystems_client/api/graph_credits/list_credit_transactions.py +4 -42
  38. robosystems_client/api/graph_health/get_database_health.py +5 -49
  39. robosystems_client/api/graph_info/get_database_info.py +5 -49
  40. robosystems_client/api/graph_limits/get_graph_limits.py +5 -49
  41. robosystems_client/api/graphs/create_graph.py +21 -57
  42. robosystems_client/api/graphs/get_available_extensions.py +131 -15
  43. robosystems_client/api/graphs/get_graphs.py +154 -79
  44. robosystems_client/api/graphs/select_graph.py +117 -49
  45. robosystems_client/api/mcp/call_mcp_tool.py +24 -47
  46. robosystems_client/api/mcp/list_mcp_tools.py +13 -61
  47. robosystems_client/api/operations/cancel_operation.py +1 -45
  48. robosystems_client/api/operations/get_operation_status.py +1 -45
  49. robosystems_client/api/query/execute_cypher_query.py +69 -53
  50. robosystems_client/api/schema/export_graph_schema.py +223 -65
  51. robosystems_client/api/schema/get_graph_schema.py +137 -79
  52. robosystems_client/api/schema/validate_schema.py +5 -45
  53. robosystems_client/api/subgraphs/create_subgraph.py +5 -45
  54. robosystems_client/api/subgraphs/delete_subgraph.py +5 -45
  55. robosystems_client/api/subgraphs/get_subgraph_info.py +5 -49
  56. robosystems_client/api/subgraphs/get_subgraph_quota.py +5 -49
  57. robosystems_client/api/subgraphs/list_subgraphs.py +5 -49
  58. robosystems_client/api/tables/delete_file.py +181 -301
  59. robosystems_client/api/tables/get_file_info.py +117 -265
  60. robosystems_client/api/tables/get_upload_url.py +193 -389
  61. robosystems_client/api/tables/ingest_tables.py +277 -465
  62. robosystems_client/api/tables/list_table_files.py +193 -373
  63. robosystems_client/api/tables/list_tables.py +189 -361
  64. robosystems_client/api/tables/query_tables.py +85 -141
  65. robosystems_client/api/tables/update_file_status.py +205 -349
  66. robosystems_client/api/user/create_user_api_key.py +1 -41
  67. robosystems_client/api/user/get_all_credit_summaries.py +14 -111
  68. robosystems_client/api/user/get_current_user.py +14 -75
  69. robosystems_client/api/user/list_user_api_keys.py +14 -75
  70. robosystems_client/api/user/revoke_user_api_key.py +1 -45
  71. robosystems_client/api/user/update_user.py +1 -41
  72. robosystems_client/api/user/update_user_api_key.py +1 -41
  73. robosystems_client/api/user/update_user_password.py +1 -41
  74. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -38
  75. robosystems_client/api/user_analytics/get_user_usage_overview.py +14 -75
  76. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +14 -105
  77. robosystems_client/api/user_limits/get_shared_repository_limits.py +1 -45
  78. robosystems_client/api/user_limits/get_user_limits.py +14 -75
  79. robosystems_client/api/user_limits/get_user_usage.py +14 -75
  80. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +1 -45
  81. robosystems_client/api/user_subscriptions/get_repository_credits.py +1 -45
  82. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +14 -75
  83. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -38
  84. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +1 -41
  85. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +1 -41
  86. robosystems_client/extensions/__init__.py +8 -1
  87. robosystems_client/extensions/auth_integration.py +1 -2
  88. robosystems_client/extensions/query_client.py +3 -2
  89. robosystems_client/extensions/sse_client.py +1 -1
  90. robosystems_client/extensions/table_ingest_client.py +5 -0
  91. robosystems_client/extensions/utils.py +2 -2
  92. robosystems_client/models/__init__.py +4 -4
  93. robosystems_client/models/auth_response.py +40 -0
  94. robosystems_client/models/create_graph_request.py +4 -3
  95. robosystems_client/models/cypher_query_request.py +5 -22
  96. robosystems_client/models/schema_export_response.py +4 -2
  97. robosystems_client/models/schema_info_response.py +77 -0
  98. robosystems_client/models/{get_graph_schema_response_getgraphschema.py → schema_info_response_schema.py} +6 -6
  99. robosystems_client/models/schema_validation_response.py +7 -6
  100. robosystems_client/models/table_query_request.py +37 -2
  101. {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/METADATA +2 -4
  102. {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/RECORD +104 -103
  103. {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/WHEEL +0 -0
  104. {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/licenses/LICENSE +0 -0
@@ -8,34 +8,18 @@ from ...client import AuthenticatedClient, Client
8
8
  from ...models.create_api_key_request import CreateAPIKeyRequest
9
9
  from ...models.create_api_key_response import CreateAPIKeyResponse
10
10
  from ...models.http_validation_error import HTTPValidationError
11
- from ...types import UNSET, Response, Unset
11
+ from ...types import Response
12
12
 
13
13
 
14
14
  def _get_kwargs(
15
15
  *,
16
16
  body: CreateAPIKeyRequest,
17
- token: Union[None, Unset, str] = UNSET,
18
- authorization: Union[None, Unset, str] = UNSET,
19
17
  ) -> dict[str, Any]:
20
18
  headers: dict[str, Any] = {}
21
- if not isinstance(authorization, Unset):
22
- headers["authorization"] = authorization
23
-
24
- params: dict[str, Any] = {}
25
-
26
- json_token: Union[None, Unset, str]
27
- if isinstance(token, Unset):
28
- json_token = UNSET
29
- else:
30
- json_token = token
31
- params["token"] = json_token
32
-
33
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
34
19
 
35
20
  _kwargs: dict[str, Any] = {
36
21
  "method": "post",
37
22
  "url": "/v1/user/api-keys",
38
- "params": params,
39
23
  }
40
24
 
41
25
  _kwargs["json"] = body.to_dict()
@@ -80,16 +64,12 @@ def sync_detailed(
80
64
  *,
81
65
  client: AuthenticatedClient,
82
66
  body: CreateAPIKeyRequest,
83
- token: Union[None, Unset, str] = UNSET,
84
- authorization: Union[None, Unset, str] = UNSET,
85
67
  ) -> Response[Union[CreateAPIKeyResponse, HTTPValidationError]]:
86
68
  """Create API Key
87
69
 
88
70
  Create a new API key for the current user.
89
71
 
90
72
  Args:
91
- token (Union[None, Unset, str]): JWT token for SSE authentication
92
- authorization (Union[None, Unset, str]):
93
73
  body (CreateAPIKeyRequest): Request model for creating a new API key.
94
74
 
95
75
  Raises:
@@ -102,8 +82,6 @@ def sync_detailed(
102
82
 
103
83
  kwargs = _get_kwargs(
104
84
  body=body,
105
- token=token,
106
- authorization=authorization,
107
85
  )
108
86
 
109
87
  response = client.get_httpx_client().request(
@@ -117,16 +95,12 @@ def sync(
117
95
  *,
118
96
  client: AuthenticatedClient,
119
97
  body: CreateAPIKeyRequest,
120
- token: Union[None, Unset, str] = UNSET,
121
- authorization: Union[None, Unset, str] = UNSET,
122
98
  ) -> Optional[Union[CreateAPIKeyResponse, HTTPValidationError]]:
123
99
  """Create API Key
124
100
 
125
101
  Create a new API key for the current user.
126
102
 
127
103
  Args:
128
- token (Union[None, Unset, str]): JWT token for SSE authentication
129
- authorization (Union[None, Unset, str]):
130
104
  body (CreateAPIKeyRequest): Request model for creating a new API key.
131
105
 
132
106
  Raises:
@@ -140,8 +114,6 @@ def sync(
140
114
  return sync_detailed(
141
115
  client=client,
142
116
  body=body,
143
- token=token,
144
- authorization=authorization,
145
117
  ).parsed
146
118
 
147
119
 
@@ -149,16 +121,12 @@ async def asyncio_detailed(
149
121
  *,
150
122
  client: AuthenticatedClient,
151
123
  body: CreateAPIKeyRequest,
152
- token: Union[None, Unset, str] = UNSET,
153
- authorization: Union[None, Unset, str] = UNSET,
154
124
  ) -> Response[Union[CreateAPIKeyResponse, HTTPValidationError]]:
155
125
  """Create API Key
156
126
 
157
127
  Create a new API key for the current user.
158
128
 
159
129
  Args:
160
- token (Union[None, Unset, str]): JWT token for SSE authentication
161
- authorization (Union[None, Unset, str]):
162
130
  body (CreateAPIKeyRequest): Request model for creating a new API key.
163
131
 
164
132
  Raises:
@@ -171,8 +139,6 @@ async def asyncio_detailed(
171
139
 
172
140
  kwargs = _get_kwargs(
173
141
  body=body,
174
- token=token,
175
- authorization=authorization,
176
142
  )
177
143
 
178
144
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -184,16 +150,12 @@ async def asyncio(
184
150
  *,
185
151
  client: AuthenticatedClient,
186
152
  body: CreateAPIKeyRequest,
187
- token: Union[None, Unset, str] = UNSET,
188
- authorization: Union[None, Unset, str] = UNSET,
189
153
  ) -> Optional[Union[CreateAPIKeyResponse, HTTPValidationError]]:
190
154
  """Create API Key
191
155
 
192
156
  Create a new API key for the current user.
193
157
 
194
158
  Args:
195
- token (Union[None, Unset, str]): JWT token for SSE authentication
196
- authorization (Union[None, Unset, str]):
197
159
  body (CreateAPIKeyRequest): Request model for creating a new API key.
198
160
 
199
161
  Raises:
@@ -208,7 +170,5 @@ async def asyncio(
208
170
  await asyncio_detailed(
209
171
  client=client,
210
172
  body=body,
211
- token=token,
212
- authorization=authorization,
213
173
  )
214
174
  ).parsed
@@ -9,49 +9,21 @@ from ...models.error_response import ErrorResponse
9
9
  from ...models.get_all_credit_summaries_response_getallcreditsummaries import (
10
10
  GetAllCreditSummariesResponseGetallcreditsummaries,
11
11
  )
12
- from ...models.http_validation_error import HTTPValidationError
13
- from ...types import UNSET, Response, Unset
12
+ from ...types import Response
14
13
 
15
14
 
16
- def _get_kwargs(
17
- *,
18
- token: Union[None, Unset, str] = UNSET,
19
- authorization: Union[None, Unset, str] = UNSET,
20
- ) -> dict[str, Any]:
21
- headers: dict[str, Any] = {}
22
- if not isinstance(authorization, Unset):
23
- headers["authorization"] = authorization
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
-
15
+ def _get_kwargs() -> dict[str, Any]:
36
16
  _kwargs: dict[str, Any] = {
37
17
  "method": "get",
38
18
  "url": "/v1/user/credits",
39
- "params": params,
40
19
  }
41
20
 
42
- _kwargs["headers"] = headers
43
21
  return _kwargs
44
22
 
45
23
 
46
24
  def _parse_response(
47
25
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
48
- ) -> Optional[
49
- Union[
50
- ErrorResponse,
51
- GetAllCreditSummariesResponseGetallcreditsummaries,
52
- HTTPValidationError,
53
- ]
54
- ]:
26
+ ) -> Optional[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]]:
55
27
  if response.status_code == 200:
56
28
  response_200 = GetAllCreditSummariesResponseGetallcreditsummaries.from_dict(
57
29
  response.json()
@@ -59,11 +31,6 @@ def _parse_response(
59
31
 
60
32
  return response_200
61
33
 
62
- if response.status_code == 422:
63
- response_422 = HTTPValidationError.from_dict(response.json())
64
-
65
- return response_422
66
-
67
34
  if response.status_code == 500:
68
35
  response_500 = ErrorResponse.from_dict(response.json())
69
36
 
@@ -77,13 +44,7 @@ def _parse_response(
77
44
 
78
45
  def _build_response(
79
46
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
80
- ) -> Response[
81
- Union[
82
- ErrorResponse,
83
- GetAllCreditSummariesResponseGetallcreditsummaries,
84
- HTTPValidationError,
85
- ]
86
- ]:
47
+ ) -> Response[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]]:
87
48
  return Response(
88
49
  status_code=HTTPStatus(response.status_code),
89
50
  content=response.content,
@@ -95,15 +56,7 @@ def _build_response(
95
56
  def sync_detailed(
96
57
  *,
97
58
  client: AuthenticatedClient,
98
- token: Union[None, Unset, str] = UNSET,
99
- authorization: Union[None, Unset, str] = UNSET,
100
- ) -> Response[
101
- Union[
102
- ErrorResponse,
103
- GetAllCreditSummariesResponseGetallcreditsummaries,
104
- HTTPValidationError,
105
- ]
106
- ]:
59
+ ) -> Response[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]]:
107
60
  """Get All Credit Summaries
108
61
 
109
62
  Get credit summaries for all graphs owned by the user.
@@ -114,22 +67,15 @@ def sync_detailed(
114
67
 
115
68
  No credits are consumed for viewing summaries.
116
69
 
117
- Args:
118
- token (Union[None, Unset, str]): JWT token for SSE authentication
119
- authorization (Union[None, Unset, str]):
120
-
121
70
  Raises:
122
71
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
123
72
  httpx.TimeoutException: If the request takes longer than Client.timeout.
124
73
 
125
74
  Returns:
126
- Response[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries, HTTPValidationError]]
75
+ Response[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]]
127
76
  """
128
77
 
129
- kwargs = _get_kwargs(
130
- token=token,
131
- authorization=authorization,
132
- )
78
+ kwargs = _get_kwargs()
133
79
 
134
80
  response = client.get_httpx_client().request(
135
81
  **kwargs,
@@ -141,15 +87,7 @@ def sync_detailed(
141
87
  def sync(
142
88
  *,
143
89
  client: AuthenticatedClient,
144
- token: Union[None, Unset, str] = UNSET,
145
- authorization: Union[None, Unset, str] = UNSET,
146
- ) -> Optional[
147
- Union[
148
- ErrorResponse,
149
- GetAllCreditSummariesResponseGetallcreditsummaries,
150
- HTTPValidationError,
151
- ]
152
- ]:
90
+ ) -> Optional[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]]:
153
91
  """Get All Credit Summaries
154
92
 
155
93
  Get credit summaries for all graphs owned by the user.
@@ -160,37 +98,23 @@ def sync(
160
98
 
161
99
  No credits are consumed for viewing summaries.
162
100
 
163
- Args:
164
- token (Union[None, Unset, str]): JWT token for SSE authentication
165
- authorization (Union[None, Unset, str]):
166
-
167
101
  Raises:
168
102
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
169
103
  httpx.TimeoutException: If the request takes longer than Client.timeout.
170
104
 
171
105
  Returns:
172
- Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries, HTTPValidationError]
106
+ Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]
173
107
  """
174
108
 
175
109
  return sync_detailed(
176
110
  client=client,
177
- token=token,
178
- authorization=authorization,
179
111
  ).parsed
180
112
 
181
113
 
182
114
  async def asyncio_detailed(
183
115
  *,
184
116
  client: AuthenticatedClient,
185
- token: Union[None, Unset, str] = UNSET,
186
- authorization: Union[None, Unset, str] = UNSET,
187
- ) -> Response[
188
- Union[
189
- ErrorResponse,
190
- GetAllCreditSummariesResponseGetallcreditsummaries,
191
- HTTPValidationError,
192
- ]
193
- ]:
117
+ ) -> Response[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]]:
194
118
  """Get All Credit Summaries
195
119
 
196
120
  Get credit summaries for all graphs owned by the user.
@@ -201,22 +125,15 @@ async def asyncio_detailed(
201
125
 
202
126
  No credits are consumed for viewing summaries.
203
127
 
204
- Args:
205
- token (Union[None, Unset, str]): JWT token for SSE authentication
206
- authorization (Union[None, Unset, str]):
207
-
208
128
  Raises:
209
129
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
210
130
  httpx.TimeoutException: If the request takes longer than Client.timeout.
211
131
 
212
132
  Returns:
213
- Response[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries, HTTPValidationError]]
133
+ Response[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]]
214
134
  """
215
135
 
216
- kwargs = _get_kwargs(
217
- token=token,
218
- authorization=authorization,
219
- )
136
+ kwargs = _get_kwargs()
220
137
 
221
138
  response = await client.get_async_httpx_client().request(**kwargs)
222
139
 
@@ -226,15 +143,7 @@ async def asyncio_detailed(
226
143
  async def asyncio(
227
144
  *,
228
145
  client: AuthenticatedClient,
229
- token: Union[None, Unset, str] = UNSET,
230
- authorization: Union[None, Unset, str] = UNSET,
231
- ) -> Optional[
232
- Union[
233
- ErrorResponse,
234
- GetAllCreditSummariesResponseGetallcreditsummaries,
235
- HTTPValidationError,
236
- ]
237
- ]:
146
+ ) -> Optional[Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]]:
238
147
  """Get All Credit Summaries
239
148
 
240
149
  Get credit summaries for all graphs owned by the user.
@@ -245,22 +154,16 @@ async def asyncio(
245
154
 
246
155
  No credits are consumed for viewing summaries.
247
156
 
248
- Args:
249
- token (Union[None, Unset, str]): JWT token for SSE authentication
250
- authorization (Union[None, Unset, str]):
251
-
252
157
  Raises:
253
158
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
254
159
  httpx.TimeoutException: If the request takes longer than Client.timeout.
255
160
 
256
161
  Returns:
257
- Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries, HTTPValidationError]
162
+ Union[ErrorResponse, GetAllCreditSummariesResponseGetallcreditsummaries]
258
163
  """
259
164
 
260
165
  return (
261
166
  await asyncio_detailed(
262
167
  client=client,
263
- token=token,
264
- authorization=authorization,
265
168
  )
266
169
  ).parsed
@@ -5,54 +5,27 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.http_validation_error import HTTPValidationError
9
8
  from ...models.user_response import UserResponse
10
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
11
10
 
12
11
 
13
- def _get_kwargs(
14
- *,
15
- token: Union[None, Unset, str] = UNSET,
16
- authorization: Union[None, Unset, str] = UNSET,
17
- ) -> dict[str, Any]:
18
- headers: dict[str, Any] = {}
19
- if not isinstance(authorization, Unset):
20
- headers["authorization"] = authorization
21
-
22
- params: dict[str, Any] = {}
23
-
24
- json_token: Union[None, Unset, str]
25
- if isinstance(token, Unset):
26
- json_token = UNSET
27
- else:
28
- json_token = token
29
- params["token"] = json_token
30
-
31
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
32
-
12
+ def _get_kwargs() -> dict[str, Any]:
33
13
  _kwargs: dict[str, Any] = {
34
14
  "method": "get",
35
15
  "url": "/v1/user",
36
- "params": params,
37
16
  }
38
17
 
39
- _kwargs["headers"] = headers
40
18
  return _kwargs
41
19
 
42
20
 
43
21
  def _parse_response(
44
22
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
45
- ) -> Optional[Union[HTTPValidationError, UserResponse]]:
23
+ ) -> Optional[UserResponse]:
46
24
  if response.status_code == 200:
47
25
  response_200 = UserResponse.from_dict(response.json())
48
26
 
49
27
  return response_200
50
28
 
51
- if response.status_code == 422:
52
- response_422 = HTTPValidationError.from_dict(response.json())
53
-
54
- return response_422
55
-
56
29
  if client.raise_on_unexpected_status:
57
30
  raise errors.UnexpectedStatus(response.status_code, response.content)
58
31
  else:
@@ -61,7 +34,7 @@ def _parse_response(
61
34
 
62
35
  def _build_response(
63
36
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
64
- ) -> Response[Union[HTTPValidationError, UserResponse]]:
37
+ ) -> Response[UserResponse]:
65
38
  return Response(
66
39
  status_code=HTTPStatus(response.status_code),
67
40
  content=response.content,
@@ -73,29 +46,20 @@ def _build_response(
73
46
  def sync_detailed(
74
47
  *,
75
48
  client: AuthenticatedClient,
76
- token: Union[None, Unset, str] = UNSET,
77
- authorization: Union[None, Unset, str] = UNSET,
78
- ) -> Response[Union[HTTPValidationError, UserResponse]]:
49
+ ) -> Response[UserResponse]:
79
50
  """Get Current User
80
51
 
81
52
  Returns information about the currently authenticated user.
82
53
 
83
- Args:
84
- token (Union[None, Unset, str]): JWT token for SSE authentication
85
- authorization (Union[None, Unset, str]):
86
-
87
54
  Raises:
88
55
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
89
56
  httpx.TimeoutException: If the request takes longer than Client.timeout.
90
57
 
91
58
  Returns:
92
- Response[Union[HTTPValidationError, UserResponse]]
59
+ Response[UserResponse]
93
60
  """
94
61
 
95
- kwargs = _get_kwargs(
96
- token=token,
97
- authorization=authorization,
98
- )
62
+ kwargs = _get_kwargs()
99
63
 
100
64
  response = client.get_httpx_client().request(
101
65
  **kwargs,
@@ -107,58 +71,41 @@ def sync_detailed(
107
71
  def sync(
108
72
  *,
109
73
  client: AuthenticatedClient,
110
- token: Union[None, Unset, str] = UNSET,
111
- authorization: Union[None, Unset, str] = UNSET,
112
- ) -> Optional[Union[HTTPValidationError, UserResponse]]:
74
+ ) -> Optional[UserResponse]:
113
75
  """Get Current User
114
76
 
115
77
  Returns information about the currently authenticated user.
116
78
 
117
- Args:
118
- token (Union[None, Unset, str]): JWT token for SSE authentication
119
- authorization (Union[None, Unset, str]):
120
-
121
79
  Raises:
122
80
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
123
81
  httpx.TimeoutException: If the request takes longer than Client.timeout.
124
82
 
125
83
  Returns:
126
- Union[HTTPValidationError, UserResponse]
84
+ UserResponse
127
85
  """
128
86
 
129
87
  return sync_detailed(
130
88
  client=client,
131
- token=token,
132
- authorization=authorization,
133
89
  ).parsed
134
90
 
135
91
 
136
92
  async def asyncio_detailed(
137
93
  *,
138
94
  client: AuthenticatedClient,
139
- token: Union[None, Unset, str] = UNSET,
140
- authorization: Union[None, Unset, str] = UNSET,
141
- ) -> Response[Union[HTTPValidationError, UserResponse]]:
95
+ ) -> Response[UserResponse]:
142
96
  """Get Current User
143
97
 
144
98
  Returns information about the currently authenticated user.
145
99
 
146
- Args:
147
- token (Union[None, Unset, str]): JWT token for SSE authentication
148
- authorization (Union[None, Unset, str]):
149
-
150
100
  Raises:
151
101
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
152
102
  httpx.TimeoutException: If the request takes longer than Client.timeout.
153
103
 
154
104
  Returns:
155
- Response[Union[HTTPValidationError, UserResponse]]
105
+ Response[UserResponse]
156
106
  """
157
107
 
158
- kwargs = _get_kwargs(
159
- token=token,
160
- authorization=authorization,
161
- )
108
+ kwargs = _get_kwargs()
162
109
 
163
110
  response = await client.get_async_httpx_client().request(**kwargs)
164
111
 
@@ -168,29 +115,21 @@ async def asyncio_detailed(
168
115
  async def asyncio(
169
116
  *,
170
117
  client: AuthenticatedClient,
171
- token: Union[None, Unset, str] = UNSET,
172
- authorization: Union[None, Unset, str] = UNSET,
173
- ) -> Optional[Union[HTTPValidationError, UserResponse]]:
118
+ ) -> Optional[UserResponse]:
174
119
  """Get Current User
175
120
 
176
121
  Returns information about the currently authenticated user.
177
122
 
178
- Args:
179
- token (Union[None, Unset, str]): JWT token for SSE authentication
180
- authorization (Union[None, Unset, str]):
181
-
182
123
  Raises:
183
124
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
184
125
  httpx.TimeoutException: If the request takes longer than Client.timeout.
185
126
 
186
127
  Returns:
187
- Union[HTTPValidationError, UserResponse]
128
+ UserResponse
188
129
  """
189
130
 
190
131
  return (
191
132
  await asyncio_detailed(
192
133
  client=client,
193
- token=token,
194
- authorization=authorization,
195
134
  )
196
135
  ).parsed