x-twitter-scraper 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +25 -5
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +23 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -17
- package/client.d.ts.map +1 -1
- package/client.js +42 -17
- package/client.js.map +1 -1
- package/client.mjs +42 -17
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +29 -16
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/account.d.mts +59 -3
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +59 -3
- package/resources/account.d.ts.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +88 -11
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +88 -11
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +37 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +37 -4
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +4 -1
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +4 -1
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +33 -8
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +33 -8
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +12 -4
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +12 -4
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +46 -7
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +46 -7
- package/resources/events.d.ts.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +287 -17
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +287 -17
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +3 -2
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +3 -2
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +245 -0
- package/resources/guest-wallets.d.mts.map +1 -0
- package/resources/guest-wallets.d.ts +245 -0
- package/resources/guest-wallets.d.ts.map +1 -0
- package/resources/guest-wallets.js +79 -0
- package/resources/guest-wallets.js.map +1 -0
- package/resources/guest-wallets.mjs +75 -0
- package/resources/guest-wallets.mjs.map +1 -0
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +3 -0
- package/resources/monitors/index.d.mts.map +1 -0
- package/resources/monitors/index.d.ts +3 -0
- package/resources/monitors/index.d.ts.map +1 -0
- package/resources/monitors/index.js +9 -0
- package/resources/monitors/index.js.map +1 -0
- package/resources/monitors/index.mjs +4 -0
- package/resources/monitors/index.mjs.map +1 -0
- package/resources/monitors/keywords.d.mts +164 -0
- package/resources/monitors/keywords.d.mts.map +1 -0
- package/resources/monitors/keywords.d.ts +164 -0
- package/resources/monitors/keywords.d.ts.map +1 -0
- package/resources/monitors/keywords.js +80 -0
- package/resources/monitors/keywords.js.map +1 -0
- package/resources/monitors/keywords.mjs +76 -0
- package/resources/monitors/keywords.mjs.map +1 -0
- package/resources/monitors/monitors.d.mts +127 -0
- package/resources/monitors/monitors.d.mts.map +1 -0
- package/resources/monitors/monitors.d.ts +127 -0
- package/resources/monitors/monitors.d.ts.map +1 -0
- package/resources/monitors/monitors.js +84 -0
- package/resources/monitors/monitors.js.map +1 -0
- package/resources/monitors/monitors.mjs +79 -0
- package/resources/monitors/monitors.mjs.map +1 -0
- package/resources/monitors.d.mts +1 -111
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts +1 -111
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +2 -70
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +1 -68
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +3 -3
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +3 -3
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.mjs.map +1 -1
- package/resources/shared.d.mts +251 -19
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +251 -19
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +20 -6
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts +20 -6
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js +12 -4
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs +12 -4
- package/resources/subscribe.mjs.map +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +9 -7
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +9 -7
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +9 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +9 -7
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/trends.d.mts +2 -2
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +2 -2
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +34 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +34 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +11 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-challenges.d.mts +41 -0
- package/resources/x/account-connection-challenges.d.mts.map +1 -0
- package/resources/x/account-connection-challenges.d.ts +41 -0
- package/resources/x/account-connection-challenges.d.ts.map +1 -0
- package/resources/x/account-connection-challenges.js +27 -0
- package/resources/x/account-connection-challenges.js.map +1 -0
- package/resources/x/account-connection-challenges.mjs +23 -0
- package/resources/x/account-connection-challenges.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -41
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -41
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +3 -3
- package/resources/x/accounts.mjs +3 -3
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/bookmarks.d.mts +6 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +6 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +50 -14
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +50 -14
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +5 -2
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +6 -3
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -2
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -2
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +16 -12
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +16 -12
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +7 -8
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +7 -8
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/tweets.d.mts +29 -6
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +29 -6
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +5 -2
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +5 -2
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/communities.d.mts.map +1 -1
- package/resources/x/communities.d.ts.map +1 -1
- package/resources/x/communities.mjs.map +1 -1
- package/resources/x/dm.d.mts +17 -5
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +17 -5
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +2 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +2 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +2 -2
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +2 -2
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +4 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +4 -2
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +5 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +2 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/lists.d.mts +19 -0
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +19 -0
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +17 -8
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +17 -8
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -3
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +3 -4
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +8 -9
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +8 -9
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +4 -4
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +5 -5
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +442 -29
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +442 -29
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/tweets.d.mts.map +1 -1
- package/resources/x/tweets.d.ts.map +1 -1
- package/resources/x/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +666 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +666 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +26 -4
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +26 -4
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/users.d.mts.map +1 -1
- package/resources/x/users.d.ts.map +1 -1
- package/resources/x/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +51 -0
- package/resources/x/write-actions.d.mts.map +1 -0
- package/resources/x/write-actions.d.ts +51 -0
- package/resources/x/write-actions.d.ts.map +1 -0
- package/resources/x/write-actions.js +26 -0
- package/resources/x/write-actions.js.map +1 -0
- package/resources/x/write-actions.mjs +22 -0
- package/resources/x/write-actions.mjs.map +1 -0
- package/resources/x/x.d.mts +65 -12
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +65 -12
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +10 -1
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +10 -1
- package/resources/x/x.mjs.map +1 -1
- package/resources/x.d.mts.map +1 -1
- package/resources/x.d.ts.map +1 -1
- package/resources/x.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +86 -40
- package/src/internal/request-options.ts +2 -0
- package/src/internal/utils/log.ts +2 -1
- package/src/resources/account.ts +72 -5
- package/src/resources/credits.ts +117 -10
- package/src/resources/drafts.ts +4 -1
- package/src/resources/draws.ts +33 -12
- package/src/resources/events.ts +52 -7
- package/src/resources/extractions.ts +364 -12
- package/src/resources/guest-wallets.ts +337 -0
- package/src/resources/index.ts +15 -10
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +221 -0
- package/src/resources/monitors/monitors.ts +195 -0
- package/src/resources/monitors.ts +1 -153
- package/src/resources/radar.ts +3 -3
- package/src/resources/shared.ts +463 -21
- package/src/resources/subscribe.ts +29 -8
- package/src/resources/support/tickets.ts +9 -7
- package/src/resources/trends.ts +2 -2
- package/src/resources/webhooks.ts +43 -0
- package/src/resources/x/account-connection-challenges.ts +61 -0
- package/src/resources/x/accounts.ts +15 -46
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +68 -16
- package/src/resources/x/communities/index.ts +7 -2
- package/src/resources/x/communities/join.ts +23 -16
- package/src/resources/x/communities/tweets.ts +32 -6
- package/src/resources/x/dm.ts +20 -7
- package/src/resources/x/followers.ts +2 -2
- package/src/resources/x/index.ts +10 -1
- package/src/resources/x/lists.ts +22 -0
- package/src/resources/x/media.ts +25 -11
- package/src/resources/x/profile.ts +11 -12
- package/src/resources/x/tweets/tweets.ts +540 -32
- package/src/resources/x/users/index.ts +4 -0
- package/src/resources/x/users/users.ts +834 -8
- package/src/resources/x/write-actions.ts +79 -0
- package/src/resources/x/x.ts +107 -10
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/api-keys.d.mts +0 -68
- package/resources/api-keys.d.mts.map +0 -1
- package/resources/api-keys.d.ts +0 -68
- package/resources/api-keys.d.ts.map +0 -1
- package/resources/api-keys.js +0 -48
- package/resources/api-keys.js.map +0 -1
- package/resources/api-keys.mjs +0 -44
- package/resources/api-keys.mjs.map +0 -1
- package/resources/bot/bot.d.mts +0 -10
- package/resources/bot/bot.d.mts.map +0 -1
- package/resources/bot/bot.d.ts +0 -10
- package/resources/bot/bot.d.ts.map +0 -1
- package/resources/bot/bot.js +0 -17
- package/resources/bot/bot.js.map +0 -1
- package/resources/bot/bot.mjs +0 -12
- package/resources/bot/bot.mjs.map +0 -1
- package/resources/bot/index.d.mts +0 -3
- package/resources/bot/index.d.mts.map +0 -1
- package/resources/bot/index.d.ts +0 -3
- package/resources/bot/index.d.ts.map +0 -1
- package/resources/bot/index.js +0 -9
- package/resources/bot/index.js.map +0 -1
- package/resources/bot/index.mjs +0 -4
- package/resources/bot/index.mjs.map +0 -1
- package/resources/bot/platform-links.d.mts +0 -4
- package/resources/bot/platform-links.d.mts.map +0 -1
- package/resources/bot/platform-links.d.ts +0 -4
- package/resources/bot/platform-links.d.ts.map +0 -1
- package/resources/bot/platform-links.js +0 -9
- package/resources/bot/platform-links.js.map +0 -1
- package/resources/bot/platform-links.mjs +0 -5
- package/resources/bot/platform-links.mjs.map +0 -1
- package/resources/bot.d.mts +0 -2
- package/resources/bot.d.mts.map +0 -1
- package/resources/bot.d.ts +0 -2
- package/resources/bot.d.ts.map +0 -1
- package/resources/bot.js +0 -6
- package/resources/bot.js.map +0 -1
- package/resources/bot.mjs +0 -3
- package/resources/bot.mjs.map +0 -1
- package/src/resources/api-keys.ts +0 -100
- package/src/resources/bot/bot.ts +0 -15
- package/src/resources/bot/index.ts +0 -4
- package/src/resources/bot/platform-links.ts +0 -5
- package/src/resources/bot.ts +0 -3
|
@@ -14,9 +14,6 @@ import { APIPromise } from '../../../core/api-promise';
|
|
|
14
14
|
import { RequestOptions } from '../../../internal/request-options';
|
|
15
15
|
import { path } from '../../../internal/utils/path';
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Look up, search, and explore user profiles and relationships
|
|
19
|
-
*/
|
|
20
17
|
export class Users extends APIResource {
|
|
21
18
|
follow: FollowAPI.Follow = new FollowAPI.Follow(this._client);
|
|
22
19
|
|
|
@@ -32,17 +29,38 @@ export class Users extends APIResource {
|
|
|
32
29
|
return this._client.get(path`/x/users/${id}`, options);
|
|
33
30
|
}
|
|
34
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Remove follower
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.x.users.removeFollower('id', {
|
|
38
|
+
* account: '@elonmusk',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
removeFollower(
|
|
43
|
+
id: string,
|
|
44
|
+
body: UserRemoveFollowerParams,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): APIPromise<UserRemoveFollowerResponse> {
|
|
47
|
+
return this._client.post(path`/x/users/${id}/remove-follower`, { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
|
|
35
50
|
/**
|
|
36
51
|
* Look up multiple users by IDs in one call
|
|
37
52
|
*
|
|
38
53
|
* @example
|
|
39
54
|
* ```ts
|
|
40
|
-
* const
|
|
55
|
+
* const response = await client.x.users.retrieveBatch({
|
|
41
56
|
* ids: 'ids',
|
|
42
57
|
* });
|
|
43
58
|
* ```
|
|
44
59
|
*/
|
|
45
|
-
retrieveBatch(
|
|
60
|
+
retrieveBatch(
|
|
61
|
+
query: UserRetrieveBatchParams,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): APIPromise<UserRetrieveBatchResponse> {
|
|
46
64
|
return this._client.get('/x/users/batch', { query, ...options });
|
|
47
65
|
}
|
|
48
66
|
|
|
@@ -150,6 +168,23 @@ export class Users extends APIResource {
|
|
|
150
168
|
return this._client.get(path`/x/users/${id}/mentions`, { query, ...options });
|
|
151
169
|
}
|
|
152
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Returns the user's timeline with replies included by default.
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```ts
|
|
176
|
+
* const paginatedTweets =
|
|
177
|
+
* await client.x.users.retrieveReplies('id');
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
retrieveReplies(
|
|
181
|
+
id: string,
|
|
182
|
+
query: UserRetrieveRepliesParams | null | undefined = {},
|
|
183
|
+
options?: RequestOptions,
|
|
184
|
+
): APIPromise<Shared.PaginatedTweets> {
|
|
185
|
+
return this._client.get(path`/x/users/${id}/replies`, { query, ...options });
|
|
186
|
+
}
|
|
187
|
+
|
|
153
188
|
/**
|
|
154
189
|
* Search users by name or username
|
|
155
190
|
*
|
|
@@ -203,21 +238,92 @@ export class Users extends APIResource {
|
|
|
203
238
|
}
|
|
204
239
|
}
|
|
205
240
|
|
|
241
|
+
export interface UserRemoveFollowerResponse {
|
|
242
|
+
success: true;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Batch user lookup results. Duplicate requested IDs are ignored while preserving
|
|
247
|
+
* first-seen order. unavailable_ids identifies processed IDs with no returned
|
|
248
|
+
* profile. unprocessed_ids identifies IDs skipped when the available usage balance limited
|
|
249
|
+
* processing.
|
|
250
|
+
*/
|
|
251
|
+
export interface UserRetrieveBatchResponse {
|
|
252
|
+
/**
|
|
253
|
+
* Batch lookups never paginate.
|
|
254
|
+
*/
|
|
255
|
+
has_next_page: false;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Empty because batch lookups never paginate.
|
|
259
|
+
*/
|
|
260
|
+
next_cursor: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Number of requested IDs included in the lookup.
|
|
264
|
+
*/
|
|
265
|
+
processed_count: number;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Number of unique IDs requested.
|
|
269
|
+
*/
|
|
270
|
+
requested_count: number;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Number of user profiles returned and charged.
|
|
274
|
+
*/
|
|
275
|
+
returned_count: number;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Processed IDs with no returned profile, in first-seen request order.
|
|
279
|
+
*/
|
|
280
|
+
unavailable_ids: Array<string>;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Requested IDs skipped because the available usage balance limited processing. Retry these
|
|
284
|
+
* IDs after adding balance.
|
|
285
|
+
*/
|
|
286
|
+
unprocessed_ids: Array<string>;
|
|
287
|
+
|
|
288
|
+
users: Array<Shared.UserProfile>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface UserRemoveFollowerParams {
|
|
292
|
+
/**
|
|
293
|
+
* X account identifier (@username or account ID)
|
|
294
|
+
*/
|
|
295
|
+
account: string;
|
|
296
|
+
}
|
|
297
|
+
|
|
206
298
|
export interface UserRetrieveBatchParams {
|
|
207
299
|
/**
|
|
208
|
-
* Comma-separated user IDs (
|
|
300
|
+
* Comma-separated numeric user IDs (1-100 values). Duplicate IDs are ignored while
|
|
301
|
+
* preserving first-seen order.
|
|
209
302
|
*/
|
|
210
303
|
ids: string;
|
|
211
304
|
}
|
|
212
305
|
|
|
213
306
|
export interface UserRetrieveFollowersParams {
|
|
307
|
+
/**
|
|
308
|
+
* Legacy cursor alias. Prefer cursor.
|
|
309
|
+
*/
|
|
310
|
+
after?: string;
|
|
311
|
+
|
|
214
312
|
/**
|
|
215
313
|
* Pagination cursor for followers list
|
|
216
314
|
*/
|
|
217
315
|
cursor?: string;
|
|
218
316
|
|
|
219
317
|
/**
|
|
220
|
-
*
|
|
318
|
+
* Legacy integer page size alias for following lists. Prefer pageSize.
|
|
319
|
+
*/
|
|
320
|
+
limit?: number;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
324
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
325
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
326
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
221
327
|
*/
|
|
222
328
|
pageSize?: number;
|
|
223
329
|
}
|
|
@@ -227,49 +333,622 @@ export interface UserRetrieveFollowersYouKnowParams {
|
|
|
227
333
|
* Pagination cursor for followers-you-know
|
|
228
334
|
*/
|
|
229
335
|
cursor?: string;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
339
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
340
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
341
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
342
|
+
*/
|
|
343
|
+
pageSize?: number;
|
|
230
344
|
}
|
|
231
345
|
|
|
232
346
|
export interface UserRetrieveFollowingParams {
|
|
347
|
+
/**
|
|
348
|
+
* Legacy cursor alias. Prefer cursor.
|
|
349
|
+
*/
|
|
350
|
+
after?: string;
|
|
351
|
+
|
|
233
352
|
/**
|
|
234
353
|
* Pagination cursor for following list
|
|
235
354
|
*/
|
|
236
355
|
cursor?: string;
|
|
237
356
|
|
|
238
357
|
/**
|
|
239
|
-
*
|
|
358
|
+
* Legacy page size alias. Prefer pageSize.
|
|
359
|
+
*/
|
|
360
|
+
limit?: number;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
364
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
365
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
366
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
240
367
|
*/
|
|
241
368
|
pageSize?: number;
|
|
242
369
|
}
|
|
243
370
|
|
|
244
371
|
export interface UserRetrieveLikesParams {
|
|
372
|
+
/**
|
|
373
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
374
|
+
* or lines.
|
|
375
|
+
*/
|
|
376
|
+
anyWords?: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
380
|
+
*/
|
|
381
|
+
cashtags?: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Conversation ID filter.
|
|
385
|
+
*/
|
|
386
|
+
conversationId?: string;
|
|
387
|
+
|
|
245
388
|
/**
|
|
246
389
|
* Pagination cursor for liked tweets
|
|
247
390
|
*/
|
|
248
391
|
cursor?: string;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Exact phrase to match.
|
|
395
|
+
*/
|
|
396
|
+
exactPhrase?: string;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
400
|
+
*/
|
|
401
|
+
excludeWords?: string;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Filter by author username.
|
|
405
|
+
*/
|
|
406
|
+
fromUser?: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
410
|
+
*/
|
|
411
|
+
hashtags?: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Only replies to this tweet ID.
|
|
415
|
+
*/
|
|
416
|
+
inReplyToTweetId?: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Language code filter, e.g. en or tr.
|
|
420
|
+
*/
|
|
421
|
+
language?: string;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Filter by media type.
|
|
425
|
+
*/
|
|
426
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Filter tweets mentioning a username.
|
|
430
|
+
*/
|
|
431
|
+
mentioning?: string;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Minimum likes threshold.
|
|
435
|
+
*/
|
|
436
|
+
minFaves?: number;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Minimum quote count threshold.
|
|
440
|
+
*/
|
|
441
|
+
minQuotes?: number;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Minimum replies threshold.
|
|
445
|
+
*/
|
|
446
|
+
minReplies?: number;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Minimum retweets threshold.
|
|
450
|
+
*/
|
|
451
|
+
minRetweets?: number;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
455
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
456
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
457
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
458
|
+
* aliases remain accepted.
|
|
459
|
+
*/
|
|
460
|
+
pageSize?: number;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Quote mode.
|
|
464
|
+
*/
|
|
465
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Only quotes of this tweet ID.
|
|
469
|
+
*/
|
|
470
|
+
quotesOfTweetId?: string;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Reply mode.
|
|
474
|
+
*/
|
|
475
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Retweet mode.
|
|
479
|
+
*/
|
|
480
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Only retweets of this tweet ID.
|
|
484
|
+
*/
|
|
485
|
+
retweetsOfTweetId?: string;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Start date in YYYY-MM-DD format.
|
|
489
|
+
*/
|
|
490
|
+
sinceDate?: string;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Filter replies sent to a username.
|
|
494
|
+
*/
|
|
495
|
+
toUser?: string;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* End date in YYYY-MM-DD format.
|
|
499
|
+
*/
|
|
500
|
+
untilDate?: string;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* URL substring or domain filter.
|
|
504
|
+
*/
|
|
505
|
+
url?: string;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Only return tweets from verified authors.
|
|
509
|
+
*/
|
|
510
|
+
verifiedOnly?: boolean;
|
|
249
511
|
}
|
|
250
512
|
|
|
251
513
|
export interface UserRetrieveMediaParams {
|
|
514
|
+
/**
|
|
515
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
516
|
+
* or lines.
|
|
517
|
+
*/
|
|
518
|
+
anyWords?: string;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
522
|
+
*/
|
|
523
|
+
cashtags?: string;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Conversation ID filter.
|
|
527
|
+
*/
|
|
528
|
+
conversationId?: string;
|
|
529
|
+
|
|
252
530
|
/**
|
|
253
531
|
* Pagination cursor for media tweets
|
|
254
532
|
*/
|
|
255
533
|
cursor?: string;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Exact phrase to match.
|
|
537
|
+
*/
|
|
538
|
+
exactPhrase?: string;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
542
|
+
*/
|
|
543
|
+
excludeWords?: string;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Filter by author username.
|
|
547
|
+
*/
|
|
548
|
+
fromUser?: string;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
552
|
+
*/
|
|
553
|
+
hashtags?: string;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Only replies to this tweet ID.
|
|
557
|
+
*/
|
|
558
|
+
inReplyToTweetId?: string;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Language code filter, e.g. en or tr.
|
|
562
|
+
*/
|
|
563
|
+
language?: string;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Filter by media type.
|
|
567
|
+
*/
|
|
568
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Filter tweets mentioning a username.
|
|
572
|
+
*/
|
|
573
|
+
mentioning?: string;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Minimum likes threshold.
|
|
577
|
+
*/
|
|
578
|
+
minFaves?: number;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Minimum quote count threshold.
|
|
582
|
+
*/
|
|
583
|
+
minQuotes?: number;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Minimum replies threshold.
|
|
587
|
+
*/
|
|
588
|
+
minReplies?: number;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Minimum retweets threshold.
|
|
592
|
+
*/
|
|
593
|
+
minRetweets?: number;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
597
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
598
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
599
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
600
|
+
* aliases remain accepted.
|
|
601
|
+
*/
|
|
602
|
+
pageSize?: number;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Quote mode.
|
|
606
|
+
*/
|
|
607
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Only quotes of this tweet ID.
|
|
611
|
+
*/
|
|
612
|
+
quotesOfTweetId?: string;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Reply mode.
|
|
616
|
+
*/
|
|
617
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Retweet mode.
|
|
621
|
+
*/
|
|
622
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Only retweets of this tweet ID.
|
|
626
|
+
*/
|
|
627
|
+
retweetsOfTweetId?: string;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Start date in YYYY-MM-DD format.
|
|
631
|
+
*/
|
|
632
|
+
sinceDate?: string;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Filter replies sent to a username.
|
|
636
|
+
*/
|
|
637
|
+
toUser?: string;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* End date in YYYY-MM-DD format.
|
|
641
|
+
*/
|
|
642
|
+
untilDate?: string;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* URL substring or domain filter.
|
|
646
|
+
*/
|
|
647
|
+
url?: string;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Only return tweets from verified authors.
|
|
651
|
+
*/
|
|
652
|
+
verifiedOnly?: boolean;
|
|
256
653
|
}
|
|
257
654
|
|
|
258
655
|
export interface UserRetrieveMentionsParams {
|
|
656
|
+
/**
|
|
657
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
658
|
+
* or lines.
|
|
659
|
+
*/
|
|
660
|
+
anyWords?: string;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
664
|
+
*/
|
|
665
|
+
cashtags?: string;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Conversation ID filter.
|
|
669
|
+
*/
|
|
670
|
+
conversationId?: string;
|
|
671
|
+
|
|
259
672
|
/**
|
|
260
673
|
* Pagination cursor for mentions
|
|
261
674
|
*/
|
|
262
675
|
cursor?: string;
|
|
263
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Exact phrase to match.
|
|
679
|
+
*/
|
|
680
|
+
exactPhrase?: string;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
684
|
+
*/
|
|
685
|
+
excludeWords?: string;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Filter by author username.
|
|
689
|
+
*/
|
|
690
|
+
fromUser?: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
694
|
+
*/
|
|
695
|
+
hashtags?: string;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Only replies to this tweet ID.
|
|
699
|
+
*/
|
|
700
|
+
inReplyToTweetId?: string;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Language code filter, e.g. en or tr.
|
|
704
|
+
*/
|
|
705
|
+
language?: string;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Filter by media type.
|
|
709
|
+
*/
|
|
710
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Filter tweets mentioning a username.
|
|
714
|
+
*/
|
|
715
|
+
mentioning?: string;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Minimum likes threshold.
|
|
719
|
+
*/
|
|
720
|
+
minFaves?: number;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Minimum quote count threshold.
|
|
724
|
+
*/
|
|
725
|
+
minQuotes?: number;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Minimum replies threshold.
|
|
729
|
+
*/
|
|
730
|
+
minReplies?: number;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Minimum retweets threshold.
|
|
734
|
+
*/
|
|
735
|
+
minRetweets?: number;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
739
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
740
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
741
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
742
|
+
* aliases remain accepted.
|
|
743
|
+
*/
|
|
744
|
+
pageSize?: number;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Quote mode.
|
|
748
|
+
*/
|
|
749
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Only quotes of this tweet ID.
|
|
753
|
+
*/
|
|
754
|
+
quotesOfTweetId?: string;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Reply mode.
|
|
758
|
+
*/
|
|
759
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Retweet mode.
|
|
763
|
+
*/
|
|
764
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Only retweets of this tweet ID.
|
|
768
|
+
*/
|
|
769
|
+
retweetsOfTweetId?: string;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Start date in YYYY-MM-DD format.
|
|
773
|
+
*/
|
|
774
|
+
sinceDate?: string;
|
|
775
|
+
|
|
264
776
|
/**
|
|
265
777
|
* Unix timestamp - return mentions after this time
|
|
266
778
|
*/
|
|
267
779
|
sinceTime?: string;
|
|
268
780
|
|
|
781
|
+
/**
|
|
782
|
+
* Filter replies sent to a username.
|
|
783
|
+
*/
|
|
784
|
+
toUser?: string;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* End date in YYYY-MM-DD format.
|
|
788
|
+
*/
|
|
789
|
+
untilDate?: string;
|
|
790
|
+
|
|
269
791
|
/**
|
|
270
792
|
* Unix timestamp - return mentions before this time
|
|
271
793
|
*/
|
|
272
794
|
untilTime?: string;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* URL substring or domain filter.
|
|
798
|
+
*/
|
|
799
|
+
url?: string;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Only return tweets from verified authors.
|
|
803
|
+
*/
|
|
804
|
+
verifiedOnly?: boolean;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export interface UserRetrieveRepliesParams {
|
|
808
|
+
/**
|
|
809
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
810
|
+
* or lines.
|
|
811
|
+
*/
|
|
812
|
+
anyWords?: string;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
816
|
+
*/
|
|
817
|
+
cashtags?: string;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Conversation ID filter.
|
|
821
|
+
*/
|
|
822
|
+
conversationId?: string;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Pagination cursor for user replies
|
|
826
|
+
*/
|
|
827
|
+
cursor?: string;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Exact phrase to match.
|
|
831
|
+
*/
|
|
832
|
+
exactPhrase?: string;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
836
|
+
*/
|
|
837
|
+
excludeWords?: string;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Filter by author username.
|
|
841
|
+
*/
|
|
842
|
+
fromUser?: string;
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
846
|
+
*/
|
|
847
|
+
hashtags?: string;
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Include parent tweet for replies
|
|
851
|
+
*/
|
|
852
|
+
includeParentTweet?: boolean;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Only replies to this tweet ID.
|
|
856
|
+
*/
|
|
857
|
+
inReplyToTweetId?: string;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Language code filter, e.g. en or tr.
|
|
861
|
+
*/
|
|
862
|
+
language?: string;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Filter by media type.
|
|
866
|
+
*/
|
|
867
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Filter tweets mentioning a username.
|
|
871
|
+
*/
|
|
872
|
+
mentioning?: string;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Minimum likes threshold.
|
|
876
|
+
*/
|
|
877
|
+
minFaves?: number;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Minimum quote count threshold.
|
|
881
|
+
*/
|
|
882
|
+
minQuotes?: number;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Minimum replies threshold.
|
|
886
|
+
*/
|
|
887
|
+
minReplies?: number;
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Minimum retweets threshold.
|
|
891
|
+
*/
|
|
892
|
+
minRetweets?: number;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
896
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
897
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
898
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
899
|
+
* aliases remain accepted.
|
|
900
|
+
*/
|
|
901
|
+
pageSize?: number;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Quote mode.
|
|
905
|
+
*/
|
|
906
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Only quotes of this tweet ID.
|
|
910
|
+
*/
|
|
911
|
+
quotesOfTweetId?: string;
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Reply mode.
|
|
915
|
+
*/
|
|
916
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Retweet mode.
|
|
920
|
+
*/
|
|
921
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Only retweets of this tweet ID.
|
|
925
|
+
*/
|
|
926
|
+
retweetsOfTweetId?: string;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Start date in YYYY-MM-DD format.
|
|
930
|
+
*/
|
|
931
|
+
sinceDate?: string;
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Filter replies sent to a username.
|
|
935
|
+
*/
|
|
936
|
+
toUser?: string;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* End date in YYYY-MM-DD format.
|
|
940
|
+
*/
|
|
941
|
+
untilDate?: string;
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* URL substring or domain filter.
|
|
945
|
+
*/
|
|
946
|
+
url?: string;
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* Only return tweets from verified authors.
|
|
950
|
+
*/
|
|
951
|
+
verifiedOnly?: boolean;
|
|
273
952
|
}
|
|
274
953
|
|
|
275
954
|
export interface UserRetrieveSearchParams {
|
|
@@ -285,11 +964,47 @@ export interface UserRetrieveSearchParams {
|
|
|
285
964
|
}
|
|
286
965
|
|
|
287
966
|
export interface UserRetrieveTweetsParams {
|
|
967
|
+
/**
|
|
968
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
969
|
+
* or lines.
|
|
970
|
+
*/
|
|
971
|
+
anyWords?: string;
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
975
|
+
*/
|
|
976
|
+
cashtags?: string;
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Conversation ID filter.
|
|
980
|
+
*/
|
|
981
|
+
conversationId?: string;
|
|
982
|
+
|
|
288
983
|
/**
|
|
289
984
|
* Pagination cursor for user tweets
|
|
290
985
|
*/
|
|
291
986
|
cursor?: string;
|
|
292
987
|
|
|
988
|
+
/**
|
|
989
|
+
* Exact phrase to match.
|
|
990
|
+
*/
|
|
991
|
+
exactPhrase?: string;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
995
|
+
*/
|
|
996
|
+
excludeWords?: string;
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Filter by author username.
|
|
1000
|
+
*/
|
|
1001
|
+
fromUser?: string;
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
1005
|
+
*/
|
|
1006
|
+
hashtags?: string;
|
|
1007
|
+
|
|
293
1008
|
/**
|
|
294
1009
|
* Include parent tweet for replies
|
|
295
1010
|
*/
|
|
@@ -299,6 +1014,105 @@ export interface UserRetrieveTweetsParams {
|
|
|
299
1014
|
* Include reply tweets
|
|
300
1015
|
*/
|
|
301
1016
|
includeReplies?: boolean;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Only replies to this tweet ID.
|
|
1020
|
+
*/
|
|
1021
|
+
inReplyToTweetId?: string;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Language code filter, e.g. en or tr.
|
|
1025
|
+
*/
|
|
1026
|
+
language?: string;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Filter by media type.
|
|
1030
|
+
*/
|
|
1031
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Filter tweets mentioning a username.
|
|
1035
|
+
*/
|
|
1036
|
+
mentioning?: string;
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Minimum likes threshold.
|
|
1040
|
+
*/
|
|
1041
|
+
minFaves?: number;
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Minimum quote count threshold.
|
|
1045
|
+
*/
|
|
1046
|
+
minQuotes?: number;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Minimum replies threshold.
|
|
1050
|
+
*/
|
|
1051
|
+
minReplies?: number;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Minimum retweets threshold.
|
|
1055
|
+
*/
|
|
1056
|
+
minRetweets?: number;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
1060
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
1061
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
1062
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
1063
|
+
* aliases remain accepted.
|
|
1064
|
+
*/
|
|
1065
|
+
pageSize?: number;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Quote mode.
|
|
1069
|
+
*/
|
|
1070
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Only quotes of this tweet ID.
|
|
1074
|
+
*/
|
|
1075
|
+
quotesOfTweetId?: string;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Reply mode.
|
|
1079
|
+
*/
|
|
1080
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Retweet mode.
|
|
1084
|
+
*/
|
|
1085
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Only retweets of this tweet ID.
|
|
1089
|
+
*/
|
|
1090
|
+
retweetsOfTweetId?: string;
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Start date in YYYY-MM-DD format.
|
|
1094
|
+
*/
|
|
1095
|
+
sinceDate?: string;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Filter replies sent to a username.
|
|
1099
|
+
*/
|
|
1100
|
+
toUser?: string;
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* End date in YYYY-MM-DD format.
|
|
1104
|
+
*/
|
|
1105
|
+
untilDate?: string;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* URL substring or domain filter.
|
|
1109
|
+
*/
|
|
1110
|
+
url?: string;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Only return tweets from verified authors.
|
|
1114
|
+
*/
|
|
1115
|
+
verifiedOnly?: boolean;
|
|
302
1116
|
}
|
|
303
1117
|
|
|
304
1118
|
export interface UserRetrieveVerifiedFollowersParams {
|
|
@@ -306,12 +1120,23 @@ export interface UserRetrieveVerifiedFollowersParams {
|
|
|
306
1120
|
* Pagination cursor for verified followers
|
|
307
1121
|
*/
|
|
308
1122
|
cursor?: string;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
1126
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
1127
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
1128
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
1129
|
+
*/
|
|
1130
|
+
pageSize?: number;
|
|
309
1131
|
}
|
|
310
1132
|
|
|
311
1133
|
Users.Follow = Follow;
|
|
312
1134
|
|
|
313
1135
|
export declare namespace Users {
|
|
314
1136
|
export {
|
|
1137
|
+
type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
|
|
1138
|
+
type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
|
|
1139
|
+
type UserRemoveFollowerParams as UserRemoveFollowerParams,
|
|
315
1140
|
type UserRetrieveBatchParams as UserRetrieveBatchParams,
|
|
316
1141
|
type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
|
|
317
1142
|
type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
|
|
@@ -319,6 +1144,7 @@ export declare namespace Users {
|
|
|
319
1144
|
type UserRetrieveLikesParams as UserRetrieveLikesParams,
|
|
320
1145
|
type UserRetrieveMediaParams as UserRetrieveMediaParams,
|
|
321
1146
|
type UserRetrieveMentionsParams as UserRetrieveMentionsParams,
|
|
1147
|
+
type UserRetrieveRepliesParams as UserRetrieveRepliesParams,
|
|
322
1148
|
type UserRetrieveSearchParams as UserRetrieveSearchParams,
|
|
323
1149
|
type UserRetrieveTweetsParams as UserRetrieveTweetsParams,
|
|
324
1150
|
type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams,
|