crypticorn 2.11.8__py3-none-any.whl → 2.12.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 (32) hide show
  1. crypticorn/common/errors.py +4 -4
  2. crypticorn/common/exceptions.py +10 -0
  3. crypticorn/hive/client/__init__.py +1 -0
  4. crypticorn/hive/client/models/__init__.py +1 -0
  5. crypticorn/hive/client/models/api_error_identifier.py +2 -0
  6. crypticorn/hive/client/models/coin_info.py +106 -0
  7. crypticorn/hive/client/models/data_info.py +17 -6
  8. crypticorn/hive/client/models/target_info.py +20 -6
  9. crypticorn/pay/client/__init__.py +5 -3
  10. crypticorn/pay/client/api/admin_api.py +35 -33
  11. crypticorn/pay/client/api/now_payments_api.py +476 -5
  12. crypticorn/pay/client/api/payments_api.py +43 -264
  13. crypticorn/pay/client/api/products_api.py +16 -16
  14. crypticorn/pay/client/models/__init__.py +5 -3
  15. crypticorn/pay/client/models/api_error_identifier.py +117 -0
  16. crypticorn/pay/client/models/api_error_level.py +37 -0
  17. crypticorn/pay/client/models/api_error_type.py +37 -0
  18. crypticorn/pay/client/models/exception_detail.py +7 -4
  19. crypticorn/pay/client/models/{product_read.py → product.py} +4 -4
  20. crypticorn/pay/client/models/product_create.py +1 -1
  21. crypticorn/pay/client/models/scope.py +1 -0
  22. crypticorn/pay/client/models/{product_sub_read.py → subscription.py} +5 -5
  23. crypticorn/trade/client/api/notifications_api.py +15 -15
  24. crypticorn/trade/client/api/trading_actions_api.py +9 -9
  25. crypticorn/trade/client/models/api_error_identifier.py +1 -0
  26. {crypticorn-2.11.8.dist-info → crypticorn-2.12.0.dist-info}/METADATA +1 -1
  27. {crypticorn-2.11.8.dist-info → crypticorn-2.12.0.dist-info}/RECORD +31 -28
  28. {crypticorn-2.11.8.dist-info → crypticorn-2.12.0.dist-info}/WHEEL +1 -1
  29. crypticorn/pay/client/models/response_getuptime.py +0 -159
  30. {crypticorn-2.11.8.dist-info → crypticorn-2.12.0.dist-info}/entry_points.txt +0 -0
  31. {crypticorn-2.11.8.dist-info → crypticorn-2.12.0.dist-info}/licenses/LICENSE +0 -0
  32. {crypticorn-2.11.8.dist-info → crypticorn-2.12.0.dist-info}/top_level.txt +0 -0
@@ -68,7 +68,7 @@ class ApiErrorIdentifier(StrEnum):
68
68
  LEVERAGE_EXCEEDED = "leverage_limit_exceeded"
69
69
  LIQUIDATION_PRICE_VIOLATION = "order_violates_liquidation_price_constraints"
70
70
  MARGIN_MODE_CLASH = "margin_mode_clash"
71
- MODEL_NAME_NOT_UNIQUE = "model_name_not_unique"
71
+ NAME_NOT_UNIQUE = "name_not_unique"
72
72
  NO_CREDENTIALS = "no_credentials"
73
73
  NOW_API_DOWN = "now_api_down"
74
74
  OBJECT_ALREADY_EXISTS = "object_already_exists"
@@ -333,8 +333,8 @@ class ApiError(Enum, metaclass=ApiErrorFallback):
333
333
  ApiErrorType.USER_ERROR,
334
334
  ApiErrorLevel.ERROR,
335
335
  )
