crypticorn 2.4.7__py3-none-any.whl → 2.5.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.
- crypticorn/cli/init.py +7 -4
- crypticorn/common/__init__.py +1 -0
- crypticorn/common/auth.py +7 -3
- crypticorn/common/errors.py +21 -0
- crypticorn/common/exceptions.py +83 -0
- crypticorn/common/utils.py +11 -4
- crypticorn/klines/client/__init__.py +10 -3
- crypticorn/klines/client/api/__init__.py +1 -0
- crypticorn/klines/client/api/change_in_timeframe_api.py +331 -0
- crypticorn/klines/client/api/funding_rates_api.py +13 -13
- crypticorn/klines/client/api/health_check_api.py +8 -8
- crypticorn/klines/client/api/ohlcv_data_api.py +38 -26
- crypticorn/klines/client/api/symbols_api.py +26 -20
- crypticorn/klines/client/api/udf_api.py +229 -229
- crypticorn/klines/client/api_client.py +8 -5
- crypticorn/klines/client/configuration.py +80 -37
- crypticorn/klines/client/models/__init__.py +9 -3
- crypticorn/klines/client/models/base_response_list_change_in_timeframe_response.py +123 -0
- crypticorn/klines/client/models/change_in_timeframe_response.py +86 -0
- crypticorn/klines/client/models/market_type.py +35 -0
- crypticorn/klines/client/models/response_get_udf_history.py +198 -0
- crypticorn/klines/client/rest.py +111 -159
- crypticorn/klines/main.py +32 -22
- crypticorn/metrics/main.py +39 -40
- crypticorn/pay/client/__init__.py +0 -3
- crypticorn/pay/client/api/now_payments_api.py +1 -53
- crypticorn/pay/client/models/__init__.py +0 -3
- crypticorn/pay/client/models/payment.py +3 -3
- crypticorn/pay/client/models/scope.py +6 -1
- crypticorn/trade/client/__init__.py +8 -6
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/api_keys_api.py +167 -273
- crypticorn/trade/client/api/bots_api.py +140 -226
- crypticorn/trade/client/api/exchanges_api.py +31 -51
- crypticorn/trade/client/api/futures_trading_panel_api.py +169 -272
- crypticorn/trade/client/api/notifications_api.py +200 -323
- crypticorn/trade/client/api/orders_api.py +40 -60
- crypticorn/trade/client/api/status_api.py +31 -49
- crypticorn/trade/client/api/strategies_api.py +137 -223
- crypticorn/trade/client/api/trading_actions_api.py +106 -170
- crypticorn/trade/client/api_client.py +111 -153
- crypticorn/trade/client/api_response.py +2 -3
- crypticorn/trade/client/configuration.py +128 -115
- crypticorn/trade/client/exceptions.py +25 -21
- crypticorn/trade/client/models/__init__.py +8 -6
- crypticorn/trade/client/models/action_model.py +108 -54
- crypticorn/trade/client/models/api_error_identifier.py +76 -72
- crypticorn/trade/client/models/api_error_level.py +9 -11
- crypticorn/trade/client/models/api_error_type.py +9 -11
- crypticorn/trade/client/models/bot_model.py +57 -36
- crypticorn/trade/client/models/bot_status.py +9 -11
- crypticorn/trade/client/models/exchange.py +7 -9
- crypticorn/trade/client/models/exchange_key_model.py +43 -32
- crypticorn/trade/client/models/execution_ids.py +18 -18
- crypticorn/trade/client/models/futures_balance.py +43 -27
- crypticorn/trade/client/models/futures_trading_action.py +102 -50
- crypticorn/trade/client/models/http_validation_error.py +19 -15
- crypticorn/trade/client/models/margin_mode.py +7 -9
- crypticorn/trade/client/models/market_type.py +7 -9
- crypticorn/trade/client/models/notification_model.py +52 -32
- crypticorn/trade/client/models/order_model.py +112 -72
- crypticorn/trade/client/models/order_status.py +10 -12
- crypticorn/trade/client/models/post_futures_action.py +20 -16
- crypticorn/trade/client/models/strategy_exchange_info.py +15 -16
- crypticorn/trade/client/models/strategy_model_input.py +61 -33
- crypticorn/trade/client/models/strategy_model_output.py +61 -33
- crypticorn/trade/client/models/tpsl.py +39 -25
- crypticorn/trade/client/models/trading_action_type.py +9 -11
- crypticorn/trade/client/models/validation_error.py +24 -18
- crypticorn/trade/client/models/validation_error_loc_inner.py +37 -16
- crypticorn/trade/client/rest.py +23 -38
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/METADATA +1 -1
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/RECORD +76 -70
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/WHEEL +1 -1
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
"""
|
4
|
-
|
4
|
+
Trading API
|
5
5
|
|
6
|
-
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
|
-
|
11
|
+
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
14
|
import warnings
|
@@ -37,7 +37,6 @@ class NotificationsApi:
|
|
37
37
|
api_client = ApiClient.get_default()
|
38
38
|
self.api_client = api_client
|
39
39
|
|
40
|
-
|
41
40
|
@validate_call
|
42
41
|
async def create_notification(
|
43
42
|
self,
|
@@ -46,9 +45,8 @@ class NotificationsApi:
|
|
46
45
|
None,
|
47
46
|
Annotated[StrictFloat, Field(gt=0)],
|
48
47
|
Tuple[
|
49
|
-
Annotated[StrictFloat, Field(gt=0)],
|
50
|
-
|
51
|
-
]
|
48
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
49
|
+
],
|
52
50
|
] = None,
|
53
51
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
54
52
|
_content_type: Optional[StrictStr] = None,
|
@@ -81,23 +79,22 @@ class NotificationsApi:
|
|
81
79
|
in the spec for a single request.
|
82
80
|
:type _host_index: int, optional
|
83
81
|
:return: Returns the result object.
|
84
|
-
"""
|
82
|
+
""" # noqa: E501
|
85
83
|
|
86
84
|
_param = self._create_notification_serialize(
|
87
85
|
notification_model=notification_model,
|
88
86
|
_request_auth=_request_auth,
|
89
87
|
_content_type=_content_type,
|
90
88
|
_headers=_headers,
|
91
|
-
_host_index=_host_index
|
89
|
+
_host_index=_host_index,
|
92
90
|
)
|
93
91
|
|
94
92
|
_response_types_map: Dict[str, Optional[str]] = {
|
95
|
-
|
96
|
-
|
93
|
+
"200": "object",
|
94
|
+
"422": "HTTPValidationError",
|
97
95
|
}
|
98
96
|
response_data = await self.api_client.call_api(
|
99
|
-
*_param,
|
100
|
-
_request_timeout=_request_timeout
|
97
|
+
*_param, _request_timeout=_request_timeout
|
101
98
|
)
|
102
99
|
await response_data.read()
|
103
100
|
return self.api_client.response_deserialize(
|
@@ -105,7 +102,6 @@ class NotificationsApi:
|
|
105
102
|
response_types_map=_response_types_map,
|
106
103
|
).data
|
107
104
|
|
108
|
-
|
109
105
|
@validate_call
|
110
106
|
async def create_notification_with_http_info(
|
111
107
|
self,
|
@@ -114,9 +110,8 @@ class NotificationsApi:
|
|
114
110
|
None,
|
115
111
|
Annotated[StrictFloat, Field(gt=0)],
|
116
112
|
Tuple[
|
117
|
-
Annotated[StrictFloat, Field(gt=0)],
|
118
|
-
|
119
|
-
]
|
113
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
114
|
+
],
|
120
115
|
] = None,
|
121
116
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
122
117
|
_content_type: Optional[StrictStr] = None,
|
@@ -149,23 +144,22 @@ class NotificationsApi:
|
|
149
144
|
in the spec for a single request.
|
150
145
|
:type _host_index: int, optional
|
151
146
|
:return: Returns the result object.
|
152
|
-
"""
|
147
|
+
""" # noqa: E501
|
153
148
|
|
154
149
|
_param = self._create_notification_serialize(
|
155
150
|
notification_model=notification_model,
|
156
151
|
_request_auth=_request_auth,
|
157
152
|
_content_type=_content_type,
|
158
153
|
_headers=_headers,
|
159
|
-
_host_index=_host_index
|
154
|
+
_host_index=_host_index,
|
160
155
|
)
|
161
156
|
|
162
157
|
_response_types_map: Dict[str, Optional[str]] = {
|
163
|
-
|
164
|
-
|
158
|
+
"200": "object",
|
159
|
+
"422": "HTTPValidationError",
|
165
160
|
}
|
166
161
|
response_data = await self.api_client.call_api(
|
167
|
-
*_param,
|
168
|
-
_request_timeout=_request_timeout
|
162
|
+
*_param, _request_timeout=_request_timeout
|
169
163
|
)
|
170
164
|
await response_data.read()
|
171
165
|
return self.api_client.response_deserialize(
|
@@ -173,7 +167,6 @@ class NotificationsApi:
|
|
173
167
|
response_types_map=_response_types_map,
|
174
168
|
)
|
175
169
|
|
176
|
-
|
177
170
|
@validate_call
|
178
171
|
async def create_notification_without_preload_content(
|
179
172
|
self,
|
@@ -182,9 +175,8 @@ class NotificationsApi:
|
|
182
175
|
None,
|
183
176
|
Annotated[StrictFloat, Field(gt=0)],
|
184
177
|
Tuple[
|
185
|
-
Annotated[StrictFloat, Field(gt=0)],
|
186
|
-
|
187
|
-
]
|
178
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
179
|
+
],
|
188
180
|
] = None,
|
189
181
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
190
182
|
_content_type: Optional[StrictStr] = None,
|
@@ -217,27 +209,25 @@ class NotificationsApi:
|
|
217
209
|
in the spec for a single request.
|
218
210
|
:type _host_index: int, optional
|
219
211
|
:return: Returns the result object.
|
220
|
-
"""
|
212
|
+
""" # noqa: E501
|
221
213
|
|
222
214
|
_param = self._create_notification_serialize(
|
223
215
|
notification_model=notification_model,
|
224
216
|
_request_auth=_request_auth,
|
225
217
|
_content_type=_content_type,
|
226
218
|
_headers=_headers,
|
227
|
-
_host_index=_host_index
|
219
|
+
_host_index=_host_index,
|
228
220
|
)
|
229
221
|
|
230
222
|
_response_types_map: Dict[str, Optional[str]] = {
|
231
|
-
|
232
|
-
|
223
|
+
"200": "object",
|
224
|
+
"422": "HTTPValidationError",
|
233
225
|
}
|
234
226
|
response_data = await self.api_client.call_api(
|
235
|
-
*_param,
|
236
|
-
_request_timeout=_request_timeout
|
227
|
+
*_param, _request_timeout=_request_timeout
|
237
228
|
)
|
238
229
|
return response_data.response
|
239
230
|
|
240
|
-
|
241
231
|
def _create_notification_serialize(
|
242
232
|
self,
|
243
233
|
notification_model,
|
@@ -249,8 +239,7 @@ class NotificationsApi:
|
|
249
239
|
|
250
240
|
_host = None
|
251
241
|
|
252
|
-
_collection_formats: Dict[str, str] = {
|
253
|
-
}
|
242
|
+
_collection_formats: Dict[str, str] = {}
|
254
243
|
|
255
244
|
_path_params: Dict[str, str] = {}
|
256
245
|
_query_params: List[Tuple[str, str]] = []
|
@@ -269,38 +258,28 @@ class NotificationsApi:
|
|
269
258
|
if notification_model is not None:
|
270
259
|
_body_params = notification_model
|
271
260
|
|
272
|
-
|
273
261
|
# set the HTTP header `Accept`
|
274
|
-
if
|
275
|
-
_header_params[
|
276
|
-
[
|
277
|
-
'application/json'
|
278
|
-
]
|
262
|
+
if "Accept" not in _header_params:
|
263
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
264
|
+
["application/json"]
|
279
265
|
)
|
280
266
|
|
281
267
|
# set the HTTP header `Content-Type`
|
282
268
|
if _content_type:
|
283
|
-
_header_params[
|
269
|
+
_header_params["Content-Type"] = _content_type
|
284
270
|
else:
|
285
|
-
_default_content_type = (
|
286
|
-
|
287
|
-
[
|
288
|
-
'application/json'
|
289
|
-
]
|
290
|
-
)
|
271
|
+
_default_content_type = self.api_client.select_header_content_type(
|
272
|
+
["application/json"]
|
291
273
|
)
|
292
274
|
if _default_content_type is not None:
|
293
|
-
_header_params[
|
275
|
+
_header_params["Content-Type"] = _default_content_type
|
294
276
|
|
295
277
|
# authentication setting
|
296
|
-
_auth_settings: List[str] = [
|
297
|
-
'APIKeyHeader',
|
298
|
-
'HTTPBearer'
|
299
|
-
]
|
278
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
300
279
|
|
301
280
|
return self.api_client.param_serialize(
|
302
|
-
method=
|
303
|
-
resource_path=
|
281
|
+
method="POST",
|
282
|
+
resource_path="/notifications",
|
304
283
|
path_params=_path_params,
|
305
284
|
query_params=_query_params,
|
306
285
|
header_params=_header_params,
|
@@ -310,12 +289,9 @@ class NotificationsApi:
|
|
310
289
|
auth_settings=_auth_settings,
|
311
290
|
collection_formats=_collection_formats,
|
312
291
|
_host=_host,
|
313
|
-
_request_auth=_request_auth
|
292
|
+
_request_auth=_request_auth,
|
314
293
|
)
|
315
294
|
|
316
|
-
|
317
|
-
|
318
|
-
|
319
295
|
@validate_call
|
320
296
|
async def delete_notification(
|
321
297
|
self,
|
@@ -324,9 +300,8 @@ class NotificationsApi:
|
|
324
300
|
None,
|
325
301
|
Annotated[StrictFloat, Field(gt=0)],
|
326
302
|
Tuple[
|
327
|
-
Annotated[StrictFloat, Field(gt=0)],
|
328
|
-
|
329
|
-
]
|
303
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
304
|
+
],
|
330
305
|
] = None,
|
331
306
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
332
307
|
_content_type: Optional[StrictStr] = None,
|
@@ -358,23 +333,22 @@ class NotificationsApi:
|
|
358
333
|
in the spec for a single request.
|
359
334
|
:type _host_index: int, optional
|
360
335
|
:return: Returns the result object.
|
361
|
-
"""
|
336
|
+
""" # noqa: E501
|
362
337
|
|
363
338
|
_param = self._delete_notification_serialize(
|
364
339
|
id=id,
|
365
340
|
_request_auth=_request_auth,
|
366
341
|
_content_type=_content_type,
|
367
342
|
_headers=_headers,
|
368
|
-
_host_index=_host_index
|
343
|
+
_host_index=_host_index,
|
369
344
|
)
|
370
345
|
|
371
346
|
_response_types_map: Dict[str, Optional[str]] = {
|
372
|
-
|
373
|
-
|
347
|
+
"200": "object",
|
348
|
+
"422": "HTTPValidationError",
|
374
349
|
}
|
375
350
|
response_data = await self.api_client.call_api(
|
376
|
-
*_param,
|
377
|
-
_request_timeout=_request_timeout
|
351
|
+
*_param, _request_timeout=_request_timeout
|
378
352
|
)
|
379
353
|
await response_data.read()
|
380
354
|
return self.api_client.response_deserialize(
|
@@ -382,7 +356,6 @@ class NotificationsApi:
|
|
382
356
|
response_types_map=_response_types_map,
|
383
357
|
).data
|
384
358
|
|
385
|
-
|
386
359
|
@validate_call
|
387
360
|
async def delete_notification_with_http_info(
|
388
361
|
self,
|
@@ -391,9 +364,8 @@ class NotificationsApi:
|
|
391
364
|
None,
|
392
365
|
Annotated[StrictFloat, Field(gt=0)],
|
393
366
|
Tuple[
|
394
|
-
Annotated[StrictFloat, Field(gt=0)],
|
395
|
-
|
396
|
-
]
|
367
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
368
|
+
],
|
397
369
|
] = None,
|
398
370
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
399
371
|
_content_type: Optional[StrictStr] = None,
|
@@ -425,23 +397,22 @@ class NotificationsApi:
|
|
425
397
|
in the spec for a single request.
|
426
398
|
:type _host_index: int, optional
|
427
399
|
:return: Returns the result object.
|
428
|
-
"""
|
400
|
+
""" # noqa: E501
|
429
401
|
|
430
402
|
_param = self._delete_notification_serialize(
|
431
403
|
id=id,
|
432
404
|
_request_auth=_request_auth,
|
433
405
|
_content_type=_content_type,
|
434
406
|
_headers=_headers,
|
435
|
-
_host_index=_host_index
|
407
|
+
_host_index=_host_index,
|
436
408
|
)
|
437
409
|
|
438
410
|
_response_types_map: Dict[str, Optional[str]] = {
|
439
|
-
|
440
|
-
|
411
|
+
"200": "object",
|
412
|
+
"422": "HTTPValidationError",
|
441
413
|
}
|
442
414
|
response_data = await self.api_client.call_api(
|
443
|
-
*_param,
|
444
|
-
_request_timeout=_request_timeout
|
415
|
+
*_param, _request_timeout=_request_timeout
|
445
416
|
)
|
446
417
|
await response_data.read()
|
447
418
|
return self.api_client.response_deserialize(
|
@@ -449,7 +420,6 @@ class NotificationsApi:
|
|
449
420
|
response_types_map=_response_types_map,
|
450
421
|
)
|
451
422
|
|
452
|
-
|
453
423
|
@validate_call
|
454
424
|
async def delete_notification_without_preload_content(
|
455
425
|
self,
|
@@ -458,9 +428,8 @@ class NotificationsApi:
|
|
458
428
|
None,
|
459
429
|
Annotated[StrictFloat, Field(gt=0)],
|
460
430
|
Tuple[
|
461
|
-
Annotated[StrictFloat, Field(gt=0)],
|
462
|
-
|
463
|
-
]
|
431
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
432
|
+
],
|
464
433
|
] = None,
|
465
434
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
466
435
|
_content_type: Optional[StrictStr] = None,
|
@@ -492,27 +461,25 @@ class NotificationsApi:
|
|
492
461
|
in the spec for a single request.
|
493
462
|
:type _host_index: int, optional
|
494
463
|
:return: Returns the result object.
|
495
|
-
"""
|
464
|
+
""" # noqa: E501
|
496
465
|
|
497
466
|
_param = self._delete_notification_serialize(
|
498
467
|
id=id,
|
499
468
|
_request_auth=_request_auth,
|
500
469
|
_content_type=_content_type,
|
501
470
|
_headers=_headers,
|
502
|
-
_host_index=_host_index
|
471
|
+
_host_index=_host_index,
|
503
472
|
)
|
504
473
|
|
505
474
|
_response_types_map: Dict[str, Optional[str]] = {
|
506
|
-
|
507
|
-
|
475
|
+
"200": "object",
|
476
|
+
"422": "HTTPValidationError",
|
508
477
|
}
|
509
478
|
response_data = await self.api_client.call_api(
|
510
|
-
*_param,
|
511
|
-
_request_timeout=_request_timeout
|
479
|
+
*_param, _request_timeout=_request_timeout
|
512
480
|
)
|
513
481
|
return response_data.response
|
514
482
|
|
515
|
-
|
516
483
|
def _delete_notification_serialize(
|
517
484
|
self,
|
518
485
|
id,
|
@@ -524,8 +491,7 @@ class NotificationsApi:
|
|
524
491
|
|
525
492
|
_host = None
|
526
493
|
|
527
|
-
_collection_formats: Dict[str, str] = {
|
528
|
-
}
|
494
|
+
_collection_formats: Dict[str, str] = {}
|
529
495
|
|
530
496
|
_path_params: Dict[str, str] = {}
|
531
497
|
_query_params: List[Tuple[str, str]] = []
|
@@ -538,31 +504,24 @@ class NotificationsApi:
|
|
538
504
|
|
539
505
|
# process the path parameters
|
540
506
|
if id is not None:
|
541
|
-
_path_params[
|
507
|
+
_path_params["id"] = id
|
542
508
|
# process the query parameters
|
543
509
|
# process the header parameters
|
544
510
|
# process the form parameters
|
545
511
|
# process the body parameter
|
546
512
|
|
547
|
-
|
548
513
|
# set the HTTP header `Accept`
|
549
|
-
if
|
550
|
-
_header_params[
|
551
|
-
[
|
552
|
-
'application/json'
|
553
|
-
]
|
514
|
+
if "Accept" not in _header_params:
|
515
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
516
|
+
["application/json"]
|
554
517
|
)
|
555
518
|
|
556
|
-
|
557
519
|
# authentication setting
|
558
|
-
_auth_settings: List[str] = [
|
559
|
-
'APIKeyHeader',
|
560
|
-
'HTTPBearer'
|
561
|
-
]
|
520
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
562
521
|
|
563
522
|
return self.api_client.param_serialize(
|
564
|
-
method=
|
565
|
-
resource_path=
|
523
|
+
method="DELETE",
|
524
|
+
resource_path="/notifications/{id}",
|
566
525
|
path_params=_path_params,
|
567
526
|
query_params=_query_params,
|
568
527
|
header_params=_header_params,
|
@@ -572,12 +531,9 @@ class NotificationsApi:
|
|
572
531
|
auth_settings=_auth_settings,
|
573
532
|
collection_formats=_collection_formats,
|
574
533
|
_host=_host,
|
575
|
-
_request_auth=_request_auth
|
534
|
+
_request_auth=_request_auth,
|
576
535
|
)
|
577
536
|
|
578
|
-
|
579
|
-
|
580
|
-
|
581
537
|
@validate_call
|
582
538
|
async def delete_notifications(
|
583
539
|
self,
|
@@ -585,9 +541,8 @@ class NotificationsApi:
|
|
585
541
|
None,
|
586
542
|
Annotated[StrictFloat, Field(gt=0)],
|
587
543
|
Tuple[
|
588
|
-
Annotated[StrictFloat, Field(gt=0)],
|
589
|
-
|
590
|
-
]
|
544
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
545
|
+
],
|
591
546
|
] = None,
|
592
547
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
593
548
|
_content_type: Optional[StrictStr] = None,
|
@@ -618,21 +573,20 @@ class NotificationsApi:
|
|
618
573
|
in the spec for a single request.
|
619
574
|
:type _host_index: int, optional
|
620
575
|
:return: Returns the result object.
|
621
|
-
"""
|
576
|
+
""" # noqa: E501
|
622
577
|
|
623
578
|
_param = self._delete_notifications_serialize(
|
624
579
|
_request_auth=_request_auth,
|
625
580
|
_content_type=_content_type,
|
626
581
|
_headers=_headers,
|
627
|
-
_host_index=_host_index
|
582
|
+
_host_index=_host_index,
|
628
583
|
)
|
629
584
|
|
630
585
|
_response_types_map: Dict[str, Optional[str]] = {
|
631
|
-
|
586
|
+
"200": "object",
|
632
587
|
}
|
633
588
|
response_data = await self.api_client.call_api(
|
634
|
-
*_param,
|
635
|
-
_request_timeout=_request_timeout
|
589
|
+
*_param, _request_timeout=_request_timeout
|
636
590
|
)
|
637
591
|
await response_data.read()
|
638
592
|
return self.api_client.response_deserialize(
|
@@ -640,7 +594,6 @@ class NotificationsApi:
|
|
640
594
|
response_types_map=_response_types_map,
|
641
595
|
).data
|
642
596
|
|
643
|
-
|
644
597
|
@validate_call
|
645
598
|
async def delete_notifications_with_http_info(
|
646
599
|
self,
|
@@ -648,9 +601,8 @@ class NotificationsApi:
|
|
648
601
|
None,
|
649
602
|
Annotated[StrictFloat, Field(gt=0)],
|
650
603
|
Tuple[
|
651
|
-
Annotated[StrictFloat, Field(gt=0)],
|
652
|
-
|
653
|
-
]
|
604
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
605
|
+
],
|
654
606
|
] = None,
|
655
607
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
656
608
|
_content_type: Optional[StrictStr] = None,
|
@@ -681,21 +633,20 @@ class NotificationsApi:
|
|
681
633
|
in the spec for a single request.
|
682
634
|
:type _host_index: int, optional
|
683
635
|
:return: Returns the result object.
|
684
|
-
"""
|
636
|
+
""" # noqa: E501
|
685
637
|
|
686
638
|
_param = self._delete_notifications_serialize(
|
687
639
|
_request_auth=_request_auth,
|
688
640
|
_content_type=_content_type,
|
689
641
|
_headers=_headers,
|
690
|
-
_host_index=_host_index
|
642
|
+
_host_index=_host_index,
|
691
643
|
)
|
692
644
|
|
693
645
|
_response_types_map: Dict[str, Optional[str]] = {
|
694
|
-
|
646
|
+
"200": "object",
|
695
647
|
}
|
696
648
|
response_data = await self.api_client.call_api(
|
697
|
-
*_param,
|
698
|
-
_request_timeout=_request_timeout
|
649
|
+
*_param, _request_timeout=_request_timeout
|
699
650
|
)
|
700
651
|
await response_data.read()
|
701
652
|
return self.api_client.response_deserialize(
|
@@ -703,7 +654,6 @@ class NotificationsApi:
|
|
703
654
|
response_types_map=_response_types_map,
|
704
655
|
)
|
705
656
|
|
706
|
-
|
707
657
|
@validate_call
|
708
658
|
async def delete_notifications_without_preload_content(
|
709
659
|
self,
|
@@ -711,9 +661,8 @@ class NotificationsApi:
|
|
711
661
|
None,
|
712
662
|
Annotated[StrictFloat, Field(gt=0)],
|
713
663
|
Tuple[
|
714
|
-
Annotated[StrictFloat, Field(gt=0)],
|
715
|
-
|
716
|
-
]
|
664
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
665
|
+
],
|
717
666
|
] = None,
|
718
667
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
719
668
|
_content_type: Optional[StrictStr] = None,
|
@@ -744,25 +693,23 @@ class NotificationsApi:
|
|
744
693
|
in the spec for a single request.
|
745
694
|
:type _host_index: int, optional
|
746
695
|
:return: Returns the result object.
|
747
|
-
"""
|
696
|
+
""" # noqa: E501
|
748
697
|
|
749
698
|
_param = self._delete_notifications_serialize(
|
750
699
|
_request_auth=_request_auth,
|
751
700
|
_content_type=_content_type,
|
752
701
|
_headers=_headers,
|
753
|
-
_host_index=_host_index
|
702
|
+
_host_index=_host_index,
|
754
703
|
)
|
755
704
|
|
756
705
|
_response_types_map: Dict[str, Optional[str]] = {
|
757
|
-
|
706
|
+
"200": "object",
|
758
707
|
}
|
759
708
|
response_data = await self.api_client.call_api(
|
760
|
-
*_param,
|
761
|
-
_request_timeout=_request_timeout
|
709
|
+
*_param, _request_timeout=_request_timeout
|
762
710
|
)
|
763
711
|
return response_data.response
|
764
712
|
|
765
|
-
|
766
713
|
def _delete_notifications_serialize(
|
767
714
|
self,
|
768
715
|
_request_auth,
|
@@ -773,8 +720,7 @@ class NotificationsApi:
|
|
773
720
|
|
774
721
|
_host = None
|
775
722
|
|
776
|
-
_collection_formats: Dict[str, str] = {
|
777
|
-
}
|
723
|
+
_collection_formats: Dict[str, str] = {}
|
778
724
|
|
779
725
|
_path_params: Dict[str, str] = {}
|
780
726
|
_query_params: List[Tuple[str, str]] = []
|
@@ -791,25 +737,18 @@ class NotificationsApi:
|
|
791
737
|
# process the form parameters
|
792
738
|
# process the body parameter
|
793
739
|
|
794
|
-
|
795
740
|
# set the HTTP header `Accept`
|
796
|
-
if
|
797
|
-
_header_params[
|
798
|
-
[
|
799
|
-
'application/json'
|
800
|
-
]
|
741
|
+
if "Accept" not in _header_params:
|
742
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
743
|
+
["application/json"]
|
801
744
|
)
|
802
745
|
|
803
|
-
|
804
746
|
# authentication setting
|
805
|
-
_auth_settings: List[str] = [
|
806
|
-
'APIKeyHeader',
|
807
|
-
'HTTPBearer'
|
808
|
-
]
|
747
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
809
748
|
|
810
749
|
return self.api_client.param_serialize(
|
811
|
-
method=
|
812
|
-
resource_path=
|
750
|
+
method="DELETE",
|
751
|
+
resource_path="/notifications",
|
813
752
|
path_params=_path_params,
|
814
753
|
query_params=_query_params,
|
815
754
|
header_params=_header_params,
|
@@ -819,12 +758,9 @@ class NotificationsApi:
|
|
819
758
|
auth_settings=_auth_settings,
|
820
759
|
collection_formats=_collection_formats,
|
821
760
|
_host=_host,
|
822
|
-
_request_auth=_request_auth
|
761
|
+
_request_auth=_request_auth,
|
823
762
|
)
|
824
763
|
|
825
|
-
|
826
|
-
|
827
|
-
|
828
764
|
@validate_call
|
829
765
|
async def get_notifications(
|
830
766
|
self,
|
@@ -834,9 +770,8 @@ class NotificationsApi:
|
|
834
770
|
None,
|
835
771
|
Annotated[StrictFloat, Field(gt=0)],
|
836
772
|
Tuple[
|
837
|
-
Annotated[StrictFloat, Field(gt=0)],
|
838
|
-
|
839
|
-
]
|
773
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
774
|
+
],
|
840
775
|
] = None,
|
841
776
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
842
777
|
_content_type: Optional[StrictStr] = None,
|
@@ -871,7 +806,7 @@ class NotificationsApi:
|
|
871
806
|
in the spec for a single request.
|
872
807
|
:type _host_index: int, optional
|
873
808
|
:return: Returns the result object.
|
874
|
-
"""
|
809
|
+
""" # noqa: E501
|
875
810
|
|
876
811
|
_param = self._get_notifications_serialize(
|
877
812
|
limit=limit,
|
@@ -879,16 +814,15 @@ class NotificationsApi:
|
|
879
814
|
_request_auth=_request_auth,
|
880
815
|
_content_type=_content_type,
|
881
816
|
_headers=_headers,
|
882
|
-
_host_index=_host_index
|
817
|
+
_host_index=_host_index,
|
883
818
|
)
|
884
819
|
|
885
820
|
_response_types_map: Dict[str, Optional[str]] = {
|
886
|
-
|
887
|
-
|
821
|
+
"200": "List[NotificationModel]",
|
822
|
+
"422": "HTTPValidationError",
|
888
823
|
}
|
889
824
|
response_data = await self.api_client.call_api(
|
890
|
-
*_param,
|
891
|
-
_request_timeout=_request_timeout
|
825
|
+
*_param, _request_timeout=_request_timeout
|
892
826
|
)
|
893
827
|
await response_data.read()
|
894
828
|
return self.api_client.response_deserialize(
|
@@ -896,7 +830,6 @@ class NotificationsApi:
|
|
896
830
|
response_types_map=_response_types_map,
|
897
831
|
).data
|
898
832
|
|
899
|
-
|
900
833
|
@validate_call
|
901
834
|
async def get_notifications_with_http_info(
|
902
835
|
self,
|
@@ -906,9 +839,8 @@ class NotificationsApi:
|
|
906
839
|
None,
|
907
840
|
Annotated[StrictFloat, Field(gt=0)],
|
908
841
|
Tuple[
|
909
|
-
Annotated[StrictFloat, Field(gt=0)],
|
910
|
-
|
911
|
-
]
|
842
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
843
|
+
],
|
912
844
|
] = None,
|
913
845
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
914
846
|
_content_type: Optional[StrictStr] = None,
|
@@ -943,7 +875,7 @@ class NotificationsApi:
|
|
943
875
|
in the spec for a single request.
|
944
876
|
:type _host_index: int, optional
|
945
877
|
:return: Returns the result object.
|
946
|
-
"""
|
878
|
+
""" # noqa: E501
|
947
879
|
|
948
880
|
_param = self._get_notifications_serialize(
|
949
881
|
limit=limit,
|
@@ -951,16 +883,15 @@ class NotificationsApi:
|
|
951
883
|
_request_auth=_request_auth,
|
952
884
|
_content_type=_content_type,
|
953
885
|
_headers=_headers,
|
954
|
-
_host_index=_host_index
|
886
|
+
_host_index=_host_index,
|
955
887
|
)
|
956
888
|
|
957
889
|
_response_types_map: Dict[str, Optional[str]] = {
|
958
|
-
|
959
|
-
|
890
|
+
"200": "List[NotificationModel]",
|
891
|
+
"422": "HTTPValidationError",
|
960
892
|
}
|
961
893
|
response_data = await self.api_client.call_api(
|
962
|
-
*_param,
|
963
|
-
_request_timeout=_request_timeout
|
894
|
+
*_param, _request_timeout=_request_timeout
|
964
895
|
)
|
965
896
|
await response_data.read()
|
966
897
|
return self.api_client.response_deserialize(
|
@@ -968,7 +899,6 @@ class NotificationsApi:
|
|
968
899
|
response_types_map=_response_types_map,
|
969
900
|
)
|
970
901
|
|
971
|
-
|
972
902
|
@validate_call
|
973
903
|
async def get_notifications_without_preload_content(
|
974
904
|
self,
|
@@ -978,9 +908,8 @@ class NotificationsApi:
|
|
978
908
|
None,
|
979
909
|
Annotated[StrictFloat, Field(gt=0)],
|
980
910
|
Tuple[
|
981
|
-
Annotated[StrictFloat, Field(gt=0)],
|
982
|
-
|
983
|
-
]
|
911
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
912
|
+
],
|
984
913
|
] = None,
|
985
914
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
986
915
|
_content_type: Optional[StrictStr] = None,
|
@@ -1015,7 +944,7 @@ class NotificationsApi:
|
|
1015
944
|
in the spec for a single request.
|
1016
945
|
:type _host_index: int, optional
|
1017
946
|
:return: Returns the result object.
|
1018
|
-
"""
|
947
|
+
""" # noqa: E501
|
1019
948
|
|
1020
949
|
_param = self._get_notifications_serialize(
|
1021
950
|
limit=limit,
|
@@ -1023,20 +952,18 @@ class NotificationsApi:
|
|
1023
952
|
_request_auth=_request_auth,
|
1024
953
|
_content_type=_content_type,
|
1025
954
|
_headers=_headers,
|
1026
|
-
_host_index=_host_index
|
955
|
+
_host_index=_host_index,
|
1027
956
|
)
|
1028
957
|
|
1029
958
|
_response_types_map: Dict[str, Optional[str]] = {
|
1030
|
-
|
1031
|
-
|
959
|
+
"200": "List[NotificationModel]",
|
960
|
+
"422": "HTTPValidationError",
|
1032
961
|
}
|
1033
962
|
response_data = await self.api_client.call_api(
|
1034
|
-
*_param,
|
1035
|
-
_request_timeout=_request_timeout
|
963
|
+
*_param, _request_timeout=_request_timeout
|
1036
964
|
)
|
1037
965
|
return response_data.response
|
1038
966
|
|
1039
|
-
|
1040
967
|
def _get_notifications_serialize(
|
1041
968
|
self,
|
1042
969
|
limit,
|
@@ -1049,8 +976,7 @@ class NotificationsApi:
|
|
1049
976
|
|
1050
977
|
_host = None
|
1051
978
|
|
1052
|
-
_collection_formats: Dict[str, str] = {
|
1053
|
-
}
|
979
|
+
_collection_formats: Dict[str, str] = {}
|
1054
980
|
|
1055
981
|
_path_params: Dict[str, str] = {}
|
1056
982
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1064,36 +990,29 @@ class NotificationsApi:
|
|
1064
990
|
# process the path parameters
|
1065
991
|
# process the query parameters
|
1066
992
|
if limit is not None:
|
1067
|
-
|
1068
|
-
_query_params.append((
|
1069
|
-
|
993
|
+
|
994
|
+
_query_params.append(("limit", limit))
|
995
|
+
|
1070
996
|
if offset is not None:
|
1071
|
-
|
1072
|
-
_query_params.append((
|
1073
|
-
|
997
|
+
|
998
|
+
_query_params.append(("offset", offset))
|
999
|
+
|
1074
1000
|
# process the header parameters
|
1075
1001
|
# process the form parameters
|
1076
1002
|
# process the body parameter
|
1077
1003
|
|
1078
|
-
|
1079
1004
|
# set the HTTP header `Accept`
|
1080
|
-
if
|
1081
|
-
_header_params[
|
1082
|
-
[
|
1083
|
-
'application/json'
|
1084
|
-
]
|
1005
|
+
if "Accept" not in _header_params:
|
1006
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1007
|
+
["application/json"]
|
1085
1008
|
)
|
1086
1009
|
|
1087
|
-
|
1088
1010
|
# authentication setting
|
1089
|
-
_auth_settings: List[str] = [
|
1090
|
-
'APIKeyHeader',
|
1091
|
-
'HTTPBearer'
|
1092
|
-
]
|
1011
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1093
1012
|
|
1094
1013
|
return self.api_client.param_serialize(
|
1095
|
-
method=
|
1096
|
-
resource_path=
|
1014
|
+
method="GET",
|
1015
|
+
resource_path="/notifications",
|
1097
1016
|
path_params=_path_params,
|
1098
1017
|
query_params=_query_params,
|
1099
1018
|
header_params=_header_params,
|
@@ -1103,12 +1022,9 @@ class NotificationsApi:
|
|
1103
1022
|
auth_settings=_auth_settings,
|
1104
1023
|
collection_formats=_collection_formats,
|
1105
1024
|
_host=_host,
|
1106
|
-
_request_auth=_request_auth
|
1025
|
+
_request_auth=_request_auth,
|
1107
1026
|
)
|
1108
1027
|
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
1028
|
@validate_call
|
1113
1029
|
async def update_notification(
|
1114
1030
|
self,
|
@@ -1119,9 +1035,8 @@ class NotificationsApi:
|
|
1119
1035
|
None,
|
1120
1036
|
Annotated[StrictFloat, Field(gt=0)],
|
1121
1037
|
Tuple[
|
1122
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1123
|
-
|
1124
|
-
]
|
1038
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1039
|
+
],
|
1125
1040
|
] = None,
|
1126
1041
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1127
1042
|
_content_type: Optional[StrictStr] = None,
|
@@ -1158,7 +1073,7 @@ class NotificationsApi:
|
|
1158
1073
|
in the spec for a single request.
|
1159
1074
|
:type _host_index: int, optional
|
1160
1075
|
:return: Returns the result object.
|
1161
|
-
"""
|
1076
|
+
""" # noqa: E501
|
1162
1077
|
|
1163
1078
|
_param = self._update_notification_serialize(
|
1164
1079
|
id=id,
|
@@ -1167,16 +1082,15 @@ class NotificationsApi:
|
|
1167
1082
|
_request_auth=_request_auth,
|
1168
1083
|
_content_type=_content_type,
|
1169
1084
|
_headers=_headers,
|
1170
|
-
_host_index=_host_index
|
1085
|
+
_host_index=_host_index,
|
1171
1086
|
)
|
1172
1087
|
|
1173
1088
|
_response_types_map: Dict[str, Optional[str]] = {
|
1174
|
-
|
1175
|
-
|
1089
|
+
"200": "object",
|
1090
|
+
"422": "HTTPValidationError",
|
1176
1091
|
}
|
1177
1092
|
response_data = await self.api_client.call_api(
|
1178
|
-
*_param,
|
1179
|
-
_request_timeout=_request_timeout
|
1093
|
+
*_param, _request_timeout=_request_timeout
|
1180
1094
|
)
|
1181
1095
|
await response_data.read()
|
1182
1096
|
return self.api_client.response_deserialize(
|
@@ -1184,7 +1098,6 @@ class NotificationsApi:
|
|
1184
1098
|
response_types_map=_response_types_map,
|
1185
1099
|
).data
|
1186
1100
|
|
1187
|
-
|
1188
1101
|
@validate_call
|
1189
1102
|
async def update_notification_with_http_info(
|
1190
1103
|
self,
|
@@ -1195,9 +1108,8 @@ class NotificationsApi:
|
|
1195
1108
|
None,
|
1196
1109
|
Annotated[StrictFloat, Field(gt=0)],
|
1197
1110
|
Tuple[
|
1198
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1199
|
-
|
1200
|
-
]
|
1111
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1112
|
+
],
|
1201
1113
|
] = None,
|
1202
1114
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1203
1115
|
_content_type: Optional[StrictStr] = None,
|
@@ -1234,7 +1146,7 @@ class NotificationsApi:
|
|
1234
1146
|
in the spec for a single request.
|
1235
1147
|
:type _host_index: int, optional
|
1236
1148
|
:return: Returns the result object.
|
1237
|
-
"""
|
1149
|
+
""" # noqa: E501
|
1238
1150
|
|
1239
1151
|
_param = self._update_notification_serialize(
|
1240
1152
|
id=id,
|
@@ -1243,16 +1155,15 @@ class NotificationsApi:
|
|
1243
1155
|
_request_auth=_request_auth,
|
1244
1156
|
_content_type=_content_type,
|
1245
1157
|
_headers=_headers,
|
1246
|
-
_host_index=_host_index
|
1158
|
+
_host_index=_host_index,
|
1247
1159
|
)
|
1248
1160
|
|
1249
1161
|
_response_types_map: Dict[str, Optional[str]] = {
|
1250
|
-
|
1251
|
-
|
1162
|
+
"200": "object",
|
1163
|
+
"422": "HTTPValidationError",
|
1252
1164
|
}
|
1253
1165
|
response_data = await self.api_client.call_api(
|
1254
|
-
*_param,
|
1255
|
-
_request_timeout=_request_timeout
|
1166
|
+
*_param, _request_timeout=_request_timeout
|
1256
1167
|
)
|
1257
1168
|
await response_data.read()
|
1258
1169
|
return self.api_client.response_deserialize(
|
@@ -1260,7 +1171,6 @@ class NotificationsApi:
|
|
1260
1171
|
response_types_map=_response_types_map,
|
1261
1172
|
)
|
1262
1173
|
|
1263
|
-
|
1264
1174
|
@validate_call
|
1265
1175
|
async def update_notification_without_preload_content(
|
1266
1176
|
self,
|
@@ -1271,9 +1181,8 @@ class NotificationsApi:
|
|
1271
1181
|
None,
|
1272
1182
|
Annotated[StrictFloat, Field(gt=0)],
|
1273
1183
|
Tuple[
|
1274
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1275
|
-
|
1276
|
-
]
|
1184
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1185
|
+
],
|
1277
1186
|
] = None,
|
1278
1187
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1279
1188
|
_content_type: Optional[StrictStr] = None,
|
@@ -1310,7 +1219,7 @@ class NotificationsApi:
|
|
1310
1219
|
in the spec for a single request.
|
1311
1220
|
:type _host_index: int, optional
|
1312
1221
|
:return: Returns the result object.
|
1313
|
-
"""
|
1222
|
+
""" # noqa: E501
|
1314
1223
|
|
1315
1224
|
_param = self._update_notification_serialize(
|
1316
1225
|
id=id,
|
@@ -1319,20 +1228,18 @@ class NotificationsApi:
|
|
1319
1228
|
_request_auth=_request_auth,
|
1320
1229
|
_content_type=_content_type,
|
1321
1230
|
_headers=_headers,
|
1322
|
-
_host_index=_host_index
|
1231
|
+
_host_index=_host_index,
|
1323
1232
|
)
|
1324
1233
|
|
1325
1234
|
_response_types_map: Dict[str, Optional[str]] = {
|
1326
|
-
|
1327
|
-
|
1235
|
+
"200": "object",
|
1236
|
+
"422": "HTTPValidationError",
|
1328
1237
|
}
|
1329
1238
|
response_data = await self.api_client.call_api(
|
1330
|
-
*_param,
|
1331
|
-
_request_timeout=_request_timeout
|
1239
|
+
*_param, _request_timeout=_request_timeout
|
1332
1240
|
)
|
1333
1241
|
return response_data.response
|
1334
1242
|
|
1335
|
-
|
1336
1243
|
def _update_notification_serialize(
|
1337
1244
|
self,
|
1338
1245
|
id,
|
@@ -1346,8 +1253,7 @@ class NotificationsApi:
|
|
1346
1253
|
|
1347
1254
|
_host = None
|
1348
1255
|
|
1349
|
-
_collection_formats: Dict[str, str] = {
|
1350
|
-
}
|
1256
|
+
_collection_formats: Dict[str, str] = {}
|
1351
1257
|
|
1352
1258
|
_path_params: Dict[str, str] = {}
|
1353
1259
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1360,39 +1266,32 @@ class NotificationsApi:
|
|
1360
1266
|
|
1361
1267
|
# process the path parameters
|
1362
1268
|
if id is not None:
|
1363
|
-
_path_params[
|
1269
|
+
_path_params["id"] = id
|
1364
1270
|
# process the query parameters
|
1365
1271
|
if viewed is not None:
|
1366
|
-
|
1367
|
-
_query_params.append((
|
1368
|
-
|
1272
|
+
|
1273
|
+
_query_params.append(("viewed", viewed))
|
1274
|
+
|
1369
1275
|
if sent is not None:
|
1370
|
-
|
1371
|
-
_query_params.append((
|
1372
|
-
|
1276
|
+
|
1277
|
+
_query_params.append(("sent", sent))
|
1278
|
+
|
1373
1279
|
# process the header parameters
|
1374
1280
|
# process the form parameters
|
1375
1281
|
# process the body parameter
|
1376
1282
|
|
1377
|
-
|
1378
1283
|
# set the HTTP header `Accept`
|
1379
|
-
if
|
1380
|
-
_header_params[
|
1381
|
-
[
|
1382
|
-
'application/json'
|
1383
|
-
]
|
1284
|
+
if "Accept" not in _header_params:
|
1285
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1286
|
+
["application/json"]
|
1384
1287
|
)
|
1385
1288
|
|
1386
|
-
|
1387
1289
|
# authentication setting
|
1388
|
-
_auth_settings: List[str] = [
|
1389
|
-
'APIKeyHeader',
|
1390
|
-
'HTTPBearer'
|
1391
|
-
]
|
1290
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1392
1291
|
|
1393
1292
|
return self.api_client.param_serialize(
|
1394
|
-
method=
|
1395
|
-
resource_path=
|
1293
|
+
method="PUT",
|
1294
|
+
resource_path="/notifications/{id}",
|
1396
1295
|
path_params=_path_params,
|
1397
1296
|
query_params=_query_params,
|
1398
1297
|
header_params=_header_params,
|
@@ -1402,12 +1301,9 @@ class NotificationsApi:
|
|
1402
1301
|
auth_settings=_auth_settings,
|
1403
1302
|
collection_formats=_collection_formats,
|
1404
1303
|
_host=_host,
|
1405
|
-
_request_auth=_request_auth
|
1304
|
+
_request_auth=_request_auth,
|
1406
1305
|
)
|
1407
1306
|
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
1307
|
@validate_call
|
1412
1308
|
async def update_notifications(
|
1413
1309
|
self,
|
@@ -1417,9 +1313,8 @@ class NotificationsApi:
|
|
1417
1313
|
None,
|
1418
1314
|
Annotated[StrictFloat, Field(gt=0)],
|
1419
1315
|
Tuple[
|
1420
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1421
|
-
|
1422
|
-
]
|
1316
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1317
|
+
],
|
1423
1318
|
] = None,
|
1424
1319
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1425
1320
|
_content_type: Optional[StrictStr] = None,
|
@@ -1454,7 +1349,7 @@ class NotificationsApi:
|
|
1454
1349
|
in the spec for a single request.
|
1455
1350
|
:type _host_index: int, optional
|
1456
1351
|
:return: Returns the result object.
|
1457
|
-
"""
|
1352
|
+
""" # noqa: E501
|
1458
1353
|
|
1459
1354
|
_param = self._update_notifications_serialize(
|
1460
1355
|
viewed=viewed,
|
@@ -1462,16 +1357,15 @@ class NotificationsApi:
|
|
1462
1357
|
_request_auth=_request_auth,
|
1463
1358
|
_content_type=_content_type,
|
1464
1359
|
_headers=_headers,
|
1465
|
-
_host_index=_host_index
|
1360
|
+
_host_index=_host_index,
|
1466
1361
|
)
|
1467
1362
|
|
1468
1363
|
_response_types_map: Dict[str, Optional[str]] = {
|
1469
|
-
|
1470
|
-
|
1364
|
+
"200": "object",
|
1365
|
+
"422": "HTTPValidationError",
|
1471
1366
|
}
|
1472
1367
|
response_data = await self.api_client.call_api(
|
1473
|
-
*_param,
|
1474
|
-
_request_timeout=_request_timeout
|
1368
|
+
*_param, _request_timeout=_request_timeout
|
1475
1369
|
)
|
1476
1370
|
await response_data.read()
|
1477
1371
|
return self.api_client.response_deserialize(
|
@@ -1479,7 +1373,6 @@ class NotificationsApi:
|
|
1479
1373
|
response_types_map=_response_types_map,
|
1480
1374
|
).data
|
1481
1375
|
|
1482
|
-
|
1483
1376
|
@validate_call
|
1484
1377
|
async def update_notifications_with_http_info(
|
1485
1378
|
self,
|
@@ -1489,9 +1382,8 @@ class NotificationsApi:
|
|
1489
1382
|
None,
|
1490
1383
|
Annotated[StrictFloat, Field(gt=0)],
|
1491
1384
|
Tuple[
|
1492
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1493
|
-
|
1494
|
-
]
|
1385
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1386
|
+
],
|
1495
1387
|
] = None,
|
1496
1388
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1497
1389
|
_content_type: Optional[StrictStr] = None,
|
@@ -1526,7 +1418,7 @@ class NotificationsApi:
|
|
1526
1418
|
in the spec for a single request.
|
1527
1419
|
:type _host_index: int, optional
|
1528
1420
|
:return: Returns the result object.
|
1529
|
-
"""
|
1421
|
+
""" # noqa: E501
|
1530
1422
|
|
1531
1423
|
_param = self._update_notifications_serialize(
|
1532
1424
|
viewed=viewed,
|
@@ -1534,16 +1426,15 @@ class NotificationsApi:
|
|
1534
1426
|
_request_auth=_request_auth,
|
1535
1427
|
_content_type=_content_type,
|
1536
1428
|
_headers=_headers,
|
1537
|
-
_host_index=_host_index
|
1429
|
+
_host_index=_host_index,
|
1538
1430
|
)
|
1539
1431
|
|
1540
1432
|
_response_types_map: Dict[str, Optional[str]] = {
|
1541
|
-
|
1542
|
-
|
1433
|
+
"200": "object",
|
1434
|
+
"422": "HTTPValidationError",
|
1543
1435
|
}
|
1544
1436
|
response_data = await self.api_client.call_api(
|
1545
|
-
*_param,
|
1546
|
-
_request_timeout=_request_timeout
|
1437
|
+
*_param, _request_timeout=_request_timeout
|
1547
1438
|
)
|
1548
1439
|
await response_data.read()
|
1549
1440
|
return self.api_client.response_deserialize(
|
@@ -1551,7 +1442,6 @@ class NotificationsApi:
|
|
1551
1442
|
response_types_map=_response_types_map,
|
1552
1443
|
)
|
1553
1444
|
|
1554
|
-
|
1555
1445
|
@validate_call
|
1556
1446
|
async def update_notifications_without_preload_content(
|
1557
1447
|
self,
|
@@ -1561,9 +1451,8 @@ class NotificationsApi:
|
|
1561
1451
|
None,
|
1562
1452
|
Annotated[StrictFloat, Field(gt=0)],
|
1563
1453
|
Tuple[
|
1564
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1565
|
-
|
1566
|
-
]
|
1454
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1455
|
+
],
|
1567
1456
|
] = None,
|
1568
1457
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1569
1458
|
_content_type: Optional[StrictStr] = None,
|
@@ -1598,7 +1487,7 @@ class NotificationsApi:
|
|
1598
1487
|
in the spec for a single request.
|
1599
1488
|
:type _host_index: int, optional
|
1600
1489
|
:return: Returns the result object.
|
1601
|
-
"""
|
1490
|
+
""" # noqa: E501
|
1602
1491
|
|
1603
1492
|
_param = self._update_notifications_serialize(
|
1604
1493
|
viewed=viewed,
|
@@ -1606,20 +1495,18 @@ class NotificationsApi:
|
|
1606
1495
|
_request_auth=_request_auth,
|
1607
1496
|
_content_type=_content_type,
|
1608
1497
|
_headers=_headers,
|
1609
|
-
_host_index=_host_index
|
1498
|
+
_host_index=_host_index,
|
1610
1499
|
)
|
1611
1500
|
|
1612
1501
|
_response_types_map: Dict[str, Optional[str]] = {
|
1613
|
-
|
1614
|
-
|
1502
|
+
"200": "object",
|
1503
|
+
"422": "HTTPValidationError",
|
1615
1504
|
}
|
1616
1505
|
response_data = await self.api_client.call_api(
|
1617
|
-
*_param,
|
1618
|
-
_request_timeout=_request_timeout
|
1506
|
+
*_param, _request_timeout=_request_timeout
|
1619
1507
|
)
|
1620
1508
|
return response_data.response
|
1621
1509
|
|
1622
|
-
|
1623
1510
|
def _update_notifications_serialize(
|
1624
1511
|
self,
|
1625
1512
|
viewed,
|
@@ -1632,8 +1519,7 @@ class NotificationsApi:
|
|
1632
1519
|
|
1633
1520
|
_host = None
|
1634
1521
|
|
1635
|
-
_collection_formats: Dict[str, str] = {
|
1636
|
-
}
|
1522
|
+
_collection_formats: Dict[str, str] = {}
|
1637
1523
|
|
1638
1524
|
_path_params: Dict[str, str] = {}
|
1639
1525
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1647,36 +1533,29 @@ class NotificationsApi:
|
|
1647
1533
|
# process the path parameters
|
1648
1534
|
# process the query parameters
|
1649
1535
|
if viewed is not None:
|
1650
|
-
|
1651
|
-
_query_params.append((
|
1652
|
-
|
1536
|
+
|
1537
|
+
_query_params.append(("viewed", viewed))
|
1538
|
+
|
1653
1539
|
if sent is not None:
|
1654
|
-
|
1655
|
-
_query_params.append((
|
1656
|
-
|
1540
|
+
|
1541
|
+
_query_params.append(("sent", sent))
|
1542
|
+
|
1657
1543
|
# process the header parameters
|
1658
1544
|
# process the form parameters
|
1659
1545
|
# process the body parameter
|
1660
1546
|
|
1661
|
-
|
1662
1547
|
# set the HTTP header `Accept`
|
1663
|
-
if
|
1664
|
-
_header_params[
|
1665
|
-
[
|
1666
|
-
'application/json'
|
1667
|
-
]
|
1548
|
+
if "Accept" not in _header_params:
|
1549
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1550
|
+
["application/json"]
|
1668
1551
|
)
|
1669
1552
|
|
1670
|
-
|
1671
1553
|
# authentication setting
|
1672
|
-
_auth_settings: List[str] = [
|
1673
|
-
'APIKeyHeader',
|
1674
|
-
'HTTPBearer'
|
1675
|
-
]
|
1554
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1676
1555
|
|
1677
1556
|
return self.api_client.param_serialize(
|
1678
|
-
method=
|
1679
|
-
resource_path=
|
1557
|
+
method="PUT",
|
1558
|
+
resource_path="/notifications",
|
1680
1559
|
path_params=_path_params,
|
1681
1560
|
query_params=_query_params,
|
1682
1561
|
header_params=_header_params,
|
@@ -1686,7 +1565,5 @@ class NotificationsApi:
|
|
1686
1565
|
auth_settings=_auth_settings,
|
1687
1566
|
collection_formats=_collection_formats,
|
1688
1567
|
_host=_host,
|
1689
|
-
_request_auth=_request_auth
|
1568
|
+
_request_auth=_request_auth,
|
1690
1569
|
)
|
1691
|
-
|
1692
|
-
|