crypticorn 2.15.0__py3-none-any.whl → 2.17.0__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.
Files changed (168) hide show
  1. crypticorn/__init__.py +2 -2
  2. crypticorn/auth/client/api/admin_api.py +397 -13
  3. crypticorn/auth/client/api/auth_api.py +3610 -341
  4. crypticorn/auth/client/api/service_api.py +249 -7
  5. crypticorn/auth/client/api/user_api.py +2295 -179
  6. crypticorn/auth/client/api/wallet_api.py +1468 -81
  7. crypticorn/auth/client/configuration.py +2 -2
  8. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  9. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  10. crypticorn/auth/client/rest.py +23 -4
  11. crypticorn/auth/main.py +8 -5
  12. crypticorn/cli/init.py +1 -1
  13. crypticorn/cli/templates/.env.docker.temp +3 -0
  14. crypticorn/cli/templates/.env.example.temp +4 -0
  15. crypticorn/cli/templates/Dockerfile +5 -2
  16. crypticorn/client.py +226 -59
  17. crypticorn/common/__init__.py +1 -0
  18. crypticorn/common/auth.py +45 -14
  19. crypticorn/common/decorators.py +1 -2
  20. crypticorn/common/enums.py +0 -2
  21. crypticorn/common/errors.py +10 -0
  22. crypticorn/common/metrics.py +30 -0
  23. crypticorn/common/middleware.py +94 -1
  24. crypticorn/common/pagination.py +252 -18
  25. crypticorn/common/router/admin_router.py +2 -2
  26. crypticorn/common/router/status_router.py +40 -2
  27. crypticorn/common/scopes.py +2 -0
  28. crypticorn/common/warnings.py +8 -0
  29. crypticorn/dex/__init__.py +6 -0
  30. crypticorn/dex/client/__init__.py +49 -0
  31. crypticorn/dex/client/api/__init__.py +6 -0
  32. crypticorn/dex/client/api/admin_api.py +2986 -0
  33. crypticorn/dex/client/api/signals_api.py +1798 -0
  34. crypticorn/dex/client/api/status_api.py +892 -0
  35. crypticorn/dex/client/api_client.py +758 -0
  36. crypticorn/dex/client/api_response.py +20 -0
  37. crypticorn/dex/client/configuration.py +620 -0
  38. crypticorn/dex/client/exceptions.py +220 -0
  39. crypticorn/dex/client/models/__init__.py +30 -0
  40. crypticorn/dex/client/models/api_error_identifier.py +121 -0
  41. crypticorn/dex/client/models/api_error_level.py +37 -0
  42. crypticorn/dex/client/models/api_error_type.py +37 -0
  43. crypticorn/dex/client/models/exception_detail.py +117 -0
  44. crypticorn/dex/client/models/log_level.py +38 -0
  45. crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
  46. crypticorn/dex/client/models/risk.py +86 -0
  47. crypticorn/dex/client/models/signal_overview_stats.py +158 -0
  48. crypticorn/dex/client/models/signal_volume.py +84 -0
  49. crypticorn/dex/client/models/signal_with_token.py +163 -0
  50. crypticorn/dex/client/models/token_data.py +127 -0
  51. crypticorn/dex/client/models/token_detail.py +116 -0
  52. crypticorn/dex/client/py.typed +0 -0
  53. crypticorn/dex/client/rest.py +217 -0
  54. crypticorn/dex/main.py +1 -0
  55. crypticorn/hive/client/api/admin_api.py +1173 -47
  56. crypticorn/hive/client/api/data_api.py +499 -17
  57. crypticorn/hive/client/api/models_api.py +1595 -87
  58. crypticorn/hive/client/api/status_api.py +397 -16
  59. crypticorn/hive/client/api_client.py +0 -5
  60. crypticorn/hive/client/models/api_error_identifier.py +1 -1
  61. crypticorn/hive/client/models/coin_info.py +1 -1
  62. crypticorn/hive/client/models/exception_detail.py +1 -1
  63. crypticorn/hive/client/models/target_info.py +1 -1
  64. crypticorn/hive/client/rest.py +23 -4
  65. crypticorn/hive/main.py +99 -25
  66. crypticorn/hive/utils.py +2 -2
  67. crypticorn/klines/client/api/admin_api.py +1173 -47
  68. crypticorn/klines/client/api/change_in_timeframe_api.py +269 -11
  69. crypticorn/klines/client/api/funding_rates_api.py +315 -11
  70. crypticorn/klines/client/api/ohlcv_data_api.py +390 -11
  71. crypticorn/klines/client/api/status_api.py +397 -16
  72. crypticorn/klines/client/api/symbols_api.py +216 -11
  73. crypticorn/klines/client/api/udf_api.py +1268 -51
  74. crypticorn/klines/client/api_client.py +0 -5
  75. crypticorn/klines/client/models/api_error_identifier.py +3 -1
  76. crypticorn/klines/client/models/exception_detail.py +1 -1
  77. crypticorn/klines/client/models/ohlcv.py +1 -1
  78. crypticorn/klines/client/models/symbol_group.py +1 -1
  79. crypticorn/klines/client/models/udf_config.py +1 -1
  80. crypticorn/klines/client/rest.py +23 -4
  81. crypticorn/klines/main.py +89 -12
  82. crypticorn/metrics/client/api/admin_api.py +1173 -47
  83. crypticorn/metrics/client/api/exchanges_api.py +1370 -145
  84. crypticorn/metrics/client/api/indicators_api.py +622 -17
  85. crypticorn/metrics/client/api/logs_api.py +296 -11
  86. crypticorn/metrics/client/api/marketcap_api.py +1207 -67
  87. crypticorn/metrics/client/api/markets_api.py +343 -11
  88. crypticorn/metrics/client/api/quote_currencies_api.py +228 -11
  89. crypticorn/metrics/client/api/status_api.py +397 -16
  90. crypticorn/metrics/client/api/tokens_api.py +382 -15
  91. crypticorn/metrics/client/api_client.py +0 -5
  92. crypticorn/metrics/client/configuration.py +4 -2
  93. crypticorn/metrics/client/models/exception_detail.py +1 -1
  94. crypticorn/metrics/client/models/exchange_mapping.py +1 -1
  95. crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
  96. crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
  97. crypticorn/metrics/client/models/ohlcv.py +1 -1
  98. crypticorn/metrics/client/rest.py +23 -4
  99. crypticorn/metrics/main.py +113 -19
  100. crypticorn/pay/client/api/admin_api.py +1585 -57
  101. crypticorn/pay/client/api/now_payments_api.py +961 -39
  102. crypticorn/pay/client/api/payments_api.py +562 -17
  103. crypticorn/pay/client/api/products_api.py +880 -30
  104. crypticorn/pay/client/api/status_api.py +397 -16
  105. crypticorn/pay/client/api_client.py +0 -5
  106. crypticorn/pay/client/configuration.py +2 -2
  107. crypticorn/pay/client/models/api_error_identifier.py +7 -7
  108. crypticorn/pay/client/models/exception_detail.py +1 -1
  109. crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
  110. crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
  111. crypticorn/pay/client/models/product.py +1 -1
  112. crypticorn/pay/client/models/product_create.py +1 -1
  113. crypticorn/pay/client/models/product_update.py +1 -1
  114. crypticorn/pay/client/models/scope.py +1 -0
  115. crypticorn/pay/client/rest.py +23 -4
  116. crypticorn/pay/main.py +10 -6
  117. crypticorn/trade/client/__init__.py +11 -1
  118. crypticorn/trade/client/api/__init__.py +0 -1
  119. crypticorn/trade/client/api/admin_api.py +1184 -55
  120. crypticorn/trade/client/api/api_keys_api.py +1678 -162
  121. crypticorn/trade/client/api/bots_api.py +7563 -187
  122. crypticorn/trade/client/api/exchanges_api.py +565 -19
  123. crypticorn/trade/client/api/notifications_api.py +1290 -116
  124. crypticorn/trade/client/api/orders_api.py +393 -55
  125. crypticorn/trade/client/api/status_api.py +397 -13
  126. crypticorn/trade/client/api/strategies_api.py +1133 -77
  127. crypticorn/trade/client/api/trading_actions_api.py +786 -65
  128. crypticorn/trade/client/models/__init__.py +11 -0
  129. crypticorn/trade/client/models/actions_count.py +88 -0
  130. crypticorn/trade/client/models/api_error_identifier.py +8 -7
  131. crypticorn/trade/client/models/bot.py +7 -18
  132. crypticorn/trade/client/models/bot_create.py +17 -1
  133. crypticorn/trade/client/models/bot_update.py +17 -1
  134. crypticorn/trade/client/models/exchange.py +6 -1
  135. crypticorn/trade/client/models/exchange_key.py +1 -1
  136. crypticorn/trade/client/models/exchange_key_balance.py +111 -0
  137. crypticorn/trade/client/models/exchange_key_create.py +17 -1
  138. crypticorn/trade/client/models/exchange_key_update.py +17 -1
  139. crypticorn/trade/client/models/execution_ids.py +1 -1
  140. crypticorn/trade/client/models/futures_balance.py +27 -25
  141. crypticorn/trade/client/models/futures_trading_action.py +6 -28
  142. crypticorn/trade/client/models/futures_trading_action_create.py +10 -13
  143. crypticorn/trade/client/models/notification.py +17 -1
  144. crypticorn/trade/client/models/notification_create.py +18 -2
  145. crypticorn/trade/client/models/notification_update.py +17 -1
  146. crypticorn/trade/client/models/order.py +2 -14
  147. crypticorn/trade/client/models/orders_count.py +88 -0
  148. crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
  149. crypticorn/trade/client/models/paginated_response_order.py +134 -0
  150. crypticorn/trade/client/models/pn_l.py +95 -0
  151. crypticorn/trade/client/models/post_futures_action.py +1 -1
  152. crypticorn/trade/client/models/spot_balance.py +109 -0
  153. crypticorn/trade/client/models/spot_trading_action_create.py +4 -1
  154. crypticorn/trade/client/models/strategy.py +22 -4
  155. crypticorn/trade/client/models/strategy_create.py +23 -5
  156. crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
  157. crypticorn/trade/client/models/strategy_update.py +19 -3
  158. crypticorn/trade/client/models/tpsl.py +4 -27
  159. crypticorn/trade/client/models/tpsl_create.py +6 -19
  160. crypticorn/trade/client/rest.py +23 -4
  161. crypticorn/trade/main.py +15 -12
  162. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/METADATA +65 -20
  163. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/RECORD +167 -132
  164. crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
  165. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/WHEEL +0 -0
  166. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/entry_points.txt +0 -0
  167. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/licenses/LICENSE +0 -0
  168. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/top_level.txt +0 -0
@@ -43,6 +43,24 @@ from crypticorn.auth.client.api_client import ApiClient, RequestSerialized
43
43
  from crypticorn.auth.client.api_response import ApiResponse
44
44
  from crypticorn.auth.client.rest import RESTResponseType
45
45
 
46
+ # Import async_to_sync for sync methods
47
+ try:
48
+ from asgiref.sync import async_to_sync
49
+
50
+ _HAS_ASGIREF = True
51
+ except ImportError:
52
+ _HAS_ASGIREF = False
53
+
54
+ def async_to_sync(async_func):
55
+ """Fallback decorator that raises an error if asgiref is not available."""
56
+
57
+ def wrapper(*args, **kwargs):
58
+ raise ImportError(
59
+ "asgiref is required for sync methods. Install with: pip install asgiref"
60
+ )
61
+
62
+ return wrapper
63
+
46
64
 
47
65
  class UserApi:
48
66
  """NOTE: This class is auto generated by OpenAPI Generator
@@ -51,13 +69,126 @@ class UserApi:
51
69
  Do not edit the class manually.
52
70
  """
53
71
 
54
- def __init__(self, api_client=None) -> None:
72
+ def __init__(self, api_client=None, is_sync: bool = False) -> None:
55
73
  if api_client is None:
56
74
  api_client = ApiClient.get_default()
57
75
  self.api_client = api_client
76
+ self.is_sync = is_sync
77
+
78
+ @validate_call
79
+ def create_user(
80
+ self,
81
+ create_user_request: CreateUserRequest,
82
+ _request_timeout: Union[
83
+ None,
84
+ Annotated[StrictFloat, Field(gt=0)],
85
+ Tuple[
86
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
87
+ ],
88
+ ] = None,
89
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
90
+ _content_type: Optional[StrictStr] = None,
91
+ _headers: Optional[Dict[StrictStr, Any]] = None,
92
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
93
+ ) -> object:
94
+ """Create User"""
95
+ if self.is_sync:
96
+ return self._create_user_sync(
97
+ create_user_request=create_user_request,
98
+ _request_timeout=_request_timeout,
99
+ _request_auth=_request_auth,
100
+ _content_type=_content_type,
101
+ _headers=_headers,
102
+ _host_index=_host_index,
103
+ )
104
+
105
+ else:
106
+ return self._create_user_async(
107
+ create_user_request=create_user_request,
108
+ _request_timeout=_request_timeout,
109
+ _request_auth=_request_auth,
110
+ _content_type=_content_type,
111
+ _headers=_headers,
112
+ _host_index=_host_index,
113
+ )
114
+
115
+ @validate_call
116
+ def create_user_with_http_info(
117
+ self,
118
+ create_user_request: CreateUserRequest,
119
+ _request_timeout: Union[
120
+ None,
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Tuple[
123
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
124
+ ],
125
+ ] = None,
126
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
127
+ _content_type: Optional[StrictStr] = None,
128
+ _headers: Optional[Dict[StrictStr, Any]] = None,
129
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
+ ) -> ApiResponse[object]:
131
+ """Create User with HTTP info"""
132
+ if self.is_sync:
133
+ return self._create_user_sync_with_http_info(
134
+ create_user_request=create_user_request,
135
+ _request_timeout=_request_timeout,
136
+ _request_auth=_request_auth,
137
+ _content_type=_content_type,
138
+ _headers=_headers,
139
+ _host_index=_host_index,
140
+ )
141
+
142
+ else:
143
+ return self._create_user_async_with_http_info(
144
+ create_user_request=create_user_request,
145
+ _request_timeout=_request_timeout,
146
+ _request_auth=_request_auth,
147
+ _content_type=_content_type,
148
+ _headers=_headers,
149
+ _host_index=_host_index,
150
+ )
151
+
152
+ @validate_call
153
+ def create_user_without_preload_content(
154
+ self,
155
+ create_user_request: CreateUserRequest,
156
+ _request_timeout: Union[
157
+ None,
158
+ Annotated[StrictFloat, Field(gt=0)],
159
+ Tuple[
160
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
161
+ ],
162
+ ] = None,
163
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
164
+ _content_type: Optional[StrictStr] = None,
165
+ _headers: Optional[Dict[StrictStr, Any]] = None,
166
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
167
+ ) -> RESTResponseType:
168
+ """Create User without preloading content"""
169
+ if self.is_sync:
170
+ return self._create_user_sync_without_preload_content(
171
+ create_user_request=create_user_request,
172
+ _request_timeout=_request_timeout,
173
+ _request_auth=_request_auth,
174
+ _content_type=_content_type,
175
+ _headers=_headers,
176
+ _host_index=_host_index,
177
+ )
178
+
179
+ else:
180
+ return self._create_user_async_without_preload_content(
181
+ create_user_request=create_user_request,
182
+ _request_timeout=_request_timeout,
183
+ _request_auth=_request_auth,
184
+ _content_type=_content_type,
185
+ _headers=_headers,
186
+ _host_index=_host_index,
187
+ )
58
188
 
