crypticorn 2.11.6__py3-none-any.whl → 2.11.8__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 (56) hide show
  1. crypticorn/common/errors.py +14 -3
  2. crypticorn/trade/client/__init__.py +27 -9
  3. crypticorn/trade/client/api/__init__.py +1 -0
  4. crypticorn/trade/client/api/admin_api.py +1455 -0
  5. crypticorn/trade/client/api/api_keys_api.py +60 -58
  6. crypticorn/trade/client/api/bots_api.py +289 -48
  7. crypticorn/trade/client/api/exchanges_api.py +474 -17
  8. crypticorn/trade/client/api/futures_trading_panel_api.py +1 -1
  9. crypticorn/trade/client/api/notifications_api.py +80 -96
  10. crypticorn/trade/client/api/orders_api.py +7 -7
  11. crypticorn/trade/client/api/status_api.py +5 -232
  12. crypticorn/trade/client/api/strategies_api.py +55 -54
  13. crypticorn/trade/client/api/trading_actions_api.py +42 -38
  14. crypticorn/trade/client/api_client.py +1 -1
  15. crypticorn/trade/client/configuration.py +1 -1
  16. crypticorn/trade/client/exceptions.py +1 -1
  17. crypticorn/trade/client/models/__init__.py +26 -9
  18. crypticorn/trade/client/models/api_error_identifier.py +116 -0
  19. crypticorn/trade/client/models/api_error_level.py +37 -0
  20. crypticorn/trade/client/models/api_error_type.py +37 -0
  21. crypticorn/trade/client/models/{bot_model.py → bot.py} +59 -60
  22. crypticorn/trade/client/models/bot_create.py +104 -0
  23. crypticorn/trade/client/models/bot_status.py +1 -1
  24. crypticorn/trade/client/models/bot_update.py +107 -0
  25. crypticorn/trade/client/models/exception_detail.py +8 -5
  26. crypticorn/trade/client/models/exchange.py +36 -0
  27. crypticorn/trade/client/models/exchange_key.py +111 -0
  28. crypticorn/trade/client/models/exchange_key_create.py +107 -0
  29. crypticorn/trade/client/models/{exchange_key_model.py → exchange_key_update.py} +12 -47
  30. crypticorn/trade/client/models/execution_ids.py +1 -1
  31. crypticorn/trade/client/models/futures_balance.py +1 -1
  32. crypticorn/trade/client/models/futures_trading_action.py +24 -16
  33. crypticorn/trade/client/models/{spot_trading_action.py → futures_trading_action_create.py} +24 -28
  34. crypticorn/trade/client/models/log_level.py +38 -0
  35. crypticorn/trade/client/models/margin_mode.py +1 -1
  36. crypticorn/trade/client/models/market_type.py +35 -0
  37. crypticorn/trade/client/models/{notification_model.py → notification.py} +35 -40
  38. crypticorn/trade/client/models/notification_create.py +114 -0
  39. crypticorn/trade/client/models/notification_update.py +96 -0
  40. crypticorn/trade/client/models/{order_model.py → order.py} +66 -59
  41. crypticorn/trade/client/models/order_status.py +1 -1
  42. crypticorn/trade/client/models/post_futures_action.py +1 -1
  43. crypticorn/trade/client/models/{action_model.py → spot_trading_action_create.py} +7 -65
  44. crypticorn/trade/client/models/{strategy_model_input.py → strategy.py} +32 -31
  45. crypticorn/trade/client/models/{strategy_model_output.py → strategy_create.py} +22 -36
  46. crypticorn/trade/client/models/strategy_exchange_info.py +4 -3
  47. crypticorn/trade/client/models/strategy_update.py +147 -0
  48. crypticorn/trade/client/models/tpsl.py +1 -1
  49. crypticorn/trade/client/models/trading_action_type.py +1 -1
  50. crypticorn/trade/client/rest.py +1 -1
  51. {crypticorn-2.11.6.dist-info → crypticorn-2.11.8.dist-info}/METADATA +1 -1
  52. {crypticorn-2.11.6.dist-info → crypticorn-2.11.8.dist-info}/RECORD +56 -42
  53. {crypticorn-2.11.6.dist-info → crypticorn-2.11.8.dist-info}/WHEEL +0 -0
  54. {crypticorn-2.11.6.dist-info → crypticorn-2.11.8.dist-info}/entry_points.txt +0 -0
  55. {crypticorn-2.11.6.dist-info → crypticorn-2.11.8.dist-info}/licenses/LICENSE +0 -0
  56. {crypticorn-2.11.6.dist-info → crypticorn-2.11.8.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Trading API
5
5
 
6
- API for automated trading and exchange interface
6
+ API for automated trading and exchange interface. This API is used to trade on the exchange and manage bots, API keys, orders, and more.
7
7
 
8
8
  The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -17,8 +17,10 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import StrictBool, StrictInt, StrictStr
20
- from typing import Any, List, Optional
21
- from crypticorn.trade.client.models.bot_model import BotModel
20
+ from typing import List, Optional
21
+ from crypticorn.trade.client.models.bot import Bot
22
+ from crypticorn.trade.client.models.bot_create import BotCreate
23
+ from crypticorn.trade.client.models.bot_update import BotUpdate
22
24
 
23
25
  from crypticorn.trade.client.api_client import ApiClient, RequestSerialized
24
26
  from crypticorn.trade.client.api_response import ApiResponse
@@ -40,7 +42,7 @@ class BotsApi:
40
42
  @validate_call
41
43
  async def create_bot(
42
44
  self,
43
- bot_model: BotModel,
45
+ bot_create: BotCreate,
44
46
  _request_timeout: Union[
45
47
  None,
46
48
  Annotated[StrictFloat, Field(gt=0)],
@@ -52,13 +54,13 @@ class BotsApi:
52
54
  _content_type: Optional[StrictStr] = None,
53
55
  _headers: Optional[Dict[StrictStr, Any]] = None,
54
56
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
55
- ) -> object:
57
+ ) -> Bot:
56
58
  """Create Bot
57
59
 
58
60
  Creates a new bot.
59
61
 
60
- :param bot_model: (required)
61
- :type bot_model: BotModel
62
+ :param bot_create: (required)
63
+ :type bot_create: BotCreate
62
64
  :param _request_timeout: timeout setting for this request. If one
63
65
  number provided, it will be total request
64
66
  timeout. It can also be a pair (tuple) of
@@ -82,7 +84,7 @@ class BotsApi:
82
84
  """ # noqa: E501
83
85
 
84
86
  _param = self._create_bot_serialize(
85
- bot_model=bot_model,
87
+ bot_create=bot_create,
86
88
  _request_auth=_request_auth,
87
89
  _content_type=_content_type,
88
90
  _headers=_headers,
@@ -90,7 +92,7 @@ class BotsApi:
90
92
  )
91
93
 
92
94
  _response_types_map: Dict[str, Optional[str]] = {
93
- "201": "object",
95
+ "201": "Bot",
94
96
  }
95
97
  response_data = await self.api_client.call_api(
96
98
  *_param, _request_timeout=_request_timeout
@@ -104,7 +106,7 @@ class BotsApi:
104
106
  @validate_call
105
107
  async def create_bot_with_http_info(
106
108
  self,
107
- bot_model: BotModel,
109
+ bot_create: BotCreate,
108
110
  _request_timeout: Union[
109
111
  None,
110
112
  Annotated[StrictFloat, Field(gt=0)],
@@ -116,13 +118,13 @@ class BotsApi:
116
118
  _content_type: Optional[StrictStr] = None,
117
119
  _headers: Optional[Dict[StrictStr, Any]] = None,
118
120
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
119
- ) -> ApiResponse[object]:
121
+ ) -> ApiResponse[Bot]:
120
122
  """Create Bot
121
123
 
122
124
  Creates a new bot.
123
125
 
124
- :param bot_model: (required)
125
- :type bot_model: BotModel
126
+ :param bot_create: (required)
127
+ :type bot_create: BotCreate
126
128
  :param _request_timeout: timeout setting for this request. If one
127
129
  number provided, it will be total request
128
130
  timeout. It can also be a pair (tuple) of
@@ -146,7 +148,7 @@ class BotsApi:
146
148
  """ # noqa: E501
147
149
 
148
150
  _param = self._create_bot_serialize(
149
- bot_model=bot_model,
151
+ bot_create=bot_create,
150
152
  _request_auth=_request_auth,
151
153
  _content_type=_content_type,
152
154
  _headers=_headers,
@@ -154,7 +156,7 @@ class BotsApi:
154
156
  )
155
157
 
156
158
  _response_types_map: Dict[str, Optional[str]] = {
157
- "201": "object",
159
+ "201": "Bot",
158
160
  }
159
161
  response_data = await self.api_client.call_api(
160
162
  *_param, _request_timeout=_request_timeout
@@ -168,7 +170,7 @@ class BotsApi:
168
170
  @validate_call
169
171
  async def create_bot_without_preload_content(
170
172
  self,
171
- bot_model: BotModel,
173
+ bot_create: BotCreate,
172
174
  _request_timeout: Union[
173
175
  None,
174
176
  Annotated[StrictFloat, Field(gt=0)],
@@ -185,8 +187,8 @@ class BotsApi:
185
187
 
186
188
  Creates a new bot.
187
189
 
188
- :param bot_model: (required)
189
- :type bot_model: BotModel
190
+ :param bot_create: (required)
191
+ :type bot_create: BotCreate
190
192
  :param _request_timeout: timeout setting for this request. If one
191
193
  number provided, it will be total request
192
194
  timeout. It can also be a pair (tuple) of
@@ -210,7 +212,7 @@ class BotsApi:
210
212
  """ # noqa: E501
211
213
 
212
214
  _param = self._create_bot_serialize(
213
- bot_model=bot_model,
215
+ bot_create=bot_create,
214
216
  _request_auth=_request_auth,
215
217
  _content_type=_content_type,
216
218
  _headers=_headers,
@@ -218,7 +220,7 @@ class BotsApi:
218
220
  )
219
221
 
220
222
  _response_types_map: Dict[str, Optional[str]] = {
221
- "201": "object",
223
+ "201": "Bot",
222
224
  }
223
225
  response_data = await self.api_client.call_api(
224
226
  *_param, _request_timeout=_request_timeout
@@ -227,7 +229,7 @@ class BotsApi:
227
229
 
228
230
  def _create_bot_serialize(
229
231
  self,
230
- bot_model,
232
+ bot_create,
231
233
  _request_auth,
232
234
  _content_type,
233
235
  _headers,
@@ -252,8 +254,8 @@ class BotsApi:
252
254
  # process the header parameters
253
255
  # process the form parameters
254
256
  # process the body parameter
255
- if bot_model is not None:
256
- _body_params = bot_model
257
+ if bot_create is not None:
258
+ _body_params = bot_create
257
259
 
258
260
  # set the HTTP header `Accept`
259
261
  if "Accept" not in _header_params:
@@ -531,6 +533,245 @@ class BotsApi:
531
533
  _request_auth=_request_auth,
532
534
  )
533
535
 
536
+ @validate_call
537
+ async def get_bot(
538
+ self,
539
+ id: StrictStr,
540
+ _request_timeout: Union[
541
+ None,
542
+ Annotated[StrictFloat, Field(gt=0)],
543
+ Tuple[
544
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
545
+ ],
546
+ ] = None,
547
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
548
+ _content_type: Optional[StrictStr] = None,
549
+ _headers: Optional[Dict[StrictStr, Any]] = None,
550
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
551
+ ) -> Bot:
552
+ """Get Bot
553
+
554
+
555
+ :param id: (required)
556
+ :type id: str
557
+ :param _request_timeout: timeout setting for this request. If one
558
+ number provided, it will be total request
559
+ timeout. It can also be a pair (tuple) of
560
+ (connection, read) timeouts.
561
+ :type _request_timeout: int, tuple(int, int), optional
562
+ :param _request_auth: set to override the auth_settings for an a single
563
+ request; this effectively ignores the
564
+ authentication in the spec for a single request.
565
+ :type _request_auth: dict, optional
566
+ :param _content_type: force content-type for the request.
567
+ :type _content_type: str, Optional
568
+ :param _headers: set to override the headers for a single
569
+ request; this effectively ignores the headers
570
+ in the spec for a single request.
571
+ :type _headers: dict, optional
572
+ :param _host_index: set to override the host_index for a single
573
+ request; this effectively ignores the host_index
574
+ in the spec for a single request.
575
+ :type _host_index: int, optional
576
+ :return: Returns the result object.
577
+ """ # noqa: E501
578
+
579
+ _param = self._get_bot_serialize(
580
+ id=id,
581
+ _request_auth=_request_auth,
582
+ _content_type=_content_type,
583
+ _headers=_headers,
584
+ _host_index=_host_index,
585
+ )
586
+
587
+ _response_types_map: Dict[str, Optional[str]] = {
588
+ "200": "Bot",
589
+ }
590
+ response_data = await self.api_client.call_api(
591
+ *_param, _request_timeout=_request_timeout
592
+ )
593
+ await response_data.read()
594
+ return self.api_client.response_deserialize(
595
+ response_data=response_data,
596
+ response_types_map=_response_types_map,
597
+ ).data
598
+
599
+ @validate_call
600
+ async def get_bot_with_http_info(
601
+ self,
602
+ id: StrictStr,
603
+ _request_timeout: Union[
604
+ None,
605
+ Annotated[StrictFloat, Field(gt=0)],
606
+ Tuple[
607
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
608
+ ],
609
+ ] = None,
610
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
611
+ _content_type: Optional[StrictStr] = None,
612
+ _headers: Optional[Dict[StrictStr, Any]] = None,
613
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
614
+ ) -> ApiResponse[Bot]:
615
+ """Get Bot
616
+
617
+
618
+ :param id: (required)
619
+ :type id: str
620
+ :param _request_timeout: timeout setting for this request. If one
621
+ number provided, it will be total request
622
+ timeout. It can also be a pair (tuple) of
623
+ (connection, read) timeouts.
624
+ :type _request_timeout: int, tuple(int, int), optional
625
+ :param _request_auth: set to override the auth_settings for an a single
626
+ request; this effectively ignores the
627
+ authentication in the spec for a single request.
628
+ :type _request_auth: dict, optional
629
+ :param _content_type: force content-type for the request.
630
+ :type _content_type: str, Optional
631
+ :param _headers: set to override the headers for a single
632
+ request; this effectively ignores the headers
633
+ in the spec for a single request.
634
+ :type _headers: dict, optional
635
+ :param _host_index: set to override the host_index for a single
636
+ request; this effectively ignores the host_index
637
+ in the spec for a single request.
638
+ :type _host_index: int, optional
639
+ :return: Returns the result object.
640
+ """ # noqa: E501
641
+
642
+ _param = self._get_bot_serialize(
643
+ id=id,
644
+ _request_auth=_request_auth,
645
+ _content_type=_content_type,
646
+ _headers=_headers,
647
+ _host_index=_host_index,
648
+ )
649
+
650
+ _response_types_map: Dict[str, Optional[str]] = {
651
+ "200": "Bot",
652
+ }
653
+ response_data = await self.api_client.call_api(
654
+ *_param, _request_timeout=_request_timeout
655
+ )
656
+ await response_data.read()
657
+ return self.api_client.response_deserialize(
658
+ response_data=response_data,
659
+ response_types_map=_response_types_map,
660
+ )
661
+
662
+ @validate_call
663
+ async def get_bot_without_preload_content(
664
+ self,
665
+ id: StrictStr,
666
+ _request_timeout: Union[
667
+ None,
668
+ Annotated[StrictFloat, Field(gt=0)],
669
+ Tuple[
670
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
671
+ ],
672
+ ] = None,
673
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
674
+ _content_type: Optional[StrictStr] = None,
675
+ _headers: Optional[Dict[StrictStr, Any]] = None,
676
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
677
+ ) -> RESTResponseType:
678
+ """Get Bot
679
+
680
+
681
+ :param id: (required)
682
+ :type id: str
683
+ :param _request_timeout: timeout setting for this request. If one
684
+ number provided, it will be total request
685
+ timeout. It can also be a pair (tuple) of
686
+ (connection, read) timeouts.
687
+ :type _request_timeout: int, tuple(int, int), optional
688
+ :param _request_auth: set to override the auth_settings for an a single
689
+ request; this effectively ignores the
690
+ authentication in the spec for a single request.
691
+ :type _request_auth: dict, optional
692
+ :param _content_type: force content-type for the request.
693
+ :type _content_type: str, Optional
694
+ :param _headers: set to override the headers for a single
695
+ request; this effectively ignores the headers
696
+ in the spec for a single request.
697
+ :type _headers: dict, optional
698
+ :param _host_index: set to override the host_index for a single
699
+ request; this effectively ignores the host_index
700
+ in the spec for a single request.
701
+ :type _host_index: int, optional
702
+ :return: Returns the result object.
703
+ """ # noqa: E501
704
+
705
+ _param = self._get_bot_serialize(
706
+ id=id,
707
+ _request_auth=_request_auth,
708
+ _content_type=_content_type,
709
+ _headers=_headers,
710
+ _host_index=_host_index,
711
+ )
712
+
713
+ _response_types_map: Dict[str, Optional[str]] = {
714
+ "200": "Bot",
715
+ }
716
+ response_data = await self.api_client.call_api(
717
+ *_param, _request_timeout=_request_timeout
718
+ )
719
+ return response_data.response
720
+
721
+ def _get_bot_serialize(
722
+ self,
723
+ id,
724
+ _request_auth,
725
+ _content_type,
726
+ _headers,
727
+ _host_index,
728
+ ) -> RequestSerialized:
729
+
730
+ _host = None
731
+
732
+ _collection_formats: Dict[str, str] = {}
733
+
734
+ _path_params: Dict[str, str] = {}
735
+ _query_params: List[Tuple[str, str]] = []
736
+ _header_params: Dict[str, Optional[str]] = _headers or {}
737
+ _form_params: List[Tuple[str, str]] = []
738
+ _files: Dict[
739
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
740
+ ] = {}
741
+ _body_params: Optional[bytes] = None
742
+
743
+ # process the path parameters
744
+ if id is not None:
745
+ _path_params["id"] = id
746
+ # process the query parameters
747
+ # process the header parameters
748
+ # process the form parameters
749
+ # process the body parameter
750
+
751
+ # set the HTTP header `Accept`
752
+ if "Accept" not in _header_params:
753
+ _header_params["Accept"] = self.api_client.select_header_accept(
754
+ ["application/json"]
755
+ )
756
+
757
+ # authentication setting
758
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
759
+
760
+ return self.api_client.param_serialize(
761
+ method="GET",
762
+ resource_path="/bots/{id}",
763
+ path_params=_path_params,
764
+ query_params=_query_params,
765
+ header_params=_header_params,
766
+ body=_body_params,
767
+ post_params=_form_params,
768
+ files=_files,
769
+ auth_settings=_auth_settings,
770
+ collection_formats=_collection_formats,
771
+ _host=_host,
772
+ _request_auth=_request_auth,
773
+ )
774
+
534
775
  @validate_call
535
776
  async def get_bots(
536
777
  self,
@@ -548,7 +789,7 @@ class BotsApi:
548
789
  _content_type: Optional[StrictStr] = None,
549
790
  _headers: Optional[Dict[StrictStr, Any]] = None,
550
791
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
551
- ) -> List[BotModel]:
792
+ ) -> List[Bot]:
552
793
  """Get Bots
553
794
 
554
795
 
@@ -591,7 +832,7 @@ class BotsApi:
591
832
  )
592
833
 
593
834
  _response_types_map: Dict[str, Optional[str]] = {
594
- "200": "List[BotModel]",
835
+ "200": "List[Bot]",
595
836
  }
596
837
  response_data = await self.api_client.call_api(
597
838
  *_param, _request_timeout=_request_timeout
@@ -619,7 +860,7 @@ class BotsApi:
619
860
  _content_type: Optional[StrictStr] = None,
620
861
  _headers: Optional[Dict[StrictStr, Any]] = None,
621
862
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
622
- ) -> ApiResponse[List[BotModel]]:
863
+ ) -> ApiResponse[List[Bot]]:
623
864
  """Get Bots
624
865
 
625
866
 
@@ -662,7 +903,7 @@ class BotsApi:
662
903
  )
663
904
 
664
905
  _response_types_map: Dict[str, Optional[str]] = {
665
- "200": "List[BotModel]",
906
+ "200": "List[Bot]",
666
907
  }
667
908
  response_data = await self.api_client.call_api(
668
909
  *_param, _request_timeout=_request_timeout
@@ -733,7 +974,7 @@ class BotsApi:
733
974
  )
734
975
 
735
976
  _response_types_map: Dict[str, Optional[str]] = {
736
- "200": "List[BotModel]",
977
+ "200": "List[Bot]",
737
978
  }
738
979
  response_data = await self.api_client.call_api(
739
980
  *_param, _request_timeout=_request_timeout
@@ -810,7 +1051,7 @@ class BotsApi:
810
1051
  async def update_bot(
811
1052
  self,
812
1053
  id: StrictStr,
813
- bot_model: BotModel,
1054
+ bot_update: BotUpdate,
814
1055
  _request_timeout: Union[
815
1056
  None,
816
1057
  Annotated[StrictFloat, Field(gt=0)],
@@ -822,15 +1063,15 @@ class BotsApi:
822
1063
  _content_type: Optional[StrictStr] = None,
823
1064
  _headers: Optional[Dict[StrictStr, Any]] = None,
824
1065
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
825
- ) -> object:
1066
+ ) -> Bot:
826
1067
  """Update Bot
827
1068
 
828
1069
  Updates a bot.
829
1070
 
830
1071
  :param id: (required)
831
1072
  :type id: str
832
- :param bot_model: (required)
833
- :type bot_model: BotModel
1073
+ :param bot_update: (required)
1074
+ :type bot_update: BotUpdate
834
1075
  :param _request_timeout: timeout setting for this request. If one
835
1076
  number provided, it will be total request
836
1077
  timeout. It can also be a pair (tuple) of
@@ -855,7 +1096,7 @@ class BotsApi:
855
1096
 
856
1097
  _param = self._update_bot_serialize(
857
1098
  id=id,
858
- bot_model=bot_model,
1099
+ bot_update=bot_update,
859
1100
  _request_auth=_request_auth,
860
1101
  _content_type=_content_type,
861
1102
  _headers=_headers,
@@ -863,7 +1104,7 @@ class BotsApi:
863
1104
  )
864
1105
 
865
1106
  _response_types_map: Dict[str, Optional[str]] = {
866
- "200": "object",
1107
+ "200": "Bot",
867
1108
  }
868
1109
  response_data = await self.api_client.call_api(
869
1110
  *_param, _request_timeout=_request_timeout
@@ -878,7 +1119,7 @@ class BotsApi:
878
1119
  async def update_bot_with_http_info(
879
1120
  self,
880
1121
  id: StrictStr,
881
- bot_model: BotModel,
1122
+ bot_update: BotUpdate,
882
1123
  _request_timeout: Union[
883
1124
  None,
884
1125
  Annotated[StrictFloat, Field(gt=0)],
@@ -890,15 +1131,15 @@ class BotsApi:
890
1131
  _content_type: Optional[StrictStr] = None,
891
1132
  _headers: Optional[Dict[StrictStr, Any]] = None,
892
1133
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
893
- ) -> ApiResponse[object]:
1134
+ ) -> ApiResponse[Bot]:
894
1135
  """Update Bot
895
1136
 
896
1137
  Updates a bot.
897
1138
 
898
1139
  :param id: (required)
899
1140
  :type id: str
900
- :param bot_model: (required)
901
- :type bot_model: BotModel
1141
+ :param bot_update: (required)
1142
+ :type bot_update: BotUpdate
902
1143
  :param _request_timeout: timeout setting for this request. If one
903
1144
  number provided, it will be total request
904
1145
  timeout. It can also be a pair (tuple) of
@@ -923,7 +1164,7 @@ class BotsApi:
923
1164
 
924
1165
  _param = self._update_bot_serialize(
925
1166
  id=id,
926
- bot_model=bot_model,
1167
+ bot_update=bot_update,
927
1168
  _request_auth=_request_auth,
928
1169
  _content_type=_content_type,
929
1170
  _headers=_headers,
@@ -931,7 +1172,7 @@ class BotsApi:
931
1172
  )
932
1173
 
933
1174
  _response_types_map: Dict[str, Optional[str]] = {
934
- "200": "object",
1175
+ "200": "Bot",
935
1176
  }
936
1177
  response_data = await self.api_client.call_api(
937
1178
  *_param, _request_timeout=_request_timeout
@@ -946,7 +1187,7 @@ class BotsApi:
946
1187
  async def update_bot_without_preload_content(
947
1188
  self,
948
1189
  id: StrictStr,
949
- bot_model: BotModel,
1190
+ bot_update: BotUpdate,
950
1191
  _request_timeout: Union[
951
1192
  None,
952
1193
  Annotated[StrictFloat, Field(gt=0)],
@@ -965,8 +1206,8 @@ class BotsApi:
965
1206
 
966
1207
  :param id: (required)
967
1208
  :type id: str
968
- :param bot_model: (required)
969
- :type bot_model: BotModel
1209
+ :param bot_update: (required)
1210
+ :type bot_update: BotUpdate
970
1211
  :param _request_timeout: timeout setting for this request. If one
971
1212
  number provided, it will be total request
972
1213
  timeout. It can also be a pair (tuple) of
@@ -991,7 +1232,7 @@ class BotsApi:
991
1232
 
992
1233
  _param = self._update_bot_serialize(
993
1234
  id=id,
994
- bot_model=bot_model,
1235
+ bot_update=bot_update,
995
1236
  _request_auth=_request_auth,
996
1237
  _content_type=_content_type,
997
1238
  _headers=_headers,
@@ -999,7 +1240,7 @@ class BotsApi:
999
1240
  )
1000
1241
 
1001
1242
  _response_types_map: Dict[str, Optional[str]] = {
1002
- "200": "object",
1243
+ "200": "Bot",
1003
1244
  }
1004
1245
  response_data = await self.api_client.call_api(
1005
1246
  *_param, _request_timeout=_request_timeout
@@ -1009,7 +1250,7 @@ class BotsApi:
1009
1250
  def _update_bot_serialize(
1010
1251
  self,
1011
1252
  id,
1012
- bot_model,
1253
+ bot_update,
1013
1254
  _request_auth,
1014
1255
  _content_type,
1015
1256
  _headers,
@@ -1036,8 +1277,8 @@ class BotsApi:
1036
1277
  # process the header parameters
1037
1278
  # process the form parameters
1038
1279
  # process the body parameter
1039
- if bot_model is not None:
1040
- _body_params = bot_model
1280
+ if bot_update is not None:
1281
+ _body_params = bot_update
1041
1282
 
1042
1283
  # set the HTTP header `Accept`
1043
1284
  if "Accept" not in _header_params: