twitter-openapi-python-generated 0.1.0__py3-none-any.whl → 0.1.2__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. twitter_openapi_python_generated/__init__.py +235 -1
  2. twitter_openapi_python_generated/api/__init__.py +2 -0
  3. twitter_openapi_python_generated/api/birdwatch_api.py +1609 -0
  4. twitter_openapi_python_generated/api/community_api.py +1910 -0
  5. twitter_openapi_python_generated/api/default_api.py +1522 -0
  6. twitter_openapi_python_generated/api/tweet_api.py +778 -142
  7. twitter_openapi_python_generated/api/user_list_api.py +1145 -192
  8. twitter_openapi_python_generated/api/users_api.py +318 -0
  9. twitter_openapi_python_generated/api_client.py +1 -1
  10. twitter_openapi_python_generated/configuration.py +1 -1
  11. twitter_openapi_python_generated/models/__init__.py +115 -0
  12. twitter_openapi_python_generated/models/ad_metadata_container.py +5 -3
  13. twitter_openapi_python_generated/models/authenticate_periscope_response.py +102 -0
  14. twitter_openapi_python_generated/models/authenticate_periscope_response_data.py +89 -0
  15. twitter_openapi_python_generated/models/birdwatch_alias_self_select_status.py +91 -0
  16. twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response.py +102 -0
  17. twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response_data.py +93 -0
  18. twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response.py +102 -0
  19. twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response_data.py +93 -0
  20. twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response.py +102 -0
  21. twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response_data.py +93 -0
  22. twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response.py +102 -0
  23. twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response_data.py +93 -0
  24. twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response.py +102 -0
  25. twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response_data.py +93 -0
  26. twitter_openapi_python_generated/models/birdwatch_home_page.py +101 -0
  27. twitter_openapi_python_generated/models/birdwatch_home_page_body.py +104 -0
  28. twitter_openapi_python_generated/models/birdwatch_home_timeline.py +97 -0
  29. twitter_openapi_python_generated/models/birdwatch_profile.py +89 -0
  30. twitter_openapi_python_generated/models/birdwatch_public_data_file.py +91 -0
  31. twitter_openapi_python_generated/models/birdwatch_public_data_file_bundle.py +113 -0
  32. twitter_openapi_python_generated/models/birdwatch_viewer.py +93 -0
  33. twitter_openapi_python_generated/models/bookmark_search.py +93 -0
  34. twitter_openapi_python_generated/models/bookmark_search_timeline_response.py +102 -0
  35. twitter_openapi_python_generated/models/bookmark_search_timeline_response_data.py +93 -0
  36. twitter_openapi_python_generated/models/client_event_info_details.py +8 -2
  37. twitter_openapi_python_generated/models/communities_fetch_one_query_response.py +102 -0
  38. twitter_openapi_python_generated/models/communities_fetch_one_query_response_data.py +93 -0
  39. twitter_openapi_python_generated/models/communities_search_query_response.py +102 -0
  40. twitter_openapi_python_generated/models/communities_search_query_response_data.py +93 -0
  41. twitter_openapi_python_generated/models/communities_search_slice.py +102 -0
  42. twitter_openapi_python_generated/models/community.py +3 -1
  43. twitter_openapi_python_generated/models/community_facepile_user.py +98 -0
  44. twitter_openapi_python_generated/models/community_facepile_user_results.py +95 -0
  45. twitter_openapi_python_generated/models/community_hashtag.py +91 -0
  46. twitter_openapi_python_generated/models/community_hashtag_slice.py +99 -0
  47. twitter_openapi_python_generated/models/community_id_user_results.py +95 -0
  48. twitter_openapi_python_generated/models/community_list_members_action_result.py +90 -0
  49. twitter_openapi_python_generated/models/community_page_actions.py +113 -0
  50. twitter_openapi_python_generated/models/community_page_community.py +187 -0
  51. twitter_openapi_python_generated/models/community_page_delete_action_result.py +94 -0
  52. twitter_openapi_python_generated/models/community_page_invites_result.py +96 -0
  53. twitter_openapi_python_generated/models/community_page_join_action_result.py +92 -0
  54. twitter_openapi_python_generated/models/community_page_leave_action_result.py +96 -0
  55. twitter_openapi_python_generated/models/community_page_pin_action_result.py +92 -0
  56. twitter_openapi_python_generated/models/community_page_results.py +95 -0
  57. twitter_openapi_python_generated/models/community_primary_topic_name.py +89 -0
  58. twitter_openapi_python_generated/models/community_query_response.py +102 -0
  59. twitter_openapi_python_generated/models/community_query_response_data.py +93 -0
  60. twitter_openapi_python_generated/models/community_relay_rule.py +103 -0
  61. twitter_openapi_python_generated/models/community_search_community.py +134 -0
  62. twitter_openapi_python_generated/models/community_search_results.py +95 -0
  63. twitter_openapi_python_generated/models/community_settings_actions.py +101 -0
  64. twitter_openapi_python_generated/models/community_settings_community.py +183 -0
  65. twitter_openapi_python_generated/models/community_settings_creator.py +106 -0
  66. twitter_openapi_python_generated/models/community_settings_creator_core.py +89 -0
  67. twitter_openapi_python_generated/models/community_settings_creator_results.py +95 -0
  68. twitter_openapi_python_generated/models/community_settings_creator_verification.py +89 -0
  69. twitter_openapi_python_generated/models/community_settings_invites_result.py +90 -0
  70. twitter_openapi_python_generated/models/community_settings_results.py +95 -0
  71. twitter_openapi_python_generated/models/community_subtopic.py +99 -0
  72. twitter_openapi_python_generated/models/community_topic.py +108 -0
  73. twitter_openapi_python_generated/models/community_topic_results.py +96 -0
  74. twitter_openapi_python_generated/models/content_item_type.py +1 -0
  75. twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response.py +102 -0
  76. twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response_data.py +89 -0
  77. twitter_openapi_python_generated/models/data_saver_mode_response.py +102 -0
  78. twitter_openapi_python_generated/models/data_saver_mode_response_data.py +89 -0
  79. twitter_openapi_python_generated/models/error_extensions.py +1 -1
  80. twitter_openapi_python_generated/models/error_response.py +1 -1
  81. twitter_openapi_python_generated/models/event_summary_ad_metadata_container.py +91 -0
  82. twitter_openapi_python_generated/models/event_summary_event.py +97 -0
  83. twitter_openapi_python_generated/models/event_summary_media.py +99 -0
  84. twitter_openapi_python_generated/models/event_summary_media_entity.py +95 -0
  85. twitter_openapi_python_generated/models/event_summary_media_key.py +91 -0
  86. twitter_openapi_python_generated/models/event_summary_promoted_metadata.py +117 -0
  87. twitter_openapi_python_generated/models/explore_sidebar_response.py +102 -0
  88. twitter_openapi_python_generated/models/explore_sidebar_response_data.py +93 -0
  89. twitter_openapi_python_generated/models/feedback_action.py +0 -7
  90. twitter_openapi_python_generated/models/global_communities_latest_post_search.py +93 -0
  91. twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response.py +102 -0
  92. twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response_data.py +93 -0
  93. twitter_openapi_python_generated/models/global_communities_post_search.py +93 -0
  94. twitter_openapi_python_generated/models/global_communities_post_search_timeline_response.py +102 -0
  95. twitter_openapi_python_generated/models/global_communities_post_search_timeline_response_data.py +93 -0
  96. twitter_openapi_python_generated/models/grok_home.py +114 -0
  97. twitter_openapi_python_generated/models/grok_home_layout.py +98 -0
  98. twitter_openapi_python_generated/models/grok_home_layout_section.py +98 -0
  99. twitter_openapi_python_generated/models/grok_home_prompt.py +99 -0
  100. twitter_openapi_python_generated/models/grok_home_response.py +102 -0
  101. twitter_openapi_python_generated/models/grok_home_response_data.py +93 -0
  102. twitter_openapi_python_generated/models/grok_model_option.py +103 -0
  103. twitter_openapi_python_generated/models/grouped_trend.py +95 -0
  104. twitter_openapi_python_generated/models/item_content_union.py +27 -8
  105. twitter_openapi_python_generated/models/list_search.py +93 -0
  106. twitter_openapi_python_generated/models/list_search_timeline_response.py +102 -0
  107. twitter_openapi_python_generated/models/list_search_timeline_response_data.py +93 -0
  108. twitter_openapi_python_generated/models/lists_management_page_timeline_response.py +102 -0
  109. twitter_openapi_python_generated/models/lists_management_page_timeline_response_data.py +93 -0
  110. twitter_openapi_python_generated/models/lists_management_viewer.py +93 -0
  111. twitter_openapi_python_generated/models/module_footer.py +1 -8
  112. twitter_openapi_python_generated/models/notification_details.py +91 -0
  113. twitter_openapi_python_generated/models/pinned_timelines.py +89 -0
  114. twitter_openapi_python_generated/models/pinned_timelines_response.py +102 -0
  115. twitter_openapi_python_generated/models/pinned_timelines_response_data.py +93 -0
  116. twitter_openapi_python_generated/models/promoted_trend.py +97 -0
  117. twitter_openapi_python_generated/models/rich_message.py +10 -1
  118. twitter_openapi_python_generated/models/rich_message_entity.py +97 -0
  119. twitter_openapi_python_generated/models/rich_message_entity_ref.py +117 -0
  120. twitter_openapi_python_generated/models/search_timeline.py +2 -2
  121. twitter_openapi_python_generated/models/slice_info.py +89 -0
  122. twitter_openapi_python_generated/models/timeline_community.py +13 -17
  123. twitter_openapi_python_generated/models/timeline_event_summary.py +121 -0
  124. twitter_openapi_python_generated/models/timeline_message_prompt.py +13 -17
  125. twitter_openapi_python_generated/models/timeline_message_prompt_button.py +95 -0
  126. twitter_openapi_python_generated/models/timeline_message_prompt_button_action.py +91 -0
  127. twitter_openapi_python_generated/models/timeline_message_prompt_content.py +112 -0
  128. twitter_openapi_python_generated/models/timeline_message_prompt_rich_text.py +98 -0
  129. twitter_openapi_python_generated/models/timeline_message_prompt_rich_text_entity.py +97 -0
  130. twitter_openapi_python_generated/models/timeline_message_prompt_rich_text_entity_ref.py +107 -0
  131. twitter_openapi_python_generated/models/timeline_prompt.py +19 -17
  132. twitter_openapi_python_generated/models/timeline_prompt_callback.py +89 -0
  133. twitter_openapi_python_generated/models/timeline_prompt_content.py +124 -0
  134. twitter_openapi_python_generated/models/timeline_trend.py +18 -1
  135. twitter_openapi_python_generated/models/topic_carousel_query_response.py +102 -0
  136. twitter_openapi_python_generated/models/topic_carousel_query_response_data.py +93 -0
  137. twitter_openapi_python_generated/models/trend_metadata.py +3 -1
  138. twitter_openapi_python_generated/models/trend_promoted_metadata.py +111 -0
  139. twitter_openapi_python_generated/models/type_name.py +3 -0
  140. twitter_openapi_python_generated/models/users_verified_avatars_response.py +102 -0
  141. twitter_openapi_python_generated/models/users_verified_avatars_response_data.py +96 -0
  142. twitter_openapi_python_generated/models/verified_avatar_user.py +112 -0
  143. twitter_openapi_python_generated/models/verified_avatar_user_results.py +93 -0
  144. {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/METADATA +145 -9
  145. {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/RECORD +149 -32
  146. {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/WHEEL +0 -0
  147. {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/licenses/LICENSE +0 -0
  148. {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/licenses/LICENSE.AGPL +0 -0
  149. {twitter_openapi_python_generated-0.1.0.dist-info → twitter_openapi_python_generated-0.1.2.dist-info}/top_level.txt +0 -0
@@ -17,6 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import StrictStr
20
+ from twitter_openapi_python_generated.models.bookmark_search_timeline_response import BookmarkSearchTimelineResponse
20
21
  from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse
21
22
  from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse
22
23
  from twitter_openapi_python_generated.models.community_discovery_timeline_response import CommunityDiscoveryTimelineResponse
@@ -24,6 +25,7 @@ from twitter_openapi_python_generated.models.community_media_timeline_response i
24
25
  from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse
25
26
  from twitter_openapi_python_generated.models.connect_tab_timeline_response import ConnectTabTimelineResponse
26
27
  from twitter_openapi_python_generated.models.explore_page_response import ExplorePageResponse
28
+ from twitter_openapi_python_generated.models.explore_sidebar_response import ExploreSidebarResponse
27
29
  from twitter_openapi_python_generated.models.generic_timeline_by_id_response import GenericTimelineByIdResponse
28
30
  from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse
29
31
  from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse
@@ -51,6 +53,323 @@ class TweetApi:
51
53
  self.api_client = api_client
52
54
 
53
55
 
56
+ @validate_call
57
+ def get_bookmark_search_timeline(
58
+ self,
59
+ path_query_id: StrictStr,
60
+ features: StrictStr,
61
+ variables: StrictStr,
62
+ _request_timeout: Union[
63
+ None,
64
+ Annotated[StrictFloat, Field(gt=0)],
65
+ Tuple[
66
+ Annotated[StrictFloat, Field(gt=0)],
67
+ Annotated[StrictFloat, Field(gt=0)]
68
+ ]
69
+ ] = None,
70
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
71
+ _content_type: Optional[StrictStr] = None,
72
+ _headers: Optional[Dict[StrictStr, Any]] = None,
73
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
74
+ ) -> BookmarkSearchTimelineResponse:
75
+ """get_bookmark_search_timeline
76
+
77
+ search the account's bookmarks
78
+
79
+ :param path_query_id: (required)
80
+ :type path_query_id: str
81
+ :param features: (required)
82
+ :type features: str
83
+ :param variables: (required)
84
+ :type variables: str
85
+ :param _request_timeout: timeout setting for this request. If one
86
+ number provided, it will be total request
87
+ timeout. It can also be a pair (tuple) of
88
+ (connection, read) timeouts.
89
+ :type _request_timeout: int, tuple(int, int), optional
90
+ :param _request_auth: set to override the auth_settings for an a single
91
+ request; this effectively ignores the
92
+ authentication in the spec for a single request.
93
+ :type _request_auth: dict, optional
94
+ :param _content_type: force content-type for the request.
95
+ :type _content_type: str, Optional
96
+ :param _headers: set to override the headers for a single
97
+ request; this effectively ignores the headers
98
+ in the spec for a single request.
99
+ :type _headers: dict, optional
100
+ :param _host_index: set to override the host_index for a single
101
+ request; this effectively ignores the host_index
102
+ in the spec for a single request.
103
+ :type _host_index: int, optional
104
+ :return: Returns the result object.
105
+ """ # noqa: E501
106
+
107
+ _param = self._get_bookmark_search_timeline_serialize(
108
+ path_query_id=path_query_id,
109
+ features=features,
110
+ variables=variables,
111
+ _request_auth=_request_auth,
112
+ _content_type=_content_type,
113
+ _headers=_headers,
114
+ _host_index=_host_index
115
+ )
116
+
117
+ _response_types_map: Dict[str, Optional[str]] = {
118
+ '200': "BookmarkSearchTimelineResponse",
119
+ }
120
+ response_data = self.api_client.call_api(
121
+ *_param,
122
+ _request_timeout=_request_timeout
123
+ )
124
+ response_data.read()
125
+ return self.api_client.response_deserialize(
126
+ response_data=response_data,
127
+ response_types_map=_response_types_map,
128
+ ).data
129
+
130
+
131
+ @validate_call
132
+ def get_bookmark_search_timeline_with_http_info(
133
+ self,
134
+ path_query_id: StrictStr,
135
+ features: StrictStr,
136
+ variables: StrictStr,
137
+ _request_timeout: Union[
138
+ None,
139
+ Annotated[StrictFloat, Field(gt=0)],
140
+ Tuple[
141
+ Annotated[StrictFloat, Field(gt=0)],
142
+ Annotated[StrictFloat, Field(gt=0)]
143
+ ]
144
+ ] = None,
145
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
146
+ _content_type: Optional[StrictStr] = None,
147
+ _headers: Optional[Dict[StrictStr, Any]] = None,
148
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
149
+ ) -> ApiResponse[BookmarkSearchTimelineResponse]:
150
+ """get_bookmark_search_timeline
151
+
152
+ search the account's bookmarks
153
+
154
+ :param path_query_id: (required)
155
+ :type path_query_id: str
156
+ :param features: (required)
157
+ :type features: str
158
+ :param variables: (required)
159
+ :type variables: str
160
+ :param _request_timeout: timeout setting for this request. If one
161
+ number provided, it will be total request
162
+ timeout. It can also be a pair (tuple) of
163
+ (connection, read) timeouts.
164
+ :type _request_timeout: int, tuple(int, int), optional
165
+ :param _request_auth: set to override the auth_settings for an a single
166
+ request; this effectively ignores the
167
+ authentication in the spec for a single request.
168
+ :type _request_auth: dict, optional
169
+ :param _content_type: force content-type for the request.
170
+ :type _content_type: str, Optional
171
+ :param _headers: set to override the headers for a single
172
+ request; this effectively ignores the headers
173
+ in the spec for a single request.
174
+ :type _headers: dict, optional
175
+ :param _host_index: set to override the host_index for a single
176
+ request; this effectively ignores the host_index
177
+ in the spec for a single request.
178
+ :type _host_index: int, optional
179
+ :return: Returns the result object.
180
+ """ # noqa: E501
181
+
182
+ _param = self._get_bookmark_search_timeline_serialize(
183
+ path_query_id=path_query_id,
184
+ features=features,
185
+ variables=variables,
186
+ _request_auth=_request_auth,
187
+ _content_type=_content_type,
188
+ _headers=_headers,
189
+ _host_index=_host_index
190
+ )
191
+
192
+ _response_types_map: Dict[str, Optional[str]] = {
193
+ '200': "BookmarkSearchTimelineResponse",
194
+ }
195
+ response_data = self.api_client.call_api(
196
+ *_param,
197
+ _request_timeout=_request_timeout
198
+ )
199
+ response_data.read()
200
+ return self.api_client.response_deserialize(
201
+ response_data=response_data,
202
+ response_types_map=_response_types_map,
203
+ )
204
+
205
+
206
+ @validate_call
207
+ def get_bookmark_search_timeline_without_preload_content(
208
+ self,
209
+ path_query_id: StrictStr,
210
+ features: StrictStr,
211
+ variables: StrictStr,
212
+ _request_timeout: Union[
213
+ None,
214
+ Annotated[StrictFloat, Field(gt=0)],
215
+ Tuple[
216
+ Annotated[StrictFloat, Field(gt=0)],
217
+ Annotated[StrictFloat, Field(gt=0)]
218
+ ]
219
+ ] = None,
220
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
221
+ _content_type: Optional[StrictStr] = None,
222
+ _headers: Optional[Dict[StrictStr, Any]] = None,
223
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
224
+ ) -> RESTResponseType:
225
+ """get_bookmark_search_timeline
226
+
227
+ search the account's bookmarks
228
+
229
+ :param path_query_id: (required)
230
+ :type path_query_id: str
231
+ :param features: (required)
232
+ :type features: str
233
+ :param variables: (required)
234
+ :type variables: str
235
+ :param _request_timeout: timeout setting for this request. If one
236
+ number provided, it will be total request
237
+ timeout. It can also be a pair (tuple) of
238
+ (connection, read) timeouts.
239
+ :type _request_timeout: int, tuple(int, int), optional
240
+ :param _request_auth: set to override the auth_settings for an a single
241
+ request; this effectively ignores the
242
+ authentication in the spec for a single request.
243
+ :type _request_auth: dict, optional
244
+ :param _content_type: force content-type for the request.
245
+ :type _content_type: str, Optional
246
+ :param _headers: set to override the headers for a single
247
+ request; this effectively ignores the headers
248
+ in the spec for a single request.
249
+ :type _headers: dict, optional
250
+ :param _host_index: set to override the host_index for a single
251
+ request; this effectively ignores the host_index
252
+ in the spec for a single request.
253
+ :type _host_index: int, optional
254
+ :return: Returns the result object.
255
+ """ # noqa: E501
256
+
257
+ _param = self._get_bookmark_search_timeline_serialize(
258
+ path_query_id=path_query_id,
259
+ features=features,
260
+ variables=variables,
261
+ _request_auth=_request_auth,
262
+ _content_type=_content_type,
263
+ _headers=_headers,
264
+ _host_index=_host_index
265
+ )
266
+
267
+ _response_types_map: Dict[str, Optional[str]] = {
268
+ '200': "BookmarkSearchTimelineResponse",
269
+ }
270
+ response_data = self.api_client.call_api(
271
+ *_param,
272
+ _request_timeout=_request_timeout
273
+ )
274
+ return response_data.response
275
+
276
+
277
+ def _get_bookmark_search_timeline_serialize(
278
+ self,
279
+ path_query_id,
280
+ features,
281
+ variables,
282
+ _request_auth,
283
+ _content_type,
284
+ _headers,
285
+ _host_index,
286
+ ) -> RequestSerialized:
287
+
288
+ _host = None
289
+
290
+ _collection_formats: Dict[str, str] = {
291
+ }
292
+
293
+ _path_params: Dict[str, str] = {}
294
+ _query_params: List[Tuple[str, str]] = []
295
+ _header_params: Dict[str, Optional[str]] = _headers or {}
296
+ _form_params: List[Tuple[str, str]] = []
297
+ _files: Dict[
298
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
299
+ ] = {}
300
+ _body_params: Optional[bytes] = None
301
+
302
+ # process the path parameters
303
+ if path_query_id is not None:
304
+ _path_params['pathQueryId'] = path_query_id
305
+ # process the query parameters
306
+ if features is not None:
307
+
308
+ _query_params.append(('features', features))
309
+
310
+ if variables is not None:
311
+
312
+ _query_params.append(('variables', variables))
313
+
314
+ # process the header parameters
315
+ # process the form parameters
316
+ # process the body parameter
317
+
318
+
319
+ # set the HTTP header `Accept`
320
+ if 'Accept' not in _header_params:
321
+ _header_params['Accept'] = self.api_client.select_header_accept(
322
+ [
323
+ 'application/json'
324
+ ]
325
+ )
326
+
327
+
328
+ # authentication setting
329
+ _auth_settings: List[str] = [
330
+ 'Accept',
331
+ 'ClientLanguage',
332
+ 'Priority',
333
+ 'Referer',
334
+ 'SecFetchDest',
335
+ 'SecChUaPlatform',
336
+ 'SecFetchMode',
337
+ 'CsrfToken',
338
+ 'ClientUuid',
339
+ 'BearerAuth',
340
+ 'GuestToken',
341
+ 'SecChUa',
342
+ 'CookieGt0',
343
+ 'ClientTransactionId',
344
+ 'ActiveUser',
345
+ 'CookieCt0',
346
+ 'UserAgent',
347
+ 'AcceptLanguage',
348
+ 'SecFetchSite',
349
+ 'AuthType',
350
+ 'CookieAuthToken',
351
+ 'SecChUaMobile',
352
+ 'AcceptEncoding'
353
+ ]
354
+
355
+ return self.api_client.param_serialize(
356
+ method='GET',
357
+ resource_path='/graphql/{pathQueryId}/BookmarkSearchTimeline',
358
+ path_params=_path_params,
359
+ query_params=_query_params,
360
+ header_params=_header_params,
361
+ body=_body_params,
362
+ post_params=_form_params,
363
+ files=_files,
364
+ auth_settings=_auth_settings,
365
+ collection_formats=_collection_formats,
366
+ _host=_host,
367
+ _request_auth=_request_auth
368
+ )
369
+
370
+
371
+
372
+
54
373
  @validate_call
55
374
  def get_bookmarks(
56
375
  self,
@@ -69,7 +388,82 @@ class TweetApi:
69
388
  _content_type: Optional[StrictStr] = None,
70
389
  _headers: Optional[Dict[StrictStr, Any]] = None,
71
390
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
72
- ) -> BookmarksResponse:
391
+ ) -> BookmarksResponse:
392
+ """get_bookmarks
393
+
394
+ get bookmarks
395
+
396
+ :param path_query_id: (required)
397
+ :type path_query_id: str
398
+ :param variables: (required)
399
+ :type variables: str
400
+ :param features: (required)
401
+ :type features: str
402
+ :param _request_timeout: timeout setting for this request. If one
403
+ number provided, it will be total request
404
+ timeout. It can also be a pair (tuple) of
405
+ (connection, read) timeouts.
406
+ :type _request_timeout: int, tuple(int, int), optional
407
+ :param _request_auth: set to override the auth_settings for an a single
408
+ request; this effectively ignores the
409
+ authentication in the spec for a single request.
410
+ :type _request_auth: dict, optional
411
+ :param _content_type: force content-type for the request.
412
+ :type _content_type: str, Optional
413
+ :param _headers: set to override the headers for a single
414
+ request; this effectively ignores the headers
415
+ in the spec for a single request.
416
+ :type _headers: dict, optional
417
+ :param _host_index: set to override the host_index for a single
418
+ request; this effectively ignores the host_index
419
+ in the spec for a single request.
420
+ :type _host_index: int, optional
421
+ :return: Returns the result object.
422
+ """ # noqa: E501
423
+
424
+ _param = self._get_bookmarks_serialize(
425
+ path_query_id=path_query_id,
426
+ variables=variables,
427
+ features=features,
428
+ _request_auth=_request_auth,
429
+ _content_type=_content_type,
430
+ _headers=_headers,
431
+ _host_index=_host_index
432
+ )
433
+
434
+ _response_types_map: Dict[str, Optional[str]] = {
435
+ '200': "BookmarksResponse",
436
+ }
437
+ response_data = self.api_client.call_api(
438
+ *_param,
439
+ _request_timeout=_request_timeout
440
+ )
441
+ response_data.read()
442
+ return self.api_client.response_deserialize(
443
+ response_data=response_data,
444
+ response_types_map=_response_types_map,
445
+ ).data
446
+
447
+
448
+ @validate_call
449
+ def get_bookmarks_with_http_info(
450
+ self,
451
+ path_query_id: StrictStr,
452
+ variables: StrictStr,
453
+ features: StrictStr,
454
+ _request_timeout: Union[
455
+ None,
456
+ Annotated[StrictFloat, Field(gt=0)],
457
+ Tuple[
458
+ Annotated[StrictFloat, Field(gt=0)],
459
+ Annotated[StrictFloat, Field(gt=0)]
460
+ ]
461
+ ] = None,
462
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
463
+ _content_type: Optional[StrictStr] = None,
464
+ _headers: Optional[Dict[StrictStr, Any]] = None,
465
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
466
+ ) -> ApiResponse[BookmarksResponse]:
73
467
  """get_bookmarks
74
468
 
75
469
  get bookmarks
@@ -123,11 +517,11 @@ class TweetApi:
123
517
  return self.api_client.response_deserialize(
124
518
  response_data=response_data,
125
519
  response_types_map=_response_types_map,
126
- ).data
520
+ )
127
521
 
128
522
 
129
523
  @validate_call
130
- def get_bookmarks_with_http_info(
524
+ def get_bookmarks_without_preload_content(
131
525
  self,
132
526
  path_query_id: StrictStr,
133
527
  variables: StrictStr,
@@ -144,7 +538,7 @@ class TweetApi:
144
538
  _content_type: Optional[StrictStr] = None,
145
539
  _headers: Optional[Dict[StrictStr, Any]] = None,
146
540
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
147
- ) -> ApiResponse[BookmarksResponse]:
541
+ ) -> RESTResponseType:
148
542
  """get_bookmarks
149
543
 
150
544
  get bookmarks
@@ -194,6 +588,248 @@ class TweetApi:
194
588
  *_param,
195
589
  _request_timeout=_request_timeout
196
590
  )
591
+ return response_data.response
592
+
593
+
594
+ def _get_bookmarks_serialize(
595
+ self,
596
+ path_query_id,
597
+ variables,
598
+ features,
599
+ _request_auth,
600
+ _content_type,
601
+ _headers,
602
+ _host_index,
603
+ ) -> RequestSerialized:
604
+
605
+ _host = None
606
+
607
+ _collection_formats: Dict[str, str] = {
608
+ }
609
+
610
+ _path_params: Dict[str, str] = {}
611
+ _query_params: List[Tuple[str, str]] = []
612
+ _header_params: Dict[str, Optional[str]] = _headers or {}
613
+ _form_params: List[Tuple[str, str]] = []
614
+ _files: Dict[
615
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
616
+ ] = {}
617
+ _body_params: Optional[bytes] = None
618
+
619
+ # process the path parameters
620
+ if path_query_id is not None:
621
+ _path_params['pathQueryId'] = path_query_id
622
+ # process the query parameters
623
+ if variables is not None:
624
+
625
+ _query_params.append(('variables', variables))
626
+
627
+ if features is not None:
628
+
629
+ _query_params.append(('features', features))
630
+
631
+ # process the header parameters
632
+ # process the form parameters
633
+ # process the body parameter
634
+
635
+
636
+ # set the HTTP header `Accept`
637
+ if 'Accept' not in _header_params:
638
+ _header_params['Accept'] = self.api_client.select_header_accept(
639
+ [
640
+ 'application/json'
641
+ ]
642
+ )
643
+
644
+
645
+ # authentication setting
646
+ _auth_settings: List[str] = [
647
+ 'Accept',
648
+ 'ClientLanguage',
649
+ 'Priority',
650
+ 'Referer',
651
+ 'SecFetchDest',
652
+ 'SecChUaPlatform',
653
+ 'SecFetchMode',
654
+ 'CsrfToken',
655
+ 'ClientUuid',
656
+ 'BearerAuth',
657
+ 'GuestToken',
658
+ 'SecChUa',
659
+ 'CookieGt0',
660
+ 'ClientTransactionId',
661
+ 'ActiveUser',
662
+ 'CookieCt0',
663
+ 'UserAgent',
664
+ 'AcceptLanguage',
665
+ 'SecFetchSite',
666
+ 'AuthType',
667
+ 'CookieAuthToken',
668
+ 'SecChUaMobile',
669
+ 'AcceptEncoding'
670
+ ]
671
+
672
+ return self.api_client.param_serialize(
673
+ method='GET',
674
+ resource_path='/graphql/{pathQueryId}/Bookmarks',
675
+ path_params=_path_params,
676
+ query_params=_query_params,
677
+ header_params=_header_params,
678
+ body=_body_params,
679
+ post_params=_form_params,
680
+ files=_files,
681
+ auth_settings=_auth_settings,
682
+ collection_formats=_collection_formats,
683
+ _host=_host,
684
+ _request_auth=_request_auth
685
+ )
686
+
687
+
688
+
689
+
690
+ @validate_call
691
+ def get_community_about_timeline(
692
+ self,
693
+ path_query_id: StrictStr,
694
+ variables: StrictStr,
695
+ features: StrictStr,
696
+ _request_timeout: Union[
697
+ None,
698
+ Annotated[StrictFloat, Field(gt=0)],
699
+ Tuple[
700
+ Annotated[StrictFloat, Field(gt=0)],
701
+ Annotated[StrictFloat, Field(gt=0)]
702
+ ]
703
+ ] = None,
704
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
705
+ _content_type: Optional[StrictStr] = None,
706
+ _headers: Optional[Dict[StrictStr, Any]] = None,
707
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
708
+ ) -> CommunityAboutTimelineResponse:
709
+ """get_community_about_timeline
710
+
711
+ get about of community
712
+
713
+ :param path_query_id: (required)
714
+ :type path_query_id: str
715
+ :param variables: (required)
716
+ :type variables: str
717
+ :param features: (required)
718
+ :type features: str
719
+ :param _request_timeout: timeout setting for this request. If one
720
+ number provided, it will be total request
721
+ timeout. It can also be a pair (tuple) of
722
+ (connection, read) timeouts.
723
+ :type _request_timeout: int, tuple(int, int), optional
724
+ :param _request_auth: set to override the auth_settings for an a single
725
+ request; this effectively ignores the
726
+ authentication in the spec for a single request.
727
+ :type _request_auth: dict, optional
728
+ :param _content_type: force content-type for the request.
729
+ :type _content_type: str, Optional
730
+ :param _headers: set to override the headers for a single
731
+ request; this effectively ignores the headers
732
+ in the spec for a single request.
733
+ :type _headers: dict, optional
734
+ :param _host_index: set to override the host_index for a single
735
+ request; this effectively ignores the host_index
736
+ in the spec for a single request.
737
+ :type _host_index: int, optional
738
+ :return: Returns the result object.
739
+ """ # noqa: E501
740
+
741
+ _param = self._get_community_about_timeline_serialize(
742
+ path_query_id=path_query_id,
743
+ variables=variables,
744
+ features=features,
745
+ _request_auth=_request_auth,
746
+ _content_type=_content_type,
747
+ _headers=_headers,
748
+ _host_index=_host_index
749
+ )
750
+
751
+ _response_types_map: Dict[str, Optional[str]] = {
752
+ '200': "CommunityAboutTimelineResponse",
753
+ }
754
+ response_data = self.api_client.call_api(
755
+ *_param,
756
+ _request_timeout=_request_timeout
757
+ )
758
+ response_data.read()
759
+ return self.api_client.response_deserialize(
760
+ response_data=response_data,
761
+ response_types_map=_response_types_map,
762
+ ).data
763
+
764
+
765
+ @validate_call
766
+ def get_community_about_timeline_with_http_info(
767
+ self,
768
+ path_query_id: StrictStr,
769
+ variables: StrictStr,
770
+ features: StrictStr,
771
+ _request_timeout: Union[
772
+ None,
773
+ Annotated[StrictFloat, Field(gt=0)],
774
+ Tuple[
775
+ Annotated[StrictFloat, Field(gt=0)],
776
+ Annotated[StrictFloat, Field(gt=0)]
777
+ ]
778
+ ] = None,
779
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
780
+ _content_type: Optional[StrictStr] = None,
781
+ _headers: Optional[Dict[StrictStr, Any]] = None,
782
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
783
+ ) -> ApiResponse[CommunityAboutTimelineResponse]:
784
+ """get_community_about_timeline
785
+
786
+ get about of community
787
+
788
+ :param path_query_id: (required)
789
+ :type path_query_id: str
790
+ :param variables: (required)
791
+ :type variables: str
792
+ :param features: (required)
793
+ :type features: str
794
+ :param _request_timeout: timeout setting for this request. If one
795
+ number provided, it will be total request
796
+ timeout. It can also be a pair (tuple) of
797
+ (connection, read) timeouts.
798
+ :type _request_timeout: int, tuple(int, int), optional
799
+ :param _request_auth: set to override the auth_settings for an a single
800
+ request; this effectively ignores the
801
+ authentication in the spec for a single request.
802
+ :type _request_auth: dict, optional
803
+ :param _content_type: force content-type for the request.
804
+ :type _content_type: str, Optional
805
+ :param _headers: set to override the headers for a single
806
+ request; this effectively ignores the headers
807
+ in the spec for a single request.
808
+ :type _headers: dict, optional
809
+ :param _host_index: set to override the host_index for a single
810
+ request; this effectively ignores the host_index
811
+ in the spec for a single request.
812
+ :type _host_index: int, optional
813
+ :return: Returns the result object.
814
+ """ # noqa: E501
815
+
816
+ _param = self._get_community_about_timeline_serialize(
817
+ path_query_id=path_query_id,
818
+ variables=variables,
819
+ features=features,
820
+ _request_auth=_request_auth,
821
+ _content_type=_content_type,
822
+ _headers=_headers,
823
+ _host_index=_host_index
824
+ )
825
+
826
+ _response_types_map: Dict[str, Optional[str]] = {
827
+ '200': "CommunityAboutTimelineResponse",
828
+ }
829
+ response_data = self.api_client.call_api(
830
+ *_param,
831
+ _request_timeout=_request_timeout
832
+ )
197
833
  response_data.read()
198
834
  return self.api_client.response_deserialize(
199
835
  response_data=response_data,
@@ -202,7 +838,7 @@ class TweetApi:
202
838
 
203
839
 
204
840
  @validate_call
205
- def get_bookmarks_without_preload_content(
841
+ def get_community_about_timeline_without_preload_content(
206
842
  self,
207
843
  path_query_id: StrictStr,
208
844
  variables: StrictStr,
@@ -220,9 +856,9 @@ class TweetApi:
220
856
  _headers: Optional[Dict[StrictStr, Any]] = None,
221
857
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
222
858
  ) -> RESTResponseType:
223
- """get_bookmarks
859
+ """get_community_about_timeline
224
860
 
225
- get bookmarks
861
+ get about of community
226
862
 
227
863
  :param path_query_id: (required)
228
864
  :type path_query_id: str
@@ -252,7 +888,7 @@ class TweetApi:
252
888
  :return: Returns the result object.
253
889
  """ # noqa: E501
254
890
 
255
- _param = self._get_bookmarks_serialize(
891
+ _param = self._get_community_about_timeline_serialize(
256
892
  path_query_id=path_query_id,
257
893
  variables=variables,
258
894
  features=features,
@@ -263,7 +899,7 @@ class TweetApi:
263
899
  )
264
900
 
265
901
  _response_types_map: Dict[str, Optional[str]] = {
266
- '200': "BookmarksResponse",
902
+ '200': "CommunityAboutTimelineResponse",
267
903
  }
268
904
  response_data = self.api_client.call_api(
269
905
  *_param,
@@ -272,7 +908,7 @@ class TweetApi:
272
908
  return response_data.response
273
909
 
274
910
 
275
- def _get_bookmarks_serialize(
911
+ def _get_community_about_timeline_serialize(
276
912
  self,
277
913
  path_query_id,
278
914
  variables,
@@ -352,7 +988,7 @@ class TweetApi:
352
988
 
353
989
  return self.api_client.param_serialize(
354
990
  method='GET',
355
- resource_path='/graphql/{pathQueryId}/Bookmarks',
991
+ resource_path='/graphql/{pathQueryId}/CommunityAboutTimeline',
356
992
  path_params=_path_params,
357
993
  query_params=_query_params,
358
994
  header_params=_header_params,
@@ -369,7 +1005,7 @@ class TweetApi:
369
1005
 
370
1006
 
371
1007
  @validate_call
372
- def get_community_about_timeline(
1008
+ def get_community_discovery_timeline(
373
1009
  self,
374
1010
  path_query_id: StrictStr,
375
1011
  variables: StrictStr,
@@ -386,10 +1022,10 @@ class TweetApi:
386
1022
  _content_type: Optional[StrictStr] = None,
387
1023
  _headers: Optional[Dict[StrictStr, Any]] = None,
388
1024
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
389
- ) -> CommunityAboutTimelineResponse:
390
- """get_community_about_timeline
1025
+ ) -> CommunityDiscoveryTimelineResponse:
1026
+ """get_community_discovery_timeline
391
1027
 
392
- get about of community
1028
+ get the communities discovery timeline
393
1029
 
394
1030
  :param path_query_id: (required)
395
1031
  :type path_query_id: str
@@ -419,7 +1055,7 @@ class TweetApi:
419
1055
  :return: Returns the result object.
420
1056
  """ # noqa: E501
421
1057
 
422
- _param = self._get_community_about_timeline_serialize(
1058
+ _param = self._get_community_discovery_timeline_serialize(
423
1059
  path_query_id=path_query_id,
424
1060
  variables=variables,
425
1061
  features=features,
@@ -430,7 +1066,7 @@ class TweetApi:
430
1066
  )
431
1067
 
432
1068
  _response_types_map: Dict[str, Optional[str]] = {
433
- '200': "CommunityAboutTimelineResponse",
1069
+ '200': "CommunityDiscoveryTimelineResponse",
434
1070
  }
435
1071
  response_data = self.api_client.call_api(
436
1072
  *_param,
@@ -444,7 +1080,7 @@ class TweetApi:
444
1080
 
445
1081
 
446
1082
  @validate_call
447
- def get_community_about_timeline_with_http_info(
1083
+ def get_community_discovery_timeline_with_http_info(
448
1084
  self,
449
1085
  path_query_id: StrictStr,
450
1086
  variables: StrictStr,
@@ -461,10 +1097,10 @@ class TweetApi:
461
1097
  _content_type: Optional[StrictStr] = None,
462
1098
  _headers: Optional[Dict[StrictStr, Any]] = None,
463
1099
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
464
- ) -> ApiResponse[CommunityAboutTimelineResponse]:
465
- """get_community_about_timeline
1100
+ ) -> ApiResponse[CommunityDiscoveryTimelineResponse]:
1101
+ """get_community_discovery_timeline
466
1102
 
467
- get about of community
1103
+ get the communities discovery timeline
468
1104
 
469
1105
  :param path_query_id: (required)
470
1106
  :type path_query_id: str
@@ -494,7 +1130,7 @@ class TweetApi:
494
1130
  :return: Returns the result object.
495
1131
  """ # noqa: E501
496
1132
 
497
- _param = self._get_community_about_timeline_serialize(
1133
+ _param = self._get_community_discovery_timeline_serialize(
498
1134
  path_query_id=path_query_id,
499
1135
  variables=variables,
500
1136
  features=features,
@@ -505,7 +1141,7 @@ class TweetApi:
505
1141
  )
506
1142
 
507
1143
  _response_types_map: Dict[str, Optional[str]] = {
508
- '200': "CommunityAboutTimelineResponse",
1144
+ '200': "CommunityDiscoveryTimelineResponse",
509
1145
  }
510
1146
  response_data = self.api_client.call_api(
511
1147
  *_param,
@@ -519,7 +1155,7 @@ class TweetApi:
519
1155
 
520
1156
 
521
1157
  @validate_call
522
- def get_community_about_timeline_without_preload_content(
1158
+ def get_community_discovery_timeline_without_preload_content(
523
1159
  self,
524
1160
  path_query_id: StrictStr,
525
1161
  variables: StrictStr,
@@ -537,9 +1173,9 @@ class TweetApi:
537
1173
  _headers: Optional[Dict[StrictStr, Any]] = None,
538
1174
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
539
1175
  ) -> RESTResponseType:
540
- """get_community_about_timeline
1176
+ """get_community_discovery_timeline
541
1177
 
542
- get about of community
1178
+ get the communities discovery timeline
543
1179
 
544
1180
  :param path_query_id: (required)
545
1181
  :type path_query_id: str
@@ -569,7 +1205,7 @@ class TweetApi:
569
1205
  :return: Returns the result object.
570
1206
  """ # noqa: E501
571
1207
 
572
- _param = self._get_community_about_timeline_serialize(
1208
+ _param = self._get_community_discovery_timeline_serialize(
573
1209
  path_query_id=path_query_id,
574
1210
  variables=variables,
575
1211
  features=features,
@@ -580,7 +1216,7 @@ class TweetApi:
580
1216
  )
581
1217
 
582
1218
  _response_types_map: Dict[str, Optional[str]] = {
583
- '200': "CommunityAboutTimelineResponse",
1219
+ '200': "CommunityDiscoveryTimelineResponse",
584
1220
  }
585
1221
  response_data = self.api_client.call_api(
586
1222
  *_param,
@@ -589,7 +1225,7 @@ class TweetApi:
589
1225
  return response_data.response
590
1226
 
591
1227
 
592
- def _get_community_about_timeline_serialize(
1228
+ def _get_community_discovery_timeline_serialize(
593
1229
  self,
594
1230
  path_query_id,
595
1231
  variables,
@@ -669,7 +1305,7 @@ class TweetApi:
669
1305
 
670
1306
  return self.api_client.param_serialize(
671
1307
  method='GET',
672
- resource_path='/graphql/{pathQueryId}/CommunityAboutTimeline',
1308
+ resource_path='/graphql/{pathQueryId}/CommunityDiscoveryTimeline',
673
1309
  path_params=_path_params,
674
1310
  query_params=_query_params,
675
1311
  header_params=_header_params,
@@ -686,7 +1322,7 @@ class TweetApi:
686
1322
 
687
1323
 
688
1324
  @validate_call
689
- def get_community_discovery_timeline(
1325
+ def get_community_media_timeline(
690
1326
  self,
691
1327
  path_query_id: StrictStr,
692
1328
  variables: StrictStr,
@@ -703,10 +1339,10 @@ class TweetApi:
703
1339
  _content_type: Optional[StrictStr] = None,
704
1340
  _headers: Optional[Dict[StrictStr, Any]] = None,
705
1341
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
706
- ) -> CommunityDiscoveryTimelineResponse:
707
- """get_community_discovery_timeline
1342
+ ) -> CommunityMediaTimelineResponse:
1343
+ """get_community_media_timeline
708
1344
 
709
- get the communities discovery timeline
1345
+ get media list of community
710
1346
 
711
1347
  :param path_query_id: (required)
712
1348
  :type path_query_id: str
@@ -736,7 +1372,7 @@ class TweetApi:
736
1372
  :return: Returns the result object.
737
1373
  """ # noqa: E501
738
1374
 
739
- _param = self._get_community_discovery_timeline_serialize(
1375
+ _param = self._get_community_media_timeline_serialize(
740
1376
  path_query_id=path_query_id,
741
1377
  variables=variables,
742
1378
  features=features,
@@ -747,7 +1383,7 @@ class TweetApi:
747
1383
  )
748
1384
 
749
1385
  _response_types_map: Dict[str, Optional[str]] = {
750
- '200': "CommunityDiscoveryTimelineResponse",
1386
+ '200': "CommunityMediaTimelineResponse",
751
1387
  }
752
1388
  response_data = self.api_client.call_api(
753
1389
  *_param,
@@ -761,7 +1397,7 @@ class TweetApi:
761
1397
 
762
1398
 
763
1399
  @validate_call
764
- def get_community_discovery_timeline_with_http_info(
1400
+ def get_community_media_timeline_with_http_info(
765
1401
  self,
766
1402
  path_query_id: StrictStr,
767
1403
  variables: StrictStr,
@@ -778,10 +1414,10 @@ class TweetApi:
778
1414
  _content_type: Optional[StrictStr] = None,
779
1415
  _headers: Optional[Dict[StrictStr, Any]] = None,
780
1416
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
781
- ) -> ApiResponse[CommunityDiscoveryTimelineResponse]:
782
- """get_community_discovery_timeline
1417
+ ) -> ApiResponse[CommunityMediaTimelineResponse]:
1418
+ """get_community_media_timeline
783
1419
 
784
- get the communities discovery timeline
1420
+ get media list of community
785
1421
 
786
1422
  :param path_query_id: (required)
787
1423
  :type path_query_id: str
@@ -811,7 +1447,7 @@ class TweetApi:
811
1447
  :return: Returns the result object.
812
1448
  """ # noqa: E501
813
1449
 
814
- _param = self._get_community_discovery_timeline_serialize(
1450
+ _param = self._get_community_media_timeline_serialize(
815
1451
  path_query_id=path_query_id,
816
1452
  variables=variables,
817
1453
  features=features,
@@ -822,7 +1458,7 @@ class TweetApi:
822
1458
  )
823
1459
 
824
1460
  _response_types_map: Dict[str, Optional[str]] = {
825
- '200': "CommunityDiscoveryTimelineResponse",
1461
+ '200': "CommunityMediaTimelineResponse",
826
1462
  }
827
1463
  response_data = self.api_client.call_api(
828
1464
  *_param,
@@ -836,7 +1472,7 @@ class TweetApi:
836
1472
 
837
1473
 
838
1474
  @validate_call
839
- def get_community_discovery_timeline_without_preload_content(
1475
+ def get_community_media_timeline_without_preload_content(
840
1476
  self,
841
1477
  path_query_id: StrictStr,
842
1478
  variables: StrictStr,
@@ -854,9 +1490,9 @@ class TweetApi:
854
1490
  _headers: Optional[Dict[StrictStr, Any]] = None,
855
1491
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
856
1492
  ) -> RESTResponseType:
857
- """get_community_discovery_timeline
1493
+ """get_community_media_timeline
858
1494
 
859
- get the communities discovery timeline
1495
+ get media list of community
860
1496
 
861
1497
  :param path_query_id: (required)
862
1498
  :type path_query_id: str
@@ -886,7 +1522,7 @@ class TweetApi:
886
1522
  :return: Returns the result object.
887
1523
  """ # noqa: E501
888
1524
 
889
- _param = self._get_community_discovery_timeline_serialize(
1525
+ _param = self._get_community_media_timeline_serialize(
890
1526
  path_query_id=path_query_id,
891
1527
  variables=variables,
892
1528
  features=features,
@@ -897,7 +1533,7 @@ class TweetApi:
897
1533
  )
898
1534
 
899
1535
  _response_types_map: Dict[str, Optional[str]] = {
900
- '200': "CommunityDiscoveryTimelineResponse",
1536
+ '200': "CommunityMediaTimelineResponse",
901
1537
  }
902
1538
  response_data = self.api_client.call_api(
903
1539
  *_param,
@@ -906,7 +1542,7 @@ class TweetApi:
906
1542
  return response_data.response
907
1543
 
908
1544
 
909
- def _get_community_discovery_timeline_serialize(
1545
+ def _get_community_media_timeline_serialize(
910
1546
  self,
911
1547
  path_query_id,
912
1548
  variables,
@@ -986,7 +1622,7 @@ class TweetApi:
986
1622
 
987
1623
  return self.api_client.param_serialize(
988
1624
  method='GET',
989
- resource_path='/graphql/{pathQueryId}/CommunityDiscoveryTimeline',
1625
+ resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
990
1626
  path_params=_path_params,
991
1627
  query_params=_query_params,
992
1628
  header_params=_header_params,
@@ -1003,7 +1639,7 @@ class TweetApi:
1003
1639
 
1004
1640
 
1005
1641
  @validate_call
1006
- def get_community_media_timeline(
1642
+ def get_community_tweets_timeline(
1007
1643
  self,
1008
1644
  path_query_id: StrictStr,
1009
1645
  variables: StrictStr,
@@ -1020,10 +1656,10 @@ class TweetApi:
1020
1656
  _content_type: Optional[StrictStr] = None,
1021
1657
  _headers: Optional[Dict[StrictStr, Any]] = None,
1022
1658
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1023
- ) -> CommunityMediaTimelineResponse:
1024
- """get_community_media_timeline
1659
+ ) -> CommunityTweetsTimelineResponse:
1660
+ """get_community_tweets_timeline
1025
1661
 
1026
- get media list of community
1662
+ get tweet list of community. rankingMode:[Recency, Relevance]
1027
1663
 
1028
1664
  :param path_query_id: (required)
1029
1665
  :type path_query_id: str
@@ -1053,7 +1689,7 @@ class TweetApi:
1053
1689
  :return: Returns the result object.
1054
1690
  """ # noqa: E501
1055
1691
 
1056
- _param = self._get_community_media_timeline_serialize(
1692
+ _param = self._get_community_tweets_timeline_serialize(
1057
1693
  path_query_id=path_query_id,
1058
1694
  variables=variables,
1059
1695
  features=features,
@@ -1064,7 +1700,7 @@ class TweetApi:
1064
1700
  )
1065
1701
 
1066
1702
  _response_types_map: Dict[str, Optional[str]] = {
1067
- '200': "CommunityMediaTimelineResponse",
1703
+ '200': "CommunityTweetsTimelineResponse",
1068
1704
  }
1069
1705
  response_data = self.api_client.call_api(
1070
1706
  *_param,
@@ -1078,7 +1714,7 @@ class TweetApi:
1078
1714
 
1079
1715
 
1080
1716
  @validate_call
1081
- def get_community_media_timeline_with_http_info(
1717
+ def get_community_tweets_timeline_with_http_info(
1082
1718
  self,
1083
1719
  path_query_id: StrictStr,
1084
1720
  variables: StrictStr,
@@ -1095,10 +1731,10 @@ class TweetApi:
1095
1731
  _content_type: Optional[StrictStr] = None,
1096
1732
  _headers: Optional[Dict[StrictStr, Any]] = None,
1097
1733
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1098
- ) -> ApiResponse[CommunityMediaTimelineResponse]:
1099
- """get_community_media_timeline
1734
+ ) -> ApiResponse[CommunityTweetsTimelineResponse]:
1735
+ """get_community_tweets_timeline
1100
1736
 
1101
- get media list of community
1737
+ get tweet list of community. rankingMode:[Recency, Relevance]
1102
1738
 
1103
1739
  :param path_query_id: (required)
1104
1740
  :type path_query_id: str
@@ -1128,7 +1764,7 @@ class TweetApi:
1128
1764
  :return: Returns the result object.
1129
1765
  """ # noqa: E501
1130
1766
 
1131
- _param = self._get_community_media_timeline_serialize(
1767
+ _param = self._get_community_tweets_timeline_serialize(
1132
1768
  path_query_id=path_query_id,
1133
1769
  variables=variables,
1134
1770
  features=features,
@@ -1139,7 +1775,7 @@ class TweetApi:
1139
1775
  )
1140
1776
 
1141
1777
  _response_types_map: Dict[str, Optional[str]] = {
1142
- '200': "CommunityMediaTimelineResponse",
1778
+ '200': "CommunityTweetsTimelineResponse",
1143
1779
  }
1144
1780
  response_data = self.api_client.call_api(
1145
1781
  *_param,
@@ -1153,7 +1789,7 @@ class TweetApi:
1153
1789
 
1154
1790
 
1155
1791
  @validate_call
1156
- def get_community_media_timeline_without_preload_content(
1792
+ def get_community_tweets_timeline_without_preload_content(
1157
1793
  self,
1158
1794
  path_query_id: StrictStr,
1159
1795
  variables: StrictStr,
@@ -1171,9 +1807,9 @@ class TweetApi:
1171
1807
  _headers: Optional[Dict[StrictStr, Any]] = None,
1172
1808
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1173
1809
  ) -> RESTResponseType:
1174
- """get_community_media_timeline
1810
+ """get_community_tweets_timeline
1175
1811
 
1176
- get media list of community
1812
+ get tweet list of community. rankingMode:[Recency, Relevance]
1177
1813
 
1178
1814
  :param path_query_id: (required)
1179
1815
  :type path_query_id: str
@@ -1203,7 +1839,7 @@ class TweetApi:
1203
1839
  :return: Returns the result object.
1204
1840
  """ # noqa: E501
1205
1841
 
1206
- _param = self._get_community_media_timeline_serialize(
1842
+ _param = self._get_community_tweets_timeline_serialize(
1207
1843
  path_query_id=path_query_id,
1208
1844
  variables=variables,
1209
1845
  features=features,
@@ -1214,7 +1850,7 @@ class TweetApi:
1214
1850
  )
1215
1851
 
1216
1852
  _response_types_map: Dict[str, Optional[str]] = {
1217
- '200': "CommunityMediaTimelineResponse",
1853
+ '200': "CommunityTweetsTimelineResponse",
1218
1854
  }
1219
1855
  response_data = self.api_client.call_api(
1220
1856
  *_param,
@@ -1223,7 +1859,7 @@ class TweetApi:
1223
1859
  return response_data.response
1224
1860
 
1225
1861
 
1226
- def _get_community_media_timeline_serialize(
1862
+ def _get_community_tweets_timeline_serialize(
1227
1863
  self,
1228
1864
  path_query_id,
1229
1865
  variables,
@@ -1303,7 +1939,7 @@ class TweetApi:
1303
1939
 
1304
1940
  return self.api_client.param_serialize(
1305
1941
  method='GET',
1306
- resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
1942
+ resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
1307
1943
  path_params=_path_params,
1308
1944
  query_params=_query_params,
1309
1945
  header_params=_header_params,
@@ -1320,7 +1956,7 @@ class TweetApi:
1320
1956
 
1321
1957
 
1322
1958
  @validate_call
1323
- def get_community_tweets_timeline(
1959
+ def get_connect_tab_timeline(
1324
1960
  self,
1325
1961
  path_query_id: StrictStr,
1326
1962
  variables: StrictStr,
@@ -1337,10 +1973,10 @@ class TweetApi:
1337
1973
  _content_type: Optional[StrictStr] = None,
1338
1974
  _headers: Optional[Dict[StrictStr, Any]] = None,
1339
1975
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1340
- ) -> CommunityTweetsTimelineResponse:
1341
- """get_community_tweets_timeline
1976
+ ) -> ConnectTabTimelineResponse:
1977
+ """get_connect_tab_timeline
1342
1978
 
1343
- get tweet list of community. rankingMode:[Recency, Relevance]
1979
+ get the Connect tab (who to follow) timeline
1344
1980
 
1345
1981
  :param path_query_id: (required)
1346
1982
  :type path_query_id: str
@@ -1370,7 +2006,7 @@ class TweetApi:
1370
2006
  :return: Returns the result object.
1371
2007
  """ # noqa: E501
1372
2008
 
1373
- _param = self._get_community_tweets_timeline_serialize(
2009
+ _param = self._get_connect_tab_timeline_serialize(
1374
2010
  path_query_id=path_query_id,
1375
2011
  variables=variables,
1376
2012
  features=features,
@@ -1381,7 +2017,7 @@ class TweetApi:
1381
2017
  )
1382
2018
 
1383
2019
  _response_types_map: Dict[str, Optional[str]] = {
1384
- '200': "CommunityTweetsTimelineResponse",
2020
+ '200': "ConnectTabTimelineResponse",
1385
2021
  }
1386
2022
  response_data = self.api_client.call_api(
1387
2023
  *_param,
@@ -1395,7 +2031,7 @@ class TweetApi:
1395
2031
 
1396
2032
 
1397
2033
  @validate_call
1398
- def get_community_tweets_timeline_with_http_info(
2034
+ def get_connect_tab_timeline_with_http_info(
1399
2035
  self,
1400
2036
  path_query_id: StrictStr,
1401
2037
  variables: StrictStr,
@@ -1412,10 +2048,10 @@ class TweetApi:
1412
2048
  _content_type: Optional[StrictStr] = None,
1413
2049
  _headers: Optional[Dict[StrictStr, Any]] = None,
1414
2050
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1415
- ) -> ApiResponse[CommunityTweetsTimelineResponse]:
1416
- """get_community_tweets_timeline
2051
+ ) -> ApiResponse[ConnectTabTimelineResponse]:
2052
+ """get_connect_tab_timeline
1417
2053
 
1418
- get tweet list of community. rankingMode:[Recency, Relevance]
2054
+ get the Connect tab (who to follow) timeline
1419
2055
 
1420
2056
  :param path_query_id: (required)
1421
2057
  :type path_query_id: str
@@ -1445,7 +2081,7 @@ class TweetApi:
1445
2081
  :return: Returns the result object.
1446
2082
  """ # noqa: E501
1447
2083
 
1448
- _param = self._get_community_tweets_timeline_serialize(
2084
+ _param = self._get_connect_tab_timeline_serialize(
1449
2085
  path_query_id=path_query_id,
1450
2086
  variables=variables,
1451
2087
  features=features,
@@ -1456,7 +2092,7 @@ class TweetApi:
1456
2092
  )
1457
2093
 
1458
2094
  _response_types_map: Dict[str, Optional[str]] = {
1459
- '200': "CommunityTweetsTimelineResponse",
2095
+ '200': "ConnectTabTimelineResponse",
1460
2096
  }
1461
2097
  response_data = self.api_client.call_api(
1462
2098
  *_param,
@@ -1470,7 +2106,7 @@ class TweetApi:
1470
2106
 
1471
2107
 
1472
2108
  @validate_call
1473
- def get_community_tweets_timeline_without_preload_content(
2109
+ def get_connect_tab_timeline_without_preload_content(
1474
2110
  self,
1475
2111
  path_query_id: StrictStr,
1476
2112
  variables: StrictStr,
@@ -1488,9 +2124,9 @@ class TweetApi:
1488
2124
  _headers: Optional[Dict[StrictStr, Any]] = None,
1489
2125
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1490
2126
  ) -> RESTResponseType:
1491
- """get_community_tweets_timeline
2127
+ """get_connect_tab_timeline
1492
2128
 
1493
- get tweet list of community. rankingMode:[Recency, Relevance]
2129
+ get the Connect tab (who to follow) timeline
1494
2130
 
1495
2131
  :param path_query_id: (required)
1496
2132
  :type path_query_id: str
@@ -1520,7 +2156,7 @@ class TweetApi:
1520
2156
  :return: Returns the result object.
1521
2157
  """ # noqa: E501
1522
2158
 
1523
- _param = self._get_community_tweets_timeline_serialize(
2159
+ _param = self._get_connect_tab_timeline_serialize(
1524
2160
  path_query_id=path_query_id,
1525
2161
  variables=variables,
1526
2162
  features=features,
@@ -1531,7 +2167,7 @@ class TweetApi:
1531
2167
  )
1532
2168
 
1533
2169
  _response_types_map: Dict[str, Optional[str]] = {
1534
- '200': "CommunityTweetsTimelineResponse",
2170
+ '200': "ConnectTabTimelineResponse",
1535
2171
  }
1536
2172
  response_data = self.api_client.call_api(
1537
2173
  *_param,
@@ -1540,7 +2176,7 @@ class TweetApi:
1540
2176
  return response_data.response
1541
2177
 
1542
2178
 
1543
- def _get_community_tweets_timeline_serialize(
2179
+ def _get_connect_tab_timeline_serialize(
1544
2180
  self,
1545
2181
  path_query_id,
1546
2182
  variables,
@@ -1620,7 +2256,7 @@ class TweetApi:
1620
2256
 
1621
2257
  return self.api_client.param_serialize(
1622
2258
  method='GET',
1623
- resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
2259
+ resource_path='/graphql/{pathQueryId}/ConnectTabTimeline',
1624
2260
  path_params=_path_params,
1625
2261
  query_params=_query_params,
1626
2262
  header_params=_header_params,
@@ -1637,7 +2273,7 @@ class TweetApi:
1637
2273
 
1638
2274
 
1639
2275
  @validate_call
1640
- def get_connect_tab_timeline(
2276
+ def get_explore_page(
1641
2277
  self,
1642
2278
  path_query_id: StrictStr,
1643
2279
  variables: StrictStr,
@@ -1654,10 +2290,10 @@ class TweetApi:
1654
2290
  _content_type: Optional[StrictStr] = None,
1655
2291
  _headers: Optional[Dict[StrictStr, Any]] = None,
1656
2292
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1657
- ) -> ConnectTabTimelineResponse:
1658
- """get_connect_tab_timeline
2293
+ ) -> ExplorePageResponse:
2294
+ """get_explore_page
1659
2295
 
1660
- get the Connect tab (who to follow) timeline
2296
+ get the explore page (segmented timelines)
1661
2297
 
1662
2298
  :param path_query_id: (required)
1663
2299
  :type path_query_id: str
@@ -1687,7 +2323,7 @@ class TweetApi:
1687
2323
  :return: Returns the result object.
1688
2324
  """ # noqa: E501
1689
2325
 
1690
- _param = self._get_connect_tab_timeline_serialize(
2326
+ _param = self._get_explore_page_serialize(
1691
2327
  path_query_id=path_query_id,
1692
2328
  variables=variables,
1693
2329
  features=features,
@@ -1698,7 +2334,7 @@ class TweetApi:
1698
2334
  )
1699
2335
 
1700
2336
  _response_types_map: Dict[str, Optional[str]] = {
1701
- '200': "ConnectTabTimelineResponse",
2337
+ '200': "ExplorePageResponse",
1702
2338
  }
1703
2339
  response_data = self.api_client.call_api(
1704
2340
  *_param,
@@ -1712,7 +2348,7 @@ class TweetApi:
1712
2348
 
1713
2349
 
1714
2350
  @validate_call
1715
- def get_connect_tab_timeline_with_http_info(
2351
+ def get_explore_page_with_http_info(
1716
2352
  self,
1717
2353
  path_query_id: StrictStr,
1718
2354
  variables: StrictStr,
@@ -1729,10 +2365,10 @@ class TweetApi:
1729
2365
  _content_type: Optional[StrictStr] = None,
1730
2366
  _headers: Optional[Dict[StrictStr, Any]] = None,
1731
2367
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1732
- ) -> ApiResponse[ConnectTabTimelineResponse]:
1733
- """get_connect_tab_timeline
2368
+ ) -> ApiResponse[ExplorePageResponse]:
2369
+ """get_explore_page
1734
2370
 
1735
- get the Connect tab (who to follow) timeline
2371
+ get the explore page (segmented timelines)
1736
2372
 
1737
2373
  :param path_query_id: (required)
1738
2374
  :type path_query_id: str
@@ -1762,7 +2398,7 @@ class TweetApi:
1762
2398
  :return: Returns the result object.
1763
2399
  """ # noqa: E501
1764
2400
 
1765
- _param = self._get_connect_tab_timeline_serialize(
2401
+ _param = self._get_explore_page_serialize(
1766
2402
  path_query_id=path_query_id,
1767
2403
  variables=variables,
1768
2404
  features=features,
@@ -1773,7 +2409,7 @@ class TweetApi:
1773
2409
  )
1774
2410
 
1775
2411
  _response_types_map: Dict[str, Optional[str]] = {
1776
- '200': "ConnectTabTimelineResponse",
2412
+ '200': "ExplorePageResponse",
1777
2413
  }
1778
2414
  response_data = self.api_client.call_api(
1779
2415
  *_param,
@@ -1787,7 +2423,7 @@ class TweetApi:
1787
2423
 
1788
2424
 
1789
2425
  @validate_call
1790
- def get_connect_tab_timeline_without_preload_content(
2426
+ def get_explore_page_without_preload_content(
1791
2427
  self,
1792
2428
  path_query_id: StrictStr,
1793
2429
  variables: StrictStr,
@@ -1805,9 +2441,9 @@ class TweetApi:
1805
2441
  _headers: Optional[Dict[StrictStr, Any]] = None,
1806
2442
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1807
2443
  ) -> RESTResponseType:
1808
- """get_connect_tab_timeline
2444
+ """get_explore_page
1809
2445
 
1810
- get the Connect tab (who to follow) timeline
2446
+ get the explore page (segmented timelines)
1811
2447
 
1812
2448
  :param path_query_id: (required)
1813
2449
  :type path_query_id: str
@@ -1837,7 +2473,7 @@ class TweetApi:
1837
2473
  :return: Returns the result object.
1838
2474
  """ # noqa: E501
1839
2475
 
1840
- _param = self._get_connect_tab_timeline_serialize(
2476
+ _param = self._get_explore_page_serialize(
1841
2477
  path_query_id=path_query_id,
1842
2478
  variables=variables,
1843
2479
  features=features,
@@ -1848,7 +2484,7 @@ class TweetApi:
1848
2484
  )
1849
2485
 
1850
2486
  _response_types_map: Dict[str, Optional[str]] = {
1851
- '200': "ConnectTabTimelineResponse",
2487
+ '200': "ExplorePageResponse",
1852
2488
  }
1853
2489
  response_data = self.api_client.call_api(
1854
2490
  *_param,
@@ -1857,7 +2493,7 @@ class TweetApi:
1857
2493
  return response_data.response
1858
2494
 
1859
2495
 
1860
- def _get_connect_tab_timeline_serialize(
2496
+ def _get_explore_page_serialize(
1861
2497
  self,
1862
2498
  path_query_id,
1863
2499
  variables,
@@ -1937,7 +2573,7 @@ class TweetApi:
1937
2573
 
1938
2574
  return self.api_client.param_serialize(
1939
2575
  method='GET',
1940
- resource_path='/graphql/{pathQueryId}/ConnectTabTimeline',
2576
+ resource_path='/graphql/{pathQueryId}/ExplorePage',
1941
2577
  path_params=_path_params,
1942
2578
  query_params=_query_params,
1943
2579
  header_params=_header_params,
@@ -1954,11 +2590,11 @@ class TweetApi:
1954
2590
 
1955
2591
 
1956
2592
  @validate_call
1957
- def get_explore_page(
2593
+ def get_explore_sidebar(
1958
2594
  self,
1959
2595
  path_query_id: StrictStr,
1960
- variables: StrictStr,
1961
2596
  features: StrictStr,
2597
+ variables: StrictStr,
1962
2598
  _request_timeout: Union[
1963
2599
  None,
1964
2600
  Annotated[StrictFloat, Field(gt=0)],
@@ -1971,17 +2607,17 @@ class TweetApi:
1971
2607
  _content_type: Optional[StrictStr] = None,
1972
2608
  _headers: Optional[Dict[StrictStr, Any]] = None,
1973
2609
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1974
- ) -> ExplorePageResponse:
1975
- """get_explore_page
2610
+ ) -> ExploreSidebarResponse:
2611
+ """get_explore_sidebar
1976
2612
 
1977
- get the explore page (segmented timelines)
2613
+ the explore sidebar (trends)
1978
2614
 
1979
2615
  :param path_query_id: (required)
1980
2616
  :type path_query_id: str
1981
- :param variables: (required)
1982
- :type variables: str
1983
2617
  :param features: (required)
1984
2618
  :type features: str
2619
+ :param variables: (required)
2620
+ :type variables: str
1985
2621
  :param _request_timeout: timeout setting for this request. If one
1986
2622
  number provided, it will be total request
1987
2623
  timeout. It can also be a pair (tuple) of
@@ -2004,10 +2640,10 @@ class TweetApi:
2004
2640
  :return: Returns the result object.
2005
2641
  """ # noqa: E501
2006
2642
 
2007
- _param = self._get_explore_page_serialize(
2643
+ _param = self._get_explore_sidebar_serialize(
2008
2644
  path_query_id=path_query_id,
2009
- variables=variables,
2010
2645
  features=features,
2646
+ variables=variables,
2011
2647
  _request_auth=_request_auth,
2012
2648
  _content_type=_content_type,
2013
2649
  _headers=_headers,
@@ -2015,7 +2651,7 @@ class TweetApi:
2015
2651
  )
2016
2652
 
2017
2653
  _response_types_map: Dict[str, Optional[str]] = {
2018
- '200': "ExplorePageResponse",
2654
+ '200': "ExploreSidebarResponse",
2019
2655
  }
2020
2656
  response_data = self.api_client.call_api(
2021
2657
  *_param,
@@ -2029,11 +2665,11 @@ class TweetApi:
2029
2665
 
2030
2666
 
2031
2667
  @validate_call
2032
- def get_explore_page_with_http_info(
2668
+ def get_explore_sidebar_with_http_info(
2033
2669
  self,
2034
2670
  path_query_id: StrictStr,
2035
- variables: StrictStr,
2036
2671
  features: StrictStr,
2672
+ variables: StrictStr,
2037
2673
  _request_timeout: Union[
2038
2674
  None,
2039
2675
  Annotated[StrictFloat, Field(gt=0)],
@@ -2046,17 +2682,17 @@ class TweetApi:
2046
2682
  _content_type: Optional[StrictStr] = None,
2047
2683
  _headers: Optional[Dict[StrictStr, Any]] = None,
2048
2684
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2049
- ) -> ApiResponse[ExplorePageResponse]:
2050
- """get_explore_page
2685
+ ) -> ApiResponse[ExploreSidebarResponse]:
2686
+ """get_explore_sidebar
2051
2687
 
2052
- get the explore page (segmented timelines)
2688
+ the explore sidebar (trends)
2053
2689
 
2054
2690
  :param path_query_id: (required)
2055
2691
  :type path_query_id: str
2056
- :param variables: (required)
2057
- :type variables: str
2058
2692
  :param features: (required)
2059
2693
  :type features: str
2694
+ :param variables: (required)
2695
+ :type variables: str
2060
2696
  :param _request_timeout: timeout setting for this request. If one
2061
2697
  number provided, it will be total request
2062
2698
  timeout. It can also be a pair (tuple) of
@@ -2079,10 +2715,10 @@ class TweetApi:
2079
2715
  :return: Returns the result object.
2080
2716
  """ # noqa: E501
2081
2717
 
2082
- _param = self._get_explore_page_serialize(
2718
+ _param = self._get_explore_sidebar_serialize(
2083
2719
  path_query_id=path_query_id,
2084
- variables=variables,
2085
2720
  features=features,
2721
+ variables=variables,
2086
2722
  _request_auth=_request_auth,
2087
2723
  _content_type=_content_type,
2088
2724
  _headers=_headers,
@@ -2090,7 +2726,7 @@ class TweetApi:
2090
2726
  )
2091
2727
 
2092
2728
  _response_types_map: Dict[str, Optional[str]] = {
2093
- '200': "ExplorePageResponse",
2729
+ '200': "ExploreSidebarResponse",
2094
2730
  }
2095
2731
  response_data = self.api_client.call_api(
2096
2732
  *_param,
@@ -2104,11 +2740,11 @@ class TweetApi:
2104
2740
 
2105
2741
 
2106
2742
  @validate_call
2107
- def get_explore_page_without_preload_content(
2743
+ def get_explore_sidebar_without_preload_content(
2108
2744
  self,
2109
2745
  path_query_id: StrictStr,
2110
- variables: StrictStr,
2111
2746
  features: StrictStr,
2747
+ variables: StrictStr,
2112
2748
  _request_timeout: Union[
2113
2749
  None,
2114
2750
  Annotated[StrictFloat, Field(gt=0)],
@@ -2122,16 +2758,16 @@ class TweetApi:
2122
2758
  _headers: Optional[Dict[StrictStr, Any]] = None,
2123
2759
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2124
2760
  ) -> RESTResponseType:
2125
- """get_explore_page
2761
+ """get_explore_sidebar
2126
2762
 
2127
- get the explore page (segmented timelines)
2763
+ the explore sidebar (trends)
2128
2764
 
2129
2765
  :param path_query_id: (required)
2130
2766
  :type path_query_id: str
2131
- :param variables: (required)
2132
- :type variables: str
2133
2767
  :param features: (required)
2134
2768
  :type features: str
2769
+ :param variables: (required)
2770
+ :type variables: str
2135
2771
  :param _request_timeout: timeout setting for this request. If one
2136
2772
  number provided, it will be total request
2137
2773
  timeout. It can also be a pair (tuple) of
@@ -2154,10 +2790,10 @@ class TweetApi:
2154
2790
  :return: Returns the result object.
2155
2791
  """ # noqa: E501
2156
2792
 
2157
- _param = self._get_explore_page_serialize(
2793
+ _param = self._get_explore_sidebar_serialize(
2158
2794
  path_query_id=path_query_id,
2159
- variables=variables,
2160
2795
  features=features,
2796
+ variables=variables,
2161
2797
  _request_auth=_request_auth,
2162
2798
  _content_type=_content_type,
2163
2799
  _headers=_headers,
@@ -2165,7 +2801,7 @@ class TweetApi:
2165
2801
  )
2166
2802
 
2167
2803
  _response_types_map: Dict[str, Optional[str]] = {
2168
- '200': "ExplorePageResponse",
2804
+ '200': "ExploreSidebarResponse",
2169
2805
  }
2170
2806
  response_data = self.api_client.call_api(
2171
2807
  *_param,
@@ -2174,11 +2810,11 @@ class TweetApi:
2174
2810
  return response_data.response
2175
2811
 
2176
2812
 
2177
- def _get_explore_page_serialize(
2813
+ def _get_explore_sidebar_serialize(
2178
2814
  self,
2179
2815
  path_query_id,
2180
- variables,
2181
2816
  features,
2817
+ variables,
2182
2818
  _request_auth,
2183
2819
  _content_type,
2184
2820
  _headers,
@@ -2203,14 +2839,14 @@ class TweetApi:
2203
2839
  if path_query_id is not None:
2204
2840
  _path_params['pathQueryId'] = path_query_id
2205
2841
  # process the query parameters
2206
- if variables is not None:
2207
-
2208
- _query_params.append(('variables', variables))
2209
-
2210
2842
  if features is not None:
2211
2843
 
2212
2844
  _query_params.append(('features', features))
2213
2845
 
2846
+ if variables is not None:
2847
+
2848
+ _query_params.append(('variables', variables))
2849
+
2214
2850
  # process the header parameters
2215
2851
  # process the form parameters
2216
2852
  # process the body parameter
@@ -2254,7 +2890,7 @@ class TweetApi:
2254
2890
 
2255
2891
  return self.api_client.param_serialize(
2256
2892
  method='GET',
2257
- resource_path='/graphql/{pathQueryId}/ExplorePage',
2893
+ resource_path='/graphql/{pathQueryId}/ExploreSidebar',
2258
2894
  path_params=_path_params,
2259
2895
  query_params=_query_params,
2260
2896
  header_params=_header_params,