x-twitter-scraper 0.3.0 → 0.4.0

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 (456) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +5 -5
  4. data/lib/x_twitter_scraper/models/api_key.rb +2 -0
  5. data/lib/x_twitter_scraper/models/api_key_list_response.rb +3 -44
  6. data/lib/x_twitter_scraper/models/delivery.rb +2 -0
  7. data/lib/x_twitter_scraper/models/draft.rb +2 -0
  8. data/lib/x_twitter_scraper/models/draft_detail.rb +3 -0
  9. data/lib/x_twitter_scraper/models/draft_list_params.rb +2 -1
  10. data/lib/x_twitter_scraper/models/draft_list_response.rb +3 -38
  11. data/lib/x_twitter_scraper/models/draw_detail.rb +2 -0
  12. data/lib/x_twitter_scraper/models/draw_export_params.rb +3 -1
  13. data/lib/x_twitter_scraper/models/draw_list_item.rb +2 -0
  14. data/lib/x_twitter_scraper/models/draw_list_params.rb +4 -3
  15. data/lib/x_twitter_scraper/models/draw_list_response.rb +3 -50
  16. data/lib/x_twitter_scraper/models/draw_retrieve_response.rb +8 -124
  17. data/lib/x_twitter_scraper/models/draw_run_response.rb +3 -32
  18. data/lib/x_twitter_scraper/models/error.rb +2 -0
  19. data/lib/x_twitter_scraper/models/event.rb +11 -18
  20. data/lib/x_twitter_scraper/models/event_detail.rb +7 -18
  21. data/lib/x_twitter_scraper/models/event_list_params.rb +10 -21
  22. data/lib/x_twitter_scraper/models/event_list_response.rb +3 -59
  23. data/lib/x_twitter_scraper/models/event_type.rb +1 -0
  24. data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +9 -7
  25. data/lib/x_twitter_scraper/models/extraction_export_results_params.rb +5 -1
  26. data/lib/x_twitter_scraper/models/extraction_job.rb +11 -1
  27. data/lib/x_twitter_scraper/models/extraction_list_params.rb +10 -5
  28. data/lib/x_twitter_scraper/models/extraction_list_response.rb +3 -87
  29. data/lib/x_twitter_scraper/models/extraction_retrieve_params.rb +4 -3
  30. data/lib/x_twitter_scraper/models/extraction_run_params.rb +3 -1
  31. data/lib/x_twitter_scraper/models/extraction_run_response.rb +10 -15
  32. data/lib/x_twitter_scraper/models/integration.rb +12 -32
  33. data/lib/x_twitter_scraper/models/integration_create_params.rb +8 -32
  34. data/lib/x_twitter_scraper/models/integration_delivery.rb +2 -0
  35. data/lib/x_twitter_scraper/models/integration_list_deliveries_params.rb +4 -1
  36. data/lib/x_twitter_scraper/models/integration_list_deliveries_response.rb +3 -67
  37. data/lib/x_twitter_scraper/models/integration_list_response.rb +3 -112
  38. data/lib/x_twitter_scraper/models/integration_update_params.rb +4 -19
  39. data/lib/x_twitter_scraper/models/monitor.rb +12 -17
  40. data/lib/x_twitter_scraper/models/monitor_create_params.rb +4 -19
  41. data/lib/x_twitter_scraper/models/monitor_create_response.rb +8 -17
  42. data/lib/x_twitter_scraper/models/monitor_list_response.rb +3 -60
  43. data/lib/x_twitter_scraper/models/monitor_update_params.rb +7 -19
  44. data/lib/x_twitter_scraper/models/paginated_tweets.rb +5 -96
  45. data/lib/x_twitter_scraper/models/paginated_users.rb +5 -73
  46. data/lib/x_twitter_scraper/models/radar_item.rb +2 -0
  47. data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rb +20 -3
  48. data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rb +3 -62
  49. data/lib/x_twitter_scraper/models/style_compare_response.rb +9 -134
  50. data/lib/x_twitter_scraper/models/style_delete_params.rb +4 -4
  51. data/lib/x_twitter_scraper/models/style_get_performance_params.rb +4 -4
  52. data/lib/x_twitter_scraper/models/style_list_response.rb +3 -32
  53. data/lib/x_twitter_scraper/models/style_profile.rb +3 -0
  54. data/lib/x_twitter_scraper/models/style_profile_summary.rb +2 -0
  55. data/lib/x_twitter_scraper/models/style_retrieve_params.rb +4 -4
  56. data/lib/x_twitter_scraper/models/style_update_params.rb +4 -4
  57. data/lib/x_twitter_scraper/models/trend_list_params.rb +2 -1
  58. data/lib/x_twitter_scraper/models/webhook.rb +11 -17
  59. data/lib/x_twitter_scraper/models/webhook_create_params.rb +4 -19
  60. data/lib/x_twitter_scraper/models/webhook_create_response.rb +8 -17
  61. data/lib/x_twitter_scraper/models/webhook_list_deliveries_response.rb +3 -56
  62. data/lib/x_twitter_scraper/models/webhook_list_response.rb +3 -54
  63. data/lib/x_twitter_scraper/models/webhook_update_params.rb +8 -19
  64. data/lib/x_twitter_scraper/models/winner.rb +2 -0
  65. data/lib/x_twitter_scraper/models/x/account_bulk_retry_params.rb +16 -0
  66. data/lib/x_twitter_scraper/models/x/account_bulk_retry_response.rb +19 -0
  67. data/lib/x_twitter_scraper/models/x/account_list_response.rb +3 -38
  68. data/lib/x_twitter_scraper/models/x/account_reauth_params.rb +4 -4
  69. data/lib/x_twitter_scraper/models/x/bookmark_list_params.rb +2 -2
  70. data/lib/x_twitter_scraper/models/x/communities/join_create_params.rb +2 -2
  71. data/lib/x_twitter_scraper/models/x/communities/join_delete_all_params.rb +2 -2
  72. data/lib/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rb +33 -0
  73. data/lib/x_twitter_scraper/models/x/communities/tweet_list_params.rb +6 -6
  74. data/lib/x_twitter_scraper/models/x/community_action_result.rb +2 -0
  75. data/lib/x_twitter_scraper/models/x/community_create_params.rb +2 -2
  76. data/lib/x_twitter_scraper/models/x/community_delete_params.rb +2 -2
  77. data/lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb +6 -6
  78. data/lib/x_twitter_scraper/models/x/community_retrieve_moderators_params.rb +2 -2
  79. data/lib/x_twitter_scraper/models/x/community_retrieve_search_params.rb +2 -2
  80. data/lib/x_twitter_scraper/models/x/dm_retrieve_history_params.rb +2 -2
  81. data/lib/x_twitter_scraper/models/x/dm_send_params.rb +2 -2
  82. data/lib/x_twitter_scraper/models/x/list_retrieve_followers_params.rb +2 -2
  83. data/lib/x_twitter_scraper/models/x/list_retrieve_members_params.rb +2 -2
  84. data/lib/x_twitter_scraper/models/x/list_retrieve_tweets_params.rb +2 -2
  85. data/lib/x_twitter_scraper/models/x/media_upload_params.rb +2 -2
  86. data/lib/x_twitter_scraper/models/x/profile_update_avatar_params.rb +2 -2
  87. data/lib/x_twitter_scraper/models/x/profile_update_banner_params.rb +2 -2
  88. data/lib/x_twitter_scraper/models/x/profile_update_params.rb +2 -2
  89. data/lib/x_twitter_scraper/models/x/search_tweet.rb +20 -1
  90. data/lib/x_twitter_scraper/models/x/tweet_author.rb +2 -0
  91. data/lib/x_twitter_scraper/models/x/tweet_delete_params.rb +6 -6
  92. data/lib/x_twitter_scraper/models/x/tweet_detail.rb +109 -1
  93. data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_params.rb +2 -2
  94. data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +8 -8
  95. data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +6 -6
  96. data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_params.rb +2 -2
  97. data/lib/x_twitter_scraper/models/x/tweet_get_thread_params.rb +2 -2
  98. data/lib/x_twitter_scraper/models/x/tweet_retrieve_params.rb +4 -4
  99. data/lib/x_twitter_scraper/models/x/tweet_retrieve_response.rb +9 -100
  100. data/lib/x_twitter_scraper/models/x/tweet_search_params.rb +2 -2
  101. data/lib/x_twitter_scraper/models/x/tweets/like_create_params.rb +6 -6
  102. data/lib/x_twitter_scraper/models/x/tweets/like_delete_params.rb +6 -6
  103. data/lib/x_twitter_scraper/models/x/tweets/retweet_create_params.rb +6 -6
  104. data/lib/x_twitter_scraper/models/x/tweets/retweet_delete_params.rb +6 -6
  105. data/lib/x_twitter_scraper/models/x/user_profile.rb +3 -0
  106. data/lib/x_twitter_scraper/models/x/user_retrieve_followers_params.rb +2 -2
  107. data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rb +2 -2
  108. data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +4 -4
  109. data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +2 -2
  110. data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +2 -2
  111. data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +6 -6
  112. data/lib/x_twitter_scraper/models/x/user_retrieve_params.rb +4 -4
  113. data/lib/x_twitter_scraper/models/x/user_retrieve_search_params.rb +4 -4
  114. data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +2 -2
  115. data/lib/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rb +2 -2
  116. data/lib/x_twitter_scraper/models/x/users/follow_create_params.rb +6 -6
  117. data/lib/x_twitter_scraper/models/x/users/follow_delete_all_params.rb +6 -6
  118. data/lib/x_twitter_scraper/models/x/x_account.rb +2 -0
  119. data/lib/x_twitter_scraper/models/x/x_account_detail.rb +3 -0
  120. data/lib/x_twitter_scraper/models/x_get_article_response.rb +5 -38
  121. data/lib/x_twitter_scraper/models/x_get_home_timeline_params.rb +2 -2
  122. data/lib/x_twitter_scraper/models/x_get_notifications_params.rb +2 -2
  123. data/lib/x_twitter_scraper/models/x_get_trends_response.rb +57 -0
  124. data/lib/x_twitter_scraper/resources/drafts.rb +5 -5
  125. data/lib/x_twitter_scraper/resources/draws.rb +3 -3
  126. data/lib/x_twitter_scraper/resources/events.rb +6 -6
  127. data/lib/x_twitter_scraper/resources/extractions.rb +12 -12
  128. data/lib/x_twitter_scraper/resources/integrations.rb +11 -11
  129. data/lib/x_twitter_scraper/resources/monitors.rb +6 -6
  130. data/lib/x_twitter_scraper/resources/radar.rb +1 -1
  131. data/lib/x_twitter_scraper/resources/styles.rb +22 -22
  132. data/lib/x_twitter_scraper/resources/support/tickets.rb +8 -3
  133. data/lib/x_twitter_scraper/resources/trends.rb +2 -2
  134. data/lib/x_twitter_scraper/resources/webhooks.rb +4 -4
  135. data/lib/x_twitter_scraper/resources/x/accounts.rb +24 -4
  136. data/lib/x_twitter_scraper/resources/x/bookmarks.rb +3 -3
  137. data/lib/x_twitter_scraper/resources/x/communities/join.rb +6 -6
  138. data/lib/x_twitter_scraper/resources/x/communities/tweets.rb +30 -5
  139. data/lib/x_twitter_scraper/resources/x/communities.rb +12 -12
  140. data/lib/x_twitter_scraper/resources/x/dm.rb +2 -2
  141. data/lib/x_twitter_scraper/resources/x/lists.rb +11 -11
  142. data/lib/x_twitter_scraper/resources/x/media.rb +1 -1
  143. data/lib/x_twitter_scraper/resources/x/profile.rb +3 -3
  144. data/lib/x_twitter_scraper/resources/x/tweets/like.rb +10 -10
  145. data/lib/x_twitter_scraper/resources/x/tweets/retweet.rb +10 -10
  146. data/lib/x_twitter_scraper/resources/x/tweets.rb +46 -39
  147. data/lib/x_twitter_scraper/resources/x/users/follow.rb +10 -10
  148. data/lib/x_twitter_scraper/resources/x/users.rb +45 -45
  149. data/lib/x_twitter_scraper/resources/x.rb +13 -7
  150. data/lib/x_twitter_scraper/version.rb +1 -1
  151. data/lib/x_twitter_scraper.rb +4 -28
  152. data/rbi/x_twitter_scraper/models/api_key.rbi +1 -0
  153. data/rbi/x_twitter_scraper/models/api_key_list_response.rbi +5 -78
  154. data/rbi/x_twitter_scraper/models/delivery.rbi +1 -0
  155. data/rbi/x_twitter_scraper/models/draft.rbi +1 -0
  156. data/rbi/x_twitter_scraper/models/draft_detail.rbi +1 -0
  157. data/rbi/x_twitter_scraper/models/draft_list_params.rbi +2 -0
  158. data/rbi/x_twitter_scraper/models/draft_list_response.rbi +3 -63
  159. data/rbi/x_twitter_scraper/models/draw_detail.rbi +1 -0
  160. data/rbi/x_twitter_scraper/models/draw_export_params.rbi +3 -0
  161. data/rbi/x_twitter_scraper/models/draw_list_item.rbi +1 -0
  162. data/rbi/x_twitter_scraper/models/draw_list_params.rbi +4 -2
  163. data/rbi/x_twitter_scraper/models/draw_list_response.rbi +3 -76
  164. data/rbi/x_twitter_scraper/models/draw_retrieve_response.rbi +13 -178
  165. data/rbi/x_twitter_scraper/models/draw_run_response.rbi +3 -52
  166. data/rbi/x_twitter_scraper/models/error.rbi +1 -0
  167. data/rbi/x_twitter_scraper/models/event.rbi +14 -31
  168. data/rbi/x_twitter_scraper/models/event_detail.rbi +6 -47
  169. data/rbi/x_twitter_scraper/models/event_list_params.rbi +12 -63
  170. data/rbi/x_twitter_scraper/models/event_list_response.rbi +3 -122
  171. data/rbi/x_twitter_scraper/models/event_type.rbi +1 -0
  172. data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +9 -6
  173. data/rbi/x_twitter_scraper/models/extraction_export_results_params.rbi +8 -1
  174. data/rbi/x_twitter_scraper/models/extraction_job.rbi +8 -4
  175. data/rbi/x_twitter_scraper/models/extraction_list_params.rbi +10 -2
  176. data/rbi/x_twitter_scraper/models/extraction_list_response.rbi +3 -254
  177. data/rbi/x_twitter_scraper/models/extraction_retrieve_params.rbi +4 -2
  178. data/rbi/x_twitter_scraper/models/extraction_run_params.rbi +3 -0
  179. data/rbi/x_twitter_scraper/models/extraction_run_response.rbi +12 -40
  180. data/rbi/x_twitter_scraper/models/integration.rbi +12 -81
  181. data/rbi/x_twitter_scraper/models/integration_create_params.rbi +9 -96
  182. data/rbi/x_twitter_scraper/models/integration_delivery.rbi +1 -0
  183. data/rbi/x_twitter_scraper/models/integration_list_deliveries_params.rbi +7 -1
  184. data/rbi/x_twitter_scraper/models/integration_list_deliveries_response.rbi +3 -119
  185. data/rbi/x_twitter_scraper/models/integration_list_response.rbi +3 -227
  186. data/rbi/x_twitter_scraper/models/integration_update_params.rbi +6 -74
  187. data/rbi/x_twitter_scraper/models/monitor.rbi +6 -48
  188. data/rbi/x_twitter_scraper/models/monitor_create_params.rbi +5 -62
  189. data/rbi/x_twitter_scraper/models/monitor_create_response.rbi +12 -70
  190. data/rbi/x_twitter_scraper/models/monitor_list_response.rbi +3 -141
  191. data/rbi/x_twitter_scraper/models/monitor_update_params.rbi +12 -69
  192. data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +4 -169
  193. data/rbi/x_twitter_scraper/models/paginated_users.rbi +4 -120
  194. data/rbi/x_twitter_scraper/models/radar_item.rbi +1 -0
  195. data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbi +78 -4
  196. data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbi +3 -108
  197. data/rbi/x_twitter_scraper/models/style_compare_response.rbi +16 -259
  198. data/rbi/x_twitter_scraper/models/style_delete_params.rbi +4 -4
  199. data/rbi/x_twitter_scraper/models/style_get_performance_params.rbi +4 -4
  200. data/rbi/x_twitter_scraper/models/style_list_response.rbi +3 -54
  201. data/rbi/x_twitter_scraper/models/style_profile.rbi +1 -0
  202. data/rbi/x_twitter_scraper/models/style_profile_summary.rbi +1 -0
  203. data/rbi/x_twitter_scraper/models/style_retrieve_params.rbi +4 -4
  204. data/rbi/x_twitter_scraper/models/style_update_params.rbi +4 -4
  205. data/rbi/x_twitter_scraper/models/trend_list_params.rbi +2 -0
  206. data/rbi/x_twitter_scraper/models/webhook.rbi +13 -49
  207. data/rbi/x_twitter_scraper/models/webhook_create_params.rbi +5 -62
  208. data/rbi/x_twitter_scraper/models/webhook_create_response.rbi +12 -70
  209. data/rbi/x_twitter_scraper/models/webhook_list_deliveries_response.rbi +5 -105
  210. data/rbi/x_twitter_scraper/models/webhook_list_response.rbi +5 -134
  211. data/rbi/x_twitter_scraper/models/webhook_update_params.rbi +6 -68
  212. data/rbi/x_twitter_scraper/models/winner.rbi +1 -0
  213. data/rbi/x_twitter_scraper/models/x/account_bulk_retry_params.rbi +34 -0
  214. data/rbi/x_twitter_scraper/models/x/account_bulk_retry_response.rbi +32 -0
  215. data/rbi/x_twitter_scraper/models/x/account_list_response.rbi +3 -68
  216. data/rbi/x_twitter_scraper/models/x/account_reauth_params.rbi +4 -4
  217. data/rbi/x_twitter_scraper/models/x/bookmark_list_params.rbi +2 -2
  218. data/rbi/x_twitter_scraper/models/x/communities/join_create_params.rbi +2 -2
  219. data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_params.rbi +2 -2
  220. data/rbi/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbi +59 -0
  221. data/rbi/x_twitter_scraper/models/x/communities/tweet_list_params.rbi +6 -6
  222. data/rbi/x_twitter_scraper/models/x/community_action_result.rbi +1 -0
  223. data/rbi/x_twitter_scraper/models/x/community_create_params.rbi +2 -2
  224. data/rbi/x_twitter_scraper/models/x/community_delete_params.rbi +2 -2
  225. data/rbi/x_twitter_scraper/models/x/community_retrieve_info_response.rbi +6 -6
  226. data/rbi/x_twitter_scraper/models/x/community_retrieve_moderators_params.rbi +2 -2
  227. data/rbi/x_twitter_scraper/models/x/community_retrieve_search_params.rbi +2 -2
  228. data/rbi/x_twitter_scraper/models/x/dm_retrieve_history_params.rbi +2 -2
  229. data/rbi/x_twitter_scraper/models/x/dm_send_params.rbi +2 -2
  230. data/rbi/x_twitter_scraper/models/x/list_retrieve_followers_params.rbi +2 -2
  231. data/rbi/x_twitter_scraper/models/x/list_retrieve_members_params.rbi +2 -2
  232. data/rbi/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbi +2 -2
  233. data/rbi/x_twitter_scraper/models/x/media_upload_params.rbi +2 -2
  234. data/rbi/x_twitter_scraper/models/x/profile_update_avatar_params.rbi +2 -2
  235. data/rbi/x_twitter_scraper/models/x/profile_update_banner_params.rbi +2 -2
  236. data/rbi/x_twitter_scraper/models/x/profile_update_params.rbi +2 -2
  237. data/rbi/x_twitter_scraper/models/x/search_tweet.rbi +12 -0
  238. data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +1 -0
  239. data/rbi/x_twitter_scraper/models/x/tweet_delete_params.rbi +6 -6
  240. data/rbi/x_twitter_scraper/models/x/tweet_detail.rbi +195 -3
  241. data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbi +2 -2
  242. data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +8 -8
  243. data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +6 -6
  244. data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbi +2 -2
  245. data/rbi/x_twitter_scraper/models/x/tweet_get_thread_params.rbi +2 -2
  246. data/rbi/x_twitter_scraper/models/x/tweet_retrieve_params.rbi +4 -7
  247. data/rbi/x_twitter_scraper/models/x/tweet_retrieve_response.rbi +16 -171
  248. data/rbi/x_twitter_scraper/models/x/tweet_search_params.rbi +2 -2
  249. data/rbi/x_twitter_scraper/models/x/tweets/like_create_params.rbi +6 -6
  250. data/rbi/x_twitter_scraper/models/x/tweets/like_delete_params.rbi +6 -6
  251. data/rbi/x_twitter_scraper/models/x/tweets/retweet_create_params.rbi +6 -6
  252. data/rbi/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbi +6 -6
  253. data/rbi/x_twitter_scraper/models/x/user_profile.rbi +1 -0
  254. data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_params.rbi +2 -2
  255. data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbi +2 -2
  256. data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +4 -4
  257. data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +2 -2
  258. data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +2 -2
  259. data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +6 -6
  260. data/rbi/x_twitter_scraper/models/x/user_retrieve_params.rbi +4 -7
  261. data/rbi/x_twitter_scraper/models/x/user_retrieve_search_params.rbi +4 -4
  262. data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +2 -2
  263. data/rbi/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbi +2 -2
  264. data/rbi/x_twitter_scraper/models/x/users/follow_create_params.rbi +6 -6
  265. data/rbi/x_twitter_scraper/models/x/users/follow_delete_all_params.rbi +6 -6
  266. data/rbi/x_twitter_scraper/models/x/x_account.rbi +1 -0
  267. data/rbi/x_twitter_scraper/models/x/x_account_detail.rbi +1 -0
  268. data/rbi/x_twitter_scraper/models/x_get_article_response.rbi +10 -71
  269. data/rbi/x_twitter_scraper/models/x_get_home_timeline_params.rbi +2 -2
  270. data/rbi/x_twitter_scraper/models/x_get_notifications_params.rbi +2 -2
  271. data/rbi/x_twitter_scraper/models/x_get_trends_response.rbi +102 -0
  272. data/rbi/x_twitter_scraper/resources/drafts.rbi +3 -2
  273. data/rbi/x_twitter_scraper/resources/draws.rbi +3 -1
  274. data/rbi/x_twitter_scraper/resources/events.rbi +6 -3
  275. data/rbi/x_twitter_scraper/resources/extractions.rbi +12 -5
  276. data/rbi/x_twitter_scraper/resources/integrations.rbi +10 -13
  277. data/rbi/x_twitter_scraper/resources/monitors.rbi +6 -6
  278. data/rbi/x_twitter_scraper/resources/radar.rbi +2 -1
  279. data/rbi/x_twitter_scraper/resources/styles.rbi +15 -15
  280. data/rbi/x_twitter_scraper/resources/support/tickets.rbi +17 -3
  281. data/rbi/x_twitter_scraper/resources/trends.rbi +2 -1
  282. data/rbi/x_twitter_scraper/resources/webhooks.rbi +5 -5
  283. data/rbi/x_twitter_scraper/resources/x/accounts.rbi +13 -3
  284. data/rbi/x_twitter_scraper/resources/x/bookmarks.rbi +2 -2
  285. data/rbi/x_twitter_scraper/resources/x/communities/join.rbi +4 -8
  286. data/rbi/x_twitter_scraper/resources/x/communities/tweets.rbi +21 -4
  287. data/rbi/x_twitter_scraper/resources/x/communities.rbi +9 -9
  288. data/rbi/x_twitter_scraper/resources/x/dm.rbi +2 -2
  289. data/rbi/x_twitter_scraper/resources/x/lists.rbi +8 -8
  290. data/rbi/x_twitter_scraper/resources/x/media.rbi +1 -1
  291. data/rbi/x_twitter_scraper/resources/x/profile.rbi +3 -3
  292. data/rbi/x_twitter_scraper/resources/x/tweets/like.rbi +8 -6
  293. data/rbi/x_twitter_scraper/resources/x/tweets/retweet.rbi +8 -6
  294. data/rbi/x_twitter_scraper/resources/x/tweets.rbi +33 -28
  295. data/rbi/x_twitter_scraper/resources/x/users/follow.rbi +6 -6
  296. data/rbi/x_twitter_scraper/resources/x/users.rbi +33 -34
  297. data/rbi/x_twitter_scraper/resources/x.rbi +11 -5
  298. data/sig/x_twitter_scraper/models/api_key_list_response.rbs +4 -53
  299. data/sig/x_twitter_scraper/models/draft_list_response.rbs +4 -45
  300. data/sig/x_twitter_scraper/models/draw_list_response.rbs +4 -53
  301. data/sig/x_twitter_scraper/models/draw_retrieve_response.rbs +8 -124
  302. data/sig/x_twitter_scraper/models/draw_run_response.rbs +4 -36
  303. data/sig/x_twitter_scraper/models/event.rbs +4 -25
  304. data/sig/x_twitter_scraper/models/event_detail.rbs +4 -25
  305. data/sig/x_twitter_scraper/models/event_list_params.rbs +6 -27
  306. data/sig/x_twitter_scraper/models/event_list_response.rbs +4 -67
  307. data/sig/x_twitter_scraper/models/extraction_list_response.rbs +4 -109
  308. data/sig/x_twitter_scraper/models/extraction_run_response.rbs +5 -15
  309. data/sig/x_twitter_scraper/models/integration.rbs +9 -40
  310. data/sig/x_twitter_scraper/models/integration_create_params.rbs +8 -39
  311. data/sig/x_twitter_scraper/models/integration_list_deliveries_response.rbs +4 -78
  312. data/sig/x_twitter_scraper/models/integration_list_response.rbs +4 -114
  313. data/sig/x_twitter_scraper/models/integration_update_params.rbs +6 -27
  314. data/sig/x_twitter_scraper/models/monitor.rbs +4 -25
  315. data/sig/x_twitter_scraper/models/monitor_create_params.rbs +4 -25
  316. data/sig/x_twitter_scraper/models/monitor_create_response.rbs +4 -25
  317. data/sig/x_twitter_scraper/models/monitor_list_response.rbs +4 -70
  318. data/sig/x_twitter_scraper/models/monitor_update_params.rbs +6 -27
  319. data/sig/x_twitter_scraper/models/paginated_tweets.rbs +4 -113
  320. data/sig/x_twitter_scraper/models/paginated_users.rbs +4 -87
  321. data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbs +30 -5
  322. data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbs +4 -70
  323. data/sig/x_twitter_scraper/models/style_compare_response.rbs +8 -154
  324. data/sig/x_twitter_scraper/models/style_delete_params.rbs +4 -4
  325. data/sig/x_twitter_scraper/models/style_get_performance_params.rbs +4 -4
  326. data/sig/x_twitter_scraper/models/style_list_response.rbs +4 -38
  327. data/sig/x_twitter_scraper/models/style_retrieve_params.rbs +4 -4
  328. data/sig/x_twitter_scraper/models/style_update_params.rbs +4 -4
  329. data/sig/x_twitter_scraper/models/webhook.rbs +4 -25
  330. data/sig/x_twitter_scraper/models/webhook_create_params.rbs +4 -28
  331. data/sig/x_twitter_scraper/models/webhook_create_response.rbs +4 -25
  332. data/sig/x_twitter_scraper/models/webhook_list_deliveries_response.rbs +4 -68
  333. data/sig/x_twitter_scraper/models/webhook_list_response.rbs +4 -69
  334. data/sig/x_twitter_scraper/models/webhook_update_params.rbs +6 -27
  335. data/sig/x_twitter_scraper/models/x/account_bulk_retry_params.rbs +19 -0
  336. data/sig/x_twitter_scraper/models/x/account_bulk_retry_response.rbs +15 -0
  337. data/sig/x_twitter_scraper/models/x/account_list_response.rbs +4 -45
  338. data/sig/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbs +34 -0
  339. data/sig/x_twitter_scraper/models/x/search_tweet.rbs +7 -0
  340. data/sig/x_twitter_scraper/models/x/tweet_delete_params.rbs +4 -4
  341. data/sig/x_twitter_scraper/models/x/tweet_detail.rbs +108 -3
  342. data/sig/x_twitter_scraper/models/x/tweet_retrieve_params.rbs +4 -5
  343. data/sig/x_twitter_scraper/models/x/tweet_retrieve_response.rbs +10 -108
  344. data/sig/x_twitter_scraper/models/x/tweets/like_create_params.rbs +4 -4
  345. data/sig/x_twitter_scraper/models/x/tweets/like_delete_params.rbs +4 -4
  346. data/sig/x_twitter_scraper/models/x/tweets/retweet_create_params.rbs +4 -4
  347. data/sig/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbs +4 -4
  348. data/sig/x_twitter_scraper/models/x/user_retrieve_params.rbs +4 -5
  349. data/sig/x_twitter_scraper/models/x/users/follow_create_params.rbs +4 -4
  350. data/sig/x_twitter_scraper/models/x/users/follow_delete_all_params.rbs +4 -4
  351. data/sig/x_twitter_scraper/models/x_get_article_response.rbs +6 -45
  352. data/sig/x_twitter_scraper/models/x_get_trends_response.rbs +63 -0
  353. data/sig/x_twitter_scraper/resources/drafts.rbs +2 -2
  354. data/sig/x_twitter_scraper/resources/events.rbs +2 -2
  355. data/sig/x_twitter_scraper/resources/integrations.rbs +6 -6
  356. data/sig/x_twitter_scraper/resources/monitors.rbs +4 -4
  357. data/sig/x_twitter_scraper/resources/radar.rbs +1 -1
  358. data/sig/x_twitter_scraper/resources/styles.rbs +7 -7
  359. data/sig/x_twitter_scraper/resources/webhooks.rbs +3 -3
  360. data/sig/x_twitter_scraper/resources/x/accounts.rbs +5 -1
  361. data/sig/x_twitter_scraper/resources/x/bookmarks.rbs +1 -1
  362. data/sig/x_twitter_scraper/resources/x/communities/join.rbs +2 -2
  363. data/sig/x_twitter_scraper/resources/x/communities/tweets.rbs +7 -1
  364. data/sig/x_twitter_scraper/resources/x/communities.rbs +3 -3
  365. data/sig/x_twitter_scraper/resources/x/lists.rbs +3 -3
  366. data/sig/x_twitter_scraper/resources/x/tweets/like.rbs +2 -2
  367. data/sig/x_twitter_scraper/resources/x/tweets/retweet.rbs +2 -2
  368. data/sig/x_twitter_scraper/resources/x/tweets.rbs +9 -9
  369. data/sig/x_twitter_scraper/resources/x/users/follow.rbs +2 -2
  370. data/sig/x_twitter_scraper/resources/x/users.rbs +12 -12
  371. data/sig/x_twitter_scraper/resources/x.rbs +4 -2
  372. metadata +17 -88
  373. data/lib/x_twitter_scraper/models/draft_create_response.rb +0 -46
  374. data/lib/x_twitter_scraper/models/draft_retrieve_response.rb +0 -46
  375. data/lib/x_twitter_scraper/models/event_retrieve_response.rb +0 -74
  376. data/lib/x_twitter_scraper/models/integration_create_response.rb +0 -114
  377. data/lib/x_twitter_scraper/models/integration_retrieve_response.rb +0 -114
  378. data/lib/x_twitter_scraper/models/integration_update_response.rb +0 -114
  379. data/lib/x_twitter_scraper/models/monitor_retrieve_response.rb +0 -62
  380. data/lib/x_twitter_scraper/models/monitor_update_response.rb +0 -62
  381. data/lib/x_twitter_scraper/models/style_analyze_response.rb +0 -69
  382. data/lib/x_twitter_scraper/models/style_retrieve_response.rb +0 -69
  383. data/lib/x_twitter_scraper/models/style_update_response.rb +0 -69
  384. data/lib/x_twitter_scraper/models/webhook_update_response.rb +0 -56
  385. data/lib/x_twitter_scraper/models/x/account_retrieve_response.rb +0 -60
  386. data/lib/x_twitter_scraper/models/x/bookmark_list_response.rb +0 -124
  387. data/lib/x_twitter_scraper/models/x/communities/join_create_response.rb +0 -32
  388. data/lib/x_twitter_scraper/models/x/communities/join_delete_all_response.rb +0 -32
  389. data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_response.rb +0 -101
  390. data/lib/x_twitter_scraper/models/x/tweet_get_quotes_response.rb +0 -124
  391. data/lib/x_twitter_scraper/models/x/tweet_get_replies_response.rb +0 -124
  392. data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_response.rb +0 -101
  393. data/lib/x_twitter_scraper/models/x/tweet_get_thread_response.rb +0 -124
  394. data/lib/x_twitter_scraper/models/x/tweet_search_response.rb +0 -124
  395. data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rb +0 -101
  396. data/lib/x_twitter_scraper/models/x/user_retrieve_likes_response.rb +0 -124
  397. data/lib/x_twitter_scraper/models/x/user_retrieve_media_response.rb +0 -124
  398. data/lib/x_twitter_scraper/models/x/user_retrieve_response.rb +0 -78
  399. data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_response.rb +0 -124
  400. data/lib/x_twitter_scraper/models/x_get_home_timeline_response.rb +0 -122
  401. data/rbi/x_twitter_scraper/models/draft_create_response.rbi +0 -67
  402. data/rbi/x_twitter_scraper/models/draft_retrieve_response.rbi +0 -67
  403. data/rbi/x_twitter_scraper/models/event_retrieve_response.rbi +0 -135
  404. data/rbi/x_twitter_scraper/models/integration_create_response.rbi +0 -215
  405. data/rbi/x_twitter_scraper/models/integration_retrieve_response.rbi +0 -215
  406. data/rbi/x_twitter_scraper/models/integration_update_response.rbi +0 -215
  407. data/rbi/x_twitter_scraper/models/monitor_retrieve_response.rbi +0 -134
  408. data/rbi/x_twitter_scraper/models/monitor_update_response.rbi +0 -134
  409. data/rbi/x_twitter_scraper/models/style_analyze_response.rbi +0 -120
  410. data/rbi/x_twitter_scraper/models/style_retrieve_response.rbi +0 -120
  411. data/rbi/x_twitter_scraper/models/style_update_response.rbi +0 -120
  412. data/rbi/x_twitter_scraper/models/webhook_update_response.rbi +0 -122
  413. data/rbi/x_twitter_scraper/models/x/account_retrieve_response.rbi +0 -91
  414. data/rbi/x_twitter_scraper/models/x/bookmark_list_response.rbi +0 -231
  415. data/rbi/x_twitter_scraper/models/x/communities/join_create_response.rbi +0 -50
  416. data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_response.rbi +0 -50
  417. data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_response.rbi +0 -177
  418. data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_response.rbi +0 -231
  419. data/rbi/x_twitter_scraper/models/x/tweet_get_replies_response.rbi +0 -231
  420. data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_response.rbi +0 -177
  421. data/rbi/x_twitter_scraper/models/x/tweet_get_thread_response.rbi +0 -231
  422. data/rbi/x_twitter_scraper/models/x/tweet_search_response.rbi +0 -229
  423. data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rbi +0 -177
  424. data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_response.rbi +0 -233
  425. data/rbi/x_twitter_scraper/models/x/user_retrieve_media_response.rbi +0 -233
  426. data/rbi/x_twitter_scraper/models/x/user_retrieve_response.rbi +0 -124
  427. data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_response.rbi +0 -233
  428. data/rbi/x_twitter_scraper/models/x_get_home_timeline_response.rbi +0 -227
  429. data/sig/x_twitter_scraper/models/draft_create_response.rbs +0 -49
  430. data/sig/x_twitter_scraper/models/draft_retrieve_response.rbs +0 -49
  431. data/sig/x_twitter_scraper/models/event_retrieve_response.rbs +0 -73
  432. data/sig/x_twitter_scraper/models/integration_create_response.rbs +0 -109
  433. data/sig/x_twitter_scraper/models/integration_retrieve_response.rbs +0 -109
  434. data/sig/x_twitter_scraper/models/integration_update_response.rbs +0 -109
  435. data/sig/x_twitter_scraper/models/monitor_retrieve_response.rbs +0 -66
  436. data/sig/x_twitter_scraper/models/monitor_update_response.rbs +0 -66
  437. data/sig/x_twitter_scraper/models/style_analyze_response.rbs +0 -76
  438. data/sig/x_twitter_scraper/models/style_retrieve_response.rbs +0 -76
  439. data/sig/x_twitter_scraper/models/style_update_response.rbs +0 -76
  440. data/sig/x_twitter_scraper/models/webhook_update_response.rbs +0 -61
  441. data/sig/x_twitter_scraper/models/x/account_retrieve_response.rbs +0 -63
  442. data/sig/x_twitter_scraper/models/x/bookmark_list_response.rbs +0 -141
  443. data/sig/x_twitter_scraper/models/x/communities/join_create_response.rbs +0 -30
  444. data/sig/x_twitter_scraper/models/x/communities/join_delete_all_response.rbs +0 -30
  445. data/sig/x_twitter_scraper/models/x/tweet_get_favoriters_response.rbs +0 -115
  446. data/sig/x_twitter_scraper/models/x/tweet_get_quotes_response.rbs +0 -141
  447. data/sig/x_twitter_scraper/models/x/tweet_get_replies_response.rbs +0 -141
  448. data/sig/x_twitter_scraper/models/x/tweet_get_retweeters_response.rbs +0 -115
  449. data/sig/x_twitter_scraper/models/x/tweet_get_thread_response.rbs +0 -141
  450. data/sig/x_twitter_scraper/models/x/tweet_search_response.rbs +0 -141
  451. data/sig/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rbs +0 -115
  452. data/sig/x_twitter_scraper/models/x/user_retrieve_likes_response.rbs +0 -141
  453. data/sig/x_twitter_scraper/models/x/user_retrieve_media_response.rbs +0 -141
  454. data/sig/x_twitter_scraper/models/x/user_retrieve_response.rbs +0 -88
  455. data/sig/x_twitter_scraper/models/x/user_retrieve_tweets_response.rbs +0 -141
  456. data/sig/x_twitter_scraper/models/x_get_home_timeline_response.rbs +0 -139
