crypticorn 2.16.0__py3-none-any.whl → 2.17.0rc2__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.
- crypticorn/__init__.py +2 -2
- crypticorn/auth/client/api/admin_api.py +415 -13
- crypticorn/auth/client/api/auth_api.py +2622 -113
- crypticorn/auth/client/api/service_api.py +258 -7
- crypticorn/auth/client/api/user_api.py +2485 -270
- crypticorn/auth/client/api/wallet_api.py +1518 -77
- crypticorn/auth/client/models/create_api_key_request.py +2 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
- crypticorn/auth/client/rest.py +23 -4
- crypticorn/auth/main.py +8 -5
- crypticorn/client.py +227 -59
- crypticorn/common/__init__.py +1 -0
- crypticorn/common/metrics.py +18 -0
- crypticorn/common/middleware.py +46 -0
- crypticorn/common/pagination.py +137 -18
- crypticorn/common/router/admin_router.py +12 -2
- crypticorn/common/utils.py +2 -1
- crypticorn/common/warnings.py +7 -0
- crypticorn/hive/client/api/admin_api.py +1234 -51
- crypticorn/hive/client/api/data_api.py +517 -13
- crypticorn/hive/client/api/models_api.py +1657 -83
- crypticorn/hive/client/api/status_api.py +415 -13
- crypticorn/hive/client/models/api_error_identifier.py +1 -1
- crypticorn/hive/client/rest.py +23 -4
- crypticorn/hive/main.py +99 -25
- crypticorn/klines/client/api/admin_api.py +1234 -51
- crypticorn/klines/client/api/change_in_timeframe_api.py +278 -7
- crypticorn/klines/client/api/funding_rates_api.py +324 -7
- crypticorn/klines/client/api/ohlcv_data_api.py +399 -7
- crypticorn/klines/client/api/status_api.py +415 -13
- crypticorn/klines/client/api/symbols_api.py +225 -7
- crypticorn/klines/client/api/udf_api.py +1393 -120
- crypticorn/klines/client/models/api_error_identifier.py +3 -1
- crypticorn/klines/client/rest.py +23 -4
- crypticorn/klines/main.py +89 -12
- crypticorn/metrics/client/api/admin_api.py +1234 -51
- crypticorn/metrics/client/api/exchanges_api.py +1405 -140
- crypticorn/metrics/client/api/indicators_api.py +640 -13
- crypticorn/metrics/client/api/logs_api.py +305 -7
- crypticorn/metrics/client/api/marketcap_api.py +1240 -60
- crypticorn/metrics/client/api/markets_api.py +352 -7
- crypticorn/metrics/client/api/quote_currencies_api.py +237 -7
- crypticorn/metrics/client/api/status_api.py +415 -13
- crypticorn/metrics/client/api/tokens_api.py +400 -13
- crypticorn/metrics/client/configuration.py +4 -2
- crypticorn/metrics/client/rest.py +23 -4
- crypticorn/metrics/main.py +113 -19
- crypticorn/pay/client/api/admin_api.py +1720 -126
- crypticorn/pay/client/api/now_payments_api.py +1013 -42
- crypticorn/pay/client/api/payments_api.py +580 -13
- crypticorn/pay/client/api/products_api.py +915 -25
- crypticorn/pay/client/api/status_api.py +415 -13
- crypticorn/pay/client/configuration.py +2 -2
- crypticorn/pay/client/models/api_error_identifier.py +7 -7
- crypticorn/pay/client/models/scope.py +1 -0
- crypticorn/pay/client/rest.py +23 -4
- crypticorn/pay/main.py +10 -6
- crypticorn/trade/client/__init__.py +2 -1
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/admin_api.py +1718 -123
- crypticorn/trade/client/api/api_keys_api.py +1596 -103
- crypticorn/trade/client/api/bots_api.py +1106 -47
- crypticorn/trade/client/api/exchanges_api.py +592 -19
- crypticorn/trade/client/api/notifications_api.py +1340 -112
- crypticorn/trade/client/api/orders_api.py +240 -7
- crypticorn/trade/client/api/status_api.py +415 -13
- crypticorn/trade/client/api/strategies_api.py +1170 -69
- crypticorn/trade/client/api/trading_actions_api.py +650 -19
- crypticorn/trade/client/models/__init__.py +2 -0
- crypticorn/trade/client/models/exchange.py +6 -1
- crypticorn/trade/client/models/exchange_key_balance.py +111 -0
- crypticorn/trade/client/models/futures_balance.py +27 -25
- crypticorn/trade/client/models/spot_balance.py +110 -0
- crypticorn/trade/client/models/strategy.py +5 -3
- crypticorn/trade/client/models/strategy_create.py +6 -4
- crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
- crypticorn/trade/client/models/strategy_update.py +2 -2
- crypticorn/trade/client/rest.py +23 -4
- crypticorn/trade/main.py +15 -12
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/METADATA +65 -20
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/RECORD +85 -83
- crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/WHEEL +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.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,135 @@ 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
|
+
|
96
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
97
|
+
"""
|
98
|
+
if self.is_sync:
|
99
|
+
return self._create_user_sync(
|
100
|
+
create_user_request=create_user_request,
|
101
|
+
_request_timeout=_request_timeout,
|
102
|
+
_request_auth=_request_auth,
|
103
|
+
_content_type=_content_type,
|
104
|
+
_headers=_headers,
|
105
|
+
_host_index=_host_index,
|
106
|
+
)
|
107
|
+
|
108
|
+
else:
|
109
|
+
return self._create_user_async(
|
110
|
+
create_user_request=create_user_request,
|
111
|
+
_request_timeout=_request_timeout,
|
112
|
+
_request_auth=_request_auth,
|
113
|
+
_content_type=_content_type,
|
114
|
+
_headers=_headers,
|
115
|
+
_host_index=_host_index,
|
116
|
+
)
|
117
|
+
|
118
|
+
@validate_call
|
119
|
+
def create_user_with_http_info(
|
120
|
+
self,
|
121
|
+
create_user_request: CreateUserRequest,
|
122
|
+
_request_timeout: Union[
|
123
|
+
None,
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
125
|
+
Tuple[
|
126
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
127
|
+
],
|
128
|
+
] = None,
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
133
|
+
) -> ApiResponse[object]:
|
134
|
+
"""Create User with HTTP info
|
135
|
+
|
136
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
137
|
+
"""
|
138
|
+
if self.is_sync:
|
139
|
+
return self._create_user_sync_with_http_info(
|
140
|
+
create_user_request=create_user_request,
|
141
|
+
_request_timeout=_request_timeout,
|
142
|
+
_request_auth=_request_auth,
|
143
|
+
_content_type=_content_type,
|
144
|
+
_headers=_headers,
|
145
|
+
_host_index=_host_index,
|
146
|
+
)
|
147
|
+
|
148
|
+
else:
|
149
|
+
return self._create_user_async_with_http_info(
|
150
|
+
create_user_request=create_user_request,
|
151
|
+
_request_timeout=_request_timeout,
|
152
|
+
_request_auth=_request_auth,
|
153
|
+
_content_type=_content_type,
|
154
|
+
_headers=_headers,
|
155
|
+
_host_index=_host_index,
|
156
|
+
)
|
157
|
+
|
158
|
+
@validate_call
|
159
|
+
def create_user_without_preload_content(
|
160
|
+
self,
|
161
|
+
create_user_request: CreateUserRequest,
|
162
|
+
_request_timeout: Union[
|
163
|
+
None,
|
164
|
+
Annotated[StrictFloat, Field(gt=0)],
|
165
|
+
Tuple[
|
166
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
167
|
+
],
|
168
|
+
] = None,
|
169
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
170
|
+
_content_type: Optional[StrictStr] = None,
|
171
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
172
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
173
|
+
) -> RESTResponseType:
|
174
|
+
"""Create User without preloading content
|
175
|
+
|
176
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
177
|
+
"""
|
178
|
+
if self.is_sync:
|
179
|
+
return self._create_user_sync_without_preload_content(
|
180
|
+
create_user_request=create_user_request,
|
181
|
+
_request_timeout=_request_timeout,
|
182
|
+
_request_auth=_request_auth,
|
183
|
+
_content_type=_content_type,
|
184
|
+
_headers=_headers,
|
185
|
+
_host_index=_host_index,
|
186
|
+
)
|
187
|
+
|
188
|
+
else:
|
189
|
+
return self._create_user_async_without_preload_content(
|
190
|
+
create_user_request=create_user_request,
|
191
|
+
_request_timeout=_request_timeout,
|
192
|
+
_request_auth=_request_auth,
|
193
|
+
_content_type=_content_type,
|
194
|
+
_headers=_headers,
|
195
|
+
_host_index=_host_index,
|
196
|
+
)
|
58
197
|
|
198
|
+
# Private async implementation methods
|
59
199
|
@validate_call
|
60
|
-
async def
|
200
|
+
async def _create_user_async(
|
61
201
|
self,
|
62
202
|
create_user_request: CreateUserRequest,
|
63
203
|
_request_timeout: Union[
|
@@ -121,7 +261,7 @@ class UserApi:
|
|
121
261
|
).data
|
122
262
|
|
123
263
|
@validate_call
|
124
|
-
async def
|
264
|
+
async def _create_user_async_with_http_info(
|
125
265
|
self,
|
126
266
|
create_user_request: CreateUserRequest,
|
127
267
|
_request_timeout: Union[
|
@@ -180,12 +320,11 @@ class UserApi:
|
|
180
320
|
)
|
181
321
|
await response_data.read()
|
182
322
|
return self.api_client.response_deserialize(
|
183
|
-
response_data=response_data,
|
184
|
-
response_types_map=_response_types_map,
|
323
|
+
response_data=response_data, response_types_map=_response_types_map
|
185
324
|
)
|
186
325
|
|
187
326
|
@validate_call
|
188
|
-
async def
|
327
|
+
async def _create_user_async_without_preload_content(
|
189
328
|
self,
|
190
329
|
create_user_request: CreateUserRequest,
|
191
330
|
_request_timeout: Union[
|
@@ -242,7 +381,86 @@ class UserApi:
|
|
242
381
|
response_data = await self.api_client.call_api(
|
243
382
|
*_param, _request_timeout=_request_timeout
|
244
383
|
)
|
245
|
-
return response_data
|
384
|
+
return response_data
|
385
|
+
|
386
|
+
# Private sync implementation methods
|
387
|
+
@validate_call
|
388
|
+
def _create_user_sync(
|
389
|
+
self,
|
390
|
+
create_user_request: CreateUserRequest,
|
391
|
+
_request_timeout: Union[
|
392
|
+
None,
|
393
|
+
Annotated[StrictFloat, Field(gt=0)],
|
394
|
+
Tuple[
|
395
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
396
|
+
],
|
397
|
+
] = None,
|
398
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
399
|
+
_content_type: Optional[StrictStr] = None,
|
400
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
401
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
402
|
+
) -> object:
|
403
|
+
"""Synchronous version of create_user"""
|
404
|
+
return async_to_sync(self._create_user_async)(
|
405
|
+
create_user_request=create_user_request,
|
406
|
+
_request_timeout=_request_timeout,
|
407
|
+
_request_auth=_request_auth,
|
408
|
+
_content_type=_content_type,
|
409
|
+
_headers=_headers,
|
410
|
+
_host_index=_host_index,
|
411
|
+
)
|
412
|
+
|
413
|
+
@validate_call
|
414
|
+
def _create_user_sync_with_http_info(
|
415
|
+
self,
|
416
|
+
create_user_request: CreateUserRequest,
|
417
|
+
_request_timeout: Union[
|
418
|
+
None,
|
419
|
+
Annotated[StrictFloat, Field(gt=0)],
|
420
|
+
Tuple[
|
421
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
422
|
+
],
|
423
|
+
] = None,
|
424
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
425
|
+
_content_type: Optional[StrictStr] = None,
|
426
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
427
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
428
|
+
) -> ApiResponse[object]:
|
429
|
+
"""Synchronous version of create_user_with_http_info"""
|
430
|
+
return async_to_sync(self._create_user_async_with_http_info)(
|
431
|
+
create_user_request=create_user_request,
|
432
|
+
_request_timeout=_request_timeout,
|
433
|
+
_request_auth=_request_auth,
|
434
|
+
_content_type=_content_type,
|
435
|
+
_headers=_headers,
|
436
|
+
_host_index=_host_index,
|
437
|
+
)
|
438
|
+
|
439
|
+
@validate_call
|
440
|
+
def _create_user_sync_without_preload_content(
|
441
|
+
self,
|
442
|
+
create_user_request: CreateUserRequest,
|
443
|
+
_request_timeout: Union[
|
444
|
+
None,
|
445
|
+
Annotated[StrictFloat, Field(gt=0)],
|
446
|
+
Tuple[
|
447
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
448
|
+
],
|
449
|
+
] = None,
|
450
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
451
|
+
_content_type: Optional[StrictStr] = None,
|
452
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
453
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
454
|
+
) -> RESTResponseType:
|
455
|
+
"""Synchronous version of create_user_without_preload_content"""
|
456
|
+
return async_to_sync(self._create_user_async_without_preload_content)(
|
457
|
+
create_user_request=create_user_request,
|
458
|
+
_request_timeout=_request_timeout,
|
459
|
+
_request_auth=_request_auth,
|
460
|
+
_content_type=_content_type,
|
461
|
+
_headers=_headers,
|
462
|
+
_host_index=_host_index,
|
463
|
+
)
|
246
464
|
|
247
465
|
def _create_user_serialize(
|
248
466
|
self,
|
@@ -309,7 +527,119 @@ class UserApi:
|
|
309
527
|
)
|
310
528
|
|
311
529
|
@validate_call
|
312
|
-
|
530
|
+
def logout(
|
531
|
+
self,
|
532
|
+
_request_timeout: Union[
|
533
|
+
None,
|
534
|
+
Annotated[StrictFloat, Field(gt=0)],
|
535
|
+
Tuple[
|
536
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
537
|
+
],
|
538
|
+
] = None,
|
539
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
540
|
+
_content_type: Optional[StrictStr] = None,
|
541
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
542
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
543
|
+
) -> object:
|
544
|
+
"""Logout
|
545
|
+
|
546
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
547
|
+
"""
|
548
|
+
if self.is_sync:
|
549
|
+
return self._logout_sync(
|
550
|
+
_request_timeout=_request_timeout,
|
551
|
+
_request_auth=_request_auth,
|
552
|
+
_content_type=_content_type,
|
553
|
+
_headers=_headers,
|
554
|
+
_host_index=_host_index,
|
555
|
+
)
|
556
|
+
|
557
|
+
else:
|
558
|
+
return self._logout_async(
|
559
|
+
_request_timeout=_request_timeout,
|
560
|
+
_request_auth=_request_auth,
|
561
|
+
_content_type=_content_type,
|
562
|
+
_headers=_headers,
|
563
|
+
_host_index=_host_index,
|
564
|
+
)
|
565
|
+
|
566
|
+
@validate_call
|
567
|
+
def logout_with_http_info(
|
568
|
+
self,
|
569
|
+
_request_timeout: Union[
|
570
|
+
None,
|
571
|
+
Annotated[StrictFloat, Field(gt=0)],
|
572
|
+
Tuple[
|
573
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
574
|
+
],
|
575
|
+
] = None,
|
576
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
577
|
+
_content_type: Optional[StrictStr] = None,
|
578
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
579
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
580
|
+
) -> ApiResponse[object]:
|
581
|
+
"""Logout with HTTP info
|
582
|
+
|
583
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
584
|
+
"""
|
585
|
+
if self.is_sync:
|
586
|
+
return self._logout_sync_with_http_info(
|
587
|
+
_request_timeout=_request_timeout,
|
588
|
+
_request_auth=_request_auth,
|
589
|
+
_content_type=_content_type,
|
590
|
+
_headers=_headers,
|
591
|
+
_host_index=_host_index,
|
592
|
+
)
|
593
|
+
|
594
|
+
else:
|
595
|
+
return self._logout_async_with_http_info(
|
596
|
+
_request_timeout=_request_timeout,
|
597
|
+
_request_auth=_request_auth,
|
598
|
+
_content_type=_content_type,
|
599
|
+
_headers=_headers,
|
600
|
+
_host_index=_host_index,
|
601
|
+
)
|
602
|
+
|
603
|
+
@validate_call
|
604
|
+
def logout_without_preload_content(
|
605
|
+
self,
|
606
|
+
_request_timeout: Union[
|
607
|
+
None,
|
608
|
+
Annotated[StrictFloat, Field(gt=0)],
|
609
|
+
Tuple[
|
610
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
611
|
+
],
|
612
|
+
] = None,
|
613
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
614
|
+
_content_type: Optional[StrictStr] = None,
|
615
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
616
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
617
|
+
) -> RESTResponseType:
|
618
|
+
"""Logout without preloading content
|
619
|
+
|
620
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
621
|
+
"""
|
622
|
+
if self.is_sync:
|
623
|
+
return self._logout_sync_without_preload_content(
|
624
|
+
_request_timeout=_request_timeout,
|
625
|
+
_request_auth=_request_auth,
|
626
|
+
_content_type=_content_type,
|
627
|
+
_headers=_headers,
|
628
|
+
_host_index=_host_index,
|
629
|
+
)
|
630
|
+
|
631
|
+
else:
|
632
|
+
return self._logout_async_without_preload_content(
|
633
|
+
_request_timeout=_request_timeout,
|
634
|
+
_request_auth=_request_auth,
|
635
|
+
_content_type=_content_type,
|
636
|
+
_headers=_headers,
|
637
|
+
_host_index=_host_index,
|
638
|
+
)
|
639
|
+
|
640
|
+
# Private async implementation methods
|
641
|
+
@validate_call
|
642
|
+
async def _logout_async(
|
313
643
|
self,
|
314
644
|
_request_timeout: Union[
|
315
645
|
None,
|
@@ -369,7 +699,7 @@ class UserApi:
|
|
369
699
|
).data
|
370
700
|
|
371
701
|
@validate_call
|
372
|
-
async def
|
702
|
+
async def _logout_async_with_http_info(
|
373
703
|
self,
|
374
704
|
_request_timeout: Union[
|
375
705
|
None,
|
@@ -424,12 +754,11 @@ class UserApi:
|
|
424
754
|
)
|
425
755
|
await response_data.read()
|
426
756
|
return self.api_client.response_deserialize(
|
427
|
-
response_data=response_data,
|
428
|
-
response_types_map=_response_types_map,
|
757
|
+
response_data=response_data, response_types_map=_response_types_map
|
429
758
|
)
|
430
759
|
|
431
760
|
@validate_call
|
432
|
-
async def
|
761
|
+
async def _logout_async_without_preload_content(
|
433
762
|
self,
|
434
763
|
_request_timeout: Union[
|
435
764
|
None,
|
@@ -482,63 +811,12 @@ class UserApi:
|
|
482
811
|
response_data = await self.api_client.call_api(
|
483
812
|
*_param, _request_timeout=_request_timeout
|
484
813
|
)
|
485
|
-
return response_data
|
486
|
-
|
487
|
-
def _logout_serialize(
|
488
|
-
self,
|
489
|
-
_request_auth,
|
490
|
-
_content_type,
|
491
|
-
_headers,
|
492
|
-
_host_index,
|
493
|
-
) -> RequestSerialized:
|
494
|
-
|
495
|
-
_host = None
|
496
|
-
|
497
|
-
_collection_formats: Dict[str, str] = {}
|
498
|
-
|
499
|
-
_path_params: Dict[str, str] = {}
|
500
|
-
_query_params: List[Tuple[str, str]] = []
|
501
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
502
|
-
_form_params: List[Tuple[str, str]] = []
|
503
|
-
_files: Dict[
|
504
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
505
|
-
] = {}
|
506
|
-
_body_params: Optional[bytes] = None
|
507
|
-
|
508
|
-
# process the path parameters
|
509
|
-
# process the query parameters
|
510
|
-
# process the header parameters
|
511
|
-
# process the form parameters
|
512
|
-
# process the body parameter
|
513
|
-
|
514
|
-
# set the HTTP header `Accept`
|
515
|
-
if "Accept" not in _header_params:
|
516
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
517
|
-
["application/json"]
|
518
|
-
)
|
519
|
-
|
520
|
-
# authentication setting
|
521
|
-
_auth_settings: List[str] = ["HTTPBearer"]
|
522
|
-
|
523
|
-
return self.api_client.param_serialize(
|
524
|
-
method="POST",
|
525
|
-
resource_path="/logout",
|
526
|
-
path_params=_path_params,
|
527
|
-
query_params=_query_params,
|
528
|
-
header_params=_header_params,
|
529
|
-
body=_body_params,
|
530
|
-
post_params=_form_params,
|
531
|
-
files=_files,
|
532
|
-
auth_settings=_auth_settings,
|
533
|
-
collection_formats=_collection_formats,
|
534
|
-
_host=_host,
|
535
|
-
_request_auth=_request_auth,
|
536
|
-
)
|
814
|
+
return response_data
|
537
815
|
|
816
|
+
# Private sync implementation methods
|
538
817
|
@validate_call
|
539
|
-
|
818
|
+
def _logout_sync(
|
540
819
|
self,
|
541
|
-
resend_verification_email_request: ResendVerificationEmailRequest,
|
542
820
|
_request_timeout: Union[
|
543
821
|
None,
|
544
822
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -551,9 +829,254 @@ class UserApi:
|
|
551
829
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
552
830
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
553
831
|
) -> object:
|
554
|
-
"""
|
832
|
+
"""Synchronous version of logout"""
|
833
|
+
return async_to_sync(self._logout_async)(
|
834
|
+
_request_timeout=_request_timeout,
|
835
|
+
_request_auth=_request_auth,
|
836
|
+
_content_type=_content_type,
|
837
|
+
_headers=_headers,
|
838
|
+
_host_index=_host_index,
|
839
|
+
)
|
555
840
|
|
556
|
-
|
841
|
+
@validate_call
|
842
|
+
def _logout_sync_with_http_info(
|
843
|
+
self,
|
844
|
+
_request_timeout: Union[
|
845
|
+
None,
|
846
|
+
Annotated[StrictFloat, Field(gt=0)],
|
847
|
+
Tuple[
|
848
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
849
|
+
],
|
850
|
+
] = None,
|
851
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
852
|
+
_content_type: Optional[StrictStr] = None,
|
853
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
854
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
855
|
+
) -> ApiResponse[object]:
|
856
|
+
"""Synchronous version of logout_with_http_info"""
|
857
|
+
return async_to_sync(self._logout_async_with_http_info)(
|
858
|
+
_request_timeout=_request_timeout,
|
859
|
+
_request_auth=_request_auth,
|
860
|
+
_content_type=_content_type,
|
861
|
+
_headers=_headers,
|
862
|
+
_host_index=_host_index,
|
863
|
+
)
|
864
|
+
|
865
|
+
@validate_call
|
866
|
+
def _logout_sync_without_preload_content(
|
867
|
+
self,
|
868
|
+
_request_timeout: Union[
|
869
|
+
None,
|
870
|
+
Annotated[StrictFloat, Field(gt=0)],
|
871
|
+
Tuple[
|
872
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
873
|
+
],
|
874
|
+
] = None,
|
875
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
876
|
+
_content_type: Optional[StrictStr] = None,
|
877
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
878
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
879
|
+
) -> RESTResponseType:
|
880
|
+
"""Synchronous version of logout_without_preload_content"""
|
881
|
+
return async_to_sync(self._logout_async_without_preload_content)(
|
882
|
+
_request_timeout=_request_timeout,
|
883
|
+
_request_auth=_request_auth,
|
884
|
+
_content_type=_content_type,
|
885
|
+
_headers=_headers,
|
886
|
+
_host_index=_host_index,
|
887
|
+
)
|
888
|
+
|
889
|
+
def _logout_serialize(
|
890
|
+
self,
|
891
|
+
_request_auth,
|
892
|
+
_content_type,
|
893
|
+
_headers,
|
894
|
+
_host_index,
|
895
|
+
) -> RequestSerialized:
|
896
|
+
|
897
|
+
_host = None
|
898
|
+
|
899
|
+
_collection_formats: Dict[str, str] = {}
|
900
|
+
|
901
|
+
_path_params: Dict[str, str] = {}
|
902
|
+
_query_params: List[Tuple[str, str]] = []
|
903
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
904
|
+
_form_params: List[Tuple[str, str]] = []
|
905
|
+
_files: Dict[
|
906
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
907
|
+
] = {}
|
908
|
+
_body_params: Optional[bytes] = None
|
909
|
+
|
910
|
+
# process the path parameters
|
911
|
+
# process the query parameters
|
912
|
+
# process the header parameters
|
913
|
+
# process the form parameters
|
914
|
+
# process the body parameter
|
915
|
+
|
916
|
+
# set the HTTP header `Accept`
|
917
|
+
if "Accept" not in _header_params:
|
918
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
919
|
+
["application/json"]
|
920
|
+
)
|
921
|
+
|
922
|
+
# authentication setting
|
923
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
924
|
+
|
925
|
+
return self.api_client.param_serialize(
|
926
|
+
method="POST",
|
927
|
+
resource_path="/logout",
|
928
|
+
path_params=_path_params,
|
929
|
+
query_params=_query_params,
|
930
|
+
header_params=_header_params,
|
931
|
+
body=_body_params,
|
932
|
+
post_params=_form_params,
|
933
|
+
files=_files,
|
934
|
+
auth_settings=_auth_settings,
|
935
|
+
collection_formats=_collection_formats,
|
936
|
+
_host=_host,
|
937
|
+
_request_auth=_request_auth,
|
938
|
+
)
|
939
|
+
|
940
|
+
@validate_call
|
941
|
+
def resend_verification_email(
|
942
|
+
self,
|
943
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
944
|
+
_request_timeout: Union[
|
945
|
+
None,
|
946
|
+
Annotated[StrictFloat, Field(gt=0)],
|
947
|
+
Tuple[
|
948
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
949
|
+
],
|
950
|
+
] = None,
|
951
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
952
|
+
_content_type: Optional[StrictStr] = None,
|
953
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
954
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
955
|
+
) -> object:
|
956
|
+
"""Resend Verification Email
|
957
|
+
|
958
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
959
|
+
"""
|
960
|
+
if self.is_sync:
|
961
|
+
return self._resend_verification_email_sync(
|
962
|
+
resend_verification_email_request=resend_verification_email_request,
|
963
|
+
_request_timeout=_request_timeout,
|
964
|
+
_request_auth=_request_auth,
|
965
|
+
_content_type=_content_type,
|
966
|
+
_headers=_headers,
|
967
|
+
_host_index=_host_index,
|
968
|
+
)
|
969
|
+
|
970
|
+
else:
|
971
|
+
return self._resend_verification_email_async(
|
972
|
+
resend_verification_email_request=resend_verification_email_request,
|
973
|
+
_request_timeout=_request_timeout,
|
974
|
+
_request_auth=_request_auth,
|
975
|
+
_content_type=_content_type,
|
976
|
+
_headers=_headers,
|
977
|
+
_host_index=_host_index,
|
978
|
+
)
|
979
|
+
|
980
|
+
@validate_call
|
981
|
+
def resend_verification_email_with_http_info(
|
982
|
+
self,
|
983
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
984
|
+
_request_timeout: Union[
|
985
|
+
None,
|
986
|
+
Annotated[StrictFloat, Field(gt=0)],
|
987
|
+
Tuple[
|
988
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
989
|
+
],
|
990
|
+
] = None,
|
991
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
992
|
+
_content_type: Optional[StrictStr] = None,
|
993
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
994
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
995
|
+
) -> ApiResponse[object]:
|
996
|
+
"""Resend Verification Email with HTTP info
|
997
|
+
|
998
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
999
|
+
"""
|
1000
|
+
if self.is_sync:
|
1001
|
+
return self._resend_verification_email_sync_with_http_info(
|
1002
|
+
resend_verification_email_request=resend_verification_email_request,
|
1003
|
+
_request_timeout=_request_timeout,
|
1004
|
+
_request_auth=_request_auth,
|
1005
|
+
_content_type=_content_type,
|
1006
|
+
_headers=_headers,
|
1007
|
+
_host_index=_host_index,
|
1008
|
+
)
|
1009
|
+
|
1010
|
+
else:
|
1011
|
+
return self._resend_verification_email_async_with_http_info(
|
1012
|
+
resend_verification_email_request=resend_verification_email_request,
|
1013
|
+
_request_timeout=_request_timeout,
|
1014
|
+
_request_auth=_request_auth,
|
1015
|
+
_content_type=_content_type,
|
1016
|
+
_headers=_headers,
|
1017
|
+
_host_index=_host_index,
|
1018
|
+
)
|
1019
|
+
|
1020
|
+
@validate_call
|
1021
|
+
def resend_verification_email_without_preload_content(
|
1022
|
+
self,
|
1023
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1024
|
+
_request_timeout: Union[
|
1025
|
+
None,
|
1026
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1027
|
+
Tuple[
|
1028
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1029
|
+
],
|
1030
|
+
] = None,
|
1031
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1032
|
+
_content_type: Optional[StrictStr] = None,
|
1033
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1034
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1035
|
+
) -> RESTResponseType:
|
1036
|
+
"""Resend Verification Email without preloading content
|
1037
|
+
|
1038
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1039
|
+
"""
|
1040
|
+
if self.is_sync:
|
1041
|
+
return self._resend_verification_email_sync_without_preload_content(
|
1042
|
+
resend_verification_email_request=resend_verification_email_request,
|
1043
|
+
_request_timeout=_request_timeout,
|
1044
|
+
_request_auth=_request_auth,
|
1045
|
+
_content_type=_content_type,
|
1046
|
+
_headers=_headers,
|
1047
|
+
_host_index=_host_index,
|
1048
|
+
)
|
1049
|
+
|
1050
|
+
else:
|
1051
|
+
return self._resend_verification_email_async_without_preload_content(
|
1052
|
+
resend_verification_email_request=resend_verification_email_request,
|
1053
|
+
_request_timeout=_request_timeout,
|
1054
|
+
_request_auth=_request_auth,
|
1055
|
+
_content_type=_content_type,
|
1056
|
+
_headers=_headers,
|
1057
|
+
_host_index=_host_index,
|
1058
|
+
)
|
1059
|
+
|
1060
|
+
# Private async implementation methods
|
1061
|
+
@validate_call
|
1062
|
+
async def _resend_verification_email_async(
|
1063
|
+
self,
|
1064
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1065
|
+
_request_timeout: Union[
|
1066
|
+
None,
|
1067
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1068
|
+
Tuple[
|
1069
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1070
|
+
],
|
1071
|
+
] = None,
|
1072
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1073
|
+
_content_type: Optional[StrictStr] = None,
|
1074
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1075
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1076
|
+
) -> object:
|
1077
|
+
"""Resend Verification Email
|
1078
|
+
|
1079
|
+
Resends the verification email to the user.
|
557
1080
|
|
558
1081
|
:param resend_verification_email_request: (required)
|
559
1082
|
:type resend_verification_email_request: ResendVerificationEmailRequest
|
@@ -600,7 +1123,7 @@ class UserApi:
|
|
600
1123
|
).data
|
601
1124
|
|
602
1125
|
@validate_call
|
603
|
-
async def
|
1126
|
+
async def _resend_verification_email_async_with_http_info(
|
604
1127
|
self,
|
605
1128
|
resend_verification_email_request: ResendVerificationEmailRequest,
|
606
1129
|
_request_timeout: Union[
|
@@ -659,12 +1182,11 @@ class UserApi:
|
|
659
1182
|
)
|
660
1183
|
await response_data.read()
|
661
1184
|
return self.api_client.response_deserialize(
|
662
|
-
response_data=response_data,
|
663
|
-
response_types_map=_response_types_map,
|
1185
|
+
response_data=response_data, response_types_map=_response_types_map
|
664
1186
|
)
|
665
1187
|
|
666
1188
|
@validate_call
|
667
|
-
async def
|
1189
|
+
async def _resend_verification_email_async_without_preload_content(
|
668
1190
|
self,
|
669
1191
|
resend_verification_email_request: ResendVerificationEmailRequest,
|
670
1192
|
_request_timeout: Union[
|
@@ -721,7 +1243,88 @@ class UserApi:
|
|
721
1243
|
response_data = await self.api_client.call_api(
|
722
1244
|
*_param, _request_timeout=_request_timeout
|
723
1245
|
)
|
724
|
-
return response_data
|
1246
|
+
return response_data
|
1247
|
+
|
1248
|
+
# Private sync implementation methods
|
1249
|
+
@validate_call
|
1250
|
+
def _resend_verification_email_sync(
|
1251
|
+
self,
|
1252
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1253
|
+
_request_timeout: Union[
|
1254
|
+
None,
|
1255
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1256
|
+
Tuple[
|
1257
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1258
|
+
],
|
1259
|
+
] = None,
|
1260
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1261
|
+
_content_type: Optional[StrictStr] = None,
|
1262
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1263
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1264
|
+
) -> object:
|
1265
|
+
"""Synchronous version of resend_verification_email"""
|
1266
|
+
return async_to_sync(self._resend_verification_email_async)(
|
1267
|
+
resend_verification_email_request=resend_verification_email_request,
|
1268
|
+
_request_timeout=_request_timeout,
|
1269
|
+
_request_auth=_request_auth,
|
1270
|
+
_content_type=_content_type,
|
1271
|
+
_headers=_headers,
|
1272
|
+
_host_index=_host_index,
|
1273
|
+
)
|
1274
|
+
|
1275
|
+
@validate_call
|
1276
|
+
def _resend_verification_email_sync_with_http_info(
|
1277
|
+
self,
|
1278
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1279
|
+
_request_timeout: Union[
|
1280
|
+
None,
|
1281
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1282
|
+
Tuple[
|
1283
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1284
|
+
],
|
1285
|
+
] = None,
|
1286
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1287
|
+
_content_type: Optional[StrictStr] = None,
|
1288
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1289
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1290
|
+
) -> ApiResponse[object]:
|
1291
|
+
"""Synchronous version of resend_verification_email_with_http_info"""
|
1292
|
+
return async_to_sync(self._resend_verification_email_async_with_http_info)(
|
1293
|
+
resend_verification_email_request=resend_verification_email_request,
|
1294
|
+
_request_timeout=_request_timeout,
|
1295
|
+
_request_auth=_request_auth,
|
1296
|
+
_content_type=_content_type,
|
1297
|
+
_headers=_headers,
|
1298
|
+
_host_index=_host_index,
|
1299
|
+
)
|
1300
|
+
|
1301
|
+
@validate_call
|
1302
|
+
def _resend_verification_email_sync_without_preload_content(
|
1303
|
+
self,
|
1304
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1305
|
+
_request_timeout: Union[
|
1306
|
+
None,
|
1307
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1308
|
+
Tuple[
|
1309
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1310
|
+
],
|
1311
|
+
] = None,
|
1312
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1313
|
+
_content_type: Optional[StrictStr] = None,
|
1314
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1315
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1316
|
+
) -> RESTResponseType:
|
1317
|
+
"""Synchronous version of resend_verification_email_without_preload_content"""
|
1318
|
+
return async_to_sync(
|
1319
|
+
self._resend_verification_email_async_without_preload_content
|
1320
|
+
)(
|
1321
|
+
resend_verification_email_request=resend_verification_email_request,
|
1322
|
+
_request_timeout=_request_timeout,
|
1323
|
+
_request_auth=_request_auth,
|
1324
|
+
_content_type=_content_type,
|
1325
|
+
_headers=_headers,
|
1326
|
+
_host_index=_host_index,
|
1327
|
+
)
|
725
1328
|
|
726
1329
|
def _resend_verification_email_serialize(
|
727
1330
|
self,
|
@@ -766,29 +1369,150 @@ class UserApi:
|
|
766
1369
|
_default_content_type = self.api_client.select_header_content_type(
|
767
1370
|
["application/json"]
|
768
1371
|
)
|
769
|
-
if _default_content_type is not None:
|
770
|
-
_header_params["Content-Type"] = _default_content_type
|
771
|
-
|
772
|
-
# authentication setting
|
773
|
-
_auth_settings: List[str] = []
|
1372
|
+
if _default_content_type is not None:
|
1373
|
+
_header_params["Content-Type"] = _default_content_type
|
1374
|
+
|
1375
|
+
# authentication setting
|
1376
|
+
_auth_settings: List[str] = []
|
1377
|
+
|
1378
|
+
return self.api_client.param_serialize(
|
1379
|
+
method="POST",
|
1380
|
+
resource_path="/resend-verification-email",
|
1381
|
+
path_params=_path_params,
|
1382
|
+
query_params=_query_params,
|
1383
|
+
header_params=_header_params,
|
1384
|
+
body=_body_params,
|
1385
|
+
post_params=_form_params,
|
1386
|
+
files=_files,
|
1387
|
+
auth_settings=_auth_settings,
|
1388
|
+
collection_formats=_collection_formats,
|
1389
|
+
_host=_host,
|
1390
|
+
_request_auth=_request_auth,
|
1391
|
+
)
|
1392
|
+
|
1393
|
+
@validate_call
|
1394
|
+
def send_password_reset_email(
|
1395
|
+
self,
|
1396
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1397
|
+
_request_timeout: Union[
|
1398
|
+
None,
|
1399
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1400
|
+
Tuple[
|
1401
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1402
|
+
],
|
1403
|
+
] = None,
|
1404
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1405
|
+
_content_type: Optional[StrictStr] = None,
|
1406
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1407
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1408
|
+
) -> object:
|
1409
|
+
"""Send Password Reset Email
|
1410
|
+
|
1411
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1412
|
+
"""
|
1413
|
+
if self.is_sync:
|
1414
|
+
return self._send_password_reset_email_sync(
|
1415
|
+
resend_verification_email_request=resend_verification_email_request,
|
1416
|
+
_request_timeout=_request_timeout,
|
1417
|
+
_request_auth=_request_auth,
|
1418
|
+
_content_type=_content_type,
|
1419
|
+
_headers=_headers,
|
1420
|
+
_host_index=_host_index,
|
1421
|
+
)
|
1422
|
+
|
1423
|
+
else:
|
1424
|
+
return self._send_password_reset_email_async(
|
1425
|
+
resend_verification_email_request=resend_verification_email_request,
|
1426
|
+
_request_timeout=_request_timeout,
|
1427
|
+
_request_auth=_request_auth,
|
1428
|
+
_content_type=_content_type,
|
1429
|
+
_headers=_headers,
|
1430
|
+
_host_index=_host_index,
|
1431
|
+
)
|
1432
|
+
|
1433
|
+
@validate_call
|
1434
|
+
def send_password_reset_email_with_http_info(
|
1435
|
+
self,
|
1436
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1437
|
+
_request_timeout: Union[
|
1438
|
+
None,
|
1439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1440
|
+
Tuple[
|
1441
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1442
|
+
],
|
1443
|
+
] = None,
|
1444
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1445
|
+
_content_type: Optional[StrictStr] = None,
|
1446
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1447
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1448
|
+
) -> ApiResponse[object]:
|
1449
|
+
"""Send Password Reset Email with HTTP info
|
1450
|
+
|
1451
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1452
|
+
"""
|
1453
|
+
if self.is_sync:
|
1454
|
+
return self._send_password_reset_email_sync_with_http_info(
|
1455
|
+
resend_verification_email_request=resend_verification_email_request,
|
1456
|
+
_request_timeout=_request_timeout,
|
1457
|
+
_request_auth=_request_auth,
|
1458
|
+
_content_type=_content_type,
|
1459
|
+
_headers=_headers,
|
1460
|
+
_host_index=_host_index,
|
1461
|
+
)
|
1462
|
+
|
1463
|
+
else:
|
1464
|
+
return self._send_password_reset_email_async_with_http_info(
|
1465
|
+
resend_verification_email_request=resend_verification_email_request,
|
1466
|
+
_request_timeout=_request_timeout,
|
1467
|
+
_request_auth=_request_auth,
|
1468
|
+
_content_type=_content_type,
|
1469
|
+
_headers=_headers,
|
1470
|
+
_host_index=_host_index,
|
1471
|
+
)
|
1472
|
+
|
1473
|
+
@validate_call
|
1474
|
+
def send_password_reset_email_without_preload_content(
|
1475
|
+
self,
|
1476
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1477
|
+
_request_timeout: Union[
|
1478
|
+
None,
|
1479
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1480
|
+
Tuple[
|
1481
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1482
|
+
],
|
1483
|
+
] = None,
|
1484
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1485
|
+
_content_type: Optional[StrictStr] = None,
|
1486
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1487
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1488
|
+
) -> RESTResponseType:
|
1489
|
+
"""Send Password Reset Email without preloading content
|
1490
|
+
|
1491
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1492
|
+
"""
|
1493
|
+
if self.is_sync:
|
1494
|
+
return self._send_password_reset_email_sync_without_preload_content(
|
1495
|
+
resend_verification_email_request=resend_verification_email_request,
|
1496
|
+
_request_timeout=_request_timeout,
|
1497
|
+
_request_auth=_request_auth,
|
1498
|
+
_content_type=_content_type,
|
1499
|
+
_headers=_headers,
|
1500
|
+
_host_index=_host_index,
|
1501
|
+
)
|
774
1502
|
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
auth_settings=_auth_settings,
|
785
|
-
collection_formats=_collection_formats,
|
786
|
-
_host=_host,
|
787
|
-
_request_auth=_request_auth,
|
788
|
-
)
|
1503
|
+
else:
|
1504
|
+
return self._send_password_reset_email_async_without_preload_content(
|
1505
|
+
resend_verification_email_request=resend_verification_email_request,
|
1506
|
+
_request_timeout=_request_timeout,
|
1507
|
+
_request_auth=_request_auth,
|
1508
|
+
_content_type=_content_type,
|
1509
|
+
_headers=_headers,
|
1510
|
+
_host_index=_host_index,
|
1511
|
+
)
|
789
1512
|
|
1513
|
+
# Private async implementation methods
|
790
1514
|
@validate_call
|
791
|
-
async def
|
1515
|
+
async def _send_password_reset_email_async(
|
792
1516
|
self,
|
793
1517
|
resend_verification_email_request: ResendVerificationEmailRequest,
|
794
1518
|
_request_timeout: Union[
|
@@ -852,7 +1576,7 @@ class UserApi:
|
|
852
1576
|
).data
|
853
1577
|
|
854
1578
|
@validate_call
|
855
|
-
async def
|
1579
|
+
async def _send_password_reset_email_async_with_http_info(
|
856
1580
|
self,
|
857
1581
|
resend_verification_email_request: ResendVerificationEmailRequest,
|
858
1582
|
_request_timeout: Union[
|
@@ -911,12 +1635,11 @@ class UserApi:
|
|
911
1635
|
)
|
912
1636
|
await response_data.read()
|
913
1637
|
return self.api_client.response_deserialize(
|
914
|
-
response_data=response_data,
|
915
|
-
response_types_map=_response_types_map,
|
1638
|
+
response_data=response_data, response_types_map=_response_types_map
|
916
1639
|
)
|
917
1640
|
|
918
1641
|
@validate_call
|
919
|
-
async def
|
1642
|
+
async def _send_password_reset_email_async_without_preload_content(
|
920
1643
|
self,
|
921
1644
|
resend_verification_email_request: ResendVerificationEmailRequest,
|
922
1645
|
_request_timeout: Union[
|
@@ -973,7 +1696,88 @@ class UserApi:
|
|
973
1696
|
response_data = await self.api_client.call_api(
|
974
1697
|
*_param, _request_timeout=_request_timeout
|
975
1698
|
)
|
976
|
-
return response_data
|
1699
|
+
return response_data
|
1700
|
+
|
1701
|
+
# Private sync implementation methods
|
1702
|
+
@validate_call
|
1703
|
+
def _send_password_reset_email_sync(
|
1704
|
+
self,
|
1705
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1706
|
+
_request_timeout: Union[
|
1707
|
+
None,
|
1708
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1709
|
+
Tuple[
|
1710
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1711
|
+
],
|
1712
|
+
] = None,
|
1713
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1714
|
+
_content_type: Optional[StrictStr] = None,
|
1715
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1716
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1717
|
+
) -> object:
|
1718
|
+
"""Synchronous version of send_password_reset_email"""
|
1719
|
+
return async_to_sync(self._send_password_reset_email_async)(
|
1720
|
+
resend_verification_email_request=resend_verification_email_request,
|
1721
|
+
_request_timeout=_request_timeout,
|
1722
|
+
_request_auth=_request_auth,
|
1723
|
+
_content_type=_content_type,
|
1724
|
+
_headers=_headers,
|
1725
|
+
_host_index=_host_index,
|
1726
|
+
)
|
1727
|
+
|
1728
|
+
@validate_call
|
1729
|
+
def _send_password_reset_email_sync_with_http_info(
|
1730
|
+
self,
|
1731
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1732
|
+
_request_timeout: Union[
|
1733
|
+
None,
|
1734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1735
|
+
Tuple[
|
1736
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1737
|
+
],
|
1738
|
+
] = None,
|
1739
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1740
|
+
_content_type: Optional[StrictStr] = None,
|
1741
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1742
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1743
|
+
) -> ApiResponse[object]:
|
1744
|
+
"""Synchronous version of send_password_reset_email_with_http_info"""
|
1745
|
+
return async_to_sync(self._send_password_reset_email_async_with_http_info)(
|
1746
|
+
resend_verification_email_request=resend_verification_email_request,
|
1747
|
+
_request_timeout=_request_timeout,
|
1748
|
+
_request_auth=_request_auth,
|
1749
|
+
_content_type=_content_type,
|
1750
|
+
_headers=_headers,
|
1751
|
+
_host_index=_host_index,
|
1752
|
+
)
|
1753
|
+
|
1754
|
+
@validate_call
|
1755
|
+
def _send_password_reset_email_sync_without_preload_content(
|
1756
|
+
self,
|
1757
|
+
resend_verification_email_request: ResendVerificationEmailRequest,
|
1758
|
+
_request_timeout: Union[
|
1759
|
+
None,
|
1760
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1761
|
+
Tuple[
|
1762
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1763
|
+
],
|
1764
|
+
] = None,
|
1765
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1766
|
+
_content_type: Optional[StrictStr] = None,
|
1767
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1768
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1769
|
+
) -> RESTResponseType:
|
1770
|
+
"""Synchronous version of send_password_reset_email_without_preload_content"""
|
1771
|
+
return async_to_sync(
|
1772
|
+
self._send_password_reset_email_async_without_preload_content
|
1773
|
+
)(
|
1774
|
+
resend_verification_email_request=resend_verification_email_request,
|
1775
|
+
_request_timeout=_request_timeout,
|
1776
|
+
_request_auth=_request_auth,
|
1777
|
+
_content_type=_content_type,
|
1778
|
+
_headers=_headers,
|
1779
|
+
_host_index=_host_index,
|
1780
|
+
)
|
977
1781
|
|
978
1782
|
def _send_password_reset_email_serialize(
|
979
1783
|
self,
|
@@ -1040,7 +1844,128 @@ class UserApi:
|
|
1040
1844
|
)
|
1041
1845
|
|
1042
1846
|
@validate_call
|
1043
|
-
|
1847
|
+
def update_user(
|
1848
|
+
self,
|
1849
|
+
update_user_request: UpdateUserRequest,
|
1850
|
+
_request_timeout: Union[
|
1851
|
+
None,
|
1852
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1853
|
+
Tuple[
|
1854
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1855
|
+
],
|
1856
|
+
] = None,
|
1857
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1858
|
+
_content_type: Optional[StrictStr] = None,
|
1859
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1860
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1861
|
+
) -> object:
|
1862
|
+
"""Update User
|
1863
|
+
|
1864
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1865
|
+
"""
|
1866
|
+
if self.is_sync:
|
1867
|
+
return self._update_user_sync(
|
1868
|
+
update_user_request=update_user_request,
|
1869
|
+
_request_timeout=_request_timeout,
|
1870
|
+
_request_auth=_request_auth,
|
1871
|
+
_content_type=_content_type,
|
1872
|
+
_headers=_headers,
|
1873
|
+
_host_index=_host_index,
|
1874
|
+
)
|
1875
|
+
|
1876
|
+
else:
|
1877
|
+
return self._update_user_async(
|
1878
|
+
update_user_request=update_user_request,
|
1879
|
+
_request_timeout=_request_timeout,
|
1880
|
+
_request_auth=_request_auth,
|
1881
|
+
_content_type=_content_type,
|
1882
|
+
_headers=_headers,
|
1883
|
+
_host_index=_host_index,
|
1884
|
+
)
|
1885
|
+
|
1886
|
+
@validate_call
|
1887
|
+
def update_user_with_http_info(
|
1888
|
+
self,
|
1889
|
+
update_user_request: UpdateUserRequest,
|
1890
|
+
_request_timeout: Union[
|
1891
|
+
None,
|
1892
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1893
|
+
Tuple[
|
1894
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1895
|
+
],
|
1896
|
+
] = None,
|
1897
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1898
|
+
_content_type: Optional[StrictStr] = None,
|
1899
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1900
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1901
|
+
) -> ApiResponse[object]:
|
1902
|
+
"""Update User with HTTP info
|
1903
|
+
|
1904
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1905
|
+
"""
|
1906
|
+
if self.is_sync:
|
1907
|
+
return self._update_user_sync_with_http_info(
|
1908
|
+
update_user_request=update_user_request,
|
1909
|
+
_request_timeout=_request_timeout,
|
1910
|
+
_request_auth=_request_auth,
|
1911
|
+
_content_type=_content_type,
|
1912
|
+
_headers=_headers,
|
1913
|
+
_host_index=_host_index,
|
1914
|
+
)
|
1915
|
+
|
1916
|
+
else:
|
1917
|
+
return self._update_user_async_with_http_info(
|
1918
|
+
update_user_request=update_user_request,
|
1919
|
+
_request_timeout=_request_timeout,
|
1920
|
+
_request_auth=_request_auth,
|
1921
|
+
_content_type=_content_type,
|
1922
|
+
_headers=_headers,
|
1923
|
+
_host_index=_host_index,
|
1924
|
+
)
|
1925
|
+
|
1926
|
+
@validate_call
|
1927
|
+
def update_user_without_preload_content(
|
1928
|
+
self,
|
1929
|
+
update_user_request: UpdateUserRequest,
|
1930
|
+
_request_timeout: Union[
|
1931
|
+
None,
|
1932
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1933
|
+
Tuple[
|
1934
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1935
|
+
],
|
1936
|
+
] = None,
|
1937
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1938
|
+
_content_type: Optional[StrictStr] = None,
|
1939
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1940
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1941
|
+
) -> RESTResponseType:
|
1942
|
+
"""Update User without preloading content
|
1943
|
+
|
1944
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1945
|
+
"""
|
1946
|
+
if self.is_sync:
|
1947
|
+
return self._update_user_sync_without_preload_content(
|
1948
|
+
update_user_request=update_user_request,
|
1949
|
+
_request_timeout=_request_timeout,
|
1950
|
+
_request_auth=_request_auth,
|
1951
|
+
_content_type=_content_type,
|
1952
|
+
_headers=_headers,
|
1953
|
+
_host_index=_host_index,
|
1954
|
+
)
|
1955
|
+
|
1956
|
+
else:
|
1957
|
+
return self._update_user_async_without_preload_content(
|
1958
|
+
update_user_request=update_user_request,
|
1959
|
+
_request_timeout=_request_timeout,
|
1960
|
+
_request_auth=_request_auth,
|
1961
|
+
_content_type=_content_type,
|
1962
|
+
_headers=_headers,
|
1963
|
+
_host_index=_host_index,
|
1964
|
+
)
|
1965
|
+
|
1966
|
+
# Private async implementation methods
|
1967
|
+
@validate_call
|
1968
|
+
async def _update_user_async(
|
1044
1969
|
self,
|
1045
1970
|
update_user_request: UpdateUserRequest,
|
1046
1971
|
_request_timeout: Union[
|
@@ -1104,7 +2029,7 @@ class UserApi:
|
|
1104
2029
|
).data
|
1105
2030
|
|
1106
2031
|
@validate_call
|
1107
|
-
async def
|
2032
|
+
async def _update_user_async_with_http_info(
|
1108
2033
|
self,
|
1109
2034
|
update_user_request: UpdateUserRequest,
|
1110
2035
|
_request_timeout: Union[
|
@@ -1155,20 +2080,132 @@ class UserApi:
|
|
1155
2080
|
_host_index=_host_index,
|
1156
2081
|
)
|
1157
2082
|
|
1158
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
1159
|
-
"200": "object",
|
1160
|
-
}
|
1161
|
-
response_data = await self.api_client.call_api(
|
1162
|
-
*_param, _request_timeout=_request_timeout
|
1163
|
-
)
|
1164
|
-
await response_data.read()
|
1165
|
-
return self.api_client.response_deserialize(
|
1166
|
-
response_data=response_data,
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
2083
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2084
|
+
"200": "object",
|
2085
|
+
}
|
2086
|
+
response_data = await self.api_client.call_api(
|
2087
|
+
*_param, _request_timeout=_request_timeout
|
2088
|
+
)
|
2089
|
+
await response_data.read()
|
2090
|
+
return self.api_client.response_deserialize(
|
2091
|
+
response_data=response_data, response_types_map=_response_types_map
|
2092
|
+
)
|
2093
|
+
|
2094
|
+
@validate_call
|
2095
|
+
async def _update_user_async_without_preload_content(
|
2096
|
+
self,
|
2097
|
+
update_user_request: UpdateUserRequest,
|
2098
|
+
_request_timeout: Union[
|
2099
|
+
None,
|
2100
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2101
|
+
Tuple[
|
2102
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2103
|
+
],
|
2104
|
+
] = None,
|
2105
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2106
|
+
_content_type: Optional[StrictStr] = None,
|
2107
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2108
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2109
|
+
) -> RESTResponseType:
|
2110
|
+
"""Update User
|
2111
|
+
|
2112
|
+
Updates the user.
|
2113
|
+
|
2114
|
+
:param update_user_request: (required)
|
2115
|
+
:type update_user_request: UpdateUserRequest
|
2116
|
+
:param _request_timeout: timeout setting for this request. If one
|
2117
|
+
number provided, it will be total request
|
2118
|
+
timeout. It can also be a pair (tuple) of
|
2119
|
+
(connection, read) timeouts.
|
2120
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2121
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2122
|
+
request; this effectively ignores the
|
2123
|
+
authentication in the spec for a single request.
|
2124
|
+
:type _request_auth: dict, optional
|
2125
|
+
:param _content_type: force content-type for the request.
|
2126
|
+
:type _content_type: str, Optional
|
2127
|
+
:param _headers: set to override the headers for a single
|
2128
|
+
request; this effectively ignores the headers
|
2129
|
+
in the spec for a single request.
|
2130
|
+
:type _headers: dict, optional
|
2131
|
+
:param _host_index: set to override the host_index for a single
|
2132
|
+
request; this effectively ignores the host_index
|
2133
|
+
in the spec for a single request.
|
2134
|
+
:type _host_index: int, optional
|
2135
|
+
:return: Returns the result object.
|
2136
|
+
""" # noqa: E501
|
2137
|
+
|
2138
|
+
_param = self._update_user_serialize(
|
2139
|
+
update_user_request=update_user_request,
|
2140
|
+
_request_auth=_request_auth,
|
2141
|
+
_content_type=_content_type,
|
2142
|
+
_headers=_headers,
|
2143
|
+
_host_index=_host_index,
|
2144
|
+
)
|
2145
|
+
|
2146
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2147
|
+
"200": "object",
|
2148
|
+
}
|
2149
|
+
response_data = await self.api_client.call_api(
|
2150
|
+
*_param, _request_timeout=_request_timeout
|
2151
|
+
)
|
2152
|
+
return response_data
|
2153
|
+
|
2154
|
+
# Private sync implementation methods
|
2155
|
+
@validate_call
|
2156
|
+
def _update_user_sync(
|
2157
|
+
self,
|
2158
|
+
update_user_request: UpdateUserRequest,
|
2159
|
+
_request_timeout: Union[
|
2160
|
+
None,
|
2161
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2162
|
+
Tuple[
|
2163
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2164
|
+
],
|
2165
|
+
] = None,
|
2166
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2167
|
+
_content_type: Optional[StrictStr] = None,
|
2168
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2169
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2170
|
+
) -> object:
|
2171
|
+
"""Synchronous version of update_user"""
|
2172
|
+
return async_to_sync(self._update_user_async)(
|
2173
|
+
update_user_request=update_user_request,
|
2174
|
+
_request_timeout=_request_timeout,
|
2175
|
+
_request_auth=_request_auth,
|
2176
|
+
_content_type=_content_type,
|
2177
|
+
_headers=_headers,
|
2178
|
+
_host_index=_host_index,
|
2179
|
+
)
|
2180
|
+
|
2181
|
+
@validate_call
|
2182
|
+
def _update_user_sync_with_http_info(
|
2183
|
+
self,
|
2184
|
+
update_user_request: UpdateUserRequest,
|
2185
|
+
_request_timeout: Union[
|
2186
|
+
None,
|
2187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2188
|
+
Tuple[
|
2189
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2190
|
+
],
|
2191
|
+
] = None,
|
2192
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2193
|
+
_content_type: Optional[StrictStr] = None,
|
2194
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2195
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2196
|
+
) -> ApiResponse[object]:
|
2197
|
+
"""Synchronous version of update_user_with_http_info"""
|
2198
|
+
return async_to_sync(self._update_user_async_with_http_info)(
|
2199
|
+
update_user_request=update_user_request,
|
2200
|
+
_request_timeout=_request_timeout,
|
2201
|
+
_request_auth=_request_auth,
|
2202
|
+
_content_type=_content_type,
|
2203
|
+
_headers=_headers,
|
2204
|
+
_host_index=_host_index,
|
2205
|
+
)
|
2206
|
+
|
1170
2207
|
@validate_call
|
1171
|
-
|
2208
|
+
def _update_user_sync_without_preload_content(
|
1172
2209
|
self,
|
1173
2210
|
update_user_request: UpdateUserRequest,
|
1174
2211
|
_request_timeout: Union[
|
@@ -1183,50 +2220,16 @@ class UserApi:
|
|
1183
2220
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1184
2221
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1185
2222
|
) -> RESTResponseType:
|
1186
|
-
"""
|
1187
|
-
|
1188
|
-
Updates the user.
|
1189
|
-
|
1190
|
-
:param update_user_request: (required)
|
1191
|
-
:type update_user_request: UpdateUserRequest
|
1192
|
-
:param _request_timeout: timeout setting for this request. If one
|
1193
|
-
number provided, it will be total request
|
1194
|
-
timeout. It can also be a pair (tuple) of
|
1195
|
-
(connection, read) timeouts.
|
1196
|
-
:type _request_timeout: int, tuple(int, int), optional
|
1197
|
-
:param _request_auth: set to override the auth_settings for an a single
|
1198
|
-
request; this effectively ignores the
|
1199
|
-
authentication in the spec for a single request.
|
1200
|
-
:type _request_auth: dict, optional
|
1201
|
-
:param _content_type: force content-type for the request.
|
1202
|
-
:type _content_type: str, Optional
|
1203
|
-
:param _headers: set to override the headers for a single
|
1204
|
-
request; this effectively ignores the headers
|
1205
|
-
in the spec for a single request.
|
1206
|
-
:type _headers: dict, optional
|
1207
|
-
:param _host_index: set to override the host_index for a single
|
1208
|
-
request; this effectively ignores the host_index
|
1209
|
-
in the spec for a single request.
|
1210
|
-
:type _host_index: int, optional
|
1211
|
-
:return: Returns the result object.
|
1212
|
-
""" # noqa: E501
|
1213
|
-
|
1214
|
-
_param = self._update_user_serialize(
|
2223
|
+
"""Synchronous version of update_user_without_preload_content"""
|
2224
|
+
return async_to_sync(self._update_user_async_without_preload_content)(
|
1215
2225
|
update_user_request=update_user_request,
|
2226
|
+
_request_timeout=_request_timeout,
|
1216
2227
|
_request_auth=_request_auth,
|
1217
2228
|
_content_type=_content_type,
|
1218
2229
|
_headers=_headers,
|
1219
2230
|
_host_index=_host_index,
|
1220
2231
|
)
|
1221
2232
|
|
1222
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
1223
|
-
"200": "object",
|
1224
|
-
}
|
1225
|
-
response_data = await self.api_client.call_api(
|
1226
|
-
*_param, _request_timeout=_request_timeout
|
1227
|
-
)
|
1228
|
-
return response_data.response
|
1229
|
-
|
1230
2233
|
def _update_user_serialize(
|
1231
2234
|
self,
|
1232
2235
|
update_user_request,
|
@@ -1292,7 +2295,128 @@ class UserApi:
|
|
1292
2295
|
)
|
1293
2296
|
|
1294
2297
|
@validate_call
|
1295
|
-
|
2298
|
+
def user_by_id(
|
2299
|
+
self,
|
2300
|
+
id: StrictStr,
|
2301
|
+
_request_timeout: Union[
|
2302
|
+
None,
|
2303
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2304
|
+
Tuple[
|
2305
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2306
|
+
],
|
2307
|
+
] = None,
|
2308
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2309
|
+
_content_type: Optional[StrictStr] = None,
|
2310
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2311
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2312
|
+
) -> Whoami200Response:
|
2313
|
+
"""User By Id
|
2314
|
+
|
2315
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2316
|
+
"""
|
2317
|
+
if self.is_sync:
|
2318
|
+
return self._user_by_id_sync(
|
2319
|
+
id=id,
|
2320
|
+
_request_timeout=_request_timeout,
|
2321
|
+
_request_auth=_request_auth,
|
2322
|
+
_content_type=_content_type,
|
2323
|
+
_headers=_headers,
|
2324
|
+
_host_index=_host_index,
|
2325
|
+
)
|
2326
|
+
|
2327
|
+
else:
|
2328
|
+
return self._user_by_id_async(
|
2329
|
+
id=id,
|
2330
|
+
_request_timeout=_request_timeout,
|
2331
|
+
_request_auth=_request_auth,
|
2332
|
+
_content_type=_content_type,
|
2333
|
+
_headers=_headers,
|
2334
|
+
_host_index=_host_index,
|
2335
|
+
)
|
2336
|
+
|
2337
|
+
@validate_call
|
2338
|
+
def user_by_id_with_http_info(
|
2339
|
+
self,
|
2340
|
+
id: StrictStr,
|
2341
|
+
_request_timeout: Union[
|
2342
|
+
None,
|
2343
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2344
|
+
Tuple[
|
2345
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2346
|
+
],
|
2347
|
+
] = None,
|
2348
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2349
|
+
_content_type: Optional[StrictStr] = None,
|
2350
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2351
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2352
|
+
) -> ApiResponse[Whoami200Response]:
|
2353
|
+
"""User By Id with HTTP info
|
2354
|
+
|
2355
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2356
|
+
"""
|
2357
|
+
if self.is_sync:
|
2358
|
+
return self._user_by_id_sync_with_http_info(
|
2359
|
+
id=id,
|
2360
|
+
_request_timeout=_request_timeout,
|
2361
|
+
_request_auth=_request_auth,
|
2362
|
+
_content_type=_content_type,
|
2363
|
+
_headers=_headers,
|
2364
|
+
_host_index=_host_index,
|
2365
|
+
)
|
2366
|
+
|
2367
|
+
else:
|
2368
|
+
return self._user_by_id_async_with_http_info(
|
2369
|
+
id=id,
|
2370
|
+
_request_timeout=_request_timeout,
|
2371
|
+
_request_auth=_request_auth,
|
2372
|
+
_content_type=_content_type,
|
2373
|
+
_headers=_headers,
|
2374
|
+
_host_index=_host_index,
|
2375
|
+
)
|
2376
|
+
|
2377
|
+
@validate_call
|
2378
|
+
def user_by_id_without_preload_content(
|
2379
|
+
self,
|
2380
|
+
id: StrictStr,
|
2381
|
+
_request_timeout: Union[
|
2382
|
+
None,
|
2383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2384
|
+
Tuple[
|
2385
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2386
|
+
],
|
2387
|
+
] = None,
|
2388
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2389
|
+
_content_type: Optional[StrictStr] = None,
|
2390
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2391
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2392
|
+
) -> RESTResponseType:
|
2393
|
+
"""User By Id without preloading content
|
2394
|
+
|
2395
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2396
|
+
"""
|
2397
|
+
if self.is_sync:
|
2398
|
+
return self._user_by_id_sync_without_preload_content(
|
2399
|
+
id=id,
|
2400
|
+
_request_timeout=_request_timeout,
|
2401
|
+
_request_auth=_request_auth,
|
2402
|
+
_content_type=_content_type,
|
2403
|
+
_headers=_headers,
|
2404
|
+
_host_index=_host_index,
|
2405
|
+
)
|
2406
|
+
|
2407
|
+
else:
|
2408
|
+
return self._user_by_id_async_without_preload_content(
|
2409
|
+
id=id,
|
2410
|
+
_request_timeout=_request_timeout,
|
2411
|
+
_request_auth=_request_auth,
|
2412
|
+
_content_type=_content_type,
|
2413
|
+
_headers=_headers,
|
2414
|
+
_host_index=_host_index,
|
2415
|
+
)
|
2416
|
+
|
2417
|
+
# Private async implementation methods
|
2418
|
+
@validate_call
|
2419
|
+
async def _user_by_id_async(
|
1296
2420
|
self,
|
1297
2421
|
id: StrictStr,
|
1298
2422
|
_request_timeout: Union[
|
@@ -1356,7 +2480,7 @@ class UserApi:
|
|
1356
2480
|
).data
|
1357
2481
|
|
1358
2482
|
@validate_call
|
1359
|
-
async def
|
2483
|
+
async def _user_by_id_async_with_http_info(
|
1360
2484
|
self,
|
1361
2485
|
id: StrictStr,
|
1362
2486
|
_request_timeout: Union[
|
@@ -1415,12 +2539,11 @@ class UserApi:
|
|
1415
2539
|
)
|
1416
2540
|
await response_data.read()
|
1417
2541
|
return self.api_client.response_deserialize(
|
1418
|
-
response_data=response_data,
|
1419
|
-
response_types_map=_response_types_map,
|
2542
|
+
response_data=response_data, response_types_map=_response_types_map
|
1420
2543
|
)
|
1421
2544
|
|
1422
2545
|
@validate_call
|
1423
|
-
async def
|
2546
|
+
async def _user_by_id_async_without_preload_content(
|
1424
2547
|
self,
|
1425
2548
|
id: StrictStr,
|
1426
2549
|
_request_timeout: Union[
|
@@ -1477,7 +2600,86 @@ class UserApi:
|
|
1477
2600
|
response_data = await self.api_client.call_api(
|
1478
2601
|
*_param, _request_timeout=_request_timeout
|
1479
2602
|
)
|
1480
|
-
return response_data
|
2603
|
+
return response_data
|
2604
|
+
|
2605
|
+
# Private sync implementation methods
|
2606
|
+
@validate_call
|
2607
|
+
def _user_by_id_sync(
|
2608
|
+
self,
|
2609
|
+
id: StrictStr,
|
2610
|
+
_request_timeout: Union[
|
2611
|
+
None,
|
2612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2613
|
+
Tuple[
|
2614
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2615
|
+
],
|
2616
|
+
] = None,
|
2617
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2618
|
+
_content_type: Optional[StrictStr] = None,
|
2619
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2620
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2621
|
+
) -> Whoami200Response:
|
2622
|
+
"""Synchronous version of user_by_id"""
|
2623
|
+
return async_to_sync(self._user_by_id_async)(
|
2624
|
+
id=id,
|
2625
|
+
_request_timeout=_request_timeout,
|
2626
|
+
_request_auth=_request_auth,
|
2627
|
+
_content_type=_content_type,
|
2628
|
+
_headers=_headers,
|
2629
|
+
_host_index=_host_index,
|
2630
|
+
)
|
2631
|
+
|
2632
|
+
@validate_call
|
2633
|
+
def _user_by_id_sync_with_http_info(
|
2634
|
+
self,
|
2635
|
+
id: StrictStr,
|
2636
|
+
_request_timeout: Union[
|
2637
|
+
None,
|
2638
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2639
|
+
Tuple[
|
2640
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2641
|
+
],
|
2642
|
+
] = None,
|
2643
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2644
|
+
_content_type: Optional[StrictStr] = None,
|
2645
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2646
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2647
|
+
) -> ApiResponse[Whoami200Response]:
|
2648
|
+
"""Synchronous version of user_by_id_with_http_info"""
|
2649
|
+
return async_to_sync(self._user_by_id_async_with_http_info)(
|
2650
|
+
id=id,
|
2651
|
+
_request_timeout=_request_timeout,
|
2652
|
+
_request_auth=_request_auth,
|
2653
|
+
_content_type=_content_type,
|
2654
|
+
_headers=_headers,
|
2655
|
+
_host_index=_host_index,
|
2656
|
+
)
|
2657
|
+
|
2658
|
+
@validate_call
|
2659
|
+
def _user_by_id_sync_without_preload_content(
|
2660
|
+
self,
|
2661
|
+
id: StrictStr,
|
2662
|
+
_request_timeout: Union[
|
2663
|
+
None,
|
2664
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2665
|
+
Tuple[
|
2666
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2667
|
+
],
|
2668
|
+
] = None,
|
2669
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2670
|
+
_content_type: Optional[StrictStr] = None,
|
2671
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2672
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2673
|
+
) -> RESTResponseType:
|
2674
|
+
"""Synchronous version of user_by_id_without_preload_content"""
|
2675
|
+
return async_to_sync(self._user_by_id_async_without_preload_content)(
|
2676
|
+
id=id,
|
2677
|
+
_request_timeout=_request_timeout,
|
2678
|
+
_request_auth=_request_auth,
|
2679
|
+
_content_type=_content_type,
|
2680
|
+
_headers=_headers,
|
2681
|
+
_host_index=_host_index,
|
2682
|
+
)
|
1481
2683
|
|
1482
2684
|
def _user_by_id_serialize(
|
1483
2685
|
self,
|
@@ -1517,26 +2719,147 @@ class UserApi:
|
|
1517
2719
|
["application/json"]
|
1518
2720
|
)
|
1519
2721
|
|
1520
|
-
# authentication setting
|
1521
|
-
_auth_settings: List[str] = ["HTTPBearer"]
|
1522
|
-
|
1523
|
-
return self.api_client.param_serialize(
|
1524
|
-
method="GET",
|
1525
|
-
resource_path="/user-by-id",
|
1526
|
-
path_params=_path_params,
|
1527
|
-
query_params=_query_params,
|
1528
|
-
header_params=_header_params,
|
1529
|
-
body=_body_params,
|
1530
|
-
post_params=_form_params,
|
1531
|
-
files=_files,
|
1532
|
-
auth_settings=_auth_settings,
|
1533
|
-
collection_formats=_collection_formats,
|
1534
|
-
_host=_host,
|
1535
|
-
_request_auth=_request_auth,
|
1536
|
-
)
|
2722
|
+
# authentication setting
|
2723
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
2724
|
+
|
2725
|
+
return self.api_client.param_serialize(
|
2726
|
+
method="GET",
|
2727
|
+
resource_path="/user-by-id",
|
2728
|
+
path_params=_path_params,
|
2729
|
+
query_params=_query_params,
|
2730
|
+
header_params=_header_params,
|
2731
|
+
body=_body_params,
|
2732
|
+
post_params=_form_params,
|
2733
|
+
files=_files,
|
2734
|
+
auth_settings=_auth_settings,
|
2735
|
+
collection_formats=_collection_formats,
|
2736
|
+
_host=_host,
|
2737
|
+
_request_auth=_request_auth,
|
2738
|
+
)
|
2739
|
+
|
2740
|
+
@validate_call
|
2741
|
+
def user_by_username(
|
2742
|
+
self,
|
2743
|
+
username: StrictStr,
|
2744
|
+
_request_timeout: Union[
|
2745
|
+
None,
|
2746
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2747
|
+
Tuple[
|
2748
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2749
|
+
],
|
2750
|
+
] = None,
|
2751
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2752
|
+
_content_type: Optional[StrictStr] = None,
|
2753
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2754
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2755
|
+
) -> UserByUsername200Response:
|
2756
|
+
"""User By Username
|
2757
|
+
|
2758
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2759
|
+
"""
|
2760
|
+
if self.is_sync:
|
2761
|
+
return self._user_by_username_sync(
|
2762
|
+
username=username,
|
2763
|
+
_request_timeout=_request_timeout,
|
2764
|
+
_request_auth=_request_auth,
|
2765
|
+
_content_type=_content_type,
|
2766
|
+
_headers=_headers,
|
2767
|
+
_host_index=_host_index,
|
2768
|
+
)
|
2769
|
+
|
2770
|
+
else:
|
2771
|
+
return self._user_by_username_async(
|
2772
|
+
username=username,
|
2773
|
+
_request_timeout=_request_timeout,
|
2774
|
+
_request_auth=_request_auth,
|
2775
|
+
_content_type=_content_type,
|
2776
|
+
_headers=_headers,
|
2777
|
+
_host_index=_host_index,
|
2778
|
+
)
|
2779
|
+
|
2780
|
+
@validate_call
|
2781
|
+
def user_by_username_with_http_info(
|
2782
|
+
self,
|
2783
|
+
username: StrictStr,
|
2784
|
+
_request_timeout: Union[
|
2785
|
+
None,
|
2786
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2787
|
+
Tuple[
|
2788
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2789
|
+
],
|
2790
|
+
] = None,
|
2791
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2792
|
+
_content_type: Optional[StrictStr] = None,
|
2793
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2794
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2795
|
+
) -> ApiResponse[UserByUsername200Response]:
|
2796
|
+
"""User By Username with HTTP info
|
2797
|
+
|
2798
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2799
|
+
"""
|
2800
|
+
if self.is_sync:
|
2801
|
+
return self._user_by_username_sync_with_http_info(
|
2802
|
+
username=username,
|
2803
|
+
_request_timeout=_request_timeout,
|
2804
|
+
_request_auth=_request_auth,
|
2805
|
+
_content_type=_content_type,
|
2806
|
+
_headers=_headers,
|
2807
|
+
_host_index=_host_index,
|
2808
|
+
)
|
2809
|
+
|
2810
|
+
else:
|
2811
|
+
return self._user_by_username_async_with_http_info(
|
2812
|
+
username=username,
|
2813
|
+
_request_timeout=_request_timeout,
|
2814
|
+
_request_auth=_request_auth,
|
2815
|
+
_content_type=_content_type,
|
2816
|
+
_headers=_headers,
|
2817
|
+
_host_index=_host_index,
|
2818
|
+
)
|
2819
|
+
|
2820
|
+
@validate_call
|
2821
|
+
def user_by_username_without_preload_content(
|
2822
|
+
self,
|
2823
|
+
username: StrictStr,
|
2824
|
+
_request_timeout: Union[
|
2825
|
+
None,
|
2826
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2827
|
+
Tuple[
|
2828
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2829
|
+
],
|
2830
|
+
] = None,
|
2831
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2832
|
+
_content_type: Optional[StrictStr] = None,
|
2833
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2834
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2835
|
+
) -> RESTResponseType:
|
2836
|
+
"""User By Username without preloading content
|
2837
|
+
|
2838
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2839
|
+
"""
|
2840
|
+
if self.is_sync:
|
2841
|
+
return self._user_by_username_sync_without_preload_content(
|
2842
|
+
username=username,
|
2843
|
+
_request_timeout=_request_timeout,
|
2844
|
+
_request_auth=_request_auth,
|
2845
|
+
_content_type=_content_type,
|
2846
|
+
_headers=_headers,
|
2847
|
+
_host_index=_host_index,
|
2848
|
+
)
|
2849
|
+
|
2850
|
+
else:
|
2851
|
+
return self._user_by_username_async_without_preload_content(
|
2852
|
+
username=username,
|
2853
|
+
_request_timeout=_request_timeout,
|
2854
|
+
_request_auth=_request_auth,
|
2855
|
+
_content_type=_content_type,
|
2856
|
+
_headers=_headers,
|
2857
|
+
_host_index=_host_index,
|
2858
|
+
)
|
1537
2859
|
|
2860
|
+
# Private async implementation methods
|
1538
2861
|
@validate_call
|
1539
|
-
async def
|
2862
|
+
async def _user_by_username_async(
|
1540
2863
|
self,
|
1541
2864
|
username: StrictStr,
|
1542
2865
|
_request_timeout: Union[
|
@@ -1600,7 +2923,7 @@ class UserApi:
|
|
1600
2923
|
).data
|
1601
2924
|
|
1602
2925
|
@validate_call
|
1603
|
-
async def
|
2926
|
+
async def _user_by_username_async_with_http_info(
|
1604
2927
|
self,
|
1605
2928
|
username: StrictStr,
|
1606
2929
|
_request_timeout: Union[
|
@@ -1659,12 +2982,11 @@ class UserApi:
|
|
1659
2982
|
)
|
1660
2983
|
await response_data.read()
|
1661
2984
|
return self.api_client.response_deserialize(
|
1662
|
-
response_data=response_data,
|
1663
|
-
response_types_map=_response_types_map,
|
2985
|
+
response_data=response_data, response_types_map=_response_types_map
|
1664
2986
|
)
|
1665
2987
|
|
1666
2988
|
@validate_call
|
1667
|
-
async def
|
2989
|
+
async def _user_by_username_async_without_preload_content(
|
1668
2990
|
self,
|
1669
2991
|
username: StrictStr,
|
1670
2992
|
_request_timeout: Union[
|
@@ -1721,7 +3043,86 @@ class UserApi:
|
|
1721
3043
|
response_data = await self.api_client.call_api(
|
1722
3044
|
*_param, _request_timeout=_request_timeout
|
1723
3045
|
)
|
1724
|
-
return response_data
|
3046
|
+
return response_data
|
3047
|
+
|
3048
|
+
# Private sync implementation methods
|
3049
|
+
@validate_call
|
3050
|
+
def _user_by_username_sync(
|
3051
|
+
self,
|
3052
|
+
username: StrictStr,
|
3053
|
+
_request_timeout: Union[
|
3054
|
+
None,
|
3055
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3056
|
+
Tuple[
|
3057
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3058
|
+
],
|
3059
|
+
] = None,
|
3060
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3061
|
+
_content_type: Optional[StrictStr] = None,
|
3062
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3063
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3064
|
+
) -> UserByUsername200Response:
|
3065
|
+
"""Synchronous version of user_by_username"""
|
3066
|
+
return async_to_sync(self._user_by_username_async)(
|
3067
|
+
username=username,
|
3068
|
+
_request_timeout=_request_timeout,
|
3069
|
+
_request_auth=_request_auth,
|
3070
|
+
_content_type=_content_type,
|
3071
|
+
_headers=_headers,
|
3072
|
+
_host_index=_host_index,
|
3073
|
+
)
|
3074
|
+
|
3075
|
+
@validate_call
|
3076
|
+
def _user_by_username_sync_with_http_info(
|
3077
|
+
self,
|
3078
|
+
username: StrictStr,
|
3079
|
+
_request_timeout: Union[
|
3080
|
+
None,
|
3081
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3082
|
+
Tuple[
|
3083
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3084
|
+
],
|
3085
|
+
] = None,
|
3086
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3087
|
+
_content_type: Optional[StrictStr] = None,
|
3088
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3089
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3090
|
+
) -> ApiResponse[UserByUsername200Response]:
|
3091
|
+
"""Synchronous version of user_by_username_with_http_info"""
|
3092
|
+
return async_to_sync(self._user_by_username_async_with_http_info)(
|
3093
|
+
username=username,
|
3094
|
+
_request_timeout=_request_timeout,
|
3095
|
+
_request_auth=_request_auth,
|
3096
|
+
_content_type=_content_type,
|
3097
|
+
_headers=_headers,
|
3098
|
+
_host_index=_host_index,
|
3099
|
+
)
|
3100
|
+
|
3101
|
+
@validate_call
|
3102
|
+
def _user_by_username_sync_without_preload_content(
|
3103
|
+
self,
|
3104
|
+
username: StrictStr,
|
3105
|
+
_request_timeout: Union[
|
3106
|
+
None,
|
3107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3108
|
+
Tuple[
|
3109
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3110
|
+
],
|
3111
|
+
] = None,
|
3112
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3113
|
+
_content_type: Optional[StrictStr] = None,
|
3114
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3115
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3116
|
+
) -> RESTResponseType:
|
3117
|
+
"""Synchronous version of user_by_username_without_preload_content"""
|
3118
|
+
return async_to_sync(self._user_by_username_async_without_preload_content)(
|
3119
|
+
username=username,
|
3120
|
+
_request_timeout=_request_timeout,
|
3121
|
+
_request_auth=_request_auth,
|
3122
|
+
_content_type=_content_type,
|
3123
|
+
_headers=_headers,
|
3124
|
+
_host_index=_host_index,
|
3125
|
+
)
|
1725
3126
|
|
1726
3127
|
def _user_by_username_serialize(
|
1727
3128
|
self,
|
@@ -1780,7 +3181,128 @@ class UserApi:
|
|
1780
3181
|
)
|
1781
3182
|
|
1782
3183
|
@validate_call
|
1783
|
-
|
3184
|
+
def user_reset_password(
|
3185
|
+
self,
|
3186
|
+
user_reset_password_request: UserResetPasswordRequest,
|
3187
|
+
_request_timeout: Union[
|
3188
|
+
None,
|
3189
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3190
|
+
Tuple[
|
3191
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3192
|
+
],
|
3193
|
+
] = None,
|
3194
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3195
|
+
_content_type: Optional[StrictStr] = None,
|
3196
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3197
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3198
|
+
) -> VerifyEmail200Response:
|
3199
|
+
"""User Reset Password
|
3200
|
+
|
3201
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
3202
|
+
"""
|
3203
|
+
if self.is_sync:
|
3204
|
+
return self._user_reset_password_sync(
|
3205
|
+
user_reset_password_request=user_reset_password_request,
|
3206
|
+
_request_timeout=_request_timeout,
|
3207
|
+
_request_auth=_request_auth,
|
3208
|
+
_content_type=_content_type,
|
3209
|
+
_headers=_headers,
|
3210
|
+
_host_index=_host_index,
|
3211
|
+
)
|
3212
|
+
|
3213
|
+
else:
|
3214
|
+
return self._user_reset_password_async(
|
3215
|
+
user_reset_password_request=user_reset_password_request,
|
3216
|
+
_request_timeout=_request_timeout,
|
3217
|
+
_request_auth=_request_auth,
|
3218
|
+
_content_type=_content_type,
|
3219
|
+
_headers=_headers,
|
3220
|
+
_host_index=_host_index,
|
3221
|
+
)
|
3222
|
+
|
3223
|
+
@validate_call
|
3224
|
+
def user_reset_password_with_http_info(
|
3225
|
+
self,
|
3226
|
+
user_reset_password_request: UserResetPasswordRequest,
|
3227
|
+
_request_timeout: Union[
|
3228
|
+
None,
|
3229
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3230
|
+
Tuple[
|
3231
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3232
|
+
],
|
3233
|
+
] = None,
|
3234
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3235
|
+
_content_type: Optional[StrictStr] = None,
|
3236
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3237
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3238
|
+
) -> ApiResponse[VerifyEmail200Response]:
|
3239
|
+
"""User Reset Password with HTTP info
|
3240
|
+
|
3241
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
3242
|
+
"""
|
3243
|
+
if self.is_sync:
|
3244
|
+
return self._user_reset_password_sync_with_http_info(
|
3245
|
+
user_reset_password_request=user_reset_password_request,
|
3246
|
+
_request_timeout=_request_timeout,
|
3247
|
+
_request_auth=_request_auth,
|
3248
|
+
_content_type=_content_type,
|
3249
|
+
_headers=_headers,
|
3250
|
+
_host_index=_host_index,
|
3251
|
+
)
|
3252
|
+
|
3253
|
+
else:
|
3254
|
+
return self._user_reset_password_async_with_http_info(
|
3255
|
+
user_reset_password_request=user_reset_password_request,
|
3256
|
+
_request_timeout=_request_timeout,
|
3257
|
+
_request_auth=_request_auth,
|
3258
|
+
_content_type=_content_type,
|
3259
|
+
_headers=_headers,
|
3260
|
+
_host_index=_host_index,
|
3261
|
+
)
|
3262
|
+
|
3263
|
+
@validate_call
|
3264
|
+
def user_reset_password_without_preload_content(
|
3265
|
+
self,
|
3266
|
+
user_reset_password_request: UserResetPasswordRequest,
|
3267
|
+
_request_timeout: Union[
|
3268
|
+
None,
|
3269
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3270
|
+
Tuple[
|
3271
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3272
|
+
],
|
3273
|
+
] = None,
|
3274
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3275
|
+
_content_type: Optional[StrictStr] = None,
|
3276
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3277
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3278
|
+
) -> RESTResponseType:
|
3279
|
+
"""User Reset Password without preloading content
|
3280
|
+
|
3281
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
3282
|
+
"""
|
3283
|
+
if self.is_sync:
|
3284
|
+
return self._user_reset_password_sync_without_preload_content(
|
3285
|
+
user_reset_password_request=user_reset_password_request,
|
3286
|
+
_request_timeout=_request_timeout,
|
3287
|
+
_request_auth=_request_auth,
|
3288
|
+
_content_type=_content_type,
|
3289
|
+
_headers=_headers,
|
3290
|
+
_host_index=_host_index,
|
3291
|
+
)
|
3292
|
+
|
3293
|
+
else:
|
3294
|
+
return self._user_reset_password_async_without_preload_content(
|
3295
|
+
user_reset_password_request=user_reset_password_request,
|
3296
|
+
_request_timeout=_request_timeout,
|
3297
|
+
_request_auth=_request_auth,
|
3298
|
+
_content_type=_content_type,
|
3299
|
+
_headers=_headers,
|
3300
|
+
_host_index=_host_index,
|
3301
|
+
)
|
3302
|
+
|
3303
|
+
# Private async implementation methods
|
3304
|
+
@validate_call
|
3305
|
+
async def _user_reset_password_async(
|
1784
3306
|
self,
|
1785
3307
|
user_reset_password_request: UserResetPasswordRequest,
|
1786
3308
|
_request_timeout: Union[
|
@@ -1844,7 +3366,7 @@ class UserApi:
|
|
1844
3366
|
).data
|
1845
3367
|
|
1846
3368
|
@validate_call
|
1847
|
-
async def
|
3369
|
+
async def _user_reset_password_async_with_http_info(
|
1848
3370
|
self,
|
1849
3371
|
user_reset_password_request: UserResetPasswordRequest,
|
1850
3372
|
_request_timeout: Union[
|
@@ -1887,28 +3409,140 @@ class UserApi:
|
|
1887
3409
|
:return: Returns the result object.
|
1888
3410
|
""" # noqa: E501
|
1889
3411
|
|
1890
|
-
_param = self._user_reset_password_serialize(
|
3412
|
+
_param = self._user_reset_password_serialize(
|
3413
|
+
user_reset_password_request=user_reset_password_request,
|
3414
|
+
_request_auth=_request_auth,
|
3415
|
+
_content_type=_content_type,
|
3416
|
+
_headers=_headers,
|
3417
|
+
_host_index=_host_index,
|
3418
|
+
)
|
3419
|
+
|
3420
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3421
|
+
"200": "VerifyEmail200Response",
|
3422
|
+
}
|
3423
|
+
response_data = await self.api_client.call_api(
|
3424
|
+
*_param, _request_timeout=_request_timeout
|
3425
|
+
)
|
3426
|
+
await response_data.read()
|
3427
|
+
return self.api_client.response_deserialize(
|
3428
|
+
response_data=response_data, response_types_map=_response_types_map
|
3429
|
+
)
|
3430
|
+
|
3431
|
+
@validate_call
|
3432
|
+
async def _user_reset_password_async_without_preload_content(
|
3433
|
+
self,
|
3434
|
+
user_reset_password_request: UserResetPasswordRequest,
|
3435
|
+
_request_timeout: Union[
|
3436
|
+
None,
|
3437
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3438
|
+
Tuple[
|
3439
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3440
|
+
],
|
3441
|
+
] = None,
|
3442
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3443
|
+
_content_type: Optional[StrictStr] = None,
|
3444
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3445
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3446
|
+
) -> RESTResponseType:
|
3447
|
+
"""User Reset Password
|
3448
|
+
|
3449
|
+
Resets the password for the user.
|
3450
|
+
|
3451
|
+
:param user_reset_password_request: (required)
|
3452
|
+
:type user_reset_password_request: UserResetPasswordRequest
|
3453
|
+
:param _request_timeout: timeout setting for this request. If one
|
3454
|
+
number provided, it will be total request
|
3455
|
+
timeout. It can also be a pair (tuple) of
|
3456
|
+
(connection, read) timeouts.
|
3457
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3458
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3459
|
+
request; this effectively ignores the
|
3460
|
+
authentication in the spec for a single request.
|
3461
|
+
:type _request_auth: dict, optional
|
3462
|
+
:param _content_type: force content-type for the request.
|
3463
|
+
:type _content_type: str, Optional
|
3464
|
+
:param _headers: set to override the headers for a single
|
3465
|
+
request; this effectively ignores the headers
|
3466
|
+
in the spec for a single request.
|
3467
|
+
:type _headers: dict, optional
|
3468
|
+
:param _host_index: set to override the host_index for a single
|
3469
|
+
request; this effectively ignores the host_index
|
3470
|
+
in the spec for a single request.
|
3471
|
+
:type _host_index: int, optional
|
3472
|
+
:return: Returns the result object.
|
3473
|
+
""" # noqa: E501
|
3474
|
+
|
3475
|
+
_param = self._user_reset_password_serialize(
|
3476
|
+
user_reset_password_request=user_reset_password_request,
|
3477
|
+
_request_auth=_request_auth,
|
3478
|
+
_content_type=_content_type,
|
3479
|
+
_headers=_headers,
|
3480
|
+
_host_index=_host_index,
|
3481
|
+
)
|
3482
|
+
|
3483
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3484
|
+
"200": "VerifyEmail200Response",
|
3485
|
+
}
|
3486
|
+
response_data = await self.api_client.call_api(
|
3487
|
+
*_param, _request_timeout=_request_timeout
|
3488
|
+
)
|
3489
|
+
return response_data
|
3490
|
+
|
3491
|
+
# Private sync implementation methods
|
3492
|
+
@validate_call
|
3493
|
+
def _user_reset_password_sync(
|
3494
|
+
self,
|
3495
|
+
user_reset_password_request: UserResetPasswordRequest,
|
3496
|
+
_request_timeout: Union[
|
3497
|
+
None,
|
3498
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3499
|
+
Tuple[
|
3500
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3501
|
+
],
|
3502
|
+
] = None,
|
3503
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3504
|
+
_content_type: Optional[StrictStr] = None,
|
3505
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3506
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3507
|
+
) -> VerifyEmail200Response:
|
3508
|
+
"""Synchronous version of user_reset_password"""
|
3509
|
+
return async_to_sync(self._user_reset_password_async)(
|
3510
|
+
user_reset_password_request=user_reset_password_request,
|
3511
|
+
_request_timeout=_request_timeout,
|
3512
|
+
_request_auth=_request_auth,
|
3513
|
+
_content_type=_content_type,
|
3514
|
+
_headers=_headers,
|
3515
|
+
_host_index=_host_index,
|
3516
|
+
)
|
3517
|
+
|
3518
|
+
@validate_call
|
3519
|
+
def _user_reset_password_sync_with_http_info(
|
3520
|
+
self,
|
3521
|
+
user_reset_password_request: UserResetPasswordRequest,
|
3522
|
+
_request_timeout: Union[
|
3523
|
+
None,
|
3524
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3525
|
+
Tuple[
|
3526
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3527
|
+
],
|
3528
|
+
] = None,
|
3529
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3530
|
+
_content_type: Optional[StrictStr] = None,
|
3531
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3532
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3533
|
+
) -> ApiResponse[VerifyEmail200Response]:
|
3534
|
+
"""Synchronous version of user_reset_password_with_http_info"""
|
3535
|
+
return async_to_sync(self._user_reset_password_async_with_http_info)(
|
1891
3536
|
user_reset_password_request=user_reset_password_request,
|
3537
|
+
_request_timeout=_request_timeout,
|
1892
3538
|
_request_auth=_request_auth,
|
1893
3539
|
_content_type=_content_type,
|
1894
3540
|
_headers=_headers,
|
1895
3541
|
_host_index=_host_index,
|
1896
3542
|
)
|
1897
3543
|
|
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
3544
|
@validate_call
|
1911
|
-
|
3545
|
+
def _user_reset_password_sync_without_preload_content(
|
1912
3546
|
self,
|
1913
3547
|
user_reset_password_request: UserResetPasswordRequest,
|
1914
3548
|
_request_timeout: Union[
|
@@ -1923,50 +3557,16 @@ class UserApi:
|
|
1923
3557
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1924
3558
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1925
3559
|
) -> RESTResponseType:
|
1926
|
-
"""
|
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(
|
3560
|
+
"""Synchronous version of user_reset_password_without_preload_content"""
|
3561
|
+
return async_to_sync(self._user_reset_password_async_without_preload_content)(
|
1955
3562
|
user_reset_password_request=user_reset_password_request,
|
3563
|
+
_request_timeout=_request_timeout,
|
1956
3564
|
_request_auth=_request_auth,
|
1957
3565
|
_content_type=_content_type,
|
1958
3566
|
_headers=_headers,
|
1959
3567
|
_host_index=_host_index,
|
1960
3568
|
)
|
1961
3569
|
|
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
3570
|
def _user_reset_password_serialize(
|
1971
3571
|
self,
|
1972
3572
|
user_reset_password_request,
|
@@ -2032,7 +3632,128 @@ class UserApi:
|
|
2032
3632
|
)
|
2033
3633
|
|
2034
3634
|
@validate_call
|
2035
|
-
|
3635
|
+
def user_set_password(
|
3636
|
+
self,
|
3637
|
+
user_set_password_request: UserSetPasswordRequest,
|
3638
|
+
_request_timeout: Union[
|
3639
|
+
None,
|
3640
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3641
|
+
Tuple[
|
3642
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3643
|
+
],
|
3644
|
+
] = None,
|
3645
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3646
|
+
_content_type: Optional[StrictStr] = None,
|
3647
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3648
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3649
|
+
) -> object:
|
3650
|
+
"""User Set Password
|
3651
|
+
|
3652
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
3653
|
+
"""
|
3654
|
+
if self.is_sync:
|
3655
|
+
return self._user_set_password_sync(
|
3656
|
+
user_set_password_request=user_set_password_request,
|
3657
|
+
_request_timeout=_request_timeout,
|
3658
|
+
_request_auth=_request_auth,
|
3659
|
+
_content_type=_content_type,
|
3660
|
+
_headers=_headers,
|
3661
|
+
_host_index=_host_index,
|
3662
|
+
)
|
3663
|
+
|
3664
|
+
else:
|
3665
|
+
return self._user_set_password_async(
|
3666
|
+
user_set_password_request=user_set_password_request,
|
3667
|
+
_request_timeout=_request_timeout,
|
3668
|
+
_request_auth=_request_auth,
|
3669
|
+
_content_type=_content_type,
|
3670
|
+
_headers=_headers,
|
3671
|
+
_host_index=_host_index,
|
3672
|
+
)
|
3673
|
+
|
3674
|
+
@validate_call
|
3675
|
+
def user_set_password_with_http_info(
|
3676
|
+
self,
|
3677
|
+
user_set_password_request: UserSetPasswordRequest,
|
3678
|
+
_request_timeout: Union[
|
3679
|
+
None,
|
3680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3681
|
+
Tuple[
|
3682
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3683
|
+
],
|
3684
|
+
] = None,
|
3685
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3686
|
+
_content_type: Optional[StrictStr] = None,
|
3687
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3688
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3689
|
+
) -> ApiResponse[object]:
|
3690
|
+
"""User Set Password with HTTP info
|
3691
|
+
|
3692
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
3693
|
+
"""
|
3694
|
+
if self.is_sync:
|
3695
|
+
return self._user_set_password_sync_with_http_info(
|
3696
|
+
user_set_password_request=user_set_password_request,
|
3697
|
+
_request_timeout=_request_timeout,
|
3698
|
+
_request_auth=_request_auth,
|
3699
|
+
_content_type=_content_type,
|
3700
|
+
_headers=_headers,
|
3701
|
+
_host_index=_host_index,
|
3702
|
+
)
|
3703
|
+
|
3704
|
+
else:
|
3705
|
+
return self._user_set_password_async_with_http_info(
|
3706
|
+
user_set_password_request=user_set_password_request,
|
3707
|
+
_request_timeout=_request_timeout,
|
3708
|
+
_request_auth=_request_auth,
|
3709
|
+
_content_type=_content_type,
|
3710
|
+
_headers=_headers,
|
3711
|
+
_host_index=_host_index,
|
3712
|
+
)
|
3713
|
+
|
3714
|
+
@validate_call
|
3715
|
+
def user_set_password_without_preload_content(
|
3716
|
+
self,
|
3717
|
+
user_set_password_request: UserSetPasswordRequest,
|
3718
|
+
_request_timeout: Union[
|
3719
|
+
None,
|
3720
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3721
|
+
Tuple[
|
3722
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3723
|
+
],
|
3724
|
+
] = None,
|
3725
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3726
|
+
_content_type: Optional[StrictStr] = None,
|
3727
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3728
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3729
|
+
) -> RESTResponseType:
|
3730
|
+
"""User Set Password without preloading content
|
3731
|
+
|
3732
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
3733
|
+
"""
|
3734
|
+
if self.is_sync:
|
3735
|
+
return self._user_set_password_sync_without_preload_content(
|
3736
|
+
user_set_password_request=user_set_password_request,
|
3737
|
+
_request_timeout=_request_timeout,
|
3738
|
+
_request_auth=_request_auth,
|
3739
|
+
_content_type=_content_type,
|
3740
|
+
_headers=_headers,
|
3741
|
+
_host_index=_host_index,
|
3742
|
+
)
|
3743
|
+
|
3744
|
+
else:
|
3745
|
+
return self._user_set_password_async_without_preload_content(
|
3746
|
+
user_set_password_request=user_set_password_request,
|
3747
|
+
_request_timeout=_request_timeout,
|
3748
|
+
_request_auth=_request_auth,
|
3749
|
+
_content_type=_content_type,
|
3750
|
+
_headers=_headers,
|
3751
|
+
_host_index=_host_index,
|
3752
|
+
)
|
3753
|
+
|
3754
|
+
# Private async implementation methods
|
3755
|
+
@validate_call
|
3756
|
+
async def _user_set_password_async(
|
2036
3757
|
self,
|
2037
3758
|
user_set_password_request: UserSetPasswordRequest,
|
2038
3759
|
_request_timeout: Union[
|
@@ -2096,7 +3817,7 @@ class UserApi:
|
|
2096
3817
|
).data
|
2097
3818
|
|
2098
3819
|
@validate_call
|
2099
|
-
async def
|
3820
|
+
async def _user_set_password_async_with_http_info(
|
2100
3821
|
self,
|
2101
3822
|
user_set_password_request: UserSetPasswordRequest,
|
2102
3823
|
_request_timeout: Union[
|
@@ -2155,12 +3876,11 @@ class UserApi:
|
|
2155
3876
|
)
|
2156
3877
|
await response_data.read()
|
2157
3878
|
return self.api_client.response_deserialize(
|
2158
|
-
response_data=response_data,
|
2159
|
-
response_types_map=_response_types_map,
|
3879
|
+
response_data=response_data, response_types_map=_response_types_map
|
2160
3880
|
)
|
2161
3881
|
|
2162
3882
|
@validate_call
|
2163
|
-
async def
|
3883
|
+
async def _user_set_password_async_without_preload_content(
|
2164
3884
|
self,
|
2165
3885
|
user_set_password_request: UserSetPasswordRequest,
|
2166
3886
|
_request_timeout: Union[
|
@@ -2217,7 +3937,86 @@ class UserApi:
|
|
2217
3937
|
response_data = await self.api_client.call_api(
|
2218
3938
|
*_param, _request_timeout=_request_timeout
|
2219
3939
|
)
|
2220
|
-
return response_data
|
3940
|
+
return response_data
|
3941
|
+
|
3942
|
+
# Private sync implementation methods
|
3943
|
+
@validate_call
|
3944
|
+
def _user_set_password_sync(
|
3945
|
+
self,
|
3946
|
+
user_set_password_request: UserSetPasswordRequest,
|
3947
|
+
_request_timeout: Union[
|
3948
|
+
None,
|
3949
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3950
|
+
Tuple[
|
3951
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3952
|
+
],
|
3953
|
+
] = None,
|
3954
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3955
|
+
_content_type: Optional[StrictStr] = None,
|
3956
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3957
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3958
|
+
) -> object:
|
3959
|
+
"""Synchronous version of user_set_password"""
|
3960
|
+
return async_to_sync(self._user_set_password_async)(
|
3961
|
+
user_set_password_request=user_set_password_request,
|
3962
|
+
_request_timeout=_request_timeout,
|
3963
|
+
_request_auth=_request_auth,
|
3964
|
+
_content_type=_content_type,
|
3965
|
+
_headers=_headers,
|
3966
|
+
_host_index=_host_index,
|
3967
|
+
)
|
3968
|
+
|
3969
|
+
@validate_call
|
3970
|
+
def _user_set_password_sync_with_http_info(
|
3971
|
+
self,
|
3972
|
+
user_set_password_request: UserSetPasswordRequest,
|
3973
|
+
_request_timeout: Union[
|
3974
|
+
None,
|
3975
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3976
|
+
Tuple[
|
3977
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3978
|
+
],
|
3979
|
+
] = None,
|
3980
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3981
|
+
_content_type: Optional[StrictStr] = None,
|
3982
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3983
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3984
|
+
) -> ApiResponse[object]:
|
3985
|
+
"""Synchronous version of user_set_password_with_http_info"""
|
3986
|
+
return async_to_sync(self._user_set_password_async_with_http_info)(
|
3987
|
+
user_set_password_request=user_set_password_request,
|
3988
|
+
_request_timeout=_request_timeout,
|
3989
|
+
_request_auth=_request_auth,
|
3990
|
+
_content_type=_content_type,
|
3991
|
+
_headers=_headers,
|
3992
|
+
_host_index=_host_index,
|
3993
|
+
)
|
3994
|
+
|
3995
|
+
@validate_call
|
3996
|
+
def _user_set_password_sync_without_preload_content(
|
3997
|
+
self,
|
3998
|
+
user_set_password_request: UserSetPasswordRequest,
|
3999
|
+
_request_timeout: Union[
|
4000
|
+
None,
|
4001
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4002
|
+
Tuple[
|
4003
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4004
|
+
],
|
4005
|
+
] = None,
|
4006
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4007
|
+
_content_type: Optional[StrictStr] = None,
|
4008
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4009
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4010
|
+
) -> RESTResponseType:
|
4011
|
+
"""Synchronous version of user_set_password_without_preload_content"""
|
4012
|
+
return async_to_sync(self._user_set_password_async_without_preload_content)(
|
4013
|
+
user_set_password_request=user_set_password_request,
|
4014
|
+
_request_timeout=_request_timeout,
|
4015
|
+
_request_auth=_request_auth,
|
4016
|
+
_content_type=_content_type,
|
4017
|
+
_headers=_headers,
|
4018
|
+
_host_index=_host_index,
|
4019
|
+
)
|
2221
4020
|
|
2222
4021
|
def _user_set_password_serialize(
|
2223
4022
|
self,
|
@@ -2259,32 +4058,153 @@ class UserApi:
|
|
2259
4058
|
if _content_type:
|
2260
4059
|
_header_params["Content-Type"] = _content_type
|
2261
4060
|
else:
|
2262
|
-
_default_content_type = self.api_client.select_header_content_type(
|
2263
|
-
["application/json"]
|
4061
|
+
_default_content_type = self.api_client.select_header_content_type(
|
4062
|
+
["application/json"]
|
4063
|
+
)
|
4064
|
+
if _default_content_type is not None:
|
4065
|
+
_header_params["Content-Type"] = _default_content_type
|
4066
|
+
|
4067
|
+
# authentication setting
|
4068
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
4069
|
+
|
4070
|
+
return self.api_client.param_serialize(
|
4071
|
+
method="POST",
|
4072
|
+
resource_path="/user-set-password",
|
4073
|
+
path_params=_path_params,
|
4074
|
+
query_params=_query_params,
|
4075
|
+
header_params=_header_params,
|
4076
|
+
body=_body_params,
|
4077
|
+
post_params=_form_params,
|
4078
|
+
files=_files,
|
4079
|
+
auth_settings=_auth_settings,
|
4080
|
+
collection_formats=_collection_formats,
|
4081
|
+
_host=_host,
|
4082
|
+
_request_auth=_request_auth,
|
4083
|
+
)
|
4084
|
+
|
4085
|
+
@validate_call
|
4086
|
+
def verify_email(
|
4087
|
+
self,
|
4088
|
+
verify_email_request: VerifyEmailRequest,
|
4089
|
+
_request_timeout: Union[
|
4090
|
+
None,
|
4091
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4092
|
+
Tuple[
|
4093
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4094
|
+
],
|
4095
|
+
] = None,
|
4096
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4097
|
+
_content_type: Optional[StrictStr] = None,
|
4098
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4099
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4100
|
+
) -> VerifyEmail200Response:
|
4101
|
+
"""Verify Email
|
4102
|
+
|
4103
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
4104
|
+
"""
|
4105
|
+
if self.is_sync:
|
4106
|
+
return self._verify_email_sync(
|
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
|
+
)
|
4114
|
+
|
4115
|
+
else:
|
4116
|
+
return self._verify_email_async(
|
4117
|
+
verify_email_request=verify_email_request,
|
4118
|
+
_request_timeout=_request_timeout,
|
4119
|
+
_request_auth=_request_auth,
|
4120
|
+
_content_type=_content_type,
|
4121
|
+
_headers=_headers,
|
4122
|
+
_host_index=_host_index,
|
4123
|
+
)
|
4124
|
+
|
4125
|
+
@validate_call
|
4126
|
+
def verify_email_with_http_info(
|
4127
|
+
self,
|
4128
|
+
verify_email_request: VerifyEmailRequest,
|
4129
|
+
_request_timeout: Union[
|
4130
|
+
None,
|
4131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4132
|
+
Tuple[
|
4133
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4134
|
+
],
|
4135
|
+
] = None,
|
4136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4137
|
+
_content_type: Optional[StrictStr] = None,
|
4138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4140
|
+
) -> ApiResponse[VerifyEmail200Response]:
|
4141
|
+
"""Verify Email with HTTP info
|
4142
|
+
|
4143
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
4144
|
+
"""
|
4145
|
+
if self.is_sync:
|
4146
|
+
return self._verify_email_sync_with_http_info(
|
4147
|
+
verify_email_request=verify_email_request,
|
4148
|
+
_request_timeout=_request_timeout,
|
4149
|
+
_request_auth=_request_auth,
|
4150
|
+
_content_type=_content_type,
|
4151
|
+
_headers=_headers,
|
4152
|
+
_host_index=_host_index,
|
4153
|
+
)
|
4154
|
+
|
4155
|
+
else:
|
4156
|
+
return self._verify_email_async_with_http_info(
|
4157
|
+
verify_email_request=verify_email_request,
|
4158
|
+
_request_timeout=_request_timeout,
|
4159
|
+
_request_auth=_request_auth,
|
4160
|
+
_content_type=_content_type,
|
4161
|
+
_headers=_headers,
|
4162
|
+
_host_index=_host_index,
|
2264
4163
|
)
|
2265
|
-
if _default_content_type is not None:
|
2266
|
-
_header_params["Content-Type"] = _default_content_type
|
2267
4164
|
|
2268
|
-
|
2269
|
-
|
4165
|
+
@validate_call
|
4166
|
+
def verify_email_without_preload_content(
|
4167
|
+
self,
|
4168
|
+
verify_email_request: VerifyEmailRequest,
|
4169
|
+
_request_timeout: Union[
|
4170
|
+
None,
|
4171
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4172
|
+
Tuple[
|
4173
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4174
|
+
],
|
4175
|
+
] = None,
|
4176
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4177
|
+
_content_type: Optional[StrictStr] = None,
|
4178
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4179
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4180
|
+
) -> RESTResponseType:
|
4181
|
+
"""Verify Email without preloading content
|
4182
|
+
|
4183
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
4184
|
+
"""
|
4185
|
+
if self.is_sync:
|
4186
|
+
return self._verify_email_sync_without_preload_content(
|
4187
|
+
verify_email_request=verify_email_request,
|
4188
|
+
_request_timeout=_request_timeout,
|
4189
|
+
_request_auth=_request_auth,
|
4190
|
+
_content_type=_content_type,
|
4191
|
+
_headers=_headers,
|
4192
|
+
_host_index=_host_index,
|
4193
|
+
)
|
2270
4194
|
|
2271
|
-
|
2272
|
-
|
2273
|
-
|
2274
|
-
|
2275
|
-
|
2276
|
-
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
auth_settings=_auth_settings,
|
2281
|
-
collection_formats=_collection_formats,
|
2282
|
-
_host=_host,
|
2283
|
-
_request_auth=_request_auth,
|
2284
|
-
)
|
4195
|
+
else:
|
4196
|
+
return self._verify_email_async_without_preload_content(
|
4197
|
+
verify_email_request=verify_email_request,
|
4198
|
+
_request_timeout=_request_timeout,
|
4199
|
+
_request_auth=_request_auth,
|
4200
|
+
_content_type=_content_type,
|
4201
|
+
_headers=_headers,
|
4202
|
+
_host_index=_host_index,
|
4203
|
+
)
|
2285
4204
|
|
4205
|
+
# Private async implementation methods
|
2286
4206
|
@validate_call
|
2287
|
-
async def
|
4207
|
+
async def _verify_email_async(
|
2288
4208
|
self,
|
2289
4209
|
verify_email_request: VerifyEmailRequest,
|
2290
4210
|
_request_timeout: Union[
|
@@ -2348,7 +4268,7 @@ class UserApi:
|
|
2348
4268
|
).data
|
2349
4269
|
|
2350
4270
|
@validate_call
|
2351
|
-
async def
|
4271
|
+
async def _verify_email_async_with_http_info(
|
2352
4272
|
self,
|
2353
4273
|
verify_email_request: VerifyEmailRequest,
|
2354
4274
|
_request_timeout: Union[
|
@@ -2407,12 +4327,11 @@ class UserApi:
|
|
2407
4327
|
)
|
2408
4328
|
await response_data.read()
|
2409
4329
|
return self.api_client.response_deserialize(
|
2410
|
-
response_data=response_data,
|
2411
|
-
response_types_map=_response_types_map,
|
4330
|
+
response_data=response_data, response_types_map=_response_types_map
|
2412
4331
|
)
|
2413
4332
|
|
2414
4333
|
@validate_call
|
2415
|
-
async def
|
4334
|
+
async def _verify_email_async_without_preload_content(
|
2416
4335
|
self,
|
2417
4336
|
verify_email_request: VerifyEmailRequest,
|
2418
4337
|
_request_timeout: Union[
|
@@ -2469,7 +4388,86 @@ class UserApi:
|
|
2469
4388
|
response_data = await self.api_client.call_api(
|
2470
4389
|
*_param, _request_timeout=_request_timeout
|
2471
4390
|
)
|
2472
|
-
return response_data
|
4391
|
+
return response_data
|
4392
|
+
|
4393
|
+
# Private sync implementation methods
|
4394
|
+
@validate_call
|
4395
|
+
def _verify_email_sync(
|
4396
|
+
self,
|
4397
|
+
verify_email_request: VerifyEmailRequest,
|
4398
|
+
_request_timeout: Union[
|
4399
|
+
None,
|
4400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4401
|
+
Tuple[
|
4402
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4403
|
+
],
|
4404
|
+
] = None,
|
4405
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4406
|
+
_content_type: Optional[StrictStr] = None,
|
4407
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4408
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4409
|
+
) -> VerifyEmail200Response:
|
4410
|
+
"""Synchronous version of verify_email"""
|
4411
|
+
return async_to_sync(self._verify_email_async)(
|
4412
|
+
verify_email_request=verify_email_request,
|
4413
|
+
_request_timeout=_request_timeout,
|
4414
|
+
_request_auth=_request_auth,
|
4415
|
+
_content_type=_content_type,
|
4416
|
+
_headers=_headers,
|
4417
|
+
_host_index=_host_index,
|
4418
|
+
)
|
4419
|
+
|
4420
|
+
@validate_call
|
4421
|
+
def _verify_email_sync_with_http_info(
|
4422
|
+
self,
|
4423
|
+
verify_email_request: VerifyEmailRequest,
|
4424
|
+
_request_timeout: Union[
|
4425
|
+
None,
|
4426
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4427
|
+
Tuple[
|
4428
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4429
|
+
],
|
4430
|
+
] = None,
|
4431
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4432
|
+
_content_type: Optional[StrictStr] = None,
|
4433
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4434
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4435
|
+
) -> ApiResponse[VerifyEmail200Response]:
|
4436
|
+
"""Synchronous version of verify_email_with_http_info"""
|
4437
|
+
return async_to_sync(self._verify_email_async_with_http_info)(
|
4438
|
+
verify_email_request=verify_email_request,
|
4439
|
+
_request_timeout=_request_timeout,
|
4440
|
+
_request_auth=_request_auth,
|
4441
|
+
_content_type=_content_type,
|
4442
|
+
_headers=_headers,
|
4443
|
+
_host_index=_host_index,
|
4444
|
+
)
|
4445
|
+
|
4446
|
+
@validate_call
|
4447
|
+
def _verify_email_sync_without_preload_content(
|
4448
|
+
self,
|
4449
|
+
verify_email_request: VerifyEmailRequest,
|
4450
|
+
_request_timeout: Union[
|
4451
|
+
None,
|
4452
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4453
|
+
Tuple[
|
4454
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4455
|
+
],
|
4456
|
+
] = None,
|
4457
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4458
|
+
_content_type: Optional[StrictStr] = None,
|
4459
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4460
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4461
|
+
) -> RESTResponseType:
|
4462
|
+
"""Synchronous version of verify_email_without_preload_content"""
|
4463
|
+
return async_to_sync(self._verify_email_async_without_preload_content)(
|
4464
|
+
verify_email_request=verify_email_request,
|
4465
|
+
_request_timeout=_request_timeout,
|
4466
|
+
_request_auth=_request_auth,
|
4467
|
+
_content_type=_content_type,
|
4468
|
+
_headers=_headers,
|
4469
|
+
_host_index=_host_index,
|
4470
|
+
)
|
2473
4471
|
|
2474
4472
|
def _verify_email_serialize(
|
2475
4473
|
self,
|
@@ -2536,7 +4534,137 @@ class UserApi:
|
|
2536
4534
|
)
|
2537
4535
|
|
2538
4536
|
@validate_call
|
2539
|
-
|
4537
|
+
def whoami(
|
4538
|
+
self,
|
4539
|
+
x_refresh_token: Annotated[
|
4540
|
+
Optional[StrictStr],
|
4541
|
+
Field(description="The refresh token for rotating the access token."),
|
4542
|
+
] = None,
|
4543
|
+
_request_timeout: Union[
|
4544
|
+
None,
|
4545
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4546
|
+
Tuple[
|
4547
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4548
|
+
],
|
4549
|
+
] = None,
|
4550
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4551
|
+
_content_type: Optional[StrictStr] = None,
|
4552
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4553
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4554
|
+
) -> Whoami200Response:
|
4555
|
+
"""Whoami
|
4556
|
+
|
4557
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
4558
|
+
"""
|
4559
|
+
if self.is_sync:
|
4560
|
+
return self._whoami_sync(
|
4561
|
+
x_refresh_token=x_refresh_token,
|
4562
|
+
_request_timeout=_request_timeout,
|
4563
|
+
_request_auth=_request_auth,
|
4564
|
+
_content_type=_content_type,
|
4565
|
+
_headers=_headers,
|
4566
|
+
_host_index=_host_index,
|
4567
|
+
)
|
4568
|
+
|
4569
|
+
else:
|
4570
|
+
return self._whoami_async(
|
4571
|
+
x_refresh_token=x_refresh_token,
|
4572
|
+
_request_timeout=_request_timeout,
|
4573
|
+
_request_auth=_request_auth,
|
4574
|
+
_content_type=_content_type,
|
4575
|
+
_headers=_headers,
|
4576
|
+
_host_index=_host_index,
|
4577
|
+
)
|
4578
|
+
|
4579
|
+
@validate_call
|
4580
|
+
def whoami_with_http_info(
|
4581
|
+
self,
|
4582
|
+
x_refresh_token: Annotated[
|
4583
|
+
Optional[StrictStr],
|
4584
|
+
Field(description="The refresh token for rotating the access token."),
|
4585
|
+
] = None,
|
4586
|
+
_request_timeout: Union[
|
4587
|
+
None,
|
4588
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4589
|
+
Tuple[
|
4590
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4591
|
+
],
|
4592
|
+
] = None,
|
4593
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4594
|
+
_content_type: Optional[StrictStr] = None,
|
4595
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4596
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4597
|
+
) -> ApiResponse[Whoami200Response]:
|
4598
|
+
"""Whoami with HTTP info
|
4599
|
+
|
4600
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
4601
|
+
"""
|
4602
|
+
if self.is_sync:
|
4603
|
+
return self._whoami_sync_with_http_info(
|
4604
|
+
x_refresh_token=x_refresh_token,
|
4605
|
+
_request_timeout=_request_timeout,
|
4606
|
+
_request_auth=_request_auth,
|
4607
|
+
_content_type=_content_type,
|
4608
|
+
_headers=_headers,
|
4609
|
+
_host_index=_host_index,
|
4610
|
+
)
|
4611
|
+
|
4612
|
+
else:
|
4613
|
+
return self._whoami_async_with_http_info(
|
4614
|
+
x_refresh_token=x_refresh_token,
|
4615
|
+
_request_timeout=_request_timeout,
|
4616
|
+
_request_auth=_request_auth,
|
4617
|
+
_content_type=_content_type,
|
4618
|
+
_headers=_headers,
|
4619
|
+
_host_index=_host_index,
|
4620
|
+
)
|
4621
|
+
|
4622
|
+
@validate_call
|
4623
|
+
def whoami_without_preload_content(
|
4624
|
+
self,
|
4625
|
+
x_refresh_token: Annotated[
|
4626
|
+
Optional[StrictStr],
|
4627
|
+
Field(description="The refresh token for rotating the access token."),
|
4628
|
+
] = None,
|
4629
|
+
_request_timeout: Union[
|
4630
|
+
None,
|
4631
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4632
|
+
Tuple[
|
4633
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4634
|
+
],
|
4635
|
+
] = None,
|
4636
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4637
|
+
_content_type: Optional[StrictStr] = None,
|
4638
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4639
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4640
|
+
) -> RESTResponseType:
|
4641
|
+
"""Whoami without preloading content
|
4642
|
+
|
4643
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
4644
|
+
"""
|
4645
|
+
if self.is_sync:
|
4646
|
+
return self._whoami_sync_without_preload_content(
|
4647
|
+
x_refresh_token=x_refresh_token,
|
4648
|
+
_request_timeout=_request_timeout,
|
4649
|
+
_request_auth=_request_auth,
|
4650
|
+
_content_type=_content_type,
|
4651
|
+
_headers=_headers,
|
4652
|
+
_host_index=_host_index,
|
4653
|
+
)
|
4654
|
+
|
4655
|
+
else:
|
4656
|
+
return self._whoami_async_without_preload_content(
|
4657
|
+
x_refresh_token=x_refresh_token,
|
4658
|
+
_request_timeout=_request_timeout,
|
4659
|
+
_request_auth=_request_auth,
|
4660
|
+
_content_type=_content_type,
|
4661
|
+
_headers=_headers,
|
4662
|
+
_host_index=_host_index,
|
4663
|
+
)
|
4664
|
+
|
4665
|
+
# Private async implementation methods
|
4666
|
+
@validate_call
|
4667
|
+
async def _whoami_async(
|
2540
4668
|
self,
|
2541
4669
|
x_refresh_token: Annotated[
|
2542
4670
|
Optional[StrictStr],
|
@@ -2603,7 +4731,7 @@ class UserApi:
|
|
2603
4731
|
).data
|
2604
4732
|
|
2605
4733
|
@validate_call
|
2606
|
-
async def
|
4734
|
+
async def _whoami_async_with_http_info(
|
2607
4735
|
self,
|
2608
4736
|
x_refresh_token: Annotated[
|
2609
4737
|
Optional[StrictStr],
|
@@ -2665,12 +4793,11 @@ class UserApi:
|
|
2665
4793
|
)
|
2666
4794
|
await response_data.read()
|
2667
4795
|
return self.api_client.response_deserialize(
|
2668
|
-
response_data=response_data,
|
2669
|
-
response_types_map=_response_types_map,
|
4796
|
+
response_data=response_data, response_types_map=_response_types_map
|
2670
4797
|
)
|
2671
4798
|
|
2672
4799
|
@validate_call
|
2673
|
-
async def
|
4800
|
+
async def _whoami_async_without_preload_content(
|
2674
4801
|
self,
|
2675
4802
|
x_refresh_token: Annotated[
|
2676
4803
|
Optional[StrictStr],
|
@@ -2730,7 +4857,95 @@ class UserApi:
|
|
2730
4857
|
response_data = await self.api_client.call_api(
|
2731
4858
|
*_param, _request_timeout=_request_timeout
|
2732
4859
|
)
|
2733
|
-
return response_data
|
4860
|
+
return response_data
|
4861
|
+
|
4862
|
+
# Private sync implementation methods
|
4863
|
+
@validate_call
|
4864
|
+
def _whoami_sync(
|
4865
|
+
self,
|
4866
|
+
x_refresh_token: Annotated[
|
4867
|
+
Optional[StrictStr],
|
4868
|
+
Field(description="The refresh token for rotating the access token."),
|
4869
|
+
] = None,
|
4870
|
+
_request_timeout: Union[
|
4871
|
+
None,
|
4872
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4873
|
+
Tuple[
|
4874
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4875
|
+
],
|
4876
|
+
] = None,
|
4877
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4878
|
+
_content_type: Optional[StrictStr] = None,
|
4879
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4880
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4881
|
+
) -> Whoami200Response:
|
4882
|
+
"""Synchronous version of whoami"""
|
4883
|
+
return async_to_sync(self._whoami_async)(
|
4884
|
+
x_refresh_token=x_refresh_token,
|
4885
|
+
_request_timeout=_request_timeout,
|
4886
|
+
_request_auth=_request_auth,
|
4887
|
+
_content_type=_content_type,
|
4888
|
+
_headers=_headers,
|
4889
|
+
_host_index=_host_index,
|
4890
|
+
)
|
4891
|
+
|
4892
|
+
@validate_call
|
4893
|
+
def _whoami_sync_with_http_info(
|
4894
|
+
self,
|
4895
|
+
x_refresh_token: Annotated[
|
4896
|
+
Optional[StrictStr],
|
4897
|
+
Field(description="The refresh token for rotating the access token."),
|
4898
|
+
] = None,
|
4899
|
+
_request_timeout: Union[
|
4900
|
+
None,
|
4901
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4902
|
+
Tuple[
|
4903
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4904
|
+
],
|
4905
|
+
] = None,
|
4906
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4907
|
+
_content_type: Optional[StrictStr] = None,
|
4908
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4909
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4910
|
+
) -> ApiResponse[Whoami200Response]:
|
4911
|
+
"""Synchronous version of whoami_with_http_info"""
|
4912
|
+
return async_to_sync(self._whoami_async_with_http_info)(
|
4913
|
+
x_refresh_token=x_refresh_token,
|
4914
|
+
_request_timeout=_request_timeout,
|
4915
|
+
_request_auth=_request_auth,
|
4916
|
+
_content_type=_content_type,
|
4917
|
+
_headers=_headers,
|
4918
|
+
_host_index=_host_index,
|
4919
|
+
)
|
4920
|
+
|
4921
|
+
@validate_call
|
4922
|
+
def _whoami_sync_without_preload_content(
|
4923
|
+
self,
|
4924
|
+
x_refresh_token: Annotated[
|
4925
|
+
Optional[StrictStr],
|
4926
|
+
Field(description="The refresh token for rotating the access token."),
|
4927
|
+
] = None,
|
4928
|
+
_request_timeout: Union[
|
4929
|
+
None,
|
4930
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4931
|
+
Tuple[
|
4932
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4933
|
+
],
|
4934
|
+
] = None,
|
4935
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4936
|
+
_content_type: Optional[StrictStr] = None,
|
4937
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4938
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4939
|
+
) -> RESTResponseType:
|
4940
|
+
"""Synchronous version of whoami_without_preload_content"""
|
4941
|
+
return async_to_sync(self._whoami_async_without_preload_content)(
|
4942
|
+
x_refresh_token=x_refresh_token,
|
4943
|
+
_request_timeout=_request_timeout,
|
4944
|
+
_request_auth=_request_auth,
|
4945
|
+
_content_type=_content_type,
|
4946
|
+
_headers=_headers,
|
4947
|
+
_host_index=_host_index,
|
4948
|
+
)
|
2734
4949
|
|
2735
4950
|
def _whoami_serialize(
|
2736
4951
|
self,
|