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
|
@@ -1,16 +1,60 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
3
|
module Support
|
|
4
|
-
type ticket_create_response =
|
|
4
|
+
type ticket_create_response =
|
|
5
|
+
{
|
|
6
|
+
attachments: ::Array[XTwitterScraper::Models::Support::TicketCreateResponse::Attachment],
|
|
7
|
+
public_id: String
|
|
8
|
+
}
|
|
5
9
|
|
|
6
10
|
class TicketCreateResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
7
|
-
|
|
11
|
+
attr_accessor attachments: ::Array[XTwitterScraper::Models::Support::TicketCreateResponse::Attachment]
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
attr_accessor public_id: String
|
|
10
14
|
|
|
11
|
-
def initialize: (
|
|
15
|
+
def initialize: (
|
|
16
|
+
attachments: ::Array[XTwitterScraper::Models::Support::TicketCreateResponse::Attachment],
|
|
17
|
+
public_id: String
|
|
18
|
+
) -> void
|
|
12
19
|
|
|
13
|
-
def to_hash: -> {
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
attachments: ::Array[XTwitterScraper::Models::Support::TicketCreateResponse::Attachment],
|
|
22
|
+
public_id: String
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type attachment =
|
|
26
|
+
{
|
|
27
|
+
public_id: String,
|
|
28
|
+
status: XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::status
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class Attachment < XTwitterScraper::Internal::Type::BaseModel
|
|
32
|
+
attr_accessor public_id: String
|
|
33
|
+
|
|
34
|
+
attr_accessor status: XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::status
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
public_id: String,
|
|
38
|
+
status: XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::status
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
public_id: String,
|
|
43
|
+
status: XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::status
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type status = :pending | :ready | :failed
|
|
47
|
+
|
|
48
|
+
module Status
|
|
49
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
PENDING: :pending
|
|
52
|
+
READY: :ready
|
|
53
|
+
FAILED: :failed
|
|
54
|
+
|
|
55
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::status]
|
|
56
|
+
end
|
|
57
|
+
end
|
|
14
58
|
end
|
|
15
59
|
end
|
|
16
60
|
end
|
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module Support
|
|
4
4
|
type ticket_reply_params =
|
|
5
|
-
{ id: String, body: String }
|
|
5
|
+
{ id: String, body: String, idempotency_key: String }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class TicketReplyParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -13,15 +13,21 @@ module XTwitterScraper
|
|
|
13
13
|
|
|
14
14
|
attr_accessor body: String
|
|
15
15
|
|
|
16
|
+
attr_reader idempotency_key: String?
|
|
17
|
+
|
|
18
|
+
def idempotency_key=: (String) -> String
|
|
19
|
+
|
|
16
20
|
def initialize: (
|
|
17
21
|
id: String,
|
|
18
22
|
body: String,
|
|
23
|
+
?idempotency_key: String,
|
|
19
24
|
?request_options: XTwitterScraper::request_opts
|
|
20
25
|
) -> void
|
|
21
26
|
|
|
22
27
|
def to_hash: -> {
|
|
23
28
|
id: String,
|
|
24
29
|
body: String,
|
|
30
|
+
idempotency_key: String,
|
|
25
31
|
request_options: XTwitterScraper::RequestOptions
|
|
26
32
|
}
|
|
27
33
|
end
|
|
@@ -1,16 +1,60 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
3
|
module Support
|
|
4
|
-
type ticket_reply_response =
|
|
4
|
+
type ticket_reply_response =
|
|
5
|
+
{
|
|
6
|
+
attachments: ::Array[XTwitterScraper::Models::Support::TicketReplyResponse::Attachment],
|
|
7
|
+
public_id: String
|
|
8
|
+
}
|
|
5
9
|
|
|
6
10
|
class TicketReplyResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
7
|
-
|
|
11
|
+
attr_accessor attachments: ::Array[XTwitterScraper::Models::Support::TicketReplyResponse::Attachment]
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
attr_accessor public_id: String
|
|
10
14
|
|
|
11
|
-
def initialize: (
|
|
15
|
+
def initialize: (
|
|
16
|
+
attachments: ::Array[XTwitterScraper::Models::Support::TicketReplyResponse::Attachment],
|
|
17
|
+
public_id: String
|
|
18
|
+
) -> void
|
|
12
19
|
|
|
13
|
-
def to_hash: -> {
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
attachments: ::Array[XTwitterScraper::Models::Support::TicketReplyResponse::Attachment],
|
|
22
|
+
public_id: String
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type attachment =
|
|
26
|
+
{
|
|
27
|
+
public_id: String,
|
|
28
|
+
status: XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::status
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class Attachment < XTwitterScraper::Internal::Type::BaseModel
|
|
32
|
+
attr_accessor public_id: String
|
|
33
|
+
|
|
34
|
+
attr_accessor status: XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::status
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
public_id: String,
|
|
38
|
+
status: XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::status
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
public_id: String,
|
|
43
|
+
status: XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::status
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type status = :pending | :ready | :failed
|
|
47
|
+
|
|
48
|
+
module Status
|
|
49
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
PENDING: :pending
|
|
52
|
+
READY: :ready
|
|
53
|
+
FAILED: :failed
|
|
54
|
+
|
|
55
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::status]
|
|
56
|
+
end
|
|
57
|
+
end
|
|
14
58
|
end
|
|
15
59
|
end
|
|
16
60
|
end
|
|
@@ -56,9 +56,21 @@ module XTwitterScraper
|
|
|
56
56
|
updated_at: Time
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
type message =
|
|
59
|
+
type message =
|
|
60
|
+
{
|
|
61
|
+
attachments: ::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment],
|
|
62
|
+
body: String,
|
|
63
|
+
created_at: Time,
|
|
64
|
+
sender: String
|
|
65
|
+
}
|
|
60
66
|
|
|
61
67
|
class Message < XTwitterScraper::Internal::Type::BaseModel
|
|
68
|
+
attr_reader attachments: ::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment]?
|
|
69
|
+
|
|
70
|
+
def attachments=: (
|
|
71
|
+
::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment]
|
|
72
|
+
) -> ::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment]
|
|
73
|
+
|
|
62
74
|
attr_reader body: String?
|
|
63
75
|
|
|
64
76
|
def body=: (String) -> String
|
|
@@ -72,12 +84,111 @@ module XTwitterScraper
|
|
|
72
84
|
def sender=: (String) -> String
|
|
73
85
|
|
|
74
86
|
def initialize: (
|
|
87
|
+
?attachments: ::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment],
|
|
75
88
|
?body: String,
|
|
76
89
|
?created_at: Time,
|
|
77
90
|
?sender: String
|
|
78
91
|
) -> void
|
|
79
92
|
|
|
80
|
-
def to_hash: -> {
|
|
93
|
+
def to_hash: -> {
|
|
94
|
+
attachments: ::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment],
|
|
95
|
+
body: String,
|
|
96
|
+
created_at: Time,
|
|
97
|
+
sender: String
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type attachment =
|
|
101
|
+
{
|
|
102
|
+
content_type: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::content_type,
|
|
103
|
+
filename: String,
|
|
104
|
+
kind: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::kind,
|
|
105
|
+
public_id: String,
|
|
106
|
+
size_bytes: Integer,
|
|
107
|
+
status: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::status,
|
|
108
|
+
url: String
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
class Attachment < XTwitterScraper::Internal::Type::BaseModel
|
|
112
|
+
attr_accessor content_type: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::content_type
|
|
113
|
+
|
|
114
|
+
attr_accessor filename: String
|
|
115
|
+
|
|
116
|
+
attr_accessor kind: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::kind
|
|
117
|
+
|
|
118
|
+
attr_accessor public_id: String
|
|
119
|
+
|
|
120
|
+
attr_accessor size_bytes: Integer
|
|
121
|
+
|
|
122
|
+
attr_accessor status: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::status
|
|
123
|
+
|
|
124
|
+
attr_accessor url: String
|
|
125
|
+
|
|
126
|
+
def initialize: (
|
|
127
|
+
content_type: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::content_type,
|
|
128
|
+
filename: String,
|
|
129
|
+
kind: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::kind,
|
|
130
|
+
public_id: String,
|
|
131
|
+
size_bytes: Integer,
|
|
132
|
+
status: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::status,
|
|
133
|
+
url: String
|
|
134
|
+
) -> void
|
|
135
|
+
|
|
136
|
+
def to_hash: -> {
|
|
137
|
+
content_type: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::content_type,
|
|
138
|
+
filename: String,
|
|
139
|
+
kind: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::kind,
|
|
140
|
+
public_id: String,
|
|
141
|
+
size_bytes: Integer,
|
|
142
|
+
status: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::status,
|
|
143
|
+
url: String
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
type content_type =
|
|
147
|
+
:"image/jpeg"
|
|
148
|
+
| :"image/png"
|
|
149
|
+
| :"image/gif"
|
|
150
|
+
| :"image/webp"
|
|
151
|
+
| :"video/mp4"
|
|
152
|
+
| :"video/quicktime"
|
|
153
|
+
| :"video/webm"
|
|
154
|
+
|
|
155
|
+
module ContentType
|
|
156
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
157
|
+
|
|
158
|
+
IMAGE_JPEG: :"image/jpeg"
|
|
159
|
+
IMAGE_PNG: :"image/png"
|
|
160
|
+
IMAGE_GIF: :"image/gif"
|
|
161
|
+
IMAGE_WEBP: :"image/webp"
|
|
162
|
+
VIDEO_MP4: :"video/mp4"
|
|
163
|
+
VIDEO_QUICKTIME: :"video/quicktime"
|
|
164
|
+
VIDEO_WEBM: :"video/webm"
|
|
165
|
+
|
|
166
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::content_type]
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
type kind = :image | :video
|
|
170
|
+
|
|
171
|
+
module Kind
|
|
172
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
173
|
+
|
|
174
|
+
IMAGE: :image
|
|
175
|
+
VIDEO: :video
|
|
176
|
+
|
|
177
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::kind]
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
type status = :pending | :ready | :failed
|
|
181
|
+
|
|
182
|
+
module Status
|
|
183
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
184
|
+
|
|
185
|
+
PENDING: :pending
|
|
186
|
+
READY: :ready
|
|
187
|
+
FAILED: :failed
|
|
188
|
+
|
|
189
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::Support::TicketRetrieveResponse::Message::Attachment::status]
|
|
190
|
+
end
|
|
191
|
+
end
|
|
81
192
|
end
|
|
82
193
|
end
|
|
83
194
|
end
|
|
@@ -3,7 +3,7 @@ module XTwitterScraper
|
|
|
3
3
|
module X
|
|
4
4
|
module Communities
|
|
5
5
|
type join_create_params =
|
|
6
|
-
{ id: String, account: String }
|
|
6
|
+
{ id: String, account: String, idempotency_key: String }
|
|
7
7
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
8
8
|
|
|
9
9
|
class JoinCreateParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -14,15 +14,19 @@ module XTwitterScraper
|
|
|
14
14
|
|
|
15
15
|
attr_accessor account: String
|
|
16
16
|
|
|
17
|
+
attr_accessor idempotency_key: String
|
|
18
|
+
|
|
17
19
|
def initialize: (
|
|
18
20
|
id: String,
|
|
19
21
|
account: String,
|
|
22
|
+
idempotency_key: String,
|
|
20
23
|
?request_options: XTwitterScraper::request_opts
|
|
21
24
|
) -> void
|
|
22
25
|
|
|
23
26
|
def to_hash: -> {
|
|
24
27
|
id: String,
|
|
25
28
|
account: String,
|
|
29
|
+
idempotency_key: String,
|
|
26
30
|
request_options: XTwitterScraper::RequestOptions
|
|
27
31
|
}
|
|
28
32
|
end
|