@@ -14,12 +14,11 @@ module XTwitterScraper
14
14
  required :config, -> { XTwitterScraper::IntegrationCreateParams::Config }
15
15
 
16
16
  # @!attribute event_types
17
+ # Array of event types to subscribe to.
17
18
  #
18
- # @return [Array<Symbol, XTwitterScraper::Models::IntegrationCreateParams::EventType>]
19
+ # @return [Array<Symbol, XTwitterScraper::Models::EventType>]
19
20
  required :event_types,
20
- -> {
21
- XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::IntegrationCreateParams::EventType]
22
- },
21
+ -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] },
23
22
  api_name: :eventTypes
24
23
 
25
24
  # @!attribute name
@@ -29,17 +28,17 @@ module XTwitterScraper
29
28
 
30
29
  # @!attribute type
31
30
  #
32
- # @return [Symbol, XTwitterScraper::Models::IntegrationCreateParams::Type]
33
- required :type, enum: -> { XTwitterScraper::IntegrationCreateParams::Type }
31
+ # @return [Symbol, :telegram]
32
+ required :type, const: :telegram
34
33
 
35
- # @!method initialize(config:, event_types:, name:, type:, request_options: {})
34
+ # @!method initialize(config:, event_types:, name:, type: :telegram, request_options: {})
36
35
  # @param config [XTwitterScraper::Models::IntegrationCreateParams::Config] Integration config (e.g. Telegram chatId)
