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
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
3
|
type style_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & XTwitterScraper::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class StyleRetrieveParams < XTwitterScraper::Internal::Type::BaseModel
|
|
7
7
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
attr_accessor
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
12
|
def initialize: (
|
|
13
|
-
|
|
13
|
+
id: String,
|
|
14
14
|
?request_options: XTwitterScraper::request_opts
|
|
15
15
|
) -> void
|
|
16
16
|
|
|
17
17
|
def to_hash: -> {
|
|
18
|
-
|
|
18
|
+
id: String,
|
|
19
19
|
request_options: XTwitterScraper::RequestOptions
|
|
20
20
|
}
|
|
21
21
|
end
|
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
type style_update_params =
|
|
4
4
|
{
|
|
5
|
-
|
|
5
|
+
id: String,
|
|
6
6
|
label: String,
|
|
7
7
|
tweets: ::Array[XTwitterScraper::StyleUpdateParams::Tweet]
|
|
8
8
|
}
|
|
@@ -12,21 +12,21 @@ module XTwitterScraper
|
|
|
12
12
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
13
13
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
14
14
|
|
|
15
|
-
attr_accessor
|
|
15
|
+
attr_accessor id: String
|
|
16
16
|
|
|
17
17
|
attr_accessor label: String
|
|
18
18
|
|
|
19
19
|
attr_accessor tweets: ::Array[XTwitterScraper::StyleUpdateParams::Tweet]
|
|
20
20
|
|
|
21
21
|
def initialize: (
|
|
22
|
-
|
|
22
|
+
id: String,
|
|
23
23
|
label: String,
|
|
24
24
|
tweets: ::Array[XTwitterScraper::StyleUpdateParams::Tweet],
|
|
25
25
|
?request_options: XTwitterScraper::request_opts
|
|
26
26
|
) -> void
|
|
27
27
|
|
|
28
28
|
def to_hash: -> {
|
|
29
|
-
|
|
29
|
+
id: String,
|
|
30
30
|
label: String,
|
|
31
31
|
tweets: ::Array[XTwitterScraper::StyleUpdateParams::Tweet],
|
|
32
32
|
request_options: XTwitterScraper::RequestOptions
|
|
@@ -4,7 +4,7 @@ module XTwitterScraper
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
created_at: Time,
|
|
7
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
7
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
8
8
|
is_active: bool,
|
|
9
9
|
url: String
|
|
10
10
|
}
|
|
@@ -14,7 +14,7 @@ module XTwitterScraper
|
|
|
14
14
|
|
|
15
15
|
attr_accessor created_at: Time
|
|
16
16
|
|
|
17
|
-
attr_accessor event_types: ::Array[XTwitterScraper::Models::
|
|
17
|
+
attr_accessor event_types: ::Array[XTwitterScraper::Models::event_type]
|
|
18
18
|
|
|
19
19
|
attr_accessor is_active: bool
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ module XTwitterScraper
|
|
|
23
23
|
def initialize: (
|
|
24
24
|
id: String,
|
|
25
25
|
created_at: Time,
|
|
26
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
26
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
27
27
|
is_active: bool,
|
|
28
28
|
url: String
|
|
29
29
|
) -> void
|
|
@@ -31,31 +31,10 @@ module XTwitterScraper
|
|
|
31
31
|
def to_hash: -> {
|
|
32
32
|
id: String,
|
|
33
33
|
created_at: Time,
|
|
34
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
34
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
35
35
|
is_active: bool,
|
|
36
36
|
url: String
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
type event_type =
|
|
40
|
-
:"tweet.new"
|
|
41
|
-
| :"tweet.reply"
|
|
42
|
-
| :"tweet.retweet"
|
|
43
|
-
| :"tweet.quote"
|
|
44
|
-
| :"follower.gained"
|
|
45
|
-
| :"follower.lost"
|
|
46
|
-
|
|
47
|
-
module EventType
|
|
48
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
49
|
-
|
|
50
|
-
TWEET_NEW: :"tweet.new"
|
|
51
|
-
TWEET_REPLY: :"tweet.reply"
|
|
52
|
-
TWEET_RETWEET: :"tweet.retweet"
|
|
53
|
-
TWEET_QUOTE: :"tweet.quote"
|
|
54
|
-
FOLLOWER_GAINED: :"follower.gained"
|
|
55
|
-
FOLLOWER_LOST: :"follower.lost"
|
|
56
|
-
|
|
57
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::Webhook::event_type]
|
|
58
|
-
end
|
|
59
38
|
end
|
|
60
39
|
end
|
|
61
40
|
end
|
|
@@ -1,52 +1,28 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
3
|
type webhook_create_params =
|
|
4
|
-
{
|
|
5
|
-
event_types: ::Array[XTwitterScraper::Models::WebhookCreateParams::event_type],
|
|
6
|
-
url: String
|
|
7
|
-
}
|
|
4
|
+
{ event_types: ::Array[XTwitterScraper::Models::event_type], url: String }
|
|
8
5
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
9
6
|
|
|
10
7
|
class WebhookCreateParams < XTwitterScraper::Internal::Type::BaseModel
|
|
11
8
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
12
9
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
13
10
|
|
|
14
|
-
attr_accessor event_types: ::Array[XTwitterScraper::Models::
|
|
11
|
+
attr_accessor event_types: ::Array[XTwitterScraper::Models::event_type]
|
|
15
12
|
|
|
16
13
|
attr_accessor url: String
|
|
17
14
|
|
|
18
15
|
def initialize: (
|
|
19
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
16
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
20
17
|
url: String,
|
|
21
18
|
?request_options: XTwitterScraper::request_opts
|
|
22
19
|
) -> void
|
|
23
20
|
|
|
24
21
|
def to_hash: -> {
|
|
25
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
22
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
26
23
|
url: String,
|
|
27
24
|
request_options: XTwitterScraper::RequestOptions
|
|
28
25
|
}
|
|
29
|
-
|
|
30
|
-
type event_type =
|
|
31
|
-
:"tweet.new"
|
|
32
|
-
| :"tweet.reply"
|
|
33
|
-
| :"tweet.retweet"
|
|
34
|
-
| :"tweet.quote"
|
|
35
|
-
| :"follower.gained"
|
|
36
|
-
| :"follower.lost"
|
|
37
|
-
|
|
38
|
-
module EventType
|
|
39
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
40
|
-
|
|
41
|
-
TWEET_NEW: :"tweet.new"
|
|
42
|
-
TWEET_REPLY: :"tweet.reply"
|
|
43
|
-
TWEET_RETWEET: :"tweet.retweet"
|
|
44
|
-
TWEET_QUOTE: :"tweet.quote"
|
|
45
|
-
FOLLOWER_GAINED: :"follower.gained"
|
|
46
|
-
FOLLOWER_LOST: :"follower.lost"
|
|
47
|
-
|
|
48
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::WebhookCreateParams::event_type]
|
|
49
|
-
end
|
|
50
26
|
end
|
|
51
27
|
end
|
|
52
28
|
end
|
|
@@ -4,7 +4,7 @@ module XTwitterScraper
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
created_at: Time,
|
|
7
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
7
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
8
8
|
secret: String,
|
|
9
9
|
url: String
|
|
10
10
|
}
|
|
@@ -14,7 +14,7 @@ module XTwitterScraper
|
|
|
14
14
|
|
|
15
15
|
attr_accessor created_at: Time
|
|
16
16
|
|
|
17
|
-
attr_accessor event_types: ::Array[XTwitterScraper::Models::
|
|
17
|
+
attr_accessor event_types: ::Array[XTwitterScraper::Models::event_type]
|
|
18
18
|
|
|
19
19
|
attr_accessor secret: String
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ module XTwitterScraper
|
|
|
23
23
|
def initialize: (
|
|
24
24
|
id: String,
|
|
25
25
|
created_at: Time,
|
|
26
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
26
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
27
27
|
secret: String,
|
|
28
28
|
url: String
|
|
29
29
|
) -> void
|
|
@@ -31,31 +31,10 @@ module XTwitterScraper
|
|
|
31
31
|
def to_hash: -> {
|
|
32
32
|
id: String,
|
|
33
33
|
created_at: Time,
|
|
34
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
34
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
35
35
|
secret: String,
|
|
36
36
|
url: String
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
type event_type =
|
|
40
|
-
:"tweet.new"
|
|
41
|
-
| :"tweet.reply"
|
|
42
|
-
| :"tweet.retweet"
|
|
43
|
-
| :"tweet.quote"
|
|
44
|
-
| :"follower.gained"
|
|
45
|
-
| :"follower.lost"
|
|
46
|
-
|
|
47
|
-
module EventType
|
|
48
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
49
|
-
|
|
50
|
-
TWEET_NEW: :"tweet.new"
|
|
51
|
-
TWEET_REPLY: :"tweet.reply"
|
|
52
|
-
TWEET_RETWEET: :"tweet.retweet"
|
|
53
|
-
TWEET_QUOTE: :"tweet.quote"
|
|
54
|
-
FOLLOWER_GAINED: :"follower.gained"
|
|
55
|
-
FOLLOWER_LOST: :"follower.lost"
|
|
56
|
-
|
|
57
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::WebhookCreateResponse::event_type]
|
|
58
|
-
end
|
|
59
38
|
end
|
|
60
39
|
end
|
|
61
40
|
end
|
|
@@ -1,78 +1,14 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
3
|
type webhook_list_deliveries_response =
|
|
4
|
-
{
|
|
5
|
-
deliveries: ::Array[XTwitterScraper::Models::WebhookListDeliveriesResponse::Delivery]
|
|
6
|
-
}
|
|
4
|
+
{ deliveries: ::Array[XTwitterScraper::Delivery] }
|
|
7
5
|
|
|
8
6
|
class WebhookListDeliveriesResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
9
|
-
attr_accessor deliveries: ::Array[XTwitterScraper::
|
|
7
|
+
attr_accessor deliveries: ::Array[XTwitterScraper::Delivery]
|
|
10
8
|
|
|
11
|
-
def initialize: (
|
|
12
|
-
deliveries: ::Array[XTwitterScraper::Models::WebhookListDeliveriesResponse::Delivery]
|
|
13
|
-
) -> void
|
|
9
|
+
def initialize: (deliveries: ::Array[XTwitterScraper::Delivery]) -> void
|
|
14
10
|
|
|
15
|
-
def to_hash: -> {
|
|
16
|
-
deliveries: ::Array[XTwitterScraper::Models::WebhookListDeliveriesResponse::Delivery]
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type delivery =
|
|
20
|
-
{
|
|
21
|
-
id: String,
|
|
22
|
-
attempts: Integer,
|
|
23
|
-
created_at: Time,
|
|
24
|
-
status: String,
|
|
25
|
-
stream_event_id: String,
|
|
26
|
-
delivered_at: Time,
|
|
27
|
-
last_error: String,
|
|
28
|
-
last_status_code: Integer
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
class Delivery < XTwitterScraper::Internal::Type::BaseModel
|
|
32
|
-
attr_accessor id: String
|
|
33
|
-
|
|
34
|
-
attr_accessor attempts: Integer
|
|
35
|
-
|
|
36
|
-
attr_accessor created_at: Time
|
|
37
|
-
|
|
38
|
-
attr_accessor status: String
|
|
39
|
-
|
|
40
|
-
attr_accessor stream_event_id: String
|
|
41
|
-
|
|
42
|
-
attr_reader delivered_at: Time?
|
|
43
|
-
|
|
44
|
-
def delivered_at=: (Time) -> Time
|
|
45
|
-
|
|
46
|
-
attr_reader last_error: String?
|
|
47
|
-
|
|
48
|
-
def last_error=: (String) -> String
|
|
49
|
-
|
|
50
|
-
attr_reader last_status_code: Integer?
|
|
51
|
-
|
|
52
|
-
def last_status_code=: (Integer) -> Integer
|
|
53
|
-
|
|
54
|
-
def initialize: (
|
|
55
|
-
id: String,
|
|
56
|
-
attempts: Integer,
|
|
57
|
-
created_at: Time,
|
|
58
|
-
status: String,
|
|
59
|
-
stream_event_id: String,
|
|
60
|
-
?delivered_at: Time,
|
|
61
|
-
?last_error: String,
|
|
62
|
-
?last_status_code: Integer
|
|
63
|
-
) -> void
|
|
64
|
-
|
|
65
|
-
def to_hash: -> {
|
|
66
|
-
id: String,
|
|
67
|
-
attempts: Integer,
|
|
68
|
-
created_at: Time,
|
|
69
|
-
status: String,
|
|
70
|
-
stream_event_id: String,
|
|
71
|
-
delivered_at: Time,
|
|
72
|
-
last_error: String,
|
|
73
|
-
last_status_code: Integer
|
|
74
|
-
}
|
|
75
|
-
end
|
|
11
|
+
def to_hash: -> { deliveries: ::Array[XTwitterScraper::Delivery] }
|
|
76
12
|
end
|
|
77
13
|
end
|
|
78
14
|
end
|
|
@@ -1,78 +1,13 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
|
-
type webhook_list_response =
|
|
4
|
-
{
|
|
5
|
-
webhooks: ::Array[XTwitterScraper::Models::WebhookListResponse::Webhook]
|
|
6
|
-
}
|
|
3
|
+
type webhook_list_response = { webhooks: ::Array[XTwitterScraper::Webhook] }
|
|
7
4
|
|
|
8
5
|
class WebhookListResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
9
|
-
attr_accessor webhooks: ::Array[XTwitterScraper::
|
|
6
|
+
attr_accessor webhooks: ::Array[XTwitterScraper::Webhook]
|
|
10
7
|
|
|
11
|
-
def initialize: (
|
|
12
|
-
webhooks: ::Array[XTwitterScraper::Models::WebhookListResponse::Webhook]
|
|
13
|
-
) -> void
|
|
8
|
+
def initialize: (webhooks: ::Array[XTwitterScraper::Webhook]) -> void
|
|
14
9
|
|
|
15
|
-
def to_hash: -> {
|
|
16
|
-
webhooks: ::Array[XTwitterScraper::Models::WebhookListResponse::Webhook]
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type webhook =
|
|
20
|
-
{
|
|
21
|
-
id: String,
|
|
22
|
-
created_at: Time,
|
|
23
|
-
event_types: ::Array[XTwitterScraper::Models::WebhookListResponse::Webhook::event_type],
|
|
24
|
-
is_active: bool,
|
|
25
|
-
url: String
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
class Webhook < XTwitterScraper::Internal::Type::BaseModel
|
|
29
|
-
attr_accessor id: String
|
|
30
|
-
|
|
31
|
-
attr_accessor created_at: Time
|
|
32
|
-
|
|
33
|
-
attr_accessor event_types: ::Array[XTwitterScraper::Models::WebhookListResponse::Webhook::event_type]
|
|
34
|
-
|
|
35
|
-
attr_accessor is_active: bool
|
|
36
|
-
|
|
37
|
-
attr_accessor url: String
|
|
38
|
-
|
|
39
|
-
def initialize: (
|
|
40
|
-
id: String,
|
|
41
|
-
created_at: Time,
|
|
42
|
-
event_types: ::Array[XTwitterScraper::Models::WebhookListResponse::Webhook::event_type],
|
|
43
|
-
is_active: bool,
|
|
44
|
-
url: String
|
|
45
|
-
) -> void
|
|
46
|
-
|
|
47
|
-
def to_hash: -> {
|
|
48
|
-
id: String,
|
|
49
|
-
created_at: Time,
|
|
50
|
-
event_types: ::Array[XTwitterScraper::Models::WebhookListResponse::Webhook::event_type],
|
|
51
|
-
is_active: bool,
|
|
52
|
-
url: String
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
type event_type =
|
|
56
|
-
:"tweet.new"
|
|
57
|
-
| :"tweet.reply"
|
|
58
|
-
| :"tweet.retweet"
|
|
59
|
-
| :"tweet.quote"
|
|
60
|
-
| :"follower.gained"
|
|
61
|
-
| :"follower.lost"
|
|
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
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::WebhookListResponse::Webhook::event_type]
|
|
74
|
-
end
|
|
75
|
-
end
|
|
10
|
+
def to_hash: -> { webhooks: ::Array[XTwitterScraper::Webhook] }
|
|
76
11
|
end
|
|
77
12
|
end
|
|
78
13
|
end
|
|
@@ -3,7 +3,7 @@ module XTwitterScraper
|
|
|
3
3
|
type webhook_update_params =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
6
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
7
7
|
is_active: bool,
|
|
8
8
|
url: String
|
|
9
9
|
}
|
|
@@ -15,11 +15,11 @@ module XTwitterScraper
|
|
|
15
15
|
|
|
16
16
|
attr_accessor id: String
|
|
17
17
|
|
|
18
|
-
attr_reader event_types: ::Array[XTwitterScraper::Models::
|
|
18
|
+
attr_reader event_types: ::Array[XTwitterScraper::Models::event_type]?
|
|
19
19
|
|
|
20
20
|
def event_types=: (
|
|
21
|
-
::Array[XTwitterScraper::Models::
|
|
22
|
-
) -> ::Array[XTwitterScraper::Models::
|
|
21
|
+
::Array[XTwitterScraper::Models::event_type]
|
|
22
|
+
) -> ::Array[XTwitterScraper::Models::event_type]
|
|
23
23
|
|
|
24
24
|
attr_reader is_active: bool?
|
|
25
25
|
|
|
@@ -31,7 +31,7 @@ module XTwitterScraper
|
|
|
31
31
|
|
|
32
32
|
def initialize: (
|
|
33
33
|
id: String,
|
|
34
|
-
?event_types: ::Array[XTwitterScraper::Models::
|
|
34
|
+
?event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
35
35
|
?is_active: bool,
|
|
36
36
|
?url: String,
|
|
37
37
|
?request_options: XTwitterScraper::request_opts
|
|
@@ -39,32 +39,11 @@ module XTwitterScraper
|
|
|
39
39
|
|
|
40
40
|
def to_hash: -> {
|
|
41
41
|
id: String,
|
|
42
|
-
event_types: ::Array[XTwitterScraper::Models::
|
|
42
|
+
event_types: ::Array[XTwitterScraper::Models::event_type],
|
|
43
43
|
is_active: bool,
|
|
44
44
|
url: String,
|
|
45
45
|
request_options: XTwitterScraper::RequestOptions
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
type event_type =
|
|
49
|
-
:"tweet.new"
|
|
50
|
-
| :"tweet.reply"
|
|
51
|
-
| :"tweet.retweet"
|
|
52
|
-
| :"tweet.quote"
|
|
53
|
-
| :"follower.gained"
|
|
54
|
-
| :"follower.lost"
|
|
55
|
-
|
|
56
|
-
module EventType
|
|
57
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
58
|
-
|
|
59
|
-
TWEET_NEW: :"tweet.new"
|
|
60
|
-
TWEET_REPLY: :"tweet.reply"
|
|
61
|
-
TWEET_RETWEET: :"tweet.retweet"
|
|
62
|
-
TWEET_QUOTE: :"tweet.quote"
|
|
63
|
-
FOLLOWER_GAINED: :"follower.gained"
|
|
64
|
-
FOLLOWER_LOST: :"follower.lost"
|
|
65
|
-
|
|
66
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::WebhookUpdateParams::event_type]
|
|
67
|
-
end
|
|
68
47
|
end
|
|
69
48
|
end
|
|
70
49
|
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module XTwitterScraper
|
|
2
|
+
module Models
|
|
3
|
+
module X
|
|
4
|
+
type account_bulk_retry_params =
|
|
5
|
+
{ } & XTwitterScraper::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class AccountBulkRetryParams < XTwitterScraper::Internal::Type::BaseModel
|
|
8
|
+
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def initialize: (
|
|
12
|
+
?request_options: XTwitterScraper::request_opts
|
|
13
|
+
) -> void
|
|
14
|
+
|
|
15
|
+
def to_hash: -> { request_options: XTwitterScraper::RequestOptions }
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module XTwitterScraper
|
|
2
|
+
module Models
|
|
3
|
+
module X
|
|
4
|
+
type account_bulk_retry_response = { cleared: Integer }
|
|
5
|
+
|
|
6
|
+
class AccountBulkRetryResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor cleared: Integer
|
|
8
|
+
|
|
9
|
+
def initialize: (cleared: Integer) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { cleared: Integer }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -2,57 +2,16 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type account_list_response =
|
|
5
|
-
{
|
|
6
|
-
accounts: ::Array[XTwitterScraper::Models::X::AccountListResponse::Account]
|
|
7
|
-
}
|
|
5
|
+
{ accounts: ::Array[XTwitterScraper::X::XAccount] }
|
|
8
6
|
|
|
9
7
|
class AccountListResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
10
|
-
attr_accessor accounts: ::Array[XTwitterScraper::
|
|
8
|
+
attr_accessor accounts: ::Array[XTwitterScraper::X::XAccount]
|
|
11
9
|
|
|
12
10
|
def initialize: (
|
|
13
|
-
accounts: ::Array[XTwitterScraper::
|
|
11
|
+
accounts: ::Array[XTwitterScraper::X::XAccount]
|
|
14
12
|
) -> void
|
|
15
13
|
|
|
16
|
-
def to_hash: -> {
|
|
17
|
-
accounts: ::Array[XTwitterScraper::Models::X::AccountListResponse::Account]
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type account =
|
|
21
|
-
{
|
|
22
|
-
id: String,
|
|
23
|
-
created_at: Time,
|
|
24
|
-
status: String,
|
|
25
|
-
x_user_id: String,
|
|
26
|
-
x_username: String
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
class Account < XTwitterScraper::Internal::Type::BaseModel
|
|
30
|
-
attr_accessor id: String
|
|
31
|
-
|
|
32
|
-
attr_accessor created_at: Time
|
|
33
|
-
|
|
34
|
-
attr_accessor status: String
|
|
35
|
-
|
|
36
|
-
attr_accessor x_user_id: String
|
|
37
|
-
|
|
38
|
-
attr_accessor x_username: String
|
|
39
|
-
|
|
40
|
-
def initialize: (
|
|
41
|
-
id: String,
|
|
42
|
-
created_at: Time,
|
|
43
|
-
status: String,
|
|
44
|
-
x_user_id: String,
|
|
45
|
-
x_username: String
|
|
46
|
-
) -> void
|
|
47
|
-
|
|
48
|
-
def to_hash: -> {
|
|
49
|
-
id: String,
|
|
50
|
-
created_at: Time,
|
|
51
|
-
status: String,
|
|
52
|
-
x_user_id: String,
|
|
53
|
-
x_username: String
|
|
54
|
-
}
|
|
55
|
-
end
|
|
14
|
+
def to_hash: -> { accounts: ::Array[XTwitterScraper::X::XAccount] }
|
|
56
15
|
end
|
|
57
16
|
end
|
|
58
17
|
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module XTwitterScraper
|
|
2
|
+
module Models
|
|
3
|
+
module X
|
|
4
|
+
module Communities
|
|
5
|
+
type tweet_list_by_community_params =
|
|
6
|
+
{ id: String, cursor: String }
|
|
7
|
+
& XTwitterScraper::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class TweetListByCommunityParams < XTwitterScraper::Internal::Type::BaseModel
|
|
10
|
+
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include XTwitterScraper::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_reader cursor: String?
|
|
16
|
+
|
|
17
|
+
def cursor=: (String) -> String
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
id: String,
|
|
21
|
+
?cursor: String,
|
|
22
|
+
?request_options: XTwitterScraper::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
id: String,
|
|
27
|
+
cursor: String,
|
|
28
|
+
request_options: XTwitterScraper::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -8,6 +8,7 @@ module XTwitterScraper
|
|
|
8
8
|
author: XTwitterScraper::X::SearchTweet::Author,
|
|
9
9
|
bookmark_count: Integer,
|
|
10
10
|
created_at: String,
|
|
11
|
+
is_note_tweet: bool,
|
|
11
12
|
like_count: Integer,
|
|
12
13
|
quote_count: Integer,
|
|
13
14
|
reply_count: Integer,
|
|
@@ -34,6 +35,10 @@ module XTwitterScraper
|
|
|
34
35
|
|
|
35
36
|
def created_at=: (String) -> String
|
|
36
37
|
|
|
38
|
+
attr_reader is_note_tweet: bool?
|
|
39
|
+
|
|
40
|
+
def is_note_tweet=: (bool) -> bool
|
|
41
|
+
|
|
37
42
|
attr_reader like_count: Integer?
|
|
38
43
|
|
|
39
44
|
def like_count=: (Integer) -> Integer
|
|
@@ -60,6 +65,7 @@ module XTwitterScraper
|
|
|
60
65
|
?author: XTwitterScraper::X::SearchTweet::Author,
|
|
61
66
|
?bookmark_count: Integer,
|
|
62
67
|
?created_at: String,
|
|
68
|
+
?is_note_tweet: bool,
|
|
63
69
|
?like_count: Integer,
|
|
64
70
|
?quote_count: Integer,
|
|
65
71
|
?reply_count: Integer,
|
|
@@ -73,6 +79,7 @@ module XTwitterScraper
|
|
|
73
79
|
author: XTwitterScraper::X::SearchTweet::Author,
|
|
74
80
|
bookmark_count: Integer,
|
|
75
81
|
created_at: String,
|
|
82
|
+
is_note_tweet: bool,
|
|
76
83
|
like_count: Integer,
|
|
77
84
|
quote_count: Integer,
|
|
78
85
|
reply_count: Integer,
|
|
@@ -2,25 +2,25 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type tweet_delete_params =
|
|
5
|
-
{
|
|
5
|
+
{ id: String, account: String }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class TweetDeleteParams < XTwitterScraper::Internal::Type::BaseModel
|
|
9
9
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
-
attr_accessor
|
|
12
|
+
attr_accessor id: String
|
|
13
13
|
|
|
14
14
|
attr_accessor account: String
|
|
15
15
|
|
|
16
16
|
def initialize: (
|
|
17
|
-
|
|
17
|
+
id: String,
|
|
18
18
|
account: String,
|
|
19
19
|
?request_options: XTwitterScraper::request_opts
|
|
20
20
|
) -> void
|
|
21
21
|
|
|
22
22
|
def to_hash: -> {
|
|
23
|
-
|
|
23
|
+
id: String,
|
|
24
24
|
account: String,
|
|
25
25
|
request_options: XTwitterScraper::RequestOptions
|
|
26
26
|
}
|