336
- MODEL_NAME_NOT_UNIQUE = (
337
- ApiErrorIdentifier.MODEL_NAME_NOT_UNIQUE,
336
+ NAME_NOT_UNIQUE = (
337
+ ApiErrorIdentifier.NAME_NOT_UNIQUE,
338
338
  ApiErrorType.USER_ERROR,
339
339
  ApiErrorLevel.ERROR,
340
340
  )
@@ -623,7 +623,7 @@ class StatusCodeMapper:
623
623
  status.HTTP_409_CONFLICT,
624
624
  status.WS_1008_POLICY_VIOLATION,
625
625
  ),
626
- ApiError.MODEL_NAME_NOT_UNIQUE: (
626
+ ApiError.NAME_NOT_UNIQUE: (
627
627
  status.HTTP_409_CONFLICT,
628
628
  status.WS_1008_POLICY_VIOLATION,
629
629
  ),
@@ -154,3 +154,13 @@ def register_exception_handlers(app: FastAPI):
154
154
  exception_response = {
155
155
  "default": {"model": ExceptionDetail, "description": "Error response"}
156
156
  }
157
+
158
+ class CrypticornException(Exception):
159
+ """A custom exception class for Crypticorn."""
160
+
161
+ def __init__(self, error: ApiError, message: str = None):
162
+ self.message = message
163
+ self.error = error
164
+
165
+ def __str__(self):
166
+ return f"{self.error.identifier}: {self.message}"
@@ -37,6 +37,7 @@ from crypticorn.hive.client.exceptions import ApiException
37
37
  from crypticorn.hive.client.models.api_error_identifier import ApiErrorIdentifier
38
38
  from crypticorn.hive.client.models.api_error_level import ApiErrorLevel
39
39
  from crypticorn.hive.client.models.api_error_type import ApiErrorType
40
+ from crypticorn.hive.client.models.coin_info import CoinInfo
40
41
  from crypticorn.hive.client.models.coins import Coins
41
42
  from crypticorn.hive.client.models.data_download_response import DataDownloadResponse
42
43
  from crypticorn.hive.client.models.data_info import DataInfo
@@ -17,6 +17,7 @@ Do not edit the class manually.
17
17
  from crypticorn.hive.client.models.api_error_identifier import ApiErrorIdentifier
18
18
  from crypticorn.hive.client.models.api_error_level import ApiErrorLevel
19
19
  from crypticorn.hive.client.models.api_error_type import ApiErrorType
20
+ from crypticorn.hive.client.models.coin_info import CoinInfo
20
21
  from crypticorn.hive.client.models.coins import Coins
21
22
  from crypticorn.hive.client.models.data_download_response import DataDownloadResponse
22
23
  from crypticorn.hive.client.models.data_info import DataInfo
@@ -73,12 +73,14 @@ class ApiErrorIdentifier(str, Enum):
73
73
  ORDER_VIOLATES_LIQUIDATION_PRICE_CONSTRAINTS = (
74
74
  "order_violates_liquidation_price_constraints"
75
75
  )
76
+ MARGIN_MODE_CLASH = "margin_mode_clash"
76
77
  MODEL_NAME_NOT_UNIQUE = "model_name_not_unique"
77
78
  NO_CREDENTIALS = "no_credentials"
78
79
  NOW_API_DOWN = "now_api_down"
79
80
  OBJECT_ALREADY_EXISTS = "object_already_exists"
80
81
  OBJECT_CREATED = "object_created"
81
82
  OBJECT_DELETED = "object_deleted"
83
+ OBJECT_LOCKED = "object_locked"
82
84
  OBJECT_NOT_FOUND = "object_not_found"
83
85
  OBJECT_UPDATED = "object_updated"
84
86
  ORDER_IS_ALREADY_FILLED = "order_is_already_filled"
@@ -0,0 +1,106 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Hive AI API
5
+
6
+ API for Hive AI model training and evaluation
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from crypticorn.hive.client.models.coins import Coins
23
+ from crypticorn.hive.client.models.data_version import DataVersion
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+
28
+ class CoinInfo(BaseModel):
29
+ """
30
+ Information about a coin
31
+ """ # noqa: E501
32
+
33
+ identifier: Coins = Field(
34
+ description="The identifier of the coin. Obfuscated for public use."
35
+ )
36
+ version_added: DataVersion = Field(
37
+ description="The data version the coin got introduced in"
38
+ )
39
+ version_removed: Optional[DataVersion] = None
40
+ __properties: ClassVar[List[str]] = [
41
+ "identifier",
42
+ "version_added",
43
+ "version_removed",
44
+ ]
45
+
46
+ model_config = ConfigDict(
47
+ populate_by_name=True,
48
+ validate_assignment=True,
49
+ protected_namespaces=(),
50
+ )
51
+
52
+ def to_str(self) -> str:
53
+ """Returns the string representation of the model using alias"""
54
+ return pprint.pformat(self.model_dump(by_alias=True))
55
+
56
+ def to_json(self) -> str:
57
+ """Returns the JSON representation of the model using alias"""
58
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
59
+ return json.dumps(self.to_dict())
60
+
61
+ @classmethod
62
+ def from_json(cls, json_str: str) -> Optional[Self]:
63
+ """Create an instance of CoinInfo from a JSON string"""
64
+ return cls.from_dict(json.loads(json_str))
65
+
66
+ def to_dict(self) -> Dict[str, Any]:
67
+ """Return the dictionary representation of the model using alias.
68
+
69
+ This has the following differences from calling pydantic's
70
+ `self.model_dump(by_alias=True)`:
71
+
72
+ * `None` is only added to the output dict for nullable fields that
73
+ were set at model initialization. Other fields with value `None`
74
+ are ignored.
75
+ """
76
+ excluded_fields: Set[str] = set([])
77
+
78
+ _dict = self.model_dump(
79
+ by_alias=True,
80
+ exclude=excluded_fields,
81
+ exclude_none=True,
82
+ )
83
+ # set to None if version_removed (nullable) is None
84
+ # and model_fields_set contains the field
85
+ if self.version_removed is None and "version_removed" in self.model_fields_set:
86
+ _dict["version_removed"] = None
87
+
88
+ return _dict
89
+
90
+ @classmethod
91
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
92
+ """Create an instance of CoinInfo from a dict"""
93
+ if obj is None:
94
+ return None
95
+
96
+ if not isinstance(obj, dict):
97
+ return cls.model_validate(obj)
98
+
99
+ _obj = cls.model_validate(
100
+ {
101
+ "identifier": obj.get("identifier"),
102
+ "version_added": obj.get("version_added"),
103
+ "version_removed": obj.get("version_removed"),
104
+ }
105
+ )
106
+ return _obj
@@ -19,7 +19,7 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field
21
21
  from typing import Any, ClassVar, Dict, List
22
- from crypticorn.hive.client.models.coins import Coins
22
+ from crypticorn.hive.client.models.coin_info import CoinInfo
23
23
  from crypticorn.hive.client.models.data_options import DataOptions
24
24
  from crypticorn.hive.client.models.data_version_info import DataVersionInfo
25
25
  from crypticorn.hive.client.models.feature_size import FeatureSize
@@ -36,14 +36,14 @@ class DataInfo(BaseModel):
36
36
  data: Dict[str, Dict[str, DataOptions]] = Field(
37
37
  description="The complete data information for all versions, coins, feature sizes and targets."
38
38
  )
39
- coins: List[Coins] = Field(
40
- description="The coins available on the latest data version."
39
+ coins: List[CoinInfo] = Field(
40
+ description="The coins available for all data versions."
41
41
  )
42
42
  feature_sizes: List[FeatureSize] = Field(
43
- description="The feature sizes available on the latest data version."
43
+ description="The feature sizes available for all data versions."
44
44
  )
45
45
  targets: List[TargetInfo] = Field(
46
- description="The targets available on the latest data version."
46
+ description="The targets available for all data versions."
47
47
  )
48
48
  all_versions: List[DataVersionInfo] = Field(
49
49
  description="All ever existing data versions. Some may not be publicly available yet."
@@ -104,6 +104,13 @@ class DataInfo(BaseModel):
104
104
  if self.data[_key_data]:
105
105
  _field_dict[_key_data] = self.data[_key_data].to_dict()
106
106
  _dict["data"] = _field_dict
107
+ # override the default output from pydantic by calling `to_dict()` of each item in coins (list)
108
+ _items = []
109
+ if self.coins:
110
+ for _item_coins in self.coins:
111
+ if _item_coins:
112
+ _items.append(_item_coins.to_dict())
113
+ _dict["coins"] = _items
107
114
  # override the default output from pydantic by calling `to_dict()` of each item in targets (list)
108
115
  _items = []
109
116
  if self.targets:
@@ -156,7 +163,11 @@ class DataInfo(BaseModel):
156
163
  if obj.get("data") is not None
157
164
  else None
158
165
  ),
159
- "coins": obj.get("coins"),
166
+ "coins": (
167
+ [CoinInfo.from_dict(_item) for _item in obj["coins"]]
168
+ if obj.get("coins") is not None
169
+ else None
170
+ ),
160
171
  "feature_sizes": obj.get("feature_sizes"),
161
172
  "targets": (
162
173
  [TargetInfo.from_dict(_item) for _item in obj["targets"]]
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field
21
- from typing import Any, ClassVar, Dict, List
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from crypticorn.hive.client.models.data_version import DataVersion
23
23
  from crypticorn.hive.client.models.target import Target
24
24
  from crypticorn.hive.client.models.target_type import TargetType
@@ -31,10 +31,18 @@ class TargetInfo(BaseModel):
31
31
  Information about a target
32
32
  """ # noqa: E501
33
33
 
34
- name: Target = Field(description="Target name")
35
- type: TargetType = Field(description="Target type")
36
- version: DataVersion = Field(description="Data version")
37
- __properties: ClassVar[List[str]] = ["name", "type", "version"]
34
+ name: Target = Field(description="The name of the target.")
35
+ type: TargetType = Field(description="The type of the target.")
36
+ version_added: DataVersion = Field(
37
+ description="The data version the target got introduced in."
38
+ )
39
+ version_removed: Optional[DataVersion] = None
40
+ __properties: ClassVar[List[str]] = [
41
+ "name",
42
+ "type",
43
+ "version_added",
44
+ "version_removed",
45
+ ]
38
46
 
39
47
  model_config = ConfigDict(
40
48
  populate_by_name=True,
@@ -73,6 +81,11 @@ class TargetInfo(BaseModel):
73
81
  exclude=excluded_fields,
74
82
  exclude_none=True,
75
83
  )
84
+ # set to None if version_removed (nullable) is None
85
+ # and model_fields_set contains the field
86
+ if self.version_removed is None and "version_removed" in self.model_fields_set:
87
+ _dict["version_removed"] = None
88
+
76
89
  return _dict
77
90
 
78
91
  @classmethod
@@ -88,7 +101,8 @@ class TargetInfo(BaseModel):
88
101
  {
89
102
  "name": obj.get("name"),
90
103
  "type": obj.get("type"),
91
- "version": obj.get("version"),
104
+ "version_added": obj.get("version_added"),
105
+ "version_removed": obj.get("version_removed"),
92
106
  }
93
107
  )
94
108
  return _obj
@@ -35,16 +35,18 @@ from crypticorn.pay.client.exceptions import ApiAttributeError
35
35
  from crypticorn.pay.client.exceptions import ApiException
36
36
 
37
37
  # import models into sdk package
38
+ from crypticorn.pay.client.models.api_error_identifier import ApiErrorIdentifier
39
+ from crypticorn.pay.client.models.api_error_level import ApiErrorLevel
40
+ from crypticorn.pay.client.models.api_error_type import ApiErrorType
38
41
  from crypticorn.pay.client.models.exception_detail import ExceptionDetail
39
42
  from crypticorn.pay.client.models.log_level import LogLevel
40
43
  from crypticorn.pay.client.models.now_create_invoice_req import NowCreateInvoiceReq
41
44
  from crypticorn.pay.client.models.now_create_invoice_res import NowCreateInvoiceRes
42
45
  from crypticorn.pay.client.models.payment import Payment
43
46
  from crypticorn.pay.client.models.payment_status import PaymentStatus
47
+ from crypticorn.pay.client.models.product import Product
44
48
  from crypticorn.pay.client.models.product_create import ProductCreate
45
- from crypticorn.pay.client.models.product_read import ProductRead
46
- from crypticorn.pay.client.models.product_sub_read import ProductSubRead
47
49
  from crypticorn.pay.client.models.product_update import ProductUpdate
48
50
  from crypticorn.pay.client.models.provider import Provider
49
- from crypticorn.pay.client.models.response_getuptime import ResponseGetuptime
50
51
  from crypticorn.pay.client.models.scope import Scope
52
+ from crypticorn.pay.client.models.subscription import Subscription
@@ -16,11 +16,10 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictInt, StrictStr, field_validator
20
- from typing import Any, Dict, List, Optional
19
+ from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator
20
+ from typing import Any, Dict, List, Optional, Union
21
21
  from typing_extensions import Annotated
22
22
  from crypticorn.pay.client.models.log_level import LogLevel
23
- from crypticorn.pay.client.models.response_getuptime import ResponseGetuptime
24
23
 
25
24
  from crypticorn.pay.client.api_client import ApiClient, RequestSerialized
26
25
  from crypticorn.pay.client.api_response import ApiResponse
@@ -272,7 +271,7 @@ class AdminApi:
272
271
  include: Annotated[
273
272
  Optional[List[Optional[StrictStr]]],
274
273
  Field(
275
- description="List of dependencies to include in the response. If not provided, all installed packages will be returned."
274
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
276
275
  ),
277
276
  ] = None,
278
277
  _request_timeout: Union[
@@ -286,12 +285,12 @@ class AdminApi:
286
285
  _content_type: Optional[StrictStr] = None,
287
286
  _headers: Optional[Dict[StrictStr, Any]] = None,
288
287
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
289
- ) -> List[object]:
288
+ ) -> Dict[str, Optional[str]]:
290
289
  """List Installed Packages
291
290
 
292
- Return a list of installed packages and versions.
291
+ 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
293
292
 
294
- :param include: List of dependencies to include in the response. If not provided, all installed packages will be returned.
293
+ :param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
295
294
  :type include: List[Optional[str]]
296
295
  :param _request_timeout: timeout setting for this request. If one
297
296
  number provided, it will be total request
@@ -324,7 +323,7 @@ class AdminApi:
324
323
  )
325
324
 
326
325
  _response_types_map: Dict[str, Optional[str]] = {
327
- "200": "List[object]",
326
+ "200": "Dict[str, Optional[str]]",
328
327
  }
329
328
  response_data = await self.api_client.call_api(
330
329
  *_param, _request_timeout=_request_timeout
@@ -341,7 +340,7 @@ class AdminApi:
341
340
  include: Annotated[
342
341
  Optional[List[Optional[StrictStr]]],
343
342
  Field(
344
- description="List of dependencies to include in the response. If not provided, all installed packages will be returned."
343
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
345
344
  ),
346
345
  ] = None,
347
346
  _request_timeout: Union[
@@ -355,12 +354,12 @@ class AdminApi:
355
354
  _content_type: Optional[StrictStr] = None,
356
355
  _headers: Optional[Dict[StrictStr, Any]] = None,
357
356
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
358
- ) -> ApiResponse[List[object]]:
357
+ ) -> ApiResponse[Dict[str, Optional[str]]]:
359
358
  """List Installed Packages
360
359
 
361
- Return a list of installed packages and versions.
360
+ 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
362
361
 
363
- :param include: List of dependencies to include in the response. If not provided, all installed packages will be returned.
362
+ :param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
364
363
  :type include: List[Optional[str]]
365
364
  :param _request_timeout: timeout setting for this request. If one
366
365
  number provided, it will be total request
@@ -393,7 +392,7 @@ class AdminApi:
393
392
  )
394
393
 
395
394
  _response_types_map: Dict[str, Optional[str]] = {
396
- "200": "List[object]",
395
+ "200": "Dict[str, Optional[str]]",
397
396
  }
398
397
  response_data = await self.api_client.call_api(
399
398
  *_param, _request_timeout=_request_timeout
@@ -410,7 +409,7 @@ class AdminApi:
410
409
  include: Annotated[
411
410
  Optional[List[Optional[StrictStr]]],
412
411
  Field(
413
- description="List of dependencies to include in the response. If not provided, all installed packages will be returned."
412
+ description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
414
413
  ),
415
414
  ] = None,
416
415
  _request_timeout: Union[
@@ -427,9 +426,9 @@ class AdminApi:
427
426
  ) -> RESTResponseType:
428
427
  """List Installed Packages
429
428
 
430
- Return a list of installed packages and versions.
429
+ 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
431
430
 
432
- :param include: List of dependencies to include in the response. If not provided, all installed packages will be returned.
431
+ :param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
433
432
  :type include: List[Optional[str]]
434
433
  :param _request_timeout: timeout setting for this request. If one
435
434
  number provided, it will be total request
@@ -462,7 +461,7 @@ class AdminApi:
462
461
  )
463
462
 
464
463
  _response_types_map: Dict[str, Optional[str]] = {
465
- "200": "List[object]",
464
+ "200": "Dict[str, Optional[str]]",
466
465
  }
467
466
  response_data = await self.api_client.call_api(
468
467
  *_param, _request_timeout=_request_timeout
@@ -542,9 +541,9 @@ class AdminApi:
542
541
  _headers: Optional[Dict[StrictStr, Any]] = None,
543
542
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
544
543
  ) -> LogLevel:
545
- """Get Logging Level
544
+ """(Deprecated) Get Logging Level
546
545
 
547
- Get the log level of the server logger.
546
+ Get the log level of the server logger. Will be removed in a future release.
548
547
 
549
548
  :param _request_timeout: timeout setting for this request. If one
550
549
  number provided, it will be total request
@@ -567,6 +566,7 @@ class AdminApi:
567
566
  :type _host_index: int, optional
568
567
  :return: Returns the result object.
569
568
  """ # noqa: E501
569
+ warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
570
570
 
571
571
  _param = self._get_log_level_serialize(
572
572
  _request_auth=_request_auth,
@@ -602,9 +602,9 @@ class AdminApi:
602
602
  _headers: Optional[Dict[StrictStr, Any]] = None,
603
603
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
604
604
  ) -> ApiResponse[LogLevel]:
605
- """Get Logging Level
605
+ """(Deprecated) Get Logging Level
606
606
 
607
- Get the log level of the server logger.
607
+ Get the log level of the server logger. Will be removed in a future release.
608
608
 
609
609
  :param _request_timeout: timeout setting for this request. If one
610
610
  number provided, it will be total request
@@ -627,6 +627,7 @@ class AdminApi:
627
627
  :type _host_index: int, optional
628
628
  :return: Returns the result object.
629
629
  """ # noqa: E501
630
+ warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
630
631
 
631
632
  _param = self._get_log_level_serialize(
632
633
  _request_auth=_request_auth,
@@ -662,9 +663,9 @@ class AdminApi:
662
663
  _headers: Optional[Dict[StrictStr, Any]] = None,
663
664
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
664
665
  ) -> RESTResponseType:
665
- """Get Logging Level
666
+ """(Deprecated) Get Logging Level
666
667
 
667
- Get the log level of the server logger.
668
+ Get the log level of the server logger. Will be removed in a future release.
668
669
 
669
670
  :param _request_timeout: timeout setting for this request. If one
670
671
  number provided, it will be total request
@@ -687,6 +688,7 @@ class AdminApi:
687
688
  :type _host_index: int, optional
688
689
  :return: Returns the result object.
689
690
  """ # noqa: E501
691
+ warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
690
692
 
691
693
  _param = self._get_log_level_serialize(
692
694
  _request_auth=_request_auth,
@@ -768,7 +770,7 @@ class AdminApi:
768
770
  _content_type: Optional[StrictStr] = None,
769
771
  _headers: Optional[Dict[StrictStr, Any]] = None,
770
772
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
771
- ) -> int:
773
+ ) -> float:
772
774
  """Get Memory Usage
773
775
 
774
776
  Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
@@ -803,7 +805,7 @@ class AdminApi:
803
805
  )
