crypticorn 2.4.5__py3-none-any.whl → 2.4.7__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 (65) hide show
  1. crypticorn/client.py +1 -1
  2. crypticorn/common/auth.py +7 -9
  3. crypticorn/common/errors.py +6 -1
  4. crypticorn/common/scopes.py +2 -1
  5. crypticorn/common/utils.py +15 -5
  6. crypticorn/klines/main.py +10 -5
  7. crypticorn/metrics/client/models/exchange_mapping.py +4 -2
  8. crypticorn/metrics/client/models/trading_status.py +1 -0
  9. crypticorn/metrics/main.py +5 -4
  10. crypticorn/pay/client/__init__.py +5 -4
  11. crypticorn/pay/client/api/payments_api.py +17 -17
  12. crypticorn/pay/client/api/products_api.py +49 -48
  13. crypticorn/pay/client/models/__init__.py +5 -4
  14. crypticorn/pay/client/models/payment.py +28 -147
  15. crypticorn/pay/client/models/product_create.py +120 -0
  16. crypticorn/pay/client/models/product_read.py +123 -0
  17. crypticorn/pay/client/models/product_sub_read.py +103 -0
  18. crypticorn/pay/client/models/product_update.py +142 -0
  19. crypticorn/trade/client/__init__.py +6 -8
  20. crypticorn/trade/client/api/__init__.py +1 -0
  21. crypticorn/trade/client/api/api_keys_api.py +273 -167
  22. crypticorn/trade/client/api/bots_api.py +226 -140
  23. crypticorn/trade/client/api/exchanges_api.py +51 -31
  24. crypticorn/trade/client/api/futures_trading_panel_api.py +272 -169
  25. crypticorn/trade/client/api/notifications_api.py +323 -200
  26. crypticorn/trade/client/api/orders_api.py +60 -40
  27. crypticorn/trade/client/api/status_api.py +49 -31
  28. crypticorn/trade/client/api/strategies_api.py +223 -137
  29. crypticorn/trade/client/api/trading_actions_api.py +170 -106
  30. crypticorn/trade/client/api_client.py +153 -111
  31. crypticorn/trade/client/api_response.py +3 -2
  32. crypticorn/trade/client/configuration.py +115 -128
  33. crypticorn/trade/client/exceptions.py +21 -25
  34. crypticorn/trade/client/models/__init__.py +6 -8
  35. crypticorn/trade/client/models/action_model.py +54 -108
  36. crypticorn/trade/client/models/api_error_identifier.py +72 -76
  37. crypticorn/trade/client/models/api_error_level.py +11 -9
  38. crypticorn/trade/client/models/api_error_type.py +11 -9
  39. crypticorn/trade/client/models/bot_model.py +36 -57
  40. crypticorn/trade/client/models/bot_status.py +11 -9
  41. crypticorn/trade/client/models/exchange.py +9 -7
  42. crypticorn/trade/client/models/exchange_key_model.py +34 -44
  43. crypticorn/trade/client/models/execution_ids.py +18 -18
  44. crypticorn/trade/client/models/futures_balance.py +27 -43
  45. crypticorn/trade/client/models/futures_trading_action.py +50 -102
  46. crypticorn/trade/client/models/http_validation_error.py +15 -19
  47. crypticorn/trade/client/models/margin_mode.py +9 -7
  48. crypticorn/trade/client/models/market_type.py +9 -7
  49. crypticorn/trade/client/models/notification_model.py +32 -52
  50. crypticorn/trade/client/models/order_model.py +72 -112
  51. crypticorn/trade/client/models/order_status.py +12 -10
  52. crypticorn/trade/client/models/post_futures_action.py +16 -20
  53. crypticorn/trade/client/models/strategy_exchange_info.py +16 -15
  54. crypticorn/trade/client/models/strategy_model_input.py +33 -61
  55. crypticorn/trade/client/models/strategy_model_output.py +33 -61
  56. crypticorn/trade/client/models/tpsl.py +25 -39
  57. crypticorn/trade/client/models/trading_action_type.py +11 -9
  58. crypticorn/trade/client/models/validation_error.py +18 -24
  59. crypticorn/trade/client/models/validation_error_loc_inner.py +16 -37
  60. crypticorn/trade/client/rest.py +38 -23
  61. {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/METADATA +13 -2
  62. {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/RECORD +65 -61
  63. {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/WHEEL +0 -0
  64. {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/entry_points.txt +0 -0
  65. {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Trading API
4
+ Trading API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import warnings
@@ -37,6 +37,7 @@ class BotsApi:
37
37
  api_client = ApiClient.get_default()
38
38
  self.api_client = api_client
39
39
 
40
+
40
41
  @validate_call
41
42
  async def create_bot(
42
43
  self,
@@ -45,8 +46,9 @@ class BotsApi:
45
46
  None,
46
47
  Annotated[StrictFloat, Field(gt=0)],
47
48
  Tuple[
48
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
49
- ],
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Annotated[StrictFloat, Field(gt=0)]
51
+ ]
50
52
  ] = None,
51
53
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
52
54
  _content_type: Optional[StrictStr] = None,
@@ -79,22 +81,23 @@ class BotsApi:
79
81
  in the spec for a single request.
80
82
  :type _host_index: int, optional
81
83
  :return: Returns the result object.
82
- """ # noqa: E501
84
+ """ # noqa: E501
83
85
 
84
86
  _param = self._create_bot_serialize(
85
87
  bot_model=bot_model,
86
88
  _request_auth=_request_auth,
87
89
  _content_type=_content_type,
88
90
  _headers=_headers,
89
- _host_index=_host_index,
91
+ _host_index=_host_index
90
92
  )
91
93
 
92
94
  _response_types_map: Dict[str, Optional[str]] = {
93
- "201": "object",
94
- "422": "HTTPValidationError",
95
+ '201': "object",
96
+ '422': "HTTPValidationError",
95
97
  }
96
98
  response_data = await self.api_client.call_api(
97
- *_param, _request_timeout=_request_timeout
99
+ *_param,
100
+ _request_timeout=_request_timeout
98
101
  )
99
102
  await response_data.read()
100
103
  return self.api_client.response_deserialize(
@@ -102,6 +105,7 @@ class BotsApi:
102
105
  response_types_map=_response_types_map,
103
106
  ).data
104
107
 
108
+
105
109
  @validate_call
106
110
  async def create_bot_with_http_info(
107
111
  self,
@@ -110,8 +114,9 @@ class BotsApi:
110
114
  None,
111
115
  Annotated[StrictFloat, Field(gt=0)],
112
116
  Tuple[
113
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
114
- ],
117
+ Annotated[StrictFloat, Field(gt=0)],
118
+ Annotated[StrictFloat, Field(gt=0)]
119
+ ]
115
120
  ] = None,
116
121
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
117
122
  _content_type: Optional[StrictStr] = None,
@@ -144,22 +149,23 @@ class BotsApi:
144
149
  in the spec for a single request.
145
150
  :type _host_index: int, optional
146
151
  :return: Returns the result object.
147
- """ # noqa: E501
152
+ """ # noqa: E501
148
153
 
149
154
  _param = self._create_bot_serialize(
150
155
  bot_model=bot_model,
151
156
  _request_auth=_request_auth,
152
157
  _content_type=_content_type,
153
158
  _headers=_headers,
154
- _host_index=_host_index,
159
+ _host_index=_host_index
155
160
  )
156
161
 
157
162
  _response_types_map: Dict[str, Optional[str]] = {
158
- "201": "object",
159
- "422": "HTTPValidationError",
163
+ '201': "object",
164
+ '422': "HTTPValidationError",
160
165
  }
161
166
  response_data = await self.api_client.call_api(
162
- *_param, _request_timeout=_request_timeout
167
+ *_param,
168
+ _request_timeout=_request_timeout
163
169
  )
164
170
  await response_data.read()
165
171
  return self.api_client.response_deserialize(
@@ -167,6 +173,7 @@ class BotsApi:
167
173
  response_types_map=_response_types_map,
168
174
  )
169
175
 
176
+
170
177
  @validate_call
171
178
  async def create_bot_without_preload_content(
172
179
  self,
@@ -175,8 +182,9 @@ class BotsApi:
175
182
  None,
176
183
  Annotated[StrictFloat, Field(gt=0)],
177
184
  Tuple[
178
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
179
- ],
185
+ Annotated[StrictFloat, Field(gt=0)],
186
+ Annotated[StrictFloat, Field(gt=0)]
187
+ ]
180
188
  ] = None,
181
189
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
182
190
  _content_type: Optional[StrictStr] = None,
@@ -209,25 +217,27 @@ class BotsApi:
209
217
  in the spec for a single request.
210
218
  :type _host_index: int, optional
211
219
  :return: Returns the result object.
212
- """ # noqa: E501
220
+ """ # noqa: E501
213
221
 
214
222
  _param = self._create_bot_serialize(
215
223
  bot_model=bot_model,
216
224
  _request_auth=_request_auth,
217
225
  _content_type=_content_type,
218
226
  _headers=_headers,
219
- _host_index=_host_index,
227
+ _host_index=_host_index
220
228
  )
221
229
 
222
230
  _response_types_map: Dict[str, Optional[str]] = {
223
- "201": "object",
224
- "422": "HTTPValidationError",
231
+ '201': "object",
232
+ '422': "HTTPValidationError",
225
233
  }
226
234
  response_data = await self.api_client.call_api(
227
- *_param, _request_timeout=_request_timeout
235
+ *_param,
236
+ _request_timeout=_request_timeout
228
237
  )
229
238
  return response_data.response
230
239
 
240
+
231
241
  def _create_bot_serialize(
232
242
  self,
233
243
  bot_model,
@@ -239,7 +249,8 @@ class BotsApi:
239
249
 
240
250
  _host = None
241
251
 
242
- _collection_formats: Dict[str, str] = {}
252
+ _collection_formats: Dict[str, str] = {
253
+ }
243
254
 
244
255
  _path_params: Dict[str, str] = {}
245
256
  _query_params: List[Tuple[str, str]] = []
@@ -258,28 +269,38 @@ class BotsApi:
258
269
  if bot_model is not None:
259
270
  _body_params = bot_model
260
271
 
272
+
261
273
  # set the HTTP header `Accept`
262
- if "Accept" not in _header_params:
263
- _header_params["Accept"] = self.api_client.select_header_accept(
264
- ["application/json"]
274
+ if 'Accept' not in _header_params:
275
+ _header_params['Accept'] = self.api_client.select_header_accept(
276
+ [
277
+ 'application/json'
278
+ ]
265
279
  )
266
280
 
267
281
  # set the HTTP header `Content-Type`
268
282
  if _content_type:
269
- _header_params["Content-Type"] = _content_type
283
+ _header_params['Content-Type'] = _content_type
270
284
  else:
271
- _default_content_type = self.api_client.select_header_content_type(
272
- ["application/json"]
285
+ _default_content_type = (
286
+ self.api_client.select_header_content_type(
287
+ [
288
+ 'application/json'
289
+ ]
290
+ )
273
291
  )
274
292
  if _default_content_type is not None:
275
- _header_params["Content-Type"] = _default_content_type
293
+ _header_params['Content-Type'] = _default_content_type
276
294
 
277
295
  # authentication setting
278
- _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
296
+ _auth_settings: List[str] = [
297
+ 'APIKeyHeader',
298
+ 'HTTPBearer'
299
+ ]
279
300
 
280
301
  return self.api_client.param_serialize(
281
- method="POST",
282
- resource_path="/bots",
302
+ method='POST',
303
+ resource_path='/bots',
283
304
  path_params=_path_params,
284
305
  query_params=_query_params,
285
306
  header_params=_header_params,
@@ -289,9 +310,12 @@ class BotsApi:
289
310
  auth_settings=_auth_settings,
290
311
  collection_formats=_collection_formats,
291
312
  _host=_host,
292
- _request_auth=_request_auth,
313
+ _request_auth=_request_auth
293
314
  )
294
315
 
316
+
317
+
318
+
295
319
  @validate_call
296
320
  async def delete_bot(
297
321
  self,
@@ -300,8 +324,9 @@ class BotsApi:
300
324
  None,
301
325
  Annotated[StrictFloat, Field(gt=0)],
302
326
  Tuple[
303
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
304
- ],
327
+ Annotated[StrictFloat, Field(gt=0)],
328
+ Annotated[StrictFloat, Field(gt=0)]
329
+ ]
305
330
  ] = None,
306
331
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
307
332
  _content_type: Optional[StrictStr] = None,
@@ -334,22 +359,23 @@ class BotsApi:
334
359
  in the spec for a single request.
335
360
  :type _host_index: int, optional
336
361
  :return: Returns the result object.
337
- """ # noqa: E501
362
+ """ # noqa: E501
338
363
 
339
364
  _param = self._delete_bot_serialize(
340
365
  id=id,
341
366
  _request_auth=_request_auth,
342
367
  _content_type=_content_type,
343
368
  _headers=_headers,
344
- _host_index=_host_index,
369
+ _host_index=_host_index
345
370
  )
346
371
 
347
372
  _response_types_map: Dict[str, Optional[str]] = {
348
- "200": "object",
349
- "422": "HTTPValidationError",
373
+ '200': "object",
374
+ '422': "HTTPValidationError",
350
375
  }
351
376
  response_data = await self.api_client.call_api(
352
- *_param, _request_timeout=_request_timeout
377
+ *_param,
378
+ _request_timeout=_request_timeout
353
379
  )
354
380
  await response_data.read()
355
381
  return self.api_client.response_deserialize(
@@ -357,6 +383,7 @@ class BotsApi:
357
383
  response_types_map=_response_types_map,
358
384
  ).data
359
385
 
386
+
360
387
  @validate_call
361
388
  async def delete_bot_with_http_info(
362
389
  self,
@@ -365,8 +392,9 @@ class BotsApi:
365
392
  None,
366
393
  Annotated[StrictFloat, Field(gt=0)],
367
394
  Tuple[
368
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
369
- ],
395
+ Annotated[StrictFloat, Field(gt=0)],
396
+ Annotated[StrictFloat, Field(gt=0)]
397
+ ]
370
398
  ] = None,
371
399
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
372
400
  _content_type: Optional[StrictStr] = None,
@@ -399,22 +427,23 @@ class BotsApi:
399
427
  in the spec for a single request.
400
428
  :type _host_index: int, optional
401
429
  :return: Returns the result object.
402
- """ # noqa: E501
430
+ """ # noqa: E501
403
431
 
404
432
  _param = self._delete_bot_serialize(
405
433
  id=id,
406
434
  _request_auth=_request_auth,
407
435
  _content_type=_content_type,
408
436
  _headers=_headers,
409
- _host_index=_host_index,
437
+ _host_index=_host_index
410
438
  )
411
439
 
412
440
  _response_types_map: Dict[str, Optional[str]] = {
413
- "200": "object",
414
- "422": "HTTPValidationError",
441
+ '200': "object",
442
+ '422': "HTTPValidationError",
415
443
  }
416
444
  response_data = await self.api_client.call_api(
417
- *_param, _request_timeout=_request_timeout
445
+ *_param,
446
+ _request_timeout=_request_timeout
418
447
  )
419
448
  await response_data.read()
420
449
  return self.api_client.response_deserialize(
@@ -422,6 +451,7 @@ class BotsApi:
422
451
  response_types_map=_response_types_map,
423
452
  )
424
453
 
454
+
425
455
  @validate_call
426
456
  async def delete_bot_without_preload_content(
427
457
  self,
@@ -430,8 +460,9 @@ class BotsApi:
430
460
  None,
431
461
  Annotated[StrictFloat, Field(gt=0)],
432
462
  Tuple[
433
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
434
- ],
463
+ Annotated[StrictFloat, Field(gt=0)],
464
+ Annotated[StrictFloat, Field(gt=0)]
465
+ ]
435
466
  ] = None,
436
467
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
437
468
  _content_type: Optional[StrictStr] = None,
@@ -464,25 +495,27 @@ class BotsApi:
464
495
  in the spec for a single request.
465
496
  :type _host_index: int, optional
466
497
  :return: Returns the result object.
467
- """ # noqa: E501
498
+ """ # noqa: E501
468
499
 
469
500
  _param = self._delete_bot_serialize(
470
501
  id=id,
471
502
  _request_auth=_request_auth,
472
503
  _content_type=_content_type,
473
504
  _headers=_headers,
474
- _host_index=_host_index,
505
+ _host_index=_host_index
475
506
  )
476
507
 
477
508
  _response_types_map: Dict[str, Optional[str]] = {
478
- "200": "object",
479
- "422": "HTTPValidationError",
509
+ '200': "object",
510
+ '422': "HTTPValidationError",
480
511
  }
481
512
  response_data = await self.api_client.call_api(
482
- *_param, _request_timeout=_request_timeout
513
+ *_param,
514
+ _request_timeout=_request_timeout
483
515
  )
484
516
  return response_data.response
485
517
 
518
+
486
519
  def _delete_bot_serialize(
487
520
  self,
488
521
  id,
@@ -494,7 +527,8 @@ class BotsApi:
494
527
 
495
528
  _host = None
496
529
 
497
- _collection_formats: Dict[str, str] = {}
530
+ _collection_formats: Dict[str, str] = {
531
+ }
498
532
 
499
533
  _path_params: Dict[str, str] = {}
500
534
  _query_params: List[Tuple[str, str]] = []
@@ -507,24 +541,31 @@ class BotsApi:
507
541
 
508
542
  # process the path parameters
509
543
  if id is not None:
510
- _path_params["id"] = id
544
+ _path_params['id'] = id
511
545
  # process the query parameters
512
546
  # process the header parameters
513
547
  # process the form parameters
514
548
  # process the body parameter
515
549
 
550
+
516
551
  # set the HTTP header `Accept`
517
- if "Accept" not in _header_params:
518
- _header_params["Accept"] = self.api_client.select_header_accept(
519
- ["application/json"]
552
+ if 'Accept' not in _header_params:
553
+ _header_params['Accept'] = self.api_client.select_header_accept(
554
+ [
555
+ 'application/json'
556
+ ]
520
557
  )
521
558
 
559
+
522
560
  # authentication setting
523
- _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
561
+ _auth_settings: List[str] = [
562
+ 'APIKeyHeader',
563
+ 'HTTPBearer'
564
+ ]
524
565
 
525
566
  return self.api_client.param_serialize(
526
- method="DELETE",
527
- resource_path="/bots/{id}",
567
+ method='DELETE',
568
+ resource_path='/bots/{id}',
528
569
  path_params=_path_params,
529
570
  query_params=_query_params,
530
571
  header_params=_header_params,
@@ -534,9 +575,12 @@ class BotsApi:
534
575
  auth_settings=_auth_settings,
535
576
  collection_formats=_collection_formats,
536
577
  _host=_host,
537
- _request_auth=_request_auth,
578
+ _request_auth=_request_auth
538
579
  )
539
580
 
581
+
582
+
583
+
540
584
  @validate_call
541
585
  async def get_bots(
542
586
  self,
@@ -547,8 +591,9 @@ class BotsApi:
547
591
  None,
548
592
  Annotated[StrictFloat, Field(gt=0)],
549
593
  Tuple[
550
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
551
- ],
594
+ Annotated[StrictFloat, Field(gt=0)],
595
+ Annotated[StrictFloat, Field(gt=0)]
596
+ ]
552
597
  ] = None,
553
598
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
554
599
  _content_type: Optional[StrictStr] = None,
@@ -584,7 +629,7 @@ class BotsApi:
584
629
  in the spec for a single request.
585
630
  :type _host_index: int, optional
586
631
  :return: Returns the result object.
587
- """ # noqa: E501
632
+ """ # noqa: E501
588
633
 
589
634
  _param = self._get_bots_serialize(
590
635
  include_deleted=include_deleted,
@@ -593,15 +638,16 @@ class BotsApi:
593
638
  _request_auth=_request_auth,
594
639
  _content_type=_content_type,
595
640
  _headers=_headers,
596
- _host_index=_host_index,
641
+ _host_index=_host_index
597
642
  )
598
643
 
599
644
  _response_types_map: Dict[str, Optional[str]] = {
600
- "200": "List[BotModel]",
601
- "422": "HTTPValidationError",
645
+ '200': "List[BotModel]",
646
+ '422': "HTTPValidationError",
602
647
  }
603
648
  response_data = await self.api_client.call_api(
604
- *_param, _request_timeout=_request_timeout
649
+ *_param,
650
+ _request_timeout=_request_timeout
605
651
  )
606
652
  await response_data.read()
607
653
  return self.api_client.response_deserialize(
@@ -609,6 +655,7 @@ class BotsApi:
609
655
  response_types_map=_response_types_map,
610
656
  ).data
611
657
 
658
+
612
659
  @validate_call
613
660
  async def get_bots_with_http_info(
614
661
  self,
@@ -619,8 +666,9 @@ class BotsApi:
619
666
  None,
620
667
  Annotated[StrictFloat, Field(gt=0)],
621
668
  Tuple[
622
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
623
- ],
669
+ Annotated[StrictFloat, Field(gt=0)],
670
+ Annotated[StrictFloat, Field(gt=0)]
671
+ ]
624
672
  ] = None,
625
673
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
626
674
  _content_type: Optional[StrictStr] = None,
@@ -656,7 +704,7 @@ class BotsApi:
656
704
  in the spec for a single request.
657
705
  :type _host_index: int, optional
658
706
  :return: Returns the result object.
659
- """ # noqa: E501
707
+ """ # noqa: E501
660
708
 
661
709
  _param = self._get_bots_serialize(
662
710
  include_deleted=include_deleted,
@@ -665,15 +713,16 @@ class BotsApi:
665
713
  _request_auth=_request_auth,
666
714
  _content_type=_content_type,
667
715
  _headers=_headers,
668
- _host_index=_host_index,
716
+ _host_index=_host_index
669
717
  )
670
718
 
671
719
  _response_types_map: Dict[str, Optional[str]] = {
672
- "200": "List[BotModel]",
673
- "422": "HTTPValidationError",
720
+ '200': "List[BotModel]",
721
+ '422': "HTTPValidationError",
674
722
  }
675
723
  response_data = await self.api_client.call_api(
676
- *_param, _request_timeout=_request_timeout
724
+ *_param,
725
+ _request_timeout=_request_timeout
677
726
  )
678
727
  await response_data.read()
679
728
  return self.api_client.response_deserialize(
@@ -681,6 +730,7 @@ class BotsApi:
681
730
  response_types_map=_response_types_map,
682
731
  )
683
732
 
733
+
684
734
  @validate_call
685
735
  async def get_bots_without_preload_content(
686
736
  self,
@@ -691,8 +741,9 @@ class BotsApi:
691
741
  None,
692
742
  Annotated[StrictFloat, Field(gt=0)],
693
743
  Tuple[
694
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
695
- ],
744
+ Annotated[StrictFloat, Field(gt=0)],
745
+ Annotated[StrictFloat, Field(gt=0)]
746
+ ]
696
747
  ] = None,
697
748
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
698
749
  _content_type: Optional[StrictStr] = None,
@@ -728,7 +779,7 @@ class BotsApi:
728
779
  in the spec for a single request.
729
780
  :type _host_index: int, optional
730
781
  :return: Returns the result object.
731
- """ # noqa: E501
782
+ """ # noqa: E501
732
783
 
733
784
  _param = self._get_bots_serialize(
734
785
  include_deleted=include_deleted,
@@ -737,18 +788,20 @@ class BotsApi:
737
788
  _request_auth=_request_auth,
738
789
  _content_type=_content_type,
739
790
  _headers=_headers,
740
- _host_index=_host_index,
791
+ _host_index=_host_index
741
792
  )
742
793
 
743
794
  _response_types_map: Dict[str, Optional[str]] = {
744
- "200": "List[BotModel]",
745
- "422": "HTTPValidationError",
795
+ '200': "List[BotModel]",
796
+ '422': "HTTPValidationError",
746
797
  }
747
798
  response_data = await self.api_client.call_api(
748
- *_param, _request_timeout=_request_timeout
799
+ *_param,
800
+ _request_timeout=_request_timeout
749
801
  )
750
802
  return response_data.response
751
803
 
804
+
752
805
  def _get_bots_serialize(
753
806
  self,
754
807
  include_deleted,
@@ -762,7 +815,8 @@ class BotsApi:
762
815
 
763
816
  _host = None
764
817
 
765
- _collection_formats: Dict[str, str] = {}
818
+ _collection_formats: Dict[str, str] = {
819
+ }
766
820
 
767
821
  _path_params: Dict[str, str] = {}
768
822
  _query_params: List[Tuple[str, str]] = []
@@ -776,33 +830,40 @@ class BotsApi:
776
830
  # process the path parameters
777
831
  # process the query parameters
778
832
  if include_deleted is not None:
779
-
780
- _query_params.append(("include_deleted", include_deleted))
781
-
833
+
834
+ _query_params.append(('include_deleted', include_deleted))
835
+
782
836
  if limit is not None:
783
-
784
- _query_params.append(("limit", limit))
785
-
837
+
838
+ _query_params.append(('limit', limit))
839
+
786
840
  if offset is not None:
787
-
788
- _query_params.append(("offset", offset))
789
-
841
+
842
+ _query_params.append(('offset', offset))
843
+
790
844
  # process the header parameters
791
845
  # process the form parameters
792
846
  # process the body parameter
793
847
 
848
+
794
849
  # set the HTTP header `Accept`
795
- if "Accept" not in _header_params:
796
- _header_params["Accept"] = self.api_client.select_header_accept(
797
- ["application/json"]
850
+ if 'Accept' not in _header_params:
851
+ _header_params['Accept'] = self.api_client.select_header_accept(
852
+ [
853
+ 'application/json'
854
+ ]
798
855
  )
799
856
 
857
+
800
858
  # authentication setting
801
- _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
859
+ _auth_settings: List[str] = [
860
+ 'APIKeyHeader',
861
+ 'HTTPBearer'
862
+ ]
802
863
 
803
864
  return self.api_client.param_serialize(
804
- method="GET",
805
- resource_path="/bots",
865
+ method='GET',
866
+ resource_path='/bots',
806
867
  path_params=_path_params,
807
868
  query_params=_query_params,
808
869
  header_params=_header_params,
@@ -812,9 +873,12 @@ class BotsApi:
812
873
  auth_settings=_auth_settings,
813
874
  collection_formats=_collection_formats,
814
875
  _host=_host,
815
- _request_auth=_request_auth,
876
+ _request_auth=_request_auth
816
877
  )
817
878
 
879
+
880
+
881
+
818
882
  @validate_call
819
883
  async def update_bot(
820
884
  self,
@@ -824,8 +888,9 @@ class BotsApi:
824
888
  None,
825
889
  Annotated[StrictFloat, Field(gt=0)],
826
890
  Tuple[
827
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
828
- ],
891
+ Annotated[StrictFloat, Field(gt=0)],
892
+ Annotated[StrictFloat, Field(gt=0)]
893
+ ]
829
894
  ] = None,
830
895
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
831
896
  _content_type: Optional[StrictStr] = None,
@@ -860,7 +925,7 @@ class BotsApi:
860
925
  in the spec for a single request.
861
926
  :type _host_index: int, optional
862
927
  :return: Returns the result object.
863
- """ # noqa: E501
928
+ """ # noqa: E501
864
929
 
865
930
  _param = self._update_bot_serialize(
866
931
  id=id,
@@ -868,15 +933,16 @@ class BotsApi:
868
933
  _request_auth=_request_auth,
869
934
  _content_type=_content_type,
870
935
  _headers=_headers,
871
- _host_index=_host_index,
936
+ _host_index=_host_index
872
937
  )
873
938
 
874
939
  _response_types_map: Dict[str, Optional[str]] = {
875
- "200": "object",
876
- "422": "HTTPValidationError",
940
+ '200': "object",
941
+ '422': "HTTPValidationError",
877
942
  }
878
943
  response_data = await self.api_client.call_api(
879
- *_param, _request_timeout=_request_timeout
944
+ *_param,
945
+ _request_timeout=_request_timeout
880
946
  )
881
947
  await response_data.read()
882
948
  return self.api_client.response_deserialize(
@@ -884,6 +950,7 @@ class BotsApi:
884
950
  response_types_map=_response_types_map,
885
951
  ).data
886
952
 
953
+
887
954
  @validate_call
888
955
  async def update_bot_with_http_info(
889
956
  self,
@@ -893,8 +960,9 @@ class BotsApi:
893
960
  None,
894
961
  Annotated[StrictFloat, Field(gt=0)],
895
962
  Tuple[
896
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
897
- ],
963
+ Annotated[StrictFloat, Field(gt=0)],
964
+ Annotated[StrictFloat, Field(gt=0)]
965
+ ]
898
966
  ] = None,
899
967
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
900
968
  _content_type: Optional[StrictStr] = None,
@@ -929,7 +997,7 @@ class BotsApi:
929
997
  in the spec for a single request.
930
998
  :type _host_index: int, optional
931
999
  :return: Returns the result object.
932
- """ # noqa: E501
1000
+ """ # noqa: E501
933
1001
 
934
1002
  _param = self._update_bot_serialize(
935
1003
  id=id,
@@ -937,15 +1005,16 @@ class BotsApi:
937
1005
  _request_auth=_request_auth,
938
1006
  _content_type=_content_type,
939
1007
  _headers=_headers,
940
- _host_index=_host_index,
1008
+ _host_index=_host_index
941
1009
  )
942
1010
 
943
1011
  _response_types_map: Dict[str, Optional[str]] = {
944
- "200": "object",
945
- "422": "HTTPValidationError",
1012
+ '200': "object",
1013
+ '422': "HTTPValidationError",
946
1014
  }
947
1015
  response_data = await self.api_client.call_api(
948
- *_param, _request_timeout=_request_timeout
1016
+ *_param,
1017
+ _request_timeout=_request_timeout
949
1018
  )
950
1019
  await response_data.read()
951
1020
  return self.api_client.response_deserialize(
@@ -953,6 +1022,7 @@ class BotsApi:
953
1022
  response_types_map=_response_types_map,
954
1023
  )
955
1024
 
1025
+
956
1026
  @validate_call
957
1027
  async def update_bot_without_preload_content(
958
1028
  self,
@@ -962,8 +1032,9 @@ class BotsApi:
962
1032
  None,
963
1033
  Annotated[StrictFloat, Field(gt=0)],
964
1034
  Tuple[
965
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
966
- ],
1035
+ Annotated[StrictFloat, Field(gt=0)],
1036
+ Annotated[StrictFloat, Field(gt=0)]
1037
+ ]
967
1038
  ] = None,
