twitter-openapi-python-generated 0.0.33__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 (451) hide show
  1. twitter_openapi_python_generated/__init__.py +906 -330
  2. twitter_openapi_python_generated/api/default_api.py +1 -2
  3. twitter_openapi_python_generated/api/other_api.py +1 -2
  4. twitter_openapi_python_generated/api/post_api.py +2081 -206
  5. twitter_openapi_python_generated/api/tweet_api.py +3225 -250
  6. twitter_openapi_python_generated/api/user_api.py +993 -91
  7. twitter_openapi_python_generated/api/user_list_api.py +2291 -68
  8. twitter_openapi_python_generated/api/users_api.py +1 -2
  9. twitter_openapi_python_generated/api/v11_get_api.py +1 -2
  10. twitter_openapi_python_generated/api/v11_post_api.py +1 -2
  11. twitter_openapi_python_generated/api/v20_get_api.py +1 -2
  12. twitter_openapi_python_generated/api_client.py +81 -36
  13. twitter_openapi_python_generated/configuration.py +103 -30
  14. twitter_openapi_python_generated/exceptions.py +7 -5
  15. twitter_openapi_python_generated/models/__init__.py +123 -2
  16. twitter_openapi_python_generated/models/about_community_result.py +4 -3
  17. twitter_openapi_python_generated/models/about_community_results.py +4 -3
  18. twitter_openapi_python_generated/models/about_community_tweet_data.py +4 -3
  19. twitter_openapi_python_generated/models/additional_media_info.py +7 -4
  20. twitter_openapi_python_generated/models/additional_media_info_call_to_actions.py +4 -3
  21. twitter_openapi_python_generated/models/additional_media_info_call_to_actions_url.py +4 -3
  22. twitter_openapi_python_generated/models/allow_download_status.py +4 -3
  23. twitter_openapi_python_generated/models/analysis_results.py +4 -3
  24. twitter_openapi_python_generated/models/article.py +4 -3
  25. twitter_openapi_python_generated/models/article_cover_media.py +6 -5
  26. twitter_openapi_python_generated/models/article_cover_media_color_info.py +5 -5
  27. twitter_openapi_python_generated/models/article_cover_media_color_info_palette.py +4 -3
  28. twitter_openapi_python_generated/models/article_cover_media_color_info_palette_rgb.py +4 -3
  29. twitter_openapi_python_generated/models/article_cover_media_info.py +4 -3
  30. twitter_openapi_python_generated/models/article_lifecycle_state.py +4 -3
  31. twitter_openapi_python_generated/models/article_metadata.py +4 -3
  32. twitter_openapi_python_generated/models/article_preview.py +99 -0
  33. twitter_openapi_python_generated/models/article_result.py +21 -8
  34. twitter_openapi_python_generated/models/article_results.py +4 -3
  35. twitter_openapi_python_generated/models/author_community_relationship.py +9 -8
  36. twitter_openapi_python_generated/models/badge_counts.py +97 -0
  37. twitter_openapi_python_generated/models/birdwatch_entity.py +4 -3
  38. twitter_openapi_python_generated/models/birdwatch_entity_ref.py +7 -4
  39. twitter_openapi_python_generated/models/birdwatch_pivot.py +19 -6
  40. twitter_openapi_python_generated/models/birdwatch_pivot_call_to_action.py +4 -3
  41. twitter_openapi_python_generated/models/birdwatch_pivot_footer.py +5 -5
  42. twitter_openapi_python_generated/models/birdwatch_pivot_note.py +19 -8
  43. twitter_openapi_python_generated/models/birdwatch_pivot_subtitle.py +5 -5
  44. twitter_openapi_python_generated/models/bookmarks_response.py +5 -5
  45. twitter_openapi_python_generated/models/bookmarks_response_data.py +4 -3
  46. twitter_openapi_python_generated/models/bookmarks_timeline.py +4 -3
  47. twitter_openapi_python_generated/models/callback.py +4 -3
  48. twitter_openapi_python_generated/models/cashtag_attachment.py +89 -0
  49. twitter_openapi_python_generated/models/client_event_info.py +4 -3
  50. twitter_openapi_python_generated/models/communities_actions.py +4 -3
  51. twitter_openapi_python_generated/models/community.py +141 -12
  52. twitter_openapi_python_generated/models/community_about_timeline_response.py +5 -5
  53. twitter_openapi_python_generated/models/community_actions.py +4 -3
  54. twitter_openapi_python_generated/models/community_delete_action_result.py +4 -3
  55. twitter_openapi_python_generated/models/community_discovery_timeline_response.py +102 -0
  56. twitter_openapi_python_generated/models/community_discovery_timeline_response_data.py +93 -0
  57. twitter_openapi_python_generated/models/community_discovery_timeline_viewer.py +93 -0
  58. twitter_openapi_python_generated/models/community_invites_result.py +4 -3
  59. twitter_openapi_python_generated/models/community_join_action.py +4 -3
  60. twitter_openapi_python_generated/models/community_join_action_result_union.py +3 -2
  61. twitter_openapi_python_generated/models/community_join_action_unavailable.py +4 -3
  62. twitter_openapi_python_generated/models/community_join_requests_result.py +4 -3
  63. twitter_openapi_python_generated/models/community_leave_action_result.py +4 -3
  64. twitter_openapi_python_generated/models/community_media_timeline_response.py +5 -5
  65. twitter_openapi_python_generated/models/community_pin_action_result.py +4 -3
  66. twitter_openapi_python_generated/models/community_relationship.py +6 -5
  67. twitter_openapi_python_generated/models/community_result.py +93 -0
  68. twitter_openapi_python_generated/models/community_rule.py +6 -5
  69. twitter_openapi_python_generated/models/community_tweets_timeline_response.py +5 -5
  70. twitter_openapi_python_generated/models/community_unavailable.py +90 -0
  71. twitter_openapi_python_generated/models/community_union.py +157 -0
  72. twitter_openapi_python_generated/models/community_unpin_action_result.py +4 -3
  73. twitter_openapi_python_generated/models/community_urls.py +4 -3
  74. twitter_openapi_python_generated/models/community_urls_permalink.py +4 -3
  75. twitter_openapi_python_generated/models/connect_tab_timeline_response.py +102 -0
  76. twitter_openapi_python_generated/models/connect_tab_timeline_response_data.py +93 -0
  77. twitter_openapi_python_generated/models/content_disclosure.py +99 -0
  78. twitter_openapi_python_generated/models/content_disclosure_advertising_disclosure.py +89 -0
  79. twitter_openapi_python_generated/models/content_disclosure_ai_generated_disclosure.py +103 -0
  80. twitter_openapi_python_generated/models/content_item_type.py +3 -0
  81. twitter_openapi_python_generated/models/content_union.py +3 -2
  82. twitter_openapi_python_generated/models/conversation_control.py +4 -3
  83. twitter_openapi_python_generated/models/cover_cta.py +5 -5
  84. twitter_openapi_python_generated/models/create_bookmark_response.py +5 -5
  85. twitter_openapi_python_generated/models/create_bookmark_response_data.py +4 -3
  86. twitter_openapi_python_generated/models/create_draft_tweet_response.py +102 -0
  87. twitter_openapi_python_generated/models/create_draft_tweet_response_data.py +93 -0
  88. twitter_openapi_python_generated/models/create_draft_tweet_response_tweet.py +97 -0
  89. twitter_openapi_python_generated/models/create_retweet.py +4 -3
  90. twitter_openapi_python_generated/models/create_retweet_response.py +5 -5
  91. twitter_openapi_python_generated/models/create_retweet_response_data.py +4 -3
  92. twitter_openapi_python_generated/models/create_retweet_response_result.py +4 -3
  93. twitter_openapi_python_generated/models/create_tweet.py +4 -3
  94. twitter_openapi_python_generated/models/create_tweet_response.py +5 -5
  95. twitter_openapi_python_generated/models/create_tweet_response_data.py +4 -3
  96. twitter_openapi_python_generated/models/create_tweet_response_result.py +4 -3
  97. twitter_openapi_python_generated/models/cta_client_event_info.py +4 -3
  98. twitter_openapi_python_generated/models/delete_bookmark_response.py +5 -5
  99. twitter_openapi_python_generated/models/delete_bookmark_response_data.py +4 -3
  100. twitter_openapi_python_generated/models/delete_draft_tweets_response.py +102 -0
  101. twitter_openapi_python_generated/models/delete_draft_tweets_response_data.py +89 -0
  102. twitter_openapi_python_generated/models/delete_list_response.py +102 -0
  103. twitter_openapi_python_generated/models/delete_list_response_data.py +89 -0
  104. twitter_openapi_python_generated/models/delete_retweet.py +5 -5
  105. twitter_openapi_python_generated/models/delete_retweet_response.py +5 -5
  106. twitter_openapi_python_generated/models/delete_retweet_response_data.py +4 -3
  107. twitter_openapi_python_generated/models/delete_retweet_response_result.py +4 -3
  108. twitter_openapi_python_generated/models/delete_tweet_response.py +5 -5
  109. twitter_openapi_python_generated/models/delete_tweet_response_data.py +4 -3
  110. twitter_openapi_python_generated/models/delete_tweet_response_result.py +4 -3
  111. twitter_openapi_python_generated/models/display_treatment.py +4 -3
  112. twitter_openapi_python_generated/models/draft_list.py +96 -0
  113. twitter_openapi_python_generated/models/draft_tweet.py +109 -0
  114. twitter_openapi_python_generated/models/draft_tweet_create_request.py +99 -0
  115. twitter_openapi_python_generated/models/draft_tweet_user.py +100 -0
  116. twitter_openapi_python_generated/models/draft_tweet_user_results.py +93 -0
  117. twitter_openapi_python_generated/models/draft_tweets_viewer.py +93 -0
  118. twitter_openapi_python_generated/models/entities.py +24 -15
  119. twitter_openapi_python_generated/models/error_extensions.py +5 -4
  120. twitter_openapi_python_generated/models/error_response.py +15 -8
  121. twitter_openapi_python_generated/models/error_response_path_inner.py +144 -0
  122. twitter_openapi_python_generated/models/explore_page.py +95 -0
  123. twitter_openapi_python_generated/models/explore_page_body.py +104 -0
  124. twitter_openapi_python_generated/models/explore_page_response.py +102 -0
  125. twitter_openapi_python_generated/models/explore_page_response_data.py +93 -0
  126. twitter_openapi_python_generated/models/explore_timeline.py +105 -0
  127. twitter_openapi_python_generated/models/explore_timeline_scribe_config.py +91 -0
  128. twitter_openapi_python_generated/models/ext_media_availability.py +4 -3
  129. twitter_openapi_python_generated/models/extended_entities.py +5 -5
  130. twitter_openapi_python_generated/models/favorite_tweet.py +4 -3
  131. twitter_openapi_python_generated/models/favorite_tweet_response.py +5 -5
  132. twitter_openapi_python_generated/models/feedback_info.py +4 -3
  133. twitter_openapi_python_generated/models/fetch_draft_tweets_response.py +102 -0
  134. twitter_openapi_python_generated/models/fetch_draft_tweets_response_data.py +93 -0
  135. twitter_openapi_python_generated/models/fetch_scheduled_tweets_response.py +102 -0
  136. twitter_openapi_python_generated/models/fetch_scheduled_tweets_response_data.py +93 -0
  137. twitter_openapi_python_generated/models/follow_response.py +5 -5
  138. twitter_openapi_python_generated/models/follow_response_data.py +4 -3
  139. twitter_openapi_python_generated/models/follow_response_result.py +4 -3
  140. twitter_openapi_python_generated/models/follow_response_user.py +4 -3
  141. twitter_openapi_python_generated/models/follow_timeline.py +4 -3
  142. twitter_openapi_python_generated/models/generic_timeline_by_id_response.py +102 -0
  143. twitter_openapi_python_generated/models/generic_timeline_by_id_response_data.py +93 -0
  144. twitter_openapi_python_generated/models/grok_annotation.py +89 -0
  145. twitter_openapi_python_generated/models/grok_entity.py +97 -0
  146. twitter_openapi_python_generated/models/grok_entity_ref.py +116 -0
  147. twitter_openapi_python_generated/models/grok_image_annotation.py +4 -3
  148. twitter_openapi_python_generated/models/grok_share_attachment.py +5 -5
  149. twitter_openapi_python_generated/models/grok_share_attachment_item.py +7 -4
  150. twitter_openapi_python_generated/models/grok_translated_bio.py +101 -0
  151. twitter_openapi_python_generated/models/grok_translated_bio_with_availability.py +97 -0
  152. twitter_openapi_python_generated/models/grok_translated_community_note.py +104 -0
  153. twitter_openapi_python_generated/models/grok_translated_community_note_with_availability.py +95 -0
  154. twitter_openapi_python_generated/models/grok_translated_post.py +103 -0
  155. twitter_openapi_python_generated/models/grok_translated_post_with_availability.py +95 -0
  156. twitter_openapi_python_generated/models/highlight.py +5 -5
  157. twitter_openapi_python_generated/models/home_timeline_home.py +4 -3
  158. twitter_openapi_python_generated/models/home_timeline_response_data.py +4 -3
  159. twitter_openapi_python_generated/models/instruction_union.py +3 -2
  160. twitter_openapi_python_generated/models/item_content_union.py +68 -10
  161. twitter_openapi_python_generated/models/item_result.py +4 -3
  162. twitter_openapi_python_generated/models/limited_action_results_data.py +4 -3
  163. twitter_openapi_python_generated/models/list_banner_media.py +93 -0
  164. twitter_openapi_python_generated/models/list_banner_media_info.py +99 -0
  165. twitter_openapi_python_generated/models/list_banner_media_salient_rect.py +95 -0
  166. twitter_openapi_python_generated/models/list_latest_tweets_timeline_response.py +5 -5
  167. twitter_openapi_python_generated/models/list_members_list.py +93 -0
  168. twitter_openapi_python_generated/models/list_members_response.py +102 -0
  169. twitter_openapi_python_generated/models/list_members_response_data.py +93 -0
  170. twitter_openapi_python_generated/models/list_recommended_users_list.py +93 -0
  171. twitter_openapi_python_generated/models/list_recommended_users_response.py +102 -0
  172. twitter_openapi_python_generated/models/list_recommended_users_response_data.py +93 -0
  173. twitter_openapi_python_generated/models/list_response.py +102 -0
  174. twitter_openapi_python_generated/models/list_response_data.py +93 -0
  175. twitter_openapi_python_generated/models/list_subscribers_list.py +93 -0
  176. twitter_openapi_python_generated/models/list_subscribers_response.py +102 -0
  177. twitter_openapi_python_generated/models/list_subscribers_response_data.py +93 -0
  178. twitter_openapi_python_generated/models/list_tweets_timeline_data.py +4 -3
  179. twitter_openapi_python_generated/models/list_tweets_timeline_list.py +4 -3
  180. twitter_openapi_python_generated/models/location.py +4 -3
  181. twitter_openapi_python_generated/models/media.py +23 -11
  182. twitter_openapi_python_generated/models/media_community_result.py +4 -3
  183. twitter_openapi_python_generated/models/media_community_results.py +4 -3
  184. twitter_openapi_python_generated/models/media_community_tweet_data.py +4 -3
  185. twitter_openapi_python_generated/models/media_extended.py +20 -10
  186. twitter_openapi_python_generated/models/media_original_info.py +5 -5
  187. twitter_openapi_python_generated/models/media_original_info_focus_rect.py +4 -3
  188. twitter_openapi_python_generated/models/media_result.py +4 -3
  189. twitter_openapi_python_generated/models/media_results.py +4 -3
  190. twitter_openapi_python_generated/models/media_size.py +4 -3
  191. twitter_openapi_python_generated/models/media_sizes.py +4 -3
  192. twitter_openapi_python_generated/models/media_stats.py +4 -3
  193. twitter_openapi_python_generated/models/media_video_info.py +5 -5
  194. twitter_openapi_python_generated/models/media_video_info_variant.py +4 -3
  195. twitter_openapi_python_generated/models/media_visibility_results.py +4 -3
  196. twitter_openapi_python_generated/models/media_visibility_results_blurred_image_interstitial.py +4 -3
  197. twitter_openapi_python_generated/models/module_entry.py +4 -3
  198. twitter_openapi_python_generated/models/module_item.py +6 -5
  199. twitter_openapi_python_generated/models/note_tweet.py +6 -5
  200. twitter_openapi_python_generated/models/note_tweet_result.py +4 -3
  201. twitter_openapi_python_generated/models/note_tweet_result_data.py +6 -5
  202. twitter_openapi_python_generated/models/note_tweet_result_media.py +5 -5
  203. twitter_openapi_python_generated/models/note_tweet_result_media_inline_media.py +6 -5
  204. twitter_openapi_python_generated/models/note_tweet_result_rich_text.py +5 -5
  205. twitter_openapi_python_generated/models/note_tweet_result_rich_text_tag.py +4 -3
  206. twitter_openapi_python_generated/models/notification_template.py +4 -3
  207. twitter_openapi_python_generated/models/notifications_result.py +6 -5
  208. twitter_openapi_python_generated/models/notifications_timeline_data.py +4 -3
  209. twitter_openapi_python_generated/models/notifications_timeline_response.py +5 -5
  210. twitter_openapi_python_generated/models/notifications_user_results.py +4 -3
  211. twitter_openapi_python_generated/models/notifications_viewer_v2.py +4 -3
  212. twitter_openapi_python_generated/models/one_factor_login_eligibility.py +4 -3
  213. twitter_openapi_python_generated/models/other_object_all.py +4 -3
  214. twitter_openapi_python_generated/models/post_create_bookmark_request.py +5 -4
  215. twitter_openapi_python_generated/models/post_create_bookmark_request_variables.py +6 -5
  216. twitter_openapi_python_generated/models/post_create_draft_tweet_request.py +95 -0
  217. twitter_openapi_python_generated/models/post_create_draft_tweet_request_variables.py +93 -0
  218. twitter_openapi_python_generated/models/post_create_draft_tweet_request_variables_post_tweet_request.py +97 -0
  219. twitter_openapi_python_generated/models/post_create_list_request.py +101 -0
  220. twitter_openapi_python_generated/models/post_create_list_request_features.py +97 -0
  221. twitter_openapi_python_generated/models/post_create_list_request_variables.py +93 -0
  222. twitter_openapi_python_generated/models/post_create_retweet_request.py +6 -5
  223. twitter_openapi_python_generated/models/post_create_retweet_request_variables.py +7 -6
  224. twitter_openapi_python_generated/models/post_create_tweet_request.py +6 -5
  225. twitter_openapi_python_generated/models/post_create_tweet_request_features.py +60 -43
  226. twitter_openapi_python_generated/models/post_create_tweet_request_variables.py +8 -7
  227. twitter_openapi_python_generated/models/post_create_tweet_request_variables_conversation_control.py +6 -5
  228. twitter_openapi_python_generated/models/post_create_tweet_request_variables_media.py +7 -7
  229. twitter_openapi_python_generated/models/post_create_tweet_request_variables_media_media_entities_inner.py +6 -5
  230. twitter_openapi_python_generated/models/post_create_tweet_request_variables_reply.py +6 -5
  231. twitter_openapi_python_generated/models/post_cta.py +101 -0
  232. twitter_openapi_python_generated/models/post_cta_title_text.py +98 -0
  233. twitter_openapi_python_generated/models/post_cta_title_text_entity.py +97 -0
  234. twitter_openapi_python_generated/models/post_cta_title_text_entity_ref.py +96 -0
  235. twitter_openapi_python_generated/models/post_cta_user_results.py +93 -0
  236. twitter_openapi_python_generated/models/post_cta_user_results_avatar.py +89 -0
  237. twitter_openapi_python_generated/models/post_cta_user_results_result.py +96 -0
  238. twitter_openapi_python_generated/models/post_delete_bookmark_request.py +5 -4
  239. twitter_openapi_python_generated/models/post_delete_draft_tweets_request.py +95 -0
  240. twitter_openapi_python_generated/models/post_delete_draft_tweets_request_variables.py +89 -0
  241. twitter_openapi_python_generated/models/post_delete_list_request.py +95 -0
  242. twitter_openapi_python_generated/models/post_delete_list_request_variables.py +89 -0
  243. twitter_openapi_python_generated/models/post_delete_retweet_request.py +6 -5
  244. twitter_openapi_python_generated/models/post_delete_retweet_request_variables.py +7 -6
  245. twitter_openapi_python_generated/models/post_delete_tweet_request.py +6 -5
  246. twitter_openapi_python_generated/models/post_favorite_tweet_request.py +5 -4
  247. twitter_openapi_python_generated/models/post_list_add_member_request.py +101 -0
  248. twitter_openapi_python_generated/models/post_list_add_member_request_variables.py +91 -0
  249. twitter_openapi_python_generated/models/post_list_remove_member_request.py +101 -0
  250. twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py +5 -4
  251. twitter_openapi_python_generated/models/primary_community_topic.py +6 -5
  252. twitter_openapi_python_generated/models/profile_bio.py +97 -0
  253. twitter_openapi_python_generated/models/profile_bio_entities.py +98 -0
  254. twitter_openapi_python_generated/models/profile_bio_entities_urls.py +96 -0
  255. twitter_openapi_python_generated/models/profile_response.py +5 -5
  256. twitter_openapi_python_generated/models/profile_response_data.py +4 -3
  257. twitter_openapi_python_generated/models/quoted_ref_result.py +4 -3
  258. twitter_openapi_python_generated/models/quoted_status_permalink.py +4 -3
  259. twitter_openapi_python_generated/models/ranked_community_result.py +4 -3
  260. twitter_openapi_python_generated/models/ranked_community_results.py +4 -3
  261. twitter_openapi_python_generated/models/ranked_community_tweet_data.py +4 -3
  262. twitter_openapi_python_generated/models/retweet.py +8 -7
  263. twitter_openapi_python_generated/models/retweet_legacy.py +4 -3
  264. twitter_openapi_python_generated/models/rich_message.py +4 -3
  265. twitter_openapi_python_generated/models/scheduled_tweets_viewer.py +89 -0
  266. twitter_openapi_python_generated/models/search_by_raw_query.py +4 -3
  267. twitter_openapi_python_generated/models/search_timeline.py +4 -3
  268. twitter_openapi_python_generated/models/search_timeline_data.py +4 -3
  269. twitter_openapi_python_generated/models/search_timeline_response.py +5 -5
  270. twitter_openapi_python_generated/models/self_thread.py +6 -5
  271. twitter_openapi_python_generated/models/sensitive_media_warning.py +4 -3
  272. twitter_openapi_python_generated/models/session.py +12 -11
  273. twitter_openapi_python_generated/models/smarttag.py +97 -0
  274. twitter_openapi_python_generated/models/smarttag_tag.py +89 -0
  275. twitter_openapi_python_generated/models/social_context_landing_url.py +4 -3
  276. twitter_openapi_python_generated/models/social_context_union.py +3 -2
  277. twitter_openapi_python_generated/models/super_follow_user_profile.py +89 -0
  278. twitter_openapi_python_generated/models/super_follows_reply_user_result.py +4 -3
  279. twitter_openapi_python_generated/models/super_follows_reply_user_result_core.py +89 -0
  280. twitter_openapi_python_generated/models/super_follows_reply_user_result_data.py +12 -11
  281. twitter_openapi_python_generated/models/super_follows_reply_user_result_legacy.py +4 -3
  282. twitter_openapi_python_generated/models/text.py +5 -5
  283. twitter_openapi_python_generated/models/text_entity.py +4 -3
  284. twitter_openapi_python_generated/models/text_entity_ref.py +4 -3
  285. twitter_openapi_python_generated/models/text_highlight.py +4 -3
  286. twitter_openapi_python_generated/models/thumbnail_image.py +4 -3
  287. twitter_openapi_python_generated/models/timeline.py +5 -5
  288. twitter_openapi_python_generated/models/timeline_add_entries.py +5 -5
  289. twitter_openapi_python_generated/models/timeline_add_entry.py +8 -7
  290. twitter_openapi_python_generated/models/timeline_add_to_module.py +5 -5
  291. twitter_openapi_python_generated/models/timeline_clear_cache.py +4 -3
  292. twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py +4 -3
  293. twitter_openapi_python_generated/models/timeline_community.py +4 -3
  294. twitter_openapi_python_generated/models/timeline_cover_behavior.py +4 -3
  295. twitter_openapi_python_generated/models/timeline_cover_behavior_url.py +4 -3
  296. twitter_openapi_python_generated/models/timeline_frame.py +97 -0
  297. twitter_openapi_python_generated/models/timeline_general_context.py +4 -3
  298. twitter_openapi_python_generated/models/timeline_half_cover.py +5 -5
  299. twitter_openapi_python_generated/models/timeline_label.py +101 -0
  300. twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py +6 -5
  301. twitter_openapi_python_generated/models/timeline_message_prompt.py +4 -3
  302. twitter_openapi_python_generated/models/timeline_notification.py +4 -3
  303. twitter_openapi_python_generated/models/timeline_pin_entry.py +4 -3
  304. twitter_openapi_python_generated/models/timeline_prompt.py +4 -3
  305. twitter_openapi_python_generated/models/timeline_replace_entry.py +4 -3
  306. twitter_openapi_python_generated/models/timeline_response.py +5 -5
  307. twitter_openapi_python_generated/models/timeline_result.py +4 -3
  308. twitter_openapi_python_generated/models/timeline_show_alert.py +18 -7
  309. twitter_openapi_python_generated/models/timeline_show_alert_rich_text.py +4 -3
  310. twitter_openapi_python_generated/models/timeline_show_cover.py +4 -3
  311. twitter_openapi_python_generated/models/timeline_terminate_timeline.py +4 -3
  312. twitter_openapi_python_generated/models/timeline_timeline_cursor.py +4 -3
  313. twitter_openapi_python_generated/models/timeline_timeline_item.py +4 -3
  314. twitter_openapi_python_generated/models/timeline_timeline_module.py +5 -5
  315. twitter_openapi_python_generated/models/timeline_tombstone.py +4 -3
  316. twitter_openapi_python_generated/models/timeline_topic_context.py +4 -3
  317. twitter_openapi_python_generated/models/timeline_trend.py +20 -7
  318. twitter_openapi_python_generated/models/timeline_tweet.py +4 -3
  319. twitter_openapi_python_generated/models/timeline_twitter_list.py +101 -0
  320. twitter_openapi_python_generated/models/timeline_user.py +4 -3
  321. twitter_openapi_python_generated/models/timestamp.py +4 -3
  322. twitter_openapi_python_generated/models/tombstone_entity.py +4 -3
  323. twitter_openapi_python_generated/models/tombstone_info.py +4 -3
  324. twitter_openapi_python_generated/models/tombstone_ref.py +4 -3
  325. twitter_openapi_python_generated/models/tombstone_rich_text.py +5 -5
  326. twitter_openapi_python_generated/models/topic_context.py +4 -3
  327. twitter_openapi_python_generated/models/tracing.py +6 -5
  328. twitter_openapi_python_generated/models/trend_image.py +4 -3
  329. twitter_openapi_python_generated/models/trend_metadata.py +8 -5
  330. twitter_openapi_python_generated/models/trend_results.py +6 -5
  331. twitter_openapi_python_generated/models/tweet.py +52 -9
  332. twitter_openapi_python_generated/models/tweet_card.py +4 -3
  333. twitter_openapi_python_generated/models/tweet_card_legacy.py +6 -7
  334. twitter_openapi_python_generated/models/tweet_card_legacy_binding_value.py +4 -3
  335. twitter_openapi_python_generated/models/tweet_card_legacy_binding_value_data.py +4 -3
  336. twitter_openapi_python_generated/models/tweet_card_legacy_binding_value_data_image.py +4 -3
  337. twitter_openapi_python_generated/models/tweet_card_platform.py +4 -3
  338. twitter_openapi_python_generated/models/tweet_card_platform_audience.py +4 -3
  339. twitter_openapi_python_generated/models/tweet_card_platform_data.py +4 -3
  340. twitter_openapi_python_generated/models/tweet_card_platform_device.py +6 -5
  341. twitter_openapi_python_generated/models/tweet_detail_response.py +5 -5
  342. twitter_openapi_python_generated/models/tweet_detail_response_data.py +4 -3
  343. twitter_openapi_python_generated/models/tweet_edit_control.py +10 -9
  344. twitter_openapi_python_generated/models/tweet_edit_control_initial.py +8 -7
  345. twitter_openapi_python_generated/models/tweet_edit_prespective.py +4 -3
  346. twitter_openapi_python_generated/models/tweet_favoriters_response.py +5 -5
  347. twitter_openapi_python_generated/models/tweet_favoriters_response_data.py +4 -3
  348. twitter_openapi_python_generated/models/tweet_interstitial.py +6 -5
  349. twitter_openapi_python_generated/models/tweet_interstitial_reveal_text.py +5 -5
  350. twitter_openapi_python_generated/models/tweet_interstitial_text.py +5 -5
  351. twitter_openapi_python_generated/models/tweet_interstitial_text_entity.py +4 -3
  352. twitter_openapi_python_generated/models/tweet_interstitial_text_entity_ref.py +4 -3
  353. twitter_openapi_python_generated/models/tweet_legacy.py +20 -19
  354. twitter_openapi_python_generated/models/tweet_legacy_scopes.py +4 -3
  355. twitter_openapi_python_generated/models/tweet_limited_action_results.py +5 -5
  356. twitter_openapi_python_generated/models/tweet_post_cta.py +105 -0
  357. twitter_openapi_python_generated/models/tweet_preview_display.py +4 -3
  358. twitter_openapi_python_generated/models/tweet_preview_display_cta.py +4 -3
  359. twitter_openapi_python_generated/models/tweet_preview_display_cta_url.py +4 -3
  360. twitter_openapi_python_generated/models/tweet_preview_display_tweet.py +17 -10
  361. twitter_openapi_python_generated/models/tweet_preview_display_tweet_view_count.py +6 -5
  362. twitter_openapi_python_generated/models/tweet_previous_counts.py +4 -3
  363. twitter_openapi_python_generated/models/tweet_result_by_rest_id_data.py +4 -3
  364. twitter_openapi_python_generated/models/tweet_result_by_rest_id_response.py +5 -5
  365. twitter_openapi_python_generated/models/tweet_retweeters_response.py +5 -5
  366. twitter_openapi_python_generated/models/tweet_retweeters_response_data.py +4 -3
  367. twitter_openapi_python_generated/models/tweet_tombstone.py +4 -3
  368. twitter_openapi_python_generated/models/tweet_unavailable.py +4 -3
  369. twitter_openapi_python_generated/models/tweet_union.py +3 -2
  370. twitter_openapi_python_generated/models/tweet_view.py +6 -5
  371. twitter_openapi_python_generated/models/tweet_with_visibility_results.py +4 -3
  372. twitter_openapi_python_generated/models/twitter_list.py +146 -0
  373. twitter_openapi_python_generated/models/type_name.py +6 -0
  374. twitter_openapi_python_generated/models/unfavorite_tweet.py +4 -3
  375. twitter_openapi_python_generated/models/unfavorite_tweet_response.py +5 -5
  376. twitter_openapi_python_generated/models/unified_card.py +4 -3
  377. twitter_openapi_python_generated/models/url.py +4 -3
  378. twitter_openapi_python_generated/models/urt_endpoint_options.py +7 -7
  379. twitter_openapi_python_generated/models/urt_endpoint_request_params.py +4 -3
  380. twitter_openapi_python_generated/models/user.py +150 -12
  381. twitter_openapi_python_generated/models/user_action_counts.py +89 -0
  382. twitter_openapi_python_generated/models/user_avatar.py +89 -0
  383. twitter_openapi_python_generated/models/user_banner.py +89 -0
  384. twitter_openapi_python_generated/models/user_core.py +101 -0
  385. twitter_openapi_python_generated/models/user_dm_permissions.py +89 -0
  386. twitter_openapi_python_generated/models/user_features.py +4 -3
  387. twitter_openapi_python_generated/models/user_highlights_info.py +4 -3
  388. twitter_openapi_python_generated/models/user_highlights_tweets_data.py +4 -3
  389. twitter_openapi_python_generated/models/user_highlights_tweets_response.py +5 -5
  390. twitter_openapi_python_generated/models/user_highlights_tweets_result.py +4 -3
  391. twitter_openapi_python_generated/models/user_highlights_tweets_timeline.py +4 -3
  392. twitter_openapi_python_generated/models/user_highlights_tweets_user.py +4 -3
  393. twitter_openapi_python_generated/models/user_legacy.py +26 -14
  394. twitter_openapi_python_generated/models/user_legacy_extended_profile.py +4 -3
  395. twitter_openapi_python_generated/models/user_legacy_extended_profile_birthdate.py +4 -3
  396. twitter_openapi_python_generated/models/user_location.py +89 -0
  397. twitter_openapi_python_generated/models/user_media_permissions.py +89 -0
  398. twitter_openapi_python_generated/models/user_notifications_settings.py +89 -0
  399. twitter_openapi_python_generated/models/user_pinned_items.py +90 -0
  400. twitter_openapi_python_generated/models/user_privacy.py +89 -0
  401. twitter_openapi_python_generated/models/user_professional.py +9 -9
  402. twitter_openapi_python_generated/models/user_professional_category.py +4 -3
  403. twitter_openapi_python_generated/models/user_profile.py +93 -0
  404. twitter_openapi_python_generated/models/user_profile_metadata.py +89 -0
  405. twitter_openapi_python_generated/models/user_profile_translation.py +89 -0
  406. twitter_openapi_python_generated/models/user_relationship_counts.py +91 -0
  407. twitter_openapi_python_generated/models/user_relationship_perspectives.py +99 -0
  408. twitter_openapi_python_generated/models/user_response.py +5 -5
  409. twitter_openapi_python_generated/models/user_response_data.py +4 -3
  410. twitter_openapi_python_generated/models/user_result_by_screen_name.py +6 -5
  411. twitter_openapi_python_generated/models/user_result_by_screen_name_core.py +91 -0
  412. twitter_openapi_python_generated/models/user_result_by_screen_name_legacy.py +4 -3
  413. twitter_openapi_python_generated/models/user_result_by_screen_name_result.py +32 -11
  414. twitter_openapi_python_generated/models/user_result_core.py +7 -4
  415. twitter_openapi_python_generated/models/user_result_privacy.py +89 -0
  416. twitter_openapi_python_generated/models/user_result_relationship_perspectives.py +95 -0
  417. twitter_openapi_python_generated/models/user_results.py +7 -4
  418. twitter_openapi_python_generated/models/user_tip_jar_settings.py +4 -3
  419. twitter_openapi_python_generated/models/user_tweet_counts.py +91 -0
  420. twitter_openapi_python_generated/models/user_tweets_data.py +4 -3
  421. twitter_openapi_python_generated/models/user_tweets_response.py +5 -5
  422. twitter_openapi_python_generated/models/user_tweets_result_v1.py +4 -3
  423. twitter_openapi_python_generated/models/user_tweets_result_v2.py +4 -3
  424. twitter_openapi_python_generated/models/user_tweets_user.py +4 -3
  425. twitter_openapi_python_generated/models/user_unavailable.py +4 -3
  426. twitter_openapi_python_generated/models/user_union.py +6 -3
  427. twitter_openapi_python_generated/models/user_value.py +12 -9
  428. twitter_openapi_python_generated/models/user_verification.py +101 -0
  429. twitter_openapi_python_generated/models/user_verification_info.py +4 -3
  430. twitter_openapi_python_generated/models/user_verification_info_reason.py +6 -5
  431. twitter_openapi_python_generated/models/user_verification_info_reason_description.py +5 -5
  432. twitter_openapi_python_generated/models/user_verification_info_reason_description_entities.py +4 -3
  433. twitter_openapi_python_generated/models/user_verification_info_reason_description_entities_ref.py +4 -3
  434. twitter_openapi_python_generated/models/user_website.py +89 -0
  435. twitter_openapi_python_generated/models/users_response.py +5 -5
  436. twitter_openapi_python_generated/models/users_response_data.py +5 -5
  437. twitter_openapi_python_generated/models/viewer_badge_counts_response.py +102 -0
  438. twitter_openapi_python_generated/models/viewer_badge_counts_response_data.py +93 -0
  439. twitter_openapi_python_generated/models/viewer_badge_counts_result.py +96 -0
  440. twitter_openapi_python_generated/models/viewer_badge_counts_user_results.py +93 -0
  441. twitter_openapi_python_generated/models/viewer_badge_counts_viewer.py +93 -0
  442. twitter_openapi_python_generated/rest.py +86 -10
  443. twitter_openapi_python_generated-0.0.35.dist-info/METADATA +926 -0
  444. twitter_openapi_python_generated-0.0.35.dist-info/RECORD +456 -0
  445. {twitter_openapi_python_generated-0.0.33.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/WHEEL +1 -1
  446. {twitter_openapi_python_generated-0.0.33.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/licenses/LICENSE +31 -31
  447. {twitter_openapi_python_generated-0.0.33.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/licenses/LICENSE.AGPL +660 -660
  448. twitter_openapi_python_generated/models/community_data.py +0 -219
  449. twitter_openapi_python_generated-0.0.33.dist-info/METADATA +0 -29
  450. twitter_openapi_python_generated-0.0.33.dist-info/RECORD +0 -335
  451. {twitter_openapi_python_generated-0.0.33.dist-info → twitter_openapi_python_generated-0.0.35.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  """
4
2
  Twitter OpenAPI
5
3
 
@@ -12,6 +10,7 @@
12
10
  Do not edit the class manually.
13
11
  """ # noqa: E501
14
12
 
13
+
15
14
  import warnings
16
15
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
16
  from typing import Any, Dict, List, Optional, Tuple, Union
@@ -20,8 +19,12 @@ from typing_extensions import Annotated
20
19
  from pydantic import StrictStr
21
20
  from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse
22
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
23
23
  from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse
24
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
25
28
  from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse
26
29
  from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse
27
30
  from twitter_openapi_python_generated.models.search_timeline_response import SearchTimelineResponse
@@ -683,7 +686,7 @@ class TweetApi:
683
686
 
684
687
 
685
688
  @validate_call
686
- def get_community_media_timeline(
689
+ def get_community_discovery_timeline(
687
690
  self,
688
691
  path_query_id: StrictStr,
689
692
  variables: StrictStr,
@@ -700,10 +703,10 @@ class TweetApi:
700
703
  _content_type: Optional[StrictStr] = None,
701
704
  _headers: Optional[Dict[StrictStr, Any]] = None,
702
705
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
703
- ) -> CommunityMediaTimelineResponse:
704
- """get_community_media_timeline
706
+ ) -> CommunityDiscoveryTimelineResponse:
707
+ """get_community_discovery_timeline
705
708
 
706
- get media list of community
709
+ get the communities discovery timeline
707
710
 
708
711
  :param path_query_id: (required)
709
712
  :type path_query_id: str
@@ -733,7 +736,7 @@ class TweetApi:
733
736
  :return: Returns the result object.
734
737
  """ # noqa: E501
735
738
 
736
- _param = self._get_community_media_timeline_serialize(
739
+ _param = self._get_community_discovery_timeline_serialize(
737
740
  path_query_id=path_query_id,
738
741
  variables=variables,
739
742
  features=features,
@@ -744,7 +747,7 @@ class TweetApi:
744
747
  )
745
748
 
746
749
  _response_types_map: Dict[str, Optional[str]] = {
747
- '200': "CommunityMediaTimelineResponse",
750
+ '200': "CommunityDiscoveryTimelineResponse",
748
751
  }
749
752
  response_data = self.api_client.call_api(
750
753
  *_param,
@@ -758,7 +761,7 @@ class TweetApi:
758
761
 
759
762
 
760
763
  @validate_call
761
- def get_community_media_timeline_with_http_info(
764
+ def get_community_discovery_timeline_with_http_info(
762
765
  self,
763
766
  path_query_id: StrictStr,
764
767
  variables: StrictStr,
@@ -775,10 +778,10 @@ class TweetApi:
775
778
  _content_type: Optional[StrictStr] = None,
776
779
  _headers: Optional[Dict[StrictStr, Any]] = None,
777
780
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
778
- ) -> ApiResponse[CommunityMediaTimelineResponse]:
779
- """get_community_media_timeline
781
+ ) -> ApiResponse[CommunityDiscoveryTimelineResponse]:
782
+ """get_community_discovery_timeline
780
783
 
781
- get media list of community
784
+ get the communities discovery timeline
782
785
 
783
786
  :param path_query_id: (required)
784
787
  :type path_query_id: str
@@ -808,7 +811,7 @@ class TweetApi:
808
811
  :return: Returns the result object.
809
812
  """ # noqa: E501
810
813
 
811
- _param = self._get_community_media_timeline_serialize(
814
+ _param = self._get_community_discovery_timeline_serialize(
812
815
  path_query_id=path_query_id,
813
816
  variables=variables,
814
817
  features=features,
@@ -819,7 +822,7 @@ class TweetApi:
819
822
  )
820
823
 
821
824
  _response_types_map: Dict[str, Optional[str]] = {
822
- '200': "CommunityMediaTimelineResponse",
825
+ '200': "CommunityDiscoveryTimelineResponse",
823
826
  }
824
827
  response_data = self.api_client.call_api(
825
828
  *_param,
@@ -833,7 +836,7 @@ class TweetApi:
833
836
 
834
837
 
835
838
  @validate_call
836
- def get_community_media_timeline_without_preload_content(
839
+ def get_community_discovery_timeline_without_preload_content(
837
840
  self,
838
841
  path_query_id: StrictStr,
839
842
  variables: StrictStr,
@@ -851,9 +854,9 @@ class TweetApi:
851
854
  _headers: Optional[Dict[StrictStr, Any]] = None,
852
855
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
853
856
  ) -> RESTResponseType:
854
- """get_community_media_timeline
857
+ """get_community_discovery_timeline
855
858
 
856
- get media list of community
859
+ get the communities discovery timeline
857
860
 
858
861
  :param path_query_id: (required)
859
862
  :type path_query_id: str
@@ -883,7 +886,7 @@ class TweetApi:
883
886
  :return: Returns the result object.
884
887
  """ # noqa: E501
885
888
 
886
- _param = self._get_community_media_timeline_serialize(
889
+ _param = self._get_community_discovery_timeline_serialize(
887
890
  path_query_id=path_query_id,
888
891
  variables=variables,
889
892
  features=features,
@@ -894,7 +897,7 @@ class TweetApi:
894
897
  )
895
898
 
896
899
  _response_types_map: Dict[str, Optional[str]] = {
897
- '200': "CommunityMediaTimelineResponse",
900
+ '200': "CommunityDiscoveryTimelineResponse",
898
901
  }
899
902
  response_data = self.api_client.call_api(
900
903
  *_param,
@@ -903,7 +906,7 @@ class TweetApi:
903
906
  return response_data.response
904
907
 
905
908
 
906
- def _get_community_media_timeline_serialize(
909
+ def _get_community_discovery_timeline_serialize(
907
910
  self,
908
911
  path_query_id,
909
912
  variables,
@@ -983,7 +986,7 @@ class TweetApi:
983
986
 
984
987
  return self.api_client.param_serialize(
985
988
  method='GET',
986
- resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
989
+ resource_path='/graphql/{pathQueryId}/CommunityDiscoveryTimeline',
987
990
  path_params=_path_params,
988
991
  query_params=_query_params,
989
992
  header_params=_header_params,
@@ -1000,7 +1003,7 @@ class TweetApi:
1000
1003
 
1001
1004
 
1002
1005
  @validate_call
1003
- def get_community_tweets_timeline(
1006
+ def get_community_media_timeline(
1004
1007
  self,
1005
1008
  path_query_id: StrictStr,
1006
1009
  variables: StrictStr,
@@ -1017,10 +1020,10 @@ class TweetApi:
1017
1020
  _content_type: Optional[StrictStr] = None,
1018
1021
  _headers: Optional[Dict[StrictStr, Any]] = None,
1019
1022
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1020
- ) -> CommunityTweetsTimelineResponse:
1021
- """get_community_tweets_timeline
1023
+ ) -> CommunityMediaTimelineResponse:
1024
+ """get_community_media_timeline
1022
1025
 
1023
- get tweet list of community. rankingMode:[Recency, Relevance]
1026
+ get media list of community
1024
1027
 
1025
1028
  :param path_query_id: (required)
1026
1029
  :type path_query_id: str
@@ -1050,7 +1053,7 @@ class TweetApi:
1050
1053
  :return: Returns the result object.
1051
1054
  """ # noqa: E501
1052
1055
 
1053
- _param = self._get_community_tweets_timeline_serialize(
1056
+ _param = self._get_community_media_timeline_serialize(
1054
1057
  path_query_id=path_query_id,
1055
1058
  variables=variables,
1056
1059
  features=features,
@@ -1061,7 +1064,7 @@ class TweetApi:
1061
1064
  )
1062
1065
 
1063
1066
  _response_types_map: Dict[str, Optional[str]] = {
1064
- '200': "CommunityTweetsTimelineResponse",
1067
+ '200': "CommunityMediaTimelineResponse",
1065
1068
  }
1066
1069
  response_data = self.api_client.call_api(
1067
1070
  *_param,
@@ -1075,7 +1078,7 @@ class TweetApi:
1075
1078
 
1076
1079
 
1077
1080
  @validate_call
1078
- def get_community_tweets_timeline_with_http_info(
1081
+ def get_community_media_timeline_with_http_info(
1079
1082
  self,
1080
1083
  path_query_id: StrictStr,
1081
1084
  variables: StrictStr,
@@ -1092,10 +1095,10 @@ class TweetApi:
1092
1095
  _content_type: Optional[StrictStr] = None,
1093
1096
  _headers: Optional[Dict[StrictStr, Any]] = None,
1094
1097
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1095
- ) -> ApiResponse[CommunityTweetsTimelineResponse]:
1096
- """get_community_tweets_timeline
1098
+ ) -> ApiResponse[CommunityMediaTimelineResponse]:
1099
+ """get_community_media_timeline
1097
1100
 
1098
- get tweet list of community. rankingMode:[Recency, Relevance]
1101
+ get media list of community
1099
1102
 
1100
1103
  :param path_query_id: (required)
1101
1104
  :type path_query_id: str
@@ -1125,7 +1128,7 @@ class TweetApi:
1125
1128
  :return: Returns the result object.
1126
1129
  """ # noqa: E501
1127
1130
 
1128
- _param = self._get_community_tweets_timeline_serialize(
1131
+ _param = self._get_community_media_timeline_serialize(
1129
1132
  path_query_id=path_query_id,
1130
1133
  variables=variables,
1131
1134
  features=features,
@@ -1136,7 +1139,7 @@ class TweetApi:
1136
1139
  )
1137
1140
 
1138
1141
  _response_types_map: Dict[str, Optional[str]] = {
1139
- '200': "CommunityTweetsTimelineResponse",
1142
+ '200': "CommunityMediaTimelineResponse",
1140
1143
  }
1141
1144
  response_data = self.api_client.call_api(
1142
1145
  *_param,
@@ -1150,7 +1153,7 @@ class TweetApi:
1150
1153
 
1151
1154
 
1152
1155
  @validate_call
1153
- def get_community_tweets_timeline_without_preload_content(
1156
+ def get_community_media_timeline_without_preload_content(
1154
1157
  self,
1155
1158
  path_query_id: StrictStr,
1156
1159
  variables: StrictStr,
@@ -1168,9 +1171,9 @@ class TweetApi:
1168
1171
  _headers: Optional[Dict[StrictStr, Any]] = None,
1169
1172
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1170
1173
  ) -> RESTResponseType:
1171
- """get_community_tweets_timeline
1174
+ """get_community_media_timeline
1172
1175
 
1173
- get tweet list of community. rankingMode:[Recency, Relevance]
1176
+ get media list of community
1174
1177
 
1175
1178
  :param path_query_id: (required)
1176
1179
  :type path_query_id: str
@@ -1200,7 +1203,7 @@ class TweetApi:
1200
1203
  :return: Returns the result object.
1201
1204
  """ # noqa: E501
1202
1205
 
1203
- _param = self._get_community_tweets_timeline_serialize(
1206
+ _param = self._get_community_media_timeline_serialize(
1204
1207
  path_query_id=path_query_id,
1205
1208
  variables=variables,
1206
1209
  features=features,
@@ -1211,7 +1214,7 @@ class TweetApi:
1211
1214
  )
1212
1215
 
1213
1216
  _response_types_map: Dict[str, Optional[str]] = {
1214
- '200': "CommunityTweetsTimelineResponse",
1217
+ '200': "CommunityMediaTimelineResponse",
1215
1218
  }
1216
1219
  response_data = self.api_client.call_api(
1217
1220
  *_param,
@@ -1220,7 +1223,7 @@ class TweetApi:
1220
1223
  return response_data.response
1221
1224
 
1222
1225
 
1223
- def _get_community_tweets_timeline_serialize(
1226
+ def _get_community_media_timeline_serialize(
1224
1227
  self,
1225
1228
  path_query_id,
1226
1229
  variables,
@@ -1300,7 +1303,7 @@ class TweetApi:
1300
1303
 
1301
1304
  return self.api_client.param_serialize(
1302
1305
  method='GET',
1303
- resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
1306
+ resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
1304
1307
  path_params=_path_params,
1305
1308
  query_params=_query_params,
1306
1309
  header_params=_header_params,
@@ -1317,7 +1320,7 @@ class TweetApi:
1317
1320
 
1318
1321
 
1319
1322
  @validate_call
1320
- def get_home_latest_timeline(
1323
+ def get_community_tweets_timeline(
1321
1324
  self,
1322
1325
  path_query_id: StrictStr,
1323
1326
  variables: StrictStr,
@@ -1334,10 +1337,10 @@ class TweetApi:
1334
1337
  _content_type: Optional[StrictStr] = None,
1335
1338
  _headers: Optional[Dict[StrictStr, Any]] = None,
1336
1339
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1337
- ) -> TimelineResponse:
1338
- """get_home_latest_timeline
1340
+ ) -> CommunityTweetsTimelineResponse:
1341
+ """get_community_tweets_timeline
1339
1342
 
1340
- get tweet list of timeline
1343
+ get tweet list of community. rankingMode:[Recency, Relevance]
1341
1344
 
1342
1345
  :param path_query_id: (required)
1343
1346
  :type path_query_id: str
@@ -1367,7 +1370,7 @@ class TweetApi:
1367
1370
  :return: Returns the result object.
1368
1371
  """ # noqa: E501
1369
1372
 
1370
- _param = self._get_home_latest_timeline_serialize(
1373
+ _param = self._get_community_tweets_timeline_serialize(
1371
1374
  path_query_id=path_query_id,
1372
1375
  variables=variables,
1373
1376
  features=features,
@@ -1378,7 +1381,7 @@ class TweetApi:
1378
1381
  )
1379
1382
 
1380
1383
  _response_types_map: Dict[str, Optional[str]] = {
1381
- '200': "TimelineResponse",
1384
+ '200': "CommunityTweetsTimelineResponse",
1382
1385
  }
1383
1386
  response_data = self.api_client.call_api(
1384
1387
  *_param,
@@ -1392,7 +1395,7 @@ class TweetApi:
1392
1395
 
1393
1396
 
1394
1397
  @validate_call
1395
- def get_home_latest_timeline_with_http_info(
1398
+ def get_community_tweets_timeline_with_http_info(
1396
1399
  self,
1397
1400
  path_query_id: StrictStr,
1398
1401
  variables: StrictStr,
@@ -1409,10 +1412,10 @@ class TweetApi:
1409
1412
  _content_type: Optional[StrictStr] = None,
1410
1413
  _headers: Optional[Dict[StrictStr, Any]] = None,
1411
1414
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1412
- ) -> ApiResponse[TimelineResponse]:
1413
- """get_home_latest_timeline
1415
+ ) -> ApiResponse[CommunityTweetsTimelineResponse]:
1416
+ """get_community_tweets_timeline
1414
1417
 
1415
- get tweet list of timeline
1418
+ get tweet list of community. rankingMode:[Recency, Relevance]
1416
1419
 
1417
1420
  :param path_query_id: (required)
1418
1421
  :type path_query_id: str
@@ -1442,7 +1445,7 @@ class TweetApi:
1442
1445
  :return: Returns the result object.
1443
1446
  """ # noqa: E501
1444
1447
 
1445
- _param = self._get_home_latest_timeline_serialize(
1448
+ _param = self._get_community_tweets_timeline_serialize(
1446
1449
  path_query_id=path_query_id,
1447
1450
  variables=variables,
1448
1451
  features=features,
@@ -1453,7 +1456,7 @@ class TweetApi:
1453
1456
  )
1454
1457
 
1455
1458
  _response_types_map: Dict[str, Optional[str]] = {
1456
- '200': "TimelineResponse",
1459
+ '200': "CommunityTweetsTimelineResponse",
1457
1460
  }
1458
1461
  response_data = self.api_client.call_api(
1459
1462
  *_param,
@@ -1467,7 +1470,7 @@ class TweetApi:
1467
1470
 
1468
1471
 
1469
1472
  @validate_call
1470
- def get_home_latest_timeline_without_preload_content(
1473
+ def get_community_tweets_timeline_without_preload_content(
1471
1474
  self,
1472
1475
  path_query_id: StrictStr,
1473
1476
  variables: StrictStr,
@@ -1485,9 +1488,9 @@ class TweetApi:
1485
1488
  _headers: Optional[Dict[StrictStr, Any]] = None,
1486
1489
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1487
1490
  ) -> RESTResponseType:
1488
- """get_home_latest_timeline
1491
+ """get_community_tweets_timeline
1489
1492
 
1490
- get tweet list of timeline
1493
+ get tweet list of community. rankingMode:[Recency, Relevance]
1491
1494
 
1492
1495
  :param path_query_id: (required)
1493
1496
  :type path_query_id: str
@@ -1517,7 +1520,7 @@ class TweetApi:
1517
1520
  :return: Returns the result object.
1518
1521
  """ # noqa: E501
1519
1522
 
1520
- _param = self._get_home_latest_timeline_serialize(
1523
+ _param = self._get_community_tweets_timeline_serialize(
1521
1524
  path_query_id=path_query_id,
1522
1525
  variables=variables,
1523
1526
  features=features,
@@ -1528,7 +1531,7 @@ class TweetApi:
1528
1531
  )
1529
1532
 
1530
1533
  _response_types_map: Dict[str, Optional[str]] = {
1531
- '200': "TimelineResponse",
1534
+ '200': "CommunityTweetsTimelineResponse",
1532
1535
  }
1533
1536
  response_data = self.api_client.call_api(
1534
1537
  *_param,
@@ -1537,7 +1540,7 @@ class TweetApi:
1537
1540
  return response_data.response
1538
1541
 
1539
1542
 
1540
- def _get_home_latest_timeline_serialize(
1543
+ def _get_community_tweets_timeline_serialize(
1541
1544
  self,
1542
1545
  path_query_id,
1543
1546
  variables,
@@ -1617,7 +1620,7 @@ class TweetApi:
1617
1620
 
1618
1621
  return self.api_client.param_serialize(
1619
1622
  method='GET',
1620
- resource_path='/graphql/{pathQueryId}/HomeLatestTimeline',
1623
+ resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
1621
1624
  path_params=_path_params,
1622
1625
  query_params=_query_params,
1623
1626
  header_params=_header_params,
@@ -1634,7 +1637,7 @@ class TweetApi:
1634
1637
 
1635
1638
 
1636
1639
  @validate_call
1637
- def get_home_timeline(
1640
+ def get_connect_tab_timeline(
1638
1641
  self,
1639
1642
  path_query_id: StrictStr,
1640
1643
  variables: StrictStr,
@@ -1651,10 +1654,10 @@ class TweetApi:
1651
1654
  _content_type: Optional[StrictStr] = None,
1652
1655
  _headers: Optional[Dict[StrictStr, Any]] = None,
1653
1656
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1654
- ) -> TimelineResponse:
1655
- """get_home_timeline
1657
+ ) -> ConnectTabTimelineResponse:
1658
+ """get_connect_tab_timeline
1656
1659
 
1657
- get tweet list of timeline
1660
+ get the Connect tab (who to follow) timeline
1658
1661
 
1659
1662
  :param path_query_id: (required)
1660
1663
  :type path_query_id: str
@@ -1684,7 +1687,7 @@ class TweetApi:
1684
1687
  :return: Returns the result object.
1685
1688
  """ # noqa: E501
1686
1689
 
1687
- _param = self._get_home_timeline_serialize(
1690
+ _param = self._get_connect_tab_timeline_serialize(
1688
1691
  path_query_id=path_query_id,
1689
1692
  variables=variables,
1690
1693
  features=features,
@@ -1695,7 +1698,7 @@ class TweetApi:
1695
1698
  )
1696
1699
 
1697
1700
  _response_types_map: Dict[str, Optional[str]] = {
1698
- '200': "TimelineResponse",
1701
+ '200': "ConnectTabTimelineResponse",
1699
1702
  }
1700
1703
  response_data = self.api_client.call_api(
1701
1704
  *_param,
@@ -1709,7 +1712,7 @@ class TweetApi:
1709
1712
 
1710
1713
 
1711
1714
  @validate_call
1712
- def get_home_timeline_with_http_info(
1715
+ def get_connect_tab_timeline_with_http_info(
1713
1716
  self,
1714
1717
  path_query_id: StrictStr,
1715
1718
  variables: StrictStr,
@@ -1726,10 +1729,10 @@ class TweetApi:
1726
1729
  _content_type: Optional[StrictStr] = None,
1727
1730
  _headers: Optional[Dict[StrictStr, Any]] = None,
1728
1731
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1729
- ) -> ApiResponse[TimelineResponse]:
1730
- """get_home_timeline
1732
+ ) -> ApiResponse[ConnectTabTimelineResponse]:
1733
+ """get_connect_tab_timeline
1731
1734
 
1732
- get tweet list of timeline
1735
+ get the Connect tab (who to follow) timeline
1733
1736
 
1734
1737
  :param path_query_id: (required)
1735
1738
  :type path_query_id: str
@@ -1759,7 +1762,7 @@ class TweetApi:
1759
1762
  :return: Returns the result object.
1760
1763
  """ # noqa: E501
1761
1764
 
1762
- _param = self._get_home_timeline_serialize(
1765
+ _param = self._get_connect_tab_timeline_serialize(
1763
1766
  path_query_id=path_query_id,
1764
1767
  variables=variables,
1765
1768
  features=features,
@@ -1770,7 +1773,7 @@ class TweetApi:
1770
1773
  )
1771
1774
 
1772
1775
  _response_types_map: Dict[str, Optional[str]] = {
1773
- '200': "TimelineResponse",
1776
+ '200': "ConnectTabTimelineResponse",
1774
1777
  }
1775
1778
  response_data = self.api_client.call_api(
1776
1779
  *_param,
@@ -1784,7 +1787,7 @@ class TweetApi:
1784
1787
 
1785
1788
 
1786
1789
  @validate_call
1787
- def get_home_timeline_without_preload_content(
1790
+ def get_connect_tab_timeline_without_preload_content(
1788
1791
  self,
1789
1792
  path_query_id: StrictStr,
1790
1793
  variables: StrictStr,
@@ -1802,9 +1805,9 @@ class TweetApi:
1802
1805
  _headers: Optional[Dict[StrictStr, Any]] = None,
1803
1806
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1804
1807
  ) -> RESTResponseType:
1805
- """get_home_timeline
1808
+ """get_connect_tab_timeline
1806
1809
 
1807
- get tweet list of timeline
1810
+ get the Connect tab (who to follow) timeline
1808
1811
 
1809
1812
  :param path_query_id: (required)
1810
1813
  :type path_query_id: str
@@ -1834,7 +1837,7 @@ class TweetApi:
1834
1837
  :return: Returns the result object.
1835
1838
  """ # noqa: E501
1836
1839
 
1837
- _param = self._get_home_timeline_serialize(
1840
+ _param = self._get_connect_tab_timeline_serialize(
1838
1841
  path_query_id=path_query_id,
1839
1842
  variables=variables,
1840
1843
  features=features,
@@ -1845,7 +1848,7 @@ class TweetApi:
1845
1848
  )
1846
1849
 
1847
1850
  _response_types_map: Dict[str, Optional[str]] = {
1848
- '200': "TimelineResponse",
1851
+ '200': "ConnectTabTimelineResponse",
1849
1852
  }
1850
1853
  response_data = self.api_client.call_api(
1851
1854
  *_param,
@@ -1854,7 +1857,7 @@ class TweetApi:
1854
1857
  return response_data.response
1855
1858
 
1856
1859
 
1857
- def _get_home_timeline_serialize(
1860
+ def _get_connect_tab_timeline_serialize(
1858
1861
  self,
1859
1862
  path_query_id,
1860
1863
  variables,
@@ -1934,7 +1937,7 @@ class TweetApi:
1934
1937
 
1935
1938
  return self.api_client.param_serialize(
1936
1939
  method='GET',
1937
- resource_path='/graphql/{pathQueryId}/HomeTimeline',
1940
+ resource_path='/graphql/{pathQueryId}/ConnectTabTimeline',
1938
1941
  path_params=_path_params,
1939
1942
  query_params=_query_params,
1940
1943
  header_params=_header_params,
@@ -1951,12 +1954,11 @@ class TweetApi:
1951
1954
 
1952
1955
 
1953
1956
  @validate_call
1954
- def get_likes(
1957
+ def get_explore_page(
1955
1958
  self,
1956
1959
  path_query_id: StrictStr,
1957
1960
  variables: StrictStr,
1958
1961
  features: StrictStr,
1959
- field_toggles: StrictStr,
1960
1962
  _request_timeout: Union[
1961
1963
  None,
1962
1964
  Annotated[StrictFloat, Field(gt=0)],
@@ -1969,10 +1971,10 @@ class TweetApi:
1969
1971
  _content_type: Optional[StrictStr] = None,
1970
1972
  _headers: Optional[Dict[StrictStr, Any]] = None,
1971
1973
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1972
- ) -> UserTweetsResponse:
1973
- """get_likes
1974
+ ) -> ExplorePageResponse:
1975
+ """get_explore_page
1974
1976
 
1975
- get user likes tweets
1977
+ get the explore page (segmented timelines)
1976
1978
 
1977
1979
  :param path_query_id: (required)
1978
1980
  :type path_query_id: str
@@ -1980,8 +1982,6 @@ class TweetApi:
1980
1982
  :type variables: str
1981
1983
  :param features: (required)
1982
1984
  :type features: str
1983
- :param field_toggles: (required)
1984
- :type field_toggles: str
1985
1985
  :param _request_timeout: timeout setting for this request. If one
1986
1986
  number provided, it will be total request
1987
1987
  timeout. It can also be a pair (tuple) of
@@ -2004,11 +2004,10 @@ class TweetApi:
2004
2004
  :return: Returns the result object.
2005
2005
  """ # noqa: E501
2006
2006
 
2007
- _param = self._get_likes_serialize(
2007
+ _param = self._get_explore_page_serialize(
2008
2008
  path_query_id=path_query_id,
2009
2009
  variables=variables,
2010
2010
  features=features,
2011
- field_toggles=field_toggles,
2012
2011
  _request_auth=_request_auth,
2013
2012
  _content_type=_content_type,
2014
2013
  _headers=_headers,
@@ -2016,7 +2015,7 @@ class TweetApi:
2016
2015
  )
2017
2016
 
2018
2017
  _response_types_map: Dict[str, Optional[str]] = {
2019
- '200': "UserTweetsResponse",
2018
+ '200': "ExplorePageResponse",
2020
2019
  }
2021
2020
  response_data = self.api_client.call_api(
2022
2021
  *_param,
@@ -2030,12 +2029,11 @@ class TweetApi:
2030
2029
 
2031
2030
 
2032
2031
  @validate_call
2033
- def get_likes_with_http_info(
2032
+ def get_explore_page_with_http_info(
2034
2033
  self,
2035
2034
  path_query_id: StrictStr,
2036
2035
  variables: StrictStr,
2037
2036
  features: StrictStr,
2038
- field_toggles: StrictStr,
2039
2037
  _request_timeout: Union[
2040
2038
  None,
2041
2039
  Annotated[StrictFloat, Field(gt=0)],
@@ -2048,10 +2046,10 @@ class TweetApi:
2048
2046
  _content_type: Optional[StrictStr] = None,
2049
2047
  _headers: Optional[Dict[StrictStr, Any]] = None,
2050
2048
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2051
- ) -> ApiResponse[UserTweetsResponse]:
2052
- """get_likes
2049
+ ) -> ApiResponse[ExplorePageResponse]:
2050
+ """get_explore_page
2053
2051
 
2054
- get user likes tweets
2052
+ get the explore page (segmented timelines)
2055
2053
 
2056
2054
  :param path_query_id: (required)
2057
2055
  :type path_query_id: str
@@ -2059,8 +2057,6 @@ class TweetApi:
2059
2057
  :type variables: str
2060
2058
  :param features: (required)
2061
2059
  :type features: str
2062
- :param field_toggles: (required)
2063
- :type field_toggles: str
2064
2060
  :param _request_timeout: timeout setting for this request. If one
2065
2061
  number provided, it will be total request
2066
2062
  timeout. It can also be a pair (tuple) of
@@ -2083,11 +2079,10 @@ class TweetApi:
2083
2079
  :return: Returns the result object.
2084
2080
  """ # noqa: E501
2085
2081
 
2086
- _param = self._get_likes_serialize(
2082
+ _param = self._get_explore_page_serialize(
2087
2083
  path_query_id=path_query_id,
2088
2084
  variables=variables,
2089
2085
  features=features,
2090
- field_toggles=field_toggles,
2091
2086
  _request_auth=_request_auth,
2092
2087
  _content_type=_content_type,
2093
2088
  _headers=_headers,
@@ -2095,7 +2090,7 @@ class TweetApi:
2095
2090
  )
2096
2091
 
2097
2092
  _response_types_map: Dict[str, Optional[str]] = {
2098
- '200': "UserTweetsResponse",
2093
+ '200': "ExplorePageResponse",
2099
2094
  }
2100
2095
  response_data = self.api_client.call_api(
2101
2096
  *_param,
@@ -2109,12 +2104,11 @@ class TweetApi:
2109
2104
 
2110
2105
 
2111
2106
  @validate_call
2112
- def get_likes_without_preload_content(
2107
+ def get_explore_page_without_preload_content(
2113
2108
  self,
2114
2109
  path_query_id: StrictStr,
2115
2110
  variables: StrictStr,
2116
2111
  features: StrictStr,
2117
- field_toggles: StrictStr,
2118
2112
  _request_timeout: Union[
2119
2113
  None,
2120
2114
  Annotated[StrictFloat, Field(gt=0)],
@@ -2128,9 +2122,9 @@ class TweetApi:
2128
2122
  _headers: Optional[Dict[StrictStr, Any]] = None,
2129
2123
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2130
2124
  ) -> RESTResponseType:
2131
- """get_likes
2125
+ """get_explore_page
2132
2126
 
2133
- get user likes tweets
2127
+ get the explore page (segmented timelines)
2134
2128
 
2135
2129
  :param path_query_id: (required)
2136
2130
  :type path_query_id: str
@@ -2138,8 +2132,6 @@ class TweetApi:
2138
2132
  :type variables: str
2139
2133
  :param features: (required)
2140
2134
  :type features: str
2141
- :param field_toggles: (required)
2142
- :type field_toggles: str
2143
2135
  :param _request_timeout: timeout setting for this request. If one
2144
2136
  number provided, it will be total request
2145
2137
  timeout. It can also be a pair (tuple) of
@@ -2162,11 +2154,10 @@ class TweetApi:
2162
2154
  :return: Returns the result object.
2163
2155
  """ # noqa: E501
2164
2156
 
2165
- _param = self._get_likes_serialize(
2157
+ _param = self._get_explore_page_serialize(
2166
2158
  path_query_id=path_query_id,
2167
2159
  variables=variables,
2168
2160
  features=features,
2169
- field_toggles=field_toggles,
2170
2161
  _request_auth=_request_auth,
2171
2162
  _content_type=_content_type,
2172
2163
  _headers=_headers,
@@ -2174,7 +2165,7 @@ class TweetApi:
2174
2165
  )
2175
2166
 
2176
2167
  _response_types_map: Dict[str, Optional[str]] = {
2177
- '200': "UserTweetsResponse",
2168
+ '200': "ExplorePageResponse",
2178
2169
  }
2179
2170
  response_data = self.api_client.call_api(
2180
2171
  *_param,
@@ -2183,12 +2174,11 @@ class TweetApi:
2183
2174
  return response_data.response
2184
2175
 
2185
2176
 
2186
- def _get_likes_serialize(
2177
+ def _get_explore_page_serialize(
2187
2178
  self,
2188
2179
  path_query_id,
2189
2180
  variables,
2190
2181
  features,
2191
- field_toggles,
2192
2182
  _request_auth,
2193
2183
  _content_type,
2194
2184
  _headers,
@@ -2221,10 +2211,6 @@ class TweetApi:
2221
2211
 
2222
2212
  _query_params.append(('features', features))
2223
2213
 
2224
- if field_toggles is not None:
2225
-
2226
- _query_params.append(('fieldToggles', field_toggles))
2227
-
2228
2214
  # process the header parameters
2229
2215
  # process the form parameters
2230
2216
  # process the body parameter
@@ -2268,7 +2254,7 @@ class TweetApi:
2268
2254
 
2269
2255
  return self.api_client.param_serialize(
2270
2256
  method='GET',
2271
- resource_path='/graphql/{pathQueryId}/Likes',
2257
+ resource_path='/graphql/{pathQueryId}/ExplorePage',
2272
2258
  path_params=_path_params,
2273
2259
  query_params=_query_params,
2274
2260
  header_params=_header_params,
@@ -2285,7 +2271,7 @@ class TweetApi:
2285
2271
 
2286
2272
 
2287
2273
  @validate_call
2288
- def get_list_latest_tweets_timeline(
2274
+ def get_generic_timeline_by_id(
2289
2275
  self,
2290
2276
  path_query_id: StrictStr,
2291
2277
  variables: StrictStr,
@@ -2302,10 +2288,10 @@ class TweetApi:
2302
2288
  _content_type: Optional[StrictStr] = None,
2303
2289
  _headers: Optional[Dict[StrictStr, Any]] = None,
2304
2290
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2305
- ) -> ListLatestTweetsTimelineResponse:
2306
- """get_list_latest_tweets_timeline
2291
+ ) -> GenericTimelineByIdResponse:
2292
+ """get_generic_timeline_by_id
2307
2293
 
2308
- get tweet list of timeline
2294
+ get a generic timeline by its id (explore tabs)
2309
2295
 
2310
2296
  :param path_query_id: (required)
2311
2297
  :type path_query_id: str
@@ -2335,7 +2321,7 @@ class TweetApi:
2335
2321
  :return: Returns the result object.
2336
2322
  """ # noqa: E501
2337
2323
 
2338
- _param = self._get_list_latest_tweets_timeline_serialize(
2324
+ _param = self._get_generic_timeline_by_id_serialize(
2339
2325
  path_query_id=path_query_id,
2340
2326
  variables=variables,
2341
2327
  features=features,
@@ -2346,7 +2332,7 @@ class TweetApi:
2346
2332
  )
2347
2333
 
2348
2334
  _response_types_map: Dict[str, Optional[str]] = {
2349
- '200': "ListLatestTweetsTimelineResponse",
2335
+ '200': "GenericTimelineByIdResponse",
2350
2336
  }
2351
2337
  response_data = self.api_client.call_api(
2352
2338
  *_param,
@@ -2360,7 +2346,7 @@ class TweetApi:
2360
2346
 
2361
2347
 
2362
2348
  @validate_call
2363
- def get_list_latest_tweets_timeline_with_http_info(
2349
+ def get_generic_timeline_by_id_with_http_info(
2364
2350
  self,
2365
2351
  path_query_id: StrictStr,
2366
2352
  variables: StrictStr,
@@ -2377,10 +2363,10 @@ class TweetApi:
2377
2363
  _content_type: Optional[StrictStr] = None,
2378
2364
  _headers: Optional[Dict[StrictStr, Any]] = None,
2379
2365
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2380
- ) -> ApiResponse[ListLatestTweetsTimelineResponse]:
2381
- """get_list_latest_tweets_timeline
2366
+ ) -> ApiResponse[GenericTimelineByIdResponse]:
2367
+ """get_generic_timeline_by_id
2382
2368
 
2383
- get tweet list of timeline
2369
+ get a generic timeline by its id (explore tabs)
2384
2370
 
2385
2371
  :param path_query_id: (required)
2386
2372
  :type path_query_id: str
@@ -2410,7 +2396,7 @@ class TweetApi:
2410
2396
  :return: Returns the result object.
2411
2397
  """ # noqa: E501
2412
2398
 
2413
- _param = self._get_list_latest_tweets_timeline_serialize(
2399
+ _param = self._get_generic_timeline_by_id_serialize(
2414
2400
  path_query_id=path_query_id,
2415
2401
  variables=variables,
2416
2402
  features=features,
@@ -2421,7 +2407,7 @@ class TweetApi:
2421
2407
  )
2422
2408
 
2423
2409
  _response_types_map: Dict[str, Optional[str]] = {
2424
- '200': "ListLatestTweetsTimelineResponse",
2410
+ '200': "GenericTimelineByIdResponse",
2425
2411
  }
2426
2412
  response_data = self.api_client.call_api(
2427
2413
  *_param,
@@ -2435,7 +2421,7 @@ class TweetApi:
2435
2421
 
2436
2422
 
2437
2423
  @validate_call
2438
- def get_list_latest_tweets_timeline_without_preload_content(
2424
+ def get_generic_timeline_by_id_without_preload_content(
2439
2425
  self,
2440
2426
  path_query_id: StrictStr,
2441
2427
  variables: StrictStr,
@@ -2453,9 +2439,9 @@ class TweetApi:
2453
2439
  _headers: Optional[Dict[StrictStr, Any]] = None,
2454
2440
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2455
2441
  ) -> RESTResponseType:
2456
- """get_list_latest_tweets_timeline
2442
+ """get_generic_timeline_by_id
2457
2443
 
2458
- get tweet list of timeline
2444
+ get a generic timeline by its id (explore tabs)
2459
2445
 
2460
2446
  :param path_query_id: (required)
2461
2447
  :type path_query_id: str
@@ -2485,7 +2471,7 @@ class TweetApi:
2485
2471
  :return: Returns the result object.
2486
2472
  """ # noqa: E501
2487
2473
 
2488
- _param = self._get_list_latest_tweets_timeline_serialize(
2474
+ _param = self._get_generic_timeline_by_id_serialize(
2489
2475
  path_query_id=path_query_id,
2490
2476
  variables=variables,
2491
2477
  features=features,
@@ -2496,7 +2482,7 @@ class TweetApi:
2496
2482
  )
2497
2483
 
2498
2484
  _response_types_map: Dict[str, Optional[str]] = {
2499
- '200': "ListLatestTweetsTimelineResponse",
2485
+ '200': "GenericTimelineByIdResponse",
2500
2486
  }
2501
2487
  response_data = self.api_client.call_api(
2502
2488
  *_param,
@@ -2505,7 +2491,7 @@ class TweetApi:
2505
2491
  return response_data.response
2506
2492
 
2507
2493
 
2508
- def _get_list_latest_tweets_timeline_serialize(
2494
+ def _get_generic_timeline_by_id_serialize(
2509
2495
  self,
2510
2496
  path_query_id,
2511
2497
  variables,
@@ -2585,7 +2571,7 @@ class TweetApi:
2585
2571
 
2586
2572
  return self.api_client.param_serialize(
2587
2573
  method='GET',
2588
- resource_path='/graphql/{pathQueryId}/ListLatestTweetsTimeline',
2574
+ resource_path='/graphql/{pathQueryId}/GenericTimelineById',
2589
2575
  path_params=_path_params,
2590
2576
  query_params=_query_params,
2591
2577
  header_params=_header_params,
@@ -2602,11 +2588,12 @@ class TweetApi:
2602
2588
 
2603
2589
 
2604
2590
  @validate_call
2605
- def get_notifications_timeline(
2591
+ def get_home_latest_timeline(
2606
2592
  self,
2607
2593
  path_query_id: StrictStr,
2608
2594
  variables: StrictStr,
2609
2595
  features: StrictStr,
2596
+ field_toggles: StrictStr,
2610
2597
  _request_timeout: Union[
2611
2598
  None,
2612
2599
  Annotated[StrictFloat, Field(gt=0)],
@@ -2619,10 +2606,10 @@ class TweetApi:
2619
2606
  _content_type: Optional[StrictStr] = None,
2620
2607
  _headers: Optional[Dict[StrictStr, Any]] = None,
2621
2608
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2622
- ) -> NotificationsTimelineResponse:
2623
- """get_notifications_timeline
2609
+ ) -> TimelineResponse:
2610
+ """get_home_latest_timeline
2624
2611
 
2625
- get notification list. timeline_type:[All, Verified, Mentions]
2612
+ get tweet list of timeline
2626
2613
 
2627
2614
  :param path_query_id: (required)
2628
2615
  :type path_query_id: str
@@ -2630,6 +2617,8 @@ class TweetApi:
2630
2617
  :type variables: str
2631
2618
  :param features: (required)
2632
2619
  :type features: str
2620
+ :param field_toggles: (required)
2621
+ :type field_toggles: str
2633
2622
  :param _request_timeout: timeout setting for this request. If one
2634
2623
  number provided, it will be total request
2635
2624
  timeout. It can also be a pair (tuple) of
@@ -2652,10 +2641,11 @@ class TweetApi:
2652
2641
  :return: Returns the result object.
2653
2642
  """ # noqa: E501
2654
2643
 
2655
- _param = self._get_notifications_timeline_serialize(
2644
+ _param = self._get_home_latest_timeline_serialize(
2656
2645
  path_query_id=path_query_id,
2657
2646
  variables=variables,
2658
2647
  features=features,
2648
+ field_toggles=field_toggles,
2659
2649
  _request_auth=_request_auth,
2660
2650
  _content_type=_content_type,
2661
2651
  _headers=_headers,
@@ -2663,7 +2653,7 @@ class TweetApi:
2663
2653
  )
2664
2654
 
2665
2655
  _response_types_map: Dict[str, Optional[str]] = {
2666
- '200': "NotificationsTimelineResponse",
2656
+ '200': "TimelineResponse",
2667
2657
  }
2668
2658
  response_data = self.api_client.call_api(
2669
2659
  *_param,
@@ -2677,11 +2667,12 @@ class TweetApi:
2677
2667
 
2678
2668
 
2679
2669
  @validate_call
2680
- def get_notifications_timeline_with_http_info(
2670
+ def get_home_latest_timeline_with_http_info(
2681
2671
  self,
2682
2672
  path_query_id: StrictStr,
2683
2673
  variables: StrictStr,
2684
2674
  features: StrictStr,
2675
+ field_toggles: StrictStr,
2685
2676
  _request_timeout: Union[
2686
2677
  None,
2687
2678
  Annotated[StrictFloat, Field(gt=0)],
@@ -2694,10 +2685,10 @@ class TweetApi:
2694
2685
  _content_type: Optional[StrictStr] = None,
2695
2686
  _headers: Optional[Dict[StrictStr, Any]] = None,
2696
2687
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2697
- ) -> ApiResponse[NotificationsTimelineResponse]:
2698
- """get_notifications_timeline
2688
+ ) -> ApiResponse[TimelineResponse]:
2689
+ """get_home_latest_timeline
2699
2690
 
2700
- get notification list. timeline_type:[All, Verified, Mentions]
2691
+ get tweet list of timeline
2701
2692
 
2702
2693
  :param path_query_id: (required)
2703
2694
  :type path_query_id: str
@@ -2705,6 +2696,8 @@ class TweetApi:
2705
2696
  :type variables: str
2706
2697
  :param features: (required)
2707
2698
  :type features: str
2699
+ :param field_toggles: (required)
2700
+ :type field_toggles: str
2708
2701
  :param _request_timeout: timeout setting for this request. If one
2709
2702
  number provided, it will be total request
2710
2703
  timeout. It can also be a pair (tuple) of
@@ -2727,10 +2720,11 @@ class TweetApi:
2727
2720
  :return: Returns the result object.
2728
2721
  """ # noqa: E501
2729
2722
 
2730
- _param = self._get_notifications_timeline_serialize(
2723
+ _param = self._get_home_latest_timeline_serialize(
2731
2724
  path_query_id=path_query_id,
2732
2725
  variables=variables,
2733
2726
  features=features,
2727
+ field_toggles=field_toggles,
2734
2728
  _request_auth=_request_auth,
2735
2729
  _content_type=_content_type,
2736
2730
  _headers=_headers,
@@ -2738,7 +2732,7 @@ class TweetApi:
2738
2732
  )
2739
2733
 
2740
2734
  _response_types_map: Dict[str, Optional[str]] = {
2741
- '200': "NotificationsTimelineResponse",
2735
+ '200': "TimelineResponse",
2742
2736
  }
2743
2737
  response_data = self.api_client.call_api(
2744
2738
  *_param,
@@ -2752,11 +2746,12 @@ class TweetApi:
2752
2746
 
2753
2747
 
2754
2748
  @validate_call
2755
- def get_notifications_timeline_without_preload_content(
2749
+ def get_home_latest_timeline_without_preload_content(
2756
2750
  self,
2757
2751
  path_query_id: StrictStr,
2758
2752
  variables: StrictStr,
2759
2753
  features: StrictStr,
2754
+ field_toggles: StrictStr,
2760
2755
  _request_timeout: Union[
2761
2756
  None,
2762
2757
  Annotated[StrictFloat, Field(gt=0)],
@@ -2770,9 +2765,9 @@ class TweetApi:
2770
2765
  _headers: Optional[Dict[StrictStr, Any]] = None,
2771
2766
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2772
2767
  ) -> RESTResponseType:
2773
- """get_notifications_timeline
2768
+ """get_home_latest_timeline
2774
2769
 
2775
- get notification list. timeline_type:[All, Verified, Mentions]
2770
+ get tweet list of timeline
2776
2771
 
2777
2772
  :param path_query_id: (required)
2778
2773
  :type path_query_id: str
@@ -2780,6 +2775,8 @@ class TweetApi:
2780
2775
  :type variables: str
2781
2776
  :param features: (required)
2782
2777
  :type features: str
2778
+ :param field_toggles: (required)
2779
+ :type field_toggles: str
2783
2780
  :param _request_timeout: timeout setting for this request. If one
2784
2781
  number provided, it will be total request
2785
2782
  timeout. It can also be a pair (tuple) of
@@ -2802,10 +2799,11 @@ class TweetApi:
2802
2799
  :return: Returns the result object.
2803
2800
  """ # noqa: E501
2804
2801
 
2805
- _param = self._get_notifications_timeline_serialize(
2802
+ _param = self._get_home_latest_timeline_serialize(
2806
2803
  path_query_id=path_query_id,
2807
2804
  variables=variables,
2808
2805
  features=features,
2806
+ field_toggles=field_toggles,
2809
2807
  _request_auth=_request_auth,
2810
2808
  _content_type=_content_type,
2811
2809
  _headers=_headers,
@@ -2813,7 +2811,7 @@ class TweetApi:
2813
2811
  )
2814
2812
 
2815
2813
  _response_types_map: Dict[str, Optional[str]] = {
2816
- '200': "NotificationsTimelineResponse",
2814
+ '200': "TimelineResponse",
2817
2815
  }
2818
2816
  response_data = self.api_client.call_api(
2819
2817
  *_param,
@@ -2822,11 +2820,12 @@ class TweetApi:
2822
2820
  return response_data.response
2823
2821
 
2824
2822
 
2825
- def _get_notifications_timeline_serialize(
2823
+ def _get_home_latest_timeline_serialize(
2826
2824
  self,
2827
2825
  path_query_id,
2828
2826
  variables,
2829
2827
  features,
2828
+ field_toggles,
2830
2829
  _request_auth,
2831
2830
  _content_type,
2832
2831
  _headers,
@@ -2859,6 +2858,10 @@ class TweetApi:
2859
2858
 
2860
2859
  _query_params.append(('features', features))
2861
2860
 
2861
+ if field_toggles is not None:
2862
+
2863
+ _query_params.append(('fieldToggles', field_toggles))
2864
+
2862
2865
  # process the header parameters
2863
2866
  # process the form parameters
2864
2867
  # process the body parameter
@@ -2902,7 +2905,7 @@ class TweetApi:
2902
2905
 
2903
2906
  return self.api_client.param_serialize(
2904
2907
  method='GET',
2905
- resource_path='/graphql/{pathQueryId}/NotificationsTimeline',
2908
+ resource_path='/graphql/{pathQueryId}/HomeLatestTimeline',
2906
2909
  path_params=_path_params,
2907
2910
  query_params=_query_params,
2908
2911
  header_params=_header_params,
@@ -2919,11 +2922,12 @@ class TweetApi:
2919
2922
 
2920
2923
 
2921
2924
  @validate_call
2922
- def get_search_timeline(
2925
+ def get_home_timeline(
2923
2926
  self,
2924
2927
  path_query_id: StrictStr,
2925
2928
  variables: StrictStr,
2926
2929
  features: StrictStr,
2930
+ field_toggles: StrictStr,
2927
2931
  _request_timeout: Union[
2928
2932
  None,
2929
2933
  Annotated[StrictFloat, Field(gt=0)],
@@ -2936,10 +2940,10 @@ class TweetApi:
2936
2940
  _content_type: Optional[StrictStr] = None,
2937
2941
  _headers: Optional[Dict[StrictStr, Any]] = None,
2938
2942
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2939
- ) -> SearchTimelineResponse:
2940
- """get_search_timeline
2943
+ ) -> TimelineResponse:
2944
+ """get_home_timeline
2941
2945
 
2942
- search tweet list. product:[Top, Latest, People, Photos, Videos]
2946
+ get tweet list of timeline
2943
2947
 
2944
2948
  :param path_query_id: (required)
2945
2949
  :type path_query_id: str
@@ -2947,6 +2951,8 @@ class TweetApi:
2947
2951
  :type variables: str
2948
2952
  :param features: (required)
2949
2953
  :type features: str
2954
+ :param field_toggles: (required)
2955
+ :type field_toggles: str
2950
2956
  :param _request_timeout: timeout setting for this request. If one
2951
2957
  number provided, it will be total request
2952
2958
  timeout. It can also be a pair (tuple) of
@@ -2969,10 +2975,11 @@ class TweetApi:
2969
2975
  :return: Returns the result object.
2970
2976
  """ # noqa: E501
2971
2977
 
2972
- _param = self._get_search_timeline_serialize(
2978
+ _param = self._get_home_timeline_serialize(
2973
2979
  path_query_id=path_query_id,
2974
2980
  variables=variables,
2975
2981
  features=features,
2982
+ field_toggles=field_toggles,
2976
2983
  _request_auth=_request_auth,
2977
2984
  _content_type=_content_type,
2978
2985
  _headers=_headers,
@@ -2980,7 +2987,7 @@ class TweetApi:
2980
2987
  )
2981
2988
 
2982
2989
  _response_types_map: Dict[str, Optional[str]] = {
2983
- '200': "SearchTimelineResponse",
2990
+ '200': "TimelineResponse",
2984
2991
  }
2985
2992
  response_data = self.api_client.call_api(
2986
2993
  *_param,
@@ -2994,11 +3001,12 @@ class TweetApi:
2994
3001
 
2995
3002
 
2996
3003
  @validate_call
2997
- def get_search_timeline_with_http_info(
3004
+ def get_home_timeline_with_http_info(
2998
3005
  self,
2999
3006
  path_query_id: StrictStr,
3000
3007
  variables: StrictStr,
3001
3008
  features: StrictStr,
3009
+ field_toggles: StrictStr,
3002
3010
  _request_timeout: Union[
3003
3011
  None,
3004
3012
  Annotated[StrictFloat, Field(gt=0)],
@@ -3011,10 +3019,10 @@ class TweetApi:
3011
3019
  _content_type: Optional[StrictStr] = None,
3012
3020
  _headers: Optional[Dict[StrictStr, Any]] = None,
3013
3021
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3014
- ) -> ApiResponse[SearchTimelineResponse]:
3015
- """get_search_timeline
3022
+ ) -> ApiResponse[TimelineResponse]:
3023
+ """get_home_timeline
3016
3024
 
3017
- search tweet list. product:[Top, Latest, People, Photos, Videos]
3025
+ get tweet list of timeline
3018
3026
 
3019
3027
  :param path_query_id: (required)
3020
3028
  :type path_query_id: str
@@ -3022,6 +3030,8 @@ class TweetApi:
3022
3030
  :type variables: str
3023
3031
  :param features: (required)
3024
3032
  :type features: str
3033
+ :param field_toggles: (required)
3034
+ :type field_toggles: str
3025
3035
  :param _request_timeout: timeout setting for this request. If one
3026
3036
  number provided, it will be total request
3027
3037
  timeout. It can also be a pair (tuple) of
@@ -3044,7 +3054,1377 @@ class TweetApi:
3044
3054
  :return: Returns the result object.
3045
3055
  """ # noqa: E501
3046
3056
 
3047
- _param = self._get_search_timeline_serialize(
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
3612
+
3613
+ get tweet list of timeline
3614
+
3615
+ :param path_query_id: (required)
3616
+ :type path_query_id: str
3617
+ :param variables: (required)
3618
+ :type variables: str
3619
+ :param features: (required)
3620
+ :type features: str
3621
+ :param _request_timeout: timeout setting for this request. If one
3622
+ number provided, it will be total request
3623
+ timeout. It can also be a pair (tuple) of
3624
+ (connection, read) timeouts.
3625
+ :type _request_timeout: int, tuple(int, int), optional
3626
+ :param _request_auth: set to override the auth_settings for an a single
3627
+ request; this effectively ignores the
3628
+ authentication in the spec for a single request.
3629
+ :type _request_auth: dict, optional
3630
+ :param _content_type: force content-type for the request.
3631
+ :type _content_type: str, Optional
3632
+ :param _headers: set to override the headers for a single
3633
+ request; this effectively ignores the headers
3634
+ in the spec for a single request.
3635
+ :type _headers: dict, optional
3636
+ :param _host_index: set to override the host_index for a single
3637
+ request; this effectively ignores the host_index
3638
+ in the spec for a single request.
3639
+ :type _host_index: int, optional
3640
+ :return: Returns the result object.
3641
+ """ # noqa: E501
3642
+
3643
+ _param = self._get_list_latest_tweets_timeline_serialize(
3644
+ path_query_id=path_query_id,
3645
+ variables=variables,
3646
+ features=features,
3647
+ _request_auth=_request_auth,
3648
+ _content_type=_content_type,
3649
+ _headers=_headers,
3650
+ _host_index=_host_index
3651
+ )
3652
+
3653
+ _response_types_map: Dict[str, Optional[str]] = {
3654
+ '200': "ListLatestTweetsTimelineResponse",
3655
+ }
3656
+ response_data = self.api_client.call_api(
3657
+ *_param,
3658
+ _request_timeout=_request_timeout
3659
+ )
3660
+ response_data.read()
3661
+ return self.api_client.response_deserialize(
3662
+ response_data=response_data,
3663
+ response_types_map=_response_types_map,
3664
+ ).data
3665
+
3666
+
3667
+ @validate_call
3668
+ def get_list_latest_tweets_timeline_with_http_info(
3669
+ self,
3670
+ path_query_id: StrictStr,
3671
+ variables: StrictStr,
3672
+ features: StrictStr,
3673
+ _request_timeout: Union[
3674
+ None,
3675
+ Annotated[StrictFloat, Field(gt=0)],
3676
+ Tuple[
3677
+ Annotated[StrictFloat, Field(gt=0)],
3678
+ Annotated[StrictFloat, Field(gt=0)]
3679
+ ]
3680
+ ] = None,
3681
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3682
+ _content_type: Optional[StrictStr] = None,
3683
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3684
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3685
+ ) -> ApiResponse[ListLatestTweetsTimelineResponse]:
3686
+ """get_list_latest_tweets_timeline
3687
+
3688
+ get tweet list of timeline
3689
+
3690
+ :param path_query_id: (required)
3691
+ :type path_query_id: str
3692
+ :param variables: (required)
3693
+ :type variables: str
3694
+ :param features: (required)
3695
+ :type features: str
3696
+ :param _request_timeout: timeout setting for this request. If one
3697
+ number provided, it will be total request
3698
+ timeout. It can also be a pair (tuple) of
3699
+ (connection, read) timeouts.
3700
+ :type _request_timeout: int, tuple(int, int), optional
3701
+ :param _request_auth: set to override the auth_settings for an a single
3702
+ request; this effectively ignores the
3703
+ authentication in the spec for a single request.
3704
+ :type _request_auth: dict, optional
3705
+ :param _content_type: force content-type for the request.
3706
+ :type _content_type: str, Optional
3707
+ :param _headers: set to override the headers for a single
3708
+ request; this effectively ignores the headers
3709
+ in the spec for a single request.
3710
+ :type _headers: dict, optional
3711
+ :param _host_index: set to override the host_index for a single
3712
+ request; this effectively ignores the host_index
3713
+ in the spec for a single request.
3714
+ :type _host_index: int, optional
3715
+ :return: Returns the result object.
3716
+ """ # noqa: E501
3717
+
3718
+ _param = self._get_list_latest_tweets_timeline_serialize(
3719
+ path_query_id=path_query_id,
3720
+ variables=variables,
3721
+ features=features,
3722
+ _request_auth=_request_auth,
3723
+ _content_type=_content_type,
3724
+ _headers=_headers,
3725
+ _host_index=_host_index
3726
+ )
3727
+
3728
+ _response_types_map: Dict[str, Optional[str]] = {
3729
+ '200': "ListLatestTweetsTimelineResponse",
3730
+ }
3731
+ response_data = self.api_client.call_api(
3732
+ *_param,
3733
+ _request_timeout=_request_timeout
3734
+ )
3735
+ response_data.read()
3736
+ return self.api_client.response_deserialize(
3737
+ response_data=response_data,
3738
+ response_types_map=_response_types_map,
3739
+ )
3740
+
3741
+
3742
+ @validate_call
3743
+ def get_list_latest_tweets_timeline_without_preload_content(
3744
+ self,
3745
+ path_query_id: StrictStr,
3746
+ variables: StrictStr,
3747
+ features: StrictStr,
3748
+ _request_timeout: Union[
3749
+ None,
3750
+ Annotated[StrictFloat, Field(gt=0)],
3751
+ Tuple[
3752
+ Annotated[StrictFloat, Field(gt=0)],
3753
+ Annotated[StrictFloat, Field(gt=0)]
3754
+ ]
3755
+ ] = None,
3756
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3757
+ _content_type: Optional[StrictStr] = None,
3758
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3759
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3760
+ ) -> RESTResponseType:
3761
+ """get_list_latest_tweets_timeline
3762
+
3763
+ get tweet list of timeline
3764
+
3765
+ :param path_query_id: (required)
3766
+ :type path_query_id: str
3767
+ :param variables: (required)
3768
+ :type variables: str
3769
+ :param features: (required)
3770
+ :type features: str
3771
+ :param _request_timeout: timeout setting for this request. If one
3772
+ number provided, it will be total request
3773
+ timeout. It can also be a pair (tuple) of
3774
+ (connection, read) timeouts.
3775
+ :type _request_timeout: int, tuple(int, int), optional
3776
+ :param _request_auth: set to override the auth_settings for an a single
3777
+ request; this effectively ignores the
3778
+ authentication in the spec for a single request.
3779
+ :type _request_auth: dict, optional
3780
+ :param _content_type: force content-type for the request.
3781
+ :type _content_type: str, Optional
3782
+ :param _headers: set to override the headers for a single
3783
+ request; this effectively ignores the headers
3784
+ in the spec for a single request.
3785
+ :type _headers: dict, optional
3786
+ :param _host_index: set to override the host_index for a single
3787
+ request; this effectively ignores the host_index
3788
+ in the spec for a single request.
3789
+ :type _host_index: int, optional
3790
+ :return: Returns the result object.
3791
+ """ # noqa: E501
3792
+
3793
+ _param = self._get_list_latest_tweets_timeline_serialize(
3794
+ path_query_id=path_query_id,
3795
+ variables=variables,
3796
+ features=features,
3797
+ _request_auth=_request_auth,
3798
+ _content_type=_content_type,
3799
+ _headers=_headers,
3800
+ _host_index=_host_index
3801
+ )
3802
+
3803
+ _response_types_map: Dict[str, Optional[str]] = {
3804
+ '200': "ListLatestTweetsTimelineResponse",
3805
+ }
3806
+ response_data = self.api_client.call_api(
3807
+ *_param,
3808
+ _request_timeout=_request_timeout
3809
+ )
3810
+ return response_data.response
3811
+
3812
+
3813
+ def _get_list_latest_tweets_timeline_serialize(
3814
+ self,
3815
+ path_query_id,
3816
+ variables,
3817
+ features,
3818
+ _request_auth,
3819
+ _content_type,
3820
+ _headers,
3821
+ _host_index,
3822
+ ) -> RequestSerialized:
3823
+
3824
+ _host = None
3825
+
3826
+ _collection_formats: Dict[str, str] = {
3827
+ }
3828
+
3829
+ _path_params: Dict[str, str] = {}
3830
+ _query_params: List[Tuple[str, str]] = []
3831
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3832
+ _form_params: List[Tuple[str, str]] = []
3833
+ _files: Dict[
3834
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3835
+ ] = {}
3836
+ _body_params: Optional[bytes] = None
3837
+
3838
+ # process the path parameters
3839
+ if path_query_id is not None:
3840
+ _path_params['pathQueryId'] = path_query_id
3841
+ # process the query parameters
3842
+ if variables is not None:
3843
+
3844
+ _query_params.append(('variables', variables))
3845
+
3846
+ if features is not None:
3847
+
3848
+ _query_params.append(('features', features))
3849
+
3850
+ # process the header parameters
3851
+ # process the form parameters
3852
+ # process the body parameter
3853
+
3854
+
3855
+ # set the HTTP header `Accept`
3856
+ if 'Accept' not in _header_params:
3857
+ _header_params['Accept'] = self.api_client.select_header_accept(
3858
+ [
3859
+ 'application/json'
3860
+ ]
3861
+ )
3862
+
3863
+
3864
+ # authentication setting
3865
+ _auth_settings: List[str] = [
3866
+ 'Accept',
3867
+ 'ClientLanguage',
3868
+ 'Priority',
3869
+ 'Referer',
3870
+ 'SecFetchDest',
3871
+ 'SecChUaPlatform',
3872
+ 'SecFetchMode',
3873
+ 'CsrfToken',
3874
+ 'ClientUuid',
3875
+ 'BearerAuth',
3876
+ 'GuestToken',
3877
+ 'SecChUa',
3878
+ 'CookieGt0',
3879
+ 'ClientTransactionId',
3880
+ 'ActiveUser',
3881
+ 'CookieCt0',
3882
+ 'UserAgent',
3883
+ 'AcceptLanguage',
3884
+ 'SecFetchSite',
3885
+ 'AuthType',
3886
+ 'CookieAuthToken',
3887
+ 'SecChUaMobile',
3888
+ 'AcceptEncoding'
3889
+ ]
3890
+
3891
+ return self.api_client.param_serialize(
3892
+ method='GET',
3893
+ resource_path='/graphql/{pathQueryId}/ListLatestTweetsTimeline',
3894
+ path_params=_path_params,
3895
+ query_params=_query_params,
3896
+ header_params=_header_params,
3897
+ body=_body_params,
3898
+ post_params=_form_params,
3899
+ files=_files,
3900
+ auth_settings=_auth_settings,
3901
+ collection_formats=_collection_formats,
3902
+ _host=_host,
3903
+ _request_auth=_request_auth
3904
+ )
3905
+
3906
+
3907
+
3908
+
3909
+ @validate_call
3910
+ def get_notifications_timeline(
3911
+ self,
3912
+ path_query_id: StrictStr,
3913
+ variables: StrictStr,
3914
+ features: StrictStr,
3915
+ _request_timeout: Union[
3916
+ None,
3917
+ Annotated[StrictFloat, Field(gt=0)],
3918
+ Tuple[
3919
+ Annotated[StrictFloat, Field(gt=0)],
3920
+ Annotated[StrictFloat, Field(gt=0)]
3921
+ ]
3922
+ ] = None,
3923
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3924
+ _content_type: Optional[StrictStr] = None,
3925
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3926
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3927
+ ) -> NotificationsTimelineResponse:
3928
+ """get_notifications_timeline
3929
+
3930
+ get notification list. timeline_type:[All, Verified, Mentions]
3931
+
3932
+ :param path_query_id: (required)
3933
+ :type path_query_id: str
3934
+ :param variables: (required)
3935
+ :type variables: str
3936
+ :param features: (required)
3937
+ :type features: str
3938
+ :param _request_timeout: timeout setting for this request. If one
3939
+ number provided, it will be total request
3940
+ timeout. It can also be a pair (tuple) of
3941
+ (connection, read) timeouts.
3942
+ :type _request_timeout: int, tuple(int, int), optional
3943
+ :param _request_auth: set to override the auth_settings for an a single
3944
+ request; this effectively ignores the
3945
+ authentication in the spec for a single request.
3946
+ :type _request_auth: dict, optional
3947
+ :param _content_type: force content-type for the request.
3948
+ :type _content_type: str, Optional
3949
+ :param _headers: set to override the headers for a single
3950
+ request; this effectively ignores the headers
3951
+ in the spec for a single request.
3952
+ :type _headers: dict, optional
3953
+ :param _host_index: set to override the host_index for a single
3954
+ request; this effectively ignores the host_index
3955
+ in the spec for a single request.
3956
+ :type _host_index: int, optional
3957
+ :return: Returns the result object.
3958
+ """ # noqa: E501
3959
+
3960
+ _param = self._get_notifications_timeline_serialize(
3961
+ path_query_id=path_query_id,
3962
+ variables=variables,
3963
+ features=features,
3964
+ _request_auth=_request_auth,
3965
+ _content_type=_content_type,
3966
+ _headers=_headers,
3967
+ _host_index=_host_index
3968
+ )
3969
+
3970
+ _response_types_map: Dict[str, Optional[str]] = {
3971
+ '200': "NotificationsTimelineResponse",
3972
+ }
3973
+ response_data = self.api_client.call_api(
3974
+ *_param,
3975
+ _request_timeout=_request_timeout
3976
+ )
3977
+ response_data.read()
3978
+ return self.api_client.response_deserialize(
3979
+ response_data=response_data,
3980
+ response_types_map=_response_types_map,
3981
+ ).data
3982
+
3983
+
3984
+ @validate_call
3985
+ def get_notifications_timeline_with_http_info(
3986
+ self,
3987
+ path_query_id: StrictStr,
3988
+ variables: StrictStr,
3989
+ features: StrictStr,
3990
+ _request_timeout: Union[
3991
+ None,
3992
+ Annotated[StrictFloat, Field(gt=0)],
3993
+ Tuple[
3994
+ Annotated[StrictFloat, Field(gt=0)],
3995
+ Annotated[StrictFloat, Field(gt=0)]
3996
+ ]
3997
+ ] = None,
3998
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3999
+ _content_type: Optional[StrictStr] = None,
4000
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4001
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4002
+ ) -> ApiResponse[NotificationsTimelineResponse]:
4003
+ """get_notifications_timeline
4004
+
4005
+ get notification list. timeline_type:[All, Verified, Mentions]
4006
+
4007
+ :param path_query_id: (required)
4008
+ :type path_query_id: str
4009
+ :param variables: (required)
4010
+ :type variables: str
4011
+ :param features: (required)
4012
+ :type features: str
4013
+ :param _request_timeout: timeout setting for this request. If one
4014
+ number provided, it will be total request
4015
+ timeout. It can also be a pair (tuple) of
4016
+ (connection, read) timeouts.
4017
+ :type _request_timeout: int, tuple(int, int), optional
4018
+ :param _request_auth: set to override the auth_settings for an a single
4019
+ request; this effectively ignores the
4020
+ authentication in the spec for a single request.
4021
+ :type _request_auth: dict, optional
4022
+ :param _content_type: force content-type for the request.
4023
+ :type _content_type: str, Optional
4024
+ :param _headers: set to override the headers for a single
4025
+ request; this effectively ignores the headers
4026
+ in the spec for a single request.
4027
+ :type _headers: dict, optional
4028
+ :param _host_index: set to override the host_index for a single
4029
+ request; this effectively ignores the host_index
4030
+ in the spec for a single request.
4031
+ :type _host_index: int, optional
4032
+ :return: Returns the result object.
4033
+ """ # noqa: E501
4034
+
4035
+ _param = self._get_notifications_timeline_serialize(
4036
+ path_query_id=path_query_id,
4037
+ variables=variables,
4038
+ features=features,
4039
+ _request_auth=_request_auth,
4040
+ _content_type=_content_type,
4041
+ _headers=_headers,
4042
+ _host_index=_host_index
4043
+ )
4044
+
4045
+ _response_types_map: Dict[str, Optional[str]] = {
4046
+ '200': "NotificationsTimelineResponse",
4047
+ }
4048
+ response_data = self.api_client.call_api(
4049
+ *_param,
4050
+ _request_timeout=_request_timeout
4051
+ )
4052
+ response_data.read()
4053
+ return self.api_client.response_deserialize(
4054
+ response_data=response_data,
4055
+ response_types_map=_response_types_map,
4056
+ )
4057
+
4058
+
4059
+ @validate_call
4060
+ def get_notifications_timeline_without_preload_content(
4061
+ self,
4062
+ path_query_id: StrictStr,
4063
+ variables: StrictStr,
4064
+ features: StrictStr,
4065
+ _request_timeout: Union[
4066
+ None,
4067
+ Annotated[StrictFloat, Field(gt=0)],
4068
+ Tuple[
4069
+ Annotated[StrictFloat, Field(gt=0)],
4070
+ Annotated[StrictFloat, Field(gt=0)]
4071
+ ]
4072
+ ] = None,
4073
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4074
+ _content_type: Optional[StrictStr] = None,
4075
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4076
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4077
+ ) -> RESTResponseType:
4078
+ """get_notifications_timeline
4079
+
4080
+ get notification list. timeline_type:[All, Verified, Mentions]
4081
+
4082
+ :param path_query_id: (required)
4083
+ :type path_query_id: str
4084
+ :param variables: (required)
4085
+ :type variables: str
4086
+ :param features: (required)
4087
+ :type features: str
4088
+ :param _request_timeout: timeout setting for this request. If one
4089
+ number provided, it will be total request
4090
+ timeout. It can also be a pair (tuple) of
4091
+ (connection, read) timeouts.
4092
+ :type _request_timeout: int, tuple(int, int), optional
4093
+ :param _request_auth: set to override the auth_settings for an a single
4094
+ request; this effectively ignores the
4095
+ authentication in the spec for a single request.
4096
+ :type _request_auth: dict, optional
4097
+ :param _content_type: force content-type for the request.
4098
+ :type _content_type: str, Optional
4099
+ :param _headers: set to override the headers for a single
4100
+ request; this effectively ignores the headers
4101
+ in the spec for a single request.
4102
+ :type _headers: dict, optional
4103
+ :param _host_index: set to override the host_index for a single
4104
+ request; this effectively ignores the host_index
4105
+ in the spec for a single request.
4106
+ :type _host_index: int, optional
4107
+ :return: Returns the result object.
4108
+ """ # noqa: E501
4109
+
4110
+ _param = self._get_notifications_timeline_serialize(
4111
+ path_query_id=path_query_id,
4112
+ variables=variables,
4113
+ features=features,
4114
+ _request_auth=_request_auth,
4115
+ _content_type=_content_type,
4116
+ _headers=_headers,
4117
+ _host_index=_host_index
4118
+ )
4119
+
4120
+ _response_types_map: Dict[str, Optional[str]] = {
4121
+ '200': "NotificationsTimelineResponse",
4122
+ }
4123
+ response_data = self.api_client.call_api(
4124
+ *_param,
4125
+ _request_timeout=_request_timeout
4126
+ )
4127
+ return response_data.response
4128
+
4129
+
4130
+ def _get_notifications_timeline_serialize(
4131
+ self,
4132
+ path_query_id,
4133
+ variables,
4134
+ features,
4135
+ _request_auth,
4136
+ _content_type,
4137
+ _headers,
4138
+ _host_index,
4139
+ ) -> RequestSerialized:
4140
+
4141
+ _host = None
4142
+
4143
+ _collection_formats: Dict[str, str] = {
4144
+ }
4145
+
4146
+ _path_params: Dict[str, str] = {}
4147
+ _query_params: List[Tuple[str, str]] = []
4148
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4149
+ _form_params: List[Tuple[str, str]] = []
4150
+ _files: Dict[
4151
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4152
+ ] = {}
4153
+ _body_params: Optional[bytes] = None
4154
+
4155
+ # process the path parameters
4156
+ if path_query_id is not None:
4157
+ _path_params['pathQueryId'] = path_query_id
4158
+ # process the query parameters
4159
+ if variables is not None:
4160
+
4161
+ _query_params.append(('variables', variables))
4162
+
4163
+ if features is not None:
4164
+
4165
+ _query_params.append(('features', features))
4166
+
4167
+ # process the header parameters
4168
+ # process the form parameters
4169
+ # process the body parameter
4170
+
4171
+
4172
+ # set the HTTP header `Accept`
4173
+ if 'Accept' not in _header_params:
4174
+ _header_params['Accept'] = self.api_client.select_header_accept(
4175
+ [
4176
+ 'application/json'
4177
+ ]
4178
+ )
4179
+
4180
+
4181
+ # authentication setting
4182
+ _auth_settings: List[str] = [
4183
+ 'Accept',
4184
+ 'ClientLanguage',
4185
+ 'Priority',
4186
+ 'Referer',
4187
+ 'SecFetchDest',
4188
+ 'SecChUaPlatform',
4189
+ 'SecFetchMode',
4190
+ 'CsrfToken',
4191
+ 'ClientUuid',
4192
+ 'BearerAuth',
4193
+ 'GuestToken',
4194
+ 'SecChUa',
4195
+ 'CookieGt0',
4196
+ 'ClientTransactionId',
4197
+ 'ActiveUser',
4198
+ 'CookieCt0',
4199
+ 'UserAgent',
4200
+ 'AcceptLanguage',
4201
+ 'SecFetchSite',
4202
+ 'AuthType',
4203
+ 'CookieAuthToken',
4204
+ 'SecChUaMobile',
4205
+ 'AcceptEncoding'
4206
+ ]
4207
+
4208
+ return self.api_client.param_serialize(
4209
+ method='GET',
4210
+ resource_path='/graphql/{pathQueryId}/NotificationsTimeline',
4211
+ path_params=_path_params,
4212
+ query_params=_query_params,
4213
+ header_params=_header_params,
4214
+ body=_body_params,
4215
+ post_params=_form_params,
4216
+ files=_files,
4217
+ auth_settings=_auth_settings,
4218
+ collection_formats=_collection_formats,
4219
+ _host=_host,
4220
+ _request_auth=_request_auth
4221
+ )
4222
+
4223
+
4224
+
4225
+
4226
+ @validate_call
4227
+ def get_search_timeline(
4228
+ self,
4229
+ path_query_id: StrictStr,
4230
+ variables: StrictStr,
4231
+ features: StrictStr,
4232
+ _request_timeout: Union[
4233
+ None,
4234
+ Annotated[StrictFloat, Field(gt=0)],
4235
+ Tuple[
4236
+ Annotated[StrictFloat, Field(gt=0)],
4237
+ Annotated[StrictFloat, Field(gt=0)]
4238
+ ]
4239
+ ] = None,
4240
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4241
+ _content_type: Optional[StrictStr] = None,
4242
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4243
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4244
+ ) -> SearchTimelineResponse:
4245
+ """get_search_timeline
4246
+
4247
+ search tweet list. product:[Top, Latest, People, Photos, Videos]
4248
+
4249
+ :param path_query_id: (required)
4250
+ :type path_query_id: str
4251
+ :param variables: (required)
4252
+ :type variables: str
4253
+ :param features: (required)
4254
+ :type features: str
4255
+ :param _request_timeout: timeout setting for this request. If one
4256
+ number provided, it will be total request
4257
+ timeout. It can also be a pair (tuple) of
4258
+ (connection, read) timeouts.
4259
+ :type _request_timeout: int, tuple(int, int), optional
4260
+ :param _request_auth: set to override the auth_settings for an a single
4261
+ request; this effectively ignores the
4262
+ authentication in the spec for a single request.
4263
+ :type _request_auth: dict, optional
4264
+ :param _content_type: force content-type for the request.
4265
+ :type _content_type: str, Optional
4266
+ :param _headers: set to override the headers for a single
4267
+ request; this effectively ignores the headers
4268
+ in the spec for a single request.
4269
+ :type _headers: dict, optional
4270
+ :param _host_index: set to override the host_index for a single
4271
+ request; this effectively ignores the host_index
4272
+ in the spec for a single request.
4273
+ :type _host_index: int, optional
4274
+ :return: Returns the result object.
4275
+ """ # noqa: E501
4276
+
4277
+ _param = self._get_search_timeline_serialize(
4278
+ path_query_id=path_query_id,
4279
+ variables=variables,
4280
+ features=features,
4281
+ _request_auth=_request_auth,
4282
+ _content_type=_content_type,
4283
+ _headers=_headers,
4284
+ _host_index=_host_index
4285
+ )
4286
+
4287
+ _response_types_map: Dict[str, Optional[str]] = {
4288
+ '200': "SearchTimelineResponse",
4289
+ }
4290
+ response_data = self.api_client.call_api(
4291
+ *_param,
4292
+ _request_timeout=_request_timeout
4293
+ )
4294
+ response_data.read()
4295
+ return self.api_client.response_deserialize(
4296
+ response_data=response_data,
4297
+ response_types_map=_response_types_map,
4298
+ ).data
4299
+
4300
+
4301
+ @validate_call
4302
+ def get_search_timeline_with_http_info(
4303
+ self,
4304
+ path_query_id: StrictStr,
4305
+ variables: StrictStr,
4306
+ features: StrictStr,
4307
+ _request_timeout: Union[
4308
+ None,
4309
+ Annotated[StrictFloat, Field(gt=0)],
4310
+ Tuple[
4311
+ Annotated[StrictFloat, Field(gt=0)],
4312
+ Annotated[StrictFloat, Field(gt=0)]
4313
+ ]
4314
+ ] = None,
4315
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4316
+ _content_type: Optional[StrictStr] = None,
4317
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4318
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4319
+ ) -> ApiResponse[SearchTimelineResponse]:
4320
+ """get_search_timeline
4321
+
4322
+ search tweet list. product:[Top, Latest, People, Photos, Videos]
4323
+
4324
+ :param path_query_id: (required)
4325
+ :type path_query_id: str
4326
+ :param variables: (required)
4327
+ :type variables: str
4328
+ :param features: (required)
4329
+ :type features: str
4330
+ :param _request_timeout: timeout setting for this request. If one
4331
+ number provided, it will be total request
4332
+ timeout. It can also be a pair (tuple) of
4333
+ (connection, read) timeouts.
4334
+ :type _request_timeout: int, tuple(int, int), optional
4335
+ :param _request_auth: set to override the auth_settings for an a single
4336
+ request; this effectively ignores the
4337
+ authentication in the spec for a single request.
4338
+ :type _request_auth: dict, optional
4339
+ :param _content_type: force content-type for the request.
4340
+ :type _content_type: str, Optional
4341
+ :param _headers: set to override the headers for a single
4342
+ request; this effectively ignores the headers
4343
+ in the spec for a single request.
4344
+ :type _headers: dict, optional
4345
+ :param _host_index: set to override the host_index for a single
4346
+ request; this effectively ignores the host_index
4347
+ in the spec for a single request.
4348
+ :type _host_index: int, optional
4349
+ :return: Returns the result object.
4350
+ """ # noqa: E501
4351
+
4352
+ _param = self._get_search_timeline_serialize(
4353
+ path_query_id=path_query_id,
4354
+ variables=variables,
4355
+ features=features,
4356
+ _request_auth=_request_auth,
4357
+ _content_type=_content_type,
4358
+ _headers=_headers,
4359
+ _host_index=_host_index
4360
+ )
4361
+
4362
+ _response_types_map: Dict[str, Optional[str]] = {
4363
+ '200': "SearchTimelineResponse",
4364
+ }
4365
+ response_data = self.api_client.call_api(
4366
+ *_param,
4367
+ _request_timeout=_request_timeout
4368
+ )
4369
+ response_data.read()
4370
+ return self.api_client.response_deserialize(
4371
+ response_data=response_data,
4372
+ response_types_map=_response_types_map,
4373
+ )
4374
+
4375
+
4376
+ @validate_call
4377
+ def get_search_timeline_without_preload_content(
4378
+ self,
4379
+ path_query_id: StrictStr,
4380
+ variables: StrictStr,
4381
+ features: StrictStr,
4382
+ _request_timeout: Union[
4383
+ None,
4384
+ Annotated[StrictFloat, Field(gt=0)],
4385
+ Tuple[
4386
+ Annotated[StrictFloat, Field(gt=0)],
4387
+ Annotated[StrictFloat, Field(gt=0)]
4388
+ ]
4389
+ ] = None,
4390
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4391
+ _content_type: Optional[StrictStr] = None,
4392
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4393
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4394
+ ) -> RESTResponseType:
4395
+ """get_search_timeline
4396
+
4397
+ search tweet list. product:[Top, Latest, People, Photos, Videos]
4398
+
4399
+ :param path_query_id: (required)
4400
+ :type path_query_id: str
4401
+ :param variables: (required)
4402
+ :type variables: str
4403
+ :param features: (required)
4404
+ :type features: str
4405
+ :param _request_timeout: timeout setting for this request. If one
4406
+ number provided, it will be total request
4407
+ timeout. It can also be a pair (tuple) of
4408
+ (connection, read) timeouts.
4409
+ :type _request_timeout: int, tuple(int, int), optional
4410
+ :param _request_auth: set to override the auth_settings for an a single
4411
+ request; this effectively ignores the
4412
+ authentication in the spec for a single request.
4413
+ :type _request_auth: dict, optional
4414
+ :param _content_type: force content-type for the request.
4415
+ :type _content_type: str, Optional
4416
+ :param _headers: set to override the headers for a single
4417
+ request; this effectively ignores the headers
4418
+ in the spec for a single request.
4419
+ :type _headers: dict, optional
4420
+ :param _host_index: set to override the host_index for a single
4421
+ request; this effectively ignores the host_index
4422
+ in the spec for a single request.
4423
+ :type _host_index: int, optional
4424
+ :return: Returns the result object.
4425
+ """ # noqa: E501
4426
+
4427
+ _param = self._get_search_timeline_serialize(
3048
4428
  path_query_id=path_query_id,
3049
4429
  variables=variables,
3050
4430
  features=features,
@@ -3061,6 +4441,1592 @@ class TweetApi:
3061
4441
  *_param,
3062
4442
  _request_timeout=_request_timeout
3063
4443
  )
4444
+ return response_data.response
4445
+
4446
+
4447
+ def _get_search_timeline_serialize(
4448
+ self,
4449
+ path_query_id,
4450
+ variables,
4451
+ features,
4452
+ _request_auth,
4453
+ _content_type,
4454
+ _headers,
4455
+ _host_index,
4456
+ ) -> RequestSerialized:
4457
+
4458
+ _host = None
4459
+
4460
+ _collection_formats: Dict[str, str] = {
4461
+ }
4462
+
4463
+ _path_params: Dict[str, str] = {}
4464
+ _query_params: List[Tuple[str, str]] = []
4465
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4466
+ _form_params: List[Tuple[str, str]] = []
4467
+ _files: Dict[
4468
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4469
+ ] = {}
4470
+ _body_params: Optional[bytes] = None
4471
+
4472
+ # process the path parameters
4473
+ if path_query_id is not None:
4474
+ _path_params['pathQueryId'] = path_query_id
4475
+ # process the query parameters
4476
+ if variables is not None:
4477
+
4478
+ _query_params.append(('variables', variables))
4479
+
4480
+ if features is not None:
4481
+
4482
+ _query_params.append(('features', features))
4483
+
4484
+ # process the header parameters
4485
+ # process the form parameters
4486
+ # process the body parameter
4487
+
4488
+
4489
+ # set the HTTP header `Accept`
4490
+ if 'Accept' not in _header_params:
4491
+ _header_params['Accept'] = self.api_client.select_header_accept(
4492
+ [
4493
+ 'application/json'
4494
+ ]
4495
+ )
4496
+
4497
+
4498
+ # authentication setting
4499
+ _auth_settings: List[str] = [
4500
+ 'Accept',
4501
+ 'ClientLanguage',
4502
+ 'Priority',
4503
+ 'Referer',
4504
+ 'SecFetchDest',
4505
+ 'SecChUaPlatform',
4506
+ 'SecFetchMode',
4507
+ 'CsrfToken',
4508
+ 'ClientUuid',
4509
+ 'BearerAuth',
4510
+ 'GuestToken',
4511
+ 'SecChUa',
4512
+ 'CookieGt0',
4513
+ 'ClientTransactionId',
4514
+ 'ActiveUser',
4515
+ 'CookieCt0',
4516
+ 'UserAgent',
4517
+ 'AcceptLanguage',
4518
+ 'SecFetchSite',
4519
+ 'AuthType',
4520
+ 'CookieAuthToken',
4521
+ 'SecChUaMobile',
4522
+ 'AcceptEncoding'
4523
+ ]
4524
+
4525
+ return self.api_client.param_serialize(
4526
+ method='GET',
4527
+ resource_path='/graphql/{pathQueryId}/SearchTimeline',
4528
+ path_params=_path_params,
4529
+ query_params=_query_params,
4530
+ header_params=_header_params,
4531
+ body=_body_params,
4532
+ post_params=_form_params,
4533
+ files=_files,
4534
+ auth_settings=_auth_settings,
4535
+ collection_formats=_collection_formats,
4536
+ _host=_host,
4537
+ _request_auth=_request_auth
4538
+ )
4539
+
4540
+
4541
+
4542
+
4543
+ @validate_call
4544
+ def get_tweet_detail(
4545
+ self,
4546
+ path_query_id: StrictStr,
4547
+ variables: StrictStr,
4548
+ features: StrictStr,
4549
+ field_toggles: StrictStr,
4550
+ _request_timeout: Union[
4551
+ None,
4552
+ Annotated[StrictFloat, Field(gt=0)],
4553
+ Tuple[
4554
+ Annotated[StrictFloat, Field(gt=0)],
4555
+ Annotated[StrictFloat, Field(gt=0)]
4556
+ ]
4557
+ ] = None,
4558
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4559
+ _content_type: Optional[StrictStr] = None,
4560
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4561
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4562
+ ) -> TweetDetailResponse:
4563
+ """get_tweet_detail
4564
+
4565
+ get TweetDetail
4566
+
4567
+ :param path_query_id: (required)
4568
+ :type path_query_id: str
4569
+ :param variables: (required)
4570
+ :type variables: str
4571
+ :param features: (required)
4572
+ :type features: str
4573
+ :param field_toggles: (required)
4574
+ :type field_toggles: str
4575
+ :param _request_timeout: timeout setting for this request. If one
4576
+ number provided, it will be total request
4577
+ timeout. It can also be a pair (tuple) of
4578
+ (connection, read) timeouts.
4579
+ :type _request_timeout: int, tuple(int, int), optional
4580
+ :param _request_auth: set to override the auth_settings for an a single
4581
+ request; this effectively ignores the
4582
+ authentication in the spec for a single request.
4583
+ :type _request_auth: dict, optional
4584
+ :param _content_type: force content-type for the request.
4585
+ :type _content_type: str, Optional
4586
+ :param _headers: set to override the headers for a single
4587
+ request; this effectively ignores the headers
4588
+ in the spec for a single request.
4589
+ :type _headers: dict, optional
4590
+ :param _host_index: set to override the host_index for a single
4591
+ request; this effectively ignores the host_index
4592
+ in the spec for a single request.
4593
+ :type _host_index: int, optional
4594
+ :return: Returns the result object.
4595
+ """ # noqa: E501
4596
+
4597
+ _param = self._get_tweet_detail_serialize(
4598
+ path_query_id=path_query_id,
4599
+ variables=variables,
4600
+ features=features,
4601
+ field_toggles=field_toggles,
4602
+ _request_auth=_request_auth,
4603
+ _content_type=_content_type,
4604
+ _headers=_headers,
4605
+ _host_index=_host_index
4606
+ )
4607
+
4608
+ _response_types_map: Dict[str, Optional[str]] = {
4609
+ '200': "TweetDetailResponse",
4610
+ }
4611
+ response_data = self.api_client.call_api(
4612
+ *_param,
4613
+ _request_timeout=_request_timeout
4614
+ )
4615
+ response_data.read()
4616
+ return self.api_client.response_deserialize(
4617
+ response_data=response_data,
4618
+ response_types_map=_response_types_map,
4619
+ ).data
4620
+
4621
+
4622
+ @validate_call
4623
+ def get_tweet_detail_with_http_info(
4624
+ self,
4625
+ path_query_id: StrictStr,
4626
+ variables: StrictStr,
4627
+ features: StrictStr,
4628
+ field_toggles: StrictStr,
4629
+ _request_timeout: Union[
4630
+ None,
4631
+ Annotated[StrictFloat, Field(gt=0)],
4632
+ Tuple[
4633
+ Annotated[StrictFloat, Field(gt=0)],
4634
+ Annotated[StrictFloat, Field(gt=0)]
4635
+ ]
4636
+ ] = None,
4637
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4638
+ _content_type: Optional[StrictStr] = None,
4639
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4640
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4641
+ ) -> ApiResponse[TweetDetailResponse]:
4642
+ """get_tweet_detail
4643
+
4644
+ get TweetDetail
4645
+
4646
+ :param path_query_id: (required)
4647
+ :type path_query_id: str
4648
+ :param variables: (required)
4649
+ :type variables: str
4650
+ :param features: (required)
4651
+ :type features: str
4652
+ :param field_toggles: (required)
4653
+ :type field_toggles: str
4654
+ :param _request_timeout: timeout setting for this request. If one
4655
+ number provided, it will be total request
4656
+ timeout. It can also be a pair (tuple) of
4657
+ (connection, read) timeouts.
4658
+ :type _request_timeout: int, tuple(int, int), optional
4659
+ :param _request_auth: set to override the auth_settings for an a single
4660
+ request; this effectively ignores the
4661
+ authentication in the spec for a single request.
4662
+ :type _request_auth: dict, optional
4663
+ :param _content_type: force content-type for the request.
4664
+ :type _content_type: str, Optional
4665
+ :param _headers: set to override the headers for a single
4666
+ request; this effectively ignores the headers
4667
+ in the spec for a single request.
4668
+ :type _headers: dict, optional
4669
+ :param _host_index: set to override the host_index for a single
4670
+ request; this effectively ignores the host_index
4671
+ in the spec for a single request.
4672
+ :type _host_index: int, optional
4673
+ :return: Returns the result object.
4674
+ """ # noqa: E501
4675
+
4676
+ _param = self._get_tweet_detail_serialize(
4677
+ path_query_id=path_query_id,
4678
+ variables=variables,
4679
+ features=features,
4680
+ field_toggles=field_toggles,
4681
+ _request_auth=_request_auth,
4682
+ _content_type=_content_type,
4683
+ _headers=_headers,
4684
+ _host_index=_host_index
4685
+ )
4686
+
4687
+ _response_types_map: Dict[str, Optional[str]] = {
4688
+ '200': "TweetDetailResponse",
4689
+ }
4690
+ response_data = self.api_client.call_api(
4691
+ *_param,
4692
+ _request_timeout=_request_timeout
4693
+ )
4694
+ response_data.read()
4695
+ return self.api_client.response_deserialize(
4696
+ response_data=response_data,
4697
+ response_types_map=_response_types_map,
4698
+ )
4699
+
4700
+
4701
+ @validate_call
4702
+ def get_tweet_detail_without_preload_content(
4703
+ self,
4704
+ path_query_id: StrictStr,
4705
+ variables: StrictStr,
4706
+ features: StrictStr,
4707
+ field_toggles: StrictStr,
4708
+ _request_timeout: Union[
4709
+ None,
4710
+ Annotated[StrictFloat, Field(gt=0)],
4711
+ Tuple[
4712
+ Annotated[StrictFloat, Field(gt=0)],
4713
+ Annotated[StrictFloat, Field(gt=0)]
4714
+ ]
4715
+ ] = None,
4716
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4717
+ _content_type: Optional[StrictStr] = None,
4718
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4719
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4720
+ ) -> RESTResponseType:
4721
+ """get_tweet_detail
4722
+
4723
+ get TweetDetail
4724
+
4725
+ :param path_query_id: (required)
4726
+ :type path_query_id: str
4727
+ :param variables: (required)
4728
+ :type variables: str
4729
+ :param features: (required)
4730
+ :type features: str
4731
+ :param field_toggles: (required)
4732
+ :type field_toggles: str
4733
+ :param _request_timeout: timeout setting for this request. If one
4734
+ number provided, it will be total request
4735
+ timeout. It can also be a pair (tuple) of
4736
+ (connection, read) timeouts.
4737
+ :type _request_timeout: int, tuple(int, int), optional
4738
+ :param _request_auth: set to override the auth_settings for an a single
4739
+ request; this effectively ignores the
4740
+ authentication in the spec for a single request.
4741
+ :type _request_auth: dict, optional
4742
+ :param _content_type: force content-type for the request.
4743
+ :type _content_type: str, Optional
4744
+ :param _headers: set to override the headers for a single
4745
+ request; this effectively ignores the headers
4746
+ in the spec for a single request.
4747
+ :type _headers: dict, optional
4748
+ :param _host_index: set to override the host_index for a single
4749
+ request; this effectively ignores the host_index
4750
+ in the spec for a single request.
4751
+ :type _host_index: int, optional
4752
+ :return: Returns the result object.
4753
+ """ # noqa: E501
4754
+
4755
+ _param = self._get_tweet_detail_serialize(
4756
+ path_query_id=path_query_id,
4757
+ variables=variables,
4758
+ features=features,
4759
+ field_toggles=field_toggles,
4760
+ _request_auth=_request_auth,
4761
+ _content_type=_content_type,
4762
+ _headers=_headers,
4763
+ _host_index=_host_index
4764
+ )
4765
+
4766
+ _response_types_map: Dict[str, Optional[str]] = {
4767
+ '200': "TweetDetailResponse",
4768
+ }
4769
+ response_data = self.api_client.call_api(
4770
+ *_param,
4771
+ _request_timeout=_request_timeout
4772
+ )
4773
+ return response_data.response
4774
+
4775
+
4776
+ def _get_tweet_detail_serialize(
4777
+ self,
4778
+ path_query_id,
4779
+ variables,
4780
+ features,
4781
+ field_toggles,
4782
+ _request_auth,
4783
+ _content_type,
4784
+ _headers,
4785
+ _host_index,
4786
+ ) -> RequestSerialized:
4787
+
4788
+ _host = None
4789
+
4790
+ _collection_formats: Dict[str, str] = {
4791
+ }
4792
+
4793
+ _path_params: Dict[str, str] = {}
4794
+ _query_params: List[Tuple[str, str]] = []
4795
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4796
+ _form_params: List[Tuple[str, str]] = []
4797
+ _files: Dict[
4798
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4799
+ ] = {}
4800
+ _body_params: Optional[bytes] = None
4801
+
4802
+ # process the path parameters
4803
+ if path_query_id is not None:
4804
+ _path_params['pathQueryId'] = path_query_id
4805
+ # process the query parameters
4806
+ if variables is not None:
4807
+
4808
+ _query_params.append(('variables', variables))
4809
+
4810
+ if features is not None:
4811
+
4812
+ _query_params.append(('features', features))
4813
+
4814
+ if field_toggles is not None:
4815
+
4816
+ _query_params.append(('fieldToggles', field_toggles))
4817
+
4818
+ # process the header parameters
4819
+ # process the form parameters
4820
+ # process the body parameter
4821
+
4822
+
4823
+ # set the HTTP header `Accept`
4824
+ if 'Accept' not in _header_params:
4825
+ _header_params['Accept'] = self.api_client.select_header_accept(
4826
+ [
4827
+ 'application/json'
4828
+ ]
4829
+ )
4830
+
4831
+
4832
+ # authentication setting
4833
+ _auth_settings: List[str] = [
4834
+ 'Accept',
4835
+ 'ClientLanguage',
4836
+ 'Priority',
4837
+ 'Referer',
4838
+ 'SecFetchDest',
4839
+ 'SecChUaPlatform',
4840
+ 'SecFetchMode',
4841
+ 'CsrfToken',
4842
+ 'ClientUuid',
4843
+ 'BearerAuth',
4844
+ 'GuestToken',
4845
+ 'SecChUa',
4846
+ 'CookieGt0',
4847
+ 'ClientTransactionId',
4848
+ 'ActiveUser',
4849
+ 'CookieCt0',
4850
+ 'UserAgent',
4851
+ 'AcceptLanguage',
4852
+ 'SecFetchSite',
4853
+ 'AuthType',
4854
+ 'CookieAuthToken',
4855
+ 'SecChUaMobile',
4856
+ 'AcceptEncoding'
4857
+ ]
4858
+
4859
+ return self.api_client.param_serialize(
4860
+ method='GET',
4861
+ resource_path='/graphql/{pathQueryId}/TweetDetail',
4862
+ path_params=_path_params,
4863
+ query_params=_query_params,
4864
+ header_params=_header_params,
4865
+ body=_body_params,
4866
+ post_params=_form_params,
4867
+ files=_files,
4868
+ auth_settings=_auth_settings,
4869
+ collection_formats=_collection_formats,
4870
+ _host=_host,
4871
+ _request_auth=_request_auth
4872
+ )
4873
+
4874
+
4875
+
4876
+
4877
+ @validate_call
4878
+ def get_user_highlights_tweets(
4879
+ self,
4880
+ path_query_id: StrictStr,
4881
+ variables: StrictStr,
4882
+ features: StrictStr,
4883
+ field_toggles: StrictStr,
4884
+ _request_timeout: Union[
4885
+ None,
4886
+ Annotated[StrictFloat, Field(gt=0)],
4887
+ Tuple[
4888
+ Annotated[StrictFloat, Field(gt=0)],
4889
+ Annotated[StrictFloat, Field(gt=0)]
4890
+ ]
4891
+ ] = None,
4892
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4893
+ _content_type: Optional[StrictStr] = None,
4894
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4895
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4896
+ ) -> UserHighlightsTweetsResponse:
4897
+ """get_user_highlights_tweets
4898
+
4899
+ get user highlights tweets
4900
+
4901
+ :param path_query_id: (required)
4902
+ :type path_query_id: str
4903
+ :param variables: (required)
4904
+ :type variables: str
4905
+ :param features: (required)
4906
+ :type features: str
4907
+ :param field_toggles: (required)
4908
+ :type field_toggles: str
4909
+ :param _request_timeout: timeout setting for this request. If one
4910
+ number provided, it will be total request
4911
+ timeout. It can also be a pair (tuple) of
4912
+ (connection, read) timeouts.
4913
+ :type _request_timeout: int, tuple(int, int), optional
4914
+ :param _request_auth: set to override the auth_settings for an a single
4915
+ request; this effectively ignores the
4916
+ authentication in the spec for a single request.
4917
+ :type _request_auth: dict, optional
4918
+ :param _content_type: force content-type for the request.
4919
+ :type _content_type: str, Optional
4920
+ :param _headers: set to override the headers for a single
4921
+ request; this effectively ignores the headers
4922
+ in the spec for a single request.
4923
+ :type _headers: dict, optional
4924
+ :param _host_index: set to override the host_index for a single
4925
+ request; this effectively ignores the host_index
4926
+ in the spec for a single request.
4927
+ :type _host_index: int, optional
4928
+ :return: Returns the result object.
4929
+ """ # noqa: E501
4930
+
4931
+ _param = self._get_user_highlights_tweets_serialize(
4932
+ path_query_id=path_query_id,
4933
+ variables=variables,
4934
+ features=features,
4935
+ field_toggles=field_toggles,
4936
+ _request_auth=_request_auth,
4937
+ _content_type=_content_type,
4938
+ _headers=_headers,
4939
+ _host_index=_host_index
4940
+ )
4941
+
4942
+ _response_types_map: Dict[str, Optional[str]] = {
4943
+ '200': "UserHighlightsTweetsResponse",
4944
+ }
4945
+ response_data = self.api_client.call_api(
4946
+ *_param,
4947
+ _request_timeout=_request_timeout
4948
+ )
4949
+ response_data.read()
4950
+ return self.api_client.response_deserialize(
4951
+ response_data=response_data,
4952
+ response_types_map=_response_types_map,
4953
+ ).data
4954
+
4955
+
4956
+ @validate_call
4957
+ def get_user_highlights_tweets_with_http_info(
4958
+ self,
4959
+ path_query_id: StrictStr,
4960
+ variables: StrictStr,
4961
+ features: StrictStr,
4962
+ field_toggles: StrictStr,
4963
+ _request_timeout: Union[
4964
+ None,
4965
+ Annotated[StrictFloat, Field(gt=0)],
4966
+ Tuple[
4967
+ Annotated[StrictFloat, Field(gt=0)],
4968
+ Annotated[StrictFloat, Field(gt=0)]
4969
+ ]
4970
+ ] = None,
4971
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4972
+ _content_type: Optional[StrictStr] = None,
4973
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4974
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4975
+ ) -> ApiResponse[UserHighlightsTweetsResponse]:
4976
+ """get_user_highlights_tweets
4977
+
4978
+ get user highlights tweets
4979
+
4980
+ :param path_query_id: (required)
4981
+ :type path_query_id: str
4982
+ :param variables: (required)
4983
+ :type variables: str
4984
+ :param features: (required)
4985
+ :type features: str
4986
+ :param field_toggles: (required)
4987
+ :type field_toggles: str
4988
+ :param _request_timeout: timeout setting for this request. If one
4989
+ number provided, it will be total request
4990
+ timeout. It can also be a pair (tuple) of
4991
+ (connection, read) timeouts.
4992
+ :type _request_timeout: int, tuple(int, int), optional
4993
+ :param _request_auth: set to override the auth_settings for an a single
4994
+ request; this effectively ignores the
4995
+ authentication in the spec for a single request.
4996
+ :type _request_auth: dict, optional
4997
+ :param _content_type: force content-type for the request.
4998
+ :type _content_type: str, Optional
4999
+ :param _headers: set to override the headers for a single
5000
+ request; this effectively ignores the headers
5001
+ in the spec for a single request.
5002
+ :type _headers: dict, optional
5003
+ :param _host_index: set to override the host_index for a single
5004
+ request; this effectively ignores the host_index
5005
+ in the spec for a single request.
5006
+ :type _host_index: int, optional
5007
+ :return: Returns the result object.
5008
+ """ # noqa: E501
5009
+
5010
+ _param = self._get_user_highlights_tweets_serialize(
5011
+ path_query_id=path_query_id,
5012
+ variables=variables,
5013
+ features=features,
5014
+ field_toggles=field_toggles,
5015
+ _request_auth=_request_auth,
5016
+ _content_type=_content_type,
5017
+ _headers=_headers,
5018
+ _host_index=_host_index
5019
+ )
5020
+
5021
+ _response_types_map: Dict[str, Optional[str]] = {
5022
+ '200': "UserHighlightsTweetsResponse",
5023
+ }
5024
+ response_data = self.api_client.call_api(
5025
+ *_param,
5026
+ _request_timeout=_request_timeout
5027
+ )
5028
+ response_data.read()
5029
+ return self.api_client.response_deserialize(
5030
+ response_data=response_data,
5031
+ response_types_map=_response_types_map,
5032
+ )
5033
+
5034
+
5035
+ @validate_call
5036
+ def get_user_highlights_tweets_without_preload_content(
5037
+ self,
5038
+ path_query_id: StrictStr,
5039
+ variables: StrictStr,
5040
+ features: StrictStr,
5041
+ field_toggles: StrictStr,
5042
+ _request_timeout: Union[
5043
+ None,
5044
+ Annotated[StrictFloat, Field(gt=0)],
5045
+ Tuple[
5046
+ Annotated[StrictFloat, Field(gt=0)],
5047
+ Annotated[StrictFloat, Field(gt=0)]
5048
+ ]
5049
+ ] = None,
5050
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5051
+ _content_type: Optional[StrictStr] = None,
5052
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5053
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5054
+ ) -> RESTResponseType:
5055
+ """get_user_highlights_tweets
5056
+
5057
+ get user highlights tweets
5058
+
5059
+ :param path_query_id: (required)
5060
+ :type path_query_id: str
5061
+ :param variables: (required)
5062
+ :type variables: str
5063
+ :param features: (required)
5064
+ :type features: str
5065
+ :param field_toggles: (required)
5066
+ :type field_toggles: str
5067
+ :param _request_timeout: timeout setting for this request. If one
5068
+ number provided, it will be total request
5069
+ timeout. It can also be a pair (tuple) of
5070
+ (connection, read) timeouts.
5071
+ :type _request_timeout: int, tuple(int, int), optional
5072
+ :param _request_auth: set to override the auth_settings for an a single
5073
+ request; this effectively ignores the
5074
+ authentication in the spec for a single request.
5075
+ :type _request_auth: dict, optional
5076
+ :param _content_type: force content-type for the request.
5077
+ :type _content_type: str, Optional
5078
+ :param _headers: set to override the headers for a single
5079
+ request; this effectively ignores the headers
5080
+ in the spec for a single request.
5081
+ :type _headers: dict, optional
5082
+ :param _host_index: set to override the host_index for a single
5083
+ request; this effectively ignores the host_index
5084
+ in the spec for a single request.
5085
+ :type _host_index: int, optional
5086
+ :return: Returns the result object.
5087
+ """ # noqa: E501
5088
+
5089
+ _param = self._get_user_highlights_tweets_serialize(
5090
+ path_query_id=path_query_id,
5091
+ variables=variables,
5092
+ features=features,
5093
+ field_toggles=field_toggles,
5094
+ _request_auth=_request_auth,
5095
+ _content_type=_content_type,
5096
+ _headers=_headers,
5097
+ _host_index=_host_index
5098
+ )
5099
+
5100
+ _response_types_map: Dict[str, Optional[str]] = {
5101
+ '200': "UserHighlightsTweetsResponse",
5102
+ }
5103
+ response_data = self.api_client.call_api(
5104
+ *_param,
5105
+ _request_timeout=_request_timeout
5106
+ )
5107
+ return response_data.response
5108
+
5109
+
5110
+ def _get_user_highlights_tweets_serialize(
5111
+ self,
5112
+ path_query_id,
5113
+ variables,
5114
+ features,
5115
+ field_toggles,
5116
+ _request_auth,
5117
+ _content_type,
5118
+ _headers,
5119
+ _host_index,
5120
+ ) -> RequestSerialized:
5121
+
5122
+ _host = None
5123
+
5124
+ _collection_formats: Dict[str, str] = {
5125
+ }
5126
+
5127
+ _path_params: Dict[str, str] = {}
5128
+ _query_params: List[Tuple[str, str]] = []
5129
+ _header_params: Dict[str, Optional[str]] = _headers or {}
5130
+ _form_params: List[Tuple[str, str]] = []
5131
+ _files: Dict[
5132
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5133
+ ] = {}
5134
+ _body_params: Optional[bytes] = None
5135
+
5136
+ # process the path parameters
5137
+ if path_query_id is not None:
5138
+ _path_params['pathQueryId'] = path_query_id
5139
+ # process the query parameters
5140
+ if variables is not None:
5141
+
5142
+ _query_params.append(('variables', variables))
5143
+
5144
+ if features is not None:
5145
+
5146
+ _query_params.append(('features', features))
5147
+
5148
+ if field_toggles is not None:
5149
+
5150
+ _query_params.append(('fieldToggles', field_toggles))
5151
+
5152
+ # process the header parameters
5153
+ # process the form parameters
5154
+ # process the body parameter
5155
+
5156
+
5157
+ # set the HTTP header `Accept`
5158
+ if 'Accept' not in _header_params:
5159
+ _header_params['Accept'] = self.api_client.select_header_accept(
5160
+ [
5161
+ 'application/json'
5162
+ ]
5163
+ )
5164
+
5165
+
5166
+ # authentication setting
5167
+ _auth_settings: List[str] = [
5168
+ 'Accept',
5169
+ 'ClientLanguage',
5170
+ 'Priority',
5171
+ 'Referer',
5172
+ 'SecFetchDest',
5173
+ 'SecChUaPlatform',
5174
+ 'SecFetchMode',
5175
+ 'CsrfToken',
5176
+ 'ClientUuid',
5177
+ 'BearerAuth',
5178
+ 'GuestToken',
5179
+ 'SecChUa',
5180
+ 'CookieGt0',
5181
+ 'ClientTransactionId',
5182
+ 'ActiveUser',
5183
+ 'CookieCt0',
5184
+ 'UserAgent',
5185
+ 'AcceptLanguage',
5186
+ 'SecFetchSite',
5187
+ 'AuthType',
5188
+ 'CookieAuthToken',
5189
+ 'SecChUaMobile',
5190
+ 'AcceptEncoding'
5191
+ ]
5192
+
5193
+ return self.api_client.param_serialize(
5194
+ method='GET',
5195
+ resource_path='/graphql/{pathQueryId}/UserHighlightsTweets',
5196
+ path_params=_path_params,
5197
+ query_params=_query_params,
5198
+ header_params=_header_params,
5199
+ body=_body_params,
5200
+ post_params=_form_params,
5201
+ files=_files,
5202
+ auth_settings=_auth_settings,
5203
+ collection_formats=_collection_formats,
5204
+ _host=_host,
5205
+ _request_auth=_request_auth
5206
+ )
5207
+
5208
+
5209
+
5210
+
5211
+ @validate_call
5212
+ def get_user_media(
5213
+ self,
5214
+ path_query_id: StrictStr,
5215
+ variables: StrictStr,
5216
+ features: StrictStr,
5217
+ field_toggles: StrictStr,
5218
+ _request_timeout: Union[
5219
+ None,
5220
+ Annotated[StrictFloat, Field(gt=0)],
5221
+ Tuple[
5222
+ Annotated[StrictFloat, Field(gt=0)],
5223
+ Annotated[StrictFloat, Field(gt=0)]
5224
+ ]
5225
+ ] = None,
5226
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5227
+ _content_type: Optional[StrictStr] = None,
5228
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5229
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5230
+ ) -> UserTweetsResponse:
5231
+ """get_user_media
5232
+
5233
+ get user media tweets
5234
+
5235
+ :param path_query_id: (required)
5236
+ :type path_query_id: str
5237
+ :param variables: (required)
5238
+ :type variables: str
5239
+ :param features: (required)
5240
+ :type features: str
5241
+ :param field_toggles: (required)
5242
+ :type field_toggles: str
5243
+ :param _request_timeout: timeout setting for this request. If one
5244
+ number provided, it will be total request
5245
+ timeout. It can also be a pair (tuple) of
5246
+ (connection, read) timeouts.
5247
+ :type _request_timeout: int, tuple(int, int), optional
5248
+ :param _request_auth: set to override the auth_settings for an a single
5249
+ request; this effectively ignores the
5250
+ authentication in the spec for a single request.
5251
+ :type _request_auth: dict, optional
5252
+ :param _content_type: force content-type for the request.
5253
+ :type _content_type: str, Optional
5254
+ :param _headers: set to override the headers for a single
5255
+ request; this effectively ignores the headers
5256
+ in the spec for a single request.
5257
+ :type _headers: dict, optional
5258
+ :param _host_index: set to override the host_index for a single
5259
+ request; this effectively ignores the host_index
5260
+ in the spec for a single request.
5261
+ :type _host_index: int, optional
5262
+ :return: Returns the result object.
5263
+ """ # noqa: E501
5264
+
5265
+ _param = self._get_user_media_serialize(
5266
+ path_query_id=path_query_id,
5267
+ variables=variables,
5268
+ features=features,
5269
+ field_toggles=field_toggles,
5270
+ _request_auth=_request_auth,
5271
+ _content_type=_content_type,
5272
+ _headers=_headers,
5273
+ _host_index=_host_index
5274
+ )
5275
+
5276
+ _response_types_map: Dict[str, Optional[str]] = {
5277
+ '200': "UserTweetsResponse",
5278
+ }
5279
+ response_data = self.api_client.call_api(
5280
+ *_param,
5281
+ _request_timeout=_request_timeout
5282
+ )
5283
+ response_data.read()
5284
+ return self.api_client.response_deserialize(
5285
+ response_data=response_data,
5286
+ response_types_map=_response_types_map,
5287
+ ).data
5288
+
5289
+
5290
+ @validate_call
5291
+ def get_user_media_with_http_info(
5292
+ self,
5293
+ path_query_id: StrictStr,
5294
+ variables: StrictStr,
5295
+ features: StrictStr,
5296
+ field_toggles: StrictStr,
5297
+ _request_timeout: Union[
5298
+ None,
5299
+ Annotated[StrictFloat, Field(gt=0)],
5300
+ Tuple[
5301
+ Annotated[StrictFloat, Field(gt=0)],
5302
+ Annotated[StrictFloat, Field(gt=0)]
5303
+ ]
5304
+ ] = None,
5305
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5306
+ _content_type: Optional[StrictStr] = None,
5307
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5308
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5309
+ ) -> ApiResponse[UserTweetsResponse]:
5310
+ """get_user_media
5311
+
5312
+ get user media tweets
5313
+
5314
+ :param path_query_id: (required)
5315
+ :type path_query_id: str
5316
+ :param variables: (required)
5317
+ :type variables: str
5318
+ :param features: (required)
5319
+ :type features: str
5320
+ :param field_toggles: (required)
5321
+ :type field_toggles: str
5322
+ :param _request_timeout: timeout setting for this request. If one
5323
+ number provided, it will be total request
5324
+ timeout. It can also be a pair (tuple) of
5325
+ (connection, read) timeouts.
5326
+ :type _request_timeout: int, tuple(int, int), optional
5327
+ :param _request_auth: set to override the auth_settings for an a single
5328
+ request; this effectively ignores the
5329
+ authentication in the spec for a single request.
5330
+ :type _request_auth: dict, optional
5331
+ :param _content_type: force content-type for the request.
5332
+ :type _content_type: str, Optional
5333
+ :param _headers: set to override the headers for a single
5334
+ request; this effectively ignores the headers
5335
+ in the spec for a single request.
5336
+ :type _headers: dict, optional
5337
+ :param _host_index: set to override the host_index for a single
5338
+ request; this effectively ignores the host_index
5339
+ in the spec for a single request.
5340
+ :type _host_index: int, optional
5341
+ :return: Returns the result object.
5342
+ """ # noqa: E501
5343
+
5344
+ _param = self._get_user_media_serialize(
5345
+ path_query_id=path_query_id,
5346
+ variables=variables,
5347
+ features=features,
5348
+ field_toggles=field_toggles,
5349
+ _request_auth=_request_auth,
5350
+ _content_type=_content_type,
5351
+ _headers=_headers,
5352
+ _host_index=_host_index
5353
+ )
5354
+
5355
+ _response_types_map: Dict[str, Optional[str]] = {
5356
+ '200': "UserTweetsResponse",
5357
+ }
5358
+ response_data = self.api_client.call_api(
5359
+ *_param,
5360
+ _request_timeout=_request_timeout
5361
+ )
5362
+ response_data.read()
5363
+ return self.api_client.response_deserialize(
5364
+ response_data=response_data,
5365
+ response_types_map=_response_types_map,
5366
+ )
5367
+
5368
+
5369
+ @validate_call
5370
+ def get_user_media_without_preload_content(
5371
+ self,
5372
+ path_query_id: StrictStr,
5373
+ variables: StrictStr,
5374
+ features: StrictStr,
5375
+ field_toggles: StrictStr,
5376
+ _request_timeout: Union[
5377
+ None,
5378
+ Annotated[StrictFloat, Field(gt=0)],
5379
+ Tuple[
5380
+ Annotated[StrictFloat, Field(gt=0)],
5381
+ Annotated[StrictFloat, Field(gt=0)]
5382
+ ]
5383
+ ] = None,
5384
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5385
+ _content_type: Optional[StrictStr] = None,
5386
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5387
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5388
+ ) -> RESTResponseType:
5389
+ """get_user_media
5390
+
5391
+ get user media tweets
5392
+
5393
+ :param path_query_id: (required)
5394
+ :type path_query_id: str
5395
+ :param variables: (required)
5396
+ :type variables: str
5397
+ :param features: (required)
5398
+ :type features: str
5399
+ :param field_toggles: (required)
5400
+ :type field_toggles: str
5401
+ :param _request_timeout: timeout setting for this request. If one
5402
+ number provided, it will be total request
5403
+ timeout. It can also be a pair (tuple) of
5404
+ (connection, read) timeouts.
5405
+ :type _request_timeout: int, tuple(int, int), optional
5406
+ :param _request_auth: set to override the auth_settings for an a single
5407
+ request; this effectively ignores the
5408
+ authentication in the spec for a single request.
5409
+ :type _request_auth: dict, optional
5410
+ :param _content_type: force content-type for the request.
5411
+ :type _content_type: str, Optional
5412
+ :param _headers: set to override the headers for a single
5413
+ request; this effectively ignores the headers
5414
+ in the spec for a single request.
5415
+ :type _headers: dict, optional
5416
+ :param _host_index: set to override the host_index for a single
5417
+ request; this effectively ignores the host_index
5418
+ in the spec for a single request.
5419
+ :type _host_index: int, optional
5420
+ :return: Returns the result object.
5421
+ """ # noqa: E501
5422
+
5423
+ _param = self._get_user_media_serialize(
5424
+ path_query_id=path_query_id,
5425
+ variables=variables,
5426
+ features=features,
5427
+ field_toggles=field_toggles,
5428
+ _request_auth=_request_auth,
5429
+ _content_type=_content_type,
5430
+ _headers=_headers,
5431
+ _host_index=_host_index
5432
+ )
5433
+
5434
+ _response_types_map: Dict[str, Optional[str]] = {
5435
+ '200': "UserTweetsResponse",
5436
+ }
5437
+ response_data = self.api_client.call_api(
5438
+ *_param,
5439
+ _request_timeout=_request_timeout
5440
+ )
5441
+ return response_data.response
5442
+
5443
+
5444
+ def _get_user_media_serialize(
5445
+ self,
5446
+ path_query_id,
5447
+ variables,
5448
+ features,
5449
+ field_toggles,
5450
+ _request_auth,
5451
+ _content_type,
5452
+ _headers,
5453
+ _host_index,
5454
+ ) -> RequestSerialized:
5455
+
5456
+ _host = None
5457
+
5458
+ _collection_formats: Dict[str, str] = {
5459
+ }
5460
+
5461
+ _path_params: Dict[str, str] = {}
5462
+ _query_params: List[Tuple[str, str]] = []
5463
+ _header_params: Dict[str, Optional[str]] = _headers or {}
5464
+ _form_params: List[Tuple[str, str]] = []
5465
+ _files: Dict[
5466
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5467
+ ] = {}
5468
+ _body_params: Optional[bytes] = None
5469
+
5470
+ # process the path parameters
5471
+ if path_query_id is not None:
5472
+ _path_params['pathQueryId'] = path_query_id
5473
+ # process the query parameters
5474
+ if variables is not None:
5475
+
5476
+ _query_params.append(('variables', variables))
5477
+
5478
+ if features is not None:
5479
+
5480
+ _query_params.append(('features', features))
5481
+
5482
+ if field_toggles is not None:
5483
+
5484
+ _query_params.append(('fieldToggles', field_toggles))
5485
+
5486
+ # process the header parameters
5487
+ # process the form parameters
5488
+ # process the body parameter
5489
+
5490
+
5491
+ # set the HTTP header `Accept`
5492
+ if 'Accept' not in _header_params:
5493
+ _header_params['Accept'] = self.api_client.select_header_accept(
5494
+ [
5495
+ 'application/json'
5496
+ ]
5497
+ )
5498
+
5499
+
5500
+ # authentication setting
5501
+ _auth_settings: List[str] = [
5502
+ 'Accept',
5503
+ 'ClientLanguage',
5504
+ 'Priority',
5505
+ 'Referer',
5506
+ 'SecFetchDest',
5507
+ 'SecChUaPlatform',
5508
+ 'SecFetchMode',
5509
+ 'CsrfToken',
5510
+ 'ClientUuid',
5511
+ 'BearerAuth',
5512
+ 'GuestToken',
5513
+ 'SecChUa',
5514
+ 'CookieGt0',
5515
+ 'ClientTransactionId',
5516
+ 'ActiveUser',
5517
+ 'CookieCt0',
5518
+ 'UserAgent',
5519
+ 'AcceptLanguage',
5520
+ 'SecFetchSite',
5521
+ 'AuthType',
5522
+ 'CookieAuthToken',
5523
+ 'SecChUaMobile',
5524
+ 'AcceptEncoding'
5525
+ ]
5526
+
5527
+ return self.api_client.param_serialize(
5528
+ method='GET',
5529
+ resource_path='/graphql/{pathQueryId}/UserMedia',
5530
+ path_params=_path_params,
5531
+ query_params=_query_params,
5532
+ header_params=_header_params,
5533
+ body=_body_params,
5534
+ post_params=_form_params,
5535
+ files=_files,
5536
+ auth_settings=_auth_settings,
5537
+ collection_formats=_collection_formats,
5538
+ _host=_host,
5539
+ _request_auth=_request_auth
5540
+ )
5541
+
5542
+
5543
+
5544
+
5545
+ @validate_call
5546
+ def get_user_originals_timeline(
5547
+ self,
5548
+ path_query_id: StrictStr,
5549
+ variables: StrictStr,
5550
+ features: StrictStr,
5551
+ field_toggles: StrictStr,
5552
+ _request_timeout: Union[
5553
+ None,
5554
+ Annotated[StrictFloat, Field(gt=0)],
5555
+ Tuple[
5556
+ Annotated[StrictFloat, Field(gt=0)],
5557
+ Annotated[StrictFloat, Field(gt=0)]
5558
+ ]
5559
+ ] = None,
5560
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5561
+ _content_type: Optional[StrictStr] = None,
5562
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5563
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5564
+ ) -> UserTweetsResponse:
5565
+ """get_user_originals_timeline
5566
+
5567
+ get user tweets (profile posts tab)
5568
+
5569
+ :param path_query_id: (required)
5570
+ :type path_query_id: str
5571
+ :param variables: (required)
5572
+ :type variables: str
5573
+ :param features: (required)
5574
+ :type features: str
5575
+ :param field_toggles: (required)
5576
+ :type field_toggles: str
5577
+ :param _request_timeout: timeout setting for this request. If one
5578
+ number provided, it will be total request
5579
+ timeout. It can also be a pair (tuple) of
5580
+ (connection, read) timeouts.
5581
+ :type _request_timeout: int, tuple(int, int), optional
5582
+ :param _request_auth: set to override the auth_settings for an a single
5583
+ request; this effectively ignores the
5584
+ authentication in the spec for a single request.
5585
+ :type _request_auth: dict, optional
5586
+ :param _content_type: force content-type for the request.
5587
+ :type _content_type: str, Optional
5588
+ :param _headers: set to override the headers for a single
5589
+ request; this effectively ignores the headers
5590
+ in the spec for a single request.
5591
+ :type _headers: dict, optional
5592
+ :param _host_index: set to override the host_index for a single
5593
+ request; this effectively ignores the host_index
5594
+ in the spec for a single request.
5595
+ :type _host_index: int, optional
5596
+ :return: Returns the result object.
5597
+ """ # noqa: E501
5598
+
5599
+ _param = self._get_user_originals_timeline_serialize(
5600
+ path_query_id=path_query_id,
5601
+ variables=variables,
5602
+ features=features,
5603
+ field_toggles=field_toggles,
5604
+ _request_auth=_request_auth,
5605
+ _content_type=_content_type,
5606
+ _headers=_headers,
5607
+ _host_index=_host_index
5608
+ )
5609
+
5610
+ _response_types_map: Dict[str, Optional[str]] = {
5611
+ '200': "UserTweetsResponse",
5612
+ }
5613
+ response_data = self.api_client.call_api(
5614
+ *_param,
5615
+ _request_timeout=_request_timeout
5616
+ )
5617
+ response_data.read()
5618
+ return self.api_client.response_deserialize(
5619
+ response_data=response_data,
5620
+ response_types_map=_response_types_map,
5621
+ ).data
5622
+
5623
+
5624
+ @validate_call
5625
+ def get_user_originals_timeline_with_http_info(
5626
+ self,
5627
+ path_query_id: StrictStr,
5628
+ variables: StrictStr,
5629
+ features: StrictStr,
5630
+ field_toggles: StrictStr,
5631
+ _request_timeout: Union[
5632
+ None,
5633
+ Annotated[StrictFloat, Field(gt=0)],
5634
+ Tuple[
5635
+ Annotated[StrictFloat, Field(gt=0)],
5636
+ Annotated[StrictFloat, Field(gt=0)]
5637
+ ]
5638
+ ] = None,
5639
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5640
+ _content_type: Optional[StrictStr] = None,
5641
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5642
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5643
+ ) -> ApiResponse[UserTweetsResponse]:
5644
+ """get_user_originals_timeline
5645
+
5646
+ get user tweets (profile posts tab)
5647
+
5648
+ :param path_query_id: (required)
5649
+ :type path_query_id: str
5650
+ :param variables: (required)
5651
+ :type variables: str
5652
+ :param features: (required)
5653
+ :type features: str
5654
+ :param field_toggles: (required)
5655
+ :type field_toggles: str
5656
+ :param _request_timeout: timeout setting for this request. If one
5657
+ number provided, it will be total request
5658
+ timeout. It can also be a pair (tuple) of
5659
+ (connection, read) timeouts.
5660
+ :type _request_timeout: int, tuple(int, int), optional
5661
+ :param _request_auth: set to override the auth_settings for an a single
5662
+ request; this effectively ignores the
5663
+ authentication in the spec for a single request.
5664
+ :type _request_auth: dict, optional
5665
+ :param _content_type: force content-type for the request.
5666
+ :type _content_type: str, Optional
5667
+ :param _headers: set to override the headers for a single
5668
+ request; this effectively ignores the headers
5669
+ in the spec for a single request.
5670
+ :type _headers: dict, optional
5671
+ :param _host_index: set to override the host_index for a single
5672
+ request; this effectively ignores the host_index
5673
+ in the spec for a single request.
5674
+ :type _host_index: int, optional
5675
+ :return: Returns the result object.
5676
+ """ # noqa: E501
5677
+
5678
+ _param = self._get_user_originals_timeline_serialize(
5679
+ path_query_id=path_query_id,
5680
+ variables=variables,
5681
+ features=features,
5682
+ field_toggles=field_toggles,
5683
+ _request_auth=_request_auth,
5684
+ _content_type=_content_type,
5685
+ _headers=_headers,
5686
+ _host_index=_host_index
5687
+ )
5688
+
5689
+ _response_types_map: Dict[str, Optional[str]] = {
5690
+ '200': "UserTweetsResponse",
5691
+ }
5692
+ response_data = self.api_client.call_api(
5693
+ *_param,
5694
+ _request_timeout=_request_timeout
5695
+ )
5696
+ response_data.read()
5697
+ return self.api_client.response_deserialize(
5698
+ response_data=response_data,
5699
+ response_types_map=_response_types_map,
5700
+ )
5701
+
5702
+
5703
+ @validate_call
5704
+ def get_user_originals_timeline_without_preload_content(
5705
+ self,
5706
+ path_query_id: StrictStr,
5707
+ variables: StrictStr,
5708
+ features: StrictStr,
5709
+ field_toggles: StrictStr,
5710
+ _request_timeout: Union[
5711
+ None,
5712
+ Annotated[StrictFloat, Field(gt=0)],
5713
+ Tuple[
5714
+ Annotated[StrictFloat, Field(gt=0)],
5715
+ Annotated[StrictFloat, Field(gt=0)]
5716
+ ]
5717
+ ] = None,
5718
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5719
+ _content_type: Optional[StrictStr] = None,
5720
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5721
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5722
+ ) -> RESTResponseType:
5723
+ """get_user_originals_timeline
5724
+
5725
+ get user tweets (profile posts tab)
5726
+
5727
+ :param path_query_id: (required)
5728
+ :type path_query_id: str
5729
+ :param variables: (required)
5730
+ :type variables: str
5731
+ :param features: (required)
5732
+ :type features: str
5733
+ :param field_toggles: (required)
5734
+ :type field_toggles: str
5735
+ :param _request_timeout: timeout setting for this request. If one
5736
+ number provided, it will be total request
5737
+ timeout. It can also be a pair (tuple) of
5738
+ (connection, read) timeouts.
5739
+ :type _request_timeout: int, tuple(int, int), optional
5740
+ :param _request_auth: set to override the auth_settings for an a single
5741
+ request; this effectively ignores the
5742
+ authentication in the spec for a single request.
5743
+ :type _request_auth: dict, optional
5744
+ :param _content_type: force content-type for the request.
5745
+ :type _content_type: str, Optional
5746
+ :param _headers: set to override the headers for a single
5747
+ request; this effectively ignores the headers
5748
+ in the spec for a single request.
5749
+ :type _headers: dict, optional
5750
+ :param _host_index: set to override the host_index for a single
5751
+ request; this effectively ignores the host_index
5752
+ in the spec for a single request.
5753
+ :type _host_index: int, optional
5754
+ :return: Returns the result object.
5755
+ """ # noqa: E501
5756
+
5757
+ _param = self._get_user_originals_timeline_serialize(
5758
+ path_query_id=path_query_id,
5759
+ variables=variables,
5760
+ features=features,
5761
+ field_toggles=field_toggles,
5762
+ _request_auth=_request_auth,
5763
+ _content_type=_content_type,
5764
+ _headers=_headers,
5765
+ _host_index=_host_index
5766
+ )
5767
+
5768
+ _response_types_map: Dict[str, Optional[str]] = {
5769
+ '200': "UserTweetsResponse",
5770
+ }
5771
+ response_data = self.api_client.call_api(
5772
+ *_param,
5773
+ _request_timeout=_request_timeout
5774
+ )
5775
+ return response_data.response
5776
+
5777
+
5778
+ def _get_user_originals_timeline_serialize(
5779
+ self,
5780
+ path_query_id,
5781
+ variables,
5782
+ features,
5783
+ field_toggles,
5784
+ _request_auth,
5785
+ _content_type,
5786
+ _headers,
5787
+ _host_index,
5788
+ ) -> RequestSerialized:
5789
+
5790
+ _host = None
5791
+
5792
+ _collection_formats: Dict[str, str] = {
5793
+ }
5794
+
5795
+ _path_params: Dict[str, str] = {}
5796
+ _query_params: List[Tuple[str, str]] = []
5797
+ _header_params: Dict[str, Optional[str]] = _headers or {}
5798
+ _form_params: List[Tuple[str, str]] = []
5799
+ _files: Dict[
5800
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5801
+ ] = {}
5802
+ _body_params: Optional[bytes] = None
5803
+
5804
+ # process the path parameters
5805
+ if path_query_id is not None:
5806
+ _path_params['pathQueryId'] = path_query_id
5807
+ # process the query parameters
5808
+ if variables is not None:
5809
+
5810
+ _query_params.append(('variables', variables))
5811
+
5812
+ if features is not None:
5813
+
5814
+ _query_params.append(('features', features))
5815
+
5816
+ if field_toggles is not None:
5817
+
5818
+ _query_params.append(('fieldToggles', field_toggles))
5819
+
5820
+ # process the header parameters
5821
+ # process the form parameters
5822
+ # process the body parameter
5823
+
5824
+
5825
+ # set the HTTP header `Accept`
5826
+ if 'Accept' not in _header_params:
5827
+ _header_params['Accept'] = self.api_client.select_header_accept(
5828
+ [
5829
+ 'application/json'
5830
+ ]
5831
+ )
5832
+
5833
+
5834
+ # authentication setting
5835
+ _auth_settings: List[str] = [
5836
+ 'Accept',
5837
+ 'ClientLanguage',
5838
+ 'Priority',
5839
+ 'Referer',
5840
+ 'SecFetchDest',
5841
+ 'SecChUaPlatform',
5842
+ 'SecFetchMode',
5843
+ 'CsrfToken',
5844
+ 'ClientUuid',
5845
+ 'BearerAuth',
5846
+ 'GuestToken',
5847
+ 'SecChUa',
5848
+ 'CookieGt0',
5849
+ 'ClientTransactionId',
5850
+ 'ActiveUser',
5851
+ 'CookieCt0',
5852
+ 'UserAgent',
5853
+ 'AcceptLanguage',
5854
+ 'SecFetchSite',
5855
+ 'AuthType',
5856
+ 'CookieAuthToken',
5857
+ 'SecChUaMobile',
5858
+ 'AcceptEncoding'
5859
+ ]
5860
+
5861
+ return self.api_client.param_serialize(
5862
+ method='GET',
5863
+ resource_path='/graphql/{pathQueryId}/UserOriginalsTimeline',
5864
+ path_params=_path_params,
5865
+ query_params=_query_params,
5866
+ header_params=_header_params,
5867
+ body=_body_params,
5868
+ post_params=_form_params,
5869
+ files=_files,
5870
+ auth_settings=_auth_settings,
5871
+ collection_formats=_collection_formats,
5872
+ _host=_host,
5873
+ _request_auth=_request_auth
5874
+ )
5875
+
5876
+
5877
+
5878
+
5879
+ @validate_call
5880
+ def get_user_replies_timeline(
5881
+ self,
5882
+ path_query_id: StrictStr,
5883
+ variables: StrictStr,
5884
+ features: StrictStr,
5885
+ field_toggles: StrictStr,
5886
+ _request_timeout: Union[
5887
+ None,
5888
+ Annotated[StrictFloat, Field(gt=0)],
5889
+ Tuple[
5890
+ Annotated[StrictFloat, Field(gt=0)],
5891
+ Annotated[StrictFloat, Field(gt=0)]
5892
+ ]
5893
+ ] = None,
5894
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5895
+ _content_type: Optional[StrictStr] = None,
5896
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5897
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5898
+ ) -> UserTweetsResponse:
5899
+ """get_user_replies_timeline
5900
+
5901
+ get user tweets and replies (profile replies tab)
5902
+
5903
+ :param path_query_id: (required)
5904
+ :type path_query_id: str
5905
+ :param variables: (required)
5906
+ :type variables: str
5907
+ :param features: (required)
5908
+ :type features: str
5909
+ :param field_toggles: (required)
5910
+ :type field_toggles: str
5911
+ :param _request_timeout: timeout setting for this request. If one
5912
+ number provided, it will be total request
5913
+ timeout. It can also be a pair (tuple) of
5914
+ (connection, read) timeouts.
5915
+ :type _request_timeout: int, tuple(int, int), optional
5916
+ :param _request_auth: set to override the auth_settings for an a single
5917
+ request; this effectively ignores the
5918
+ authentication in the spec for a single request.
5919
+ :type _request_auth: dict, optional
5920
+ :param _content_type: force content-type for the request.
5921
+ :type _content_type: str, Optional
5922
+ :param _headers: set to override the headers for a single
5923
+ request; this effectively ignores the headers
5924
+ in the spec for a single request.
5925
+ :type _headers: dict, optional
5926
+ :param _host_index: set to override the host_index for a single
5927
+ request; this effectively ignores the host_index
5928
+ in the spec for a single request.
5929
+ :type _host_index: int, optional
5930
+ :return: Returns the result object.
5931
+ """ # noqa: E501
5932
+
5933
+ _param = self._get_user_replies_timeline_serialize(
5934
+ path_query_id=path_query_id,
5935
+ variables=variables,
5936
+ features=features,
5937
+ field_toggles=field_toggles,
5938
+ _request_auth=_request_auth,
5939
+ _content_type=_content_type,
5940
+ _headers=_headers,
5941
+ _host_index=_host_index
5942
+ )
5943
+
5944
+ _response_types_map: Dict[str, Optional[str]] = {
5945
+ '200': "UserTweetsResponse",
5946
+ }
5947
+ response_data = self.api_client.call_api(
5948
+ *_param,
5949
+ _request_timeout=_request_timeout
5950
+ )
5951
+ response_data.read()
5952
+ return self.api_client.response_deserialize(
5953
+ response_data=response_data,
5954
+ response_types_map=_response_types_map,
5955
+ ).data
5956
+
5957
+
5958
+ @validate_call
5959
+ def get_user_replies_timeline_with_http_info(
5960
+ self,
5961
+ path_query_id: StrictStr,
5962
+ variables: StrictStr,
5963
+ features: StrictStr,
5964
+ field_toggles: StrictStr,
5965
+ _request_timeout: Union[
5966
+ None,
5967
+ Annotated[StrictFloat, Field(gt=0)],
5968
+ Tuple[
5969
+ Annotated[StrictFloat, Field(gt=0)],
5970
+ Annotated[StrictFloat, Field(gt=0)]
5971
+ ]
5972
+ ] = None,
5973
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5974
+ _content_type: Optional[StrictStr] = None,
5975
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5976
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5977
+ ) -> ApiResponse[UserTweetsResponse]:
5978
+ """get_user_replies_timeline
5979
+
5980
+ get user tweets and replies (profile replies tab)
5981
+
5982
+ :param path_query_id: (required)
5983
+ :type path_query_id: str
5984
+ :param variables: (required)
5985
+ :type variables: str
5986
+ :param features: (required)
5987
+ :type features: str
5988
+ :param field_toggles: (required)
5989
+ :type field_toggles: str
5990
+ :param _request_timeout: timeout setting for this request. If one
5991
+ number provided, it will be total request
5992
+ timeout. It can also be a pair (tuple) of
5993
+ (connection, read) timeouts.
5994
+ :type _request_timeout: int, tuple(int, int), optional
5995
+ :param _request_auth: set to override the auth_settings for an a single
5996
+ request; this effectively ignores the
5997
+ authentication in the spec for a single request.
5998
+ :type _request_auth: dict, optional
5999
+ :param _content_type: force content-type for the request.
6000
+ :type _content_type: str, Optional
6001
+ :param _headers: set to override the headers for a single
6002
+ request; this effectively ignores the headers
6003
+ in the spec for a single request.
6004
+ :type _headers: dict, optional
6005
+ :param _host_index: set to override the host_index for a single
6006
+ request; this effectively ignores the host_index
6007
+ in the spec for a single request.
6008
+ :type _host_index: int, optional
6009
+ :return: Returns the result object.
6010
+ """ # noqa: E501
6011
+
6012
+ _param = self._get_user_replies_timeline_serialize(
6013
+ path_query_id=path_query_id,
6014
+ variables=variables,
6015
+ features=features,
6016
+ field_toggles=field_toggles,
6017
+ _request_auth=_request_auth,
6018
+ _content_type=_content_type,
6019
+ _headers=_headers,
6020
+ _host_index=_host_index
6021
+ )
6022
+
6023
+ _response_types_map: Dict[str, Optional[str]] = {
6024
+ '200': "UserTweetsResponse",
6025
+ }
6026
+ response_data = self.api_client.call_api(
6027
+ *_param,
6028
+ _request_timeout=_request_timeout
6029
+ )
3064
6030
  response_data.read()
3065
6031
  return self.api_client.response_deserialize(
3066
6032
  response_data=response_data,
@@ -3069,11 +6035,12 @@ class TweetApi:
3069
6035
 
3070
6036
 
3071
6037
  @validate_call
3072
- def get_search_timeline_without_preload_content(
6038
+ def get_user_replies_timeline_without_preload_content(
3073
6039
  self,
3074
6040
  path_query_id: StrictStr,
3075
6041
  variables: StrictStr,
3076
6042
  features: StrictStr,
6043
+ field_toggles: StrictStr,
3077
6044
  _request_timeout: Union[
3078
6045
  None,
3079
6046
  Annotated[StrictFloat, Field(gt=0)],
@@ -3087,9 +6054,9 @@ class TweetApi:
3087
6054
  _headers: Optional[Dict[StrictStr, Any]] = None,
3088
6055
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3089
6056
  ) -> RESTResponseType:
3090
- """get_search_timeline
6057
+ """get_user_replies_timeline
3091
6058
 
3092
- search tweet list. product:[Top, Latest, People, Photos, Videos]
6059
+ get user tweets and replies (profile replies tab)
3093
6060
 
3094
6061
  :param path_query_id: (required)
3095
6062
  :type path_query_id: str
@@ -3097,6 +6064,8 @@ class TweetApi:
3097
6064
  :type variables: str
3098
6065
  :param features: (required)
3099
6066
  :type features: str
6067
+ :param field_toggles: (required)
6068
+ :type field_toggles: str
3100
6069
  :param _request_timeout: timeout setting for this request. If one
3101
6070
  number provided, it will be total request
3102
6071
  timeout. It can also be a pair (tuple) of
@@ -3119,10 +6088,11 @@ class TweetApi:
3119
6088
  :return: Returns the result object.
3120
6089
  """ # noqa: E501
3121
6090
 
3122
- _param = self._get_search_timeline_serialize(
6091
+ _param = self._get_user_replies_timeline_serialize(
3123
6092
  path_query_id=path_query_id,
3124
6093
  variables=variables,
3125
6094
  features=features,
6095
+ field_toggles=field_toggles,
3126
6096
  _request_auth=_request_auth,
3127
6097
  _content_type=_content_type,
3128
6098
  _headers=_headers,
@@ -3130,7 +6100,7 @@ class TweetApi:
3130
6100
  )
3131
6101
 
3132
6102
  _response_types_map: Dict[str, Optional[str]] = {
3133
- '200': "SearchTimelineResponse",
6103
+ '200': "UserTweetsResponse",
3134
6104
  }
3135
6105
  response_data = self.api_client.call_api(
3136
6106
  *_param,
@@ -3139,11 +6109,12 @@ class TweetApi:
3139
6109
  return response_data.response
3140
6110
 
3141
6111
 
3142
- def _get_search_timeline_serialize(
6112
+ def _get_user_replies_timeline_serialize(
3143
6113
  self,
3144
6114
  path_query_id,
3145
6115
  variables,
3146
6116
  features,
6117
+ field_toggles,
3147
6118
  _request_auth,
3148
6119
  _content_type,
3149
6120
  _headers,
@@ -3176,6 +6147,10 @@ class TweetApi:
3176
6147
 
3177
6148
  _query_params.append(('features', features))
3178
6149
 
6150
+ if field_toggles is not None:
6151
+
6152
+ _query_params.append(('fieldToggles', field_toggles))
6153
+
3179
6154
  # process the header parameters
3180
6155
  # process the form parameters
3181
6156
  # process the body parameter
@@ -3219,7 +6194,7 @@ class TweetApi:
3219
6194
 
3220
6195
  return self.api_client.param_serialize(
3221
6196
  method='GET',
3222
- resource_path='/graphql/{pathQueryId}/SearchTimeline',
6197
+ resource_path='/graphql/{pathQueryId}/UserRepliesTimeline',
3223
6198
  path_params=_path_params,
3224
6199
  query_params=_query_params,
3225
6200
  header_params=_header_params,
@@ -3236,7 +6211,7 @@ class TweetApi:
3236
6211
 
3237
6212
 
3238
6213
  @validate_call
3239
- def get_tweet_detail(
6214
+ def get_user_reposts_timeline(
3240
6215
  self,
3241
6216
  path_query_id: StrictStr,
3242
6217
  variables: StrictStr,
@@ -3254,10 +6229,10 @@ class TweetApi:
3254
6229
  _content_type: Optional[StrictStr] = None,
3255
6230
  _headers: Optional[Dict[StrictStr, Any]] = None,
3256
6231
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3257
- ) -> TweetDetailResponse:
3258
- """get_tweet_detail
6232
+ ) -> UserTweetsResponse:
6233
+ """get_user_reposts_timeline
3259
6234
 
3260
- get TweetDetail
6235
+ get user reposts (profile reposts tab)
3261
6236
 
3262
6237
  :param path_query_id: (required)
3263
6238
  :type path_query_id: str
@@ -3289,7 +6264,7 @@ class TweetApi:
3289
6264
  :return: Returns the result object.
3290
6265
  """ # noqa: E501
3291
6266
 
3292
- _param = self._get_tweet_detail_serialize(
6267
+ _param = self._get_user_reposts_timeline_serialize(
3293
6268
  path_query_id=path_query_id,
3294
6269
  variables=variables,
3295
6270
  features=features,
@@ -3301,7 +6276,7 @@ class TweetApi:
3301
6276
  )
3302
6277
 
3303
6278
  _response_types_map: Dict[str, Optional[str]] = {
3304
- '200': "TweetDetailResponse",
6279
+ '200': "UserTweetsResponse",
3305
6280
  }
3306
6281
  response_data = self.api_client.call_api(
3307
6282
  *_param,
@@ -3315,7 +6290,7 @@ class TweetApi:
3315
6290
 
3316
6291
 
3317
6292
  @validate_call
3318
- def get_tweet_detail_with_http_info(
6293
+ def get_user_reposts_timeline_with_http_info(
3319
6294
  self,
3320
6295
  path_query_id: StrictStr,
3321
6296
  variables: StrictStr,
@@ -3333,10 +6308,10 @@ class TweetApi:
3333
6308
  _content_type: Optional[StrictStr] = None,
3334
6309
  _headers: Optional[Dict[StrictStr, Any]] = None,
3335
6310
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3336
- ) -> ApiResponse[TweetDetailResponse]:
3337
- """get_tweet_detail
6311
+ ) -> ApiResponse[UserTweetsResponse]:
6312
+ """get_user_reposts_timeline
3338
6313
 
3339
- get TweetDetail
6314
+ get user reposts (profile reposts tab)
3340
6315
 
3341
6316
  :param path_query_id: (required)
3342
6317
  :type path_query_id: str
@@ -3368,7 +6343,7 @@ class TweetApi:
3368
6343
  :return: Returns the result object.
3369
6344
  """ # noqa: E501
3370
6345
 
3371
- _param = self._get_tweet_detail_serialize(
6346
+ _param = self._get_user_reposts_timeline_serialize(
3372
6347
  path_query_id=path_query_id,
3373
6348
  variables=variables,
3374
6349
  features=features,
@@ -3380,7 +6355,7 @@ class TweetApi:
3380
6355
  )
3381
6356
 
3382
6357
  _response_types_map: Dict[str, Optional[str]] = {
3383
- '200': "TweetDetailResponse",
6358
+ '200': "UserTweetsResponse",
3384
6359
  }
3385
6360
  response_data = self.api_client.call_api(
3386
6361
  *_param,
@@ -3394,7 +6369,7 @@ class TweetApi:
3394
6369
 
3395
6370
 
3396
6371
  @validate_call
3397
- def get_tweet_detail_without_preload_content(
6372
+ def get_user_reposts_timeline_without_preload_content(
3398
6373
  self,
3399
6374
  path_query_id: StrictStr,
3400
6375
  variables: StrictStr,
@@ -3413,9 +6388,9 @@ class TweetApi:
3413
6388
  _headers: Optional[Dict[StrictStr, Any]] = None,
3414
6389
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3415
6390
  ) -> RESTResponseType:
3416
- """get_tweet_detail
6391
+ """get_user_reposts_timeline
3417
6392
 
3418
- get TweetDetail
6393
+ get user reposts (profile reposts tab)
3419
6394
 
3420
6395
  :param path_query_id: (required)
3421
6396
  :type path_query_id: str
@@ -3447,7 +6422,7 @@ class TweetApi:
3447
6422
  :return: Returns the result object.
3448
6423
  """ # noqa: E501
3449
6424
 
3450
- _param = self._get_tweet_detail_serialize(
6425
+ _param = self._get_user_reposts_timeline_serialize(
3451
6426
  path_query_id=path_query_id,
3452
6427
  variables=variables,
3453
6428
  features=features,
@@ -3459,7 +6434,7 @@ class TweetApi:
3459
6434
  )
3460
6435
 
3461
6436
  _response_types_map: Dict[str, Optional[str]] = {
3462
- '200': "TweetDetailResponse",
6437
+ '200': "UserTweetsResponse",
3463
6438
  }
3464
6439
  response_data = self.api_client.call_api(
3465
6440
  *_param,
@@ -3468,7 +6443,7 @@ class TweetApi:
3468
6443
  return response_data.response
3469
6444
 
3470
6445
 
3471
- def _get_tweet_detail_serialize(
6446
+ def _get_user_reposts_timeline_serialize(
3472
6447
  self,
3473
6448
  path_query_id,
3474
6449
  variables,
@@ -3553,7 +6528,7 @@ class TweetApi:
3553
6528
 
3554
6529
  return self.api_client.param_serialize(
3555
6530
  method='GET',
3556
- resource_path='/graphql/{pathQueryId}/TweetDetail',
6531
+ resource_path='/graphql/{pathQueryId}/UserRepostsTimeline',
3557
6532
  path_params=_path_params,
3558
6533
  query_params=_query_params,
3559
6534
  header_params=_header_params,
@@ -3570,7 +6545,7 @@ class TweetApi:
3570
6545
 
3571
6546
 
3572
6547
  @validate_call
3573
- def get_user_highlights_tweets(
6548
+ def get_user_super_follow_tweets(
3574
6549
  self,
3575
6550
  path_query_id: StrictStr,
3576
6551
  variables: StrictStr,
@@ -3588,10 +6563,10 @@ class TweetApi:
3588
6563
  _content_type: Optional[StrictStr] = None,
3589
6564
  _headers: Optional[Dict[StrictStr, Any]] = None,
3590
6565
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3591
- ) -> UserHighlightsTweetsResponse:
3592
- """get_user_highlights_tweets
6566
+ ) -> UserTweetsResponse:
6567
+ """get_user_super_follow_tweets
3593
6568
 
3594
- get user highlights tweets
6569
+ get user super follow tweets (subscriptions tab)
3595
6570
 
3596
6571
  :param path_query_id: (required)
3597
6572
  :type path_query_id: str
@@ -3623,7 +6598,7 @@ class TweetApi:
3623
6598
  :return: Returns the result object.
3624
6599
  """ # noqa: E501
3625
6600
 
3626
- _param = self._get_user_highlights_tweets_serialize(
6601
+ _param = self._get_user_super_follow_tweets_serialize(
3627
6602
  path_query_id=path_query_id,
3628
6603
  variables=variables,
3629
6604
  features=features,
@@ -3635,7 +6610,7 @@ class TweetApi:
3635
6610
  )
3636
6611
 
3637
6612
  _response_types_map: Dict[str, Optional[str]] = {
3638
- '200': "UserHighlightsTweetsResponse",
6613
+ '200': "UserTweetsResponse",
3639
6614
  }
3640
6615
  response_data = self.api_client.call_api(
3641
6616
  *_param,
@@ -3649,7 +6624,7 @@ class TweetApi:
3649
6624
 
3650
6625
 
3651
6626
  @validate_call
3652
- def get_user_highlights_tweets_with_http_info(
6627
+ def get_user_super_follow_tweets_with_http_info(
3653
6628
  self,
3654
6629
  path_query_id: StrictStr,
3655
6630
  variables: StrictStr,
@@ -3667,10 +6642,10 @@ class TweetApi:
3667
6642
  _content_type: Optional[StrictStr] = None,
3668
6643
  _headers: Optional[Dict[StrictStr, Any]] = None,
3669
6644
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3670
- ) -> ApiResponse[UserHighlightsTweetsResponse]:
3671
- """get_user_highlights_tweets
6645
+ ) -> ApiResponse[UserTweetsResponse]:
6646
+ """get_user_super_follow_tweets
3672
6647
 
3673
- get user highlights tweets
6648
+ get user super follow tweets (subscriptions tab)
3674
6649
 
3675
6650
  :param path_query_id: (required)
3676
6651
  :type path_query_id: str
@@ -3702,7 +6677,7 @@ class TweetApi:
3702
6677
  :return: Returns the result object.
3703
6678
  """ # noqa: E501
3704
6679
 
3705
- _param = self._get_user_highlights_tweets_serialize(
6680
+ _param = self._get_user_super_follow_tweets_serialize(
3706
6681
  path_query_id=path_query_id,
3707
6682
  variables=variables,
3708
6683
  features=features,
@@ -3714,7 +6689,7 @@ class TweetApi:
3714
6689
  )
3715
6690
 
3716
6691
  _response_types_map: Dict[str, Optional[str]] = {
3717
- '200': "UserHighlightsTweetsResponse",
6692
+ '200': "UserTweetsResponse",
3718
6693
  }
3719
6694
  response_data = self.api_client.call_api(
3720
6695
  *_param,
@@ -3728,7 +6703,7 @@ class TweetApi:
3728
6703
 
3729
6704
 
3730
6705
  @validate_call
3731
- def get_user_highlights_tweets_without_preload_content(
6706
+ def get_user_super_follow_tweets_without_preload_content(
3732
6707
  self,
3733
6708
  path_query_id: StrictStr,
3734
6709
  variables: StrictStr,
@@ -3747,9 +6722,9 @@ class TweetApi:
3747
6722
  _headers: Optional[Dict[StrictStr, Any]] = None,
3748
6723
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3749
6724
  ) -> RESTResponseType:
3750
- """get_user_highlights_tweets
6725
+ """get_user_super_follow_tweets
3751
6726
 
3752
- get user highlights tweets
6727
+ get user super follow tweets (subscriptions tab)
3753
6728
 
3754
6729
  :param path_query_id: (required)
3755
6730
  :type path_query_id: str
@@ -3781,7 +6756,7 @@ class TweetApi:
3781
6756
  :return: Returns the result object.
3782
6757
  """ # noqa: E501
3783
6758
 
3784
- _param = self._get_user_highlights_tweets_serialize(
6759
+ _param = self._get_user_super_follow_tweets_serialize(
3785
6760
  path_query_id=path_query_id,
3786
6761
  variables=variables,
3787
6762
  features=features,
@@ -3793,7 +6768,7 @@ class TweetApi:
3793
6768
  )
3794
6769
 
3795
6770
  _response_types_map: Dict[str, Optional[str]] = {
3796
- '200': "UserHighlightsTweetsResponse",
6771
+ '200': "UserTweetsResponse",
3797
6772
  }
3798
6773
  response_data = self.api_client.call_api(
3799
6774
  *_param,
@@ -3802,7 +6777,7 @@ class TweetApi:
3802
6777
  return response_data.response
3803
6778
 
3804
6779
 
3805
- def _get_user_highlights_tweets_serialize(
6780
+ def _get_user_super_follow_tweets_serialize(
3806
6781
  self,
3807
6782
  path_query_id,
3808
6783
  variables,
@@ -3887,7 +6862,7 @@ class TweetApi:
3887
6862
 
3888
6863
  return self.api_client.param_serialize(
3889
6864
  method='GET',
3890
- resource_path='/graphql/{pathQueryId}/UserHighlightsTweets',
6865
+ resource_path='/graphql/{pathQueryId}/UserSuperFollowTweets',
3891
6866
  path_params=_path_params,
3892
6867
  query_params=_query_params,
3893
6868
  header_params=_header_params,
@@ -3904,7 +6879,7 @@ class TweetApi:
3904
6879
 
3905
6880
 
3906
6881
  @validate_call
3907
- def get_user_media(
6882
+ def get_user_tweets(
3908
6883
  self,
3909
6884
  path_query_id: StrictStr,
3910
6885
  variables: StrictStr,
@@ -3923,9 +6898,9 @@ class TweetApi:
3923
6898
  _headers: Optional[Dict[StrictStr, Any]] = None,
3924
6899
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3925
6900
  ) -> UserTweetsResponse:
3926
- """get_user_media
6901
+ """get_user_tweets
3927
6902
 
3928
- get user media tweets
6903
+ get user tweets
3929
6904
 
3930
6905
  :param path_query_id: (required)
3931
6906
  :type path_query_id: str
@@ -3957,7 +6932,7 @@ class TweetApi:
3957
6932
  :return: Returns the result object.
3958
6933
  """ # noqa: E501
3959
6934
 
3960
- _param = self._get_user_media_serialize(
6935
+ _param = self._get_user_tweets_serialize(
3961
6936
  path_query_id=path_query_id,
3962
6937
  variables=variables,
3963
6938
  features=features,
@@ -3983,7 +6958,7 @@ class TweetApi:
3983
6958
 
3984
6959
 
3985
6960
  @validate_call
3986
- def get_user_media_with_http_info(
6961
+ def get_user_tweets_with_http_info(
3987
6962
  self,
3988
6963
  path_query_id: StrictStr,
3989
6964
  variables: StrictStr,
@@ -4002,9 +6977,9 @@ class TweetApi:
4002
6977
  _headers: Optional[Dict[StrictStr, Any]] = None,
4003
6978
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4004
6979
  ) -> ApiResponse[UserTweetsResponse]:
4005
- """get_user_media
6980
+ """get_user_tweets
4006
6981
 
4007
- get user media tweets
6982
+ get user tweets
4008
6983
 
4009
6984
  :param path_query_id: (required)
4010
6985
  :type path_query_id: str
@@ -4036,7 +7011,7 @@ class TweetApi:
4036
7011
  :return: Returns the result object.
4037
7012
  """ # noqa: E501
4038
7013
 
4039
- _param = self._get_user_media_serialize(
7014
+ _param = self._get_user_tweets_serialize(
4040
7015
  path_query_id=path_query_id,
4041
7016
  variables=variables,
4042
7017
  features=features,
@@ -4062,7 +7037,7 @@ class TweetApi:
4062
7037
 
4063
7038
 
4064
7039
  @validate_call
4065
- def get_user_media_without_preload_content(
7040
+ def get_user_tweets_without_preload_content(
4066
7041
  self,
4067
7042
  path_query_id: StrictStr,
4068
7043
  variables: StrictStr,
@@ -4081,9 +7056,9 @@ class TweetApi:
4081
7056
  _headers: Optional[Dict[StrictStr, Any]] = None,
4082
7057
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4083
7058
  ) -> RESTResponseType:
4084
- """get_user_media
7059
+ """get_user_tweets
4085
7060
 
4086
- get user media tweets
7061
+ get user tweets
4087
7062
 
4088
7063
  :param path_query_id: (required)
4089
7064
  :type path_query_id: str
@@ -4115,7 +7090,7 @@ class TweetApi:
4115
7090
  :return: Returns the result object.
4116
7091
  """ # noqa: E501
4117
7092
 
4118
- _param = self._get_user_media_serialize(
7093
+ _param = self._get_user_tweets_serialize(
4119
7094
  path_query_id=path_query_id,
4120
7095
  variables=variables,
4121
7096
  features=features,
@@ -4136,7 +7111,7 @@ class TweetApi:
4136
7111
  return response_data.response
4137
7112
 
4138
7113
 
4139
- def _get_user_media_serialize(
7114
+ def _get_user_tweets_serialize(
4140
7115
  self,
4141
7116
  path_query_id,
4142
7117
  variables,
@@ -4221,7 +7196,7 @@ class TweetApi:
4221
7196
 
4222
7197
  return self.api_client.param_serialize(
4223
7198
  method='GET',
4224
- resource_path='/graphql/{pathQueryId}/UserMedia',
7199
+ resource_path='/graphql/{pathQueryId}/UserTweets',
4225
7200
  path_params=_path_params,
4226
7201
  query_params=_query_params,
4227
7202
  header_params=_header_params,
@@ -4238,7 +7213,7 @@ class TweetApi:
4238
7213
 
4239
7214
 
4240
7215
  @validate_call
4241
- def get_user_tweets(
7216
+ def get_user_tweets_and_replies(
4242
7217
  self,
4243
7218
  path_query_id: StrictStr,
4244
7219
  variables: StrictStr,
@@ -4257,9 +7232,9 @@ class TweetApi:
4257
7232
  _headers: Optional[Dict[StrictStr, Any]] = None,
4258
7233
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4259
7234
  ) -> UserTweetsResponse:
4260
- """get_user_tweets
7235
+ """get_user_tweets_and_replies
4261
7236
 
4262
- get user tweets
7237
+ get user replies tweets
4263
7238
 
4264
7239
  :param path_query_id: (required)
4265
7240
  :type path_query_id: str
@@ -4291,7 +7266,7 @@ class TweetApi:
4291
7266
  :return: Returns the result object.
4292
7267
  """ # noqa: E501
4293
7268
 
4294
- _param = self._get_user_tweets_serialize(
7269
+ _param = self._get_user_tweets_and_replies_serialize(
4295
7270
  path_query_id=path_query_id,
4296
7271
  variables=variables,
4297
7272
  features=features,
@@ -4317,7 +7292,7 @@ class TweetApi:
4317
7292
 
4318
7293
 
4319
7294
  @validate_call
4320
- def get_user_tweets_with_http_info(
7295
+ def get_user_tweets_and_replies_with_http_info(
4321
7296
  self,
4322
7297
  path_query_id: StrictStr,
4323
7298
  variables: StrictStr,
@@ -4336,9 +7311,9 @@ class TweetApi:
4336
7311
  _headers: Optional[Dict[StrictStr, Any]] = None,
4337
7312
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4338
7313
  ) -> ApiResponse[UserTweetsResponse]:
4339
- """get_user_tweets
7314
+ """get_user_tweets_and_replies
4340
7315
 
4341
- get user tweets
7316
+ get user replies tweets
4342
7317
 
4343
7318
  :param path_query_id: (required)
4344
7319
  :type path_query_id: str
@@ -4370,7 +7345,7 @@ class TweetApi:
4370
7345
  :return: Returns the result object.
4371
7346
  """ # noqa: E501
4372
7347
 
4373
- _param = self._get_user_tweets_serialize(
7348
+ _param = self._get_user_tweets_and_replies_serialize(
4374
7349
  path_query_id=path_query_id,
4375
7350
  variables=variables,
4376
7351
  features=features,
@@ -4396,7 +7371,7 @@ class TweetApi:
4396
7371
 
4397
7372
 
4398
7373
  @validate_call
4399
- def get_user_tweets_without_preload_content(
7374
+ def get_user_tweets_and_replies_without_preload_content(
4400
7375
  self,
4401
7376
  path_query_id: StrictStr,
4402
7377
  variables: StrictStr,
@@ -4415,9 +7390,9 @@ class TweetApi:
4415
7390
  _headers: Optional[Dict[StrictStr, Any]] = None,
4416
7391
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4417
7392
  ) -> RESTResponseType:
4418
- """get_user_tweets
7393
+ """get_user_tweets_and_replies
4419
7394
 
4420
- get user tweets
7395
+ get user replies tweets
4421
7396
 
4422
7397
  :param path_query_id: (required)
4423
7398
  :type path_query_id: str
@@ -4449,7 +7424,7 @@ class TweetApi:
4449
7424
  :return: Returns the result object.
4450
7425
  """ # noqa: E501
4451
7426
 
4452
- _param = self._get_user_tweets_serialize(
7427
+ _param = self._get_user_tweets_and_replies_serialize(
4453
7428
  path_query_id=path_query_id,
4454
7429
  variables=variables,
4455
7430
  features=features,
@@ -4470,7 +7445,7 @@ class TweetApi:
4470
7445
  return response_data.response
4471
7446
 
4472
7447
 
4473
- def _get_user_tweets_serialize(
7448
+ def _get_user_tweets_and_replies_serialize(
4474
7449
  self,
4475
7450
  path_query_id,
4476
7451
  variables,
@@ -4555,7 +7530,7 @@ class TweetApi:
4555
7530
 
4556
7531
  return self.api_client.param_serialize(
4557
7532
  method='GET',
4558
- resource_path='/graphql/{pathQueryId}/UserTweets',
7533
+ resource_path='/graphql/{pathQueryId}/UserTweetsAndReplies',
4559
7534
  path_params=_path_params,
4560
7535
  query_params=_query_params,
4561
7536
  header_params=_header_params,
@@ -4572,7 +7547,7 @@ class TweetApi:
4572
7547
 
4573
7548
 
4574
7549
  @validate_call
4575
- def get_user_tweets_and_replies(
7550
+ def get_user_video_timeline(
4576
7551
  self,
4577
7552
  path_query_id: StrictStr,
4578
7553
  variables: StrictStr,
@@ -4591,9 +7566,9 @@ class TweetApi:
4591
7566
  _headers: Optional[Dict[StrictStr, Any]] = None,
4592
7567
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4593
7568
  ) -> UserTweetsResponse:
4594
- """get_user_tweets_and_replies
7569
+ """get_user_video_timeline
4595
7570
 
4596
- get user replies tweets
7571
+ get user media (profile media tab)
4597
7572
 
4598
7573
  :param path_query_id: (required)
4599
7574
  :type path_query_id: str
@@ -4625,7 +7600,7 @@ class TweetApi:
4625
7600
  :return: Returns the result object.
4626
7601
  """ # noqa: E501
4627
7602
 
4628
- _param = self._get_user_tweets_and_replies_serialize(
7603
+ _param = self._get_user_video_timeline_serialize(
4629
7604
  path_query_id=path_query_id,
4630
7605
  variables=variables,
4631
7606
  features=features,
@@ -4651,7 +7626,7 @@ class TweetApi:
4651
7626
 
4652
7627
 
4653
7628
  @validate_call
4654
- def get_user_tweets_and_replies_with_http_info(
7629
+ def get_user_video_timeline_with_http_info(
4655
7630
  self,
4656
7631
  path_query_id: StrictStr,
4657
7632
  variables: StrictStr,
@@ -4670,9 +7645,9 @@ class TweetApi:
4670
7645
  _headers: Optional[Dict[StrictStr, Any]] = None,
4671
7646
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4672
7647
  ) -> ApiResponse[UserTweetsResponse]:
4673
- """get_user_tweets_and_replies
7648
+ """get_user_video_timeline
4674
7649
 
4675
- get user replies tweets
7650
+ get user media (profile media tab)
4676
7651
 
4677
7652
  :param path_query_id: (required)
4678
7653
  :type path_query_id: str
@@ -4704,7 +7679,7 @@ class TweetApi:
4704
7679
  :return: Returns the result object.
4705
7680
  """ # noqa: E501
4706
7681
 
4707
- _param = self._get_user_tweets_and_replies_serialize(
7682
+ _param = self._get_user_video_timeline_serialize(
4708
7683
  path_query_id=path_query_id,
4709
7684
  variables=variables,
4710
7685
  features=features,
@@ -4730,7 +7705,7 @@ class TweetApi:
4730
7705
 
4731
7706
 
4732
7707
  @validate_call
4733
- def get_user_tweets_and_replies_without_preload_content(
7708
+ def get_user_video_timeline_without_preload_content(
4734
7709
  self,
4735
7710
  path_query_id: StrictStr,
4736
7711
  variables: StrictStr,
@@ -4749,9 +7724,9 @@ class TweetApi:
4749
7724
  _headers: Optional[Dict[StrictStr, Any]] = None,
4750
7725
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4751
7726
  ) -> RESTResponseType:
4752
- """get_user_tweets_and_replies
7727
+ """get_user_video_timeline
4753
7728
 
4754
- get user replies tweets
7729
+ get user media (profile media tab)
4755
7730
 
4756
7731
  :param path_query_id: (required)
4757
7732
  :type path_query_id: str
@@ -4783,7 +7758,7 @@ class TweetApi:
4783
7758
  :return: Returns the result object.
4784
7759
  """ # noqa: E501
4785
7760
 
4786
- _param = self._get_user_tweets_and_replies_serialize(
7761
+ _param = self._get_user_video_timeline_serialize(
4787
7762
  path_query_id=path_query_id,
4788
7763
  variables=variables,
4789
7764
  features=features,
@@ -4804,7 +7779,7 @@ class TweetApi:
4804
7779
  return response_data.response
4805
7780
 
4806
7781
 
4807
- def _get_user_tweets_and_replies_serialize(
7782
+ def _get_user_video_timeline_serialize(
4808
7783
  self,
4809
7784
  path_query_id,
4810
7785
  variables,
@@ -4889,7 +7864,7 @@ class TweetApi:
4889
7864
 
4890
7865
  return self.api_client.param_serialize(
4891
7866
  method='GET',
4892
- resource_path='/graphql/{pathQueryId}/UserTweetsAndReplies',
7867
+ resource_path='/graphql/{pathQueryId}/UserVideoTimeline',
4893
7868
  path_params=_path_params,
4894
7869
  query_params=_query_params,
4895
7870
  header_params=_header_params,