804
806
 
805
807
  _response_types_map: Dict[str, Optional[str]] = {
806
- "200": "int",
808
+ "200": "float",
807
809
  }
808
810
  response_data = await self.api_client.call_api(
809
811
  *_param, _request_timeout=_request_timeout
@@ -828,7 +830,7 @@ class AdminApi:
828
830
  _content_type: Optional[StrictStr] = None,
829
831
  _headers: Optional[Dict[StrictStr, Any]] = None,
830
832
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
831
- ) -> ApiResponse[int]:
833
+ ) -> ApiResponse[float]:
832
834
  """Get Memory Usage
833
835
 
834
836
  Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
@@ -863,7 +865,7 @@ class AdminApi:
863
865
  )
864
866
 
865
867
  _response_types_map: Dict[str, Optional[str]] = {
866
- "200": "int",
868
+ "200": "float",
867
869
  }
868
870
  response_data = await self.api_client.call_api(
869
871
  *_param, _request_timeout=_request_timeout
@@ -923,7 +925,7 @@ class AdminApi:
923
925
  )
924
926
 
925
927
  _response_types_map: Dict[str, Optional[str]] = {
926
- "200": "int",
928
+ "200": "float",
927
929
  }
928
930
  response_data = await self.api_client.call_api(
929
931
  *_param, _request_timeout=_request_timeout
@@ -1223,7 +1225,7 @@ class AdminApi:
1223
1225
  _content_type: Optional[StrictStr] = None,
1224
1226
  _headers: Optional[Dict[StrictStr, Any]] = None,
1225
1227
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1226
- ) -> ResponseGetuptime:
1228
+ ) -> str:
1227
1229
  """Get Uptime
