crypticorn 2.5.2__py3-none-any.whl → 2.6.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 (102) hide show
  1. crypticorn/auth/client/__init__.py +9 -0
  2. crypticorn/auth/client/api/auth_api.py +8 -5
  3. crypticorn/auth/client/api/user_api.py +247 -0
  4. crypticorn/auth/client/models/__init__.py +9 -0
  5. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  6. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  7. crypticorn/{hive/client/models/http_validation_error.py → auth/client/models/user_by_username200_response.py} +14 -22
  8. crypticorn/auth/client/models/verify200_response.py +14 -1
  9. crypticorn/auth/client/models/verify_email200_response_auth_auth.py +14 -1
  10. crypticorn/auth/client/models/whoami200_response.py +6 -1
  11. crypticorn/cli/init.py +3 -0
  12. crypticorn/common/__init__.py +2 -1
  13. crypticorn/common/auth.py +13 -9
  14. crypticorn/common/errors.py +312 -105
  15. crypticorn/common/exceptions.py +38 -4
  16. crypticorn/common/mixins.py +19 -0
  17. crypticorn/common/pagination.py +49 -0
  18. crypticorn/common/scopes.py +27 -24
  19. crypticorn/common/status_router.py +9 -7
  20. crypticorn/common/utils.py +12 -6
  21. crypticorn/hive/client/__init__.py +3 -5
  22. crypticorn/hive/client/api/data_api.py +1 -33
  23. crypticorn/hive/client/api/models_api.py +351 -160
  24. crypticorn/hive/client/api/status_api.py +481 -9
  25. crypticorn/hive/client/configuration.py +12 -4
  26. crypticorn/hive/client/models/__init__.py +3 -5
  27. crypticorn/hive/client/models/coins.py +0 -1
  28. crypticorn/hive/client/models/data_info.py +44 -12
  29. crypticorn/hive/client/models/data_version.py +0 -1
  30. crypticorn/{pay/client/models/now_api_status_res.py → hive/client/models/data_version_info.py} +17 -11
  31. crypticorn/hive/client/models/exception_detail.py +114 -0
  32. crypticorn/hive/client/models/model.py +2 -3
  33. crypticorn/hive/client/models/{validation_error.py → target_info.py} +14 -25
  34. crypticorn/hive/client/rest.py +4 -1
  35. crypticorn/klines/client/api/status_api.py +481 -6
  36. crypticorn/klines/client/api/udf_api.py +0 -227
  37. crypticorn/metrics/client/api/status_api.py +476 -1
  38. crypticorn/pay/client/__init__.py +3 -8
  39. crypticorn/pay/client/api/now_payments_api.py +14 -17
  40. crypticorn/pay/client/api/payments_api.py +2 -11
  41. crypticorn/pay/client/api/products_api.py +2 -11
  42. crypticorn/pay/client/api/status_api.py +483 -8
  43. crypticorn/pay/client/api_client.py +2 -2
  44. crypticorn/pay/client/configuration.py +3 -3
  45. crypticorn/pay/client/exceptions.py +2 -2
  46. crypticorn/pay/client/models/__init__.py +3 -8
  47. crypticorn/pay/client/models/{validation_error.py → exception_detail.py} +37 -28
  48. crypticorn/pay/client/models/now_create_invoice_req.py +2 -2
  49. crypticorn/pay/client/models/now_create_invoice_res.py +2 -2
  50. crypticorn/pay/client/models/payment.py +2 -2
  51. crypticorn/pay/client/models/payment_status.py +2 -2
  52. crypticorn/pay/client/models/product_create.py +2 -2
  53. crypticorn/pay/client/models/product_read.py +2 -2
  54. crypticorn/pay/client/models/product_sub_read.py +2 -2
  55. crypticorn/pay/client/models/product_update.py +2 -2
  56. crypticorn/pay/client/models/scope.py +2 -2
  57. crypticorn/pay/client/models/services.py +2 -2
  58. crypticorn/pay/client/rest.py +2 -2
  59. crypticorn/trade/client/__init__.py +3 -7
  60. crypticorn/trade/client/api/api_keys_api.py +5 -20
  61. crypticorn/trade/client/api/bots_api.py +7 -19
  62. crypticorn/trade/client/api/exchanges_api.py +2 -2
  63. crypticorn/trade/client/api/futures_trading_panel_api.py +10 -22
  64. crypticorn/trade/client/api/notifications_api.py +10 -25
  65. crypticorn/trade/client/api/orders_api.py +2 -5
  66. crypticorn/trade/client/api/status_api.py +483 -8
  67. crypticorn/trade/client/api/strategies_api.py +5 -17
  68. crypticorn/trade/client/api/trading_actions_api.py +2 -11
  69. crypticorn/trade/client/api_client.py +2 -2
  70. crypticorn/trade/client/configuration.py +3 -3
  71. crypticorn/trade/client/exceptions.py +2 -2
  72. crypticorn/trade/client/models/__init__.py +3 -7
  73. crypticorn/trade/client/models/action_model.py +2 -2
  74. crypticorn/trade/client/models/bot_model.py +2 -2
  75. crypticorn/trade/client/models/bot_status.py +2 -2
  76. crypticorn/trade/client/models/{validation_error.py → exception_detail.py} +37 -28
  77. crypticorn/trade/client/models/exchange_key_model.py +2 -2
  78. crypticorn/trade/client/models/execution_ids.py +2 -2
  79. crypticorn/trade/client/models/futures_balance.py +2 -2
  80. crypticorn/trade/client/models/futures_trading_action.py +2 -2
  81. crypticorn/trade/client/models/margin_mode.py +2 -2
  82. crypticorn/trade/client/models/notification_model.py +2 -2
  83. crypticorn/trade/client/models/order_model.py +2 -2
  84. crypticorn/trade/client/models/order_status.py +2 -2
  85. crypticorn/trade/client/models/post_futures_action.py +2 -2
  86. crypticorn/trade/client/models/spot_trading_action.py +2 -2
  87. crypticorn/trade/client/models/strategy_exchange_info.py +2 -2
  88. crypticorn/trade/client/models/strategy_model_input.py +2 -2
  89. crypticorn/trade/client/models/strategy_model_output.py +2 -2
  90. crypticorn/trade/client/models/tpsl.py +2 -2
  91. crypticorn/trade/client/models/trading_action_type.py +2 -2
  92. crypticorn/trade/client/rest.py +2 -2
  93. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/METADATA +1 -1
  94. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/RECORD +97 -100
  95. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/WHEEL +1 -1
  96. crypticorn/hive/client/models/validation_error_loc_inner.py +0 -159
  97. crypticorn/pay/client/models/http_validation_error.py +0 -99
  98. crypticorn/pay/client/models/validation_error_loc_inner.py +0 -159
  99. crypticorn/trade/client/models/http_validation_error.py +0 -99
  100. crypticorn/trade/client/models/validation_error_loc_inner.py +0 -159
  101. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/entry_points.txt +0 -0
  102. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/top_level.txt +0 -0
