1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/// Twitter/X tasks exposed by the CLI runtime.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum TwitterRunTask {
/// Search tweets by raw query.
SearchTweets {
/// Search keyword or advanced query string.
query: String,
/// Optional search result type.
search_type: Option<crate::platforms::twitter::TwitterTweetSearchMode>,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one user profile.
UserProfile {
/// Target screen name.
screen_name: String,
},
/// Fetch one page of a user timeline.
UserTimeline {
/// Target screen name.
screen_name: String,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of a user's replies timeline.
UserReplies {
/// Target screen name.
screen_name: String,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of a user's media timeline.
UserMedia {
/// Target screen name.
screen_name: String,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of a user's followers.
UserFollowers {
/// Target screen name.
screen_name: String,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of a user's following list.
UserFollowing {
/// Target screen name.
screen_name: String,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of the authenticated user's liked tweets.
UserLikes {
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of the authenticated user's bookmarks.
UserBookmarks {
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of the authenticated user's followed feed.
UserFollowed {
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of the authenticated user's recommended feed.
UserRecommended {
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Search users by query text.
SearchUsers {
/// Search keyword or screen name fragment.
query: String,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one tweet detail.
TweetDetail {
/// Target tweet id.
tweet_id: String,
},
/// Fetch one page of replies to a tweet.
TweetReplies {
/// Target tweet id.
tweet_id: String,
/// Optional pagination cursor.
cursor: Option<String>,
/// Optional reply sorting mode.
sort_by: Option<crate::platforms::twitter::TwitterTweetRepliesSortMode>,
},
/// Fetch one page of users who liked a tweet.
TweetLikers {
/// Target tweet id.
tweet_id: String,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one page of users who retweeted a tweet.
TweetRetweeters {
/// Target tweet id.
tweet_id: String,
/// Optional page size.
count: Option<u32>,
/// Optional pagination cursor.
cursor: Option<String>,
},
/// Fetch one Space detail.
SpaceDetail {
/// Target space id.
space_id: String,
},
}