37
36
  #
38
- # @param event_types [Array<Symbol, XTwitterScraper::Models::IntegrationCreateParams::EventType>]
37
+ # @param event_types [Array<Symbol, XTwitterScraper::Models::EventType>] Array of event types to subscribe to.
39
38
  #
40
39
  # @param name [String]
41
40
  #
42
- # @param type [Symbol, XTwitterScraper::Models::IntegrationCreateParams::Type]
41
+ # @param type [Symbol, :telegram]
43
42
  #
44
43
  # @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
45
44
 
@@ -54,29 +53,6 @@ module XTwitterScraper
54
53
  #
55
54
  # @param chat_id [String]
56
55
  end
57
-
58
- module EventType
59
- extend XTwitterScraper::Internal::Type::Enum
60
-
61
- TWEET_NEW = :"tweet.new"
62
- TWEET_REPLY = :"tweet.reply"
63
- TWEET_RETWEET = :"tweet.retweet"
64
- TWEET_QUOTE = :"tweet.quote"
65
- FOLLOWER_GAINED = :"follower.gained"
66
- FOLLOWER_LOST = :"follower.lost"
67
-
68
- # @!method self.values
69
- # @return [Array<Symbol>]
70
- end
71
-
72
- module Type
73
- extend XTwitterScraper::Internal::Type::Enum
74
-
75
- TELEGRAM = :telegram
76
-
77
- # @!method self.values
78
- # @return [Array<Symbol>]
79
- end
80
56
  end
