@pipedream/twitter 2.0.1 → 2.1.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.
- package/dist/actions/add-user-to-list/add-user-to-list.d.ts +6 -0
- package/dist/actions/add-user-to-list/add-user-to-list.mjs +2 -2
- package/dist/actions/create-tweet/create-tweet.d.ts +2 -0
- package/dist/actions/create-tweet/create-tweet.mjs +2 -2
- package/dist/actions/delete-tweet/delete-tweet.d.ts +4 -0
- package/dist/actions/delete-tweet/delete-tweet.mjs +2 -2
- package/dist/actions/follow-user/follow-user.d.ts +4 -0
- package/dist/actions/follow-user/follow-user.mjs +2 -2
- package/dist/actions/get-tweet/get-tweet.d.ts +4 -0
- package/dist/actions/get-tweet/get-tweet.mjs +2 -2
- package/dist/actions/get-user/get-user.d.ts +4 -0
- package/dist/actions/get-user/get-user.mjs +2 -2
- package/dist/actions/like-tweet/like-tweet.d.ts +4 -0
- package/dist/actions/like-tweet/like-tweet.mjs +2 -2
- package/dist/actions/list-favorites/list-favorites.d.ts +6 -0
- package/dist/actions/list-favorites/list-favorites.mjs +2 -2
- package/dist/actions/list-followers/list-followers.d.ts +6 -0
- package/dist/actions/list-followers/list-followers.mjs +2 -2
- package/dist/actions/list-lists/list-lists.d.ts +6 -0
- package/dist/actions/list-lists/list-lists.mjs +2 -2
- package/dist/actions/list-mentions/list-mentions.d.ts +6 -0
- package/dist/actions/list-mentions/list-mentions.mjs +2 -2
- package/dist/actions/list-user-tweets/list-user-tweets.d.ts +6 -0
- package/dist/actions/list-user-tweets/list-user-tweets.mjs +2 -2
- package/dist/actions/retweet/retweet.d.ts +4 -0
- package/dist/actions/retweet/retweet.mjs +2 -2
- package/dist/actions/send-dm/send-dm.d.ts +144 -0
- package/dist/actions/send-dm/send-dm.mjs +50 -0
- package/dist/actions/simple-search/simple-search.d.ts +6 -0
- package/dist/actions/simple-search/simple-search.mjs +2 -2
- package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +6 -0
- package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +2 -2
- package/dist/actions/unfollow-user/unfollow-user.d.ts +4 -0
- package/dist/actions/unfollow-user/unfollow-user.mjs +2 -2
- package/dist/actions/unlike-tweet/unlike-tweet.d.ts +4 -0
- package/dist/actions/unlike-tweet/unlike-tweet.mjs +2 -2
- package/dist/actions/upload-media/upload-media.d.ts +2 -0
- package/dist/actions/upload-media/upload-media.mjs +1 -1
- package/dist/app/twitter.app.d.ts +4 -2
- package/dist/app/twitter.app.mjs +20 -5
- package/dist/common/dataFields.d.ts +2 -0
- package/dist/common/dataFields.mjs +17 -0
- package/dist/common/expansions.d.ts +1 -0
- package/dist/common/expansions.mjs +6 -0
- package/dist/common/methods.d.ts +7 -0
- package/dist/common/methods.mjs +21 -2
- package/dist/common/types/fields.d.ts +7 -0
- package/dist/common/types/requestParams.d.ts +11 -1
- package/dist/common/types/responseSchemas.d.ts +11 -1
- package/dist/sources/common/base.d.ts +2 -0
- package/dist/sources/common/getItemSummary.d.ts +2 -2
- package/dist/sources/common/getItemSummary.mjs +3 -3
- package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +4 -0
- package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +2 -2
- package/dist/sources/new-list-followed/new-list-followed.d.ts +4 -0
- package/dist/sources/new-list-followed/new-list-followed.mjs +2 -2
- package/dist/sources/new-message/new-message.d.ts +87 -0
- package/dist/sources/new-message/new-message.mjs +35 -0
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +4 -0
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +2 -2
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +4 -0
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +2 -2
- package/dist/sources/new-tweet-metrics/new-tweet-metrics.d.ts +158 -0
- package/dist/sources/new-tweet-metrics/new-tweet-metrics.mjs +66 -0
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +4 -0
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +2 -2
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +4 -0
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +2 -2
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +4 -0
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +2 -2
- package/dist/sources/new-user-followed/new-user-followed.d.ts +4 -0
- package/dist/sources/new-user-followed/new-user-followed.mjs +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
19
19
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
20
20
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
21
21
|
getAuthenticatedUserId(): Promise<string>;
|
|
22
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
22
23
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
23
24
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
24
25
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -31,6 +32,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
31
32
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
32
33
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
33
34
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
35
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
34
36
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
35
37
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
36
38
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -82,6 +84,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
82
84
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
83
85
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
84
86
|
getAuthenticatedUserId(): Promise<string>;
|
|
87
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
85
88
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
86
89
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
87
90
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -94,6 +97,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
94
97
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
95
98
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
96
99
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
100
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
97
101
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
98
102
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
99
103
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -146,6 +150,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
146
150
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
147
151
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
148
152
|
getAuthenticatedUserId(): Promise<string>;
|
|
153
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
149
154
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
150
155
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
151
156
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -158,6 +163,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
158
163
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
159
164
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
160
165
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
166
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
161
167
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
162
168
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
163
169
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -9,8 +9,8 @@ const MAX_RESULTS_PER_PAGE = 100;
|
|
|
9
9
|
export default defineAction({
|
|
10
10
|
key: "twitter-list-mentions",
|
|
11
11
|
name: "List Mentions",
|
|
12
|
-
description: `Return the most recent mentions for the specified user. [See
|
|
13
|
-
version: "2.0.
|
|
12
|
+
description: `Return the most recent mentions for the specified user. [See the documentation](${DOCS_LINK})`,
|
|
13
|
+
version: "2.0.2",
|
|
14
14
|
type: "action",
|
|
15
15
|
props: {
|
|
16
16
|
app,
|
|
@@ -21,6 +21,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
21
21
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
22
22
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
23
23
|
getAuthenticatedUserId(): Promise<string>;
|
|
24
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
24
25
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
25
26
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
26
27
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -33,6 +34,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
33
34
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
34
35
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
35
36
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
37
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
36
38
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
37
39
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
38
40
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -84,6 +86,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
84
86
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
85
87
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
86
88
|
getAuthenticatedUserId(): Promise<string>;
|
|
89
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
87
90
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
88
91
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
89
92
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -96,6 +99,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
96
99
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
97
100
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
98
101
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
102
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
99
103
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
100
104
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
101
105
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -148,6 +152,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
148
152
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
149
153
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
150
154
|
getAuthenticatedUserId(): Promise<string>;
|
|
155
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
151
156
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
152
157
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
153
158
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -160,6 +165,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
160
165
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
161
166
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
162
167
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
168
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
163
169
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
164
170
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
165
171
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -9,8 +9,8 @@ export const MAX_RESULTS_PER_PAGE = 100;
|
|
|
9
9
|
export default defineAction({
|
|
10
10
|
key: "twitter-list-user-tweets",
|
|
11
11
|
name: "List User Tweets",
|
|
12
|
-
description: `Return a collection of the most recent tweets posted by a user. [See
|
|
13
|
-
version: "2.0.
|
|
12
|
+
description: `Return a collection of the most recent tweets posted by a user. [See the documentation](${DOCS_LINK})`,
|
|
13
|
+
version: "2.0.2",
|
|
14
14
|
type: "action",
|
|
15
15
|
props: {
|
|
16
16
|
app,
|
|
@@ -12,6 +12,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
12
12
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
13
13
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
14
14
|
getAuthenticatedUserId(): Promise<string>;
|
|
15
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
15
16
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
16
17
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
17
18
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -24,6 +25,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
24
25
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
25
26
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
26
27
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
28
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
27
29
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
28
30
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
29
31
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -75,6 +77,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
75
77
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
76
78
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
77
79
|
getAuthenticatedUserId(): Promise<string>;
|
|
80
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
78
81
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
79
82
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
80
83
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -87,6 +90,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
87
90
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
88
91
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
89
92
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
93
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
90
94
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
91
95
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
92
96
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -5,8 +5,8 @@ const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/tweets/retw
|
|
|
5
5
|
export default defineAction({
|
|
6
6
|
key: "twitter-retweet",
|
|
7
7
|
name: "Retweet a tweet",
|
|
8
|
-
description: `Retweet a tweet specified by ID. [See
|
|
9
|
-
version: "2.0.
|
|
8
|
+
description: `Retweet a tweet specified by ID. [See the documentation](${DOCS_LINK})`,
|
|
9
|
+
version: "2.0.2",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { getUserId } from "../../common/methods.js";
|
|
2
|
+
import { SendMessageParams } from "../../common/types/requestParams.js";
|
|
3
|
+
declare const _default: import("@pipedream/types").Action<{
|
|
4
|
+
getUserId: typeof getUserId;
|
|
5
|
+
}, {
|
|
6
|
+
app: import("@pipedream/types").App<{
|
|
7
|
+
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
8
|
+
_getBaseUrl(): "https://api.twitter.com/2";
|
|
9
|
+
_httpRequest({ $, ...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 }: import("../../common/types/requestParams.js").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 }: 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
|
+
userNameOrId: {
|
|
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({ $, ...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 }: import("../../common/types/requestParams.js").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 }: 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
|
+
label: string;
|
|
136
|
+
optional: boolean;
|
|
137
|
+
};
|
|
138
|
+
text: {
|
|
139
|
+
type: string;
|
|
140
|
+
label: string;
|
|
141
|
+
description: string;
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
144
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import app from "../../app/twitter.app.mjs";
|
|
2
|
+
import { ACTION_ERROR_MESSAGE } from "../../common/errorMessage.mjs";
|
|
3
|
+
import { defineAction } from "@pipedream/types";
|
|
4
|
+
import { getUserId } from "../../common/methods.mjs";
|
|
5
|
+
const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/direct-messages/manage/api-reference/post-dm_conversations-with-participant_id-messages";
|
|
6
|
+
export default defineAction({
|
|
7
|
+
key: "twitter-send-dm",
|
|
8
|
+
name: "Send Direct Message (DM)",
|
|
9
|
+
description: `Send a message to a user. [See the documentation](${DOCS_LINK})`,
|
|
10
|
+
version: "1.0.0",
|
|
11
|
+
type: "action",
|
|
12
|
+
props: {
|
|
13
|
+
app,
|
|
14
|
+
userNameOrId: {
|
|
15
|
+
propDefinition: [
|
|
16
|
+
app,
|
|
17
|
+
"userNameOrId",
|
|
18
|
+
],
|
|
19
|
+
label: "Recipient Name or ID",
|
|
20
|
+
optional: false,
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
type: "string",
|
|
24
|
+
label: "Message Text",
|
|
25
|
+
description: "Text of the Direct Message being created. Text messages support up to 10,000 characters.",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
getUserId,
|
|
30
|
+
},
|
|
31
|
+
async run({ $ }) {
|
|
32
|
+
try {
|
|
33
|
+
const userId = await this.getUserId();
|
|
34
|
+
const params = {
|
|
35
|
+
$,
|
|
36
|
+
userId,
|
|
37
|
+
data: {
|
|
38
|
+
text: this.text,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const response = await this.app.sendMessage(params);
|
|
42
|
+
$.export("$summary", `Successfully sent message (event ID ${response.data?.dm_event_id})`);
|
|
43
|
+
return response;
|
|
44
|
+
}
|
|
45
|
+
catch (err) {
|
|
46
|
+
$.export("error", err);
|
|
47
|
+
throw new Error(ACTION_ERROR_MESSAGE);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
});
|
|
@@ -20,6 +20,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
20
20
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
21
21
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
22
22
|
getAuthenticatedUserId(): Promise<string>;
|
|
23
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
23
24
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
24
25
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
25
26
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -32,6 +33,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
32
33
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
33
34
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
34
35
|
searchTweets(args: SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
36
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
35
37
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
36
38
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
37
39
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -83,6 +85,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
83
85
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
84
86
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
85
87
|
getAuthenticatedUserId(): Promise<string>;
|
|
88
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
86
89
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
87
90
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
88
91
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -95,6 +98,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
95
98
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
96
99
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
97
100
|
searchTweets(args: SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
101
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
98
102
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
99
103
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
100
104
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -147,6 +151,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
147
151
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
148
152
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
149
153
|
getAuthenticatedUserId(): Promise<string>;
|
|
154
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
150
155
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
151
156
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
152
157
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -159,6 +164,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
159
164
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
160
165
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
161
166
|
searchTweets(args: SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
167
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
162
168
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
163
169
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
164
170
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -9,8 +9,8 @@ export const MAX_RESULTS_PER_PAGE = 100;
|
|
|
9
9
|
export default defineAction({
|
|
10
10
|
key: "twitter-simple-search",
|
|
11
11
|
name: "Search Tweets",
|
|
12
|
-
description: `Retrieve Tweets from the last seven days that match a query. [See
|
|
13
|
-
version: "2.0.
|
|
12
|
+
description: `Retrieve Tweets from the last seven days that match a query. [See the documentation](${DOCS_LINK})`,
|
|
13
|
+
version: "2.0.2",
|
|
14
14
|
type: "action",
|
|
15
15
|
props: {
|
|
16
16
|
app,
|
|
@@ -20,6 +20,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
20
20
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
21
21
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
22
22
|
getAuthenticatedUserId(): Promise<string>;
|
|
23
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
23
24
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
24
25
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
25
26
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -32,6 +33,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
32
33
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
33
34
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
34
35
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
36
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
35
37
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
36
38
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
37
39
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -83,6 +85,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
83
85
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
84
86
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
85
87
|
getAuthenticatedUserId(): Promise<string>;
|
|
88
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
86
89
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
87
90
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
88
91
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -95,6 +98,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
95
98
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
96
99
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
97
100
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
101
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
98
102
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
99
103
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
100
104
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -152,6 +156,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
152
156
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
|
|
153
157
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
154
158
|
getAuthenticatedUserId(): Promise<string>;
|
|
159
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
155
160
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
156
161
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
157
162
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -164,6 +169,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
164
169
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
165
170
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
166
171
|
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
172
|
+
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
167
173
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
168
174
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
169
175
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -9,8 +9,8 @@ export const MAX_RESULTS_PER_PAGE = 100;
|
|
|
9
9
|
export default defineAction({
|
|
10
10
|
key: "twitter-simple-search-in-list",
|
|
11
11
|
name: "Search Tweets in List",
|
|
12
|
-
description: `Search Tweets by text in a list. [See
|
|
13
|
-
version: "2.0.
|
|
12
|
+
description: `Search Tweets by text in a list. [See the documentation](${DOCS_LINK})`,
|
|
13
|
+
version: "2.0.2",
|
|
14
14
|
type: "action",
|
|
15
15
|
props: {
|
|
16
16
|
app,
|
|
@@ -16,6 +16,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
16
16
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
17
17
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
18
18
|
getAuthenticatedUserId(): Promise<string>;
|
|
19
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
19
20
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
20
21
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
21
22
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -28,6 +29,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
28
29
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
29
30
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
30
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>;
|
|
31
33
|
unfollowUser({ userId, ...args }: UnfollowUserParams): Promise<object>;
|
|
32
34
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
33
35
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -79,6 +81,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
79
81
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
80
82
|
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
81
83
|
getAuthenticatedUserId(): Promise<string>;
|
|
84
|
+
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
|
|
82
85
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
83
86
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
84
87
|
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -91,6 +94,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
91
94
|
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
92
95
|
retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
93
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>;
|
|
94
98
|
unfollowUser({ userId, ...args }: UnfollowUserParams): Promise<object>;
|
|
95
99
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
96
100
|
uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
@@ -6,8 +6,8 @@ const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/users/follo
|
|
|
6
6
|
export default defineAction({
|
|
7
7
|
key: "twitter-unfollow-user",
|
|
8
8
|
name: "Unfollow User",
|
|
9
|
-
description: `Unfollow a user. [See
|
|
10
|
-
version: "2.0.
|
|
9
|
+
description: `Unfollow a user. [See the documentation](${DOCS_LINK})`,
|
|
10
|
+
version: "2.0.2",
|
|
11
11
|
type: "action",
|
|
12
12
|
props: {
|
|
13
13
|
app,
|