1228
1230
 
1229
1231
  Return the server uptime in seconds or human-readable form.
@@ -1261,7 +1263,7 @@ class AdminApi:
1261
1263
  )
1262
1264
 
1263
1265
  _response_types_map: Dict[str, Optional[str]] = {
1264
- "200": "ResponseGetuptime",
1266
+ "200": "str",
1265
1267
  }
1266
1268
  response_data = await self.api_client.call_api(
1267
1269
  *_param, _request_timeout=_request_timeout
@@ -1287,7 +1289,7 @@ class AdminApi:
1287
1289
  _content_type: Optional[StrictStr] = None,
1288
1290
  _headers: Optional[Dict[StrictStr, Any]] = None,
1289
1291
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1290
- ) -> ApiResponse[ResponseGetuptime]:
1292
+ ) -> ApiResponse[str]:
1291
1293
  """Get Uptime
1292
1294
 
1293
1295
  Return the server uptime in seconds or human-readable form.
@@ -1325,7 +1327,7 @@ class AdminApi:
1325
1327
  )
1326
1328
 
1327
1329
  _response_types_map: Dict[str, Optional[str]] = {
1328
- "200": "ResponseGetuptime",
1330
+ "200": "str",
1329
1331
  }
1330
1332
  response_data = await self.api_client.call_api(
1331
1333
  *_param, _request_timeout=_request_timeout
@@ -1389,7 +1391,7 @@ class AdminApi:
1389
1391
  )
1390
1392
 
1391
1393
  _response_types_map: Dict[str, Optional[str]] = {
1392
- "200": "ResponseGetuptime",
1394
+ "200": "str",
1393
1395
  }
1394
1396
  response_data = await self.api_client.call_api(
1395
1397
  *_param, _request_timeout=_request_timeout