81
57
  end
82
58
  end
@@ -54,6 +54,8 @@ module XTwitterScraper
54
54
  optional :source_type, String, api_name: :sourceType
55
55
 
56
56
  # @!method initialize(id:, attempts:, created_at:, event_type:, status:, delivered_at: nil, last_error: nil, last_status_code: nil, source_id: nil, source_type: nil)
57
+ # Integration delivery attempt record with status and retry count.
58
+ #
57
59
  # @param id [String]
58
60
  # @param attempts [Integer]
59
61
  # @param created_at [Time]
@@ -13,13 +13,16 @@ module XTwitterScraper
13
13
  required :id, String
14
14
 
15
15
  # @!attribute limit
16
+ # Maximum number of items to return (1-100, default 50)
16
17
  #
17
18
  # @return [Integer, nil]
18
19
  optional :limit, Integer
19
20
 
20
21
  # @!method initialize(id:, limit: nil, request_options: {})
21
22
  # @param id [String]
22
- # @param limit [Integer]
23
+ #
24
+ # @param limit [Integer] Maximum number of items to return (1-100, default 50)
25
+ #
23
26
  # @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
24
27
  end
25
28
  end
@@ -6,76 +6,12 @@ module XTwitterScraper
6
6
  class IntegrationListDeliveriesResponse < XTwitterScraper::Internal::Type::BaseModel
