crypticorn 2.17.0rc1__py3-none-any.whl → 2.17.0rc3__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 (87) hide show
  1. crypticorn/__init__.py +2 -2
  2. crypticorn/auth/client/api/admin_api.py +415 -13
  3. crypticorn/auth/client/api/auth_api.py +2622 -113
  4. crypticorn/auth/client/api/service_api.py +258 -7
  5. crypticorn/auth/client/api/user_api.py +2485 -270
  6. crypticorn/auth/client/api/wallet_api.py +1518 -77
  7. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  8. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  9. crypticorn/auth/client/rest.py +23 -4
  10. crypticorn/auth/main.py +8 -5
  11. crypticorn/client.py +227 -59
  12. crypticorn/common/__init__.py +0 -1
  13. crypticorn/common/auth.py +2 -1
  14. crypticorn/common/metrics.py +4 -6
  15. crypticorn/common/middleware.py +10 -5
  16. crypticorn/common/pagination.py +137 -18
  17. crypticorn/common/router/admin_router.py +1 -1
  18. crypticorn/common/utils.py +2 -1
  19. crypticorn/common/warnings.py +1 -0
  20. crypticorn/hive/client/api/admin_api.py +1234 -51
  21. crypticorn/hive/client/api/data_api.py +517 -13
  22. crypticorn/hive/client/api/models_api.py +1657 -83
  23. crypticorn/hive/client/api/status_api.py +415 -13
  24. crypticorn/hive/client/models/api_error_identifier.py +1 -1
  25. crypticorn/hive/client/rest.py +23 -4
  26. crypticorn/hive/main.py +99 -25
  27. crypticorn/klines/client/api/admin_api.py +1234 -51
  28. crypticorn/klines/client/api/change_in_timeframe_api.py +278 -7
  29. crypticorn/klines/client/api/funding_rates_api.py +324 -7
  30. crypticorn/klines/client/api/ohlcv_data_api.py +399 -7
  31. crypticorn/klines/client/api/status_api.py +415 -13
  32. crypticorn/klines/client/api/symbols_api.py +225 -7
  33. crypticorn/klines/client/api/udf_api.py +1393 -120
  34. crypticorn/klines/client/models/api_error_identifier.py +3 -1
  35. crypticorn/klines/client/rest.py +23 -4
  36. crypticorn/klines/main.py +89 -12
  37. crypticorn/metrics/client/api/admin_api.py +1234 -51
  38. crypticorn/metrics/client/api/exchanges_api.py +1405 -140
  39. crypticorn/metrics/client/api/indicators_api.py +640 -13
  40. crypticorn/metrics/client/api/logs_api.py +305 -7
  41. crypticorn/metrics/client/api/marketcap_api.py +1240 -60
  42. crypticorn/metrics/client/api/markets_api.py +352 -7
  43. crypticorn/metrics/client/api/quote_currencies_api.py +237 -7
  44. crypticorn/metrics/client/api/status_api.py +415 -13
  45. crypticorn/metrics/client/api/tokens_api.py +400 -13
  46. crypticorn/metrics/client/configuration.py +4 -2
  47. crypticorn/metrics/client/rest.py +23 -4
  48. crypticorn/metrics/main.py +113 -19
  49. crypticorn/pay/client/api/admin_api.py +1720 -126
  50. crypticorn/pay/client/api/now_payments_api.py +1013 -42
  51. crypticorn/pay/client/api/payments_api.py +580 -13
  52. crypticorn/pay/client/api/products_api.py +915 -25
  53. crypticorn/pay/client/api/status_api.py +415 -13
  54. crypticorn/pay/client/configuration.py +2 -2
  55. crypticorn/pay/client/models/api_error_identifier.py +7 -7
  56. crypticorn/pay/client/models/scope.py +1 -0
  57. crypticorn/pay/client/rest.py +23 -4
  58. crypticorn/pay/main.py +10 -6
  59. crypticorn/trade/client/__init__.py +2 -1
  60. crypticorn/trade/client/api/__init__.py +0 -1
  61. crypticorn/trade/client/api/admin_api.py +1718 -123
  62. crypticorn/trade/client/api/api_keys_api.py +1596 -103
  63. crypticorn/trade/client/api/bots_api.py +1106 -47
  64. crypticorn/trade/client/api/exchanges_api.py +592 -19
  65. crypticorn/trade/client/api/notifications_api.py +1340 -112
  66. crypticorn/trade/client/api/orders_api.py +240 -7
  67. crypticorn/trade/client/api/status_api.py +415 -13
  68. crypticorn/trade/client/api/strategies_api.py +1170 -69
  69. crypticorn/trade/client/api/trading_actions_api.py +650 -19
  70. crypticorn/trade/client/models/__init__.py +2 -0
  71. crypticorn/trade/client/models/exchange.py +6 -1
  72. crypticorn/trade/client/models/exchange_key_balance.py +111 -0
  73. crypticorn/trade/client/models/futures_balance.py +27 -25
  74. crypticorn/trade/client/models/spot_balance.py +110 -0
  75. crypticorn/trade/client/models/strategy.py +5 -3
  76. crypticorn/trade/client/models/strategy_create.py +6 -4
  77. crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
  78. crypticorn/trade/client/models/strategy_update.py +2 -2
  79. crypticorn/trade/client/rest.py +23 -4
  80. crypticorn/trade/main.py +15 -12
  81. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/METADATA +64 -20
  82. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/RECORD +86 -85
  83. crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
  84. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/WHEEL +0 -0
  85. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/entry_points.txt +0 -0
  86. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/licenses/LICENSE +0 -0
  87. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/top_level.txt +0 -0
