@pipedream/twitter 2.0.2 → 2.1.1

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.
Files changed (74) hide show
  1. package/dist/actions/add-user-to-list/add-user-to-list.d.ts +12 -6
  2. package/dist/actions/add-user-to-list/add-user-to-list.mjs +2 -2
  3. package/dist/actions/create-tweet/create-tweet.d.ts +4 -2
  4. package/dist/actions/create-tweet/create-tweet.mjs +2 -2
  5. package/dist/actions/delete-tweet/delete-tweet.d.ts +8 -4
  6. package/dist/actions/delete-tweet/delete-tweet.mjs +2 -2
  7. package/dist/actions/follow-user/follow-user.d.ts +8 -4
  8. package/dist/actions/follow-user/follow-user.mjs +2 -2
  9. package/dist/actions/get-tweet/get-tweet.d.ts +8 -4
  10. package/dist/actions/get-tweet/get-tweet.mjs +2 -2
  11. package/dist/actions/get-user/get-user.d.ts +8 -4
  12. package/dist/actions/get-user/get-user.mjs +2 -2
  13. package/dist/actions/like-tweet/like-tweet.d.ts +8 -4
  14. package/dist/actions/like-tweet/like-tweet.mjs +2 -2
  15. package/dist/actions/list-favorites/list-favorites.d.ts +12 -6
  16. package/dist/actions/list-favorites/list-favorites.mjs +2 -2
  17. package/dist/actions/list-followers/list-followers.d.ts +12 -6
  18. package/dist/actions/list-followers/list-followers.mjs +2 -2
  19. package/dist/actions/list-lists/list-lists.d.ts +12 -6
  20. package/dist/actions/list-lists/list-lists.mjs +2 -2
  21. package/dist/actions/list-mentions/list-mentions.d.ts +12 -6
  22. package/dist/actions/list-mentions/list-mentions.mjs +2 -2
  23. package/dist/actions/list-user-tweets/list-user-tweets.d.ts +12 -6
  24. package/dist/actions/list-user-tweets/list-user-tweets.mjs +2 -2
  25. package/dist/actions/retweet/retweet.d.ts +8 -4
  26. package/dist/actions/retweet/retweet.mjs +2 -2
  27. package/dist/actions/send-dm/send-dm.d.ts +144 -0
  28. package/dist/actions/send-dm/send-dm.mjs +50 -0
  29. package/dist/actions/simple-search/simple-search.d.ts +12 -6
  30. package/dist/actions/simple-search/simple-search.mjs +2 -2
  31. package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +12 -6
  32. package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +2 -2
  33. package/dist/actions/unfollow-user/unfollow-user.d.ts +8 -4
  34. package/dist/actions/unfollow-user/unfollow-user.mjs +2 -2
  35. package/dist/actions/unlike-tweet/unlike-tweet.d.ts +8 -4
  36. package/dist/actions/unlike-tweet/unlike-tweet.mjs +2 -2
  37. package/dist/actions/upload-media/upload-media.d.ts +4 -2
  38. package/dist/actions/upload-media/upload-media.mjs +13 -10
  39. package/dist/app/twitter.app.d.ts +6 -4
  40. package/dist/app/twitter.app.mjs +38 -8
  41. package/dist/common/dataFields.d.ts +2 -0
  42. package/dist/common/dataFields.mjs +17 -0
  43. package/dist/common/expansions.d.ts +1 -0
  44. package/dist/common/expansions.mjs +6 -0
  45. package/dist/common/methods.d.ts +7 -0
  46. package/dist/common/methods.mjs +21 -2
  47. package/dist/common/types/fields.d.ts +7 -0
  48. package/dist/common/types/requestParams.d.ts +16 -3
  49. package/dist/common/types/responseSchemas.d.ts +11 -1
  50. package/dist/sources/common/base.d.ts +4 -2
  51. package/dist/sources/common/getItemSummary.d.ts +2 -2
  52. package/dist/sources/common/getItemSummary.mjs +3 -3
  53. package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +8 -4
  54. package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +2 -2
  55. package/dist/sources/new-list-followed/new-list-followed.d.ts +8 -4
  56. package/dist/sources/new-list-followed/new-list-followed.mjs +2 -2
  57. package/dist/sources/new-message/new-message.d.ts +87 -0
  58. package/dist/sources/new-message/new-message.mjs +35 -0
  59. package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +8 -4
  60. package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +2 -2
  61. package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +8 -4
  62. package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +2 -2
  63. package/dist/sources/new-tweet-metrics/new-tweet-metrics.d.ts +158 -0
  64. package/dist/sources/new-tweet-metrics/new-tweet-metrics.mjs +66 -0
  65. package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +8 -4
  66. package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +2 -2
  67. package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +8 -4
  68. package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +2 -2
  69. package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +8 -4
  70. package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +2 -2
  71. package/dist/sources/new-user-followed/new-user-followed.d.ts +8 -4
  72. package/dist/sources/new-user-followed/new-user-followed.mjs +2 -2
  73. package/dist/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +2 -1
