x-twitter-scraper 0.5.5 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +1 -1
- data/lib/x_twitter_scraper/models/compose_create_response.rb +62 -1
- data/lib/x_twitter_scraper/models/radar_item.rb +144 -7
- data/lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_params.rb +22 -0
- data/lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb +190 -0
- data/lib/x_twitter_scraper/models/x/account_create_params.rb +9 -9
- data/lib/x_twitter_scraper/models/x/account_create_response.rb +2 -57
- data/lib/x_twitter_scraper/models/x/account_reauth_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/x_account.rb +9 -9
- data/lib/x_twitter_scraper/resources/compose.rb +4 -4
- data/lib/x_twitter_scraper/resources/x/account_connection_attempts.rb +37 -0
- data/lib/x_twitter_scraper/resources/x/accounts.rb +6 -6
- data/lib/x_twitter_scraper/resources/x.rb +6 -0
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +3 -0
- data/rbi/x_twitter_scraper/models/compose_create_response.rbi +142 -0
- data/rbi/x_twitter_scraper/models/radar_item.rbi +245 -8
- data/rbi/x_twitter_scraper/models/x/account_connection_attempt_retrieve_params.rbi +40 -0
- data/rbi/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbi +317 -0
- data/rbi/x_twitter_scraper/models/x/account_create_params.rbi +8 -11
- data/rbi/x_twitter_scraper/models/x/account_create_response.rbi +2 -123
- data/rbi/x_twitter_scraper/models/x/account_reauth_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/x_account.rbi +12 -12
- data/rbi/x_twitter_scraper/resources/compose.rbi +4 -4
- data/rbi/x_twitter_scraper/resources/x/account_connection_attempts.rbi +33 -0
- data/rbi/x_twitter_scraper/resources/x/accounts.rbi +5 -5
- data/rbi/x_twitter_scraper/resources/x.rbi +4 -0
- data/sig/x_twitter_scraper/models/compose_create_response.rbs +60 -0
- data/sig/x_twitter_scraper/models/radar_item.rbs +100 -4
- data/sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_params.rbs +25 -0
- data/sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbs +182 -0
- data/sig/x_twitter_scraper/models/x/account_create_params.rbs +6 -8
- data/sig/x_twitter_scraper/models/x/account_create_response.rbs +1 -62
- data/sig/x_twitter_scraper/resources/x/account_connection_attempts.rbs +14 -0
- data/sig/x_twitter_scraper/resources/x/accounts.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x.rbs +2 -0
- metadata +11 -2
|
@@ -20,6 +20,7 @@ module XTwitterScraper
|
|
|
20
20
|
follow_up_questions: ::Array[String],
|
|
21
21
|
intent_url: String,
|
|
22
22
|
next_step: String,
|
|
23
|
+
radar_recommendations: ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation],
|
|
23
24
|
scorer_weights: ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight],
|
|
24
25
|
source: String,
|
|
25
26
|
top_penalties: ::Array[String],
|
|
@@ -41,6 +42,8 @@ module XTwitterScraper
|
|
|
41
42
|
|
|
42
43
|
attr_accessor next_step: String
|
|
43
44
|
|
|
45
|
+
attr_accessor radar_recommendations: ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation]
|
|
46
|
+
|
|
44
47
|
attr_accessor scorer_weights: ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight]
|
|
45
48
|
|
|
46
49
|
attr_accessor source: String
|
|
@@ -68,6 +71,7 @@ module XTwitterScraper
|
|
|
68
71
|
follow_up_questions: ::Array[String],
|
|
69
72
|
intent_url: String,
|
|
70
73
|
next_step: String,
|
|
74
|
+
radar_recommendations: ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation],
|
|
71
75
|
scorer_weights: ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight],
|
|
72
76
|
source: String,
|
|
73
77
|
top_penalties: ::Array[String],
|
|
@@ -83,6 +87,7 @@ module XTwitterScraper
|
|
|
83
87
|
follow_up_questions: ::Array[String],
|
|
84
88
|
intent_url: String,
|
|
85
89
|
next_step: String,
|
|
90
|
+
radar_recommendations: ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation],
|
|
86
91
|
scorer_weights: ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight],
|
|
87
92
|
source: String,
|
|
88
93
|
top_penalties: ::Array[String],
|
|
@@ -123,6 +128,61 @@ module XTwitterScraper
|
|
|
123
128
|
}
|
|
124
129
|
end
|
|
125
130
|
|
|
131
|
+
type radar_recommendation =
|
|
132
|
+
{
|
|
133
|
+
endpoint: String,
|
|
134
|
+
guidance: String,
|
|
135
|
+
source: XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation::source,
|
|
136
|
+
use_for: String
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class RadarRecommendation < XTwitterScraper::Internal::Type::BaseModel
|
|
140
|
+
attr_accessor endpoint: String
|
|
141
|
+
|
|
142
|
+
attr_accessor guidance: String
|
|
143
|
+
|
|
144
|
+
attr_accessor source: XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation::source
|
|
145
|
+
|
|
146
|
+
attr_accessor use_for: String
|
|
147
|
+
|
|
148
|
+
def initialize: (
|
|
149
|
+
endpoint: String,
|
|
150
|
+
guidance: String,
|
|
151
|
+
source: XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation::source,
|
|
152
|
+
use_for: String
|
|
153
|
+
) -> void
|
|
154
|
+
|
|
155
|
+
def to_hash: -> {
|
|
156
|
+
endpoint: String,
|
|
157
|
+
guidance: String,
|
|
158
|
+
source: XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation::source,
|
|
159
|
+
use_for: String
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
type source =
|
|
163
|
+
:reddit
|
|
164
|
+
| :github
|
|
165
|
+
| :trustmrr
|
|
166
|
+
| :hacker_news
|
|
167
|
+
| :google_trends
|
|
168
|
+
| :wikipedia
|
|
169
|
+
| :polymarket
|
|
170
|
+
|
|
171
|
+
module Source
|
|
172
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
173
|
+
|
|
174
|
+
REDDIT: :reddit
|
|
175
|
+
GITHUB: :github
|
|
176
|
+
TRUSTMRR: :trustmrr
|
|
177
|
+
HACKER_NEWS: :hacker_news
|
|
178
|
+
GOOGLE_TRENDS: :google_trends
|
|
179
|
+
WIKIPEDIA: :wikipedia
|
|
180
|
+
POLYMARKET: :polymarket
|
|
181
|
+
|
|
182
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::RadarRecommendation::source]
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
126
186
|
type scorer_weight = { context: String, signal: String, weight: nil }
|
|
127
187
|
|
|
128
188
|
class ScorerWeight < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -10,7 +10,7 @@ module XTwitterScraper
|
|
|
10
10
|
category: XTwitterScraper::Models::RadarItem::category,
|
|
11
11
|
created_at: Time,
|
|
12
12
|
language: String,
|
|
13
|
-
metadata: ::
|
|
13
|
+
metadata: XTwitterScraper::RadarItem::Metadata,
|
|
14
14
|
published_at: Time,
|
|
15
15
|
region: String,
|
|
16
16
|
score: Float,
|
|
@@ -31,7 +31,7 @@ module XTwitterScraper
|
|
|
31
31
|
|
|
32
32
|
attr_accessor language: String
|
|
33
33
|
|
|
34
|
-
attr_accessor metadata: ::
|
|
34
|
+
attr_accessor metadata: XTwitterScraper::RadarItem::Metadata
|
|
35
35
|
|
|
36
36
|
attr_accessor published_at: Time
|
|
37
37
|
|
|
@@ -62,7 +62,7 @@ module XTwitterScraper
|
|
|
62
62
|
category: XTwitterScraper::Models::RadarItem::category,
|
|
63
63
|
created_at: Time,
|
|
64
64
|
language: String,
|
|
65
|
-
metadata: ::
|
|
65
|
+
metadata: XTwitterScraper::RadarItem::Metadata,
|
|
66
66
|
published_at: Time,
|
|
67
67
|
region: String,
|
|
68
68
|
score: Float,
|
|
@@ -79,7 +79,7 @@ module XTwitterScraper
|
|
|
79
79
|
category: XTwitterScraper::Models::RadarItem::category,
|
|
80
80
|
created_at: Time,
|
|
81
81
|
language: String,
|
|
82
|
-
metadata: ::
|
|
82
|
+
metadata: XTwitterScraper::RadarItem::Metadata,
|
|
83
83
|
published_at: Time,
|
|
84
84
|
region: String,
|
|
85
85
|
score: Float,
|
|
@@ -116,6 +116,102 @@ module XTwitterScraper
|
|
|
116
116
|
def self?.values: -> ::Array[XTwitterScraper::Models::RadarItem::category]
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
+
type metadata =
|
|
120
|
+
{
|
|
121
|
+
author: String,
|
|
122
|
+
content_url: String,
|
|
123
|
+
estimated_downvotes: Integer,
|
|
124
|
+
estimated_upvotes: Integer,
|
|
125
|
+
number_comments: Integer,
|
|
126
|
+
score: Integer,
|
|
127
|
+
selftext: String,
|
|
128
|
+
source_format: XTwitterScraper::Models::RadarItem::Metadata::source_format,
|
|
129
|
+
subreddit: String,
|
|
130
|
+
upvote_ratio: Float
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
class Metadata < XTwitterScraper::Internal::Type::BaseModel
|
|
134
|
+
attr_reader author: String?
|
|
135
|
+
|
|
136
|
+
def author=: (String) -> String
|
|
137
|
+
|
|
138
|
+
attr_reader content_url: String?
|
|
139
|
+
|
|
140
|
+
def content_url=: (String) -> String
|
|
141
|
+
|
|
142
|
+
attr_reader estimated_downvotes: Integer?
|
|
143
|
+
|
|
144
|
+
def estimated_downvotes=: (Integer) -> Integer
|
|
145
|
+
|
|
146
|
+
attr_reader estimated_upvotes: Integer?
|
|
147
|
+
|
|
148
|
+
def estimated_upvotes=: (Integer) -> Integer
|
|
149
|
+
|
|
150
|
+
attr_reader number_comments: Integer?
|
|
151
|
+
|
|
152
|
+
def number_comments=: (Integer) -> Integer
|
|
153
|
+
|
|
154
|
+
attr_reader score: Integer?
|
|
155
|
+
|
|
156
|
+
def score=: (Integer) -> Integer
|
|
157
|
+
|
|
158
|
+
attr_reader selftext: String?
|
|
159
|
+
|
|
160
|
+
def selftext=: (String) -> String
|
|
161
|
+
|
|
162
|
+
attr_reader source_format: XTwitterScraper::Models::RadarItem::Metadata::source_format?
|
|
163
|
+
|
|
164
|
+
def source_format=: (
|
|
165
|
+
XTwitterScraper::Models::RadarItem::Metadata::source_format
|
|
166
|
+
) -> XTwitterScraper::Models::RadarItem::Metadata::source_format
|
|
167
|
+
|
|
168
|
+
attr_reader subreddit: String?
|
|
169
|
+
|
|
170
|
+
def subreddit=: (String) -> String
|
|
171
|
+
|
|
172
|
+
attr_reader upvote_ratio: Float?
|
|
173
|
+
|
|
174
|
+
def upvote_ratio=: (Float) -> Float
|
|
175
|
+
|
|
176
|
+
def initialize: (
|
|
177
|
+
?author: String,
|
|
178
|
+
?content_url: String,
|
|
179
|
+
?estimated_downvotes: Integer,
|
|
180
|
+
?estimated_upvotes: Integer,
|
|
181
|
+
?number_comments: Integer,
|
|
182
|
+
?score: Integer,
|
|
183
|
+
?selftext: String,
|
|
184
|
+
?source_format: XTwitterScraper::Models::RadarItem::Metadata::source_format,
|
|
185
|
+
?subreddit: String,
|
|
186
|
+
?upvote_ratio: Float
|
|
187
|
+
) -> void
|
|
188
|
+
|
|
189
|
+
def to_hash: -> {
|
|
190
|
+
author: String,
|
|
191
|
+
content_url: String,
|
|
192
|
+
estimated_downvotes: Integer,
|
|
193
|
+
estimated_upvotes: Integer,
|
|
194
|
+
number_comments: Integer,
|
|
195
|
+
score: Integer,
|
|
196
|
+
selftext: String,
|
|
197
|
+
source_format: XTwitterScraper::Models::RadarItem::Metadata::source_format,
|
|
198
|
+
subreddit: String,
|
|
199
|
+
upvote_ratio: Float
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
type source_format = :html | :json | :rss
|
|
203
|
+
|
|
204
|
+
module SourceFormat
|
|
205
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
206
|
+
|
|
207
|
+
HTML: :html
|
|
208
|
+
JSON: :json
|
|
209
|
+
RSS: :rss
|
|
210
|
+
|
|
211
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::RadarItem::Metadata::source_format]
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
119
215
|
type source =
|
|
120
216
|
:github
|
|
121
217
|
| :google_trends
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module XTwitterScraper
|
|
2
|
+
module Models
|
|
3
|
+
module X
|
|
4
|
+
type account_connection_attempt_retrieve_params =
|
|
5
|
+
{ id: String } & XTwitterScraper::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class AccountConnectionAttemptRetrieveParams < XTwitterScraper::Internal::Type::BaseModel
|
|
8
|
+
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
id: String,
|
|
15
|
+
?request_options: XTwitterScraper::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
id: String,
|
|
20
|
+
request_options: XTwitterScraper::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
module XTwitterScraper
|
|
2
|
+
module Models
|
|
3
|
+
module X
|
|
4
|
+
type account_connection_attempt_retrieve_response =
|
|
5
|
+
XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionAttemptPending
|
|
6
|
+
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionAttemptSuccess
|
|
7
|
+
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionAttemptFailed
|
|
8
|
+
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge
|
|
9
|
+
|
|
10
|
+
module AccountConnectionAttemptRetrieveResponse
|
|
11
|
+
extend XTwitterScraper::Internal::Type::Union
|
|
12
|
+
|
|
13
|
+
type x_account_connection_attempt_pending =
|
|
14
|
+
{
|
|
15
|
+
id: String,
|
|
16
|
+
object: :x_account_connection_attempt,
|
|
17
|
+
poll_after_ms: Integer,
|
|
18
|
+
status: :pending
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class XAccountConnectionAttemptPending < XTwitterScraper::Internal::Type::BaseModel
|
|
22
|
+
attr_accessor id: String
|
|
23
|
+
|
|
24
|
+
attr_accessor object: :x_account_connection_attempt
|
|
25
|
+
|
|
26
|
+
attr_accessor poll_after_ms: Integer
|
|
27
|
+
|
|
28
|
+
attr_accessor status: :pending
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
id: String,
|
|
32
|
+
poll_after_ms: Integer,
|
|
33
|
+
?object: :x_account_connection_attempt,
|
|
34
|
+
?status: :pending
|
|
35
|
+
) -> void
|
|
36
|
+
|
|
37
|
+
def to_hash: -> {
|
|
38
|
+
id: String,
|
|
39
|
+
object: :x_account_connection_attempt,
|
|
40
|
+
poll_after_ms: Integer,
|
|
41
|
+
status: :pending
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
type x_account_connection_attempt_success =
|
|
46
|
+
{
|
|
47
|
+
id: String,
|
|
48
|
+
object: :x_account_connection_attempt,
|
|
49
|
+
status: :success
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
class XAccountConnectionAttemptSuccess < XTwitterScraper::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor id: String
|
|
54
|
+
|
|
55
|
+
attr_accessor object: :x_account_connection_attempt
|
|
56
|
+
|
|
57
|
+
attr_accessor status: :success
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
id: String,
|
|
61
|
+
?object: :x_account_connection_attempt,
|
|
62
|
+
?status: :success
|
|
63
|
+
) -> void
|
|
64
|
+
|
|
65
|
+
def to_hash: -> {
|
|
66
|
+
id: String,
|
|
67
|
+
object: :x_account_connection_attempt,
|
|
68
|
+
status: :success
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
type x_account_connection_attempt_failed =
|
|
73
|
+
{
|
|
74
|
+
id: String,
|
|
75
|
+
error: String,
|
|
76
|
+
object: :x_account_connection_attempt,
|
|
77
|
+
retryable: bool,
|
|
78
|
+
status: :failed,
|
|
79
|
+
reason: String
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
class XAccountConnectionAttemptFailed < XTwitterScraper::Internal::Type::BaseModel
|
|
83
|
+
attr_accessor id: String
|
|
84
|
+
|
|
85
|
+
attr_accessor error: String
|
|
86
|
+
|
|
87
|
+
attr_accessor object: :x_account_connection_attempt
|
|
88
|
+
|
|
89
|
+
attr_accessor retryable: bool
|
|
90
|
+
|
|
91
|
+
attr_accessor status: :failed
|
|
92
|
+
|
|
93
|
+
attr_reader reason: String?
|
|
94
|
+
|
|
95
|
+
def reason=: (String) -> String
|
|
96
|
+
|
|
97
|
+
def initialize: (
|
|
98
|
+
id: String,
|
|
99
|
+
error: String,
|
|
100
|
+
retryable: bool,
|
|
101
|
+
?reason: String,
|
|
102
|
+
?object: :x_account_connection_attempt,
|
|
103
|
+
?status: :failed
|
|
104
|
+
) -> void
|
|
105
|
+
|
|
106
|
+
def to_hash: -> {
|
|
107
|
+
id: String,
|
|
108
|
+
error: String,
|
|
109
|
+
object: :x_account_connection_attempt,
|
|
110
|
+
retryable: bool,
|
|
111
|
+
status: :failed,
|
|
112
|
+
reason: String
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
type x_account_connection_challenge =
|
|
117
|
+
{
|
|
118
|
+
id: String,
|
|
119
|
+
expires_at: Time,
|
|
120
|
+
message: String,
|
|
121
|
+
object: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::object,
|
|
122
|
+
status: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::status,
|
|
123
|
+
username: String
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
class XAccountConnectionChallenge < XTwitterScraper::Internal::Type::BaseModel
|
|
127
|
+
attr_accessor id: String
|
|
128
|
+
|
|
129
|
+
attr_accessor expires_at: Time
|
|
130
|
+
|
|
131
|
+
attr_accessor message: String
|
|
132
|
+
|
|
133
|
+
attr_accessor object: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::object
|
|
134
|
+
|
|
135
|
+
attr_accessor status: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::status
|
|
136
|
+
|
|
137
|
+
attr_accessor username: String
|
|
138
|
+
|
|
139
|
+
def initialize: (
|
|
140
|
+
id: String,
|
|
141
|
+
expires_at: Time,
|
|
142
|
+
message: String,
|
|
143
|
+
object: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::object,
|
|
144
|
+
status: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::status,
|
|
145
|
+
username: String
|
|
146
|
+
) -> void
|
|
147
|
+
|
|
148
|
+
def to_hash: -> {
|
|
149
|
+
id: String,
|
|
150
|
+
expires_at: Time,
|
|
151
|
+
message: String,
|
|
152
|
+
object: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::object,
|
|
153
|
+
status: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::status,
|
|
154
|
+
username: String
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
type object = :x_account_connection_challenge
|
|
158
|
+
|
|
159
|
+
module Object
|
|
160
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
161
|
+
|
|
162
|
+
X_ACCOUNT_CONNECTION_CHALLENGE: :x_account_connection_challenge
|
|
163
|
+
|
|
164
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::object]
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
type status = :requires_email_code
|
|
168
|
+
|
|
169
|
+
module Status
|
|
170
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
171
|
+
|
|
172
|
+
REQUIRES_EMAIL_CODE: :requires_email_code
|
|
173
|
+
|
|
174
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::status]
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
def self?.variants: -> ::Array[XTwitterScraper::Models::X::account_connection_attempt_retrieve_response]
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
end
|
|
@@ -9,8 +9,8 @@ module XTwitterScraper
|
|
|
9
9
|
{
|
|
10
10
|
email: String,
|
|
11
11
|
password: String,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
totp_secret: String,
|
|
13
|
+
username: String
|
|
14
14
|
}
|
|
15
15
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
16
16
|
|
|
@@ -22,25 +22,23 @@ module XTwitterScraper
|
|
|
22
22
|
|
|
23
23
|
attr_accessor password: String
|
|
24
24
|
|
|
25
|
-
attr_accessor
|
|
26
|
-
|
|
27
|
-
attr_reader totp_secret: String?
|
|
25
|
+
attr_accessor totp_secret: String
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
attr_accessor username: String
|
|
30
28
|
|
|
31
29
|
def initialize: (
|
|
32
30
|
email: String,
|
|
33
31
|
password: String,
|
|
32
|
+
totp_secret: String,
|
|
34
33
|
username: String,
|
|
35
|
-
?totp_secret: String,
|
|
36
34
|
?request_options: XTwitterScraper::request_opts
|
|
37
35
|
) -> void
|
|
38
36
|
|
|
39
37
|
def to_hash: -> {
|
|
40
38
|
email: String,
|
|
41
39
|
password: String,
|
|
42
|
-
username: String,
|
|
43
40
|
totp_secret: String,
|
|
41
|
+
username: String,
|
|
44
42
|
request_options: XTwitterScraper::RequestOptions
|
|
45
43
|
}
|
|
46
44
|
end
|
|
@@ -5,68 +5,7 @@
|
|
|
5
5
|
module XTwitterScraper
|
|
6
6
|
module Models
|
|
7
7
|
module X
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
id: String,
|
|
11
|
-
created_at: Time,
|
|
12
|
-
health: XTwitterScraper::Models::X::AccountCreateResponse::health,
|
|
13
|
-
status: String,
|
|
14
|
-
x_user_id: String,
|
|
15
|
-
x_username: String
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
class AccountCreateResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
19
|
-
attr_accessor id: String
|
|
20
|
-
|
|
21
|
-
attr_accessor created_at: Time
|
|
22
|
-
|
|
23
|
-
attr_accessor health: XTwitterScraper::Models::X::AccountCreateResponse::health
|
|
24
|
-
|
|
25
|
-
attr_accessor status: String
|
|
26
|
-
|
|
27
|
-
attr_accessor x_user_id: String
|
|
28
|
-
|
|
29
|
-
attr_accessor x_username: String
|
|
30
|
-
|
|
31
|
-
def initialize: (
|
|
32
|
-
id: String,
|
|
33
|
-
created_at: Time,
|
|
34
|
-
health: XTwitterScraper::Models::X::AccountCreateResponse::health,
|
|
35
|
-
status: String,
|
|
36
|
-
x_user_id: String,
|
|
37
|
-
x_username: String
|
|
38
|
-
) -> void
|
|
39
|
-
|
|
40
|
-
def to_hash: -> {
|
|
41
|
-
id: String,
|
|
42
|
-
created_at: Time,
|
|
43
|
-
health: XTwitterScraper::Models::X::AccountCreateResponse::health,
|
|
44
|
-
status: String,
|
|
45
|
-
x_user_id: String,
|
|
46
|
-
x_username: String
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
type health =
|
|
50
|
-
:healthy
|
|
51
|
-
| :locked
|
|
52
|
-
| :needsReauth
|
|
53
|
-
| :recovering
|
|
54
|
-
| :suspended
|
|
55
|
-
| :temporaryIssue
|
|
56
|
-
|
|
57
|
-
module Health
|
|
58
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
59
|
-
|
|
60
|
-
HEALTHY: :healthy
|
|
61
|
-
LOCKED: :locked
|
|
62
|
-
NEEDS_REAUTH: :needsReauth
|
|
63
|
-
RECOVERING: :recovering
|
|
64
|
-
SUSPENDED: :suspended
|
|
65
|
-
TEMPORARY_ISSUE: :temporaryIssue
|
|
66
|
-
|
|
67
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::X::AccountCreateResponse::health]
|
|
68
|
-
end
|
|
69
|
-
end
|
|
8
|
+
AccountCreateResponse: XTwitterScraper::Internal::Type::Converter
|
|
70
9
|
end
|
|
71
10
|
end
|
|
72
11
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module XTwitterScraper
|
|
2
|
+
module Resources
|
|
3
|
+
class X
|
|
4
|
+
class AccountConnectionAttempts
|
|
5
|
+
def retrieve: (
|
|
6
|
+
String id,
|
|
7
|
+
?request_options: XTwitterScraper::request_opts
|
|
8
|
+
) -> XTwitterScraper::Models::X::account_connection_attempt_retrieve_response
|
|
9
|
+
|
|
10
|
+
def initialize: (client: XTwitterScraper::Client) -> void
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -9,10 +9,10 @@ module XTwitterScraper
|
|
|
9
9
|
def create: (
|
|
10
10
|
email: String,
|
|
11
11
|
password: String,
|
|
12
|
+
totp_secret: String,
|
|
12
13
|
username: String,
|
|
13
|
-
?totp_secret: String,
|
|
14
14
|
?request_options: XTwitterScraper::request_opts
|
|
15
|
-
) ->
|
|
15
|
+
) -> top
|
|
16
16
|
|
|
17
17
|
def retrieve: (
|
|
18
18
|
String id,
|
|
@@ -25,6 +25,8 @@ module XTwitterScraper
|
|
|
25
25
|
|
|
26
26
|
attr_reader account_connection_challenges: XTwitterScraper::Resources::X::AccountConnectionChallenges
|
|
27
27
|
|
|
28
|
+
attr_reader account_connection_attempts: XTwitterScraper::Resources::X::AccountConnectionAttempts
|
|
29
|
+
|
|
28
30
|
attr_reader bookmarks: XTwitterScraper::Resources::X::Bookmarks
|
|
29
31
|
|
|
30
32
|
attr_reader lists: XTwitterScraper::Resources::X::Lists
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: x-twitter-scraper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Xquik
|
|
@@ -210,6 +210,8 @@ files:
|
|
|
210
210
|
- lib/x_twitter_scraper/models/winner.rb
|
|
211
211
|
- lib/x_twitter_scraper/models/x/account_bulk_retry_params.rb
|
|
212
212
|
- lib/x_twitter_scraper/models/x/account_bulk_retry_response.rb
|
|
213
|
+
- lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_params.rb
|
|
214
|
+
- lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb
|
|
213
215
|
- lib/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rb
|
|
214
216
|
- lib/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rb
|
|
215
217
|
- lib/x_twitter_scraper/models/x/account_create_params.rb
|
|
@@ -330,6 +332,7 @@ files:
|
|
|
330
332
|
- lib/x_twitter_scraper/resources/trends.rb
|
|
331
333
|
- lib/x_twitter_scraper/resources/webhooks.rb
|
|
332
334
|
- lib/x_twitter_scraper/resources/x.rb
|
|
335
|
+
- lib/x_twitter_scraper/resources/x/account_connection_attempts.rb
|
|
333
336
|
- lib/x_twitter_scraper/resources/x/account_connection_challenges.rb
|
|
334
337
|
- lib/x_twitter_scraper/resources/x/accounts.rb
|
|
335
338
|
- lib/x_twitter_scraper/resources/x/bookmarks.rb
|
|
@@ -496,6 +499,8 @@ files:
|
|
|
496
499
|
- rbi/x_twitter_scraper/models/winner.rbi
|
|
497
500
|
- rbi/x_twitter_scraper/models/x/account_bulk_retry_params.rbi
|
|
498
501
|
- rbi/x_twitter_scraper/models/x/account_bulk_retry_response.rbi
|
|
502
|
+
- rbi/x_twitter_scraper/models/x/account_connection_attempt_retrieve_params.rbi
|
|
503
|
+
- rbi/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbi
|
|
499
504
|
- rbi/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rbi
|
|
500
505
|
- rbi/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbi
|
|
501
506
|
- rbi/x_twitter_scraper/models/x/account_create_params.rbi
|
|
@@ -616,6 +621,7 @@ files:
|
|
|
616
621
|
- rbi/x_twitter_scraper/resources/trends.rbi
|
|
617
622
|
- rbi/x_twitter_scraper/resources/webhooks.rbi
|
|
618
623
|
- rbi/x_twitter_scraper/resources/x.rbi
|
|
624
|
+
- rbi/x_twitter_scraper/resources/x/account_connection_attempts.rbi
|
|
619
625
|
- rbi/x_twitter_scraper/resources/x/account_connection_challenges.rbi
|
|
620
626
|
- rbi/x_twitter_scraper/resources/x/accounts.rbi
|
|
621
627
|
- rbi/x_twitter_scraper/resources/x/bookmarks.rbi
|
|
@@ -781,6 +787,8 @@ files:
|
|
|
781
787
|
- sig/x_twitter_scraper/models/winner.rbs
|
|
782
788
|
- sig/x_twitter_scraper/models/x/account_bulk_retry_params.rbs
|
|
783
789
|
- sig/x_twitter_scraper/models/x/account_bulk_retry_response.rbs
|
|
790
|
+
- sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_params.rbs
|
|
791
|
+
- sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbs
|
|
784
792
|
- sig/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rbs
|
|
785
793
|
- sig/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbs
|
|
786
794
|
- sig/x_twitter_scraper/models/x/account_create_params.rbs
|
|
@@ -901,6 +909,7 @@ files:
|
|
|
901
909
|
- sig/x_twitter_scraper/resources/trends.rbs
|
|
902
910
|
- sig/x_twitter_scraper/resources/webhooks.rbs
|
|
903
911
|
- sig/x_twitter_scraper/resources/x.rbs
|
|
912
|
+
- sig/x_twitter_scraper/resources/x/account_connection_attempts.rbs
|
|
904
913
|
- sig/x_twitter_scraper/resources/x/account_connection_challenges.rbs
|
|
905
914
|
- sig/x_twitter_scraper/resources/x/accounts.rbs
|
|
906
915
|
- sig/x_twitter_scraper/resources/x/bookmarks.rbs
|
|
@@ -940,7 +949,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
940
949
|
- !ruby/object:Gem::Version
|
|
941
950
|
version: '0'
|
|
942
951
|
requirements: []
|
|
943
|
-
rubygems_version: 4.0.
|
|
952
|
+
rubygems_version: 4.0.16
|
|
944
953
|
specification_version: 4
|
|
945
954
|
summary: Ruby SDK for the Xquik API
|
|
946
955
|
test_files: []
|