crypticorn 2.16.0__py3-none-any.whl → 2.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. crypticorn/__init__.py +2 -2
  2. crypticorn/auth/client/api/admin_api.py +397 -13
  3. crypticorn/auth/client/api/auth_api.py +3610 -341
  4. crypticorn/auth/client/api/service_api.py +249 -7
  5. crypticorn/auth/client/api/user_api.py +2295 -179
  6. crypticorn/auth/client/api/wallet_api.py +1468 -81
  7. crypticorn/auth/client/configuration.py +2 -2
  8. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  9. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  10. crypticorn/auth/client/rest.py +23 -4
  11. crypticorn/auth/main.py +8 -5
  12. crypticorn/cli/init.py +1 -1
  13. crypticorn/cli/templates/.env.docker.temp +3 -0
  14. crypticorn/cli/templates/.env.example.temp +4 -0
  15. crypticorn/cli/templates/Dockerfile +5 -2
  16. crypticorn/client.py +226 -59
  17. crypticorn/common/__init__.py +1 -0
  18. crypticorn/common/auth.py +45 -14
  19. crypticorn/common/decorators.py +1 -2
  20. crypticorn/common/enums.py +0 -2
  21. crypticorn/common/errors.py +10 -0
  22. crypticorn/common/metrics.py +30 -0
  23. crypticorn/common/middleware.py +94 -1
  24. crypticorn/common/pagination.py +252 -20
  25. crypticorn/common/router/admin_router.py +2 -2
  26. crypticorn/common/router/status_router.py +40 -2
  27. crypticorn/common/scopes.py +2 -2
  28. crypticorn/common/warnings.py +7 -0
  29. crypticorn/dex/__init__.py +6 -0
  30. crypticorn/dex/client/__init__.py +49 -0
  31. crypticorn/dex/client/api/__init__.py +6 -0
  32. crypticorn/dex/client/api/admin_api.py +2986 -0
  33. crypticorn/dex/client/api/signals_api.py +1798 -0
  34. crypticorn/dex/client/api/status_api.py +892 -0
  35. crypticorn/dex/client/api_client.py +758 -0
  36. crypticorn/dex/client/api_response.py +20 -0
  37. crypticorn/dex/client/configuration.py +620 -0
  38. crypticorn/dex/client/exceptions.py +220 -0
  39. crypticorn/dex/client/models/__init__.py +30 -0
  40. crypticorn/dex/client/models/api_error_identifier.py +121 -0
  41. crypticorn/dex/client/models/api_error_level.py +37 -0
  42. crypticorn/dex/client/models/api_error_type.py +37 -0
  43. crypticorn/dex/client/models/exception_detail.py +117 -0
  44. crypticorn/dex/client/models/log_level.py +38 -0
  45. crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
  46. crypticorn/dex/client/models/risk.py +86 -0
  47. crypticorn/dex/client/models/signal_overview_stats.py +158 -0
  48. crypticorn/dex/client/models/signal_volume.py +84 -0
  49. crypticorn/dex/client/models/signal_with_token.py +163 -0
  50. crypticorn/dex/client/models/token_data.py +127 -0
  51. crypticorn/dex/client/models/token_detail.py +116 -0
  52. crypticorn/dex/client/py.typed +0 -0
  53. crypticorn/dex/client/rest.py +217 -0
  54. crypticorn/dex/main.py +1 -0
  55. crypticorn/hive/client/api/admin_api.py +1173 -47
  56. crypticorn/hive/client/api/data_api.py +499 -17
  57. crypticorn/hive/client/api/models_api.py +1595 -87
  58. crypticorn/hive/client/api/status_api.py +397 -16
  59. crypticorn/hive/client/api_client.py +0 -5
  60. crypticorn/hive/client/models/api_error_identifier.py +1 -1
  61. crypticorn/hive/client/models/coin_info.py +1 -1
  62. crypticorn/hive/client/models/exception_detail.py +1 -1
  63. crypticorn/hive/client/models/target_info.py +1 -1
  64. crypticorn/hive/client/rest.py +23 -4
  65. crypticorn/hive/main.py +99 -25
  66. crypticorn/hive/utils.py +2 -2
  67. crypticorn/klines/client/api/admin_api.py +1173 -47
  68. crypticorn/klines/client/api/change_in_timeframe_api.py +269 -11
  69. crypticorn/klines/client/api/funding_rates_api.py +315 -11
  70. crypticorn/klines/client/api/ohlcv_data_api.py +390 -11
  71. crypticorn/klines/client/api/status_api.py +397 -16
  72. crypticorn/klines/client/api/symbols_api.py +216 -11
  73. crypticorn/klines/client/api/udf_api.py +1268 -51
  74. crypticorn/klines/client/api_client.py +0 -5
  75. crypticorn/klines/client/models/api_error_identifier.py +3 -1
  76. crypticorn/klines/client/models/exception_detail.py +1 -1
  77. crypticorn/klines/client/models/ohlcv.py +1 -1
  78. crypticorn/klines/client/models/symbol_group.py +1 -1
  79. crypticorn/klines/client/models/udf_config.py +1 -1
  80. crypticorn/klines/client/rest.py +23 -4
  81. crypticorn/klines/main.py +89 -12
  82. crypticorn/metrics/client/api/admin_api.py +1173 -47
  83. crypticorn/metrics/client/api/exchanges_api.py +1370 -145
  84. crypticorn/metrics/client/api/indicators_api.py +622 -17
  85. crypticorn/metrics/client/api/logs_api.py +296 -11
  86. crypticorn/metrics/client/api/marketcap_api.py +1207 -67
  87. crypticorn/metrics/client/api/markets_api.py +343 -11
  88. crypticorn/metrics/client/api/quote_currencies_api.py +228 -11
  89. crypticorn/metrics/client/api/status_api.py +397 -16
  90. crypticorn/metrics/client/api/tokens_api.py +382 -15
  91. crypticorn/metrics/client/api_client.py +0 -5
  92. crypticorn/metrics/client/configuration.py +4 -2
  93. crypticorn/metrics/client/models/exception_detail.py +1 -1
  94. crypticorn/metrics/client/models/exchange_mapping.py +1 -1
  95. crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
  96. crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
  97. crypticorn/metrics/client/models/ohlcv.py +1 -1
  98. crypticorn/metrics/client/rest.py +23 -4
  99. crypticorn/metrics/main.py +113 -19
  100. crypticorn/pay/client/api/admin_api.py +1585 -57
  101. crypticorn/pay/client/api/now_payments_api.py +961 -39
  102. crypticorn/pay/client/api/payments_api.py +562 -17
  103. crypticorn/pay/client/api/products_api.py +880 -30
  104. crypticorn/pay/client/api/status_api.py +397 -16
  105. crypticorn/pay/client/api_client.py +0 -5
  106. crypticorn/pay/client/configuration.py +2 -2
  107. crypticorn/pay/client/models/api_error_identifier.py +7 -7
  108. crypticorn/pay/client/models/exception_detail.py +1 -1
  109. crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
  110. crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
  111. crypticorn/pay/client/models/product.py +1 -1
  112. crypticorn/pay/client/models/product_create.py +1 -1
  113. crypticorn/pay/client/models/product_update.py +1 -1
  114. crypticorn/pay/client/models/scope.py +1 -0
  115. crypticorn/pay/client/rest.py +23 -4
  116. crypticorn/pay/main.py +10 -6
  117. crypticorn/trade/client/__init__.py +11 -1
  118. crypticorn/trade/client/api/__init__.py +0 -1
  119. crypticorn/trade/client/api/admin_api.py +1184 -55
  120. crypticorn/trade/client/api/api_keys_api.py +1678 -162
  121. crypticorn/trade/client/api/bots_api.py +7563 -187
  122. crypticorn/trade/client/api/exchanges_api.py +565 -19
  123. crypticorn/trade/client/api/notifications_api.py +1290 -116
  124. crypticorn/trade/client/api/orders_api.py +393 -55
  125. crypticorn/trade/client/api/status_api.py +397 -13
  126. crypticorn/trade/client/api/strategies_api.py +1133 -77
  127. crypticorn/trade/client/api/trading_actions_api.py +786 -65
  128. crypticorn/trade/client/models/__init__.py +11 -0
  129. crypticorn/trade/client/models/actions_count.py +88 -0
  130. crypticorn/trade/client/models/api_error_identifier.py +1 -0
  131. crypticorn/trade/client/models/bot.py +7 -18
  132. crypticorn/trade/client/models/bot_create.py +17 -1
  133. crypticorn/trade/client/models/bot_update.py +17 -1
  134. crypticorn/trade/client/models/exchange.py +6 -1
  135. crypticorn/trade/client/models/exchange_key.py +1 -1
  136. crypticorn/trade/client/models/exchange_key_balance.py +111 -0
  137. crypticorn/trade/client/models/exchange_key_create.py +17 -1
  138. crypticorn/trade/client/models/exchange_key_update.py +17 -1
  139. crypticorn/trade/client/models/execution_ids.py +1 -1
  140. crypticorn/trade/client/models/futures_balance.py +27 -25
  141. crypticorn/trade/client/models/notification.py +17 -1
  142. crypticorn/trade/client/models/notification_create.py +18 -2
  143. crypticorn/trade/client/models/notification_update.py +17 -1
  144. crypticorn/trade/client/models/orders_count.py +88 -0
  145. crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
  146. crypticorn/trade/client/models/paginated_response_order.py +134 -0
  147. crypticorn/trade/client/models/pn_l.py +95 -0
  148. crypticorn/trade/client/models/post_futures_action.py +1 -1
  149. crypticorn/trade/client/models/spot_balance.py +109 -0
  150. crypticorn/trade/client/models/strategy.py +22 -4
  151. crypticorn/trade/client/models/strategy_create.py +23 -5
  152. crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
  153. crypticorn/trade/client/models/strategy_update.py +19 -3
  154. crypticorn/trade/client/models/tpsl.py +4 -19
  155. crypticorn/trade/client/models/tpsl_create.py +6 -19
  156. crypticorn/trade/client/rest.py +23 -4
  157. crypticorn/trade/main.py +15 -12
  158. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/METADATA +65 -20
  159. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/RECORD +163 -128
  160. crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
  161. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/WHEEL +0 -0
  162. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/entry_points.txt +0 -0
  163. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/licenses/LICENSE +0 -0
  164. {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/top_level.txt +0 -0
@@ -26,6 +26,24 @@ from crypticorn.trade.client.api_client import ApiClient, RequestSerialized
26
26
  from crypticorn.trade.client.api_response import ApiResponse
27
27
  from crypticorn.trade.client.rest import RESTResponseType
28
28
 
29
+ # Import async_to_sync for sync methods
30
+ try:
31
+ from asgiref.sync import async_to_sync
32
+
33
+ _HAS_ASGIREF = True
34
+ except ImportError:
35
+ _HAS_ASGIREF = False
36
+
37
+ def async_to_sync(async_func):
38
+ """Fallback decorator that raises an error if asgiref is not available."""
39
+
40
+ def wrapper(*args, **kwargs):
41
+ raise ImportError(
42
+ "asgiref is required for sync methods. Install with: pip install asgiref"
43
+ )
44
+
45
+ return wrapper
46
+
29
47
 
30
48
  class NotificationsApi:
31
49
  """NOTE: This class is auto generated by OpenAPI Generator
@@ -34,13 +52,126 @@ class NotificationsApi:
34
52
  Do not edit the class manually.
35
53
  """
36
54
 
37
- def __init__(self, api_client=None) -> None:
55
+ def __init__(self, api_client=None, is_sync: bool = False) -> None:
38
56
  if api_client is None:
39
57
  api_client = ApiClient.get_default()
40
58
  self.api_client = api_client
59
+ self.is_sync = is_sync
60
+
61
+ @validate_call
62
+ def create_notification(
63
+ self,
64
+ notification_create: NotificationCreate,
65
+ _request_timeout: Union[
66
+ None,
67
+ Annotated[StrictFloat, Field(gt=0)],
68
+ Tuple[
69
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
70
+ ],
71
+ ] = None,
72
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
73
+ _content_type: Optional[StrictStr] = None,
74
+ _headers: Optional[Dict[StrictStr, Any]] = None,
75
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
76
+ ) -> object:
77
+ """Create Notification"""
78
+ if self.is_sync:
79
+ return self._create_notification_sync(
80
+ notification_create=notification_create,
81
+ _request_timeout=_request_timeout,
82
+ _request_auth=_request_auth,
83
+ _content_type=_content_type,
84
+ _headers=_headers,
85
+ _host_index=_host_index,
86
+ )
87
+
88
+ else:
89
+ return self._create_notification_async(
90
+ notification_create=notification_create,
91
+ _request_timeout=_request_timeout,
92
+ _request_auth=_request_auth,
93
+ _content_type=_content_type,
94
+ _headers=_headers,
95
+ _host_index=_host_index,
96
+ )
97
+
98
+ @validate_call
99
+ def create_notification_with_http_info(
100
+ self,
101
+ notification_create: NotificationCreate,
102
+ _request_timeout: Union[
103
+ None,
104
+ Annotated[StrictFloat, Field(gt=0)],
105
+ Tuple[
106
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
107
+ ],
108
+ ] = None,
109
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
110
+ _content_type: Optional[StrictStr] = None,
111
+ _headers: Optional[Dict[StrictStr, Any]] = None,
112
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
113
+ ) -> ApiResponse[object]:
114
+ """Create Notification with HTTP info"""
115
+ if self.is_sync:
116
+ return self._create_notification_sync_with_http_info(
117
+ notification_create=notification_create,
118
+ _request_timeout=_request_timeout,
119
+ _request_auth=_request_auth,
120
+ _content_type=_content_type,
121
+ _headers=_headers,
122
+ _host_index=_host_index,
123
+ )
124
+
125
+ else:
126
+ return self._create_notification_async_with_http_info(
127
+ notification_create=notification_create,
128
+ _request_timeout=_request_timeout,
129
+ _request_auth=_request_auth,
130
+ _content_type=_content_type,
131
+ _headers=_headers,
132
+ _host_index=_host_index,
133
+ )
134
+
135
+ @validate_call
136
+ def create_notification_without_preload_content(
137
+ self,
138
+ notification_create: NotificationCreate,
139
+ _request_timeout: Union[
140
+ None,
141
+ Annotated[StrictFloat, Field(gt=0)],
142
+ Tuple[
143
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
144
+ ],
145
+ ] = None,
146
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
147
+ _content_type: Optional[StrictStr] = None,
148
+ _headers: Optional[Dict[StrictStr, Any]] = None,
149
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
150
+ ) -> RESTResponseType:
151
+ """Create Notification without preloading content"""
152
+ if self.is_sync:
153
+ return self._create_notification_sync_without_preload_content(
154
+ notification_create=notification_create,
155
+ _request_timeout=_request_timeout,
156
+ _request_auth=_request_auth,
157
+ _content_type=_content_type,
158
+ _headers=_headers,
159
+ _host_index=_host_index,
160
+ )
161
+
162
+ else:
163
+ return self._create_notification_async_without_preload_content(
164
+ notification_create=notification_create,
165
+ _request_timeout=_request_timeout,
166
+ _request_auth=_request_auth,
167
+ _content_type=_content_type,
168
+ _headers=_headers,
169
+ _host_index=_host_index,
170
+ )
41
171
 
172
+ # Private async implementation methods
42
173
  @validate_call
43
- async def create_notification(
174
+ async def _create_notification_async(
44
175
  self,
45
176
  notification_create: NotificationCreate,
46
177
  _request_timeout: Union[
@@ -104,7 +235,7 @@ class NotificationsApi:
104
235
  ).data
105
236
 
106
237
  @validate_call
107
- async def create_notification_with_http_info(
238
+ async def _create_notification_async_with_http_info(
108
239
  self,
109
240
  notification_create: NotificationCreate,
110
241
  _request_timeout: Union[
@@ -163,12 +294,11 @@ class NotificationsApi:
163
294
  )
164
295
  await response_data.read()
165
296
  return self.api_client.response_deserialize(
166
- response_data=response_data,
167
- response_types_map=_response_types_map,
297
+ response_data=response_data, response_types_map=_response_types_map
168
298
  )
169
299
 
170
300
  @validate_call
171
- async def create_notification_without_preload_content(
301
+ async def _create_notification_async_without_preload_content(
172
302
  self,
173
303
  notification_create: NotificationCreate,
174
304
  _request_timeout: Union[
@@ -225,7 +355,86 @@ class NotificationsApi:
225
355
  response_data = await self.api_client.call_api(
226
356
  *_param, _request_timeout=_request_timeout
227
357
  )
228
- return response_data.response
358
+ return response_data
359
+
360
+ # Private sync implementation methods
361
+ @validate_call
362
+ def _create_notification_sync(
363
+ self,
364
+ notification_create: NotificationCreate,
365
+ _request_timeout: Union[
366
+ None,
367
+ Annotated[StrictFloat, Field(gt=0)],
368
+ Tuple[
369
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
370
+ ],
371
+ ] = None,
372
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
373
+ _content_type: Optional[StrictStr] = None,
374
+ _headers: Optional[Dict[StrictStr, Any]] = None,
375
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
376
+ ) -> object:
377
+ """Synchronous version of create_notification"""
378
+ return async_to_sync(self._create_notification_async)(
379
+ notification_create=notification_create,
380
+ _request_timeout=_request_timeout,
381
+ _request_auth=_request_auth,
382
+ _content_type=_content_type,
383
+ _headers=_headers,
384
+ _host_index=_host_index,
385
+ )
386
+
387
+ @validate_call
388
+ def _create_notification_sync_with_http_info(
389
+ self,
390
+ notification_create: NotificationCreate,
391
+ _request_timeout: Union[
392
+ None,
393
+ Annotated[StrictFloat, Field(gt=0)],
394
+ Tuple[
395
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
396
+ ],
397
+ ] = None,
398
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
399
+ _content_type: Optional[StrictStr] = None,
400
+ _headers: Optional[Dict[StrictStr, Any]] = None,
401
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
402
+ ) -> ApiResponse[object]:
403
+ """Synchronous version of create_notification_with_http_info"""
404
+ return async_to_sync(self._create_notification_async_with_http_info)(
405
+ notification_create=notification_create,
406
+ _request_timeout=_request_timeout,
407
+ _request_auth=_request_auth,
408
+ _content_type=_content_type,
409
+ _headers=_headers,
410
+ _host_index=_host_index,
411
+ )
412
+
413
+ @validate_call
414
+ def _create_notification_sync_without_preload_content(
415
+ self,
416
+ notification_create: NotificationCreate,
417
+ _request_timeout: Union[
418
+ None,
419
+ Annotated[StrictFloat, Field(gt=0)],
420
+ Tuple[
421
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
422
+ ],
423
+ ] = None,
424
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
425
+ _content_type: Optional[StrictStr] = None,
426
+ _headers: Optional[Dict[StrictStr, Any]] = None,
427
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
428
+ ) -> RESTResponseType:
429
+ """Synchronous version of create_notification_without_preload_content"""
430
+ return async_to_sync(self._create_notification_async_without_preload_content)(
431
+ notification_create=notification_create,
432
+ _request_timeout=_request_timeout,
433
+ _request_auth=_request_auth,
434
+ _content_type=_content_type,
435
+ _headers=_headers,
436
+ _host_index=_host_index,
437
+ )
229
438
 
230
439
  def _create_notification_serialize(
231
440
  self,
@@ -292,7 +501,119 @@ class NotificationsApi:
292
501
  )
293
502
 
294
503
  @validate_call
295
- async def delete_notification(
504
+ def delete_notification(
505
+ self,
506
+ id: StrictStr,
507
+ _request_timeout: Union[
508
+ None,
509
+ Annotated[StrictFloat, Field(gt=0)],
510
+ Tuple[
511
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
512
+ ],
513
+ ] = None,
514
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
515
+ _content_type: Optional[StrictStr] = None,
516
+ _headers: Optional[Dict[StrictStr, Any]] = None,
517
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
518
+ ) -> None:
519
+ """Delete Notification"""
520
+ if self.is_sync:
521
+ return self._delete_notification_sync(
522
+ id=id,
523
+ _request_timeout=_request_timeout,
524
+ _request_auth=_request_auth,
525
+ _content_type=_content_type,
526
+ _headers=_headers,
527
+ _host_index=_host_index,
528
+ )
529
+
530
+ else:
531
+ return self._delete_notification_async(
532
+ id=id,
533
+ _request_timeout=_request_timeout,
534
+ _request_auth=_request_auth,
535
+ _content_type=_content_type,
536
+ _headers=_headers,
537
+ _host_index=_host_index,
538
+ )
539
+
540
+ @validate_call
541
+ def delete_notification_with_http_info(
542
+ self,
543
+ id: StrictStr,
544
+ _request_timeout: Union[
545
+ None,
546
+ Annotated[StrictFloat, Field(gt=0)],
547
+ Tuple[
548
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
549
+ ],
550
+ ] = None,
551
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
552
+ _content_type: Optional[StrictStr] = None,
553
+ _headers: Optional[Dict[StrictStr, Any]] = None,
554
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
555
+ ) -> ApiResponse[None]:
556
+ """Delete Notification with HTTP info"""
557
+ if self.is_sync:
558
+ return self._delete_notification_sync_with_http_info(
559
+ id=id,
560
+ _request_timeout=_request_timeout,
561
+ _request_auth=_request_auth,
562
+ _content_type=_content_type,
563
+ _headers=_headers,
564
+ _host_index=_host_index,
565
+ )
566
+
567
+ else:
568
+ return self._delete_notification_async_with_http_info(
569
+ id=id,
570
+ _request_timeout=_request_timeout,
571
+ _request_auth=_request_auth,
572
+ _content_type=_content_type,
573
+ _headers=_headers,
574
+ _host_index=_host_index,
575
+ )
576
+
577
+ @validate_call
578
+ def delete_notification_without_preload_content(
579
+ self,
580
+ id: StrictStr,
581
+ _request_timeout: Union[
582
+ None,
583
+ Annotated[StrictFloat, Field(gt=0)],
584
+ Tuple[
585
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
586
+ ],
587
+ ] = None,
588
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
589
+ _content_type: Optional[StrictStr] = None,
590
+ _headers: Optional[Dict[StrictStr, Any]] = None,
591
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
592
+ ) -> RESTResponseType:
593
+ """Delete Notification without preloading content"""
594
+ if self.is_sync:
595
+ return self._delete_notification_sync_without_preload_content(
596
+ id=id,
597
+ _request_timeout=_request_timeout,
598
+ _request_auth=_request_auth,
599
+ _content_type=_content_type,
600
+ _headers=_headers,
601
+ _host_index=_host_index,
602
+ )
603
+
604
+ else:
605
+ return self._delete_notification_async_without_preload_content(
606
+ id=id,
607
+ _request_timeout=_request_timeout,
608
+ _request_auth=_request_auth,
609
+ _content_type=_content_type,
610
+ _headers=_headers,
611
+ _host_index=_host_index,
612
+ )
613
+
614
+ # Private async implementation methods
615
+ @validate_call
616
+ async def _delete_notification_async(
296
617
  self,
297
618
  id: StrictStr,
298
619
  _request_timeout: Union[
@@ -355,7 +676,7 @@ class NotificationsApi:
355
676
  ).data
356
677
 
357
678
  @validate_call
358
- async def delete_notification_with_http_info(
679
+ async def _delete_notification_async_with_http_info(
359
680
  self,
360
681
  id: StrictStr,
361
682
  _request_timeout: Union[
@@ -413,12 +734,11 @@ class NotificationsApi:
413
734
  )
414
735
  await response_data.read()
415
736
  return self.api_client.response_deserialize(
416
- response_data=response_data,
417
- response_types_map=_response_types_map,
737
+ response_data=response_data, response_types_map=_response_types_map
418
738
  )
419
739
 
420
740
  @validate_call
421
- async def delete_notification_without_preload_content(
741
+ async def _delete_notification_async_without_preload_content(
422
742
  self,
423
743
  id: StrictStr,
424
744
  _request_timeout: Union[
@@ -474,65 +794,13 @@ class NotificationsApi:
474
794
  response_data = await self.api_client.call_api(
475
795
  *_param, _request_timeout=_request_timeout
476
796
  )
477
- return response_data.response
478
-
479
- def _delete_notification_serialize(
480
- self,
481
- id,
482
- _request_auth,
483
- _content_type,
484
- _headers,
485
- _host_index,
486
- ) -> RequestSerialized:
487
-
488
- _host = None
489
-
490
- _collection_formats: Dict[str, str] = {}
491
-
492
- _path_params: Dict[str, str] = {}
493
- _query_params: List[Tuple[str, str]] = []
494
- _header_params: Dict[str, Optional[str]] = _headers or {}
495
- _form_params: List[Tuple[str, str]] = []
496
- _files: Dict[
497
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
498
- ] = {}
499
- _body_params: Optional[bytes] = None
500
-
501
- # process the path parameters
502
- if id is not None:
503
- _path_params["id"] = id
504
- # process the query parameters
505
- # process the header parameters
506
- # process the form parameters
507
- # process the body parameter
508
-
509
- # set the HTTP header `Accept`
510
- if "Accept" not in _header_params:
511
- _header_params["Accept"] = self.api_client.select_header_accept(
512
- ["application/json"]
513
- )
514
-
515
- # authentication setting
516
- _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
517
-
518
- return self.api_client.param_serialize(
519
- method="DELETE",
520
- resource_path="/notifications/{id}",
521
- path_params=_path_params,
522
- query_params=_query_params,
523
- header_params=_header_params,
524
- body=_body_params,
525
- post_params=_form_params,
526
- files=_files,
527
- auth_settings=_auth_settings,
528
- collection_formats=_collection_formats,
529
- _host=_host,
530
- _request_auth=_request_auth,
531
- )
797
+ return response_data
532
798
 
799
+ # Private sync implementation methods
533
800
  @validate_call
534
- async def delete_notifications(
801
+ def _delete_notification_sync(
535
802
  self,
803
+ id: StrictStr,
536
804
  _request_timeout: Union[
537
805
  None,
538
806
  Annotated[StrictFloat, Field(gt=0)],
@@ -545,11 +813,245 @@ class NotificationsApi:
545
813
  _headers: Optional[Dict[StrictStr, Any]] = None,
546
814
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
547
815
  ) -> None:
548
- """Delete Notifications
549
-
550
- Delete all notifications for the authenticated user
551
-
552
- :param _request_timeout: timeout setting for this request. If one
816
+ """Synchronous version of delete_notification"""
817
+ return async_to_sync(self._delete_notification_async)(
818
+ id=id,
819
+ _request_timeout=_request_timeout,
820
+ _request_auth=_request_auth,
821
+ _content_type=_content_type,
822
+ _headers=_headers,
823
+ _host_index=_host_index,
824
+ )
825
+
826
+ @validate_call
827
+ def _delete_notification_sync_with_http_info(
828
+ self,
829
+ id: StrictStr,
830
+ _request_timeout: Union[
831
+ None,
832
+ Annotated[StrictFloat, Field(gt=0)],
833
+ Tuple[
834
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
835
+ ],
836
+ ] = None,
837
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
838
+ _content_type: Optional[StrictStr] = None,
839
+ _headers: Optional[Dict[StrictStr, Any]] = None,
840
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
841
+ ) -> ApiResponse[None]:
842
+ """Synchronous version of delete_notification_with_http_info"""
843
+ return async_to_sync(self._delete_notification_async_with_http_info)(
844
+ id=id,
845
+ _request_timeout=_request_timeout,
846
+ _request_auth=_request_auth,
847
+ _content_type=_content_type,
848
+ _headers=_headers,
849
+ _host_index=_host_index,
850
+ )
851
+
852
+ @validate_call
853
+ def _delete_notification_sync_without_preload_content(
854
+ self,
855
+ id: StrictStr,
856
+ _request_timeout: Union[
857
+ None,
858
+ Annotated[StrictFloat, Field(gt=0)],
859
+ Tuple[
860
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
861
+ ],
862
+ ] = None,
863
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
864
+ _content_type: Optional[StrictStr] = None,
865
+ _headers: Optional[Dict[StrictStr, Any]] = None,
866
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
867
+ ) -> RESTResponseType:
868
+ """Synchronous version of delete_notification_without_preload_content"""
869
+ return async_to_sync(self._delete_notification_async_without_preload_content)(
870
+ id=id,
871
+ _request_timeout=_request_timeout,
872
+ _request_auth=_request_auth,
873
+ _content_type=_content_type,
874
+ _headers=_headers,
875
+ _host_index=_host_index,
876
+ )
877
+
878
+ def _delete_notification_serialize(
879
+ self,
880
+ id,
881
+ _request_auth,
882
+ _content_type,
883
+ _headers,
884
+ _host_index,
885
+ ) -> RequestSerialized:
886
+
887
+ _host = None
888
+
889
+ _collection_formats: Dict[str, str] = {}
890
+
891
+ _path_params: Dict[str, str] = {}
892
+ _query_params: List[Tuple[str, str]] = []
893
+ _header_params: Dict[str, Optional[str]] = _headers or {}
894
+ _form_params: List[Tuple[str, str]] = []
895
+ _files: Dict[
896
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
897
+ ] = {}
898
+ _body_params: Optional[bytes] = None
899
+
900
+ # process the path parameters
901
+ if id is not None:
902
+ _path_params["id"] = id
903
+ # process the query parameters
904
+ # process the header parameters
905
+ # process the form parameters
906
+ # process the body parameter
907
+
908
+ # set the HTTP header `Accept`
909
+ if "Accept" not in _header_params:
910
+ _header_params["Accept"] = self.api_client.select_header_accept(
911
+ ["application/json"]
912
+ )
913
+
914
+ # authentication setting
915
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
916
+
917
+ return self.api_client.param_serialize(
918
+ method="DELETE",
919
+ resource_path="/notifications/{id}",
920
+ path_params=_path_params,
921
+ query_params=_query_params,
922
+ header_params=_header_params,
923
+ body=_body_params,
924
+ post_params=_form_params,
925
+ files=_files,
926
+ auth_settings=_auth_settings,
927
+ collection_formats=_collection_formats,
928
+ _host=_host,
929
+ _request_auth=_request_auth,
930
+ )
931
+
932
+ @validate_call
933
+ def delete_notifications(
934
+ self,
935
+ _request_timeout: Union[
936
+ None,
937
+ Annotated[StrictFloat, Field(gt=0)],
938
+ Tuple[
939
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
940
+ ],
941
+ ] = None,
942
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
943
+ _content_type: Optional[StrictStr] = None,
944
+ _headers: Optional[Dict[StrictStr, Any]] = None,
945
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
946
+ ) -> None:
947
+ """Delete Notifications"""
948
+ if self.is_sync:
949
+ return self._delete_notifications_sync(
950
+ _request_timeout=_request_timeout,
951
+ _request_auth=_request_auth,
952
+ _content_type=_content_type,
953
+ _headers=_headers,
954
+ _host_index=_host_index,
955
+ )
956
+
957
+ else:
958
+ return self._delete_notifications_async(
959
+ _request_timeout=_request_timeout,
960
+ _request_auth=_request_auth,
961
+ _content_type=_content_type,
962
+ _headers=_headers,
963
+ _host_index=_host_index,
964
+ )
965
+
966
+ @validate_call
967
+ def delete_notifications_with_http_info(
968
+ self,
969
+ _request_timeout: Union[
970
+ None,
971
+ Annotated[StrictFloat, Field(gt=0)],
972
+ Tuple[
973
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
974
+ ],
975
+ ] = None,
976
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
977
+ _content_type: Optional[StrictStr] = None,
978
+ _headers: Optional[Dict[StrictStr, Any]] = None,
979
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
980
+ ) -> ApiResponse[None]:
981
+ """Delete Notifications with HTTP info"""
982
+ if self.is_sync:
983
+ return self._delete_notifications_sync_with_http_info(
984
+ _request_timeout=_request_timeout,
985
+ _request_auth=_request_auth,
986
+ _content_type=_content_type,
987
+ _headers=_headers,
988
+ _host_index=_host_index,
989
+ )
990
+
991
+ else:
992
+ return self._delete_notifications_async_with_http_info(
993
+ _request_timeout=_request_timeout,
994
+ _request_auth=_request_auth,
995
+ _content_type=_content_type,
996
+ _headers=_headers,
997
+ _host_index=_host_index,
998
+ )
999
+
1000
+ @validate_call
1001
+ def delete_notifications_without_preload_content(
1002
+ self,
1003
+ _request_timeout: Union[
1004
+ None,
1005
+ Annotated[StrictFloat, Field(gt=0)],
1006
+ Tuple[
1007
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1008
+ ],
1009
+ ] = None,
1010
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1011
+ _content_type: Optional[StrictStr] = None,
1012
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1013
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1014
+ ) -> RESTResponseType:
1015
+ """Delete Notifications without preloading content"""
1016
+ if self.is_sync:
1017
+ return self._delete_notifications_sync_without_preload_content(
1018
+ _request_timeout=_request_timeout,
1019
+ _request_auth=_request_auth,
1020
+ _content_type=_content_type,
1021
+ _headers=_headers,
1022
+ _host_index=_host_index,
1023
+ )
1024
+
1025
+ else:
1026
+ return self._delete_notifications_async_without_preload_content(
1027
+ _request_timeout=_request_timeout,
1028
+ _request_auth=_request_auth,
1029
+ _content_type=_content_type,
1030
+ _headers=_headers,
1031
+ _host_index=_host_index,
1032
+ )
1033
+
1034
+ # Private async implementation methods
1035
+ @validate_call
1036
+ async def _delete_notifications_async(
1037
+ self,
1038
+ _request_timeout: Union[
1039
+ None,
1040
+ Annotated[StrictFloat, Field(gt=0)],
1041
+ Tuple[
1042
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1043
+ ],
1044
+ ] = None,
1045
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1046
+ _content_type: Optional[StrictStr] = None,
1047
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1048
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1049
+ ) -> None:
1050
+ """Delete Notifications
1051
+
1052
+ Delete all notifications for the authenticated user
1053
+
1054
+ :param _request_timeout: timeout setting for this request. If one
553
1055
  number provided, it will be total request
554
1056
  timeout. It can also be a pair (tuple) of
555
1057
  (connection, read) timeouts.
@@ -591,7 +1093,7 @@ class NotificationsApi:
591
1093
  ).data
592
1094
 
593
1095
  @validate_call
594
- async def delete_notifications_with_http_info(
1096
+ async def _delete_notifications_async_with_http_info(
595
1097
  self,
596
1098
  _request_timeout: Union[
597
1099
  None,
@@ -646,12 +1148,11 @@ class NotificationsApi:
646
1148
  )
647
1149
  await response_data.read()
648
1150
  return self.api_client.response_deserialize(
649
- response_data=response_data,
650
- response_types_map=_response_types_map,
1151
+ response_data=response_data, response_types_map=_response_types_map
651
1152
  )
652
1153
 
653
1154
  @validate_call
654
- async def delete_notifications_without_preload_content(
1155
+ async def _delete_notifications_async_without_preload_content(
655
1156
  self,
656
1157
  _request_timeout: Union[
657
1158
  None,
@@ -704,7 +1205,80 @@ class NotificationsApi:
704
1205
  response_data = await self.api_client.call_api(
705
1206
  *_param, _request_timeout=_request_timeout
706
1207
  )
707
- return response_data.response
1208
+ return response_data
1209
+
1210
+ # Private sync implementation methods
1211
+ @validate_call
1212
+ def _delete_notifications_sync(
1213
+ self,
1214
+ _request_timeout: Union[
1215
+ None,
1216
+ Annotated[StrictFloat, Field(gt=0)],
1217
+ Tuple[
1218
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1219
+ ],
1220
+ ] = None,
1221
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1222
+ _content_type: Optional[StrictStr] = None,
1223
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1224
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1225
+ ) -> None:
1226
+ """Synchronous version of delete_notifications"""
1227
+ return async_to_sync(self._delete_notifications_async)(
1228
+ _request_timeout=_request_timeout,
1229
+ _request_auth=_request_auth,
1230
+ _content_type=_content_type,
1231
+ _headers=_headers,
1232
+ _host_index=_host_index,
1233
+ )
1234
+
1235
+ @validate_call
1236
+ def _delete_notifications_sync_with_http_info(
1237
+ self,
1238
+ _request_timeout: Union[
1239
+ None,
1240
+ Annotated[StrictFloat, Field(gt=0)],
1241
+ Tuple[
1242
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1243
+ ],
1244
+ ] = None,
1245
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1246
+ _content_type: Optional[StrictStr] = None,
1247
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1248
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1249
+ ) -> ApiResponse[None]:
1250
+ """Synchronous version of delete_notifications_with_http_info"""
1251
+ return async_to_sync(self._delete_notifications_async_with_http_info)(
1252
+ _request_timeout=_request_timeout,
1253
+ _request_auth=_request_auth,
1254
+ _content_type=_content_type,
1255
+ _headers=_headers,
1256
+ _host_index=_host_index,
1257
+ )
1258
+
1259
+ @validate_call
1260
+ def _delete_notifications_sync_without_preload_content(
1261
+ self,
1262
+ _request_timeout: Union[
1263
+ None,
1264
+ Annotated[StrictFloat, Field(gt=0)],
1265
+ Tuple[
1266
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1267
+ ],
1268
+ ] = None,
1269
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1270
+ _content_type: Optional[StrictStr] = None,
1271
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1272
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1273
+ ) -> RESTResponseType:
1274
+ """Synchronous version of delete_notifications_without_preload_content"""
1275
+ return async_to_sync(self._delete_notifications_async_without_preload_content)(
1276
+ _request_timeout=_request_timeout,
1277
+ _request_auth=_request_auth,
1278
+ _content_type=_content_type,
1279
+ _headers=_headers,
1280
+ _host_index=_host_index,
1281
+ )
708
1282
 
709
1283
  def _delete_notifications_serialize(
710
1284
  self,
@@ -758,7 +1332,128 @@ class NotificationsApi:
758
1332
  )
759
1333
 
760
1334
  @validate_call
761
- async def get_notifications(
1335
+ def get_notifications(
1336
+ self,
1337
+ limit: Optional[StrictInt] = None,
1338
+ offset: Optional[StrictInt] = None,
1339
+ _request_timeout: Union[
1340
+ None,
1341
+ Annotated[StrictFloat, Field(gt=0)],
1342
+ Tuple[
1343
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1344
+ ],
1345
+ ] = None,
1346
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1347
+ _content_type: Optional[StrictStr] = None,
1348
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1349
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1350
+ ) -> List[Notification]:
1351
+ """Get Notifications"""
1352
+ if self.is_sync:
1353
+ return self._get_notifications_sync(
1354
+ limit=limit,
1355
+ offset=offset,
1356
+ _request_timeout=_request_timeout,
1357
+ _request_auth=_request_auth,
1358
+ _content_type=_content_type,
1359
+ _headers=_headers,
1360
+ _host_index=_host_index,
1361
+ )
1362
+
1363
+ else:
1364
+ return self._get_notifications_async(
1365
+ limit=limit,
1366
+ offset=offset,
1367
+ _request_timeout=_request_timeout,
1368
+ _request_auth=_request_auth,
1369
+ _content_type=_content_type,
1370
+ _headers=_headers,
1371
+ _host_index=_host_index,
1372
+ )
1373
+
1374
+ @validate_call
1375
+ def get_notifications_with_http_info(
1376
+ self,
1377
+ limit: Optional[StrictInt] = None,
1378
+ offset: Optional[StrictInt] = None,
1379
+ _request_timeout: Union[
1380
+ None,
1381
+ Annotated[StrictFloat, Field(gt=0)],
1382
+ Tuple[
1383
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1384
+ ],
1385
+ ] = None,
1386
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1387
+ _content_type: Optional[StrictStr] = None,
1388
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1389
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1390
+ ) -> ApiResponse[List[Notification]]:
1391
+ """Get Notifications with HTTP info"""
1392
+ if self.is_sync:
1393
+ return self._get_notifications_sync_with_http_info(
1394
+ limit=limit,
1395
+ offset=offset,
1396
+ _request_timeout=_request_timeout,
1397
+ _request_auth=_request_auth,
1398
+ _content_type=_content_type,
1399
+ _headers=_headers,
1400
+ _host_index=_host_index,
1401
+ )
1402
+
1403
+ else:
1404
+ return self._get_notifications_async_with_http_info(
1405
+ limit=limit,
1406
+ offset=offset,
1407
+ _request_timeout=_request_timeout,
1408
+ _request_auth=_request_auth,
1409
+ _content_type=_content_type,
1410
+ _headers=_headers,
1411
+ _host_index=_host_index,
1412
+ )
1413
+
1414
+ @validate_call
1415
+ def get_notifications_without_preload_content(
1416
+ self,
1417
+ limit: Optional[StrictInt] = None,
1418
+ offset: Optional[StrictInt] = None,
1419
+ _request_timeout: Union[
1420
+ None,
1421
+ Annotated[StrictFloat, Field(gt=0)],
1422
+ Tuple[
1423
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1424
+ ],
1425
+ ] = None,
1426
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1427
+ _content_type: Optional[StrictStr] = None,
1428
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1429
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1430
+ ) -> RESTResponseType:
1431
+ """Get Notifications without preloading content"""
1432
+ if self.is_sync:
1433
+ return self._get_notifications_sync_without_preload_content(
1434
+ limit=limit,
1435
+ offset=offset,
1436
+ _request_timeout=_request_timeout,
1437
+ _request_auth=_request_auth,
1438
+ _content_type=_content_type,
1439
+ _headers=_headers,
1440
+ _host_index=_host_index,
1441
+ )
1442
+
1443
+ else:
1444
+ return self._get_notifications_async_without_preload_content(
1445
+ limit=limit,
1446
+ offset=offset,
1447
+ _request_timeout=_request_timeout,
1448
+ _request_auth=_request_auth,
1449
+ _content_type=_content_type,
1450
+ _headers=_headers,
1451
+ _host_index=_host_index,
1452
+ )
1453
+
1454
+ # Private async implementation methods
1455
+ @validate_call
1456
+ async def _get_notifications_async(
762
1457
  self,
763
1458
  limit: Optional[StrictInt] = None,
764
1459
  offset: Optional[StrictInt] = None,
@@ -826,7 +1521,7 @@ class NotificationsApi:
826
1521
  ).data
827
1522
 
828
1523
  @validate_call
829
- async def get_notifications_with_http_info(
1524
+ async def _get_notifications_async_with_http_info(
830
1525
  self,
831
1526
  limit: Optional[StrictInt] = None,
832
1527
  offset: Optional[StrictInt] = None,
@@ -889,12 +1584,11 @@ class NotificationsApi:
889
1584
  )
890
1585
  await response_data.read()
891
1586
  return self.api_client.response_deserialize(
892
- response_data=response_data,
893
- response_types_map=_response_types_map,
1587
+ response_data=response_data, response_types_map=_response_types_map
894
1588
  )
895
1589
 
896
1590
  @validate_call
897
- async def get_notifications_without_preload_content(
1591
+ async def _get_notifications_async_without_preload_content(
898
1592
  self,
899
1593
  limit: Optional[StrictInt] = None,
900
1594
  offset: Optional[StrictInt] = None,
@@ -955,7 +1649,92 @@ class NotificationsApi:
955
1649
  response_data = await self.api_client.call_api(
956
1650
  *_param, _request_timeout=_request_timeout
957
1651
  )
958
- return response_data.response
1652
+ return response_data
1653
+
1654
+ # Private sync implementation methods
1655
+ @validate_call
1656
+ def _get_notifications_sync(
1657
+ self,
1658
+ limit: Optional[StrictInt] = None,
1659
+ offset: Optional[StrictInt] = None,
1660
+ _request_timeout: Union[
1661
+ None,
1662
+ Annotated[StrictFloat, Field(gt=0)],
1663
+ Tuple[
1664
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1665
+ ],
1666
+ ] = None,
1667
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1668
+ _content_type: Optional[StrictStr] = None,
1669
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1670
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1671
+ ) -> List[Notification]:
1672
+ """Synchronous version of get_notifications"""
1673
+ return async_to_sync(self._get_notifications_async)(
1674
+ limit=limit,
1675
+ offset=offset,
1676
+ _request_timeout=_request_timeout,
1677
+ _request_auth=_request_auth,
1678
+ _content_type=_content_type,
1679
+ _headers=_headers,
1680
+ _host_index=_host_index,
1681
+ )
1682
+
1683
+ @validate_call
1684
+ def _get_notifications_sync_with_http_info(
1685
+ self,
1686
+ limit: Optional[StrictInt] = None,
1687
+ offset: Optional[StrictInt] = None,
1688
+ _request_timeout: Union[
1689
+ None,
1690
+ Annotated[StrictFloat, Field(gt=0)],
1691
+ Tuple[
1692
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1693
+ ],
1694
+ ] = None,
1695
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1696
+ _content_type: Optional[StrictStr] = None,
1697
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1698
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1699
+ ) -> ApiResponse[List[Notification]]:
1700
+ """Synchronous version of get_notifications_with_http_info"""
1701
+ return async_to_sync(self._get_notifications_async_with_http_info)(
1702
+ limit=limit,
1703
+ offset=offset,
1704
+ _request_timeout=_request_timeout,
1705
+ _request_auth=_request_auth,
1706
+ _content_type=_content_type,
1707
+ _headers=_headers,
1708
+ _host_index=_host_index,
1709
+ )
1710
+
1711
+ @validate_call
1712
+ def _get_notifications_sync_without_preload_content(
1713
+ self,
1714
+ limit: Optional[StrictInt] = None,
1715
+ offset: Optional[StrictInt] = None,
1716
+ _request_timeout: Union[
1717
+ None,
1718
+ Annotated[StrictFloat, Field(gt=0)],
1719
+ Tuple[
1720
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1721
+ ],
1722
+ ] = None,
1723
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1724
+ _content_type: Optional[StrictStr] = None,
1725
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1726
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1727
+ ) -> RESTResponseType:
1728
+ """Synchronous version of get_notifications_without_preload_content"""
1729
+ return async_to_sync(self._get_notifications_async_without_preload_content)(
1730
+ limit=limit,
1731
+ offset=offset,
1732
+ _request_timeout=_request_timeout,
1733
+ _request_auth=_request_auth,
1734
+ _content_type=_content_type,
1735
+ _headers=_headers,
1736
+ _host_index=_host_index,
1737
+ )
959
1738
 
960
1739
  def _get_notifications_serialize(
961
1740
  self,
@@ -994,32 +1773,153 @@ class NotificationsApi:
994
1773
  # process the form parameters
995
1774
  # process the body parameter
996
1775
 
997
- # set the HTTP header `Accept`
998
- if "Accept" not in _header_params:
999
- _header_params["Accept"] = self.api_client.select_header_accept(
1000
- ["application/json"]
1776
+ # set the HTTP header `Accept`
1777
+ if "Accept" not in _header_params:
1778
+ _header_params["Accept"] = self.api_client.select_header_accept(
1779
+ ["application/json"]
1780
+ )
1781
+
1782
+ # authentication setting
1783
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1784
+
1785
+ return self.api_client.param_serialize(
1786
+ method="GET",
1787
+ resource_path="/notifications",
1788
+ path_params=_path_params,
1789
+ query_params=_query_params,
1790
+ header_params=_header_params,
1791
+ body=_body_params,
1792
+ post_params=_form_params,
1793
+ files=_files,
1794
+ auth_settings=_auth_settings,
1795
+ collection_formats=_collection_formats,
1796
+ _host=_host,
1797
+ _request_auth=_request_auth,
1798
+ )
1799
+
1800
+ @validate_call
1801
+ def update_notification(
1802
+ self,
1803
+ id: StrictStr,
1804
+ notification_update: NotificationUpdate,
1805
+ _request_timeout: Union[
1806
+ None,
1807
+ Annotated[StrictFloat, Field(gt=0)],
1808
+ Tuple[
1809
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1810
+ ],
1811
+ ] = None,
1812
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1813
+ _content_type: Optional[StrictStr] = None,
1814
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1815
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1816
+ ) -> None:
1817
+ """Update Notification"""
1818
+ if self.is_sync:
1819
+ return self._update_notification_sync(
1820
+ id=id,
1821
+ notification_update=notification_update,
1822
+ _request_timeout=_request_timeout,
1823
+ _request_auth=_request_auth,
1824
+ _content_type=_content_type,
1825
+ _headers=_headers,
1826
+ _host_index=_host_index,
1827
+ )
1828
+
1829
+ else:
1830
+ return self._update_notification_async(
1831
+ id=id,
1832
+ notification_update=notification_update,
1833
+ _request_timeout=_request_timeout,
1834
+ _request_auth=_request_auth,
1835
+ _content_type=_content_type,
1836
+ _headers=_headers,
1837
+ _host_index=_host_index,
1838
+ )
1839
+
1840
+ @validate_call
1841
+ def update_notification_with_http_info(
1842
+ self,
1843
+ id: StrictStr,
1844
+ notification_update: NotificationUpdate,
1845
+ _request_timeout: Union[
1846
+ None,
1847
+ Annotated[StrictFloat, Field(gt=0)],
1848
+ Tuple[
1849
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1850
+ ],
1851
+ ] = None,
1852
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1853
+ _content_type: Optional[StrictStr] = None,
1854
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1855
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1856
+ ) -> ApiResponse[None]:
1857
+ """Update Notification with HTTP info"""
1858
+ if self.is_sync:
1859
+ return self._update_notification_sync_with_http_info(
1860
+ id=id,
1861
+ notification_update=notification_update,
1862
+ _request_timeout=_request_timeout,
1863
+ _request_auth=_request_auth,
1864
+ _content_type=_content_type,
1865
+ _headers=_headers,
1866
+ _host_index=_host_index,
1867
+ )
1868
+
1869
+ else:
1870
+ return self._update_notification_async_with_http_info(
1871
+ id=id,
1872
+ notification_update=notification_update,
1873
+ _request_timeout=_request_timeout,
1874
+ _request_auth=_request_auth,
1875
+ _content_type=_content_type,
1876
+ _headers=_headers,
1877
+ _host_index=_host_index,
1001
1878
  )
1002
1879
 
1003
- # authentication setting
1004
- _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1880
+ @validate_call
1881
+ def update_notification_without_preload_content(
1882
+ self,
1883
+ id: StrictStr,
1884
+ notification_update: NotificationUpdate,
1885
+ _request_timeout: Union[
1886
+ None,
1887
+ Annotated[StrictFloat, Field(gt=0)],
1888
+ Tuple[
1889
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1890
+ ],
1891
+ ] = None,
1892
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1893
+ _content_type: Optional[StrictStr] = None,
1894
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1895
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1896
+ ) -> RESTResponseType:
1897
+ """Update Notification without preloading content"""
1898
+ if self.is_sync:
1899
+ return self._update_notification_sync_without_preload_content(
1900
+ id=id,
1901
+ notification_update=notification_update,
1902
+ _request_timeout=_request_timeout,
1903
+ _request_auth=_request_auth,
1904
+ _content_type=_content_type,
1905
+ _headers=_headers,
1906
+ _host_index=_host_index,
1907
+ )
1005
1908
 
1006
- return self.api_client.param_serialize(
1007
- method="GET",
1008
- resource_path="/notifications",
1009
- path_params=_path_params,
1010
- query_params=_query_params,
1011
- header_params=_header_params,
1012
- body=_body_params,
1013
- post_params=_form_params,
1014
- files=_files,
1015
- auth_settings=_auth_settings,
1016
- collection_formats=_collection_formats,
1017
- _host=_host,
1018
- _request_auth=_request_auth,
1019
- )
1909
+ else:
1910
+ return self._update_notification_async_without_preload_content(
1911
+ id=id,
1912
+ notification_update=notification_update,
1913
+ _request_timeout=_request_timeout,
1914
+ _request_auth=_request_auth,
1915
+ _content_type=_content_type,
1916
+ _headers=_headers,
1917
+ _host_index=_host_index,
1918
+ )
1020
1919
 
1920
+ # Private async implementation methods
1021
1921
  @validate_call
1022
- async def update_notification(
1922
+ async def _update_notification_async(
1023
1923
  self,
1024
1924
  id: StrictStr,
1025
1925
  notification_update: NotificationUpdate,
@@ -1087,7 +1987,7 @@ class NotificationsApi:
1087
1987
  ).data
1088
1988
 
1089
1989
  @validate_call
1090
- async def update_notification_with_http_info(
1990
+ async def _update_notification_async_with_http_info(
1091
1991
  self,
1092
1992
  id: StrictStr,
1093
1993
  notification_update: NotificationUpdate,
@@ -1150,12 +2050,11 @@ class NotificationsApi:
1150
2050
  )
1151
2051
  await response_data.read()
1152
2052
  return self.api_client.response_deserialize(
1153
- response_data=response_data,
1154
- response_types_map=_response_types_map,
2053
+ response_data=response_data, response_types_map=_response_types_map
1155
2054
  )
1156
2055
 
1157
2056
  @validate_call
1158
- async def update_notification_without_preload_content(
2057
+ async def _update_notification_async_without_preload_content(
1159
2058
  self,
1160
2059
  id: StrictStr,
1161
2060
  notification_update: NotificationUpdate,
@@ -1216,7 +2115,92 @@ class NotificationsApi:
1216
2115
  response_data = await self.api_client.call_api(
1217
2116
  *_param, _request_timeout=_request_timeout
1218
2117
  )
1219
- return response_data.response
2118
+ return response_data
2119
+
2120
+ # Private sync implementation methods
2121
+ @validate_call
2122
+ def _update_notification_sync(
2123
+ self,
2124
+ id: StrictStr,
2125
+ notification_update: NotificationUpdate,
2126
+ _request_timeout: Union[
2127
+ None,
2128
+ Annotated[StrictFloat, Field(gt=0)],
2129
+ Tuple[
2130
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2131
+ ],
2132
+ ] = None,
2133
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2134
+ _content_type: Optional[StrictStr] = None,
2135
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2136
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2137
+ ) -> None:
2138
+ """Synchronous version of update_notification"""
2139
+ return async_to_sync(self._update_notification_async)(
2140
+ id=id,
2141
+ notification_update=notification_update,
2142
+ _request_timeout=_request_timeout,
2143
+ _request_auth=_request_auth,
2144
+ _content_type=_content_type,
2145
+ _headers=_headers,
2146
+ _host_index=_host_index,
2147
+ )
2148
+
2149
+ @validate_call
2150
+ def _update_notification_sync_with_http_info(
2151
+ self,
2152
+ id: StrictStr,
2153
+ notification_update: NotificationUpdate,
2154
+ _request_timeout: Union[
2155
+ None,
2156
+ Annotated[StrictFloat, Field(gt=0)],
2157
+ Tuple[
2158
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2159
+ ],
2160
+ ] = None,
2161
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2162
+ _content_type: Optional[StrictStr] = None,
2163
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2164
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2165
+ ) -> ApiResponse[None]:
2166
+ """Synchronous version of update_notification_with_http_info"""
2167
+ return async_to_sync(self._update_notification_async_with_http_info)(
2168
+ id=id,
2169
+ notification_update=notification_update,
2170
+ _request_timeout=_request_timeout,
2171
+ _request_auth=_request_auth,
2172
+ _content_type=_content_type,
2173
+ _headers=_headers,
2174
+ _host_index=_host_index,
2175
+ )
2176
+
2177
+ @validate_call
2178
+ def _update_notification_sync_without_preload_content(
2179
+ self,
2180
+ id: StrictStr,
2181
+ notification_update: NotificationUpdate,
2182
+ _request_timeout: Union[
2183
+ None,
2184
+ Annotated[StrictFloat, Field(gt=0)],
2185
+ Tuple[
2186
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2187
+ ],
2188
+ ] = None,
2189
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2190
+ _content_type: Optional[StrictStr] = None,
2191
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2192
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2193
+ ) -> RESTResponseType:
2194
+ """Synchronous version of update_notification_without_preload_content"""
2195
+ return async_to_sync(self._update_notification_async_without_preload_content)(
2196
+ id=id,
2197
+ notification_update=notification_update,
2198
+ _request_timeout=_request_timeout,
2199
+ _request_auth=_request_auth,
2200
+ _content_type=_content_type,
2201
+ _headers=_headers,
2202
+ _host_index=_host_index,
2203
+ )
1220
2204
 
1221
2205
  def _update_notification_serialize(
1222
2206
  self,
@@ -1286,7 +2270,119 @@ class NotificationsApi:
1286
2270
  )
1287
2271
 
1288
2272
  @validate_call
1289
- async def update_notifications(
2273
+ def update_notifications(
2274
+ self,
2275
+ notification_update: NotificationUpdate,
2276
+ _request_timeout: Union[
2277
+ None,
2278
+ Annotated[StrictFloat, Field(gt=0)],
2279
+ Tuple[
2280
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2281
+ ],
2282
+ ] = None,
2283
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2284
+ _content_type: Optional[StrictStr] = None,
2285
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2286
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2287
+ ) -> None:
2288
+ """Update Notifications"""
2289
+ if self.is_sync:
2290
+ return self._update_notifications_sync(
2291
+ notification_update=notification_update,
2292
+ _request_timeout=_request_timeout,
2293
+ _request_auth=_request_auth,
2294
+ _content_type=_content_type,
2295
+ _headers=_headers,
2296
+ _host_index=_host_index,
2297
+ )
2298
+
2299
+ else:
2300
+ return self._update_notifications_async(
2301
+ notification_update=notification_update,
2302
+ _request_timeout=_request_timeout,
2303
+ _request_auth=_request_auth,
2304
+ _content_type=_content_type,
2305
+ _headers=_headers,
2306
+ _host_index=_host_index,
2307
+ )
2308
+
2309
+ @validate_call
2310
+ def update_notifications_with_http_info(
2311
+ self,
2312
+ notification_update: NotificationUpdate,
2313
+ _request_timeout: Union[
2314
+ None,
2315
+ Annotated[StrictFloat, Field(gt=0)],
2316
+ Tuple[
2317
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2318
+ ],
2319
+ ] = None,
2320
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2321
+ _content_type: Optional[StrictStr] = None,
2322
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2323
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2324
+ ) -> ApiResponse[None]:
2325
+ """Update Notifications with HTTP info"""
2326
+ if self.is_sync:
2327
+ return self._update_notifications_sync_with_http_info(
2328
+ notification_update=notification_update,
2329
+ _request_timeout=_request_timeout,
2330
+ _request_auth=_request_auth,
2331
+ _content_type=_content_type,
2332
+ _headers=_headers,
2333
+ _host_index=_host_index,
2334
+ )
2335
+
2336
+ else:
2337
+ return self._update_notifications_async_with_http_info(
2338
+ notification_update=notification_update,
2339
+ _request_timeout=_request_timeout,
2340
+ _request_auth=_request_auth,
2341
+ _content_type=_content_type,
2342
+ _headers=_headers,
2343
+ _host_index=_host_index,
2344
+ )
2345
+
2346
+ @validate_call
2347
+ def update_notifications_without_preload_content(
2348
+ self,
2349
+ notification_update: NotificationUpdate,
2350
+ _request_timeout: Union[
2351
+ None,
2352
+ Annotated[StrictFloat, Field(gt=0)],
2353
+ Tuple[
2354
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2355
+ ],
2356
+ ] = None,
2357
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2358
+ _content_type: Optional[StrictStr] = None,
2359
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2360
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2361
+ ) -> RESTResponseType:
2362
+ """Update Notifications without preloading content"""
2363
+ if self.is_sync:
2364
+ return self._update_notifications_sync_without_preload_content(
2365
+ notification_update=notification_update,
2366
+ _request_timeout=_request_timeout,
2367
+ _request_auth=_request_auth,
2368
+ _content_type=_content_type,
2369
+ _headers=_headers,
2370
+ _host_index=_host_index,
2371
+ )
2372
+
2373
+ else:
2374
+ return self._update_notifications_async_without_preload_content(
2375
+ notification_update=notification_update,
2376
+ _request_timeout=_request_timeout,
2377
+ _request_auth=_request_auth,
2378
+ _content_type=_content_type,
2379
+ _headers=_headers,
2380
+ _host_index=_host_index,
2381
+ )
2382
+
2383
+ # Private async implementation methods
2384
+ @validate_call
2385
+ async def _update_notifications_async(
1290
2386
  self,
1291
2387
  notification_update: NotificationUpdate,
1292
2388
  _request_timeout: Union[
@@ -1350,7 +2446,7 @@ class NotificationsApi:
1350
2446
  ).data
1351
2447
 
1352
2448
  @validate_call
1353
- async def update_notifications_with_http_info(
2449
+ async def _update_notifications_async_with_http_info(
1354
2450
  self,
1355
2451
  notification_update: NotificationUpdate,
1356
2452
  _request_timeout: Union[
@@ -1409,12 +2505,11 @@ class NotificationsApi:
1409
2505
  )
1410
2506
  await response_data.read()
1411
2507
  return self.api_client.response_deserialize(
1412
- response_data=response_data,
1413
- response_types_map=_response_types_map,
2508
+ response_data=response_data, response_types_map=_response_types_map
1414
2509
  )
1415
2510
 
1416
2511
  @validate_call
1417
- async def update_notifications_without_preload_content(
2512
+ async def _update_notifications_async_without_preload_content(
1418
2513
  self,
1419
2514
  notification_update: NotificationUpdate,
1420
2515
  _request_timeout: Union[
@@ -1471,7 +2566,86 @@ class NotificationsApi:
1471
2566
  response_data = await self.api_client.call_api(
1472
2567
  *_param, _request_timeout=_request_timeout
1473
2568
  )
1474
- return response_data.response
2569
+ return response_data
2570
+
2571
+ # Private sync implementation methods
2572
+ @validate_call
2573
+ def _update_notifications_sync(
2574
+ self,
2575
+ notification_update: NotificationUpdate,
2576
+ _request_timeout: Union[
2577
+ None,
2578
+ Annotated[StrictFloat, Field(gt=0)],
2579
+ Tuple[
2580
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2581
+ ],
2582
+ ] = None,
2583
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2584
+ _content_type: Optional[StrictStr] = None,
2585
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2586
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2587
+ ) -> None:
2588
+ """Synchronous version of update_notifications"""
2589
+ return async_to_sync(self._update_notifications_async)(
2590
+ notification_update=notification_update,
2591
+ _request_timeout=_request_timeout,
2592
+ _request_auth=_request_auth,
2593
+ _content_type=_content_type,
2594
+ _headers=_headers,
2595
+ _host_index=_host_index,
2596
+ )
2597
+
2598
+ @validate_call
2599
+ def _update_notifications_sync_with_http_info(
2600
+ self,
2601
+ notification_update: NotificationUpdate,
2602
+ _request_timeout: Union[
2603
+ None,
2604
+ Annotated[StrictFloat, Field(gt=0)],
2605
+ Tuple[
2606
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2607
+ ],
2608
+ ] = None,
2609
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2610
+ _content_type: Optional[StrictStr] = None,
2611
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2612
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2613
+ ) -> ApiResponse[None]:
2614
+ """Synchronous version of update_notifications_with_http_info"""
2615
+ return async_to_sync(self._update_notifications_async_with_http_info)(
2616
+ notification_update=notification_update,
2617
+ _request_timeout=_request_timeout,
2618
+ _request_auth=_request_auth,
2619
+ _content_type=_content_type,
2620
+ _headers=_headers,
2621
+ _host_index=_host_index,
2622
+ )
2623
+
2624
+ @validate_call
2625
+ def _update_notifications_sync_without_preload_content(
2626
+ self,
2627
+ notification_update: NotificationUpdate,
2628
+ _request_timeout: Union[
2629
+ None,
2630
+ Annotated[StrictFloat, Field(gt=0)],
2631
+ Tuple[
2632
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2633
+ ],
2634
+ ] = None,
2635
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2636
+ _content_type: Optional[StrictStr] = None,
2637
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2638
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2639
+ ) -> RESTResponseType:
2640
+ """Synchronous version of update_notifications_without_preload_content"""
2641
+ return async_to_sync(self._update_notifications_async_without_preload_content)(
2642
+ notification_update=notification_update,
2643
+ _request_timeout=_request_timeout,
2644
+ _request_auth=_request_auth,
2645
+ _content_type=_content_type,
2646
+ _headers=_headers,
2647
+ _host_index=_host_index,
2648
+ )
1475
2649
 
1476
2650
  def _update_notifications_serialize(
1477
2651
  self,