189
+ # Private async implementation methods
59
190
  @validate_call
60
- async def create_user(
191
+ async def _create_user_async(
61
192
  self,
62
193
  create_user_request: CreateUserRequest,
63
194
  _request_timeout: Union[
@@ -121,7 +252,7 @@ class UserApi:
121
252
  ).data
122
253
 
123
254
  @validate_call
124
- async def create_user_with_http_info(
255
+ async def _create_user_async_with_http_info(
125
256
  self,
126
257
  create_user_request: CreateUserRequest,
127
258
  _request_timeout: Union[
@@ -180,12 +311,11 @@ class UserApi:
180
311
  )
181
312
  await response_data.read()
182
313
  return self.api_client.response_deserialize(
183
- response_data=response_data,
184
- response_types_map=_response_types_map,
314
+ response_data=response_data, response_types_map=_response_types_map
185
315
  )
186
316
 
187
317
  @validate_call
188
- async def create_user_without_preload_content(
318
+ async def _create_user_async_without_preload_content(
189
319
  self,
190
320
  create_user_request: CreateUserRequest,
191
321
  _request_timeout: Union[
@@ -242,7 +372,86 @@ class UserApi:
242
372
  response_data = await self.api_client.call_api(
243
373
  *_param, _request_timeout=_request_timeout
244
374
  )
245
- return response_data.response
375
+ return response_data
376
+
377
+ # Private sync implementation methods
378
+ @validate_call
379
+ def _create_user_sync(
380
+ self,
381
+ create_user_request: CreateUserRequest,
382
+ _request_timeout: Union[
383
+ None,
384
+ Annotated[StrictFloat, Field(gt=0)],
385
+ Tuple[
386
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
387
+ ],
388
+ ] = None,
389
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
390
+ _content_type: Optional[StrictStr] = None,
391
+ _headers: Optional[Dict[StrictStr, Any]] = None,
392
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
393
+ ) -> object:
394
+ """Synchronous version of create_user"""
395
+ return async_to_sync(self._create_user_async)(
396
+ create_user_request=create_user_request,
397
+ _request_timeout=_request_timeout,
398
+ _request_auth=_request_auth,
399
+ _content_type=_content_type,
400
+ _headers=_headers,
401
+ _host_index=_host_index,
402
+ )
403
+
404
+ @validate_call
405
+ def _create_user_sync_with_http_info(
406
+ self,
407
+ create_user_request: CreateUserRequest,
408
+ _request_timeout: Union[
409
+ None,
410
+ Annotated[StrictFloat, Field(gt=0)],
411
+ Tuple[
412
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
413
+ ],
414
+ ] = None,
415
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
416
+ _content_type: Optional[StrictStr] = None,
417
+ _headers: Optional[Dict[StrictStr, Any]] = None,
418
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
419
+ ) -> ApiResponse[object]:
420
+ """Synchronous version of create_user_with_http_info"""
421
+ return async_to_sync(self._create_user_async_with_http_info)(
422
+ create_user_request=create_user_request,
423
+ _request_timeout=_request_timeout,
424
+ _request_auth=_request_auth,
425
+ _content_type=_content_type,
426
+ _headers=_headers,
427
+ _host_index=_host_index,
428
+ )
429
+
430
+ @validate_call
431
+ def _create_user_sync_without_preload_content(
432
+ self,
433
+ create_user_request: CreateUserRequest,
434
+ _request_timeout: Union[
435
+ None,
436
+ Annotated[StrictFloat, Field(gt=0)],
437
+ Tuple[
438
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
439
+ ],
440
+ ] = None,
441
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
442
+ _content_type: Optional[StrictStr] = None,
443
+ _headers: Optional[Dict[StrictStr, Any]] = None,
444
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
445
+ ) -> RESTResponseType:
446
+ """Synchronous version of create_user_without_preload_content"""
447
+ return async_to_sync(self._create_user_async_without_preload_content)(
448
+ create_user_request=create_user_request,
449
+ _request_timeout=_request_timeout,
450
+ _request_auth=_request_auth,
451
+ _content_type=_content_type,
452
+ _headers=_headers,
453
+ _host_index=_host_index,
454
+ )
246
455
 
247
456
  def _create_user_serialize(
248
457
  self,
@@ -309,7 +518,110 @@ class UserApi:
309
518
  )
310
519
 
311
520
  @validate_call
312
- async def logout(
521
+ def logout(
522
+ self,
523
+ _request_timeout: Union[
524
+ None,
525
+ Annotated[StrictFloat, Field(gt=0)],
526
+ Tuple[
527
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
528
+ ],
529
+ ] = None,
530
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
531
+ _content_type: Optional[StrictStr] = None,
532
+ _headers: Optional[Dict[StrictStr, Any]] = None,
533
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
534
+ ) -> object:
535
+ """Logout"""
536
+ if self.is_sync:
537
+ return self._logout_sync(
538
+ _request_timeout=_request_timeout,
539
+ _request_auth=_request_auth,
540
+ _content_type=_content_type,
541
+ _headers=_headers,
542
+ _host_index=_host_index,
543
+ )
544
+
545
+ else:
546
+ return self._logout_async(
547
+ _request_timeout=_request_timeout,
548
+ _request_auth=_request_auth,
549
+ _content_type=_content_type,
550
+ _headers=_headers,
551
+ _host_index=_host_index,
552
+ )
553
+
554
+ @validate_call
555
+ def logout_with_http_info(
556
+ self,
557
+ _request_timeout: Union[
558
+ None,
559
+ Annotated[StrictFloat, Field(gt=0)],
560
+ Tuple[
561
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
562
+ ],
563
+ ] = None,
564
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
565
+ _content_type: Optional[StrictStr] = None,
566
+ _headers: Optional[Dict[StrictStr, Any]] = None,
567
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
568
+ ) -> ApiResponse[object]:
569
+ """Logout with HTTP info"""
570
+ if self.is_sync:
571
+ return self._logout_sync_with_http_info(
572
+ _request_timeout=_request_timeout,
573
+ _request_auth=_request_auth,
574
+ _content_type=_content_type,
575
+ _headers=_headers,
576
+ _host_index=_host_index,
577
+ )
578
+
579
+ else:
580
+ return self._logout_async_with_http_info(
581
+ _request_timeout=_request_timeout,
582
+ _request_auth=_request_auth,
583
+ _content_type=_content_type,
584
+ _headers=_headers,
585
+ _host_index=_host_index,
586
+ )
587
+
588
+ @validate_call
589
+ def logout_without_preload_content(
590
+ self,
591
+ _request_timeout: Union[
592
+ None,
593
+ Annotated[StrictFloat, Field(gt=0)],
594
+ Tuple[
595
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
596
+ ],
597
+ ] = None,
598
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
599
+ _content_type: Optional[StrictStr] = None,
600
+ _headers: Optional[Dict[StrictStr, Any]] = None,
601
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
602
+ ) -> RESTResponseType:
603
+ """Logout without preloading content"""
604
+ if self.is_sync:
605
+ return self._logout_sync_without_preload_content(
606
+ _request_timeout=_request_timeout,
607
+ _request_auth=_request_auth,
608
+ _content_type=_content_type,
609
+ _headers=_headers,
610
+ _host_index=_host_index,
611
+ )
612
+
613
+ else:
614
+ return self._logout_async_without_preload_content(
615
+ _request_timeout=_request_timeout,
616
+ _request_auth=_request_auth,
617
+ _content_type=_content_type,
618
+ _headers=_headers,
619
+ _host_index=_host_index,
620
+ )
621
+
622
+ # Private async implementation methods
623
+ @validate_call
624
+ async def _logout_async(
313
625
  self,
314
626
  _request_timeout: Union[
315
627
  None,
@@ -369,7 +681,7 @@ class UserApi:
369
681
  ).data
370
682
 
371
683
  @validate_call
372
- async def logout_with_http_info(
684
+ async def _logout_async_with_http_info(
373
685
  self,
374
686
  _request_timeout: Union[
375
687
  None,
@@ -424,12 +736,11 @@ class UserApi:
424
736
  )
425
737
  await response_data.read()
426
738
  return self.api_client.response_deserialize(
427
- response_data=response_data,
428
- response_types_map=_response_types_map,
739
+ response_data=response_data, response_types_map=_response_types_map
429
740
  )
430
741
 
431
742
  @validate_call
432
- async def logout_without_preload_content(
743
+ async def _logout_async_without_preload_content(
433
744
  self,
434
745
  _request_timeout: Union[
435
746
  None,
@@ -482,7 +793,80 @@ class UserApi:
482
793
  response_data = await self.api_client.call_api(
483
794
  *_param, _request_timeout=_request_timeout
484
795
  )
485
- return response_data.response
796
+ return response_data
797
+
798
+ # Private sync implementation methods
799
+ @validate_call
800
+ def _logout_sync(
801
+ self,
802
+ _request_timeout: Union[
803
+ None,
804
+ Annotated[StrictFloat, Field(gt=0)],
805
+ Tuple[
806
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
807
+ ],
808
+ ] = None,
809
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
810
+ _content_type: Optional[StrictStr] = None,
811
+ _headers: Optional[Dict[StrictStr, Any]] = None,
812
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
813
+ ) -> object:
814
+ """Synchronous version of logout"""
815
+ return async_to_sync(self._logout_async)(
816
+ _request_timeout=_request_timeout,
817
+ _request_auth=_request_auth,
818
+ _content_type=_content_type,
819
+ _headers=_headers,
820
+ _host_index=_host_index,
821
+ )
822
+
823
+ @validate_call
824
+ def _logout_sync_with_http_info(
825
+ self,
826
+ _request_timeout: Union[
827
+ None,
828
+ Annotated[StrictFloat, Field(gt=0)],
829
+ Tuple[
830
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
831
+ ],
832
+ ] = None,
833
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
834
+ _content_type: Optional[StrictStr] = None,
835
+ _headers: Optional[Dict[StrictStr, Any]] = None,
836
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
837
+ ) -> ApiResponse[object]:
838
+ """Synchronous version of logout_with_http_info"""
839
+ return async_to_sync(self._logout_async_with_http_info)(
840
+ _request_timeout=_request_timeout,
841
+ _request_auth=_request_auth,
842
+ _content_type=_content_type,
843
+ _headers=_headers,
844
+ _host_index=_host_index,
845
+ )
846
+
847
+ @validate_call
848
+ def _logout_sync_without_preload_content(
849
+ self,
850
+ _request_timeout: Union[
851
+ None,
852
+ Annotated[StrictFloat, Field(gt=0)],
853
+ Tuple[
854
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
855
+ ],
856
+ ] = None,
857
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
858
+ _content_type: Optional[StrictStr] = None,
859
+ _headers: Optional[Dict[StrictStr, Any]] = None,
860
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
861
+ ) -> RESTResponseType:
862
+ """Synchronous version of logout_without_preload_content"""
863
+ return async_to_sync(self._logout_async_without_preload_content)(
864
+ _request_timeout=_request_timeout,
865
+ _request_auth=_request_auth,
866
+ _content_type=_content_type,
867
+ _headers=_headers,
868
+ _host_index=_host_index,
869
+ )
486
870
 
487
871
  def _logout_serialize(
488
872
  self,
@@ -536,7 +920,7 @@ class UserApi:
536
920
  )
537
921
 
538
922
  @validate_call
539
- async def resend_verification_email(
923
+ def resend_verification_email(
540
924
  self,
541
925
  resend_verification_email_request: ResendVerificationEmailRequest,
542
926
  _request_timeout: Union[
@@ -551,9 +935,121 @@ class UserApi:
551
935
  _headers: Optional[Dict[StrictStr, Any]] = None,
552
936
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
553
937
  ) -> object:
554
- """Resend Verification Email
938
+ """Resend Verification Email"""
939
+ if self.is_sync:
940
+ return self._resend_verification_email_sync(
941
+ resend_verification_email_request=resend_verification_email_request,
942
+ _request_timeout=_request_timeout,
943
+ _request_auth=_request_auth,
944
+ _content_type=_content_type,
945
+ _headers=_headers,
946
+ _host_index=_host_index,
947
+ )
555
948
 
556
- Resends the verification email to the user.
949
+ else:
950
+ return self._resend_verification_email_async(
951
+ resend_verification_email_request=resend_verification_email_request,
952
+ _request_timeout=_request_timeout,
953
+ _request_auth=_request_auth,
954
+ _content_type=_content_type,
955
+ _headers=_headers,
956
+ _host_index=_host_index,
957
+ )
958
+
959
+ @validate_call
960
+ def resend_verification_email_with_http_info(
961
+ self,
962
+ resend_verification_email_request: ResendVerificationEmailRequest,
963
+ _request_timeout: Union[
964
+ None,
965
+ Annotated[StrictFloat, Field(gt=0)],
966
+ Tuple[
967
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
968
+ ],
969
+ ] = None,
970
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
971
+ _content_type: Optional[StrictStr] = None,
972
+ _headers: Optional[Dict[StrictStr, Any]] = None,
973
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
974
+ ) -> ApiResponse[object]:
975
+ """Resend Verification Email with HTTP info"""
976
+ if self.is_sync:
977
+ return self._resend_verification_email_sync_with_http_info(
978
+ resend_verification_email_request=resend_verification_email_request,
979
+ _request_timeout=_request_timeout,
980
+ _request_auth=_request_auth,
981
+ _content_type=_content_type,
982
+ _headers=_headers,
983
+ _host_index=_host_index,
984
+ )
985
+
986
+ else:
987
+ return self._resend_verification_email_async_with_http_info(
988
+ resend_verification_email_request=resend_verification_email_request,
989
+ _request_timeout=_request_timeout,
990
+ _request_auth=_request_auth,
991
+ _content_type=_content_type,
992
+ _headers=_headers,
993
+ _host_index=_host_index,
994
+ )
995
+
996
+ @validate_call
997
+ def resend_verification_email_without_preload_content(
998
+ self,
999
+ resend_verification_email_request: ResendVerificationEmailRequest,
1000
+ _request_timeout: Union[
1001
+ None,
1002
+ Annotated[StrictFloat, Field(gt=0)],
1003
+ Tuple[
1004
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1005
+ ],
1006
+ ] = None,
1007
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1008
+ _content_type: Optional[StrictStr] = None,
1009
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1010
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1011
+ ) -> RESTResponseType:
1012
+ """Resend Verification Email without preloading content"""
1013
+ if self.is_sync:
1014
+ return self._resend_verification_email_sync_without_preload_content(
1015
+ resend_verification_email_request=resend_verification_email_request,
1016
+ _request_timeout=_request_timeout,
1017
+ _request_auth=_request_auth,
1018
+ _content_type=_content_type,
1019
+ _headers=_headers,
1020
+ _host_index=_host_index,
1021
+ )
1022
+
1023
+ else:
1024
+ return self._resend_verification_email_async_without_preload_content(
1025
+ resend_verification_email_request=resend_verification_email_request,
1026
+ _request_timeout=_request_timeout,
1027
+ _request_auth=_request_auth,
1028
+ _content_type=_content_type,
1029
+ _headers=_headers,
1030
+ _host_index=_host_index,
1031
+ )
1032
+
1033
+ # Private async implementation methods
1034
+ @validate_call
1035
+ async def _resend_verification_email_async(
1036
+ self,
1037
+ resend_verification_email_request: ResendVerificationEmailRequest,
1038
+ _request_timeout: Union[
1039
+ None,
1040
+ Annotated[StrictFloat, Field(gt=0)],
1041
+ Tuple[
1042
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1043
+ ],
1044
+ ] = None,
1045
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1046
+ _content_type: Optional[StrictStr] = None,
1047
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1048
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1049
+ ) -> object:
1050
+ """Resend Verification Email
1051
+
1052
+ Resends the verification email to the user.
557
1053
 
558
1054
  :param resend_verification_email_request: (required)
559
1055
  :type resend_verification_email_request: ResendVerificationEmailRequest
@@ -600,7 +1096,7 @@ class UserApi:
600
1096
  ).data
601
1097
 
602
1098
  @validate_call
603
- async def resend_verification_email_with_http_info(
1099
+ async def _resend_verification_email_async_with_http_info(
604
1100
  self,
605
1101
  resend_verification_email_request: ResendVerificationEmailRequest,
606
1102
  _request_timeout: Union[
@@ -659,12 +1155,11 @@ class UserApi:
659
1155
  )
660
1156
  await response_data.read()
661
1157
  return self.api_client.response_deserialize(
662
- response_data=response_data,
663
- response_types_map=_response_types_map,
1158
+ response_data=response_data, response_types_map=_response_types_map
664
1159
  )
665
1160
 
666
1161
  @validate_call
667
- async def resend_verification_email_without_preload_content(
1162
+ async def _resend_verification_email_async_without_preload_content(
668
1163
  self,
669
1164
  resend_verification_email_request: ResendVerificationEmailRequest,
670
1165
  _request_timeout: Union[
@@ -721,7 +1216,88 @@ class UserApi:
721
1216
  response_data = await self.api_client.call_api(
722
1217
  *_param, _request_timeout=_request_timeout
723
1218
  )
724
- return response_data.response
1219
+ return response_data
1220
+
1221
+ # Private sync implementation methods
1222
+ @validate_call
1223
+ def _resend_verification_email_sync(
1224
+ self,
1225
+ resend_verification_email_request: ResendVerificationEmailRequest,
1226
+ _request_timeout: Union[
1227
+ None,
1228
+ Annotated[StrictFloat, Field(gt=0)],
1229
+ Tuple[
1230
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1231
+ ],
1232
+ ] = None,
1233
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1234
+ _content_type: Optional[StrictStr] = None,
1235
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1236
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1237
+ ) -> object:
1238
+ """Synchronous version of resend_verification_email"""
1239
+ return async_to_sync(self._resend_verification_email_async)(
1240
+ resend_verification_email_request=resend_verification_email_request,
1241
+ _request_timeout=_request_timeout,
1242
+ _request_auth=_request_auth,
1243
+ _content_type=_content_type,
1244
+ _headers=_headers,
1245
+ _host_index=_host_index,
1246
+ )
1247
+
1248
+ @validate_call
1249
+ def _resend_verification_email_sync_with_http_info(
1250
+ self,
1251
+ resend_verification_email_request: ResendVerificationEmailRequest,
1252
+ _request_timeout: Union[
1253
+ None,
1254
+ Annotated[StrictFloat, Field(gt=0)],
1255
+ Tuple[
1256
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1257
+ ],
1258
+ ] = None,
1259
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1260
+ _content_type: Optional[StrictStr] = None,
1261
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1262
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1263
+ ) -> ApiResponse[object]:
1264
+ """Synchronous version of resend_verification_email_with_http_info"""
1265
+ return async_to_sync(self._resend_verification_email_async_with_http_info)(
1266
+ resend_verification_email_request=resend_verification_email_request,
1267
+ _request_timeout=_request_timeout,
1268
+ _request_auth=_request_auth,
1269
+ _content_type=_content_type,
1270
+ _headers=_headers,
1271
+ _host_index=_host_index,
1272
+ )
1273
+
1274
+ @validate_call
1275
+ def _resend_verification_email_sync_without_preload_content(
1276
+ self,
1277
+ resend_verification_email_request: ResendVerificationEmailRequest,
1278
+ _request_timeout: Union[
1279
+ None,
1280
+ Annotated[StrictFloat, Field(gt=0)],
1281
+ Tuple[
1282
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1283
+ ],
1284
+ ] = None,
1285
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1286
+ _content_type: Optional[StrictStr] = None,
1287
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1288
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1289
+ ) -> RESTResponseType:
1290
+ """Synchronous version of resend_verification_email_without_preload_content"""
1291
+ return async_to_sync(
1292
+ self._resend_verification_email_async_without_preload_content
1293
+ )(
1294
+ resend_verification_email_request=resend_verification_email_request,
1295
+ _request_timeout=_request_timeout,
1296
+ _request_auth=_request_auth,
1297
+ _content_type=_content_type,
1298
+ _headers=_headers,
1299
+ _host_index=_host_index,
1300
+ )
725
1301
 
726
1302
  def _resend_verification_email_serialize(
727
1303
  self,
@@ -788,7 +1364,119 @@ class UserApi:
788
1364
  )
789
1365
 
790
1366
  @validate_call
791
- async def send_password_reset_email(
1367
+ def send_password_reset_email(
1368
+ self,
1369
+ resend_verification_email_request: ResendVerificationEmailRequest,
1370
+ _request_timeout: Union[
1371
+ None,
1372
+ Annotated[StrictFloat, Field(gt=0)],
1373
+ Tuple[
1374
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1375
+ ],
1376
+ ] = None,
1377
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1378
+ _content_type: Optional[StrictStr] = None,
1379
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1380
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1381
+ ) -> object:
1382
+ """Send Password Reset Email"""
1383
+ if self.is_sync:
1384
+ return self._send_password_reset_email_sync(
1385
+ resend_verification_email_request=resend_verification_email_request,
1386
+ _request_timeout=_request_timeout,
1387
+ _request_auth=_request_auth,
1388
+ _content_type=_content_type,
1389
+ _headers=_headers,
1390
+ _host_index=_host_index,
1391
+ )
1392
+
1393
+ else:
1394
+ return self._send_password_reset_email_async(
1395
+ resend_verification_email_request=resend_verification_email_request,
1396
+ _request_timeout=_request_timeout,
1397
+ _request_auth=_request_auth,
1398
+ _content_type=_content_type,
1399
+ _headers=_headers,
1400
+ _host_index=_host_index,
1401
+ )
1402
+
1403
+ @validate_call
1404
+ def send_password_reset_email_with_http_info(
1405
+ self,
1406
+ resend_verification_email_request: ResendVerificationEmailRequest,
1407
+ _request_timeout: Union[
1408
+ None,
1409
+ Annotated[StrictFloat, Field(gt=0)],
1410
+ Tuple[
1411
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1412
+ ],
1413
+ ] = None,
1414
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1415
+ _content_type: Optional[StrictStr] = None,
1416
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1417
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1418
+ ) -> ApiResponse[object]:
1419
+ """Send Password Reset Email with HTTP info"""
1420
+ if self.is_sync:
1421
+ return self._send_password_reset_email_sync_with_http_info(
1422
+ resend_verification_email_request=resend_verification_email_request,
1423
+ _request_timeout=_request_timeout,
1424
+ _request_auth=_request_auth,
1425
+ _content_type=_content_type,
1426
+ _headers=_headers,
1427
+ _host_index=_host_index,
1428
+ )
1429
+
1430
+ else:
1431
+ return self._send_password_reset_email_async_with_http_info(
1432
+ resend_verification_email_request=resend_verification_email_request,
1433
+ _request_timeout=_request_timeout,
1434
+ _request_auth=_request_auth,
1435
+ _content_type=_content_type,
1436
+ _headers=_headers,
1437
+ _host_index=_host_index,
1438
+ )
1439
+
1440
+ @validate_call
1441
+ def send_password_reset_email_without_preload_content(
1442
+ self,
1443
+ resend_verification_email_request: ResendVerificationEmailRequest,
1444
+ _request_timeout: Union[
1445
+ None,
1446
+ Annotated[StrictFloat, Field(gt=0)],
1447
+ Tuple[
1448
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1449
+ ],
1450
+ ] = None,
1451
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1452
+ _content_type: Optional[StrictStr] = None,
1453
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1454
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1455
+ ) -> RESTResponseType:
1456
+ """Send Password Reset Email without preloading content"""
1457
+ if self.is_sync:
1458
+ return self._send_password_reset_email_sync_without_preload_content(
1459
+ resend_verification_email_request=resend_verification_email_request,
1460
+ _request_timeout=_request_timeout,
1461
+ _request_auth=_request_auth,
1462
+ _content_type=_content_type,
1463
+ _headers=_headers,
1464
+ _host_index=_host_index,
1465
+ )
1466
+
1467
+ else:
1468
+ return self._send_password_reset_email_async_without_preload_content(
1469
+ resend_verification_email_request=resend_verification_email_request,
1470
+ _request_timeout=_request_timeout,
1471
+ _request_auth=_request_auth,
1472
+ _content_type=_content_type,
1473
+ _headers=_headers,
1474
+ _host_index=_host_index,
1475
+ )
1476
+
1477
+ # Private async implementation methods
1478
+ @validate_call
1479
+ async def _send_password_reset_email_async(
792
1480
  self,
793
1481
  resend_verification_email_request: ResendVerificationEmailRequest,
794
1482
  _request_timeout: Union[
@@ -852,7 +1540,7 @@ class UserApi:
852
1540
  ).data
853
1541
 
854
1542
  @validate_call
855
- async def send_password_reset_email_with_http_info(
1543
+ async def _send_password_reset_email_async_with_http_info(
856
1544
  self,
857
1545
  resend_verification_email_request: ResendVerificationEmailRequest,
858
1546
  _request_timeout: Union[
@@ -911,12 +1599,11 @@ class UserApi:
911
1599
  )
912
1600
  await response_data.read()
913
1601
  return self.api_client.response_deserialize(
914
- response_data=response_data,
915
- response_types_map=_response_types_map,
1602
+ response_data=response_data, response_types_map=_response_types_map
916
1603
  )
917
1604
 
918
1605
  @validate_call
919
- async def send_password_reset_email_without_preload_content(
1606
+ async def _send_password_reset_email_async_without_preload_content(
920
1607
  self,
921
1608
  resend_verification_email_request: ResendVerificationEmailRequest,
922
1609
  _request_timeout: Union[
@@ -973,35 +1660,116 @@ class UserApi:
973
1660
  response_data = await self.api_client.call_api(
974
1661
  *_param, _request_timeout=_request_timeout
975
1662
  )
976
- return response_data.response
1663
+ return response_data
977
1664
 
978
- def _send_password_reset_email_serialize(
1665
+ # Private sync implementation methods
1666
+ @validate_call
1667
+ def _send_password_reset_email_sync(
979
1668
  self,
980
- resend_verification_email_request,
981
- _request_auth,
982
- _content_type,
983
- _headers,
984
- _host_index,
985
- ) -> RequestSerialized:
986
-
987
- _host = None
988
-
989
- _collection_formats: Dict[str, str] = {}
1669
+ resend_verification_email_request: ResendVerificationEmailRequest,
1670
+ _request_timeout: Union[
1671
+ None,
1672
+ Annotated[StrictFloat, Field(gt=0)],
1673
+ Tuple[
1674
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1675
+ ],
1676
+ ] = None,
1677
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1678
+ _content_type: Optional[StrictStr] = None,
1679
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1680
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1681
+ ) -> object:
1682
+ """Synchronous version of send_password_reset_email"""
1683
+ return async_to_sync(self._send_password_reset_email_async)(
1684
+ resend_verification_email_request=resend_verification_email_request,
1685
+ _request_timeout=_request_timeout,
1686
+ _request_auth=_request_auth,
1687
+ _content_type=_content_type,
1688
+ _headers=_headers,
1689
+ _host_index=_host_index,
1690
+ )
990
1691
 
991
- _path_params: Dict[str, str] = {}
992
- _query_params: List[Tuple[str, str]] = []
993
- _header_params: Dict[str, Optional[str]] = _headers or {}
994
- _form_params: List[Tuple[str, str]] = []
995
- _files: Dict[
996
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
997
- ] = {}
998
- _body_params: Optional[bytes] = None
1692
+ @validate_call
1693
+ def _send_password_reset_email_sync_with_http_info(
1694
+ self,
1695
+ resend_verification_email_request: ResendVerificationEmailRequest,
1696
+ _request_timeout: Union[
1697
+ None,
1698
+ Annotated[StrictFloat, Field(gt=0)],
1699
+ Tuple[
1700
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1701
+ ],
1702
+ ] = None,
1703
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1704
+ _content_type: Optional[StrictStr] = None,
1705
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1706
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1707
+ ) -> ApiResponse[object]:
1708
+ """Synchronous version of send_password_reset_email_with_http_info"""
1709
+ return async_to_sync(self._send_password_reset_email_async_with_http_info)(
1710
+ resend_verification_email_request=resend_verification_email_request,
1711
+ _request_timeout=_request_timeout,
1712
+ _request_auth=_request_auth,
1713
+ _content_type=_content_type,
1714
+ _headers=_headers,
1715
+ _host_index=_host_index,
1716
+ )
999
1717
 
1000
- # process the path parameters
1001
- # process the query parameters
1002
- # process the header parameters
1003
- # process the form parameters
1004
- # process the body parameter
1718
+ @validate_call
1719
+ def _send_password_reset_email_sync_without_preload_content(
1720
+ self,
1721
+ resend_verification_email_request: ResendVerificationEmailRequest,
1722
+ _request_timeout: Union[
1723
+ None,
1724
+ Annotated[StrictFloat, Field(gt=0)],
1725
+ Tuple[
1726
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1727
+ ],
1728
+ ] = None,
1729
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1730
+ _content_type: Optional[StrictStr] = None,
1731
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1732
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1733
+ ) -> RESTResponseType:
1734
+ """Synchronous version of send_password_reset_email_without_preload_content"""
1735
+ return async_to_sync(
1736
+ self._send_password_reset_email_async_without_preload_content
1737
+ )(
1738
+ resend_verification_email_request=resend_verification_email_request,
1739
+ _request_timeout=_request_timeout,
1740
+ _request_auth=_request_auth,
1741
+ _content_type=_content_type,
1742
+ _headers=_headers,
1743
+ _host_index=_host_index,
1744
+ )
1745
+
1746
+ def _send_password_reset_email_serialize(
1747
+ self,
1748
+ resend_verification_email_request,
1749
+ _request_auth,
1750
+ _content_type,
1751
+ _headers,
1752
+ _host_index,
1753
+ ) -> RequestSerialized:
1754
+
1755
+ _host = None
1756
+
1757
+ _collection_formats: Dict[str, str] = {}
1758
+
1759
+ _path_params: Dict[str, str] = {}
1760
+ _query_params: List[Tuple[str, str]] = []
1761
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1762
+ _form_params: List[Tuple[str, str]] = []
1763
+ _files: Dict[
1764
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1765
+ ] = {}
1766
+ _body_params: Optional[bytes] = None
1767
+
1768
+ # process the path parameters
1769
+ # process the query parameters
1770
+ # process the header parameters
1771
+ # process the form parameters
1772
+ # process the body parameter
1005
1773
  if resend_verification_email_request is not None:
1006
1774
  _body_params = resend_verification_email_request
1007
1775
 
@@ -1040,7 +1808,119 @@ class UserApi:
1040
1808
  )
1041
1809
 
1042
1810
  @validate_call
1043
- async def update_user(
1811
+ def update_user(
1812
+ self,
1813
+ update_user_request: UpdateUserRequest,
1814
+ _request_timeout: Union[
1815
+ None,
1816
+ Annotated[StrictFloat, Field(gt=0)],
1817
+ Tuple[
1818
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1819
+ ],
1820
+ ] = None,
1821
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1822
+ _content_type: Optional[StrictStr] = None,
1823
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1824
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1825
+ ) -> object:
1826
+ """Update User"""
1827
+ if self.is_sync:
1828
+ return self._update_user_sync(
1829
+ update_user_request=update_user_request,
1830
+ _request_timeout=_request_timeout,
1831
+ _request_auth=_request_auth,
1832
+ _content_type=_content_type,
1833
+ _headers=_headers,
1834
+ _host_index=_host_index,
1835
+ )
1836
+
1837
+ else:
1838
+ return self._update_user_async(
1839
+ update_user_request=update_user_request,
1840
+ _request_timeout=_request_timeout,
1841
+ _request_auth=_request_auth,
1842
+ _content_type=_content_type,
1843
+ _headers=_headers,
1844
+ _host_index=_host_index,
1845
+ )
1846
+
1847
+ @validate_call
1848
+ def update_user_with_http_info(
1849
+ self,
1850
+ update_user_request: UpdateUserRequest,
1851
+ _request_timeout: Union[
1852
+ None,
1853
+ Annotated[StrictFloat, Field(gt=0)],
1854
+ Tuple[
1855
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1856
+ ],
1857
+ ] = None,
1858
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1859
+ _content_type: Optional[StrictStr] = None,
1860
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1861
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1862
+ ) -> ApiResponse[object]:
1863
+ """Update User with HTTP info"""
1864
+ if self.is_sync:
1865
+ return self._update_user_sync_with_http_info(
1866
+ update_user_request=update_user_request,
1867
+ _request_timeout=_request_timeout,
1868
+ _request_auth=_request_auth,
1869
+ _content_type=_content_type,
1870
+ _headers=_headers,
1871
+ _host_index=_host_index,
1872
+ )
1873
+
1874
+ else:
1875
+ return self._update_user_async_with_http_info(
1876
+ update_user_request=update_user_request,
1877
+ _request_timeout=_request_timeout,
1878
+ _request_auth=_request_auth,
1879
+ _content_type=_content_type,
1880
+ _headers=_headers,
1881
+ _host_index=_host_index,
1882
+ )
1883
+
1884
+ @validate_call
1885
+ def update_user_without_preload_content(
1886
+ self,
1887
+ update_user_request: UpdateUserRequest,
1888
+ _request_timeout: Union[
1889
+ None,
1890
+ Annotated[StrictFloat, Field(gt=0)],
1891
+ Tuple[
1892
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1893
+ ],
1894
+ ] = None,
1895
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1896
+ _content_type: Optional[StrictStr] = None,
1897
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1898
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1899
+ ) -> RESTResponseType:
1900
+ """Update User without preloading content"""
1901
+ if self.is_sync:
1902
+ return self._update_user_sync_without_preload_content(
1903
+ update_user_request=update_user_request,
1904
+ _request_timeout=_request_timeout,
1905
+ _request_auth=_request_auth,
1906
+ _content_type=_content_type,
1907
+ _headers=_headers,
1908
+ _host_index=_host_index,
1909
+ )
1910
+
1911
+ else:
1912
+ return self._update_user_async_without_preload_content(
1913
+ update_user_request=update_user_request,
1914
+ _request_timeout=_request_timeout,
1915
+ _request_auth=_request_auth,
1916
+ _content_type=_content_type,
1917
+ _headers=_headers,
1918
+ _host_index=_host_index,
1919
+ )
1920
+
1921
+ # Private async implementation methods
1922
+ @validate_call
1923
+ async def _update_user_async(
1044
1924
  self,
1045
1925
  update_user_request: UpdateUserRequest,
1046
1926
  _request_timeout: Union[
@@ -1104,7 +1984,7 @@ class UserApi:
1104
1984
  ).data
1105
1985
 
1106
1986
  @validate_call
1107
- async def update_user_with_http_info(
1987
+ async def _update_user_async_with_http_info(
1108
1988
  self,
1109
1989
  update_user_request: UpdateUserRequest,
1110
1990
  _request_timeout: Union[
@@ -1163,12 +2043,11 @@ class UserApi:
1163
2043
  )
1164
2044
  await response_data.read()
1165
2045
  return self.api_client.response_deserialize(
1166
- response_data=response_data,
1167
- response_types_map=_response_types_map,
2046
+ response_data=response_data, response_types_map=_response_types_map
1168
2047
  )
1169
2048
 
1170
2049
  @validate_call
1171
- async def update_user_without_preload_content(
2050
+ async def _update_user_async_without_preload_content(
1172
2051
  self,
1173
2052
  update_user_request: UpdateUserRequest,
1174
2053
  _request_timeout: Union[
@@ -1225,7 +2104,86 @@ class UserApi:
1225
2104
  response_data = await self.api_client.call_api(
1226
2105
  *_param, _request_timeout=_request_timeout
1227
2106
  )
1228
- return response_data.response
2107
+ return response_data
2108
+
2109
+ # Private sync implementation methods
2110
+ @validate_call
2111
+ def _update_user_sync(
2112
+ self,
2113
+ update_user_request: UpdateUserRequest,
2114
+ _request_timeout: Union[
2115
+ None,
2116
+ Annotated[StrictFloat, Field(gt=0)],
2117
+ Tuple[
2118
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2119
+ ],
2120
+ ] = None,
2121
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2122
+ _content_type: Optional[StrictStr] = None,
2123
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2124
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2125
+ ) -> object:
2126
+ """Synchronous version of update_user"""
2127
+ return async_to_sync(self._update_user_async)(
2128
+ update_user_request=update_user_request,
2129
+ _request_timeout=_request_timeout,
2130
+ _request_auth=_request_auth,
2131
+ _content_type=_content_type,
2132
+ _headers=_headers,
2133
+ _host_index=_host_index,
2134
+ )
2135
+
2136
+ @validate_call
2137
+ def _update_user_sync_with_http_info(
2138
+ self,
2139
+ update_user_request: UpdateUserRequest,
2140
+ _request_timeout: Union[
2141
+ None,
2142
+ Annotated[StrictFloat, Field(gt=0)],
2143
+ Tuple[
2144
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2145
+ ],
2146
+ ] = None,
2147
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2148
+ _content_type: Optional[StrictStr] = None,
2149
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2150
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2151
+ ) -> ApiResponse[object]:
2152
+ """Synchronous version of update_user_with_http_info"""
2153
+ return async_to_sync(self._update_user_async_with_http_info)(
2154
+ update_user_request=update_user_request,
2155
+ _request_timeout=_request_timeout,
2156
+ _request_auth=_request_auth,
2157
+ _content_type=_content_type,
2158
+ _headers=_headers,
2159
+ _host_index=_host_index,
2160
+ )
2161
+
2162
+ @validate_call
2163
+ def _update_user_sync_without_preload_content(
2164
+ self,
2165
+ update_user_request: UpdateUserRequest,
2166
+ _request_timeout: Union[
2167
+ None,
2168
+ Annotated[StrictFloat, Field(gt=0)],
2169
+ Tuple[
2170
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2171
+ ],
2172
+ ] = None,
2173
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2174
+ _content_type: Optional[StrictStr] = None,
2175
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2176
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2177
+ ) -> RESTResponseType:
2178
+ """Synchronous version of update_user_without_preload_content"""
2179
+ return async_to_sync(self._update_user_async_without_preload_content)(
2180
+ update_user_request=update_user_request,
2181
+ _request_timeout=_request_timeout,
2182
+ _request_auth=_request_auth,
2183
+ _content_type=_content_type,
2184
+ _headers=_headers,
2185
+ _host_index=_host_index,
2186
+ )
1229
2187
 
1230
2188
  def _update_user_serialize(
1231
2189
  self,
@@ -1292,7 +2250,119 @@ class UserApi:
1292
2250
  )
1293
2251
 
1294
2252
  @validate_call
1295
- async def user_by_id(
2253
+ def user_by_id(
2254
+ self,
2255
+ id: StrictStr,
2256
+ _request_timeout: Union[
2257
+ None,
2258
+ Annotated[StrictFloat, Field(gt=0)],
2259
+ Tuple[
2260
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2261
+ ],
2262
+ ] = None,
2263
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2264
+ _content_type: Optional[StrictStr] = None,
2265
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2266
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2267
+ ) -> Whoami200Response:
2268
+ """User By Id"""
2269
+ if self.is_sync:
2270
+ return self._user_by_id_sync(
2271
+ id=id,
2272
+ _request_timeout=_request_timeout,
2273
+ _request_auth=_request_auth,
2274
+ _content_type=_content_type,
2275
+ _headers=_headers,
2276
+ _host_index=_host_index,
2277
+ )
2278
+
2279
+ else:
2280
+ return self._user_by_id_async(
2281
+ id=id,
2282
+ _request_timeout=_request_timeout,
2283
+ _request_auth=_request_auth,
2284
+ _content_type=_content_type,
2285
+ _headers=_headers,
2286
+ _host_index=_host_index,
2287
+ )
2288
+
2289
+ @validate_call
2290
+ def user_by_id_with_http_info(
2291
+ self,
2292
+ id: StrictStr,
2293
+ _request_timeout: Union[
2294
+ None,
2295
+ Annotated[StrictFloat, Field(gt=0)],
2296
+ Tuple[
2297
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2298
+ ],
2299
+ ] = None,
2300
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2301
+ _content_type: Optional[StrictStr] = None,
2302
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2303
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2304
+ ) -> ApiResponse[Whoami200Response]:
2305
+ """User By Id with HTTP info"""
2306
+ if self.is_sync:
2307
+ return self._user_by_id_sync_with_http_info(
2308
+ id=id,
2309
+ _request_timeout=_request_timeout,
2310
+ _request_auth=_request_auth,
2311
+ _content_type=_content_type,
2312
+ _headers=_headers,
2313
+ _host_index=_host_index,
2314
+ )
2315
+
2316
+ else:
2317
+ return self._user_by_id_async_with_http_info(
2318
+ id=id,
2319
+ _request_timeout=_request_timeout,
2320
+ _request_auth=_request_auth,
2321
+ _content_type=_content_type,
2322
+ _headers=_headers,
2323
+ _host_index=_host_index,
2324
+ )
2325
+
2326
+ @validate_call
2327
+ def user_by_id_without_preload_content(
2328
+ self,
2329
+ id: StrictStr,
2330
+ _request_timeout: Union[
2331
+ None,
2332
+ Annotated[StrictFloat, Field(gt=0)],
2333
+ Tuple[
2334
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2335
+ ],
2336
+ ] = None,
2337
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2338
+ _content_type: Optional[StrictStr] = None,
2339
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2340
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2341
+ ) -> RESTResponseType:
2342
+ """User By Id without preloading content"""
2343
+ if self.is_sync:
2344
+ return self._user_by_id_sync_without_preload_content(
2345
+ id=id,
2346
+ _request_timeout=_request_timeout,
2347
+ _request_auth=_request_auth,
2348
+ _content_type=_content_type,
2349
+ _headers=_headers,
2350
+ _host_index=_host_index,
2351
+ )
2352
+
2353
+ else:
2354
+ return self._user_by_id_async_without_preload_content(
2355
+ id=id,
2356
+ _request_timeout=_request_timeout,
2357
+ _request_auth=_request_auth,
2358
+ _content_type=_content_type,
2359
+ _headers=_headers,
2360
+ _host_index=_host_index,
2361
+ )
2362
+
2363
+ # Private async implementation methods
2364
+ @validate_call
2365
+ async def _user_by_id_async(
1296
2366
  self,
1297
2367
  id: StrictStr,
1298
2368
  _request_timeout: Union[
@@ -1356,7 +2426,7 @@ class UserApi:
1356
2426
  ).data
1357
2427
 
1358
2428
  @validate_call
1359
- async def user_by_id_with_http_info(
2429
+ async def _user_by_id_async_with_http_info(
1360
2430
  self,
1361
2431
  id: StrictStr,
1362
2432
  _request_timeout: Union[
@@ -1415,12 +2485,11 @@ class UserApi:
1415
2485
  )
1416
2486
  await response_data.read()
1417
2487
  return self.api_client.response_deserialize(
1418
- response_data=response_data,
1419
- response_types_map=_response_types_map,
2488
+ response_data=response_data, response_types_map=_response_types_map
1420
2489
  )
1421
2490
 
1422
2491
  @validate_call
1423
- async def user_by_id_without_preload_content(
2492
+ async def _user_by_id_async_without_preload_content(
1424
2493
  self,
1425
2494
  id: StrictStr,
1426
2495
  _request_timeout: Union[
@@ -1477,25 +2546,104 @@ class UserApi:
1477
2546
  response_data = await self.api_client.call_api(
1478
2547
  *_param, _request_timeout=_request_timeout
1479
2548
  )
1480
- return response_data.response
2549
+ return response_data
1481
2550
 
1482
- def _user_by_id_serialize(
2551
+ # Private sync implementation methods
2552
+ @validate_call
2553
+ def _user_by_id_sync(
1483
2554
  self,
1484
- id,
1485
- _request_auth,
1486
- _content_type,
1487
- _headers,
1488
- _host_index,
1489
- ) -> RequestSerialized:
1490
-
1491
- _host = None
1492
-
1493
- _collection_formats: Dict[str, str] = {}
1494
-
1495
- _path_params: Dict[str, str] = {}
1496
- _query_params: List[Tuple[str, str]] = []
1497
- _header_params: Dict[str, Optional[str]] = _headers or {}
1498
- _form_params: List[Tuple[str, str]] = []
2555
+ id: StrictStr,
2556
+ _request_timeout: Union[
2557
+ None,
2558
+ Annotated[StrictFloat, Field(gt=0)],
2559
+ Tuple[
2560
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2561
+ ],
2562
+ ] = None,
2563
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2564
+ _content_type: Optional[StrictStr] = None,
2565
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2566
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2567
+ ) -> Whoami200Response:
2568
+ """Synchronous version of user_by_id"""
2569
+ return async_to_sync(self._user_by_id_async)(
2570
+ id=id,
2571
+ _request_timeout=_request_timeout,
2572
+ _request_auth=_request_auth,
2573
+ _content_type=_content_type,
2574
+ _headers=_headers,
2575
+ _host_index=_host_index,
2576
+ )
2577
+
2578
+ @validate_call
2579
+ def _user_by_id_sync_with_http_info(
2580
+ self,
2581
+ id: StrictStr,
2582
+ _request_timeout: Union[
2583
+ None,
2584
+ Annotated[StrictFloat, Field(gt=0)],
2585
+ Tuple[
2586
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2587
+ ],
2588
+ ] = None,
2589
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2590
+ _content_type: Optional[StrictStr] = None,
2591
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2592
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2593
+ ) -> ApiResponse[Whoami200Response]:
2594
+ """Synchronous version of user_by_id_with_http_info"""
2595
+ return async_to_sync(self._user_by_id_async_with_http_info)(
2596
+ id=id,
2597
+ _request_timeout=_request_timeout,
2598
+ _request_auth=_request_auth,
2599
+ _content_type=_content_type,
2600
+ _headers=_headers,
2601
+ _host_index=_host_index,
2602
+ )
2603
+
2604
+ @validate_call
2605
+ def _user_by_id_sync_without_preload_content(
2606
+ self,
2607
+ id: StrictStr,
2608
+ _request_timeout: Union[
2609
+ None,
2610
+ Annotated[StrictFloat, Field(gt=0)],
2611
+ Tuple[
2612
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2613
+ ],
2614
+ ] = None,
2615
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2616
+ _content_type: Optional[StrictStr] = None,
2617
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2618
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2619
+ ) -> RESTResponseType:
2620
+ """Synchronous version of user_by_id_without_preload_content"""
2621
+ return async_to_sync(self._user_by_id_async_without_preload_content)(
2622
+ id=id,
2623
+ _request_timeout=_request_timeout,
2624
+ _request_auth=_request_auth,
2625
+ _content_type=_content_type,
2626
+ _headers=_headers,
2627
+ _host_index=_host_index,
2628
+ )
2629
+
2630
+ def _user_by_id_serialize(
2631
+ self,
2632
+ id,
2633
+ _request_auth,
2634
+ _content_type,
2635
+ _headers,
2636
+ _host_index,
2637
+ ) -> RequestSerialized:
2638
+
2639
+ _host = None
2640
+
2641
+ _collection_formats: Dict[str, str] = {}
2642
+
2643
+ _path_params: Dict[str, str] = {}
2644
+ _query_params: List[Tuple[str, str]] = []
2645
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2646
+ _form_params: List[Tuple[str, str]] = []
1499
2647
  _files: Dict[
1500
2648
  str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1501
2649
  ] = {}
@@ -1536,7 +2684,119 @@ class UserApi:
1536
2684
  )
1537
2685
 
1538
2686
  @validate_call
1539
- async def user_by_username(
2687
+ def user_by_username(
2688
+ self,
2689
+ username: StrictStr,
2690
+ _request_timeout: Union[
2691
+ None,
2692
+ Annotated[StrictFloat, Field(gt=0)],
2693
+ Tuple[
2694
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2695
+ ],
2696
+ ] = None,
2697
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2698
+ _content_type: Optional[StrictStr] = None,
2699
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2700
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2701
+ ) -> UserByUsername200Response:
2702
+ """User By Username"""
2703
+ if self.is_sync:
2704
+ return self._user_by_username_sync(
2705
+ username=username,
2706
+ _request_timeout=_request_timeout,
2707
+ _request_auth=_request_auth,
2708
+ _content_type=_content_type,
2709
+ _headers=_headers,
2710
+ _host_index=_host_index,
2711
+ )
2712
+
2713
+ else:
2714
+ return self._user_by_username_async(
2715
+ username=username,
2716
+ _request_timeout=_request_timeout,
2717
+ _request_auth=_request_auth,
2718
+ _content_type=_content_type,
2719
+ _headers=_headers,
2720
+ _host_index=_host_index,
2721
+ )
2722
+
2723
+ @validate_call
2724
+ def user_by_username_with_http_info(
2725
+ self,
2726
+ username: StrictStr,
2727
+ _request_timeout: Union[
2728
+ None,
2729
+ Annotated[StrictFloat, Field(gt=0)],
2730
+ Tuple[
2731
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2732
+ ],
2733
+ ] = None,
2734
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2735
+ _content_type: Optional[StrictStr] = None,
2736
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2737
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2738
+ ) -> ApiResponse[UserByUsername200Response]:
2739
+ """User By Username with HTTP info"""
2740
+ if self.is_sync:
2741
+ return self._user_by_username_sync_with_http_info(
2742
+ username=username,
2743
+ _request_timeout=_request_timeout,
2744
+ _request_auth=_request_auth,
2745
+ _content_type=_content_type,
2746
+ _headers=_headers,
2747
+ _host_index=_host_index,
2748
+ )
2749
+
2750
+ else:
2751
+ return self._user_by_username_async_with_http_info(
2752
+ username=username,
2753
+ _request_timeout=_request_timeout,
2754
+ _request_auth=_request_auth,
2755
+ _content_type=_content_type,
2756
+ _headers=_headers,
2757
+ _host_index=_host_index,
2758
+ )
2759
+
2760
+ @validate_call
2761
+ def user_by_username_without_preload_content(
2762
+ self,
2763
+ username: StrictStr,
2764
+ _request_timeout: Union[
2765
+ None,
2766
+ Annotated[StrictFloat, Field(gt=0)],
2767
+ Tuple[
2768
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2769
+ ],
2770
+ ] = None,
2771
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2772
+ _content_type: Optional[StrictStr] = None,
2773
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2774
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2775
+ ) -> RESTResponseType:
2776
+ """User By Username without preloading content"""
2777
+ if self.is_sync:
2778
+ return self._user_by_username_sync_without_preload_content(
2779
+ username=username,
2780
+ _request_timeout=_request_timeout,
2781
+ _request_auth=_request_auth,
2782
+ _content_type=_content_type,
2783
+ _headers=_headers,
2784
+ _host_index=_host_index,
2785
+ )
2786
+
2787
+ else:
2788
+ return self._user_by_username_async_without_preload_content(
2789
+ username=username,
2790
+ _request_timeout=_request_timeout,
2791
+ _request_auth=_request_auth,
2792
+ _content_type=_content_type,
2793
+ _headers=_headers,
2794
+ _host_index=_host_index,
2795
+ )
2796
+
2797
+ # Private async implementation methods
2798
+ @validate_call
2799
+ async def _user_by_username_async(
1540
2800
  self,
1541
2801
  username: StrictStr,
1542
2802
  _request_timeout: Union[
@@ -1600,7 +2860,7 @@ class UserApi:
1600
2860
  ).data
1601
2861
 
1602
2862
  @validate_call
1603
- async def user_by_username_with_http_info(
2863
+ async def _user_by_username_async_with_http_info(
1604
2864
  self,
1605
2865
  username: StrictStr,
1606
2866
  _request_timeout: Union[
@@ -1659,12 +2919,11 @@ class UserApi:
1659
2919
  )
1660
2920
  await response_data.read()
1661
2921
  return self.api_client.response_deserialize(
1662
- response_data=response_data,
1663
- response_types_map=_response_types_map,
2922
+ response_data=response_data, response_types_map=_response_types_map
1664
2923
  )
1665
2924
 
1666
2925
  @validate_call
1667
- async def user_by_username_without_preload_content(
2926
+ async def _user_by_username_async_without_preload_content(
1668
2927
  self,
1669
2928
  username: StrictStr,
1670
2929
  _request_timeout: Union[
@@ -1721,7 +2980,86 @@ class UserApi:
1721
2980
  response_data = await self.api_client.call_api(
1722
2981
  *_param, _request_timeout=_request_timeout
1723
2982
  )
1724
- return response_data.response
2983
+ return response_data
2984
+
2985
+ # Private sync implementation methods
2986
+ @validate_call
2987
+ def _user_by_username_sync(
2988
+ self,
2989
+ username: StrictStr,
2990
+ _request_timeout: Union[
2991
+ None,
2992
+ Annotated[StrictFloat, Field(gt=0)],
2993
+ Tuple[
2994
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2995
+ ],
2996
+ ] = None,
2997
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2998
+ _content_type: Optional[StrictStr] = None,
2999
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3000
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3001
+ ) -> UserByUsername200Response:
3002
+ """Synchronous version of user_by_username"""
3003
+ return async_to_sync(self._user_by_username_async)(
3004
+ username=username,
3005
+ _request_timeout=_request_timeout,
3006
+ _request_auth=_request_auth,
3007
+ _content_type=_content_type,
3008
+ _headers=_headers,
3009
+ _host_index=_host_index,
3010
+ )
3011
+
3012
+ @validate_call
3013
+ def _user_by_username_sync_with_http_info(
3014
+ self,
3015
+ username: StrictStr,
3016
+ _request_timeout: Union[
3017
+ None,
3018
+ Annotated[StrictFloat, Field(gt=0)],
3019
+ Tuple[
3020
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3021
+ ],
3022
+ ] = None,
3023
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3024
+ _content_type: Optional[StrictStr] = None,
3025
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3026
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3027
+ ) -> ApiResponse[UserByUsername200Response]:
3028
+ """Synchronous version of user_by_username_with_http_info"""
3029
+ return async_to_sync(self._user_by_username_async_with_http_info)(
3030
+ username=username,
3031
+ _request_timeout=_request_timeout,
3032
+ _request_auth=_request_auth,
3033
+ _content_type=_content_type,
3034
+ _headers=_headers,
3035
+ _host_index=_host_index,
3036
+ )
3037
+
3038
+ @validate_call
3039
+ def _user_by_username_sync_without_preload_content(
3040
+ self,
3041
+ username: StrictStr,
3042
+ _request_timeout: Union[
3043
+ None,
3044
+ Annotated[StrictFloat, Field(gt=0)],
3045
+ Tuple[
3046
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3047
+ ],
3048
+ ] = None,
3049
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3050
+ _content_type: Optional[StrictStr] = None,
3051
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3052
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3053
+ ) -> RESTResponseType:
3054
+ """Synchronous version of user_by_username_without_preload_content"""
3055
+ return async_to_sync(self._user_by_username_async_without_preload_content)(
3056
+ username=username,
3057
+ _request_timeout=_request_timeout,
3058
+ _request_auth=_request_auth,
3059
+ _content_type=_content_type,
3060
+ _headers=_headers,
3061
+ _host_index=_host_index,
3062
+ )
1725
3063
 
1726
3064
  def _user_by_username_serialize(
1727
3065
  self,
@@ -1780,7 +3118,119 @@ class UserApi:
1780
3118
  )
1781
3119
 
1782
3120
  @validate_call
1783
- async def user_reset_password(
3121
+ def user_reset_password(
3122
+ self,
3123
+ user_reset_password_request: UserResetPasswordRequest,
3124
+ _request_timeout: Union[
3125
+ None,
3126
+ Annotated[StrictFloat, Field(gt=0)],
3127
+ Tuple[
3128
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3129
+ ],
3130
+ ] = None,
3131
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3132
+ _content_type: Optional[StrictStr] = None,
3133
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3134
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3135
+ ) -> VerifyEmail200Response:
3136
+ """User Reset Password"""
3137
+ if self.is_sync:
3138
+ return self._user_reset_password_sync(
3139
+ user_reset_password_request=user_reset_password_request,
3140
+ _request_timeout=_request_timeout,
3141
+ _request_auth=_request_auth,
3142
+ _content_type=_content_type,
3143
+ _headers=_headers,
3144
+ _host_index=_host_index,
3145
+ )
3146
+
3147
+ else:
3148
+ return self._user_reset_password_async(
3149
+ user_reset_password_request=user_reset_password_request,
3150
+ _request_timeout=_request_timeout,
3151
+ _request_auth=_request_auth,
3152
+ _content_type=_content_type,
3153
+ _headers=_headers,
3154
+ _host_index=_host_index,
3155
+ )
3156
+
3157
+ @validate_call
3158
+ def user_reset_password_with_http_info(
3159
+ self,
3160
+ user_reset_password_request: UserResetPasswordRequest,
3161
+ _request_timeout: Union[
3162
+ None,
3163
+ Annotated[StrictFloat, Field(gt=0)],
3164
+ Tuple[
3165
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3166
+ ],
3167
+ ] = None,
3168
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3169
+ _content_type: Optional[StrictStr] = None,
3170
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3171
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3172
+ ) -> ApiResponse[VerifyEmail200Response]:
3173
+ """User Reset Password with HTTP info"""
3174
+ if self.is_sync:
3175
+ return self._user_reset_password_sync_with_http_info(
3176
+ user_reset_password_request=user_reset_password_request,
3177
+ _request_timeout=_request_timeout,
3178
+ _request_auth=_request_auth,
3179
+ _content_type=_content_type,
3180
+ _headers=_headers,
3181
+ _host_index=_host_index,
3182
+ )
3183
+
3184
+ else:
3185
+ return self._user_reset_password_async_with_http_info(
3186
+ user_reset_password_request=user_reset_password_request,
3187
+ _request_timeout=_request_timeout,
3188
+ _request_auth=_request_auth,
3189
+ _content_type=_content_type,
3190
+ _headers=_headers,
3191
+ _host_index=_host_index,
3192
+ )
3193
+
3194
+ @validate_call
3195
+ def user_reset_password_without_preload_content(
3196
+ self,
3197
+ user_reset_password_request: UserResetPasswordRequest,
3198
+ _request_timeout: Union[
3199
+ None,
3200
+ Annotated[StrictFloat, Field(gt=0)],
3201
+ Tuple[
3202
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3203
+ ],
3204
+ ] = None,
3205
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3206
+ _content_type: Optional[StrictStr] = None,
3207
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3208
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3209
+ ) -> RESTResponseType:
3210
+ """User Reset Password without preloading content"""
3211
+ if self.is_sync:
3212
+ return self._user_reset_password_sync_without_preload_content(
3213
+ user_reset_password_request=user_reset_password_request,
3214
+ _request_timeout=_request_timeout,
3215
+ _request_auth=_request_auth,
3216
+ _content_type=_content_type,
3217
+ _headers=_headers,
3218
+ _host_index=_host_index,
3219
+ )
3220
+
3221
+ else:
3222
+ return self._user_reset_password_async_without_preload_content(
3223
+ user_reset_password_request=user_reset_password_request,
3224
+ _request_timeout=_request_timeout,
3225
+ _request_auth=_request_auth,
3226
+ _content_type=_content_type,
3227
+ _headers=_headers,
3228
+ _host_index=_host_index,
3229
+ )
3230
+
3231
+ # Private async implementation methods
3232
+ @validate_call
3233
+ async def _user_reset_password_async(
1784
3234
  self,
1785
3235
  user_reset_password_request: UserResetPasswordRequest,
1786
3236
  _request_timeout: Union[
@@ -1844,7 +3294,7 @@ class UserApi:
1844
3294
  ).data
1845
3295
 
1846
3296
  @validate_call
1847
- async def user_reset_password_with_http_info(
3297
+ async def _user_reset_password_async_with_http_info(
1848
3298
  self,
1849
3299
  user_reset_password_request: UserResetPasswordRequest,
1850
3300
  _request_timeout: Union[
@@ -1887,28 +3337,140 @@ class UserApi:
1887
3337
  :return: Returns the result object.
1888
3338
  """ # noqa: E501
1889
3339
 
1890
- _param = self._user_reset_password_serialize(
3340
+ _param = self._user_reset_password_serialize(
3341
+ user_reset_password_request=user_reset_password_request,
3342
+ _request_auth=_request_auth,
3343
+ _content_type=_content_type,
3344
+ _headers=_headers,
3345
+ _host_index=_host_index,
3346
+ )
3347
+
3348
+ _response_types_map: Dict[str, Optional[str]] = {
3349
+ "200": "VerifyEmail200Response",
3350
+ }
3351
+ response_data = await self.api_client.call_api(
3352
+ *_param, _request_timeout=_request_timeout
3353
+ )
3354
+ await response_data.read()
3355
+ return self.api_client.response_deserialize(
3356
+ response_data=response_data, response_types_map=_response_types_map
3357
+ )
3358
+
3359
+ @validate_call
3360
+ async def _user_reset_password_async_without_preload_content(
3361
+ self,
3362
+ user_reset_password_request: UserResetPasswordRequest,
3363
+ _request_timeout: Union[
3364
+ None,
3365
+ Annotated[StrictFloat, Field(gt=0)],
3366
+ Tuple[
3367
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3368
+ ],
3369
+ ] = None,
3370
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3371
+ _content_type: Optional[StrictStr] = None,
3372
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3373
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3374
+ ) -> RESTResponseType:
3375
+ """User Reset Password
3376
+
3377
+ Resets the password for the user.
3378
+
3379
+ :param user_reset_password_request: (required)
3380
+ :type user_reset_password_request: UserResetPasswordRequest
3381
+ :param _request_timeout: timeout setting for this request. If one
3382
+ number provided, it will be total request
3383
+ timeout. It can also be a pair (tuple) of
3384
+ (connection, read) timeouts.
3385
+ :type _request_timeout: int, tuple(int, int), optional
3386
+ :param _request_auth: set to override the auth_settings for an a single
3387
+ request; this effectively ignores the
3388
+ authentication in the spec for a single request.
3389
+ :type _request_auth: dict, optional
3390
+ :param _content_type: force content-type for the request.
3391
+ :type _content_type: str, Optional
3392
+ :param _headers: set to override the headers for a single
3393
+ request; this effectively ignores the headers
3394
+ in the spec for a single request.
3395
+ :type _headers: dict, optional
3396
+ :param _host_index: set to override the host_index for a single
3397
+ request; this effectively ignores the host_index
3398
+ in the spec for a single request.
3399
+ :type _host_index: int, optional
3400
+ :return: Returns the result object.
3401
+ """ # noqa: E501
3402
+
3403
+ _param = self._user_reset_password_serialize(
3404
+ user_reset_password_request=user_reset_password_request,
3405
+ _request_auth=_request_auth,
3406
+ _content_type=_content_type,
3407
+ _headers=_headers,
3408
+ _host_index=_host_index,
3409
+ )
3410
+
3411
+ _response_types_map: Dict[str, Optional[str]] = {
3412
+ "200": "VerifyEmail200Response",
3413
+ }
3414
+ response_data = await self.api_client.call_api(
3415
+ *_param, _request_timeout=_request_timeout
3416
+ )
3417
+ return response_data
3418
+
3419
+ # Private sync implementation methods
3420
+ @validate_call
3421
+ def _user_reset_password_sync(
3422
+ self,
3423
+ user_reset_password_request: UserResetPasswordRequest,
3424
+ _request_timeout: Union[
3425
+ None,
3426
+ Annotated[StrictFloat, Field(gt=0)],
3427
+ Tuple[
3428
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3429
+ ],
3430
+ ] = None,
3431
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3432
+ _content_type: Optional[StrictStr] = None,
3433
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3434
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3435
+ ) -> VerifyEmail200Response:
3436
+ """Synchronous version of user_reset_password"""
3437
+ return async_to_sync(self._user_reset_password_async)(
3438
+ user_reset_password_request=user_reset_password_request,
3439
+ _request_timeout=_request_timeout,
3440
+ _request_auth=_request_auth,
3441
+ _content_type=_content_type,
3442
+ _headers=_headers,
3443
+ _host_index=_host_index,
3444
+ )
3445
+
3446
+ @validate_call
3447
+ def _user_reset_password_sync_with_http_info(
3448
+ self,
3449
+ user_reset_password_request: UserResetPasswordRequest,
3450
+ _request_timeout: Union[
3451
+ None,
3452
+ Annotated[StrictFloat, Field(gt=0)],
3453
+ Tuple[
3454
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3455
+ ],
3456
+ ] = None,
3457
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3458
+ _content_type: Optional[StrictStr] = None,
3459
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3460
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3461
+ ) -> ApiResponse[VerifyEmail200Response]:
3462
+ """Synchronous version of user_reset_password_with_http_info"""
3463
+ return async_to_sync(self._user_reset_password_async_with_http_info)(
1891
3464
  user_reset_password_request=user_reset_password_request,
3465
+ _request_timeout=_request_timeout,
1892
3466
  _request_auth=_request_auth,
1893
3467
  _content_type=_content_type,
1894
3468
  _headers=_headers,
1895
3469
  _host_index=_host_index,
1896
3470
  )
1897
3471
 
1898
- _response_types_map: Dict[str, Optional[str]] = {
1899
- "200": "VerifyEmail200Response",
1900
- }
1901
- response_data = await self.api_client.call_api(
1902
- *_param, _request_timeout=_request_timeout
1903
- )
1904
- await response_data.read()
1905
- return self.api_client.response_deserialize(
1906
- response_data=response_data,
1907
- response_types_map=_response_types_map,
1908
- )
1909
-
1910
3472
  @validate_call
1911
- async def user_reset_password_without_preload_content(
3473
+ def _user_reset_password_sync_without_preload_content(
1912
3474
  self,
1913
3475
  user_reset_password_request: UserResetPasswordRequest,
1914
3476
  _request_timeout: Union[
@@ -1923,50 +3485,16 @@ class UserApi:
1923
3485
  _headers: Optional[Dict[StrictStr, Any]] = None,
1924
3486
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1925
3487
  ) -> RESTResponseType:
1926
- """User Reset Password
1927
-
1928
- Resets the password for the user.
1929
-
1930
- :param user_reset_password_request: (required)
1931
- :type user_reset_password_request: UserResetPasswordRequest
1932
- :param _request_timeout: timeout setting for this request. If one
1933
- number provided, it will be total request
1934
- timeout. It can also be a pair (tuple) of
1935
- (connection, read) timeouts.
1936
- :type _request_timeout: int, tuple(int, int), optional
1937
- :param _request_auth: set to override the auth_settings for an a single
1938
- request; this effectively ignores the
1939
- authentication in the spec for a single request.
1940
- :type _request_auth: dict, optional
1941
- :param _content_type: force content-type for the request.
1942
- :type _content_type: str, Optional
1943
- :param _headers: set to override the headers for a single
1944
- request; this effectively ignores the headers
1945
- in the spec for a single request.
1946
- :type _headers: dict, optional
1947
- :param _host_index: set to override the host_index for a single
1948
- request; this effectively ignores the host_index
1949
- in the spec for a single request.
1950
- :type _host_index: int, optional
1951
- :return: Returns the result object.
1952
- """ # noqa: E501
1953
-
1954
- _param = self._user_reset_password_serialize(
3488
+ """Synchronous version of user_reset_password_without_preload_content"""
3489
+ return async_to_sync(self._user_reset_password_async_without_preload_content)(
1955
3490
  user_reset_password_request=user_reset_password_request,
3491
+ _request_timeout=_request_timeout,
1956
3492
  _request_auth=_request_auth,
1957
3493
  _content_type=_content_type,
1958
3494
  _headers=_headers,
1959
3495
  _host_index=_host_index,
1960
3496
  )
1961
3497
 
1962
- _response_types_map: Dict[str, Optional[str]] = {
1963
- "200": "VerifyEmail200Response",
1964
- }
1965
- response_data = await self.api_client.call_api(
1966
- *_param, _request_timeout=_request_timeout
1967
- )
1968
- return response_data.response
1969
-
1970
3498
  def _user_reset_password_serialize(
1971
3499
  self,
1972
3500
  user_reset_password_request,
@@ -2032,7 +3560,119 @@ class UserApi:
2032
3560
  )
2033
3561
 
2034
3562
  @validate_call
2035
- async def user_set_password(
3563
+ def user_set_password(
3564
+ self,
3565
+ user_set_password_request: UserSetPasswordRequest,
3566
+ _request_timeout: Union[
3567
+ None,
3568
+ Annotated[StrictFloat, Field(gt=0)],
3569
+ Tuple[
3570
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3571
+ ],
3572
+ ] = None,
3573
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3574
+ _content_type: Optional[StrictStr] = None,
3575
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3576
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3577
+ ) -> object:
3578
+ """User Set Password"""
3579
+ if self.is_sync:
3580
+ return self._user_set_password_sync(
3581
+ user_set_password_request=user_set_password_request,
3582
+ _request_timeout=_request_timeout,
3583
+ _request_auth=_request_auth,
3584
+ _content_type=_content_type,
3585
+ _headers=_headers,
3586
+ _host_index=_host_index,
3587
+ )
3588
+
3589
+ else:
3590
+ return self._user_set_password_async(
3591
+ user_set_password_request=user_set_password_request,
3592
+ _request_timeout=_request_timeout,
3593
+ _request_auth=_request_auth,
3594
+ _content_type=_content_type,
3595
+ _headers=_headers,
3596
+ _host_index=_host_index,
3597
+ )
3598
+
3599
+ @validate_call
3600
+ def user_set_password_with_http_info(
3601
+ self,
3602
+ user_set_password_request: UserSetPasswordRequest,
3603
+ _request_timeout: Union[
3604
+ None,
3605
+ Annotated[StrictFloat, Field(gt=0)],
3606
+ Tuple[
3607
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3608
+ ],
3609
+ ] = None,
3610
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3611
+ _content_type: Optional[StrictStr] = None,
3612
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3613
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3614
+ ) -> ApiResponse[object]:
3615
+ """User Set Password with HTTP info"""
3616
+ if self.is_sync:
3617
+ return self._user_set_password_sync_with_http_info(
3618
+ user_set_password_request=user_set_password_request,
3619
+ _request_timeout=_request_timeout,
3620
+ _request_auth=_request_auth,
3621
+ _content_type=_content_type,
3622
+ _headers=_headers,
3623
+ _host_index=_host_index,
3624
+ )
3625
+
3626
+ else:
3627
+ return self._user_set_password_async_with_http_info(
3628
+ user_set_password_request=user_set_password_request,
3629
+ _request_timeout=_request_timeout,
3630
+ _request_auth=_request_auth,
3631
+ _content_type=_content_type,
3632
+ _headers=_headers,
3633
+ _host_index=_host_index,
3634
+ )
3635
+
3636
+ @validate_call
3637
+ def user_set_password_without_preload_content(
3638
+ self,
3639
+ user_set_password_request: UserSetPasswordRequest,
3640
+ _request_timeout: Union[
3641
+ None,
3642
+ Annotated[StrictFloat, Field(gt=0)],
3643
+ Tuple[
3644
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3645
+ ],
3646
+ ] = None,
3647
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3648
+ _content_type: Optional[StrictStr] = None,
3649
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3650
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3651
+ ) -> RESTResponseType:
3652
+ """User Set Password without preloading content"""
3653
+ if self.is_sync:
3654
+ return self._user_set_password_sync_without_preload_content(
3655
+ user_set_password_request=user_set_password_request,
3656
+ _request_timeout=_request_timeout,
3657
+ _request_auth=_request_auth,
3658
+ _content_type=_content_type,
3659
+ _headers=_headers,
3660
+ _host_index=_host_index,
3661
+ )
3662
+
3663
+ else:
3664
+ return self._user_set_password_async_without_preload_content(
3665
+ user_set_password_request=user_set_password_request,
3666
+ _request_timeout=_request_timeout,
3667
+ _request_auth=_request_auth,
3668
+ _content_type=_content_type,
3669
+ _headers=_headers,
3670
+ _host_index=_host_index,
3671
+ )
3672
+
3673
+ # Private async implementation methods
3674
+ @validate_call
3675
+ async def _user_set_password_async(
2036
3676
  self,
2037
3677
  user_set_password_request: UserSetPasswordRequest,
2038
3678
  _request_timeout: Union[
@@ -2096,7 +3736,7 @@ class UserApi:
2096
3736
  ).data
2097
3737
 
2098
3738
  @validate_call
2099
- async def user_set_password_with_http_info(
3739
+ async def _user_set_password_async_with_http_info(
2100
3740
  self,
2101
3741
  user_set_password_request: UserSetPasswordRequest,
2102
3742
  _request_timeout: Union[
@@ -2155,12 +3795,11 @@ class UserApi:
2155
3795
  )
2156
3796
  await response_data.read()
2157
3797
  return self.api_client.response_deserialize(
2158
- response_data=response_data,
2159
- response_types_map=_response_types_map,
3798
+ response_data=response_data, response_types_map=_response_types_map
2160
3799
  )
2161
3800
 
2162
3801
  @validate_call
2163
- async def user_set_password_without_preload_content(
3802
+ async def _user_set_password_async_without_preload_content(
2164
3803
  self,
2165
3804
  user_set_password_request: UserSetPasswordRequest,
2166
3805
  _request_timeout: Union[
@@ -2217,7 +3856,86 @@ class UserApi:
2217
3856
  response_data = await self.api_client.call_api(
2218
3857
  *_param, _request_timeout=_request_timeout
2219
3858
  )
2220
- return response_data.response
3859
+ return response_data
3860
+
3861
+ # Private sync implementation methods
3862
+ @validate_call
3863
+ def _user_set_password_sync(
3864
+ self,
3865
+ user_set_password_request: UserSetPasswordRequest,
3866
+ _request_timeout: Union[
3867
+ None,
3868
+ Annotated[StrictFloat, Field(gt=0)],
3869
+ Tuple[
3870
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3871
+ ],
3872
+ ] = None,
3873
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3874
+ _content_type: Optional[StrictStr] = None,
3875
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3876
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3877
+ ) -> object:
3878
+ """Synchronous version of user_set_password"""
3879
+ return async_to_sync(self._user_set_password_async)(
3880
+ user_set_password_request=user_set_password_request,
3881
+ _request_timeout=_request_timeout,
3882
+ _request_auth=_request_auth,
3883
+ _content_type=_content_type,
3884
+ _headers=_headers,
3885
+ _host_index=_host_index,
3886
+ )
3887
+
3888
+ @validate_call
3889
+ def _user_set_password_sync_with_http_info(
3890
+ self,
3891
+ user_set_password_request: UserSetPasswordRequest,
3892
+ _request_timeout: Union[
3893
+ None,
3894
+ Annotated[StrictFloat, Field(gt=0)],
3895
+ Tuple[
3896
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3897
+ ],
3898
+ ] = None,
3899
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3900
+ _content_type: Optional[StrictStr] = None,
3901
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3902
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3903
+ ) -> ApiResponse[object]:
3904
+ """Synchronous version of user_set_password_with_http_info"""
3905
+ return async_to_sync(self._user_set_password_async_with_http_info)(
3906
+ user_set_password_request=user_set_password_request,
3907
+ _request_timeout=_request_timeout,
3908
+ _request_auth=_request_auth,
3909
+ _content_type=_content_type,
3910
+ _headers=_headers,
3911
+ _host_index=_host_index,
3912
+ )
3913
+
3914
+ @validate_call
3915
+ def _user_set_password_sync_without_preload_content(
3916
+ self,
3917
+ user_set_password_request: UserSetPasswordRequest,
3918
+ _request_timeout: Union[
3919
+ None,
3920
+ Annotated[StrictFloat, Field(gt=0)],
3921
+ Tuple[
3922
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3923
+ ],
3924
+ ] = None,
3925
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3926
+ _content_type: Optional[StrictStr] = None,
3927
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3928
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3929
+ ) -> RESTResponseType:
3930
+ """Synchronous version of user_set_password_without_preload_content"""
3931
+ return async_to_sync(self._user_set_password_async_without_preload_content)(
3932
+ user_set_password_request=user_set_password_request,
3933
+ _request_timeout=_request_timeout,
3934
+ _request_auth=_request_auth,
3935
+ _content_type=_content_type,
3936
+ _headers=_headers,
3937
+ _host_index=_host_index,
3938
+ )
2221
3939
 
2222
3940
  def _user_set_password_serialize(
2223
3941
  self,
@@ -2255,36 +3973,148 @@ class UserApi:
2255
3973
  ["application/json"]
2256
3974
  )
2257
3975
 
2258
- # set the HTTP header `Content-Type`
2259
- if _content_type:
2260
- _header_params["Content-Type"] = _content_type
3976
+ # set the HTTP header `Content-Type`
3977
+ if _content_type:
3978
+ _header_params["Content-Type"] = _content_type
3979
+ else:
3980
+ _default_content_type = self.api_client.select_header_content_type(
3981
+ ["application/json"]
3982
+ )
3983
+ if _default_content_type is not None:
3984
+ _header_params["Content-Type"] = _default_content_type
3985
+
3986
+ # authentication setting
3987
+ _auth_settings: List[str] = ["HTTPBearer"]
3988
+
3989
+ return self.api_client.param_serialize(
3990
+ method="POST",
3991
+ resource_path="/user-set-password",
3992
+ path_params=_path_params,
3993
+ query_params=_query_params,
3994
+ header_params=_header_params,
3995
+ body=_body_params,
3996
+ post_params=_form_params,
3997
+ files=_files,
3998
+ auth_settings=_auth_settings,
3999
+ collection_formats=_collection_formats,
4000
+ _host=_host,
4001
+ _request_auth=_request_auth,
4002
+ )
4003
+
4004
+ @validate_call
4005
+ def verify_email(
4006
+ self,
4007
+ verify_email_request: VerifyEmailRequest,
4008
+ _request_timeout: Union[
4009
+ None,
4010
+ Annotated[StrictFloat, Field(gt=0)],
4011
+ Tuple[
4012
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4013
+ ],
4014
+ ] = None,
4015
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4016
+ _content_type: Optional[StrictStr] = None,
4017
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4018
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4019
+ ) -> VerifyEmail200Response:
4020
+ """Verify Email"""
4021
+ if self.is_sync:
4022
+ return self._verify_email_sync(
4023
+ verify_email_request=verify_email_request,
4024
+ _request_timeout=_request_timeout,
4025
+ _request_auth=_request_auth,
4026
+ _content_type=_content_type,
4027
+ _headers=_headers,
4028
+ _host_index=_host_index,
4029
+ )
4030
+
4031
+ else:
4032
+ return self._verify_email_async(
4033
+ verify_email_request=verify_email_request,
4034
+ _request_timeout=_request_timeout,
4035
+ _request_auth=_request_auth,
4036
+ _content_type=_content_type,
4037
+ _headers=_headers,
4038
+ _host_index=_host_index,
4039
+ )
4040
+
4041
+ @validate_call
4042
+ def verify_email_with_http_info(
4043
+ self,
4044
+ verify_email_request: VerifyEmailRequest,
4045
+ _request_timeout: Union[
4046
+ None,
4047
+ Annotated[StrictFloat, Field(gt=0)],
4048
+ Tuple[
4049
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4050
+ ],
4051
+ ] = None,
4052
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4053
+ _content_type: Optional[StrictStr] = None,
4054
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4055
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4056
+ ) -> ApiResponse[VerifyEmail200Response]:
4057
+ """Verify Email with HTTP info"""
4058
+ if self.is_sync:
4059
+ return self._verify_email_sync_with_http_info(
4060
+ verify_email_request=verify_email_request,
4061
+ _request_timeout=_request_timeout,
4062
+ _request_auth=_request_auth,
4063
+ _content_type=_content_type,
4064
+ _headers=_headers,
4065
+ _host_index=_host_index,
4066
+ )
4067
+
2261
4068
  else:
2262
- _default_content_type = self.api_client.select_header_content_type(
2263
- ["application/json"]
4069
+ return self._verify_email_async_with_http_info(
4070
+ verify_email_request=verify_email_request,
4071
+ _request_timeout=_request_timeout,
4072
+ _request_auth=_request_auth,
4073
+ _content_type=_content_type,
4074
+ _headers=_headers,
4075
+ _host_index=_host_index,
2264
4076
  )
2265
- if _default_content_type is not None:
2266
- _header_params["Content-Type"] = _default_content_type
2267
4077
 
2268
- # authentication setting
2269
- _auth_settings: List[str] = ["HTTPBearer"]
4078
+ @validate_call
4079
+ def verify_email_without_preload_content(
4080
+ self,
4081
+ verify_email_request: VerifyEmailRequest,
4082
+ _request_timeout: Union[
4083
+ None,
4084
+ Annotated[StrictFloat, Field(gt=0)],
4085
+ Tuple[
4086
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4087
+ ],
4088
+ ] = None,
4089
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4090
+ _content_type: Optional[StrictStr] = None,
4091
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4092
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4093
+ ) -> RESTResponseType:
4094
+ """Verify Email without preloading content"""
4095
+ if self.is_sync:
4096
+ return self._verify_email_sync_without_preload_content(
4097
+ verify_email_request=verify_email_request,
4098
+ _request_timeout=_request_timeout,
4099
+ _request_auth=_request_auth,
4100
+ _content_type=_content_type,
4101
+ _headers=_headers,
4102
+ _host_index=_host_index,
4103
+ )
2270
4104
 
2271
- return self.api_client.param_serialize(
2272
- method="POST",
2273
- resource_path="/user-set-password",
2274
- path_params=_path_params,
2275
- query_params=_query_params,
2276
- header_params=_header_params,
2277
- body=_body_params,
2278
- post_params=_form_params,
2279
- files=_files,
2280
- auth_settings=_auth_settings,
2281
- collection_formats=_collection_formats,
2282
- _host=_host,
2283
- _request_auth=_request_auth,
2284
- )
4105
+ else:
4106
+ return self._verify_email_async_without_preload_content(
4107
+ verify_email_request=verify_email_request,
4108
+ _request_timeout=_request_timeout,
4109
+ _request_auth=_request_auth,
4110
+ _content_type=_content_type,
4111
+ _headers=_headers,
4112
+ _host_index=_host_index,
4113
+ )
2285
4114
 
4115
+ # Private async implementation methods
2286
4116
  @validate_call
2287
- async def verify_email(
4117
+ async def _verify_email_async(
2288
4118
  self,
2289
4119
  verify_email_request: VerifyEmailRequest,
2290
4120
  _request_timeout: Union[
@@ -2348,7 +4178,7 @@ class UserApi:
2348
4178
  ).data
2349
4179
 
2350
4180
  @validate_call
2351
- async def verify_email_with_http_info(
4181
+ async def _verify_email_async_with_http_info(
2352
4182
  self,
2353
4183
  verify_email_request: VerifyEmailRequest,
2354
4184
  _request_timeout: Union[
@@ -2407,12 +4237,11 @@ class UserApi:
2407
4237
  )
2408
4238
  await response_data.read()
2409
4239
  return self.api_client.response_deserialize(
2410
- response_data=response_data,
2411
- response_types_map=_response_types_map,
4240
+ response_data=response_data, response_types_map=_response_types_map
2412
4241
  )
2413
4242
 
2414
4243
  @validate_call
2415
- async def verify_email_without_preload_content(
4244
+ async def _verify_email_async_without_preload_content(
2416
4245
  self,
2417
4246
  verify_email_request: VerifyEmailRequest,
2418
4247
  _request_timeout: Union[
@@ -2469,7 +4298,86 @@ class UserApi:
2469
4298
  response_data = await self.api_client.call_api(
2470
4299
  *_param, _request_timeout=_request_timeout
2471
4300
  )
2472
- return response_data.response
4301
+ return response_data
4302
+
4303
+ # Private sync implementation methods
4304
+ @validate_call
4305
+ def _verify_email_sync(
4306
+ self,
4307
+ verify_email_request: VerifyEmailRequest,
4308
+ _request_timeout: Union[
4309
+ None,
4310
+ Annotated[StrictFloat, Field(gt=0)],
4311
+ Tuple[
4312
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4313
+ ],
4314
+ ] = None,
4315
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4316
+ _content_type: Optional[StrictStr] = None,
4317
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4318
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4319
+ ) -> VerifyEmail200Response:
4320
+ """Synchronous version of verify_email"""
4321
+ return async_to_sync(self._verify_email_async)(
4322
+ verify_email_request=verify_email_request,
4323
+ _request_timeout=_request_timeout,
4324
+ _request_auth=_request_auth,
4325
+ _content_type=_content_type,
4326
+ _headers=_headers,
4327
+ _host_index=_host_index,
4328
+ )
4329
+
4330
+ @validate_call
4331
+ def _verify_email_sync_with_http_info(
4332
+ self,
4333
+ verify_email_request: VerifyEmailRequest,
4334
+ _request_timeout: Union[
4335
+ None,
4336
+ Annotated[StrictFloat, Field(gt=0)],
4337
+ Tuple[
4338
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4339
+ ],
4340
+ ] = None,
4341
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4342
+ _content_type: Optional[StrictStr] = None,
4343
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4344
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4345
+ ) -> ApiResponse[VerifyEmail200Response]:
4346
+ """Synchronous version of verify_email_with_http_info"""
4347
+ return async_to_sync(self._verify_email_async_with_http_info)(
4348
+ verify_email_request=verify_email_request,
4349
+ _request_timeout=_request_timeout,
4350
+ _request_auth=_request_auth,
4351
+ _content_type=_content_type,
4352
+ _headers=_headers,
4353
+ _host_index=_host_index,
4354
+ )
4355
+
4356
+ @validate_call
4357
+ def _verify_email_sync_without_preload_content(
4358
+ self,
4359
+ verify_email_request: VerifyEmailRequest,
4360
+ _request_timeout: Union[
4361
+ None,
4362
+ Annotated[StrictFloat, Field(gt=0)],
4363
+ Tuple[
4364
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4365
+ ],
4366
+ ] = None,
4367
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4368
+ _content_type: Optional[StrictStr] = None,
4369
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4370
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4371
+ ) -> RESTResponseType:
4372
+ """Synchronous version of verify_email_without_preload_content"""
4373
+ return async_to_sync(self._verify_email_async_without_preload_content)(
4374
+ verify_email_request=verify_email_request,
4375
+ _request_timeout=_request_timeout,
4376
+ _request_auth=_request_auth,
4377
+ _content_type=_content_type,
4378
+ _headers=_headers,
4379
+ _host_index=_host_index,
4380
+ )
2473
4381
 
2474
4382
  def _verify_email_serialize(
2475
4383
  self,
@@ -2536,7 +4444,128 @@ class UserApi:
2536
4444
  )
2537
4445
 
2538
4446
  @validate_call
2539
- async def whoami(
4447
+ def whoami(
4448
+ self,
4449
+ x_refresh_token: Annotated[
4450
+ Optional[StrictStr],
4451
+ Field(description="The refresh token for rotating the access token."),
4452
+ ] = None,
4453
+ _request_timeout: Union[
4454
+ None,
4455
+ Annotated[StrictFloat, Field(gt=0)],
4456
+ Tuple[
4457
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4458
+ ],
4459
+ ] = None,
4460
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4461
+ _content_type: Optional[StrictStr] = None,
4462
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4463
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4464
+ ) -> Whoami200Response:
4465
+ """Whoami"""
4466
+ if self.is_sync:
4467
+ return self._whoami_sync(
4468
+ x_refresh_token=x_refresh_token,
4469
+ _request_timeout=_request_timeout,
4470
+ _request_auth=_request_auth,
4471
+ _content_type=_content_type,
4472
+ _headers=_headers,
4473
+ _host_index=_host_index,
4474
+ )
4475
+
4476
+ else:
4477
+ return self._whoami_async(
4478
+ x_refresh_token=x_refresh_token,
4479
+ _request_timeout=_request_timeout,
4480
+ _request_auth=_request_auth,
4481
+ _content_type=_content_type,
4482
+ _headers=_headers,
4483
+ _host_index=_host_index,
4484
+ )
4485
+
4486
+ @validate_call
4487
+ def whoami_with_http_info(
4488
+ self,
4489
+ x_refresh_token: Annotated[
4490
+ Optional[StrictStr],
4491
+ Field(description="The refresh token for rotating the access token."),
4492
+ ] = None,
4493
+ _request_timeout: Union[
4494
+ None,
4495
+ Annotated[StrictFloat, Field(gt=0)],
4496
+ Tuple[
4497
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4498
+ ],
4499
+ ] = None,
4500
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4501
+ _content_type: Optional[StrictStr] = None,
4502
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4503
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4504
+ ) -> ApiResponse[Whoami200Response]:
4505
+ """Whoami with HTTP info"""
4506
+ if self.is_sync:
4507
+ return self._whoami_sync_with_http_info(
4508
+ x_refresh_token=x_refresh_token,
4509
+ _request_timeout=_request_timeout,
4510
+ _request_auth=_request_auth,
4511
+ _content_type=_content_type,
4512
+ _headers=_headers,
4513
+ _host_index=_host_index,
4514
+ )
4515
+
4516
+ else:
4517
+ return self._whoami_async_with_http_info(
4518
+ x_refresh_token=x_refresh_token,
4519
+ _request_timeout=_request_timeout,
4520
+ _request_auth=_request_auth,
4521
+ _content_type=_content_type,
4522
+ _headers=_headers,
4523
+ _host_index=_host_index,
4524
+ )
4525
+
4526
+ @validate_call
4527
+ def whoami_without_preload_content(
4528
+ self,
4529
+ x_refresh_token: Annotated[
4530
+ Optional[StrictStr],
4531
+ Field(description="The refresh token for rotating the access token."),
4532
+ ] = None,
4533
+ _request_timeout: Union[
4534
+ None,
4535
+ Annotated[StrictFloat, Field(gt=0)],
4536
+ Tuple[
4537
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4538
+ ],
4539
+ ] = None,
4540
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4541
+ _content_type: Optional[StrictStr] = None,
4542
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4543
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4544
+ ) -> RESTResponseType:
4545
+ """Whoami without preloading content"""
4546
+ if self.is_sync:
4547
+ return self._whoami_sync_without_preload_content(
4548
+ x_refresh_token=x_refresh_token,
4549
+ _request_timeout=_request_timeout,
4550
+ _request_auth=_request_auth,
4551
+ _content_type=_content_type,
4552
+ _headers=_headers,
4553
+ _host_index=_host_index,
4554
+ )
4555
+
4556
+ else:
4557
+ return self._whoami_async_without_preload_content(
4558
+ x_refresh_token=x_refresh_token,
4559
+ _request_timeout=_request_timeout,
4560
+ _request_auth=_request_auth,
4561
+ _content_type=_content_type,
4562
+ _headers=_headers,
4563
+ _host_index=_host_index,
4564
+ )
4565
+
4566
+ # Private async implementation methods
4567
+ @validate_call
4568
+ async def _whoami_async(
2540
4569
  self,
2541
4570
  x_refresh_token: Annotated[
2542
4571
  Optional[StrictStr],
@@ -2603,7 +4632,7 @@ class UserApi:
2603
4632
  ).data
2604
4633
 
2605
4634
  @validate_call
2606
- async def whoami_with_http_info(
4635
+ async def _whoami_async_with_http_info(
2607
4636
  self,
2608
4637
  x_refresh_token: Annotated[
2609
4638
  Optional[StrictStr],
@@ -2665,12 +4694,11 @@ class UserApi:
2665
4694
  )
2666
4695
  await response_data.read()
2667
4696
  return self.api_client.response_deserialize(
2668
- response_data=response_data,
2669
- response_types_map=_response_types_map,
4697
+ response_data=response_data, response_types_map=_response_types_map
2670
4698
  )
2671
4699
 
2672
4700
  @validate_call
2673
- async def whoami_without_preload_content(
4701
+ async def _whoami_async_without_preload_content(
2674
4702
  self,
2675
4703
  x_refresh_token: Annotated[
2676
4704
  Optional[StrictStr],
@@ -2730,7 +4758,95 @@ class UserApi:
2730
4758
  response_data = await self.api_client.call_api(
2731
4759
  *_param, _request_timeout=_request_timeout
2732
4760
  )
2733
- return response_data.response
4761
+ return response_data
4762
+
4763
+ # Private sync implementation methods
4764
+ @validate_call
4765
+ def _whoami_sync(
4766
+ self,
4767
+ x_refresh_token: Annotated[
4768
+ Optional[StrictStr],
4769
+ Field(description="The refresh token for rotating the access token."),
4770
+ ] = None,
4771
+ _request_timeout: Union[
4772
+ None,
4773
+ Annotated[StrictFloat, Field(gt=0)],
4774
+ Tuple[
4775
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4776
+ ],
4777
+ ] = None,
4778
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4779
+ _content_type: Optional[StrictStr] = None,
4780
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4781
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4782
+ ) -> Whoami200Response:
4783
+ """Synchronous version of whoami"""
4784
+ return async_to_sync(self._whoami_async)(
4785
+ x_refresh_token=x_refresh_token,
4786
+ _request_timeout=_request_timeout,
4787
+ _request_auth=_request_auth,
4788
+ _content_type=_content_type,
4789
+ _headers=_headers,
4790
+ _host_index=_host_index,
4791
+ )
4792
+
4793
+ @validate_call
4794
+ def _whoami_sync_with_http_info(
4795
+ self,
4796
+ x_refresh_token: Annotated[
4797
+ Optional[StrictStr],
4798
+ Field(description="The refresh token for rotating the access token."),
4799
+ ] = None,
4800
+ _request_timeout: Union[
4801
+ None,
4802
+ Annotated[StrictFloat, Field(gt=0)],
4803
+ Tuple[
4804
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4805
+ ],
4806
+ ] = None,
4807
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4808
+ _content_type: Optional[StrictStr] = None,
4809
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4810
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4811
+ ) -> ApiResponse[Whoami200Response]:
4812
+ """Synchronous version of whoami_with_http_info"""
4813
+ return async_to_sync(self._whoami_async_with_http_info)(
4814
+ x_refresh_token=x_refresh_token,
4815
+ _request_timeout=_request_timeout,
4816
+ _request_auth=_request_auth,
4817
+ _content_type=_content_type,
4818
+ _headers=_headers,
4819
+ _host_index=_host_index,
4820
+ )
4821
+
4822
+ @validate_call
4823
+ def _whoami_sync_without_preload_content(
4824
+ self,
4825
+ x_refresh_token: Annotated[
4826
+ Optional[StrictStr],
4827
+ Field(description="The refresh token for rotating the access token."),
4828
+ ] = None,
4829
+ _request_timeout: Union[
4830
+ None,
4831
+ Annotated[StrictFloat, Field(gt=0)],
4832
+ Tuple[
4833
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4834
+ ],
4835
+ ] = None,
4836
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4837
+ _content_type: Optional[StrictStr] = None,
4838
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4839
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4840
+ ) -> RESTResponseType:
4841
+ """Synchronous version of whoami_without_preload_content"""
4842
+ return async_to_sync(self._whoami_async_without_preload_content)(
4843
+ x_refresh_token=x_refresh_token,
4844
+ _request_timeout=_request_timeout,
4845
+ _request_auth=_request_auth,
4846
+ _content_type=_content_type,
4847
+ _headers=_headers,
4848
+ _host_index=_host_index,
4849
+ )
2734
4850
 
2735
4851
  def _whoami_serialize(
2736
4852
  self,