kalshi-python-sync 3.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.
Files changed (149) hide show
  1. kalshi_python_sync/__init__.py +272 -0
  2. kalshi_python_sync/api/__init__.py +19 -0
  3. kalshi_python_sync/api/api_keys_api.py +1098 -0
  4. kalshi_python_sync/api/communications_api.py +3216 -0
  5. kalshi_python_sync/api/events_api.py +1941 -0
  6. kalshi_python_sync/api/exchange_api.py +1263 -0
  7. kalshi_python_sync/api/fcm_api.py +792 -0
  8. kalshi_python_sync/api/incentive_programs_api.py +346 -0
  9. kalshi_python_sync/api/live_data_api.py +564 -0
  10. kalshi_python_sync/api/market_api.py +2568 -0
  11. kalshi_python_sync/api/milestone_api.py +689 -0
  12. kalshi_python_sync/api/multivariate_api.py +1486 -0
  13. kalshi_python_sync/api/order_groups_api.py +1375 -0
  14. kalshi_python_sync/api/orders_api.py +2913 -0
  15. kalshi_python_sync/api/portfolio_api.py +1572 -0
  16. kalshi_python_sync/api/search_api.py +516 -0
  17. kalshi_python_sync/api/structured_targets_api.py +605 -0
  18. kalshi_python_sync/api_client.py +830 -0
  19. kalshi_python_sync/api_response.py +21 -0
  20. kalshi_python_sync/auth.py +89 -0
  21. kalshi_python_sync/configuration.py +626 -0
  22. kalshi_python_sync/exceptions.py +216 -0
  23. kalshi_python_sync/models/__init__.py +136 -0
  24. kalshi_python_sync/models/accept_quote_request.py +94 -0
  25. kalshi_python_sync/models/amend_order_request.py +120 -0
  26. kalshi_python_sync/models/amend_order_response.py +96 -0
  27. kalshi_python_sync/models/announcement.py +108 -0
  28. kalshi_python_sync/models/api_key.py +89 -0
  29. kalshi_python_sync/models/associated_event.py +105 -0
  30. kalshi_python_sync/models/batch_cancel_orders_individual_response.py +111 -0
  31. kalshi_python_sync/models/batch_cancel_orders_request.py +87 -0
  32. kalshi_python_sync/models/batch_cancel_orders_response.py +95 -0
  33. kalshi_python_sync/models/batch_create_orders_individual_response.py +114 -0
  34. kalshi_python_sync/models/batch_create_orders_request.py +95 -0
  35. kalshi_python_sync/models/batch_create_orders_response.py +95 -0
  36. kalshi_python_sync/models/batch_get_market_candlesticks_response.py +95 -0
  37. kalshi_python_sync/models/bid_ask_distribution.py +101 -0
  38. kalshi_python_sync/models/cancel_order_response.py +93 -0
  39. kalshi_python_sync/models/create_api_key_request.py +89 -0
  40. kalshi_python_sync/models/create_api_key_response.py +87 -0
  41. kalshi_python_sync/models/create_market_in_multivariate_event_collection_request.py +95 -0
  42. kalshi_python_sync/models/create_market_in_multivariate_event_collection_response.py +89 -0
  43. kalshi_python_sync/models/create_order_group_request.py +88 -0
  44. kalshi_python_sync/models/create_order_group_response.py +87 -0
  45. kalshi_python_sync/models/create_order_request.py +159 -0
  46. kalshi_python_sync/models/create_order_response.py +91 -0
  47. kalshi_python_sync/models/create_quote_request.py +93 -0
  48. kalshi_python_sync/models/create_quote_response.py +87 -0
  49. kalshi_python_sync/models/create_rfq_request.py +97 -0
  50. kalshi_python_sync/models/create_rfq_response.py +87 -0
  51. kalshi_python_sync/models/daily_schedule.py +89 -0
  52. kalshi_python_sync/models/decrease_order_request.py +90 -0
  53. kalshi_python_sync/models/decrease_order_response.py +91 -0
  54. kalshi_python_sync/models/error_response.py +93 -0
  55. kalshi_python_sync/models/event_data.py +133 -0
  56. kalshi_python_sync/models/event_position.py +105 -0
  57. kalshi_python_sync/models/exchange_status.py +97 -0
  58. kalshi_python_sync/models/fill.py +134 -0
  59. kalshi_python_sync/models/forecast_percentiles_point.py +101 -0
  60. kalshi_python_sync/models/generate_api_key_request.py +87 -0
  61. kalshi_python_sync/models/generate_api_key_response.py +89 -0
  62. kalshi_python_sync/models/get_api_keys_response.py +95 -0
  63. kalshi_python_sync/models/get_balance_response.py +91 -0
  64. kalshi_python_sync/models/get_communications_id_response.py +87 -0
  65. kalshi_python_sync/models/get_event_candlesticks_response.py +104 -0
  66. kalshi_python_sync/models/get_event_forecast_percentiles_history_response.py +95 -0
  67. kalshi_python_sync/models/get_event_metadata_response.py +123 -0
  68. kalshi_python_sync/models/get_event_response.py +101 -0
  69. kalshi_python_sync/models/get_events_response.py +107 -0
  70. kalshi_python_sync/models/get_exchange_announcements_response.py +95 -0
  71. kalshi_python_sync/models/get_exchange_schedule_response.py +91 -0
  72. kalshi_python_sync/models/get_fills_response.py +97 -0
  73. kalshi_python_sync/models/get_filters_by_sports_response.py +102 -0
  74. kalshi_python_sync/models/get_incentive_programs_response.py +97 -0
  75. kalshi_python_sync/models/get_live_data_response.py +91 -0
  76. kalshi_python_sync/models/get_live_datas_response.py +95 -0
  77. kalshi_python_sync/models/get_market_candlesticks_response.py +97 -0
  78. kalshi_python_sync/models/get_market_orderbook_response.py +91 -0
  79. kalshi_python_sync/models/get_market_response.py +91 -0
  80. kalshi_python_sync/models/get_markets_response.py +97 -0
  81. kalshi_python_sync/models/get_milestone_response.py +91 -0
  82. kalshi_python_sync/models/get_milestones_response.py +97 -0
  83. kalshi_python_sync/models/get_multivariate_event_collection_lookup_history_response.py +95 -0
  84. kalshi_python_sync/models/get_multivariate_event_collection_response.py +91 -0
  85. kalshi_python_sync/models/get_multivariate_event_collections_response.py +97 -0
  86. kalshi_python_sync/models/get_multivariate_events_response.py +97 -0
  87. kalshi_python_sync/models/get_order_group_response.py +89 -0
  88. kalshi_python_sync/models/get_order_groups_response.py +95 -0
  89. kalshi_python_sync/models/get_order_queue_position_response.py +87 -0
  90. kalshi_python_sync/models/get_order_queue_positions_response.py +95 -0
  91. kalshi_python_sync/models/get_order_response.py +91 -0
  92. kalshi_python_sync/models/get_orders_response.py +97 -0
  93. kalshi_python_sync/models/get_portfolio_resting_order_total_value_response.py +87 -0
  94. kalshi_python_sync/models/get_positions_response.py +107 -0
  95. kalshi_python_sync/models/get_quote_response.py +91 -0
  96. kalshi_python_sync/models/get_quotes_response.py +97 -0
  97. kalshi_python_sync/models/get_rfq_response.py +91 -0
  98. kalshi_python_sync/models/get_rfqs_response.py +97 -0
  99. kalshi_python_sync/models/get_series_fee_changes_response.py +95 -0
  100. kalshi_python_sync/models/get_series_list_response.py +95 -0
  101. kalshi_python_sync/models/get_series_response.py +91 -0
  102. kalshi_python_sync/models/get_settlements_response.py +97 -0
  103. kalshi_python_sync/models/get_structured_target_response.py +91 -0
  104. kalshi_python_sync/models/get_structured_targets_response.py +97 -0
  105. kalshi_python_sync/models/get_tags_for_series_categories_response.py +87 -0
  106. kalshi_python_sync/models/get_trades_response.py +97 -0
  107. kalshi_python_sync/models/get_user_data_timestamp_response.py +88 -0
  108. kalshi_python_sync/models/incentive_program.py +121 -0
  109. kalshi_python_sync/models/live_data.py +91 -0
  110. kalshi_python_sync/models/lookup_point.py +102 -0
  111. kalshi_python_sync/models/lookup_tickers_for_market_in_multivariate_event_collection_request.py +95 -0
  112. kalshi_python_sync/models/lookup_tickers_for_market_in_multivariate_event_collection_response.py +89 -0
  113. kalshi_python_sync/models/maintenance_window.py +90 -0
  114. kalshi_python_sync/models/market.py +307 -0
  115. kalshi_python_sync/models/market_candlestick.py +108 -0
  116. kalshi_python_sync/models/market_candlesticks_response.py +97 -0
  117. kalshi_python_sync/models/market_metadata.py +91 -0
  118. kalshi_python_sync/models/market_position.py +110 -0
  119. kalshi_python_sync/models/milestone.py +120 -0
  120. kalshi_python_sync/models/multivariate_event_collection.py +122 -0
  121. kalshi_python_sync/models/mve_selected_leg.py +91 -0
  122. kalshi_python_sync/models/order.py +189 -0
  123. kalshi_python_sync/models/order_group.py +89 -0
  124. kalshi_python_sync/models/order_queue_position.py +91 -0
  125. kalshi_python_sync/models/order_status.py +38 -0
  126. kalshi_python_sync/models/orderbook.py +94 -0
  127. kalshi_python_sync/models/percentile_point.py +93 -0
  128. kalshi_python_sync/models/price_distribution.py +157 -0
  129. kalshi_python_sync/models/price_range.py +91 -0
  130. kalshi_python_sync/models/quote.py +153 -0
  131. kalshi_python_sync/models/rfq.py +129 -0
  132. kalshi_python_sync/models/schedule.py +105 -0
  133. kalshi_python_sync/models/scope_list.py +87 -0
  134. kalshi_python_sync/models/self_trade_prevention_type.py +37 -0
  135. kalshi_python_sync/models/series.py +129 -0
  136. kalshi_python_sync/models/series_fee_change.py +103 -0
  137. kalshi_python_sync/models/settlement.py +118 -0
  138. kalshi_python_sync/models/settlement_source.py +89 -0
  139. kalshi_python_sync/models/sport_filter_details.py +102 -0
  140. kalshi_python_sync/models/structured_target.py +98 -0
  141. kalshi_python_sync/models/ticker_pair.py +98 -0
  142. kalshi_python_sync/models/trade.py +113 -0
  143. kalshi_python_sync/models/weekly_schedule.py +154 -0
  144. kalshi_python_sync/py.typed +0 -0
  145. kalshi_python_sync/rest.py +258 -0
  146. kalshi_python_sync-3.0.0.dist-info/METADATA +77 -0
  147. kalshi_python_sync-3.0.0.dist-info/RECORD +149 -0
  148. kalshi_python_sync-3.0.0.dist-info/WHEEL +5 -0
  149. kalshi_python_sync-3.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,516 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kalshi Trade API Manual Endpoints
