twitter-openapi-python-generated 0.0.34__py3-none-any.whl → 0.0.35__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 (227) hide show
  1. twitter_openapi_python_generated/__init__.py +165 -1
  2. twitter_openapi_python_generated/api/post_api.py +2079 -203
  3. twitter_openapi_python_generated/api/tweet_api.py +3207 -231
  4. twitter_openapi_python_generated/api/user_api.py +969 -66
  5. twitter_openapi_python_generated/api/user_list_api.py +1907 -0
  6. twitter_openapi_python_generated/api_client.py +47 -9
  7. twitter_openapi_python_generated/configuration.py +55 -6
  8. twitter_openapi_python_generated/models/__init__.py +82 -0
  9. twitter_openapi_python_generated/models/additional_media_info.py +3 -1
  10. twitter_openapi_python_generated/models/article_cover_media.py +2 -5
  11. twitter_openapi_python_generated/models/article_cover_media_color_info.py +1 -2
  12. twitter_openapi_python_generated/models/article_result.py +3 -7
  13. twitter_openapi_python_generated/models/badge_counts.py +97 -0
  14. twitter_openapi_python_generated/models/birdwatch_entity_ref.py +3 -1
  15. twitter_openapi_python_generated/models/birdwatch_pivot_footer.py +1 -2
  16. twitter_openapi_python_generated/models/birdwatch_pivot_note.py +2 -5
  17. twitter_openapi_python_generated/models/birdwatch_pivot_subtitle.py +1 -2
  18. twitter_openapi_python_generated/models/bookmarks_response.py +1 -2
  19. twitter_openapi_python_generated/models/cashtag_attachment.py +89 -0
  20. twitter_openapi_python_generated/models/community.py +4 -9
  21. twitter_openapi_python_generated/models/community_about_timeline_response.py +1 -2
  22. twitter_openapi_python_generated/models/community_discovery_timeline_response.py +102 -0
  23. twitter_openapi_python_generated/models/community_discovery_timeline_response_data.py +93 -0
  24. twitter_openapi_python_generated/models/community_discovery_timeline_viewer.py +93 -0
  25. twitter_openapi_python_generated/models/community_join_action_result_union.py +3 -2
  26. twitter_openapi_python_generated/models/community_media_timeline_response.py +1 -2
  27. twitter_openapi_python_generated/models/community_relationship.py +2 -5
  28. twitter_openapi_python_generated/models/community_rule.py +2 -5
  29. twitter_openapi_python_generated/models/community_tweets_timeline_response.py +1 -2
  30. twitter_openapi_python_generated/models/community_union.py +3 -2
  31. twitter_openapi_python_generated/models/connect_tab_timeline_response.py +102 -0
  32. twitter_openapi_python_generated/models/connect_tab_timeline_response_data.py +93 -0
  33. twitter_openapi_python_generated/models/content_disclosure_ai_generated_disclosure.py +2 -2
  34. twitter_openapi_python_generated/models/content_item_type.py +3 -0
  35. twitter_openapi_python_generated/models/content_union.py +3 -2
  36. twitter_openapi_python_generated/models/cover_cta.py +1 -2
  37. twitter_openapi_python_generated/models/create_bookmark_response.py +1 -2
  38. twitter_openapi_python_generated/models/create_draft_tweet_response.py +102 -0
  39. twitter_openapi_python_generated/models/create_draft_tweet_response_data.py +93 -0
  40. twitter_openapi_python_generated/models/create_draft_tweet_response_tweet.py +97 -0
  41. twitter_openapi_python_generated/models/create_retweet_response.py +1 -2
  42. twitter_openapi_python_generated/models/create_tweet_response.py +1 -2
  43. twitter_openapi_python_generated/models/delete_bookmark_response.py +1 -2
  44. twitter_openapi_python_generated/models/delete_draft_tweets_response.py +102 -0
  45. twitter_openapi_python_generated/models/delete_draft_tweets_response_data.py +89 -0
  46. twitter_openapi_python_generated/models/delete_list_response.py +102 -0
  47. twitter_openapi_python_generated/models/delete_list_response_data.py +89 -0
  48. twitter_openapi_python_generated/models/delete_retweet.py +1 -2
  49. twitter_openapi_python_generated/models/delete_retweet_response.py +1 -2
  50. twitter_openapi_python_generated/models/delete_tweet_response.py +1 -2
  51. twitter_openapi_python_generated/models/draft_list.py +96 -0
  52. twitter_openapi_python_generated/models/draft_tweet.py +109 -0
  53. twitter_openapi_python_generated/models/draft_tweet_create_request.py +99 -0
  54. twitter_openapi_python_generated/models/draft_tweet_user.py +100 -0
  55. twitter_openapi_python_generated/models/draft_tweet_user_results.py +93 -0
  56. twitter_openapi_python_generated/models/draft_tweets_viewer.py +93 -0
  57. twitter_openapi_python_generated/models/entities.py +7 -9
  58. twitter_openapi_python_generated/models/error_extensions.py +1 -1
  59. twitter_openapi_python_generated/models/error_response.py +3 -5
  60. twitter_openapi_python_generated/models/explore_page.py +95 -0
  61. twitter_openapi_python_generated/models/explore_page_body.py +104 -0
  62. twitter_openapi_python_generated/models/explore_page_response.py +102 -0
  63. twitter_openapi_python_generated/models/explore_page_response_data.py +93 -0
  64. twitter_openapi_python_generated/models/explore_timeline.py +105 -0
  65. twitter_openapi_python_generated/models/explore_timeline_scribe_config.py +91 -0
  66. twitter_openapi_python_generated/models/extended_entities.py +1 -2
  67. twitter_openapi_python_generated/models/favorite_tweet_response.py +1 -2
  68. twitter_openapi_python_generated/models/fetch_draft_tweets_response.py +102 -0
  69. twitter_openapi_python_generated/models/fetch_draft_tweets_response_data.py +93 -0
  70. twitter_openapi_python_generated/models/fetch_scheduled_tweets_response.py +102 -0
  71. twitter_openapi_python_generated/models/fetch_scheduled_tweets_response_data.py +93 -0
  72. twitter_openapi_python_generated/models/follow_response.py +1 -2
  73. twitter_openapi_python_generated/models/generic_timeline_by_id_response.py +102 -0
  74. twitter_openapi_python_generated/models/generic_timeline_by_id_response_data.py +93 -0
  75. twitter_openapi_python_generated/models/grok_share_attachment.py +1 -2
  76. twitter_openapi_python_generated/models/grok_translated_bio.py +101 -0
  77. twitter_openapi_python_generated/models/grok_translated_bio_with_availability.py +97 -0
  78. twitter_openapi_python_generated/models/grok_translated_community_note.py +1 -2
  79. twitter_openapi_python_generated/models/highlight.py +1 -2
  80. twitter_openapi_python_generated/models/instruction_union.py +3 -2
  81. twitter_openapi_python_generated/models/item_content_union.py +68 -10
  82. twitter_openapi_python_generated/models/list_banner_media.py +93 -0
  83. twitter_openapi_python_generated/models/list_banner_media_info.py +99 -0
  84. twitter_openapi_python_generated/models/list_banner_media_salient_rect.py +95 -0
  85. twitter_openapi_python_generated/models/list_latest_tweets_timeline_response.py +1 -2
  86. twitter_openapi_python_generated/models/list_members_list.py +93 -0
  87. twitter_openapi_python_generated/models/list_members_response.py +102 -0
  88. twitter_openapi_python_generated/models/list_members_response_data.py +93 -0
  89. twitter_openapi_python_generated/models/list_recommended_users_list.py +93 -0
  90. twitter_openapi_python_generated/models/list_recommended_users_response.py +102 -0
  91. twitter_openapi_python_generated/models/list_recommended_users_response_data.py +93 -0
  92. twitter_openapi_python_generated/models/list_response.py +102 -0
  93. twitter_openapi_python_generated/models/list_response_data.py +93 -0
  94. twitter_openapi_python_generated/models/list_subscribers_list.py +93 -0
  95. twitter_openapi_python_generated/models/list_subscribers_response.py +102 -0
  96. twitter_openapi_python_generated/models/list_subscribers_response_data.py +93 -0
  97. twitter_openapi_python_generated/models/media.py +16 -17
  98. twitter_openapi_python_generated/models/media_extended.py +13 -16
  99. twitter_openapi_python_generated/models/media_original_info.py +1 -2
  100. twitter_openapi_python_generated/models/media_video_info.py +1 -2
  101. twitter_openapi_python_generated/models/module_item.py +2 -5
  102. twitter_openapi_python_generated/models/note_tweet_result_data.py +2 -5
  103. twitter_openapi_python_generated/models/note_tweet_result_media.py +1 -2
  104. twitter_openapi_python_generated/models/note_tweet_result_media_inline_media.py +2 -5
  105. twitter_openapi_python_generated/models/note_tweet_result_rich_text.py +1 -2
  106. twitter_openapi_python_generated/models/notifications_result.py +2 -5
  107. twitter_openapi_python_generated/models/notifications_timeline_response.py +1 -2
  108. twitter_openapi_python_generated/models/post_create_bookmark_request.py +1 -1
  109. twitter_openapi_python_generated/models/post_create_bookmark_request_variables.py +2 -2
  110. twitter_openapi_python_generated/models/post_create_draft_tweet_request.py +95 -0
  111. twitter_openapi_python_generated/models/post_create_draft_tweet_request_variables.py +93 -0
  112. twitter_openapi_python_generated/models/post_create_draft_tweet_request_variables_post_tweet_request.py +97 -0
  113. twitter_openapi_python_generated/models/post_create_list_request.py +101 -0
  114. twitter_openapi_python_generated/models/post_create_list_request_features.py +97 -0
  115. twitter_openapi_python_generated/models/post_create_list_request_variables.py +93 -0
  116. twitter_openapi_python_generated/models/post_create_retweet_request.py +1 -1
  117. twitter_openapi_python_generated/models/post_create_retweet_request_variables.py +3 -3
  118. twitter_openapi_python_generated/models/post_create_tweet_request.py +2 -2
  119. twitter_openapi_python_generated/models/post_create_tweet_request_features.py +43 -41
  120. twitter_openapi_python_generated/models/post_create_tweet_request_variables.py +4 -4
  121. twitter_openapi_python_generated/models/post_create_tweet_request_variables_conversation_control.py +2 -2
  122. twitter_openapi_python_generated/models/post_create_tweet_request_variables_media.py +3 -4
  123. twitter_openapi_python_generated/models/post_create_tweet_request_variables_media_media_entities_inner.py +2 -2
  124. twitter_openapi_python_generated/models/post_create_tweet_request_variables_reply.py +2 -2
  125. twitter_openapi_python_generated/models/post_cta_title_text.py +1 -2
  126. twitter_openapi_python_generated/models/post_delete_bookmark_request.py +1 -1
  127. twitter_openapi_python_generated/models/post_delete_draft_tweets_request.py +95 -0
  128. twitter_openapi_python_generated/models/post_delete_draft_tweets_request_variables.py +89 -0
  129. twitter_openapi_python_generated/models/post_delete_list_request.py +95 -0
  130. twitter_openapi_python_generated/models/post_delete_list_request_variables.py +89 -0
  131. twitter_openapi_python_generated/models/post_delete_retweet_request.py +1 -1
  132. twitter_openapi_python_generated/models/post_delete_retweet_request_variables.py +3 -3
  133. twitter_openapi_python_generated/models/post_delete_tweet_request.py +2 -2
  134. twitter_openapi_python_generated/models/post_favorite_tweet_request.py +1 -1
  135. twitter_openapi_python_generated/models/post_list_add_member_request.py +101 -0
  136. twitter_openapi_python_generated/models/post_list_add_member_request_variables.py +91 -0
  137. twitter_openapi_python_generated/models/post_list_remove_member_request.py +101 -0
  138. twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py +1 -1
  139. twitter_openapi_python_generated/models/primary_community_topic.py +2 -5
  140. twitter_openapi_python_generated/models/profile_bio.py +11 -3
  141. twitter_openapi_python_generated/models/profile_bio_entities.py +98 -0
  142. twitter_openapi_python_generated/models/profile_bio_entities_urls.py +96 -0
  143. twitter_openapi_python_generated/models/profile_response.py +1 -2
  144. twitter_openapi_python_generated/models/retweet.py +4 -7
  145. twitter_openapi_python_generated/models/scheduled_tweets_viewer.py +89 -0
  146. twitter_openapi_python_generated/models/search_timeline_response.py +1 -2
  147. twitter_openapi_python_generated/models/self_thread.py +2 -5
  148. twitter_openapi_python_generated/models/session.py +8 -20
  149. twitter_openapi_python_generated/models/social_context_union.py +3 -2
  150. twitter_openapi_python_generated/models/text.py +1 -2
  151. twitter_openapi_python_generated/models/timeline.py +1 -2
  152. twitter_openapi_python_generated/models/timeline_add_entries.py +1 -2
  153. twitter_openapi_python_generated/models/timeline_add_entry.py +4 -10
  154. twitter_openapi_python_generated/models/timeline_add_to_module.py +1 -2
  155. twitter_openapi_python_generated/models/timeline_frame.py +97 -0
  156. twitter_openapi_python_generated/models/timeline_half_cover.py +1 -2
  157. twitter_openapi_python_generated/models/timeline_label.py +101 -0
  158. twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py +2 -5
  159. twitter_openapi_python_generated/models/timeline_response.py +1 -2
  160. twitter_openapi_python_generated/models/timeline_show_alert.py +7 -3
  161. twitter_openapi_python_generated/models/timeline_timeline_module.py +1 -2
  162. twitter_openapi_python_generated/models/timeline_trend.py +16 -4
  163. twitter_openapi_python_generated/models/timeline_twitter_list.py +101 -0
  164. twitter_openapi_python_generated/models/tombstone_rich_text.py +1 -2
  165. twitter_openapi_python_generated/models/tracing.py +2 -5
  166. twitter_openapi_python_generated/models/trend_metadata.py +4 -2
  167. twitter_openapi_python_generated/models/trend_results.py +2 -5
  168. twitter_openapi_python_generated/models/tweet.py +17 -6
  169. twitter_openapi_python_generated/models/tweet_card_legacy.py +2 -4
  170. twitter_openapi_python_generated/models/tweet_card_platform_device.py +2 -5
  171. twitter_openapi_python_generated/models/tweet_detail_response.py +1 -2
  172. twitter_openapi_python_generated/models/tweet_edit_control.py +6 -15
  173. twitter_openapi_python_generated/models/tweet_edit_control_initial.py +4 -10
  174. twitter_openapi_python_generated/models/tweet_favoriters_response.py +1 -2
  175. twitter_openapi_python_generated/models/tweet_interstitial_reveal_text.py +1 -2
  176. twitter_openapi_python_generated/models/tweet_interstitial_text.py +1 -2
  177. twitter_openapi_python_generated/models/tweet_legacy.py +15 -36
  178. twitter_openapi_python_generated/models/tweet_limited_action_results.py +1 -2
  179. twitter_openapi_python_generated/models/tweet_preview_display_tweet.py +5 -11
  180. twitter_openapi_python_generated/models/tweet_preview_display_tweet_view_count.py +2 -5
  181. twitter_openapi_python_generated/models/tweet_result_by_rest_id_response.py +1 -2
  182. twitter_openapi_python_generated/models/tweet_retweeters_response.py +1 -2
  183. twitter_openapi_python_generated/models/tweet_union.py +3 -2
  184. twitter_openapi_python_generated/models/tweet_view.py +2 -5
  185. twitter_openapi_python_generated/models/twitter_list.py +146 -0
  186. twitter_openapi_python_generated/models/type_name.py +4 -0
  187. twitter_openapi_python_generated/models/unfavorite_tweet_response.py +1 -2
  188. twitter_openapi_python_generated/models/urt_endpoint_options.py +3 -4
  189. twitter_openapi_python_generated/models/user.py +75 -13
  190. twitter_openapi_python_generated/models/user_action_counts.py +89 -0
  191. twitter_openapi_python_generated/models/user_banner.py +89 -0
  192. twitter_openapi_python_generated/models/user_core.py +3 -6
  193. twitter_openapi_python_generated/models/user_highlights_tweets_response.py +1 -2
  194. twitter_openapi_python_generated/models/user_legacy.py +3 -6
  195. twitter_openapi_python_generated/models/user_notifications_settings.py +89 -0
  196. twitter_openapi_python_generated/models/user_pinned_items.py +90 -0
  197. twitter_openapi_python_generated/models/user_professional.py +3 -7
  198. twitter_openapi_python_generated/models/user_profile_metadata.py +89 -0
  199. twitter_openapi_python_generated/models/user_profile_translation.py +89 -0
  200. twitter_openapi_python_generated/models/user_relationship_counts.py +91 -0
  201. twitter_openapi_python_generated/models/user_relationship_perspectives.py +6 -2
  202. twitter_openapi_python_generated/models/user_response.py +1 -2
  203. twitter_openapi_python_generated/models/user_result_by_screen_name.py +2 -5
  204. twitter_openapi_python_generated/models/user_result_by_screen_name_result.py +8 -12
  205. twitter_openapi_python_generated/models/user_result_core.py +3 -1
  206. twitter_openapi_python_generated/models/user_results.py +3 -1
  207. twitter_openapi_python_generated/models/user_tweet_counts.py +91 -0
  208. twitter_openapi_python_generated/models/user_tweets_response.py +1 -2
  209. twitter_openapi_python_generated/models/user_union.py +6 -3
  210. twitter_openapi_python_generated/models/user_value.py +8 -9
  211. twitter_openapi_python_generated/models/user_verification_info_reason.py +2 -5
  212. twitter_openapi_python_generated/models/user_verification_info_reason_description.py +1 -2
  213. twitter_openapi_python_generated/models/user_website.py +89 -0
  214. twitter_openapi_python_generated/models/users_response.py +1 -2
  215. twitter_openapi_python_generated/models/users_response_data.py +1 -2
  216. twitter_openapi_python_generated/models/viewer_badge_counts_response.py +102 -0
  217. twitter_openapi_python_generated/models/viewer_badge_counts_response_data.py +93 -0
  218. twitter_openapi_python_generated/models/viewer_badge_counts_result.py +96 -0
  219. twitter_openapi_python_generated/models/viewer_badge_counts_user_results.py +93 -0
  220. twitter_openapi_python_generated/models/viewer_badge_counts_viewer.py +93 -0
  221. twitter_openapi_python_generated/rest.py +79 -8
  222. {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/METADATA +926 -816
  223. {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/RECORD +227 -145
  224. {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/WHEEL +1 -1
  225. {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/licenses/LICENSE +31 -31
  226. {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/licenses/LICENSE.AGPL +660 -660
  227. {twitter_openapi_python_generated-0.0.34.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/top_level.txt +0 -0
@@ -19,8 +19,12 @@ from typing_extensions import Annotated
19
19
  from pydantic import StrictStr
20
20
  from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse
21
21
  from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse
22
+ from twitter_openapi_python_generated.models.community_discovery_timeline_response import CommunityDiscoveryTimelineResponse
22
23
  from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse
23
24
  from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse
25
+ from twitter_openapi_python_generated.models.connect_tab_timeline_response import ConnectTabTimelineResponse
26
+ from twitter_openapi_python_generated.models.explore_page_response import ExplorePageResponse
27
+ from twitter_openapi_python_generated.models.generic_timeline_by_id_response import GenericTimelineByIdResponse
24
28
  from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse
25
29
  from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse
26
30
  from twitter_openapi_python_generated.models.search_timeline_response import SearchTimelineResponse
@@ -681,6 +685,323 @@ class TweetApi:
681
685
 
682
686
 
683
687
 
688
+ @validate_call
689
+ def get_community_discovery_timeline(
690
+ self,
691
+ path_query_id: StrictStr,
692
+ variables: StrictStr,
693
+ features: StrictStr,
694
+ _request_timeout: Union[
695
+ None,
696
+ Annotated[StrictFloat, Field(gt=0)],
697
+ Tuple[
698
+ Annotated[StrictFloat, Field(gt=0)],
699
+ Annotated[StrictFloat, Field(gt=0)]
700
+ ]
701
+ ] = None,
702
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
703
+ _content_type: Optional[StrictStr] = None,
704
+ _headers: Optional[Dict[StrictStr, Any]] = None,
705
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
706
+ ) -> CommunityDiscoveryTimelineResponse:
707
+ """get_community_discovery_timeline
708
+
709
+ get the communities discovery timeline
710
+
711
+ :param path_query_id: (required)
712
+ :type path_query_id: str
713
+ :param variables: (required)
714
+ :type variables: str
715
+ :param features: (required)
716
+ :type features: str
717
+ :param _request_timeout: timeout setting for this request. If one
718
+ number provided, it will be total request
719
+ timeout. It can also be a pair (tuple) of
720
+ (connection, read) timeouts.
721
+ :type _request_timeout: int, tuple(int, int), optional
722
+ :param _request_auth: set to override the auth_settings for an a single
723
+ request; this effectively ignores the
724
+ authentication in the spec for a single request.
725
+ :type _request_auth: dict, optional
726
+ :param _content_type: force content-type for the request.
727
+ :type _content_type: str, Optional
728
+ :param _headers: set to override the headers for a single
729
+ request; this effectively ignores the headers
730
+ in the spec for a single request.
731
+ :type _headers: dict, optional
732
+ :param _host_index: set to override the host_index for a single
733
+ request; this effectively ignores the host_index
734
+ in the spec for a single request.
735
+ :type _host_index: int, optional
736
+ :return: Returns the result object.
737
+ """ # noqa: E501
738
+
739
+ _param = self._get_community_discovery_timeline_serialize(
740
+ path_query_id=path_query_id,
741
+ variables=variables,
742
+ features=features,
743
+ _request_auth=_request_auth,
744
+ _content_type=_content_type,
745
+ _headers=_headers,
746
+ _host_index=_host_index
747
+ )
748
+
749
+ _response_types_map: Dict[str, Optional[str]] = {
750
+ '200': "CommunityDiscoveryTimelineResponse",
751
+ }
752
+ response_data = self.api_client.call_api(
753
+ *_param,
754
+ _request_timeout=_request_timeout
755
+ )
756
+ response_data.read()
757
+ return self.api_client.response_deserialize(
758
+ response_data=response_data,
759
+ response_types_map=_response_types_map,
760
+ ).data
761
+
762
+
763
+ @validate_call
764
+ def get_community_discovery_timeline_with_http_info(
765
+ self,
766
+ path_query_id: StrictStr,
767
+ variables: StrictStr,
768
+ features: StrictStr,
769
+ _request_timeout: Union[
770
+ None,
771
+ Annotated[StrictFloat, Field(gt=0)],
772
+ Tuple[
773
+ Annotated[StrictFloat, Field(gt=0)],
774
+ Annotated[StrictFloat, Field(gt=0)]
775
+ ]
776
+ ] = None,
777
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
778
+ _content_type: Optional[StrictStr] = None,
779
+ _headers: Optional[Dict[StrictStr, Any]] = None,
780
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
781
+ ) -> ApiResponse[CommunityDiscoveryTimelineResponse]:
782
+ """get_community_discovery_timeline
783
+
784
+ get the communities discovery timeline
785
+
786
+ :param path_query_id: (required)
787
+ :type path_query_id: str
788
+ :param variables: (required)
789
+ :type variables: str
790
+ :param features: (required)
791
+ :type features: str
792
+ :param _request_timeout: timeout setting for this request. If one
793
+ number provided, it will be total request
794
+ timeout. It can also be a pair (tuple) of
795
+ (connection, read) timeouts.
796
+ :type _request_timeout: int, tuple(int, int), optional
797
+ :param _request_auth: set to override the auth_settings for an a single
798
+ request; this effectively ignores the
799
+ authentication in the spec for a single request.
800
+ :type _request_auth: dict, optional
801
+ :param _content_type: force content-type for the request.
802
+ :type _content_type: str, Optional
803
+ :param _headers: set to override the headers for a single
804
+ request; this effectively ignores the headers
805
+ in the spec for a single request.
806
+ :type _headers: dict, optional
807
+ :param _host_index: set to override the host_index for a single
808
+ request; this effectively ignores the host_index
809
+ in the spec for a single request.
810
+ :type _host_index: int, optional
811
+ :return: Returns the result object.
812
+ """ # noqa: E501
813
+
814
+ _param = self._get_community_discovery_timeline_serialize(
815
+ path_query_id=path_query_id,
816
+ variables=variables,
817
+ features=features,
818
+ _request_auth=_request_auth,
819
+ _content_type=_content_type,
820
+ _headers=_headers,
821
+ _host_index=_host_index
822
+ )
823
+
824
+ _response_types_map: Dict[str, Optional[str]] = {
825
+ '200': "CommunityDiscoveryTimelineResponse",
826
+ }
827
+ response_data = self.api_client.call_api(
828
+ *_param,
829
+ _request_timeout=_request_timeout
830
+ )
831
+ response_data.read()
832
+ return self.api_client.response_deserialize(
833
+ response_data=response_data,
834
+ response_types_map=_response_types_map,
835
+ )
836
+
837
+
838
+ @validate_call
839
+ def get_community_discovery_timeline_without_preload_content(
840
+ self,
841
+ path_query_id: StrictStr,
842
+ variables: StrictStr,
843
+ features: StrictStr,
844
+ _request_timeout: Union[
845
+ None,
846
+ Annotated[StrictFloat, Field(gt=0)],
847
+ Tuple[
848
+ Annotated[StrictFloat, Field(gt=0)],
849
+ Annotated[StrictFloat, Field(gt=0)]
850
+ ]
851
+ ] = None,
852
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
853
+ _content_type: Optional[StrictStr] = None,
854
+ _headers: Optional[Dict[StrictStr, Any]] = None,
855
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
856
+ ) -> RESTResponseType:
857
+ """get_community_discovery_timeline
858
+
859
+ get the communities discovery timeline
860
+
861
+ :param path_query_id: (required)
862
+ :type path_query_id: str
863
+ :param variables: (required)
864
+ :type variables: str
865
+ :param features: (required)
866
+ :type features: str
867
+ :param _request_timeout: timeout setting for this request. If one
868
+ number provided, it will be total request
869
+ timeout. It can also be a pair (tuple) of
870
+ (connection, read) timeouts.
871
+ :type _request_timeout: int, tuple(int, int), optional
872
+ :param _request_auth: set to override the auth_settings for an a single
873
+ request; this effectively ignores the
874
+ authentication in the spec for a single request.
875
+ :type _request_auth: dict, optional
876
+ :param _content_type: force content-type for the request.
877
+ :type _content_type: str, Optional
878
+ :param _headers: set to override the headers for a single
879
+ request; this effectively ignores the headers
880
+ in the spec for a single request.
881
+ :type _headers: dict, optional
882
+ :param _host_index: set to override the host_index for a single
883
+ request; this effectively ignores the host_index
884
+ in the spec for a single request.
885
+ :type _host_index: int, optional
886
+ :return: Returns the result object.
887
+ """ # noqa: E501
888
+
889
+ _param = self._get_community_discovery_timeline_serialize(
890
+ path_query_id=path_query_id,
891
+ variables=variables,
892
+ features=features,
893
+ _request_auth=_request_auth,
894
+ _content_type=_content_type,
895
+ _headers=_headers,
896
+ _host_index=_host_index
897
+ )
898
+
899
+ _response_types_map: Dict[str, Optional[str]] = {
900
+ '200': "CommunityDiscoveryTimelineResponse",
901
+ }
902
+ response_data = self.api_client.call_api(
903
+ *_param,
904
+ _request_timeout=_request_timeout
905
+ )
906
+ return response_data.response
907
+
908
+
909
+ def _get_community_discovery_timeline_serialize(
910
+ self,
911
+ path_query_id,
912
+ variables,
913
+ features,
914
+ _request_auth,
915
+ _content_type,
916
+ _headers,
917
+ _host_index,
918
+ ) -> RequestSerialized:
919
+
920
+ _host = None
921
+
922
+ _collection_formats: Dict[str, str] = {
923
+ }
924
+
925
+ _path_params: Dict[str, str] = {}
926
+ _query_params: List[Tuple[str, str]] = []
927
+ _header_params: Dict[str, Optional[str]] = _headers or {}
928
+ _form_params: List[Tuple[str, str]] = []
929
+ _files: Dict[
930
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
931
+ ] = {}
932
+ _body_params: Optional[bytes] = None
933
+
934
+ # process the path parameters
935
+ if path_query_id is not None:
936
+ _path_params['pathQueryId'] = path_query_id
937
+ # process the query parameters
938
+ if variables is not None:
939
+
940
+ _query_params.append(('variables', variables))
941
+
942
+ if features is not None:
943
+
944
+ _query_params.append(('features', features))
945
+
946
+ # process the header parameters
947
+ # process the form parameters
948
+ # process the body parameter
949
+
950
+
951
+ # set the HTTP header `Accept`
952
+ if 'Accept' not in _header_params:
953
+ _header_params['Accept'] = self.api_client.select_header_accept(
954
+ [
955
+ 'application/json'
956
+ ]
957
+ )
958
+
959
+
960
+ # authentication setting
961
+ _auth_settings: List[str] = [
962
+ 'Accept',
963
+ 'ClientLanguage',
964
+ 'Priority',
965
+ 'Referer',
966
+ 'SecFetchDest',
967
+ 'SecChUaPlatform',
968
+ 'SecFetchMode',
969
+ 'CsrfToken',
970
+ 'ClientUuid',
971
+ 'BearerAuth',
972
+ 'GuestToken',
973
+ 'SecChUa',
974
+ 'CookieGt0',
975
+ 'ClientTransactionId',
976
+ 'ActiveUser',
977
+ 'CookieCt0',
978
+ 'UserAgent',
979
+ 'AcceptLanguage',
980
+ 'SecFetchSite',
981
+ 'AuthType',
982
+ 'CookieAuthToken',
983
+ 'SecChUaMobile',
984
+ 'AcceptEncoding'
985
+ ]
986
+
987
+ return self.api_client.param_serialize(
988
+ method='GET',
989
+ resource_path='/graphql/{pathQueryId}/CommunityDiscoveryTimeline',
990
+ path_params=_path_params,
991
+ query_params=_query_params,
992
+ header_params=_header_params,
993
+ body=_body_params,
994
+ post_params=_form_params,
995
+ files=_files,
996
+ auth_settings=_auth_settings,
997
+ collection_formats=_collection_formats,
998
+ _host=_host,
999
+ _request_auth=_request_auth
1000
+ )
1001
+
1002
+
1003
+
1004
+
684
1005
  @validate_call
685
1006
  def get_community_media_timeline(
686
1007
  self,
@@ -699,10 +1020,2597 @@ class TweetApi:
699
1020
  _content_type: Optional[StrictStr] = None,
700
1021
  _headers: Optional[Dict[StrictStr, Any]] = None,
701
1022
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
702
- ) -> CommunityMediaTimelineResponse:
703
- """get_community_media_timeline
1023
+ ) -> CommunityMediaTimelineResponse:
1024
+ """get_community_media_timeline
1025
+
1026
+ get media list of community
1027
+
1028
+ :param path_query_id: (required)
1029
+ :type path_query_id: str
1030
+ :param variables: (required)
1031
+ :type variables: str
1032
+ :param features: (required)
1033
+ :type features: str
1034
+ :param _request_timeout: timeout setting for this request. If one
1035
+ number provided, it will be total request
1036
+ timeout. It can also be a pair (tuple) of
1037
+ (connection, read) timeouts.
1038
+ :type _request_timeout: int, tuple(int, int), optional
1039
+ :param _request_auth: set to override the auth_settings for an a single
1040
+ request; this effectively ignores the
1041
+ authentication in the spec for a single request.
1042
+ :type _request_auth: dict, optional
1043
+ :param _content_type: force content-type for the request.
1044
+ :type _content_type: str, Optional
1045
+ :param _headers: set to override the headers for a single
1046
+ request; this effectively ignores the headers
1047
+ in the spec for a single request.
1048
+ :type _headers: dict, optional
1049
+ :param _host_index: set to override the host_index for a single
1050
+ request; this effectively ignores the host_index
1051
+ in the spec for a single request.
1052
+ :type _host_index: int, optional
1053
+ :return: Returns the result object.
1054
+ """ # noqa: E501
1055
+
1056
+ _param = self._get_community_media_timeline_serialize(
1057
+ path_query_id=path_query_id,
1058
+ variables=variables,
1059
+ features=features,
1060
+ _request_auth=_request_auth,
1061
+ _content_type=_content_type,
1062
+ _headers=_headers,
1063
+ _host_index=_host_index
1064
+ )
1065
+
1066
+ _response_types_map: Dict[str, Optional[str]] = {
1067
+ '200': "CommunityMediaTimelineResponse",
1068
+ }
1069
+ response_data = self.api_client.call_api(
1070
+ *_param,
1071
+ _request_timeout=_request_timeout
1072
+ )
1073
+ response_data.read()
1074
+ return self.api_client.response_deserialize(
1075
+ response_data=response_data,
1076
+ response_types_map=_response_types_map,
1077
+ ).data
1078
+
1079
+
1080
+ @validate_call
1081
+ def get_community_media_timeline_with_http_info(
1082
+ self,
1083
+ path_query_id: StrictStr,
1084
+ variables: StrictStr,
1085
+ features: StrictStr,
1086
+ _request_timeout: Union[
1087
+ None,
1088
+ Annotated[StrictFloat, Field(gt=0)],
1089
+ Tuple[
1090
+ Annotated[StrictFloat, Field(gt=0)],
1091
+ Annotated[StrictFloat, Field(gt=0)]
1092
+ ]
1093
+ ] = None,
1094
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1095
+ _content_type: Optional[StrictStr] = None,
1096
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1097
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1098
+ ) -> ApiResponse[CommunityMediaTimelineResponse]:
1099
+ """get_community_media_timeline
1100
+
1101
+ get media list of community
1102
+
1103
+ :param path_query_id: (required)
1104
+ :type path_query_id: str
1105
+ :param variables: (required)
1106
+ :type variables: str
1107
+ :param features: (required)
1108
+ :type features: str
1109
+ :param _request_timeout: timeout setting for this request. If one
1110
+ number provided, it will be total request
1111
+ timeout. It can also be a pair (tuple) of
1112
+ (connection, read) timeouts.
1113
+ :type _request_timeout: int, tuple(int, int), optional
1114
+ :param _request_auth: set to override the auth_settings for an a single
1115
+ request; this effectively ignores the
1116
+ authentication in the spec for a single request.
1117
+ :type _request_auth: dict, optional
1118
+ :param _content_type: force content-type for the request.
1119
+ :type _content_type: str, Optional
1120
+ :param _headers: set to override the headers for a single
1121
+ request; this effectively ignores the headers
1122
+ in the spec for a single request.
1123
+ :type _headers: dict, optional
1124
+ :param _host_index: set to override the host_index for a single
1125
+ request; this effectively ignores the host_index
1126
+ in the spec for a single request.
1127
+ :type _host_index: int, optional
1128
+ :return: Returns the result object.
1129
+ """ # noqa: E501
1130
+
1131
+ _param = self._get_community_media_timeline_serialize(
1132
+ path_query_id=path_query_id,
1133
+ variables=variables,
1134
+ features=features,
1135
+ _request_auth=_request_auth,
1136
+ _content_type=_content_type,
1137
+ _headers=_headers,
1138
+ _host_index=_host_index
1139
+ )
1140
+
1141
+ _response_types_map: Dict[str, Optional[str]] = {
1142
+ '200': "CommunityMediaTimelineResponse",
1143
+ }
1144
+ response_data = self.api_client.call_api(
1145
+ *_param,
1146
+ _request_timeout=_request_timeout
1147
+ )
1148
+ response_data.read()
1149
+ return self.api_client.response_deserialize(
1150
+ response_data=response_data,
1151
+ response_types_map=_response_types_map,
1152
+ )
1153
+
1154
+
1155
+ @validate_call
1156
+ def get_community_media_timeline_without_preload_content(
1157
+ self,
1158
+ path_query_id: StrictStr,
1159
+ variables: StrictStr,
1160
+ features: StrictStr,
1161
+ _request_timeout: Union[
1162
+ None,
1163
+ Annotated[StrictFloat, Field(gt=0)],
1164
+ Tuple[
1165
+ Annotated[StrictFloat, Field(gt=0)],
1166
+ Annotated[StrictFloat, Field(gt=0)]
1167
+ ]
1168
+ ] = None,
1169
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1170
+ _content_type: Optional[StrictStr] = None,
1171
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1172
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1173
+ ) -> RESTResponseType:
1174
+ """get_community_media_timeline
1175
+
1176
+ get media list of community
1177
+
1178
+ :param path_query_id: (required)
1179
+ :type path_query_id: str
1180
+ :param variables: (required)
1181
+ :type variables: str
1182
+ :param features: (required)
1183
+ :type features: str
1184
+ :param _request_timeout: timeout setting for this request. If one
1185
+ number provided, it will be total request
1186
+ timeout. It can also be a pair (tuple) of
1187
+ (connection, read) timeouts.
1188
+ :type _request_timeout: int, tuple(int, int), optional
1189
+ :param _request_auth: set to override the auth_settings for an a single
1190
+ request; this effectively ignores the
1191
+ authentication in the spec for a single request.
1192
+ :type _request_auth: dict, optional
1193
+ :param _content_type: force content-type for the request.
1194
+ :type _content_type: str, Optional
1195
+ :param _headers: set to override the headers for a single
1196
+ request; this effectively ignores the headers
1197
+ in the spec for a single request.
1198
+ :type _headers: dict, optional
1199
+ :param _host_index: set to override the host_index for a single
1200
+ request; this effectively ignores the host_index
1201
+ in the spec for a single request.
1202
+ :type _host_index: int, optional
1203
+ :return: Returns the result object.
1204
+ """ # noqa: E501
1205
+
1206
+ _param = self._get_community_media_timeline_serialize(
1207
+ path_query_id=path_query_id,
1208
+ variables=variables,
1209
+ features=features,
1210
+ _request_auth=_request_auth,
1211
+ _content_type=_content_type,
1212
+ _headers=_headers,
1213
+ _host_index=_host_index
1214
+ )
1215
+
1216
+ _response_types_map: Dict[str, Optional[str]] = {
1217
+ '200': "CommunityMediaTimelineResponse",
1218
+ }
1219
+ response_data = self.api_client.call_api(
1220
+ *_param,
1221
+ _request_timeout=_request_timeout
1222
+ )
1223
+ return response_data.response
1224
+
1225
+
1226
+ def _get_community_media_timeline_serialize(
1227
+ self,
1228
+ path_query_id,
1229
+ variables,
1230
+ features,
1231
+ _request_auth,
1232
+ _content_type,
1233
+ _headers,
1234
+ _host_index,
1235
+ ) -> RequestSerialized:
1236
+
1237
+ _host = None
1238
+
1239
+ _collection_formats: Dict[str, str] = {
1240
+ }
1241
+
1242
+ _path_params: Dict[str, str] = {}
1243
+ _query_params: List[Tuple[str, str]] = []
1244
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1245
+ _form_params: List[Tuple[str, str]] = []
1246
+ _files: Dict[
1247
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1248
+ ] = {}
1249
+ _body_params: Optional[bytes] = None
1250
+
1251
+ # process the path parameters
1252
+ if path_query_id is not None:
1253
+ _path_params['pathQueryId'] = path_query_id
1254
+ # process the query parameters
1255
+ if variables is not None:
1256
+
1257
+ _query_params.append(('variables', variables))
1258
+
1259
+ if features is not None:
1260
+
1261
+ _query_params.append(('features', features))
1262
+
1263
+ # process the header parameters
1264
+ # process the form parameters
1265
+ # process the body parameter
1266
+
1267
+
1268
+ # set the HTTP header `Accept`
1269
+ if 'Accept' not in _header_params:
1270
+ _header_params['Accept'] = self.api_client.select_header_accept(
1271
+ [
1272
+ 'application/json'
1273
+ ]
1274
+ )
1275
+
1276
+
1277
+ # authentication setting
1278
+ _auth_settings: List[str] = [
1279
+ 'Accept',
1280
+ 'ClientLanguage',
1281
+ 'Priority',
1282
+ 'Referer',
1283
+ 'SecFetchDest',
1284
+ 'SecChUaPlatform',
1285
+ 'SecFetchMode',
1286
+ 'CsrfToken',
1287
+ 'ClientUuid',
1288
+ 'BearerAuth',
1289
+ 'GuestToken',
1290
+ 'SecChUa',
1291
+ 'CookieGt0',
1292
+ 'ClientTransactionId',
1293
+ 'ActiveUser',
1294
+ 'CookieCt0',
1295
+ 'UserAgent',
1296
+ 'AcceptLanguage',
1297
+ 'SecFetchSite',
1298
+ 'AuthType',
1299
+ 'CookieAuthToken',
1300
+ 'SecChUaMobile',
1301
+ 'AcceptEncoding'
1302
+ ]
1303
+
1304
+ return self.api_client.param_serialize(
1305
+ method='GET',
1306
+ resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
1307
+ path_params=_path_params,
1308
+ query_params=_query_params,
1309
+ header_params=_header_params,
1310
+ body=_body_params,
1311
+ post_params=_form_params,
1312
+ files=_files,
1313
+ auth_settings=_auth_settings,
1314
+ collection_formats=_collection_formats,
1315
+ _host=_host,
1316
+ _request_auth=_request_auth
1317
+ )
1318
+
1319
+
1320
+
1321
+
1322
+ @validate_call
1323
+ def get_community_tweets_timeline(
1324
+ self,
1325
+ path_query_id: StrictStr,
1326
+ variables: StrictStr,
1327
+ features: StrictStr,
1328
+ _request_timeout: Union[
1329
+ None,
1330
+ Annotated[StrictFloat, Field(gt=0)],
1331
+ Tuple[
1332
+ Annotated[StrictFloat, Field(gt=0)],
1333
+ Annotated[StrictFloat, Field(gt=0)]
1334
+ ]
1335
+ ] = None,
1336
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1337
+ _content_type: Optional[StrictStr] = None,
1338
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1339
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1340
+ ) -> CommunityTweetsTimelineResponse:
1341
+ """get_community_tweets_timeline
1342
+
1343
+ get tweet list of community. rankingMode:[Recency, Relevance]
1344
+
1345
+ :param path_query_id: (required)
1346
+ :type path_query_id: str
1347
+ :param variables: (required)
1348
+ :type variables: str
1349
+ :param features: (required)
1350
+ :type features: str
1351
+ :param _request_timeout: timeout setting for this request. If one
1352
+ number provided, it will be total request
1353
+ timeout. It can also be a pair (tuple) of
1354
+ (connection, read) timeouts.
1355
+ :type _request_timeout: int, tuple(int, int), optional
1356
+ :param _request_auth: set to override the auth_settings for an a single
1357
+ request; this effectively ignores the
1358
+ authentication in the spec for a single request.
1359
+ :type _request_auth: dict, optional
1360
+ :param _content_type: force content-type for the request.
1361
+ :type _content_type: str, Optional
1362
+ :param _headers: set to override the headers for a single
1363
+ request; this effectively ignores the headers
1364
+ in the spec for a single request.
1365
+ :type _headers: dict, optional
1366
+ :param _host_index: set to override the host_index for a single
1367
+ request; this effectively ignores the host_index
1368
+ in the spec for a single request.
1369
+ :type _host_index: int, optional
1370
+ :return: Returns the result object.
1371
+ """ # noqa: E501
1372
+
1373
+ _param = self._get_community_tweets_timeline_serialize(
1374
+ path_query_id=path_query_id,
1375
+ variables=variables,
1376
+ features=features,
1377
+ _request_auth=_request_auth,
1378
+ _content_type=_content_type,
1379
+ _headers=_headers,
1380
+ _host_index=_host_index
1381
+ )
1382
+
1383
+ _response_types_map: Dict[str, Optional[str]] = {
1384
+ '200': "CommunityTweetsTimelineResponse",
1385
+ }
1386
+ response_data = self.api_client.call_api(
1387
+ *_param,
1388
+ _request_timeout=_request_timeout
1389
+ )
1390
+ response_data.read()
1391
+ return self.api_client.response_deserialize(
1392
+ response_data=response_data,
1393
+ response_types_map=_response_types_map,
1394
+ ).data
1395
+
1396
+
1397
+ @validate_call
1398
+ def get_community_tweets_timeline_with_http_info(
1399
+ self,
1400
+ path_query_id: StrictStr,
1401
+ variables: StrictStr,
1402
+ features: StrictStr,
1403
+ _request_timeout: Union[
1404
+ None,
1405
+ Annotated[StrictFloat, Field(gt=0)],
1406
+ Tuple[
1407
+ Annotated[StrictFloat, Field(gt=0)],
1408
+ Annotated[StrictFloat, Field(gt=0)]
1409
+ ]
1410
+ ] = None,
1411
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1412
+ _content_type: Optional[StrictStr] = None,
1413
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1414
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1415
+ ) -> ApiResponse[CommunityTweetsTimelineResponse]:
1416
+ """get_community_tweets_timeline
1417
+
1418
+ get tweet list of community. rankingMode:[Recency, Relevance]
1419
+
1420
+ :param path_query_id: (required)
1421
+ :type path_query_id: str
1422
+ :param variables: (required)
1423
+ :type variables: str
1424
+ :param features: (required)
1425
+ :type features: str
1426
+ :param _request_timeout: timeout setting for this request. If one
1427
+ number provided, it will be total request
1428
+ timeout. It can also be a pair (tuple) of
1429
+ (connection, read) timeouts.
1430
+ :type _request_timeout: int, tuple(int, int), optional
1431
+ :param _request_auth: set to override the auth_settings for an a single
1432
+ request; this effectively ignores the
1433
+ authentication in the spec for a single request.
1434
+ :type _request_auth: dict, optional
1435
+ :param _content_type: force content-type for the request.
1436
+ :type _content_type: str, Optional
1437
+ :param _headers: set to override the headers for a single
1438
+ request; this effectively ignores the headers
1439
+ in the spec for a single request.
1440
+ :type _headers: dict, optional
1441
+ :param _host_index: set to override the host_index for a single
1442
+ request; this effectively ignores the host_index
1443
+ in the spec for a single request.
1444
+ :type _host_index: int, optional
1445
+ :return: Returns the result object.
1446
+ """ # noqa: E501
1447
+
1448
+ _param = self._get_community_tweets_timeline_serialize(
1449
+ path_query_id=path_query_id,
1450
+ variables=variables,
1451
+ features=features,
1452
+ _request_auth=_request_auth,
1453
+ _content_type=_content_type,
1454
+ _headers=_headers,
1455
+ _host_index=_host_index
1456
+ )
1457
+
1458
+ _response_types_map: Dict[str, Optional[str]] = {
1459
+ '200': "CommunityTweetsTimelineResponse",
1460
+ }
1461
+ response_data = self.api_client.call_api(
1462
+ *_param,
1463
+ _request_timeout=_request_timeout
1464
+ )
1465
+ response_data.read()
1466
+ return self.api_client.response_deserialize(
1467
+ response_data=response_data,
1468
+ response_types_map=_response_types_map,
1469
+ )
1470
+
1471
+
1472
+ @validate_call
1473
+ def get_community_tweets_timeline_without_preload_content(
1474
+ self,
1475
+ path_query_id: StrictStr,
1476
+ variables: StrictStr,
1477
+ features: StrictStr,
1478
+ _request_timeout: Union[
1479
+ None,
1480
+ Annotated[StrictFloat, Field(gt=0)],
1481
+ Tuple[
1482
+ Annotated[StrictFloat, Field(gt=0)],
1483
+ Annotated[StrictFloat, Field(gt=0)]
1484
+ ]
1485
+ ] = None,
1486
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1487
+ _content_type: Optional[StrictStr] = None,
1488
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1489
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1490
+ ) -> RESTResponseType:
1491
+ """get_community_tweets_timeline
1492
+
1493
+ get tweet list of community. rankingMode:[Recency, Relevance]
1494
+
1495
+ :param path_query_id: (required)
1496
+ :type path_query_id: str
1497
+ :param variables: (required)
1498
+ :type variables: str
1499
+ :param features: (required)
1500
+ :type features: str
1501
+ :param _request_timeout: timeout setting for this request. If one
1502
+ number provided, it will be total request
1503
+ timeout. It can also be a pair (tuple) of
1504
+ (connection, read) timeouts.
1505
+ :type _request_timeout: int, tuple(int, int), optional
1506
+ :param _request_auth: set to override the auth_settings for an a single
1507
+ request; this effectively ignores the
1508
+ authentication in the spec for a single request.
1509
+ :type _request_auth: dict, optional
1510
+ :param _content_type: force content-type for the request.
1511
+ :type _content_type: str, Optional
1512
+ :param _headers: set to override the headers for a single
1513
+ request; this effectively ignores the headers
1514
+ in the spec for a single request.
1515
+ :type _headers: dict, optional
1516
+ :param _host_index: set to override the host_index for a single
1517
+ request; this effectively ignores the host_index
1518
+ in the spec for a single request.
1519
+ :type _host_index: int, optional
1520
+ :return: Returns the result object.
1521
+ """ # noqa: E501
1522
+
1523
+ _param = self._get_community_tweets_timeline_serialize(
1524
+ path_query_id=path_query_id,
1525
+ variables=variables,
1526
+ features=features,
1527
+ _request_auth=_request_auth,
1528
+ _content_type=_content_type,
1529
+ _headers=_headers,
1530
+ _host_index=_host_index
1531
+ )
1532
+
1533
+ _response_types_map: Dict[str, Optional[str]] = {
1534
+ '200': "CommunityTweetsTimelineResponse",
1535
+ }
1536
+ response_data = self.api_client.call_api(
1537
+ *_param,
1538
+ _request_timeout=_request_timeout
1539
+ )
1540
+ return response_data.response
1541
+
1542
+
1543
+ def _get_community_tweets_timeline_serialize(
1544
+ self,
1545
+ path_query_id,
1546
+ variables,
1547
+ features,
1548
+ _request_auth,
1549
+ _content_type,
1550
+ _headers,
1551
+ _host_index,
1552
+ ) -> RequestSerialized:
1553
+
1554
+ _host = None
1555
+
1556
+ _collection_formats: Dict[str, str] = {
1557
+ }
1558
+
1559
+ _path_params: Dict[str, str] = {}
1560
+ _query_params: List[Tuple[str, str]] = []
1561
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1562
+ _form_params: List[Tuple[str, str]] = []
1563
+ _files: Dict[
1564
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1565
+ ] = {}
1566
+ _body_params: Optional[bytes] = None
1567
+
1568
+ # process the path parameters
1569
+ if path_query_id is not None:
1570
+ _path_params['pathQueryId'] = path_query_id
1571
+ # process the query parameters
1572
+ if variables is not None:
1573
+
1574
+ _query_params.append(('variables', variables))
1575
+
1576
+ if features is not None:
1577
+
1578
+ _query_params.append(('features', features))
1579
+
1580
+ # process the header parameters
1581
+ # process the form parameters
1582
+ # process the body parameter
1583
+
1584
+
1585
+ # set the HTTP header `Accept`
1586
+ if 'Accept' not in _header_params:
1587
+ _header_params['Accept'] = self.api_client.select_header_accept(
1588
+ [
1589
+ 'application/json'
1590
+ ]
1591
+ )
1592
+
1593
+
1594
+ # authentication setting
1595
+ _auth_settings: List[str] = [
1596
+ 'Accept',
1597
+ 'ClientLanguage',
1598
+ 'Priority',
1599
+ 'Referer',
1600
+ 'SecFetchDest',
1601
+ 'SecChUaPlatform',
1602
+ 'SecFetchMode',
1603
+ 'CsrfToken',
1604
+ 'ClientUuid',
1605
+ 'BearerAuth',
1606
+ 'GuestToken',
1607
+ 'SecChUa',
1608
+ 'CookieGt0',
1609
+ 'ClientTransactionId',
1610
+ 'ActiveUser',
1611
+ 'CookieCt0',
1612
+ 'UserAgent',
1613
+ 'AcceptLanguage',
1614
+ 'SecFetchSite',
1615
+ 'AuthType',
1616
+ 'CookieAuthToken',
1617
+ 'SecChUaMobile',
1618
+ 'AcceptEncoding'
1619
+ ]
1620
+
1621
+ return self.api_client.param_serialize(
1622
+ method='GET',
1623
+ resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
1624
+ path_params=_path_params,
1625
+ query_params=_query_params,
1626
+ header_params=_header_params,
1627
+ body=_body_params,
1628
+ post_params=_form_params,
1629
+ files=_files,
1630
+ auth_settings=_auth_settings,
1631
+ collection_formats=_collection_formats,
1632
+ _host=_host,
1633
+ _request_auth=_request_auth
1634
+ )
1635
+
1636
+
1637
+
1638
+
1639
+ @validate_call
1640
+ def get_connect_tab_timeline(
1641
+ self,
1642
+ path_query_id: StrictStr,
1643
+ variables: StrictStr,
1644
+ features: StrictStr,
1645
+ _request_timeout: Union[
1646
+ None,
1647
+ Annotated[StrictFloat, Field(gt=0)],
1648
+ Tuple[
1649
+ Annotated[StrictFloat, Field(gt=0)],
1650
+ Annotated[StrictFloat, Field(gt=0)]
1651
+ ]
1652
+ ] = None,
1653
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1654
+ _content_type: Optional[StrictStr] = None,
1655
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1656
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1657
+ ) -> ConnectTabTimelineResponse:
1658
+ """get_connect_tab_timeline
1659
+
1660
+ get the Connect tab (who to follow) timeline
1661
+
1662
+ :param path_query_id: (required)
1663
+ :type path_query_id: str
1664
+ :param variables: (required)
1665
+ :type variables: str
1666
+ :param features: (required)
1667
+ :type features: str
1668
+ :param _request_timeout: timeout setting for this request. If one
1669
+ number provided, it will be total request
1670
+ timeout. It can also be a pair (tuple) of
1671
+ (connection, read) timeouts.
1672
+ :type _request_timeout: int, tuple(int, int), optional
1673
+ :param _request_auth: set to override the auth_settings for an a single
1674
+ request; this effectively ignores the
1675
+ authentication in the spec for a single request.
1676
+ :type _request_auth: dict, optional
1677
+ :param _content_type: force content-type for the request.
1678
+ :type _content_type: str, Optional
1679
+ :param _headers: set to override the headers for a single
1680
+ request; this effectively ignores the headers
1681
+ in the spec for a single request.
1682
+ :type _headers: dict, optional
1683
+ :param _host_index: set to override the host_index for a single
1684
+ request; this effectively ignores the host_index
1685
+ in the spec for a single request.
1686
+ :type _host_index: int, optional
1687
+ :return: Returns the result object.
1688
+ """ # noqa: E501
1689
+
1690
+ _param = self._get_connect_tab_timeline_serialize(
1691
+ path_query_id=path_query_id,
1692
+ variables=variables,
1693
+ features=features,
1694
+ _request_auth=_request_auth,
1695
+ _content_type=_content_type,
1696
+ _headers=_headers,
1697
+ _host_index=_host_index
1698
+ )
1699
+
1700
+ _response_types_map: Dict[str, Optional[str]] = {
1701
+ '200': "ConnectTabTimelineResponse",
1702
+ }
1703
+ response_data = self.api_client.call_api(
1704
+ *_param,
1705
+ _request_timeout=_request_timeout
1706
+ )
1707
+ response_data.read()
1708
+ return self.api_client.response_deserialize(
1709
+ response_data=response_data,
1710
+ response_types_map=_response_types_map,
1711
+ ).data
1712
+
1713
+
1714
+ @validate_call
1715
+ def get_connect_tab_timeline_with_http_info(
1716
+ self,
1717
+ path_query_id: StrictStr,
1718
+ variables: StrictStr,
1719
+ features: StrictStr,
1720
+ _request_timeout: Union[
1721
+ None,
1722
+ Annotated[StrictFloat, Field(gt=0)],
1723
+ Tuple[
1724
+ Annotated[StrictFloat, Field(gt=0)],
1725
+ Annotated[StrictFloat, Field(gt=0)]
1726
+ ]
1727
+ ] = None,
1728
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1729
+ _content_type: Optional[StrictStr] = None,
1730
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1731
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1732
+ ) -> ApiResponse[ConnectTabTimelineResponse]:
1733
+ """get_connect_tab_timeline
1734
+
1735
+ get the Connect tab (who to follow) timeline
1736
+
1737
+ :param path_query_id: (required)
1738
+ :type path_query_id: str
1739
+ :param variables: (required)
1740
+ :type variables: str
1741
+ :param features: (required)
1742
+ :type features: str
1743
+ :param _request_timeout: timeout setting for this request. If one
1744
+ number provided, it will be total request
1745
+ timeout. It can also be a pair (tuple) of
1746
+ (connection, read) timeouts.
1747
+ :type _request_timeout: int, tuple(int, int), optional
1748
+ :param _request_auth: set to override the auth_settings for an a single
1749
+ request; this effectively ignores the
1750
+ authentication in the spec for a single request.
1751
+ :type _request_auth: dict, optional
1752
+ :param _content_type: force content-type for the request.
1753
+ :type _content_type: str, Optional
1754
+ :param _headers: set to override the headers for a single
1755
+ request; this effectively ignores the headers
1756
+ in the spec for a single request.
1757
+ :type _headers: dict, optional
1758
+ :param _host_index: set to override the host_index for a single
1759
+ request; this effectively ignores the host_index
1760
+ in the spec for a single request.
1761
+ :type _host_index: int, optional
1762
+ :return: Returns the result object.
1763
+ """ # noqa: E501
1764
+
1765
+ _param = self._get_connect_tab_timeline_serialize(
1766
+ path_query_id=path_query_id,
1767
+ variables=variables,
1768
+ features=features,
1769
+ _request_auth=_request_auth,
1770
+ _content_type=_content_type,
1771
+ _headers=_headers,
1772
+ _host_index=_host_index
1773
+ )
1774
+
1775
+ _response_types_map: Dict[str, Optional[str]] = {
1776
+ '200': "ConnectTabTimelineResponse",
1777
+ }
1778
+ response_data = self.api_client.call_api(
1779
+ *_param,
1780
+ _request_timeout=_request_timeout
1781
+ )
1782
+ response_data.read()
1783
+ return self.api_client.response_deserialize(
1784
+ response_data=response_data,
1785
+ response_types_map=_response_types_map,
1786
+ )
1787
+
1788
+
1789
+ @validate_call
1790
+ def get_connect_tab_timeline_without_preload_content(
1791
+ self,
1792
+ path_query_id: StrictStr,
1793
+ variables: StrictStr,
1794
+ features: StrictStr,
1795
+ _request_timeout: Union[
1796
+ None,
1797
+ Annotated[StrictFloat, Field(gt=0)],
1798
+ Tuple[
1799
+ Annotated[StrictFloat, Field(gt=0)],
1800
+ Annotated[StrictFloat, Field(gt=0)]
1801
+ ]
1802
+ ] = None,
1803
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1804
+ _content_type: Optional[StrictStr] = None,
1805
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1806
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1807
+ ) -> RESTResponseType:
1808
+ """get_connect_tab_timeline
1809
+
1810
+ get the Connect tab (who to follow) timeline
1811
+
1812
+ :param path_query_id: (required)
1813
+ :type path_query_id: str
1814
+ :param variables: (required)
1815
+ :type variables: str
1816
+ :param features: (required)
1817
+ :type features: str
1818
+ :param _request_timeout: timeout setting for this request. If one
1819
+ number provided, it will be total request
1820
+ timeout. It can also be a pair (tuple) of
1821
+ (connection, read) timeouts.
1822
+ :type _request_timeout: int, tuple(int, int), optional
1823
+ :param _request_auth: set to override the auth_settings for an a single
1824
+ request; this effectively ignores the
1825
+ authentication in the spec for a single request.
1826
+ :type _request_auth: dict, optional
1827
+ :param _content_type: force content-type for the request.
1828
+ :type _content_type: str, Optional
1829
+ :param _headers: set to override the headers for a single
1830
+ request; this effectively ignores the headers
1831
+ in the spec for a single request.
1832
+ :type _headers: dict, optional
1833
+ :param _host_index: set to override the host_index for a single
1834
+ request; this effectively ignores the host_index
1835
+ in the spec for a single request.
1836
+ :type _host_index: int, optional
1837
+ :return: Returns the result object.
1838
+ """ # noqa: E501
1839
+
1840
+ _param = self._get_connect_tab_timeline_serialize(
1841
+ path_query_id=path_query_id,
1842
+ variables=variables,
1843
+ features=features,
1844
+ _request_auth=_request_auth,
1845
+ _content_type=_content_type,
1846
+ _headers=_headers,
1847
+ _host_index=_host_index
1848
+ )
1849
+
1850
+ _response_types_map: Dict[str, Optional[str]] = {
1851
+ '200': "ConnectTabTimelineResponse",
1852
+ }
1853
+ response_data = self.api_client.call_api(
1854
+ *_param,
1855
+ _request_timeout=_request_timeout
1856
+ )
1857
+ return response_data.response
1858
+
1859
+
1860
+ def _get_connect_tab_timeline_serialize(
1861
+ self,
1862
+ path_query_id,
1863
+ variables,
1864
+ features,
1865
+ _request_auth,
1866
+ _content_type,
1867
+ _headers,
1868
+ _host_index,
1869
+ ) -> RequestSerialized:
1870
+
1871
+ _host = None
1872
+
1873
+ _collection_formats: Dict[str, str] = {
1874
+ }
1875
+
1876
+ _path_params: Dict[str, str] = {}
1877
+ _query_params: List[Tuple[str, str]] = []
1878
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1879
+ _form_params: List[Tuple[str, str]] = []
1880
+ _files: Dict[
1881
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1882
+ ] = {}
1883
+ _body_params: Optional[bytes] = None
1884
+
1885
+ # process the path parameters
1886
+ if path_query_id is not None:
1887
+ _path_params['pathQueryId'] = path_query_id
1888
+ # process the query parameters
1889
+ if variables is not None:
1890
+
1891
+ _query_params.append(('variables', variables))
1892
+
1893
+ if features is not None:
1894
+
1895
+ _query_params.append(('features', features))
1896
+
1897
+ # process the header parameters
1898
+ # process the form parameters
1899
+ # process the body parameter
1900
+
1901
+
1902
+ # set the HTTP header `Accept`
1903
+ if 'Accept' not in _header_params:
1904
+ _header_params['Accept'] = self.api_client.select_header_accept(
1905
+ [
1906
+ 'application/json'
1907
+ ]
1908
+ )
1909
+
1910
+
1911
+ # authentication setting
1912
+ _auth_settings: List[str] = [
1913
+ 'Accept',
1914
+ 'ClientLanguage',
1915
+ 'Priority',
1916
+ 'Referer',
1917
+ 'SecFetchDest',
1918
+ 'SecChUaPlatform',
1919
+ 'SecFetchMode',
1920
+ 'CsrfToken',
1921
+ 'ClientUuid',
1922
+ 'BearerAuth',
1923
+ 'GuestToken',
1924
+ 'SecChUa',
1925
+ 'CookieGt0',
1926
+ 'ClientTransactionId',
1927
+ 'ActiveUser',
1928
+ 'CookieCt0',
1929
+ 'UserAgent',
1930
+ 'AcceptLanguage',
1931
+ 'SecFetchSite',
1932
+ 'AuthType',
1933
+ 'CookieAuthToken',
1934
+ 'SecChUaMobile',
1935
+ 'AcceptEncoding'
1936
+ ]
1937
+
1938
+ return self.api_client.param_serialize(
1939
+ method='GET',
1940
+ resource_path='/graphql/{pathQueryId}/ConnectTabTimeline',
1941
+ path_params=_path_params,
1942
+ query_params=_query_params,
1943
+ header_params=_header_params,
1944
+ body=_body_params,
1945
+ post_params=_form_params,
1946
+ files=_files,
1947
+ auth_settings=_auth_settings,
1948
+ collection_formats=_collection_formats,
1949
+ _host=_host,
1950
+ _request_auth=_request_auth
1951
+ )
1952
+
1953
+
1954
+
1955
+
1956
+ @validate_call
1957
+ def get_explore_page(
1958
+ self,
1959
+ path_query_id: StrictStr,
1960
+ variables: StrictStr,
1961
+ features: StrictStr,
1962
+ _request_timeout: Union[
1963
+ None,
1964
+ Annotated[StrictFloat, Field(gt=0)],
1965
+ Tuple[
1966
+ Annotated[StrictFloat, Field(gt=0)],
1967
+ Annotated[StrictFloat, Field(gt=0)]
1968
+ ]
1969
+ ] = None,
1970
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1971
+ _content_type: Optional[StrictStr] = None,
1972
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1973
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1974
+ ) -> ExplorePageResponse:
1975
+ """get_explore_page
1976
+
1977
+ get the explore page (segmented timelines)
1978
+
1979
+ :param path_query_id: (required)
1980
+ :type path_query_id: str
1981
+ :param variables: (required)
1982
+ :type variables: str
1983
+ :param features: (required)
1984
+ :type features: str
1985
+ :param _request_timeout: timeout setting for this request. If one
1986
+ number provided, it will be total request
1987
+ timeout. It can also be a pair (tuple) of
1988
+ (connection, read) timeouts.
1989
+ :type _request_timeout: int, tuple(int, int), optional
1990
+ :param _request_auth: set to override the auth_settings for an a single
1991
+ request; this effectively ignores the
1992
+ authentication in the spec for a single request.
1993
+ :type _request_auth: dict, optional
1994
+ :param _content_type: force content-type for the request.
1995
+ :type _content_type: str, Optional
1996
+ :param _headers: set to override the headers for a single
1997
+ request; this effectively ignores the headers
1998
+ in the spec for a single request.
1999
+ :type _headers: dict, optional
2000
+ :param _host_index: set to override the host_index for a single
2001
+ request; this effectively ignores the host_index
2002
+ in the spec for a single request.
2003
+ :type _host_index: int, optional
2004
+ :return: Returns the result object.
2005
+ """ # noqa: E501
2006
+
2007
+ _param = self._get_explore_page_serialize(
2008
+ path_query_id=path_query_id,
2009
+ variables=variables,
2010
+ features=features,
2011
+ _request_auth=_request_auth,
2012
+ _content_type=_content_type,
2013
+ _headers=_headers,
2014
+ _host_index=_host_index
2015
+ )
2016
+
2017
+ _response_types_map: Dict[str, Optional[str]] = {
2018
+ '200': "ExplorePageResponse",
2019
+ }
2020
+ response_data = self.api_client.call_api(
2021
+ *_param,
2022
+ _request_timeout=_request_timeout
2023
+ )
2024
+ response_data.read()
2025
+ return self.api_client.response_deserialize(
2026
+ response_data=response_data,
2027
+ response_types_map=_response_types_map,
2028
+ ).data
2029
+
2030
+
2031
+ @validate_call
2032
+ def get_explore_page_with_http_info(
2033
+ self,
2034
+ path_query_id: StrictStr,
2035
+ variables: StrictStr,
2036
+ features: StrictStr,
2037
+ _request_timeout: Union[
2038
+ None,
2039
+ Annotated[StrictFloat, Field(gt=0)],
2040
+ Tuple[
2041
+ Annotated[StrictFloat, Field(gt=0)],
2042
+ Annotated[StrictFloat, Field(gt=0)]
2043
+ ]
2044
+ ] = None,
2045
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2046
+ _content_type: Optional[StrictStr] = None,
2047
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2048
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2049
+ ) -> ApiResponse[ExplorePageResponse]:
2050
+ """get_explore_page
2051
+
2052
+ get the explore page (segmented timelines)
2053
+
2054
+ :param path_query_id: (required)
2055
+ :type path_query_id: str
2056
+ :param variables: (required)
2057
+ :type variables: str
2058
+ :param features: (required)
2059
+ :type features: str
2060
+ :param _request_timeout: timeout setting for this request. If one
2061
+ number provided, it will be total request
2062
+ timeout. It can also be a pair (tuple) of
2063
+ (connection, read) timeouts.
2064
+ :type _request_timeout: int, tuple(int, int), optional
2065
+ :param _request_auth: set to override the auth_settings for an a single
2066
+ request; this effectively ignores the
2067
+ authentication in the spec for a single request.
2068
+ :type _request_auth: dict, optional
2069
+ :param _content_type: force content-type for the request.
2070
+ :type _content_type: str, Optional
2071
+ :param _headers: set to override the headers for a single
2072
+ request; this effectively ignores the headers
2073
+ in the spec for a single request.
2074
+ :type _headers: dict, optional
2075
+ :param _host_index: set to override the host_index for a single
2076
+ request; this effectively ignores the host_index
2077
+ in the spec for a single request.
2078
+ :type _host_index: int, optional
2079
+ :return: Returns the result object.
2080
+ """ # noqa: E501
2081
+
2082
+ _param = self._get_explore_page_serialize(
2083
+ path_query_id=path_query_id,
2084
+ variables=variables,
2085
+ features=features,
2086
+ _request_auth=_request_auth,
2087
+ _content_type=_content_type,
2088
+ _headers=_headers,
2089
+ _host_index=_host_index
2090
+ )
2091
+
2092
+ _response_types_map: Dict[str, Optional[str]] = {
2093
+ '200': "ExplorePageResponse",
2094
+ }
2095
+ response_data = self.api_client.call_api(
2096
+ *_param,
2097
+ _request_timeout=_request_timeout
2098
+ )
2099
+ response_data.read()
2100
+ return self.api_client.response_deserialize(
2101
+ response_data=response_data,
2102
+ response_types_map=_response_types_map,
2103
+ )
2104
+
2105
+
2106
+ @validate_call
2107
+ def get_explore_page_without_preload_content(
2108
+ self,
2109
+ path_query_id: StrictStr,
2110
+ variables: StrictStr,
2111
+ features: StrictStr,
2112
+ _request_timeout: Union[
2113
+ None,
2114
+ Annotated[StrictFloat, Field(gt=0)],
2115
+ Tuple[
2116
+ Annotated[StrictFloat, Field(gt=0)],
2117
+ Annotated[StrictFloat, Field(gt=0)]
2118
+ ]
2119
+ ] = None,
2120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2121
+ _content_type: Optional[StrictStr] = None,
2122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2124
+ ) -> RESTResponseType:
2125
+ """get_explore_page
2126
+
2127
+ get the explore page (segmented timelines)
2128
+
2129
+ :param path_query_id: (required)
2130
+ :type path_query_id: str
2131
+ :param variables: (required)
2132
+ :type variables: str
2133
+ :param features: (required)
2134
+ :type features: str
2135
+ :param _request_timeout: timeout setting for this request. If one
2136
+ number provided, it will be total request
2137
+ timeout. It can also be a pair (tuple) of
2138
+ (connection, read) timeouts.
2139
+ :type _request_timeout: int, tuple(int, int), optional
2140
+ :param _request_auth: set to override the auth_settings for an a single
2141
+ request; this effectively ignores the
2142
+ authentication in the spec for a single request.
2143
+ :type _request_auth: dict, optional
2144
+ :param _content_type: force content-type for the request.
2145
+ :type _content_type: str, Optional
2146
+ :param _headers: set to override the headers for a single
2147
+ request; this effectively ignores the headers
2148
+ in the spec for a single request.
2149
+ :type _headers: dict, optional
2150
+ :param _host_index: set to override the host_index for a single
2151
+ request; this effectively ignores the host_index
2152
+ in the spec for a single request.
2153
+ :type _host_index: int, optional
2154
+ :return: Returns the result object.
2155
+ """ # noqa: E501
2156
+
2157
+ _param = self._get_explore_page_serialize(
2158
+ path_query_id=path_query_id,
2159
+ variables=variables,
2160
+ features=features,
2161
+ _request_auth=_request_auth,
2162
+ _content_type=_content_type,
2163
+ _headers=_headers,
2164
+ _host_index=_host_index
2165
+ )
2166
+
2167
+ _response_types_map: Dict[str, Optional[str]] = {
2168
+ '200': "ExplorePageResponse",
2169
+ }
2170
+ response_data = self.api_client.call_api(
2171
+ *_param,
2172
+ _request_timeout=_request_timeout
2173
+ )
2174
+ return response_data.response
2175
+
2176
+
2177
+ def _get_explore_page_serialize(
2178
+ self,
2179
+ path_query_id,
2180
+ variables,
2181
+ features,
2182
+ _request_auth,
2183
+ _content_type,
2184
+ _headers,
2185
+ _host_index,
2186
+ ) -> RequestSerialized:
2187
+
2188
+ _host = None
2189
+
2190
+ _collection_formats: Dict[str, str] = {
2191
+ }
2192
+
2193
+ _path_params: Dict[str, str] = {}
2194
+ _query_params: List[Tuple[str, str]] = []
2195
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2196
+ _form_params: List[Tuple[str, str]] = []
2197
+ _files: Dict[
2198
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2199
+ ] = {}
2200
+ _body_params: Optional[bytes] = None
2201
+
2202
+ # process the path parameters
2203
+ if path_query_id is not None:
2204
+ _path_params['pathQueryId'] = path_query_id
2205
+ # process the query parameters
2206
+ if variables is not None:
2207
+
2208
+ _query_params.append(('variables', variables))
2209
+
2210
+ if features is not None:
2211
+
2212
+ _query_params.append(('features', features))
2213
+
2214
+ # process the header parameters
2215
+ # process the form parameters
2216
+ # process the body parameter
2217
+
2218
+
2219
+ # set the HTTP header `Accept`
2220
+ if 'Accept' not in _header_params:
2221
+ _header_params['Accept'] = self.api_client.select_header_accept(
2222
+ [
2223
+ 'application/json'
2224
+ ]
2225
+ )
2226
+
2227
+
2228
+ # authentication setting
2229
+ _auth_settings: List[str] = [
2230
+ 'Accept',
2231
+ 'ClientLanguage',
2232
+ 'Priority',
2233
+ 'Referer',
2234
+ 'SecFetchDest',
2235
+ 'SecChUaPlatform',
2236
+ 'SecFetchMode',
2237
+ 'CsrfToken',
2238
+ 'ClientUuid',
2239
+ 'BearerAuth',
2240
+ 'GuestToken',
2241
+ 'SecChUa',
2242
+ 'CookieGt0',
2243
+ 'ClientTransactionId',
2244
+ 'ActiveUser',
2245
+ 'CookieCt0',
2246
+ 'UserAgent',
2247
+ 'AcceptLanguage',
2248
+ 'SecFetchSite',
2249
+ 'AuthType',
2250
+ 'CookieAuthToken',
2251
+ 'SecChUaMobile',
2252
+ 'AcceptEncoding'
2253
+ ]
2254
+
2255
+ return self.api_client.param_serialize(
2256
+ method='GET',
2257
+ resource_path='/graphql/{pathQueryId}/ExplorePage',
2258
+ path_params=_path_params,
2259
+ query_params=_query_params,
2260
+ header_params=_header_params,
2261
+ body=_body_params,
2262
+ post_params=_form_params,
2263
+ files=_files,
2264
+ auth_settings=_auth_settings,
2265
+ collection_formats=_collection_formats,
2266
+ _host=_host,
2267
+ _request_auth=_request_auth
2268
+ )
2269
+
2270
+
2271
+
2272
+
2273
+ @validate_call
2274
+ def get_generic_timeline_by_id(
2275
+ self,
2276
+ path_query_id: StrictStr,
2277
+ variables: StrictStr,
2278
+ features: StrictStr,
2279
+ _request_timeout: Union[
2280
+ None,
2281
+ Annotated[StrictFloat, Field(gt=0)],
2282
+ Tuple[
2283
+ Annotated[StrictFloat, Field(gt=0)],
2284
+ Annotated[StrictFloat, Field(gt=0)]
2285
+ ]
2286
+ ] = None,
2287
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2288
+ _content_type: Optional[StrictStr] = None,
2289
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2290
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2291
+ ) -> GenericTimelineByIdResponse:
2292
+ """get_generic_timeline_by_id
2293
+
2294
+ get a generic timeline by its id (explore tabs)
2295
+
2296
+ :param path_query_id: (required)
2297
+ :type path_query_id: str
2298
+ :param variables: (required)
2299
+ :type variables: str
2300
+ :param features: (required)
2301
+ :type features: str
2302
+ :param _request_timeout: timeout setting for this request. If one
2303
+ number provided, it will be total request
2304
+ timeout. It can also be a pair (tuple) of
2305
+ (connection, read) timeouts.
2306
+ :type _request_timeout: int, tuple(int, int), optional
2307
+ :param _request_auth: set to override the auth_settings for an a single
2308
+ request; this effectively ignores the
2309
+ authentication in the spec for a single request.
2310
+ :type _request_auth: dict, optional
2311
+ :param _content_type: force content-type for the request.
2312
+ :type _content_type: str, Optional
2313
+ :param _headers: set to override the headers for a single
2314
+ request; this effectively ignores the headers
2315
+ in the spec for a single request.
2316
+ :type _headers: dict, optional
2317
+ :param _host_index: set to override the host_index for a single
2318
+ request; this effectively ignores the host_index
2319
+ in the spec for a single request.
2320
+ :type _host_index: int, optional
2321
+ :return: Returns the result object.
2322
+ """ # noqa: E501
2323
+
2324
+ _param = self._get_generic_timeline_by_id_serialize(
2325
+ path_query_id=path_query_id,
2326
+ variables=variables,
2327
+ features=features,
2328
+ _request_auth=_request_auth,
2329
+ _content_type=_content_type,
2330
+ _headers=_headers,
2331
+ _host_index=_host_index
2332
+ )
2333
+
2334
+ _response_types_map: Dict[str, Optional[str]] = {
2335
+ '200': "GenericTimelineByIdResponse",
2336
+ }
2337
+ response_data = self.api_client.call_api(
2338
+ *_param,
2339
+ _request_timeout=_request_timeout
2340
+ )
2341
+ response_data.read()
2342
+ return self.api_client.response_deserialize(
2343
+ response_data=response_data,
2344
+ response_types_map=_response_types_map,
2345
+ ).data
2346
+
2347
+
2348
+ @validate_call
2349
+ def get_generic_timeline_by_id_with_http_info(
2350
+ self,
2351
+ path_query_id: StrictStr,
2352
+ variables: StrictStr,
2353
+ features: StrictStr,
2354
+ _request_timeout: Union[
2355
+ None,
2356
+ Annotated[StrictFloat, Field(gt=0)],
2357
+ Tuple[
2358
+ Annotated[StrictFloat, Field(gt=0)],
2359
+ Annotated[StrictFloat, Field(gt=0)]
2360
+ ]
2361
+ ] = None,
2362
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2363
+ _content_type: Optional[StrictStr] = None,
2364
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2365
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2366
+ ) -> ApiResponse[GenericTimelineByIdResponse]:
2367
+ """get_generic_timeline_by_id
2368
+
2369
+ get a generic timeline by its id (explore tabs)
2370
+
2371
+ :param path_query_id: (required)
2372
+ :type path_query_id: str
2373
+ :param variables: (required)
2374
+ :type variables: str
2375
+ :param features: (required)
2376
+ :type features: str
2377
+ :param _request_timeout: timeout setting for this request. If one
2378
+ number provided, it will be total request
2379
+ timeout. It can also be a pair (tuple) of
2380
+ (connection, read) timeouts.
2381
+ :type _request_timeout: int, tuple(int, int), optional
2382
+ :param _request_auth: set to override the auth_settings for an a single
2383
+ request; this effectively ignores the
2384
+ authentication in the spec for a single request.
2385
+ :type _request_auth: dict, optional
2386
+ :param _content_type: force content-type for the request.
2387
+ :type _content_type: str, Optional
2388
+ :param _headers: set to override the headers for a single
2389
+ request; this effectively ignores the headers
2390
+ in the spec for a single request.
2391
+ :type _headers: dict, optional
2392
+ :param _host_index: set to override the host_index for a single
2393
+ request; this effectively ignores the host_index
2394
+ in the spec for a single request.
2395
+ :type _host_index: int, optional
2396
+ :return: Returns the result object.
2397
+ """ # noqa: E501
2398
+
2399
+ _param = self._get_generic_timeline_by_id_serialize(
2400
+ path_query_id=path_query_id,
2401
+ variables=variables,
2402
+ features=features,
2403
+ _request_auth=_request_auth,
2404
+ _content_type=_content_type,
2405
+ _headers=_headers,
2406
+ _host_index=_host_index
2407
+ )
2408
+
2409
+ _response_types_map: Dict[str, Optional[str]] = {
2410
+ '200': "GenericTimelineByIdResponse",
2411
+ }
2412
+ response_data = self.api_client.call_api(
2413
+ *_param,
2414
+ _request_timeout=_request_timeout
2415
+ )
2416
+ response_data.read()
2417
+ return self.api_client.response_deserialize(
2418
+ response_data=response_data,
2419
+ response_types_map=_response_types_map,
2420
+ )
2421
+
2422
+
2423
+ @validate_call
2424
+ def get_generic_timeline_by_id_without_preload_content(
2425
+ self,
2426
+ path_query_id: StrictStr,
2427
+ variables: StrictStr,
2428
+ features: StrictStr,
2429
+ _request_timeout: Union[
2430
+ None,
2431
+ Annotated[StrictFloat, Field(gt=0)],
2432
+ Tuple[
2433
+ Annotated[StrictFloat, Field(gt=0)],
2434
+ Annotated[StrictFloat, Field(gt=0)]
2435
+ ]
2436
+ ] = None,
2437
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2438
+ _content_type: Optional[StrictStr] = None,
2439
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2440
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2441
+ ) -> RESTResponseType:
2442
+ """get_generic_timeline_by_id
2443
+
2444
+ get a generic timeline by its id (explore tabs)
2445
+
2446
+ :param path_query_id: (required)
2447
+ :type path_query_id: str
2448
+ :param variables: (required)
2449
+ :type variables: str
2450
+ :param features: (required)
2451
+ :type features: str
2452
+ :param _request_timeout: timeout setting for this request. If one
2453
+ number provided, it will be total request
2454
+ timeout. It can also be a pair (tuple) of
2455
+ (connection, read) timeouts.
2456
+ :type _request_timeout: int, tuple(int, int), optional
2457
+ :param _request_auth: set to override the auth_settings for an a single
2458
+ request; this effectively ignores the
2459
+ authentication in the spec for a single request.
2460
+ :type _request_auth: dict, optional
2461
+ :param _content_type: force content-type for the request.
2462
+ :type _content_type: str, Optional
2463
+ :param _headers: set to override the headers for a single
2464
+ request; this effectively ignores the headers
2465
+ in the spec for a single request.
2466
+ :type _headers: dict, optional
2467
+ :param _host_index: set to override the host_index for a single
2468
+ request; this effectively ignores the host_index
2469
+ in the spec for a single request.
2470
+ :type _host_index: int, optional
2471
+ :return: Returns the result object.
2472
+ """ # noqa: E501
2473
+
2474
+ _param = self._get_generic_timeline_by_id_serialize(
2475
+ path_query_id=path_query_id,
2476
+ variables=variables,
2477
+ features=features,
2478
+ _request_auth=_request_auth,
2479
+ _content_type=_content_type,
2480
+ _headers=_headers,
2481
+ _host_index=_host_index
2482
+ )
2483
+
2484
+ _response_types_map: Dict[str, Optional[str]] = {
2485
+ '200': "GenericTimelineByIdResponse",
2486
+ }
2487
+ response_data = self.api_client.call_api(
2488
+ *_param,
2489
+ _request_timeout=_request_timeout
2490
+ )
2491
+ return response_data.response
2492
+
2493
+
2494
+ def _get_generic_timeline_by_id_serialize(
2495
+ self,
2496
+ path_query_id,
2497
+ variables,
2498
+ features,
2499
+ _request_auth,
2500
+ _content_type,
2501
+ _headers,
2502
+ _host_index,
2503
+ ) -> RequestSerialized:
2504
+
2505
+ _host = None
2506
+
2507
+ _collection_formats: Dict[str, str] = {
2508
+ }
2509
+
2510
+ _path_params: Dict[str, str] = {}
2511
+ _query_params: List[Tuple[str, str]] = []
2512
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2513
+ _form_params: List[Tuple[str, str]] = []
2514
+ _files: Dict[
2515
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2516
+ ] = {}
2517
+ _body_params: Optional[bytes] = None
2518
+
2519
+ # process the path parameters
2520
+ if path_query_id is not None:
2521
+ _path_params['pathQueryId'] = path_query_id
2522
+ # process the query parameters
2523
+ if variables is not None:
2524
+
2525
+ _query_params.append(('variables', variables))
2526
+
2527
+ if features is not None:
2528
+
2529
+ _query_params.append(('features', features))
2530
+
2531
+ # process the header parameters
2532
+ # process the form parameters
2533
+ # process the body parameter
2534
+
2535
+
2536
+ # set the HTTP header `Accept`
2537
+ if 'Accept' not in _header_params:
2538
+ _header_params['Accept'] = self.api_client.select_header_accept(
2539
+ [
2540
+ 'application/json'
2541
+ ]
2542
+ )
2543
+
2544
+
2545
+ # authentication setting
2546
+ _auth_settings: List[str] = [
2547
+ 'Accept',
2548
+ 'ClientLanguage',
2549
+ 'Priority',
2550
+ 'Referer',
2551
+ 'SecFetchDest',
2552
+ 'SecChUaPlatform',
2553
+ 'SecFetchMode',
2554
+ 'CsrfToken',
2555
+ 'ClientUuid',
2556
+ 'BearerAuth',
2557
+ 'GuestToken',
2558
+ 'SecChUa',
2559
+ 'CookieGt0',
2560
+ 'ClientTransactionId',
2561
+ 'ActiveUser',
2562
+ 'CookieCt0',
2563
+ 'UserAgent',
2564
+ 'AcceptLanguage',
2565
+ 'SecFetchSite',
2566
+ 'AuthType',
2567
+ 'CookieAuthToken',
2568
+ 'SecChUaMobile',
2569
+ 'AcceptEncoding'
2570
+ ]
2571
+
2572
+ return self.api_client.param_serialize(
2573
+ method='GET',
2574
+ resource_path='/graphql/{pathQueryId}/GenericTimelineById',
2575
+ path_params=_path_params,
2576
+ query_params=_query_params,
2577
+ header_params=_header_params,
2578
+ body=_body_params,
2579
+ post_params=_form_params,
2580
+ files=_files,
2581
+ auth_settings=_auth_settings,
2582
+ collection_formats=_collection_formats,
2583
+ _host=_host,
2584
+ _request_auth=_request_auth
2585
+ )
2586
+
2587
+
2588
+
2589
+
2590
+ @validate_call
2591
+ def get_home_latest_timeline(
2592
+ self,
2593
+ path_query_id: StrictStr,
2594
+ variables: StrictStr,
2595
+ features: StrictStr,
2596
+ field_toggles: StrictStr,
2597
+ _request_timeout: Union[
2598
+ None,
2599
+ Annotated[StrictFloat, Field(gt=0)],
2600
+ Tuple[
2601
+ Annotated[StrictFloat, Field(gt=0)],
2602
+ Annotated[StrictFloat, Field(gt=0)]
2603
+ ]
2604
+ ] = None,
2605
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2606
+ _content_type: Optional[StrictStr] = None,
2607
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2608
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2609
+ ) -> TimelineResponse:
2610
+ """get_home_latest_timeline
2611
+
2612
+ get tweet list of timeline
2613
+
2614
+ :param path_query_id: (required)
2615
+ :type path_query_id: str
2616
+ :param variables: (required)
2617
+ :type variables: str
2618
+ :param features: (required)
2619
+ :type features: str
2620
+ :param field_toggles: (required)
2621
+ :type field_toggles: str
2622
+ :param _request_timeout: timeout setting for this request. If one
2623
+ number provided, it will be total request
2624
+ timeout. It can also be a pair (tuple) of
2625
+ (connection, read) timeouts.
2626
+ :type _request_timeout: int, tuple(int, int), optional
2627
+ :param _request_auth: set to override the auth_settings for an a single
2628
+ request; this effectively ignores the
2629
+ authentication in the spec for a single request.
2630
+ :type _request_auth: dict, optional
2631
+ :param _content_type: force content-type for the request.
2632
+ :type _content_type: str, Optional
2633
+ :param _headers: set to override the headers for a single
2634
+ request; this effectively ignores the headers
2635
+ in the spec for a single request.
2636
+ :type _headers: dict, optional
2637
+ :param _host_index: set to override the host_index for a single
2638
+ request; this effectively ignores the host_index
2639
+ in the spec for a single request.
2640
+ :type _host_index: int, optional
2641
+ :return: Returns the result object.
2642
+ """ # noqa: E501
2643
+
2644
+ _param = self._get_home_latest_timeline_serialize(
2645
+ path_query_id=path_query_id,
2646
+ variables=variables,
2647
+ features=features,
2648
+ field_toggles=field_toggles,
2649
+ _request_auth=_request_auth,
2650
+ _content_type=_content_type,
2651
+ _headers=_headers,
2652
+ _host_index=_host_index
2653
+ )
2654
+
2655
+ _response_types_map: Dict[str, Optional[str]] = {
2656
+ '200': "TimelineResponse",
2657
+ }
2658
+ response_data = self.api_client.call_api(
2659
+ *_param,
2660
+ _request_timeout=_request_timeout
2661
+ )
2662
+ response_data.read()
2663
+ return self.api_client.response_deserialize(
2664
+ response_data=response_data,
2665
+ response_types_map=_response_types_map,
2666
+ ).data
2667
+
2668
+
2669
+ @validate_call
2670
+ def get_home_latest_timeline_with_http_info(
2671
+ self,
2672
+ path_query_id: StrictStr,
2673
+ variables: StrictStr,
2674
+ features: StrictStr,
2675
+ field_toggles: StrictStr,
2676
+ _request_timeout: Union[
2677
+ None,
2678
+ Annotated[StrictFloat, Field(gt=0)],
2679
+ Tuple[
2680
+ Annotated[StrictFloat, Field(gt=0)],
2681
+ Annotated[StrictFloat, Field(gt=0)]
2682
+ ]
2683
+ ] = None,
2684
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2685
+ _content_type: Optional[StrictStr] = None,
2686
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2687
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2688
+ ) -> ApiResponse[TimelineResponse]:
2689
+ """get_home_latest_timeline
2690
+
2691
+ get tweet list of timeline
2692
+
2693
+ :param path_query_id: (required)
2694
+ :type path_query_id: str
2695
+ :param variables: (required)
2696
+ :type variables: str
2697
+ :param features: (required)
2698
+ :type features: str
2699
+ :param field_toggles: (required)
2700
+ :type field_toggles: str
2701
+ :param _request_timeout: timeout setting for this request. If one
2702
+ number provided, it will be total request
2703
+ timeout. It can also be a pair (tuple) of
2704
+ (connection, read) timeouts.
2705
+ :type _request_timeout: int, tuple(int, int), optional
2706
+ :param _request_auth: set to override the auth_settings for an a single
2707
+ request; this effectively ignores the
2708
+ authentication in the spec for a single request.
2709
+ :type _request_auth: dict, optional
2710
+ :param _content_type: force content-type for the request.
2711
+ :type _content_type: str, Optional
2712
+ :param _headers: set to override the headers for a single
2713
+ request; this effectively ignores the headers
2714
+ in the spec for a single request.
2715
+ :type _headers: dict, optional
2716
+ :param _host_index: set to override the host_index for a single
2717
+ request; this effectively ignores the host_index
2718
+ in the spec for a single request.
2719
+ :type _host_index: int, optional
2720
+ :return: Returns the result object.
2721
+ """ # noqa: E501
2722
+
2723
+ _param = self._get_home_latest_timeline_serialize(
2724
+ path_query_id=path_query_id,
2725
+ variables=variables,
2726
+ features=features,
2727
+ field_toggles=field_toggles,
2728
+ _request_auth=_request_auth,
2729
+ _content_type=_content_type,
2730
+ _headers=_headers,
2731
+ _host_index=_host_index
2732
+ )
2733
+
2734
+ _response_types_map: Dict[str, Optional[str]] = {
2735
+ '200': "TimelineResponse",
2736
+ }
2737
+ response_data = self.api_client.call_api(
2738
+ *_param,
2739
+ _request_timeout=_request_timeout
2740
+ )
2741
+ response_data.read()
2742
+ return self.api_client.response_deserialize(
2743
+ response_data=response_data,
2744
+ response_types_map=_response_types_map,
2745
+ )
2746
+
2747
+
2748
+ @validate_call
2749
+ def get_home_latest_timeline_without_preload_content(
2750
+ self,
2751
+ path_query_id: StrictStr,
2752
+ variables: StrictStr,
2753
+ features: StrictStr,
2754
+ field_toggles: StrictStr,
2755
+ _request_timeout: Union[
2756
+ None,
2757
+ Annotated[StrictFloat, Field(gt=0)],
2758
+ Tuple[
2759
+ Annotated[StrictFloat, Field(gt=0)],
2760
+ Annotated[StrictFloat, Field(gt=0)]
2761
+ ]
2762
+ ] = None,
2763
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2764
+ _content_type: Optional[StrictStr] = None,
2765
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2766
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2767
+ ) -> RESTResponseType:
2768
+ """get_home_latest_timeline
2769
+
2770
+ get tweet list of timeline
2771
+
2772
+ :param path_query_id: (required)
2773
+ :type path_query_id: str
2774
+ :param variables: (required)
2775
+ :type variables: str
2776
+ :param features: (required)
2777
+ :type features: str
2778
+ :param field_toggles: (required)
2779
+ :type field_toggles: str
2780
+ :param _request_timeout: timeout setting for this request. If one
2781
+ number provided, it will be total request
2782
+ timeout. It can also be a pair (tuple) of
2783
+ (connection, read) timeouts.
2784
+ :type _request_timeout: int, tuple(int, int), optional
2785
+ :param _request_auth: set to override the auth_settings for an a single
2786
+ request; this effectively ignores the
2787
+ authentication in the spec for a single request.
2788
+ :type _request_auth: dict, optional
2789
+ :param _content_type: force content-type for the request.
2790
+ :type _content_type: str, Optional
2791
+ :param _headers: set to override the headers for a single
2792
+ request; this effectively ignores the headers
2793
+ in the spec for a single request.
2794
+ :type _headers: dict, optional
2795
+ :param _host_index: set to override the host_index for a single
2796
+ request; this effectively ignores the host_index
2797
+ in the spec for a single request.
2798
+ :type _host_index: int, optional
2799
+ :return: Returns the result object.
2800
+ """ # noqa: E501
2801
+
2802
+ _param = self._get_home_latest_timeline_serialize(
2803
+ path_query_id=path_query_id,
2804
+ variables=variables,
2805
+ features=features,
2806
+ field_toggles=field_toggles,
2807
+ _request_auth=_request_auth,
2808
+ _content_type=_content_type,
2809
+ _headers=_headers,
2810
+ _host_index=_host_index
2811
+ )
2812
+
2813
+ _response_types_map: Dict[str, Optional[str]] = {
2814
+ '200': "TimelineResponse",
2815
+ }
2816
+ response_data = self.api_client.call_api(
2817
+ *_param,
2818
+ _request_timeout=_request_timeout
2819
+ )
2820
+ return response_data.response
2821
+
2822
+
2823
+ def _get_home_latest_timeline_serialize(
2824
+ self,
2825
+ path_query_id,
2826
+ variables,
2827
+ features,
2828
+ field_toggles,
2829
+ _request_auth,
2830
+ _content_type,
2831
+ _headers,
2832
+ _host_index,
2833
+ ) -> RequestSerialized:
2834
+
2835
+ _host = None
2836
+
2837
+ _collection_formats: Dict[str, str] = {
2838
+ }
2839
+
2840
+ _path_params: Dict[str, str] = {}
2841
+ _query_params: List[Tuple[str, str]] = []
2842
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2843
+ _form_params: List[Tuple[str, str]] = []
2844
+ _files: Dict[
2845
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2846
+ ] = {}
2847
+ _body_params: Optional[bytes] = None
2848
+
2849
+ # process the path parameters
2850
+ if path_query_id is not None:
2851
+ _path_params['pathQueryId'] = path_query_id
2852
+ # process the query parameters
2853
+ if variables is not None:
2854
+
2855
+ _query_params.append(('variables', variables))
2856
+
2857
+ if features is not None:
2858
+
2859
+ _query_params.append(('features', features))
2860
+
2861
+ if field_toggles is not None:
2862
+
2863
+ _query_params.append(('fieldToggles', field_toggles))
2864
+
2865
+ # process the header parameters
2866
+ # process the form parameters
2867
+ # process the body parameter
2868
+
2869
+
2870
+ # set the HTTP header `Accept`
2871
+ if 'Accept' not in _header_params:
2872
+ _header_params['Accept'] = self.api_client.select_header_accept(
2873
+ [
2874
+ 'application/json'
2875
+ ]
2876
+ )
2877
+
2878
+
2879
+ # authentication setting
2880
+ _auth_settings: List[str] = [
2881
+ 'Accept',
2882
+ 'ClientLanguage',
2883
+ 'Priority',
2884
+ 'Referer',
2885
+ 'SecFetchDest',
2886
+ 'SecChUaPlatform',
2887
+ 'SecFetchMode',
2888
+ 'CsrfToken',
2889
+ 'ClientUuid',
2890
+ 'BearerAuth',
2891
+ 'GuestToken',
2892
+ 'SecChUa',
2893
+ 'CookieGt0',
2894
+ 'ClientTransactionId',
2895
+ 'ActiveUser',
2896
+ 'CookieCt0',
2897
+ 'UserAgent',
2898
+ 'AcceptLanguage',
2899
+ 'SecFetchSite',
2900
+ 'AuthType',
2901
+ 'CookieAuthToken',
2902
+ 'SecChUaMobile',
2903
+ 'AcceptEncoding'
2904
+ ]
2905
+
2906
+ return self.api_client.param_serialize(
2907
+ method='GET',
2908
+ resource_path='/graphql/{pathQueryId}/HomeLatestTimeline',
2909
+ path_params=_path_params,
2910
+ query_params=_query_params,
2911
+ header_params=_header_params,
2912
+ body=_body_params,
2913
+ post_params=_form_params,
2914
+ files=_files,
2915
+ auth_settings=_auth_settings,
2916
+ collection_formats=_collection_formats,
2917
+ _host=_host,
2918
+ _request_auth=_request_auth
2919
+ )
2920
+
2921
+
2922
+
2923
+
2924
+ @validate_call
2925
+ def get_home_timeline(
2926
+ self,
2927
+ path_query_id: StrictStr,
2928
+ variables: StrictStr,
2929
+ features: StrictStr,
2930
+ field_toggles: StrictStr,
2931
+ _request_timeout: Union[
2932
+ None,
2933
+ Annotated[StrictFloat, Field(gt=0)],
2934
+ Tuple[
2935
+ Annotated[StrictFloat, Field(gt=0)],
2936
+ Annotated[StrictFloat, Field(gt=0)]
2937
+ ]
2938
+ ] = None,
2939
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2940
+ _content_type: Optional[StrictStr] = None,
2941
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2942
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2943
+ ) -> TimelineResponse:
2944
+ """get_home_timeline
2945
+
2946
+ get tweet list of timeline
2947
+
2948
+ :param path_query_id: (required)
2949
+ :type path_query_id: str
2950
+ :param variables: (required)
2951
+ :type variables: str
2952
+ :param features: (required)
2953
+ :type features: str
2954
+ :param field_toggles: (required)
2955
+ :type field_toggles: str
2956
+ :param _request_timeout: timeout setting for this request. If one
2957
+ number provided, it will be total request
2958
+ timeout. It can also be a pair (tuple) of
2959
+ (connection, read) timeouts.
2960
+ :type _request_timeout: int, tuple(int, int), optional
2961
+ :param _request_auth: set to override the auth_settings for an a single
2962
+ request; this effectively ignores the
2963
+ authentication in the spec for a single request.
2964
+ :type _request_auth: dict, optional
2965
+ :param _content_type: force content-type for the request.
2966
+ :type _content_type: str, Optional
2967
+ :param _headers: set to override the headers for a single
2968
+ request; this effectively ignores the headers
2969
+ in the spec for a single request.
2970
+ :type _headers: dict, optional
2971
+ :param _host_index: set to override the host_index for a single
2972
+ request; this effectively ignores the host_index
2973
+ in the spec for a single request.
2974
+ :type _host_index: int, optional
2975
+ :return: Returns the result object.
2976
+ """ # noqa: E501
2977
+
2978
+ _param = self._get_home_timeline_serialize(
2979
+ path_query_id=path_query_id,
2980
+ variables=variables,
2981
+ features=features,
2982
+ field_toggles=field_toggles,
2983
+ _request_auth=_request_auth,
2984
+ _content_type=_content_type,
2985
+ _headers=_headers,
2986
+ _host_index=_host_index
2987
+ )
2988
+
2989
+ _response_types_map: Dict[str, Optional[str]] = {
2990
+ '200': "TimelineResponse",
2991
+ }
2992
+ response_data = self.api_client.call_api(
2993
+ *_param,
2994
+ _request_timeout=_request_timeout
2995
+ )
2996
+ response_data.read()
2997
+ return self.api_client.response_deserialize(
2998
+ response_data=response_data,
2999
+ response_types_map=_response_types_map,
3000
+ ).data
3001
+
3002
+
3003
+ @validate_call
3004
+ def get_home_timeline_with_http_info(
3005
+ self,
3006
+ path_query_id: StrictStr,
3007
+ variables: StrictStr,
3008
+ features: StrictStr,
3009
+ field_toggles: StrictStr,
3010
+ _request_timeout: Union[
3011
+ None,
3012
+ Annotated[StrictFloat, Field(gt=0)],
3013
+ Tuple[
3014
+ Annotated[StrictFloat, Field(gt=0)],
3015
+ Annotated[StrictFloat, Field(gt=0)]
3016
+ ]
3017
+ ] = None,
3018
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3019
+ _content_type: Optional[StrictStr] = None,
3020
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3021
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3022
+ ) -> ApiResponse[TimelineResponse]:
3023
+ """get_home_timeline
3024
+
3025
+ get tweet list of timeline
3026
+
3027
+ :param path_query_id: (required)
3028
+ :type path_query_id: str
3029
+ :param variables: (required)
3030
+ :type variables: str
3031
+ :param features: (required)
3032
+ :type features: str
3033
+ :param field_toggles: (required)
3034
+ :type field_toggles: str
3035
+ :param _request_timeout: timeout setting for this request. If one
3036
+ number provided, it will be total request
3037
+ timeout. It can also be a pair (tuple) of
3038
+ (connection, read) timeouts.
3039
+ :type _request_timeout: int, tuple(int, int), optional
3040
+ :param _request_auth: set to override the auth_settings for an a single
3041
+ request; this effectively ignores the
3042
+ authentication in the spec for a single request.
3043
+ :type _request_auth: dict, optional
3044
+ :param _content_type: force content-type for the request.
3045
+ :type _content_type: str, Optional
3046
+ :param _headers: set to override the headers for a single
3047
+ request; this effectively ignores the headers
3048
+ in the spec for a single request.
3049
+ :type _headers: dict, optional
3050
+ :param _host_index: set to override the host_index for a single
3051
+ request; this effectively ignores the host_index
3052
+ in the spec for a single request.
3053
+ :type _host_index: int, optional
3054
+ :return: Returns the result object.
3055
+ """ # noqa: E501
3056
+
3057
+ _param = self._get_home_timeline_serialize(
3058
+ path_query_id=path_query_id,
3059
+ variables=variables,
3060
+ features=features,
3061
+ field_toggles=field_toggles,
3062
+ _request_auth=_request_auth,
3063
+ _content_type=_content_type,
3064
+ _headers=_headers,
3065
+ _host_index=_host_index
3066
+ )
3067
+
3068
+ _response_types_map: Dict[str, Optional[str]] = {
3069
+ '200': "TimelineResponse",
3070
+ }
3071
+ response_data = self.api_client.call_api(
3072
+ *_param,
3073
+ _request_timeout=_request_timeout
3074
+ )
3075
+ response_data.read()
3076
+ return self.api_client.response_deserialize(
3077
+ response_data=response_data,
3078
+ response_types_map=_response_types_map,
3079
+ )
3080
+
3081
+
3082
+ @validate_call
3083
+ def get_home_timeline_without_preload_content(
3084
+ self,
3085
+ path_query_id: StrictStr,
3086
+ variables: StrictStr,
3087
+ features: StrictStr,
3088
+ field_toggles: StrictStr,
3089
+ _request_timeout: Union[
3090
+ None,
3091
+ Annotated[StrictFloat, Field(gt=0)],
3092
+ Tuple[
3093
+ Annotated[StrictFloat, Field(gt=0)],
3094
+ Annotated[StrictFloat, Field(gt=0)]
3095
+ ]
3096
+ ] = None,
3097
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3098
+ _content_type: Optional[StrictStr] = None,
3099
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3100
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3101
+ ) -> RESTResponseType:
3102
+ """get_home_timeline
3103
+
3104
+ get tweet list of timeline
3105
+
3106
+ :param path_query_id: (required)
3107
+ :type path_query_id: str
3108
+ :param variables: (required)
3109
+ :type variables: str
3110
+ :param features: (required)
3111
+ :type features: str
3112
+ :param field_toggles: (required)
3113
+ :type field_toggles: str
3114
+ :param _request_timeout: timeout setting for this request. If one
3115
+ number provided, it will be total request
3116
+ timeout. It can also be a pair (tuple) of
3117
+ (connection, read) timeouts.
3118
+ :type _request_timeout: int, tuple(int, int), optional
3119
+ :param _request_auth: set to override the auth_settings for an a single
3120
+ request; this effectively ignores the
3121
+ authentication in the spec for a single request.
3122
+ :type _request_auth: dict, optional
3123
+ :param _content_type: force content-type for the request.
3124
+ :type _content_type: str, Optional
3125
+ :param _headers: set to override the headers for a single
3126
+ request; this effectively ignores the headers
3127
+ in the spec for a single request.
3128
+ :type _headers: dict, optional
3129
+ :param _host_index: set to override the host_index for a single
3130
+ request; this effectively ignores the host_index
3131
+ in the spec for a single request.
3132
+ :type _host_index: int, optional
3133
+ :return: Returns the result object.
3134
+ """ # noqa: E501
3135
+
3136
+ _param = self._get_home_timeline_serialize(
3137
+ path_query_id=path_query_id,
3138
+ variables=variables,
3139
+ features=features,
3140
+ field_toggles=field_toggles,
3141
+ _request_auth=_request_auth,
3142
+ _content_type=_content_type,
3143
+ _headers=_headers,
3144
+ _host_index=_host_index
3145
+ )
3146
+
3147
+ _response_types_map: Dict[str, Optional[str]] = {
3148
+ '200': "TimelineResponse",
3149
+ }
3150
+ response_data = self.api_client.call_api(
3151
+ *_param,
3152
+ _request_timeout=_request_timeout
3153
+ )
3154
+ return response_data.response
3155
+
3156
+
3157
+ def _get_home_timeline_serialize(
3158
+ self,
3159
+ path_query_id,
3160
+ variables,
3161
+ features,
3162
+ field_toggles,
3163
+ _request_auth,
3164
+ _content_type,
3165
+ _headers,
3166
+ _host_index,
3167
+ ) -> RequestSerialized:
3168
+
3169
+ _host = None
3170
+
3171
+ _collection_formats: Dict[str, str] = {
3172
+ }
3173
+
3174
+ _path_params: Dict[str, str] = {}
3175
+ _query_params: List[Tuple[str, str]] = []
3176
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3177
+ _form_params: List[Tuple[str, str]] = []
3178
+ _files: Dict[
3179
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3180
+ ] = {}
3181
+ _body_params: Optional[bytes] = None
3182
+
3183
+ # process the path parameters
3184
+ if path_query_id is not None:
3185
+ _path_params['pathQueryId'] = path_query_id
3186
+ # process the query parameters
3187
+ if variables is not None:
3188
+
3189
+ _query_params.append(('variables', variables))
3190
+
3191
+ if features is not None:
3192
+
3193
+ _query_params.append(('features', features))
3194
+
3195
+ if field_toggles is not None:
3196
+
3197
+ _query_params.append(('fieldToggles', field_toggles))
3198
+
3199
+ # process the header parameters
3200
+ # process the form parameters
3201
+ # process the body parameter
3202
+
3203
+
3204
+ # set the HTTP header `Accept`
3205
+ if 'Accept' not in _header_params:
3206
+ _header_params['Accept'] = self.api_client.select_header_accept(
3207
+ [
3208
+ 'application/json'
3209
+ ]
3210
+ )
3211
+
3212
+
3213
+ # authentication setting
3214
+ _auth_settings: List[str] = [
3215
+ 'Accept',
3216
+ 'ClientLanguage',
3217
+ 'Priority',
3218
+ 'Referer',
3219
+ 'SecFetchDest',
3220
+ 'SecChUaPlatform',
3221
+ 'SecFetchMode',
3222
+ 'CsrfToken',
3223
+ 'ClientUuid',
3224
+ 'BearerAuth',
3225
+ 'GuestToken',
3226
+ 'SecChUa',
3227
+ 'CookieGt0',
3228
+ 'ClientTransactionId',
3229
+ 'ActiveUser',
3230
+ 'CookieCt0',
3231
+ 'UserAgent',
3232
+ 'AcceptLanguage',
3233
+ 'SecFetchSite',
3234
+ 'AuthType',
3235
+ 'CookieAuthToken',
3236
+ 'SecChUaMobile',
3237
+ 'AcceptEncoding'
3238
+ ]
3239
+
3240
+ return self.api_client.param_serialize(
3241
+ method='GET',
3242
+ resource_path='/graphql/{pathQueryId}/HomeTimeline',
3243
+ path_params=_path_params,
3244
+ query_params=_query_params,
3245
+ header_params=_header_params,
3246
+ body=_body_params,
3247
+ post_params=_form_params,
3248
+ files=_files,
3249
+ auth_settings=_auth_settings,
3250
+ collection_formats=_collection_formats,
3251
+ _host=_host,
3252
+ _request_auth=_request_auth
3253
+ )
3254
+
3255
+
3256
+
3257
+
3258
+ @validate_call
3259
+ def get_likes(
3260
+ self,
3261
+ path_query_id: StrictStr,
3262
+ variables: StrictStr,
3263
+ features: StrictStr,
3264
+ field_toggles: StrictStr,
3265
+ _request_timeout: Union[
3266
+ None,
3267
+ Annotated[StrictFloat, Field(gt=0)],
3268
+ Tuple[
3269
+ Annotated[StrictFloat, Field(gt=0)],
3270
+ Annotated[StrictFloat, Field(gt=0)]
3271
+ ]
3272
+ ] = None,
3273
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3274
+ _content_type: Optional[StrictStr] = None,
3275
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3276
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3277
+ ) -> UserTweetsResponse:
3278
+ """get_likes
3279
+
3280
+ get user likes tweets
3281
+
3282
+ :param path_query_id: (required)
3283
+ :type path_query_id: str
3284
+ :param variables: (required)
3285
+ :type variables: str
3286
+ :param features: (required)
3287
+ :type features: str
3288
+ :param field_toggles: (required)
3289
+ :type field_toggles: str
3290
+ :param _request_timeout: timeout setting for this request. If one
3291
+ number provided, it will be total request
3292
+ timeout. It can also be a pair (tuple) of
3293
+ (connection, read) timeouts.
3294
+ :type _request_timeout: int, tuple(int, int), optional
3295
+ :param _request_auth: set to override the auth_settings for an a single
3296
+ request; this effectively ignores the
3297
+ authentication in the spec for a single request.
3298
+ :type _request_auth: dict, optional
3299
+ :param _content_type: force content-type for the request.
3300
+ :type _content_type: str, Optional
3301
+ :param _headers: set to override the headers for a single
3302
+ request; this effectively ignores the headers
3303
+ in the spec for a single request.
3304
+ :type _headers: dict, optional
3305
+ :param _host_index: set to override the host_index for a single
3306
+ request; this effectively ignores the host_index
3307
+ in the spec for a single request.
3308
+ :type _host_index: int, optional
3309
+ :return: Returns the result object.
3310
+ """ # noqa: E501
3311
+
3312
+ _param = self._get_likes_serialize(
3313
+ path_query_id=path_query_id,
3314
+ variables=variables,
3315
+ features=features,
3316
+ field_toggles=field_toggles,
3317
+ _request_auth=_request_auth,
3318
+ _content_type=_content_type,
3319
+ _headers=_headers,
3320
+ _host_index=_host_index
3321
+ )
3322
+
3323
+ _response_types_map: Dict[str, Optional[str]] = {
3324
+ '200': "UserTweetsResponse",
3325
+ }
3326
+ response_data = self.api_client.call_api(
3327
+ *_param,
3328
+ _request_timeout=_request_timeout
3329
+ )
3330
+ response_data.read()
3331
+ return self.api_client.response_deserialize(
3332
+ response_data=response_data,
3333
+ response_types_map=_response_types_map,
3334
+ ).data
3335
+
3336
+
3337
+ @validate_call
3338
+ def get_likes_with_http_info(
3339
+ self,
3340
+ path_query_id: StrictStr,
3341
+ variables: StrictStr,
3342
+ features: StrictStr,
3343
+ field_toggles: StrictStr,
3344
+ _request_timeout: Union[
3345
+ None,
3346
+ Annotated[StrictFloat, Field(gt=0)],
3347
+ Tuple[
3348
+ Annotated[StrictFloat, Field(gt=0)],
3349
+ Annotated[StrictFloat, Field(gt=0)]
3350
+ ]
3351
+ ] = None,
3352
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3353
+ _content_type: Optional[StrictStr] = None,
3354
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3355
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3356
+ ) -> ApiResponse[UserTweetsResponse]:
3357
+ """get_likes
3358
+
3359
+ get user likes tweets
3360
+
3361
+ :param path_query_id: (required)
3362
+ :type path_query_id: str
3363
+ :param variables: (required)
3364
+ :type variables: str
3365
+ :param features: (required)
3366
+ :type features: str
3367
+ :param field_toggles: (required)
3368
+ :type field_toggles: str
3369
+ :param _request_timeout: timeout setting for this request. If one
3370
+ number provided, it will be total request
3371
+ timeout. It can also be a pair (tuple) of
3372
+ (connection, read) timeouts.
3373
+ :type _request_timeout: int, tuple(int, int), optional
3374
+ :param _request_auth: set to override the auth_settings for an a single
3375
+ request; this effectively ignores the
3376
+ authentication in the spec for a single request.
3377
+ :type _request_auth: dict, optional
3378
+ :param _content_type: force content-type for the request.
3379
+ :type _content_type: str, Optional
3380
+ :param _headers: set to override the headers for a single
3381
+ request; this effectively ignores the headers
3382
+ in the spec for a single request.
3383
+ :type _headers: dict, optional
3384
+ :param _host_index: set to override the host_index for a single
3385
+ request; this effectively ignores the host_index
3386
+ in the spec for a single request.
3387
+ :type _host_index: int, optional
3388
+ :return: Returns the result object.
3389
+ """ # noqa: E501
3390
+
3391
+ _param = self._get_likes_serialize(
3392
+ path_query_id=path_query_id,
3393
+ variables=variables,
3394
+ features=features,
3395
+ field_toggles=field_toggles,
3396
+ _request_auth=_request_auth,
3397
+ _content_type=_content_type,
3398
+ _headers=_headers,
3399
+ _host_index=_host_index
3400
+ )
3401
+
3402
+ _response_types_map: Dict[str, Optional[str]] = {
3403
+ '200': "UserTweetsResponse",
3404
+ }
3405
+ response_data = self.api_client.call_api(
3406
+ *_param,
3407
+ _request_timeout=_request_timeout
3408
+ )
3409
+ response_data.read()
3410
+ return self.api_client.response_deserialize(
3411
+ response_data=response_data,
3412
+ response_types_map=_response_types_map,
3413
+ )
3414
+
3415
+
3416
+ @validate_call
3417
+ def get_likes_without_preload_content(
3418
+ self,
3419
+ path_query_id: StrictStr,
3420
+ variables: StrictStr,
3421
+ features: StrictStr,
3422
+ field_toggles: StrictStr,
3423
+ _request_timeout: Union[
3424
+ None,
3425
+ Annotated[StrictFloat, Field(gt=0)],
3426
+ Tuple[
3427
+ Annotated[StrictFloat, Field(gt=0)],
3428
+ Annotated[StrictFloat, Field(gt=0)]
3429
+ ]
3430
+ ] = None,
3431
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3432
+ _content_type: Optional[StrictStr] = None,
3433
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3434
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3435
+ ) -> RESTResponseType:
3436
+ """get_likes
3437
+
3438
+ get user likes tweets
3439
+
3440
+ :param path_query_id: (required)
3441
+ :type path_query_id: str
3442
+ :param variables: (required)
3443
+ :type variables: str
3444
+ :param features: (required)
3445
+ :type features: str
3446
+ :param field_toggles: (required)
3447
+ :type field_toggles: str
3448
+ :param _request_timeout: timeout setting for this request. If one
3449
+ number provided, it will be total request
3450
+ timeout. It can also be a pair (tuple) of
3451
+ (connection, read) timeouts.
3452
+ :type _request_timeout: int, tuple(int, int), optional
3453
+ :param _request_auth: set to override the auth_settings for an a single
3454
+ request; this effectively ignores the
3455
+ authentication in the spec for a single request.
3456
+ :type _request_auth: dict, optional
3457
+ :param _content_type: force content-type for the request.
3458
+ :type _content_type: str, Optional
3459
+ :param _headers: set to override the headers for a single
3460
+ request; this effectively ignores the headers
3461
+ in the spec for a single request.
3462
+ :type _headers: dict, optional
3463
+ :param _host_index: set to override the host_index for a single
3464
+ request; this effectively ignores the host_index
3465
+ in the spec for a single request.
3466
+ :type _host_index: int, optional
3467
+ :return: Returns the result object.
3468
+ """ # noqa: E501
3469
+
3470
+ _param = self._get_likes_serialize(
3471
+ path_query_id=path_query_id,
3472
+ variables=variables,
3473
+ features=features,
3474
+ field_toggles=field_toggles,
3475
+ _request_auth=_request_auth,
3476
+ _content_type=_content_type,
3477
+ _headers=_headers,
3478
+ _host_index=_host_index
3479
+ )
3480
+
3481
+ _response_types_map: Dict[str, Optional[str]] = {
3482
+ '200': "UserTweetsResponse",
3483
+ }
3484
+ response_data = self.api_client.call_api(
3485
+ *_param,
3486
+ _request_timeout=_request_timeout
3487
+ )
3488
+ return response_data.response
3489
+
3490
+
3491
+ def _get_likes_serialize(
3492
+ self,
3493
+ path_query_id,
3494
+ variables,
3495
+ features,
3496
+ field_toggles,
3497
+ _request_auth,
3498
+ _content_type,
3499
+ _headers,
3500
+ _host_index,
3501
+ ) -> RequestSerialized:
3502
+
3503
+ _host = None
3504
+
3505
+ _collection_formats: Dict[str, str] = {
3506
+ }
3507
+
3508
+ _path_params: Dict[str, str] = {}
3509
+ _query_params: List[Tuple[str, str]] = []
3510
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3511
+ _form_params: List[Tuple[str, str]] = []
3512
+ _files: Dict[
3513
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3514
+ ] = {}
3515
+ _body_params: Optional[bytes] = None
3516
+
3517
+ # process the path parameters
3518
+ if path_query_id is not None:
3519
+ _path_params['pathQueryId'] = path_query_id
3520
+ # process the query parameters
3521
+ if variables is not None:
3522
+
3523
+ _query_params.append(('variables', variables))
3524
+
3525
+ if features is not None:
3526
+
3527
+ _query_params.append(('features', features))
3528
+
3529
+ if field_toggles is not None:
3530
+
3531
+ _query_params.append(('fieldToggles', field_toggles))
3532
+
3533
+ # process the header parameters
3534
+ # process the form parameters
3535
+ # process the body parameter
3536
+
3537
+
3538
+ # set the HTTP header `Accept`
3539
+ if 'Accept' not in _header_params:
3540
+ _header_params['Accept'] = self.api_client.select_header_accept(
3541
+ [
3542
+ 'application/json'
3543
+ ]
3544
+ )
3545
+
3546
+
3547
+ # authentication setting
3548
+ _auth_settings: List[str] = [
3549
+ 'Accept',
3550
+ 'ClientLanguage',
3551
+ 'Priority',
3552
+ 'Referer',
3553
+ 'SecFetchDest',
3554
+ 'SecChUaPlatform',
3555
+ 'SecFetchMode',
3556
+ 'CsrfToken',
3557
+ 'ClientUuid',
3558
+ 'BearerAuth',
3559
+ 'GuestToken',
3560
+ 'SecChUa',
3561
+ 'CookieGt0',
3562
+ 'ClientTransactionId',
3563
+ 'ActiveUser',
3564
+ 'CookieCt0',
3565
+ 'UserAgent',
3566
+ 'AcceptLanguage',
3567
+ 'SecFetchSite',
3568
+ 'AuthType',
3569
+ 'CookieAuthToken',
3570
+ 'SecChUaMobile',
3571
+ 'AcceptEncoding'
3572
+ ]
3573
+
3574
+ return self.api_client.param_serialize(
3575
+ method='GET',
3576
+ resource_path='/graphql/{pathQueryId}/Likes',
3577
+ path_params=_path_params,
3578
+ query_params=_query_params,
3579
+ header_params=_header_params,
3580
+ body=_body_params,
3581
+ post_params=_form_params,
3582
+ files=_files,
3583
+ auth_settings=_auth_settings,
3584
+ collection_formats=_collection_formats,
3585
+ _host=_host,
3586
+ _request_auth=_request_auth
3587
+ )
3588
+
3589
+
3590
+
3591
+
3592
+ @validate_call
3593
+ def get_list_latest_tweets_timeline(
3594
+ self,
3595
+ path_query_id: StrictStr,
3596
+ variables: StrictStr,
3597
+ features: StrictStr,
3598
+ _request_timeout: Union[
3599
+ None,
3600
+ Annotated[StrictFloat, Field(gt=0)],
3601
+ Tuple[
3602
+ Annotated[StrictFloat, Field(gt=0)],
3603
+ Annotated[StrictFloat, Field(gt=0)]
3604
+ ]
3605
+ ] = None,
3606
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3607
+ _content_type: Optional[StrictStr] = None,
3608
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3609
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3610
+ ) -> ListLatestTweetsTimelineResponse:
3611
+ """get_list_latest_tweets_timeline
704
3612
 
705
- get media list of community
3613
+ get tweet list of timeline
706
3614
 
707
3615
  :param path_query_id: (required)
708
3616
  :type path_query_id: str
@@ -732,7 +3640,7 @@ class TweetApi:
732
3640
  :return: Returns the result object.
733
3641
  """ # noqa: E501
734
3642
 
735
- _param = self._get_community_media_timeline_serialize(
3643
+ _param = self._get_list_latest_tweets_timeline_serialize(
736
3644
  path_query_id=path_query_id,
737
3645
  variables=variables,
738
3646
  features=features,
@@ -743,7 +3651,7 @@ class TweetApi:
743
3651
  )
744
3652
 
745
3653
  _response_types_map: Dict[str, Optional[str]] = {
746
- '200': "CommunityMediaTimelineResponse",
3654
+ '200': "ListLatestTweetsTimelineResponse",
747
3655
  }
748
3656
  response_data = self.api_client.call_api(
749
3657
  *_param,
@@ -757,7 +3665,7 @@ class TweetApi:
757
3665
 
758
3666
 
759
3667
  @validate_call
760
- def get_community_media_timeline_with_http_info(
3668
+ def get_list_latest_tweets_timeline_with_http_info(
761
3669
  self,
762
3670
  path_query_id: StrictStr,
763
3671
  variables: StrictStr,
@@ -774,10 +3682,10 @@ class TweetApi:
774
3682
  _content_type: Optional[StrictStr] = None,
775
3683
  _headers: Optional[Dict[StrictStr, Any]] = None,
776
3684
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
777
- ) -> ApiResponse[CommunityMediaTimelineResponse]:
778
- """get_community_media_timeline
3685
+ ) -> ApiResponse[ListLatestTweetsTimelineResponse]:
3686
+ """get_list_latest_tweets_timeline
779
3687
 
780
- get media list of community
3688
+ get tweet list of timeline
781
3689
 
782
3690
  :param path_query_id: (required)
783
3691
  :type path_query_id: str
@@ -807,7 +3715,7 @@ class TweetApi:
807
3715
  :return: Returns the result object.
808
3716
  """ # noqa: E501
809
3717
 
810
- _param = self._get_community_media_timeline_serialize(
3718
+ _param = self._get_list_latest_tweets_timeline_serialize(
811
3719
  path_query_id=path_query_id,
812
3720
  variables=variables,
813
3721
  features=features,
@@ -818,7 +3726,7 @@ class TweetApi:
818
3726
  )
819
3727
 
820
3728
  _response_types_map: Dict[str, Optional[str]] = {
821
- '200': "CommunityMediaTimelineResponse",
3729
+ '200': "ListLatestTweetsTimelineResponse",
822
3730
  }
823
3731
  response_data = self.api_client.call_api(
824
3732
  *_param,
@@ -832,7 +3740,7 @@ class TweetApi:
832
3740
 
833
3741
 
834
3742
  @validate_call
835
- def get_community_media_timeline_without_preload_content(
3743
+ def get_list_latest_tweets_timeline_without_preload_content(
836
3744
  self,
837
3745
  path_query_id: StrictStr,
838
3746
  variables: StrictStr,
@@ -850,9 +3758,9 @@ class TweetApi:
850
3758
  _headers: Optional[Dict[StrictStr, Any]] = None,
851
3759
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
852
3760
  ) -> RESTResponseType:
853
- """get_community_media_timeline
3761
+ """get_list_latest_tweets_timeline
854
3762
 
855
- get media list of community
3763
+ get tweet list of timeline
856
3764
 
857
3765
  :param path_query_id: (required)
858
3766
  :type path_query_id: str
@@ -882,7 +3790,7 @@ class TweetApi:
882
3790
  :return: Returns the result object.
883
3791
  """ # noqa: E501
884
3792
 
885
- _param = self._get_community_media_timeline_serialize(
3793
+ _param = self._get_list_latest_tweets_timeline_serialize(
886
3794
  path_query_id=path_query_id,
887
3795
  variables=variables,
888
3796
  features=features,
@@ -893,7 +3801,7 @@ class TweetApi:
893
3801
  )
894
3802
 
895
3803
  _response_types_map: Dict[str, Optional[str]] = {
896
- '200': "CommunityMediaTimelineResponse",
3804
+ '200': "ListLatestTweetsTimelineResponse",
897
3805
  }
898
3806
  response_data = self.api_client.call_api(
899
3807
  *_param,
@@ -902,7 +3810,7 @@ class TweetApi:
902
3810
  return response_data.response
903
3811
 
904
3812
 
905
- def _get_community_media_timeline_serialize(
3813
+ def _get_list_latest_tweets_timeline_serialize(
906
3814
  self,
907
3815
  path_query_id,
908
3816
  variables,
@@ -982,7 +3890,7 @@ class TweetApi:
982
3890
 
983
3891
  return self.api_client.param_serialize(
984
3892
  method='GET',
985
- resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
3893
+ resource_path='/graphql/{pathQueryId}/ListLatestTweetsTimeline',
986
3894
  path_params=_path_params,
987
3895
  query_params=_query_params,
988
3896
  header_params=_header_params,
@@ -999,7 +3907,7 @@ class TweetApi:
999
3907
 
1000
3908
 
1001
3909
  @validate_call
1002
- def get_community_tweets_timeline(
3910
+ def get_notifications_timeline(
1003
3911
  self,
1004
3912
  path_query_id: StrictStr,
1005
3913
  variables: StrictStr,
@@ -1016,10 +3924,10 @@ class TweetApi:
1016
3924
  _content_type: Optional[StrictStr] = None,
1017
3925
  _headers: Optional[Dict[StrictStr, Any]] = None,
1018
3926
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1019
- ) -> CommunityTweetsTimelineResponse:
1020
- """get_community_tweets_timeline
3927
+ ) -> NotificationsTimelineResponse:
3928
+ """get_notifications_timeline
1021
3929
 
1022
- get tweet list of community. rankingMode:[Recency, Relevance]
3930
+ get notification list. timeline_type:[All, Verified, Mentions]
1023
3931
 
1024
3932
  :param path_query_id: (required)
1025
3933
  :type path_query_id: str
@@ -1049,7 +3957,7 @@ class TweetApi:
1049
3957
  :return: Returns the result object.
1050
3958
  """ # noqa: E501
1051
3959
 
1052
- _param = self._get_community_tweets_timeline_serialize(
3960
+ _param = self._get_notifications_timeline_serialize(
1053
3961
  path_query_id=path_query_id,
1054
3962
  variables=variables,
1055
3963
  features=features,
@@ -1060,7 +3968,7 @@ class TweetApi:
1060
3968
  )
1061
3969
 
1062
3970
  _response_types_map: Dict[str, Optional[str]] = {
1063
- '200': "CommunityTweetsTimelineResponse",
3971
+ '200': "NotificationsTimelineResponse",
1064
3972
  }
1065
3973
  response_data = self.api_client.call_api(
1066
3974
  *_param,
@@ -1074,7 +3982,7 @@ class TweetApi:
1074
3982
 
1075
3983
 
1076
3984
  @validate_call
1077
- def get_community_tweets_timeline_with_http_info(
3985
+ def get_notifications_timeline_with_http_info(
1078
3986
  self,
1079
3987
  path_query_id: StrictStr,
1080
3988
  variables: StrictStr,
@@ -1091,10 +3999,10 @@ class TweetApi:
1091
3999
  _content_type: Optional[StrictStr] = None,
1092
4000
  _headers: Optional[Dict[StrictStr, Any]] = None,
1093
4001
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1094
- ) -> ApiResponse[CommunityTweetsTimelineResponse]:
1095
- """get_community_tweets_timeline
4002
+ ) -> ApiResponse[NotificationsTimelineResponse]:
4003
+ """get_notifications_timeline
1096
4004
 
1097
- get tweet list of community. rankingMode:[Recency, Relevance]
4005
+ get notification list. timeline_type:[All, Verified, Mentions]
1098
4006
 
1099
4007
  :param path_query_id: (required)
1100
4008
  :type path_query_id: str
@@ -1124,7 +4032,7 @@ class TweetApi:
1124
4032
  :return: Returns the result object.
1125
4033
  """ # noqa: E501
1126
4034
 
1127
- _param = self._get_community_tweets_timeline_serialize(
4035
+ _param = self._get_notifications_timeline_serialize(
1128
4036
  path_query_id=path_query_id,
1129
4037
  variables=variables,
1130
4038
  features=features,
@@ -1135,7 +4043,7 @@ class TweetApi:
1135
4043
  )
1136
4044
 
1137
4045
  _response_types_map: Dict[str, Optional[str]] = {
1138
- '200': "CommunityTweetsTimelineResponse",
4046
+ '200': "NotificationsTimelineResponse",
1139
4047
  }
1140
4048
  response_data = self.api_client.call_api(
1141
4049
  *_param,
@@ -1149,7 +4057,7 @@ class TweetApi:
1149
4057
 
1150
4058
 
1151
4059
  @validate_call
1152
- def get_community_tweets_timeline_without_preload_content(
4060
+ def get_notifications_timeline_without_preload_content(
1153
4061
  self,
1154
4062
  path_query_id: StrictStr,
1155
4063
  variables: StrictStr,
@@ -1167,9 +4075,9 @@ class TweetApi:
1167
4075
  _headers: Optional[Dict[StrictStr, Any]] = None,
1168
4076
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1169
4077
  ) -> RESTResponseType:
1170
- """get_community_tweets_timeline
4078
+ """get_notifications_timeline
1171
4079
 
1172
- get tweet list of community. rankingMode:[Recency, Relevance]
4080
+ get notification list. timeline_type:[All, Verified, Mentions]
1173
4081
 
1174
4082
  :param path_query_id: (required)
1175
4083
  :type path_query_id: str
@@ -1199,7 +4107,7 @@ class TweetApi:
1199
4107
  :return: Returns the result object.
1200
4108
  """ # noqa: E501
1201
4109
 
1202
- _param = self._get_community_tweets_timeline_serialize(
4110
+ _param = self._get_notifications_timeline_serialize(
1203
4111
  path_query_id=path_query_id,
1204
4112
  variables=variables,
1205
4113
  features=features,
@@ -1210,7 +4118,7 @@ class TweetApi:
1210
4118
  )
1211
4119
 
1212
4120
  _response_types_map: Dict[str, Optional[str]] = {
1213
- '200': "CommunityTweetsTimelineResponse",
4121
+ '200': "NotificationsTimelineResponse",
1214
4122
  }
1215
4123
  response_data = self.api_client.call_api(
1216
4124
  *_param,
@@ -1219,7 +4127,7 @@ class TweetApi:
1219
4127
  return response_data.response
1220
4128
 
1221
4129
 
1222
- def _get_community_tweets_timeline_serialize(
4130
+ def _get_notifications_timeline_serialize(
1223
4131
  self,
1224
4132
  path_query_id,
1225
4133
  variables,
@@ -1299,7 +4207,7 @@ class TweetApi:
1299
4207
 
1300
4208
  return self.api_client.param_serialize(
1301
4209
  method='GET',
1302
- resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
4210
+ resource_path='/graphql/{pathQueryId}/NotificationsTimeline',
1303
4211
  path_params=_path_params,
1304
4212
  query_params=_query_params,
1305
4213
  header_params=_header_params,
@@ -1316,7 +4224,7 @@ class TweetApi:
1316
4224
 
1317
4225
 
1318
4226
  @validate_call
1319
- def get_home_latest_timeline(
4227
+ def get_search_timeline(
1320
4228
  self,
1321
4229
  path_query_id: StrictStr,
1322
4230
  variables: StrictStr,
@@ -1333,10 +4241,10 @@ class TweetApi:
1333
4241
  _content_type: Optional[StrictStr] = None,
1334
4242
  _headers: Optional[Dict[StrictStr, Any]] = None,
1335
4243
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1336
- ) -> TimelineResponse:
1337
- """get_home_latest_timeline
4244
+ ) -> SearchTimelineResponse:
4245
+ """get_search_timeline
1338
4246
 
1339
- get tweet list of timeline
4247
+ search tweet list. product:[Top, Latest, People, Photos, Videos]
1340
4248
 
1341
4249
  :param path_query_id: (required)
1342
4250
  :type path_query_id: str
@@ -1366,7 +4274,7 @@ class TweetApi:
1366
4274
  :return: Returns the result object.
1367
4275
  """ # noqa: E501
1368
4276
 
1369
- _param = self._get_home_latest_timeline_serialize(
4277
+ _param = self._get_search_timeline_serialize(
1370
4278
  path_query_id=path_query_id,
1371
4279
  variables=variables,
1372
4280
  features=features,
@@ -1377,7 +4285,7 @@ class TweetApi:
1377
4285
  )
1378
4286
 
1379
4287
  _response_types_map: Dict[str, Optional[str]] = {
1380
- '200': "TimelineResponse",
4288
+ '200': "SearchTimelineResponse",
1381
4289
  }
1382
4290
  response_data = self.api_client.call_api(
1383
4291
  *_param,
@@ -1391,7 +4299,7 @@ class TweetApi:
1391
4299
 
1392
4300
 
1393
4301
  @validate_call
1394
- def get_home_latest_timeline_with_http_info(
4302
+ def get_search_timeline_with_http_info(
1395
4303
  self,
1396
4304
  path_query_id: StrictStr,
1397
4305
  variables: StrictStr,
@@ -1408,10 +4316,10 @@ class TweetApi:
1408
4316
  _content_type: Optional[StrictStr] = None,
1409
4317
  _headers: Optional[Dict[StrictStr, Any]] = None,
1410
4318
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1411
- ) -> ApiResponse[TimelineResponse]:
1412
- """get_home_latest_timeline
4319
+ ) -> ApiResponse[SearchTimelineResponse]:
4320
+ """get_search_timeline
1413
4321
 
1414
- get tweet list of timeline
4322
+ search tweet list. product:[Top, Latest, People, Photos, Videos]
1415
4323
 
1416
4324
  :param path_query_id: (required)
1417
4325
  :type path_query_id: str
@@ -1441,7 +4349,7 @@ class TweetApi:
1441
4349
  :return: Returns the result object.
1442
4350
  """ # noqa: E501
1443
4351
 
1444
- _param = self._get_home_latest_timeline_serialize(
4352
+ _param = self._get_search_timeline_serialize(
1445
4353
  path_query_id=path_query_id,
1446
4354
  variables=variables,
1447
4355
  features=features,
@@ -1452,7 +4360,7 @@ class TweetApi:
1452
4360
  )
1453
4361
 
1454
4362
  _response_types_map: Dict[str, Optional[str]] = {
1455
- '200': "TimelineResponse",
4363
+ '200': "SearchTimelineResponse",
1456
4364
  }
1457
4365
  response_data = self.api_client.call_api(
1458
4366
  *_param,
@@ -1466,7 +4374,7 @@ class TweetApi:
1466
4374
 
1467
4375
 
1468
4376
  @validate_call
1469
- def get_home_latest_timeline_without_preload_content(
4377
+ def get_search_timeline_without_preload_content(
1470
4378
  self,
1471
4379
  path_query_id: StrictStr,
1472
4380
  variables: StrictStr,
@@ -1484,9 +4392,9 @@ class TweetApi:
1484
4392
  _headers: Optional[Dict[StrictStr, Any]] = None,
1485
4393
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1486
4394
  ) -> RESTResponseType:
1487
- """get_home_latest_timeline
4395
+ """get_search_timeline
1488
4396
 
1489
- get tweet list of timeline
4397
+ search tweet list. product:[Top, Latest, People, Photos, Videos]
1490
4398
 
1491
4399
  :param path_query_id: (required)
1492
4400
  :type path_query_id: str
@@ -1516,7 +4424,7 @@ class TweetApi:
1516
4424
  :return: Returns the result object.
1517
4425
  """ # noqa: E501
1518
4426
 
1519
- _param = self._get_home_latest_timeline_serialize(
4427
+ _param = self._get_search_timeline_serialize(
1520
4428
  path_query_id=path_query_id,
1521
4429
  variables=variables,
1522
4430
  features=features,
@@ -1527,7 +4435,7 @@ class TweetApi:
1527
4435
  )
1528
4436
 
1529
4437
  _response_types_map: Dict[str, Optional[str]] = {
1530
- '200': "TimelineResponse",
4438
+ '200': "SearchTimelineResponse",
1531
4439
  }
1532
4440
  response_data = self.api_client.call_api(
1533
4441
  *_param,
@@ -1536,7 +4444,7 @@ class TweetApi:
1536
4444
  return response_data.response
1537
4445
 
1538
4446
 
1539
- def _get_home_latest_timeline_serialize(
4447
+ def _get_search_timeline_serialize(
1540
4448
  self,
1541
4449
  path_query_id,
1542
4450
  variables,
@@ -1616,7 +4524,7 @@ class TweetApi:
1616
4524
 
1617
4525
  return self.api_client.param_serialize(
1618
4526
  method='GET',
1619
- resource_path='/graphql/{pathQueryId}/HomeLatestTimeline',
4527
+ resource_path='/graphql/{pathQueryId}/SearchTimeline',
1620
4528
  path_params=_path_params,
1621
4529
  query_params=_query_params,
1622
4530
  header_params=_header_params,
@@ -1633,11 +4541,12 @@ class TweetApi:
1633
4541
 
1634
4542
 
1635
4543
  @validate_call
1636
- def get_home_timeline(
4544
+ def get_tweet_detail(
1637
4545
  self,
1638
4546
  path_query_id: StrictStr,
1639
4547
  variables: StrictStr,
1640
4548
  features: StrictStr,
4549
+ field_toggles: StrictStr,
1641
4550
  _request_timeout: Union[
1642
4551
  None,
1643
4552
  Annotated[StrictFloat, Field(gt=0)],
@@ -1650,10 +4559,10 @@ class TweetApi:
1650
4559
  _content_type: Optional[StrictStr] = None,
1651
4560
  _headers: Optional[Dict[StrictStr, Any]] = None,
1652
4561
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1653
- ) -> TimelineResponse:
1654
- """get_home_timeline
4562
+ ) -> TweetDetailResponse:
4563
+ """get_tweet_detail
1655
4564
 
1656
- get tweet list of timeline
4565
+ get TweetDetail
1657
4566
 
1658
4567
  :param path_query_id: (required)
1659
4568
  :type path_query_id: str
@@ -1661,6 +4570,8 @@ class TweetApi:
1661
4570
  :type variables: str
1662
4571
  :param features: (required)
1663
4572
  :type features: str
4573
+ :param field_toggles: (required)
4574
+ :type field_toggles: str
1664
4575
  :param _request_timeout: timeout setting for this request. If one
1665
4576
  number provided, it will be total request
1666
4577
  timeout. It can also be a pair (tuple) of
@@ -1683,10 +4594,11 @@ class TweetApi:
1683
4594
  :return: Returns the result object.
1684
4595
  """ # noqa: E501
1685
4596
 
1686
- _param = self._get_home_timeline_serialize(
4597
+ _param = self._get_tweet_detail_serialize(
1687
4598
  path_query_id=path_query_id,
1688
4599
  variables=variables,
1689
4600
  features=features,
4601
+ field_toggles=field_toggles,
1690
4602
  _request_auth=_request_auth,
1691
4603
  _content_type=_content_type,
1692
4604
  _headers=_headers,
@@ -1694,7 +4606,7 @@ class TweetApi:
1694
4606
  )
1695
4607
 
1696
4608
  _response_types_map: Dict[str, Optional[str]] = {
1697
- '200': "TimelineResponse",
4609
+ '200': "TweetDetailResponse",
1698
4610
  }
1699
4611
  response_data = self.api_client.call_api(
1700
4612
  *_param,
@@ -1708,11 +4620,12 @@ class TweetApi:
1708
4620
 
1709
4621
 
1710
4622
  @validate_call
1711
- def get_home_timeline_with_http_info(
4623
+ def get_tweet_detail_with_http_info(
1712
4624
  self,
1713
4625
  path_query_id: StrictStr,
1714
4626
  variables: StrictStr,
1715
4627
  features: StrictStr,
4628
+ field_toggles: StrictStr,
1716
4629
  _request_timeout: Union[
1717
4630
  None,
1718
4631
  Annotated[StrictFloat, Field(gt=0)],
@@ -1725,10 +4638,10 @@ class TweetApi:
1725
4638
  _content_type: Optional[StrictStr] = None,
1726
4639
  _headers: Optional[Dict[StrictStr, Any]] = None,
1727
4640
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1728
- ) -> ApiResponse[TimelineResponse]:
1729
- """get_home_timeline
4641
+ ) -> ApiResponse[TweetDetailResponse]:
4642
+ """get_tweet_detail
1730
4643
 
1731
- get tweet list of timeline
4644
+ get TweetDetail
1732
4645
 
1733
4646
  :param path_query_id: (required)
1734
4647
  :type path_query_id: str
@@ -1736,6 +4649,8 @@ class TweetApi:
1736
4649
  :type variables: str
1737
4650
  :param features: (required)
1738
4651
  :type features: str
4652
+ :param field_toggles: (required)
4653
+ :type field_toggles: str
1739
4654
  :param _request_timeout: timeout setting for this request. If one
1740
4655
  number provided, it will be total request
1741
4656
  timeout. It can also be a pair (tuple) of
@@ -1758,10 +4673,11 @@ class TweetApi:
1758
4673
  :return: Returns the result object.
1759
4674
  """ # noqa: E501
1760
4675
 
1761
- _param = self._get_home_timeline_serialize(
4676
+ _param = self._get_tweet_detail_serialize(
1762
4677
  path_query_id=path_query_id,
1763
4678
  variables=variables,
1764
4679
  features=features,
4680
+ field_toggles=field_toggles,
1765
4681
  _request_auth=_request_auth,
1766
4682
  _content_type=_content_type,
1767
4683
  _headers=_headers,
@@ -1769,7 +4685,7 @@ class TweetApi:
1769
4685
  )
1770
4686
 
1771
4687
  _response_types_map: Dict[str, Optional[str]] = {
1772
- '200': "TimelineResponse",
4688
+ '200': "TweetDetailResponse",
1773
4689
  }
1774
4690
  response_data = self.api_client.call_api(
1775
4691
  *_param,
@@ -1783,11 +4699,12 @@ class TweetApi:
1783
4699
 
1784
4700
 
1785
4701
  @validate_call
1786
- def get_home_timeline_without_preload_content(
4702
+ def get_tweet_detail_without_preload_content(
1787
4703
  self,
1788
4704
  path_query_id: StrictStr,
1789
4705
  variables: StrictStr,
1790
4706
  features: StrictStr,
4707
+ field_toggles: StrictStr,
1791
4708
  _request_timeout: Union[
1792
4709
  None,
1793
4710
  Annotated[StrictFloat, Field(gt=0)],
@@ -1801,9 +4718,9 @@ class TweetApi:
1801
4718
  _headers: Optional[Dict[StrictStr, Any]] = None,
1802
4719
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1803
4720
  ) -> RESTResponseType:
1804
- """get_home_timeline
4721
+ """get_tweet_detail
1805
4722
 
1806
- get tweet list of timeline
4723
+ get TweetDetail
1807
4724
 
1808
4725
  :param path_query_id: (required)
1809
4726
  :type path_query_id: str
@@ -1811,6 +4728,8 @@ class TweetApi:
1811
4728
  :type variables: str
1812
4729
  :param features: (required)
1813
4730
  :type features: str
4731
+ :param field_toggles: (required)
4732
+ :type field_toggles: str
1814
4733
  :param _request_timeout: timeout setting for this request. If one
1815
4734
  number provided, it will be total request
1816
4735
  timeout. It can also be a pair (tuple) of
@@ -1833,10 +4752,11 @@ class TweetApi:
1833
4752
  :return: Returns the result object.
1834
4753
  """ # noqa: E501
1835
4754
 
1836
- _param = self._get_home_timeline_serialize(
4755
+ _param = self._get_tweet_detail_serialize(
1837
4756
  path_query_id=path_query_id,
1838
4757
  variables=variables,
1839
4758
  features=features,
4759
+ field_toggles=field_toggles,
1840
4760
  _request_auth=_request_auth,
1841
4761
  _content_type=_content_type,
1842
4762
  _headers=_headers,
@@ -1844,7 +4764,7 @@ class TweetApi:
1844
4764
  )
1845
4765
 
1846
4766
  _response_types_map: Dict[str, Optional[str]] = {
1847
- '200': "TimelineResponse",
4767
+ '200': "TweetDetailResponse",
1848
4768
  }
1849
4769
  response_data = self.api_client.call_api(
1850
4770
  *_param,
@@ -1853,11 +4773,12 @@ class TweetApi:
1853
4773
  return response_data.response
1854
4774
 
1855
4775
 
1856
- def _get_home_timeline_serialize(
4776
+ def _get_tweet_detail_serialize(
1857
4777
  self,
1858
4778
  path_query_id,
1859
4779
  variables,
1860
4780
  features,
4781
+ field_toggles,
1861
4782
  _request_auth,
1862
4783
  _content_type,
1863
4784
  _headers,
@@ -1890,6 +4811,10 @@ class TweetApi:
1890
4811
 
1891
4812
  _query_params.append(('features', features))
1892
4813
 
4814
+ if field_toggles is not None:
4815
+
4816
+ _query_params.append(('fieldToggles', field_toggles))
4817
+
1893
4818
  # process the header parameters
1894
4819
  # process the form parameters
1895
4820
  # process the body parameter
@@ -1933,7 +4858,7 @@ class TweetApi:
1933
4858
 
1934
4859
  return self.api_client.param_serialize(
1935
4860
  method='GET',
1936
- resource_path='/graphql/{pathQueryId}/HomeTimeline',
4861
+ resource_path='/graphql/{pathQueryId}/TweetDetail',
1937
4862
  path_params=_path_params,
1938
4863
  query_params=_query_params,
1939
4864
  header_params=_header_params,
@@ -1950,7 +4875,7 @@ class TweetApi:
1950
4875
 
1951
4876
 
1952
4877
  @validate_call
1953
- def get_likes(
4878
+ def get_user_highlights_tweets(
1954
4879
  self,
1955
4880
  path_query_id: StrictStr,
1956
4881
  variables: StrictStr,
@@ -1968,10 +4893,10 @@ class TweetApi:
1968
4893
  _content_type: Optional[StrictStr] = None,
1969
4894
  _headers: Optional[Dict[StrictStr, Any]] = None,
1970
4895
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1971
- ) -> UserTweetsResponse:
1972
- """get_likes
4896
+ ) -> UserHighlightsTweetsResponse:
4897
+ """get_user_highlights_tweets
1973
4898
 
1974
- get user likes tweets
4899
+ get user highlights tweets
1975
4900
 
1976
4901
  :param path_query_id: (required)
1977
4902
  :type path_query_id: str
@@ -2003,7 +4928,7 @@ class TweetApi:
2003
4928
  :return: Returns the result object.
2004
4929
  """ # noqa: E501
2005
4930
 
2006
- _param = self._get_likes_serialize(
4931
+ _param = self._get_user_highlights_tweets_serialize(
2007
4932
  path_query_id=path_query_id,
2008
4933
  variables=variables,
2009
4934
  features=features,
@@ -2015,7 +4940,7 @@ class TweetApi:
2015
4940
  )
2016
4941
 
2017
4942
  _response_types_map: Dict[str, Optional[str]] = {
2018
- '200': "UserTweetsResponse",
4943
+ '200': "UserHighlightsTweetsResponse",
2019
4944
  }
2020
4945
  response_data = self.api_client.call_api(
2021
4946
  *_param,
@@ -2029,7 +4954,7 @@ class TweetApi:
2029
4954
 
2030
4955
 
2031
4956
  @validate_call
2032
- def get_likes_with_http_info(
4957
+ def get_user_highlights_tweets_with_http_info(
2033
4958
  self,
2034
4959
  path_query_id: StrictStr,
2035
4960
  variables: StrictStr,
@@ -2047,10 +4972,10 @@ class TweetApi:
2047
4972
  _content_type: Optional[StrictStr] = None,
2048
4973
  _headers: Optional[Dict[StrictStr, Any]] = None,
2049
4974
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2050
- ) -> ApiResponse[UserTweetsResponse]:
2051
- """get_likes
4975
+ ) -> ApiResponse[UserHighlightsTweetsResponse]:
4976
+ """get_user_highlights_tweets
2052
4977
 
2053
- get user likes tweets
4978
+ get user highlights tweets
2054
4979
 
2055
4980
  :param path_query_id: (required)
2056
4981
  :type path_query_id: str
@@ -2082,7 +5007,7 @@ class TweetApi:
2082
5007
  :return: Returns the result object.
2083
5008
  """ # noqa: E501
2084
5009
 
2085
- _param = self._get_likes_serialize(
5010
+ _param = self._get_user_highlights_tweets_serialize(
2086
5011
  path_query_id=path_query_id,
2087
5012
  variables=variables,
2088
5013
  features=features,
@@ -2094,7 +5019,7 @@ class TweetApi:
2094
5019
  )
2095
5020
 
2096
5021
  _response_types_map: Dict[str, Optional[str]] = {
2097
- '200': "UserTweetsResponse",
5022
+ '200': "UserHighlightsTweetsResponse",
2098
5023
  }
2099
5024
  response_data = self.api_client.call_api(
2100
5025
  *_param,
@@ -2108,7 +5033,7 @@ class TweetApi:
2108
5033
 
2109
5034
 
2110
5035
  @validate_call
2111
- def get_likes_without_preload_content(
5036
+ def get_user_highlights_tweets_without_preload_content(
2112
5037
  self,
2113
5038
  path_query_id: StrictStr,
2114
5039
  variables: StrictStr,
@@ -2127,9 +5052,9 @@ class TweetApi:
2127
5052
  _headers: Optional[Dict[StrictStr, Any]] = None,
2128
5053
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2129
5054
  ) -> RESTResponseType:
2130
- """get_likes
5055
+ """get_user_highlights_tweets
2131
5056
 
2132
- get user likes tweets
5057
+ get user highlights tweets
2133
5058
 
2134
5059
  :param path_query_id: (required)
2135
5060
  :type path_query_id: str
@@ -2161,7 +5086,7 @@ class TweetApi:
2161
5086
  :return: Returns the result object.
2162
5087
  """ # noqa: E501
2163
5088
 
2164
- _param = self._get_likes_serialize(
5089
+ _param = self._get_user_highlights_tweets_serialize(
2165
5090
  path_query_id=path_query_id,
2166
5091
  variables=variables,
2167
5092
  features=features,
@@ -2173,7 +5098,7 @@ class TweetApi:
2173
5098
  )
2174
5099
 
2175
5100
  _response_types_map: Dict[str, Optional[str]] = {
2176
- '200': "UserTweetsResponse",
5101
+ '200': "UserHighlightsTweetsResponse",
2177
5102
  }
2178
5103
  response_data = self.api_client.call_api(
2179
5104
  *_param,
@@ -2182,7 +5107,7 @@ class TweetApi:
2182
5107
  return response_data.response
2183
5108
 
2184
5109
 
2185
- def _get_likes_serialize(
5110
+ def _get_user_highlights_tweets_serialize(
2186
5111
  self,
2187
5112
  path_query_id,
2188
5113
  variables,
@@ -2267,7 +5192,7 @@ class TweetApi:
2267
5192
 
2268
5193
  return self.api_client.param_serialize(
2269
5194
  method='GET',
2270
- resource_path='/graphql/{pathQueryId}/Likes',
5195
+ resource_path='/graphql/{pathQueryId}/UserHighlightsTweets',
2271
5196
  path_params=_path_params,
2272
5197
  query_params=_query_params,
2273
5198
  header_params=_header_params,
@@ -2284,11 +5209,12 @@ class TweetApi:
2284
5209
 
2285
5210
 
2286
5211
  @validate_call
2287
- def get_list_latest_tweets_timeline(
5212
+ def get_user_media(
2288
5213
  self,
2289
5214
  path_query_id: StrictStr,
2290
5215
  variables: StrictStr,
2291
5216
  features: StrictStr,
5217
+ field_toggles: StrictStr,
2292
5218
  _request_timeout: Union[
2293
5219
  None,
2294
5220
  Annotated[StrictFloat, Field(gt=0)],
@@ -2301,10 +5227,10 @@ class TweetApi:
2301
5227
  _content_type: Optional[StrictStr] = None,
2302
5228
  _headers: Optional[Dict[StrictStr, Any]] = None,
2303
5229
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2304
- ) -> ListLatestTweetsTimelineResponse:
2305
- """get_list_latest_tweets_timeline
5230
+ ) -> UserTweetsResponse:
5231
+ """get_user_media
2306
5232
 
2307
- get tweet list of timeline
5233
+ get user media tweets
2308
5234
 
2309
5235
  :param path_query_id: (required)
2310
5236
  :type path_query_id: str
@@ -2312,6 +5238,8 @@ class TweetApi:
2312
5238
  :type variables: str
2313
5239
  :param features: (required)
2314
5240
  :type features: str
5241
+ :param field_toggles: (required)
5242
+ :type field_toggles: str
2315
5243
  :param _request_timeout: timeout setting for this request. If one
2316
5244
  number provided, it will be total request
2317
5245
  timeout. It can also be a pair (tuple) of
@@ -2334,10 +5262,11 @@ class TweetApi:
2334
5262
  :return: Returns the result object.
2335
5263
  """ # noqa: E501
2336
5264
 
2337
- _param = self._get_list_latest_tweets_timeline_serialize(
5265
+ _param = self._get_user_media_serialize(
2338
5266
  path_query_id=path_query_id,
2339
5267
  variables=variables,
2340
5268
  features=features,
5269
+ field_toggles=field_toggles,
2341
5270
  _request_auth=_request_auth,
2342
5271
  _content_type=_content_type,
2343
5272
  _headers=_headers,
@@ -2345,7 +5274,7 @@ class TweetApi:
2345
5274
  )
2346
5275
 
2347
5276
  _response_types_map: Dict[str, Optional[str]] = {
2348
- '200': "ListLatestTweetsTimelineResponse",
5277
+ '200': "UserTweetsResponse",
2349
5278
  }
2350
5279
  response_data = self.api_client.call_api(
2351
5280
  *_param,
@@ -2359,11 +5288,12 @@ class TweetApi:
2359
5288
 
2360
5289
 
2361
5290
  @validate_call
2362
- def get_list_latest_tweets_timeline_with_http_info(
5291
+ def get_user_media_with_http_info(
2363
5292
  self,
2364
5293
  path_query_id: StrictStr,
2365
5294
  variables: StrictStr,
2366
5295
  features: StrictStr,
5296
+ field_toggles: StrictStr,
2367
5297
  _request_timeout: Union[
2368
5298
  None,
2369
5299
  Annotated[StrictFloat, Field(gt=0)],
@@ -2376,10 +5306,10 @@ class TweetApi:
2376
5306
  _content_type: Optional[StrictStr] = None,
2377
5307
  _headers: Optional[Dict[StrictStr, Any]] = None,
2378
5308
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2379
- ) -> ApiResponse[ListLatestTweetsTimelineResponse]:
2380
- """get_list_latest_tweets_timeline
5309
+ ) -> ApiResponse[UserTweetsResponse]:
5310
+ """get_user_media
2381
5311
 
2382
- get tweet list of timeline
5312
+ get user media tweets
2383
5313
 
2384
5314
  :param path_query_id: (required)
2385
5315
  :type path_query_id: str
@@ -2387,6 +5317,8 @@ class TweetApi:
2387
5317
  :type variables: str
2388
5318
  :param features: (required)
2389
5319
  :type features: str
5320
+ :param field_toggles: (required)
5321
+ :type field_toggles: str
2390
5322
  :param _request_timeout: timeout setting for this request. If one
2391
5323
  number provided, it will be total request
2392
5324
  timeout. It can also be a pair (tuple) of
@@ -2409,10 +5341,11 @@ class TweetApi:
2409
5341
  :return: Returns the result object.
2410
5342
  """ # noqa: E501
2411
5343
 
2412
- _param = self._get_list_latest_tweets_timeline_serialize(
5344
+ _param = self._get_user_media_serialize(
2413
5345
  path_query_id=path_query_id,
2414
5346
  variables=variables,
2415
5347
  features=features,
5348
+ field_toggles=field_toggles,
2416
5349
  _request_auth=_request_auth,
2417
5350
  _content_type=_content_type,
2418
5351
  _headers=_headers,
@@ -2420,7 +5353,7 @@ class TweetApi:
2420
5353
  )
2421
5354
 
2422
5355
  _response_types_map: Dict[str, Optional[str]] = {
2423
- '200': "ListLatestTweetsTimelineResponse",
5356
+ '200': "UserTweetsResponse",
2424
5357
  }
2425
5358
  response_data = self.api_client.call_api(
2426
5359
  *_param,
@@ -2434,11 +5367,12 @@ class TweetApi:
2434
5367
 
2435
5368
 
2436
5369
  @validate_call
2437
- def get_list_latest_tweets_timeline_without_preload_content(
5370
+ def get_user_media_without_preload_content(
2438
5371
  self,
2439
5372
  path_query_id: StrictStr,
2440
5373
  variables: StrictStr,
2441
5374
  features: StrictStr,
5375
+ field_toggles: StrictStr,
2442
5376
  _request_timeout: Union[
2443
5377
  None,
2444
5378
  Annotated[StrictFloat, Field(gt=0)],
@@ -2452,9 +5386,9 @@ class TweetApi:
2452
5386
  _headers: Optional[Dict[StrictStr, Any]] = None,
2453
5387
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2454
5388
  ) -> RESTResponseType:
2455
- """get_list_latest_tweets_timeline
5389
+ """get_user_media
2456
5390
 
2457
- get tweet list of timeline
5391
+ get user media tweets
2458
5392
 
2459
5393
  :param path_query_id: (required)
2460
5394
  :type path_query_id: str
@@ -2462,6 +5396,8 @@ class TweetApi:
2462
5396
  :type variables: str
2463
5397
  :param features: (required)
2464
5398
  :type features: str
5399
+ :param field_toggles: (required)
5400
+ :type field_toggles: str
2465
5401
  :param _request_timeout: timeout setting for this request. If one
2466
5402
  number provided, it will be total request
2467
5403
  timeout. It can also be a pair (tuple) of
@@ -2484,10 +5420,11 @@ class TweetApi:
2484
5420
  :return: Returns the result object.
2485
5421
  """ # noqa: E501
2486
5422
 
2487
- _param = self._get_list_latest_tweets_timeline_serialize(
5423
+ _param = self._get_user_media_serialize(
2488
5424
  path_query_id=path_query_id,
2489
5425
  variables=variables,
2490
5426
  features=features,
5427
+ field_toggles=field_toggles,
2491
5428
  _request_auth=_request_auth,
2492
5429
  _content_type=_content_type,
2493
5430
  _headers=_headers,
@@ -2495,7 +5432,7 @@ class TweetApi:
2495
5432
  )
2496
5433
 
2497
5434
  _response_types_map: Dict[str, Optional[str]] = {
2498
- '200': "ListLatestTweetsTimelineResponse",
5435
+ '200': "UserTweetsResponse",
2499
5436
  }
2500
5437
  response_data = self.api_client.call_api(
2501
5438
  *_param,
@@ -2504,11 +5441,12 @@ class TweetApi:
2504
5441
  return response_data.response
2505
5442
 
2506
5443
 
2507
- def _get_list_latest_tweets_timeline_serialize(
5444
+ def _get_user_media_serialize(
2508
5445
  self,
2509
5446
  path_query_id,
2510
5447
  variables,
2511
5448
  features,
5449
+ field_toggles,
2512
5450
  _request_auth,
2513
5451
  _content_type,
2514
5452
  _headers,
@@ -2541,6 +5479,10 @@ class TweetApi:
2541
5479
 
2542
5480
  _query_params.append(('features', features))
2543
5481
 
5482
+ if field_toggles is not None:
5483
+
5484
+ _query_params.append(('fieldToggles', field_toggles))
5485
+
2544
5486
  # process the header parameters
2545
5487
  # process the form parameters
2546
5488
  # process the body parameter
@@ -2584,7 +5526,7 @@ class TweetApi:
2584
5526
 
2585
5527
  return self.api_client.param_serialize(
2586
5528
  method='GET',
2587
- resource_path='/graphql/{pathQueryId}/ListLatestTweetsTimeline',
5529
+ resource_path='/graphql/{pathQueryId}/UserMedia',
2588
5530
  path_params=_path_params,
2589
5531
  query_params=_query_params,
2590
5532
  header_params=_header_params,
@@ -2601,11 +5543,12 @@ class TweetApi:
2601
5543
 
2602
5544
 
2603
5545
  @validate_call
2604
- def get_notifications_timeline(
5546
+ def get_user_originals_timeline(
2605
5547
  self,
2606
5548
  path_query_id: StrictStr,
2607
5549
  variables: StrictStr,
2608
5550
  features: StrictStr,
5551
+ field_toggles: StrictStr,
2609
5552
  _request_timeout: Union[
2610
5553
  None,
2611
5554
  Annotated[StrictFloat, Field(gt=0)],
@@ -2618,10 +5561,10 @@ class TweetApi:
2618
5561
  _content_type: Optional[StrictStr] = None,
2619
5562
  _headers: Optional[Dict[StrictStr, Any]] = None,
2620
5563
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2621
- ) -> NotificationsTimelineResponse:
2622
- """get_notifications_timeline
5564
+ ) -> UserTweetsResponse:
5565
+ """get_user_originals_timeline
2623
5566
 
2624
- get notification list. timeline_type:[All, Verified, Mentions]
5567
+ get user tweets (profile posts tab)
2625
5568
 
2626
5569
  :param path_query_id: (required)
2627
5570
  :type path_query_id: str
@@ -2629,6 +5572,8 @@ class TweetApi:
2629
5572
  :type variables: str
2630
5573
  :param features: (required)
2631
5574
  :type features: str
5575
+ :param field_toggles: (required)
5576
+ :type field_toggles: str
2632
5577
  :param _request_timeout: timeout setting for this request. If one
2633
5578
  number provided, it will be total request
2634
5579
  timeout. It can also be a pair (tuple) of
@@ -2651,10 +5596,11 @@ class TweetApi:
2651
5596
  :return: Returns the result object.
2652
5597
  """ # noqa: E501
2653
5598
 
2654
- _param = self._get_notifications_timeline_serialize(
5599
+ _param = self._get_user_originals_timeline_serialize(
2655
5600
  path_query_id=path_query_id,
2656
5601
  variables=variables,
2657
5602
  features=features,
5603
+ field_toggles=field_toggles,
2658
5604
  _request_auth=_request_auth,
2659
5605
  _content_type=_content_type,
2660
5606
  _headers=_headers,
@@ -2662,7 +5608,7 @@ class TweetApi:
2662
5608
  )
2663
5609
 
2664
5610
  _response_types_map: Dict[str, Optional[str]] = {
2665
- '200': "NotificationsTimelineResponse",
5611
+ '200': "UserTweetsResponse",
2666
5612
  }
2667
5613
  response_data = self.api_client.call_api(
2668
5614
  *_param,
@@ -2676,11 +5622,12 @@ class TweetApi:
2676
5622
 
2677
5623
 
2678
5624
  @validate_call
2679
- def get_notifications_timeline_with_http_info(
5625
+ def get_user_originals_timeline_with_http_info(
2680
5626
  self,
2681
5627
  path_query_id: StrictStr,
2682
5628
  variables: StrictStr,
2683
5629
  features: StrictStr,
5630
+ field_toggles: StrictStr,
2684
5631
  _request_timeout: Union[
2685
5632
  None,
2686
5633
  Annotated[StrictFloat, Field(gt=0)],
@@ -2693,10 +5640,10 @@ class TweetApi:
2693
5640
  _content_type: Optional[StrictStr] = None,
2694
5641
  _headers: Optional[Dict[StrictStr, Any]] = None,
2695
5642
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2696
- ) -> ApiResponse[NotificationsTimelineResponse]:
2697
- """get_notifications_timeline
5643
+ ) -> ApiResponse[UserTweetsResponse]:
5644
+ """get_user_originals_timeline
2698
5645
 
2699
- get notification list. timeline_type:[All, Verified, Mentions]
5646
+ get user tweets (profile posts tab)
2700
5647
 
2701
5648
  :param path_query_id: (required)
2702
5649
  :type path_query_id: str
@@ -2704,6 +5651,8 @@ class TweetApi:
2704
5651
  :type variables: str
2705
5652
  :param features: (required)
2706
5653
  :type features: str
5654
+ :param field_toggles: (required)
5655
+ :type field_toggles: str
2707
5656
  :param _request_timeout: timeout setting for this request. If one
2708
5657
  number provided, it will be total request
2709
5658
  timeout. It can also be a pair (tuple) of
@@ -2726,10 +5675,11 @@ class TweetApi:
2726
5675
  :return: Returns the result object.
2727
5676
  """ # noqa: E501
2728
5677
 
2729
- _param = self._get_notifications_timeline_serialize(
5678
+ _param = self._get_user_originals_timeline_serialize(
2730
5679
  path_query_id=path_query_id,
2731
5680
  variables=variables,
2732
5681
  features=features,
5682
+ field_toggles=field_toggles,
2733
5683
  _request_auth=_request_auth,
2734
5684
  _content_type=_content_type,
2735
5685
  _headers=_headers,
@@ -2737,7 +5687,7 @@ class TweetApi:
2737
5687
  )
2738
5688
 
2739
5689
  _response_types_map: Dict[str, Optional[str]] = {
2740
- '200': "NotificationsTimelineResponse",
5690
+ '200': "UserTweetsResponse",
2741
5691
  }
2742
5692
  response_data = self.api_client.call_api(
2743
5693
  *_param,
@@ -2751,11 +5701,12 @@ class TweetApi:
2751
5701
 
2752
5702
 
2753
5703
  @validate_call
2754
- def get_notifications_timeline_without_preload_content(
5704
+ def get_user_originals_timeline_without_preload_content(
2755
5705
  self,
2756
5706
  path_query_id: StrictStr,
2757
5707
  variables: StrictStr,
2758
5708
  features: StrictStr,
5709
+ field_toggles: StrictStr,
2759
5710
  _request_timeout: Union[
2760
5711
  None,
2761
5712
  Annotated[StrictFloat, Field(gt=0)],
@@ -2769,9 +5720,9 @@ class TweetApi:
2769
5720
  _headers: Optional[Dict[StrictStr, Any]] = None,
2770
5721
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2771
5722
  ) -> RESTResponseType:
2772
- """get_notifications_timeline
5723
+ """get_user_originals_timeline
2773
5724
 
2774
- get notification list. timeline_type:[All, Verified, Mentions]
5725
+ get user tweets (profile posts tab)
2775
5726
 
2776
5727
  :param path_query_id: (required)
2777
5728
  :type path_query_id: str
@@ -2779,6 +5730,8 @@ class TweetApi:
2779
5730
  :type variables: str
2780
5731
  :param features: (required)
2781
5732
  :type features: str
5733
+ :param field_toggles: (required)
5734
+ :type field_toggles: str
2782
5735
  :param _request_timeout: timeout setting for this request. If one
2783
5736
  number provided, it will be total request
2784
5737
  timeout. It can also be a pair (tuple) of
@@ -2801,10 +5754,11 @@ class TweetApi:
2801
5754
  :return: Returns the result object.
2802
5755
  """ # noqa: E501
2803
5756
 
2804
- _param = self._get_notifications_timeline_serialize(
5757
+ _param = self._get_user_originals_timeline_serialize(
2805
5758
  path_query_id=path_query_id,
2806
5759
  variables=variables,
2807
5760
  features=features,
5761
+ field_toggles=field_toggles,
2808
5762
  _request_auth=_request_auth,
2809
5763
  _content_type=_content_type,
2810
5764
  _headers=_headers,
@@ -2812,7 +5766,7 @@ class TweetApi:
2812
5766
  )
2813
5767
 
2814
5768
  _response_types_map: Dict[str, Optional[str]] = {
2815
- '200': "NotificationsTimelineResponse",
5769
+ '200': "UserTweetsResponse",
2816
5770
  }
2817
5771
  response_data = self.api_client.call_api(
2818
5772
  *_param,
@@ -2821,11 +5775,12 @@ class TweetApi:
2821
5775
  return response_data.response
2822
5776
 
2823
5777
 
2824
- def _get_notifications_timeline_serialize(
5778
+ def _get_user_originals_timeline_serialize(
2825
5779
  self,
2826
5780
  path_query_id,
2827
5781
  variables,
2828
5782
  features,
5783
+ field_toggles,
2829
5784
  _request_auth,
2830
5785
  _content_type,
2831
5786
  _headers,
@@ -2858,6 +5813,10 @@ class TweetApi:
2858
5813
 
2859
5814
  _query_params.append(('features', features))
2860
5815
 
5816
+ if field_toggles is not None:
5817
+
5818
+ _query_params.append(('fieldToggles', field_toggles))
5819
+
2861
5820
  # process the header parameters
2862
5821
  # process the form parameters
2863
5822
  # process the body parameter
@@ -2901,7 +5860,7 @@ class TweetApi:
2901
5860
 
2902
5861
  return self.api_client.param_serialize(
2903
5862
  method='GET',
2904
- resource_path='/graphql/{pathQueryId}/NotificationsTimeline',
5863
+ resource_path='/graphql/{pathQueryId}/UserOriginalsTimeline',
2905
5864
  path_params=_path_params,
2906
5865
  query_params=_query_params,
2907
5866
  header_params=_header_params,
@@ -2918,11 +5877,12 @@ class TweetApi:
2918
5877
 
2919
5878
 
2920
5879
  @validate_call
2921
- def get_search_timeline(
5880
+ def get_user_replies_timeline(
2922
5881
  self,
2923
5882
  path_query_id: StrictStr,
2924
5883
  variables: StrictStr,
2925
5884
  features: StrictStr,
5885
+ field_toggles: StrictStr,
2926
5886
  _request_timeout: Union[
2927
5887
  None,
2928
5888
  Annotated[StrictFloat, Field(gt=0)],
@@ -2935,10 +5895,10 @@ class TweetApi:
2935
5895
  _content_type: Optional[StrictStr] = None,
2936
5896
  _headers: Optional[Dict[StrictStr, Any]] = None,
2937
5897
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2938
- ) -> SearchTimelineResponse:
2939
- """get_search_timeline
5898
+ ) -> UserTweetsResponse:
5899
+ """get_user_replies_timeline
2940
5900
 
2941
- search tweet list. product:[Top, Latest, People, Photos, Videos]
5901
+ get user tweets and replies (profile replies tab)
2942
5902
 
2943
5903
  :param path_query_id: (required)
2944
5904
  :type path_query_id: str
@@ -2946,6 +5906,8 @@ class TweetApi:
2946
5906
  :type variables: str
2947
5907
  :param features: (required)
2948
5908
  :type features: str
5909
+ :param field_toggles: (required)
5910
+ :type field_toggles: str
2949
5911
  :param _request_timeout: timeout setting for this request. If one
2950
5912
  number provided, it will be total request
2951
5913
  timeout. It can also be a pair (tuple) of
@@ -2968,10 +5930,11 @@ class TweetApi:
2968
5930
  :return: Returns the result object.
2969
5931
  """ # noqa: E501
2970
5932
 
2971
- _param = self._get_search_timeline_serialize(
5933
+ _param = self._get_user_replies_timeline_serialize(
2972
5934
  path_query_id=path_query_id,
2973
5935
  variables=variables,
2974
5936
  features=features,
5937
+ field_toggles=field_toggles,
2975
5938
  _request_auth=_request_auth,
2976
5939
  _content_type=_content_type,
2977
5940
  _headers=_headers,
@@ -2979,7 +5942,7 @@ class TweetApi:
2979
5942
  )
2980
5943
 
2981
5944
  _response_types_map: Dict[str, Optional[str]] = {
2982
- '200': "SearchTimelineResponse",
5945
+ '200': "UserTweetsResponse",
2983
5946
  }
2984
5947
  response_data = self.api_client.call_api(
2985
5948
  *_param,
@@ -2993,11 +5956,12 @@ class TweetApi:
2993
5956
 
2994
5957
 
2995
5958
  @validate_call
2996
- def get_search_timeline_with_http_info(
5959
+ def get_user_replies_timeline_with_http_info(
2997
5960
  self,
2998
5961
  path_query_id: StrictStr,
2999
5962
  variables: StrictStr,
3000
5963
  features: StrictStr,
5964
+ field_toggles: StrictStr,
3001
5965
  _request_timeout: Union[
3002
5966
  None,
3003
5967
  Annotated[StrictFloat, Field(gt=0)],
@@ -3010,10 +5974,10 @@ class TweetApi:
3010
5974
  _content_type: Optional[StrictStr] = None,
3011
5975
  _headers: Optional[Dict[StrictStr, Any]] = None,
3012
5976
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3013
- ) -> ApiResponse[SearchTimelineResponse]:
3014
- """get_search_timeline
5977
+ ) -> ApiResponse[UserTweetsResponse]:
5978
+ """get_user_replies_timeline
3015
5979
 
3016
- search tweet list. product:[Top, Latest, People, Photos, Videos]
5980
+ get user tweets and replies (profile replies tab)
3017
5981
 
3018
5982
  :param path_query_id: (required)
3019
5983
  :type path_query_id: str
@@ -3021,6 +5985,8 @@ class TweetApi:
3021
5985
  :type variables: str
3022
5986
  :param features: (required)
3023
5987
  :type features: str
5988
+ :param field_toggles: (required)
5989
+ :type field_toggles: str
3024
5990
  :param _request_timeout: timeout setting for this request. If one
3025
5991
  number provided, it will be total request
3026
5992
  timeout. It can also be a pair (tuple) of
@@ -3043,10 +6009,11 @@ class TweetApi:
3043
6009
  :return: Returns the result object.
3044
6010
  """ # noqa: E501
3045
6011
 
3046
- _param = self._get_search_timeline_serialize(
6012
+ _param = self._get_user_replies_timeline_serialize(
3047
6013
  path_query_id=path_query_id,
3048
6014
  variables=variables,
3049
6015
  features=features,
6016
+ field_toggles=field_toggles,
3050
6017
  _request_auth=_request_auth,
3051
6018
  _content_type=_content_type,
3052
6019
  _headers=_headers,
@@ -3054,7 +6021,7 @@ class TweetApi:
3054
6021
  )
3055
6022
 
3056
6023
  _response_types_map: Dict[str, Optional[str]] = {
3057
- '200': "SearchTimelineResponse",
6024
+ '200': "UserTweetsResponse",
3058
6025
  }
3059
6026
  response_data = self.api_client.call_api(
3060
6027
  *_param,
@@ -3068,11 +6035,12 @@ class TweetApi:
3068
6035
 
3069
6036
 
3070
6037
  @validate_call
3071
- def get_search_timeline_without_preload_content(
6038
+ def get_user_replies_timeline_without_preload_content(
3072
6039
  self,
3073
6040
  path_query_id: StrictStr,
3074
6041
  variables: StrictStr,
3075
6042
  features: StrictStr,
6043
+ field_toggles: StrictStr,
3076
6044
  _request_timeout: Union[
3077
6045
  None,
3078
6046
  Annotated[StrictFloat, Field(gt=0)],
@@ -3086,9 +6054,9 @@ class TweetApi:
3086
6054
  _headers: Optional[Dict[StrictStr, Any]] = None,
3087
6055
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3088
6056
  ) -> RESTResponseType:
3089
- """get_search_timeline
6057
+ """get_user_replies_timeline
3090
6058
 
3091
- search tweet list. product:[Top, Latest, People, Photos, Videos]
6059
+ get user tweets and replies (profile replies tab)
3092
6060
 
3093
6061
  :param path_query_id: (required)
3094
6062
  :type path_query_id: str
@@ -3096,6 +6064,8 @@ class TweetApi:
3096
6064
  :type variables: str
3097
6065
  :param features: (required)
3098
6066
  :type features: str
6067
+ :param field_toggles: (required)
6068
+ :type field_toggles: str
3099
6069
  :param _request_timeout: timeout setting for this request. If one
3100
6070
  number provided, it will be total request
3101
6071
  timeout. It can also be a pair (tuple) of
@@ -3118,10 +6088,11 @@ class TweetApi:
3118
6088
  :return: Returns the result object.
3119
6089
  """ # noqa: E501
3120
6090
 
3121
- _param = self._get_search_timeline_serialize(
6091
+ _param = self._get_user_replies_timeline_serialize(
3122
6092
  path_query_id=path_query_id,
3123
6093
  variables=variables,
3124
6094
  features=features,
6095
+ field_toggles=field_toggles,
3125
6096
  _request_auth=_request_auth,
3126
6097
  _content_type=_content_type,
3127
6098
  _headers=_headers,
@@ -3129,7 +6100,7 @@ class TweetApi:
3129
6100
  )
3130
6101
 
3131
6102
  _response_types_map: Dict[str, Optional[str]] = {
3132
- '200': "SearchTimelineResponse",
6103
+ '200': "UserTweetsResponse",
3133
6104
  }
3134
6105
  response_data = self.api_client.call_api(
3135
6106
  *_param,
@@ -3138,11 +6109,12 @@ class TweetApi:
3138
6109
  return response_data.response
3139
6110
 
3140
6111
 
3141
- def _get_search_timeline_serialize(
6112
+ def _get_user_replies_timeline_serialize(
3142
6113
  self,
3143
6114
  path_query_id,
3144
6115
  variables,
3145
6116
  features,
6117
+ field_toggles,
3146
6118
  _request_auth,
3147
6119
  _content_type,
3148
6120
  _headers,
@@ -3175,6 +6147,10 @@ class TweetApi:
3175
6147
 
3176
6148
  _query_params.append(('features', features))
3177
6149
 
6150
+ if field_toggles is not None:
6151
+
6152
+ _query_params.append(('fieldToggles', field_toggles))
6153
+
3178
6154
  # process the header parameters
3179
6155
  # process the form parameters
3180
6156
  # process the body parameter
@@ -3218,7 +6194,7 @@ class TweetApi:
3218
6194
 
3219
6195
  return self.api_client.param_serialize(
3220
6196
  method='GET',
3221
- resource_path='/graphql/{pathQueryId}/SearchTimeline',
6197
+ resource_path='/graphql/{pathQueryId}/UserRepliesTimeline',
3222
6198
  path_params=_path_params,
3223
6199
  query_params=_query_params,
3224
6200
  header_params=_header_params,
@@ -3235,7 +6211,7 @@ class TweetApi:
3235
6211
 
3236
6212
 
3237
6213
  @validate_call
3238
- def get_tweet_detail(
6214
+ def get_user_reposts_timeline(
3239
6215
  self,
3240
6216
  path_query_id: StrictStr,
3241
6217
  variables: StrictStr,
@@ -3253,10 +6229,10 @@ class TweetApi:
3253
6229
  _content_type: Optional[StrictStr] = None,
3254
6230
  _headers: Optional[Dict[StrictStr, Any]] = None,
3255
6231
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3256
- ) -> TweetDetailResponse:
3257
- """get_tweet_detail
6232
+ ) -> UserTweetsResponse:
6233
+ """get_user_reposts_timeline
3258
6234
 
3259
- get TweetDetail
6235
+ get user reposts (profile reposts tab)
3260
6236
 
3261
6237
  :param path_query_id: (required)
3262
6238
  :type path_query_id: str
@@ -3288,7 +6264,7 @@ class TweetApi:
3288
6264
  :return: Returns the result object.
3289
6265
  """ # noqa: E501
3290
6266
 
3291
- _param = self._get_tweet_detail_serialize(
6267
+ _param = self._get_user_reposts_timeline_serialize(
3292
6268
  path_query_id=path_query_id,
3293
6269
  variables=variables,
3294
6270
  features=features,
@@ -3300,7 +6276,7 @@ class TweetApi:
3300
6276
  )
3301
6277
 
3302
6278
  _response_types_map: Dict[str, Optional[str]] = {
3303
- '200': "TweetDetailResponse",
6279
+ '200': "UserTweetsResponse",
3304
6280
  }
3305
6281
  response_data = self.api_client.call_api(
3306
6282
  *_param,
@@ -3314,7 +6290,7 @@ class TweetApi:
3314
6290
 
3315
6291
 
3316
6292
  @validate_call
3317
- def get_tweet_detail_with_http_info(
6293
+ def get_user_reposts_timeline_with_http_info(
3318
6294
  self,
3319
6295
  path_query_id: StrictStr,
3320
6296
  variables: StrictStr,
@@ -3332,10 +6308,10 @@ class TweetApi:
3332
6308
  _content_type: Optional[StrictStr] = None,
3333
6309
  _headers: Optional[Dict[StrictStr, Any]] = None,
3334
6310
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3335
- ) -> ApiResponse[TweetDetailResponse]:
3336
- """get_tweet_detail
6311
+ ) -> ApiResponse[UserTweetsResponse]:
6312
+ """get_user_reposts_timeline
3337
6313
 
3338
- get TweetDetail
6314
+ get user reposts (profile reposts tab)
3339
6315
 
3340
6316
  :param path_query_id: (required)
3341
6317
  :type path_query_id: str
@@ -3367,7 +6343,7 @@ class TweetApi:
3367
6343
  :return: Returns the result object.
3368
6344
  """ # noqa: E501
3369
6345
 
3370
- _param = self._get_tweet_detail_serialize(
6346
+ _param = self._get_user_reposts_timeline_serialize(
3371
6347
  path_query_id=path_query_id,
3372
6348
  variables=variables,
3373
6349
  features=features,
@@ -3379,7 +6355,7 @@ class TweetApi:
3379
6355
  )
3380
6356
 
3381
6357
  _response_types_map: Dict[str, Optional[str]] = {
3382
- '200': "TweetDetailResponse",
6358
+ '200': "UserTweetsResponse",
3383
6359
  }
3384
6360
  response_data = self.api_client.call_api(
3385
6361
  *_param,
@@ -3393,7 +6369,7 @@ class TweetApi:
3393
6369
 
3394
6370
 
3395
6371
  @validate_call
3396
- def get_tweet_detail_without_preload_content(
6372
+ def get_user_reposts_timeline_without_preload_content(
3397
6373
  self,
3398
6374
  path_query_id: StrictStr,
3399
6375
  variables: StrictStr,
@@ -3412,9 +6388,9 @@ class TweetApi:
3412
6388
  _headers: Optional[Dict[StrictStr, Any]] = None,
3413
6389
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3414
6390
  ) -> RESTResponseType:
3415
- """get_tweet_detail
6391
+ """get_user_reposts_timeline
3416
6392
 
3417
- get TweetDetail
6393
+ get user reposts (profile reposts tab)
3418
6394
 
3419
6395
  :param path_query_id: (required)
3420
6396
  :type path_query_id: str
@@ -3446,7 +6422,7 @@ class TweetApi:
3446
6422
  :return: Returns the result object.
3447
6423
  """ # noqa: E501
3448
6424
 
3449
- _param = self._get_tweet_detail_serialize(
6425
+ _param = self._get_user_reposts_timeline_serialize(
3450
6426
  path_query_id=path_query_id,
3451
6427
  variables=variables,
3452
6428
  features=features,
@@ -3458,7 +6434,7 @@ class TweetApi:
3458
6434
  )
3459
6435
 
3460
6436
  _response_types_map: Dict[str, Optional[str]] = {
3461
- '200': "TweetDetailResponse",
6437
+ '200': "UserTweetsResponse",
3462
6438
  }
3463
6439
  response_data = self.api_client.call_api(
3464
6440
  *_param,
@@ -3467,7 +6443,7 @@ class TweetApi:
3467
6443
  return response_data.response
3468
6444
 
3469
6445
 
3470
- def _get_tweet_detail_serialize(
6446
+ def _get_user_reposts_timeline_serialize(
3471
6447
  self,
3472
6448
  path_query_id,
3473
6449
  variables,
@@ -3552,7 +6528,7 @@ class TweetApi:
3552
6528
 
3553
6529
  return self.api_client.param_serialize(
3554
6530
  method='GET',
3555
- resource_path='/graphql/{pathQueryId}/TweetDetail',
6531
+ resource_path='/graphql/{pathQueryId}/UserRepostsTimeline',
3556
6532
  path_params=_path_params,
3557
6533
  query_params=_query_params,
3558
6534
  header_params=_header_params,
@@ -3569,7 +6545,7 @@ class TweetApi:
3569
6545
 
3570
6546
 
3571
6547
  @validate_call
3572
- def get_user_highlights_tweets(
6548
+ def get_user_super_follow_tweets(
3573
6549
  self,
3574
6550
  path_query_id: StrictStr,
3575
6551
  variables: StrictStr,
@@ -3587,10 +6563,10 @@ class TweetApi:
3587
6563
  _content_type: Optional[StrictStr] = None,
3588
6564
  _headers: Optional[Dict[StrictStr, Any]] = None,
3589
6565
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3590
- ) -> UserHighlightsTweetsResponse:
3591
- """get_user_highlights_tweets
6566
+ ) -> UserTweetsResponse:
6567
+ """get_user_super_follow_tweets
3592
6568
 
3593
- get user highlights tweets
6569
+ get user super follow tweets (subscriptions tab)
3594
6570
 
3595
6571
  :param path_query_id: (required)
3596
6572
  :type path_query_id: str
@@ -3622,7 +6598,7 @@ class TweetApi:
3622
6598
  :return: Returns the result object.
3623
6599
  """ # noqa: E501
3624
6600
 
3625
- _param = self._get_user_highlights_tweets_serialize(
6601
+ _param = self._get_user_super_follow_tweets_serialize(
3626
6602
  path_query_id=path_query_id,
3627
6603
  variables=variables,
3628
6604
  features=features,
@@ -3634,7 +6610,7 @@ class TweetApi:
3634
6610
  )
3635
6611
 
3636
6612
  _response_types_map: Dict[str, Optional[str]] = {
3637
- '200': "UserHighlightsTweetsResponse",
6613
+ '200': "UserTweetsResponse",
3638
6614
  }
3639
6615
  response_data = self.api_client.call_api(
3640
6616
  *_param,
@@ -3648,7 +6624,7 @@ class TweetApi:
3648
6624
 
3649
6625
 
3650
6626
  @validate_call
3651
- def get_user_highlights_tweets_with_http_info(
6627
+ def get_user_super_follow_tweets_with_http_info(
3652
6628
  self,
3653
6629
  path_query_id: StrictStr,
3654
6630
  variables: StrictStr,
@@ -3666,10 +6642,10 @@ class TweetApi:
3666
6642
  _content_type: Optional[StrictStr] = None,
3667
6643
  _headers: Optional[Dict[StrictStr, Any]] = None,
3668
6644
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3669
- ) -> ApiResponse[UserHighlightsTweetsResponse]:
3670
- """get_user_highlights_tweets
6645
+ ) -> ApiResponse[UserTweetsResponse]:
6646
+ """get_user_super_follow_tweets
3671
6647
 
3672
- get user highlights tweets
6648
+ get user super follow tweets (subscriptions tab)
3673
6649
 
3674
6650
  :param path_query_id: (required)
3675
6651
  :type path_query_id: str
@@ -3701,7 +6677,7 @@ class TweetApi:
3701
6677
  :return: Returns the result object.
3702
6678
  """ # noqa: E501
3703
6679
 
3704
- _param = self._get_user_highlights_tweets_serialize(
6680
+ _param = self._get_user_super_follow_tweets_serialize(
3705
6681
  path_query_id=path_query_id,
3706
6682
  variables=variables,
3707
6683
  features=features,
@@ -3713,7 +6689,7 @@ class TweetApi:
3713
6689
  )
3714
6690
 
3715
6691
  _response_types_map: Dict[str, Optional[str]] = {
3716
- '200': "UserHighlightsTweetsResponse",
6692
+ '200': "UserTweetsResponse",
3717
6693
  }
3718
6694
  response_data = self.api_client.call_api(
3719
6695
  *_param,
@@ -3727,7 +6703,7 @@ class TweetApi:
3727
6703
 
3728
6704
 
3729
6705
  @validate_call
3730
- def get_user_highlights_tweets_without_preload_content(
6706
+ def get_user_super_follow_tweets_without_preload_content(
3731
6707
  self,
3732
6708
  path_query_id: StrictStr,
3733
6709
  variables: StrictStr,
@@ -3746,9 +6722,9 @@ class TweetApi:
3746
6722
  _headers: Optional[Dict[StrictStr, Any]] = None,
3747
6723
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3748
6724
  ) -> RESTResponseType:
3749
- """get_user_highlights_tweets
6725
+ """get_user_super_follow_tweets
3750
6726
 
3751
- get user highlights tweets
6727
+ get user super follow tweets (subscriptions tab)
3752
6728
 
3753
6729
  :param path_query_id: (required)
3754
6730
  :type path_query_id: str
@@ -3780,7 +6756,7 @@ class TweetApi:
3780
6756
  :return: Returns the result object.
3781
6757
  """ # noqa: E501
3782
6758
 
3783
- _param = self._get_user_highlights_tweets_serialize(
6759
+ _param = self._get_user_super_follow_tweets_serialize(
3784
6760
  path_query_id=path_query_id,
3785
6761
  variables=variables,
3786
6762
  features=features,
@@ -3792,7 +6768,7 @@ class TweetApi:
3792
6768
  )
3793
6769
 
3794
6770
  _response_types_map: Dict[str, Optional[str]] = {
3795
- '200': "UserHighlightsTweetsResponse",
6771
+ '200': "UserTweetsResponse",
3796
6772
  }
3797
6773
  response_data = self.api_client.call_api(
3798
6774
  *_param,
@@ -3801,7 +6777,7 @@ class TweetApi:
3801
6777
  return response_data.response
3802
6778
 
3803
6779
 
3804
- def _get_user_highlights_tweets_serialize(
6780
+ def _get_user_super_follow_tweets_serialize(
3805
6781
  self,
3806
6782
  path_query_id,
3807
6783
  variables,
@@ -3886,7 +6862,7 @@ class TweetApi:
3886
6862
 
3887
6863
  return self.api_client.param_serialize(
3888
6864
  method='GET',
3889
- resource_path='/graphql/{pathQueryId}/UserHighlightsTweets',
6865
+ resource_path='/graphql/{pathQueryId}/UserSuperFollowTweets',
3890
6866
  path_params=_path_params,
3891
6867
  query_params=_query_params,
3892
6868
  header_params=_header_params,
@@ -3903,7 +6879,7 @@ class TweetApi:
3903
6879
 
3904
6880
 
3905
6881
  @validate_call
3906
- def get_user_media(
6882
+ def get_user_tweets(
3907
6883
  self,
3908
6884
  path_query_id: StrictStr,
3909
6885
  variables: StrictStr,
@@ -3922,9 +6898,9 @@ class TweetApi:
3922
6898
  _headers: Optional[Dict[StrictStr, Any]] = None,
3923
6899
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3924
6900
  ) -> UserTweetsResponse:
3925
- """get_user_media
6901
+ """get_user_tweets
3926
6902
 
3927
- get user media tweets
6903
+ get user tweets
3928
6904
 
3929
6905
  :param path_query_id: (required)
3930
6906
  :type path_query_id: str
@@ -3956,7 +6932,7 @@ class TweetApi:
3956
6932
  :return: Returns the result object.
3957
6933
  """ # noqa: E501
3958
6934
 
3959
- _param = self._get_user_media_serialize(
6935
+ _param = self._get_user_tweets_serialize(
3960
6936
  path_query_id=path_query_id,
3961
6937
  variables=variables,
3962
6938
  features=features,
@@ -3982,7 +6958,7 @@ class TweetApi:
3982
6958
 
3983
6959
 
3984
6960
  @validate_call
3985
- def get_user_media_with_http_info(
6961
+ def get_user_tweets_with_http_info(
3986
6962
  self,
3987
6963
  path_query_id: StrictStr,
3988
6964
  variables: StrictStr,
@@ -4001,9 +6977,9 @@ class TweetApi:
4001
6977
  _headers: Optional[Dict[StrictStr, Any]] = None,
4002
6978
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4003
6979
  ) -> ApiResponse[UserTweetsResponse]:
4004
- """get_user_media
6980
+ """get_user_tweets
4005
6981
 
4006
- get user media tweets
6982
+ get user tweets
4007
6983
 
4008
6984
  :param path_query_id: (required)
4009
6985
  :type path_query_id: str
@@ -4035,7 +7011,7 @@ class TweetApi:
4035
7011
  :return: Returns the result object.
4036
7012
  """ # noqa: E501
4037
7013
 
4038
- _param = self._get_user_media_serialize(
7014
+ _param = self._get_user_tweets_serialize(
4039
7015
  path_query_id=path_query_id,
4040
7016
  variables=variables,
4041
7017
  features=features,
@@ -4061,7 +7037,7 @@ class TweetApi:
4061
7037
 
4062
7038
 
4063
7039
  @validate_call
4064
- def get_user_media_without_preload_content(
7040
+ def get_user_tweets_without_preload_content(
4065
7041
  self,
4066
7042
  path_query_id: StrictStr,
4067
7043
  variables: StrictStr,
@@ -4080,9 +7056,9 @@ class TweetApi:
4080
7056
  _headers: Optional[Dict[StrictStr, Any]] = None,
4081
7057
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4082
7058
  ) -> RESTResponseType:
4083
- """get_user_media
7059
+ """get_user_tweets
4084
7060
 
4085
- get user media tweets
7061
+ get user tweets
4086
7062
 
4087
7063
  :param path_query_id: (required)
4088
7064
  :type path_query_id: str
@@ -4114,7 +7090,7 @@ class TweetApi:
4114
7090
  :return: Returns the result object.
4115
7091
  """ # noqa: E501
4116
7092
 
4117
- _param = self._get_user_media_serialize(
7093
+ _param = self._get_user_tweets_serialize(
4118
7094
  path_query_id=path_query_id,
4119
7095
  variables=variables,
4120
7096
  features=features,
@@ -4135,7 +7111,7 @@ class TweetApi:
4135
7111
  return response_data.response
4136
7112
 
4137
7113
 
4138
- def _get_user_media_serialize(
7114
+ def _get_user_tweets_serialize(
4139
7115
  self,
4140
7116
  path_query_id,
4141
7117
  variables,
@@ -4220,7 +7196,7 @@ class TweetApi:
4220
7196
 
4221
7197
  return self.api_client.param_serialize(
4222
7198
  method='GET',
4223
- resource_path='/graphql/{pathQueryId}/UserMedia',
7199
+ resource_path='/graphql/{pathQueryId}/UserTweets',
4224
7200
  path_params=_path_params,
4225
7201
  query_params=_query_params,
4226
7202
  header_params=_header_params,
@@ -4237,7 +7213,7 @@ class TweetApi:
4237
7213
 
4238
7214
 
4239
7215
  @validate_call
4240
- def get_user_tweets(
7216
+ def get_user_tweets_and_replies(
4241
7217
  self,
4242
7218
  path_query_id: StrictStr,
4243
7219
  variables: StrictStr,
@@ -4256,9 +7232,9 @@ class TweetApi:
4256
7232
  _headers: Optional[Dict[StrictStr, Any]] = None,
4257
7233
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4258
7234
  ) -> UserTweetsResponse:
4259
- """get_user_tweets
7235
+ """get_user_tweets_and_replies
4260
7236
 
4261
- get user tweets
7237
+ get user replies tweets
4262
7238
 
4263
7239
  :param path_query_id: (required)
4264
7240
  :type path_query_id: str
@@ -4290,7 +7266,7 @@ class TweetApi:
4290
7266
  :return: Returns the result object.
4291
7267
  """ # noqa: E501
4292
7268
 
4293
- _param = self._get_user_tweets_serialize(
7269
+ _param = self._get_user_tweets_and_replies_serialize(
4294
7270
  path_query_id=path_query_id,
4295
7271
  variables=variables,
4296
7272
  features=features,
@@ -4316,7 +7292,7 @@ class TweetApi:
4316
7292
 
4317
7293
 
4318
7294
  @validate_call
4319
- def get_user_tweets_with_http_info(
7295
+ def get_user_tweets_and_replies_with_http_info(
4320
7296
  self,
4321
7297
  path_query_id: StrictStr,
4322
7298
  variables: StrictStr,
@@ -4335,9 +7311,9 @@ class TweetApi:
4335
7311
  _headers: Optional[Dict[StrictStr, Any]] = None,
4336
7312
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4337
7313
  ) -> ApiResponse[UserTweetsResponse]:
4338
- """get_user_tweets
7314
+ """get_user_tweets_and_replies
4339
7315
 
4340
- get user tweets
7316
+ get user replies tweets
4341
7317
 
4342
7318
  :param path_query_id: (required)
4343
7319
  :type path_query_id: str
@@ -4369,7 +7345,7 @@ class TweetApi:
4369
7345
  :return: Returns the result object.
4370
7346
  """ # noqa: E501
4371
7347
 
4372
- _param = self._get_user_tweets_serialize(
7348
+ _param = self._get_user_tweets_and_replies_serialize(
4373
7349
  path_query_id=path_query_id,
4374
7350
  variables=variables,
4375
7351
  features=features,
@@ -4395,7 +7371,7 @@ class TweetApi:
4395
7371
 
4396
7372
 
4397
7373
  @validate_call
4398
- def get_user_tweets_without_preload_content(
7374
+ def get_user_tweets_and_replies_without_preload_content(
4399
7375
  self,
4400
7376
  path_query_id: StrictStr,
4401
7377
  variables: StrictStr,
@@ -4414,9 +7390,9 @@ class TweetApi:
4414
7390
  _headers: Optional[Dict[StrictStr, Any]] = None,
4415
7391
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4416
7392
  ) -> RESTResponseType:
4417
- """get_user_tweets
7393
+ """get_user_tweets_and_replies
4418
7394
 
4419
- get user tweets
7395
+ get user replies tweets
4420
7396
 
4421
7397
  :param path_query_id: (required)
4422
7398
  :type path_query_id: str
@@ -4448,7 +7424,7 @@ class TweetApi:
4448
7424
  :return: Returns the result object.
4449
7425
  """ # noqa: E501
4450
7426
 
4451
- _param = self._get_user_tweets_serialize(
7427
+ _param = self._get_user_tweets_and_replies_serialize(
4452
7428
  path_query_id=path_query_id,
4453
7429
  variables=variables,
4454
7430
  features=features,
@@ -4469,7 +7445,7 @@ class TweetApi:
4469
7445
  return response_data.response
4470
7446
 
4471
7447
 
4472
- def _get_user_tweets_serialize(
7448
+ def _get_user_tweets_and_replies_serialize(
4473
7449
  self,
4474
7450
  path_query_id,
4475
7451
  variables,
@@ -4554,7 +7530,7 @@ class TweetApi:
4554
7530
 
4555
7531
  return self.api_client.param_serialize(
4556
7532
  method='GET',
4557
- resource_path='/graphql/{pathQueryId}/UserTweets',
7533
+ resource_path='/graphql/{pathQueryId}/UserTweetsAndReplies',
4558
7534
  path_params=_path_params,
4559
7535
  query_params=_query_params,
4560
7536
  header_params=_header_params,
@@ -4571,7 +7547,7 @@ class TweetApi:
4571
7547
 
4572
7548
 
4573
7549
  @validate_call
4574
- def get_user_tweets_and_replies(
7550
+ def get_user_video_timeline(
4575
7551
  self,
4576
7552
  path_query_id: StrictStr,
4577
7553
  variables: StrictStr,
@@ -4590,9 +7566,9 @@ class TweetApi:
4590
7566
  _headers: Optional[Dict[StrictStr, Any]] = None,
4591
7567
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4592
7568
  ) -> UserTweetsResponse:
4593
- """get_user_tweets_and_replies
7569
+ """get_user_video_timeline
4594
7570
 
4595
- get user replies tweets
7571
+ get user media (profile media tab)
4596
7572
 
4597
7573
  :param path_query_id: (required)
4598
7574
  :type path_query_id: str
@@ -4624,7 +7600,7 @@ class TweetApi:
4624
7600
  :return: Returns the result object.
4625
7601
  """ # noqa: E501
4626
7602
 
4627
- _param = self._get_user_tweets_and_replies_serialize(
7603
+ _param = self._get_user_video_timeline_serialize(
4628
7604
  path_query_id=path_query_id,
4629
7605
  variables=variables,
4630
7606
  features=features,
@@ -4650,7 +7626,7 @@ class TweetApi:
4650
7626
 
4651
7627
 
4652
7628
  @validate_call
4653
- def get_user_tweets_and_replies_with_http_info(
7629
+ def get_user_video_timeline_with_http_info(
4654
7630
  self,
4655
7631
  path_query_id: StrictStr,
4656
7632
  variables: StrictStr,
@@ -4669,9 +7645,9 @@ class TweetApi:
4669
7645
  _headers: Optional[Dict[StrictStr, Any]] = None,
4670
7646
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4671
7647
  ) -> ApiResponse[UserTweetsResponse]:
4672
- """get_user_tweets_and_replies
7648
+ """get_user_video_timeline
4673
7649
 
4674
- get user replies tweets
7650
+ get user media (profile media tab)
4675
7651
 
4676
7652
  :param path_query_id: (required)
4677
7653
  :type path_query_id: str
@@ -4703,7 +7679,7 @@ class TweetApi:
4703
7679
  :return: Returns the result object.
4704
7680
  """ # noqa: E501
4705
7681
 
4706
- _param = self._get_user_tweets_and_replies_serialize(
7682
+ _param = self._get_user_video_timeline_serialize(
4707
7683
  path_query_id=path_query_id,
4708
7684
  variables=variables,
4709
7685
  features=features,
@@ -4729,7 +7705,7 @@ class TweetApi:
4729
7705
 
4730
7706
 
4731
7707
  @validate_call
4732
- def get_user_tweets_and_replies_without_preload_content(
7708
+ def get_user_video_timeline_without_preload_content(
4733
7709
  self,
4734
7710
  path_query_id: StrictStr,
4735
7711
  variables: StrictStr,
@@ -4748,9 +7724,9 @@ class TweetApi:
4748
7724
  _headers: Optional[Dict[StrictStr, Any]] = None,
4749
7725
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4750
7726
  ) -> RESTResponseType:
4751
- """get_user_tweets_and_replies
7727
+ """get_user_video_timeline
4752
7728
 
4753
- get user replies tweets
7729
+ get user media (profile media tab)
4754
7730
 
4755
7731
  :param path_query_id: (required)
4756
7732
  :type path_query_id: str
@@ -4782,7 +7758,7 @@ class TweetApi:
4782
7758
  :return: Returns the result object.
4783
7759
  """ # noqa: E501
4784
7760
 
4785
- _param = self._get_user_tweets_and_replies_serialize(
7761
+ _param = self._get_user_video_timeline_serialize(
4786
7762
  path_query_id=path_query_id,
4787
7763
  variables=variables,
4788
7764
  features=features,
@@ -4803,7 +7779,7 @@ class TweetApi:
4803
7779
  return response_data.response
4804
7780
 
4805
7781
 
4806
- def _get_user_tweets_and_replies_serialize(
7782
+ def _get_user_video_timeline_serialize(
4807
7783
  self,
4808
7784
  path_query_id,
4809
7785
  variables,
@@ -4888,7 +7864,7 @@ class TweetApi:
4888
7864
 
4889
7865
  return self.api_client.param_serialize(
4890
7866
  method='GET',
4891
- resource_path='/graphql/{pathQueryId}/UserTweetsAndReplies',
7867
+ resource_path='/graphql/{pathQueryId}/UserVideoTimeline',
4892
7868
  path_params=_path_params,
4893
7869
  query_params=_query_params,
4894
7870
  header_params=_header_params,