crypticorn 1.0.2rc3__py3-none-any.whl → 2.0.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/__init__.py +3 -3
- crypticorn/auth/__init__.py +2 -0
- crypticorn/auth/client/__init__.py +112 -0
- crypticorn/auth/client/api/__init__.py +8 -0
- crypticorn/auth/client/api/admin_api.py +522 -0
- crypticorn/auth/client/api/auth_api.py +2089 -0
- crypticorn/auth/client/api/service_api.py +309 -0
- crypticorn/auth/client/api/user_api.py +2540 -0
- crypticorn/auth/client/api/wallet_api.py +1698 -0
- crypticorn/auth/client/api_client.py +758 -0
- crypticorn/auth/client/api_response.py +20 -0
- crypticorn/auth/client/configuration.py +584 -0
- crypticorn/auth/client/exceptions.py +220 -0
- crypticorn/auth/client/models/__init__.py +91 -0
- crypticorn/auth/client/models/add_wallet200_response.py +86 -0
- crypticorn/auth/client/models/add_wallet_request.py +107 -0
- crypticorn/auth/client/models/authorize_user200_response.py +107 -0
- crypticorn/auth/client/models/authorize_user200_response_auth.py +101 -0
- crypticorn/auth/client/models/authorize_user_request.py +96 -0
- crypticorn/auth/client/models/create_user_request.py +114 -0
- crypticorn/auth/client/models/list_wallets200_response.py +137 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner.py +115 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +115 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +168 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +191 -0
- crypticorn/auth/client/models/list_wallets200_response_data_inner.py +102 -0
- crypticorn/auth/client/models/list_wallets200_response_user_value.py +118 -0
- crypticorn/auth/client/models/logout_default_response.py +108 -0
- crypticorn/auth/client/models/logout_default_response_issues_inner.py +83 -0
- crypticorn/auth/client/models/refresh_token_info200_response.py +97 -0
- crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +105 -0
- crypticorn/auth/client/models/resend_verification_email_request.py +84 -0
- crypticorn/auth/client/models/revoke_user_tokens_request.py +83 -0
- crypticorn/auth/client/models/rotate_tokens200_response.py +110 -0
- crypticorn/auth/client/models/token_info200_response.py +97 -0
- crypticorn/auth/client/models/unlink_wallet_request.py +83 -0
- crypticorn/auth/client/models/update_user_request.py +93 -0
- crypticorn/auth/client/models/user_reset_password_request.py +87 -0
- crypticorn/auth/client/models/user_set_password_request.py +89 -0
- crypticorn/auth/client/models/verify200_response.py +110 -0
- crypticorn/auth/client/models/verify_email200_response.py +107 -0
- crypticorn/auth/client/models/verify_email200_response_auth.py +101 -0
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +110 -0
- crypticorn/auth/client/models/verify_email_request.py +83 -0
- crypticorn/auth/client/models/verify_wallet_request.py +91 -0
- crypticorn/auth/client/models/wallet_verified200_response.py +83 -0
- crypticorn/auth/client/models/whoami200_response.py +104 -0
- crypticorn/auth/client/rest.py +195 -0
- crypticorn/auth/main.py +45 -0
- crypticorn/client.py +46 -8
- crypticorn/common/__init__.py +5 -0
- crypticorn/common/auth.py +43 -0
- crypticorn/common/auth_client.py +163 -0
- crypticorn/common/errors.py +432 -0
- crypticorn/common/scopes.py +29 -0
- crypticorn/common/urls.py +25 -0
- crypticorn/hive/__init__.py +2 -1
- crypticorn/hive/client/__init__.py +57 -0
- crypticorn/hive/client/api/__init__.py +6 -0
- crypticorn/hive/client/api/data_api.py +594 -0
- crypticorn/hive/client/api/models_api.py +1680 -0
- crypticorn/hive/client/api/status_api.py +263 -0
- crypticorn/hive/client/api_client.py +758 -0
- crypticorn/hive/client/api_response.py +20 -0
- crypticorn/hive/client/configuration.py +612 -0
- crypticorn/hive/client/exceptions.py +220 -0
- crypticorn/hive/client/models/__init__.py +38 -0
- crypticorn/hive/client/models/coins.py +44 -0
- crypticorn/hive/client/models/data_download_response.py +113 -0
- crypticorn/hive/client/models/data_info.py +115 -0
- crypticorn/hive/client/models/data_value_value_value_inner.py +154 -0
- crypticorn/hive/client/models/data_version.py +35 -0
- crypticorn/hive/client/models/download_links.py +91 -0
- crypticorn/hive/client/models/evaluation.py +86 -0
- crypticorn/hive/client/models/evaluation_response.py +85 -0
- crypticorn/hive/client/models/feature_size.py +36 -0
- crypticorn/hive/client/models/http_validation_error.py +99 -0
- crypticorn/hive/client/models/model.py +133 -0
- crypticorn/hive/client/models/model_create.py +93 -0
- crypticorn/hive/client/models/model_status.py +35 -0
- crypticorn/hive/client/models/model_update.py +83 -0
- crypticorn/hive/client/models/target.py +36 -0
- crypticorn/hive/client/models/target_type.py +35 -0
- crypticorn/hive/client/models/validation_error.py +105 -0
- crypticorn/hive/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/hive/client/py.typed +0 -0
- crypticorn/hive/client/rest.py +195 -0
- crypticorn/hive/main.py +27 -100
- crypticorn/klines/client/__init__.py +21 -7
- crypticorn/klines/client/api/__init__.py +0 -1
- crypticorn/klines/client/api/funding_rates_api.py +90 -79
- crypticorn/klines/client/api/health_check_api.py +29 -45
- crypticorn/klines/client/api/ohlcv_data_api.py +104 -87
- crypticorn/klines/client/api/symbols_api.py +36 -54
- crypticorn/klines/client/api/udf_api.py +228 -352
- crypticorn/klines/client/api_client.py +106 -148
- crypticorn/klines/client/api_response.py +2 -3
- crypticorn/klines/client/configuration.py +64 -50
- crypticorn/klines/client/exceptions.py +20 -16
- crypticorn/klines/client/models/__init__.py +21 -7
- crypticorn/klines/client/models/base_response_health_check_response.py +21 -15
- crypticorn/klines/client/models/base_response_list_funding_rate_response.py +21 -15
- crypticorn/klines/client/models/base_response_list_str.py +16 -14
- crypticorn/klines/client/models/base_response_ohlcv_response.py +21 -15
- crypticorn/klines/client/models/error_response.py +23 -15
- crypticorn/klines/client/models/exchange.py +11 -11
- crypticorn/klines/client/models/funding_rate_response.py +11 -11
- crypticorn/klines/client/models/health_check_response.py +14 -12
- crypticorn/klines/client/models/history_error_response.py +11 -11
- crypticorn/klines/client/models/history_no_data_response.py +16 -16
- crypticorn/klines/client/models/history_success_response.py +16 -16
- crypticorn/klines/client/models/http_validation_error.py +14 -10
- crypticorn/klines/client/models/market.py +2 -4
- crypticorn/klines/client/models/ohlcv_response.py +22 -15
- crypticorn/klines/client/models/resolution.py +5 -7
- crypticorn/klines/client/models/response_get_history_udf_history_get.py +71 -22
- crypticorn/klines/client/models/search_symbol_response.py +22 -15
- crypticorn/klines/client/models/sort_direction.py +2 -4
- crypticorn/klines/client/models/symbol_group_response.py +5 -9
- crypticorn/klines/client/models/symbol_info_response.py +40 -24
- crypticorn/klines/client/models/symbol_type.py +5 -10
- crypticorn/klines/client/models/timeframe.py +5 -7
- crypticorn/klines/client/models/udf_config_response.py +60 -21
- crypticorn/klines/client/models/validation_error.py +19 -13
- crypticorn/klines/client/models/validation_error_loc_inner.py +32 -11
- crypticorn/klines/client/rest.py +30 -41
- crypticorn/klines/main.py +52 -15
- crypticorn/pay/__init__.py +2 -0
- crypticorn/pay/client/__init__.py +52 -0
- crypticorn/pay/client/api/__init__.py +7 -0
- crypticorn/pay/client/api/now_payments_api.py +813 -0
- crypticorn/pay/client/api/payments_api.py +799 -0
- crypticorn/pay/client/api/products_api.py +891 -0
- crypticorn/pay/client/api/status_api.py +260 -0
- crypticorn/pay/client/api_client.py +758 -0
- crypticorn/pay/client/api_response.py +20 -0
- crypticorn/pay/client/configuration.py +612 -0
- crypticorn/pay/client/exceptions.py +220 -0
- crypticorn/pay/client/models/__init__.py +32 -0
- crypticorn/pay/client/models/api_status_res.py +83 -0
- crypticorn/pay/client/models/combined_payment_history.py +101 -0
- crypticorn/pay/client/models/create_invoice_req.py +188 -0
- crypticorn/pay/client/models/create_invoice_res.py +188 -0
- crypticorn/pay/client/models/currency.py +165 -0
- crypticorn/pay/client/models/estimate_price_req.py +91 -0
- crypticorn/pay/client/models/estimate_price_res.py +102 -0
- crypticorn/pay/client/models/get_currencies_res.py +99 -0
- crypticorn/pay/client/models/get_payment_status_res.py +222 -0
- crypticorn/pay/client/models/get_payments_list_res.py +109 -0
- crypticorn/pay/client/models/http_validation_error.py +99 -0
- crypticorn/pay/client/models/min_amount_req.py +124 -0
- crypticorn/pay/client/models/min_amount_res.py +105 -0
- crypticorn/pay/client/models/now_api_status_res.py +83 -0
- crypticorn/pay/client/models/now_create_invoice_req.py +188 -0
- crypticorn/pay/client/models/now_create_invoice_res.py +188 -0
- crypticorn/pay/client/models/now_fee_structure.py +104 -0
- crypticorn/pay/client/models/now_payment_model.py +124 -0
- crypticorn/pay/client/models/now_payment_status.py +42 -0
- crypticorn/pay/client/models/now_webhook_payload.py +181 -0
- crypticorn/pay/client/models/payment.py +231 -0
- crypticorn/pay/client/models/payment_status.py +40 -0
- crypticorn/pay/client/models/product.py +87 -0
- crypticorn/pay/client/models/product_model.py +119 -0
- crypticorn/pay/client/models/product_subs_model.py +108 -0
- crypticorn/pay/client/models/services.py +34 -0
- crypticorn/pay/client/models/unified_payment_model.py +112 -0
- crypticorn/pay/client/models/validation_error.py +105 -0
- crypticorn/pay/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/pay/client/py.typed +0 -0
- crypticorn/pay/client/rest.py +195 -0
- crypticorn/pay/main.py +35 -0
- crypticorn/trade/client/__init__.py +9 -4
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/api_keys_api.py +203 -304
- crypticorn/trade/client/api/bots_api.py +177 -250
- crypticorn/trade/client/api/exchanges_api.py +38 -57
- crypticorn/trade/client/api/futures_trading_panel_api.py +223 -321
- crypticorn/trade/client/api/notifications_api.py +247 -364
- crypticorn/trade/client/api/orders_api.py +44 -63
- crypticorn/trade/client/api/status_api.py +35 -53
- crypticorn/trade/client/api/strategies_api.py +852 -64
- crypticorn/trade/client/api/trading_actions_api.py +126 -203
- crypticorn/trade/client/api_client.py +115 -154
- crypticorn/trade/client/api_response.py +2 -3
- crypticorn/trade/client/configuration.py +128 -90
- crypticorn/trade/client/exceptions.py +21 -17
- crypticorn/trade/client/models/__init__.py +9 -4
- crypticorn/trade/client/models/action_model.py +114 -50
- crypticorn/trade/client/models/api_error_identifier.py +60 -51
- crypticorn/trade/client/models/api_error_level.py +37 -0
- crypticorn/trade/client/models/api_error_type.py +37 -0
- crypticorn/trade/client/models/api_key_model.py +49 -28
- crypticorn/trade/client/models/bot_model.py +76 -31
- crypticorn/trade/client/models/bot_status.py +37 -0
- crypticorn/trade/client/models/exchange.py +3 -5
- crypticorn/trade/client/models/execution_ids.py +14 -14
- crypticorn/trade/client/models/futures_balance.py +39 -23
- crypticorn/trade/client/models/futures_trading_action.py +98 -46
- crypticorn/trade/client/models/http_validation_error.py +15 -11
- crypticorn/trade/client/models/margin_mode.py +3 -5
- crypticorn/trade/client/models/market_type.py +3 -5
- crypticorn/trade/client/models/notification_model.py +60 -27
- crypticorn/trade/client/models/notification_type.py +4 -6
- crypticorn/trade/client/models/order_model.py +125 -65
- crypticorn/trade/client/models/order_status.py +6 -8
- crypticorn/trade/client/models/post_futures_action.py +16 -12
- crypticorn/trade/client/models/strategy_exchange_info.py +11 -12
- crypticorn/trade/client/models/strategy_model.py +66 -27
- crypticorn/trade/client/models/strategy_model_input.py +160 -0
- crypticorn/trade/client/models/strategy_model_output.py +160 -0
- crypticorn/trade/client/models/tpsl.py +35 -21
- crypticorn/trade/client/models/trading_action_type.py +5 -7
- crypticorn/trade/client/models/update_notification.py +17 -13
- crypticorn/trade/client/models/validation_error.py +20 -14
- crypticorn/trade/client/models/validation_error_loc_inner.py +33 -12
- crypticorn/trade/client/rest.py +108 -170
- crypticorn/trade/main.py +26 -19
- crypticorn-2.0.0.dist-info/METADATA +74 -0
- crypticorn-2.0.0.dist-info/RECORD +226 -0
- {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/WHEEL +1 -1
- crypticorn/hive/requirements.txt +0 -4
- crypticorn/hive/utils.py +0 -109
- crypticorn/klines/requirements.txt +0 -4
- crypticorn/klines/test/test_base_response_health_check_response.py +0 -56
- crypticorn/klines/test/test_base_response_list_funding_rate_response.py +0 -59
- crypticorn/klines/test/test_base_response_list_str.py +0 -56
- crypticorn/klines/test/test_base_response_ohlcv_response.py +0 -72
- crypticorn/klines/test/test_error_response.py +0 -57
- crypticorn/klines/test/test_exchange.py +0 -56
- crypticorn/klines/test/test_funding_rate_response.py +0 -56
- crypticorn/klines/test/test_funding_rates_api.py +0 -38
- crypticorn/klines/test/test_health_check_api.py +0 -38
- crypticorn/klines/test/test_health_check_response.py +0 -52
- crypticorn/klines/test/test_history_error_response.py +0 -53
- crypticorn/klines/test/test_history_no_data_response.py +0 -69
- crypticorn/klines/test/test_history_success_response.py +0 -87
- crypticorn/klines/test/test_http_validation_error.py +0 -58
- crypticorn/klines/test/test_market.py +0 -33
- crypticorn/klines/test/test_ohlcv_data_api.py +0 -38
- crypticorn/klines/test/test_ohlcv_response.py +0 -86
- crypticorn/klines/test/test_resolution.py +0 -33
- crypticorn/klines/test/test_response_get_history_udf_history_get.py +0 -89
- crypticorn/klines/test/test_search_symbol_response.py +0 -62
- crypticorn/klines/test/test_sort_direction.py +0 -33
- crypticorn/klines/test/test_symbol_group_response.py +0 -53
- crypticorn/klines/test/test_symbol_info_response.py +0 -84
- crypticorn/klines/test/test_symbol_type.py +0 -54
- crypticorn/klines/test/test_symbols_api.py +0 -38
- crypticorn/klines/test/test_timeframe.py +0 -33
- crypticorn/klines/test/test_udf_api.py +0 -80
- crypticorn/klines/test/test_udf_config_response.py +0 -95
- crypticorn/klines/test/test_validation_error.py +0 -60
- crypticorn/klines/test/test_validation_error_loc_inner.py +0 -50
- crypticorn/trade/requirements.txt +0 -4
- crypticorn-1.0.2rc3.dist-info/LICENSE.md +0 -19
- crypticorn-1.0.2rc3.dist-info/METADATA +0 -47
- crypticorn-1.0.2rc3.dist-info/RECORD +0 -128
- /crypticorn/{klines/test/__init__.py → auth/client/py.typed} +0 -0
- {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
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
|
|
@@ -37,9 +37,8 @@ class NotificationsApi:
|
|
37
37
|
api_client = ApiClient.get_default()
|
38
38
|
self.api_client = api_client
|
39
39
|
|
40
|
-
|
41
40
|
@validate_call
|
42
|
-
def create_notification(
|
41
|
+
async def create_notification(
|
43
42
|
self,
|
44
43
|
notification_model: NotificationModel,
|
45
44
|
access_token: Optional[StrictStr] = None,
|
@@ -47,9 +46,8 @@ class NotificationsApi:
|
|
47
46
|
None,
|
48
47
|
Annotated[StrictFloat, Field(gt=0)],
|
49
48
|
Tuple[
|
50
|
-
Annotated[StrictFloat, Field(gt=0)],
|
51
|
-
|
52
|
-
]
|
49
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
50
|
+
],
|
53
51
|
] = None,
|
54
52
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
55
53
|
_content_type: Optional[StrictStr] = None,
|
@@ -84,7 +82,7 @@ class NotificationsApi:
|
|
84
82
|
in the spec for a single request.
|
85
83
|
:type _host_index: int, optional
|
86
84
|
:return: Returns the result object.
|
87
|
-
"""
|
85
|
+
""" # noqa: E501
|
88
86
|
|
89
87
|
_param = self._create_notification_serialize(
|
90
88
|
notification_model=notification_model,
|
@@ -92,26 +90,24 @@ class NotificationsApi:
|
|
92
90
|
_request_auth=_request_auth,
|
93
91
|
_content_type=_content_type,
|
94
92
|
_headers=_headers,
|
95
|
-
_host_index=_host_index
|
93
|
+
_host_index=_host_index,
|
96
94
|
)
|
97
95
|
|
98
96
|
_response_types_map: Dict[str, Optional[str]] = {
|
99
|
-
|
100
|
-
|
97
|
+
"200": "object",
|
98
|
+
"422": "HTTPValidationError",
|
101
99
|
}
|
102
|
-
response_data = self.api_client.call_api(
|
103
|
-
*_param,
|
104
|
-
_request_timeout=_request_timeout
|
100
|
+
response_data = await self.api_client.call_api(
|
101
|
+
*_param, _request_timeout=_request_timeout
|
105
102
|
)
|
106
|
-
response_data.read()
|
103
|
+
await response_data.read()
|
107
104
|
return self.api_client.response_deserialize(
|
108
105
|
response_data=response_data,
|
109
106
|
response_types_map=_response_types_map,
|
110
107
|
).data
|
111
108
|
|
112
|
-
|
113
109
|
@validate_call
|
114
|
-
def create_notification_with_http_info(
|
110
|
+
async def create_notification_with_http_info(
|
115
111
|
self,
|
116
112
|
notification_model: NotificationModel,
|
117
113
|
access_token: Optional[StrictStr] = None,
|
@@ -119,9 +115,8 @@ class NotificationsApi:
|
|
119
115
|
None,
|
120
116
|
Annotated[StrictFloat, Field(gt=0)],
|
121
117
|
Tuple[
|
122
|
-
Annotated[StrictFloat, Field(gt=0)],
|
123
|
-
|
124
|
-
]
|
118
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
119
|
+
],
|
125
120
|
] = None,
|
126
121
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
127
122
|
_content_type: Optional[StrictStr] = None,
|
@@ -156,7 +151,7 @@ class NotificationsApi:
|
|
156
151
|
in the spec for a single request.
|
157
152
|
:type _host_index: int, optional
|
158
153
|
:return: Returns the result object.
|
159
|
-
"""
|
154
|
+
""" # noqa: E501
|
160
155
|
|
161
156
|
_param = self._create_notification_serialize(
|
162
157
|
notification_model=notification_model,
|
@@ -164,26 +159,24 @@ class NotificationsApi:
|
|
164
159
|
_request_auth=_request_auth,
|
165
160
|
_content_type=_content_type,
|
166
161
|
_headers=_headers,
|
167
|
-
_host_index=_host_index
|
162
|
+
_host_index=_host_index,
|
168
163
|
)
|
169
164
|
|
170
165
|
_response_types_map: Dict[str, Optional[str]] = {
|
171
|
-
|
172
|
-
|
166
|
+
"200": "object",
|
167
|
+
"422": "HTTPValidationError",
|
173
168
|
}
|
174
|
-
response_data = self.api_client.call_api(
|
175
|
-
*_param,
|
176
|
-
_request_timeout=_request_timeout
|
169
|
+
response_data = await self.api_client.call_api(
|
170
|
+
*_param, _request_timeout=_request_timeout
|
177
171
|
)
|
178
|
-
response_data.read()
|
172
|
+
await response_data.read()
|
179
173
|
return self.api_client.response_deserialize(
|
180
174
|
response_data=response_data,
|
181
175
|
response_types_map=_response_types_map,
|
182
176
|
)
|
183
177
|
|
184
|
-
|
185
178
|
@validate_call
|
186
|
-
def create_notification_without_preload_content(
|
179
|
+
async def create_notification_without_preload_content(
|
187
180
|
self,
|
188
181
|
notification_model: NotificationModel,
|
189
182
|
access_token: Optional[StrictStr] = None,
|
@@ -191,9 +184,8 @@ class NotificationsApi:
|
|
191
184
|
None,
|
192
185
|
Annotated[StrictFloat, Field(gt=0)],
|
193
186
|
Tuple[
|
194
|
-
Annotated[StrictFloat, Field(gt=0)],
|
195
|
-
|
196
|
-
]
|
187
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
188
|
+
],
|
197
189
|
] = None,
|
198
190
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
199
191
|
_content_type: Optional[StrictStr] = None,
|
@@ -228,7 +220,7 @@ class NotificationsApi:
|
|
228
220
|
in the spec for a single request.
|
229
221
|
:type _host_index: int, optional
|
230
222
|
:return: Returns the result object.
|
231
|
-
"""
|
223
|
+
""" # noqa: E501
|
232
224
|
|
233
225
|
_param = self._create_notification_serialize(
|
234
226
|
notification_model=notification_model,
|
@@ -236,20 +228,18 @@ class NotificationsApi:
|
|
236
228
|
_request_auth=_request_auth,
|
237
229
|
_content_type=_content_type,
|
238
230
|
_headers=_headers,
|
239
|
-
_host_index=_host_index
|
231
|
+
_host_index=_host_index,
|
240
232
|
)
|
241
233
|
|
242
234
|
_response_types_map: Dict[str, Optional[str]] = {
|
243
|
-
|
244
|
-
|
235
|
+
"200": "object",
|
236
|
+
"422": "HTTPValidationError",
|
245
237
|
}
|
246
|
-
response_data = self.api_client.call_api(
|
247
|
-
*_param,
|
248
|
-
_request_timeout=_request_timeout
|
238
|
+
response_data = await self.api_client.call_api(
|
239
|
+
*_param, _request_timeout=_request_timeout
|
249
240
|
)
|
250
241
|
return response_data.response
|
251
242
|
|
252
|
-
|
253
243
|
def _create_notification_serialize(
|
254
244
|
self,
|
255
245
|
notification_model,
|
@@ -262,8 +252,7 @@ class NotificationsApi:
|
|
262
252
|
|
263
253
|
_host = None
|
264
254
|
|
265
|
-
_collection_formats: Dict[str, str] = {
|
266
|
-
}
|
255
|
+
_collection_formats: Dict[str, str] = {}
|
267
256
|
|
268
257
|
_path_params: Dict[str, str] = {}
|
269
258
|
_query_params: List[Tuple[str, str]] = []
|
@@ -282,37 +271,28 @@ class NotificationsApi:
|
|
282
271
|
if notification_model is not None:
|
283
272
|
_body_params = notification_model
|
284
273
|
|
285
|
-
|
286
274
|
# set the HTTP header `Accept`
|
287
|
-
if
|
288
|
-
_header_params[
|
289
|
-
[
|
290
|
-
'application/json'
|
291
|
-
]
|
275
|
+
if "Accept" not in _header_params:
|
276
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
277
|
+
["application/json"]
|
292
278
|
)
|
293
279
|
|
294
280
|
# set the HTTP header `Content-Type`
|
295
281
|
if _content_type:
|
296
|
-
_header_params[
|
282
|
+
_header_params["Content-Type"] = _content_type
|
297
283
|
else:
|
298
|
-
_default_content_type = (
|
299
|
-
|
300
|
-
[
|
301
|
-
'application/json'
|
302
|
-
]
|
303
|
-
)
|
284
|
+
_default_content_type = self.api_client.select_header_content_type(
|
285
|
+
["application/json"]
|
304
286
|
)
|
305
287
|
if _default_content_type is not None:
|
306
|
-
_header_params[
|
288
|
+
_header_params["Content-Type"] = _default_content_type
|
307
289
|
|
308
290
|
# authentication setting
|
309
|
-
_auth_settings: List[str] = [
|
310
|
-
'OAuth2PasswordBearer'
|
311
|
-
]
|
291
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
312
292
|
|
313
293
|
return self.api_client.param_serialize(
|
314
|
-
method=
|
315
|
-
resource_path=
|
294
|
+
method="POST",
|
295
|
+
resource_path="/notifications",
|
316
296
|
path_params=_path_params,
|
317
297
|
query_params=_query_params,
|
318
298
|
header_params=_header_params,
|
@@ -322,14 +302,11 @@ class NotificationsApi:
|
|
322
302
|
auth_settings=_auth_settings,
|
323
303
|
collection_formats=_collection_formats,
|
324
304
|
_host=_host,
|
325
|
-
_request_auth=_request_auth
|
305
|
+
_request_auth=_request_auth,
|
326
306
|
)
|
327
307
|
|
328
|
-
|
329
|
-
|
330
|
-
|
331
308
|
@validate_call
|
332
|
-
def delete_notification(
|
309
|
+
async def delete_notification(
|
333
310
|
self,
|
334
311
|
id: StrictStr,
|
335
312
|
access_token: Optional[StrictStr] = None,
|
@@ -337,9 +314,8 @@ class NotificationsApi:
|
|
337
314
|
None,
|
338
315
|
Annotated[StrictFloat, Field(gt=0)],
|
339
316
|
Tuple[
|
340
|
-
Annotated[StrictFloat, Field(gt=0)],
|
341
|
-
|
342
|
-
]
|
317
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
318
|
+
],
|
343
319
|
] = None,
|
344
320
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
345
321
|
_content_type: Optional[StrictStr] = None,
|
@@ -373,7 +349,7 @@ class NotificationsApi:
|
|
373
349
|
in the spec for a single request.
|
374
350
|
:type _host_index: int, optional
|
375
351
|
:return: Returns the result object.
|
376
|
-
"""
|
352
|
+
""" # noqa: E501
|
377
353
|
|
378
354
|
_param = self._delete_notification_serialize(
|
379
355
|
id=id,
|
@@ -381,26 +357,24 @@ class NotificationsApi:
|
|
381
357
|
_request_auth=_request_auth,
|
382
358
|
_content_type=_content_type,
|
383
359
|
_headers=_headers,
|
384
|
-
_host_index=_host_index
|
360
|
+
_host_index=_host_index,
|
385
361
|
)
|
386
362
|
|
387
363
|
_response_types_map: Dict[str, Optional[str]] = {
|
388
|
-
|
389
|
-
|
364
|
+
"200": "object",
|
365
|
+
"422": "HTTPValidationError",
|
390
366
|
}
|
391
|
-
response_data = self.api_client.call_api(
|
392
|
-
*_param,
|
393
|
-
_request_timeout=_request_timeout
|
367
|
+
response_data = await self.api_client.call_api(
|
368
|
+
*_param, _request_timeout=_request_timeout
|
394
369
|
)
|
395
|
-
response_data.read()
|
370
|
+
await response_data.read()
|
396
371
|
return self.api_client.response_deserialize(
|
397
372
|
response_data=response_data,
|
398
373
|
response_types_map=_response_types_map,
|
399
374
|
).data
|
400
375
|
|
401
|
-
|
402
376
|
@validate_call
|
403
|
-
def delete_notification_with_http_info(
|
377
|
+
async def delete_notification_with_http_info(
|
404
378
|
self,
|
405
379
|
id: StrictStr,
|
406
380
|
access_token: Optional[StrictStr] = None,
|
@@ -408,9 +382,8 @@ class NotificationsApi:
|
|
408
382
|
None,
|
409
383
|
Annotated[StrictFloat, Field(gt=0)],
|
410
384
|
Tuple[
|
411
|
-
Annotated[StrictFloat, Field(gt=0)],
|
412
|
-
|
413
|
-
]
|
385
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
386
|
+
],
|
414
387
|
] = None,
|
415
388
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
416
389
|
_content_type: Optional[StrictStr] = None,
|
@@ -444,7 +417,7 @@ class NotificationsApi:
|
|
444
417
|
in the spec for a single request.
|
445
418
|
:type _host_index: int, optional
|
446
419
|
:return: Returns the result object.
|
447
|
-
"""
|
420
|
+
""" # noqa: E501
|
448
421
|
|
449
422
|
_param = self._delete_notification_serialize(
|
450
423
|
id=id,
|
@@ -452,26 +425,24 @@ class NotificationsApi:
|
|
452
425
|
_request_auth=_request_auth,
|
453
426
|
_content_type=_content_type,
|
454
427
|
_headers=_headers,
|
455
|
-
_host_index=_host_index
|
428
|
+
_host_index=_host_index,
|
456
429
|
)
|
457
430
|
|
458
431
|
_response_types_map: Dict[str, Optional[str]] = {
|
459
|
-
|
460
|
-
|
432
|
+
"200": "object",
|
433
|
+
"422": "HTTPValidationError",
|
461
434
|
}
|
462
|
-
response_data = self.api_client.call_api(
|
463
|
-
*_param,
|
464
|
-
_request_timeout=_request_timeout
|
435
|
+
response_data = await self.api_client.call_api(
|
436
|
+
*_param, _request_timeout=_request_timeout
|
465
437
|
)
|
466
|
-
response_data.read()
|
438
|
+
await response_data.read()
|
467
439
|
return self.api_client.response_deserialize(
|
468
440
|
response_data=response_data,
|
469
441
|
response_types_map=_response_types_map,
|
470
442
|
)
|
471
443
|
|
472
|
-
|
473
444
|
@validate_call
|
474
|
-
def delete_notification_without_preload_content(
|
445
|
+
async def delete_notification_without_preload_content(
|
475
446
|
self,
|
476
447
|
id: StrictStr,
|
477
448
|
access_token: Optional[StrictStr] = None,
|
@@ -479,9 +450,8 @@ class NotificationsApi:
|
|
479
450
|
None,
|
480
451
|
Annotated[StrictFloat, Field(gt=0)],
|
481
452
|
Tuple[
|
482
|
-
Annotated[StrictFloat, Field(gt=0)],
|
483
|
-
|
484
|
-
]
|
453
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
454
|
+
],
|
485
455
|
] = None,
|
486
456
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
487
457
|
_content_type: Optional[StrictStr] = None,
|
@@ -515,7 +485,7 @@ class NotificationsApi:
|
|
515
485
|
in the spec for a single request.
|
516
486
|
:type _host_index: int, optional
|
517
487
|
:return: Returns the result object.
|
518
|
-
"""
|
488
|
+
""" # noqa: E501
|
519
489
|
|
520
490
|
_param = self._delete_notification_serialize(
|
521
491
|
id=id,
|
@@ -523,20 +493,18 @@ class NotificationsApi:
|
|
523
493
|
_request_auth=_request_auth,
|
524
494
|
_content_type=_content_type,
|
525
495
|
_headers=_headers,
|
526
|
-
_host_index=_host_index
|
496
|
+
_host_index=_host_index,
|
527
497
|
)
|
528
498
|
|
529
499
|
_response_types_map: Dict[str, Optional[str]] = {
|
530
|
-
|
531
|
-
|
500
|
+
"200": "object",
|
501
|
+
"422": "HTTPValidationError",
|
532
502
|
}
|
533
|
-
response_data = self.api_client.call_api(
|
534
|
-
*_param,
|
535
|
-
_request_timeout=_request_timeout
|
503
|
+
response_data = await self.api_client.call_api(
|
504
|
+
*_param, _request_timeout=_request_timeout
|
536
505
|
)
|
537
506
|
return response_data.response
|
538
507
|
|
539
|
-
|
540
508
|
def _delete_notification_serialize(
|
541
509
|
self,
|
542
510
|
id,
|
@@ -549,8 +517,7 @@ class NotificationsApi:
|
|
549
517
|
|
550
518
|
_host = None
|
551
519
|
|
552
|
-
_collection_formats: Dict[str, str] = {
|
553
|
-
}
|
520
|
+
_collection_formats: Dict[str, str] = {}
|
554
521
|
|
555
522
|
_path_params: Dict[str, str] = {}
|
556
523
|
_query_params: List[Tuple[str, str]] = []
|
@@ -563,30 +530,24 @@ class NotificationsApi:
|
|
563
530
|
|
564
531
|
# process the path parameters
|
565
532
|
if id is not None:
|
566
|
-
_path_params[
|
533
|
+
_path_params["id"] = id
|
567
534
|
# process the query parameters
|
568
535
|
# process the header parameters
|
569
536
|
# process the form parameters
|
570
537
|
# process the body parameter
|
571
538
|
|
572
|
-
|
573
539
|
# set the HTTP header `Accept`
|
574
|
-
if
|
575
|
-
_header_params[
|
576
|
-
[
|
577
|
-
'application/json'
|
578
|
-
]
|
540
|
+
if "Accept" not in _header_params:
|
541
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
542
|
+
["application/json"]
|
579
543
|
)
|
580
544
|
|
581
|
-
|
582
545
|
# authentication setting
|
583
|
-
_auth_settings: List[str] = [
|
584
|
-
'OAuth2PasswordBearer'
|
585
|
-
]
|
546
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
586
547
|
|
587
548
|
return self.api_client.param_serialize(
|
588
|
-
method=
|
589
|
-
resource_path=
|
549
|
+
method="DELETE",
|
550
|
+
resource_path="/notifications/{id}",
|
590
551
|
path_params=_path_params,
|
591
552
|
query_params=_query_params,
|
592
553
|
header_params=_header_params,
|
@@ -596,23 +557,19 @@ class NotificationsApi:
|
|
596
557
|
auth_settings=_auth_settings,
|
597
558
|
collection_formats=_collection_formats,
|
598
559
|
_host=_host,
|
599
|
-
_request_auth=_request_auth
|
560
|
+
_request_auth=_request_auth,
|
600
561
|
)
|
601
562
|
|
602
|
-
|
603
|
-
|
604
|
-
|
605
563
|
@validate_call
|
606
|
-
def delete_notifications(
|
564
|
+
async def delete_notifications(
|
607
565
|
self,
|
608
566
|
access_token: Optional[StrictStr] = None,
|
609
567
|
_request_timeout: Union[
|
610
568
|
None,
|
611
569
|
Annotated[StrictFloat, Field(gt=0)],
|
612
570
|
Tuple[
|
613
|
-
Annotated[StrictFloat, Field(gt=0)],
|
614
|
-
|
615
|
-
]
|
571
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
572
|
+
],
|
616
573
|
] = None,
|
617
574
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
618
575
|
_content_type: Optional[StrictStr] = None,
|
@@ -645,42 +602,39 @@ class NotificationsApi:
|
|
645
602
|
in the spec for a single request.
|
646
603
|
:type _host_index: int, optional
|
647
604
|
:return: Returns the result object.
|
648
|
-
"""
|
605
|
+
""" # noqa: E501
|
649
606
|
|
650
607
|
_param = self._delete_notifications_serialize(
|
651
608
|
access_token=access_token,
|
652
609
|
_request_auth=_request_auth,
|
653
610
|
_content_type=_content_type,
|
654
611
|
_headers=_headers,
|
655
|
-
_host_index=_host_index
|
612
|
+
_host_index=_host_index,
|
656
613
|
)
|
657
614
|
|
658
615
|
_response_types_map: Dict[str, Optional[str]] = {
|
659
|
-
|
660
|
-
|
616
|
+
"200": "object",
|
617
|
+
"422": "HTTPValidationError",
|
661
618
|
}
|
662
|
-
response_data = self.api_client.call_api(
|
663
|
-
*_param,
|
664
|
-
_request_timeout=_request_timeout
|
619
|
+
response_data = await self.api_client.call_api(
|
620
|
+
*_param, _request_timeout=_request_timeout
|
665
621
|
)
|
666
|
-
response_data.read()
|
622
|
+
await response_data.read()
|
667
623
|
return self.api_client.response_deserialize(
|
668
624
|
response_data=response_data,
|
669
625
|
response_types_map=_response_types_map,
|
670
626
|
).data
|
671
627
|
|
672
|
-
|
673
628
|
@validate_call
|
674
|
-
def delete_notifications_with_http_info(
|
629
|
+
async def delete_notifications_with_http_info(
|
675
630
|
self,
|
676
631
|
access_token: Optional[StrictStr] = None,
|
677
632
|
_request_timeout: Union[
|
678
633
|
None,
|
679
634
|
Annotated[StrictFloat, Field(gt=0)],
|
680
635
|
Tuple[
|
681
|
-
Annotated[StrictFloat, Field(gt=0)],
|
682
|
-
|
683
|
-
]
|
636
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
637
|
+
],
|
684
638
|
] = None,
|
685
639
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
686
640
|
_content_type: Optional[StrictStr] = None,
|
@@ -713,42 +667,39 @@ class NotificationsApi:
|
|
713
667
|
in the spec for a single request.
|
714
668
|
:type _host_index: int, optional
|
715
669
|
:return: Returns the result object.
|
716
|
-
"""
|
670
|
+
""" # noqa: E501
|
717
671
|
|
718
672
|
_param = self._delete_notifications_serialize(
|
719
673
|
access_token=access_token,
|
720
674
|
_request_auth=_request_auth,
|
721
675
|
_content_type=_content_type,
|
722
676
|
_headers=_headers,
|
723
|
-
_host_index=_host_index
|
677
|
+
_host_index=_host_index,
|
724
678
|
)
|
725
679
|
|
726
680
|
_response_types_map: Dict[str, Optional[str]] = {
|
727
|
-
|
728
|
-
|
681
|
+
"200": "object",
|
682
|
+
"422": "HTTPValidationError",
|
729
683
|
}
|
730
|
-
response_data = self.api_client.call_api(
|
731
|
-
*_param,
|
732
|
-
_request_timeout=_request_timeout
|
684
|
+
response_data = await self.api_client.call_api(
|
685
|
+
*_param, _request_timeout=_request_timeout
|
733
686
|
)
|
734
|
-
response_data.read()
|
687
|
+
await response_data.read()
|
735
688
|
return self.api_client.response_deserialize(
|
736
689
|
response_data=response_data,
|
737
690
|
response_types_map=_response_types_map,
|
738
691
|
)
|
739
692
|
|
740
|
-
|
741
693
|
@validate_call
|
742
|
-
def delete_notifications_without_preload_content(
|
694
|
+
async def delete_notifications_without_preload_content(
|
743
695
|
self,
|
744
696
|
access_token: Optional[StrictStr] = None,
|
745
697
|
_request_timeout: Union[
|
746
698
|
None,
|
747
699
|
Annotated[StrictFloat, Field(gt=0)],
|
748
700
|
Tuple[
|
749
|
-
Annotated[StrictFloat, Field(gt=0)],
|
750
|
-
|
751
|
-
]
|
701
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
702
|
+
],
|
752
703
|
] = None,
|
753
704
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
754
705
|
_content_type: Optional[StrictStr] = None,
|
@@ -781,27 +732,25 @@ class NotificationsApi:
|
|
781
732
|
in the spec for a single request.
|
782
733
|
:type _host_index: int, optional
|
783
734
|
:return: Returns the result object.
|
784
|
-
"""
|
735
|
+
""" # noqa: E501
|
785
736
|
|
786
737
|
_param = self._delete_notifications_serialize(
|
787
738
|
access_token=access_token,
|
788
739
|
_request_auth=_request_auth,
|
789
740
|
_content_type=_content_type,
|
790
741
|
_headers=_headers,
|
791
|
-
_host_index=_host_index
|
742
|
+
_host_index=_host_index,
|
792
743
|
)
|
793
744
|
|
794
745
|
_response_types_map: Dict[str, Optional[str]] = {
|
795
|
-
|
796
|
-
|
746
|
+
"200": "object",
|
747
|
+
"422": "HTTPValidationError",
|
797
748
|
}
|
798
|
-
response_data = self.api_client.call_api(
|
799
|
-
*_param,
|
800
|
-
_request_timeout=_request_timeout
|
749
|
+
response_data = await self.api_client.call_api(
|
750
|
+
*_param, _request_timeout=_request_timeout
|
801
751
|
)
|
802
752
|
return response_data.response
|
803
753
|
|
804
|
-
|
805
754
|
def _delete_notifications_serialize(
|
806
755
|
self,
|
807
756
|
access_token,
|
@@ -813,8 +762,7 @@ class NotificationsApi:
|
|
813
762
|
|
814
763
|
_host = None
|
815
764
|
|
816
|
-
_collection_formats: Dict[str, str] = {
|
817
|
-
}
|
765
|
+
_collection_formats: Dict[str, str] = {}
|
818
766
|
|
819
767
|
_path_params: Dict[str, str] = {}
|
820
768
|
_query_params: List[Tuple[str, str]] = []
|
@@ -831,24 +779,18 @@ class NotificationsApi:
|
|
831
779
|
# process the form parameters
|
832
780
|
# process the body parameter
|
833
781
|
|
834
|
-
|
835
782
|
# set the HTTP header `Accept`
|
836
|
-
if
|
837
|
-
_header_params[
|
838
|
-
[
|
839
|
-
'application/json'
|
840
|
-
]
|
783
|
+
if "Accept" not in _header_params:
|
784
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
785
|
+
["application/json"]
|
841
786
|
)
|
842
787
|
|
843
|
-
|
844
788
|
# authentication setting
|
845
|
-
_auth_settings: List[str] = [
|
846
|
-
'OAuth2PasswordBearer'
|
847
|
-
]
|
789
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
848
790
|
|
849
791
|
return self.api_client.param_serialize(
|
850
|
-
method=
|
851
|
-
resource_path=
|
792
|
+
method="DELETE",
|
793
|
+
resource_path="/notifications",
|
852
794
|
path_params=_path_params,
|
853
795
|
query_params=_query_params,
|
854
796
|
header_params=_header_params,
|
@@ -858,14 +800,11 @@ class NotificationsApi:
|
|
858
800
|
auth_settings=_auth_settings,
|
859
801
|
collection_formats=_collection_formats,
|
860
802
|
_host=_host,
|
861
|
-
_request_auth=_request_auth
|
803
|
+
_request_auth=_request_auth,
|
862
804
|
)
|
863
805
|
|
864
|
-
|
865
|
-
|
866
|
-
|
867
806
|
@validate_call
|
868
|
-
def get_notifications(
|
807
|
+
async def get_notifications(
|
869
808
|
self,
|
870
809
|
limit: Optional[StrictInt] = None,
|
871
810
|
offset: Optional[StrictInt] = None,
|
@@ -874,9 +813,8 @@ class NotificationsApi:
|
|
874
813
|
None,
|
875
814
|
Annotated[StrictFloat, Field(gt=0)],
|
876
815
|
Tuple[
|
877
|
-
Annotated[StrictFloat, Field(gt=0)],
|
878
|
-
|
879
|
-
]
|
816
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
817
|
+
],
|
880
818
|
] = None,
|
881
819
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
882
820
|
_content_type: Optional[StrictStr] = None,
|
@@ -913,7 +851,7 @@ class NotificationsApi:
|
|
913
851
|
in the spec for a single request.
|
914
852
|
:type _host_index: int, optional
|
915
853
|
:return: Returns the result object.
|
916
|
-
"""
|
854
|
+
""" # noqa: E501
|
917
855
|
|
918
856
|
_param = self._get_notifications_serialize(
|
919
857
|
limit=limit,
|
@@ -922,26 +860,24 @@ class NotificationsApi:
|
|
922
860
|
_request_auth=_request_auth,
|
923
861
|
_content_type=_content_type,
|
924
862
|
_headers=_headers,
|
925
|
-
_host_index=_host_index
|
863
|
+
_host_index=_host_index,
|
926
864
|
)
|
927
865
|
|
928
866
|
_response_types_map: Dict[str, Optional[str]] = {
|
929
|
-
|
930
|
-
|
867
|
+
"200": "List[NotificationModel]",
|
868
|
+
"422": "HTTPValidationError",
|
931
869
|
}
|
932
|
-
response_data = self.api_client.call_api(
|
933
|
-
*_param,
|
934
|
-
_request_timeout=_request_timeout
|
870
|
+
response_data = await self.api_client.call_api(
|
871
|
+
*_param, _request_timeout=_request_timeout
|
935
872
|
)
|
936
|
-
response_data.read()
|
873
|
+
await response_data.read()
|
937
874
|
return self.api_client.response_deserialize(
|
938
875
|
response_data=response_data,
|
939
876
|
response_types_map=_response_types_map,
|
940
877
|
).data
|
941
878
|
|
942
|
-
|
943
879
|
@validate_call
|
944
|
-
def get_notifications_with_http_info(
|
880
|
+
async def get_notifications_with_http_info(
|
945
881
|
self,
|
946
882
|
limit: Optional[StrictInt] = None,
|
947
883
|
offset: Optional[StrictInt] = None,
|
@@ -950,9 +886,8 @@ class NotificationsApi:
|
|
950
886
|
None,
|
951
887
|
Annotated[StrictFloat, Field(gt=0)],
|
952
888
|
Tuple[
|
953
|
-
Annotated[StrictFloat, Field(gt=0)],
|
954
|
-
|
955
|
-
]
|
889
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
890
|
+
],
|
956
891
|
] = None,
|
957
892
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
958
893
|
_content_type: Optional[StrictStr] = None,
|
@@ -989,7 +924,7 @@ class NotificationsApi:
|
|
989
924
|
in the spec for a single request.
|
990
925
|
:type _host_index: int, optional
|
991
926
|
:return: Returns the result object.
|
992
|
-
"""
|
927
|
+
""" # noqa: E501
|
993
928
|
|
994
929
|
_param = self._get_notifications_serialize(
|
995
930
|
limit=limit,
|
@@ -998,26 +933,24 @@ class NotificationsApi:
|
|
998
933
|
_request_auth=_request_auth,
|
999
934
|
_content_type=_content_type,
|
1000
935
|
_headers=_headers,
|
1001
|
-
_host_index=_host_index
|
936
|
+
_host_index=_host_index,
|
1002
937
|
)
|
1003
938
|
|
1004
939
|
_response_types_map: Dict[str, Optional[str]] = {
|
1005
|
-
|
1006
|
-
|
940
|
+
"200": "List[NotificationModel]",
|
941
|
+
"422": "HTTPValidationError",
|
1007
942
|
}
|
1008
|
-
response_data = self.api_client.call_api(
|
1009
|
-
*_param,
|
1010
|
-
_request_timeout=_request_timeout
|
943
|
+
response_data = await self.api_client.call_api(
|
944
|
+
*_param, _request_timeout=_request_timeout
|
1011
945
|
)
|
1012
|
-
response_data.read()
|
946
|
+
await response_data.read()
|
1013
947
|
return self.api_client.response_deserialize(
|
1014
948
|
response_data=response_data,
|
1015
949
|
response_types_map=_response_types_map,
|
1016
950
|
)
|
1017
951
|
|
1018
|
-
|
1019
952
|
@validate_call
|
1020
|
-
def get_notifications_without_preload_content(
|
953
|
+
async def get_notifications_without_preload_content(
|
1021
954
|
self,
|
1022
955
|
limit: Optional[StrictInt] = None,
|
1023
956
|
offset: Optional[StrictInt] = None,
|
@@ -1026,9 +959,8 @@ class NotificationsApi:
|
|
1026
959
|
None,
|
1027
960
|
Annotated[StrictFloat, Field(gt=0)],
|
1028
961
|
Tuple[
|
1029
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1030
|
-
|
1031
|
-
]
|
962
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
963
|
+
],
|
1032
964
|
] = None,
|
1033
965
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1034
966
|
_content_type: Optional[StrictStr] = None,
|
@@ -1065,7 +997,7 @@ class NotificationsApi:
|
|
1065
997
|
in the spec for a single request.
|
1066
998
|
:type _host_index: int, optional
|
1067
999
|
:return: Returns the result object.
|
1068
|
-
"""
|
1000
|
+
""" # noqa: E501
|
1069
1001
|
|
1070
1002
|
_param = self._get_notifications_serialize(
|
1071
1003
|
limit=limit,
|
@@ -1074,20 +1006,18 @@ class NotificationsApi:
|
|
1074
1006
|
_request_auth=_request_auth,
|
1075
1007
|
_content_type=_content_type,
|
1076
1008
|
_headers=_headers,
|
1077
|
-
_host_index=_host_index
|
1009
|
+
_host_index=_host_index,
|
1078
1010
|
)
|
1079
1011
|
|
1080
1012
|
_response_types_map: Dict[str, Optional[str]] = {
|
1081
|
-
|
1082
|
-
|
1013
|
+
"200": "List[NotificationModel]",
|
1014
|
+
"422": "HTTPValidationError",
|
1083
1015
|
}
|
1084
|
-
response_data = self.api_client.call_api(
|
1085
|
-
*_param,
|
1086
|
-
_request_timeout=_request_timeout
|
1016
|
+
response_data = await self.api_client.call_api(
|
1017
|
+
*_param, _request_timeout=_request_timeout
|
1087
1018
|
)
|
1088
1019
|
return response_data.response
|
1089
1020
|
|
1090
|
-
|
1091
1021
|
def _get_notifications_serialize(
|
1092
1022
|
self,
|
1093
1023
|
limit,
|
@@ -1101,8 +1031,7 @@ class NotificationsApi:
|
|
1101
1031
|
|
1102
1032
|
_host = None
|
1103
1033
|
|
1104
|
-
_collection_formats: Dict[str, str] = {
|
1105
|
-
}
|
1034
|
+
_collection_formats: Dict[str, str] = {}
|
1106
1035
|
|
1107
1036
|
_path_params: Dict[str, str] = {}
|
1108
1037
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1116,35 +1045,29 @@ class NotificationsApi:
|
|
1116
1045
|
# process the path parameters
|
1117
1046
|
# process the query parameters
|
1118
1047
|
if limit is not None:
|
1119
|
-
|
1120
|
-
_query_params.append((
|
1121
|
-
|
1048
|
+
|
1049
|
+
_query_params.append(("limit", limit))
|
1050
|
+
|
1122
1051
|
if offset is not None:
|
1123
|
-
|
1124
|
-
_query_params.append((
|
1125
|
-
|
1052
|
+
|
1053
|
+
_query_params.append(("offset", offset))
|
1054
|
+
|
1126
1055
|
# process the header parameters
|
1127
1056
|
# process the form parameters
|
1128
1057
|
# process the body parameter
|
1129
1058
|
|
1130
|
-
|
1131
1059
|
# set the HTTP header `Accept`
|
1132
|
-
if
|
1133
|
-
_header_params[
|
1134
|
-
[
|
1135
|
-
'application/json'
|
1136
|
-
]
|
1060
|
+
if "Accept" not in _header_params:
|
1061
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1062
|
+
["application/json"]
|
1137
1063
|
)
|
1138
1064
|
|
1139
|
-
|
1140
1065
|
# authentication setting
|
1141
|
-
_auth_settings: List[str] = [
|
1142
|
-
'OAuth2PasswordBearer'
|
1143
|
-
]
|
1066
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
1144
1067
|
|
1145
1068
|
return self.api_client.param_serialize(
|
1146
|
-
method=
|
1147
|
-
resource_path=
|
1069
|
+
method="GET",
|
1070
|
+
resource_path="/notifications",
|
1148
1071
|
path_params=_path_params,
|
1149
1072
|
query_params=_query_params,
|
1150
1073
|
header_params=_header_params,
|
@@ -1154,14 +1077,11 @@ class NotificationsApi:
|
|
1154
1077
|
auth_settings=_auth_settings,
|
1155
1078
|
collection_formats=_collection_formats,
|
1156
1079
|
_host=_host,
|
1157
|
-
_request_auth=_request_auth
|
1080
|
+
_request_auth=_request_auth,
|
1158
1081
|
)
|
1159
1082
|
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
1083
|
@validate_call
|
1164
|
-
def update_notification(
|
1084
|
+
async def update_notification(
|
1165
1085
|
self,
|
1166
1086
|
id: StrictStr,
|
1167
1087
|
viewed: StrictBool,
|
@@ -1171,9 +1091,8 @@ class NotificationsApi:
|
|
1171
1091
|
None,
|
1172
1092
|
Annotated[StrictFloat, Field(gt=0)],
|
1173
1093
|
Tuple[
|
1174
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1175
|
-
|
1176
|
-
]
|
1094
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1095
|
+
],
|
1177
1096
|
] = None,
|
1178
1097
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1179
1098
|
_content_type: Optional[StrictStr] = None,
|
@@ -1212,7 +1131,7 @@ class NotificationsApi:
|
|
1212
1131
|
in the spec for a single request.
|
1213
1132
|
:type _host_index: int, optional
|
1214
1133
|
:return: Returns the result object.
|
1215
|
-
"""
|
1134
|
+
""" # noqa: E501
|
1216
1135
|
|
1217
1136
|
_param = self._update_notification_serialize(
|
1218
1137
|
id=id,
|
@@ -1222,26 +1141,24 @@ class NotificationsApi:
|
|
1222
1141
|
_request_auth=_request_auth,
|
1223
1142
|
_content_type=_content_type,
|
1224
1143
|
_headers=_headers,
|
1225
|
-
_host_index=_host_index
|
1144
|
+
_host_index=_host_index,
|
1226
1145
|
)
|
1227
1146
|
|
1228
1147
|
_response_types_map: Dict[str, Optional[str]] = {
|
1229
|
-
|
1230
|
-
|
1148
|
+
"200": "object",
|
1149
|
+
"422": "HTTPValidationError",
|
1231
1150
|
}
|
1232
|
-
response_data = self.api_client.call_api(
|
1233
|
-
*_param,
|
1234
|
-
_request_timeout=_request_timeout
|
1151
|
+
response_data = await self.api_client.call_api(
|
1152
|
+
*_param, _request_timeout=_request_timeout
|
1235
1153
|
)
|
1236
|
-
response_data.read()
|
1154
|
+
await response_data.read()
|
1237
1155
|
return self.api_client.response_deserialize(
|
1238
1156
|
response_data=response_data,
|
1239
1157
|
response_types_map=_response_types_map,
|
1240
1158
|
).data
|
1241
1159
|
|
1242
|
-
|
1243
1160
|
@validate_call
|
1244
|
-
def update_notification_with_http_info(
|
1161
|
+
async def update_notification_with_http_info(
|
1245
1162
|
self,
|
1246
1163
|
id: StrictStr,
|
1247
1164
|
viewed: StrictBool,
|
@@ -1251,9 +1168,8 @@ class NotificationsApi:
|
|
1251
1168
|
None,
|
1252
1169
|
Annotated[StrictFloat, Field(gt=0)],
|
1253
1170
|
Tuple[
|
1254
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1255
|
-
|
1256
|
-
]
|
1171
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1172
|
+
],
|
1257
1173
|
] = None,
|
1258
1174
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1259
1175
|
_content_type: Optional[StrictStr] = None,
|
@@ -1292,7 +1208,7 @@ class NotificationsApi:
|
|
1292
1208
|
in the spec for a single request.
|
1293
1209
|
:type _host_index: int, optional
|
1294
1210
|
:return: Returns the result object.
|
1295
|
-
"""
|
1211
|
+
""" # noqa: E501
|
1296
1212
|
|
1297
1213
|
_param = self._update_notification_serialize(
|
1298
1214
|
id=id,
|
@@ -1302,26 +1218,24 @@ class NotificationsApi:
|
|
1302
1218
|
_request_auth=_request_auth,
|
1303
1219
|
_content_type=_content_type,
|
1304
1220
|
_headers=_headers,
|
1305
|
-
_host_index=_host_index
|
1221
|
+
_host_index=_host_index,
|
1306
1222
|
)
|
1307
1223
|
|
1308
1224
|
_response_types_map: Dict[str, Optional[str]] = {
|
1309
|
-
|
1310
|
-
|
1225
|
+
"200": "object",
|
1226
|
+
"422": "HTTPValidationError",
|
1311
1227
|
}
|
1312
|
-
response_data = self.api_client.call_api(
|
1313
|
-
*_param,
|
1314
|
-
_request_timeout=_request_timeout
|
1228
|
+
response_data = await self.api_client.call_api(
|
1229
|
+
*_param, _request_timeout=_request_timeout
|
1315
1230
|
)
|
1316
|
-
response_data.read()
|
1231
|
+
await response_data.read()
|
1317
1232
|
return self.api_client.response_deserialize(
|
1318
1233
|
response_data=response_data,
|
1319
1234
|
response_types_map=_response_types_map,
|
1320
1235
|
)
|
1321
1236
|
|
1322
|
-
|
1323
1237
|
@validate_call
|
1324
|
-
def update_notification_without_preload_content(
|
1238
|
+
async def update_notification_without_preload_content(
|
1325
1239
|
self,
|
1326
1240
|
id: StrictStr,
|
1327
1241
|
viewed: StrictBool,
|
@@ -1331,9 +1245,8 @@ class NotificationsApi:
|
|
1331
1245
|
None,
|
1332
1246
|
Annotated[StrictFloat, Field(gt=0)],
|
1333
1247
|
Tuple[
|
1334
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1335
|
-
|
1336
|
-
]
|
1248
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1249
|
+
],
|
1337
1250
|
] = None,
|
1338
1251
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1339
1252
|
_content_type: Optional[StrictStr] = None,
|
@@ -1372,7 +1285,7 @@ class NotificationsApi:
|
|
1372
1285
|
in the spec for a single request.
|
1373
1286
|
:type _host_index: int, optional
|
1374
1287
|
:return: Returns the result object.
|
1375
|
-
"""
|
1288
|
+
""" # noqa: E501
|
1376
1289
|
|
1377
1290
|
_param = self._update_notification_serialize(
|
1378
1291
|
id=id,
|
@@ -1382,20 +1295,18 @@ class NotificationsApi:
|
|
1382
1295
|
_request_auth=_request_auth,
|
1383
1296
|
_content_type=_content_type,
|
1384
1297
|
_headers=_headers,
|
1385
|
-
_host_index=_host_index
|
1298
|
+
_host_index=_host_index,
|
1386
1299
|
)
|
1387
1300
|
|
1388
1301
|
_response_types_map: Dict[str, Optional[str]] = {
|
1389
|
-
|
1390
|
-
|
1302
|
+
"200": "object",
|
1303
|
+
"422": "HTTPValidationError",
|
1391
1304
|
}
|
1392
|
-
response_data = self.api_client.call_api(
|
1393
|
-
*_param,
|
1394
|
-
_request_timeout=_request_timeout
|
1305
|
+
response_data = await self.api_client.call_api(
|
1306
|
+
*_param, _request_timeout=_request_timeout
|
1395
1307
|
)
|
1396
1308
|
return response_data.response
|
1397
1309
|
|
1398
|
-
|
1399
1310
|
def _update_notification_serialize(
|
1400
1311
|
self,
|
1401
1312
|
id,
|
@@ -1410,8 +1321,7 @@ class NotificationsApi:
|
|
1410
1321
|
|
1411
1322
|
_host = None
|
1412
1323
|
|
1413
|
-
_collection_formats: Dict[str, str] = {
|
1414
|
-
}
|
1324
|
+
_collection_formats: Dict[str, str] = {}
|
1415
1325
|
|
1416
1326
|
_path_params: Dict[str, str] = {}
|
1417
1327
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1424,38 +1334,32 @@ class NotificationsApi:
|
|
1424
1334
|
|
1425
1335
|
# process the path parameters
|
1426
1336
|
if id is not None:
|
1427
|
-
_path_params[
|
1337
|
+
_path_params["id"] = id
|
1428
1338
|
# process the query parameters
|
1429
1339
|
if viewed is not None:
|
1430
|
-
|
1431
|
-
_query_params.append((
|
1432
|
-
|
1340
|
+
|
1341
|
+
_query_params.append(("viewed", viewed))
|
1342
|
+
|
1433
1343
|
if sent is not None:
|
1434
|
-
|
1435
|
-
_query_params.append((
|
1436
|
-
|
1344
|
+
|
1345
|
+
_query_params.append(("sent", sent))
|
1346
|
+
|
1437
1347
|
# process the header parameters
|
1438
1348
|
# process the form parameters
|
1439
1349
|
# process the body parameter
|
1440
1350
|
|
1441
|
-
|
1442
1351
|
# set the HTTP header `Accept`
|
1443
|
-
if
|
1444
|
-
_header_params[
|
1445
|
-
[
|
1446
|
-
'application/json'
|
1447
|
-
]
|
1352
|
+
if "Accept" not in _header_params:
|
1353
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1354
|
+
["application/json"]
|
1448
1355
|
)
|
1449
1356
|
|
1450
|
-
|
1451
1357
|
# authentication setting
|
1452
|
-
_auth_settings: List[str] = [
|
1453
|
-
'OAuth2PasswordBearer'
|
1454
|
-
]
|
1358
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
1455
1359
|
|
1456
1360
|
return self.api_client.param_serialize(
|
1457
|
-
method=
|
1458
|
-
resource_path=
|
1361
|
+
method="PUT",
|
1362
|
+
resource_path="/notifications/{id}",
|
1459
1363
|
path_params=_path_params,
|
1460
1364
|
query_params=_query_params,
|
1461
1365
|
header_params=_header_params,
|
@@ -1465,14 +1369,11 @@ class NotificationsApi:
|
|
1465
1369
|
auth_settings=_auth_settings,
|
1466
1370
|
collection_formats=_collection_formats,
|
1467
1371
|
_host=_host,
|
1468
|
-
_request_auth=_request_auth
|
1372
|
+
_request_auth=_request_auth,
|
1469
1373
|
)
|
1470
1374
|
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
1375
|
@validate_call
|
1475
|
-
def update_notifications(
|
1376
|
+
async def update_notifications(
|
1476
1377
|
self,
|
1477
1378
|
viewed: StrictBool,
|
1478
1379
|
sent: StrictBool,
|
@@ -1481,9 +1382,8 @@ class NotificationsApi:
|
|
1481
1382
|
None,
|
1482
1383
|
Annotated[StrictFloat, Field(gt=0)],
|
1483
1384
|
Tuple[
|
1484
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1485
|
-
|
1486
|
-
]
|
1385
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1386
|
+
],
|
1487
1387
|
] = None,
|
1488
1388
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1489
1389
|
_content_type: Optional[StrictStr] = None,
|
@@ -1520,7 +1420,7 @@ class NotificationsApi:
|
|
1520
1420
|
in the spec for a single request.
|
1521
1421
|
:type _host_index: int, optional
|
1522
1422
|
:return: Returns the result object.
|
1523
|
-
"""
|
1423
|
+
""" # noqa: E501
|
1524
1424
|
|
1525
1425
|
_param = self._update_notifications_serialize(
|
1526
1426
|
viewed=viewed,
|
@@ -1529,26 +1429,24 @@ class NotificationsApi:
|
|
1529
1429
|
_request_auth=_request_auth,
|
1530
1430
|
_content_type=_content_type,
|
1531
1431
|
_headers=_headers,
|
1532
|
-
_host_index=_host_index
|
1432
|
+
_host_index=_host_index,
|
1533
1433
|
)
|
1534
1434
|
|
1535
1435
|
_response_types_map: Dict[str, Optional[str]] = {
|
1536
|
-
|
1537
|
-
|
1436
|
+
"200": "object",
|
1437
|
+
"422": "HTTPValidationError",
|
1538
1438
|
}
|
1539
|
-
response_data = self.api_client.call_api(
|
1540
|
-
*_param,
|
1541
|
-
_request_timeout=_request_timeout
|
1439
|
+
response_data = await self.api_client.call_api(
|
1440
|
+
*_param, _request_timeout=_request_timeout
|
1542
1441
|
)
|
1543
|
-
response_data.read()
|
1442
|
+
await response_data.read()
|
1544
1443
|
return self.api_client.response_deserialize(
|
1545
1444
|
response_data=response_data,
|
1546
1445
|
response_types_map=_response_types_map,
|
1547
1446
|
).data
|
1548
1447
|
|
1549
|
-
|
1550
1448
|
@validate_call
|
1551
|
-
def update_notifications_with_http_info(
|
1449
|
+
async def update_notifications_with_http_info(
|
1552
1450
|
self,
|
1553
1451
|
viewed: StrictBool,
|
1554
1452
|
sent: StrictBool,
|
@@ -1557,9 +1455,8 @@ class NotificationsApi:
|
|
1557
1455
|
None,
|
1558
1456
|
Annotated[StrictFloat, Field(gt=0)],
|
1559
1457
|
Tuple[
|
1560
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1561
|
-
|
1562
|
-
]
|
1458
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1459
|
+
],
|
1563
1460
|
] = None,
|
1564
1461
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1565
1462
|
_content_type: Optional[StrictStr] = None,
|
@@ -1596,7 +1493,7 @@ class NotificationsApi:
|
|
1596
1493
|
in the spec for a single request.
|
1597
1494
|
:type _host_index: int, optional
|
1598
1495
|
:return: Returns the result object.
|
1599
|
-
"""
|
1496
|
+
""" # noqa: E501
|
1600
1497
|
|
1601
1498
|
_param = self._update_notifications_serialize(
|
1602
1499
|
viewed=viewed,
|
@@ -1605,26 +1502,24 @@ class NotificationsApi:
|
|
1605
1502
|
_request_auth=_request_auth,
|
1606
1503
|
_content_type=_content_type,
|
1607
1504
|
_headers=_headers,
|
1608
|
-
_host_index=_host_index
|
1505
|
+
_host_index=_host_index,
|
1609
1506
|
)
|
1610
1507
|
|
1611
1508
|
_response_types_map: Dict[str, Optional[str]] = {
|
1612
|
-
|
1613
|
-
|
1509
|
+
"200": "object",
|
1510
|
+
"422": "HTTPValidationError",
|
1614
1511
|
}
|
1615
|
-
response_data = self.api_client.call_api(
|
1616
|
-
*_param,
|
1617
|
-
_request_timeout=_request_timeout
|
1512
|
+
response_data = await self.api_client.call_api(
|
1513
|
+
*_param, _request_timeout=_request_timeout
|
1618
1514
|
)
|
1619
|
-
response_data.read()
|
1515
|
+
await response_data.read()
|
1620
1516
|
return self.api_client.response_deserialize(
|
1621
1517
|
response_data=response_data,
|
1622
1518
|
response_types_map=_response_types_map,
|
1623
1519
|
)
|
1624
1520
|
|
1625
|
-
|
1626
1521
|
@validate_call
|
1627
|
-
def update_notifications_without_preload_content(
|
1522
|
+
async def update_notifications_without_preload_content(
|
1628
1523
|
self,
|
1629
1524
|
viewed: StrictBool,
|
1630
1525
|
sent: StrictBool,
|
@@ -1633,9 +1528,8 @@ class NotificationsApi:
|
|
1633
1528
|
None,
|
1634
1529
|
Annotated[StrictFloat, Field(gt=0)],
|
1635
1530
|
Tuple[
|
1636
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1637
|
-
|
1638
|
-
]
|
1531
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1532
|
+
],
|
1639
1533
|
] = None,
|
1640
1534
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1641
1535
|
_content_type: Optional[StrictStr] = None,
|
@@ -1672,7 +1566,7 @@ class NotificationsApi:
|
|
1672
1566
|
in the spec for a single request.
|
1673
1567
|
:type _host_index: int, optional
|
1674
1568
|
:return: Returns the result object.
|
1675
|
-
"""
|
1569
|
+
""" # noqa: E501
|
1676
1570
|
|
1677
1571
|
_param = self._update_notifications_serialize(
|
1678
1572
|
viewed=viewed,
|
@@ -1681,20 +1575,18 @@ class NotificationsApi:
|
|
1681
1575
|
_request_auth=_request_auth,
|
1682
1576
|
_content_type=_content_type,
|
1683
1577
|
_headers=_headers,
|
1684
|
-
_host_index=_host_index
|
1578
|
+
_host_index=_host_index,
|
1685
1579
|
)
|
1686
1580
|
|
1687
1581
|
_response_types_map: Dict[str, Optional[str]] = {
|
1688
|
-
|
1689
|
-
|
1582
|
+
"200": "object",
|
1583
|
+
"422": "HTTPValidationError",
|
1690
1584
|
}
|
1691
|
-
response_data = self.api_client.call_api(
|
1692
|
-
*_param,
|
1693
|
-
_request_timeout=_request_timeout
|
1585
|
+
response_data = await self.api_client.call_api(
|
1586
|
+
*_param, _request_timeout=_request_timeout
|
1694
1587
|
)
|
1695
1588
|
return response_data.response
|
1696
1589
|
|
1697
|
-
|
1698
1590
|
def _update_notifications_serialize(
|
1699
1591
|
self,
|
1700
1592
|
viewed,
|
@@ -1708,8 +1600,7 @@ class NotificationsApi:
|
|
1708
1600
|
|
1709
1601
|
_host = None
|
1710
1602
|
|
1711
|
-
_collection_formats: Dict[str, str] = {
|
1712
|
-
}
|
1603
|
+
_collection_formats: Dict[str, str] = {}
|
1713
1604
|
|
1714
1605
|
_path_params: Dict[str, str] = {}
|
1715
1606
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1723,35 +1614,29 @@ class NotificationsApi:
|
|
1723
1614
|
# process the path parameters
|
1724
1615
|
# process the query parameters
|
1725
1616
|
if viewed is not None:
|
1726
|
-
|
1727
|
-
_query_params.append((
|
1728
|
-
|
1617
|
+
|
1618
|
+
_query_params.append(("viewed", viewed))
|
1619
|
+
|
1729
1620
|
if sent is not None:
|
1730
|
-
|
1731
|
-
_query_params.append((
|
1732
|
-
|
1621
|
+
|
1622
|
+
_query_params.append(("sent", sent))
|
1623
|
+
|
1733
1624
|
# process the header parameters
|
1734
1625
|
# process the form parameters
|
1735
1626
|
# process the body parameter
|
1736
1627
|
|
1737
|
-
|
1738
1628
|
# set the HTTP header `Accept`
|
1739
|
-
if
|
1740
|
-
_header_params[
|
1741
|
-
[
|
1742
|
-
'application/json'
|
1743
|
-
]
|
1629
|
+
if "Accept" not in _header_params:
|
1630
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1631
|
+
["application/json"]
|
1744
1632
|
)
|
1745
1633
|
|
1746
|
-
|
1747
1634
|
# authentication setting
|
1748
|
-
_auth_settings: List[str] = [
|
1749
|
-
'OAuth2PasswordBearer'
|
1750
|
-
]
|
1635
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
1751
1636
|
|
1752
1637
|
return self.api_client.param_serialize(
|
1753
|
-
method=
|
1754
|
-
resource_path=
|
1638
|
+
method="PUT",
|
1639
|
+
resource_path="/notifications",
|
1755
1640
|
path_params=_path_params,
|
1756
1641
|
query_params=_query_params,
|
1757
1642
|
header_params=_header_params,
|
@@ -1761,7 +1646,5 @@ class NotificationsApi:
|
|
1761
1646
|
auth_settings=_auth_settings,
|
1762
1647
|
collection_formats=_collection_formats,
|
1763
1648
|
_host=_host,
|
1764
|
-
_request_auth=_request_auth
|
1649
|
+
_request_auth=_request_auth,
|
1765
1650
|
)
|
1766
|
-
|
1767
|
-
|