@pipedream/twitter 2.2.0 → 2.2.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 (71) hide show
  1. package/dist/actions/add-user-to-list/add-user-to-list.d.ts +2 -199
  2. package/dist/actions/add-user-to-list/add-user-to-list.mjs +21 -24
  3. package/dist/actions/create-tweet/create-tweet.d.ts +17 -16
  4. package/dist/actions/create-tweet/create-tweet.mjs +29 -34
  5. package/dist/actions/delete-tweet/delete-tweet.d.ts +3 -133
  6. package/dist/actions/delete-tweet/delete-tweet.mjs +14 -18
  7. package/dist/actions/follow-user/follow-user.d.ts +2 -133
  8. package/dist/actions/follow-user/follow-user.mjs +19 -22
  9. package/dist/actions/get-tweet/get-tweet.d.ts +2 -134
  10. package/dist/actions/get-tweet/get-tweet.mjs +16 -19
  11. package/dist/actions/get-user/get-user.d.ts +2 -134
  12. package/dist/actions/get-user/get-user.mjs +19 -22
  13. package/dist/actions/like-tweet/like-tweet.d.ts +3 -133
  14. package/dist/actions/like-tweet/like-tweet.mjs +16 -20
  15. package/dist/actions/list-favorites/list-favorites.d.ts +2 -203
  16. package/dist/actions/list-favorites/list-favorites.mjs +19 -22
  17. package/dist/actions/list-followers/list-followers.d.ts +2 -203
  18. package/dist/actions/list-followers/list-followers.mjs +19 -22
  19. package/dist/actions/list-lists/list-lists.d.ts +2 -203
  20. package/dist/actions/list-lists/list-lists.mjs +19 -22
  21. package/dist/actions/list-mentions/list-mentions.d.ts +2 -203
  22. package/dist/actions/list-mentions/list-mentions.mjs +19 -22
  23. package/dist/actions/list-user-tweets/list-user-tweets.d.ts +2 -203
  24. package/dist/actions/list-user-tweets/list-user-tweets.mjs +19 -22
  25. package/dist/actions/retweet/retweet.d.ts +3 -133
  26. package/dist/actions/retweet/retweet.mjs +18 -22
  27. package/dist/actions/send-dm/send-dm.d.ts +2 -140
  28. package/dist/actions/send-dm/send-dm.mjs +18 -21
  29. package/dist/actions/simple-search/simple-search.d.ts +2 -203
  30. package/dist/actions/simple-search/simple-search.mjs +20 -23
  31. package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +2 -208
  32. package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +23 -26
  33. package/dist/actions/unfollow-user/unfollow-user.d.ts +2 -133
  34. package/dist/actions/unfollow-user/unfollow-user.mjs +15 -18
  35. package/dist/actions/unlike-tweet/unlike-tweet.d.ts +3 -133
  36. package/dist/actions/unlike-tweet/unlike-tweet.mjs +14 -18
  37. package/dist/actions/upload-media/upload-media.d.ts +3 -82
  38. package/dist/actions/upload-media/upload-media.mjs +24 -21
  39. package/dist/app/twitter.app.d.ts +2 -1
  40. package/dist/app/twitter.app.mjs +40 -29
  41. package/dist/common/appValidation.d.ts +144 -0
  42. package/dist/common/appValidation.mjs +24 -0
  43. package/dist/common/errorMessage.d.ts +24 -2
  44. package/dist/common/errorMessage.mjs +25 -1
  45. package/dist/common/types/requestParams.d.ts +26 -22
  46. package/dist/sources/common/base.d.ts +137 -64
  47. package/dist/sources/common/base.mjs +8 -2
  48. package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +2 -140
  49. package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +2 -3
  50. package/dist/sources/new-list-followed/new-list-followed.d.ts +2 -140
  51. package/dist/sources/new-list-followed/new-list-followed.mjs +2 -3
  52. package/dist/sources/new-mention-received-by-user/new-mention-received-by-user.d.ts +2 -140
  53. package/dist/sources/new-mention-received-by-user/new-mention-received-by-user.mjs +2 -3
  54. package/dist/sources/new-message/new-message.d.ts +2 -74
  55. package/dist/sources/new-message/new-message.mjs +1 -1
  56. package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +2 -140
  57. package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +2 -3
  58. package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +2 -140
  59. package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +2 -3
  60. package/dist/sources/new-tweet-metrics/new-tweet-metrics.d.ts +3 -148
  61. package/dist/sources/new-tweet-metrics/new-tweet-metrics.mjs +2 -3
  62. package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +2 -140
  63. package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +2 -3
  64. package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +2 -140
  65. package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +2 -3
  66. package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +2 -140
  67. package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +2 -3
  68. package/dist/sources/new-user-followed/new-user-followed.d.ts +2 -139
  69. package/dist/sources/new-user-followed/new-user-followed.mjs +2 -3
  70. package/dist/tsconfig.tsbuildinfo +1 -1
  71. package/package.json +1 -1
