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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. crypticorn/__init__.py +2 -2
  2. crypticorn/auth/client/api/admin_api.py +397 -13
  3. crypticorn/auth/client/api/auth_api.py +3610 -341
  4. crypticorn/auth/client/api/service_api.py +249 -7
  5. crypticorn/auth/client/api/user_api.py +2295 -179
  6. crypticorn/auth/client/api/wallet_api.py +1468 -81
  7. crypticorn/auth/client/configuration.py +2 -2
  8. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  9. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  10. crypticorn/auth/client/rest.py +23 -4
  11. crypticorn/auth/main.py +8 -5
  12. crypticorn/cli/init.py +1 -1
  13. crypticorn/cli/templates/.env.docker.temp +3 -0
  14. crypticorn/cli/templates/.env.example.temp +4 -0
  15. crypticorn/cli/templates/Dockerfile +5 -2
  16. crypticorn/client.py +226 -59
  17. crypticorn/common/__init__.py +1 -0
  18. crypticorn/common/auth.py +45 -14
  19. crypticorn/common/decorators.py +1 -2
  20. crypticorn/common/enums.py +0 -2
  21. crypticorn/common/errors.py +10 -0
  22. crypticorn/common/metrics.py +30 -0
  23. crypticorn/common/middleware.py +94 -1
  24. crypticorn/common/pagination.py +252 -18
  25. crypticorn/common/router/admin_router.py +2 -2
  26. crypticorn/common/router/status_router.py +40 -2
  27. crypticorn/common/scopes.py +2 -0
  28. crypticorn/common/warnings.py +8 -0
  29. crypticorn/dex/__init__.py +6 -0
  30. crypticorn/dex/client/__init__.py +49 -0
  31. crypticorn/dex/client/api/__init__.py +6 -0
  32. crypticorn/dex/client/api/admin_api.py +2986 -0
  33. crypticorn/dex/client/api/signals_api.py +1798 -0
  34. crypticorn/dex/client/api/status_api.py +892 -0
  35. crypticorn/dex/client/api_client.py +758 -0
  36. crypticorn/dex/client/api_response.py +20 -0
  37. crypticorn/dex/client/configuration.py +620 -0
  38. crypticorn/dex/client/exceptions.py +220 -0
  39. crypticorn/dex/client/models/__init__.py +30 -0
  40. crypticorn/dex/client/models/api_error_identifier.py +121 -0
  41. crypticorn/dex/client/models/api_error_level.py +37 -0
  42. crypticorn/dex/client/models/api_error_type.py +37 -0
  43. crypticorn/dex/client/models/exception_detail.py +117 -0
  44. crypticorn/dex/client/models/log_level.py +38 -0
  45. crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
  46. crypticorn/dex/client/models/risk.py +86 -0
  47. crypticorn/dex/client/models/signal_overview_stats.py +158 -0
  48. crypticorn/dex/client/models/signal_volume.py +84 -0
  49. crypticorn/dex/client/models/signal_with_token.py +163 -0
  50. crypticorn/dex/client/models/token_data.py +127 -0
  51. crypticorn/dex/client/models/token_detail.py +116 -0
  52. crypticorn/dex/client/py.typed +0 -0
  53. crypticorn/dex/client/rest.py +217 -0
  54. crypticorn/dex/main.py +1 -0
  55. crypticorn/hive/client/api/admin_api.py +1173 -47
  56. crypticorn/hive/client/api/data_api.py +499 -17
  57. crypticorn/hive/client/api/models_api.py +1595 -87
  58. crypticorn/hive/client/api/status_api.py +397 -16
  59. crypticorn/hive/client/api_client.py +0 -5
  60. crypticorn/hive/client/models/api_error_identifier.py +1 -1
  61. crypticorn/hive/client/models/coin_info.py +1 -1
  62. crypticorn/hive/client/models/exception_detail.py +1 -1
  63. crypticorn/hive/client/models/target_info.py +1 -1
  64. crypticorn/hive/client/rest.py +23 -4
  65. crypticorn/hive/main.py +99 -25
  66. crypticorn/hive/utils.py +2 -2
  67. crypticorn/klines/client/api/admin_api.py +1173 -47
  68. crypticorn/klines/client/api/change_in_timeframe_api.py +269 -11
  69. crypticorn/klines/client/api/funding_rates_api.py +315 -11
  70. crypticorn/klines/client/api/ohlcv_data_api.py +390 -11
  71. crypticorn/klines/client/api/status_api.py +397 -16
  72. crypticorn/klines/client/api/symbols_api.py +216 -11
  73. crypticorn/klines/client/api/udf_api.py +1268 -51
  74. crypticorn/klines/client/api_client.py +0 -5
  75. crypticorn/klines/client/models/api_error_identifier.py +3 -1
  76. crypticorn/klines/client/models/exception_detail.py +1 -1
  77. crypticorn/klines/client/models/ohlcv.py +1 -1
  78. crypticorn/klines/client/models/symbol_group.py +1 -1
  79. crypticorn/klines/client/models/udf_config.py +1 -1
  80. crypticorn/klines/client/rest.py +23 -4
  81. crypticorn/klines/main.py +89 -12
  82. crypticorn/metrics/client/api/admin_api.py +1173 -47
  83. crypticorn/metrics/client/api/exchanges_api.py +1370 -145
  84. crypticorn/metrics/client/api/indicators_api.py +622 -17
  85. crypticorn/metrics/client/api/logs_api.py +296 -11
  86. crypticorn/metrics/client/api/marketcap_api.py +1207 -67
  87. crypticorn/metrics/client/api/markets_api.py +343 -11
  88. crypticorn/metrics/client/api/quote_currencies_api.py +228 -11
  89. crypticorn/metrics/client/api/status_api.py +397 -16
  90. crypticorn/metrics/client/api/tokens_api.py +382 -15
  91. crypticorn/metrics/client/api_client.py +0 -5
  92. crypticorn/metrics/client/configuration.py +4 -2
  93. crypticorn/metrics/client/models/exception_detail.py +1 -1
  94. crypticorn/metrics/client/models/exchange_mapping.py +1 -1
  95. crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
  96. crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
  97. crypticorn/metrics/client/models/ohlcv.py +1 -1
  98. crypticorn/metrics/client/rest.py +23 -4
  99. crypticorn/metrics/main.py +113 -19
  100. crypticorn/pay/client/api/admin_api.py +1585 -57
  101. crypticorn/pay/client/api/now_payments_api.py +961 -39
  102. crypticorn/pay/client/api/payments_api.py +562 -17
  103. crypticorn/pay/client/api/products_api.py +880 -30
  104. crypticorn/pay/client/api/status_api.py +397 -16
  105. crypticorn/pay/client/api_client.py +0 -5
  106. crypticorn/pay/client/configuration.py +2 -2
  107. crypticorn/pay/client/models/api_error_identifier.py +7 -7
  108. crypticorn/pay/client/models/exception_detail.py +1 -1
  109. crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
  110. crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
  111. crypticorn/pay/client/models/product.py +1 -1
  112. crypticorn/pay/client/models/product_create.py +1 -1
  113. crypticorn/pay/client/models/product_update.py +1 -1
  114. crypticorn/pay/client/models/scope.py +1 -0
  115. crypticorn/pay/client/rest.py +23 -4
  116. crypticorn/pay/main.py +10 -6
  117. crypticorn/trade/client/__init__.py +11 -1
  118. crypticorn/trade/client/api/__init__.py +0 -1
  119. crypticorn/trade/client/api/admin_api.py +1184 -55
  120. crypticorn/trade/client/api/api_keys_api.py +1678 -162
  121. crypticorn/trade/client/api/bots_api.py +7563 -187
  122. crypticorn/trade/client/api/exchanges_api.py +565 -19
  123. crypticorn/trade/client/api/notifications_api.py +1290 -116
  124. crypticorn/trade/client/api/orders_api.py +393 -55
  125. crypticorn/trade/client/api/status_api.py +397 -13
  126. crypticorn/trade/client/api/strategies_api.py +1133 -77
  127. crypticorn/trade/client/api/trading_actions_api.py +786 -65
  128. crypticorn/trade/client/models/__init__.py +11 -0
  129. crypticorn/trade/client/models/actions_count.py +88 -0
  130. crypticorn/trade/client/models/api_error_identifier.py +8 -7
  131. crypticorn/trade/client/models/bot.py +7 -18
  132. crypticorn/trade/client/models/bot_create.py +17 -1
  133. crypticorn/trade/client/models/bot_update.py +17 -1
  134. crypticorn/trade/client/models/exchange.py +6 -1
  135. crypticorn/trade/client/models/exchange_key.py +1 -1
  136. crypticorn/trade/client/models/exchange_key_balance.py +111 -0
  137. crypticorn/trade/client/models/exchange_key_create.py +17 -1
  138. crypticorn/trade/client/models/exchange_key_update.py +17 -1
  139. crypticorn/trade/client/models/execution_ids.py +1 -1
  140. crypticorn/trade/client/models/futures_balance.py +27 -25
  141. crypticorn/trade/client/models/futures_trading_action.py +6 -28
  142. crypticorn/trade/client/models/futures_trading_action_create.py +10 -13
  143. crypticorn/trade/client/models/notification.py +17 -1
  144. crypticorn/trade/client/models/notification_create.py +18 -2
  145. crypticorn/trade/client/models/notification_update.py +17 -1
  146. crypticorn/trade/client/models/order.py +2 -14
  147. crypticorn/trade/client/models/orders_count.py +88 -0
  148. crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
  149. crypticorn/trade/client/models/paginated_response_order.py +134 -0
  150. crypticorn/trade/client/models/pn_l.py +95 -0
  151. crypticorn/trade/client/models/post_futures_action.py +1 -1
  152. crypticorn/trade/client/models/spot_balance.py +109 -0
  153. crypticorn/trade/client/models/spot_trading_action_create.py +4 -1
  154. crypticorn/trade/client/models/strategy.py +22 -4
  155. crypticorn/trade/client/models/strategy_create.py +23 -5
  156. crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
  157. crypticorn/trade/client/models/strategy_update.py +19 -3
  158. crypticorn/trade/client/models/tpsl.py +4 -27
  159. crypticorn/trade/client/models/tpsl_create.py +6 -19
  160. crypticorn/trade/client/rest.py +23 -4
  161. crypticorn/trade/main.py +15 -12
  162. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/METADATA +65 -20
  163. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/RECORD +167 -132
  164. crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
  165. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/WHEEL +0 -0
  166. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/entry_points.txt +0 -0
  167. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/licenses/LICENSE +0 -0
  168. {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/top_level.txt +0 -0
@@ -11,20 +11,34 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
  Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
- import warnings
15
14
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
15
  from typing import Any, Dict, List, Optional, Tuple, Union
17
16
  from typing_extensions import Annotated
18
17
 
19
- from pydantic import Field, StrictInt
20
- from typing import Any, Dict, List, Optional
21
- from typing_extensions import Annotated
22
18
  from crypticorn.metrics.client.models.severity import Severity
23
19
 
24
20
  from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
25
21
  from crypticorn.metrics.client.api_response import ApiResponse
26
22
  from crypticorn.metrics.client.rest import RESTResponseType
27
23
 
24
+ # Import async_to_sync for sync methods
25
+ try:
26
+ from asgiref.sync import async_to_sync
27
+
28
+ _HAS_ASGIREF = True
29
+ except ImportError:
30
+ _HAS_ASGIREF = False
31
+
32
+ def async_to_sync(async_func):
33
+ """Fallback decorator that raises an error if asgiref is not available."""
34
+
35
+ def wrapper(*args, **kwargs):
36
+ raise ImportError(
37
+ "asgiref is required for sync methods. Install with: pip install asgiref"
38
+ )
39
+
40
+ return wrapper
41
+
28
42
 
29
43
  class LogsApi:
30
44
  """NOTE: This class is auto generated by OpenAPI Generator
@@ -33,13 +47,168 @@ class LogsApi:
33
47
  Do not edit the class manually.
34
48
  """
35
49
 
36
- def __init__(self, api_client=None) -> None:
50
+ def __init__(self, api_client=None, is_sync: bool = False) -> None:
37
51
  if api_client is None:
38
52
  api_client = ApiClient.get_default()
39
53
  self.api_client = api_client
54
+ self.is_sync = is_sync
40
55
 
41
56
  @validate_call
42
- async def get_metrics_error_logs(
57
+ def get_metrics_error_logs(
58
+ self,
59
+ severity: Annotated[
60
+ Optional[Severity], Field(description="Severity level of errors to fetch")
61
+ ] = None,
62
+ start_timestamp: Annotated[
63
+ Optional[StrictInt],
64
+ Field(description="Start timestamp for which to fetch error logs"),
65
+ ] = None,
66
+ end_timestamp: Annotated[
67
+ Optional[StrictInt],
68
+ Field(description="End timestamp for which to fetch error logs"),
69
+ ] = None,
70
+ _request_timeout: Union[
71
+ None,
72
+ Annotated[StrictFloat, Field(gt=0)],
73
+ Tuple[
74
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
75
+ ],
76
+ ] = None,
77
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
78
+ _content_type: Optional[StrictStr] = None,
79
+ _headers: Optional[Dict[StrictStr, Any]] = None,
80
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
81
+ ) -> List[Dict[str, object]]:
82
+ """Get Error Logs"""
83
+ if self.is_sync:
84
+ return self._get_metrics_error_logs_sync(
85
+ severity=severity,
86
+ start_timestamp=start_timestamp,
87
+ end_timestamp=end_timestamp,
88
+ _request_timeout=_request_timeout,
89
+ _request_auth=_request_auth,
90
+ _content_type=_content_type,
91
+ _headers=_headers,
92
+ _host_index=_host_index,
93
+ )
94
+
95
+ else:
96
+ return self._get_metrics_error_logs_async(
97
+ severity=severity,
98
+ start_timestamp=start_timestamp,
99
+ end_timestamp=end_timestamp,
100
+ _request_timeout=_request_timeout,
101
+ _request_auth=_request_auth,
102
+ _content_type=_content_type,
103
+ _headers=_headers,
104
+ _host_index=_host_index,
105
+ )
106
+
107
+ @validate_call
108
+ def get_metrics_error_logs_with_http_info(
109
+ self,
110
+ severity: Annotated[
111
+ Optional[Severity], Field(description="Severity level of errors to fetch")
112
+ ] = None,
113
+ start_timestamp: Annotated[
114
+ Optional[StrictInt],
115
+ Field(description="Start timestamp for which to fetch error logs"),
116
+ ] = None,
117
+ end_timestamp: Annotated[
118
+ Optional[StrictInt],
119
+ Field(description="End timestamp for which to fetch error logs"),
120
+ ] = None,
121
+ _request_timeout: Union[
122
+ None,
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Tuple[
125
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
126
+ ],
127
+ ] = None,
128
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
129
+ _content_type: Optional[StrictStr] = None,
130
+ _headers: Optional[Dict[StrictStr, Any]] = None,
131
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
+ ) -> ApiResponse[List[Dict[str, object]]]:
133
+ """Get Error Logs with HTTP info"""
134
+ if self.is_sync:
135
+ return self._get_metrics_error_logs_sync_with_http_info(
136
+ severity=severity,
137
+ start_timestamp=start_timestamp,
138
+ end_timestamp=end_timestamp,
139
+ _request_timeout=_request_timeout,
140
+ _request_auth=_request_auth,
141
+ _content_type=_content_type,
142
+ _headers=_headers,
143
+ _host_index=_host_index,
144
+ )
145
+
146
+ else:
147
+ return self._get_metrics_error_logs_async_with_http_info(
148
+ severity=severity,
149
+ start_timestamp=start_timestamp,
150
+ end_timestamp=end_timestamp,
151
+ _request_timeout=_request_timeout,
152
+ _request_auth=_request_auth,
153
+ _content_type=_content_type,
154
+ _headers=_headers,
155
+ _host_index=_host_index,
156
+ )
157
+
158
+ @validate_call
159
+ def get_metrics_error_logs_without_preload_content(
160
+ self,
161
+ severity: Annotated[
162
+ Optional[Severity], Field(description="Severity level of errors to fetch")
163
+ ] = None,
164
+ start_timestamp: Annotated[
165
+ Optional[StrictInt],
166
+ Field(description="Start timestamp for which to fetch error logs"),
167
+ ] = None,
168
+ end_timestamp: Annotated[
169
+ Optional[StrictInt],
170
+ Field(description="End timestamp for which to fetch error logs"),
171
+ ] = None,
172
+ _request_timeout: Union[
173
+ None,
174
+ Annotated[StrictFloat, Field(gt=0)],
175
+ Tuple[
176
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
177
+ ],
178
+ ] = None,
179
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
180
+ _content_type: Optional[StrictStr] = None,
181
+ _headers: Optional[Dict[StrictStr, Any]] = None,
182
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
183
+ ) -> RESTResponseType:
184
+ """Get Error Logs without preloading content"""
185
+ if self.is_sync:
186
+ return self._get_metrics_error_logs_sync_without_preload_content(
187
+ severity=severity,
188
+ start_timestamp=start_timestamp,
189
+ end_timestamp=end_timestamp,
190
+ _request_timeout=_request_timeout,
191
+ _request_auth=_request_auth,
192
+ _content_type=_content_type,
193
+ _headers=_headers,
194
+ _host_index=_host_index,
195
+ )
196
+
197
+ else:
198
+ return self._get_metrics_error_logs_async_without_preload_content(
199
+ severity=severity,
200
+ start_timestamp=start_timestamp,
201
+ end_timestamp=end_timestamp,
202
+ _request_timeout=_request_timeout,
203
+ _request_auth=_request_auth,
204
+ _content_type=_content_type,
205
+ _headers=_headers,
206
+ _host_index=_host_index,
207
+ )
208
+
209
+ # Private async implementation methods
210
+ @validate_call
211
+ async def _get_metrics_error_logs_async(
43
212
  self,
44
213
  severity: Annotated[
45
214
  Optional[Severity], Field(description="Severity level of errors to fetch")
@@ -119,7 +288,7 @@ class LogsApi:
119
288
  ).data
120
289
 
121
290
  @validate_call
122
- async def get_metrics_error_logs_with_http_info(
291
+ async def _get_metrics_error_logs_async_with_http_info(
123
292
  self,
124
293
  severity: Annotated[
125
294
  Optional[Severity], Field(description="Severity level of errors to fetch")
@@ -194,12 +363,11 @@ class LogsApi:
194
363
  )
195
364
  await response_data.read()
196
365
  return self.api_client.response_deserialize(
197
- response_data=response_data,
198
- response_types_map=_response_types_map,
366
+ response_data=response_data, response_types_map=_response_types_map
199
367
  )
200
368
 
201
369
  @validate_call
202
- async def get_metrics_error_logs_without_preload_content(
370
+ async def _get_metrics_error_logs_async_without_preload_content(
203
371
  self,
204
372
  severity: Annotated[
205
373
  Optional[Severity], Field(description="Severity level of errors to fetch")
@@ -272,7 +440,124 @@ class LogsApi:
272
440
  response_data = await self.api_client.call_api(
273
441
  *_param, _request_timeout=_request_timeout
274
442
  )
275
- return response_data.response
443
+ return response_data
444
+
445
+ # Private sync implementation methods
446
+ @validate_call
447
+ def _get_metrics_error_logs_sync(
448
+ self,
449
+ severity: Annotated[
450
+ Optional[Severity], Field(description="Severity level of errors to fetch")
451
+ ] = None,
452
+ start_timestamp: Annotated[
453
+ Optional[StrictInt],
454
+ Field(description="Start timestamp for which to fetch error logs"),
455
+ ] = None,
456
+ end_timestamp: Annotated[
457
+ Optional[StrictInt],
458
+ Field(description="End timestamp for which to fetch error logs"),
459
+ ] = None,
460
+ _request_timeout: Union[
461
+ None,
462
+ Annotated[StrictFloat, Field(gt=0)],
463
+ Tuple[
464
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
465
+ ],
466
+ ] = None,
467
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
468
+ _content_type: Optional[StrictStr] = None,
469
+ _headers: Optional[Dict[StrictStr, Any]] = None,
470
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
471
+ ) -> List[Dict[str, object]]:
472
+ """Synchronous version of get_metrics_error_logs"""
473
+ return async_to_sync(self._get_metrics_error_logs_async)(
474
+ severity=severity,
475
+ start_timestamp=start_timestamp,
476
+ end_timestamp=end_timestamp,
477
+ _request_timeout=_request_timeout,
478
+ _request_auth=_request_auth,
479
+ _content_type=_content_type,
480
+ _headers=_headers,
481
+ _host_index=_host_index,
482
+ )
483
+
484
+ @validate_call
485
+ def _get_metrics_error_logs_sync_with_http_info(
486
+ self,
487
+ severity: Annotated[
488
+ Optional[Severity], Field(description="Severity level of errors to fetch")
489
+ ] = None,
490
+ start_timestamp: Annotated[
491
+ Optional[StrictInt],
492
+ Field(description="Start timestamp for which to fetch error logs"),
493
+ ] = None,
494
+ end_timestamp: Annotated[
495
+ Optional[StrictInt],
496
+ Field(description="End timestamp for which to fetch error logs"),
497
+ ] = None,
498
+ _request_timeout: Union[
499
+ None,
500
+ Annotated[StrictFloat, Field(gt=0)],
501
+ Tuple[
502
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
503
+ ],
504
+ ] = None,
505
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
506
+ _content_type: Optional[StrictStr] = None,
507
+ _headers: Optional[Dict[StrictStr, Any]] = None,
508
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
509
+ ) -> ApiResponse[List[Dict[str, object]]]:
510
+ """Synchronous version of get_metrics_error_logs_with_http_info"""
511
+ return async_to_sync(self._get_metrics_error_logs_async_with_http_info)(
512
+ severity=severity,
513
+ start_timestamp=start_timestamp,
514
+ end_timestamp=end_timestamp,
515
+ _request_timeout=_request_timeout,
516
+ _request_auth=_request_auth,
517
+ _content_type=_content_type,
518
+ _headers=_headers,
519
+ _host_index=_host_index,
520
+ )
521
+
522
+ @validate_call
523
+ def _get_metrics_error_logs_sync_without_preload_content(
524
+ self,
525
+ severity: Annotated[
526
+ Optional[Severity], Field(description="Severity level of errors to fetch")
527
+ ] = None,
528
+ start_timestamp: Annotated[
529
+ Optional[StrictInt],
530
+ Field(description="Start timestamp for which to fetch error logs"),
531
+ ] = None,
532
+ end_timestamp: Annotated[
533
+ Optional[StrictInt],
534
+ Field(description="End timestamp for which to fetch error logs"),
535
+ ] = None,
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
+ ) -> RESTResponseType:
548
+ """Synchronous version of get_metrics_error_logs_without_preload_content"""
549
+ return async_to_sync(
550
+ self._get_metrics_error_logs_async_without_preload_content
551
+ )(
552
+ severity=severity,
553
+ start_timestamp=start_timestamp,
554
+ end_timestamp=end_timestamp,
555
+ _request_timeout=_request_timeout,
556
+ _request_auth=_request_auth,
557
+ _content_type=_content_type,
558
+ _headers=_headers,
559
+ _host_index=_host_index,
560
+ )
276
561
 
277
562
  def _get_metrics_error_logs_serialize(
278
563
  self,