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
@@ -25,6 +25,24 @@ from crypticorn.trade.client.api_client import ApiClient, RequestSerialized
25
25
  from crypticorn.trade.client.api_response import ApiResponse
26
26
  from crypticorn.trade.client.rest import RESTResponseType
27
27
 
28
+ # Import async_to_sync for sync methods
29
+ try:
30
+ from asgiref.sync import async_to_sync
31
+
32
+ _HAS_ASGIREF = True
33
+ except ImportError:
34
+ _HAS_ASGIREF = False
35
+
36
+ def async_to_sync(async_func):
37
+ """Fallback decorator that raises an error if asgiref is not available."""
38
+
39
+ def wrapper(*args, **kwargs):
40
+ raise ImportError(
41
+ "asgiref is required for sync methods. Install with: pip install asgiref"
42
+ )
43
+
44
+ return wrapper
45
+
28
46
 
29
47
  class AdminApi:
30
48
  """NOTE: This class is auto generated by OpenAPI Generator
@@ -33,13 +51,117 @@ class AdminApi:
33
51
  Do not edit the class manually.
34
52
  """
35
53
 
36
- def __init__(self, api_client=None) -> None:
54
+ def __init__(self, api_client=None, is_sync: bool = False) -> None:
37
55
  if api_client is None:
38
56
  api_client = ApiClient.get_default()
39
57
  self.api_client = api_client
58
+ self.is_sync = is_sync
40
59
 
41
60
  @validate_call