7
7
  # @!attribute deliveries
8
8
  #
9
- # @return [Array<XTwitterScraper::Models::IntegrationListDeliveriesResponse::Delivery>]
9
+ # @return [Array<XTwitterScraper::Models::IntegrationDelivery>]
10
10
  required :deliveries,
11
- -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::IntegrationListDeliveriesResponse::Delivery] }
11
+ -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::IntegrationDelivery] }
12
12
 
13
13
  # @!method initialize(deliveries:)
14
- # @param deliveries [Array<XTwitterScraper::Models::IntegrationListDeliveriesResponse::Delivery>]
15
-
16
- class Delivery < XTwitterScraper::Internal::Type::BaseModel
17
- # @!attribute id
18
- #
19
- # @return [String]
20
- required :id, String
21
-
22
- # @!attribute attempts
23
- #
24
- # @return [Integer]
25
- required :attempts, Integer
26
-
27
- # @!attribute created_at
28
- #
29
- # @return [Time]
30
- required :created_at, Time, api_name: :createdAt
31
-
32
- # @!attribute event_type
33
- #
34
- # @return [String]
35
- required :event_type, String, api_name: :eventType
36
-
37
- # @!attribute status
38
- #
39
- # @return [String]
40
- required :status, String
41
-
42
- # @!attribute delivered_at
43
- #
44
- # @return [Time, nil]
45
- optional :delivered_at, Time, api_name: :deliveredAt
46
-
47
- # @!attribute last_error
48
- #
49
- # @return [String, nil]
50
- optional :last_error, String, api_name: :lastError
51
-
52
- # @!attribute last_status_code
53
- #
54
- # @return [Integer, nil]
55
- optional :last_status_code, Integer, api_name: :lastStatusCode
56
-
57
- # @!attribute source_id
58
- #
59
- # @return [String, nil]
60
- optional :source_id, String, api_name: :sourceId
61
-
62
- # @!attribute source_type
63
- #
64
- # @return [String, nil]
65
- optional :source_type, String, api_name: :sourceType
66
-
67
- # @!method initialize(id:, attempts:, created_at:, event_type:, status:, delivered_at: nil, last_error: nil, last_status_code: nil, source_id: nil, source_type: nil)
68
- # @param id [String]
69
- # @param attempts [Integer]
70
- # @param created_at [Time]
71
- # @param event_type [String]
72
- # @param status [String]
73
- # @param delivered_at [Time]
74
- # @param last_error [String]
75
- # @param last_status_code [Integer]
76
- # @param source_id [String]
77
- # @param source_type [String]
78
- end
14
+ # @param deliveries [Array<XTwitterScraper::Models::IntegrationDelivery>]
79
15
  end
