@pipedream/twitter 2.1.0 → 2.1.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 +6 -6
- package/dist/actions/add-user-to-list/add-user-to-list.mjs +1 -1
- package/dist/actions/create-tweet/create-tweet.d.ts +2 -2
- package/dist/actions/create-tweet/create-tweet.mjs +1 -1
- package/dist/actions/delete-tweet/delete-tweet.d.ts +4 -4
- package/dist/actions/delete-tweet/delete-tweet.mjs +1 -1
- package/dist/actions/follow-user/follow-user.d.ts +4 -4
- package/dist/actions/follow-user/follow-user.mjs +1 -1
- package/dist/actions/get-tweet/get-tweet.d.ts +4 -4
- package/dist/actions/get-tweet/get-tweet.mjs +1 -1
- package/dist/actions/get-user/get-user.d.ts +4 -4
- package/dist/actions/get-user/get-user.mjs +1 -1
- package/dist/actions/like-tweet/like-tweet.d.ts +4 -4
- package/dist/actions/like-tweet/like-tweet.mjs +1 -1
- package/dist/actions/list-favorites/list-favorites.d.ts +6 -6
- package/dist/actions/list-favorites/list-favorites.mjs +1 -1
- package/dist/actions/list-followers/list-followers.d.ts +6 -6
- package/dist/actions/list-followers/list-followers.mjs +1 -1
- package/dist/actions/list-lists/list-lists.d.ts +6 -6
- package/dist/actions/list-lists/list-lists.mjs +1 -1
- package/dist/actions/list-mentions/list-mentions.d.ts +6 -6
- package/dist/actions/list-mentions/list-mentions.mjs +1 -1
- package/dist/actions/list-user-tweets/list-user-tweets.d.ts +6 -6
- package/dist/actions/list-user-tweets/list-user-tweets.mjs +1 -1
- package/dist/actions/retweet/retweet.d.ts +4 -4
- package/dist/actions/retweet/retweet.mjs +1 -1
- package/dist/actions/send-dm/send-dm.d.ts +4 -4
- package/dist/actions/send-dm/send-dm.mjs +1 -1
- package/dist/actions/simple-search/simple-search.d.ts +6 -6
- package/dist/actions/simple-search/simple-search.mjs +1 -1
- package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +6 -6
- package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +1 -1
- package/dist/actions/unfollow-user/unfollow-user.d.ts +4 -4
- package/dist/actions/unfollow-user/unfollow-user.mjs +1 -1
- package/dist/actions/unlike-tweet/unlike-tweet.d.ts +4 -4
- package/dist/actions/unlike-tweet/unlike-tweet.mjs +1 -1
- package/dist/actions/upload-media/upload-media.d.ts +2 -2
- package/dist/actions/upload-media/upload-media.mjs +21 -10
- package/dist/app/twitter.app.d.ts +2 -2
- package/dist/app/twitter.app.mjs +19 -4
- package/dist/common/constants.mjs +0 -12
- package/dist/common/types/requestParams.d.ts +5 -2
- package/dist/sources/common/base.d.ts +2 -2
- package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +4 -4
- package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +1 -1
- package/dist/sources/new-list-followed/new-list-followed.d.ts +4 -4
- package/dist/sources/new-list-followed/new-list-followed.mjs +1 -1
- package/dist/sources/new-message/new-message.d.ts +2 -2
- package/dist/sources/new-message/new-message.mjs +1 -1
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +4 -4
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +1 -1
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +4 -4
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +1 -1
- package/dist/sources/new-tweet-metrics/new-tweet-metrics.d.ts +4 -4
- package/dist/sources/new-tweet-metrics/new-tweet-metrics.mjs +1 -1
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +4 -4
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +1 -1
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +4 -4
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +1 -1
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +4 -4
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +1 -1
- package/dist/sources/new-user-followed/new-user-followed.d.ts +4 -4
- package/dist/sources/new-user-followed/new-user-followed.mjs +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -9,7 +9,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
9
9
|
app: import("@pipedream/types").App<{
|
|
10
10
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
11
11
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
12
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
12
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
13
13
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
14
14
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
15
15
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -35,7 +35,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
35
35
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
36
36
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
37
37
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
38
|
-
uploadMedia(
|
|
38
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
39
39
|
}, {
|
|
40
40
|
maxResults: {
|
|
41
41
|
type: string;
|
|
@@ -74,7 +74,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
74
74
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
75
75
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
76
76
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
77
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
77
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
78
78
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
79
79
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
80
80
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -100,7 +100,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
100
100
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
101
101
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
102
102
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
103
|
-
uploadMedia(
|
|
103
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
104
104
|
}, {
|
|
105
105
|
maxResults: {
|
|
106
106
|
type: string;
|
|
@@ -140,7 +140,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
140
140
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
141
141
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
142
142
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
143
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
143
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
144
144
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
145
145
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
146
146
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -166,7 +166,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
166
166
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
167
167
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
168
168
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
169
|
-
uploadMedia(
|
|
169
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
170
170
|
}, {
|
|
171
171
|
maxResults: {
|
|
172
172
|
type: string;
|
|
@@ -10,7 +10,7 @@ export default defineAction({
|
|
|
10
10
|
key: "twitter-list-mentions",
|
|
11
11
|
name: "List Mentions",
|
|
12
12
|
description: `Return the most recent mentions for the specified user. [See the documentation](${DOCS_LINK})`,
|
|
13
|
-
version: "2.0.
|
|
13
|
+
version: "2.0.3",
|
|
14
14
|
type: "action",
|
|
15
15
|
props: {
|
|
16
16
|
app,
|
|
@@ -11,7 +11,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
11
11
|
app: import("@pipedream/types").App<{
|
|
12
12
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
13
13
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
14
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
14
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
15
15
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
16
16
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
17
17
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -37,7 +37,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
37
37
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
38
38
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
39
39
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
40
|
-
uploadMedia(
|
|
40
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
41
41
|
}, {
|
|
42
42
|
maxResults: {
|
|
43
43
|
type: string;
|
|
@@ -76,7 +76,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
76
76
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
77
77
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
78
78
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
79
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
79
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
80
80
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
81
81
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
82
82
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -102,7 +102,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
102
102
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
103
103
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
104
104
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
105
|
-
uploadMedia(
|
|
105
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
106
106
|
}, {
|
|
107
107
|
maxResults: {
|
|
108
108
|
type: string;
|
|
@@ -142,7 +142,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
142
142
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
143
143
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
144
144
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
145
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
145
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
146
146
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
147
147
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
148
148
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -168,7 +168,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
168
168
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
169
169
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
170
170
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
171
|
-
uploadMedia(
|
|
171
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
172
172
|
}, {
|
|
173
173
|
maxResults: {
|
|
174
174
|
type: string;
|
|
@@ -10,7 +10,7 @@ export default defineAction({
|
|
|
10
10
|
key: "twitter-list-user-tweets",
|
|
11
11
|
name: "List User Tweets",
|
|
12
12
|
description: `Return a collection of the most recent tweets posted by a user. [See the documentation](${DOCS_LINK})`,
|
|
13
|
-
version: "2.0.
|
|
13
|
+
version: "2.0.3",
|
|
14
14
|
type: "action",
|
|
15
15
|
props: {
|
|
16
16
|
app,
|
|
@@ -2,7 +2,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
2
2
|
app: import("@pipedream/types").App<{
|
|
3
3
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
4
4
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
5
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
5
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
6
6
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
7
7
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
8
8
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
28
28
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
29
29
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
30
30
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
31
|
-
uploadMedia(
|
|
31
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
32
32
|
}, {
|
|
33
33
|
maxResults: {
|
|
34
34
|
type: string;
|
|
@@ -67,7 +67,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
67
67
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
68
68
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
69
69
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
70
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
70
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
71
71
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
72
72
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
73
73
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -93,7 +93,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
93
93
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
94
94
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
95
95
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
96
|
-
uploadMedia(
|
|
96
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
97
97
|
}, {
|
|
98
98
|
maxResults: {
|
|
99
99
|
type: string;
|
|
@@ -6,7 +6,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
6
6
|
app: import("@pipedream/types").App<{
|
|
7
7
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
8
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>>;
|
|
9
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
10
10
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
11
11
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
12
12
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -32,7 +32,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
32
32
|
sendMessage({ userId, ...args }: SendMessageParams): Promise<object>;
|
|
33
33
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
34
34
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
35
|
-
uploadMedia(
|
|
35
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
36
36
|
}, {
|
|
37
37
|
maxResults: {
|
|
38
38
|
type: string;
|
|
@@ -71,7 +71,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
71
71
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
72
72
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
73
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>>;
|
|
74
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
75
75
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
76
76
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
77
77
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -97,7 +97,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
97
97
|
sendMessage({ userId, ...args }: SendMessageParams): Promise<object>;
|
|
98
98
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
99
99
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
100
|
-
uploadMedia(
|
|
100
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
101
101
|
}, {
|
|
102
102
|
maxResults: {
|
|
103
103
|
type: string;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
10
10
|
app: import("@pipedream/types").App<{
|
|
11
11
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
12
12
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
13
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
13
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
14
14
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
15
15
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
16
16
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
36
36
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
37
37
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
38
38
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
39
|
-
uploadMedia(
|
|
39
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
40
40
|
}, {
|
|
41
41
|
maxResults: {
|
|
42
42
|
type: string;
|
|
@@ -75,7 +75,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
75
75
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
76
76
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
77
77
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
78
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
78
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
79
79
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
80
80
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
81
81
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -101,7 +101,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
101
101
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
102
102
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
103
103
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
104
|
-
uploadMedia(
|
|
104
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
105
105
|
}, {
|
|
106
106
|
maxResults: {
|
|
107
107
|
type: string;
|
|
@@ -141,7 +141,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
141
141
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
142
142
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
143
143
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
144
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
144
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
145
145
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
146
146
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
147
147
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -167,7 +167,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
167
167
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
168
168
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
169
169
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
170
|
-
uploadMedia(
|
|
170
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
171
171
|
}, {
|
|
172
172
|
maxResults: {
|
|
173
173
|
type: string;
|
|
@@ -10,7 +10,7 @@ export default defineAction({
|
|
|
10
10
|
key: "twitter-simple-search",
|
|
11
11
|
name: "Search Tweets",
|
|
12
12
|
description: `Retrieve Tweets from the last seven days that match a query. [See the documentation](${DOCS_LINK})`,
|
|
13
|
-
version: "2.0.
|
|
13
|
+
version: "2.0.3",
|
|
14
14
|
type: "action",
|
|
15
15
|
props: {
|
|
16
16
|
app,
|
|
@@ -10,7 +10,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
10
10
|
app: import("@pipedream/types").App<{
|
|
11
11
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
12
12
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
13
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
13
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
14
14
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
15
15
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
16
16
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
36
36
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
37
37
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
38
38
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
39
|
-
uploadMedia(
|
|
39
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
40
40
|
}, {
|
|
41
41
|
maxResults: {
|
|
42
42
|
type: string;
|
|
@@ -75,7 +75,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
75
75
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
76
76
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
77
77
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
78
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
78
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
79
79
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
80
80
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
81
81
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -101,7 +101,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
101
101
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
102
102
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
103
103
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
104
|
-
uploadMedia(
|
|
104
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
105
105
|
}, {
|
|
106
106
|
maxResults: {
|
|
107
107
|
type: string;
|
|
@@ -146,7 +146,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
146
146
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
147
147
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
148
148
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
149
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
149
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
150
150
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
151
151
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
152
152
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -172,7 +172,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
172
172
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
173
173
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
174
174
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
175
|
-
uploadMedia(
|
|
175
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
176
176
|
}, {
|
|
177
177
|
maxResults: {
|
|
178
178
|
type: string;
|
|
@@ -10,7 +10,7 @@ export default defineAction({
|
|
|
10
10
|
key: "twitter-simple-search-in-list",
|
|
11
11
|
name: "Search Tweets in List",
|
|
12
12
|
description: `Search Tweets by text in a list. [See the documentation](${DOCS_LINK})`,
|
|
13
|
-
version: "2.0.
|
|
13
|
+
version: "2.0.3",
|
|
14
14
|
type: "action",
|
|
15
15
|
props: {
|
|
16
16
|
app,
|
|
@@ -6,7 +6,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
6
6
|
app: import("@pipedream/types").App<{
|
|
7
7
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
8
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>>;
|
|
9
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
10
10
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
11
11
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
12
12
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -32,7 +32,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
32
32
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
33
33
|
unfollowUser({ userId, ...args }: UnfollowUserParams): Promise<object>;
|
|
34
34
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
35
|
-
uploadMedia(
|
|
35
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
36
36
|
}, {
|
|
37
37
|
maxResults: {
|
|
38
38
|
type: string;
|
|
@@ -71,7 +71,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
71
71
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
72
72
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
73
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>>;
|
|
74
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
75
75
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
76
76
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
77
77
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -97,7 +97,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
97
97
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
98
98
|
unfollowUser({ userId, ...args }: UnfollowUserParams): Promise<object>;
|
|
99
99
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
100
|
-
uploadMedia(
|
|
100
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
101
101
|
}, {
|
|
102
102
|
maxResults: {
|
|
103
103
|
type: string;
|
|
@@ -3,7 +3,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
3
3
|
app: import("@pipedream/types").App<{
|
|
4
4
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
5
5
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
6
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
6
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
7
7
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
8
8
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
9
9
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
29
29
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
30
30
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
31
31
|
unlikeTweet({ tweetId, ...args }: UnlikeTweetParams): Promise<object>;
|
|
32
|
-
uploadMedia(
|
|
32
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
33
33
|
}, {
|
|
34
34
|
maxResults: {
|
|
35
35
|
type: string;
|
|
@@ -68,7 +68,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
68
68
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
69
69
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
70
70
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
71
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
71
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
72
72
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
73
73
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
74
74
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -94,7 +94,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
94
94
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
95
95
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
96
96
|
unlikeTweet({ tweetId, ...args }: UnlikeTweetParams): Promise<object>;
|
|
97
|
-
uploadMedia(
|
|
97
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
98
98
|
}, {
|
|
99
99
|
maxResults: {
|
|
100
100
|
type: string;
|
|
@@ -2,7 +2,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
2
2
|
app: import("@pipedream/types").App<{
|
|
3
3
|
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
4
4
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
5
|
-
_httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
5
|
+
_httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
6
6
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
|
|
7
7
|
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
8
8
|
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
|
|
|
28
28
|
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
29
29
|
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
30
30
|
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
31
|
-
uploadMedia(
|
|
31
|
+
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
32
32
|
}, {
|
|
33
33
|
maxResults: {
|
|
34
34
|
type: string;
|
|
@@ -4,19 +4,20 @@ import { defineAction } from "@pipedream/types";
|
|
|
4
4
|
import constants from "../../common/constants.mjs";
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import { axios } from "@pipedream/platform";
|
|
7
|
+
import FormData from "form-data";
|
|
7
8
|
const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload";
|
|
8
9
|
export default defineAction({
|
|
9
10
|
key: "twitter-upload-media",
|
|
10
11
|
name: "Upload Media",
|
|
11
12
|
description: `Upload new media. [See the documentation](${DOCS_LINK})`,
|
|
12
|
-
version: "0.0.
|
|
13
|
+
version: "0.0.7",
|
|
13
14
|
type: "action",
|
|
14
15
|
props: {
|
|
15
16
|
app,
|
|
16
17
|
filePath: {
|
|
17
18
|
type: "string",
|
|
18
19
|
label: "File Path",
|
|
19
|
-
description: "
|
|
20
|
+
description: "A file URL or a file path in the `/tmp` directory. [See the documentation on working with files.](https://pipedream.com/docs/code/nodejs/working-with-files/)",
|
|
20
21
|
optional: false,
|
|
21
22
|
},
|
|
22
23
|
media_category: {
|
|
@@ -24,23 +25,33 @@ export default defineAction({
|
|
|
24
25
|
label: "Media Category",
|
|
25
26
|
description: "The category representing the media usage.",
|
|
26
27
|
options: constants.MEDIA_CATEGORIES,
|
|
27
|
-
optional:
|
|
28
|
+
optional: true,
|
|
28
29
|
},
|
|
29
30
|
},
|
|
30
31
|
async run({ $ }) {
|
|
31
32
|
try {
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
const isLocalFile = this.filePath?.startsWith("/tmp");
|
|
34
|
+
const content = isLocalFile
|
|
35
|
+
? fs.createReadStream(this.filePath, {
|
|
36
|
+
encoding: "base64",
|
|
37
|
+
})
|
|
38
|
+
: await axios($, {
|
|
35
39
|
url: this.filePath,
|
|
36
40
|
responseType: "arraybuffer",
|
|
37
|
-
})
|
|
41
|
+
});
|
|
42
|
+
const data = new FormData();
|
|
43
|
+
if (isLocalFile) {
|
|
44
|
+
data.append("media_data", content);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
data.append("media", content);
|
|
48
|
+
}
|
|
38
49
|
const response = await this.app.uploadMedia({
|
|
39
50
|
$,
|
|
40
|
-
|
|
51
|
+
data,
|
|
52
|
+
params: {
|
|
41
53
|
media_category: this.media_category,
|
|
42
|
-
|
|
43
|
-
})),
|
|
54
|
+
},
|
|
44
55
|
});
|
|
45
56
|
$.export("$summary", `Successfully uploaded media with ID ${response.media_id}`);
|
|
46
57
|
return response;
|
|
@@ -4,7 +4,7 @@ import { DirectMessage, List, PaginatedResponseObject, ResponseObject, Tweet, Tw
|
|
|
4
4
|
declare const _default: import("@pipedream/types").App<{
|
|
5
5
|
_getAuthHeader(config: HttpRequestParams): OAuth.Header;
|
|
6
6
|
_getBaseUrl(): "https://api.twitter.com/2";
|
|
7
|
-
_httpRequest({ $, ...args }: HttpRequestParams): Promise<ResponseObject<TwitterEntity>>;
|
|
7
|
+
_httpRequest({ $, specialAuth, ...args }: HttpRequestParams): Promise<ResponseObject<TwitterEntity>>;
|
|
8
8
|
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: PaginatedRequestParams): Promise<PaginatedResponseObject<TwitterEntity>>;
|
|
9
9
|
addUserToList({ listId, ...args }: AddUserToListParams): Promise<object>;
|
|
10
10
|
createTweet(args: CreateTweetParams): Promise<object>;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("@pipedream/types").App<{
|
|
|
30
30
|
sendMessage({ userId, ...args }: SendMessageParams): Promise<object>;
|
|
31
31
|
unfollowUser({ userId, ...args }: UnfollowUserParams): Promise<object>;
|
|
32
32
|
unlikeTweet({ tweetId, ...args }: UnlikeTweetParams): Promise<object>;
|
|
33
|
-
uploadMedia(
|
|
33
|
+
uploadMedia(args: UploadMediaParams): Promise<object>;
|
|
34
34
|
}, {
|
|
35
35
|
maxResults: {
|
|
36
36
|
type: string;
|