@pipedream/twitter 1.1.2 → 1.1.3

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 (59) hide show
  1. package/README.md +16 -1
  2. package/dist/actions/add-user-to-list/add-user-to-list.d.ts +3 -3
  3. package/dist/actions/add-user-to-list/add-user-to-list.mjs +21 -14
  4. package/dist/actions/create-tweet/create-tweet.d.ts +1 -1
  5. package/dist/actions/create-tweet/create-tweet.mjs +35 -28
  6. package/dist/actions/delete-tweet/delete-tweet.d.ts +2 -2
  7. package/dist/actions/delete-tweet/delete-tweet.mjs +16 -9
  8. package/dist/actions/follow-user/follow-user.d.ts +2 -2
  9. package/dist/actions/follow-user/follow-user.mjs +20 -13
  10. package/dist/actions/get-tweet/get-tweet.d.ts +2 -2
  11. package/dist/actions/get-tweet/get-tweet.mjs +17 -10
  12. package/dist/actions/get-user/get-user.d.ts +2 -2
  13. package/dist/actions/get-user/get-user.mjs +20 -13
  14. package/dist/actions/like-tweet/like-tweet.d.ts +2 -2
  15. package/dist/actions/like-tweet/like-tweet.mjs +18 -11
  16. package/dist/actions/list-favorites/list-favorites.d.ts +3 -3
  17. package/dist/actions/list-favorites/list-favorites.mjs +19 -12
  18. package/dist/actions/list-followers/list-followers.d.ts +3 -3
  19. package/dist/actions/list-followers/list-followers.mjs +19 -12
  20. package/dist/actions/list-lists/list-lists.d.ts +3 -3
  21. package/dist/actions/list-lists/list-lists.mjs +19 -12
  22. package/dist/actions/list-mentions/list-mentions.d.ts +3 -3
  23. package/dist/actions/list-mentions/list-mentions.mjs +19 -12
  24. package/dist/actions/list-user-tweets/list-user-tweets.d.ts +3 -3
  25. package/dist/actions/list-user-tweets/list-user-tweets.mjs +19 -12
  26. package/dist/actions/retweet/retweet.d.ts +2 -2
  27. package/dist/actions/retweet/retweet.mjs +20 -13
  28. package/dist/actions/simple-search/simple-search.d.ts +3 -3
  29. package/dist/actions/simple-search/simple-search.mjs +20 -13
  30. package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +3 -3
  31. package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +23 -16
  32. package/dist/actions/unfollow-user/unfollow-user.d.ts +2 -2
  33. package/dist/actions/unfollow-user/unfollow-user.mjs +16 -9
  34. package/dist/actions/unlike-tweet/unlike-tweet.d.ts +2 -2
  35. package/dist/actions/unlike-tweet/unlike-tweet.mjs +16 -9
  36. package/dist/app/twitter.app.d.ts +1 -1
  37. package/dist/app/twitter.app.mjs +27 -24
  38. package/dist/common/errorMessage.d.ts +2 -0
  39. package/dist/common/errorMessage.mjs +2 -0
  40. package/dist/sources/common/base.d.ts +1 -1
  41. package/dist/sources/common/base.mjs +10 -2
  42. package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +2 -2
  43. package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +1 -1
  44. package/dist/sources/new-list-followed/new-list-followed.d.ts +2 -2
  45. package/dist/sources/new-list-followed/new-list-followed.mjs +1 -1
  46. package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +2 -2
  47. package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +1 -1
  48. package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +2 -2
  49. package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +1 -1
  50. package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +2 -2
  51. package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +1 -1
  52. package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +2 -2
  53. package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +1 -1
  54. package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +2 -2
  55. package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +1 -1
  56. package/dist/sources/new-user-followed/new-user-followed.d.ts +2 -2
  57. package/dist/sources/new-user-followed/new-user-followed.mjs +1 -1
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { UnlikeTweetParams } from "../../common/types/requestParams.js";
2
2
  declare const _default: import("@pipedream/types").Action<unknown, {
3
3
  app: import("@pipedream/types").App<{
4
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
4
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
5
5
  _getBaseUrl(): "https://api.twitter.com/2";
6
6
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
7
7
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -63,7 +63,7 @@ declare const _default: import("@pipedream/types").Action<unknown, {
63
63
  }>;
64
64
  tweetId: {
65
65
  propDefinition: (string | import("@pipedream/types").App<{
66
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
66
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
67
67
  _getBaseUrl(): "https://api.twitter.com/2";
68
68
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
69
69
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -1,11 +1,12 @@
1
1
  import app from "../../app/twitter.app.mjs";
2
+ import { ACTION_ERROR_MESSAGE } from "../../common/errorMessage.mjs";
2
3
  import { defineAction } from "@pipedream/types";
3
4
  const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/tweets/likes/api-reference/delete-users-id-likes-tweet_id";
4
5
  export default defineAction({
5
6
  key: "twitter-unlike-tweet",
6
7
  name: "Unlike Tweet",
7
8
  description: `Unlike a tweet specified by its ID. [See docs here](${DOCS_LINK})`,
8
- version: "1.0.2",
9
+ version: "1.0.3",
9
10
  type: "action",
10
11
  props: {
11
12
  app,
@@ -17,13 +18,19 @@ export default defineAction({
17
18
  },
18
19
  },
19
20
  async run({ $ }) {
20
- const { tweetId } = this;
21
- const params = {
22
- $,
23
- tweetId,
24
- };
25
- const response = await this.app.unlikeTweet(params);
26
- $.export("$summary", `Successfully unliked tweet ${tweetId}`);
27
- return response;
21
+ try {
22
+ const { tweetId } = this;
23
+ const params = {
24
+ $,
25
+ tweetId,
26
+ };
27
+ const response = await this.app.unlikeTweet(params);
28
+ $.export("$summary", `Successfully unliked tweet ${tweetId}`);
29
+ return response;
30
+ }
31
+ catch (err) {
32
+ $.export("error", err);
33
+ throw new Error(ACTION_ERROR_MESSAGE);
34
+ }
28
35
  },
29
36
  });
@@ -2,7 +2,7 @@ import OAuth from "oauth-1.0a";
2
2
  import { AddUserToListParams, CreateTweetParams, DeleteTweetParams, FollowUserParams, GetUserLikedTweetParams, GetUserOwnedListsParams, GetTweetParams, GetUserFollowedListsParams, GetUserMentionsParams, GetUserParams, GetUserTweetsParams, HttpRequestParams, LikeTweetParams, GetUserFollowersParams, GetUserFollowingParams, PaginatedRequestParams, RetweetParams, SearchTweetsParams, UnfollowUserParams, UnlikeTweetParams, GetListTweetsParams, GetAuthenticatedUserParams } from "../common/types/requestParams.js";
3
3
  import { List, PaginatedResponseObject, ResponseObject, Tweet, TwitterEntity, User } from "../common/types/responseSchemas.js";
4
4
  declare const _default: import("@pipedream/types").App<{
5
- _getAuthHeader(config: HttpRequestParams): Promise<OAuth.Header>;
5
+ _getAuthHeader(config: HttpRequestParams): OAuth.Header;
6
6
  _getBaseUrl(): "https://api.twitter.com/2";
7
7
  _httpRequest({ $, ...args }: HttpRequestParams): Promise<ResponseObject<TwitterEntity>>;
8
8
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: PaginatedRequestParams): Promise<PaginatedResponseObject<TwitterEntity>>;
@@ -1,7 +1,8 @@
1
1
  import OAuth from "oauth-1.0a";
2
2
  import crypto from "crypto";
3
3
  import { defineApp } from "@pipedream/types";
4
- import { axios } from "@pipedream/platform";
4
+ import { axios, transformConfigForOauth, } from "@pipedream/platform";
5
+ import { ERROR_MESSAGE } from "../common/errorMessage.mjs";
5
6
  export default defineApp({
6
7
  type: "app",
7
8
  app: "twitter",
@@ -17,14 +18,19 @@ export default defineApp({
17
18
  label: "List ID",
18
19
  description: "Select a **List** owned by the authenticated user, or use a custom *List ID*.",
19
20
  async options() {
20
- const userId = await this.getAuthenticatedUserId();
21
- const lists = await this.getUserOwnedLists({
22
- userId,
23
- });
24
- return (lists.data?.map(({ id, name, }) => ({
25
- label: name,
26
- value: id,
27
- })) ?? []);
21
+ try {
22
+ const userId = await this.getAuthenticatedUserId();
23
+ const lists = await this.getUserOwnedLists({
24
+ userId,
25
+ });
26
+ return (lists.data?.map(({ id, name, }) => ({
27
+ label: name,
28
+ value: id,
29
+ })) ?? []);
30
+ }
31
+ catch (error) {
32
+ throw new Error(ERROR_MESSAGE);
33
+ }
28
34
  },
29
35
  },
30
36
  userNameOrId: {
@@ -57,11 +63,11 @@ export default defineApp({
57
63
  },
58
64
  },
59
65
  methods: {
60
- async _getAuthHeader(config) {
61
- const { oauth_access_token: key, oauth_refresh_token: secret, } = this.$auth;
66
+ _getAuthHeader(config) {
67
+ const { developer_consumer_key: devKey, developer_consumer_secret: devSecret, oauth_access_token: key, oauth_refresh_token: secret, } = this.$auth;
62
68
  const consumer = {
63
- key,
64
- secret,
69
+ key: devKey,
70
+ secret: devSecret,
65
71
  };
66
72
  const oauth = new OAuth({
67
73
  consumer,
@@ -73,9 +79,12 @@ export default defineApp({
73
79
  .digest("base64");
74
80
  },
75
81
  });
76
- if (!config.method)
77
- config.method = "GET";
78
- return oauth.toHeader(oauth.authorize(config, consumer));
82
+ const token = {
83
+ key,
84
+ secret,
85
+ };
86
+ const requestData = transformConfigForOauth(config);
87
+ return oauth.toHeader(oauth.authorize(requestData, token));
79
88
  },
80
89
  _getBaseUrl() {
81
90
  return "https://api.twitter.com/2";
@@ -85,16 +94,10 @@ export default defineApp({
85
94
  baseURL: this._getBaseUrl(),
86
95
  ...args,
87
96
  };
88
- // const headers = this._getAuthHeader(config);
97
+ const headers = this._getAuthHeader(config);
89
98
  const request = () => axios($, {
90
99
  ...config,
91
- // headers,
92
- }, {
93
- oauthSignerUri: this.$auth.oauth_signer_uri,
94
- token: {
95
- key: this.$auth.oauth_access_token,
96
- secret: this.$auth.oauth_refresh_token,
97
- },
100
+ headers,
98
101
  });
99
102
  let response, counter = 1;
100
103
  do {
@@ -0,0 +1,2 @@
1
+ export declare const ERROR_MESSAGE = "Check if your app is properly configured on the Twitter Developer Portal, and if your plan has access to the endpoint used by this component.";
2
+ export declare const ACTION_ERROR_MESSAGE: string;
@@ -0,0 +1,2 @@
1
+ export const ERROR_MESSAGE = "Check if your app is properly configured on the Twitter Developer Portal, and if your plan has access to the endpoint used by this component.";
2
+ export const ACTION_ERROR_MESSAGE = `${ERROR_MESSAGE} Additional debugging information has been exported from the step.`;
@@ -2,7 +2,7 @@ import { TwitterEntity } from "../../common/types/responseSchemas.js";
2
2
  declare const _default: {
3
3
  props: {
4
4
  app: import("@pipedream/types").App<{
5
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
5
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
6
6
  _getBaseUrl(): "https://api.twitter.com/2";
7
7
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<TwitterEntity>>;
8
8
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<TwitterEntity>>;
@@ -1,5 +1,6 @@
1
1
  import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
2
2
  import app from "../../app/twitter.app.mjs";
3
+ import { ERROR_MESSAGE } from "../../common/errorMessage.mjs";
3
4
  export default {
4
5
  props: {
5
6
  app,
@@ -36,7 +37,9 @@ export default {
36
37
  const data = await this.getResources(maxResults);
37
38
  if (data) {
38
39
  const savedIds = this.getSavedIds() ?? [];
39
- data.filter(({ id }) => !savedIds.includes(id)).reverse()
40
+ data
41
+ .filter(({ id }) => !savedIds.includes(id))
42
+ .reverse()
40
43
  .forEach((obj) => {
41
44
  this.emitEvent(obj);
42
45
  savedIds.push(obj.id);
@@ -55,6 +58,11 @@ export default {
55
58
  },
56
59
  },
57
60
  async run() {
58
- await this.getAndProcessData(50);
61
+ try {
62
+ await this.getAndProcessData(50);
63
+ }
64
+ catch (err) {
65
+ throw new Error(`${ERROR_MESSAGE} Error response: ${JSON.stringify(err)}`);
66
+ }
59
67
  },
60
68
  };
@@ -16,7 +16,7 @@ declare const _default: import("@pipedream/types").Source<{
16
16
  }, {
17
17
  userNameOrId: {
18
18
  propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
19
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
20
20
  _getBaseUrl(): "https://api.twitter.com/2";
21
21
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
22
22
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -78,7 +78,7 @@ declare const _default: import("@pipedream/types").Source<{
78
78
  }>)[];
79
79
  };
80
80
  app: import("@pipedream/types").App<{
81
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
81
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
82
82
  _getBaseUrl(): "https://api.twitter.com/2";
83
83
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
84
84
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -10,7 +10,7 @@ export default defineSource({
10
10
  key: "twitter-new-follower-of-user",
11
11
  name: "New Follower Received by User",
12
12
  description: `Emit new event when the specified User receives a Follower [See docs here](${DOCS_LINK})`,
13
- version: "1.1.2",
13
+ version: "1.1.3",
14
14
  type: "source",
15
15
  props: {
16
16
  ...common.props,
@@ -16,7 +16,7 @@ declare const _default: import("@pipedream/types").Source<{
16
16
  }, {
17
17
  userNameOrId: {
18
18
  propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
19
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
20
20
  _getBaseUrl(): "https://api.twitter.com/2";
21
21
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
22
22
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -78,7 +78,7 @@ declare const _default: import("@pipedream/types").Source<{
78
78
  }>)[];
79
79
  };
80
80
  app: import("@pipedream/types").App<{
81
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
81
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
82
82
  _getBaseUrl(): "https://api.twitter.com/2";
83
83
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
84
84
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -11,7 +11,7 @@ export default defineSource({
11
11
  key: "twitter-new-list-followed",
12
12
  name: "New List Followed by User",
13
13
  description: `Emit new event when the specified User follows a List [See docs here](${DOCS_LINK})`,
14
- version: "1.1.2",
14
+ version: "1.1.3",
15
15
  type: "source",
16
16
  props: {
17
17
  ...common.props,
@@ -14,7 +14,7 @@ declare const _default: import("@pipedream/types").Source<{
14
14
  }, {
15
15
  listId: {
16
16
  propDefinition: (string | import("@pipedream/types").App<{
17
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
17
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
18
18
  _getBaseUrl(): "https://api.twitter.com/2";
19
19
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
20
20
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -76,7 +76,7 @@ declare const _default: import("@pipedream/types").Source<{
76
76
  }>)[];
77
77
  };
78
78
  app: import("@pipedream/types").App<{
79
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
79
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
80
80
  _getBaseUrl(): "https://api.twitter.com/2";
81
81
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
82
82
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -9,7 +9,7 @@ export default defineSource({
9
9
  key: "twitter-new-tweet-in-list",
10
10
  name: "New Tweet Posted in List",
11
11
  description: `Emit new event when a Tweet is posted in the specified list [See docs here](${DOCS_LINK})`,
12
- version: "1.1.2",
12
+ version: "1.1.3",
13
13
  type: "source",
14
14
  props: {
15
15
  ...common.props,
@@ -16,7 +16,7 @@ declare const _default: import("@pipedream/types").Source<{
16
16
  }, {
17
17
  userNameOrId: {
18
18
  propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
19
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
20
20
  _getBaseUrl(): "https://api.twitter.com/2";
21
21
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
22
22
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -78,7 +78,7 @@ declare const _default: import("@pipedream/types").Source<{
78
78
  }>)[];
79
79
  };
80
80
  app: import("@pipedream/types").App<{
81
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
81
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
82
82
  _getBaseUrl(): "https://api.twitter.com/2";
83
83
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
84
84
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -10,7 +10,7 @@ export default defineSource({
10
10
  key: "twitter-new-tweet-liked-by-user",
11
11
  name: "New Tweet Liked by User",
12
12
  description: `Emit new event when a Tweet is liked by the specified User [See docs here](${DOCS_LINK})`,
13
- version: "0.1.2",
13
+ version: "0.1.3",
14
14
  type: "source",
15
15
  props: {
16
16
  ...common.props,
@@ -16,7 +16,7 @@ declare const _default: import("@pipedream/types").Source<{
16
16
  }, {
17
17
  userNameOrId: {
18
18
  propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
19
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
20
20
  _getBaseUrl(): "https://api.twitter.com/2";
21
21
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
22
22
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -78,7 +78,7 @@ declare const _default: import("@pipedream/types").Source<{
78
78
  }>)[];
79
79
  };
80
80
  app: import("@pipedream/types").App<{
81
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
81
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
82
82
  _getBaseUrl(): "https://api.twitter.com/2";
83
83
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
84
84
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -10,7 +10,7 @@ export default defineSource({
10
10
  key: "twitter-new-tweet-posted-by-user",
11
11
  name: "New Tweet Posted by User",
12
12
  description: `Emit new event when the specified User posts a Tweet [See docs here](${DOCS_LINK})`,
13
- version: "0.1.2",
13
+ version: "0.1.3",
14
14
  type: "source",
15
15
  props: {
16
16
  ...common.props,
@@ -14,7 +14,7 @@ declare const _default: import("@pipedream/types").Source<{
14
14
  }, {
15
15
  query: {
16
16
  propDefinition: (string | import("@pipedream/types").App<{
17
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
17
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
18
18
  _getBaseUrl(): "https://api.twitter.com/2";
19
19
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
20
20
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -76,7 +76,7 @@ declare const _default: import("@pipedream/types").Source<{
76
76
  }>)[];
77
77
  };
78
78
  app: import("@pipedream/types").App<{
79
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
79
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
80
80
  _getBaseUrl(): "https://api.twitter.com/2";
81
81
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
82
82
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -9,7 +9,7 @@ export default defineSource({
9
9
  key: "twitter-new-tweet-posted-matching-query",
10
10
  name: "New Tweet Posted Matching Query",
11
11
  description: `Emit new event when a new tweet matching the specified query is posted [See docs here](${DOCS_LINK})`,
12
- version: "0.1.2",
12
+ version: "0.1.3",
13
13
  type: "source",
14
14
  props: {
15
15
  ...common.props,
@@ -16,7 +16,7 @@ declare const _default: import("@pipedream/types").Source<{
16
16
  }, {
17
17
  userNameOrId: {
18
18
  propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
19
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
20
20
  _getBaseUrl(): "https://api.twitter.com/2";
21
21
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
22
22
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -78,7 +78,7 @@ declare const _default: import("@pipedream/types").Source<{
78
78
  }>)[];
79
79
  };
80
80
  app: import("@pipedream/types").App<{
81
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
81
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
82
82
  _getBaseUrl(): "https://api.twitter.com/2";
83
83
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
84
84
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -9,7 +9,7 @@ export default defineSource({
9
9
  key: "twitter-new-unfollower-of-user",
10
10
  name: "New Unfollower of User",
11
11
  description: `Emit new event when the specified User loses a Follower [See docs here](${DOCS_LINK})`,
12
- version: "1.0.3",
12
+ version: "1.0.4",
13
13
  type: "source",
14
14
  props: {
15
15
  ...common.props,
@@ -15,7 +15,7 @@ declare const _default: import("@pipedream/types").Source<{
15
15
  }, {
16
16
  userNameOrId: {
17
17
  propDefinition: (string | import("@pipedream/types").App<{
18
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
18
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
19
19
  _getBaseUrl(): "https://api.twitter.com/2";
20
20
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
21
21
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -77,7 +77,7 @@ declare const _default: import("@pipedream/types").Source<{
77
77
  }>)[];
78
78
  };
79
79
  app: import("@pipedream/types").App<{
80
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
80
+ _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
81
81
  _getBaseUrl(): "https://api.twitter.com/2";
82
82
  _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
83
83
  _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
@@ -11,7 +11,7 @@ export default defineSource({
11
11
  key: "twitter-new-user-followed",
12
12
  name: "New User Followed by User",
13
13
  description: `Emit new event when the specified User follows another User [See docs here](${DOCS_LINK})`,
14
- version: "1.1.2",
14
+ version: "1.1.3",
15
15
  type: "source",
16
16
  props: {
17
17
  ...common.props,