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.
Files changed (222) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +8 -41
  4. data/lib/x_twitter_scraper/client.rb +1 -1
  5. data/lib/x_twitter_scraper/internal/type/union.rb +13 -0
  6. data/lib/x_twitter_scraper/models/account_retrieve_response.rb +4 -4
  7. data/lib/x_twitter_scraper/models/compose_create_params.rb +194 -122
  8. data/lib/x_twitter_scraper/models/compose_create_response.rb +326 -33
  9. data/lib/x_twitter_scraper/models/credit_retrieve_topup_status_params.rb +2 -2
  10. data/lib/x_twitter_scraper/models/error.rb +99 -3
  11. data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +8 -8
  12. data/lib/x_twitter_scraper/models/guest_wallet_create_params.rb +2 -2
  13. data/lib/x_twitter_scraper/models/guest_wallet_create_response.rb +27 -7
  14. data/lib/x_twitter_scraper/models/guest_wallet_topup_params.rb +2 -2
  15. data/lib/x_twitter_scraper/models/guest_wallet_topup_response.rb +27 -7
  16. data/lib/x_twitter_scraper/models/search_tweet.rb +12 -12
  17. data/lib/x_twitter_scraper/models/support/ticket_create_params.rb +7 -1
  18. data/lib/x_twitter_scraper/models/support/ticket_create_response.rb +40 -3
  19. data/lib/x_twitter_scraper/models/support/ticket_reply_params.rb +7 -1
  20. data/lib/x_twitter_scraper/models/support/ticket_reply_response.rb +40 -3
  21. data/lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb +114 -1
  22. data/lib/x_twitter_scraper/models/x/communities/join_create_params.rb +8 -1
  23. data/lib/x_twitter_scraper/models/x/communities/join_create_response.rb +577 -4
  24. data/lib/x_twitter_scraper/models/x/communities/join_delete_all_params.rb +8 -1
  25. data/lib/x_twitter_scraper/models/x/communities/join_delete_all_response.rb +585 -4
  26. data/lib/x_twitter_scraper/models/x/community_create_params.rb +8 -1
  27. data/lib/x_twitter_scraper/models/x/community_create_response.rb +568 -8
  28. data/lib/x_twitter_scraper/models/x/community_delete_params.rb +8 -1
  29. data/lib/x_twitter_scraper/models/x/community_delete_response.rb +576 -4
  30. data/lib/x_twitter_scraper/models/x/dm_send_params.rb +8 -1
  31. data/lib/x_twitter_scraper/models/x/dm_send_response.rb +573 -7
  32. data/lib/x_twitter_scraper/models/x/media_upload_params.rb +8 -1
  33. data/lib/x_twitter_scraper/models/x/media_upload_response.rb +568 -11
  34. data/lib/x_twitter_scraper/models/x/profile_update_avatar_params.rb +8 -1
  35. data/lib/x_twitter_scraper/models/x/profile_update_avatar_response.rb +576 -4
  36. data/lib/x_twitter_scraper/models/x/profile_update_banner_params.rb +8 -1
  37. data/lib/x_twitter_scraper/models/x/profile_update_banner_response.rb +576 -4
  38. data/lib/x_twitter_scraper/models/x/profile_update_params.rb +8 -1
  39. data/lib/x_twitter_scraper/models/x/profile_update_response.rb +576 -4
  40. data/lib/x_twitter_scraper/models/x/tweet_author.rb +1 -14
  41. data/lib/x_twitter_scraper/models/x/tweet_create_params.rb +5 -5
  42. data/lib/x_twitter_scraper/models/x/tweet_create_response.rb +551 -12
  43. data/lib/x_twitter_scraper/models/x/tweet_delete_params.rb +8 -1
  44. data/lib/x_twitter_scraper/models/x/tweet_delete_response.rb +576 -4
  45. data/lib/x_twitter_scraper/models/x/tweets/like_create_params.rb +8 -1
  46. data/lib/x_twitter_scraper/models/x/tweets/like_create_response.rb +576 -4
  47. data/lib/x_twitter_scraper/models/x/tweets/like_delete_params.rb +8 -1
  48. data/lib/x_twitter_scraper/models/x/tweets/like_delete_response.rb +576 -4
  49. data/lib/x_twitter_scraper/models/x/tweets/retweet_create_params.rb +8 -1
  50. data/lib/x_twitter_scraper/models/x/tweets/retweet_create_response.rb +576 -4
  51. data/lib/x_twitter_scraper/models/x/tweets/retweet_delete_params.rb +8 -1
  52. data/lib/x_twitter_scraper/models/x/tweets/retweet_delete_response.rb +576 -4
  53. data/lib/x_twitter_scraper/models/x/user_remove_follower_params.rb +8 -1
  54. data/lib/x_twitter_scraper/models/x/user_remove_follower_response.rb +576 -4
  55. data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +2 -2
  56. data/lib/x_twitter_scraper/models/x/user_retrieve_replies_params.rb +2 -2
  57. data/lib/x_twitter_scraper/models/x/users/follow_create_params.rb +8 -1
  58. data/lib/x_twitter_scraper/models/x/users/follow_create_response.rb +576 -4
  59. data/lib/x_twitter_scraper/models/x/users/follow_delete_all_params.rb +8 -1
  60. data/lib/x_twitter_scraper/models/x/users/follow_delete_all_response.rb +576 -4
  61. data/lib/x_twitter_scraper/models/x/write_action_retrieve_response.rb +469 -52
  62. data/lib/x_twitter_scraper/models/x/x_account.rb +7 -7
  63. data/lib/x_twitter_scraper/models/x/x_account_detail.rb +1 -1
  64. data/lib/x_twitter_scraper/resources/compose.rb +8 -26
  65. data/lib/x_twitter_scraper/resources/credits.rb +1 -1
  66. data/lib/x_twitter_scraper/resources/extractions.rb +4 -4
  67. data/lib/x_twitter_scraper/resources/guest_wallets.rb +2 -2
  68. data/lib/x_twitter_scraper/resources/monitors/keywords.rb +4 -5
  69. data/lib/x_twitter_scraper/resources/monitors.rb +3 -3
  70. data/lib/x_twitter_scraper/resources/support/tickets.rb +24 -8
  71. data/lib/x_twitter_scraper/resources/trends.rb +1 -1
  72. data/lib/x_twitter_scraper/resources/x/communities/join.rb +22 -8
  73. data/lib/x_twitter_scraper/resources/x/communities.rb +25 -11
  74. data/lib/x_twitter_scraper/resources/x/dm.rb +13 -6
  75. data/lib/x_twitter_scraper/resources/x/media.rb +17 -7
  76. data/lib/x_twitter_scraper/resources/x/profile.rb +46 -17
  77. data/lib/x_twitter_scraper/resources/x/tweets/like.rb +22 -8
  78. data/lib/x_twitter_scraper/resources/x/tweets/retweet.rb +22 -8
  79. data/lib/x_twitter_scraper/resources/x/tweets.rb +31 -16
  80. data/lib/x_twitter_scraper/resources/x/users/follow.rb +22 -8
  81. data/lib/x_twitter_scraper/resources/x/users.rb +16 -9
  82. data/lib/x_twitter_scraper/resources/x.rb +1 -2
  83. data/lib/x_twitter_scraper/version.rb +1 -1
  84. data/rbi/x_twitter_scraper/client.rbi +1 -1
  85. data/rbi/x_twitter_scraper/models/account_retrieve_response.rbi +4 -4
  86. data/rbi/x_twitter_scraper/models/compose_create_params.rbi +392 -215
  87. data/rbi/x_twitter_scraper/models/compose_create_response.rbi +537 -48
  88. data/rbi/x_twitter_scraper/models/credit_retrieve_topup_status_params.rbi +2 -2
  89. data/rbi/x_twitter_scraper/models/error.rbi +379 -13
  90. data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +8 -8
  91. data/rbi/x_twitter_scraper/models/guest_wallet_create_params.rbi +2 -2
  92. data/rbi/x_twitter_scraper/models/guest_wallet_create_response.rbi +87 -5
  93. data/rbi/x_twitter_scraper/models/guest_wallet_topup_params.rbi +2 -2
  94. data/rbi/x_twitter_scraper/models/guest_wallet_topup_response.rbi +87 -5
  95. data/rbi/x_twitter_scraper/models/search_tweet.rbi +12 -12
  96. data/rbi/x_twitter_scraper/models/support/ticket_create_params.rbi +9 -1
  97. data/rbi/x_twitter_scraper/models/support/ticket_create_response.rbi +113 -7
  98. data/rbi/x_twitter_scraper/models/support/ticket_reply_params.rbi +9 -1
  99. data/rbi/x_twitter_scraper/models/support/ticket_reply_response.rbi +113 -7
  100. data/rbi/x_twitter_scraper/models/support/ticket_retrieve_response.rbi +276 -5
  101. data/rbi/x_twitter_scraper/models/x/communities/join_create_params.rbi +6 -0
  102. data/rbi/x_twitter_scraper/models/x/communities/join_create_response.rbi +1154 -3
  103. data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_params.rbi +6 -0
  104. data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_response.rbi +1154 -3
  105. data/rbi/x_twitter_scraper/models/x/community_create_params.rbi +6 -0
  106. data/rbi/x_twitter_scraper/models/x/community_create_response.rbi +1127 -5
  107. data/rbi/x_twitter_scraper/models/x/community_delete_params.rbi +6 -0
  108. data/rbi/x_twitter_scraper/models/x/community_delete_response.rbi +1148 -3
  109. data/rbi/x_twitter_scraper/models/x/dm_send_params.rbi +6 -0
  110. data/rbi/x_twitter_scraper/models/x/dm_send_response.rbi +1112 -6
  111. data/rbi/x_twitter_scraper/models/x/media_upload_params.rbi +6 -0
  112. data/rbi/x_twitter_scraper/models/x/media_upload_response.rbi +1124 -9
  113. data/rbi/x_twitter_scraper/models/x/profile_update_avatar_params.rbi +6 -0
  114. data/rbi/x_twitter_scraper/models/x/profile_update_avatar_response.rbi +1152 -3
  115. data/rbi/x_twitter_scraper/models/x/profile_update_banner_params.rbi +6 -0
  116. data/rbi/x_twitter_scraper/models/x/profile_update_banner_response.rbi +1152 -3
  117. data/rbi/x_twitter_scraper/models/x/profile_update_params.rbi +6 -0
  118. data/rbi/x_twitter_scraper/models/x/profile_update_response.rbi +1144 -3
  119. data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +3 -13
  120. data/rbi/x_twitter_scraper/models/x/tweet_create_params.rbi +5 -8
  121. data/rbi/x_twitter_scraper/models/x/tweet_create_response.rbi +1108 -14
  122. data/rbi/x_twitter_scraper/models/x/tweet_delete_params.rbi +6 -0
  123. data/rbi/x_twitter_scraper/models/x/tweet_delete_response.rbi +1140 -3
  124. data/rbi/x_twitter_scraper/models/x/tweets/like_create_params.rbi +6 -0
  125. data/rbi/x_twitter_scraper/models/x/tweets/like_create_response.rbi +1154 -3
  126. data/rbi/x_twitter_scraper/models/x/tweets/like_delete_params.rbi +6 -0
  127. data/rbi/x_twitter_scraper/models/x/tweets/like_delete_response.rbi +1154 -3
  128. data/rbi/x_twitter_scraper/models/x/tweets/retweet_create_params.rbi +6 -0
  129. data/rbi/x_twitter_scraper/models/x/tweets/retweet_create_response.rbi +1154 -3
  130. data/rbi/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbi +6 -0
  131. data/rbi/x_twitter_scraper/models/x/tweets/retweet_delete_response.rbi +1154 -3
  132. data/rbi/x_twitter_scraper/models/x/user_remove_follower_params.rbi +6 -0
  133. data/rbi/x_twitter_scraper/models/x/user_remove_follower_response.rbi +1152 -3
  134. data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +2 -2
  135. data/rbi/x_twitter_scraper/models/x/user_retrieve_replies_params.rbi +2 -2
  136. data/rbi/x_twitter_scraper/models/x/users/follow_create_params.rbi +6 -0
  137. data/rbi/x_twitter_scraper/models/x/users/follow_create_response.rbi +1154 -3
  138. data/rbi/x_twitter_scraper/models/x/users/follow_delete_all_params.rbi +6 -0
  139. data/rbi/x_twitter_scraper/models/x/users/follow_delete_all_response.rbi +1154 -3
  140. data/rbi/x_twitter_scraper/models/x/write_action_retrieve_response.rbi +930 -66
  141. data/rbi/x_twitter_scraper/models/x/x_account.rbi +9 -9
  142. data/rbi/x_twitter_scraper/models/x/x_account_detail.rbi +1 -1
  143. data/rbi/x_twitter_scraper/resources/compose.rbi +12 -38
  144. data/rbi/x_twitter_scraper/resources/credits.rbi +1 -1
  145. data/rbi/x_twitter_scraper/resources/extractions.rbi +4 -4
  146. data/rbi/x_twitter_scraper/resources/guest_wallets.rbi +2 -2
  147. data/rbi/x_twitter_scraper/resources/monitors/keywords.rbi +4 -5
  148. data/rbi/x_twitter_scraper/resources/monitors.rbi +3 -3
  149. data/rbi/x_twitter_scraper/resources/support/tickets.rbi +17 -2
  150. data/rbi/x_twitter_scraper/resources/trends.rbi +1 -1
  151. data/rbi/x_twitter_scraper/resources/x/communities/join.rbi +16 -4
  152. data/rbi/x_twitter_scraper/resources/x/communities.rbi +19 -7
  153. data/rbi/x_twitter_scraper/resources/x/dm.rbi +10 -3
  154. data/rbi/x_twitter_scraper/resources/x/media.rbi +9 -4
  155. data/rbi/x_twitter_scraper/resources/x/profile.rbi +27 -8
  156. data/rbi/x_twitter_scraper/resources/x/tweets/like.rbi +16 -4
  157. data/rbi/x_twitter_scraper/resources/x/tweets/retweet.rbi +16 -4
  158. data/rbi/x_twitter_scraper/resources/x/tweets.rbi +31 -12
  159. data/rbi/x_twitter_scraper/resources/x/users/follow.rbi +16 -4
  160. data/rbi/x_twitter_scraper/resources/x/users.rbi +13 -7
  161. data/rbi/x_twitter_scraper/resources/x.rbi +1 -2
  162. data/sig/x_twitter_scraper/models/compose_create_params.rbs +150 -90
  163. data/sig/x_twitter_scraper/models/compose_create_response.rbs +249 -27
  164. data/sig/x_twitter_scraper/models/error.rbs +170 -7
  165. data/sig/x_twitter_scraper/models/guest_wallet_create_response.rbs +35 -5
  166. data/sig/x_twitter_scraper/models/guest_wallet_topup_response.rbs +35 -5
  167. data/sig/x_twitter_scraper/models/support/ticket_create_params.rbs +7 -1
  168. data/sig/x_twitter_scraper/models/support/ticket_create_response.rbs +49 -5
  169. data/sig/x_twitter_scraper/models/support/ticket_reply_params.rbs +7 -1
  170. data/sig/x_twitter_scraper/models/support/ticket_reply_response.rbs +49 -5
  171. data/sig/x_twitter_scraper/models/support/ticket_retrieve_response.rbs +113 -2
  172. data/sig/x_twitter_scraper/models/x/communities/join_create_params.rbs +5 -1
  173. data/sig/x_twitter_scraper/models/x/communities/join_create_response.rbs +540 -4
  174. data/sig/x_twitter_scraper/models/x/communities/join_delete_all_params.rbs +5 -1
  175. data/sig/x_twitter_scraper/models/x/communities/join_delete_all_response.rbs +540 -4
  176. data/sig/x_twitter_scraper/models/x/community_create_params.rbs +10 -1
  177. data/sig/x_twitter_scraper/models/x/community_create_response.rbs +528 -7
  178. data/sig/x_twitter_scraper/models/x/community_delete_params.rbs +10 -1
  179. data/sig/x_twitter_scraper/models/x/community_delete_response.rbs +540 -4
  180. data/sig/x_twitter_scraper/models/x/dm_send_params.rbs +5 -0
  181. data/sig/x_twitter_scraper/models/x/dm_send_response.rbs +539 -5
  182. data/sig/x_twitter_scraper/models/x/media_upload_params.rbs +5 -1
  183. data/sig/x_twitter_scraper/models/x/media_upload_response.rbs +534 -7
  184. data/sig/x_twitter_scraper/models/x/profile_update_avatar_params.rbs +5 -1
  185. data/sig/x_twitter_scraper/models/x/profile_update_avatar_response.rbs +540 -4
  186. data/sig/x_twitter_scraper/models/x/profile_update_banner_params.rbs +5 -1
  187. data/sig/x_twitter_scraper/models/x/profile_update_banner_response.rbs +540 -4
  188. data/sig/x_twitter_scraper/models/x/profile_update_params.rbs +5 -0
  189. data/sig/x_twitter_scraper/models/x/profile_update_response.rbs +540 -4
  190. data/sig/x_twitter_scraper/models/x/tweet_author.rbs +3 -11
  191. data/sig/x_twitter_scraper/models/x/tweet_create_params.rbs +4 -6
  192. data/sig/x_twitter_scraper/models/x/tweet_create_response.rbs +518 -11
  193. data/sig/x_twitter_scraper/models/x/tweet_delete_params.rbs +5 -1
  194. data/sig/x_twitter_scraper/models/x/tweet_delete_response.rbs +540 -4
  195. data/sig/x_twitter_scraper/models/x/tweets/like_create_params.rbs +5 -1
  196. data/sig/x_twitter_scraper/models/x/tweets/like_create_response.rbs +540 -4
  197. data/sig/x_twitter_scraper/models/x/tweets/like_delete_params.rbs +5 -1
  198. data/sig/x_twitter_scraper/models/x/tweets/like_delete_response.rbs +540 -4
  199. data/sig/x_twitter_scraper/models/x/tweets/retweet_create_params.rbs +5 -1
  200. data/sig/x_twitter_scraper/models/x/tweets/retweet_create_response.rbs +540 -4
  201. data/sig/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbs +5 -1
  202. data/sig/x_twitter_scraper/models/x/tweets/retweet_delete_response.rbs +540 -4
  203. data/sig/x_twitter_scraper/models/x/user_remove_follower_params.rbs +5 -1
  204. data/sig/x_twitter_scraper/models/x/user_remove_follower_response.rbs +540 -4
  205. data/sig/x_twitter_scraper/models/x/users/follow_create_params.rbs +5 -1
  206. data/sig/x_twitter_scraper/models/x/users/follow_create_response.rbs +540 -4
  207. data/sig/x_twitter_scraper/models/x/users/follow_delete_all_params.rbs +5 -1
  208. data/sig/x_twitter_scraper/models/x/users/follow_delete_all_response.rbs +540 -4
  209. data/sig/x_twitter_scraper/models/x/write_action_retrieve_response.rbs +428 -54
  210. data/sig/x_twitter_scraper/resources/compose.rbs +2 -12
  211. data/sig/x_twitter_scraper/resources/support/tickets.rbs +2 -0
  212. data/sig/x_twitter_scraper/resources/x/communities/join.rbs +2 -0
  213. data/sig/x_twitter_scraper/resources/x/communities.rbs +2 -0
  214. data/sig/x_twitter_scraper/resources/x/dm.rbs +1 -0
  215. data/sig/x_twitter_scraper/resources/x/media.rbs +1 -0
  216. data/sig/x_twitter_scraper/resources/x/profile.rbs +3 -0
  217. data/sig/x_twitter_scraper/resources/x/tweets/like.rbs +2 -0
  218. data/sig/x_twitter_scraper/resources/x/tweets/retweet.rbs +2 -0
  219. data/sig/x_twitter_scraper/resources/x/tweets.rbs +2 -1
  220. data/sig/x_twitter_scraper/resources/x/users/follow.rbs +2 -0
  221. data/sig/x_twitter_scraper/resources/x/users.rbs +1 -0
  222. metadata +17 -26