@@ -28,6 +28,24 @@ from crypticorn.hive.client.api_client import ApiClient, RequestSerialized
28
28
  from crypticorn.hive.client.api_response import ApiResponse
29
29
  from crypticorn.hive.client.rest import RESTResponseType
30
30
 
31
+ # Import async_to_sync for sync methods
32
+ try:
33
+ from asgiref.sync import async_to_sync
34
+
35
+ _HAS_ASGIREF = True
36
+ except ImportError:
37
+ _HAS_ASGIREF = False
38
+
39
+ def async_to_sync(async_func):
40
+ """Fallback decorator that raises an error if asgiref is not available."""
41
+
42
+ def wrapper(*args, **kwargs):
43
+ raise ImportError(
44
+ "asgiref is required for sync methods. Install with: pip install asgiref"
45
+ )
46
+
47
+ return wrapper
48
+
31
49
 
32
50
  class DataApi:
33
51
  """NOTE: This class is auto generated by OpenAPI Generator
@@ -36,13 +54,189 @@ class DataApi:
36
54
  Do not edit the class manually.
37
55
  """
38
56
 
39
- def __init__(self, api_client=None) -> None:
57
+ def __init__(self, api_client=None, is_sync: bool = False) -> None:
40
58
  if api_client is None:
41
59
  api_client = ApiClient.get_default()
42
60
  self.api_client = api_client
61
+ self.is_sync = is_sync
43
62
 
44
63
  @validate_call