@@ -1,70 +1,6 @@
1
1
  import { TwitterEntity } from "../../common/types/responseSchemas.js";
2
2
  declare const _default: {
3
3
  props: {
4
- app: import("@pipedream/types").App<{
5
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
6
- _getBaseUrl(): "https://api.twitter.com/2";
7
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<TwitterEntity>>;
8
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<TwitterEntity>>;
9
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
10
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
11
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
12
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
13
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
14
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
15
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
16
- getAuthenticatedUserId(): Promise<string>;
17
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
18
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
19
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
20
- getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
21
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
22
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
23
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
24
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
25
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
26
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
27
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
28
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
29
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
30
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
31
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
32
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
33
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
34
- }, {
35
- maxResults: {
36
- type: string;
37
- label: string;
38
- description: string;
39
- optional: boolean;
40
- };
41
- listId: {
42
- type: string;
43
- label: string;
44
- description: string;
45
- options(): Promise<{
46
- label: string;
47
- value: string;
48
- }[]>;
49
- };
50
- userNameOrId: {
51
- type: string;
52
- label: string;
53
- description: string;
54
- optional: boolean;
55
- default: string;
56
- };
57
- tweetId: {
58
- type: string;
59
- label: string;
60
- description: string;
61
- };
62
- query: {
63
- type: string;
64
- label: string;
65
- description: string;
66
- };
67
- }>;
68
4
  db: string;
69
5
  timer: {
70
6
  type: string;
@@ -72,6 +8,141 @@ declare const _default: {
72
8
  intervalSeconds: number;
73
9
  };
74
10
  };
11
+ app: {
12
+ reloadProps: boolean;
13
+ type: "app";
14
+ app: string;
15
+ propDefinitions?: {
16
+ maxResults: {
17
+ type: string;
18
+ label: string;
19
+ description: string;
20
+ optional: boolean;
21
+ };
22
+ listId: {
23
+ type: string;
24
+ label: string;
25
+ description: string;
26
+ options(): Promise<{
27
+ label: string;
28
+ value: string;
29
+ }[]>;
30
+ };
31
+ userNameOrId: {
32
+ type: string;
33
+ label: string;
34
+ description: string;
35
+ optional: boolean;
36
+ default: string;
37
+ };
38
+ tweetId: {
39
+ type: string;
40
+ label: string;
41
+ description: string;
42
+ };
43
+ query: {
44
+ type: string;
45
+ label: string;
46
+ description: string;
47
+ };
48
+ };
49
+ methods?: {
50
+ throwError(data: any): void;
51
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
52
+ _getBaseUrl(): "https://api.twitter.com/2";
53
+ _httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<TwitterEntity>>;
54
+ _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<TwitterEntity>>;
55
+ addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
56
+ createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
57
+ deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
58
+ followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
59
+ getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
60
+ getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
61
+ getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
62
+ getAuthenticatedUserId(): Promise<string>;
63
+ getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").DirectMessage>>;
64
+ getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
65
+ getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
66
+ getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
67
+ getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
68
+ getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
69
+ getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
70
+ getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
71
+ likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
72
+ getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
73
+ getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
74
+ retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
75
+ searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
76
+ sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
77
+ unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
78
+ unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
79
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
80
+ } & ThisType<{
81
+ throwError(data: any): void;
82
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
83
+ _getBaseUrl(): "https://api.twitter.com/2";
84
+ _httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<TwitterEntity>>;
85
+ _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<TwitterEntity>>;
86
+ addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
87
+ createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
88
+ deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
89
+ followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
90
+ getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
91
+ getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
92
+ getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
93
+ getAuthenticatedUserId(): Promise<string>;
94
+ getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").DirectMessage>>;
95
+ getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
96
+ getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
97
+ getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
98
+ getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
99
+ getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
100
+ getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
101
+ getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
102
+ likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
103
+ getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
104
+ getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
105
+ retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
106
+ searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
107
+ sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
108
+ unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
109
+ unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
110
+ uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
111
+ } & {
112
+ maxResults: {
113
+ type: string;
114
+ label: string;
115
+ description: string;
116
+ optional: boolean;
117
+ };
118
+ listId: {
119
+ type: string;
120
+ label: string;
121
+ description: string;
122
+ options(): Promise<{
123
+ label: string;
124
+ value: string;
125
+ }[]>;
126
+ };
127
+ userNameOrId: {
128
+ type: string;
129
+ label: string;
130
+ description: string;
131
+ optional: boolean;
132
+ default: string;
133
+ };
134
+ tweetId: {
135
+ type: string;
136
+ label: string;
137
+ description: string;
138
+ };
139
+ query: {
140
+ type: string;
141
+ label: string;
142
+ description: string;
143
+ };
144
+ }>;
145
+ };
75
146
  };
76
147
  hooks: {
77
148
  deploy(): Promise<void>;
@@ -84,7 +155,9 @@ declare const _default: {
84
155
  setSavedIds(data: string[]): void;
85
156
  getAndProcessData(maxResults?: number): Promise<void>;
86
157
  emitEvent(data: TwitterEntity): void;
158
+ getTweets(args?: {}): any;
87
159
  };
88
160
  run(): Promise<void>;
161
+ additionalProps(): Promise<any>;
89
162
  };
90
163
  export default _default;
@@ -1,9 +1,10 @@
1
1
  import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
2
- import app from "../../app/twitter.app.mjs";
2
+ import common from "../../common/appValidation.mjs";
3
3
  import { ERROR_MESSAGE } from "../../common/errorMessage.mjs";
4
4
  export default {
5
+ ...common,
5
6
  props: {
6
- app,
7
+ ...common.props,
7
8
  db: "$.service.db",
8
9
  timer: {
9
10
  type: "$.interface.timer",
@@ -14,10 +15,15 @@ export default {
14
15
  },
15
16
  hooks: {
16
17
  async deploy() {
18
+ const data = await this.getTweets({
19
+ validateStatus: () => true,
20
+ });
21
+ this.app.throwError(data);
17
22
  await this.getAndProcessData();
18
23
  },
19
24
  },
20
25
  methods: {
26
+ ...common.methods,
21
27
  getEntityName() {
22
28
  return "Entity";
23
29
  },
@@ -1,6 +1,5 @@
1
1
  import { getUserSummary as getItemSummary } from "../common/getItemSummary.js";
2
2
  import { getUserFields } from "../../common/methods.js";
3
- import { GetUserFollowersParams } from "../../common/types/requestParams.js";
4
3
  import { User } from "../../common/types/responseSchemas.js";
5
4
  declare const _default: import("@pipedream/types").Source<{
6
5
  getUserFields: typeof getUserFields;
@@ -13,143 +12,6 @@ declare const _default: import("@pipedream/types").Source<{
13
12
  setSavedIds(data: string[]): void;
14
13
  getAndProcessData(maxResults?: number): Promise<void>;
15
14
  emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
16
- }, {
17
- userNameOrId: {
18
- propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
20
- _getBaseUrl(): "https://api.twitter.com/2";
21
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
22
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
23
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
24
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
25
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
26
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
27
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
28
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
29
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<User>>;
30
- getAuthenticatedUserId(): Promise<string>;
31
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
32
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
33
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
34
- getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
35
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
36
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
37
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<User>>;
38
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<User>>;
39
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
40
- getUserFollowers({ userId, ...args }: GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<User>>;
41
- getUserFollowing({ userId, ...args }: GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<User>>;
42
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
43
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
44
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
45
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
46
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
47
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
48
- }, {
49
- maxResults: {
50
- type: string;
51
- label: string;
52
- description: string;
53
- optional: boolean;
54
- };
55
- listId: {
56
- type: string;
57
- label: string;
58
- description: string;
59
- options(): Promise<{
60
- label: string;
61
- value: string;
62
- }[]>;
63
- };
64
- userNameOrId: {
65
- type: string;
66
- label: string;
67
- description: string;
68
- optional: boolean;
69
- default: string;
70
- };
71
- tweetId: {
72
- type: string;
73
- label: string;
74
- description: string;
75
- };
76
- query: {
77
- type: string;
78
- label: string;
79
- description: string;
80
- };
81
- }>)[];
82
- };
83
- app: import("@pipedream/types").App<{
84
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
85
- _getBaseUrl(): "https://api.twitter.com/2";
86
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
87
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
88
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
89
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
90
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
91
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
92
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
93
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
94
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<User>>;
95
- getAuthenticatedUserId(): Promise<string>;
96
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
97
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
98
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
99
- getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
100
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
101
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
102
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<User>>;
103
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<User>>;
104
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
105
- getUserFollowers({ userId, ...args }: GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<User>>;
106
- getUserFollowing({ userId, ...args }: GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<User>>;
107
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
108
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
109
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
110
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
111
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
112
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
113
- }, {
114
- maxResults: {
115
- type: string;
116
- label: string;
117
- description: string;
118
- optional: boolean;
119
- };
120
- listId: {
121
- type: string;
122
- label: string;
123
- description: string;
124
- options(): Promise<{
125
- label: string;
126
- value: string;
127
- }[]>;
128
- };
129
- userNameOrId: {
130
- type: string;
131
- label: string;
132
- description: string;
133
- optional: boolean;
134
- default: string;
135
- };
136
- tweetId: {
137
- type: string;
138
- label: string;
139
- description: string;
140
- };
141
- query: {
142
- type: string;
143
- label: string;
144
- description: string;
145
- };
146
- }>;
147
- db: string;
148
- timer: {
149
- type: string;
150
- default: {
151
- intervalSeconds: number;
152
- };
153
- };
154
- }>;
15
+ getTweets(args?: {}): any;
16
+ }, any>;
155
17
  export default _default;
@@ -1,4 +1,3 @@
1
- import app from "../../app/twitter.app.mjs";
2
1
  import { defineSource } from "@pipedream/types";
3
2
  import common from "../common/base.mjs";
4
3
  import { getUserSummary as getItemSummary } from "../common/getItemSummary.mjs";
@@ -10,13 +9,13 @@ export default defineSource({
10
9
  key: "twitter-new-follower-of-user",
11
10
  name: "New Follower Received by User",
12
11
  description: `Emit new event when the specified User receives a Follower [See the documentation](${DOCS_LINK})`,
13
- version: "2.0.3",
12
+ version: "2.0.4",
14
13
  type: "source",
15
14
  props: {
16
15
  ...common.props,
17
16
  userNameOrId: {
18
17
  propDefinition: [
19
- app,
18
+ common.props.app,
20
19
  "userNameOrId",
21
20
  ],
22
21
  },
@@ -1,7 +1,6 @@
1
1
  import { getListSummary as getItemSummary } from "../common/getItemSummary.js";
2
2
  import { List } from "../../common/types/responseSchemas.js";
3
3
  import { getListFields } from "../../common/methods.js";
4
- import { GetUserFollowedListsParams } from "../../common/types/requestParams.js";
5
4
  declare const _default: import("@pipedream/types").Source<{
6
5
  getListFields: typeof getListFields;
7
6
  getItemSummary: typeof getItemSummary;
@@ -13,143 +12,6 @@ declare const _default: import("@pipedream/types").Source<{
13
12
  setSavedIds(data: string[]): void;
14
13
  getAndProcessData(maxResults?: number): Promise<void>;
15
14
  emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
16
- }, {
17
- userNameOrId: {
18
- propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
20
- _getBaseUrl(): "https://api.twitter.com/2";
21
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
22
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
23
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
24
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
25
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
26
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
27
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
28
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
29
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
30
- getAuthenticatedUserId(): Promise<string>;
31
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
32
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
33
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
34
- getUserFollowedLists({ userId, ...args }: GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
35
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
36
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
37
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
38
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
39
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
40
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
41
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
42
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
43
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
44
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
45
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
46
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
47
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
48
- }, {
49
- maxResults: {
50
- type: string;
51
- label: string;
52
- description: string;
53
- optional: boolean;
54
- };
55
- listId: {
56
- type: string;
57
- label: string;
58
- description: string;
59
- options(): Promise<{
60
- label: string;
61
- value: string;
62
- }[]>;
63
- };
64
- userNameOrId: {
65
- type: string;
66
- label: string;
67
- description: string;
68
- optional: boolean;
69
- default: string;
70
- };
71
- tweetId: {
72
- type: string;
73
- label: string;
74
- description: string;
75
- };
76
- query: {
77
- type: string;
78
- label: string;
79
- description: string;
80
- };
81
- }>)[];
82
- };
83
- app: import("@pipedream/types").App<{
84
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
85
- _getBaseUrl(): "https://api.twitter.com/2";
86
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
87
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
88
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
89
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
90
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
91
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
92
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
93
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
94
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
95
- getAuthenticatedUserId(): Promise<string>;
96
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
97
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
98
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
99
- getUserFollowedLists({ userId, ...args }: GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
100
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
101
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
102
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
103
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
104
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
105
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
106
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
107
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
108
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
109
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
110
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
111
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
112
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
113
- }, {
114
- maxResults: {
115
- type: string;
116
- label: string;
117
- description: string;
118
- optional: boolean;
119
- };
120
- listId: {
121
- type: string;
122
- label: string;
123
- description: string;
124
- options(): Promise<{
125
- label: string;
126
- value: string;
127
- }[]>;
128
- };
129
- userNameOrId: {
130
- type: string;
131
- label: string;
132
- description: string;
133
- optional: boolean;
134
- default: string;
135
- };
136
- tweetId: {
137
- type: string;
138
- label: string;
139
- description: string;
140
- };
141
- query: {
142
- type: string;
143
- label: string;
144
- description: string;
145
- };
146
- }>;
147
- db: string;
148
- timer: {
149
- type: string;
150
- default: {
151
- intervalSeconds: number;
152
- };
153
- };
154
- }>;
15
+ getTweets(args?: {}): any;
16
+ }, any>;
155
17
  export default _default;