80
16
  end
81
17
  end
@@ -6,120 +6,11 @@ module XTwitterScraper
6
6
  class IntegrationListResponse < XTwitterScraper::Internal::Type::BaseModel
7
7
  # @!attribute integrations
8
8
  #
9
- # @return [Array<XTwitterScraper::Models::IntegrationListResponse::Integration>]
10
- required :integrations,
11
- -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::IntegrationListResponse::Integration] }
9
+ # @return [Array<XTwitterScraper::Models::Integration>]
10
+ required :integrations, -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Integration] }
12
11
 
13
12
  # @!method initialize(integrations:)
14
- # @param integrations [Array<XTwitterScraper::Models::IntegrationListResponse::Integration>]
15
-
16
- class Integration < XTwitterScraper::Internal::Type::BaseModel
17
- # @!attribute id
18
- #
19
- # @return [String]
20
- required :id, String
21
-
22
- # @!attribute config
23
- # Integration config — shape varies by type (JSON)
24
- #
25
- # @return [Hash{Symbol=>Object}]
26
- required :config, XTwitterScraper::Internal::Type::HashOf[XTwitterScraper::Internal::Type::Unknown]
27
-
28
- # @!attribute created_at
29
- #
30
- # @return [Time]
31
- required :created_at, Time, api_name: :createdAt
32
-
33
- # @!attribute event_types
34
- #
35
- # @return [Array<Symbol, XTwitterScraper::Models::IntegrationListResponse::Integration::EventType>]
36
- required :event_types,
37
- -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::Models::IntegrationListResponse::Integration::EventType] },
38
- api_name: :eventTypes
39
-
40
- # @!attribute is_active
41
- #
42
- # @return [Boolean]
43
- required :is_active, XTwitterScraper::Internal::Type::Boolean, api_name: :isActive
44
-
45
- # @!attribute name
46
- #
47
- # @return [String]
48
- required :name, String
49
-
50
- # @!attribute type
51
- #
52
- # @return [Symbol, XTwitterScraper::Models::IntegrationListResponse::Integration::Type]
53
- required :type, enum: -> { XTwitterScraper::Models::IntegrationListResponse::Integration::Type }
54
-
55
- # @!attribute filters
56
- # Event filter rules (JSON)
57
- #
58
- # @return [Hash{Symbol=>Object}, nil]
59
- optional :filters, XTwitterScraper::Internal::Type::HashOf[XTwitterScraper::Internal::Type::Unknown]
60
-
61
- # @!attribute message_template
62
- #
63
- # @return [String, nil]
64
- optional :message_template, String, api_name: :messageTemplate
65
-
66
- # @!attribute scope_all_monitors
67
- #
68
- # @return [Boolean, nil]
69
- optional :scope_all_monitors, XTwitterScraper::Internal::Type::Boolean, api_name: :scopeAllMonitors
70
-
71
- # @!attribute silent_push
72
- #
73
- # @return [Boolean, nil]
74
- optional :silent_push, XTwitterScraper::Internal::Type::Boolean, api_name: :silentPush
75
-
76
- # @!method initialize(id:, config:, created_at:, event_types:, is_active:, name:, type:, filters: nil, message_template: nil, scope_all_monitors: nil, silent_push: nil)
77
- # @param id [String]
78
- #
79
- # @param config [Hash{Symbol=>Object}] Integration config — shape varies by type (JSON)
80
- #
81
- # @param created_at [Time]
82
- #
83
- # @param event_types [Array<Symbol, XTwitterScraper::Models::IntegrationListResponse::Integration::EventType>]
84
- #
85
- # @param is_active [Boolean]
86
- #
87
- # @param name [String]
88
- #
89
- # @param type [Symbol, XTwitterScraper::Models::IntegrationListResponse::Integration::Type]
90
- #
91
- # @param filters [Hash{Symbol=>Object}] Event filter rules (JSON)
92
- #
93
- # @param message_template [String]
94
- #
95
- # @param scope_all_monitors [Boolean]
96
- #
97
- # @param silent_push [Boolean]
98
-
99
- module EventType
100
- extend XTwitterScraper::Internal::Type::Enum
101
-
102
- TWEET_NEW = :"tweet.new"
103
- TWEET_REPLY = :"tweet.reply"
104
- TWEET_RETWEET = :"tweet.retweet"
105
- TWEET_QUOTE = :"tweet.quote"
106
- FOLLOWER_GAINED = :"follower.gained"
107
- FOLLOWER_LOST = :"follower.lost"
108
-
109
- # @!method self.values
110
- # @return [Array<Symbol>]
111
- end
112
-
113
- # @see XTwitterScraper::Models::IntegrationListResponse::Integration#type
114
- module Type
115
- extend XTwitterScraper::Internal::Type::Enum
116
-
117
- TELEGRAM = :telegram
118
-
119
- # @!method self.values
120
- # @return [Array<Symbol>]
121
- end
122
- end
13
+ # @param integrations [Array<XTwitterScraper::Models::Integration>]
123
14
  end