@@ -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>;
@@ -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,9 +25,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
31
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
30
32
  }, {
31
33
  maxResults: {
32
34
  type: string;
@@ -65,7 +67,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
65
67
  propDefinition: (string | import("@pipedream/types").App<{
66
68
  _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
67
69
  _getBaseUrl(): "https://api.twitter.com/2";
68
- _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>>;
69
71
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
70
72
  addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
71
73
  createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): 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,9 +90,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
96
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
93
97
  }, {
94
98
  maxResults: {
95
99
  type: string;
@@ -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 docs here](${DOCS_LINK})`,
9
- version: "2.0.1",
8
+ description: `Retweet a tweet specified by ID. [See the documentation](${DOCS_LINK})`,
9
+ version: "2.0.3",
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({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
10
+ _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
11
+ addUserToList({ listId, ...args }: 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({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
75
+ _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
76
+ addUserToList({ listId, ...args }: 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.1",
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
+ });
@@ -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>;
@@ -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,9 +33,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
39
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
38
40
  }, {
39
41
  maxResults: {
40
42
  type: string;
@@ -73,7 +75,7 @@ declare const _default: import("@pipedream/types").Action<{
73
75
  propDefinition: (string | import("@pipedream/types").App<{
74
76
  _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
75
77
  _getBaseUrl(): "https://api.twitter.com/2";
76
- _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>>;
77
79
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
78
80
  addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
79
81
  createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): 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,9 +98,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
104
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
101
105
  }, {
102
106
  maxResults: {
103
107
  type: string;
@@ -137,7 +141,7 @@ declare const _default: import("@pipedream/types").Action<{
137
141
  propDefinition: (string | import("@pipedream/types").App<{
138
142
  _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
139
143
  _getBaseUrl(): "https://api.twitter.com/2";
140
- _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>>;
141
145
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
142
146
  addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
143
147
  createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): 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,9 +164,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
170
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
165
171
  }, {
166
172
  maxResults: {
167
173
  type: string;
@@ -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 docs here](${DOCS_LINK})`,
13
- version: "2.0.1",
12
+ description: `Retrieve Tweets from the last seven days that match a query. [See the documentation](${DOCS_LINK})`,
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>;
@@ -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,9 +33,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
39
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
38
40
  }, {
39
41
  maxResults: {
40
42
  type: string;
@@ -73,7 +75,7 @@ declare const _default: import("@pipedream/types").Action<{
73
75
  propDefinition: (string | import("@pipedream/types").App<{
74
76
  _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
75
77
  _getBaseUrl(): "https://api.twitter.com/2";
76
- _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>>;
77
79
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
78
80
  addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
79
81
  createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): 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,9 +98,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
104
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
101
105
  }, {
102
106
  maxResults: {
103
107
  type: string;
@@ -142,7 +146,7 @@ declare const _default: import("@pipedream/types").Action<{
142
146
  propDefinition: (string | import("@pipedream/types").App<{
143
147
  _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
144
148
  _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>>;
149
+ _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
146
150
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
147
151
  addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
148
152
  createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): 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,9 +169,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
175
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
170
176
  }, {
171
177
  maxResults: {
172
178
  type: string;
@@ -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 docs here](${DOCS_LINK})`,
13
- version: "2.0.1",
12
+ description: `Search Tweets by text in a list. [See the documentation](${DOCS_LINK})`,
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>;
@@ -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,9 +29,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
35
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
34
36
  }, {
35
37
  maxResults: {
36
38
  type: string;
@@ -69,7 +71,7 @@ declare const _default: import("@pipedream/types").Action<{
69
71
  propDefinition: (string | import("@pipedream/types").App<{
70
72
  _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
71
73
  _getBaseUrl(): "https://api.twitter.com/2";
72
- _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>>;
73
75
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
74
76
  addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
75
77
  createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): 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,9 +94,10 @@ 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
- uploadMedia({ ...args }: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
100
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
97
101
  }, {
98
102
  maxResults: {
99
103
  type: string;
@@ -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 docs here](${DOCS_LINK})`,
10
- version: "2.0.1",
9
+ description: `Unfollow a user. [See the documentation](${DOCS_LINK})`,
10
+ version: "2.0.3",
11
11
  type: "action",
12
12
  props: {
13
13
  app,