968
1039
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
969
1040
  _content_type: Optional[StrictStr] = None,
@@ -998,7 +1069,7 @@ class BotsApi:
998
1069
  in the spec for a single request.
999
1070
  :type _host_index: int, optional
1000
1071
  :return: Returns the result object.
1001
- """ # noqa: E501
1072
+ """ # noqa: E501
1002
1073
 
1003
1074
  _param = self._update_bot_serialize(
1004
1075
  id=id,
@@ -1006,18 +1077,20 @@ class BotsApi:
1006
1077
  _request_auth=_request_auth,
1007
1078
  _content_type=_content_type,
1008
1079
  _headers=_headers,
1009
- _host_index=_host_index,
1080
+ _host_index=_host_index
1010
1081
  )
1011
1082
 
1012
1083
  _response_types_map: Dict[str, Optional[str]] = {
1013
- "200": "object",
1014
- "422": "HTTPValidationError",
1084
+ '200': "object",
1085
+ '422': "HTTPValidationError",
1015
1086
  }
1016
1087
  response_data = await self.api_client.call_api(
1017
- *_param, _request_timeout=_request_timeout
1088
+ *_param,
1089
+ _request_timeout=_request_timeout
1018
1090
  )
1019
1091
  return response_data.response
1020
1092
 
1093
+
1021
1094
  def _update_bot_serialize(
1022
1095
  self,
1023
1096
  id,
@@ -1030,7 +1103,8 @@ class BotsApi:
1030
1103
 
1031
1104
  _host = None
1032
1105
 
1033
- _collection_formats: Dict[str, str] = {}
1106
+ _collection_formats: Dict[str, str] = {
1107
+ }
1034
1108
 
1035
1109
  _path_params: Dict[str, str] = {}
1036
1110
  _query_params: List[Tuple[str, str]] = []
@@ -1043,7 +1117,7 @@ class BotsApi:
1043
1117
 
1044
1118
  # process the path parameters
1045
1119
  if id is not None:
1046
- _path_params["id"] = id
1120
+ _path_params['id'] = id
1047
1121
  # process the query parameters
1048
1122
  # process the header parameters
1049
1123
  # process the form parameters
@@ -1051,28 +1125,38 @@ class BotsApi:
1051
1125
  if bot_model is not None:
1052
1126
  _body_params = bot_model
1053
1127
 
1128
+
1054
1129
  # set the HTTP header `Accept`
1055
- if "Accept" not in _header_params:
1056
- _header_params["Accept"] = self.api_client.select_header_accept(
1057
- ["application/json"]
1130
+ if 'Accept' not in _header_params:
1131
+ _header_params['Accept'] = self.api_client.select_header_accept(
1132
+ [
1133
+ 'application/json'
1134
+ ]
1058
1135
  )
1059
1136
 
1060
1137
  # set the HTTP header `Content-Type`
1061
1138
  if _content_type:
1062
- _header_params["Content-Type"] = _content_type
1139
+ _header_params['Content-Type'] = _content_type
1063
1140
  else:
1064
- _default_content_type = self.api_client.select_header_content_type(
1065
- ["application/json"]
1141
+ _default_content_type = (
1142
+ self.api_client.select_header_content_type(
1143
+ [
1144
+ 'application/json'
1145
+ ]
1146
+ )
1066
1147
  )
1067
1148
  if _default_content_type is not None:
1068
- _header_params["Content-Type"] = _default_content_type
1149
+ _header_params['Content-Type'] = _default_content_type
1069
1150
 
1070
1151
  # authentication setting
1071
- _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1152
+ _auth_settings: List[str] = [
1153
+ 'APIKeyHeader',
1154
+ 'HTTPBearer'
1155
+ ]
1072
1156
 
1073
1157
  return self.api_client.param_serialize(
1074
- method="PUT",
1075
- resource_path="/bots/{id}",
1158
+ method='PUT',
1159
+ resource_path='/bots/{id}',
1076
1160
  path_params=_path_params,
1077
1161
  query_params=_query_params,
1078
1162
  header_params=_header_params,
@@ -1082,5 +1166,7 @@ class BotsApi:
1082
1166
  auth_settings=_auth_settings,
1083
1167
  collection_formats=_collection_formats,
1084
1168
  _host=_host,
1085
- _request_auth=_request_auth,
1169
+ _request_auth=_request_auth
1086
1170
  )
1171
+
1172
+