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.
Files changed (86) hide show
  1. crypticorn/__init__.py +2 -2
  2. crypticorn/auth/client/api/admin_api.py +415 -13
  3. crypticorn/auth/client/api/auth_api.py +2622 -113
  4. crypticorn/auth/client/api/service_api.py +258 -7
  5. crypticorn/auth/client/api/user_api.py +2485 -270
  6. crypticorn/auth/client/api/wallet_api.py +1518 -77
  7. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  8. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  9. crypticorn/auth/client/rest.py +23 -4
  10. crypticorn/auth/main.py +8 -5
  11. crypticorn/client.py +227 -59
  12. crypticorn/common/__init__.py +1 -0
  13. crypticorn/common/metrics.py +18 -0
  14. crypticorn/common/middleware.py +46 -0
  15. crypticorn/common/pagination.py +137 -18
  16. crypticorn/common/router/admin_router.py +12 -2
  17. crypticorn/common/utils.py +2 -1
  18. crypticorn/common/warnings.py +7 -0
  19. crypticorn/hive/client/api/admin_api.py +1234 -51
  20. crypticorn/hive/client/api/data_api.py +517 -13
  21. crypticorn/hive/client/api/models_api.py +1657 -83
  22. crypticorn/hive/client/api/status_api.py +415 -13
  23. crypticorn/hive/client/models/api_error_identifier.py +1 -1
  24. crypticorn/hive/client/rest.py +23 -4
  25. crypticorn/hive/main.py +99 -25
  26. crypticorn/klines/client/api/admin_api.py +1234 -51
  27. crypticorn/klines/client/api/change_in_timeframe_api.py +278 -7
  28. crypticorn/klines/client/api/funding_rates_api.py +324 -7
  29. crypticorn/klines/client/api/ohlcv_data_api.py +399 -7
  30. crypticorn/klines/client/api/status_api.py +415 -13
  31. crypticorn/klines/client/api/symbols_api.py +225 -7
  32. crypticorn/klines/client/api/udf_api.py +1393 -120
  33. crypticorn/klines/client/models/api_error_identifier.py +3 -1
  34. crypticorn/klines/client/rest.py +23 -4
  35. crypticorn/klines/main.py +89 -12
  36. crypticorn/metrics/client/api/admin_api.py +1234 -51
  37. crypticorn/metrics/client/api/exchanges_api.py +1405 -140
  38. crypticorn/metrics/client/api/indicators_api.py +640 -13
  39. crypticorn/metrics/client/api/logs_api.py +305 -7
  40. crypticorn/metrics/client/api/marketcap_api.py +1240 -60
  41. crypticorn/metrics/client/api/markets_api.py +352 -7
  42. crypticorn/metrics/client/api/quote_currencies_api.py +237 -7
  43. crypticorn/metrics/client/api/status_api.py +415 -13
  44. crypticorn/metrics/client/api/tokens_api.py +400 -13
  45. crypticorn/metrics/client/configuration.py +4 -2
  46. crypticorn/metrics/client/rest.py +23 -4
  47. crypticorn/metrics/main.py +113 -19
  48. crypticorn/pay/client/api/admin_api.py +1720 -126
  49. crypticorn/pay/client/api/now_payments_api.py +1013 -42
  50. crypticorn/pay/client/api/payments_api.py +580 -13
  51. crypticorn/pay/client/api/products_api.py +915 -25
  52. crypticorn/pay/client/api/status_api.py +415 -13
  53. crypticorn/pay/client/configuration.py +2 -2
  54. crypticorn/pay/client/models/api_error_identifier.py +7 -7
  55. crypticorn/pay/client/models/scope.py +1 -0
  56. crypticorn/pay/client/rest.py +23 -4
  57. crypticorn/pay/main.py +10 -6
  58. crypticorn/trade/client/__init__.py +2 -1
  59. crypticorn/trade/client/api/__init__.py +0 -1
  60. crypticorn/trade/client/api/admin_api.py +1718 -123
  61. crypticorn/trade/client/api/api_keys_api.py +1596 -103
  62. crypticorn/trade/client/api/bots_api.py +1106 -47
  63. crypticorn/trade/client/api/exchanges_api.py +592 -19
  64. crypticorn/trade/client/api/notifications_api.py +1340 -112
  65. crypticorn/trade/client/api/orders_api.py +240 -7
  66. crypticorn/trade/client/api/status_api.py +415 -13
  67. crypticorn/trade/client/api/strategies_api.py +1170 -69
  68. crypticorn/trade/client/api/trading_actions_api.py +650 -19
  69. crypticorn/trade/client/models/__init__.py +2 -0
  70. crypticorn/trade/client/models/exchange.py +6 -1
  71. crypticorn/trade/client/models/exchange_key_balance.py +111 -0
  72. crypticorn/trade/client/models/futures_balance.py +27 -25
  73. crypticorn/trade/client/models/spot_balance.py +110 -0
  74. crypticorn/trade/client/models/strategy.py +5 -3
  75. crypticorn/trade/client/models/strategy_create.py +6 -4
  76. crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
  77. crypticorn/trade/client/models/strategy_update.py +2 -2
  78. crypticorn/trade/client/rest.py +23 -4
  79. crypticorn/trade/main.py +15 -12
  80. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/METADATA +65 -20
  81. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/RECORD +85 -83
  82. crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
  83. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/WHEEL +0 -0
  84. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/entry_points.txt +0 -0
  85. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/licenses/LICENSE +0 -0
  86. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/top_level.txt +0 -0
@@ -46,6 +46,24 @@ from crypticorn.auth.client.api_client import ApiClient, RequestSerialized
46
46
  from crypticorn.auth.client.api_response import ApiResponse
47
47
  from crypticorn.auth.client.rest import RESTResponseType
48
48
 
49
+ # Import async_to_sync for sync methods
50
+ try:
51
+ from asgiref.sync import async_to_sync
52
+
53
+ _HAS_ASGIREF = True
54
+ except ImportError:
55
+ _HAS_ASGIREF = False
56
+
57
+ def async_to_sync(async_func):
58
+ """Fallback decorator that raises an error if asgiref is not available."""
59
+
60
+ def wrapper(*args, **kwargs):
61
+ raise ImportError(
62
+ "asgiref is required for sync methods. Install with: pip install asgiref"
63
+ )
64
+
65
+ return wrapper
66
+
49
67
 
50
68
  class AuthApi:
51
69
  """NOTE: This class is auto generated by OpenAPI Generator
@@ -54,13 +72,135 @@ class AuthApi:
54
72
  Do not edit the class manually.
55
73
  """
56
74
 
57
- def __init__(self, api_client=None) -> None:
75
+ def __init__(self, api_client=None, is_sync: bool = False) -> None:
58
76
  if api_client is None:
59
77
  api_client = ApiClient.get_default()
60
78
  self.api_client = api_client
79
+ self.is_sync = is_sync
80
+
81
+ @validate_call
82
+ def authorize_user(
83
+ self,
84
+ authorize_user_request: AuthorizeUserRequest,
85
+ _request_timeout: Union[
86
+ None,
87
+ Annotated[StrictFloat, Field(gt=0)],
88
+ Tuple[
89
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
90
+ ],
91
+ ] = None,
92
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
93
+ _content_type: Optional[StrictStr] = None,
94
+ _headers: Optional[Dict[StrictStr, Any]] = None,
95
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
96
+ ) -> AuthorizeUser200Response:
97
+ """Authorize a user
98
+
99
+ This method can work in both sync and async modes based on the is_sync flag.
100
+ """
101
+ if self.is_sync:
102
+ return self._authorize_user_sync(
103
+ authorize_user_request=authorize_user_request,
104
+ _request_timeout=_request_timeout,
105
+ _request_auth=_request_auth,
106
+ _content_type=_content_type,
107
+ _headers=_headers,
108
+ _host_index=_host_index,
109
+ )
110
+
111
+ else:
112
+ return self._authorize_user_async(
113
+ authorize_user_request=authorize_user_request,
114
+ _request_timeout=_request_timeout,
115
+ _request_auth=_request_auth,
116
+ _content_type=_content_type,
117
+ _headers=_headers,
118
+ _host_index=_host_index,
119
+ )
120
+
121
+ @validate_call
122
+ def authorize_user_with_http_info(
123
+ self,
124
+ authorize_user_request: AuthorizeUserRequest,
125
+ _request_timeout: Union[
126
+ None,
127
+ Annotated[StrictFloat, Field(gt=0)],
128
+ Tuple[
129
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
130
+ ],
131
+ ] = None,
132
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
133
+ _content_type: Optional[StrictStr] = None,
134
+ _headers: Optional[Dict[StrictStr, Any]] = None,
135
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
136
+ ) -> ApiResponse[AuthorizeUser200Response]:
137
+ """Authorize a user with HTTP info
138
+
139
+ This method can work in both sync and async modes based on the is_sync flag.
140
+ """
141
+ if self.is_sync:
142
+ return self._authorize_user_sync_with_http_info(
143
+ authorize_user_request=authorize_user_request,
144
+ _request_timeout=_request_timeout,
145
+ _request_auth=_request_auth,
146
+ _content_type=_content_type,
147
+ _headers=_headers,
148
+ _host_index=_host_index,
149
+ )
150
+
151
+ else:
152
+ return self._authorize_user_async_with_http_info(
153
+ authorize_user_request=authorize_user_request,
154
+ _request_timeout=_request_timeout,
155
+ _request_auth=_request_auth,
156
+ _content_type=_content_type,
157
+ _headers=_headers,
158
+ _host_index=_host_index,
159
+ )
160
+
161
+ @validate_call
162
+ def authorize_user_without_preload_content(
163
+ self,
164
+ authorize_user_request: AuthorizeUserRequest,
165
+ _request_timeout: Union[
166
+ None,
167
+ Annotated[StrictFloat, Field(gt=0)],
168
+ Tuple[
169
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
170
+ ],
171
+ ] = None,
172
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
173
+ _content_type: Optional[StrictStr] = None,
174
+ _headers: Optional[Dict[StrictStr, Any]] = None,
175
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
176
+ ) -> RESTResponseType:
177
+ """Authorize a user without preloading content
178
+
179
+ This method can work in both sync and async modes based on the is_sync flag.
180
+ """
181
+ if self.is_sync:
182
+ return self._authorize_user_sync_without_preload_content(
183
+ authorize_user_request=authorize_user_request,
184
+ _request_timeout=_request_timeout,
185
+ _request_auth=_request_auth,
186
+ _content_type=_content_type,
187
+ _headers=_headers,
188
+ _host_index=_host_index,
189
+ )
190
+
191
+ else:
192
+ return self._authorize_user_async_without_preload_content(
193
+ authorize_user_request=authorize_user_request,
194
+ _request_timeout=_request_timeout,
195
+ _request_auth=_request_auth,
196
+ _content_type=_content_type,
197
+ _headers=_headers,
198
+ _host_index=_host_index,
199
+ )
61
200
 
201
+ # Private async implementation methods
62
202
  @validate_call
