x-twitter-scraper 0.4.5 → 0.5.2
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 +33 -0
- data/README.md +8 -41
- data/lib/x_twitter_scraper/client.rb +1 -1
- data/lib/x_twitter_scraper/internal/type/union.rb +13 -0
- data/lib/x_twitter_scraper/models/account_retrieve_response.rb +4 -4
- data/lib/x_twitter_scraper/models/compose_create_params.rb +194 -122
- data/lib/x_twitter_scraper/models/compose_create_response.rb +326 -33
- data/lib/x_twitter_scraper/models/credit_retrieve_topup_status_params.rb +2 -2
- data/lib/x_twitter_scraper/models/error.rb +99 -3
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +8 -8
- data/lib/x_twitter_scraper/models/guest_wallet_create_params.rb +2 -2
- data/lib/x_twitter_scraper/models/guest_wallet_create_response.rb +27 -7
- data/lib/x_twitter_scraper/models/guest_wallet_topup_params.rb +2 -2
- data/lib/x_twitter_scraper/models/guest_wallet_topup_response.rb +27 -7
- data/lib/x_twitter_scraper/models/search_tweet.rb +12 -12
- data/lib/x_twitter_scraper/models/support/ticket_create_params.rb +7 -1
- data/lib/x_twitter_scraper/models/support/ticket_create_response.rb +40 -3
- data/lib/x_twitter_scraper/models/support/ticket_reply_params.rb +7 -1
- data/lib/x_twitter_scraper/models/support/ticket_reply_response.rb +40 -3
- data/lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb +114 -1
- data/lib/x_twitter_scraper/models/x/communities/join_create_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/communities/join_create_response.rb +577 -4
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_response.rb +585 -4
- data/lib/x_twitter_scraper/models/x/community_create_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/community_create_response.rb +568 -8
- data/lib/x_twitter_scraper/models/x/community_delete_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/community_delete_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/dm_send_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/dm_send_response.rb +573 -7
- data/lib/x_twitter_scraper/models/x/media_upload_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/media_upload_response.rb +568 -11
- data/lib/x_twitter_scraper/models/x/profile_update_avatar_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/profile_update_avatar_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/profile_update_banner_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/profile_update_banner_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/profile_update_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/profile_update_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/tweet_author.rb +1 -14
- data/lib/x_twitter_scraper/models/x/tweet_create_params.rb +5 -5
- data/lib/x_twitter_scraper/models/x/tweet_create_response.rb +551 -12
- data/lib/x_twitter_scraper/models/x/tweet_delete_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/tweet_delete_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/tweets/like_create_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/tweets/like_create_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/tweets/like_delete_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/tweets/like_delete_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/tweets/retweet_create_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/tweets/retweet_create_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/tweets/retweet_delete_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/tweets/retweet_delete_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/user_remove_follower_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/user_remove_follower_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_replies_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/users/follow_create_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/users/follow_create_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/users/follow_delete_all_params.rb +8 -1
- data/lib/x_twitter_scraper/models/x/users/follow_delete_all_response.rb +576 -4
- data/lib/x_twitter_scraper/models/x/write_action_retrieve_response.rb +469 -52
- data/lib/x_twitter_scraper/models/x/x_account.rb +7 -7
- data/lib/x_twitter_scraper/models/x/x_account_detail.rb +1 -1
- data/lib/x_twitter_scraper/resources/compose.rb +8 -26
- data/lib/x_twitter_scraper/resources/credits.rb +1 -1
- data/lib/x_twitter_scraper/resources/extractions.rb +4 -4
- data/lib/x_twitter_scraper/resources/guest_wallets.rb +2 -2
- data/lib/x_twitter_scraper/resources/monitors/keywords.rb +4 -5
- data/lib/x_twitter_scraper/resources/monitors.rb +3 -3
- data/lib/x_twitter_scraper/resources/support/tickets.rb +24 -8
- data/lib/x_twitter_scraper/resources/trends.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/communities/join.rb +22 -8
- data/lib/x_twitter_scraper/resources/x/communities.rb +25 -11
- data/lib/x_twitter_scraper/resources/x/dm.rb +13 -6
- data/lib/x_twitter_scraper/resources/x/media.rb +17 -7
- data/lib/x_twitter_scraper/resources/x/profile.rb +46 -17
- data/lib/x_twitter_scraper/resources/x/tweets/like.rb +22 -8
- data/lib/x_twitter_scraper/resources/x/tweets/retweet.rb +22 -8
- data/lib/x_twitter_scraper/resources/x/tweets.rb +31 -16
- data/lib/x_twitter_scraper/resources/x/users/follow.rb +22 -8
- data/lib/x_twitter_scraper/resources/x/users.rb +16 -9
- data/lib/x_twitter_scraper/resources/x.rb +1 -2
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/rbi/x_twitter_scraper/client.rbi +1 -1
- data/rbi/x_twitter_scraper/models/account_retrieve_response.rbi +4 -4
- data/rbi/x_twitter_scraper/models/compose_create_params.rbi +392 -215
- data/rbi/x_twitter_scraper/models/compose_create_response.rbi +537 -48
- data/rbi/x_twitter_scraper/models/credit_retrieve_topup_status_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/error.rbi +379 -13
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +8 -8
- data/rbi/x_twitter_scraper/models/guest_wallet_create_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/guest_wallet_create_response.rbi +87 -5
- data/rbi/x_twitter_scraper/models/guest_wallet_topup_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/guest_wallet_topup_response.rbi +87 -5
- data/rbi/x_twitter_scraper/models/search_tweet.rbi +12 -12
- data/rbi/x_twitter_scraper/models/support/ticket_create_params.rbi +9 -1
- data/rbi/x_twitter_scraper/models/support/ticket_create_response.rbi +113 -7
- data/rbi/x_twitter_scraper/models/support/ticket_reply_params.rbi +9 -1
- data/rbi/x_twitter_scraper/models/support/ticket_reply_response.rbi +113 -7
- data/rbi/x_twitter_scraper/models/support/ticket_retrieve_response.rbi +276 -5
- data/rbi/x_twitter_scraper/models/x/communities/join_create_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/communities/join_create_response.rbi +1154 -3
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_response.rbi +1154 -3
- data/rbi/x_twitter_scraper/models/x/community_create_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/community_create_response.rbi +1127 -5
- data/rbi/x_twitter_scraper/models/x/community_delete_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/community_delete_response.rbi +1148 -3
- data/rbi/x_twitter_scraper/models/x/dm_send_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/dm_send_response.rbi +1112 -6
- data/rbi/x_twitter_scraper/models/x/media_upload_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/media_upload_response.rbi +1124 -9
- data/rbi/x_twitter_scraper/models/x/profile_update_avatar_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/profile_update_avatar_response.rbi +1152 -3
- data/rbi/x_twitter_scraper/models/x/profile_update_banner_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/profile_update_banner_response.rbi +1152 -3
- data/rbi/x_twitter_scraper/models/x/profile_update_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/profile_update_response.rbi +1144 -3
- data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +3 -13
- data/rbi/x_twitter_scraper/models/x/tweet_create_params.rbi +5 -8
- data/rbi/x_twitter_scraper/models/x/tweet_create_response.rbi +1108 -14
- data/rbi/x_twitter_scraper/models/x/tweet_delete_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/tweet_delete_response.rbi +1140 -3
- data/rbi/x_twitter_scraper/models/x/tweets/like_create_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/tweets/like_create_response.rbi +1154 -3
- data/rbi/x_twitter_scraper/models/x/tweets/like_delete_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/tweets/like_delete_response.rbi +1154 -3
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_create_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_create_response.rbi +1154 -3
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_delete_response.rbi +1154 -3
- data/rbi/x_twitter_scraper/models/x/user_remove_follower_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/user_remove_follower_response.rbi +1152 -3
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_replies_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/users/follow_create_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/users/follow_create_response.rbi +1154 -3
- data/rbi/x_twitter_scraper/models/x/users/follow_delete_all_params.rbi +6 -0
- data/rbi/x_twitter_scraper/models/x/users/follow_delete_all_response.rbi +1154 -3
- data/rbi/x_twitter_scraper/models/x/write_action_retrieve_response.rbi +930 -66
- data/rbi/x_twitter_scraper/models/x/x_account.rbi +9 -9
- data/rbi/x_twitter_scraper/models/x/x_account_detail.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/compose.rbi +12 -38
- data/rbi/x_twitter_scraper/resources/credits.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/extractions.rbi +4 -4
- data/rbi/x_twitter_scraper/resources/guest_wallets.rbi +2 -2
- data/rbi/x_twitter_scraper/resources/monitors/keywords.rbi +4 -5
- data/rbi/x_twitter_scraper/resources/monitors.rbi +3 -3
- data/rbi/x_twitter_scraper/resources/support/tickets.rbi +17 -2
- data/rbi/x_twitter_scraper/resources/trends.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/x/communities/join.rbi +16 -4
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +19 -7
- data/rbi/x_twitter_scraper/resources/x/dm.rbi +10 -3
- data/rbi/x_twitter_scraper/resources/x/media.rbi +9 -4
- data/rbi/x_twitter_scraper/resources/x/profile.rbi +27 -8
- data/rbi/x_twitter_scraper/resources/x/tweets/like.rbi +16 -4
- data/rbi/x_twitter_scraper/resources/x/tweets/retweet.rbi +16 -4
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +31 -12
- data/rbi/x_twitter_scraper/resources/x/users/follow.rbi +16 -4
- data/rbi/x_twitter_scraper/resources/x/users.rbi +13 -7
- data/rbi/x_twitter_scraper/resources/x.rbi +1 -2
- data/sig/x_twitter_scraper/models/compose_create_params.rbs +150 -90
- data/sig/x_twitter_scraper/models/compose_create_response.rbs +249 -27
- data/sig/x_twitter_scraper/models/error.rbs +170 -7
- data/sig/x_twitter_scraper/models/guest_wallet_create_response.rbs +35 -5
- data/sig/x_twitter_scraper/models/guest_wallet_topup_response.rbs +35 -5
- data/sig/x_twitter_scraper/models/support/ticket_create_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/support/ticket_create_response.rbs +49 -5
- data/sig/x_twitter_scraper/models/support/ticket_reply_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/support/ticket_reply_response.rbs +49 -5
- data/sig/x_twitter_scraper/models/support/ticket_retrieve_response.rbs +113 -2
- data/sig/x_twitter_scraper/models/x/communities/join_create_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/communities/join_create_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/communities/join_delete_all_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/communities/join_delete_all_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/community_create_params.rbs +10 -1
- data/sig/x_twitter_scraper/models/x/community_create_response.rbs +528 -7
- data/sig/x_twitter_scraper/models/x/community_delete_params.rbs +10 -1
- data/sig/x_twitter_scraper/models/x/community_delete_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/dm_send_params.rbs +5 -0
- data/sig/x_twitter_scraper/models/x/dm_send_response.rbs +539 -5
- data/sig/x_twitter_scraper/models/x/media_upload_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/media_upload_response.rbs +534 -7
- data/sig/x_twitter_scraper/models/x/profile_update_avatar_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/profile_update_avatar_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/profile_update_banner_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/profile_update_banner_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/profile_update_params.rbs +5 -0
- data/sig/x_twitter_scraper/models/x/profile_update_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/tweet_author.rbs +3 -11
- data/sig/x_twitter_scraper/models/x/tweet_create_params.rbs +4 -6
- data/sig/x_twitter_scraper/models/x/tweet_create_response.rbs +518 -11
- data/sig/x_twitter_scraper/models/x/tweet_delete_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/tweet_delete_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/tweets/like_create_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/tweets/like_create_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/tweets/like_delete_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/tweets/like_delete_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/tweets/retweet_create_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/tweets/retweet_create_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/tweets/retweet_delete_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/user_remove_follower_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/user_remove_follower_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/users/follow_create_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/users/follow_create_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/users/follow_delete_all_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/users/follow_delete_all_response.rbs +540 -4
- data/sig/x_twitter_scraper/models/x/write_action_retrieve_response.rbs +428 -54
- data/sig/x_twitter_scraper/resources/compose.rbs +2 -12
- data/sig/x_twitter_scraper/resources/support/tickets.rbs +2 -0
- data/sig/x_twitter_scraper/resources/x/communities/join.rbs +2 -0
- data/sig/x_twitter_scraper/resources/x/communities.rbs +2 -0
- data/sig/x_twitter_scraper/resources/x/dm.rbs +1 -0
- data/sig/x_twitter_scraper/resources/x/media.rbs +1 -0
- data/sig/x_twitter_scraper/resources/x/profile.rbs +3 -0
- data/sig/x_twitter_scraper/resources/x/tweets/like.rbs +2 -0
- data/sig/x_twitter_scraper/resources/x/tweets/retweet.rbs +2 -0
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +2 -1
- data/sig/x_twitter_scraper/resources/x/users/follow.rbs +2 -0
- data/sig/x_twitter_scraper/resources/x/users.rbs +1 -0
- metadata +17 -26
|
@@ -3,39 +3,332 @@
|
|
|
3
3
|
module XTwitterScraper
|
|
4
4
|
module Models
|
|
5
5
|
# @see XTwitterScraper::Resources::Compose#create
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
6
|
+
module ComposeCreateResponse
|
|
7
|
+
extend XTwitterScraper::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
variant -> { XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult }
|
|
10
|
+
|
|
11
|
+
variant -> { XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult }
|
|
12
|
+
|
|
13
|
+
variant -> { XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult }
|
|
14
|
+
|
|
15
|
+
class ComposePrepareResult < XTwitterScraper::Internal::Type::BaseModel
|
|
16
|
+
# @!attribute content_rules
|
|
17
|
+
# Xquik editorial heuristics, ordered for the goal.
|
|
18
|
+
#
|
|
19
|
+
# @return [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ContentRule>]
|
|
20
|
+
required :content_rules,
|
|
21
|
+
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ContentRule] },
|
|
22
|
+
api_name: :contentRules
|
|
23
|
+
|
|
24
|
+
# @!attribute engagement_multipliers
|
|
25
|
+
# Published engagement signal names. Production multipliers are not published.
|
|
26
|
+
#
|
|
27
|
+
# @return [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::EngagementMultiplier>]
|
|
28
|
+
required :engagement_multipliers,
|
|
29
|
+
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::EngagementMultiplier] },
|
|
30
|
+
api_name: :engagementMultipliers
|
|
31
|
+
|
|
32
|
+
# @!attribute engagement_velocity
|
|
33
|
+
# Publication limit for timing and decay claims.
|
|
34
|
+
#
|
|
35
|
+
# @return [String]
|
|
36
|
+
required :engagement_velocity, String, api_name: :engagementVelocity
|
|
37
|
+
|
|
38
|
+
# @!attribute follow_up_questions
|
|
39
|
+
#
|
|
40
|
+
# @return [Array<String>]
|
|
41
|
+
required :follow_up_questions,
|
|
42
|
+
XTwitterScraper::Internal::Type::ArrayOf[String],
|
|
43
|
+
api_name: :followUpQuestions
|
|
44
|
+
|
|
45
|
+
# @!attribute intent_url
|
|
46
|
+
# X post intent seeded with the topic.
|
|
47
|
+
#
|
|
48
|
+
# @return [String]
|
|
49
|
+
required :intent_url, String, api_name: :intentUrl
|
|
50
|
+
|
|
51
|
+
# @!attribute next_step
|
|
52
|
+
#
|
|
53
|
+
# @return [String]
|
|
54
|
+
required :next_step, String, api_name: :nextStep
|
|
55
|
+
|
|
56
|
+
# @!attribute scorer_weights
|
|
57
|
+
# Published signal names with unpublished weights as null.
|
|
58
|
+
#
|
|
59
|
+
# @return [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight>]
|
|
60
|
+
required :scorer_weights,
|
|
61
|
+
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight] },
|
|
62
|
+
api_name: :scorerWeights
|
|
63
|
+
|
|
64
|
+
# @!attribute source
|
|
65
|
+
# Signal source and evidence limits.
|
|
66
|
+
#
|
|
67
|
+
# @return [String]
|
|
68
|
+
required :source, String
|
|
69
|
+
|
|
70
|
+
# @!attribute top_penalties
|
|
71
|
+
# Negative engagement predictions in the public model.
|
|
72
|
+
#
|
|
73
|
+
# @return [Array<String>]
|
|
74
|
+
required :top_penalties, XTwitterScraper::Internal::Type::ArrayOf[String], api_name: :topPenalties
|
|
75
|
+
|
|
76
|
+
# @!attribute saved_styles
|
|
77
|
+
# Style analyses saved to the account.
|
|
78
|
+
#
|
|
79
|
+
# @return [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::SavedStyle>, nil]
|
|
80
|
+
optional :saved_styles,
|
|
81
|
+
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::SavedStyle] },
|
|
82
|
+
api_name: :savedStyles
|
|
83
|
+
|
|
84
|
+
# @!attribute style_note
|
|
85
|
+
# Next action when no cached style is available.
|
|
86
|
+
#
|
|
87
|
+
# @return [String, nil]
|
|
88
|
+
optional :style_note, String, api_name: :styleNote
|
|
89
|
+
|
|
90
|
+
# @!attribute style_tweets
|
|
91
|
+
# Cached examples for the requested style username.
|
|
92
|
+
#
|
|
93
|
+
# @return [Array<String>, nil]
|
|
94
|
+
optional :style_tweets, XTwitterScraper::Internal::Type::ArrayOf[String], api_name: :styleTweets
|
|
95
|
+
|
|
96
|
+
# @!method initialize(content_rules:, engagement_multipliers:, engagement_velocity:, follow_up_questions:, intent_url:, next_step:, scorer_weights:, source:, top_penalties:, saved_styles: nil, style_note: nil, style_tweets: nil)
|
|
97
|
+
# Some parameter documentations has been truncated, see
|
|
98
|
+
# {XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult} for more
|
|
99
|
+
# details.
|
|
100
|
+
#
|
|
101
|
+
# @param content_rules [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ContentRule>] Xquik editorial heuristics, ordered for the goal.
|
|
102
|
+
#
|
|
103
|
+
# @param engagement_multipliers [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::EngagementMultiplier>] Published engagement signal names. Production multipliers are not published.
|
|
104
|
+
#
|
|
105
|
+
# @param engagement_velocity [String] Publication limit for timing and decay claims.
|
|
106
|
+
#
|
|
107
|
+
# @param follow_up_questions [Array<String>]
|
|
108
|
+
#
|
|
109
|
+
# @param intent_url [String] X post intent seeded with the topic.
|
|
110
|
+
#
|
|
111
|
+
# @param next_step [String]
|
|
112
|
+
#
|
|
113
|
+
# @param scorer_weights [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight>] Published signal names with unpublished weights as null.
|
|
114
|
+
#
|
|
115
|
+
# @param source [String] Signal source and evidence limits.
|
|
116
|
+
#
|
|
117
|
+
# @param top_penalties [Array<String>] Negative engagement predictions in the public model.
|
|
118
|
+
#
|
|
119
|
+
# @param saved_styles [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::SavedStyle>] Style analyses saved to the account.
|
|
120
|
+
#
|
|
121
|
+
# @param style_note [String] Next action when no cached style is available.
|
|
122
|
+
#
|
|
123
|
+
# @param style_tweets [Array<String>] Cached examples for the requested style username.
|
|
124
|
+
|
|
125
|
+
class ContentRule < XTwitterScraper::Internal::Type::BaseModel
|
|
126
|
+
# @!attribute rule
|
|
127
|
+
#
|
|
128
|
+
# @return [String]
|
|
129
|
+
required :rule, String
|
|
130
|
+
|
|
131
|
+
# @!method initialize(rule:)
|
|
132
|
+
# @param rule [String]
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
class EngagementMultiplier < XTwitterScraper::Internal::Type::BaseModel
|
|
136
|
+
# @!attribute action
|
|
137
|
+
# Human-readable published signal name.
|
|
138
|
+
#
|
|
139
|
+
# @return [String]
|
|
140
|
+
required :action, String
|
|
141
|
+
|
|
142
|
+
# @!attribute multiplier
|
|
143
|
+
#
|
|
144
|
+
# @return [Symbol, :"Production weight not published by X"]
|
|
145
|
+
required :multiplier, const: :"Production weight not published by X"
|
|
146
|
+
|
|
147
|
+
# @!method initialize(action:, multiplier: :"Production weight not published by X")
|
|
148
|
+
# @param action [String] Human-readable published signal name.
|
|
149
|
+
#
|
|
150
|
+
# @param multiplier [Symbol, :"Production weight not published by X"]
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
class ScorerWeight < XTwitterScraper::Internal::Type::BaseModel
|
|
154
|
+
# @!attribute context
|
|
155
|
+
# Signal direction and publication limit.
|
|
156
|
+
#
|
|
157
|
+
# @return [String]
|
|
158
|
+
required :context, String
|
|
159
|
+
|
|
160
|
+
# @!attribute signal
|
|
161
|
+
# Signal name from X's public ranking repository.
|
|
162
|
+
#
|
|
163
|
+
# @return [String]
|
|
164
|
+
required :signal, String
|
|
165
|
+
|
|
166
|
+
# @!attribute weight
|
|
167
|
+
# X does not publish the production weight.
|
|
168
|
+
#
|
|
169
|
+
# @return [nil]
|
|
170
|
+
required :weight, NilClass
|
|
171
|
+
|
|
172
|
+
# @!method initialize(context:, signal:, weight:)
|
|
173
|
+
# @param context [String] Signal direction and publication limit.
|
|
174
|
+
#
|
|
175
|
+
# @param signal [String] Signal name from X's public ranking repository.
|
|
176
|
+
#
|
|
177
|
+
# @param weight [nil] X does not publish the production weight.
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
class SavedStyle < XTwitterScraper::Internal::Type::BaseModel
|
|
181
|
+
# @!attribute tweet_count
|
|
182
|
+
#
|
|
183
|
+
# @return [Integer]
|
|
184
|
+
required :tweet_count, Integer, api_name: :tweetCount
|
|
185
|
+
|
|
186
|
+
# @!attribute username
|
|
187
|
+
#
|
|
188
|
+
# @return [String]
|
|
189
|
+
required :username, String
|
|
190
|
+
|
|
191
|
+
# @!method initialize(tweet_count:, username:)
|
|
192
|
+
# @param tweet_count [Integer]
|
|
193
|
+
# @param username [String]
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
class ComposeRefineResult < XTwitterScraper::Internal::Type::BaseModel
|
|
198
|
+
# @!attribute composition_guidance
|
|
199
|
+
# Goal, tone, media, and editorial guidance.
|
|
200
|
+
#
|
|
201
|
+
# @return [Array<String>]
|
|
202
|
+
required :composition_guidance,
|
|
203
|
+
XTwitterScraper::Internal::Type::ArrayOf[String],
|
|
204
|
+
api_name: :compositionGuidance
|
|
205
|
+
|
|
206
|
+
# @!attribute example_patterns
|
|
207
|
+
#
|
|
208
|
+
# @return [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult::ExamplePattern>]
|
|
209
|
+
required :example_patterns,
|
|
210
|
+
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult::ExamplePattern] },
|
|
211
|
+
api_name: :examplePatterns
|
|
212
|
+
|
|
213
|
+
# @!attribute intent_url
|
|
214
|
+
# X post intent seeded with the topic.
|
|
215
|
+
#
|
|
216
|
+
# @return [String]
|
|
217
|
+
required :intent_url, String, api_name: :intentUrl
|
|
218
|
+
|
|
219
|
+
# @!attribute next_step
|
|
220
|
+
#
|
|
221
|
+
# @return [String]
|
|
222
|
+
required :next_step, String, api_name: :nextStep
|
|
223
|
+
|
|
224
|
+
# @!method initialize(composition_guidance:, example_patterns:, intent_url:, next_step:)
|
|
225
|
+
# @param composition_guidance [Array<String>] Goal, tone, media, and editorial guidance.
|
|
226
|
+
#
|
|
227
|
+
# @param example_patterns [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult::ExamplePattern>]
|
|
228
|
+
#
|
|
229
|
+
# @param intent_url [String] X post intent seeded with the topic.
|
|
230
|
+
#
|
|
231
|
+
# @param next_step [String]
|
|
232
|
+
|
|
233
|
+
class ExamplePattern < XTwitterScraper::Internal::Type::BaseModel
|
|
234
|
+
# @!attribute description
|
|
235
|
+
#
|
|
236
|
+
# @return [String]
|
|
237
|
+
required :description, String
|
|
238
|
+
|
|
239
|
+
# @!attribute pattern
|
|
240
|
+
#
|
|
241
|
+
# @return [String]
|
|
242
|
+
required :pattern, String
|
|
243
|
+
|
|
244
|
+
# @!method initialize(description:, pattern:)
|
|
245
|
+
# @param description [String]
|
|
246
|
+
# @param pattern [String]
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
class ComposeScoreResult < XTwitterScraper::Internal::Type::BaseModel
|
|
251
|
+
# @!attribute checklist
|
|
252
|
+
# Deterministic editorial checks. Not a reach prediction.
|
|
253
|
+
#
|
|
254
|
+
# @return [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult::Checklist>]
|
|
255
|
+
required :checklist,
|
|
256
|
+
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult::Checklist] }
|
|
257
|
+
|
|
258
|
+
# @!attribute next_step
|
|
259
|
+
#
|
|
260
|
+
# @return [String]
|
|
261
|
+
required :next_step, String, api_name: :nextStep
|
|
262
|
+
|
|
263
|
+
# @!attribute passed
|
|
264
|
+
#
|
|
265
|
+
# @return [Boolean]
|
|
266
|
+
required :passed, XTwitterScraper::Internal::Type::Boolean
|
|
267
|
+
|
|
268
|
+
# @!attribute passed_count
|
|
269
|
+
#
|
|
270
|
+
# @return [Integer]
|
|
271
|
+
required :passed_count, Integer, api_name: :passedCount
|
|
272
|
+
|
|
273
|
+
# @!attribute top_suggestion
|
|
274
|
+
#
|
|
275
|
+
# @return [String]
|
|
276
|
+
required :top_suggestion, String, api_name: :topSuggestion
|
|
277
|
+
|
|
278
|
+
# @!attribute total_checks
|
|
279
|
+
#
|
|
280
|
+
# @return [Integer, 9]
|
|
281
|
+
required :total_checks, const: 9, api_name: :totalChecks
|
|
282
|
+
|
|
283
|
+
# @!attribute intent_url
|
|
284
|
+
# Present only when every check passes.
|
|
285
|
+
#
|
|
286
|
+
# @return [String, nil]
|
|
287
|
+
optional :intent_url, String, api_name: :intentUrl
|
|
288
|
+
|
|
289
|
+
# @!method initialize(checklist:, next_step:, passed:, passed_count:, top_suggestion:, intent_url: nil, total_checks: 9)
|
|
290
|
+
# @param checklist [Array<XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult::Checklist>] Deterministic editorial checks. Not a reach prediction.
|
|
291
|
+
#
|
|
292
|
+
# @param next_step [String]
|
|
293
|
+
#
|
|
294
|
+
# @param passed [Boolean]
|
|
295
|
+
#
|
|
296
|
+
# @param passed_count [Integer]
|
|
297
|
+
#
|
|
298
|
+
# @param top_suggestion [String]
|
|
299
|
+
#
|
|
300
|
+
# @param intent_url [String] Present only when every check passes.
|
|
301
|
+
#
|
|
302
|
+
# @param total_checks [Integer, 9]
|
|
303
|
+
|
|
304
|
+
class Checklist < XTwitterScraper::Internal::Type::BaseModel
|
|
305
|
+
# @!attribute factor
|
|
306
|
+
#
|
|
307
|
+
# @return [String]
|
|
308
|
+
required :factor, String
|
|
309
|
+
|
|
310
|
+
# @!attribute passed
|
|
311
|
+
#
|
|
312
|
+
# @return [Boolean]
|
|
313
|
+
required :passed, XTwitterScraper::Internal::Type::Boolean
|
|
314
|
+
|
|
315
|
+
# @!attribute suggestion
|
|
316
|
+
# Present only when the check fails.
|
|
317
|
+
#
|
|
318
|
+
# @return [String, nil]
|
|
319
|
+
optional :suggestion, String
|
|
320
|
+
|
|
321
|
+
# @!method initialize(factor:, passed:, suggestion: nil)
|
|
322
|
+
# @param factor [String]
|
|
323
|
+
#
|
|
324
|
+
# @param passed [Boolean]
|
|
325
|
+
#
|
|
326
|
+
# @param suggestion [String] Present only when the check fails.
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# @!method self.variants
|
|
331
|
+
# @return [Array(XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult, XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult, XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult)]
|
|
39
332
|
end
|
|
40
333
|
end
|
|
41
334
|
end
|
|
@@ -8,13 +8,13 @@ module XTwitterScraper
|
|
|
8
8
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute session_id
|
|
11
|
-
#
|
|
11
|
+
# Top-up session ID to inspect.
|
|
12
12
|
#
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :session_id, String
|
|
15
15
|
|
|
16
16
|
# @!method initialize(session_id:, request_options: {})
|
|
17
|
-
# @param session_id [String]
|
|
17
|
+
# @param session_id [String] Top-up session ID to inspect.
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
20
20
|
end
|
|
@@ -8,12 +8,44 @@ module XTwitterScraper
|
|
|
8
8
|
# @return [Symbol, XTwitterScraper::Models::Error::Error::LegacyErrorCode, XTwitterScraper::Models::Error::Error::StructuredError]
|
|
9
9
|
required :error, union: -> { XTwitterScraper::Error::Error }
|
|
10
10
|
|
|
11
|
-
# @!
|
|
11
|
+
# @!attribute message
|
|
12
|
+
# Human-readable error guidance.
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :message, String
|
|
16
|
+
|
|
17
|
+
# @!attribute reason
|
|
18
|
+
# Machine-readable reason for a login cooldown.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :reason, String
|
|
22
|
+
|
|
23
|
+
# @!attribute retry_after
|
|
24
|
+
# Seconds until the next permitted request.
|
|
25
|
+
#
|
|
26
|
+
# @return [Integer, nil]
|
|
27
|
+
optional :retry_after, Integer, api_name: :retryAfter
|
|
28
|
+
|
|
29
|
+
# @!attribute retry_after_ms
|
|
30
|
+
# Required wait in milliseconds.
|
|
31
|
+
#
|
|
32
|
+
# @return [Integer, nil]
|
|
33
|
+
optional :retry_after_ms, Integer, api_name: :retryAfterMs
|
|
34
|
+
|
|
35
|
+
# @!method initialize(error:, message: nil, reason: nil, retry_after: nil, retry_after_ms: nil)
|
|
12
36
|
# Error response. Default v1 returns a legacy string error code. Send
|
|
13
37
|
# `xquik-api-contract: 2026-04-29` to receive the structured best-practice error
|
|
14
38
|
# object.
|
|
15
39
|
#
|
|
16
40
|
# @param error [Symbol, XTwitterScraper::Models::Error::Error::LegacyErrorCode, XTwitterScraper::Models::Error::Error::StructuredError]
|
|
41
|
+
#
|
|
42
|
+
# @param message [String] Human-readable error guidance.
|
|
43
|
+
#
|
|
44
|
+
# @param reason [String] Machine-readable reason for a login cooldown.
|
|
45
|
+
#
|
|
46
|
+
# @param retry_after [Integer] Seconds until the next permitted request.
|
|
47
|
+
#
|
|
48
|
+
# @param retry_after_ms [Integer] Required wait in milliseconds.
|
|
17
49
|
|
|
18
50
|
# @see XTwitterScraper::Models::Error#error
|
|
19
51
|
module Error
|
|
@@ -66,6 +98,39 @@ module XTwitterScraper
|
|
|
66
98
|
UNAUTHENTICATED = :unauthenticated
|
|
67
99
|
UNSUPPORTED_FIELD = :unsupported_field
|
|
68
100
|
USER_NOT_FOUND = :user_not_found
|
|
101
|
+
BODY_TOO_LARGE = :body_too_large
|
|
102
|
+
CHECKOUT_UNAVAILABLE = :checkout_unavailable
|
|
103
|
+
CONNECTION_CHALLENGE_EXPIRED = :connection_challenge_expired
|
|
104
|
+
CONNECTION_CHALLENGE_INACTIVE = :connection_challenge_inactive
|
|
105
|
+
DRAFT_NOT_FOUND = :draft_not_found
|
|
106
|
+
FAVORITERS_UNAVAILABLE = :favoriters_unavailable
|
|
107
|
+
FORBIDDEN = :forbidden
|
|
108
|
+
GUEST_WALLET_UNAVAILABLE = :guest_wallet_unavailable
|
|
109
|
+
GUEST_WALLETS_DISABLED = :guest_wallets_disabled
|
|
110
|
+
GUEST_WALLETS_UNAVAILABLE = :guest_wallets_unavailable
|
|
111
|
+
IDEMPOTENCY_CONFLICT = :idempotency_conflict
|
|
112
|
+
IDEMPOTENCY_KEY_CONFLICT = :idempotency_key_conflict
|
|
113
|
+
INVALID_COMMUNITY_ID = :invalid_community_id
|
|
114
|
+
INVALID_IDEMPOTENCY_KEY = :invalid_idempotency_key
|
|
115
|
+
INVALID_LIST_ID = :invalid_list_id
|
|
116
|
+
INVALID_PAYMENT_AMOUNT = :invalid_payment_amount
|
|
117
|
+
INVALID_RANGE = :invalid_range
|
|
118
|
+
LOGIN_RATE_LIMITED = :login_rate_limited
|
|
119
|
+
MISSING_IDEMPOTENCY_KEY = :missing_idempotency_key
|
|
120
|
+
MISSING_IDS = :missing_ids
|
|
121
|
+
NO_CACHED_STYLE = :no_cached_style
|
|
122
|
+
PASSKEY_REQUIRED = :passkey_required
|
|
123
|
+
RATE_LIMITED = :rate_limited
|
|
124
|
+
READ_REQUEST_TIMEOUT = :read_request_timeout
|
|
125
|
+
REPLIES_INCOMPLETE = :replies_incomplete
|
|
126
|
+
SUPPORT_MEDIA_RATE_LIMIT = :support_media_rate_limit
|
|
127
|
+
SUPPORT_REQUEST_RATE_LIMIT = :support_request_rate_limit
|
|
128
|
+
TOO_MANY_IDS = :too_many_ids
|
|
129
|
+
UNKNOWN_FIELD = :unknown_field
|
|
130
|
+
UNSUPPORTED_MEDIA_TYPE = :unsupported_media_type
|
|
131
|
+
WEBHOOK_INACTIVE = :webhook_inactive
|
|
132
|
+
WRITE_TRACKING_UNAVAILABLE = :write_tracking_unavailable
|
|
133
|
+
X_WRITE_UNCONFIRMED = :x_write_unconfirmed
|
|
69
134
|
X_ACCOUNT_FEATURE_REQUIRED = :x_account_feature_required
|
|
70
135
|
X_ACCOUNT_PROTECTED = :x_account_protected
|
|
71
136
|
X_ACCOUNT_SUSPENDED = :x_account_suspended
|
|
@@ -92,7 +157,6 @@ module XTwitterScraper
|
|
|
92
157
|
X_USER_LOOKUP_FAILED = :x_user_lookup_failed
|
|
93
158
|
X_WRITE_AMBIGUOUS = :x_write_ambiguous
|
|
94
159
|
X_WRITE_FAILED = :x_write_failed
|
|
95
|
-
X_WRITE_UNCONFIRMED = :x_write_unconfirmed
|
|
96
160
|
|
|
97
161
|
# @!method self.values
|
|
98
162
|
# @return [Array<Symbol>]
|
|
@@ -163,6 +227,39 @@ module XTwitterScraper
|
|
|
163
227
|
UNAUTHENTICATED = :unauthenticated
|
|
164
228
|
UNSUPPORTED_FIELD = :unsupported_field
|
|
165
229
|
USER_NOT_FOUND = :user_not_found
|
|
230
|
+
BODY_TOO_LARGE = :body_too_large
|
|
231
|
+
CHECKOUT_UNAVAILABLE = :checkout_unavailable
|
|
232
|
+
CONNECTION_CHALLENGE_EXPIRED = :connection_challenge_expired
|
|
233
|
+
CONNECTION_CHALLENGE_INACTIVE = :connection_challenge_inactive
|
|
234
|
+
DRAFT_NOT_FOUND = :draft_not_found
|
|
235
|
+
FAVORITERS_UNAVAILABLE = :favoriters_unavailable
|
|
236
|
+
FORBIDDEN = :forbidden
|
|
237
|
+
GUEST_WALLET_UNAVAILABLE = :guest_wallet_unavailable
|
|
238
|
+
GUEST_WALLETS_DISABLED = :guest_wallets_disabled
|
|
239
|
+
GUEST_WALLETS_UNAVAILABLE = :guest_wallets_unavailable
|
|
240
|
+
IDEMPOTENCY_CONFLICT = :idempotency_conflict
|
|
241
|
+
IDEMPOTENCY_KEY_CONFLICT = :idempotency_key_conflict
|
|
242
|
+
INVALID_COMMUNITY_ID = :invalid_community_id
|
|
243
|
+
INVALID_IDEMPOTENCY_KEY = :invalid_idempotency_key
|
|
244
|
+
INVALID_LIST_ID = :invalid_list_id
|
|
245
|
+
INVALID_PAYMENT_AMOUNT = :invalid_payment_amount
|
|
246
|
+
INVALID_RANGE = :invalid_range
|
|
247
|
+
LOGIN_RATE_LIMITED = :login_rate_limited
|
|
248
|
+
MISSING_IDEMPOTENCY_KEY = :missing_idempotency_key
|
|
249
|
+
MISSING_IDS = :missing_ids
|
|
250
|
+
NO_CACHED_STYLE = :no_cached_style
|
|
251
|
+
PASSKEY_REQUIRED = :passkey_required
|
|
252
|
+
RATE_LIMITED = :rate_limited
|
|
253
|
+
READ_REQUEST_TIMEOUT = :read_request_timeout
|
|
254
|
+
REPLIES_INCOMPLETE = :replies_incomplete
|
|
255
|
+
SUPPORT_MEDIA_RATE_LIMIT = :support_media_rate_limit
|
|
256
|
+
SUPPORT_REQUEST_RATE_LIMIT = :support_request_rate_limit
|
|
257
|
+
TOO_MANY_IDS = :too_many_ids
|
|
258
|
+
UNKNOWN_FIELD = :unknown_field
|
|
259
|
+
UNSUPPORTED_MEDIA_TYPE = :unsupported_media_type
|
|
260
|
+
WEBHOOK_INACTIVE = :webhook_inactive
|
|
261
|
+
WRITE_TRACKING_UNAVAILABLE = :write_tracking_unavailable
|
|
262
|
+
X_WRITE_UNCONFIRMED = :x_write_unconfirmed
|
|
166
263
|
X_ACCOUNT_FEATURE_REQUIRED = :x_account_feature_required
|
|
167
264
|
X_ACCOUNT_PROTECTED = :x_account_protected
|
|
168
265
|
X_ACCOUNT_SUSPENDED = :x_account_suspended
|
|
@@ -189,7 +286,6 @@ module XTwitterScraper
|
|
|
189
286
|
X_USER_LOOKUP_FAILED = :x_user_lookup_failed
|
|
190
287
|
X_WRITE_AMBIGUOUS = :x_write_ambiguous
|
|
191
288
|
X_WRITE_FAILED = :x_write_failed
|
|
192
|
-
X_WRITE_UNCONFIRMED = :x_write_unconfirmed
|
|
193
289
|
|
|
194
290
|
# @!method self.values
|
|
195
291
|
# @return [Array<Symbol>]
|
|
@@ -185,7 +185,7 @@ module XTwitterScraper
|
|
|
185
185
|
optional :retweets_of_tweet_id, String, api_name: :retweetsOfTweetId
|
|
186
186
|
|
|
187
187
|
# @!attribute search_query
|
|
188
|
-
#
|
|
188
|
+
# Query used to price tweet_search_extractor or community_search.
|
|
189
189
|
#
|
|
190
190
|
# @return [String, nil]
|
|
191
191
|
optional :search_query, String, api_name: :searchQuery
|
|
@@ -197,20 +197,20 @@ module XTwitterScraper
|
|
|
197
197
|
optional :since_date, Date, api_name: :sinceDate
|
|
198
198
|
|
|
199
199
|
# @!attribute target_community_id
|
|
200
|
-
#
|
|
200
|
+
# Community ID used to price community_post_extractor or community_search.
|
|
201
201
|
#
|
|
202
202
|
# @return [String, nil]
|
|
203
203
|
optional :target_community_id, String, api_name: :targetCommunityId
|
|
204
204
|
|
|
205
205
|
# @!attribute target_list_id
|
|
206
|
-
#
|
|
206
|
+
# List ID used to price list_follower_explorer, list_member_extractor, or
|
|
207
207
|
# list_post_extractor.
|
|
208
208
|
#
|
|
209
209
|
# @return [String, nil]
|
|
210
210
|
optional :target_list_id, String, api_name: :targetListId
|
|
211
211
|
|
|
212
212
|
# @!attribute target_space_id
|
|
213
|
-
#
|
|
213
|
+
# Space ID used to price space_explorer.
|
|
214
214
|
#
|
|
215
215
|
# @return [String, nil]
|
|
216
216
|
optional :target_space_id, String, api_name: :targetSpaceId
|
|
@@ -309,15 +309,15 @@ module XTwitterScraper
|
|
|
309
309
|
#
|
|
310
310
|
# @param retweets_of_tweet_id [String] Estimate only retweets of this tweet ID (tweet_search_extractor)
|
|
311
311
|
#
|
|
312
|
-
# @param search_query [String]
|
|
312
|
+
# @param search_query [String] Query used to price tweet_search_extractor or community_search.
|
|
313
313
|
#
|
|
314
314
|
# @param since_date [Date] Estimate start date in YYYY-MM-DD format (tweet_search_extractor)
|
|
315
315
|
#
|
|
316
|
-
# @param target_community_id [String]
|
|
316
|
+
# @param target_community_id [String] Community ID used to price community_post_extractor or community_search.
|
|
317
317
|
#
|
|
318
|
-
# @param target_list_id [String]
|
|
318
|
+
# @param target_list_id [String] List ID used to price list_follower_explorer, list_member_extractor, or list_pos
|
|
319
319
|
#
|
|
320
|
-
# @param target_space_id [String]
|
|
320
|
+
# @param target_space_id [String] Space ID used to price space_explorer.
|
|
321
321
|
#
|
|
322
322
|
# @param target_tweet_id [String]
|
|
323
323
|
#
|
|
@@ -8,7 +8,7 @@ module XTwitterScraper
|
|
|
8
8
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute amount_minor
|
|
11
|
-
#
|
|
11
|
+
# USD cents accepted for this checkout.
|
|
12
12
|
#
|
|
13
13
|
# @return [Integer]
|
|
14
14
|
required :amount_minor, Integer
|
|
@@ -24,7 +24,7 @@ module XTwitterScraper
|
|
|
24
24
|
required :idempotency_key, String
|
|
25
25
|
|
|
26
26
|
# @!method initialize(amount_minor:, idempotency_key:, currency: :usd, request_options: {})
|
|
27
|
-
# @param amount_minor [Integer]
|
|
27
|
+
# @param amount_minor [Integer] USD cents accepted for this checkout.
|
|
28
28
|
#
|
|
29
29
|
# @param idempotency_key [String]
|
|
30
30
|
#
|
|
@@ -128,17 +128,37 @@ module XTwitterScraper
|
|
|
128
128
|
class Authorization < XTwitterScraper::Internal::Type::BaseModel
|
|
129
129
|
# @!attribute header
|
|
130
130
|
#
|
|
131
|
-
# @return [Symbol,
|
|
132
|
-
required :header,
|
|
131
|
+
# @return [Symbol, XTwitterScraper::Models::GuestWalletCreateResponse::Authorization::Header]
|
|
132
|
+
required :header, enum: -> { XTwitterScraper::Models::GuestWalletCreateResponse::Authorization::Header }
|
|
133
133
|
|
|
134
134
|
# @!attribute scheme
|
|
135
135
|
#
|
|
136
|
-
# @return [Symbol,
|
|
137
|
-
required :scheme,
|
|
136
|
+
# @return [Symbol, XTwitterScraper::Models::GuestWalletCreateResponse::Authorization::Scheme]
|
|
137
|
+
required :scheme, enum: -> { XTwitterScraper::Models::GuestWalletCreateResponse::Authorization::Scheme }
|
|
138
138
|
|
|
139
|
-
# @!method initialize(header
|
|
140
|
-
# @param header [Symbol,
|
|
141
|
-
# @param scheme [Symbol,
|
|
139
|
+
# @!method initialize(header:, scheme:)
|
|
140
|
+
# @param header [Symbol, XTwitterScraper::Models::GuestWalletCreateResponse::Authorization::Header]
|
|
141
|
+
# @param scheme [Symbol, XTwitterScraper::Models::GuestWalletCreateResponse::Authorization::Scheme]
|
|
142
|
+
|
|
143
|
+
# @see XTwitterScraper::Models::GuestWalletCreateResponse::Authorization#header
|
|
144
|
+
module Header
|
|
145
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
AUTHORIZATION = :Authorization
|
|
148
|
+
|
|
149
|
+
# @!method self.values
|
|
150
|
+
# @return [Array<Symbol>]
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# @see XTwitterScraper::Models::GuestWalletCreateResponse::Authorization#scheme
|
|
154
|
+
module Scheme
|
|
155
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
BEARER = :Bearer
|
|
158
|
+
|
|
159
|
+
# @!method self.values
|
|
160
|
+
# @return [Array<Symbol>]
|
|
161
|
+
end
|
|
142
162
|
end
|
|
143
163
|
|
|
144
164
|
# @see XTwitterScraper::Models::GuestWalletCreateResponse#status
|
|
@@ -8,7 +8,7 @@ module XTwitterScraper
|
|
|
8
8
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute amount_minor
|
|
11
|
-
#
|
|
11
|
+
# USD cents accepted for this checkout.
|
|
12
12
|
#
|
|
13
13
|
# @return [Integer]
|
|
14
14
|
required :amount_minor, Integer
|
|
@@ -24,7 +24,7 @@ module XTwitterScraper
|
|
|
24
24
|
required :idempotency_key, String
|
|
25
25
|
|
|
26
26
|
# @!method initialize(amount_minor:, idempotency_key:, currency: :usd, request_options: {})
|
|
27
|
-
# @param amount_minor [Integer]
|
|
27
|
+
# @param amount_minor [Integer] USD cents accepted for this checkout.
|
|
28
28
|
#
|
|
29
29
|
# @param idempotency_key [String]
|
|
30
30
|
#
|