5
+
6
+ Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
7
+
8
+ The version of the OpenAPI document: 3.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+ import warnings
14
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt, StrictBool
15
+ from typing import Any, Dict, List, Optional, Tuple, Union
16
+ from typing_extensions import Annotated
17
+
18
+ from kalshi_python_sync.models.get_filters_by_sports_response import GetFiltersBySportsResponse
19
+ from kalshi_python_sync.models.get_tags_for_series_categories_response import GetTagsForSeriesCategoriesResponse
20
+
21
+ from kalshi_python_sync.api_client import ApiClient, RequestSerialized
22
+ from kalshi_python_sync.api_response import ApiResponse
23
+ from kalshi_python_sync.rest import RESTResponseType
24
+
25
+
26
+ class SearchApi:
27
+ """NOTE: This class is auto generated by OpenAPI Generator
28
+ Ref: https://openapi-generator.tech
29
+
30
+ Do not edit the class manually.
31
+ """
32
+
33
+ def __init__(self, api_client=None) -> None:
34
+ if api_client is None:
35
+ api_client = ApiClient.get_default()
36
+ self.api_client = api_client
37
+
38
+
39
+ @validate_call
40
+ def get_filters_for_sports(
41
+ self,
42
+ ) -> GetFiltersBySportsResponse:
43
+ """Get Filters for Sports
44
+
45
+ Retrieve available filters organized by sport. This endpoint returns filtering options available for each sport, including scopes and competitions. It also provides an ordered list of sports for display purposes.
46
+
47
+ :param _request_timeout: timeout setting for this request. If one
48
+ number provided, it will be total request
49
+ timeout. It can also be a pair (tuple) of
50
+ (connection, read) timeouts.
51
+ :type _request_timeout: int, tuple(int, int), optional
52
+ :param _request_auth: set to override the auth_settings for an a single
53
+ request; this effectively ignores the
54
+ authentication in the spec for a single request.
55
+ :type _request_auth: dict, optional
56
+ :param _content_type: force content-type for the request.
57
+ :type _content_type: str, Optional
58
+ :param _headers: set to override the headers for a single
59
+ request; this effectively ignores the headers
60
+ in the spec for a single request.
61
+ :type _headers: dict, optional
62
+ :param _host_index: set to override the host_index for a single
63
+ request; this effectively ignores the host_index
64
+ in the spec for a single request.
65
+ :type _host_index: int, optional
66
+ :return: Returns the result object.
67
+ """ # noqa: E501
68
+
69
+
70
+ _param = self._get_filters_for_sports_serialize(
71
+ _request_auth=None,
72
+ _content_type=None,
73
+ _headers=None,
74
+ _host_index=0
75
+ )
76
+
77
+ _response_types_map: Dict[str, Optional[str]] = {
78
+ '200': "GetFiltersBySportsResponse",
79
+ '401': None,
80
+ '500': None,
81
+ }
82
+ response_data = self.api_client.call_api(
83
+ *_param,
84
+ _request_timeout=None,
85
+ )
86
+ response_data.read()
87
+ return self.api_client.response_deserialize(
88
+ response_data=response_data,
89
+ response_types_map=_response_types_map,
90
+ ).data
91
+
92
+
93
+ @validate_call
94
+ def get_filters_for_sports_with_http_info(
95
+ self,
96
+ _request_timeout: Union[
97
+ None,
98
+ Annotated[StrictFloat, Field(gt=0)],
99
+ Tuple[
100
+ Annotated[StrictFloat, Field(gt=0)],
101
+ Annotated[StrictFloat, Field(gt=0)]
102
+ ]
103
+ ] = None,
104
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
105
+ _content_type: Optional[StrictStr] = None,
106
+ _headers: Optional[Dict[StrictStr, Any]] = None,
107
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
108
+ ) -> ApiResponse[GetFiltersBySportsResponse]:
109
+ """Get Filters for Sports
110
+
111
+ Retrieve available filters organized by sport. This endpoint returns filtering options available for each sport, including scopes and competitions. It also provides an ordered list of sports for display purposes.
112
+
113
+ :param _request_timeout: timeout setting for this request. If one
114
+ number provided, it will be total request
115
+ timeout. It can also be a pair (tuple) of
116
+ (connection, read) timeouts.
117
+ :type _request_timeout: int, tuple(int, int), optional
118
+ :param _request_auth: set to override the auth_settings for an a single
119
+ request; this effectively ignores the
120
+ authentication in the spec for a single request.
121
+ :type _request_auth: dict, optional
122
+ :param _content_type: force content-type for the request.
123
+ :type _content_type: str, Optional
124
+ :param _headers: set to override the headers for a single
125
+ request; this effectively ignores the headers
126
+ in the spec for a single request.
127
+ :type _headers: dict, optional
128
+ :param _host_index: set to override the host_index for a single
129
+ request; this effectively ignores the host_index
130
+ in the spec for a single request.
131
+ :type _host_index: int, optional
132
+ :return: Returns the result object.
133
+ """ # noqa: E501
134
+
135
+ _param = self._get_filters_for_sports_serialize(
136
+ _request_auth=_request_auth,
137
+ _content_type=_content_type,
138
+ _headers=_headers,
139
+ _host_index=_host_index
140
+ )
141
+
142
+ _response_types_map: Dict[str, Optional[str]] = {
143
+ '200': "GetFiltersBySportsResponse",
144
+ '401': None,
145
+ '500': None,
146
+ }
147
+ response_data = self.api_client.call_api(
148
+ *_param,
149
+ _request_timeout=_request_timeout
150
+ )
151
+ response_data.read()
152
+ return self.api_client.response_deserialize(
153
+ response_data=response_data,
154
+ response_types_map=_response_types_map,
155
+ )
156
+
157
+
158
+ @validate_call
159
+ def get_filters_for_sports_without_preload_content(
160
+ self,
161
+ _request_timeout: Union[
162
+ None,
163
+ Annotated[StrictFloat, Field(gt=0)],
164
+ Tuple[
165
+ Annotated[StrictFloat, Field(gt=0)],
166
+ Annotated[StrictFloat, Field(gt=0)]
167
+ ]
168
+ ] = None,
169
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
170
+ _content_type: Optional[StrictStr] = None,
171
+ _headers: Optional[Dict[StrictStr, Any]] = None,
172
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
173
+ ) -> RESTResponseType:
174
+ """Get Filters for Sports
175
+
176
+ Retrieve available filters organized by sport. This endpoint returns filtering options available for each sport, including scopes and competitions. It also provides an ordered list of sports for display purposes.
177
+
178
+ :param _request_timeout: timeout setting for this request. If one
179
+ number provided, it will be total request
180
+ timeout. It can also be a pair (tuple) of
181
+ (connection, read) timeouts.
182
+ :type _request_timeout: int, tuple(int, int), optional
183
+ :param _request_auth: set to override the auth_settings for an a single
184
+ request; this effectively ignores the
185
+ authentication in the spec for a single request.
186
+ :type _request_auth: dict, optional
187
+ :param _content_type: force content-type for the request.
188
+ :type _content_type: str, Optional
189
+ :param _headers: set to override the headers for a single
190
+ request; this effectively ignores the headers
191
+ in the spec for a single request.
192
+ :type _headers: dict, optional
193
+ :param _host_index: set to override the host_index for a single
194
+ request; this effectively ignores the host_index
195
+ in the spec for a single request.
196
+ :type _host_index: int, optional
197
+ :return: Returns the result object.
198
+ """ # noqa: E501
199
+
200
+ _param = self._get_filters_for_sports_serialize(
201
+ _request_auth=_request_auth,
202
+ _content_type=_content_type,
203
+ _headers=_headers,
204
+ _host_index=_host_index
205
+ )
206
+
207
+ _response_types_map: Dict[str, Optional[str]] = {
208
+ '200': "GetFiltersBySportsResponse",
209
+ '401': None,
210
+ '500': None,
211
+ }
212
+ response_data = self.api_client.call_api(
213
+ *_param,
214
+ _request_timeout=_request_timeout
215
+ )
216
+ return response_data.response
217
+
218
+
219
+ def _get_filters_for_sports_serialize(
220
+ self,
221
+ _request_auth,
222
+ _content_type,
223
+ _headers,
224
+ _host_index,
225
+ ) -> RequestSerialized:
226
+
227
+ _host = None
228
+
229
+ _collection_formats: Dict[str, str] = {
230
+ }
231
+
232
+ _path_params: Dict[str, str] = {}
233
+ _query_params: List[Tuple[str, str]] = []
234
+ _header_params: Dict[str, Optional[str]] = _headers or {}
235
+ _form_params: List[Tuple[str, str]] = []
236
+ _files: Dict[
237
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
238
+ ] = {}
239
+ _body_params: Optional[bytes] = None
240
+
241
+ # process the path parameters
242
+ # process the query parameters
243
+ # process the header parameters
244
+ # process the form parameters
245
+ # process the body parameter
246
+
247
+
248
+ # set the HTTP header `Accept`
249
+ if 'Accept' not in _header_params:
250
+ _header_params['Accept'] = self.api_client.select_header_accept(
251
+ [
252
+ 'application/json'
253
+ ]
254
+ )
255
+
256
+
257
+ # authentication setting
258
+ _auth_settings: List[str] = [
259
+ ]
260
+
261
+ return self.api_client.param_serialize(
262
+ method='GET',
263
+ resource_path='/search/filters_by_sport',
264
+ path_params=_path_params,
265
+ query_params=_query_params,
266
+ header_params=_header_params,
267
+ body=_body_params,
268
+ post_params=_form_params,
269
+ files=_files,
270
+ auth_settings=_auth_settings,
271
+ collection_formats=_collection_formats,
272
+ _host=_host,
273
+ _request_auth=_request_auth
274
+ )
275
+
276
+
277
+
278
+
279
+ @validate_call
280
+ def get_tags_for_series_categories(
281
+ self,
282
+ ) -> GetTagsForSeriesCategoriesResponse:
283
+ """Get Tags for Series Categories
284
+
285
+ Retrieve tags organized by series categories. This endpoint returns a mapping of series categories to their associated tags, which can be used for filtering and search functionality.
286
+
287
+ :param _request_timeout: timeout setting for this request. If one
288
+ number provided, it will be total request
289
+ timeout. It can also be a pair (tuple) of
290
+ (connection, read) timeouts.
291
+ :type _request_timeout: int, tuple(int, int), optional
292
+ :param _request_auth: set to override the auth_settings for an a single
293
+ request; this effectively ignores the
294
+ authentication in the spec for a single request.
295
+ :type _request_auth: dict, optional
296
+ :param _content_type: force content-type for the request.
297
+ :type _content_type: str, Optional
298
+ :param _headers: set to override the headers for a single
299
+ request; this effectively ignores the headers
300
+ in the spec for a single request.
301
+ :type _headers: dict, optional
302
+ :param _host_index: set to override the host_index for a single
303
+ request; this effectively ignores the host_index
304
+ in the spec for a single request.
305
+ :type _host_index: int, optional
306
+ :return: Returns the result object.
307
+ """ # noqa: E501
308
+
309
+
310
+ _param = self._get_tags_for_series_categories_serialize(
311
+ _request_auth=None,
312
+ _content_type=None,
313
+ _headers=None,
314
+ _host_index=0
315
+ )
316
+
317
+ _response_types_map: Dict[str, Optional[str]] = {
318
+ '200': "GetTagsForSeriesCategoriesResponse",
319
+ '401': None,
320
+ '500': None,
321
+ }
322
+ response_data = self.api_client.call_api(
323
+ *_param,
324
+ _request_timeout=None,
325
+ )
326
+ response_data.read()
327
+ return self.api_client.response_deserialize(
328
+ response_data=response_data,
329
+ response_types_map=_response_types_map,
330
+ ).data
331
+
332
+
333
+ @validate_call
334
+ def get_tags_for_series_categories_with_http_info(
335
+ self,
336
+ _request_timeout: Union[
337
+ None,
338
+ Annotated[StrictFloat, Field(gt=0)],
339
+ Tuple[
340
+ Annotated[StrictFloat, Field(gt=0)],
341
+ Annotated[StrictFloat, Field(gt=0)]
342
+ ]
343
+ ] = None,
344
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
345
+ _content_type: Optional[StrictStr] = None,
346
+ _headers: Optional[Dict[StrictStr, Any]] = None,
347
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
348
+ ) -> ApiResponse[GetTagsForSeriesCategoriesResponse]:
349
+ """Get Tags for Series Categories
350
+
351
+ Retrieve tags organized by series categories. This endpoint returns a mapping of series categories to their associated tags, which can be used for filtering and search functionality.
352
+
353
+ :param _request_timeout: timeout setting for this request. If one
354
+ number provided, it will be total request
355
+ timeout. It can also be a pair (tuple) of
356
+ (connection, read) timeouts.
357
+ :type _request_timeout: int, tuple(int, int), optional
358
+ :param _request_auth: set to override the auth_settings for an a single
359
+ request; this effectively ignores the
360
+ authentication in the spec for a single request.
361
+ :type _request_auth: dict, optional
362
+ :param _content_type: force content-type for the request.
363
+ :type _content_type: str, Optional
364
+ :param _headers: set to override the headers for a single
365
+ request; this effectively ignores the headers
366
+ in the spec for a single request.
367
+ :type _headers: dict, optional
368
+ :param _host_index: set to override the host_index for a single
369
+ request; this effectively ignores the host_index
370
+ in the spec for a single request.
371
+ :type _host_index: int, optional
372
+ :return: Returns the result object.
373
+ """ # noqa: E501
374
+
375
+ _param = self._get_tags_for_series_categories_serialize(
376
+ _request_auth=_request_auth,
377
+ _content_type=_content_type,
378
+ _headers=_headers,
379
+ _host_index=_host_index
380
+ )
381
+
382
+ _response_types_map: Dict[str, Optional[str]] = {
383
+ '200': "GetTagsForSeriesCategoriesResponse",
384
+ '401': None,
385
+ '500': None,
386
+ }
387
+ response_data = self.api_client.call_api(
388
+ *_param,
389
+ _request_timeout=_request_timeout
390
+ )
391
+ response_data.read()
392
+ return self.api_client.response_deserialize(
393
+ response_data=response_data,
394
+ response_types_map=_response_types_map,
395
+ )
396
+
397
+
398
+ @validate_call
399
+ def get_tags_for_series_categories_without_preload_content(
400
+ self,
401
+ _request_timeout: Union[
402
+ None,
403
+ Annotated[StrictFloat, Field(gt=0)],
404
+ Tuple[
405
+ Annotated[StrictFloat, Field(gt=0)],
406
+ Annotated[StrictFloat, Field(gt=0)]
407
+ ]
408
+ ] = None,
409
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
410
+ _content_type: Optional[StrictStr] = None,
411
+ _headers: Optional[Dict[StrictStr, Any]] = None,
412
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
413
+ ) -> RESTResponseType:
414
+ """Get Tags for Series Categories
415
+
416
+ Retrieve tags organized by series categories. This endpoint returns a mapping of series categories to their associated tags, which can be used for filtering and search functionality.
417
+
418
+ :param _request_timeout: timeout setting for this request. If one
419
+ number provided, it will be total request
420
+ timeout. It can also be a pair (tuple) of
421
+ (connection, read) timeouts.
422
+ :type _request_timeout: int, tuple(int, int), optional
423
+ :param _request_auth: set to override the auth_settings for an a single
424
+ request; this effectively ignores the
425
+ authentication in the spec for a single request.
426
+ :type _request_auth: dict, optional
427
+ :param _content_type: force content-type for the request.
428
+ :type _content_type: str, Optional
429
+ :param _headers: set to override the headers for a single
430
+ request; this effectively ignores the headers
431
+ in the spec for a single request.
432
+ :type _headers: dict, optional
433
+ :param _host_index: set to override the host_index for a single
434
+ request; this effectively ignores the host_index
435
+ in the spec for a single request.
436
+ :type _host_index: int, optional
437
+ :return: Returns the result object.
438
+ """ # noqa: E501
439
+
440
+ _param = self._get_tags_for_series_categories_serialize(
441
+ _request_auth=_request_auth,
442
+ _content_type=_content_type,
443
+ _headers=_headers,
444
+ _host_index=_host_index
445
+ )
446
+
447
+ _response_types_map: Dict[str, Optional[str]] = {
448
+ '200': "GetTagsForSeriesCategoriesResponse",
449
+ '401': None,
450
+ '500': None,
451
+ }
452
+ response_data = self.api_client.call_api(
453
+ *_param,
454
+ _request_timeout=_request_timeout
455
+ )
456
+ return response_data.response
457
+
458
+
459
+ def _get_tags_for_series_categories_serialize(
460
+ self,
461
+ _request_auth,
462
+ _content_type,
463
+ _headers,
464
+ _host_index,
465
+ ) -> RequestSerialized:
466
+
467
+ _host = None
468
+
469
+ _collection_formats: Dict[str, str] = {
470
+ }
471
+
472
+ _path_params: Dict[str, str] = {}
473
+ _query_params: List[Tuple[str, str]] = []
474
+ _header_params: Dict[str, Optional[str]] = _headers or {}
475
+ _form_params: List[Tuple[str, str]] = []
476
+ _files: Dict[
477
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
478
+ ] = {}
479
+ _body_params: Optional[bytes] = None
480
+
481
+ # process the path parameters
482
+ # process the query parameters
483
+ # process the header parameters
484
+ # process the form parameters
485
+ # process the body parameter
486
+
487
+
488
+ # set the HTTP header `Accept`
489
+ if 'Accept' not in _header_params:
490
+ _header_params['Accept'] = self.api_client.select_header_accept(
491
+ [
492
+ 'application/json'
493
+ ]
494
+ )
495
+
496
+
497
+ # authentication setting
498
+ _auth_settings: List[str] = [
499
+ ]
500
+
501
+ return self.api_client.param_serialize(
502
+ method='GET',
503
+ resource_path='/search/tags_by_categories',
504
+ path_params=_path_params,
505
+ query_params=_query_params,
506
+ header_params=_header_params,
507
+ body=_body_params,
508
+ post_params=_form_params,
509
+ files=_files,
510
+ auth_settings=_auth_settings,
511
+ collection_formats=_collection_formats,
512
+ _host=_host,
513
+ _request_auth=_request_auth
514
+ )
515
+
516
+