124
15
  end
125
16
  end
@@ -13,12 +13,11 @@ module XTwitterScraper
13
13
  required :id, String
14
14
 
15
15
  # @!attribute event_types
16
+ # Array of event types to subscribe to.
16
17
  #
17
- # @return [Array<Symbol, XTwitterScraper::Models::IntegrationUpdateParams::EventType>, nil]
18
+ # @return [Array<Symbol, XTwitterScraper::Models::EventType>, nil]
18
19
  optional :event_types,
19
- -> {
20
- XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::IntegrationUpdateParams::EventType]
21
- },
20
+ -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] },
22
21
  api_name: :eventTypes
23
22
 
24
23
  # @!attribute filters
@@ -58,7 +57,7 @@ module XTwitterScraper
58
57
  # @!method initialize(id:, event_types: nil, filters: nil, is_active: nil, message_template: nil, name: nil, scope_all_monitors: nil, silent_push: nil, request_options: {})
59
58
  # @param id [String]
60
59
  #
61
- # @param event_types [Array<Symbol, XTwitterScraper::Models::IntegrationUpdateParams::EventType>]
60
+ # @param event_types [Array<Symbol, XTwitterScraper::Models::EventType>] Array of event types to subscribe to.
62
61
  #
63
62
  # @param filters [Hash{Symbol=>Object}] Event filter rules (JSON)
64
63
  #
@@ -73,20 +72,6 @@ module XTwitterScraper
73
72
  # @param silent_push [Boolean]
74
73
  #
75
74
  # @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
76
-
77
- module EventType
78
- extend XTwitterScraper::Internal::Type::Enum
79
-
80
- TWEET_NEW = :"tweet.new"
81
- TWEET_REPLY = :"tweet.reply"
82
- TWEET_RETWEET = :"tweet.retweet"
83
- TWEET_QUOTE = :"tweet.quote"
84
- FOLLOWER_GAINED = :"follower.gained"
85
- FOLLOWER_LOST = :"follower.lost"
86
-
87
- # @!method self.values
88
- # @return [Array<Symbol>]
89
- end
90
75
  end
91
76
  end
92
77
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  module XTwitterScraper
4
4
  module Models
5
+ # @see XTwitterScraper::Resources::Monitors#retrieve
5
6
  class Monitor < XTwitterScraper::Internal::Type::BaseModel
6
7
  # @!attribute id
7
8
  #
@@ -14,10 +15,11 @@ module XTwitterScraper
14
15
  required :created_at, Time, api_name: :createdAt
15
16
 
16
17
  # @!attribute event_types
18
+ # Array of event types to subscribe to.
17
19
  #
18
- # @return [Array<Symbol, XTwitterScraper::Models::Monitor::EventType>]
20
+ # @return [Array<Symbol, XTwitterScraper::Models::EventType>]
19
21
  required :event_types,
20
- -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::Monitor::EventType] },
22
+ -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] },
21
23
  api_name: :eventTypes
22
24
 
23
25
  # @!attribute is_active
@@ -36,26 +38,19 @@ module XTwitterScraper
36
38
  required :x_user_id, String, api_name: :xUserId
37
39
 
38
40
  # @!method initialize(id:, created_at:, event_types:, is_active:, username:, x_user_id:)
41
+ # Account monitor that tracks activity for a given X user.
42
+ #
39
43
  # @param id [String]
44
+ #
40
45
  # @param created_at [Time]
41
- # @param event_types [Array<Symbol, XTwitterScraper::Models::Monitor::EventType>]
46
+ #
47
+ # @param event_types [Array<Symbol, XTwitterScraper::Models::EventType>] Array of event types to subscribe to.
48
+ #
42
49
  # @param is_active [Boolean]
50
+ #
43
51
  # @param username [String]
52
+ #
44
53
  # @param x_user_id [String]
45
-
46
- module EventType
47
- extend XTwitterScraper::Internal::Type::Enum
48
-
49
- TWEET_NEW = :"tweet.new"
50
- TWEET_REPLY = :"tweet.reply"
51
- TWEET_RETWEET = :"tweet.retweet"
52
- TWEET_QUOTE = :"tweet.quote"
53
- FOLLOWER_GAINED = :"follower.gained"
54
- FOLLOWER_LOST = :"follower.lost"
55
-
56
- # @!method self.values
57
- # @return [Array<Symbol>]
58
- end
59
54
  end
60
55
  end
61
56
  end
@@ -8,12 +8,11 @@ module XTwitterScraper
8
8
  include XTwitterScraper::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute event_types
11
+ # Array of event types to subscribe to.
11
12
  #
12
- # @return [Array<Symbol, XTwitterScraper::Models::MonitorCreateParams::EventType>]
13
+ # @return [Array<Symbol, XTwitterScraper::Models::EventType>]
13
14
  required :event_types,