63
- async def authorize_user(
203
+ async def _authorize_user_async(
64
204
  self,
65
205
  authorize_user_request: AuthorizeUserRequest,
66
206
  _request_timeout: Union[
@@ -124,7 +264,7 @@ class AuthApi:
124
264
  ).data
125
265
 
126
266
  @validate_call
127
- async def authorize_user_with_http_info(
267
+ async def _authorize_user_async_with_http_info(
128
268
  self,
129
269
  authorize_user_request: AuthorizeUserRequest,
130
270
  _request_timeout: Union[
@@ -183,12 +323,11 @@ class AuthApi:
183
323
  )
184
324
  await response_data.read()
185
325
  return self.api_client.response_deserialize(
186
- response_data=response_data,
187
- response_types_map=_response_types_map,
326
+ response_data=response_data, response_types_map=_response_types_map
188
327
  )
189
328
 
190
329
  @validate_call
191
- async def authorize_user_without_preload_content(
330
+ async def _authorize_user_async_without_preload_content(
192
331
  self,
193
332
  authorize_user_request: AuthorizeUserRequest,
194
333
  _request_timeout: Union[
@@ -245,7 +384,86 @@ class AuthApi:
245
384
  response_data = await self.api_client.call_api(
246
385
  *_param, _request_timeout=_request_timeout
247
386
  )
248
- return response_data.response
387
+ return response_data
388
+
389
+ # Private sync implementation methods
390
+ @validate_call
391
+ def _authorize_user_sync(
392
+ self,
393
+ authorize_user_request: AuthorizeUserRequest,
394
+ _request_timeout: Union[
395
+ None,
396
+ Annotated[StrictFloat, Field(gt=0)],
397
+ Tuple[
398
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
399
+ ],
400
+ ] = None,
401
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
402
+ _content_type: Optional[StrictStr] = None,
403
+ _headers: Optional[Dict[StrictStr, Any]] = None,
404
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
405
+ ) -> AuthorizeUser200Response:
406
+ """Synchronous version of authorize_user"""
407
+ return async_to_sync(self._authorize_user_async)(
408
+ authorize_user_request=authorize_user_request,
409
+ _request_timeout=_request_timeout,
410
+ _request_auth=_request_auth,
411
+ _content_type=_content_type,
412
+ _headers=_headers,
413
+ _host_index=_host_index,
414
+ )
415
+
416
+ @validate_call
417
+ def _authorize_user_sync_with_http_info(
418
+ self,
419
+ authorize_user_request: AuthorizeUserRequest,
420
+ _request_timeout: Union[
421
+ None,
422
+ Annotated[StrictFloat, Field(gt=0)],
423
+ Tuple[
424
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
425
+ ],
426
+ ] = None,
427
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
428
+ _content_type: Optional[StrictStr] = None,
429
+ _headers: Optional[Dict[StrictStr, Any]] = None,
430
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
431
+ ) -> ApiResponse[AuthorizeUser200Response]:
432
+ """Synchronous version of authorize_user_with_http_info"""
433
+ return async_to_sync(self._authorize_user_async_with_http_info)(
434
+ authorize_user_request=authorize_user_request,
435
+ _request_timeout=_request_timeout,
436
+ _request_auth=_request_auth,
437
+ _content_type=_content_type,
438
+ _headers=_headers,
439
+ _host_index=_host_index,
440
+ )
441
+
442
+ @validate_call
443
+ def _authorize_user_sync_without_preload_content(
444
+ self,
445
+ authorize_user_request: AuthorizeUserRequest,
446
+ _request_timeout: Union[
447
+ None,
448
+ Annotated[StrictFloat, Field(gt=0)],
449
+ Tuple[
450
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
451
+ ],
452
+ ] = None,
453
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
454
+ _content_type: Optional[StrictStr] = None,
455
+ _headers: Optional[Dict[StrictStr, Any]] = None,
456
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
457
+ ) -> RESTResponseType:
458
+ """Synchronous version of authorize_user_without_preload_content"""
459
+ return async_to_sync(self._authorize_user_async_without_preload_content)(
460
+ authorize_user_request=authorize_user_request,
461
+ _request_timeout=_request_timeout,
462
+ _request_auth=_request_auth,
463
+ _content_type=_content_type,
464
+ _headers=_headers,
465
+ _host_index=_host_index,
466
+ )
249
467
 
250
468
  def _authorize_user_serialize(
251
469
  self,
@@ -312,7 +530,128 @@ class AuthApi:
312
530
  )
313
531
 
314
532
  @validate_call
315
- async def create_api_key(
533
+ def create_api_key(
534
+ self,
535
+ create_api_key_request: CreateApiKeyRequest,
536
+ _request_timeout: Union[
537
+ None,
538
+ Annotated[StrictFloat, Field(gt=0)],
539
+ Tuple[
540
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
541
+ ],
542
+ ] = None,
543
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
544
+ _content_type: Optional[StrictStr] = None,
545
+ _headers: Optional[Dict[StrictStr, Any]] = None,
546
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
547
+ ) -> CreateApiKey200Response:
548
+ """Create API Key
549
+
550
+ This method can work in both sync and async modes based on the is_sync flag.
551
+ """
552
+ if self.is_sync:
553
+ return self._create_api_key_sync(
554
+ create_api_key_request=create_api_key_request,
555
+ _request_timeout=_request_timeout,
556
+ _request_auth=_request_auth,
557
+ _content_type=_content_type,
558
+ _headers=_headers,
559
+ _host_index=_host_index,
560
+ )
561
+
562
+ else:
563
+ return self._create_api_key_async(
564
+ create_api_key_request=create_api_key_request,
565
+ _request_timeout=_request_timeout,
566
+ _request_auth=_request_auth,
567
+ _content_type=_content_type,
568
+ _headers=_headers,
569
+ _host_index=_host_index,
570
+ )
571
+
572
+ @validate_call
573
+ def create_api_key_with_http_info(
574
+ self,
575
+ create_api_key_request: CreateApiKeyRequest,
576
+ _request_timeout: Union[
577
+ None,
578
+ Annotated[StrictFloat, Field(gt=0)],
579
+ Tuple[
580
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
581
+ ],
582
+ ] = None,
583
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
584
+ _content_type: Optional[StrictStr] = None,
585
+ _headers: Optional[Dict[StrictStr, Any]] = None,
586
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
587
+ ) -> ApiResponse[CreateApiKey200Response]:
588
+ """Create API Key with HTTP info
589
+
590
+ This method can work in both sync and async modes based on the is_sync flag.
591
+ """
592
+ if self.is_sync:
593
+ return self._create_api_key_sync_with_http_info(
594
+ create_api_key_request=create_api_key_request,
595
+ _request_timeout=_request_timeout,
596
+ _request_auth=_request_auth,
597
+ _content_type=_content_type,
598
+ _headers=_headers,
599
+ _host_index=_host_index,
600
+ )
601
+
602
+ else:
603
+ return self._create_api_key_async_with_http_info(
604
+ create_api_key_request=create_api_key_request,
605
+ _request_timeout=_request_timeout,
606
+ _request_auth=_request_auth,
607
+ _content_type=_content_type,
608
+ _headers=_headers,
609
+ _host_index=_host_index,
610
+ )
611
+
612
+ @validate_call
613
+ def create_api_key_without_preload_content(
614
+ self,
615
+ create_api_key_request: CreateApiKeyRequest,
616
+ _request_timeout: Union[
617
+ None,
618
+ Annotated[StrictFloat, Field(gt=0)],
619
+ Tuple[
620
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
621
+ ],
622
+ ] = None,
623
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
624
+ _content_type: Optional[StrictStr] = None,
625
+ _headers: Optional[Dict[StrictStr, Any]] = None,
626
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
627
+ ) -> RESTResponseType:
628
+ """Create API Key without preloading content
629
+
630
+ This method can work in both sync and async modes based on the is_sync flag.
631
+ """
632
+ if self.is_sync:
633
+ return self._create_api_key_sync_without_preload_content(
634
+ create_api_key_request=create_api_key_request,
635
+ _request_timeout=_request_timeout,
636
+ _request_auth=_request_auth,
637
+ _content_type=_content_type,
638
+ _headers=_headers,
639
+ _host_index=_host_index,
640
+ )
641
+
642
+ else:
643
+ return self._create_api_key_async_without_preload_content(
644
+ create_api_key_request=create_api_key_request,
645
+ _request_timeout=_request_timeout,
646
+ _request_auth=_request_auth,
647
+ _content_type=_content_type,
648
+ _headers=_headers,
649
+ _host_index=_host_index,
650
+ )
651
+
652
+ # Private async implementation methods
653
+ @validate_call
654
+ async def _create_api_key_async(
316
655
  self,
317
656
  create_api_key_request: CreateApiKeyRequest,
318
657
  _request_timeout: Union[
@@ -376,7 +715,7 @@ class AuthApi:
376
715
  ).data
377
716
 
378
717
  @validate_call
379
- async def create_api_key_with_http_info(
718
+ async def _create_api_key_async_with_http_info(
380
719
  self,
381
720
  create_api_key_request: CreateApiKeyRequest,
382
721
  _request_timeout: Union[
@@ -435,12 +774,11 @@ class AuthApi:
435
774
  )
436
775
  await response_data.read()
437
776
  return self.api_client.response_deserialize(
438
- response_data=response_data,
439
- response_types_map=_response_types_map,
777
+ response_data=response_data, response_types_map=_response_types_map
440
778
  )
441
779
 
442
780
  @validate_call
443
- async def create_api_key_without_preload_content(
781
+ async def _create_api_key_async_without_preload_content(
444
782
  self,
445
783
  create_api_key_request: CreateApiKeyRequest,
446
784
  _request_timeout: Union[
@@ -497,26 +835,105 @@ class AuthApi:
497
835
  response_data = await self.api_client.call_api(
498
836
  *_param, _request_timeout=_request_timeout
499
837
  )
500
- return response_data.response
838
+ return response_data
501
839
 
502
- def _create_api_key_serialize(
840
+ # Private sync implementation methods
841
+ @validate_call
842
+ def _create_api_key_sync(
503
843
  self,
504
- create_api_key_request,
505
- _request_auth,
506
- _content_type,
507
- _headers,
508
- _host_index,
509
- ) -> RequestSerialized:
510
-
511
- _host = None
844
+ create_api_key_request: CreateApiKeyRequest,
845
+ _request_timeout: Union[
846
+ None,
847
+ Annotated[StrictFloat, Field(gt=0)],
848
+ Tuple[
849
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
850
+ ],
851
+ ] = None,
852
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
853
+ _content_type: Optional[StrictStr] = None,
854
+ _headers: Optional[Dict[StrictStr, Any]] = None,
855
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
856
+ ) -> CreateApiKey200Response:
857
+ """Synchronous version of create_api_key"""
858
+ return async_to_sync(self._create_api_key_async)(
859
+ create_api_key_request=create_api_key_request,
860
+ _request_timeout=_request_timeout,
861
+ _request_auth=_request_auth,
862
+ _content_type=_content_type,
863
+ _headers=_headers,
864
+ _host_index=_host_index,
865
+ )
512
866
 
513
- _collection_formats: Dict[str, str] = {}
867
+ @validate_call
868
+ def _create_api_key_sync_with_http_info(
869
+ self,
870
+ create_api_key_request: CreateApiKeyRequest,
871
+ _request_timeout: Union[
872
+ None,
873
+ Annotated[StrictFloat, Field(gt=0)],
874
+ Tuple[
875
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
876
+ ],
877
+ ] = None,
878
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
879
+ _content_type: Optional[StrictStr] = None,
880
+ _headers: Optional[Dict[StrictStr, Any]] = None,
881
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
882
+ ) -> ApiResponse[CreateApiKey200Response]:
883
+ """Synchronous version of create_api_key_with_http_info"""
884
+ return async_to_sync(self._create_api_key_async_with_http_info)(
885
+ create_api_key_request=create_api_key_request,
886
+ _request_timeout=_request_timeout,
887
+ _request_auth=_request_auth,
888
+ _content_type=_content_type,
889
+ _headers=_headers,
890
+ _host_index=_host_index,
891
+ )
514
892
 
515
- _path_params: Dict[str, str] = {}
516
- _query_params: List[Tuple[str, str]] = []
517
- _header_params: Dict[str, Optional[str]] = _headers or {}
518
- _form_params: List[Tuple[str, str]] = []
519
- _files: Dict[
893
+ @validate_call
894
+ def _create_api_key_sync_without_preload_content(
895
+ self,
896
+ create_api_key_request: CreateApiKeyRequest,
897
+ _request_timeout: Union[
898
+ None,
899
+ Annotated[StrictFloat, Field(gt=0)],
900
+ Tuple[
901
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
902
+ ],
903
+ ] = None,
904
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
905
+ _content_type: Optional[StrictStr] = None,
906
+ _headers: Optional[Dict[StrictStr, Any]] = None,
907
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
908
+ ) -> RESTResponseType:
909
+ """Synchronous version of create_api_key_without_preload_content"""
910
+ return async_to_sync(self._create_api_key_async_without_preload_content)(
911
+ create_api_key_request=create_api_key_request,
912
+ _request_timeout=_request_timeout,
913
+ _request_auth=_request_auth,
914
+ _content_type=_content_type,
915
+ _headers=_headers,
916
+ _host_index=_host_index,
917
+ )
918
+
919
+ def _create_api_key_serialize(
920
+ self,
921
+ create_api_key_request,
922
+ _request_auth,
923
+ _content_type,
924
+ _headers,
925
+ _host_index,
926
+ ) -> RequestSerialized:
927
+
928
+ _host = None
929
+
930
+ _collection_formats: Dict[str, str] = {}
931
+
932
+ _path_params: Dict[str, str] = {}
933
+ _query_params: List[Tuple[str, str]] = []
934
+ _header_params: Dict[str, Optional[str]] = _headers or {}
935
+ _form_params: List[Tuple[str, str]] = []
936
+ _files: Dict[
520
937
  str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
521
938
  ] = {}
522
939
  _body_params: Optional[bytes] = None
@@ -564,7 +981,128 @@ class AuthApi:
564
981
  )
565
982
 
566
983
  @validate_call
567
- async def delete_api_key(
984
+ def delete_api_key(
985
+ self,
986
+ id: StrictStr,
987
+ _request_timeout: Union[
988
+ None,
989
+ Annotated[StrictFloat, Field(gt=0)],
990
+ Tuple[
991
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
992
+ ],
993
+ ] = None,
994
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
995
+ _content_type: Optional[StrictStr] = None,
996
+ _headers: Optional[Dict[StrictStr, Any]] = None,
997
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
998
+ ) -> object:
999
+ """Delete API Key
1000
+
1001
+ This method can work in both sync and async modes based on the is_sync flag.
1002
+ """
1003
+ if self.is_sync:
1004
+ return self._delete_api_key_sync(
1005
+ id=id,
1006
+ _request_timeout=_request_timeout,
1007
+ _request_auth=_request_auth,
1008
+ _content_type=_content_type,
1009
+ _headers=_headers,
1010
+ _host_index=_host_index,
1011
+ )
1012
+
1013
+ else:
1014
+ return self._delete_api_key_async(
1015
+ id=id,
1016
+ _request_timeout=_request_timeout,
1017
+ _request_auth=_request_auth,
1018
+ _content_type=_content_type,
1019
+ _headers=_headers,
1020
+ _host_index=_host_index,
1021
+ )
1022
+
1023
+ @validate_call
1024
+ def delete_api_key_with_http_info(
1025
+ self,
1026
+ id: StrictStr,
1027
+ _request_timeout: Union[
1028
+ None,
1029
+ Annotated[StrictFloat, Field(gt=0)],
1030
+ Tuple[
1031
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1032
+ ],
1033
+ ] = None,
1034
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1035
+ _content_type: Optional[StrictStr] = None,
1036
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1037
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1038
+ ) -> ApiResponse[object]:
1039
+ """Delete API Key with HTTP info
1040
+
1041
+ This method can work in both sync and async modes based on the is_sync flag.
1042
+ """
1043
+ if self.is_sync:
1044
+ return self._delete_api_key_sync_with_http_info(
1045
+ id=id,
1046
+ _request_timeout=_request_timeout,
1047
+ _request_auth=_request_auth,
1048
+ _content_type=_content_type,
1049
+ _headers=_headers,
1050
+ _host_index=_host_index,
1051
+ )
1052
+
1053
+ else:
1054
+ return self._delete_api_key_async_with_http_info(
1055
+ id=id,
1056
+ _request_timeout=_request_timeout,
1057
+ _request_auth=_request_auth,
1058
+ _content_type=_content_type,
1059
+ _headers=_headers,
1060
+ _host_index=_host_index,
1061
+ )
1062
+
1063
+ @validate_call
1064
+ def delete_api_key_without_preload_content(
1065
+ self,
1066
+ id: StrictStr,
1067
+ _request_timeout: Union[
1068
+ None,
1069
+ Annotated[StrictFloat, Field(gt=0)],
1070
+ Tuple[
1071
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1072
+ ],
1073
+ ] = None,
1074
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1075
+ _content_type: Optional[StrictStr] = None,
1076
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1077
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1078
+ ) -> RESTResponseType:
1079
+ """Delete API Key without preloading content
1080
+
1081
+ This method can work in both sync and async modes based on the is_sync flag.
1082
+ """
1083
+ if self.is_sync:
1084
+ return self._delete_api_key_sync_without_preload_content(
1085
+ id=id,
1086
+ _request_timeout=_request_timeout,
1087
+ _request_auth=_request_auth,
1088
+ _content_type=_content_type,
1089
+ _headers=_headers,
1090
+ _host_index=_host_index,
1091
+ )
1092
+
1093
+ else:
1094
+ return self._delete_api_key_async_without_preload_content(
1095
+ id=id,
1096
+ _request_timeout=_request_timeout,
1097
+ _request_auth=_request_auth,
1098
+ _content_type=_content_type,
1099
+ _headers=_headers,
1100
+ _host_index=_host_index,
1101
+ )
1102
+
1103
+ # Private async implementation methods
1104
+ @validate_call
1105
+ async def _delete_api_key_async(
568
1106
  self,
569
1107
  id: StrictStr,
570
1108
  _request_timeout: Union[
@@ -628,7 +1166,7 @@ class AuthApi:
628
1166
  ).data
629
1167
 
630
1168
  @validate_call
631
- async def delete_api_key_with_http_info(
1169
+ async def _delete_api_key_async_with_http_info(
632
1170
  self,
633
1171
  id: StrictStr,
634
1172
  _request_timeout: Union[
@@ -687,12 +1225,11 @@ class AuthApi:
687
1225
  )
688
1226
  await response_data.read()
689
1227
  return self.api_client.response_deserialize(
690
- response_data=response_data,
691
- response_types_map=_response_types_map,
1228
+ response_data=response_data, response_types_map=_response_types_map
692
1229
  )
693
1230
 
694
1231
  @validate_call
695
- async def delete_api_key_without_preload_content(
1232
+ async def _delete_api_key_async_without_preload_content(
696
1233
  self,
697
1234
  id: StrictStr,
698
1235
  _request_timeout: Union[
@@ -749,7 +1286,86 @@ class AuthApi:
749
1286
  response_data = await self.api_client.call_api(
750
1287
  *_param, _request_timeout=_request_timeout
751
1288
  )
752
- return response_data.response
1289
+ return response_data
1290
+
1291
+ # Private sync implementation methods
1292
+ @validate_call
1293
+ def _delete_api_key_sync(
1294
+ self,
1295
+ id: StrictStr,
1296
+ _request_timeout: Union[
1297
+ None,
1298
+ Annotated[StrictFloat, Field(gt=0)],
1299
+ Tuple[
1300
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1301
+ ],
1302
+ ] = None,
1303
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1304
+ _content_type: Optional[StrictStr] = None,
1305
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1306
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1307
+ ) -> object:
1308
+ """Synchronous version of delete_api_key"""
1309
+ return async_to_sync(self._delete_api_key_async)(
1310
+ id=id,
1311
+ _request_timeout=_request_timeout,
1312
+ _request_auth=_request_auth,
1313
+ _content_type=_content_type,
1314
+ _headers=_headers,
1315
+ _host_index=_host_index,
1316
+ )
1317
+
1318
+ @validate_call
1319
+ def _delete_api_key_sync_with_http_info(
1320
+ self,
1321
+ id: StrictStr,
1322
+ _request_timeout: Union[
1323
+ None,
1324
+ Annotated[StrictFloat, Field(gt=0)],
1325
+ Tuple[
1326
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1327
+ ],
1328
+ ] = None,
1329
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1330
+ _content_type: Optional[StrictStr] = None,
1331
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1332
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1333
+ ) -> ApiResponse[object]:
1334
+ """Synchronous version of delete_api_key_with_http_info"""
1335
+ return async_to_sync(self._delete_api_key_async_with_http_info)(
1336
+ id=id,
1337
+ _request_timeout=_request_timeout,
1338
+ _request_auth=_request_auth,
1339
+ _content_type=_content_type,
1340
+ _headers=_headers,
1341
+ _host_index=_host_index,
1342
+ )
1343
+
1344
+ @validate_call
1345
+ def _delete_api_key_sync_without_preload_content(
1346
+ self,
1347
+ id: StrictStr,
1348
+ _request_timeout: Union[
1349
+ None,
1350
+ Annotated[StrictFloat, Field(gt=0)],
1351
+ Tuple[
1352
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1353
+ ],
1354
+ ] = None,
1355
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1356
+ _content_type: Optional[StrictStr] = None,
1357
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1358
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1359
+ ) -> RESTResponseType:
1360
+ """Synchronous version of delete_api_key_without_preload_content"""
1361
+ return async_to_sync(self._delete_api_key_async_without_preload_content)(
1362
+ id=id,
1363
+ _request_timeout=_request_timeout,
1364
+ _request_auth=_request_auth,
1365
+ _content_type=_content_type,
1366
+ _headers=_headers,
1367
+ _host_index=_host_index,
1368
+ )
753
1369
 
754
1370
  def _delete_api_key_serialize(
755
1371
  self,
@@ -808,7 +1424,119 @@ class AuthApi:
808
1424
  )
809
1425
 
810
1426
  @validate_call
811
- async def get_api_keys(
1427
+ def get_api_keys(
1428
+ self,
1429
+ _request_timeout: Union[
1430
+ None,
1431
+ Annotated[StrictFloat, Field(gt=0)],
1432
+ Tuple[
1433
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1434
+ ],
1435
+ ] = None,
1436
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1437
+ _content_type: Optional[StrictStr] = None,
1438
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1439
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1440
+ ) -> List[GetApiKeys200ResponseInner]:
1441
+ """Get API Keys
1442
+
1443
+ This method can work in both sync and async modes based on the is_sync flag.
1444
+ """
1445
+ if self.is_sync:
1446
+ return self._get_api_keys_sync(
1447
+ _request_timeout=_request_timeout,
1448
+ _request_auth=_request_auth,
1449
+ _content_type=_content_type,
1450
+ _headers=_headers,
1451
+ _host_index=_host_index,
1452
+ )
1453
+
1454
+ else:
1455
+ return self._get_api_keys_async(
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
+ @validate_call
1464
+ def get_api_keys_with_http_info(
1465
+ self,
1466
+ _request_timeout: Union[
1467
+ None,
1468
+ Annotated[StrictFloat, Field(gt=0)],
1469
+ Tuple[
1470
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1471
+ ],
1472
+ ] = None,
1473
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1474
+ _content_type: Optional[StrictStr] = None,
1475
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1476
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1477
+ ) -> ApiResponse[List[GetApiKeys200ResponseInner]]:
1478
+ """Get API Keys with HTTP info
1479
+
1480
+ This method can work in both sync and async modes based on the is_sync flag.
1481
+ """
1482
+ if self.is_sync:
1483
+ return self._get_api_keys_sync_with_http_info(
1484
+ _request_timeout=_request_timeout,
1485
+ _request_auth=_request_auth,
1486
+ _content_type=_content_type,
1487
+ _headers=_headers,
1488
+ _host_index=_host_index,
1489
+ )
1490
+
1491
+ else:
1492
+ return self._get_api_keys_async_with_http_info(
1493
+ _request_timeout=_request_timeout,
1494
+ _request_auth=_request_auth,
1495
+ _content_type=_content_type,
1496
+ _headers=_headers,
1497
+ _host_index=_host_index,
1498
+ )
1499
+
1500
+ @validate_call
1501
+ def get_api_keys_without_preload_content(
1502
+ self,
1503
+ _request_timeout: Union[
1504
+ None,
1505
+ Annotated[StrictFloat, Field(gt=0)],
1506
+ Tuple[
1507
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1508
+ ],
1509
+ ] = None,
1510
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1511
+ _content_type: Optional[StrictStr] = None,
1512
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1513
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1514
+ ) -> RESTResponseType:
1515
+ """Get API Keys without preloading content
1516
+
1517
+ This method can work in both sync and async modes based on the is_sync flag.
1518
+ """
1519
+ if self.is_sync:
1520
+ return self._get_api_keys_sync_without_preload_content(
1521
+ _request_timeout=_request_timeout,
1522
+ _request_auth=_request_auth,
1523
+ _content_type=_content_type,
1524
+ _headers=_headers,
1525
+ _host_index=_host_index,
1526
+ )
1527
+
1528
+ else:
1529
+ return self._get_api_keys_async_without_preload_content(
1530
+ _request_timeout=_request_timeout,
1531
+ _request_auth=_request_auth,
1532
+ _content_type=_content_type,
1533
+ _headers=_headers,
1534
+ _host_index=_host_index,
1535
+ )
1536
+
1537
+ # Private async implementation methods
1538
+ @validate_call
1539
+ async def _get_api_keys_async(
812
1540
  self,
813
1541
  _request_timeout: Union[
814
1542
  None,
@@ -868,7 +1596,7 @@ class AuthApi:
868
1596
  ).data
869
1597
 
870
1598
  @validate_call
871
- async def get_api_keys_with_http_info(
1599
+ async def _get_api_keys_async_with_http_info(
872
1600
  self,
873
1601
  _request_timeout: Union[
874
1602
  None,
@@ -923,12 +1651,11 @@ class AuthApi:
923
1651
  )
924
1652
  await response_data.read()
925
1653
  return self.api_client.response_deserialize(
926
- response_data=response_data,
927
- response_types_map=_response_types_map,
1654
+ response_data=response_data, response_types_map=_response_types_map
928
1655
  )
929
1656
 
930
1657
  @validate_call
931
- async def get_api_keys_without_preload_content(
1658
+ async def _get_api_keys_async_without_preload_content(
932
1659
  self,
933
1660
  _request_timeout: Union[
934
1661
  None,
@@ -981,17 +1708,90 @@ class AuthApi:
981
1708
  response_data = await self.api_client.call_api(
982
1709
  *_param, _request_timeout=_request_timeout
983
1710
  )
984
- return response_data.response
1711
+ return response_data
985
1712
 
986
- def _get_api_keys_serialize(
1713
+ # Private sync implementation methods
1714
+ @validate_call
1715
+ def _get_api_keys_sync(
987
1716
  self,
988
- _request_auth,
989
- _content_type,
990
- _headers,
991
- _host_index,
992
- ) -> RequestSerialized:
1717
+ _request_timeout: Union[
1718
+ None,
1719
+ Annotated[StrictFloat, Field(gt=0)],
1720
+ Tuple[
1721
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1722
+ ],
1723
+ ] = None,
1724
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1725
+ _content_type: Optional[StrictStr] = None,
1726
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1727
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1728
+ ) -> List[GetApiKeys200ResponseInner]:
1729
+ """Synchronous version of get_api_keys"""
1730
+ return async_to_sync(self._get_api_keys_async)(
1731
+ _request_timeout=_request_timeout,
1732
+ _request_auth=_request_auth,
1733
+ _content_type=_content_type,
1734
+ _headers=_headers,
1735
+ _host_index=_host_index,
1736
+ )
993
1737
 
994
- _host = None
1738
+ @validate_call
1739
+ def _get_api_keys_sync_with_http_info(
1740
+ self,
1741
+ _request_timeout: Union[
1742
+ None,
1743
+ Annotated[StrictFloat, Field(gt=0)],
1744
+ Tuple[
1745
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1746
+ ],
1747
+ ] = None,
1748
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1749
+ _content_type: Optional[StrictStr] = None,
1750
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1751
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1752
+ ) -> ApiResponse[List[GetApiKeys200ResponseInner]]:
1753
+ """Synchronous version of get_api_keys_with_http_info"""
1754
+ return async_to_sync(self._get_api_keys_async_with_http_info)(
1755
+ _request_timeout=_request_timeout,
1756
+ _request_auth=_request_auth,
1757
+ _content_type=_content_type,
1758
+ _headers=_headers,
1759
+ _host_index=_host_index,
1760
+ )
1761
+
1762
+ @validate_call
1763
+ def _get_api_keys_sync_without_preload_content(
1764
+ self,
1765
+ _request_timeout: Union[
1766
+ None,
1767
+ Annotated[StrictFloat, Field(gt=0)],
1768
+ Tuple[
1769
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1770
+ ],
1771
+ ] = None,
1772
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1773
+ _content_type: Optional[StrictStr] = None,
1774
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1775
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1776
+ ) -> RESTResponseType:
1777
+ """Synchronous version of get_api_keys_without_preload_content"""
1778
+ return async_to_sync(self._get_api_keys_async_without_preload_content)(
1779
+ _request_timeout=_request_timeout,
1780
+ _request_auth=_request_auth,
1781
+ _content_type=_content_type,
1782
+ _headers=_headers,
1783
+ _host_index=_host_index,
1784
+ )
1785
+
1786
+ def _get_api_keys_serialize(
1787
+ self,
1788
+ _request_auth,
1789
+ _content_type,
1790
+ _headers,
1791
+ _host_index,
1792
+ ) -> RequestSerialized:
1793
+
1794
+ _host = None
995
1795
 
996
1796
  _collection_formats: Dict[str, str] = {}
997
1797
 
@@ -1035,7 +1835,128 @@ class AuthApi:
1035
1835
  )
1036
1836
 
1037
1837
  @validate_call
1038
- async def get_google_auth_url(
1838
+ def get_google_auth_url(
1839
+ self,
1840
+ origin: StrictStr,
1841
+ _request_timeout: Union[
1842
+ None,
1843
+ Annotated[StrictFloat, Field(gt=0)],
1844
+ Tuple[
1845
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1846
+ ],
1847
+ ] = None,
1848
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1849
+ _content_type: Optional[StrictStr] = None,
1850
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1851
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1852
+ ) -> str:
1853
+ """Get Google Auth URL
1854
+
1855
+ This method can work in both sync and async modes based on the is_sync flag.
1856
+ """
1857
+ if self.is_sync:
1858
+ return self._get_google_auth_url_sync(
1859
+ origin=origin,
1860
+ _request_timeout=_request_timeout,
1861
+ _request_auth=_request_auth,
1862
+ _content_type=_content_type,
1863
+ _headers=_headers,
1864
+ _host_index=_host_index,
1865
+ )
1866
+
1867
+ else:
1868
+ return self._get_google_auth_url_async(
1869
+ origin=origin,
1870
+ _request_timeout=_request_timeout,
1871
+ _request_auth=_request_auth,
1872
+ _content_type=_content_type,
1873
+ _headers=_headers,
1874
+ _host_index=_host_index,
1875
+ )
1876
+
1877
+ @validate_call
1878
+ def get_google_auth_url_with_http_info(
1879
+ self,
1880
+ origin: StrictStr,
1881
+ _request_timeout: Union[
1882
+ None,
1883
+ Annotated[StrictFloat, Field(gt=0)],
1884
+ Tuple[
1885
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1886
+ ],
1887
+ ] = None,
1888
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1889
+ _content_type: Optional[StrictStr] = None,
1890
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1891
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1892
+ ) -> ApiResponse[str]:
1893
+ """Get Google Auth URL with HTTP info
1894
+
1895
+ This method can work in both sync and async modes based on the is_sync flag.
1896
+ """
1897
+ if self.is_sync:
1898
+ return self._get_google_auth_url_sync_with_http_info(
1899
+ origin=origin,
1900
+ _request_timeout=_request_timeout,
1901
+ _request_auth=_request_auth,
1902
+ _content_type=_content_type,
1903
+ _headers=_headers,
1904
+ _host_index=_host_index,
1905
+ )
1906
+
1907
+ else:
1908
+ return self._get_google_auth_url_async_with_http_info(
1909
+ origin=origin,
1910
+ _request_timeout=_request_timeout,
1911
+ _request_auth=_request_auth,
1912
+ _content_type=_content_type,
1913
+ _headers=_headers,
1914
+ _host_index=_host_index,
1915
+ )
1916
+
1917
+ @validate_call
1918
+ def get_google_auth_url_without_preload_content(
1919
+ self,
1920
+ origin: StrictStr,
1921
+ _request_timeout: Union[
1922
+ None,
1923
+ Annotated[StrictFloat, Field(gt=0)],
1924
+ Tuple[
1925
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1926
+ ],
1927
+ ] = None,
1928
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1929
+ _content_type: Optional[StrictStr] = None,
1930
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1931
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1932
+ ) -> RESTResponseType:
1933
+ """Get Google Auth URL without preloading content
1934
+
1935
+ This method can work in both sync and async modes based on the is_sync flag.
1936
+ """
1937
+ if self.is_sync:
1938
+ return self._get_google_auth_url_sync_without_preload_content(
1939
+ origin=origin,
1940
+ _request_timeout=_request_timeout,
1941
+ _request_auth=_request_auth,
1942
+ _content_type=_content_type,
1943
+ _headers=_headers,
1944
+ _host_index=_host_index,
1945
+ )
1946
+
1947
+ else:
1948
+ return self._get_google_auth_url_async_without_preload_content(
1949
+ origin=origin,
1950
+ _request_timeout=_request_timeout,
1951
+ _request_auth=_request_auth,
1952
+ _content_type=_content_type,
1953
+ _headers=_headers,
1954
+ _host_index=_host_index,
1955
+ )
1956
+
1957
+ # Private async implementation methods
1958
+ @validate_call
1959
+ async def _get_google_auth_url_async(
1039
1960
  self,
1040
1961
  origin: StrictStr,
1041
1962
  _request_timeout: Union[
@@ -1099,7 +2020,7 @@ class AuthApi:
1099
2020
  ).data
1100
2021
 
1101
2022
  @validate_call
1102
- async def get_google_auth_url_with_http_info(
2023
+ async def _get_google_auth_url_async_with_http_info(
1103
2024
  self,
1104
2025
  origin: StrictStr,
1105
2026
  _request_timeout: Union[
@@ -1158,12 +2079,11 @@ class AuthApi:
1158
2079
  )
1159
2080
  await response_data.read()
1160
2081
  return self.api_client.response_deserialize(
1161
- response_data=response_data,
1162
- response_types_map=_response_types_map,
2082
+ response_data=response_data, response_types_map=_response_types_map
1163
2083
  )
1164
2084
 
1165
2085
  @validate_call
1166
- async def get_google_auth_url_without_preload_content(
2086
+ async def _get_google_auth_url_async_without_preload_content(
1167
2087
  self,
1168
2088
  origin: StrictStr,
1169
2089
  _request_timeout: Union[
@@ -1220,7 +2140,86 @@ class AuthApi:
1220
2140
  response_data = await self.api_client.call_api(
1221
2141
  *_param, _request_timeout=_request_timeout
1222
2142
  )
1223
- return response_data.response
2143
+ return response_data
2144
+
2145
+ # Private sync implementation methods
2146
+ @validate_call
2147
+ def _get_google_auth_url_sync(
2148
+ self,
2149
+ origin: StrictStr,
2150
+ _request_timeout: Union[
2151
+ None,
2152
+ Annotated[StrictFloat, Field(gt=0)],
2153
+ Tuple[
2154
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2155
+ ],
2156
+ ] = None,
2157
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2158
+ _content_type: Optional[StrictStr] = None,
2159
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2160
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2161
+ ) -> str:
2162
+ """Synchronous version of get_google_auth_url"""
2163
+ return async_to_sync(self._get_google_auth_url_async)(
2164
+ origin=origin,
2165
+ _request_timeout=_request_timeout,
2166
+ _request_auth=_request_auth,
2167
+ _content_type=_content_type,
2168
+ _headers=_headers,
2169
+ _host_index=_host_index,
2170
+ )
2171
+
2172
+ @validate_call
2173
+ def _get_google_auth_url_sync_with_http_info(
2174
+ self,
2175
+ origin: StrictStr,
2176
+ _request_timeout: Union[
2177
+ None,
2178
+ Annotated[StrictFloat, Field(gt=0)],
2179
+ Tuple[
2180
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2181
+ ],
2182
+ ] = None,
2183
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2184
+ _content_type: Optional[StrictStr] = None,
2185
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2186
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2187
+ ) -> ApiResponse[str]:
2188
+ """Synchronous version of get_google_auth_url_with_http_info"""
2189
+ return async_to_sync(self._get_google_auth_url_async_with_http_info)(
2190
+ origin=origin,
2191
+ _request_timeout=_request_timeout,
2192
+ _request_auth=_request_auth,
2193
+ _content_type=_content_type,
2194
+ _headers=_headers,
2195
+ _host_index=_host_index,
2196
+ )
2197
+
2198
+ @validate_call
2199
+ def _get_google_auth_url_sync_without_preload_content(
2200
+ self,
2201
+ origin: StrictStr,
2202
+ _request_timeout: Union[
2203
+ None,
2204
+ Annotated[StrictFloat, Field(gt=0)],
2205
+ Tuple[
2206
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2207
+ ],
2208
+ ] = None,
2209
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2210
+ _content_type: Optional[StrictStr] = None,
2211
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2212
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2213
+ ) -> RESTResponseType:
2214
+ """Synchronous version of get_google_auth_url_without_preload_content"""
2215
+ return async_to_sync(self._get_google_auth_url_async_without_preload_content)(
2216
+ origin=origin,
2217
+ _request_timeout=_request_timeout,
2218
+ _request_auth=_request_auth,
2219
+ _content_type=_content_type,
2220
+ _headers=_headers,
2221
+ _host_index=_host_index,
2222
+ )
1224
2223
 
1225
2224
  def _get_google_auth_url_serialize(
1226
2225
  self,
@@ -1279,7 +2278,164 @@ class AuthApi:
1279
2278
  )
1280
2279
 
1281
2280
  @validate_call
1282
- async def oauth_callback(
2281
+ def oauth_callback(
2282
+ self,
2283
+ code: StrictStr,
2284
+ scope: StrictStr,
2285
+ authuser: StrictStr,
2286
+ prompt: StrictStr,
2287
+ origin: StrictStr,
2288
+ _request_timeout: Union[
2289
+ None,
2290
+ Annotated[StrictFloat, Field(gt=0)],
2291
+ Tuple[
2292
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2293
+ ],
2294
+ ] = None,
2295
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2296
+ _content_type: Optional[StrictStr] = None,
2297
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2298
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2299
+ ) -> OauthCallback200Response:
2300
+ """OAuth Callback
2301
+
2302
+ This method can work in both sync and async modes based on the is_sync flag.
2303
+ """
2304
+ if self.is_sync:
2305
+ return self._oauth_callback_sync(
2306
+ code=code,
2307
+ scope=scope,
2308
+ authuser=authuser,
2309
+ prompt=prompt,
2310
+ origin=origin,
2311
+ _request_timeout=_request_timeout,
2312
+ _request_auth=_request_auth,
2313
+ _content_type=_content_type,
2314
+ _headers=_headers,
2315
+ _host_index=_host_index,
2316
+ )
2317
+
2318
+ else:
2319
+ return self._oauth_callback_async(
2320
+ code=code,
2321
+ scope=scope,
2322
+ authuser=authuser,
2323
+ prompt=prompt,
2324
+ origin=origin,
2325
+ _request_timeout=_request_timeout,
2326
+ _request_auth=_request_auth,
2327
+ _content_type=_content_type,
2328
+ _headers=_headers,
2329
+ _host_index=_host_index,
2330
+ )
2331
+
2332
+ @validate_call
2333
+ def oauth_callback_with_http_info(
2334
+ self,
2335
+ code: StrictStr,
2336
+ scope: StrictStr,
2337
+ authuser: StrictStr,
2338
+ prompt: StrictStr,
2339
+ origin: StrictStr,
2340
+ _request_timeout: Union[
2341
+ None,
2342
+ Annotated[StrictFloat, Field(gt=0)],
2343
+ Tuple[
2344
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2345
+ ],
2346
+ ] = None,
2347
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2348
+ _content_type: Optional[StrictStr] = None,
2349
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2350
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2351
+ ) -> ApiResponse[OauthCallback200Response]:
2352
+ """OAuth Callback with HTTP info
2353
+
2354
+ This method can work in both sync and async modes based on the is_sync flag.
2355
+ """
2356
+ if self.is_sync:
2357
+ return self._oauth_callback_sync_with_http_info(
2358
+ code=code,
2359
+ scope=scope,
2360
+ authuser=authuser,
2361
+ prompt=prompt,
2362
+ origin=origin,
2363
+ _request_timeout=_request_timeout,
2364
+ _request_auth=_request_auth,
2365
+ _content_type=_content_type,
2366
+ _headers=_headers,
2367
+ _host_index=_host_index,
2368
+ )
2369
+
2370
+ else:
2371
+ return self._oauth_callback_async_with_http_info(
2372
+ code=code,
2373
+ scope=scope,
2374
+ authuser=authuser,
2375
+ prompt=prompt,
2376
+ origin=origin,
2377
+ _request_timeout=_request_timeout,
2378
+ _request_auth=_request_auth,
2379
+ _content_type=_content_type,
2380
+ _headers=_headers,
2381
+ _host_index=_host_index,
2382
+ )
2383
+
2384
+ @validate_call
2385
+ def oauth_callback_without_preload_content(
2386
+ self,
2387
+ code: StrictStr,
2388
+ scope: StrictStr,
2389
+ authuser: StrictStr,
2390
+ prompt: StrictStr,
2391
+ origin: StrictStr,
2392
+ _request_timeout: Union[
2393
+ None,
2394
+ Annotated[StrictFloat, Field(gt=0)],
2395
+ Tuple[
2396
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2397
+ ],
2398
+ ] = None,
2399
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2400
+ _content_type: Optional[StrictStr] = None,
2401
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2402
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2403
+ ) -> RESTResponseType:
2404
+ """OAuth Callback without preloading content
2405
+
2406
+ This method can work in both sync and async modes based on the is_sync flag.
2407
+ """
2408
+ if self.is_sync:
2409
+ return self._oauth_callback_sync_without_preload_content(
2410
+ code=code,
2411
+ scope=scope,
2412
+ authuser=authuser,
2413
+ prompt=prompt,
2414
+ origin=origin,
2415
+ _request_timeout=_request_timeout,
2416
+ _request_auth=_request_auth,
2417
+ _content_type=_content_type,
2418
+ _headers=_headers,
2419
+ _host_index=_host_index,
2420
+ )
2421
+
2422
+ else:
2423
+ return self._oauth_callback_async_without_preload_content(
2424
+ code=code,
2425
+ scope=scope,
2426
+ authuser=authuser,
2427
+ prompt=prompt,
2428
+ origin=origin,
2429
+ _request_timeout=_request_timeout,
2430
+ _request_auth=_request_auth,
2431
+ _content_type=_content_type,
2432
+ _headers=_headers,
2433
+ _host_index=_host_index,
2434
+ )
2435
+
2436
+ # Private async implementation methods
2437
+ @validate_call
2438
+ async def _oauth_callback_async(
1283
2439
  self,
1284
2440
  code: StrictStr,
1285
2441
  scope: StrictStr,
@@ -1359,7 +2515,7 @@ class AuthApi:
1359
2515
  ).data
1360
2516
 
1361
2517
  @validate_call
1362
- async def oauth_callback_with_http_info(
2518
+ async def _oauth_callback_async_with_http_info(
1363
2519
  self,
1364
2520
  code: StrictStr,
1365
2521
  scope: StrictStr,
@@ -1434,12 +2590,11 @@ class AuthApi:
1434
2590
  )
1435
2591
  await response_data.read()
1436
2592
  return self.api_client.response_deserialize(
1437
- response_data=response_data,
1438
- response_types_map=_response_types_map,
2593
+ response_data=response_data, response_types_map=_response_types_map
1439
2594
  )
1440
2595
 
1441
2596
  @validate_call
1442
- async def oauth_callback_without_preload_content(
2597
+ async def _oauth_callback_async_without_preload_content(
1443
2598
  self,
1444
2599
  code: StrictStr,
1445
2600
  scope: StrictStr,
@@ -1512,9 +2667,112 @@ class AuthApi:
1512
2667
  response_data = await self.api_client.call_api(
1513
2668
  *_param, _request_timeout=_request_timeout
1514
2669
  )
1515
- return response_data.response
2670
+ return response_data
1516
2671
 
1517
- def _oauth_callback_serialize(
2672
+ # Private sync implementation methods
2673
+ @validate_call
2674
+ def _oauth_callback_sync(
2675
+ self,
2676
+ code: StrictStr,
2677
+ scope: StrictStr,
2678
+ authuser: StrictStr,
2679
+ prompt: StrictStr,
2680
+ origin: StrictStr,
2681
+ _request_timeout: Union[
2682
+ None,
2683
+ Annotated[StrictFloat, Field(gt=0)],
2684
+ Tuple[
2685
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2686
+ ],
2687
+ ] = None,
2688
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2689
+ _content_type: Optional[StrictStr] = None,
2690
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2691
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2692
+ ) -> OauthCallback200Response:
2693
+ """Synchronous version of oauth_callback"""
2694
+ return async_to_sync(self._oauth_callback_async)(
2695
+ code=code,
2696
+ scope=scope,
2697
+ authuser=authuser,
2698
+ prompt=prompt,
2699
+ origin=origin,
2700
+ _request_timeout=_request_timeout,
2701
+ _request_auth=_request_auth,
2702
+ _content_type=_content_type,
2703
+ _headers=_headers,
2704
+ _host_index=_host_index,
2705
+ )
2706
+
2707
+ @validate_call
2708
+ def _oauth_callback_sync_with_http_info(
2709
+ self,
2710
+ code: StrictStr,
2711
+ scope: StrictStr,
2712
+ authuser: StrictStr,
2713
+ prompt: StrictStr,
2714
+ origin: StrictStr,
2715
+ _request_timeout: Union[
2716
+ None,
2717
+ Annotated[StrictFloat, Field(gt=0)],
2718
+ Tuple[
2719
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2720
+ ],
2721
+ ] = None,
2722
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2723
+ _content_type: Optional[StrictStr] = None,
2724
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2725
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2726
+ ) -> ApiResponse[OauthCallback200Response]:
2727
+ """Synchronous version of oauth_callback_with_http_info"""
2728
+ return async_to_sync(self._oauth_callback_async_with_http_info)(
2729
+ code=code,
2730
+ scope=scope,
2731
+ authuser=authuser,
2732
+ prompt=prompt,
2733
+ origin=origin,
2734
+ _request_timeout=_request_timeout,
2735
+ _request_auth=_request_auth,
2736
+ _content_type=_content_type,
2737
+ _headers=_headers,
2738
+ _host_index=_host_index,
2739
+ )
2740
+
2741
+ @validate_call
2742
+ def _oauth_callback_sync_without_preload_content(
2743
+ self,
2744
+ code: StrictStr,
2745
+ scope: StrictStr,
2746
+ authuser: StrictStr,
2747
+ prompt: StrictStr,
2748
+ origin: StrictStr,
2749
+ _request_timeout: Union[
2750
+ None,
2751
+ Annotated[StrictFloat, Field(gt=0)],
2752
+ Tuple[
2753
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2754
+ ],
2755
+ ] = None,
2756
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2757
+ _content_type: Optional[StrictStr] = None,
2758
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2759
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2760
+ ) -> RESTResponseType:
2761
+ """Synchronous version of oauth_callback_without_preload_content"""
2762
+ return async_to_sync(self._oauth_callback_async_without_preload_content)(
2763
+ code=code,
2764
+ scope=scope,
2765
+ authuser=authuser,
2766
+ prompt=prompt,
2767
+ origin=origin,
2768
+ _request_timeout=_request_timeout,
2769
+ _request_auth=_request_auth,
2770
+ _content_type=_content_type,
2771
+ _headers=_headers,
2772
+ _host_index=_host_index,
2773
+ )
2774
+
2775
+ def _oauth_callback_serialize(
1518
2776
  self,
1519
2777
  code,
1520
2778
  scope,
@@ -1591,7 +2849,137 @@ class AuthApi:
1591
2849
  )
1592
2850
 
1593
2851
  @validate_call
1594
- async def refresh_token_info(
2852
+ def refresh_token_info(
2853
+ self,
2854
+ x_refresh_token: Annotated[
2855
+ Optional[StrictStr],
2856
+ Field(description="The refresh token for rotating the access token."),
2857
+ ] = None,
2858
+ _request_timeout: Union[
2859
+ None,
2860
+ Annotated[StrictFloat, Field(gt=0)],
2861
+ Tuple[
2862
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2863
+ ],
2864
+ ] = None,
2865
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2866
+ _content_type: Optional[StrictStr] = None,
2867
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2868
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2869
+ ) -> RefreshTokenInfo200Response:
2870
+ """Refresh token info
2871
+
2872
+ This method can work in both sync and async modes based on the is_sync flag.
2873
+ """
2874
+ if self.is_sync:
2875
+ return self._refresh_token_info_sync(
2876
+ x_refresh_token=x_refresh_token,
2877
+ _request_timeout=_request_timeout,
2878
+ _request_auth=_request_auth,
2879
+ _content_type=_content_type,
2880
+ _headers=_headers,
2881
+ _host_index=_host_index,
2882
+ )
2883
+
2884
+ else:
2885
+ return self._refresh_token_info_async(
2886
+ x_refresh_token=x_refresh_token,
2887
+ _request_timeout=_request_timeout,
2888
+ _request_auth=_request_auth,
2889
+ _content_type=_content_type,
2890
+ _headers=_headers,
2891
+ _host_index=_host_index,
2892
+ )
2893
+
2894
+ @validate_call
2895
+ def refresh_token_info_with_http_info(
2896
+ self,
2897
+ x_refresh_token: Annotated[
2898
+ Optional[StrictStr],
2899
+ Field(description="The refresh token for rotating the access token."),
2900
+ ] = None,
2901
+ _request_timeout: Union[
2902
+ None,
2903
+ Annotated[StrictFloat, Field(gt=0)],
2904
+ Tuple[
2905
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2906
+ ],
2907
+ ] = None,
2908
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2909
+ _content_type: Optional[StrictStr] = None,
2910
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2911
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2912
+ ) -> ApiResponse[RefreshTokenInfo200Response]:
2913
+ """Refresh token info with HTTP info
2914
+
2915
+ This method can work in both sync and async modes based on the is_sync flag.
2916
+ """
2917
+ if self.is_sync:
2918
+ return self._refresh_token_info_sync_with_http_info(
2919
+ x_refresh_token=x_refresh_token,
2920
+ _request_timeout=_request_timeout,
2921
+ _request_auth=_request_auth,
2922
+ _content_type=_content_type,
2923
+ _headers=_headers,
2924
+ _host_index=_host_index,
2925
+ )
2926
+
2927
+ else:
2928
+ return self._refresh_token_info_async_with_http_info(
2929
+ x_refresh_token=x_refresh_token,
2930
+ _request_timeout=_request_timeout,
2931
+ _request_auth=_request_auth,
2932
+ _content_type=_content_type,
2933
+ _headers=_headers,
2934
+ _host_index=_host_index,
2935
+ )
2936
+
2937
+ @validate_call
2938
+ def refresh_token_info_without_preload_content(
2939
+ self,
2940
+ x_refresh_token: Annotated[
2941
+ Optional[StrictStr],
2942
+ Field(description="The refresh token for rotating the access token."),
2943
+ ] = None,
2944
+ _request_timeout: Union[
2945
+ None,
2946
+ Annotated[StrictFloat, Field(gt=0)],
2947
+ Tuple[
2948
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2949
+ ],
2950
+ ] = None,
2951
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2952
+ _content_type: Optional[StrictStr] = None,
2953
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2954
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2955
+ ) -> RESTResponseType:
2956
+ """Refresh token info without preloading content
2957
+
2958
+ This method can work in both sync and async modes based on the is_sync flag.
2959
+ """
2960
+ if self.is_sync:
2961
+ return self._refresh_token_info_sync_without_preload_content(
2962
+ x_refresh_token=x_refresh_token,
2963
+ _request_timeout=_request_timeout,
2964
+ _request_auth=_request_auth,
2965
+ _content_type=_content_type,
2966
+ _headers=_headers,
2967
+ _host_index=_host_index,
2968
+ )
2969
+
2970
+ else:
2971
+ return self._refresh_token_info_async_without_preload_content(
2972
+ x_refresh_token=x_refresh_token,
2973
+ _request_timeout=_request_timeout,
2974
+ _request_auth=_request_auth,
2975
+ _content_type=_content_type,
2976
+ _headers=_headers,
2977
+ _host_index=_host_index,
2978
+ )
2979
+
2980
+ # Private async implementation methods
2981
+ @validate_call
2982
+ async def _refresh_token_info_async(
1595
2983
  self,
1596
2984
  x_refresh_token: Annotated[
1597
2985
  Optional[StrictStr],
@@ -1658,7 +3046,7 @@ class AuthApi:
1658
3046
  ).data
1659
3047
 
1660
3048
  @validate_call
1661
- async def refresh_token_info_with_http_info(
3049
+ async def _refresh_token_info_async_with_http_info(
1662
3050
  self,
1663
3051
  x_refresh_token: Annotated[
1664
3052
  Optional[StrictStr],
@@ -1720,12 +3108,11 @@ class AuthApi:
1720
3108
  )
1721
3109
  await response_data.read()
1722
3110
  return self.api_client.response_deserialize(
1723
- response_data=response_data,
1724
- response_types_map=_response_types_map,
3111
+ response_data=response_data, response_types_map=_response_types_map
1725
3112
  )
1726
3113
 
1727
3114
  @validate_call
1728
- async def refresh_token_info_without_preload_content(
3115
+ async def _refresh_token_info_async_without_preload_content(
1729
3116
  self,
1730
3117
  x_refresh_token: Annotated[
1731
3118
  Optional[StrictStr],
@@ -1785,7 +3172,95 @@ class AuthApi:
1785
3172
  response_data = await self.api_client.call_api(
1786
3173
  *_param, _request_timeout=_request_timeout
1787
3174
  )
1788
- return response_data.response
3175
+ return response_data
3176
+
3177
+ # Private sync implementation methods
3178
+ @validate_call
3179
+ def _refresh_token_info_sync(
3180
+ self,
3181
+ x_refresh_token: Annotated[
3182
+ Optional[StrictStr],
3183
+ Field(description="The refresh token for rotating the access token."),
3184
+ ] = None,
3185
+ _request_timeout: Union[
3186
+ None,
3187
+ Annotated[StrictFloat, Field(gt=0)],
3188
+ Tuple[
3189
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3190
+ ],
3191
+ ] = None,
3192
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3193
+ _content_type: Optional[StrictStr] = None,
3194
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3195
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3196
+ ) -> RefreshTokenInfo200Response:
3197
+ """Synchronous version of refresh_token_info"""
3198
+ return async_to_sync(self._refresh_token_info_async)(
3199
+ x_refresh_token=x_refresh_token,
3200
+ _request_timeout=_request_timeout,
3201
+ _request_auth=_request_auth,
3202
+ _content_type=_content_type,
3203
+ _headers=_headers,
3204
+ _host_index=_host_index,
3205
+ )
3206
+
3207
+ @validate_call
3208
+ def _refresh_token_info_sync_with_http_info(
3209
+ self,
3210
+ x_refresh_token: Annotated[
3211
+ Optional[StrictStr],
3212
+ Field(description="The refresh token for rotating the access token."),
3213
+ ] = None,
3214
+ _request_timeout: Union[
3215
+ None,
3216
+ Annotated[StrictFloat, Field(gt=0)],
3217
+ Tuple[
3218
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3219
+ ],
3220
+ ] = None,
3221
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3222
+ _content_type: Optional[StrictStr] = None,
3223
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3224
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3225
+ ) -> ApiResponse[RefreshTokenInfo200Response]:
3226
+ """Synchronous version of refresh_token_info_with_http_info"""
3227
+ return async_to_sync(self._refresh_token_info_async_with_http_info)(
3228
+ x_refresh_token=x_refresh_token,
3229
+ _request_timeout=_request_timeout,
3230
+ _request_auth=_request_auth,
3231
+ _content_type=_content_type,
3232
+ _headers=_headers,
3233
+ _host_index=_host_index,
3234
+ )
3235
+
3236
+ @validate_call
3237
+ def _refresh_token_info_sync_without_preload_content(
3238
+ self,
3239
+ x_refresh_token: Annotated[
3240
+ Optional[StrictStr],
3241
+ Field(description="The refresh token for rotating the access token."),
3242
+ ] = None,
3243
+ _request_timeout: Union[
3244
+ None,
3245
+ Annotated[StrictFloat, Field(gt=0)],
3246
+ Tuple[
3247
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3248
+ ],
3249
+ ] = None,
3250
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3251
+ _content_type: Optional[StrictStr] = None,
3252
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3253
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3254
+ ) -> RESTResponseType:
3255
+ """Synchronous version of refresh_token_info_without_preload_content"""
3256
+ return async_to_sync(self._refresh_token_info_async_without_preload_content)(
3257
+ x_refresh_token=x_refresh_token,
3258
+ _request_timeout=_request_timeout,
3259
+ _request_auth=_request_auth,
3260
+ _content_type=_content_type,
3261
+ _headers=_headers,
3262
+ _host_index=_host_index,
3263
+ )
1789
3264
 
1790
3265
  def _refresh_token_info_serialize(
1791
3266
  self,
@@ -1842,7 +3317,137 @@ class AuthApi:
1842
3317
  )
1843
3318
 
1844
3319
  @validate_call
1845
- async def refresh_token_scopes(
3320
+ def refresh_token_scopes(
3321
+ self,
3322
+ x_refresh_token: Annotated[
3323
+ Optional[StrictStr],
3324
+ Field(description="The refresh token for rotating the access token."),
3325
+ ] = None,
3326
+ _request_timeout: Union[
3327
+ None,
3328
+ Annotated[StrictFloat, Field(gt=0)],
3329
+ Tuple[
3330
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3331
+ ],
3332
+ ] = None,
3333
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3334
+ _content_type: Optional[StrictStr] = None,
3335
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3336
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3337
+ ) -> RotateTokens200Response:
3338
+ """Refresh token scopes
3339
+
3340
+ This method can work in both sync and async modes based on the is_sync flag.
3341
+ """
3342
+ if self.is_sync:
3343
+ return self._refresh_token_scopes_sync(
3344
+ x_refresh_token=x_refresh_token,
3345
+ _request_timeout=_request_timeout,
3346
+ _request_auth=_request_auth,
3347
+ _content_type=_content_type,
3348
+ _headers=_headers,
3349
+ _host_index=_host_index,
3350
+ )
3351
+
3352
+ else:
3353
+ return self._refresh_token_scopes_async(
3354
+ x_refresh_token=x_refresh_token,
3355
+ _request_timeout=_request_timeout,
3356
+ _request_auth=_request_auth,
3357
+ _content_type=_content_type,
3358
+ _headers=_headers,
3359
+ _host_index=_host_index,
3360
+ )
3361
+
3362
+ @validate_call
3363
+ def refresh_token_scopes_with_http_info(
3364
+ self,
3365
+ x_refresh_token: Annotated[
3366
+ Optional[StrictStr],
3367
+ Field(description="The refresh token for rotating the access token."),
3368
+ ] = None,
3369
+ _request_timeout: Union[
3370
+ None,
3371
+ Annotated[StrictFloat, Field(gt=0)],
3372
+ Tuple[
3373
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3374
+ ],
3375
+ ] = None,
3376
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3377
+ _content_type: Optional[StrictStr] = None,
3378
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3379
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3380
+ ) -> ApiResponse[RotateTokens200Response]:
3381
+ """Refresh token scopes with HTTP info
3382
+
3383
+ This method can work in both sync and async modes based on the is_sync flag.
3384
+ """
3385
+ if self.is_sync:
3386
+ return self._refresh_token_scopes_sync_with_http_info(
3387
+ x_refresh_token=x_refresh_token,
3388
+ _request_timeout=_request_timeout,
3389
+ _request_auth=_request_auth,
3390
+ _content_type=_content_type,
3391
+ _headers=_headers,
3392
+ _host_index=_host_index,
3393
+ )
3394
+
3395
+ else:
3396
+ return self._refresh_token_scopes_async_with_http_info(
3397
+ x_refresh_token=x_refresh_token,
3398
+ _request_timeout=_request_timeout,
3399
+ _request_auth=_request_auth,
3400
+ _content_type=_content_type,
3401
+ _headers=_headers,
3402
+ _host_index=_host_index,
3403
+ )
3404
+
3405
+ @validate_call
3406
+ def refresh_token_scopes_without_preload_content(
3407
+ self,
3408
+ x_refresh_token: Annotated[
3409
+ Optional[StrictStr],
3410
+ Field(description="The refresh token for rotating the access token."),
3411
+ ] = None,
3412
+ _request_timeout: Union[
3413
+ None,
3414
+ Annotated[StrictFloat, Field(gt=0)],
3415
+ Tuple[
3416
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3417
+ ],
3418
+ ] = None,
3419
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3420
+ _content_type: Optional[StrictStr] = None,
3421
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3422
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3423
+ ) -> RESTResponseType:
3424
+ """Refresh token scopes without preloading content
3425
+
3426
+ This method can work in both sync and async modes based on the is_sync flag.
3427
+ """
3428
+ if self.is_sync:
3429
+ return self._refresh_token_scopes_sync_without_preload_content(
3430
+ x_refresh_token=x_refresh_token,
3431
+ _request_timeout=_request_timeout,
3432
+ _request_auth=_request_auth,
3433
+ _content_type=_content_type,
3434
+ _headers=_headers,
3435
+ _host_index=_host_index,
3436
+ )
3437
+
3438
+ else:
3439
+ return self._refresh_token_scopes_async_without_preload_content(
3440
+ x_refresh_token=x_refresh_token,
3441
+ _request_timeout=_request_timeout,
3442
+ _request_auth=_request_auth,
3443
+ _content_type=_content_type,
3444
+ _headers=_headers,
3445
+ _host_index=_host_index,
3446
+ )
3447
+
3448
+ # Private async implementation methods
3449
+ @validate_call
3450
+ async def _refresh_token_scopes_async(
1846
3451
  self,
1847
3452
  x_refresh_token: Annotated[
1848
3453
  Optional[StrictStr],
@@ -1909,7 +3514,7 @@ class AuthApi:
1909
3514
  ).data
1910
3515
 
1911
3516
  @validate_call
1912
- async def refresh_token_scopes_with_http_info(
3517
+ async def _refresh_token_scopes_async_with_http_info(
1913
3518
  self,
1914
3519
  x_refresh_token: Annotated[
1915
3520
  Optional[StrictStr],
@@ -1971,12 +3576,11 @@ class AuthApi:
1971
3576
  )
1972
3577
  await response_data.read()
1973
3578
  return self.api_client.response_deserialize(
1974
- response_data=response_data,
1975
- response_types_map=_response_types_map,
3579
+ response_data=response_data, response_types_map=_response_types_map
1976
3580
  )
1977
3581
 
1978
3582
  @validate_call
1979
- async def refresh_token_scopes_without_preload_content(
3583
+ async def _refresh_token_scopes_async_without_preload_content(
1980
3584
  self,
1981
3585
  x_refresh_token: Annotated[
1982
3586
  Optional[StrictStr],
@@ -2036,7 +3640,95 @@ class AuthApi:
2036
3640
  response_data = await self.api_client.call_api(
2037
3641
  *_param, _request_timeout=_request_timeout
2038
3642
  )
2039
- return response_data.response
3643
+ return response_data
3644
+
3645
+ # Private sync implementation methods
3646
+ @validate_call
3647
+ def _refresh_token_scopes_sync(
3648
+ self,
3649
+ x_refresh_token: Annotated[
3650
+ Optional[StrictStr],
3651
+ Field(description="The refresh token for rotating the access token."),
3652
+ ] = None,
3653
+ _request_timeout: Union[
3654
+ None,
3655
+ Annotated[StrictFloat, Field(gt=0)],
3656
+ Tuple[
3657
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3658
+ ],
3659
+ ] = None,
3660
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3661
+ _content_type: Optional[StrictStr] = None,
3662
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3663
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3664
+ ) -> RotateTokens200Response:
3665
+ """Synchronous version of refresh_token_scopes"""
3666
+ return async_to_sync(self._refresh_token_scopes_async)(
3667
+ x_refresh_token=x_refresh_token,
3668
+ _request_timeout=_request_timeout,
3669
+ _request_auth=_request_auth,
3670
+ _content_type=_content_type,
3671
+ _headers=_headers,
3672
+ _host_index=_host_index,
3673
+ )
3674
+
3675
+ @validate_call
3676
+ def _refresh_token_scopes_sync_with_http_info(
3677
+ self,
3678
+ x_refresh_token: Annotated[
3679
+ Optional[StrictStr],
3680
+ Field(description="The refresh token for rotating the access token."),
3681
+ ] = None,
3682
+ _request_timeout: Union[
3683
+ None,
3684
+ Annotated[StrictFloat, Field(gt=0)],
3685
+ Tuple[
3686
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3687
+ ],
3688
+ ] = None,
3689
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3690
+ _content_type: Optional[StrictStr] = None,
3691
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3692
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3693
+ ) -> ApiResponse[RotateTokens200Response]:
3694
+ """Synchronous version of refresh_token_scopes_with_http_info"""
3695
+ return async_to_sync(self._refresh_token_scopes_async_with_http_info)(
3696
+ x_refresh_token=x_refresh_token,
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
+ @validate_call
3705
+ def _refresh_token_scopes_sync_without_preload_content(
3706
+ self,
3707
+ x_refresh_token: Annotated[
3708
+ Optional[StrictStr],
3709
+ Field(description="The refresh token for rotating the access token."),
3710
+ ] = None,
3711
+ _request_timeout: Union[
3712
+ None,
3713
+ Annotated[StrictFloat, Field(gt=0)],
3714
+ Tuple[
3715
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3716
+ ],
3717
+ ] = None,
3718
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3719
+ _content_type: Optional[StrictStr] = None,
3720
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3721
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3722
+ ) -> RESTResponseType:
3723
+ """Synchronous version of refresh_token_scopes_without_preload_content"""
3724
+ return async_to_sync(self._refresh_token_scopes_async_without_preload_content)(
3725
+ x_refresh_token=x_refresh_token,
3726
+ _request_timeout=_request_timeout,
3727
+ _request_auth=_request_auth,
3728
+ _content_type=_content_type,
3729
+ _headers=_headers,
3730
+ _host_index=_host_index,
3731
+ )
2040
3732
 
2041
3733
  def _refresh_token_scopes_serialize(
2042
3734
  self,
@@ -2074,26 +3766,156 @@ class AuthApi:
2074
3766
  ["application/json"]
2075
3767
  )
2076
3768
 
2077
- # authentication setting
2078
- _auth_settings: List[str] = []
2079
-
2080
- return self.api_client.param_serialize(
2081
- method="POST",
2082
- resource_path="/refresh-token-scopes",
2083
- path_params=_path_params,
2084
- query_params=_query_params,
2085
- header_params=_header_params,
2086
- body=_body_params,
2087
- post_params=_form_params,
2088
- files=_files,
2089
- auth_settings=_auth_settings,
2090
- collection_formats=_collection_formats,
2091
- _host=_host,
2092
- _request_auth=_request_auth,
2093
- )
3769
+ # authentication setting
3770
+ _auth_settings: List[str] = []
3771
+
3772
+ return self.api_client.param_serialize(
3773
+ method="POST",
3774
+ resource_path="/refresh-token-scopes",
3775
+ path_params=_path_params,
3776
+ query_params=_query_params,
3777
+ header_params=_header_params,
3778
+ body=_body_params,
3779
+ post_params=_form_params,
3780
+ files=_files,
3781
+ auth_settings=_auth_settings,
3782
+ collection_formats=_collection_formats,
3783
+ _host=_host,
3784
+ _request_auth=_request_auth,
3785
+ )
3786
+
3787
+ @validate_call
3788
+ def rotate_tokens(
3789
+ self,
3790
+ x_refresh_token: Annotated[
3791
+ Optional[StrictStr],
3792
+ Field(description="The refresh token for rotating the access token."),
3793
+ ] = None,
3794
+ _request_timeout: Union[
3795
+ None,
3796
+ Annotated[StrictFloat, Field(gt=0)],
3797
+ Tuple[
3798
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3799
+ ],
3800
+ ] = None,
3801
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3802
+ _content_type: Optional[StrictStr] = None,
3803
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3804
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3805
+ ) -> RotateTokens200Response:
3806
+ """Rotate tokens
3807
+
3808
+ This method can work in both sync and async modes based on the is_sync flag.
3809
+ """
3810
+ if self.is_sync:
3811
+ return self._rotate_tokens_sync(
3812
+ x_refresh_token=x_refresh_token,
3813
+ _request_timeout=_request_timeout,
3814
+ _request_auth=_request_auth,
3815
+ _content_type=_content_type,
3816
+ _headers=_headers,
3817
+ _host_index=_host_index,
3818
+ )
3819
+
3820
+ else:
3821
+ return self._rotate_tokens_async(
3822
+ x_refresh_token=x_refresh_token,
3823
+ _request_timeout=_request_timeout,
3824
+ _request_auth=_request_auth,
3825
+ _content_type=_content_type,
3826
+ _headers=_headers,
3827
+ _host_index=_host_index,
3828
+ )
3829
+
3830
+ @validate_call
3831
+ def rotate_tokens_with_http_info(
3832
+ self,
3833
+ x_refresh_token: Annotated[
3834
+ Optional[StrictStr],
3835
+ Field(description="The refresh token for rotating the access token."),
3836
+ ] = None,
3837
+ _request_timeout: Union[
3838
+ None,
3839
+ Annotated[StrictFloat, Field(gt=0)],
3840
+ Tuple[
3841
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3842
+ ],
3843
+ ] = None,
3844
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3845
+ _content_type: Optional[StrictStr] = None,
3846
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3847
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3848
+ ) -> ApiResponse[RotateTokens200Response]:
3849
+ """Rotate tokens with HTTP info
3850
+
3851
+ This method can work in both sync and async modes based on the is_sync flag.
3852
+ """
3853
+ if self.is_sync:
3854
+ return self._rotate_tokens_sync_with_http_info(
3855
+ x_refresh_token=x_refresh_token,
3856
+ _request_timeout=_request_timeout,
3857
+ _request_auth=_request_auth,
3858
+ _content_type=_content_type,
3859
+ _headers=_headers,
3860
+ _host_index=_host_index,
3861
+ )
3862
+
3863
+ else:
3864
+ return self._rotate_tokens_async_with_http_info(
3865
+ x_refresh_token=x_refresh_token,
3866
+ _request_timeout=_request_timeout,
3867
+ _request_auth=_request_auth,
3868
+ _content_type=_content_type,
3869
+ _headers=_headers,
3870
+ _host_index=_host_index,
3871
+ )
3872
+
3873
+ @validate_call
3874
+ def rotate_tokens_without_preload_content(
3875
+ self,
3876
+ x_refresh_token: Annotated[
3877
+ Optional[StrictStr],
3878
+ Field(description="The refresh token for rotating the access token."),
3879
+ ] = None,
3880
+ _request_timeout: Union[
3881
+ None,
3882
+ Annotated[StrictFloat, Field(gt=0)],
3883
+ Tuple[
3884
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
3885
+ ],
3886
+ ] = None,
3887
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3888
+ _content_type: Optional[StrictStr] = None,
3889
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3890
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3891
+ ) -> RESTResponseType:
3892
+ """Rotate tokens without preloading content
3893
+
3894
+ This method can work in both sync and async modes based on the is_sync flag.
3895
+ """
3896
+ if self.is_sync:
3897
+ return self._rotate_tokens_sync_without_preload_content(
3898
+ x_refresh_token=x_refresh_token,
3899
+ _request_timeout=_request_timeout,
3900
+ _request_auth=_request_auth,
3901
+ _content_type=_content_type,
3902
+ _headers=_headers,
3903
+ _host_index=_host_index,
3904
+ )
3905
+
3906
+ else:
3907
+ return self._rotate_tokens_async_without_preload_content(
3908
+ x_refresh_token=x_refresh_token,
3909
+ _request_timeout=_request_timeout,
3910
+ _request_auth=_request_auth,
3911
+ _content_type=_content_type,
3912
+ _headers=_headers,
3913
+ _host_index=_host_index,
3914
+ )
2094
3915
 
3916
+ # Private async implementation methods
2095
3917
  @validate_call
2096
- async def rotate_tokens(
3918
+ async def _rotate_tokens_async(
2097
3919
  self,
2098
3920
  x_refresh_token: Annotated[
2099
3921
  Optional[StrictStr],
@@ -2160,7 +3982,7 @@ class AuthApi:
2160
3982
  ).data
2161
3983
 
2162
3984
  @validate_call
2163
- async def rotate_tokens_with_http_info(
3985
+ async def _rotate_tokens_async_with_http_info(
2164
3986
  self,
2165
3987
  x_refresh_token: Annotated[
2166
3988
  Optional[StrictStr],
@@ -2222,12 +4044,11 @@ class AuthApi:
2222
4044
  )
2223
4045
  await response_data.read()
2224
4046
  return self.api_client.response_deserialize(
2225
- response_data=response_data,
2226
- response_types_map=_response_types_map,
4047
+ response_data=response_data, response_types_map=_response_types_map
2227
4048
  )
2228
4049
 
2229
4050
  @validate_call
2230
- async def rotate_tokens_without_preload_content(
4051
+ async def _rotate_tokens_async_without_preload_content(
2231
4052
  self,
2232
4053
  x_refresh_token: Annotated[
2233
4054
  Optional[StrictStr],
@@ -2287,7 +4108,95 @@ class AuthApi:
2287
4108
  response_data = await self.api_client.call_api(
2288
4109
  *_param, _request_timeout=_request_timeout
2289
4110
  )
2290
- return response_data.response
4111
+ return response_data
4112
+
4113
+ # Private sync implementation methods
4114
+ @validate_call
4115
+ def _rotate_tokens_sync(
4116
+ self,
4117
+ x_refresh_token: Annotated[
4118
+ Optional[StrictStr],
4119
+ Field(description="The refresh token for rotating the access token."),
4120
+ ] = None,
4121
+ _request_timeout: Union[
4122
+ None,
4123
+ Annotated[StrictFloat, Field(gt=0)],
4124
+ Tuple[
4125
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4126
+ ],
4127
+ ] = None,
4128
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4129
+ _content_type: Optional[StrictStr] = None,
4130
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4131
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4132
+ ) -> RotateTokens200Response:
4133
+ """Synchronous version of rotate_tokens"""
4134
+ return async_to_sync(self._rotate_tokens_async)(
4135
+ x_refresh_token=x_refresh_token,
4136
+ _request_timeout=_request_timeout,
4137
+ _request_auth=_request_auth,
4138
+ _content_type=_content_type,
4139
+ _headers=_headers,
4140
+ _host_index=_host_index,
4141
+ )
4142
+
4143
+ @validate_call
4144
+ def _rotate_tokens_sync_with_http_info(
4145
+ self,
4146
+ x_refresh_token: Annotated[
4147
+ Optional[StrictStr],
4148
+ Field(description="The refresh token for rotating the access token."),
4149
+ ] = None,
4150
+ _request_timeout: Union[
4151
+ None,
4152
+ Annotated[StrictFloat, Field(gt=0)],
4153
+ Tuple[
4154
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4155
+ ],
4156
+ ] = None,
4157
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4158
+ _content_type: Optional[StrictStr] = None,
4159
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4160
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4161
+ ) -> ApiResponse[RotateTokens200Response]:
4162
+ """Synchronous version of rotate_tokens_with_http_info"""
4163
+ return async_to_sync(self._rotate_tokens_async_with_http_info)(
4164
+ x_refresh_token=x_refresh_token,
4165
+ _request_timeout=_request_timeout,
4166
+ _request_auth=_request_auth,
4167
+ _content_type=_content_type,
4168
+ _headers=_headers,
4169
+ _host_index=_host_index,
4170
+ )
4171
+
4172
+ @validate_call
4173
+ def _rotate_tokens_sync_without_preload_content(
4174
+ self,
4175
+ x_refresh_token: Annotated[
4176
+ Optional[StrictStr],
4177
+ Field(description="The refresh token for rotating the access token."),
4178
+ ] = None,
4179
+ _request_timeout: Union[
4180
+ None,
4181
+ Annotated[StrictFloat, Field(gt=0)],
4182
+ Tuple[
4183
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4184
+ ],
4185
+ ] = None,
4186
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4187
+ _content_type: Optional[StrictStr] = None,
4188
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4189
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4190
+ ) -> RESTResponseType:
4191
+ """Synchronous version of rotate_tokens_without_preload_content"""
4192
+ return async_to_sync(self._rotate_tokens_async_without_preload_content)(
4193
+ x_refresh_token=x_refresh_token,
4194
+ _request_timeout=_request_timeout,
4195
+ _request_auth=_request_auth,
4196
+ _content_type=_content_type,
4197
+ _headers=_headers,
4198
+ _host_index=_host_index,
4199
+ )
2291
4200
 
2292
4201
  def _rotate_tokens_serialize(
2293
4202
  self,
@@ -2344,7 +4253,137 @@ class AuthApi:
2344
4253
  )
2345
4254
 
2346
4255
  @validate_call
2347
- async def token_info(
4256
+ def token_info(
4257
+ self,
4258
+ x_refresh_token: Annotated[
4259
+ Optional[StrictStr],
4260
+ Field(description="The refresh token for rotating the access token."),
4261
+ ] = None,
4262
+ _request_timeout: Union[
4263
+ None,
4264
+ Annotated[StrictFloat, Field(gt=0)],
4265
+ Tuple[
4266
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4267
+ ],
4268
+ ] = None,
4269
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4270
+ _content_type: Optional[StrictStr] = None,
4271
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4272
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4273
+ ) -> TokenInfo200Response:
4274
+ """Token info
4275
+
4276
+ This method can work in both sync and async modes based on the is_sync flag.
4277
+ """
4278
+ if self.is_sync:
4279
+ return self._token_info_sync(
4280
+ x_refresh_token=x_refresh_token,
4281
+ _request_timeout=_request_timeout,
4282
+ _request_auth=_request_auth,
4283
+ _content_type=_content_type,
4284
+ _headers=_headers,
4285
+ _host_index=_host_index,
4286
+ )
4287
+
4288
+ else:
4289
+ return self._token_info_async(
4290
+ x_refresh_token=x_refresh_token,
4291
+ _request_timeout=_request_timeout,
4292
+ _request_auth=_request_auth,
4293
+ _content_type=_content_type,
4294
+ _headers=_headers,
4295
+ _host_index=_host_index,
4296
+ )
4297
+
4298
+ @validate_call
4299
+ def token_info_with_http_info(
4300
+ self,
4301
+ x_refresh_token: Annotated[
4302
+ Optional[StrictStr],
4303
+ Field(description="The refresh token for rotating the access token."),
4304
+ ] = None,
4305
+ _request_timeout: Union[
4306
+ None,
4307
+ Annotated[StrictFloat, Field(gt=0)],
4308
+ Tuple[
4309
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4310
+ ],
4311
+ ] = None,
4312
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4313
+ _content_type: Optional[StrictStr] = None,
4314
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4315
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4316
+ ) -> ApiResponse[TokenInfo200Response]:
4317
+ """Token info with HTTP info
4318
+
4319
+ This method can work in both sync and async modes based on the is_sync flag.
4320
+ """
4321
+ if self.is_sync:
4322
+ return self._token_info_sync_with_http_info(
4323
+ x_refresh_token=x_refresh_token,
4324
+ _request_timeout=_request_timeout,
4325
+ _request_auth=_request_auth,
4326
+ _content_type=_content_type,
4327
+ _headers=_headers,
4328
+ _host_index=_host_index,
4329
+ )
4330
+
4331
+ else:
4332
+ return self._token_info_async_with_http_info(
4333
+ x_refresh_token=x_refresh_token,
4334
+ _request_timeout=_request_timeout,
4335
+ _request_auth=_request_auth,
4336
+ _content_type=_content_type,
4337
+ _headers=_headers,
4338
+ _host_index=_host_index,
4339
+ )
4340
+
4341
+ @validate_call
4342
+ def token_info_without_preload_content(
4343
+ self,
4344
+ x_refresh_token: Annotated[
4345
+ Optional[StrictStr],
4346
+ Field(description="The refresh token for rotating the access token."),
4347
+ ] = None,
4348
+ _request_timeout: Union[
4349
+ None,
4350
+ Annotated[StrictFloat, Field(gt=0)],
4351
+ Tuple[
4352
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4353
+ ],
4354
+ ] = None,
4355
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4356
+ _content_type: Optional[StrictStr] = None,
4357
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4358
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4359
+ ) -> RESTResponseType:
4360
+ """Token info without preloading content
4361
+
4362
+ This method can work in both sync and async modes based on the is_sync flag.
4363
+ """
4364
+ if self.is_sync:
4365
+ return self._token_info_sync_without_preload_content(
4366
+ x_refresh_token=x_refresh_token,
4367
+ _request_timeout=_request_timeout,
4368
+ _request_auth=_request_auth,
4369
+ _content_type=_content_type,
4370
+ _headers=_headers,
4371
+ _host_index=_host_index,
4372
+ )
4373
+
4374
+ else:
4375
+ return self._token_info_async_without_preload_content(
4376
+ x_refresh_token=x_refresh_token,
4377
+ _request_timeout=_request_timeout,
4378
+ _request_auth=_request_auth,
4379
+ _content_type=_content_type,
4380
+ _headers=_headers,
4381
+ _host_index=_host_index,
4382
+ )
4383
+
4384
+ # Private async implementation methods
4385
+ @validate_call
4386
+ async def _token_info_async(
2348
4387
  self,
2349
4388
  x_refresh_token: Annotated[
2350
4389
  Optional[StrictStr],
@@ -2411,7 +4450,7 @@ class AuthApi:
2411
4450
  ).data
2412
4451
 
2413
4452
  @validate_call
2414
- async def token_info_with_http_info(
4453
+ async def _token_info_async_with_http_info(
2415
4454
  self,
2416
4455
  x_refresh_token: Annotated[
2417
4456
  Optional[StrictStr],
@@ -2473,12 +4512,11 @@ class AuthApi:
2473
4512
  )
2474
4513
  await response_data.read()
2475
4514
  return self.api_client.response_deserialize(
2476
- response_data=response_data,
2477
- response_types_map=_response_types_map,
4515
+ response_data=response_data, response_types_map=_response_types_map
2478
4516
  )
2479
4517
 
2480
4518
  @validate_call
2481
- async def token_info_without_preload_content(
4519
+ async def _token_info_async_without_preload_content(
2482
4520
  self,
2483
4521
  x_refresh_token: Annotated[
2484
4522
  Optional[StrictStr],
@@ -2538,7 +4576,95 @@ class AuthApi:
2538
4576
  response_data = await self.api_client.call_api(
2539
4577
  *_param, _request_timeout=_request_timeout
2540
4578
  )
2541
- return response_data.response
4579
+ return response_data
4580
+
4581
+ # Private sync implementation methods
4582
+ @validate_call
4583
+ def _token_info_sync(
4584
+ self,
4585
+ x_refresh_token: Annotated[
4586
+ Optional[StrictStr],
4587
+ Field(description="The refresh token for rotating the access token."),
4588
+ ] = None,
4589
+ _request_timeout: Union[
4590
+ None,
4591
+ Annotated[StrictFloat, Field(gt=0)],
4592
+ Tuple[
4593
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4594
+ ],
4595
+ ] = None,
4596
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4597
+ _content_type: Optional[StrictStr] = None,
4598
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4599
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4600
+ ) -> TokenInfo200Response:
4601
+ """Synchronous version of token_info"""
4602
+ return async_to_sync(self._token_info_async)(
4603
+ x_refresh_token=x_refresh_token,
4604
+ _request_timeout=_request_timeout,
4605
+ _request_auth=_request_auth,
4606
+ _content_type=_content_type,
4607
+ _headers=_headers,
4608
+ _host_index=_host_index,
4609
+ )
4610
+
4611
+ @validate_call
4612
+ def _token_info_sync_with_http_info(
4613
+ self,
4614
+ x_refresh_token: Annotated[
4615
+ Optional[StrictStr],
4616
+ Field(description="The refresh token for rotating the access token."),
4617
+ ] = None,
4618
+ _request_timeout: Union[
4619
+ None,
4620
+ Annotated[StrictFloat, Field(gt=0)],
4621
+ Tuple[
4622
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4623
+ ],
4624
+ ] = None,
4625
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4626
+ _content_type: Optional[StrictStr] = None,
4627
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4628
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4629
+ ) -> ApiResponse[TokenInfo200Response]:
4630
+ """Synchronous version of token_info_with_http_info"""
4631
+ return async_to_sync(self._token_info_async_with_http_info)(
4632
+ x_refresh_token=x_refresh_token,
4633
+ _request_timeout=_request_timeout,
4634
+ _request_auth=_request_auth,
4635
+ _content_type=_content_type,
4636
+ _headers=_headers,
4637
+ _host_index=_host_index,
4638
+ )
4639
+
4640
+ @validate_call
4641
+ def _token_info_sync_without_preload_content(
4642
+ self,
4643
+ x_refresh_token: Annotated[
4644
+ Optional[StrictStr],
4645
+ Field(description="The refresh token for rotating the access token."),
4646
+ ] = None,
4647
+ _request_timeout: Union[
4648
+ None,
4649
+ Annotated[StrictFloat, Field(gt=0)],
4650
+ Tuple[
4651
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4652
+ ],
4653
+ ] = None,
4654
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4655
+ _content_type: Optional[StrictStr] = None,
4656
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4657
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4658
+ ) -> RESTResponseType:
4659
+ """Synchronous version of token_info_without_preload_content"""
4660
+ return async_to_sync(self._token_info_async_without_preload_content)(
4661
+ x_refresh_token=x_refresh_token,
4662
+ _request_timeout=_request_timeout,
4663
+ _request_auth=_request_auth,
4664
+ _content_type=_content_type,
4665
+ _headers=_headers,
4666
+ _host_index=_host_index,
4667
+ )
2542
4668
 
2543
4669
  def _token_info_serialize(
2544
4670
  self,
@@ -2595,7 +4721,119 @@ class AuthApi:
2595
4721
  )
2596
4722
 
2597
4723
  @validate_call
2598
- async def verify(
4724
+ def verify(
4725
+ self,
4726
+ _request_timeout: Union[
4727
+ None,
4728
+ Annotated[StrictFloat, Field(gt=0)],
4729
+ Tuple[
4730
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4731
+ ],
4732
+ ] = None,
4733
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4734
+ _content_type: Optional[StrictStr] = None,
4735
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4736
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4737
+ ) -> Verify200Response:
4738
+ """Verify Bearer Token
4739
+
4740
+ This method can work in both sync and async modes based on the is_sync flag.
4741
+ """
4742
+ if self.is_sync:
4743
+ return self._verify_sync(
4744
+ _request_timeout=_request_timeout,
4745
+ _request_auth=_request_auth,
4746
+ _content_type=_content_type,
4747
+ _headers=_headers,
4748
+ _host_index=_host_index,
4749
+ )
4750
+
4751
+ else:
4752
+ return self._verify_async(
4753
+ _request_timeout=_request_timeout,
4754
+ _request_auth=_request_auth,
4755
+ _content_type=_content_type,
4756
+ _headers=_headers,
4757
+ _host_index=_host_index,
4758
+ )
4759
+
4760
+ @validate_call
4761
+ def verify_with_http_info(
4762
+ self,
4763
+ _request_timeout: Union[
4764
+ None,
4765
+ Annotated[StrictFloat, Field(gt=0)],
4766
+ Tuple[
4767
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4768
+ ],
4769
+ ] = None,
4770
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4771
+ _content_type: Optional[StrictStr] = None,
4772
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4773
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4774
+ ) -> ApiResponse[Verify200Response]:
4775
+ """Verify Bearer Token with HTTP info
4776
+
4777
+ This method can work in both sync and async modes based on the is_sync flag.
4778
+ """
4779
+ if self.is_sync:
4780
+ return self._verify_sync_with_http_info(
4781
+ _request_timeout=_request_timeout,
4782
+ _request_auth=_request_auth,
4783
+ _content_type=_content_type,
4784
+ _headers=_headers,
4785
+ _host_index=_host_index,
4786
+ )
4787
+
4788
+ else:
4789
+ return self._verify_async_with_http_info(
4790
+ _request_timeout=_request_timeout,
4791
+ _request_auth=_request_auth,
4792
+ _content_type=_content_type,
4793
+ _headers=_headers,
4794
+ _host_index=_host_index,
4795
+ )
4796
+
4797
+ @validate_call
4798
+ def verify_without_preload_content(
4799
+ self,
4800
+ _request_timeout: Union[
4801
+ None,
4802
+ Annotated[StrictFloat, Field(gt=0)],
4803
+ Tuple[
4804
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
4805
+ ],
4806
+ ] = None,
4807
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4808
+ _content_type: Optional[StrictStr] = None,
4809
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4810
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4811
+ ) -> RESTResponseType:
4812
+ """Verify Bearer Token without preloading content
4813
+
4814
+ This method can work in both sync and async modes based on the is_sync flag.
4815
+ """
4816
+ if self.is_sync:
4817
+ return self._verify_sync_without_preload_content(
4818
+ _request_timeout=_request_timeout,
4819
+ _request_auth=_request_auth,
4820
+ _content_type=_content_type,
4821
+ _headers=_headers,
4822
+ _host_index=_host_index,
4823
+ )
4824
+
4825
+ else:
4826
+ return self._verify_async_without_preload_content(
4827
+ _request_timeout=_request_timeout,
4828
+ _request_auth=_request_auth,
4829
+ _content_type=_content_type,
4830
+ _headers=_headers,
4831
+ _host_index=_host_index,
4832
+ )
4833
+
4834
+ # Private async implementation methods
4835
+ @validate_call
4836
+ async def _verify_async(
2599
4837
  self,
2600
4838
  _request_timeout: Union[
2601
4839
  None,
@@ -2655,7 +4893,7 @@ class AuthApi:
2655
4893
  ).data
2656
4894
 
2657
4895
  @validate_call
2658
- async def verify_with_http_info(
4896
+ async def _verify_async_with_http_info(
2659
4897
  self,
2660
4898
  _request_timeout: Union[
2661
4899
  None,
@@ -2710,12 +4948,11 @@ class AuthApi:
2710
4948
  )
2711
4949
  await response_data.read()
2712
4950
  return self.api_client.response_deserialize(
2713
- response_data=response_data,
2714
- response_types_map=_response_types_map,
4951
+ response_data=response_data, response_types_map=_response_types_map
2715
4952
  )
2716
4953
 
2717
4954
  @validate_call
2718
- async def verify_without_preload_content(
4955
+ async def _verify_async_without_preload_content(
2719
4956
  self,
2720
4957
  _request_timeout: Union[
2721
4958
  None,
@@ -2768,7 +5005,80 @@ class AuthApi:
2768
5005
  response_data = await self.api_client.call_api(
2769
5006
  *_param, _request_timeout=_request_timeout
2770
5007
  )
2771
- return response_data.response
5008
+ return response_data
5009
+
5010
+ # Private sync implementation methods
5011
+ @validate_call
5012
+ def _verify_sync(
5013
+ self,
5014
+ _request_timeout: Union[
5015
+ None,
5016
+ Annotated[StrictFloat, Field(gt=0)],
5017
+ Tuple[
5018
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5019
+ ],
5020
+ ] = None,
5021
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5022
+ _content_type: Optional[StrictStr] = None,
5023
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5024
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5025
+ ) -> Verify200Response:
5026
+ """Synchronous version of verify"""
5027
+ return async_to_sync(self._verify_async)(
5028
+ _request_timeout=_request_timeout,
5029
+ _request_auth=_request_auth,
5030
+ _content_type=_content_type,
5031
+ _headers=_headers,
5032
+ _host_index=_host_index,
5033
+ )
5034
+
5035
+ @validate_call
5036
+ def _verify_sync_with_http_info(
5037
+ self,
5038
+ _request_timeout: Union[
5039
+ None,
5040
+ Annotated[StrictFloat, Field(gt=0)],
5041
+ Tuple[
5042
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5043
+ ],
5044
+ ] = None,
5045
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5046
+ _content_type: Optional[StrictStr] = None,
5047
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5048
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5049
+ ) -> ApiResponse[Verify200Response]:
5050
+ """Synchronous version of verify_with_http_info"""
5051
+ return async_to_sync(self._verify_async_with_http_info)(
5052
+ _request_timeout=_request_timeout,
5053
+ _request_auth=_request_auth,
5054
+ _content_type=_content_type,
5055
+ _headers=_headers,
5056
+ _host_index=_host_index,
5057
+ )
5058
+
5059
+ @validate_call
5060
+ def _verify_sync_without_preload_content(
5061
+ self,
5062
+ _request_timeout: Union[
5063
+ None,
5064
+ Annotated[StrictFloat, Field(gt=0)],
5065
+ Tuple[
5066
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5067
+ ],
5068
+ ] = None,
5069
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5070
+ _content_type: Optional[StrictStr] = None,
5071
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5072
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5073
+ ) -> RESTResponseType:
5074
+ """Synchronous version of verify_without_preload_content"""
5075
+ return async_to_sync(self._verify_async_without_preload_content)(
5076
+ _request_timeout=_request_timeout,
5077
+ _request_auth=_request_auth,
5078
+ _content_type=_content_type,
5079
+ _headers=_headers,
5080
+ _host_index=_host_index,
5081
+ )
2772
5082
 
2773
5083
  def _verify_serialize(
2774
5084
  self,
@@ -2822,7 +5132,128 @@ class AuthApi:
2822
5132
  )
2823
5133
 
2824
5134
  @validate_call
2825
- async def verify_api_key(
5135
+ def verify_api_key(
5136
+ self,
5137
+ api_key: StrictStr,
5138
+ _request_timeout: Union[
5139
+ None,
5140
+ Annotated[StrictFloat, Field(gt=0)],
5141
+ Tuple[
5142
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5143
+ ],
5144
+ ] = None,
5145
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5146
+ _content_type: Optional[StrictStr] = None,
5147
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5148
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5149
+ ) -> Verify200Response:
5150
+ """Verify API Key
5151
+
5152
+ This method can work in both sync and async modes based on the is_sync flag.
5153
+ """
5154
+ if self.is_sync:
5155
+ return self._verify_api_key_sync(
5156
+ api_key=api_key,
5157
+ _request_timeout=_request_timeout,
5158
+ _request_auth=_request_auth,
5159
+ _content_type=_content_type,
5160
+ _headers=_headers,
5161
+ _host_index=_host_index,
5162
+ )
5163
+
5164
+ else:
5165
+ return self._verify_api_key_async(
5166
+ api_key=api_key,
5167
+ _request_timeout=_request_timeout,
5168
+ _request_auth=_request_auth,
5169
+ _content_type=_content_type,
5170
+ _headers=_headers,
5171
+ _host_index=_host_index,
5172
+ )
5173
+
5174
+ @validate_call
5175
+ def verify_api_key_with_http_info(
5176
+ self,
5177
+ api_key: StrictStr,
5178
+ _request_timeout: Union[
5179
+ None,
5180
+ Annotated[StrictFloat, Field(gt=0)],
5181
+ Tuple[
5182
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5183
+ ],
5184
+ ] = None,
5185
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5186
+ _content_type: Optional[StrictStr] = None,
5187
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5188
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5189
+ ) -> ApiResponse[Verify200Response]:
5190
+ """Verify API Key with HTTP info
5191
+
5192
+ This method can work in both sync and async modes based on the is_sync flag.
5193
+ """
5194
+ if self.is_sync:
5195
+ return self._verify_api_key_sync_with_http_info(
5196
+ api_key=api_key,
5197
+ _request_timeout=_request_timeout,
5198
+ _request_auth=_request_auth,
5199
+ _content_type=_content_type,
5200
+ _headers=_headers,
5201
+ _host_index=_host_index,
5202
+ )
5203
+
5204
+ else:
5205
+ return self._verify_api_key_async_with_http_info(
5206
+ api_key=api_key,
5207
+ _request_timeout=_request_timeout,
5208
+ _request_auth=_request_auth,
5209
+ _content_type=_content_type,
5210
+ _headers=_headers,
5211
+ _host_index=_host_index,
5212
+ )
5213
+
5214
+ @validate_call
5215
+ def verify_api_key_without_preload_content(
5216
+ self,
5217
+ api_key: StrictStr,
5218
+ _request_timeout: Union[
5219
+ None,
5220
+ Annotated[StrictFloat, Field(gt=0)],
5221
+ Tuple[
5222
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5223
+ ],
5224
+ ] = None,
5225
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5226
+ _content_type: Optional[StrictStr] = None,
5227
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5228
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5229
+ ) -> RESTResponseType:
5230
+ """Verify API Key without preloading content
5231
+
5232
+ This method can work in both sync and async modes based on the is_sync flag.
5233
+ """
5234
+ if self.is_sync:
5235
+ return self._verify_api_key_sync_without_preload_content(
5236
+ api_key=api_key,
5237
+ _request_timeout=_request_timeout,
5238
+ _request_auth=_request_auth,
5239
+ _content_type=_content_type,
5240
+ _headers=_headers,
5241
+ _host_index=_host_index,
5242
+ )
5243
+
5244
+ else:
5245
+ return self._verify_api_key_async_without_preload_content(
5246
+ api_key=api_key,
5247
+ _request_timeout=_request_timeout,
5248
+ _request_auth=_request_auth,
5249
+ _content_type=_content_type,
5250
+ _headers=_headers,
5251
+ _host_index=_host_index,
5252
+ )
5253
+
5254
+ # Private async implementation methods
5255
+ @validate_call
5256
+ async def _verify_api_key_async(
2826
5257
  self,
2827
5258
  api_key: StrictStr,
2828
5259
  _request_timeout: Union[
@@ -2886,7 +5317,7 @@ class AuthApi:
2886
5317
  ).data
2887
5318
 
2888
5319
  @validate_call
2889
- async def verify_api_key_with_http_info(
5320
+ async def _verify_api_key_async_with_http_info(
2890
5321
  self,
2891
5322
  api_key: StrictStr,
2892
5323
  _request_timeout: Union[
@@ -2945,12 +5376,11 @@ class AuthApi:
2945
5376
  )
2946
5377
  await response_data.read()
2947
5378
  return self.api_client.response_deserialize(
2948
- response_data=response_data,
2949
- response_types_map=_response_types_map,
5379
+ response_data=response_data, response_types_map=_response_types_map
2950
5380
  )
2951
5381
 
2952
5382
  @validate_call
2953
- async def verify_api_key_without_preload_content(
5383
+ async def _verify_api_key_async_without_preload_content(
2954
5384
  self,
2955
5385
  api_key: StrictStr,
2956
5386
  _request_timeout: Union[
@@ -3007,7 +5437,86 @@ class AuthApi:
3007
5437
  response_data = await self.api_client.call_api(
3008
5438
  *_param, _request_timeout=_request_timeout
3009
5439
  )
3010
- return response_data.response
5440
+ return response_data
5441
+
5442
+ # Private sync implementation methods
5443
+ @validate_call
5444
+ def _verify_api_key_sync(
5445
+ self,
5446
+ api_key: StrictStr,
5447
+ _request_timeout: Union[
5448
+ None,
5449
+ Annotated[StrictFloat, Field(gt=0)],
5450
+ Tuple[
5451
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5452
+ ],
5453
+ ] = None,
5454
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5455
+ _content_type: Optional[StrictStr] = None,
5456
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5457
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5458
+ ) -> Verify200Response:
5459
+ """Synchronous version of verify_api_key"""
5460
+ return async_to_sync(self._verify_api_key_async)(
5461
+ api_key=api_key,
5462
+ _request_timeout=_request_timeout,
5463
+ _request_auth=_request_auth,
5464
+ _content_type=_content_type,
5465
+ _headers=_headers,
5466
+ _host_index=_host_index,
5467
+ )
5468
+
5469
+ @validate_call
5470
+ def _verify_api_key_sync_with_http_info(
5471
+ self,
5472
+ api_key: StrictStr,
5473
+ _request_timeout: Union[
5474
+ None,
5475
+ Annotated[StrictFloat, Field(gt=0)],
5476
+ Tuple[
5477
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5478
+ ],
5479
+ ] = None,
5480
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5481
+ _content_type: Optional[StrictStr] = None,
5482
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5483
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5484
+ ) -> ApiResponse[Verify200Response]:
5485
+ """Synchronous version of verify_api_key_with_http_info"""
5486
+ return async_to_sync(self._verify_api_key_async_with_http_info)(
5487
+ api_key=api_key,
5488
+ _request_timeout=_request_timeout,
5489
+ _request_auth=_request_auth,
5490
+ _content_type=_content_type,
5491
+ _headers=_headers,
5492
+ _host_index=_host_index,
5493
+ )
5494
+
5495
+ @validate_call
5496
+ def _verify_api_key_sync_without_preload_content(
5497
+ self,
5498
+ api_key: StrictStr,
5499
+ _request_timeout: Union[
5500
+ None,
5501
+ Annotated[StrictFloat, Field(gt=0)],
5502
+ Tuple[
5503
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
5504
+ ],
5505
+ ] = None,
5506
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5507
+ _content_type: Optional[StrictStr] = None,
5508
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5509
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5510
+ ) -> RESTResponseType:
5511
+ """Synchronous version of verify_api_key_without_preload_content"""
5512
+ return async_to_sync(self._verify_api_key_async_without_preload_content)(
5513
+ api_key=api_key,
5514
+ _request_timeout=_request_timeout,
5515
+ _request_auth=_request_auth,
5516
+ _content_type=_content_type,
5517
+ _headers=_headers,
5518
+ _host_index=_host_index,
5519
+ )
3011
5520
 
3012
5521
  def _verify_api_key_serialize(
3013
5522
  self,