42
- async def get_container_limits(
61
+ def get_container_limits(
62
+ self,
63
+ _request_timeout: Union[
64
+ None,
65
+ Annotated[StrictFloat, Field(gt=0)],
66
+ Tuple[
67
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
68
+ ],
69
+ ] = None,
70
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
71
+ _content_type: Optional[StrictStr] = None,
72
+ _headers: Optional[Dict[StrictStr, Any]] = None,
73
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
74
+ ) -> Dict[str, object]:
75
+ """Get Container Limits"""
76
+ if self.is_sync:
77
+ return self._get_container_limits_sync(
78
+ _request_timeout=_request_timeout,
79
+ _request_auth=_request_auth,
80
+ _content_type=_content_type,
81
+ _headers=_headers,
82
+ _host_index=_host_index,
83
+ )
84
+
85
+ else:
86
+ return self._get_container_limits_async(
87
+ _request_timeout=_request_timeout,
88
+ _request_auth=_request_auth,
89
+ _content_type=_content_type,
90
+ _headers=_headers,
91
+ _host_index=_host_index,
92
+ )
93
+
94
+ @validate_call
95
+ def get_container_limits_with_http_info(
96
+ self,
97
+ _request_timeout: Union[
98
+ None,
99
+ Annotated[StrictFloat, Field(gt=0)],
100
+ Tuple[
101
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
102
+ ],
103
+ ] = None,
104
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
105
+ _content_type: Optional[StrictStr] = None,
106
+ _headers: Optional[Dict[StrictStr, Any]] = None,
107
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
108
+ ) -> ApiResponse[Dict[str, object]]:
109
+ """Get Container Limits with HTTP info"""
110
+ if self.is_sync:
111
+ return self._get_container_limits_sync_with_http_info(
112
+ _request_timeout=_request_timeout,
113
+ _request_auth=_request_auth,
114
+ _content_type=_content_type,
115
+ _headers=_headers,
116
+ _host_index=_host_index,
117
+ )
118
+
119
+ else:
120
+ return self._get_container_limits_async_with_http_info(
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
+ @validate_call
129
+ def get_container_limits_without_preload_content(
130
+ self,
131
+ _request_timeout: Union[
132
+ None,
133
+ Annotated[StrictFloat, Field(gt=0)],
134
+ Tuple[
135
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
136
+ ],
137
+ ] = None,
138
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
139
+ _content_type: Optional[StrictStr] = None,
140
+ _headers: Optional[Dict[StrictStr, Any]] = None,
141
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
142
+ ) -> RESTResponseType:
143
+ """Get Container Limits without preloading content"""
144
+ if self.is_sync:
145
+ return self._get_container_limits_sync_without_preload_content(
146
+ _request_timeout=_request_timeout,
147
+ _request_auth=_request_auth,
148
+ _content_type=_content_type,
149
+ _headers=_headers,
150
+ _host_index=_host_index,
151
+ )
152
+
153
+ else:
154
+ return self._get_container_limits_async_without_preload_content(
155
+ _request_timeout=_request_timeout,
156
+ _request_auth=_request_auth,
157
+ _content_type=_content_type,
158
+ _headers=_headers,
159
+ _host_index=_host_index,
160
+ )
161
+
162
+ # Private async implementation methods
163
+ @validate_call
164
+ async def _get_container_limits_async(
43
165
  self,
44
166
  _request_timeout: Union[
45
167
  None,
@@ -99,7 +221,7 @@ class AdminApi:
99
221
  ).data
100
222
 
101
223
  @validate_call
102
- async def get_container_limits_with_http_info(
224
+ async def _get_container_limits_async_with_http_info(
103
225
  self,
104
226
  _request_timeout: Union[
105
227
  None,
@@ -154,12 +276,11 @@ class AdminApi:
154
276
  )
155
277
  await response_data.read()
156
278
  return self.api_client.response_deserialize(
157
- response_data=response_data,
158
- response_types_map=_response_types_map,
279
+ response_data=response_data, response_types_map=_response_types_map
159
280
  )
160
281
 
161
282
  @validate_call
162
- async def get_container_limits_without_preload_content(
283
+ async def _get_container_limits_async_without_preload_content(
163
284
  self,
164
285
  _request_timeout: Union[
165
286
  None,
@@ -212,7 +333,80 @@ class AdminApi:
212
333
  response_data = await self.api_client.call_api(
213
334
  *_param, _request_timeout=_request_timeout
214
335
  )
215
- return response_data.response
336
+ return response_data
337
+
338
+ # Private sync implementation methods
339
+ @validate_call
340
+ def _get_container_limits_sync(
341
+ self,
342
+ _request_timeout: Union[
343
+ None,
344
+ Annotated[StrictFloat, Field(gt=0)],
345
+ Tuple[
346
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
347
+ ],
348
+ ] = None,
349
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
350
+ _content_type: Optional[StrictStr] = None,
351
+ _headers: Optional[Dict[StrictStr, Any]] = None,
352
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
353
+ ) -> Dict[str, object]:
354
+ """Synchronous version of get_container_limits"""
355
+ return async_to_sync(self._get_container_limits_async)(
356
+ _request_timeout=_request_timeout,
357
+ _request_auth=_request_auth,
358
+ _content_type=_content_type,
359
+ _headers=_headers,
360
+ _host_index=_host_index,
361
+ )
362
+
363
+ @validate_call
364
+ def _get_container_limits_sync_with_http_info(
365
+ self,
366
+ _request_timeout: Union[
367
+ None,
368
+ Annotated[StrictFloat, Field(gt=0)],
369
+ Tuple[
370
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
371
+ ],
372
+ ] = None,
373
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
374
+ _content_type: Optional[StrictStr] = None,
375
+ _headers: Optional[Dict[StrictStr, Any]] = None,
376
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
377
+ ) -> ApiResponse[Dict[str, object]]:
378
+ """Synchronous version of get_container_limits_with_http_info"""
379
+ return async_to_sync(self._get_container_limits_async_with_http_info)(
380
+ _request_timeout=_request_timeout,
381
+ _request_auth=_request_auth,
382
+ _content_type=_content_type,
383
+ _headers=_headers,
384
+ _host_index=_host_index,
385
+ )
386
+
387
+ @validate_call
388
+ def _get_container_limits_sync_without_preload_content(
389
+ self,
390
+ _request_timeout: Union[
391
+ None,
392
+ Annotated[StrictFloat, Field(gt=0)],
393
+ Tuple[
394
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
395
+ ],
396
+ ] = None,
397
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
398
+ _content_type: Optional[StrictStr] = None,
399
+ _headers: Optional[Dict[StrictStr, Any]] = None,
400
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
401
+ ) -> RESTResponseType:
402
+ """Synchronous version of get_container_limits_without_preload_content"""
403
+ return async_to_sync(self._get_container_limits_async_without_preload_content)(
404
+ _request_timeout=_request_timeout,
405
+ _request_auth=_request_auth,
406
+ _content_type=_content_type,
407
+ _headers=_headers,
408
+ _host_index=_host_index,
409
+ )
216
410
 
217
411
  def _get_container_limits_serialize(
218
412
  self,
@@ -266,10 +460,10 @@ class AdminApi:
266
460
  )
267
461
 
268
462
  @validate_call
269
- async def get_dependencies(
463
+ def get_dependencies(
270
464
  self,
271
465
  include: Annotated[
272
- Optional[List[StrictStr]],
466
+ Optional[List[Optional[StrictStr]]],
273
467
  Field(
274
468
  description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
275
469
  ),
@@ -285,13 +479,140 @@ class AdminApi:
285
479
  _content_type: Optional[StrictStr] = None,
286
480
  _headers: Optional[Dict[StrictStr, Any]] = None,
287
481
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
288
- ) -> Dict[str, str]:
482
+ ) -> Dict[str, Optional[str]]:
483
+ """List Installed Packages"""
484
+ if self.is_sync:
485
+ return self._get_dependencies_sync(
486
+ include=include,
487
+ _request_timeout=_request_timeout,
488
+ _request_auth=_request_auth,
489
+ _content_type=_content_type,
490
+ _headers=_headers,
491
+ _host_index=_host_index,
492
+ )
493
+
494
+ else:
495
+ return self._get_dependencies_async(
496
+ include=include,
497
+ _request_timeout=_request_timeout,
498
+ _request_auth=_request_auth,
499
+ _content_type=_content_type,
500
+ _headers=_headers,
501
+ _host_index=_host_index,
502
+ )
503
+
504
+ @validate_call
505
+ def get_dependencies_with_http_info(
506
+ self,
507
+ include: Annotated[
508
+ Optional[List[Optional[StrictStr]]],
509
+ Field(
510
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
511
+ ),
512
+ ] = None,
513
+ _request_timeout: Union[
514
+ None,
515
+ Annotated[StrictFloat, Field(gt=0)],
516
+ Tuple[
517
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
518
+ ],
519
+ ] = None,
520
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
521
+ _content_type: Optional[StrictStr] = None,
522
+ _headers: Optional[Dict[StrictStr, Any]] = None,
523
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
524
+ ) -> ApiResponse[Dict[str, Optional[str]]]:
525
+ """List Installed Packages with HTTP info"""
526
+ if self.is_sync:
527
+ return self._get_dependencies_sync_with_http_info(
528
+ include=include,
529
+ _request_timeout=_request_timeout,
530
+ _request_auth=_request_auth,
531
+ _content_type=_content_type,
532
+ _headers=_headers,
533
+ _host_index=_host_index,
534
+ )
535
+
536
+ else:
537
+ return self._get_dependencies_async_with_http_info(
538
+ include=include,
539
+ _request_timeout=_request_timeout,
540
+ _request_auth=_request_auth,
541
+ _content_type=_content_type,
542
+ _headers=_headers,
543
+ _host_index=_host_index,
544
+ )
545
+
546
+ @validate_call
547
+ def get_dependencies_without_preload_content(
548
+ self,
549
+ include: Annotated[
550
+ Optional[List[Optional[StrictStr]]],
551
+ Field(
552
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
553
+ ),
554
+ ] = None,
555
+ _request_timeout: Union[
556
+ None,
557
+ Annotated[StrictFloat, Field(gt=0)],
558
+ Tuple[
559
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
560
+ ],
561
+ ] = None,
562
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
563
+ _content_type: Optional[StrictStr] = None,
564
+ _headers: Optional[Dict[StrictStr, Any]] = None,
565
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
566
+ ) -> RESTResponseType:
567
+ """List Installed Packages without preloading content"""
568
+ if self.is_sync:
569
+ return self._get_dependencies_sync_without_preload_content(
570
+ include=include,
571
+ _request_timeout=_request_timeout,
572
+ _request_auth=_request_auth,
573
+ _content_type=_content_type,
574
+ _headers=_headers,
575
+ _host_index=_host_index,
576
+ )
577
+
578
+ else:
579
+ return self._get_dependencies_async_without_preload_content(
580
+ include=include,
581
+ _request_timeout=_request_timeout,
582
+ _request_auth=_request_auth,
583
+ _content_type=_content_type,
584
+ _headers=_headers,
585
+ _host_index=_host_index,
586
+ )
587
+
588
+ # Private async implementation methods
589
+ @validate_call
590
+ async def _get_dependencies_async(
591
+ self,
592
+ include: Annotated[
593
+ Optional[List[Optional[StrictStr]]],
594
+ Field(
595
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
596
+ ),
597
+ ] = None,
598
+ _request_timeout: Union[
599
+ None,
600
+ Annotated[StrictFloat, Field(gt=0)],
601
+ Tuple[
602
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
603
+ ],
604
+ ] = None,
605
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
606
+ _content_type: Optional[StrictStr] = None,
607
+ _headers: Optional[Dict[StrictStr, Any]] = None,
608
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
609
+ ) -> Dict[str, Optional[str]]:
289
610
  """List Installed Packages
290
611
 
291
612
  Return a list of installed packages and versions. The include parameter accepts regex patterns to match against package names. For example: - crypticorn.* will match all packages starting with 'crypticorn' - .*tic.* will match all packages containing 'tic' in their name
292
613
 
293
614
  :param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
294
- :type include: List[str]
615
+ :type include: List[Optional[str]]
295
616
  :param _request_timeout: timeout setting for this request. If one
296
617
  number provided, it will be total request
297
618
  timeout. It can also be a pair (tuple) of
@@ -323,7 +644,7 @@ class AdminApi:
323
644
  )
324
645
 
325
646
  _response_types_map: Dict[str, Optional[str]] = {
326
- "200": "Dict[str, str]",
647
+ "200": "Dict[str, Optional[str]]",
327
648
  }
328
649
  response_data = await self.api_client.call_api(
329
650
  *_param, _request_timeout=_request_timeout
@@ -335,10 +656,10 @@ class AdminApi:
335
656
  ).data
336
657
 
337
658
  @validate_call
338
- async def get_dependencies_with_http_info(
659
+ async def _get_dependencies_async_with_http_info(
339
660
  self,
340
661
  include: Annotated[
341
- Optional[List[StrictStr]],
662
+ Optional[List[Optional[StrictStr]]],
342
663
  Field(
343
664
  description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
344
665
  ),
@@ -354,13 +675,13 @@ class AdminApi:
354
675
  _content_type: Optional[StrictStr] = None,
355
676
  _headers: Optional[Dict[StrictStr, Any]] = None,
356
677
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
357
- ) -> ApiResponse[Dict[str, str]]:
678
+ ) -> ApiResponse[Dict[str, Optional[str]]]:
358
679
  """List Installed Packages
359
680
 
360
681
  Return a list of installed packages and versions. The include parameter accepts regex patterns to match against package names. For example: - crypticorn.* will match all packages starting with 'crypticorn' - .*tic.* will match all packages containing 'tic' in their name
361
682
 
362
683
  :param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
363
- :type include: List[str]
684
+ :type include: List[Optional[str]]
364
685
  :param _request_timeout: timeout setting for this request. If one
365
686
  number provided, it will be total request
366
687
  timeout. It can also be a pair (tuple) of
@@ -392,22 +713,21 @@ class AdminApi:
392
713
  )
393
714
 
394
715
  _response_types_map: Dict[str, Optional[str]] = {
395
- "200": "Dict[str, str]",
716
+ "200": "Dict[str, Optional[str]]",
396
717
  }
397
718
  response_data = await self.api_client.call_api(
398
719
  *_param, _request_timeout=_request_timeout
399
720
  )
400
721
  await response_data.read()
401
722
  return self.api_client.response_deserialize(
402
- response_data=response_data,
403
- response_types_map=_response_types_map,
723
+ response_data=response_data, response_types_map=_response_types_map
404
724
  )
405
725
 
406
726
  @validate_call
407
- async def get_dependencies_without_preload_content(
727
+ async def _get_dependencies_async_without_preload_content(
408
728
  self,
409
729
  include: Annotated[
410
- Optional[List[StrictStr]],
730
+ Optional[List[Optional[StrictStr]]],
411
731
  Field(
412
732
  description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
413
733
  ),
@@ -429,7 +749,7 @@ class AdminApi:
429
749
  Return a list of installed packages and versions. The include parameter accepts regex patterns to match against package names. For example: - crypticorn.* will match all packages starting with 'crypticorn' - .*tic.* will match all packages containing 'tic' in their name
430
750
 
431
751
  :param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
432
- :type include: List[str]
752
+ :type include: List[Optional[str]]
433
753
  :param _request_timeout: timeout setting for this request. If one
434
754
  number provided, it will be total request
435
755
  timeout. It can also be a pair (tuple) of
@@ -461,12 +781,106 @@ class AdminApi:
461
781
  )
462
782
 
463
783
  _response_types_map: Dict[str, Optional[str]] = {
464
- "200": "Dict[str, str]",
784
+ "200": "Dict[str, Optional[str]]",
465
785
  }
466
786
  response_data = await self.api_client.call_api(
467
787
  *_param, _request_timeout=_request_timeout
468
788
  )
469
- return response_data.response
789
+ return response_data
790
+
791
+ # Private sync implementation methods
792
+ @validate_call
793
+ def _get_dependencies_sync(
794
+ self,
795
+ include: Annotated[
796
+ Optional[List[Optional[StrictStr]]],
797
+ Field(
798
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
799
+ ),
800
+ ] = None,
801
+ _request_timeout: Union[
802
+ None,
803
+ Annotated[StrictFloat, Field(gt=0)],
804
+ Tuple[
805
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
806
+ ],
807
+ ] = None,
808
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
809
+ _content_type: Optional[StrictStr] = None,
810
+ _headers: Optional[Dict[StrictStr, Any]] = None,
811
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
812
+ ) -> Dict[str, Optional[str]]:
813
+ """Synchronous version of get_dependencies"""
814
+ return async_to_sync(self._get_dependencies_async)(
815
+ include=include,
816
+ _request_timeout=_request_timeout,
817
+ _request_auth=_request_auth,
818
+ _content_type=_content_type,
819
+ _headers=_headers,
820
+ _host_index=_host_index,
821
+ )
822
+
823
+ @validate_call
824
+ def _get_dependencies_sync_with_http_info(
825
+ self,
826
+ include: Annotated[
827
+ Optional[List[Optional[StrictStr]]],
828
+ Field(
829
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
830
+ ),
831
+ ] = None,
832
+ _request_timeout: Union[
833
+ None,
834
+ Annotated[StrictFloat, Field(gt=0)],
835
+ Tuple[
836
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
837
+ ],
838
+ ] = None,
839
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
840
+ _content_type: Optional[StrictStr] = None,
841
+ _headers: Optional[Dict[StrictStr, Any]] = None,
842
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
843
+ ) -> ApiResponse[Dict[str, Optional[str]]]:
844
+ """Synchronous version of get_dependencies_with_http_info"""
845
+ return async_to_sync(self._get_dependencies_async_with_http_info)(
846
+ include=include,
847
+ _request_timeout=_request_timeout,
848
+ _request_auth=_request_auth,
849
+ _content_type=_content_type,
850
+ _headers=_headers,
851
+ _host_index=_host_index,
852
+ )
853
+
854
+ @validate_call
855
+ def _get_dependencies_sync_without_preload_content(
856
+ self,
857
+ include: Annotated[
858
+ Optional[List[Optional[StrictStr]]],
859
+ Field(
860
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
861
+ ),
862
+ ] = None,
863
+ _request_timeout: Union[
864
+ None,
865
+ Annotated[StrictFloat, Field(gt=0)],
866
+ Tuple[
867
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
868
+ ],
869
+ ] = None,
870
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
871
+ _content_type: Optional[StrictStr] = None,
872
+ _headers: Optional[Dict[StrictStr, Any]] = None,
873
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
874
+ ) -> RESTResponseType:
875
+ """Synchronous version of get_dependencies_without_preload_content"""
876
+ return async_to_sync(self._get_dependencies_async_without_preload_content)(
877
+ include=include,
878
+ _request_timeout=_request_timeout,
879
+ _request_auth=_request_auth,
880
+ _content_type=_content_type,
881
+ _headers=_headers,
882
+ _host_index=_host_index,
883
+ )
470
884
 
471
885
  def _get_dependencies_serialize(
472
886
  self,
@@ -527,7 +941,110 @@ class AdminApi:
527
941
  )
528
942
 
529
943
  @validate_call
530
- async def get_log_level(
944
+ def get_log_level(
945
+ self,
946
+ _request_timeout: Union[
947
+ None,
948
+ Annotated[StrictFloat, Field(gt=0)],
949
+ Tuple[
950
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
951
+ ],
952
+ ] = None,
953
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
954
+ _content_type: Optional[StrictStr] = None,
955
+ _headers: Optional[Dict[StrictStr, Any]] = None,
956
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
957
+ ) -> LogLevel:
958
+ """Get Logging Level"""
959
+ if self.is_sync:
960
+ return self._get_log_level_sync(
961
+ _request_timeout=_request_timeout,
962
+ _request_auth=_request_auth,
963
+ _content_type=_content_type,
964
+ _headers=_headers,
965
+ _host_index=_host_index,
966
+ )
967
+
968
+ else:
969
+ return self._get_log_level_async(
970
+ _request_timeout=_request_timeout,
971
+ _request_auth=_request_auth,
972
+ _content_type=_content_type,
973
+ _headers=_headers,
974
+ _host_index=_host_index,
975
+ )
976
+
977
+ @validate_call
978
+ def get_log_level_with_http_info(
979
+ self,
980
+ _request_timeout: Union[
981
+ None,
982
+ Annotated[StrictFloat, Field(gt=0)],
983
+ Tuple[
984
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
985
+ ],
986
+ ] = None,
987
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
988
+ _content_type: Optional[StrictStr] = None,
989
+ _headers: Optional[Dict[StrictStr, Any]] = None,
990
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
991
+ ) -> ApiResponse[LogLevel]:
992
+ """Get Logging Level with HTTP info"""
993
+ if self.is_sync:
994
+ return self._get_log_level_sync_with_http_info(
995
+ _request_timeout=_request_timeout,
996
+ _request_auth=_request_auth,
997
+ _content_type=_content_type,
998
+ _headers=_headers,
999
+ _host_index=_host_index,
1000
+ )
1001
+
1002
+ else:
1003
+ return self._get_log_level_async_with_http_info(
1004
+ _request_timeout=_request_timeout,
1005
+ _request_auth=_request_auth,
1006
+ _content_type=_content_type,
1007
+ _headers=_headers,
1008
+ _host_index=_host_index,
1009
+ )
1010
+
1011
+ @validate_call
1012
+ def get_log_level_without_preload_content(
1013
+ self,
1014
+ _request_timeout: Union[
1015
+ None,
1016
+ Annotated[StrictFloat, Field(gt=0)],
1017
+ Tuple[
1018
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1019
+ ],
1020
+ ] = None,
1021
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1022
+ _content_type: Optional[StrictStr] = None,
1023
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1024
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1025
+ ) -> RESTResponseType:
1026
+ """Get Logging Level without preloading content"""
1027
+ if self.is_sync:
1028
+ return self._get_log_level_sync_without_preload_content(
1029
+ _request_timeout=_request_timeout,
1030
+ _request_auth=_request_auth,
1031
+ _content_type=_content_type,
1032
+ _headers=_headers,
1033
+ _host_index=_host_index,
1034
+ )
1035
+
1036
+ else:
1037
+ return self._get_log_level_async_without_preload_content(
1038
+ _request_timeout=_request_timeout,
1039
+ _request_auth=_request_auth,
1040
+ _content_type=_content_type,
1041
+ _headers=_headers,
1042
+ _host_index=_host_index,
1043
+ )
1044
+
1045
+ # Private async implementation methods
1046
+ @validate_call
1047
+ async def _get_log_level_async(
531
1048
  self,
532
1049
  _request_timeout: Union[
533
1050
  None,
@@ -588,7 +1105,7 @@ class AdminApi:
588
1105
  ).data
589
1106
 
590
1107
  @validate_call
591
- async def get_log_level_with_http_info(
1108
+ async def _get_log_level_async_with_http_info(
592
1109
  self,
593
1110
  _request_timeout: Union[
594
1111
  None,
@@ -644,12 +1161,11 @@ class AdminApi:
644
1161
  )
645
1162
  await response_data.read()
646
1163
  return self.api_client.response_deserialize(
647
- response_data=response_data,
648
- response_types_map=_response_types_map,
1164
+ response_data=response_data, response_types_map=_response_types_map
649
1165
  )
650
1166
 
651
1167
  @validate_call
652
- async def get_log_level_without_preload_content(
1168
+ async def _get_log_level_async_without_preload_content(
653
1169
  self,
654
1170
  _request_timeout: Union[
655
1171
  None,
@@ -703,7 +1219,80 @@ class AdminApi:
703
1219
  response_data = await self.api_client.call_api(
704
1220
  *_param, _request_timeout=_request_timeout
705
1221
  )
706
- return response_data.response
1222
+ return response_data
1223
+
1224
+ # Private sync implementation methods
1225
+ @validate_call
1226
+ def _get_log_level_sync(
1227
+ self,
1228
+ _request_timeout: Union[
1229
+ None,
1230
+ Annotated[StrictFloat, Field(gt=0)],
1231
+ Tuple[
1232
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1233
+ ],
1234
+ ] = None,
1235
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1236
+ _content_type: Optional[StrictStr] = None,
1237
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1238
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1239
+ ) -> LogLevel:
1240
+ """Synchronous version of get_log_level"""
1241
+ return async_to_sync(self._get_log_level_async)(
1242
+ _request_timeout=_request_timeout,
1243
+ _request_auth=_request_auth,
1244
+ _content_type=_content_type,
1245
+ _headers=_headers,
1246
+ _host_index=_host_index,
1247
+ )
1248
+
1249
+ @validate_call
1250
+ def _get_log_level_sync_with_http_info(
1251
+ self,
1252
+ _request_timeout: Union[
1253
+ None,
1254
+ Annotated[StrictFloat, Field(gt=0)],
1255
+ Tuple[
1256
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1257
+ ],
1258
+ ] = None,
1259
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1260
+ _content_type: Optional[StrictStr] = None,
1261
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1262
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1263
+ ) -> ApiResponse[LogLevel]:
1264
+ """Synchronous version of get_log_level_with_http_info"""
1265
+ return async_to_sync(self._get_log_level_async_with_http_info)(
1266
+ _request_timeout=_request_timeout,
1267
+ _request_auth=_request_auth,
1268
+ _content_type=_content_type,
1269
+ _headers=_headers,
1270
+ _host_index=_host_index,
1271
+ )
1272
+
1273
+ @validate_call
1274
+ def _get_log_level_sync_without_preload_content(
1275
+ self,
1276
+ _request_timeout: Union[
1277
+ None,
1278
+ Annotated[StrictFloat, Field(gt=0)],
1279
+ Tuple[
1280
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1281
+ ],
1282
+ ] = None,
1283
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1284
+ _content_type: Optional[StrictStr] = None,
1285
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1286
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1287
+ ) -> RESTResponseType:
1288
+ """Synchronous version of get_log_level_without_preload_content"""
1289
+ return async_to_sync(self._get_log_level_async_without_preload_content)(
1290
+ _request_timeout=_request_timeout,
1291
+ _request_auth=_request_auth,
1292
+ _content_type=_content_type,
1293
+ _headers=_headers,
1294
+ _host_index=_host_index,
1295
+ )
707
1296
 
708
1297
  def _get_log_level_serialize(
709
1298
  self,
@@ -757,7 +1346,110 @@ class AdminApi:
757
1346
  )
758
1347
 
759
1348
  @validate_call
760
- async def get_memory_usage(
1349
+ def get_memory_usage(
1350
+ self,
1351
+ _request_timeout: Union[
1352
+ None,
1353
+ Annotated[StrictFloat, Field(gt=0)],
1354
+ Tuple[
1355
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1356
+ ],
1357
+ ] = None,
1358
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1359
+ _content_type: Optional[StrictStr] = None,
1360
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1361
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1362
+ ) -> float:
1363
+ """Get Memory Usage"""
1364
+ if self.is_sync:
1365
+ return self._get_memory_usage_sync(
1366
+ _request_timeout=_request_timeout,
1367
+ _request_auth=_request_auth,
1368
+ _content_type=_content_type,
1369
+ _headers=_headers,
1370
+ _host_index=_host_index,
1371
+ )
1372
+
1373
+ else:
1374
+ return self._get_memory_usage_async(
1375
+ _request_timeout=_request_timeout,
1376
+ _request_auth=_request_auth,
1377
+ _content_type=_content_type,
1378
+ _headers=_headers,
1379
+ _host_index=_host_index,
1380
+ )
1381
+
1382
+ @validate_call
1383
+ def get_memory_usage_with_http_info(
1384
+ self,
1385
+ _request_timeout: Union[
1386
+ None,
1387
+ Annotated[StrictFloat, Field(gt=0)],
1388
+ Tuple[
1389
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1390
+ ],
1391
+ ] = None,
1392
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1393
+ _content_type: Optional[StrictStr] = None,
1394
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1395
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1396
+ ) -> ApiResponse[float]:
1397
+ """Get Memory Usage with HTTP info"""
1398
+ if self.is_sync:
1399
+ return self._get_memory_usage_sync_with_http_info(
1400
+ _request_timeout=_request_timeout,
1401
+ _request_auth=_request_auth,
1402
+ _content_type=_content_type,
1403
+ _headers=_headers,
1404
+ _host_index=_host_index,
1405
+ )
1406
+
1407
+ else:
1408
+ return self._get_memory_usage_async_with_http_info(
1409
+ _request_timeout=_request_timeout,
1410
+ _request_auth=_request_auth,
1411
+ _content_type=_content_type,
1412
+ _headers=_headers,
1413
+ _host_index=_host_index,
1414
+ )
1415
+
1416
+ @validate_call
1417
+ def get_memory_usage_without_preload_content(
1418
+ self,
1419
+ _request_timeout: Union[
1420
+ None,
1421
+ Annotated[StrictFloat, Field(gt=0)],
1422
+ Tuple[
1423
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1424
+ ],
1425
+ ] = None,
1426
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1427
+ _content_type: Optional[StrictStr] = None,
1428
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1429
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1430
+ ) -> RESTResponseType:
1431
+ """Get Memory Usage without preloading content"""
1432
+ if self.is_sync:
1433
+ return self._get_memory_usage_sync_without_preload_content(
1434
+ _request_timeout=_request_timeout,
1435
+ _request_auth=_request_auth,
1436
+ _content_type=_content_type,
1437
+ _headers=_headers,
1438
+ _host_index=_host_index,
1439
+ )
1440
+
1441
+ else:
1442
+ return self._get_memory_usage_async_without_preload_content(
1443
+ _request_timeout=_request_timeout,
1444
+ _request_auth=_request_auth,
1445
+ _content_type=_content_type,
1446
+ _headers=_headers,
1447
+ _host_index=_host_index,
1448
+ )
1449
+
1450
+ # Private async implementation methods
1451
+ @validate_call
1452
+ async def _get_memory_usage_async(
761
1453
  self,
762
1454
  _request_timeout: Union[
763
1455
  None,
@@ -817,7 +1509,7 @@ class AdminApi:
817
1509
  ).data
818
1510
 
819
1511
  @validate_call
820
- async def get_memory_usage_with_http_info(
1512
+ async def _get_memory_usage_async_with_http_info(
821
1513
  self,
822
1514
  _request_timeout: Union[
823
1515
  None,
@@ -872,12 +1564,11 @@ class AdminApi:
872
1564
  )
873
1565
  await response_data.read()
874
1566
  return self.api_client.response_deserialize(
875
- response_data=response_data,
876
- response_types_map=_response_types_map,
1567
+ response_data=response_data, response_types_map=_response_types_map
877
1568
  )
878
1569
 
879
1570
  @validate_call
880
- async def get_memory_usage_without_preload_content(
1571
+ async def _get_memory_usage_async_without_preload_content(
881
1572
  self,
882
1573
  _request_timeout: Union[
883
1574
  None,
@@ -924,14 +1615,87 @@ class AdminApi:
924
1615
  _host_index=_host_index,
925
1616
  )
926
1617
 
927
- _response_types_map: Dict[str, Optional[str]] = {
928
- "200": "float",
929
- }
930
- response_data = await self.api_client.call_api(
931
- *_param, _request_timeout=_request_timeout
932
- )
933
- return response_data.response
934
-
1618
+ _response_types_map: Dict[str, Optional[str]] = {
1619
+ "200": "float",
1620
+ }
1621
+ response_data = await self.api_client.call_api(
1622
+ *_param, _request_timeout=_request_timeout
1623
+ )
1624
+ return response_data
1625
+
1626
+ # Private sync implementation methods
1627
+ @validate_call
1628
+ def _get_memory_usage_sync(
1629
+ self,
1630
+ _request_timeout: Union[
1631
+ None,
1632
+ Annotated[StrictFloat, Field(gt=0)],
1633
+ Tuple[
1634
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1635
+ ],
1636
+ ] = None,
1637
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1638
+ _content_type: Optional[StrictStr] = None,
1639
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1640
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1641
+ ) -> float:
1642
+ """Synchronous version of get_memory_usage"""
1643
+ return async_to_sync(self._get_memory_usage_async)(
1644
+ _request_timeout=_request_timeout,
1645
+ _request_auth=_request_auth,
1646
+ _content_type=_content_type,
1647
+ _headers=_headers,
1648
+ _host_index=_host_index,
1649
+ )
1650
+
1651
+ @validate_call
1652
+ def _get_memory_usage_sync_with_http_info(
1653
+ self,
1654
+ _request_timeout: Union[
1655
+ None,
1656
+ Annotated[StrictFloat, Field(gt=0)],
1657
+ Tuple[
1658
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1659
+ ],
1660
+ ] = None,
1661
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1662
+ _content_type: Optional[StrictStr] = None,
1663
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1664
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1665
+ ) -> ApiResponse[float]:
1666
+ """Synchronous version of get_memory_usage_with_http_info"""
1667
+ return async_to_sync(self._get_memory_usage_async_with_http_info)(
1668
+ _request_timeout=_request_timeout,
1669
+ _request_auth=_request_auth,
1670
+ _content_type=_content_type,
1671
+ _headers=_headers,
1672
+ _host_index=_host_index,
1673
+ )
1674
+
1675
+ @validate_call
1676
+ def _get_memory_usage_sync_without_preload_content(
1677
+ self,
1678
+ _request_timeout: Union[
1679
+ None,
1680
+ Annotated[StrictFloat, Field(gt=0)],
1681
+ Tuple[
1682
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1683
+ ],
1684
+ ] = None,
1685
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1686
+ _content_type: Optional[StrictStr] = None,
1687
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1688
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1689
+ ) -> RESTResponseType:
1690
+ """Synchronous version of get_memory_usage_without_preload_content"""
1691
+ return async_to_sync(self._get_memory_usage_async_without_preload_content)(
1692
+ _request_timeout=_request_timeout,
1693
+ _request_auth=_request_auth,
1694
+ _content_type=_content_type,
1695
+ _headers=_headers,
1696
+ _host_index=_host_index,
1697
+ )
1698
+
935
1699
  def _get_memory_usage_serialize(
936
1700
  self,
937
1701
  _request_auth,
@@ -984,7 +1748,110 @@ class AdminApi:
984
1748
  )
985
1749
 
986
1750
  @validate_call
987
- async def get_threads(
1751
+ def get_threads(
1752
+ self,
1753
+ _request_timeout: Union[
1754
+ None,
1755
+ Annotated[StrictFloat, Field(gt=0)],
1756
+ Tuple[
1757
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1758
+ ],
1759
+ ] = None,
1760
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1761
+ _content_type: Optional[StrictStr] = None,
1762
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1763
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1764
+ ) -> Dict[str, object]:
1765
+ """Get Threads"""
1766
+ if self.is_sync:
1767
+ return self._get_threads_sync(
1768
+ _request_timeout=_request_timeout,
1769
+ _request_auth=_request_auth,
1770
+ _content_type=_content_type,
1771
+ _headers=_headers,
1772
+ _host_index=_host_index,
1773
+ )
1774
+
1775
+ else:
1776
+ return self._get_threads_async(
1777
+ _request_timeout=_request_timeout,
1778
+ _request_auth=_request_auth,
1779
+ _content_type=_content_type,
1780
+ _headers=_headers,
1781
+ _host_index=_host_index,
1782
+ )
1783
+
1784
+ @validate_call
1785
+ def get_threads_with_http_info(
1786
+ self,
1787
+ _request_timeout: Union[
1788
+ None,
1789
+ Annotated[StrictFloat, Field(gt=0)],
1790
+ Tuple[
1791
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1792
+ ],
1793
+ ] = None,
1794
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1795
+ _content_type: Optional[StrictStr] = None,
1796
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1797
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1798
+ ) -> ApiResponse[Dict[str, object]]:
1799
+ """Get Threads with HTTP info"""
1800
+ if self.is_sync:
1801
+ return self._get_threads_sync_with_http_info(
1802
+ _request_timeout=_request_timeout,
1803
+ _request_auth=_request_auth,
1804
+ _content_type=_content_type,
1805
+ _headers=_headers,
1806
+ _host_index=_host_index,
1807
+ )
1808
+
1809
+ else:
1810
+ return self._get_threads_async_with_http_info(
1811
+ _request_timeout=_request_timeout,
1812
+ _request_auth=_request_auth,
1813
+ _content_type=_content_type,
1814
+ _headers=_headers,
1815
+ _host_index=_host_index,
1816
+ )
1817
+
1818
+ @validate_call
1819
+ def get_threads_without_preload_content(
1820
+ self,
1821
+ _request_timeout: Union[
1822
+ None,
1823
+ Annotated[StrictFloat, Field(gt=0)],
1824
+ Tuple[
1825
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1826
+ ],
1827
+ ] = None,
1828
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1829
+ _content_type: Optional[StrictStr] = None,
1830
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1831
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1832
+ ) -> RESTResponseType:
1833
+ """Get Threads without preloading content"""
1834
+ if self.is_sync:
1835
+ return self._get_threads_sync_without_preload_content(
1836
+ _request_timeout=_request_timeout,
1837
+ _request_auth=_request_auth,
1838
+ _content_type=_content_type,
1839
+ _headers=_headers,
1840
+ _host_index=_host_index,
1841
+ )
1842
+
1843
+ else:
1844
+ return self._get_threads_async_without_preload_content(
1845
+ _request_timeout=_request_timeout,
1846
+ _request_auth=_request_auth,
1847
+ _content_type=_content_type,
1848
+ _headers=_headers,
1849
+ _host_index=_host_index,
1850
+ )
1851
+
1852
+ # Private async implementation methods
1853
+ @validate_call
1854
+ async def _get_threads_async(
988
1855
  self,
989
1856
  _request_timeout: Union[
990
1857
  None,
@@ -1044,7 +1911,7 @@ class AdminApi:
1044
1911
  ).data
1045
1912
 
1046
1913
  @validate_call
1047
- async def get_threads_with_http_info(
1914
+ async def _get_threads_async_with_http_info(
1048
1915
  self,
1049
1916
  _request_timeout: Union[
1050
1917
  None,
@@ -1099,12 +1966,11 @@ class AdminApi:
1099
1966
  )
1100
1967
  await response_data.read()
1101
1968
  return self.api_client.response_deserialize(
1102
- response_data=response_data,
1103
- response_types_map=_response_types_map,
1969
+ response_data=response_data, response_types_map=_response_types_map
1104
1970
  )
1105
1971
 
1106
1972
  @validate_call
1107
- async def get_threads_without_preload_content(
1973
+ async def _get_threads_async_without_preload_content(
1108
1974
  self,
1109
1975
  _request_timeout: Union[
1110
1976
  None,
@@ -1157,7 +2023,80 @@ class AdminApi:
1157
2023
  response_data = await self.api_client.call_api(
1158
2024
  *_param, _request_timeout=_request_timeout
1159
2025
  )
1160
- return response_data.response
2026
+ return response_data
2027
+
2028
+ # Private sync implementation methods
2029
+ @validate_call
2030
+ def _get_threads_sync(
2031
+ self,
2032
+ _request_timeout: Union[
2033
+ None,
2034
+ Annotated[StrictFloat, Field(gt=0)],
2035
+ Tuple[
2036
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2037
+ ],
2038
+ ] = None,
2039
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2040
+ _content_type: Optional[StrictStr] = None,
2041
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2042
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2043
+ ) -> Dict[str, object]:
2044
+ """Synchronous version of get_threads"""
2045
+ return async_to_sync(self._get_threads_async)(
2046
+ _request_timeout=_request_timeout,
2047
+ _request_auth=_request_auth,
2048
+ _content_type=_content_type,
2049
+ _headers=_headers,
2050
+ _host_index=_host_index,
2051
+ )
2052
+
2053
+ @validate_call
2054
+ def _get_threads_sync_with_http_info(
2055
+ self,
2056
+ _request_timeout: Union[
2057
+ None,
2058
+ Annotated[StrictFloat, Field(gt=0)],
2059
+ Tuple[
2060
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2061
+ ],
2062
+ ] = None,
2063
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2064
+ _content_type: Optional[StrictStr] = None,
2065
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2066
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2067
+ ) -> ApiResponse[Dict[str, object]]:
2068
+ """Synchronous version of get_threads_with_http_info"""
2069
+ return async_to_sync(self._get_threads_async_with_http_info)(
2070
+ _request_timeout=_request_timeout,
2071
+ _request_auth=_request_auth,
2072
+ _content_type=_content_type,
2073
+ _headers=_headers,
2074
+ _host_index=_host_index,
2075
+ )
2076
+
2077
+ @validate_call
2078
+ def _get_threads_sync_without_preload_content(
2079
+ self,
2080
+ _request_timeout: Union[
2081
+ None,
2082
+ Annotated[StrictFloat, Field(gt=0)],
2083
+ Tuple[
2084
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2085
+ ],
2086
+ ] = None,
2087
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2088
+ _content_type: Optional[StrictStr] = None,
2089
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2090
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2091
+ ) -> RESTResponseType:
2092
+ """Synchronous version of get_threads_without_preload_content"""
2093
+ return async_to_sync(self._get_threads_async_without_preload_content)(
2094
+ _request_timeout=_request_timeout,
2095
+ _request_auth=_request_auth,
2096
+ _content_type=_content_type,
2097
+ _headers=_headers,
2098
+ _host_index=_host_index,
2099
+ )
1161
2100
 
1162
2101
  def _get_threads_serialize(
1163
2102
  self,
@@ -1211,7 +2150,119 @@ class AdminApi:
1211
2150
  )
1212
2151
 
1213
2152
  @validate_call
1214
- async def get_uptime(
2153
+ def get_uptime(
2154
+ self,
2155
+ type: Optional[StrictStr] = None,
2156
+ _request_timeout: Union[
2157
+ None,
2158
+ Annotated[StrictFloat, Field(gt=0)],
2159
+ Tuple[
2160
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2161
+ ],
2162
+ ] = None,
2163
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2164
+ _content_type: Optional[StrictStr] = None,
2165
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2166
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2167
+ ) -> str:
2168
+ """Get Uptime"""
2169
+ if self.is_sync:
2170
+ return self._get_uptime_sync(
2171
+ type=type,
2172
+ _request_timeout=_request_timeout,
2173
+ _request_auth=_request_auth,
2174
+ _content_type=_content_type,
2175
+ _headers=_headers,
2176
+ _host_index=_host_index,
2177
+ )
2178
+
2179
+ else:
2180
+ return self._get_uptime_async(
2181
+ type=type,
2182
+ _request_timeout=_request_timeout,
2183
+ _request_auth=_request_auth,
2184
+ _content_type=_content_type,
2185
+ _headers=_headers,
2186
+ _host_index=_host_index,
2187
+ )
2188
+
2189
+ @validate_call
2190
+ def get_uptime_with_http_info(
2191
+ self,
2192
+ type: Optional[StrictStr] = None,
2193
+ _request_timeout: Union[
2194
+ None,
2195
+ Annotated[StrictFloat, Field(gt=0)],
2196
+ Tuple[
2197
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2198
+ ],
2199
+ ] = None,
2200
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2201
+ _content_type: Optional[StrictStr] = None,
2202
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2203
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2204
+ ) -> ApiResponse[str]:
2205
+ """Get Uptime with HTTP info"""
2206
+ if self.is_sync:
2207
+ return self._get_uptime_sync_with_http_info(
2208
+ type=type,
2209
+ _request_timeout=_request_timeout,
2210
+ _request_auth=_request_auth,
2211
+ _content_type=_content_type,
2212
+ _headers=_headers,
2213
+ _host_index=_host_index,
2214
+ )
2215
+
2216
+ else:
2217
+ return self._get_uptime_async_with_http_info(
2218
+ type=type,
2219
+ _request_timeout=_request_timeout,
2220
+ _request_auth=_request_auth,
2221
+ _content_type=_content_type,
2222
+ _headers=_headers,
2223
+ _host_index=_host_index,
2224
+ )
2225
+
2226
+ @validate_call
2227
+ def get_uptime_without_preload_content(
2228
+ self,
2229
+ type: Optional[StrictStr] = None,
2230
+ _request_timeout: Union[
2231
+ None,
2232
+ Annotated[StrictFloat, Field(gt=0)],
2233
+ Tuple[
2234
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2235
+ ],
2236
+ ] = None,
2237
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2238
+ _content_type: Optional[StrictStr] = None,
2239
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2240
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2241
+ ) -> RESTResponseType:
2242
+ """Get Uptime without preloading content"""
2243
+ if self.is_sync:
2244
+ return self._get_uptime_sync_without_preload_content(
2245
+ type=type,
2246
+ _request_timeout=_request_timeout,
2247
+ _request_auth=_request_auth,
2248
+ _content_type=_content_type,
2249
+ _headers=_headers,
2250
+ _host_index=_host_index,
2251
+ )
2252
+
2253
+ else:
2254
+ return self._get_uptime_async_without_preload_content(
2255
+ type=type,
2256
+ _request_timeout=_request_timeout,
2257
+ _request_auth=_request_auth,
2258
+ _content_type=_content_type,
2259
+ _headers=_headers,
2260
+ _host_index=_host_index,
2261
+ )
2262
+
2263
+ # Private async implementation methods
2264
+ @validate_call
2265
+ async def _get_uptime_async(
1215
2266
  self,
1216
2267
  type: Optional[StrictStr] = None,
1217
2268
  _request_timeout: Union[
@@ -1275,7 +2326,7 @@ class AdminApi:
1275
2326
  ).data
1276
2327
 
1277
2328
  @validate_call
1278
- async def get_uptime_with_http_info(
2329
+ async def _get_uptime_async_with_http_info(
1279
2330
  self,
1280
2331
  type: Optional[StrictStr] = None,
1281
2332
  _request_timeout: Union[
@@ -1334,12 +2385,11 @@ class AdminApi:
1334
2385
  )
1335
2386
  await response_data.read()
1336
2387
  return self.api_client.response_deserialize(
1337
- response_data=response_data,
1338
- response_types_map=_response_types_map,
2388
+ response_data=response_data, response_types_map=_response_types_map
1339
2389
  )
1340
2390
 
1341
2391
  @validate_call
1342
- async def get_uptime_without_preload_content(
2392
+ async def _get_uptime_async_without_preload_content(
1343
2393
  self,
1344
2394
  type: Optional[StrictStr] = None,
1345
2395
  _request_timeout: Union[
@@ -1396,7 +2446,86 @@ class AdminApi:
1396
2446
  response_data = await self.api_client.call_api(
1397
2447
  *_param, _request_timeout=_request_timeout
1398
2448
  )
1399
- return response_data.response
2449
+ return response_data
2450
+
2451
+ # Private sync implementation methods
2452
+ @validate_call
2453
+ def _get_uptime_sync(
2454
+ self,
2455
+ type: Optional[StrictStr] = None,
2456
+ _request_timeout: Union[
2457
+ None,
2458
+ Annotated[StrictFloat, Field(gt=0)],
2459
+ Tuple[
2460
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2461
+ ],
2462
+ ] = None,
2463
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2464
+ _content_type: Optional[StrictStr] = None,
2465
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2466
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2467
+ ) -> str:
2468
+ """Synchronous version of get_uptime"""
2469
+ return async_to_sync(self._get_uptime_async)(
2470
+ type=type,
2471
+ _request_timeout=_request_timeout,
2472
+ _request_auth=_request_auth,
2473
+ _content_type=_content_type,
2474
+ _headers=_headers,
2475
+ _host_index=_host_index,
2476
+ )
2477
+
2478
+ @validate_call
2479
+ def _get_uptime_sync_with_http_info(
2480
+ self,
2481
+ type: Optional[StrictStr] = None,
2482
+ _request_timeout: Union[
2483
+ None,
2484
+ Annotated[StrictFloat, Field(gt=0)],
2485
+ Tuple[
2486
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2487
+ ],
2488
+ ] = None,
2489
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2490
+ _content_type: Optional[StrictStr] = None,
2491
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2492
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2493
+ ) -> ApiResponse[str]:
2494
+ """Synchronous version of get_uptime_with_http_info"""
2495
+ return async_to_sync(self._get_uptime_async_with_http_info)(
2496
+ type=type,
2497
+ _request_timeout=_request_timeout,
2498
+ _request_auth=_request_auth,
2499
+ _content_type=_content_type,
2500
+ _headers=_headers,
2501
+ _host_index=_host_index,
2502
+ )
2503
+
2504
+ @validate_call
2505
+ def _get_uptime_sync_without_preload_content(
2506
+ self,
2507
+ type: Optional[StrictStr] = None,
2508
+ _request_timeout: Union[
2509
+ None,
2510
+ Annotated[StrictFloat, Field(gt=0)],
2511
+ Tuple[
2512
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2513
+ ],
2514
+ ] = None,
2515
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2516
+ _content_type: Optional[StrictStr] = None,
2517
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2518
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2519
+ ) -> RESTResponseType:
2520
+ """Synchronous version of get_uptime_without_preload_content"""
2521
+ return async_to_sync(self._get_uptime_async_without_preload_content)(
2522
+ type=type,
2523
+ _request_timeout=_request_timeout,
2524
+ _request_auth=_request_auth,
2525
+ _content_type=_content_type,
2526
+ _headers=_headers,
2527
+ _host_index=_host_index,
2528
+ )
1400
2529
 
1401
2530
  def _get_uptime_serialize(
1402
2531
  self,