14
- -> {
15
- XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::MonitorCreateParams::EventType]
16
- },
15
+ -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] },
17
16
  api_name: :eventTypes
18
17
 
19
18
  # @!attribute username
@@ -23,25 +22,11 @@ module XTwitterScraper
23
22
  required :username, String
24
23
 
25
24
  # @!method initialize(event_types:, username:, request_options: {})
26
- # @param event_types [Array<Symbol, XTwitterScraper::Models::MonitorCreateParams::EventType>]
25
+ # @param event_types [Array<Symbol, XTwitterScraper::Models::EventType>] Array of event types to subscribe to.
27
26
  #
28
27
  # @param username [String] X username (without @)
29
28
  #
30
29
  # @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
31
-
32
- module EventType
33
- extend XTwitterScraper::Internal::Type::Enum
34
-
35
- TWEET_NEW = :"tweet.new"
36
- TWEET_REPLY = :"tweet.reply"
37
- TWEET_RETWEET = :"tweet.retweet"
38
- TWEET_QUOTE = :"tweet.quote"
39
- FOLLOWER_GAINED = :"follower.gained"
40
- FOLLOWER_LOST = :"follower.lost"
41
-
42
- # @!method self.values
43
- # @return [Array<Symbol>]
44
- end
45
30
  end
46
31
  end
47
32
  end
@@ -15,10 +15,11 @@ module XTwitterScraper
15
15
  required :created_at, Time, api_name: :createdAt
16
16
 
17
17
  # @!attribute event_types
18
+ # Array of event types to subscribe to.
18
19
  #
19
- # @return [Array<Symbol, XTwitterScraper::Models::MonitorCreateResponse::EventType>]
20
+ # @return [Array<Symbol, XTwitterScraper::Models::EventType>]
20
21
  required :event_types,
21
- -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::Models::MonitorCreateResponse::EventType] },
22
+ -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] },
22
23
  api_name: :eventTypes
23
24
 
24
25
  # @!attribute username
@@ -33,24 +34,14 @@ module XTwitterScraper
33
34
 
34
35
  # @!method initialize(id:, created_at:, event_types:, username:, x_user_id:)
35
36
  # @param id [String]
37
+ #
36
38
  # @param created_at [Time]
37
- # @param event_types [Array<Symbol, XTwitterScraper::Models::MonitorCreateResponse::EventType>]
39
+ #
40
+ # @param event_types [Array<Symbol, XTwitterScraper::Models::EventType>] Array of event types to subscribe to.
41
+ #
38
42
  # @param username [String]
43
+ #
39
44
  # @param x_user_id [String]
40
-
41
- module EventType
42
- extend XTwitterScraper::Internal::Type::Enum
43
-
44
- TWEET_NEW = :"tweet.new"
45
- TWEET_REPLY = :"tweet.reply"
46
- TWEET_RETWEET = :"tweet.retweet"
47
- TWEET_QUOTE = :"tweet.quote"
48
- FOLLOWER_GAINED = :"follower.gained"
49
- FOLLOWER_LOST = :"follower.lost"
50
-
51
- # @!method self.values
52
- # @return [Array<Symbol>]
53
- end
54
45
  end
55
46
  end
56
47
  end
@@ -6,9 +6,8 @@ module XTwitterScraper
6
6
  class MonitorListResponse < XTwitterScraper::Internal::Type::BaseModel
7
7
  # @!attribute monitors
8
8
  #
9
- # @return [Array<XTwitterScraper::Models::MonitorListResponse::Monitor>]
10
- required :monitors,
11
- -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::MonitorListResponse::Monitor] }
9
+ # @return [Array<XTwitterScraper::Models::Monitor>]
10
+ required :monitors, -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Monitor] }
12
11
 
13
12
  # @!attribute total
14
13
  #
@@ -16,64 +15,8 @@ module XTwitterScraper
16
15
  required :total, Integer
17
16
 
18
17
  # @!method initialize(monitors:, total:)
19
- # @param monitors [Array<XTwitterScraper::Models::MonitorListResponse::Monitor>]
18
+ # @param monitors [Array<XTwitterScraper::Models::Monitor>]
20
19
  # @param total [Integer]
21
-
22
- class Monitor < XTwitterScraper::Internal::Type::BaseModel
23
- # @!attribute id
24
- #
25
- # @return [String]
26
- required :id, String
27
-
28
- # @!attribute created_at
29
- #
30
- # @return [Time]
31
- required :created_at, Time, api_name: :createdAt
32
-
33
- # @!attribute event_types
34
- #
35
- # @return [Array<Symbol, XTwitterScraper::Models::MonitorListResponse::Monitor::EventType>]
36
- required :event_types,
37
- -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::Models::MonitorListResponse::Monitor::EventType] },
38
- api_name: :eventTypes
39
-
40
- # @!attribute is_active
41
- #
42
- # @return [Boolean]
43
- required :is_active, XTwitterScraper::Internal::Type::Boolean, api_name: :isActive
44
-
45
- # @!attribute username
46
- #
47
- # @return [String]
48
- required :username, String
49
-
50
- # @!attribute x_user_id
51
- #
52
- # @return [String]
53
- required :x_user_id, String, api_name: :xUserId
54
-
55
- # @!method initialize(id:, created_at:, event_types:, is_active:, username:, x_user_id:)
56
- # @param id [String]
57
- # @param created_at [Time]
58
- # @param event_types [Array<Symbol, XTwitterScraper::Models::MonitorListResponse::Monitor::EventType>]
59
- # @param is_active [Boolean]
60
- # @param username [String]
61
- # @param x_user_id [String]
62
-
63
- module EventType
64
- extend XTwitterScraper::Internal::Type::Enum
65
-
66
- TWEET_NEW = :"tweet.new"
67
- TWEET_REPLY = :"tweet.reply"
68
- TWEET_RETWEET = :"tweet.retweet"
69
- TWEET_QUOTE = :"tweet.quote"
70
- FOLLOWER_GAINED = :"follower.gained"
71
- FOLLOWER_LOST = :"follower.lost"
72
-
73
- # @!method self.values
74
- # @return [Array<Symbol>]
75
- end
76
- end
77
20
  end
78
21
  end
79
22
  end
@@ -13,12 +13,11 @@ module XTwitterScraper
13
13
  required :id, String
14
14
 
15
15
  # @!attribute event_types
16
+ # Array of event types to subscribe to.
16
17
  #
17
- # @return [Array<Symbol, XTwitterScraper::Models::MonitorUpdateParams::EventType>, nil]
18
+ # @return [Array<Symbol, XTwitterScraper::Models::EventType>, nil]
18
19
  optional :event_types,
19
- -> {
20
- XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::MonitorUpdateParams::EventType]
21
- },
20
+ -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] },
22
21
  api_name: :eventTypes
23
22
 
24
23
  # @!attribute is_active
@@ -28,23 +27,12 @@ module XTwitterScraper
28
27
 
29
28
  # @!method initialize(id:, event_types: nil, is_active: nil, request_options: {})
30
29
  # @param id [String]
31
- # @param event_types [Array<Symbol, XTwitterScraper::Models::MonitorUpdateParams::EventType>]
30
+ #
31
+ # @param event_types [Array<Symbol, XTwitterScraper::Models::EventType>] Array of event types to subscribe to.
32
+ #
32
33
  # @param is_active [Boolean]
34
+ #
33
35
  # @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
34
-
35
- module EventType
36
- extend XTwitterScraper::Internal::Type::Enum
37
-
38
- TWEET_NEW = :"tweet.new"
39
- TWEET_REPLY = :"tweet.reply"
40
- TWEET_RETWEET = :"tweet.retweet"
41
- TWEET_QUOTE = :"tweet.quote"
42
- FOLLOWER_GAINED = :"follower.gained"
43
- FOLLOWER_LOST = :"follower.lost"
44
-
45
- # @!method self.values
46
- # @return [Array<Symbol>]
47
- end
48
36
  end
49
37
  end
50
38
  end