@@ -3,39 +3,332 @@
3
3
  module XTwitterScraper
4
4
  module Models
5
5
  # @see XTwitterScraper::Resources::Compose#create
6
- class ComposeCreateResponse < XTwitterScraper::Internal::Type::BaseModel
7
- # @!attribute feedback
8
- # AI feedback on the draft
9
- #
10
- # @return [String, nil]
11
- optional :feedback, String
12
-
13
- # @!attribute score
14
- # Engagement score (0-100)
15
- #
16
- # @return [Float, nil]
17
- optional :score, Float
18
-
19
- # @!attribute suggestions
20
- # Improvement suggestions
21
- #
22
- # @return [Array<String>, nil]
23
- optional :suggestions, XTwitterScraper::Internal::Type::ArrayOf[String]
24
-
25
- # @!attribute text
26
- # Generated or refined tweet text
27
- #
28
- # @return [String, nil]
29
- optional :text, String
30
-
31
- # @!method initialize(feedback: nil, score: nil, suggestions: nil, text: nil)
32
- # @param feedback [String] AI feedback on the draft
33
- #
34
- # @param score [Float] Engagement score (0-100)
35
- #
36
- # @param suggestions [Array<String>] Improvement suggestions
37
- #
38
- # @param text [String] Generated or refined tweet text
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
- # Billing session ID returned by the top-up billing flow.
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] Billing session ID returned by the top-up billing flow.
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
- # @!method initialize(error:)
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
- # Required for tweet_search_extractor & community_search.
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
- # Required for community_post_extractor & community_search.
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
- # Required for list_follower_explorer, list_member_extractor &
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
- # Required for space_explorer.
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] Required for tweet_search_extractor & community_search.
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] Required for community_post_extractor & community_search.
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] Required for list_follower_explorer, list_member_extractor & list_post_extractor
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] Required for space_explorer.
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
- # Confirmed USD amount in cents.
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] Confirmed USD amount in cents.
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, :Authorization]
132
- required :header, const: :Authorization
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, :Bearer]
137
- required :scheme, const: :Bearer
136
+ # @return [Symbol, XTwitterScraper::Models::GuestWalletCreateResponse::Authorization::Scheme]
137
+ required :scheme, enum: -> { XTwitterScraper::Models::GuestWalletCreateResponse::Authorization::Scheme }
138
138
 
139
- # @!method initialize(header: :Authorization, scheme: :Bearer)
140
- # @param header [Symbol, :Authorization]
141
- # @param scheme [Symbol, :Bearer]
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
- # Confirmed USD amount in cents.
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] Confirmed USD amount in cents.
27
+ # @param amount_minor [Integer] USD cents accepted for this checkout.
28
28
  #
29
29
  # @param idempotency_key [String]
30
30
  #