crypticorn 2.16.0__py3-none-any.whl → 2.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. crypticorn/__init__.py +2 -2
  2. crypticorn/auth/client/api/admin_api.py +397 -13
  3. crypticorn/auth/client/api/auth_api.py +3610 -341
  4. crypticorn/auth/client/api/service_api.py +249 -7
  5. crypticorn/auth/client/api/user_api.py +2295 -179
  6. crypticorn/auth/client/api/wallet_api.py +1468 -81
  7. crypticorn/auth/client/configuration.py +2 -2
  8. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  9. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  10. crypticorn/auth/client/rest.py +23 -4
  11. crypticorn/auth/main.py +8 -5
  12. crypticorn/cli/init.py +1 -1
  13. crypticorn/cli/templates/.env.docker.temp +3 -0
  14. crypticorn/cli/templates/.env.example.temp +4 -0
  15. crypticorn/cli/templates/Dockerfile +5 -2
  16. crypticorn/client.py +226 -59
  17. crypticorn/common/__init__.py +1 -0
  18. crypticorn/common/auth.py +45 -14
  19. crypticorn/common/decorators.py +1 -2
  20. crypticorn/common/enums.py +0 -2
  21. crypticorn/common/errors.py +10 -0
  22. crypticorn/common/metrics.py +30 -0
  23. crypticorn/common/middleware.py +94 -1
  24. crypticorn/common/pagination.py +252 -20
  25. crypticorn/common/router/admin_router.py +2 -2
  26. crypticorn/common/router/status_router.py +40 -2
  27. crypticorn/common/scopes.py +2 -2
  28. crypticorn/common/warnings.py +7 -0
  29. crypticorn/dex/__init__.py +6 -0
  30. crypticorn/dex/client/__init__.py +49 -0
  31. crypticorn/dex/client/api/__init__.py +6 -0
  32. crypticorn/dex/client/api/admin_api.py +2986 -0
  33. crypticorn/dex/client/api/signals_api.py +1798 -0
  34. crypticorn/dex/client/api/status_api.py +892 -0
  35. crypticorn/dex/client/api_client.py +758 -0
  36. crypticorn/dex/client/api_response.py +20 -0
  37. crypticorn/dex/client/configuration.py +620 -0
  38. crypticorn/dex/client/exceptions.py +220 -0
  39. crypticorn/dex/client/models/__init__.py +30 -0
  40. crypticorn/dex/client/models/api_error_identifier.py +121 -0
  41. crypticorn/dex/client/models/api_error_level.py +37 -0
  42. crypticorn/dex/client/models/api_error_type.py +37 -0
  43. crypticorn/dex/client/models/exception_detail.py +117 -0
  44. crypticorn/dex/client/models/log_level.py +38 -0
  45. crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
  46. crypticorn/dex/client/models/risk.py +86 -0
  47. crypticorn/dex/client/models/signal_overview_stats.py +158 -0
  48. crypticorn/dex/client/models/signal_volume.py +84 -0
  49. crypticorn/dex/client/models/signal_with_token.py +163 -0
  50. crypticorn/dex/client/models/token_data.py +127 -0
  51. crypticorn/dex/client/models/token_detail.py +116 -0
  52. crypticorn/dex/client/py.typed +0 -0
  53. crypticorn/dex/client/rest.py +217 -0
  54. crypticorn/dex/main.py +1 -0
  55. crypticorn/hive/client/api/admin_api.py +1173 -47
  56. crypticorn/hive/client/api/data_api.py +499 -17
  57. crypticorn/hive/client/api/models_api.py +1595 -87
  58. crypticorn/hive/client/api/status_api.py +397 -16
  59. crypticorn/hive/client/api_client.py +0 -5
  60. crypticorn/hive/client/models/api_error_identifier.py +1 -1
  61. crypticorn/hive/client/models/coin_info.py +1 -1
  62. crypticorn/hive/client/models/exception_detail.py +1 -1
  63. crypticorn/hive/client/models/target_info.py +1 -1
  64. crypticorn/hive/client/rest.py +23 -4
  65. crypticorn/hive/main.py +99 -25
  66. crypticorn/hive/utils.py +2 -2
  67. crypticorn/klines/client/api/admin_api.py +1173 -47
  68. crypticorn/klines/client/api/change_in_timeframe_api.py +269 -11
  69. crypticorn/klines/client/api/funding_rates_api.py +315 -11
  70. crypticorn/klines/client/api/ohlcv_data_api.py +390 -11
  71. crypticorn/klines/client/api/status_api.py +397 -16
  72. crypticorn/klines/client/api/symbols_api.py +216 -11
  73. crypticorn/klines/client/api/udf_api.py +1268 -51
  74. crypticorn/klines/client/api_client.py +0 -5
  75. crypticorn/klines/client/models/api_error_identifier.py +3 -1
  76. crypticorn/klines/client/models/exception_detail.py +1 -1
  77. crypticorn/klines/client/models/ohlcv.py +1 -1
  78. crypticorn/klines/client/models/symbol_group.py +1 -1
  79. crypticorn/klines/client/models/udf_config.py +1 -1
  80. crypticorn/klines/client/rest.py +23 -4
  81. crypticorn/klines/main.py +89 -12
  82. crypticorn/metrics/client/api/admin_api.py +1173 -47
  83. crypticorn/metrics/client/api/exchanges_api.py +1370 -145
  84. crypticorn/metrics/client/api/indicators_api.py +622 -17
  85. crypticorn/metrics/client/api/logs_api.py +296 -11
  86. crypticorn/metrics/client/api/marketcap_api.py +1207 -67
  87. crypticorn/metrics/client/api/markets_api.py +343 -11
  88. crypticorn/metrics/client/api/quote_currencies_api.py +228 -11
  89. crypticorn/metrics/client/api/status_api.py +397 -16
  90. crypticorn/metrics/client/api/tokens_api.py +382 -15
  91. crypticorn/metrics/client/api_client.py +0 -5
  92. crypticorn/metrics/client/configuration.py +4 -2
  93. crypticorn/metrics/client/models/exception_detail.py +1 -1
  94. crypticorn/metrics/client/models/exchange_mapping.py +1 -1
  95. crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
  96. crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
  97. crypticorn/metrics/client/models/ohlcv.py +1 -1
  98. crypticorn/metrics/client/rest.py +23 -4
  99. crypticorn/metrics/main.py +113 -19
  100. crypticorn/pay/client/api/admin_api.py +1585 -57
  101. crypticorn/pay/client/api/now_payments_api.py +961 -39
  102. crypticorn/pay/client/api/payments_api.py +562 -17
  103. crypticorn/pay/client/api/products_api.py +880 -30
  104. crypticorn/pay/client/api/status_api.py +397 -16
  105. crypticorn/pay/client/api_client.py +0 -5
  106. crypticorn/pay/client/configuration.py +2 -2
  107. crypticorn/pay/client/models/api_error_identifier.py +7 -7
  108. crypticorn/pay/client/models/exception_detail.py +1 -1
  109. crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
  110. crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
  111. crypticorn/pay/client/models/product.py +1 -1
  112. crypticorn/pay/client/models/product_create.py +1 -1
  113. crypticorn/pay/client/models/product_update.py +1 -1
  114. crypticorn/pay/client/models/scope.py +1 -0
  115. crypticorn/pay/client/rest.py +23 -4
  116. crypticorn/pay/main.py +10 -6
  117. crypticorn/trade/client/__init__.py +11 -1
  118. crypticorn/trade/client/api/__init__.py +0 -1
  119. crypticorn/trade/client/api/admin_api.py +1184 -55
  120. crypticorn/trade/client/api/api_keys_api.py +1678 -162
  121. crypticorn/trade/client/api/bots_api.py +7563 -187
  122. crypticorn/trade/client/api/exchanges_api.py +565 -19
  123. crypticorn/trade/client/api/notifications_api.py +1290 -116
  124. crypticorn/trade/client/api/orders_api.py +393 -55
  125. crypticorn/trade/client/api/status_api.py +397 -13
  126. crypticorn/trade/client/api/strategies_api.py +1133 -77
  127. crypticorn/trade/client/api/trading_actions_api.py +786 -65
  128. crypticorn/trade/client/models/__init__.py +11 -0
  129. crypticorn/trade/client/models/actions_count.py +88 -0
  130. crypticorn/trade/client/models/api_error_identifier.py +1 -0
  131. crypticorn/trade/client/models/bot.py +7 -18
  132. crypticorn/trade/client/models/bot_create.py +17 -1
  133. crypticorn/trade/client/models/bot_update.py +17 -1
  134. crypticorn/trade/client/models/exchange.py +6 -1
  135. crypticorn/trade/client/models/exchange_key.py +1 -1
  136. crypticorn/trade/client/models/exchange_key_balance.py +111 -0
  137. crypticorn/trade/client/models/exchange_key_create.py +17 -1
  138. crypticorn/trade/client/models/exchange_key_update.py +17 -1
  139. crypticorn/trade/client/models/execution_ids.py +1 -1
  140. crypticorn/trade/client/models/futures_balance.py +27 -25
  141. crypticorn/trade/client/models/notification.py +17 -1
  142. crypticorn/trade/client/models/notification_create.py +18 -2
  143. crypticorn/trade/client/models/notification_update.py +17 -1
  144. crypticorn/trade/client/models/orders_count.py +88 -0
  145. crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
  146. crypticorn/trade/client/models/paginated_response_order.py +134 -0
  147. crypticorn/trade/client/models/pn_l.py +95 -0
  148. crypticorn/trade/client/models/post_futures_action.py +1 -1
  149. crypticorn/trade/client/models/spot_balance.py +109 -0
  150. crypticorn/trade/client/models/strategy.py +22 -4
  151. crypticorn/trade/client/models/strategy_create.py +23 -5
  152. crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
  153. crypticorn/trade/client/models/strategy_update.py +19 -3
  154. crypticorn/trade/client/models/tpsl.py +4 -19
  155. crypticorn/trade/client/models/tpsl_create.py +6 -19
  156. crypticorn/trade/client/rest.py +23 -4
  157. crypticorn/trade/main.py +15 -12
  158. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/METADATA +65 -20
  159. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/RECORD +163 -128
  160. crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
  161. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/WHEEL +0 -0
  162. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/entry_points.txt +0 -0
  163. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/licenses/LICENSE +0 -0
  164. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/top_level.txt +0 -0
