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
|
@@ -245,19 +245,101 @@ module XTwitterScraper
|
|
|
245
245
|
)
|
|
246
246
|
end
|
|
247
247
|
|
|
248
|
-
sig
|
|
248
|
+
sig do
|
|
249
|
+
returns(
|
|
250
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Header::TaggedSymbol
|
|
251
|
+
)
|
|
252
|
+
end
|
|
249
253
|
attr_accessor :header
|
|
250
254
|
|
|
251
|
-
sig
|
|
255
|
+
sig do
|
|
256
|
+
returns(
|
|
257
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Scheme::TaggedSymbol
|
|
258
|
+
)
|
|
259
|
+
end
|
|
252
260
|
attr_accessor :scheme
|
|
253
261
|
|
|
254
|
-
sig
|
|
255
|
-
|
|
262
|
+
sig do
|
|
263
|
+
params(
|
|
264
|
+
header:
|
|
265
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Header::OrSymbol,
|
|
266
|
+
scheme:
|
|
267
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Scheme::OrSymbol
|
|
268
|
+
).returns(T.attached_class)
|
|
269
|
+
end
|
|
270
|
+
def self.new(header:, scheme:)
|
|
256
271
|
end
|
|
257
272
|
|
|
258
|
-
sig
|
|
273
|
+
sig do
|
|
274
|
+
override.returns(
|
|
275
|
+
{
|
|
276
|
+
header:
|
|
277
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Header::TaggedSymbol,
|
|
278
|
+
scheme:
|
|
279
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Scheme::TaggedSymbol
|
|
280
|
+
}
|
|
281
|
+
)
|
|
282
|
+
end
|
|
259
283
|
def to_hash
|
|
260
284
|
end
|
|
285
|
+
|
|
286
|
+
module Header
|
|
287
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
288
|
+
|
|
289
|
+
TaggedSymbol =
|
|
290
|
+
T.type_alias do
|
|
291
|
+
T.all(
|
|
292
|
+
Symbol,
|
|
293
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Header
|
|
294
|
+
)
|
|
295
|
+
end
|
|
296
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
297
|
+
|
|
298
|
+
AUTHORIZATION =
|
|
299
|
+
T.let(
|
|
300
|
+
:Authorization,
|
|
301
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Header::TaggedSymbol
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
sig do
|
|
305
|
+
override.returns(
|
|
306
|
+
T::Array[
|
|
307
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Header::TaggedSymbol
|
|
308
|
+
]
|
|
309
|
+
)
|
|
310
|
+
end
|
|
311
|
+
def self.values
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
module Scheme
|
|
316
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
317
|
+
|
|
318
|
+
TaggedSymbol =
|
|
319
|
+
T.type_alias do
|
|
320
|
+
T.all(
|
|
321
|
+
Symbol,
|
|
322
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Scheme
|
|
323
|
+
)
|
|
324
|
+
end
|
|
325
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
326
|
+
|
|
327
|
+
BEARER =
|
|
328
|
+
T.let(
|
|
329
|
+
:Bearer,
|
|
330
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Scheme::TaggedSymbol
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
sig do
|
|
334
|
+
override.returns(
|
|
335
|
+
T::Array[
|
|
336
|
+
XTwitterScraper::Models::GuestWalletTopupResponse::Authorization::Scheme::TaggedSymbol
|
|
337
|
+
]
|
|
338
|
+
)
|
|
339
|
+
end
|
|
340
|
+
def self.values
|
|
341
|
+
end
|
|
342
|
+
end
|
|
261
343
|
end
|
|
262
344
|
|
|
263
345
|
module CredentialNotice
|
|
@@ -67,7 +67,7 @@ module XTwitterScraper
|
|
|
67
67
|
sig { params(created_at: String).void }
|
|
68
68
|
attr_writer :created_at
|
|
69
69
|
|
|
70
|
-
#
|
|
70
|
+
# Rendered text's start and end offsets.
|
|
71
71
|
sig { returns(T.nilable(T::Array[Integer])) }
|
|
72
72
|
attr_reader :display_text_range
|
|
73
73
|
|
|
@@ -82,21 +82,21 @@ module XTwitterScraper
|
|
|
82
82
|
sig { params(entities: T::Hash[Symbol, T.anything]).void }
|
|
83
83
|
attr_writer :entities
|
|
84
84
|
|
|
85
|
-
#
|
|
85
|
+
# ID of the tweet this result replies to.
|
|
86
86
|
sig { returns(T.nilable(String)) }
|
|
87
87
|
attr_reader :in_reply_to_id
|
|
88
88
|
|
|
89
89
|
sig { params(in_reply_to_id: String).void }
|
|
90
90
|
attr_writer :in_reply_to_id
|
|
91
91
|
|
|
92
|
-
#
|
|
92
|
+
# ID of the user this result replies to.
|
|
93
93
|
sig { returns(T.nilable(String)) }
|
|
94
94
|
attr_reader :in_reply_to_user_id
|
|
95
95
|
|
|
96
96
|
sig { params(in_reply_to_user_id: String).void }
|
|
97
97
|
attr_writer :in_reply_to_user_id
|
|
98
98
|
|
|
99
|
-
# Username
|
|
99
|
+
# Username this result replies to.
|
|
100
100
|
sig { returns(T.nilable(String)) }
|
|
101
101
|
attr_reader :in_reply_to_username
|
|
102
102
|
|
|
@@ -131,7 +131,7 @@ module XTwitterScraper
|
|
|
131
131
|
sig { params(is_reply: T::Boolean).void }
|
|
132
132
|
attr_writer :is_reply
|
|
133
133
|
|
|
134
|
-
#
|
|
134
|
+
# Search result language code.
|
|
135
135
|
sig { returns(T.nilable(String)) }
|
|
136
136
|
attr_reader :lang
|
|
137
137
|
|
|
@@ -178,7 +178,7 @@ module XTwitterScraper
|
|
|
178
178
|
sig { params(type: String).void }
|
|
179
179
|
attr_writer :type
|
|
180
180
|
|
|
181
|
-
#
|
|
181
|
+
# Search result permalink.
|
|
182
182
|
sig { returns(T.nilable(String)) }
|
|
183
183
|
attr_reader :url
|
|
184
184
|
|
|
@@ -236,16 +236,16 @@ module XTwitterScraper
|
|
|
236
236
|
# Root tweet ID for the search result conversation
|
|
237
237
|
conversation_id: nil,
|
|
238
238
|
created_at: nil,
|
|
239
|
-
#
|
|
239
|
+
# Rendered text's start and end offsets.
|
|
240
240
|
display_text_range: nil,
|
|
241
241
|
# Parsed search-result entities including URLs, mentions, hashtags, and media
|
|
242
242
|
# markers
|
|
243
243
|
entities: nil,
|
|
244
|
-
#
|
|
244
|
+
# ID of the tweet this result replies to.
|
|
245
245
|
in_reply_to_id: nil,
|
|
246
|
-
#
|
|
246
|
+
# ID of the user this result replies to.
|
|
247
247
|
in_reply_to_user_id: nil,
|
|
248
|
-
# Username
|
|
248
|
+
# Username this result replies to.
|
|
249
249
|
in_reply_to_username: nil,
|
|
250
250
|
# Whether the tweet has limited reply permissions
|
|
251
251
|
is_limited_reply: nil,
|
|
@@ -255,7 +255,7 @@ module XTwitterScraper
|
|
|
255
255
|
is_quote_status: nil,
|
|
256
256
|
# True when this search result is a reply
|
|
257
257
|
is_reply: nil,
|
|
258
|
-
#
|
|
258
|
+
# Search result language code.
|
|
259
259
|
lang: nil,
|
|
260
260
|
# Search-result media attachments, omitted when no media is present
|
|
261
261
|
media: nil,
|
|
@@ -270,7 +270,7 @@ module XTwitterScraper
|
|
|
270
270
|
# Client application used to post the tweet
|
|
271
271
|
source: nil,
|
|
272
272
|
type: nil,
|
|
273
|
-
#
|
|
273
|
+
# Search result permalink.
|
|
274
274
|
url: nil
|
|
275
275
|
)
|
|
276
276
|
end
|
|
@@ -21,14 +21,21 @@ module XTwitterScraper
|
|
|
21
21
|
sig { returns(String) }
|
|
22
22
|
attr_accessor :subject
|
|
23
23
|
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :idempotency_key
|
|
26
|
+
|
|
27
|
+
sig { params(idempotency_key: String).void }
|
|
28
|
+
attr_writer :idempotency_key
|
|
29
|
+
|
|
24
30
|
sig do
|
|
25
31
|
params(
|
|
26
32
|
body: String,
|
|
27
33
|
subject: String,
|
|
34
|
+
idempotency_key: String,
|
|
28
35
|
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
29
36
|
).returns(T.attached_class)
|
|
30
37
|
end
|
|
31
|
-
def self.new(body:, subject:, request_options: {})
|
|
38
|
+
def self.new(body:, subject:, idempotency_key: nil, request_options: {})
|
|
32
39
|
end
|
|
33
40
|
|
|
34
41
|
sig do
|
|
@@ -36,6 +43,7 @@ module XTwitterScraper
|
|
|
36
43
|
{
|
|
37
44
|
body: String,
|
|
38
45
|
subject: String,
|
|
46
|
+
idempotency_key: String,
|
|
39
47
|
request_options: XTwitterScraper::RequestOptions
|
|
40
48
|
}
|
|
41
49
|
)
|
|
@@ -12,19 +12,125 @@ module XTwitterScraper
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
sig
|
|
16
|
-
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
T::Array[
|
|
18
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment
|
|
19
|
+
]
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
attr_accessor :attachments
|
|
17
23
|
|
|
18
|
-
sig {
|
|
19
|
-
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
attr_accessor :public_id
|
|
20
26
|
|
|
21
|
-
sig
|
|
22
|
-
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
attachments:
|
|
30
|
+
T::Array[
|
|
31
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::OrHash
|
|
32
|
+
],
|
|
33
|
+
public_id: String
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(attachments:, public_id:)
|
|
23
37
|
end
|
|
24
38
|
|
|
25
|
-
sig
|
|
39
|
+
sig do
|
|
40
|
+
override.returns(
|
|
41
|
+
{
|
|
42
|
+
attachments:
|
|
43
|
+
T::Array[
|
|
44
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment
|
|
45
|
+
],
|
|
46
|
+
public_id: String
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
26
50
|
def to_hash
|
|
27
51
|
end
|
|
52
|
+
|
|
53
|
+
class Attachment < XTwitterScraper::Internal::Type::BaseModel
|
|
54
|
+
OrHash =
|
|
55
|
+
T.type_alias do
|
|
56
|
+
T.any(
|
|
57
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment,
|
|
58
|
+
XTwitterScraper::Internal::AnyHash
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
sig { returns(String) }
|
|
63
|
+
attr_accessor :public_id
|
|
64
|
+
|
|
65
|
+
sig do
|
|
66
|
+
returns(
|
|
67
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status::TaggedSymbol
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
attr_accessor :status
|
|
71
|
+
|
|
72
|
+
# Attachment identifier and initial processing state.
|
|
73
|
+
sig do
|
|
74
|
+
params(
|
|
75
|
+
public_id: String,
|
|
76
|
+
status:
|
|
77
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status::OrSymbol
|
|
78
|
+
).returns(T.attached_class)
|
|
79
|
+
end
|
|
80
|
+
def self.new(public_id:, status:)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
sig do
|
|
84
|
+
override.returns(
|
|
85
|
+
{
|
|
86
|
+
public_id: String,
|
|
87
|
+
status:
|
|
88
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status::TaggedSymbol
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def to_hash
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
module Status
|
|
96
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
97
|
+
|
|
98
|
+
TaggedSymbol =
|
|
99
|
+
T.type_alias do
|
|
100
|
+
T.all(
|
|
101
|
+
Symbol,
|
|
102
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
106
|
+
|
|
107
|
+
PENDING =
|
|
108
|
+
T.let(
|
|
109
|
+
:pending,
|
|
110
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status::TaggedSymbol
|
|
111
|
+
)
|
|
112
|
+
READY =
|
|
113
|
+
T.let(
|
|
114
|
+
:ready,
|
|
115
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status::TaggedSymbol
|
|
116
|
+
)
|
|
117
|
+
FAILED =
|
|
118
|
+
T.let(
|
|
119
|
+
:failed,
|
|
120
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status::TaggedSymbol
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
sig do
|
|
124
|
+
override.returns(
|
|
125
|
+
T::Array[
|
|
126
|
+
XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status::TaggedSymbol
|
|
127
|
+
]
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
def self.values
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
28
134
|
end
|
|
29
135
|
end
|
|
30
136
|
end
|
|
@@ -21,14 +21,21 @@ module XTwitterScraper
|
|
|
21
21
|
sig { returns(String) }
|
|
22
22
|
attr_accessor :body
|
|
23
23
|
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :idempotency_key
|
|
26
|
+
|
|
27
|
+
sig { params(idempotency_key: String).void }
|
|
28
|
+
attr_writer :idempotency_key
|
|
29
|
+
|
|
24
30
|
sig do
|
|
25
31
|
params(
|
|
26
32
|
id: String,
|
|
27
33
|
body: String,
|
|
34
|
+
idempotency_key: String,
|
|
28
35
|
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
29
36
|
).returns(T.attached_class)
|
|
30
37
|
end
|
|
31
|
-
def self.new(id:, body:, request_options: {})
|
|
38
|
+
def self.new(id:, body:, idempotency_key: nil, request_options: {})
|
|
32
39
|
end
|
|
33
40
|
|
|
34
41
|
sig do
|
|
@@ -36,6 +43,7 @@ module XTwitterScraper
|
|
|
36
43
|
{
|
|
37
44
|
id: String,
|
|
38
45
|
body: String,
|
|
46
|
+
idempotency_key: String,
|
|
39
47
|
request_options: XTwitterScraper::RequestOptions
|
|
40
48
|
}
|
|
41
49
|
)
|
|
@@ -12,19 +12,125 @@ module XTwitterScraper
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
sig
|
|
16
|
-
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
T::Array[
|
|
18
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment
|
|
19
|
+
]
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
attr_accessor :attachments
|
|
17
23
|
|
|
18
|
-
sig {
|
|
19
|
-
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
attr_accessor :public_id
|
|
20
26
|
|
|
21
|
-
sig
|
|
22
|
-
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
attachments:
|
|
30
|
+
T::Array[
|
|
31
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::OrHash
|
|
32
|
+
],
|
|
33
|
+
public_id: String
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(attachments:, public_id:)
|
|
23
37
|
end
|
|
24
38
|
|
|
25
|
-
sig
|
|
39
|
+
sig do
|
|
40
|
+
override.returns(
|
|
41
|
+
{
|
|
42
|
+
attachments:
|
|
43
|
+
T::Array[
|
|
44
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment
|
|
45
|
+
],
|
|
46
|
+
public_id: String
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
26
50
|
def to_hash
|
|
27
51
|
end
|
|
52
|
+
|
|
53
|
+
class Attachment < XTwitterScraper::Internal::Type::BaseModel
|
|
54
|
+
OrHash =
|
|
55
|
+
T.type_alias do
|
|
56
|
+
T.any(
|
|
57
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment,
|
|
58
|
+
XTwitterScraper::Internal::AnyHash
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
sig { returns(String) }
|
|
63
|
+
attr_accessor :public_id
|
|
64
|
+
|
|
65
|
+
sig do
|
|
66
|
+
returns(
|
|
67
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status::TaggedSymbol
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
attr_accessor :status
|
|
71
|
+
|
|
72
|
+
# Attachment identifier and initial processing state.
|
|
73
|
+
sig do
|
|
74
|
+
params(
|
|
75
|
+
public_id: String,
|
|
76
|
+
status:
|
|
77
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status::OrSymbol
|
|
78
|
+
).returns(T.attached_class)
|
|
79
|
+
end
|
|
80
|
+
def self.new(public_id:, status:)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
sig do
|
|
84
|
+
override.returns(
|
|
85
|
+
{
|
|
86
|
+
public_id: String,
|
|
87
|
+
status:
|
|
88
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status::TaggedSymbol
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def to_hash
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
module Status
|
|
96
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
97
|
+
|
|
98
|
+
TaggedSymbol =
|
|
99
|
+
T.type_alias do
|
|
100
|
+
T.all(
|
|
101
|
+
Symbol,
|
|
102
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
106
|
+
|
|
107
|
+
PENDING =
|
|
108
|
+
T.let(
|
|
109
|
+
:pending,
|
|
110
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status::TaggedSymbol
|
|
111
|
+
)
|
|
112
|
+
READY =
|
|
113
|
+
T.let(
|
|
114
|
+
:ready,
|
|
115
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status::TaggedSymbol
|
|
116
|
+
)
|
|
117
|
+
FAILED =
|
|
118
|
+
T.let(
|
|
119
|
+
:failed,
|
|
120
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status::TaggedSymbol
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
sig do
|
|
124
|
+
override.returns(
|
|
125
|
+
T::Array[
|
|
126
|
+
XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status::TaggedSymbol
|
|
127
|
+
]
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
def self.values
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
28
134
|
end
|
|
29
135
|
end
|
|
30
136
|
end
|