@pipedream/twitter 2.2.0 → 2.2.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.
- package/dist/actions/add-user-to-list/add-user-to-list.d.ts +2 -199
- package/dist/actions/add-user-to-list/add-user-to-list.mjs +21 -24
- package/dist/actions/create-tweet/create-tweet.d.ts +17 -16
- package/dist/actions/create-tweet/create-tweet.mjs +29 -34
- package/dist/actions/delete-tweet/delete-tweet.d.ts +3 -133
- package/dist/actions/delete-tweet/delete-tweet.mjs +14 -18
- package/dist/actions/follow-user/follow-user.d.ts +2 -133
- package/dist/actions/follow-user/follow-user.mjs +19 -22
- package/dist/actions/get-tweet/get-tweet.d.ts +2 -134
- package/dist/actions/get-tweet/get-tweet.mjs +16 -19
- package/dist/actions/get-user/get-user.d.ts +2 -134
- package/dist/actions/get-user/get-user.mjs +19 -22
- package/dist/actions/like-tweet/like-tweet.d.ts +3 -133
- package/dist/actions/like-tweet/like-tweet.mjs +16 -20
- package/dist/actions/list-favorites/list-favorites.d.ts +2 -203
- package/dist/actions/list-favorites/list-favorites.mjs +19 -22
- package/dist/actions/list-followers/list-followers.d.ts +2 -203
- package/dist/actions/list-followers/list-followers.mjs +19 -22
- package/dist/actions/list-lists/list-lists.d.ts +2 -203
- package/dist/actions/list-lists/list-lists.mjs +19 -22
- package/dist/actions/list-mentions/list-mentions.d.ts +2 -203
- package/dist/actions/list-mentions/list-mentions.mjs +19 -22
- package/dist/actions/list-user-tweets/list-user-tweets.d.ts +2 -203
- package/dist/actions/list-user-tweets/list-user-tweets.mjs +19 -22
- package/dist/actions/retweet/retweet.d.ts +3 -133
- package/dist/actions/retweet/retweet.mjs +18 -22
- package/dist/actions/send-dm/send-dm.d.ts +2 -140
- package/dist/actions/send-dm/send-dm.mjs +18 -21
- package/dist/actions/simple-search/simple-search.d.ts +2 -203
- package/dist/actions/simple-search/simple-search.mjs +20 -23
- package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +2 -208
- package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +23 -26
- package/dist/actions/unfollow-user/unfollow-user.d.ts +2 -133
- package/dist/actions/unfollow-user/unfollow-user.mjs +15 -18
- package/dist/actions/unlike-tweet/unlike-tweet.d.ts +3 -133
- package/dist/actions/unlike-tweet/unlike-tweet.mjs +14 -18
- package/dist/actions/upload-media/upload-media.d.ts +3 -82
- package/dist/actions/upload-media/upload-media.mjs +24 -21
- package/dist/app/twitter.app.d.ts +2 -1
- package/dist/app/twitter.app.mjs +40 -29
- package/dist/common/appValidation.d.ts +144 -0
- package/dist/common/appValidation.mjs +28 -0
- package/dist/common/errorMessage.d.ts +24 -2
- package/dist/common/errorMessage.mjs +25 -1
- package/dist/common/types/requestParams.d.ts +26 -22
- package/dist/sources/common/base.d.ts +137 -64
- package/dist/sources/common/base.mjs +8 -2
- package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +2 -140
- package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +2 -3
- package/dist/sources/new-list-followed/new-list-followed.d.ts +2 -140
- package/dist/sources/new-list-followed/new-list-followed.mjs +2 -3
- package/dist/sources/new-mention-received-by-user/new-mention-received-by-user.d.ts +2 -140
- package/dist/sources/new-mention-received-by-user/new-mention-received-by-user.mjs +2 -3
- package/dist/sources/new-message/new-message.d.ts +2 -74
- package/dist/sources/new-message/new-message.mjs +1 -1
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +2 -140
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +2 -3
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +2 -140
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +2 -3
- package/dist/sources/new-tweet-metrics/new-tweet-metrics.d.ts +3 -148
- package/dist/sources/new-tweet-metrics/new-tweet-metrics.mjs +2 -3
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +2 -140
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +2 -3
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +2 -140
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +2 -3
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +2 -140
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +2 -3
- package/dist/sources/new-user-followed/new-user-followed.d.ts +2 -139
- package/dist/sources/new-user-followed/new-user-followed.mjs +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,203 +1,6 @@
|
|
|
1
1
|
import { getUserId } from "../../common/methods.js";
|
|
2
|
-
import { AddUserToListParams } from "../../common/types/requestParams.js";
|
|
3
2
|
declare const _default: import("@pipedream/types").Action<{
|
|
4
3
|
getUserId: typeof getUserId;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
8
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
9
|
-
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
10
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
11
|
-
addUserToList({ listId, ...args }: AddUserToListParams): Promise<object>;
|
|
12
|
-
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
13
|
-
deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
14
|
-
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
15
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
16
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
17
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
18
|
-
getAuthenticatedUserId(): Promise<string>;
|
|
19
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
20
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
21
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
22
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
23
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
24
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
25
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
26
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
27
|
-
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
28
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
29
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
30
|
-
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
31
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
32
|
-
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
33
|
-
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
34
|
-
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
35
|
-
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
36
|
-
}, {
|
|
37
|
-
maxResults: {
|
|
38
|
-
type: string;
|
|
39
|
-
label: string;
|
|
40
|
-
description: string;
|
|
41
|
-
optional: boolean;
|
|
42
|
-
};
|
|
43
|
-
listId: {
|
|
44
|
-
type: string;
|
|
45
|
-
label: string;
|
|
46
|
-
description: string;
|
|
47
|
-
options(): Promise<{
|
|
48
|
-
label: string;
|
|
49
|
-
value: string;
|
|
50
|
-
}[]>;
|
|
51
|
-
};
|
|
52
|
-
userNameOrId: {
|
|
53
|
-
type: string;
|
|
54
|
-
label: string;
|
|
55
|
-
description: string;
|
|
56
|
-
optional: boolean;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
tweetId: {
|
|
60
|
-
type: string;
|
|
61
|
-
label: string;
|
|
62
|
-
description: string;
|
|
63
|
-
};
|
|
64
|
-
query: {
|
|
65
|
-
type: string;
|
|
66
|
-
label: string;
|
|
67
|
-
description: string;
|
|
68
|
-
};
|
|
69
|
-
}>;
|
|
70
|
-
listId: {
|
|
71
|
-
propDefinition: (string | import("@pipedream/types").App<{
|
|
72
|
-
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
73
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
74
|
-
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
75
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
76
|
-
addUserToList({ listId, ...args }: AddUserToListParams): Promise<object>;
|
|
77
|
-
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
78
|
-
deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
79
|
-
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
80
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
81
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
82
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
83
|
-
getAuthenticatedUserId(): Promise<string>;
|
|
84
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
85
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
86
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
87
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
88
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
89
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
90
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
91
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
92
|
-
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
93
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
94
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
95
|
-
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
96
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
97
|
-
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
98
|
-
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
99
|
-
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
100
|
-
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
101
|
-
}, {
|
|
102
|
-
maxResults: {
|
|
103
|
-
type: string;
|
|
104
|
-
label: string;
|
|
105
|
-
description: string;
|
|
106
|
-
optional: boolean;
|
|
107
|
-
};
|
|
108
|
-
listId: {
|
|
109
|
-
type: string;
|
|
110
|
-
label: string;
|
|
111
|
-
description: string;
|
|
112
|
-
options(): Promise<{
|
|
113
|
-
label: string;
|
|
114
|
-
value: string;
|
|
115
|
-
}[]>;
|
|
116
|
-
};
|
|
117
|
-
userNameOrId: {
|
|
118
|
-
type: string;
|
|
119
|
-
label: string;
|
|
120
|
-
description: string;
|
|
121
|
-
optional: boolean;
|
|
122
|
-
default: string;
|
|
123
|
-
};
|
|
124
|
-
tweetId: {
|
|
125
|
-
type: string;
|
|
126
|
-
label: string;
|
|
127
|
-
description: string;
|
|
128
|
-
};
|
|
129
|
-
query: {
|
|
130
|
-
type: string;
|
|
131
|
-
label: string;
|
|
132
|
-
description: string;
|
|
133
|
-
};
|
|
134
|
-
}>)[];
|
|
135
|
-
};
|
|
136
|
-
userNameOrId: {
|
|
137
|
-
propDefinition: (string | import("@pipedream/types").App<{
|
|
138
|
-
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
139
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
140
|
-
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
141
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
142
|
-
addUserToList({ listId, ...args }: AddUserToListParams): Promise<object>;
|
|
143
|
-
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
144
|
-
deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
145
|
-
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
146
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
147
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
148
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
149
|
-
getAuthenticatedUserId(): Promise<string>;
|
|
150
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
151
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
152
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
153
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
154
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
155
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
156
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
157
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
158
|
-
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
159
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
160
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
161
|
-
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
162
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
163
|
-
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
164
|
-
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
165
|
-
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
166
|
-
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
167
|
-
}, {
|
|
168
|
-
maxResults: {
|
|
169
|
-
type: string;
|
|
170
|
-
label: string;
|
|
171
|
-
description: string;
|
|
172
|
-
optional: boolean;
|
|
173
|
-
};
|
|
174
|
-
listId: {
|
|
175
|
-
type: string;
|
|
176
|
-
label: string;
|
|
177
|
-
description: string;
|
|
178
|
-
options(): Promise<{
|
|
179
|
-
label: string;
|
|
180
|
-
value: string;
|
|
181
|
-
}[]>;
|
|
182
|
-
};
|
|
183
|
-
userNameOrId: {
|
|
184
|
-
type: string;
|
|
185
|
-
label: string;
|
|
186
|
-
description: string;
|
|
187
|
-
optional: boolean;
|
|
188
|
-
default: string;
|
|
189
|
-
};
|
|
190
|
-
tweetId: {
|
|
191
|
-
type: string;
|
|
192
|
-
label: string;
|
|
193
|
-
description: string;
|
|
194
|
-
};
|
|
195
|
-
query: {
|
|
196
|
-
type: string;
|
|
197
|
-
label: string;
|
|
198
|
-
description: string;
|
|
199
|
-
};
|
|
200
|
-
}>)[];
|
|
201
|
-
};
|
|
202
|
-
}>;
|
|
4
|
+
getTweets(args?: {}): any;
|
|
5
|
+
}, any>;
|
|
203
6
|
export default _default;
|
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
import
|
|
1
|
+
import common from "../../common/appValidation.mjs";
|
|
2
2
|
import { ACTION_ERROR_MESSAGE } from "../../common/errorMessage.mjs";
|
|
3
3
|
import { defineAction } from "@pipedream/types";
|
|
4
4
|
import { getUserId } from "../../common/methods.mjs";
|
|
5
5
|
const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/lists/list-members/api-reference/post-lists-id-members";
|
|
6
6
|
export default defineAction({
|
|
7
|
+
...common,
|
|
7
8
|
key: "twitter-add-user-to-list",
|
|
8
9
|
name: "Add User To List",
|
|
9
10
|
description: `Add a member to a list owned by the user. [See the documentation](${DOCS_LINK})`,
|
|
10
|
-
version: "2.0.
|
|
11
|
+
version: "2.0.5",
|
|
11
12
|
type: "action",
|
|
12
13
|
props: {
|
|
13
|
-
|
|
14
|
+
...common.props,
|
|
14
15
|
listId: {
|
|
15
16
|
propDefinition: [
|
|
16
|
-
app,
|
|
17
|
+
common.props.app,
|
|
17
18
|
"listId",
|
|
18
19
|
],
|
|
19
20
|
},
|
|
20
21
|
userNameOrId: {
|
|
21
22
|
propDefinition: [
|
|
22
|
-
app,
|
|
23
|
+
common.props.app,
|
|
23
24
|
"userNameOrId",
|
|
24
25
|
],
|
|
25
26
|
},
|
|
26
27
|
},
|
|
27
28
|
methods: {
|
|
29
|
+
...common.methods,
|
|
28
30
|
getUserId,
|
|
29
31
|
},
|
|
30
32
|
async run({ $ }) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
catch (err) {
|
|
47
|
-
$.export("error", err);
|
|
48
|
-
throw new Error(ACTION_ERROR_MESSAGE);
|
|
49
|
-
}
|
|
33
|
+
const userId = await this.getUserId();
|
|
34
|
+
const params = {
|
|
35
|
+
$,
|
|
36
|
+
data: {
|
|
37
|
+
user_id: userId,
|
|
38
|
+
},
|
|
39
|
+
listId: this.listId,
|
|
40
|
+
fallbackError: ACTION_ERROR_MESSAGE,
|
|
41
|
+
};
|
|
42
|
+
const response = await this.app.addUserToList(params);
|
|
43
|
+
$.export("$summary", response.data?.is_member !== true
|
|
44
|
+
? "User not added to list"
|
|
45
|
+
: "Successfully added user to list");
|
|
46
|
+
return response;
|
|
50
47
|
},
|
|
51
48
|
});
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { CreateTweetParams } from "../../common/types/requestParams.js";
|
|
2
2
|
declare const _default: import("@pipedream/types").Action<unknown, {
|
|
3
3
|
app: import("@pipedream/types").App<{
|
|
4
|
+
throwError(data: any): void;
|
|
4
5
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
5
6
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
6
|
-
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
7
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
7
|
+
_httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").TwitterEntity>>;
|
|
8
|
+
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").TwitterEntity>>;
|
|
8
9
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
9
10
|
createTweet(args: CreateTweetParams): Promise<object>;
|
|
10
11
|
deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
11
12
|
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
12
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
13
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
14
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
13
|
+
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
14
|
+
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
15
|
+
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
15
16
|
getAuthenticatedUserId(): Promise<string>;
|
|
16
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
17
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
18
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
19
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
20
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
21
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
22
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
23
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
17
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").DirectMessage>>;
|
|
18
|
+
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
19
|
+
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
|
|
20
|
+
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
|
|
21
|
+
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
22
|
+
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
23
|
+
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
24
|
+
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
24
25
|
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
25
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
26
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
26
|
+
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
27
|
+
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
27
28
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
28
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
29
|
+
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
29
30
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
30
31
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
31
32
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
@@ -6,7 +6,7 @@ export default defineAction({
|
|
|
6
6
|
key: "twitter-create-tweet",
|
|
7
7
|
name: "Create Tweet",
|
|
8
8
|
description: `Create a new tweet. [See the documentation](${DOCS_LINK})`,
|
|
9
|
-
version: "2.1.
|
|
9
|
+
version: "2.1.3",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -48,38 +48,33 @@ export default defineAction({
|
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
async run({ $ }) {
|
|
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
|
-
catch (err) {
|
|
81
|
-
$.export("error", err);
|
|
82
|
-
throw new Error(ACTION_ERROR_MESSAGE);
|
|
83
|
-
}
|
|
51
|
+
const { text, inReplyToTweetId, excludeReplyUserIds, mediaIds, placeId, taggedUserIds, } = this;
|
|
52
|
+
const params = {
|
|
53
|
+
$,
|
|
54
|
+
data: {
|
|
55
|
+
text,
|
|
56
|
+
...((inReplyToTweetId || excludeReplyUserIds) && {
|
|
57
|
+
reply: {
|
|
58
|
+
exclude_reply_user_ids: excludeReplyUserIds,
|
|
59
|
+
in_reply_to_tweet_id: inReplyToTweetId,
|
|
60
|
+
},
|
|
61
|
+
}),
|
|
62
|
+
...((mediaIds || taggedUserIds) && {
|
|
63
|
+
media: {
|
|
64
|
+
media_ids: mediaIds,
|
|
65
|
+
tagged_user_ids: taggedUserIds,
|
|
66
|
+
},
|
|
67
|
+
}),
|
|
68
|
+
...(placeId && {
|
|
69
|
+
geo: {
|
|
70
|
+
place_id: placeId,
|
|
71
|
+
},
|
|
72
|
+
}),
|
|
73
|
+
},
|
|
74
|
+
fallbackError: ACTION_ERROR_MESSAGE,
|
|
75
|
+
};
|
|
76
|
+
const response = await this.app.createTweet(params);
|
|
77
|
+
$.export("$summary", `Successfully posted tweet (ID ${response.data?.id})`);
|
|
78
|
+
return response;
|
|
84
79
|
},
|
|
85
80
|
});
|
|
@@ -1,134 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
5
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
6
|
-
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
7
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
8
|
-
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
9
|
-
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
10
|
-
deleteTweet({ tweetId, ...args }: DeleteTweetParams): Promise<object>;
|
|
11
|
-
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
12
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
13
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
14
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
15
|
-
getAuthenticatedUserId(): Promise<string>;
|
|
16
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
17
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
18
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
19
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
20
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
21
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
22
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
23
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
24
|
-
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
25
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
26
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
27
|
-
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
28
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
29
|
-
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
30
|
-
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
31
|
-
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
32
|
-
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
33
|
-
}, {
|
|
34
|
-
maxResults: {
|
|
35
|
-
type: string;
|
|
36
|
-
label: string;
|
|
37
|
-
description: string;
|
|
38
|
-
optional: boolean;
|
|
39
|
-
};
|
|
40
|
-
listId: {
|
|
41
|
-
type: string;
|
|
42
|
-
label: string;
|
|
43
|
-
description: string;
|
|
44
|
-
options(): Promise<{
|
|
45
|
-
label: string;
|
|
46
|
-
value: string;
|
|
47
|
-
}[]>;
|
|
48
|
-
};
|
|
49
|
-
userNameOrId: {
|
|
50
|
-
type: string;
|
|
51
|
-
label: string;
|
|
52
|
-
description: string;
|
|
53
|
-
optional: boolean;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
tweetId: {
|
|
57
|
-
type: string;
|
|
58
|
-
label: string;
|
|
59
|
-
description: string;
|
|
60
|
-
};
|
|
61
|
-
query: {
|
|
62
|
-
type: string;
|
|
63
|
-
label: string;
|
|
64
|
-
description: string;
|
|
65
|
-
};
|
|
66
|
-
}>;
|
|
67
|
-
tweetId: {
|
|
68
|
-
propDefinition: (string | import("@pipedream/types").App<{
|
|
69
|
-
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
70
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
71
|
-
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
72
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
73
|
-
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
74
|
-
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
75
|
-
deleteTweet({ tweetId, ...args }: DeleteTweetParams): Promise<object>;
|
|
76
|
-
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
77
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
78
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
79
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
80
|
-
getAuthenticatedUserId(): Promise<string>;
|
|
81
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
82
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
83
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
84
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
85
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
86
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
87
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
88
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
89
|
-
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
90
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
91
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
92
|
-
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
93
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
94
|
-
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
95
|
-
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
96
|
-
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
97
|
-
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
98
|
-
}, {
|
|
99
|
-
maxResults: {
|
|
100
|
-
type: string;
|
|
101
|
-
label: string;
|
|
102
|
-
description: string;
|
|
103
|
-
optional: boolean;
|
|
104
|
-
};
|
|
105
|
-
listId: {
|
|
106
|
-
type: string;
|
|
107
|
-
label: string;
|
|
108
|
-
description: string;
|
|
109
|
-
options(): Promise<{
|
|
110
|
-
label: string;
|
|
111
|
-
value: string;
|
|
112
|
-
}[]>;
|
|
113
|
-
};
|
|
114
|
-
userNameOrId: {
|
|
115
|
-
type: string;
|
|
116
|
-
label: string;
|
|
117
|
-
description: string;
|
|
118
|
-
optional: boolean;
|
|
119
|
-
default: string;
|
|
120
|
-
};
|
|
121
|
-
tweetId: {
|
|
122
|
-
type: string;
|
|
123
|
-
label: string;
|
|
124
|
-
description: string;
|
|
125
|
-
};
|
|
126
|
-
query: {
|
|
127
|
-
type: string;
|
|
128
|
-
label: string;
|
|
129
|
-
description: string;
|
|
130
|
-
};
|
|
131
|
-
}>)[];
|
|
132
|
-
};
|
|
133
|
-
}>;
|
|
1
|
+
declare const _default: import("@pipedream/types").Action<{
|
|
2
|
+
getTweets(args?: {}): any;
|
|
3
|
+
}, any>;
|
|
134
4
|
export default _default;
|