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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +5 -5
- data/lib/x_twitter_scraper/models/api_key.rb +2 -0
- data/lib/x_twitter_scraper/models/api_key_list_response.rb +3 -44
- data/lib/x_twitter_scraper/models/delivery.rb +2 -0
- data/lib/x_twitter_scraper/models/draft.rb +2 -0
- data/lib/x_twitter_scraper/models/draft_detail.rb +3 -0
- data/lib/x_twitter_scraper/models/draft_list_params.rb +2 -1
- data/lib/x_twitter_scraper/models/draft_list_response.rb +3 -38
- data/lib/x_twitter_scraper/models/draw_detail.rb +2 -0
- data/lib/x_twitter_scraper/models/draw_export_params.rb +3 -1
- data/lib/x_twitter_scraper/models/draw_list_item.rb +2 -0
- data/lib/x_twitter_scraper/models/draw_list_params.rb +4 -3
- data/lib/x_twitter_scraper/models/draw_list_response.rb +3 -50
- data/lib/x_twitter_scraper/models/draw_retrieve_response.rb +8 -124
- data/lib/x_twitter_scraper/models/draw_run_response.rb +3 -32
- data/lib/x_twitter_scraper/models/error.rb +2 -0
- data/lib/x_twitter_scraper/models/event.rb +11 -18
- data/lib/x_twitter_scraper/models/event_detail.rb +7 -18
- data/lib/x_twitter_scraper/models/event_list_params.rb +10 -21
- data/lib/x_twitter_scraper/models/event_list_response.rb +3 -59
- data/lib/x_twitter_scraper/models/event_type.rb +1 -0
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +9 -7
- data/lib/x_twitter_scraper/models/extraction_export_results_params.rb +5 -1
- data/lib/x_twitter_scraper/models/extraction_job.rb +11 -1
- data/lib/x_twitter_scraper/models/extraction_list_params.rb +10 -5
- data/lib/x_twitter_scraper/models/extraction_list_response.rb +3 -87
- data/lib/x_twitter_scraper/models/extraction_retrieve_params.rb +4 -3
- data/lib/x_twitter_scraper/models/extraction_run_params.rb +3 -1
- data/lib/x_twitter_scraper/models/extraction_run_response.rb +10 -15
- data/lib/x_twitter_scraper/models/integration.rb +12 -32
- data/lib/x_twitter_scraper/models/integration_create_params.rb +8 -32
- data/lib/x_twitter_scraper/models/integration_delivery.rb +2 -0
- data/lib/x_twitter_scraper/models/integration_list_deliveries_params.rb +4 -1
- data/lib/x_twitter_scraper/models/integration_list_deliveries_response.rb +3 -67
- data/lib/x_twitter_scraper/models/integration_list_response.rb +3 -112
- data/lib/x_twitter_scraper/models/integration_update_params.rb +4 -19
- data/lib/x_twitter_scraper/models/monitor.rb +12 -17
- data/lib/x_twitter_scraper/models/monitor_create_params.rb +4 -19
- data/lib/x_twitter_scraper/models/monitor_create_response.rb +8 -17
- data/lib/x_twitter_scraper/models/monitor_list_response.rb +3 -60
- data/lib/x_twitter_scraper/models/monitor_update_params.rb +7 -19
- data/lib/x_twitter_scraper/models/paginated_tweets.rb +5 -96
- data/lib/x_twitter_scraper/models/paginated_users.rb +5 -73
- data/lib/x_twitter_scraper/models/radar_item.rb +2 -0
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rb +20 -3
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rb +3 -62
- data/lib/x_twitter_scraper/models/style_compare_response.rb +9 -134
- data/lib/x_twitter_scraper/models/style_delete_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_get_performance_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_list_response.rb +3 -32
- data/lib/x_twitter_scraper/models/style_profile.rb +3 -0
- data/lib/x_twitter_scraper/models/style_profile_summary.rb +2 -0
- data/lib/x_twitter_scraper/models/style_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_update_params.rb +4 -4
- data/lib/x_twitter_scraper/models/trend_list_params.rb +2 -1
- data/lib/x_twitter_scraper/models/webhook.rb +11 -17
- data/lib/x_twitter_scraper/models/webhook_create_params.rb +4 -19
- data/lib/x_twitter_scraper/models/webhook_create_response.rb +8 -17
- data/lib/x_twitter_scraper/models/webhook_list_deliveries_response.rb +3 -56
- data/lib/x_twitter_scraper/models/webhook_list_response.rb +3 -54
- data/lib/x_twitter_scraper/models/webhook_update_params.rb +8 -19
- data/lib/x_twitter_scraper/models/winner.rb +2 -0
- data/lib/x_twitter_scraper/models/x/account_bulk_retry_params.rb +16 -0
- data/lib/x_twitter_scraper/models/x/account_bulk_retry_response.rb +19 -0
- data/lib/x_twitter_scraper/models/x/account_list_response.rb +3 -38
- data/lib/x_twitter_scraper/models/x/account_reauth_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/bookmark_list_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/join_create_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rb +33 -0
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/community_action_result.rb +2 -0
- data/lib/x_twitter_scraper/models/x/community_create_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_delete_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb +6 -6
- data/lib/x_twitter_scraper/models/x/community_retrieve_moderators_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_retrieve_search_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/dm_retrieve_history_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/dm_send_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_members_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_tweets_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/media_upload_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_avatar_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_banner_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/search_tweet.rb +20 -1
- data/lib/x_twitter_scraper/models/x/tweet_author.rb +2 -0
- data/lib/x_twitter_scraper/models/x/tweet_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweet_detail.rb +109 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +8 -8
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/tweet_retrieve_response.rb +9 -100
- data/lib/x_twitter_scraper/models/x/tweet_search_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweets/like_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/like_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/retweet_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/retweet_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/user_profile.rb +3 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/user_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_search_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/users/follow_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/users/follow_delete_all_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/x_account.rb +2 -0
- data/lib/x_twitter_scraper/models/x/x_account_detail.rb +3 -0
- data/lib/x_twitter_scraper/models/x_get_article_response.rb +5 -38
- data/lib/x_twitter_scraper/models/x_get_home_timeline_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x_get_notifications_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x_get_trends_response.rb +57 -0
- data/lib/x_twitter_scraper/resources/drafts.rb +5 -5
- data/lib/x_twitter_scraper/resources/draws.rb +3 -3
- data/lib/x_twitter_scraper/resources/events.rb +6 -6
- data/lib/x_twitter_scraper/resources/extractions.rb +12 -12
- data/lib/x_twitter_scraper/resources/integrations.rb +11 -11
- data/lib/x_twitter_scraper/resources/monitors.rb +6 -6
- data/lib/x_twitter_scraper/resources/radar.rb +1 -1
- data/lib/x_twitter_scraper/resources/styles.rb +22 -22
- data/lib/x_twitter_scraper/resources/support/tickets.rb +8 -3
- data/lib/x_twitter_scraper/resources/trends.rb +2 -2
- data/lib/x_twitter_scraper/resources/webhooks.rb +4 -4
- data/lib/x_twitter_scraper/resources/x/accounts.rb +24 -4
- data/lib/x_twitter_scraper/resources/x/bookmarks.rb +3 -3
- data/lib/x_twitter_scraper/resources/x/communities/join.rb +6 -6
- data/lib/x_twitter_scraper/resources/x/communities/tweets.rb +30 -5
- data/lib/x_twitter_scraper/resources/x/communities.rb +12 -12
- data/lib/x_twitter_scraper/resources/x/dm.rb +2 -2
- data/lib/x_twitter_scraper/resources/x/lists.rb +11 -11
- data/lib/x_twitter_scraper/resources/x/media.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/profile.rb +3 -3
- data/lib/x_twitter_scraper/resources/x/tweets/like.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/tweets/retweet.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/tweets.rb +46 -39
- data/lib/x_twitter_scraper/resources/x/users/follow.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/users.rb +45 -45
- data/lib/x_twitter_scraper/resources/x.rb +13 -7
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +4 -28
- data/rbi/x_twitter_scraper/models/api_key.rbi +1 -0
- data/rbi/x_twitter_scraper/models/api_key_list_response.rbi +5 -78
- data/rbi/x_twitter_scraper/models/delivery.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft_list_params.rbi +2 -0
- data/rbi/x_twitter_scraper/models/draft_list_response.rbi +3 -63
- data/rbi/x_twitter_scraper/models/draw_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draw_export_params.rbi +3 -0
- data/rbi/x_twitter_scraper/models/draw_list_item.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draw_list_params.rbi +4 -2
- data/rbi/x_twitter_scraper/models/draw_list_response.rbi +3 -76
- data/rbi/x_twitter_scraper/models/draw_retrieve_response.rbi +13 -178
- data/rbi/x_twitter_scraper/models/draw_run_response.rbi +3 -52
- data/rbi/x_twitter_scraper/models/error.rbi +1 -0
- data/rbi/x_twitter_scraper/models/event.rbi +14 -31
- data/rbi/x_twitter_scraper/models/event_detail.rbi +6 -47
- data/rbi/x_twitter_scraper/models/event_list_params.rbi +12 -63
- data/rbi/x_twitter_scraper/models/event_list_response.rbi +3 -122
- data/rbi/x_twitter_scraper/models/event_type.rbi +1 -0
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +9 -6
- data/rbi/x_twitter_scraper/models/extraction_export_results_params.rbi +8 -1
- data/rbi/x_twitter_scraper/models/extraction_job.rbi +8 -4
- data/rbi/x_twitter_scraper/models/extraction_list_params.rbi +10 -2
- data/rbi/x_twitter_scraper/models/extraction_list_response.rbi +3 -254
- data/rbi/x_twitter_scraper/models/extraction_retrieve_params.rbi +4 -2
- data/rbi/x_twitter_scraper/models/extraction_run_params.rbi +3 -0
- data/rbi/x_twitter_scraper/models/extraction_run_response.rbi +12 -40
- data/rbi/x_twitter_scraper/models/integration.rbi +12 -81
- data/rbi/x_twitter_scraper/models/integration_create_params.rbi +9 -96
- data/rbi/x_twitter_scraper/models/integration_delivery.rbi +1 -0
- data/rbi/x_twitter_scraper/models/integration_list_deliveries_params.rbi +7 -1
- data/rbi/x_twitter_scraper/models/integration_list_deliveries_response.rbi +3 -119
- data/rbi/x_twitter_scraper/models/integration_list_response.rbi +3 -227
- data/rbi/x_twitter_scraper/models/integration_update_params.rbi +6 -74
- data/rbi/x_twitter_scraper/models/monitor.rbi +6 -48
- data/rbi/x_twitter_scraper/models/monitor_create_params.rbi +5 -62
- data/rbi/x_twitter_scraper/models/monitor_create_response.rbi +12 -70
- data/rbi/x_twitter_scraper/models/monitor_list_response.rbi +3 -141
- data/rbi/x_twitter_scraper/models/monitor_update_params.rbi +12 -69
- data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +4 -169
- data/rbi/x_twitter_scraper/models/paginated_users.rbi +4 -120
- data/rbi/x_twitter_scraper/models/radar_item.rbi +1 -0
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbi +78 -4
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbi +3 -108
- data/rbi/x_twitter_scraper/models/style_compare_response.rbi +16 -259
- data/rbi/x_twitter_scraper/models/style_delete_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_get_performance_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_list_response.rbi +3 -54
- data/rbi/x_twitter_scraper/models/style_profile.rbi +1 -0
- data/rbi/x_twitter_scraper/models/style_profile_summary.rbi +1 -0
- data/rbi/x_twitter_scraper/models/style_retrieve_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_update_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/trend_list_params.rbi +2 -0
- data/rbi/x_twitter_scraper/models/webhook.rbi +13 -49
- data/rbi/x_twitter_scraper/models/webhook_create_params.rbi +5 -62
- data/rbi/x_twitter_scraper/models/webhook_create_response.rbi +12 -70
- data/rbi/x_twitter_scraper/models/webhook_list_deliveries_response.rbi +5 -105
- data/rbi/x_twitter_scraper/models/webhook_list_response.rbi +5 -134
- data/rbi/x_twitter_scraper/models/webhook_update_params.rbi +6 -68
- data/rbi/x_twitter_scraper/models/winner.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/account_bulk_retry_params.rbi +34 -0
- data/rbi/x_twitter_scraper/models/x/account_bulk_retry_response.rbi +32 -0
- data/rbi/x_twitter_scraper/models/x/account_list_response.rbi +3 -68
- data/rbi/x_twitter_scraper/models/x/account_reauth_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/bookmark_list_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/join_create_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbi +59 -0
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/community_action_result.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/community_create_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_delete_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_retrieve_info_response.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/community_retrieve_moderators_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_retrieve_search_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/dm_retrieve_history_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/dm_send_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_members_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/media_upload_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_avatar_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_banner_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/search_tweet.rbi +12 -0
- data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/tweet_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweet_detail.rbi +195 -3
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +8 -8
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_retrieve_params.rbi +4 -7
- data/rbi/x_twitter_scraper/models/x/tweet_retrieve_response.rbi +16 -171
- data/rbi/x_twitter_scraper/models/x/tweet_search_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweets/like_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/like_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/user_profile.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/user_retrieve_params.rbi +4 -7
- data/rbi/x_twitter_scraper/models/x/user_retrieve_search_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/users/follow_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/users/follow_delete_all_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/x_account.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/x_account_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x_get_article_response.rbi +10 -71
- data/rbi/x_twitter_scraper/models/x_get_home_timeline_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x_get_notifications_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x_get_trends_response.rbi +102 -0
- data/rbi/x_twitter_scraper/resources/drafts.rbi +3 -2
- data/rbi/x_twitter_scraper/resources/draws.rbi +3 -1
- data/rbi/x_twitter_scraper/resources/events.rbi +6 -3
- data/rbi/x_twitter_scraper/resources/extractions.rbi +12 -5
- data/rbi/x_twitter_scraper/resources/integrations.rbi +10 -13
- data/rbi/x_twitter_scraper/resources/monitors.rbi +6 -6
- data/rbi/x_twitter_scraper/resources/radar.rbi +2 -1
- data/rbi/x_twitter_scraper/resources/styles.rbi +15 -15
- data/rbi/x_twitter_scraper/resources/support/tickets.rbi +17 -3
- data/rbi/x_twitter_scraper/resources/trends.rbi +2 -1
- data/rbi/x_twitter_scraper/resources/webhooks.rbi +5 -5
- data/rbi/x_twitter_scraper/resources/x/accounts.rbi +13 -3
- data/rbi/x_twitter_scraper/resources/x/bookmarks.rbi +2 -2
- data/rbi/x_twitter_scraper/resources/x/communities/join.rbi +4 -8
- data/rbi/x_twitter_scraper/resources/x/communities/tweets.rbi +21 -4
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +9 -9
- data/rbi/x_twitter_scraper/resources/x/dm.rbi +2 -2
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +8 -8
- data/rbi/x_twitter_scraper/resources/x/media.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/x/profile.rbi +3 -3
- data/rbi/x_twitter_scraper/resources/x/tweets/like.rbi +8 -6
- data/rbi/x_twitter_scraper/resources/x/tweets/retweet.rbi +8 -6
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +33 -28
- data/rbi/x_twitter_scraper/resources/x/users/follow.rbi +6 -6
- data/rbi/x_twitter_scraper/resources/x/users.rbi +33 -34
- data/rbi/x_twitter_scraper/resources/x.rbi +11 -5
- data/sig/x_twitter_scraper/models/api_key_list_response.rbs +4 -53
- data/sig/x_twitter_scraper/models/draft_list_response.rbs +4 -45
- data/sig/x_twitter_scraper/models/draw_list_response.rbs +4 -53
- data/sig/x_twitter_scraper/models/draw_retrieve_response.rbs +8 -124
- data/sig/x_twitter_scraper/models/draw_run_response.rbs +4 -36
- data/sig/x_twitter_scraper/models/event.rbs +4 -25
- data/sig/x_twitter_scraper/models/event_detail.rbs +4 -25
- data/sig/x_twitter_scraper/models/event_list_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/event_list_response.rbs +4 -67
- data/sig/x_twitter_scraper/models/extraction_list_response.rbs +4 -109
- data/sig/x_twitter_scraper/models/extraction_run_response.rbs +5 -15
- data/sig/x_twitter_scraper/models/integration.rbs +9 -40
- data/sig/x_twitter_scraper/models/integration_create_params.rbs +8 -39
- data/sig/x_twitter_scraper/models/integration_list_deliveries_response.rbs +4 -78
- data/sig/x_twitter_scraper/models/integration_list_response.rbs +4 -114
- data/sig/x_twitter_scraper/models/integration_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/monitor.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_create_params.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_create_response.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_list_response.rbs +4 -70
- data/sig/x_twitter_scraper/models/monitor_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/paginated_tweets.rbs +4 -113
- data/sig/x_twitter_scraper/models/paginated_users.rbs +4 -87
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbs +30 -5
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbs +4 -70
- data/sig/x_twitter_scraper/models/style_compare_response.rbs +8 -154
- data/sig/x_twitter_scraper/models/style_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_get_performance_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_list_response.rbs +4 -38
- data/sig/x_twitter_scraper/models/style_retrieve_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_update_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/webhook.rbs +4 -25
- data/sig/x_twitter_scraper/models/webhook_create_params.rbs +4 -28
- data/sig/x_twitter_scraper/models/webhook_create_response.rbs +4 -25
- data/sig/x_twitter_scraper/models/webhook_list_deliveries_response.rbs +4 -68
- data/sig/x_twitter_scraper/models/webhook_list_response.rbs +4 -69
- data/sig/x_twitter_scraper/models/webhook_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/x/account_bulk_retry_params.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/account_bulk_retry_response.rbs +15 -0
- data/sig/x_twitter_scraper/models/x/account_list_response.rbs +4 -45
- data/sig/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbs +34 -0
- data/sig/x_twitter_scraper/models/x/search_tweet.rbs +7 -0
- data/sig/x_twitter_scraper/models/x/tweet_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweet_detail.rbs +108 -3
- data/sig/x_twitter_scraper/models/x/tweet_retrieve_params.rbs +4 -5
- data/sig/x_twitter_scraper/models/x/tweet_retrieve_response.rbs +10 -108
- data/sig/x_twitter_scraper/models/x/tweets/like_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/like_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/retweet_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/user_retrieve_params.rbs +4 -5
- data/sig/x_twitter_scraper/models/x/users/follow_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/users/follow_delete_all_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x_get_article_response.rbs +6 -45
- data/sig/x_twitter_scraper/models/x_get_trends_response.rbs +63 -0
- data/sig/x_twitter_scraper/resources/drafts.rbs +2 -2
- data/sig/x_twitter_scraper/resources/events.rbs +2 -2
- data/sig/x_twitter_scraper/resources/integrations.rbs +6 -6
- data/sig/x_twitter_scraper/resources/monitors.rbs +4 -4
- data/sig/x_twitter_scraper/resources/radar.rbs +1 -1
- data/sig/x_twitter_scraper/resources/styles.rbs +7 -7
- data/sig/x_twitter_scraper/resources/webhooks.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/accounts.rbs +5 -1
- data/sig/x_twitter_scraper/resources/x/bookmarks.rbs +1 -1
- data/sig/x_twitter_scraper/resources/x/communities/join.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/communities/tweets.rbs +7 -1
- data/sig/x_twitter_scraper/resources/x/communities.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/lists.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/tweets/like.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/tweets/retweet.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +9 -9
- data/sig/x_twitter_scraper/resources/x/users/follow.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/users.rbs +12 -12
- data/sig/x_twitter_scraper/resources/x.rbs +4 -2
- metadata +17 -88
- data/lib/x_twitter_scraper/models/draft_create_response.rb +0 -46
- data/lib/x_twitter_scraper/models/draft_retrieve_response.rb +0 -46
- data/lib/x_twitter_scraper/models/event_retrieve_response.rb +0 -74
- data/lib/x_twitter_scraper/models/integration_create_response.rb +0 -114
- data/lib/x_twitter_scraper/models/integration_retrieve_response.rb +0 -114
- data/lib/x_twitter_scraper/models/integration_update_response.rb +0 -114
- data/lib/x_twitter_scraper/models/monitor_retrieve_response.rb +0 -62
- data/lib/x_twitter_scraper/models/monitor_update_response.rb +0 -62
- data/lib/x_twitter_scraper/models/style_analyze_response.rb +0 -69
- data/lib/x_twitter_scraper/models/style_retrieve_response.rb +0 -69
- data/lib/x_twitter_scraper/models/style_update_response.rb +0 -69
- data/lib/x_twitter_scraper/models/webhook_update_response.rb +0 -56
- data/lib/x_twitter_scraper/models/x/account_retrieve_response.rb +0 -60
- data/lib/x_twitter_scraper/models/x/bookmark_list_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/communities/join_create_response.rb +0 -32
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_response.rb +0 -32
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_search_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_response.rb +0 -78
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x_get_home_timeline_response.rb +0 -122
- data/rbi/x_twitter_scraper/models/draft_create_response.rbi +0 -67
- data/rbi/x_twitter_scraper/models/draft_retrieve_response.rbi +0 -67
- data/rbi/x_twitter_scraper/models/event_retrieve_response.rbi +0 -135
- data/rbi/x_twitter_scraper/models/integration_create_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/integration_retrieve_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/integration_update_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/monitor_retrieve_response.rbi +0 -134
- data/rbi/x_twitter_scraper/models/monitor_update_response.rbi +0 -134
- data/rbi/x_twitter_scraper/models/style_analyze_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/style_retrieve_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/style_update_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/webhook_update_response.rbi +0 -122
- data/rbi/x_twitter_scraper/models/x/account_retrieve_response.rbi +0 -91
- data/rbi/x_twitter_scraper/models/x/bookmark_list_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/communities/join_create_response.rbi +0 -50
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_response.rbi +0 -50
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_search_response.rbi +0 -229
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x/user_retrieve_response.rbi +0 -124
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x_get_home_timeline_response.rbi +0 -227
- data/sig/x_twitter_scraper/models/draft_create_response.rbs +0 -49
- data/sig/x_twitter_scraper/models/draft_retrieve_response.rbs +0 -49
- data/sig/x_twitter_scraper/models/event_retrieve_response.rbs +0 -73
- data/sig/x_twitter_scraper/models/integration_create_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/integration_retrieve_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/integration_update_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/monitor_retrieve_response.rbs +0 -66
- data/sig/x_twitter_scraper/models/monitor_update_response.rbs +0 -66
- data/sig/x_twitter_scraper/models/style_analyze_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/style_retrieve_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/style_update_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/webhook_update_response.rbs +0 -61
- data/sig/x_twitter_scraper/models/x/account_retrieve_response.rbs +0 -63
- data/sig/x_twitter_scraper/models/x/bookmark_list_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/communities/join_create_response.rbs +0 -30
- data/sig/x_twitter_scraper/models/x/communities/join_delete_all_response.rbs +0 -30
- data/sig/x_twitter_scraper/models/x/tweet_get_favoriters_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/tweet_get_quotes_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_get_retweeters_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/tweet_get_thread_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_search_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/user_retrieve_likes_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_media_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_response.rbs +0 -88
- data/sig/x_twitter_scraper/models/x/user_retrieve_tweets_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x_get_home_timeline_response.rbs +0 -139
|
@@ -17,20 +17,12 @@ module XTwitterScraper
|
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
T.nilable(
|
|
23
|
-
T::Array[XTwitterScraper::WebhookUpdateParams::EventType::OrSymbol]
|
|
24
|
-
)
|
|
25
|
-
)
|
|
26
|
-
end
|
|
20
|
+
# Array of event types to subscribe to.
|
|
21
|
+
sig { returns(T.nilable(T::Array[XTwitterScraper::EventType::OrSymbol])) }
|
|
27
22
|
attr_reader :event_types
|
|
28
23
|
|
|
29
24
|
sig do
|
|
30
|
-
params(
|
|
31
|
-
event_types:
|
|
32
|
-
T::Array[XTwitterScraper::WebhookUpdateParams::EventType::OrSymbol]
|
|
33
|
-
).void
|
|
25
|
+
params(event_types: T::Array[XTwitterScraper::EventType::OrSymbol]).void
|
|
34
26
|
end
|
|
35
27
|
attr_writer :event_types
|
|
36
28
|
|
|
@@ -49,8 +41,7 @@ module XTwitterScraper
|
|
|
49
41
|
sig do
|
|
50
42
|
params(
|
|
51
43
|
id: String,
|
|
52
|
-
event_types:
|
|
53
|
-
T::Array[XTwitterScraper::WebhookUpdateParams::EventType::OrSymbol],
|
|
44
|
+
event_types: T::Array[XTwitterScraper::EventType::OrSymbol],
|
|
54
45
|
is_active: T::Boolean,
|
|
55
46
|
url: String,
|
|
56
47
|
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
@@ -58,6 +49,7 @@ module XTwitterScraper
|
|
|
58
49
|
end
|
|
59
50
|
def self.new(
|
|
60
51
|
id:,
|
|
52
|
+
# Array of event types to subscribe to.
|
|
61
53
|
event_types: nil,
|
|
62
54
|
is_active: nil,
|
|
63
55
|
url: nil,
|
|
@@ -69,10 +61,7 @@ module XTwitterScraper
|
|
|
69
61
|
override.returns(
|
|
70
62
|
{
|
|
71
63
|
id: String,
|
|
72
|
-
event_types:
|
|
73
|
-
T::Array[
|
|
74
|
-
XTwitterScraper::WebhookUpdateParams::EventType::OrSymbol
|
|
75
|
-
],
|
|
64
|
+
event_types: T::Array[XTwitterScraper::EventType::OrSymbol],
|
|
76
65
|
is_active: T::Boolean,
|
|
77
66
|
url: String,
|
|
78
67
|
request_options: XTwitterScraper::RequestOptions
|
|
@@ -81,57 +70,6 @@ module XTwitterScraper
|
|
|
81
70
|
end
|
|
82
71
|
def to_hash
|
|
83
72
|
end
|
|
84
|
-
|
|
85
|
-
module EventType
|
|
86
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
87
|
-
|
|
88
|
-
TaggedSymbol =
|
|
89
|
-
T.type_alias do
|
|
90
|
-
T.all(Symbol, XTwitterScraper::WebhookUpdateParams::EventType)
|
|
91
|
-
end
|
|
92
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
93
|
-
|
|
94
|
-
TWEET_NEW =
|
|
95
|
-
T.let(
|
|
96
|
-
:"tweet.new",
|
|
97
|
-
XTwitterScraper::WebhookUpdateParams::EventType::TaggedSymbol
|
|
98
|
-
)
|
|
99
|
-
TWEET_REPLY =
|
|
100
|
-
T.let(
|
|
101
|
-
:"tweet.reply",
|
|
102
|
-
XTwitterScraper::WebhookUpdateParams::EventType::TaggedSymbol
|
|
103
|
-
)
|
|
104
|
-
TWEET_RETWEET =
|
|
105
|
-
T.let(
|
|
106
|
-
:"tweet.retweet",
|
|
107
|
-
XTwitterScraper::WebhookUpdateParams::EventType::TaggedSymbol
|
|
108
|
-
)
|
|
109
|
-
TWEET_QUOTE =
|
|
110
|
-
T.let(
|
|
111
|
-
:"tweet.quote",
|
|
112
|
-
XTwitterScraper::WebhookUpdateParams::EventType::TaggedSymbol
|
|
113
|
-
)
|
|
114
|
-
FOLLOWER_GAINED =
|
|
115
|
-
T.let(
|
|
116
|
-
:"follower.gained",
|
|
117
|
-
XTwitterScraper::WebhookUpdateParams::EventType::TaggedSymbol
|
|
118
|
-
)
|
|
119
|
-
FOLLOWER_LOST =
|
|
120
|
-
T.let(
|
|
121
|
-
:"follower.lost",
|
|
122
|
-
XTwitterScraper::WebhookUpdateParams::EventType::TaggedSymbol
|
|
123
|
-
)
|
|
124
|
-
|
|
125
|
-
sig do
|
|
126
|
-
override.returns(
|
|
127
|
-
T::Array[
|
|
128
|
-
XTwitterScraper::WebhookUpdateParams::EventType::TaggedSymbol
|
|
129
|
-
]
|
|
130
|
-
)
|
|
131
|
-
end
|
|
132
|
-
def self.values
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
73
|
end
|
|
136
74
|
end
|
|
137
75
|
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module XTwitterScraper
|
|
4
|
+
module Models
|
|
5
|
+
module X
|
|
6
|
+
class AccountBulkRetryParams < XTwitterScraper::Internal::Type::BaseModel
|
|
7
|
+
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include XTwitterScraper::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
XTwitterScraper::X::AccountBulkRetryParams,
|
|
14
|
+
XTwitterScraper::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
22
|
+
end
|
|
23
|
+
def self.new(request_options: {})
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
override.returns({ request_options: XTwitterScraper::RequestOptions })
|
|
28
|
+
end
|
|
29
|
+
def to_hash
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module XTwitterScraper
|
|
4
|
+
module Models
|
|
5
|
+
module X
|
|
6
|
+
class AccountBulkRetryResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
XTwitterScraper::Models::X::AccountBulkRetryResponse,
|
|
11
|
+
XTwitterScraper::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Number of accounts cleared
|
|
16
|
+
sig { returns(Integer) }
|
|
17
|
+
attr_accessor :cleared
|
|
18
|
+
|
|
19
|
+
sig { params(cleared: Integer).returns(T.attached_class) }
|
|
20
|
+
def self.new(
|
|
21
|
+
# Number of accounts cleared
|
|
22
|
+
cleared:
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { override.returns({ cleared: Integer }) }
|
|
27
|
+
def to_hash
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -12,87 +12,22 @@ module XTwitterScraper
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
sig
|
|
16
|
-
returns(
|
|
17
|
-
T::Array[XTwitterScraper::Models::X::AccountListResponse::Account]
|
|
18
|
-
)
|
|
19
|
-
end
|
|
15
|
+
sig { returns(T::Array[XTwitterScraper::X::XAccount]) }
|
|
20
16
|
attr_accessor :accounts
|
|
21
17
|
|
|
22
18
|
sig do
|
|
23
19
|
params(
|
|
24
|
-
accounts:
|
|
25
|
-
T::Array[
|
|
26
|
-
XTwitterScraper::Models::X::AccountListResponse::Account::OrHash
|
|
27
|
-
]
|
|
20
|
+
accounts: T::Array[XTwitterScraper::X::XAccount::OrHash]
|
|
28
21
|
).returns(T.attached_class)
|
|
29
22
|
end
|
|
30
23
|
def self.new(accounts:)
|
|
31
24
|
end
|
|
32
25
|
|
|
33
26
|
sig do
|
|
34
|
-
override.returns(
|
|
35
|
-
{
|
|
36
|
-
accounts:
|
|
37
|
-
T::Array[
|
|
38
|
-
XTwitterScraper::Models::X::AccountListResponse::Account
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
)
|
|
27
|
+
override.returns({ accounts: T::Array[XTwitterScraper::X::XAccount] })
|
|
42
28
|
end
|
|
43
29
|
def to_hash
|
|
44
30
|
end
|
|
45
|
-
|
|
46
|
-
class Account < XTwitterScraper::Internal::Type::BaseModel
|
|
47
|
-
OrHash =
|
|
48
|
-
T.type_alias do
|
|
49
|
-
T.any(
|
|
50
|
-
XTwitterScraper::Models::X::AccountListResponse::Account,
|
|
51
|
-
XTwitterScraper::Internal::AnyHash
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
sig { returns(String) }
|
|
56
|
-
attr_accessor :id
|
|
57
|
-
|
|
58
|
-
sig { returns(Time) }
|
|
59
|
-
attr_accessor :created_at
|
|
60
|
-
|
|
61
|
-
sig { returns(String) }
|
|
62
|
-
attr_accessor :status
|
|
63
|
-
|
|
64
|
-
sig { returns(String) }
|
|
65
|
-
attr_accessor :x_user_id
|
|
66
|
-
|
|
67
|
-
sig { returns(String) }
|
|
68
|
-
attr_accessor :x_username
|
|
69
|
-
|
|
70
|
-
sig do
|
|
71
|
-
params(
|
|
72
|
-
id: String,
|
|
73
|
-
created_at: Time,
|
|
74
|
-
status: String,
|
|
75
|
-
x_user_id: String,
|
|
76
|
-
x_username: String
|
|
77
|
-
).returns(T.attached_class)
|
|
78
|
-
end
|
|
79
|
-
def self.new(id:, created_at:, status:, x_user_id:, x_username:)
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
sig do
|
|
83
|
-
override.returns(
|
|
84
|
-
{
|
|
85
|
-
id: String,
|
|
86
|
-
created_at: Time,
|
|
87
|
-
status: String,
|
|
88
|
-
x_user_id: String,
|
|
89
|
-
x_username: String
|
|
90
|
-
}
|
|
91
|
-
)
|
|
92
|
-
end
|
|
93
|
-
def to_hash
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
31
|
end
|
|
97
32
|
end
|
|
98
33
|
end
|
|
@@ -18,11 +18,11 @@ module XTwitterScraper
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# Updated account password
|
|
22
22
|
sig { returns(String) }
|
|
23
23
|
attr_accessor :password
|
|
24
24
|
|
|
25
|
-
# TOTP secret for 2FA
|
|
25
|
+
# TOTP secret for 2FA re-authentication
|
|
26
26
|
sig { returns(T.nilable(String)) }
|
|
27
27
|
attr_reader :totp_secret
|
|
28
28
|
|
|
@@ -39,9 +39,9 @@ module XTwitterScraper
|
|
|
39
39
|
end
|
|
40
40
|
def self.new(
|
|
41
41
|
id:,
|
|
42
|
-
#
|
|
42
|
+
# Updated account password
|
|
43
43
|
password:,
|
|
44
|
-
# TOTP secret for 2FA
|
|
44
|
+
# TOTP secret for 2FA re-authentication
|
|
45
45
|
totp_secret: nil,
|
|
46
46
|
request_options: {}
|
|
47
47
|
)
|
|
@@ -15,7 +15,7 @@ module XTwitterScraper
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# Pagination cursor
|
|
18
|
+
# Pagination cursor for bookmarks
|
|
19
19
|
sig { returns(T.nilable(String)) }
|
|
20
20
|
attr_reader :cursor
|
|
21
21
|
|
|
@@ -37,7 +37,7 @@ module XTwitterScraper
|
|
|
37
37
|
).returns(T.attached_class)
|
|
38
38
|
end
|
|
39
39
|
def self.new(
|
|
40
|
-
# Pagination cursor
|
|
40
|
+
# Pagination cursor for bookmarks
|
|
41
41
|
cursor: nil,
|
|
42
42
|
# Optional bookmark folder ID
|
|
43
43
|
folder_id: nil,
|
|
@@ -19,7 +19,7 @@ module XTwitterScraper
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
-
# X account (@username or account ID)
|
|
22
|
+
# X account identifier (@username or account ID)
|
|
23
23
|
sig { returns(String) }
|
|
24
24
|
attr_accessor :account
|
|
25
25
|
|
|
@@ -32,7 +32,7 @@ module XTwitterScraper
|
|
|
32
32
|
end
|
|
33
33
|
def self.new(
|
|
34
34
|
id:,
|
|
35
|
-
# X account (@username or account ID)
|
|
35
|
+
# X account identifier (@username or account ID)
|
|
36
36
|
account:,
|
|
37
37
|
request_options: {}
|
|
38
38
|
)
|
|
@@ -19,7 +19,7 @@ module XTwitterScraper
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
-
# X account (@username or account ID)
|
|
22
|
+
# X account identifier (@username or account ID)
|
|
23
23
|
sig { returns(String) }
|
|
24
24
|
attr_accessor :account
|
|
25
25
|
|
|
@@ -32,7 +32,7 @@ module XTwitterScraper
|
|
|
32
32
|
end
|
|
33
33
|
def self.new(
|
|
34
34
|
id:,
|
|
35
|
-
# X account (@username or account ID)
|
|
35
|
+
# X account identifier (@username or account ID)
|
|
36
36
|
account:,
|
|
37
37
|
request_options: {}
|
|
38
38
|
)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module XTwitterScraper
|
|
4
|
+
module Models
|
|
5
|
+
module X
|
|
6
|
+
module Communities
|
|
7
|
+
class TweetListByCommunityParams < XTwitterScraper::Internal::Type::BaseModel
|
|
8
|
+
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
XTwitterScraper::X::Communities::TweetListByCommunityParams,
|
|
15
|
+
XTwitterScraper::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
# Pagination cursor for community tweets
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :cursor
|
|
25
|
+
|
|
26
|
+
sig { params(cursor: String).void }
|
|
27
|
+
attr_writer :cursor
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
id: String,
|
|
32
|
+
cursor: String,
|
|
33
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
id:,
|
|
38
|
+
# Pagination cursor for community tweets
|
|
39
|
+
cursor: nil,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
override.returns(
|
|
46
|
+
{
|
|
47
|
+
id: String,
|
|
48
|
+
cursor: String,
|
|
49
|
+
request_options: XTwitterScraper::RequestOptions
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def to_hash
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -16,18 +16,18 @@ module XTwitterScraper
|
|
|
16
16
|
)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
# Search query
|
|
19
|
+
# Search query for cross-community tweets
|
|
20
20
|
sig { returns(String) }
|
|
21
21
|
attr_accessor :q
|
|
22
22
|
|
|
23
|
-
# Pagination cursor
|
|
23
|
+
# Pagination cursor for cross-community results
|
|
24
24
|
sig { returns(T.nilable(String)) }
|
|
25
25
|
attr_reader :cursor
|
|
26
26
|
|
|
27
27
|
sig { params(cursor: String).void }
|
|
28
28
|
attr_writer :cursor
|
|
29
29
|
|
|
30
|
-
# Sort order (Latest or Top)
|
|
30
|
+
# Sort order for cross-community results (Latest or Top)
|
|
31
31
|
sig { returns(T.nilable(String)) }
|
|
32
32
|
attr_reader :query_type
|
|
33
33
|
|
|
@@ -43,11 +43,11 @@ module XTwitterScraper
|
|
|
43
43
|
).returns(T.attached_class)
|
|
44
44
|
end
|
|
45
45
|
def self.new(
|
|
46
|
-
# Search query
|
|
46
|
+
# Search query for cross-community tweets
|
|
47
47
|
q:,
|
|
48
|
-
# Pagination cursor
|
|
48
|
+
# Pagination cursor for cross-community results
|
|
49
49
|
cursor: nil,
|
|
50
|
-
# Sort order (Latest or Top)
|
|
50
|
+
# Sort order for cross-community results (Latest or Top)
|
|
51
51
|
query_type: nil,
|
|
52
52
|
request_options: {}
|
|
53
53
|
)
|
|
@@ -15,7 +15,7 @@ module XTwitterScraper
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# X account (@username or
|
|
18
|
+
# X account (@username or ID) creating the community
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :account
|
|
21
21
|
|
|
@@ -39,7 +39,7 @@ module XTwitterScraper
|
|
|
39
39
|
).returns(T.attached_class)
|
|
40
40
|
end
|
|
41
41
|
def self.new(
|
|
42
|
-
# X account (@username or
|
|
42
|
+
# X account (@username or ID) creating the community
|
|
43
43
|
account:,
|
|
44
44
|
# Community name
|
|
45
45
|
name:,
|
|
@@ -18,7 +18,7 @@ module XTwitterScraper
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
# X account (@username or
|
|
21
|
+
# X account (@username or ID) deleting the community
|
|
22
22
|
sig { returns(String) }
|
|
23
23
|
attr_accessor :account
|
|
24
24
|
|
|
@@ -36,7 +36,7 @@ module XTwitterScraper
|
|
|
36
36
|
end
|
|
37
37
|
def self.new(
|
|
38
38
|
id:,
|
|
39
|
-
# X account (@username or
|
|
39
|
+
# X account (@username or ID) deleting the community
|
|
40
40
|
account:,
|
|
41
41
|
# Community name for confirmation
|
|
42
42
|
community_name:,
|
|
@@ -60,7 +60,7 @@ module XTwitterScraper
|
|
|
60
60
|
)
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
#
|
|
63
|
+
# Unique community identifier
|
|
64
64
|
sig { returns(String) }
|
|
65
65
|
attr_accessor :id
|
|
66
66
|
|
|
@@ -78,7 +78,7 @@ module XTwitterScraper
|
|
|
78
78
|
sig { params(created_at: String).void }
|
|
79
79
|
attr_writer :created_at
|
|
80
80
|
|
|
81
|
-
#
|
|
81
|
+
# About text for the community
|
|
82
82
|
sig { returns(T.nilable(String)) }
|
|
83
83
|
attr_reader :description
|
|
84
84
|
|
|
@@ -106,7 +106,7 @@ module XTwitterScraper
|
|
|
106
106
|
sig { params(moderator_count: Integer).void }
|
|
107
107
|
attr_writer :moderator_count
|
|
108
108
|
|
|
109
|
-
#
|
|
109
|
+
# Display name of the community
|
|
110
110
|
sig { returns(T.nilable(String)) }
|
|
111
111
|
attr_reader :name
|
|
112
112
|
|
|
@@ -173,13 +173,13 @@ module XTwitterScraper
|
|
|
173
173
|
).returns(T.attached_class)
|
|
174
174
|
end
|
|
175
175
|
def self.new(
|
|
176
|
-
#
|
|
176
|
+
# Unique community identifier
|
|
177
177
|
id:,
|
|
178
178
|
# Community banner image URL
|
|
179
179
|
banner_url: nil,
|
|
180
180
|
# Community creation timestamp
|
|
181
181
|
created_at: nil,
|
|
182
|
-
#
|
|
182
|
+
# About text for the community
|
|
183
183
|
description: nil,
|
|
184
184
|
# Join policy (open or restricted)
|
|
185
185
|
join_policy: nil,
|
|
@@ -187,7 +187,7 @@ module XTwitterScraper
|
|
|
187
187
|
member_count: nil,
|
|
188
188
|
# Total moderator count
|
|
189
189
|
moderator_count: nil,
|
|
190
|
-
#
|
|
190
|
+
# Display name of the community
|
|
191
191
|
name: nil,
|
|
192
192
|
# Primary topic
|
|
193
193
|
primary_topic: nil,
|
|
@@ -18,7 +18,7 @@ module XTwitterScraper
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
# Pagination cursor
|
|
21
|
+
# Pagination cursor for community moderators
|
|
22
22
|
sig { returns(T.nilable(String)) }
|
|
23
23
|
attr_reader :cursor
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ module XTwitterScraper
|
|
|
34
34
|
end
|
|
35
35
|
def self.new(
|
|
36
36
|
id:,
|
|
37
|
-
# Pagination cursor
|
|
37
|
+
# Pagination cursor for community moderators
|
|
38
38
|
cursor: nil,
|
|
39
39
|
request_options: {}
|
|
40
40
|
)
|
|
@@ -19,7 +19,7 @@ module XTwitterScraper
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :q
|
|
21
21
|
|
|
22
|
-
# Pagination cursor
|
|
22
|
+
# Pagination cursor for community search
|
|
23
23
|
sig { returns(T.nilable(String)) }
|
|
24
24
|
attr_reader :cursor
|
|
25
25
|
|
|
@@ -44,7 +44,7 @@ module XTwitterScraper
|
|
|
44
44
|
def self.new(
|
|
45
45
|
# Search query
|
|
46
46
|
q:,
|
|
47
|
-
# Pagination cursor
|
|
47
|
+
# Pagination cursor for community search
|
|
48
48
|
cursor: nil,
|
|
49
49
|
# Sort order (Latest or Top)
|
|
50
50
|
query_type: nil,
|
|
@@ -18,7 +18,7 @@ module XTwitterScraper
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :user_id
|
|
20
20
|
|
|
21
|
-
# Pagination cursor
|
|
21
|
+
# Pagination cursor for DM history
|
|
22
22
|
sig { returns(T.nilable(String)) }
|
|
23
23
|
attr_reader :cursor
|
|
24
24
|
|
|
@@ -42,7 +42,7 @@ module XTwitterScraper
|
|
|
42
42
|
end
|
|
43
43
|
def self.new(
|
|
44
44
|
user_id:,
|
|
45
|
-
# Pagination cursor
|
|
45
|
+
# Pagination cursor for DM history
|
|
46
46
|
cursor: nil,
|
|
47
47
|
# Legacy pagination cursor (backward compat)
|
|
48
48
|
max_id: nil,
|
|
@@ -18,7 +18,7 @@ module XTwitterScraper
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :user_id
|
|
20
20
|
|
|
21
|
-
# X account (@username or
|
|
21
|
+
# X account (@username or ID) sending the DM
|
|
22
22
|
sig { returns(String) }
|
|
23
23
|
attr_accessor :account
|
|
24
24
|
|
|
@@ -49,7 +49,7 @@ module XTwitterScraper
|
|
|
49
49
|
end
|
|
50
50
|
def self.new(
|
|
51
51
|
user_id:,
|
|
52
|
-
# X account (@username or
|
|
52
|
+
# X account (@username or ID) sending the DM
|
|
53
53
|
account:,
|
|
54
54
|
text:,
|
|
55
55
|
media_ids: nil,
|
|
@@ -18,7 +18,7 @@ module XTwitterScraper
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
# Pagination cursor
|
|
21
|
+
# Pagination cursor for list followers
|
|
22
22
|
sig { returns(T.nilable(String)) }
|
|
23
23
|
attr_reader :cursor
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ module XTwitterScraper
|
|
|
34
34
|
end
|
|
35
35
|
def self.new(
|
|
36
36
|
id:,
|
|
37
|
-
# Pagination cursor
|
|
37
|
+
# Pagination cursor for list followers
|
|
38
38
|
cursor: nil,
|
|
39
39
|
request_options: {}
|
|
40
40
|
)
|
|
@@ -18,7 +18,7 @@ module XTwitterScraper
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
# Pagination cursor
|
|
21
|
+
# Pagination cursor for list members
|
|
22
22
|
sig { returns(T.nilable(String)) }
|
|
23
23
|
attr_reader :cursor
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ module XTwitterScraper
|
|
|
34
34
|
end
|
|
35
35
|
def self.new(
|
|
36
36
|
id:,
|
|
37
|
-
# Pagination cursor
|
|
37
|
+
# Pagination cursor for list members
|
|
38
38
|
cursor: nil,
|
|
39
39
|
request_options: {}
|
|
40
40
|
)
|
|
@@ -18,7 +18,7 @@ module XTwitterScraper
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
# Pagination cursor
|
|
21
|
+
# Pagination cursor for list tweets
|
|
22
22
|
sig { returns(T.nilable(String)) }
|
|
23
23
|
attr_reader :cursor
|
|
24
24
|
|
|
@@ -58,7 +58,7 @@ module XTwitterScraper
|
|
|
58
58
|
end
|
|
59
59
|
def self.new(
|
|
60
60
|
id:,
|
|
61
|
-
# Pagination cursor
|
|
61
|
+
# Pagination cursor for list tweets
|
|
62
62
|
cursor: nil,
|
|
63
63
|
# Include replies (default false)
|
|
64
64
|
include_replies: nil,
|