45
- async def download_data(
64
+ def download_data(
65
+ self,
66
+ model_id: Annotated[
67
+ StrictInt, Field(description="The ID of the model to download data for.")
68
+ ],
69
+ version: Annotated[
70
+ Optional[DataVersion],
71
+ Field(
72
+ description="The version of the data to download. Default is the latest public version."
73
+ ),
74
+ ] = None,
75
+ feature_size: Annotated[
76
+ Optional[FeatureSize],
77
+ Field(
78
+ description="The number of features in the data. Default is `LARGE`."
79
+ ),
80
+ ] = None,
81
+ _request_timeout: Union[
82
+ None,
83
+ Annotated[StrictFloat, Field(gt=0)],
84
+ Tuple[
85
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
86
+ ],
87
+ ] = None,
88
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
89
+ _content_type: Optional[StrictStr] = None,
90
+ _headers: Optional[Dict[StrictStr, Any]] = None,
91
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
92
+ ) -> DataDownloadResponse:
93
+ """Download Data
94
+
95
+ This method can work in both sync and async modes based on the is_sync flag.
96
+ """
97
+ if self.is_sync:
98
+ return self._download_data_sync(
99
+ model_id=model_id,
100
+ version=version,
101
+ feature_size=feature_size,
102
+ _request_timeout=_request_timeout,
103
+ _request_auth=_request_auth,
104
+ _content_type=_content_type,
105
+ _headers=_headers,
106
+ _host_index=_host_index,
107
+ )
108
+
109
+ else:
110
+ return self._download_data_async(
111
+ model_id=model_id,
112
+ version=version,
113
+ feature_size=feature_size,
114
+ _request_timeout=_request_timeout,
115
+ _request_auth=_request_auth,
116
+ _content_type=_content_type,
117
+ _headers=_headers,
118
+ _host_index=_host_index,
119
+ )
120
+
121
+ @validate_call
122
+ def download_data_with_http_info(
123
+ self,
124
+ model_id: Annotated[
125
+ StrictInt, Field(description="The ID of the model to download data for.")
126
+ ],
127
+ version: Annotated[
128
+ Optional[DataVersion],
129
+ Field(
130
+ description="The version of the data to download. Default is the latest public version."
131
+ ),
132
+ ] = None,
133
+ feature_size: Annotated[
134
+ Optional[FeatureSize],
135
+ Field(
136
+ description="The number of features in the data. Default is `LARGE`."
137
+ ),
138
+ ] = None,
139
+ _request_timeout: Union[
140
+ None,
141
+ Annotated[StrictFloat, Field(gt=0)],
142
+ Tuple[
143
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
144
+ ],
145
+ ] = None,
146
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
147
+ _content_type: Optional[StrictStr] = None,
148
+ _headers: Optional[Dict[StrictStr, Any]] = None,
149
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
150
+ ) -> ApiResponse[DataDownloadResponse]:
151
+ """Download Data with HTTP info
152
+
153
+ This method can work in both sync and async modes based on the is_sync flag.
154
+ """
155
+ if self.is_sync:
156
+ return self._download_data_sync_with_http_info(
157
+ model_id=model_id,
158
+ version=version,
159
+ feature_size=feature_size,
160
+ _request_timeout=_request_timeout,
161
+ _request_auth=_request_auth,
162
+ _content_type=_content_type,
163
+ _headers=_headers,
164
+ _host_index=_host_index,
165
+ )
166
+
167
+ else:
168
+ return self._download_data_async_with_http_info(
169
+ model_id=model_id,
170
+ version=version,
171
+ feature_size=feature_size,
172
+ _request_timeout=_request_timeout,
173
+ _request_auth=_request_auth,
174
+ _content_type=_content_type,
175
+ _headers=_headers,
176
+ _host_index=_host_index,
177
+ )
178
+
179
+ @validate_call
180
+ def download_data_without_preload_content(
181
+ self,
182
+ model_id: Annotated[
183
+ StrictInt, Field(description="The ID of the model to download data for.")
184
+ ],
185
+ version: Annotated[
186
+ Optional[DataVersion],
187
+ Field(
188
+ description="The version of the data to download. Default is the latest public version."
189
+ ),
190
+ ] = None,
191
+ feature_size: Annotated[
192
+ Optional[FeatureSize],
193
+ Field(
194
+ description="The number of features in the data. Default is `LARGE`."
195
+ ),
196
+ ] = None,
197
+ _request_timeout: Union[
198
+ None,
199
+ Annotated[StrictFloat, Field(gt=0)],
200
+ Tuple[
201
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
202
+ ],
203
+ ] = None,
204
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
205
+ _content_type: Optional[StrictStr] = None,
206
+ _headers: Optional[Dict[StrictStr, Any]] = None,
207
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
208
+ ) -> RESTResponseType:
209
+ """Download Data without preloading content
210
+
211
+ This method can work in both sync and async modes based on the is_sync flag.
212
+ """
213
+ if self.is_sync:
214
+ return self._download_data_sync_without_preload_content(
215
+ model_id=model_id,
216
+ version=version,
217
+ feature_size=feature_size,
218
+ _request_timeout=_request_timeout,
219
+ _request_auth=_request_auth,
220
+ _content_type=_content_type,
221
+ _headers=_headers,
222
+ _host_index=_host_index,
223
+ )
224
+
225
+ else:
226
+ return self._download_data_async_without_preload_content(
227
+ model_id=model_id,
228
+ version=version,
229
+ feature_size=feature_size,
230
+ _request_timeout=_request_timeout,
231
+ _request_auth=_request_auth,
232
+ _content_type=_content_type,
233
+ _headers=_headers,
234
+ _host_index=_host_index,
235
+ )
236
+
237
+ # Private async implementation methods
238
+ @validate_call
239
+ async def _download_data_async(
46
240
  self,
47
241
  model_id: Annotated[
48
242
  StrictInt, Field(description="The ID of the model to download data for.")
@@ -126,7 +320,7 @@ class DataApi:
126
320
  ).data
127
321
 
128
322
  @validate_call
129
- async def download_data_with_http_info(
323
+ async def _download_data_async_with_http_info(
130
324
  self,
131
325
  model_id: Annotated[
132
326
  StrictInt, Field(description="The ID of the model to download data for.")
@@ -205,12 +399,11 @@ class DataApi:
205
399
  )
206
400
  await response_data.read()
207
401
  return self.api_client.response_deserialize(
208
- response_data=response_data,
209
- response_types_map=_response_types_map,
402
+ response_data=response_data, response_types_map=_response_types_map
210
403
  )
211
404
 
212
405
  @validate_call
213
- async def download_data_without_preload_content(
406
+ async def _download_data_async_without_preload_content(
214
407
  self,
215
408
  model_id: Annotated[
216
409
  StrictInt, Field(description="The ID of the model to download data for.")
@@ -287,7 +480,134 @@ class DataApi:
287
480
  response_data = await self.api_client.call_api(
288
481
  *_param, _request_timeout=_request_timeout
289
482
  )
290
- return response_data.response
483
+ return response_data
484
+
485
+ # Private sync implementation methods
486
+ @validate_call
487
+ def _download_data_sync(
488
+ self,
489
+ model_id: Annotated[
490
+ StrictInt, Field(description="The ID of the model to download data for.")
491
+ ],
492
+ version: Annotated[
493
+ Optional[DataVersion],
494
+ Field(
495
+ description="The version of the data to download. Default is the latest public version."
496
+ ),
497
+ ] = None,
498
+ feature_size: Annotated[
499
+ Optional[FeatureSize],
500
+ Field(
501
+ description="The number of features in the data. Default is `LARGE`."
502
+ ),
503
+ ] = None,
504
+ _request_timeout: Union[
505
+ None,
506
+ Annotated[StrictFloat, Field(gt=0)],
507
+ Tuple[
508
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
509
+ ],
510
+ ] = None,
511
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
512
+ _content_type: Optional[StrictStr] = None,
513
+ _headers: Optional[Dict[StrictStr, Any]] = None,
514
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
515
+ ) -> DataDownloadResponse:
516
+ """Synchronous version of download_data"""
517
+ return async_to_sync(self._download_data_async)(
518
+ model_id=model_id,
519
+ version=version,
520
+ feature_size=feature_size,
521
+ _request_timeout=_request_timeout,
522
+ _request_auth=_request_auth,
523
+ _content_type=_content_type,
524
+ _headers=_headers,
525
+ _host_index=_host_index,
526
+ )
527
+
528
+ @validate_call
529
+ def _download_data_sync_with_http_info(
530
+ self,
531
+ model_id: Annotated[
532
+ StrictInt, Field(description="The ID of the model to download data for.")
533
+ ],
534
+ version: Annotated[
535
+ Optional[DataVersion],
536
+ Field(
537
+ description="The version of the data to download. Default is the latest public version."
538
+ ),
539
+ ] = None,
540
+ feature_size: Annotated[
541
+ Optional[FeatureSize],
542
+ Field(
543
+ description="The number of features in the data. Default is `LARGE`."
544
+ ),
545
+ ] = None,
546
+ _request_timeout: Union[
547
+ None,
548
+ Annotated[StrictFloat, Field(gt=0)],
549
+ Tuple[
550
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
551
+ ],
552
+ ] = None,
553
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
554
+ _content_type: Optional[StrictStr] = None,
555
+ _headers: Optional[Dict[StrictStr, Any]] = None,
556
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
557
+ ) -> ApiResponse[DataDownloadResponse]:
558
+ """Synchronous version of download_data_with_http_info"""
559
+ return async_to_sync(self._download_data_async_with_http_info)(
560
+ model_id=model_id,
561
+ version=version,
562
+ feature_size=feature_size,
563
+ _request_timeout=_request_timeout,
564
+ _request_auth=_request_auth,
565
+ _content_type=_content_type,
566
+ _headers=_headers,
567
+ _host_index=_host_index,
568
+ )
569
+
570
+ @validate_call
571
+ def _download_data_sync_without_preload_content(
572
+ self,
573
+ model_id: Annotated[
574
+ StrictInt, Field(description="The ID of the model to download data for.")
575
+ ],
576
+ version: Annotated[
577
+ Optional[DataVersion],
578
+ Field(
579
+ description="The version of the data to download. Default is the latest public version."
580
+ ),
581
+ ] = None,
582
+ feature_size: Annotated[
583
+ Optional[FeatureSize],
584
+ Field(
585
+ description="The number of features in the data. Default is `LARGE`."
586
+ ),
587
+ ] = None,
588
+ _request_timeout: Union[
589
+ None,
590
+ Annotated[StrictFloat, Field(gt=0)],
591
+ Tuple[
592
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
593
+ ],
594
+ ] = None,
595
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
596
+ _content_type: Optional[StrictStr] = None,
597
+ _headers: Optional[Dict[StrictStr, Any]] = None,
598
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
599
+ ) -> RESTResponseType:
600
+ """Synchronous version of download_data_without_preload_content"""
601
+ return async_to_sync(self._download_data_async_without_preload_content)(
602
+ model_id=model_id,
603
+ version=version,
604
+ feature_size=feature_size,
605
+ _request_timeout=_request_timeout,
606
+ _request_auth=_request_auth,
607
+ _content_type=_content_type,
608
+ _headers=_headers,
609
+ _host_index=_host_index,
610
+ )
291
611
 
292
612
  def _download_data_serialize(
293
613
  self,
@@ -356,7 +676,119 @@ class DataApi:
356
676
  )
357
677
 
358
678
  @validate_call
359
- async def get_data_info(
679
+ def get_data_info(
680
+ self,
681
+ _request_timeout: Union[
682
+ None,
683
+ Annotated[StrictFloat, Field(gt=0)],
684
+ Tuple[
685
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
686
+ ],
687
+ ] = None,
688
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
689
+ _content_type: Optional[StrictStr] = None,
690
+ _headers: Optional[Dict[StrictStr, Any]] = None,
691
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
692
+ ) -> DataInfo:
693
+ """Get Data Info
694
+
695
+ This method can work in both sync and async modes based on the is_sync flag.
696
+ """
697
+ if self.is_sync:
698
+ return self._get_data_info_sync(
699
+ _request_timeout=_request_timeout,
700
+ _request_auth=_request_auth,
701
+ _content_type=_content_type,
702
+ _headers=_headers,
703
+ _host_index=_host_index,
704
+ )
705
+
706
+ else:
707
+ return self._get_data_info_async(
708
+ _request_timeout=_request_timeout,
709
+ _request_auth=_request_auth,
710
+ _content_type=_content_type,
711
+ _headers=_headers,
712
+ _host_index=_host_index,
713
+ )
714
+
715
+ @validate_call
716
+ def get_data_info_with_http_info(
717
+ self,
718
+ _request_timeout: Union[
719
+ None,
720
+ Annotated[StrictFloat, Field(gt=0)],
721
+ Tuple[
722
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
723
+ ],
724
+ ] = None,
725
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
726
+ _content_type: Optional[StrictStr] = None,
727
+ _headers: Optional[Dict[StrictStr, Any]] = None,
728
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
729
+ ) -> ApiResponse[DataInfo]:
730
+ """Get Data Info with HTTP info
731
+
732
+ This method can work in both sync and async modes based on the is_sync flag.
733
+ """
734
+ if self.is_sync:
735
+ return self._get_data_info_sync_with_http_info(
736
+ _request_timeout=_request_timeout,
737
+ _request_auth=_request_auth,
738
+ _content_type=_content_type,
739
+ _headers=_headers,
740
+ _host_index=_host_index,
741
+ )
742
+
743
+ else:
744
+ return self._get_data_info_async_with_http_info(
745
+ _request_timeout=_request_timeout,
746
+ _request_auth=_request_auth,
747
+ _content_type=_content_type,
748
+ _headers=_headers,
749
+ _host_index=_host_index,
750
+ )
751
+
752
+ @validate_call
753
+ def get_data_info_without_preload_content(
754
+ self,
755
+ _request_timeout: Union[
756
+ None,
757
+ Annotated[StrictFloat, Field(gt=0)],
758
+ Tuple[
759
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
760
+ ],
761
+ ] = None,
762
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
763
+ _content_type: Optional[StrictStr] = None,
764
+ _headers: Optional[Dict[StrictStr, Any]] = None,
765
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
766
+ ) -> RESTResponseType:
767
+ """Get Data Info without preloading content
768
+
769
+ This method can work in both sync and async modes based on the is_sync flag.
770
+ """
771
+ if self.is_sync:
772
+ return self._get_data_info_sync_without_preload_content(
773
+ _request_timeout=_request_timeout,
774
+ _request_auth=_request_auth,
775
+ _content_type=_content_type,
776
+ _headers=_headers,
777
+ _host_index=_host_index,
778
+ )
779
+
780
+ else:
781
+ return self._get_data_info_async_without_preload_content(
782
+ _request_timeout=_request_timeout,
783
+ _request_auth=_request_auth,
784
+ _content_type=_content_type,
785
+ _headers=_headers,
786
+ _host_index=_host_index,
787
+ )
788
+
789
+ # Private async implementation methods
790
+ @validate_call
791
+ async def _get_data_info_async(
360
792
  self,
361
793
  _request_timeout: Union[
362
794
  None,
@@ -416,7 +848,7 @@ class DataApi:
416
848
  ).data
417
849
 
418
850
  @validate_call
419
- async def get_data_info_with_http_info(
851
+ async def _get_data_info_async_with_http_info(
420
852
  self,
421
853
  _request_timeout: Union[
422
854
  None,
@@ -471,12 +903,11 @@ class DataApi:
471
903
  )
472
904
  await response_data.read()
473
905
  return self.api_client.response_deserialize(
474
- response_data=response_data,
475
- response_types_map=_response_types_map,
906
+ response_data=response_data, response_types_map=_response_types_map
476
907
  )
477
908
 
478
909
  @validate_call
479
- async def get_data_info_without_preload_content(
910
+ async def _get_data_info_async_without_preload_content(
480
911
  self,
481
912
  _request_timeout: Union[
482
913
  None,
@@ -529,7 +960,80 @@ class DataApi:
529
960
  response_data = await self.api_client.call_api(
530
961
  *_param, _request_timeout=_request_timeout
531
962
  )
532
- return response_data.response
963
+ return response_data
964
+
965
+ # Private sync implementation methods
966
+ @validate_call
967
+ def _get_data_info_sync(
968
+ self,
969
+ _request_timeout: Union[
970
+ None,
971
+ Annotated[StrictFloat, Field(gt=0)],
972
+ Tuple[
973
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
974
+ ],
975
+ ] = None,
976
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
977
+ _content_type: Optional[StrictStr] = None,
978
+ _headers: Optional[Dict[StrictStr, Any]] = None,
979
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
980
+ ) -> DataInfo:
981
+ """Synchronous version of get_data_info"""
982
+ return async_to_sync(self._get_data_info_async)(
983
+ _request_timeout=_request_timeout,
984
+ _request_auth=_request_auth,
985
+ _content_type=_content_type,
986
+ _headers=_headers,
987
+ _host_index=_host_index,
988
+ )
989
+
990
+ @validate_call
991
+ def _get_data_info_sync_with_http_info(
992
+ self,
993
+ _request_timeout: Union[
994
+ None,
995
+ Annotated[StrictFloat, Field(gt=0)],
996
+ Tuple[
997
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
998
+ ],
999
+ ] = None,
1000
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1001
+ _content_type: Optional[StrictStr] = None,
1002
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1003
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1004
+ ) -> ApiResponse[DataInfo]:
1005
+ """Synchronous version of get_data_info_with_http_info"""
1006
+ return async_to_sync(self._get_data_info_async_with_http_info)(
1007
+ _request_timeout=_request_timeout,
1008
+ _request_auth=_request_auth,
1009
+ _content_type=_content_type,
1010
+ _headers=_headers,
1011
+ _host_index=_host_index,
1012
+ )
1013
+
1014
+ @validate_call
1015
+ def _get_data_info_sync_without_preload_content(
1016
+ self,
1017
+ _request_timeout: Union[
1018
+ None,
1019
+ Annotated[StrictFloat, Field(gt=0)],
1020
+ Tuple[
1021
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1022
+ ],
1023
+ ] = None,
1024
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1025
+ _content_type: Optional[StrictStr] = None,
1026
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1027
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1028
+ ) -> RESTResponseType:
1029
+ """Synchronous version of get_data_info_without_preload_content"""
1030
+ return async_to_sync(self._get_data_info_async_without_preload_content)(
1031
+ _request_timeout=_request_timeout,
1032
+ _request_auth=_request_auth,
1033
+ _content_type=_content_type,
1034
+ _headers=_headers,
1035
+ _host_index=_host_index,
1036
+ )
533
1037
 
534
1038
  def _get_data_info_serialize(
535
1039
  self,