crypticorn/__init__.py CHANGED
@@ -14,6 +14,6 @@ warnings.filterwarnings("default", "", DeprecationWarning)
14
14
  configure_logging()
15
15
  logging.captureWarnings(True)
16
16
 
17
- from crypticorn.client import ApiClient
17
+ from crypticorn.client import AsyncClient, SyncClient, ApiClient
18
18
 
19
- __all__ = ["ApiClient"]
19
+ __all__ = ["AsyncClient", "SyncClient", "ApiClient"]
@@ -29,6 +29,24 @@ from crypticorn.auth.client.api_client import ApiClient, RequestSerialized
29
29
  from crypticorn.auth.client.api_response import ApiResponse
30
30
  from crypticorn.auth.client.rest import RESTResponseType
31
31
 
32
+ # Import async_to_sync for sync methods
33
+ try:
34
+ from asgiref.sync import async_to_sync
35
+
36
+ _HAS_ASGIREF = True
37
+ except ImportError:
38
+ _HAS_ASGIREF = False
39
+
40
+ def async_to_sync(async_func):
41
+ """Fallback decorator that raises an error if asgiref is not available."""
42
+
43
+ def wrapper(*args, **kwargs):
44
+ raise ImportError(
45
+ "asgiref is required for sync methods. Install with: pip install asgiref"
46
+ )
47
+
48
+ return wrapper
49
+
32
50
 