@@ -16,7 +16,7 @@ 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
19
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
20
20
  from typing import Any, List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from crypticorn.hive.client.models.data_version import DataVersion
@@ -46,7 +46,6 @@ class ModelsApi:
46
46
  async def create_model(
47
47
  self,
48
48
  model_create: ModelCreate,
49
- access_token: Optional[StrictStr] = None,
50
49
  _request_timeout: Union[
51
50
  None,
52
51
  Annotated[StrictFloat, Field(gt=0)],
@@ -65,8 +64,6 @@ class ModelsApi:
65
64
 
66
65
  :param model_create: (required)
67
66
  :type model_create: ModelCreate
68
- :param access_token:
69
- :type access_token: str
70
67
  :param _request_timeout: timeout setting for this request. If one
71
68
  number provided, it will be total request
72
69
  timeout. It can also be a pair (tuple) of
@@ -91,7 +88,6 @@ class ModelsApi:
91
88
 
92
89
  _param = self._create_model_serialize(
93
90
  model_create=model_create,
94
- access_token=access_token,
95
91
  _request_auth=_request_auth,
96
92
  _content_type=_content_type,
97
93
  _headers=_headers,
@@ -99,8 +95,7 @@ class ModelsApi:
99
95
  )
100
96
 
101
97
  _response_types_map: Dict[str, Optional[str]] = {
102
- "200": "Model",
103
- "422": "HTTPValidationError",
98
+ "201": "Model",
104
99
  }
105
100
  response_data = await self.api_client.call_api(
106
101
  *_param, _request_timeout=_request_timeout
@@ -115,7 +110,6 @@ class ModelsApi:
115
110
  async def create_model_with_http_info(
116
111
  self,
117
112
  model_create: ModelCreate,
118
- access_token: Optional[StrictStr] = None,
119
113
  _request_timeout: Union[
120
114
  None,
121
115
  Annotated[StrictFloat, Field(gt=0)],
@@ -134,8 +128,6 @@ class ModelsApi:
134
128
 
135
129
  :param model_create: (required)
136
130
  :type model_create: ModelCreate
137
- :param access_token:
138
- :type access_token: str
139
131
  :param _request_timeout: timeout setting for this request. If one
140
132
  number provided, it will be total request
141
133
  timeout. It can also be a pair (tuple) of
@@ -160,7 +152,6 @@ class ModelsApi:
160
152
 
161
153
  _param = self._create_model_serialize(
162
154
  model_create=model_create,
163
- access_token=access_token,
164
155
  _request_auth=_request_auth,
165
156
  _content_type=_content_type,
166
157
  _headers=_headers,
@@ -168,8 +159,7 @@ class ModelsApi:
168
159
  )
169
160
 
170
161
  _response_types_map: Dict[str, Optional[str]] = {
171
- "200": "Model",
172
- "422": "HTTPValidationError",
162
+ "201": "Model",
173
163
  }
174
164
  response_data = await self.api_client.call_api(
175
165
  *_param, _request_timeout=_request_timeout
@@ -184,7 +174,6 @@ class ModelsApi:
184
174
  async def create_model_without_preload_content(
185
175
  self,
186
176
  model_create: ModelCreate,
187
- access_token: Optional[StrictStr] = None,
188
177
  _request_timeout: Union[
189
178
  None,
190
179
  Annotated[StrictFloat, Field(gt=0)],
@@ -203,8 +192,6 @@ class ModelsApi:
203
192
 
204
193
  :param model_create: (required)
205
194
  :type model_create: ModelCreate
206
- :param access_token:
207
- :type access_token: str
208
195
  :param _request_timeout: timeout setting for this request. If one
209
196
  number provided, it will be total request
210
197
  timeout. It can also be a pair (tuple) of
@@ -229,7 +216,6 @@ class ModelsApi:
229
216
 
230
217
  _param = self._create_model_serialize(
231
218
  model_create=model_create,
232
- access_token=access_token,
233
219
  _request_auth=_request_auth,
234
220
  _content_type=_content_type,
235
221
  _headers=_headers,
@@ -237,8 +223,7 @@ class ModelsApi:
237
223
  )
238
224
 
239
225
  _response_types_map: Dict[str, Optional[str]] = {
240
- "200": "Model",
241
- "422": "HTTPValidationError",
226
+ "201": "Model",
242
227
  }
243
228
  response_data = await self.api_client.call_api(
244
229
  *_param, _request_timeout=_request_timeout
@@ -248,7 +233,6 @@ class ModelsApi:
248
233
  def _create_model_serialize(
249
234
  self,
250
235
  model_create,
251
- access_token,
252
236
  _request_auth,
253
237
  _content_type,
254
238
  _headers,
@@ -314,7 +298,6 @@ class ModelsApi:
314
298
  async def delete_model(
315
299
  self,
316
300
  id: Annotated[StrictInt, Field(description="Model ID to delete")],
317
- access_token: Optional[StrictStr] = None,
318
301
  _request_timeout: Union[
319
302
  None,
320
303
  Annotated[StrictFloat, Field(gt=0)],
@@ -326,15 +309,13 @@ class ModelsApi:
326
309
  _content_type: Optional[StrictStr] = None,
327
310
  _headers: Optional[Dict[StrictStr, Any]] = None,
328
311
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
329
- ) -> object:
312
+ ) -> None:
330
313
  """Delete Model
331
314
 
332
315
  Delete a model
333
316
 
334
317
  :param id: Model ID to delete (required)
335
318
  :type id: int
336
- :param access_token:
337
- :type access_token: str
338
319
  :param _request_timeout: timeout setting for this request. If one
339
320
  number provided, it will be total request
340
321
  timeout. It can also be a pair (tuple) of
@@ -359,7 +340,6 @@ class ModelsApi:
359
340
 
360
341
  _param = self._delete_model_serialize(
361
342
  id=id,
362
- access_token=access_token,
363
343
  _request_auth=_request_auth,
364
344
  _content_type=_content_type,
365
345
  _headers=_headers,
@@ -367,8 +347,7 @@ class ModelsApi:
367
347
  )
368
348
 
369
349
  _response_types_map: Dict[str, Optional[str]] = {
370
- "200": "object",
371
- "422": "HTTPValidationError",
350
+ "204": None,
372
351
  }
373
352
  response_data = await self.api_client.call_api(
374
353
  *_param, _request_timeout=_request_timeout
@@ -383,7 +362,6 @@ class ModelsApi:
383
362
  async def delete_model_with_http_info(
384
363
  self,
385
364
  id: Annotated[StrictInt, Field(description="Model ID to delete")],
386
- access_token: Optional[StrictStr] = None,
387
365
  _request_timeout: Union[
388
366
  None,
389
367
  Annotated[StrictFloat, Field(gt=0)],
@@ -395,15 +373,13 @@ class ModelsApi:
395
373
  _content_type: Optional[StrictStr] = None,
396
374
  _headers: Optional[Dict[StrictStr, Any]] = None,
397
375
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
398
- ) -> ApiResponse[object]:
376
+ ) -> ApiResponse[None]:
399
377
  """Delete Model
400
378
 
401
379
  Delete a model
402
380
 
403
381
  :param id: Model ID to delete (required)
404
382
  :type id: int
405
- :param access_token:
406
- :type access_token: str
407
383
  :param _request_timeout: timeout setting for this request. If one
408
384
  number provided, it will be total request
409
385
  timeout. It can also be a pair (tuple) of
@@ -428,7 +404,6 @@ class ModelsApi:
428
404
 
429
405
  _param = self._delete_model_serialize(
430
406
  id=id,
431
- access_token=access_token,
432
407
  _request_auth=_request_auth,
433
408
  _content_type=_content_type,
434
409
  _headers=_headers,
@@ -436,8 +411,7 @@ class ModelsApi:
436
411
  )
437
412
 
438
413
  _response_types_map: Dict[str, Optional[str]] = {
439
- "200": "object",
440
- "422": "HTTPValidationError",
414
+ "204": None,
441
415
  }
442
416
  response_data = await self.api_client.call_api(
443
417
  *_param, _request_timeout=_request_timeout
@@ -452,7 +426,6 @@ class ModelsApi:
452
426
  async def delete_model_without_preload_content(
453
427
  self,
454
428
  id: Annotated[StrictInt, Field(description="Model ID to delete")],
455
- access_token: Optional[StrictStr] = None,
456
429
  _request_timeout: Union[
457
430
  None,
458
431
  Annotated[StrictFloat, Field(gt=0)],
@@ -471,8 +444,6 @@ class ModelsApi:
471
444
 
472
445
  :param id: Model ID to delete (required)
473
446
  :type id: int
474
- :param access_token:
475
- :type access_token: str
476
447
  :param _request_timeout: timeout setting for this request. If one
477
448
  number provided, it will be total request
478
449
  timeout. It can also be a pair (tuple) of
@@ -497,7 +468,6 @@ class ModelsApi:
497
468
 
498
469
  _param = self._delete_model_serialize(
499
470
  id=id,
500
- access_token=access_token,
501
471
  _request_auth=_request_auth,
502
472
  _content_type=_content_type,
503
473
  _headers=_headers,
@@ -505,8 +475,7 @@ class ModelsApi:
505
475
  )
506
476
 
507
477
  _response_types_map: Dict[str, Optional[str]] = {
508
- "200": "object",
509
- "422": "HTTPValidationError",
478
+ "204": None,
510
479
  }
511
480
  response_data = await self.api_client.call_api(
512
481
  *_param, _request_timeout=_request_timeout
@@ -516,7 +485,6 @@ class ModelsApi:
516
485
  def _delete_model_serialize(
517
486
  self,
518
487
  id,
519
- access_token,
520
488
  _request_auth,
521
489
  _content_type,
522
490
  _headers,
@@ -576,7 +544,6 @@ class ModelsApi:
576
544
  version: Annotated[
577
545
  Optional[DataVersion], Field(description="Data version to evaluate against")
578
546
  ] = None,
579
- access_token: Optional[StrictStr] = None,
580
547
  _request_timeout: Union[
581
548
  None,
582
549
  Annotated[StrictFloat, Field(gt=0)],
@@ -599,8 +566,6 @@ class ModelsApi:
599
566
  :type request_body: List[object]
600
567
  :param version: Data version to evaluate against
601
568
  :type version: DataVersion
602
- :param access_token:
603
- :type access_token: str
604
569
  :param _request_timeout: timeout setting for this request. If one
605
570
  number provided, it will be total request
606
571
  timeout. It can also be a pair (tuple) of
@@ -627,7 +592,6 @@ class ModelsApi:
627
592
  id=id,
628
593
  request_body=request_body,
629
594
  version=version,
630
- access_token=access_token,
631
595
  _request_auth=_request_auth,
632
596
  _content_type=_content_type,
633
597
  _headers=_headers,
@@ -636,7 +600,6 @@ class ModelsApi:
636
600
 
637
601
  _response_types_map: Dict[str, Optional[str]] = {
638
602
  "200": "EvaluationResponse",
639
- "422": "HTTPValidationError",
640
603
  }
641
604
  response_data = await self.api_client.call_api(
642
605
  *_param, _request_timeout=_request_timeout
@@ -655,7 +618,6 @@ class ModelsApi:
655
618
  version: Annotated[
656
619
  Optional[DataVersion], Field(description="Data version to evaluate against")
657
620
  ] = None,
658
- access_token: Optional[StrictStr] = None,
659
621
  _request_timeout: Union[
660
622
  None,
661
623
  Annotated[StrictFloat, Field(gt=0)],
@@ -678,8 +640,6 @@ class ModelsApi:
678
640
  :type request_body: List[object]
679
641
  :param version: Data version to evaluate against
680
642
  :type version: DataVersion
681
- :param access_token:
682
- :type access_token: str
683
643
  :param _request_timeout: timeout setting for this request. If one
684
644
  number provided, it will be total request
685
645
  timeout. It can also be a pair (tuple) of
@@ -706,7 +666,6 @@ class ModelsApi:
706
666
  id=id,
707
667
  request_body=request_body,
708
668
  version=version,
709
- access_token=access_token,
710
669
  _request_auth=_request_auth,
711
670
  _content_type=_content_type,
712
671
  _headers=_headers,
@@ -715,7 +674,6 @@ class ModelsApi:
715
674
 
716
675
  _response_types_map: Dict[str, Optional[str]] = {
717
676
  "200": "EvaluationResponse",
718
- "422": "HTTPValidationError",
719
677
  }
720
678
  response_data = await self.api_client.call_api(
721
679
  *_param, _request_timeout=_request_timeout
@@ -734,7 +692,6 @@ class ModelsApi:
734
692
  version: Annotated[
735
693
  Optional[DataVersion], Field(description="Data version to evaluate against")
736
694
  ] = None,
737
- access_token: Optional[StrictStr] = None,
738
695
  _request_timeout: Union[
739
696
  None,
740
697
  Annotated[StrictFloat, Field(gt=0)],
@@ -757,8 +714,6 @@ class ModelsApi:
757
714
  :type request_body: List[object]
758
715
  :param version: Data version to evaluate against
759
716
  :type version: DataVersion
760
- :param access_token:
761
- :type access_token: str
762
717
  :param _request_timeout: timeout setting for this request. If one
763
718
  number provided, it will be total request
764
719
  timeout. It can also be a pair (tuple) of
@@ -785,7 +740,6 @@ class ModelsApi:
785
740
  id=id,
786
741
  request_body=request_body,
787
742
  version=version,
788
- access_token=access_token,
789
743
  _request_auth=_request_auth,
790
744
  _content_type=_content_type,
791
745
  _headers=_headers,
@@ -794,7 +748,6 @@ class ModelsApi:
794
748
 
795
749
  _response_types_map: Dict[str, Optional[str]] = {
796
750
  "200": "EvaluationResponse",
797
- "422": "HTTPValidationError",
798
751
  }
799
752
  response_data = await self.api_client.call_api(
800
753
  *_param, _request_timeout=_request_timeout
@@ -806,7 +759,6 @@ class ModelsApi:
806
759
  id,
807
760
  request_body,
808
761
  version,
809
- access_token,
810
762
  _request_auth,
811
763
  _content_type,
812
764
  _headers,
@@ -877,9 +829,9 @@ class ModelsApi:
877
829
  )
878
830
 
879
831
  @validate_call
880
- async def get_all_models(
832
+ async def get_model(
881
833
  self,
882
- access_token: Optional[StrictStr] = None,
834
+ id: Annotated[StrictInt, Field(description="Model ID to get")],
883
835
  _request_timeout: Union[
884
836
  None,
885
837
  Annotated[StrictFloat, Field(gt=0)],
@@ -891,13 +843,13 @@ class ModelsApi:
891
843
  _content_type: Optional[StrictStr] = None,
892
844
  _headers: Optional[Dict[StrictStr, Any]] = None,
893
845
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
894
- ) -> List[Model]:
895
- """Get All Models
846
+ ) -> Model:
847
+ """Get Model
896
848
 
897
- List all models
849
+ Get a model by ID
898
850
 
899
- :param access_token:
900
- :type access_token: str
851
+ :param id: Model ID to get (required)
852
+ :type id: int
901
853
  :param _request_timeout: timeout setting for this request. If one
902
854
  number provided, it will be total request
903
855
  timeout. It can also be a pair (tuple) of
@@ -920,8 +872,8 @@ class ModelsApi:
920
872
  :return: Returns the result object.
921
873
  """ # noqa: E501
922
874
 
923
- _param = self._get_all_models_serialize(
924
- access_token=access_token,
875
+ _param = self._get_model_serialize(
876
+ id=id,
925
877
  _request_auth=_request_auth,
926
878
  _content_type=_content_type,
927
879
  _headers=_headers,
@@ -929,8 +881,7 @@ class ModelsApi:
929
881
  )
930
882
 
931
883
  _response_types_map: Dict[str, Optional[str]] = {
932
- "200": "List[Model]",
933
- "422": "HTTPValidationError",
884
+ "200": "Model",
934
885
  }
935
886
  response_data = await self.api_client.call_api(
936
887
  *_param, _request_timeout=_request_timeout
@@ -942,9 +893,9 @@ class ModelsApi:
942
893
  ).data
943
894
 
944
895
  @validate_call
945
- async def get_all_models_with_http_info(
896
+ async def get_model_with_http_info(
946
897
  self,
947
- access_token: Optional[StrictStr] = None,
898
+ id: Annotated[StrictInt, Field(description="Model ID to get")],
948
899
  _request_timeout: Union[
949
900
  None,
950
901
  Annotated[StrictFloat, Field(gt=0)],
@@ -956,13 +907,13 @@ class ModelsApi:
956
907
  _content_type: Optional[StrictStr] = None,
957
908
  _headers: Optional[Dict[StrictStr, Any]] = None,
958
909
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
959
- ) -> ApiResponse[List[Model]]:
960
- """Get All Models
910
+ ) -> ApiResponse[Model]:
911
+ """Get Model
961
912
 
962
- List all models
913
+ Get a model by ID
963
914
 
964
- :param access_token:
965
- :type access_token: str
915
+ :param id: Model ID to get (required)
916
+ :type id: int
966
917
  :param _request_timeout: timeout setting for this request. If one
967
918
  number provided, it will be total request
968
919
  timeout. It can also be a pair (tuple) of
@@ -985,8 +936,8 @@ class ModelsApi:
985
936
  :return: Returns the result object.
986
937
  """ # noqa: E501
987
938
 
988
- _param = self._get_all_models_serialize(
989
- access_token=access_token,
939
+ _param = self._get_model_serialize(
940
+ id=id,
990
941
  _request_auth=_request_auth,
991
942
  _content_type=_content_type,
992
943
  _headers=_headers,
@@ -994,8 +945,7 @@ class ModelsApi:
994
945
  )
995
946
 
996
947
  _response_types_map: Dict[str, Optional[str]] = {
997
- "200": "List[Model]",
998
- "422": "HTTPValidationError",
948
+ "200": "Model",
999
949
  }
1000
950
  response_data = await self.api_client.call_api(
1001
951
  *_param, _request_timeout=_request_timeout
@@ -1007,9 +957,9 @@ class ModelsApi:
1007
957
  )
1008
958
 
1009
959
  @validate_call
1010
- async def get_all_models_without_preload_content(
960
+ async def get_model_without_preload_content(
1011
961
  self,
1012
- access_token: Optional[StrictStr] = None,
962
+ id: Annotated[StrictInt, Field(description="Model ID to get")],
1013
963
  _request_timeout: Union[
1014
964
  None,
1015
965
  Annotated[StrictFloat, Field(gt=0)],
@@ -1022,12 +972,12 @@ class ModelsApi:
1022
972
  _headers: Optional[Dict[StrictStr, Any]] = None,
1023
973
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1024
974
  ) -> RESTResponseType:
1025
- """Get All Models
975
+ """Get Model
1026
976
 
1027
- List all models
977
+ Get a model by ID
1028
978
 
1029
- :param access_token:
1030
- :type access_token: str
979
+ :param id: Model ID to get (required)
980
+ :type id: int
1031
981
  :param _request_timeout: timeout setting for this request. If one
1032
982
  number provided, it will be total request
1033
983
  timeout. It can also be a pair (tuple) of
@@ -1050,8 +1000,8 @@ class ModelsApi:
1050
1000
  :return: Returns the result object.
1051
1001
  """ # noqa: E501
1052
1002
 
1053
- _param = self._get_all_models_serialize(
1054
- access_token=access_token,
1003
+ _param = self._get_model_serialize(
1004
+ id=id,
1055
1005
  _request_auth=_request_auth,
1056
1006
  _content_type=_content_type,
1057
1007
  _headers=_headers,
@@ -1059,17 +1009,16 @@ class ModelsApi:
1059
1009
  )
1060
1010
 
1061
1011
  _response_types_map: Dict[str, Optional[str]] = {
1062
- "200": "List[Model]",
1063
- "422": "HTTPValidationError",
1012
+ "200": "Model",
1064
1013
  }
1065
1014
  response_data = await self.api_client.call_api(
1066
1015
  *_param, _request_timeout=_request_timeout
1067
1016
  )
1068
1017
  return response_data.response
1069
1018
 
1070
- def _get_all_models_serialize(
1019
+ def _get_model_serialize(
1071
1020
  self,
1072
- access_token,
1021
+ id,
1073
1022
  _request_auth,
1074
1023
  _content_type,
1075
1024
  _headers,
@@ -1090,6 +1039,8 @@ class ModelsApi:
1090
1039
  _body_params: Optional[bytes] = None
1091
1040
 
1092
1041
  # process the path parameters
1042
+ if id is not None:
1043
+ _path_params["id"] = id
1093
1044
  # process the query parameters
1094
1045
  # process the header parameters
1095
1046
  # process the form parameters
@@ -1106,7 +1057,7 @@ class ModelsApi:
1106
1057
 
1107
1058
  return self.api_client.param_serialize(
1108
1059
  method="GET",
1109
- resource_path="/model/all",
1060
+ resource_path="/model/{id}",
1110
1061
  path_params=_path_params,
1111
1062
  query_params=_query_params,
1112
1063
  header_params=_header_params,
@@ -1120,11 +1071,9 @@ class ModelsApi:
1120
1071
  )
1121
1072
 
1122
1073
  @validate_call
1123
- async def get_model(
1074
+ async def get_model_by_name(
1124
1075
  self,
1125
- id: Optional[StrictInt] = None,
1126
- name: Optional[StrictStr] = None,
1127
- access_token: Optional[StrictStr] = None,
1076
+ name: Annotated[StrictStr, Field(description="Model name to get")],
1128
1077
  _request_timeout: Union[
1129
1078
  None,
1130
1079
  Annotated[StrictFloat, Field(gt=0)],
@@ -1137,16 +1086,12 @@ class ModelsApi:
1137
1086
  _headers: Optional[Dict[StrictStr, Any]] = None,
1138
1087
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1139
1088
  ) -> Model:
1140
- """Get Model
1089
+ """Get Model By Name
1141
1090
 
1142
- Get a model by ID or name
1091
+ Get a model by name
1143
1092
 
1144
- :param id:
1145
- :type id: int
1146
- :param name:
1093
+ :param name: Model name to get (required)
1147
1094
  :type name: str
1148
- :param access_token:
1149
- :type access_token: str
1150
1095
  :param _request_timeout: timeout setting for this request. If one
1151
1096
  number provided, it will be total request
1152
1097
  timeout. It can also be a pair (tuple) of
@@ -1169,10 +1114,8 @@ class ModelsApi:
1169
1114
  :return: Returns the result object.
1170
1115
  """ # noqa: E501
1171
1116
 
1172
- _param = self._get_model_serialize(
1173
- id=id,
1117
+ _param = self._get_model_by_name_serialize(
1174
1118
  name=name,
1175
- access_token=access_token,
1176
1119
  _request_auth=_request_auth,
1177
1120
  _content_type=_content_type,
1178
1121
  _headers=_headers,
@@ -1181,7 +1124,6 @@ class ModelsApi:
1181
1124
 
1182
1125
  _response_types_map: Dict[str, Optional[str]] = {
1183
1126
  "200": "Model",
1184
- "422": "HTTPValidationError",
1185
1127
  }
1186
1128
  response_data = await self.api_client.call_api(
1187
1129
  *_param, _request_timeout=_request_timeout
@@ -1193,11 +1135,9 @@ class ModelsApi:
1193
1135
  ).data
1194
1136
 
1195
1137
  @validate_call
1196
- async def get_model_with_http_info(
1138
+ async def get_model_by_name_with_http_info(
1197
1139
  self,
1198
- id: Optional[StrictInt] = None,
1199
- name: Optional[StrictStr] = None,
1200
- access_token: Optional[StrictStr] = None,
1140
+ name: Annotated[StrictStr, Field(description="Model name to get")],
1201
1141
  _request_timeout: Union[
1202
1142
  None,
1203
1143
  Annotated[StrictFloat, Field(gt=0)],
@@ -1210,16 +1150,12 @@ class ModelsApi:
1210
1150
  _headers: Optional[Dict[StrictStr, Any]] = None,
1211
1151
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1212
1152
  ) -> ApiResponse[Model]:
1213
- """Get Model
1153
+ """Get Model By Name
1214
1154
 
1215
- Get a model by ID or name
1155
+ Get a model by name
1216
1156
 
1217
- :param id:
1218
- :type id: int
1219
- :param name:
1157
+ :param name: Model name to get (required)
1220
1158
  :type name: str
1221
- :param access_token:
1222
- :type access_token: str
1223
1159
  :param _request_timeout: timeout setting for this request. If one
1224
1160
  number provided, it will be total request
1225
1161
  timeout. It can also be a pair (tuple) of
@@ -1242,10 +1178,8 @@ class ModelsApi:
1242
1178
  :return: Returns the result object.
1243
1179
  """ # noqa: E501
1244
1180
 
1245
- _param = self._get_model_serialize(
1246
- id=id,
1181
+ _param = self._get_model_by_name_serialize(
1247
1182
  name=name,
1248
- access_token=access_token,
1249
1183
  _request_auth=_request_auth,
1250
1184
  _content_type=_content_type,
1251
1185
  _headers=_headers,
@@ -1254,7 +1188,6 @@ class ModelsApi:
1254
1188
 
1255
1189
  _response_types_map: Dict[str, Optional[str]] = {
1256
1190
  "200": "Model",
1257
- "422": "HTTPValidationError",
1258
1191
  }
1259
1192
  response_data = await self.api_client.call_api(
1260
1193
  *_param, _request_timeout=_request_timeout
@@ -1266,11 +1199,9 @@ class ModelsApi:
1266
1199
  )
1267
1200
 
1268
1201
  @validate_call
1269
- async def get_model_without_preload_content(
1202
+ async def get_model_by_name_without_preload_content(
1270
1203
  self,
1271
- id: Optional[StrictInt] = None,
1272
- name: Optional[StrictStr] = None,
1273
- access_token: Optional[StrictStr] = None,
1204
+ name: Annotated[StrictStr, Field(description="Model name to get")],
1274
1205
  _request_timeout: Union[
1275
1206
  None,
1276
1207
  Annotated[StrictFloat, Field(gt=0)],
@@ -1283,16 +1214,12 @@ class ModelsApi:
1283
1214
  _headers: Optional[Dict[StrictStr, Any]] = None,
1284
1215
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1285
1216
  ) -> RESTResponseType:
1286
- """Get Model
1217
+ """Get Model By Name
1287
1218
 
1288
- Get a model by ID or name
1219
+ Get a model by name
1289
1220
 
1290
- :param id:
1291
- :type id: int
1292
- :param name:
1221
+ :param name: Model name to get (required)
1293
1222
  :type name: str
1294
- :param access_token:
1295
- :type access_token: str
1296
1223
  :param _request_timeout: timeout setting for this request. If one
1297
1224
  number provided, it will be total request
1298
1225
  timeout. It can also be a pair (tuple) of
@@ -1315,10 +1242,8 @@ class ModelsApi:
1315
1242
  :return: Returns the result object.
1316
1243
  """ # noqa: E501
1317
1244
 
1318
- _param = self._get_model_serialize(
1319
- id=id,
1245
+ _param = self._get_model_by_name_serialize(
1320
1246
  name=name,
1321
- access_token=access_token,
1322
1247
  _request_auth=_request_auth,
1323
1248
  _content_type=_content_type,
1324
1249
  _headers=_headers,
@@ -1327,18 +1252,15 @@ class ModelsApi:
1327
1252
 
1328
1253
  _response_types_map: Dict[str, Optional[str]] = {
1329
1254
  "200": "Model",
1330
- "422": "HTTPValidationError",
1331
1255
  }
1332
1256
  response_data = await self.api_client.call_api(
1333
1257
  *_param, _request_timeout=_request_timeout
1334
1258
  )
1335
1259
  return response_data.response
1336
1260
 
1337
- def _get_model_serialize(
1261
+ def _get_model_by_name_serialize(
1338
1262
  self,
1339
- id,
1340
1263
  name,
1341
- access_token,
1342
1264
  _request_auth,
1343
1265
  _content_type,
1344
1266
  _headers,
@@ -1359,14 +1281,299 @@ class ModelsApi:
1359
1281
  _body_params: Optional[bytes] = None
1360
1282
 
1361
1283
  # process the path parameters
1284
+ if name is not None:
1285
+ _path_params["name"] = name
1362
1286
  # process the query parameters
1363
- if id is not None:
1287
+ # process the header parameters
1288
+ # process the form parameters
1289
+ # process the body parameter
1364
1290
 
1365
- _query_params.append(("id", id))
1291
+ # set the HTTP header `Accept`
1292
+ if "Accept" not in _header_params:
1293
+ _header_params["Accept"] = self.api_client.select_header_accept(
1294
+ ["application/json"]
1295
+ )
1366
1296
 
1367
- if name is not None:
1297
+ # authentication setting
1298
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1299
+
1300
+ return self.api_client.param_serialize(
1301
+ method="GET",
1302
+ resource_path="/model/by-name/{name}",
1303
+ path_params=_path_params,
1304
+ query_params=_query_params,
1305
+ header_params=_header_params,
1306
+ body=_body_params,
1307
+ post_params=_form_params,
1308
+ files=_files,
1309
+ auth_settings=_auth_settings,
1310
+ collection_formats=_collection_formats,
1311
+ _host=_host,
1312
+ _request_auth=_request_auth,
1313
+ )
1314
+
1315
+ @validate_call
1316
+ async def get_models(
1317
+ self,
1318
+ by_user: Annotated[
1319
+ Optional[StrictBool],
1320
+ Field(
1321
+ description="Whether to get models by user. Else all models are returned."
1322
+ ),
1323
+ ] = None,
1324
+ user_id: Annotated[
1325
+ Optional[StrictStr],
1326
+ Field(
1327
+ description="User ID to get models for. Only used if by_user is true. Default is current user."
1328
+ ),
1329
+ ] = None,
1330
+ _request_timeout: Union[
1331
+ None,
1332
+ Annotated[StrictFloat, Field(gt=0)],
1333
+ Tuple[
1334
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1335
+ ],
1336
+ ] = None,
1337
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1338
+ _content_type: Optional[StrictStr] = None,
1339
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1340
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1341
+ ) -> List[Model]:
1342
+ """Get All Models
1343
+
1344
+ List all models
1345
+
1346
+ :param by_user: Whether to get models by user. Else all models are returned.
1347
+ :type by_user: bool
1348
+ :param user_id: User ID to get models for. Only used if by_user is true. Default is current user.
1349
+ :type user_id: str
1350
+ :param _request_timeout: timeout setting for this request. If one
1351
+ number provided, it will be total request
1352
+ timeout. It can also be a pair (tuple) of
1353
+ (connection, read) timeouts.
1354
+ :type _request_timeout: int, tuple(int, int), optional
1355
+ :param _request_auth: set to override the auth_settings for an a single
1356
+ request; this effectively ignores the
1357
+ authentication in the spec for a single request.
1358
+ :type _request_auth: dict, optional
1359
+ :param _content_type: force content-type for the request.
1360
+ :type _content_type: str, Optional
1361
+ :param _headers: set to override the headers for a single
1362
+ request; this effectively ignores the headers
1363
+ in the spec for a single request.
1364
+ :type _headers: dict, optional
1365
+ :param _host_index: set to override the host_index for a single
1366
+ request; this effectively ignores the host_index
1367
+ in the spec for a single request.
1368
+ :type _host_index: int, optional
1369
+ :return: Returns the result object.
1370
+ """ # noqa: E501
1371
+
1372
+ _param = self._get_models_serialize(
1373
+ by_user=by_user,
1374
+ user_id=user_id,
1375
+ _request_auth=_request_auth,
1376
+ _content_type=_content_type,
1377
+ _headers=_headers,
1378
+ _host_index=_host_index,
1379
+ )
1380
+
1381
+ _response_types_map: Dict[str, Optional[str]] = {
1382
+ "200": "List[Model]",
1383
+ }
1384
+ response_data = await self.api_client.call_api(
1385
+ *_param, _request_timeout=_request_timeout
1386
+ )
1387
+ await response_data.read()
1388
+ return self.api_client.response_deserialize(
1389
+ response_data=response_data,
1390
+ response_types_map=_response_types_map,
1391
+ ).data
1392
+
1393
+ @validate_call
1394
+ async def get_models_with_http_info(
1395
+ self,
1396
+ by_user: Annotated[
1397
+ Optional[StrictBool],
1398
+ Field(
1399
+ description="Whether to get models by user. Else all models are returned."
1400
+ ),
1401
+ ] = None,
1402
+ user_id: Annotated[
1403
+ Optional[StrictStr],
1404
+ Field(
1405
+ description="User ID to get models for. Only used if by_user is true. Default is current user."
1406
+ ),
1407
+ ] = None,
1408
+ _request_timeout: Union[
1409
+ None,
1410
+ Annotated[StrictFloat, Field(gt=0)],
1411
+ Tuple[
1412
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1413
+ ],
1414
+ ] = None,
1415
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1416
+ _content_type: Optional[StrictStr] = None,
1417
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1418
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1419
+ ) -> ApiResponse[List[Model]]:
1420
+ """Get All Models
1421
+
1422
+ List all models
1423
+
1424
+ :param by_user: Whether to get models by user. Else all models are returned.
1425
+ :type by_user: bool
1426
+ :param user_id: User ID to get models for. Only used if by_user is true. Default is current user.
1427
+ :type user_id: str
1428
+ :param _request_timeout: timeout setting for this request. If one
1429
+ number provided, it will be total request
1430
+ timeout. It can also be a pair (tuple) of
1431
+ (connection, read) timeouts.
1432
+ :type _request_timeout: int, tuple(int, int), optional
1433
+ :param _request_auth: set to override the auth_settings for an a single
1434
+ request; this effectively ignores the
1435
+ authentication in the spec for a single request.
1436
+ :type _request_auth: dict, optional
1437
+ :param _content_type: force content-type for the request.
1438
+ :type _content_type: str, Optional
1439
+ :param _headers: set to override the headers for a single
1440
+ request; this effectively ignores the headers
1441
+ in the spec for a single request.
1442
+ :type _headers: dict, optional
1443
+ :param _host_index: set to override the host_index for a single
1444
+ request; this effectively ignores the host_index
1445
+ in the spec for a single request.
1446
+ :type _host_index: int, optional
1447
+ :return: Returns the result object.
1448
+ """ # noqa: E501
1449
+
1450
+ _param = self._get_models_serialize(
1451
+ by_user=by_user,
1452
+ user_id=user_id,
1453
+ _request_auth=_request_auth,
1454
+ _content_type=_content_type,
1455
+ _headers=_headers,
1456
+ _host_index=_host_index,
1457
+ )
1458
+
1459
+ _response_types_map: Dict[str, Optional[str]] = {
1460
+ "200": "List[Model]",
1461
+ }
1462
+ response_data = await self.api_client.call_api(
1463
+ *_param, _request_timeout=_request_timeout
1464
+ )
1465
+ await response_data.read()
1466
+ return self.api_client.response_deserialize(
1467
+ response_data=response_data,
1468
+ response_types_map=_response_types_map,
1469
+ )
1470
+
1471
+ @validate_call
1472
+ async def get_models_without_preload_content(
1473
+ self,
1474
+ by_user: Annotated[
1475
+ Optional[StrictBool],
1476
+ Field(
1477
+ description="Whether to get models by user. Else all models are returned."
1478
+ ),
1479
+ ] = None,
1480
+ user_id: Annotated[
1481
+ Optional[StrictStr],
1482
+ Field(
1483
+ description="User ID to get models for. Only used if by_user is true. Default is current user."
1484
+ ),
1485
+ ] = None,
1486
+ _request_timeout: Union[
1487
+ None,
1488
+ Annotated[StrictFloat, Field(gt=0)],
1489
+ Tuple[
1490
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1491
+ ],
1492
+ ] = None,
1493
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1494
+ _content_type: Optional[StrictStr] = None,
1495
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1496
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1497
+ ) -> RESTResponseType:
1498
+ """Get All Models
1499
+
1500
+ List all models
1501
+
1502
+ :param by_user: Whether to get models by user. Else all models are returned.
1503
+ :type by_user: bool
1504
+ :param user_id: User ID to get models for. Only used if by_user is true. Default is current user.
1505
+ :type user_id: str
1506
+ :param _request_timeout: timeout setting for this request. If one
1507
+ number provided, it will be total request
1508
+ timeout. It can also be a pair (tuple) of
1509
+ (connection, read) timeouts.
1510
+ :type _request_timeout: int, tuple(int, int), optional
1511
+ :param _request_auth: set to override the auth_settings for an a single
1512
+ request; this effectively ignores the
1513
+ authentication in the spec for a single request.
1514
+ :type _request_auth: dict, optional
1515
+ :param _content_type: force content-type for the request.
1516
+ :type _content_type: str, Optional
1517
+ :param _headers: set to override the headers for a single
1518
+ request; this effectively ignores the headers
1519
+ in the spec for a single request.
1520
+ :type _headers: dict, optional
1521
+ :param _host_index: set to override the host_index for a single
1522
+ request; this effectively ignores the host_index
1523
+ in the spec for a single request.
1524
+ :type _host_index: int, optional
1525
+ :return: Returns the result object.
1526
+ """ # noqa: E501
1527
+
1528
+ _param = self._get_models_serialize(
1529
+ by_user=by_user,
1530
+ user_id=user_id,
1531
+ _request_auth=_request_auth,
1532
+ _content_type=_content_type,
1533
+ _headers=_headers,
1534
+ _host_index=_host_index,
1535
+ )
1536
+
1537
+ _response_types_map: Dict[str, Optional[str]] = {
1538
+ "200": "List[Model]",
1539
+ }
1540
+ response_data = await self.api_client.call_api(
1541
+ *_param, _request_timeout=_request_timeout
1542
+ )
1543
+ return response_data.response
1544
+
1545
+ def _get_models_serialize(
1546
+ self,
1547
+ by_user,
1548
+ user_id,
1549
+ _request_auth,
1550
+ _content_type,
1551
+ _headers,
1552
+ _host_index,
1553
+ ) -> RequestSerialized:
1554
+
1555
+ _host = None
1556
+
1557
+ _collection_formats: Dict[str, str] = {}
1558
+
1559
+ _path_params: Dict[str, str] = {}
1560
+ _query_params: List[Tuple[str, str]] = []
1561
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1562
+ _form_params: List[Tuple[str, str]] = []
1563
+ _files: Dict[
1564
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1565
+ ] = {}
1566
+ _body_params: Optional[bytes] = None
1567
+
1568
+ # process the path parameters
1569
+ # process the query parameters
1570
+ if by_user is not None:
1571
+
1572
+ _query_params.append(("by_user", by_user))
1573
+
1574
+ if user_id is not None:
1368
1575
 
1369
- _query_params.append(("name", name))
1576
+ _query_params.append(("user_id", user_id))
1370
1577
 
1371
1578
  # process the header parameters
1372
1579
  # process the form parameters
@@ -1401,7 +1608,6 @@ class ModelsApi:
1401
1608
  self,
1402
1609
  id: Annotated[StrictInt, Field(description="Model ID to update")],
1403
1610
  model_update: ModelUpdate,
1404
- access_token: Optional[StrictStr] = None,
1405
1611
  _request_timeout: Union[
1406
1612
  None,
1407
1613
  Annotated[StrictFloat, Field(gt=0)],
@@ -1422,8 +1628,6 @@ class ModelsApi:
1422
1628
  :type id: int
1423
1629
  :param model_update: (required)
1424
1630
  :type model_update: ModelUpdate
1425
- :param access_token:
1426
- :type access_token: str
1427
1631
  :param _request_timeout: timeout setting for this request. If one
1428
1632
  number provided, it will be total request
1429
1633
  timeout. It can also be a pair (tuple) of
@@ -1449,7 +1653,6 @@ class ModelsApi:
1449
1653
  _param = self._update_model_serialize(
1450
1654
  id=id,
1451
1655
  model_update=model_update,
1452
- access_token=access_token,
1453
1656
  _request_auth=_request_auth,
1454
1657
  _content_type=_content_type,
1455
1658
  _headers=_headers,
@@ -1458,7 +1661,6 @@ class ModelsApi:
1458
1661
 
1459
1662
  _response_types_map: Dict[str, Optional[str]] = {
1460
1663
  "200": "object",
1461
- "422": "HTTPValidationError",
1462
1664
  }
1463
1665
  response_data = await self.api_client.call_api(
1464
1666
  *_param, _request_timeout=_request_timeout
@@ -1474,7 +1676,6 @@ class ModelsApi:
1474
1676
  self,
1475
1677
  id: Annotated[StrictInt, Field(description="Model ID to update")],
1476
1678
  model_update: ModelUpdate,
1477
- access_token: Optional[StrictStr] = None,
1478
1679
  _request_timeout: Union[
1479
1680
  None,
1480
1681
  Annotated[StrictFloat, Field(gt=0)],
@@ -1495,8 +1696,6 @@ class ModelsApi:
1495
1696
  :type id: int
1496
1697
  :param model_update: (required)
1497
1698
  :type model_update: ModelUpdate
1498
- :param access_token:
1499
- :type access_token: str
1500
1699
  :param _request_timeout: timeout setting for this request. If one
1501
1700
  number provided, it will be total request
1502
1701
  timeout. It can also be a pair (tuple) of
@@ -1522,7 +1721,6 @@ class ModelsApi:
1522
1721
  _param = self._update_model_serialize(
1523
1722
  id=id,
1524
1723
  model_update=model_update,
1525
- access_token=access_token,
1526
1724
  _request_auth=_request_auth,
1527
1725
  _content_type=_content_type,
1528
1726
  _headers=_headers,
@@ -1531,7 +1729,6 @@ class ModelsApi:
1531
1729
 
1532
1730
  _response_types_map: Dict[str, Optional[str]] = {
1533
1731
  "200": "object",
1534
- "422": "HTTPValidationError",
1535
1732
  }
1536
1733
  response_data = await self.api_client.call_api(
1537
1734
  *_param, _request_timeout=_request_timeout
@@ -1547,7 +1744,6 @@ class ModelsApi:
1547
1744
  self,
1548
1745
  id: Annotated[StrictInt, Field(description="Model ID to update")],
1549
1746
  model_update: ModelUpdate,
1550
- access_token: Optional[StrictStr] = None,
1551
1747
  _request_timeout: Union[
1552
1748
  None,
1553
1749
  Annotated[StrictFloat, Field(gt=0)],
@@ -1568,8 +1764,6 @@ class ModelsApi:
1568
1764
  :type id: int
1569
1765
  :param model_update: (required)
1570
1766
  :type model_update: ModelUpdate
1571
- :param access_token:
1572
- :type access_token: str
1573
1767
  :param _request_timeout: timeout setting for this request. If one
1574
1768
  number provided, it will be total request
1575
1769
  timeout. It can also be a pair (tuple) of
@@ -1595,7 +1789,6 @@ class ModelsApi:
1595
1789
  _param = self._update_model_serialize(
1596
1790
  id=id,
1597
1791
  model_update=model_update,
1598
- access_token=access_token,
1599
1792
  _request_auth=_request_auth,
1600
1793
  _content_type=_content_type,
1601
1794
  _headers=_headers,
@@ -1604,7 +1797,6 @@ class ModelsApi:
1604
1797
 
1605
1798
  _response_types_map: Dict[str, Optional[str]] = {
1606
1799
  "200": "object",
1607
- "422": "HTTPValidationError",
1608
1800
  }
1609
1801
  response_data = await self.api_client.call_api(
1610
1802
  *_param, _request_timeout=_request_timeout
@@ -1615,7 +1807,6 @@ class ModelsApi:
1615
1807
  self,
1616
1808
  id,
1617
1809
  model_update,
1618
- access_token,
1619
1810
  _request_auth,
1620
1811
  _content_type,
1621
1812
  _headers,