33
51
  class AdminApi:
34
52
  """NOTE: This class is auto generated by OpenAPI Generator
@@ -37,13 +55,126 @@ class AdminApi:
37
55
  Do not edit the class manually.
38
56
  """
39
57
 
40
- def __init__(self, api_client=None) -> None:
58
+ def __init__(self, api_client=None, is_sync: bool = False) -> None:
41
59
  if api_client is None:
42
60
  api_client = ApiClient.get_default()
43
61
  self.api_client = api_client
62
+ self.is_sync = is_sync
44
63
 
45
64
  @validate_call
46
- async def revoke_user_tokens(
65
+ def revoke_user_tokens(
66
+ self,
67
+ revoke_user_tokens_request: RevokeUserTokensRequest,
68
+ _request_timeout: Union[
69
+ None,
70
+ Annotated[StrictFloat, Field(gt=0)],
71
+ Tuple[
72
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
73
+ ],
74
+ ] = None,
75
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
76
+ _content_type: Optional[StrictStr] = None,
77
+ _headers: Optional[Dict[StrictStr, Any]] = None,
78
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
79
+ ) -> LogoutDefaultResponseIssuesInner:
80
+ """Revoke user tokens"""
81
+ if self.is_sync:
82
+ return self._revoke_user_tokens_sync(
83
+ revoke_user_tokens_request=revoke_user_tokens_request,
84
+ _request_timeout=_request_timeout,
85
+ _request_auth=_request_auth,
86
+ _content_type=_content_type,
87
+ _headers=_headers,
88
+ _host_index=_host_index,
89
+ )
90
+
91
+ else:
92
+ return self._revoke_user_tokens_async(
93
+ revoke_user_tokens_request=revoke_user_tokens_request,
94
+ _request_timeout=_request_timeout,
95
+ _request_auth=_request_auth,
96
+ _content_type=_content_type,
97
+ _headers=_headers,
98
+ _host_index=_host_index,
99
+ )
100
+
101
+ @validate_call
102
+ def revoke_user_tokens_with_http_info(
103
+ self,
104
+ revoke_user_tokens_request: RevokeUserTokensRequest,
105
+ _request_timeout: Union[
106
+ None,
107
+ Annotated[StrictFloat, Field(gt=0)],
108
+ Tuple[
109
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
110
+ ],
111
+ ] = None,
112
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
113
+ _content_type: Optional[StrictStr] = None,
114
+ _headers: Optional[Dict[StrictStr, Any]] = None,
115
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
116
+ ) -> ApiResponse[LogoutDefaultResponseIssuesInner]:
117
+ """Revoke user tokens with HTTP info"""
118
+ if self.is_sync:
119
+ return self._revoke_user_tokens_sync_with_http_info(
120
+ revoke_user_tokens_request=revoke_user_tokens_request,
121
+ _request_timeout=_request_timeout,
122
+ _request_auth=_request_auth,
123
+ _content_type=_content_type,
124
+ _headers=_headers,
125
+ _host_index=_host_index,
126
+ )
127
+
128
+ else:
129
+ return self._revoke_user_tokens_async_with_http_info(
130
+ revoke_user_tokens_request=revoke_user_tokens_request,
131
+ _request_timeout=_request_timeout,
132
+ _request_auth=_request_auth,
133
+ _content_type=_content_type,
134
+ _headers=_headers,
135
+ _host_index=_host_index,
136
+ )
137
+
138
+ @validate_call
139
+ def revoke_user_tokens_without_preload_content(
140
+ self,
141
+ revoke_user_tokens_request: RevokeUserTokensRequest,
142
+ _request_timeout: Union[
143
+ None,
144
+ Annotated[StrictFloat, Field(gt=0)],
145
+ Tuple[
146
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
147
+ ],
148
+ ] = None,
149
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
150
+ _content_type: Optional[StrictStr] = None,
151
+ _headers: Optional[Dict[StrictStr, Any]] = None,
152
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
153
+ ) -> RESTResponseType:
154
+ """Revoke user tokens without preloading content"""
155
+ if self.is_sync:
156
+ return self._revoke_user_tokens_sync_without_preload_content(
157
+ revoke_user_tokens_request=revoke_user_tokens_request,
158
+ _request_timeout=_request_timeout,
159
+ _request_auth=_request_auth,
160
+ _content_type=_content_type,
161
+ _headers=_headers,
162
+ _host_index=_host_index,
163
+ )
164
+
165
+ else:
166
+ return self._revoke_user_tokens_async_without_preload_content(
167
+ revoke_user_tokens_request=revoke_user_tokens_request,
168
+ _request_timeout=_request_timeout,
169
+ _request_auth=_request_auth,
170
+ _content_type=_content_type,
171
+ _headers=_headers,
172
+ _host_index=_host_index,
173
+ )
174
+
175
+ # Private async implementation methods
176
+ @validate_call
177
+ async def _revoke_user_tokens_async(
47
178
  self,
48
179
  revoke_user_tokens_request: RevokeUserTokensRequest,
49
180
  _request_timeout: Union[
@@ -107,7 +238,7 @@ class AdminApi:
107
238
  ).data
108
239
 
109
240
  @validate_call
110
- async def revoke_user_tokens_with_http_info(
241
+ async def _revoke_user_tokens_async_with_http_info(
111
242
  self,
112
243
  revoke_user_tokens_request: RevokeUserTokensRequest,
113
244
  _request_timeout: Union[
@@ -166,12 +297,11 @@ class AdminApi:
166
297
  )
167
298
  await response_data.read()
168
299
  return self.api_client.response_deserialize(
169
- response_data=response_data,
170
- response_types_map=_response_types_map,
300
+ response_data=response_data, response_types_map=_response_types_map
171
301
  )
172
302
 
173
303
  @validate_call
174
- async def revoke_user_tokens_without_preload_content(
304
+ async def _revoke_user_tokens_async_without_preload_content(
175
305
  self,
176
306
  revoke_user_tokens_request: RevokeUserTokensRequest,
177
307
  _request_timeout: Union[
@@ -228,7 +358,86 @@ class AdminApi:
228
358
  response_data = await self.api_client.call_api(
229
359
  *_param, _request_timeout=_request_timeout
230
360
  )
231
- return response_data.response
361
+ return response_data
362
+
363
+ # Private sync implementation methods
364
+ @validate_call
365
+ def _revoke_user_tokens_sync(
366
+ self,
367
+ revoke_user_tokens_request: RevokeUserTokensRequest,
368
+ _request_timeout: Union[
369
+ None,
370
+ Annotated[StrictFloat, Field(gt=0)],
371
+ Tuple[
372
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
373
+ ],
374
+ ] = None,
375
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
376
+ _content_type: Optional[StrictStr] = None,
377
+ _headers: Optional[Dict[StrictStr, Any]] = None,
378
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
379
+ ) -> LogoutDefaultResponseIssuesInner:
380
+ """Synchronous version of revoke_user_tokens"""
381
+ return async_to_sync(self._revoke_user_tokens_async)(
382
+ revoke_user_tokens_request=revoke_user_tokens_request,
383
+ _request_timeout=_request_timeout,
384
+ _request_auth=_request_auth,
385
+ _content_type=_content_type,
386
+ _headers=_headers,
387
+ _host_index=_host_index,
388
+ )
389
+
390
+ @validate_call
391
+ def _revoke_user_tokens_sync_with_http_info(
392
+ self,
393
+ revoke_user_tokens_request: RevokeUserTokensRequest,
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
+ ) -> ApiResponse[LogoutDefaultResponseIssuesInner]:
406
+ """Synchronous version of revoke_user_tokens_with_http_info"""
407
+ return async_to_sync(self._revoke_user_tokens_async_with_http_info)(
408
+ revoke_user_tokens_request=revoke_user_tokens_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 _revoke_user_tokens_sync_without_preload_content(
418
+ self,
419
+ revoke_user_tokens_request: RevokeUserTokensRequest,
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
+ ) -> RESTResponseType:
432
+ """Synchronous version of revoke_user_tokens_without_preload_content"""
433
+ return async_to_sync(self._revoke_user_tokens_async_without_preload_content)(
434
+ revoke_user_tokens_request=revoke_user_tokens_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
+ )
232
441
 
233
442
  def _revoke_user_tokens_serialize(
234
443
  self,
@@ -295,7 +504,110 @@ class AdminApi:
295
504
  )
296
505
 
297
506
  @validate_call
298
- async def user_list(
507
+ def user_list(
508
+ self,
509
+ _request_timeout: Union[
510
+ None,
511
+ Annotated[StrictFloat, Field(gt=0)],
512
+ Tuple[
513
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
514
+ ],
515
+ ] = None,
516
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
517
+ _content_type: Optional[StrictStr] = None,
518
+ _headers: Optional[Dict[StrictStr, Any]] = None,
519
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
520
+ ) -> List[Whoami200Response]:
521
+ """User List"""
522
+ if self.is_sync:
523
+ return self._user_list_sync(
524
+ _request_timeout=_request_timeout,
525
+ _request_auth=_request_auth,
526
+ _content_type=_content_type,
527
+ _headers=_headers,
528
+ _host_index=_host_index,
529
+ )
530
+
531
+ else:
532
+ return self._user_list_async(
533
+ _request_timeout=_request_timeout,
534
+ _request_auth=_request_auth,
535
+ _content_type=_content_type,
536
+ _headers=_headers,
537
+ _host_index=_host_index,
538
+ )
539
+
540
+ @validate_call
541
+ def user_list_with_http_info(
542
+ self,
543
+ _request_timeout: Union[
544
+ None,
545
+ Annotated[StrictFloat, Field(gt=0)],
546
+ Tuple[
547
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
548
+ ],
549
+ ] = None,
550
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
551
+ _content_type: Optional[StrictStr] = None,
552
+ _headers: Optional[Dict[StrictStr, Any]] = None,
553
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
554
+ ) -> ApiResponse[List[Whoami200Response]]:
555
+ """User List with HTTP info"""
556
+ if self.is_sync:
557
+ return self._user_list_sync_with_http_info(
558
+ _request_timeout=_request_timeout,
559
+ _request_auth=_request_auth,
560
+ _content_type=_content_type,
561
+ _headers=_headers,
562
+ _host_index=_host_index,
563
+ )
564
+
565
+ else:
566
+ return self._user_list_async_with_http_info(
567
+ _request_timeout=_request_timeout,
568
+ _request_auth=_request_auth,
569
+ _content_type=_content_type,
570
+ _headers=_headers,
571
+ _host_index=_host_index,
572
+ )
573
+
574
+ @validate_call
575
+ def user_list_without_preload_content(
576
+ self,
577
+ _request_timeout: Union[
578
+ None,
579
+ Annotated[StrictFloat, Field(gt=0)],
580
+ Tuple[
581
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
582
+ ],
583
+ ] = None,
584
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
585
+ _content_type: Optional[StrictStr] = None,
586
+ _headers: Optional[Dict[StrictStr, Any]] = None,
587
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
588
+ ) -> RESTResponseType:
589
+ """User List without preloading content"""
590
+ if self.is_sync:
591
+ return self._user_list_sync_without_preload_content(
592
+ _request_timeout=_request_timeout,
593
+ _request_auth=_request_auth,
594
+ _content_type=_content_type,
595
+ _headers=_headers,
596
+ _host_index=_host_index,
597
+ )
598
+
599
+ else:
600
+ return self._user_list_async_without_preload_content(
601
+ _request_timeout=_request_timeout,
602
+ _request_auth=_request_auth,
603
+ _content_type=_content_type,
604
+ _headers=_headers,
605
+ _host_index=_host_index,
606
+ )
607
+
608
+ # Private async implementation methods
609
+ @validate_call
610
+ async def _user_list_async(
299
611
  self,
300
612
  _request_timeout: Union[
301
613
  None,
@@ -355,7 +667,7 @@ class AdminApi:
355
667
  ).data
356
668
 
357
669
  @validate_call
358
- async def user_list_with_http_info(
670
+ async def _user_list_async_with_http_info(
359
671
  self,
360
672
  _request_timeout: Union[
361
673
  None,
@@ -410,12 +722,11 @@ class AdminApi:
410
722
  )
411
723
  await response_data.read()
412
724
  return self.api_client.response_deserialize(
413
- response_data=response_data,
414
- response_types_map=_response_types_map,
725
+ response_data=response_data, response_types_map=_response_types_map
415
726
  )
416
727
 
417
728
  @validate_call
418
- async def user_list_without_preload_content(
729
+ async def _user_list_async_without_preload_content(
419
730
  self,
420
731
  _request_timeout: Union[
421
732
  None,
@@ -468,7 +779,80 @@ class AdminApi:
468
779
  response_data = await self.api_client.call_api(
469
780
  *_param, _request_timeout=_request_timeout
470
781
  )
471
- return response_data.response
782
+ return response_data
783
+
784
+ # Private sync implementation methods
785
+ @validate_call
786
+ def _user_list_sync(
787
+ self,
788
+ _request_timeout: Union[
789
+ None,
790
+ Annotated[StrictFloat, Field(gt=0)],
791
+ Tuple[
792
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
793
+ ],
794
+ ] = None,
795
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
796
+ _content_type: Optional[StrictStr] = None,
797
+ _headers: Optional[Dict[StrictStr, Any]] = None,
798
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
799
+ ) -> List[Whoami200Response]:
800
+ """Synchronous version of user_list"""
801
+ return async_to_sync(self._user_list_async)(
802
+ _request_timeout=_request_timeout,
803
+ _request_auth=_request_auth,
804
+ _content_type=_content_type,
805
+ _headers=_headers,
806
+ _host_index=_host_index,
807
+ )
808
+
809
+ @validate_call
810
+ def _user_list_sync_with_http_info(
811
+ self,
812
+ _request_timeout: Union[
813
+ None,
814
+ Annotated[StrictFloat, Field(gt=0)],
815
+ Tuple[
816
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
817
+ ],
818
+ ] = None,
819
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
820
+ _content_type: Optional[StrictStr] = None,
821
+ _headers: Optional[Dict[StrictStr, Any]] = None,
822
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
823
+ ) -> ApiResponse[List[Whoami200Response]]:
824
+ """Synchronous version of user_list_with_http_info"""
825
+ return async_to_sync(self._user_list_async_with_http_info)(
826
+ _request_timeout=_request_timeout,
827
+ _request_auth=_request_auth,
828
+ _content_type=_content_type,
829
+ _headers=_headers,
830
+ _host_index=_host_index,
831
+ )
832
+
833
+ @validate_call
834
+ def _user_list_sync_without_preload_content(
835
+ self,
836
+ _request_timeout: Union[
837
+ None,
838
+ Annotated[StrictFloat, Field(gt=0)],
839
+ Tuple[
840
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
841
+ ],
842
+ ] = None,
843
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
844
+ _content_type: Optional[StrictStr] = None,
845
+ _headers: Optional[Dict[StrictStr, Any]] = None,
846
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
847
+ ) -> RESTResponseType:
848
+ """Synchronous version of user_list_without_preload_content"""
849
+ return async_to_sync(self._user_list_async_without_preload_content)(
850
+ _request_timeout=_request_timeout,
851
+ _request_auth=_request_auth,
852
+ _content_type=_content_type,
853
+ _headers=_headers,
854
+ _host_index=_host_index,
855
+ )
472
856
 
473
857
  def _user_list_serialize(
474
858
  self,