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
|
@@ -4,9 +4,6 @@ import * as FollowAPI from "./follow.js";
|
|
|
4
4
|
import { Follow, FollowCreateParams, FollowCreateResponse, FollowDeleteAllParams, FollowDeleteAllResponse } from "./follow.js";
|
|
5
5
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
6
6
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
|
-
/**
|
|
8
|
-
* Look up, search, and explore user profiles and relationships
|
|
9
|
-
*/
|
|
10
7
|
export declare class Users extends APIResource {
|
|
11
8
|
follow: FollowAPI.Follow;
|
|
12
9
|
/**
|
|
@@ -18,17 +15,28 @@ export declare class Users extends APIResource {
|
|
|
18
15
|
* ```
|
|
19
16
|
*/
|
|
20
17
|
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.UserProfile>;
|
|
18
|
+
/**
|
|
19
|
+
* Remove follower
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const response = await client.x.users.removeFollower('id', {
|
|
24
|
+
* account: '@elonmusk',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
removeFollower(id: string, body: UserRemoveFollowerParams, options?: RequestOptions): APIPromise<UserRemoveFollowerResponse>;
|
|
21
29
|
/**
|
|
22
30
|
* Look up multiple users by IDs in one call
|
|
23
31
|
*
|
|
24
32
|
* @example
|
|
25
33
|
* ```ts
|
|
26
|
-
* const
|
|
34
|
+
* const response = await client.x.users.retrieveBatch({
|
|
27
35
|
* ids: 'ids',
|
|
28
36
|
* });
|
|
29
37
|
* ```
|
|
30
38
|
*/
|
|
31
|
-
retrieveBatch(query: UserRetrieveBatchParams, options?: RequestOptions): APIPromise<
|
|
39
|
+
retrieveBatch(query: UserRetrieveBatchParams, options?: RequestOptions): APIPromise<UserRetrieveBatchResponse>;
|
|
32
40
|
/**
|
|
33
41
|
* List followers of a user
|
|
34
42
|
*
|
|
@@ -91,6 +99,16 @@ export declare class Users extends APIResource {
|
|
|
91
99
|
* ```
|
|
92
100
|
*/
|
|
93
101
|
retrieveMentions(id: string, query?: UserRetrieveMentionsParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
102
|
+
/**
|
|
103
|
+
* Returns the user's timeline with replies included by default.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* const paginatedTweets =
|
|
108
|
+
* await client.x.users.retrieveReplies('id');
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
retrieveReplies(id: string, query?: UserRetrieveRepliesParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
94
112
|
/**
|
|
95
113
|
* Search users by name or username
|
|
96
114
|
*
|
|
@@ -124,19 +142,78 @@ export declare class Users extends APIResource {
|
|
|
124
142
|
*/
|
|
125
143
|
retrieveVerifiedFollowers(id: string, query?: UserRetrieveVerifiedFollowersParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
126
144
|
}
|
|
145
|
+
export interface UserRemoveFollowerResponse {
|
|
146
|
+
success: true;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Batch user lookup results. Duplicate requested IDs are ignored while preserving
|
|
150
|
+
* first-seen order. unavailable_ids identifies processed IDs with no returned
|
|
151
|
+
* profile. unprocessed_ids identifies IDs skipped when the available usage balance limited
|
|
152
|
+
* processing.
|
|
153
|
+
*/
|
|
154
|
+
export interface UserRetrieveBatchResponse {
|
|
155
|
+
/**
|
|
156
|
+
* Batch lookups never paginate.
|
|
157
|
+
*/
|
|
158
|
+
has_next_page: false;
|
|
159
|
+
/**
|
|
160
|
+
* Empty because batch lookups never paginate.
|
|
161
|
+
*/
|
|
162
|
+
next_cursor: string;
|
|
163
|
+
/**
|
|
164
|
+
* Number of requested IDs included in the lookup.
|
|
165
|
+
*/
|
|
166
|
+
processed_count: number;
|
|
167
|
+
/**
|
|
168
|
+
* Number of unique IDs requested.
|
|
169
|
+
*/
|
|
170
|
+
requested_count: number;
|
|
171
|
+
/**
|
|
172
|
+
* Number of user profiles returned and charged.
|
|
173
|
+
*/
|
|
174
|
+
returned_count: number;
|
|
175
|
+
/**
|
|
176
|
+
* Processed IDs with no returned profile, in first-seen request order.
|
|
177
|
+
*/
|
|
178
|
+
unavailable_ids: Array<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Requested IDs skipped because the available usage balance limited processing. Retry these
|
|
181
|
+
* IDs after adding balance.
|
|
182
|
+
*/
|
|
183
|
+
unprocessed_ids: Array<string>;
|
|
184
|
+
users: Array<Shared.UserProfile>;
|
|
185
|
+
}
|
|
186
|
+
export interface UserRemoveFollowerParams {
|
|
187
|
+
/**
|
|
188
|
+
* X account identifier (@username or account ID)
|
|
189
|
+
*/
|
|
190
|
+
account: string;
|
|
191
|
+
}
|
|
127
192
|
export interface UserRetrieveBatchParams {
|
|
128
193
|
/**
|
|
129
|
-
* Comma-separated user IDs (
|
|
194
|
+
* Comma-separated numeric user IDs (1-100 values). Duplicate IDs are ignored while
|
|
195
|
+
* preserving first-seen order.
|
|
130
196
|
*/
|
|
131
197
|
ids: string;
|
|
132
198
|
}
|
|
133
199
|
export interface UserRetrieveFollowersParams {
|
|
200
|
+
/**
|
|
201
|
+
* Legacy cursor alias. Prefer cursor.
|
|
202
|
+
*/
|
|
203
|
+
after?: string;
|
|
134
204
|
/**
|
|
135
205
|
* Pagination cursor for followers list
|
|
136
206
|
*/
|
|
137
207
|
cursor?: string;
|
|
138
208
|
/**
|
|
139
|
-
*
|
|
209
|
+
* Legacy integer page size alias for following lists. Prefer pageSize.
|
|
210
|
+
*/
|
|
211
|
+
limit?: number;
|
|
212
|
+
/**
|
|
213
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
214
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
215
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
216
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
140
217
|
*/
|
|
141
218
|
pageSize?: number;
|
|
142
219
|
}
|
|
@@ -145,42 +222,506 @@ export interface UserRetrieveFollowersYouKnowParams {
|
|
|
145
222
|
* Pagination cursor for followers-you-know
|
|
146
223
|
*/
|
|
147
224
|
cursor?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
227
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
228
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
229
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
230
|
+
*/
|
|
231
|
+
pageSize?: number;
|
|
148
232
|
}
|
|
149
233
|
export interface UserRetrieveFollowingParams {
|
|
234
|
+
/**
|
|
235
|
+
* Legacy cursor alias. Prefer cursor.
|
|
236
|
+
*/
|
|
237
|
+
after?: string;
|
|
150
238
|
/**
|
|
151
239
|
* Pagination cursor for following list
|
|
152
240
|
*/
|
|
153
241
|
cursor?: string;
|
|
154
242
|
/**
|
|
155
|
-
*
|
|
243
|
+
* Legacy page size alias. Prefer pageSize.
|
|
244
|
+
*/
|
|
245
|
+
limit?: number;
|
|
246
|
+
/**
|
|
247
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
248
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
249
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
250
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
156
251
|
*/
|
|
157
252
|
pageSize?: number;
|
|
158
253
|
}
|
|
159
254
|
export interface UserRetrieveLikesParams {
|
|
255
|
+
/**
|
|
256
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
257
|
+
* or lines.
|
|
258
|
+
*/
|
|
259
|
+
anyWords?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
262
|
+
*/
|
|
263
|
+
cashtags?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Conversation ID filter.
|
|
266
|
+
*/
|
|
267
|
+
conversationId?: string;
|
|
160
268
|
/**
|
|
161
269
|
* Pagination cursor for liked tweets
|
|
162
270
|
*/
|
|
163
271
|
cursor?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Exact phrase to match.
|
|
274
|
+
*/
|
|
275
|
+
exactPhrase?: string;
|
|
276
|
+
/**
|
|
277
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
278
|
+
*/
|
|
279
|
+
excludeWords?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Filter by author username.
|
|
282
|
+
*/
|
|
283
|
+
fromUser?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
286
|
+
*/
|
|
287
|
+
hashtags?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Only replies to this tweet ID.
|
|
290
|
+
*/
|
|
291
|
+
inReplyToTweetId?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Language code filter, e.g. en or tr.
|
|
294
|
+
*/
|
|
295
|
+
language?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Filter by media type.
|
|
298
|
+
*/
|
|
299
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
300
|
+
/**
|
|
301
|
+
* Filter tweets mentioning a username.
|
|
302
|
+
*/
|
|
303
|
+
mentioning?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Minimum likes threshold.
|
|
306
|
+
*/
|
|
307
|
+
minFaves?: number;
|
|
308
|
+
/**
|
|
309
|
+
* Minimum quote count threshold.
|
|
310
|
+
*/
|
|
311
|
+
minQuotes?: number;
|
|
312
|
+
/**
|
|
313
|
+
* Minimum replies threshold.
|
|
314
|
+
*/
|
|
315
|
+
minReplies?: number;
|
|
316
|
+
/**
|
|
317
|
+
* Minimum retweets threshold.
|
|
318
|
+
*/
|
|
319
|
+
minRetweets?: number;
|
|
320
|
+
/**
|
|
321
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
322
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
323
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
324
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
325
|
+
* aliases remain accepted.
|
|
326
|
+
*/
|
|
327
|
+
pageSize?: number;
|
|
328
|
+
/**
|
|
329
|
+
* Quote mode.
|
|
330
|
+
*/
|
|
331
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
332
|
+
/**
|
|
333
|
+
* Only quotes of this tweet ID.
|
|
334
|
+
*/
|
|
335
|
+
quotesOfTweetId?: string;
|
|
336
|
+
/**
|
|
337
|
+
* Reply mode.
|
|
338
|
+
*/
|
|
339
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
340
|
+
/**
|
|
341
|
+
* Retweet mode.
|
|
342
|
+
*/
|
|
343
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
344
|
+
/**
|
|
345
|
+
* Only retweets of this tweet ID.
|
|
346
|
+
*/
|
|
347
|
+
retweetsOfTweetId?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Start date in YYYY-MM-DD format.
|
|
350
|
+
*/
|
|
351
|
+
sinceDate?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Filter replies sent to a username.
|
|
354
|
+
*/
|
|
355
|
+
toUser?: string;
|
|
356
|
+
/**
|
|
357
|
+
* End date in YYYY-MM-DD format.
|
|
358
|
+
*/
|
|
359
|
+
untilDate?: string;
|
|
360
|
+
/**
|
|
361
|
+
* URL substring or domain filter.
|
|
362
|
+
*/
|
|
363
|
+
url?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Only return tweets from verified authors.
|
|
366
|
+
*/
|
|
367
|
+
verifiedOnly?: boolean;
|
|
164
368
|
}
|
|
165
369
|
export interface UserRetrieveMediaParams {
|
|
370
|
+
/**
|
|
371
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
372
|
+
* or lines.
|
|
373
|
+
*/
|
|
374
|
+
anyWords?: string;
|
|
375
|
+
/**
|
|
376
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
377
|
+
*/
|
|
378
|
+
cashtags?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Conversation ID filter.
|
|
381
|
+
*/
|
|
382
|
+
conversationId?: string;
|
|
166
383
|
/**
|
|
167
384
|
* Pagination cursor for media tweets
|
|
168
385
|
*/
|
|
169
386
|
cursor?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Exact phrase to match.
|
|
389
|
+
*/
|
|
390
|
+
exactPhrase?: string;
|
|
391
|
+
/**
|
|
392
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
393
|
+
*/
|
|
394
|
+
excludeWords?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Filter by author username.
|
|
397
|
+
*/
|
|
398
|
+
fromUser?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
401
|
+
*/
|
|
402
|
+
hashtags?: string;
|
|
403
|
+
/**
|
|
404
|
+
* Only replies to this tweet ID.
|
|
405
|
+
*/
|
|
406
|
+
inReplyToTweetId?: string;
|
|
407
|
+
/**
|
|
408
|
+
* Language code filter, e.g. en or tr.
|
|
409
|
+
*/
|
|
410
|
+
language?: string;
|
|
411
|
+
/**
|
|
412
|
+
* Filter by media type.
|
|
413
|
+
*/
|
|
414
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
415
|
+
/**
|
|
416
|
+
* Filter tweets mentioning a username.
|
|
417
|
+
*/
|
|
418
|
+
mentioning?: string;
|
|
419
|
+
/**
|
|
420
|
+
* Minimum likes threshold.
|
|
421
|
+
*/
|
|
422
|
+
minFaves?: number;
|
|
423
|
+
/**
|
|
424
|
+
* Minimum quote count threshold.
|
|
425
|
+
*/
|
|
426
|
+
minQuotes?: number;
|
|
427
|
+
/**
|
|
428
|
+
* Minimum replies threshold.
|
|
429
|
+
*/
|
|
430
|
+
minReplies?: number;
|
|
431
|
+
/**
|
|
432
|
+
* Minimum retweets threshold.
|
|
433
|
+
*/
|
|
434
|
+
minRetweets?: number;
|
|
435
|
+
/**
|
|
436
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
437
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
438
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
439
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
440
|
+
* aliases remain accepted.
|
|
441
|
+
*/
|
|
442
|
+
pageSize?: number;
|
|
443
|
+
/**
|
|
444
|
+
* Quote mode.
|
|
445
|
+
*/
|
|
446
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
447
|
+
/**
|
|
448
|
+
* Only quotes of this tweet ID.
|
|
449
|
+
*/
|
|
450
|
+
quotesOfTweetId?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Reply mode.
|
|
453
|
+
*/
|
|
454
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
455
|
+
/**
|
|
456
|
+
* Retweet mode.
|
|
457
|
+
*/
|
|
458
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
459
|
+
/**
|
|
460
|
+
* Only retweets of this tweet ID.
|
|
461
|
+
*/
|
|
462
|
+
retweetsOfTweetId?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Start date in YYYY-MM-DD format.
|
|
465
|
+
*/
|
|
466
|
+
sinceDate?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Filter replies sent to a username.
|
|
469
|
+
*/
|
|
470
|
+
toUser?: string;
|
|
471
|
+
/**
|
|
472
|
+
* End date in YYYY-MM-DD format.
|
|
473
|
+
*/
|
|
474
|
+
untilDate?: string;
|
|
475
|
+
/**
|
|
476
|
+
* URL substring or domain filter.
|
|
477
|
+
*/
|
|
478
|
+
url?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Only return tweets from verified authors.
|
|
481
|
+
*/
|
|
482
|
+
verifiedOnly?: boolean;
|
|
170
483
|
}
|
|
171
484
|
export interface UserRetrieveMentionsParams {
|
|
485
|
+
/**
|
|
486
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
487
|
+
* or lines.
|
|
488
|
+
*/
|
|
489
|
+
anyWords?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
492
|
+
*/
|
|
493
|
+
cashtags?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Conversation ID filter.
|
|
496
|
+
*/
|
|
497
|
+
conversationId?: string;
|
|
172
498
|
/**
|
|
173
499
|
* Pagination cursor for mentions
|
|
174
500
|
*/
|
|
175
501
|
cursor?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Exact phrase to match.
|
|
504
|
+
*/
|
|
505
|
+
exactPhrase?: string;
|
|
506
|
+
/**
|
|
507
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
508
|
+
*/
|
|
509
|
+
excludeWords?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Filter by author username.
|
|
512
|
+
*/
|
|
513
|
+
fromUser?: string;
|
|
514
|
+
/**
|
|
515
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
516
|
+
*/
|
|
517
|
+
hashtags?: string;
|
|
518
|
+
/**
|
|
519
|
+
* Only replies to this tweet ID.
|
|
520
|
+
*/
|
|
521
|
+
inReplyToTweetId?: string;
|
|
522
|
+
/**
|
|
523
|
+
* Language code filter, e.g. en or tr.
|
|
524
|
+
*/
|
|
525
|
+
language?: string;
|
|
526
|
+
/**
|
|
527
|
+
* Filter by media type.
|
|
528
|
+
*/
|
|
529
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
530
|
+
/**
|
|
531
|
+
* Filter tweets mentioning a username.
|
|
532
|
+
*/
|
|
533
|
+
mentioning?: string;
|
|
534
|
+
/**
|
|
535
|
+
* Minimum likes threshold.
|
|
536
|
+
*/
|
|
537
|
+
minFaves?: number;
|
|
538
|
+
/**
|
|
539
|
+
* Minimum quote count threshold.
|
|
540
|
+
*/
|
|
541
|
+
minQuotes?: number;
|
|
542
|
+
/**
|
|
543
|
+
* Minimum replies threshold.
|
|
544
|
+
*/
|
|
545
|
+
minReplies?: number;
|
|
546
|
+
/**
|
|
547
|
+
* Minimum retweets threshold.
|
|
548
|
+
*/
|
|
549
|
+
minRetweets?: number;
|
|
550
|
+
/**
|
|
551
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
552
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
553
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
554
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
555
|
+
* aliases remain accepted.
|
|
556
|
+
*/
|
|
557
|
+
pageSize?: number;
|
|
558
|
+
/**
|
|
559
|
+
* Quote mode.
|
|
560
|
+
*/
|
|
561
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
562
|
+
/**
|
|
563
|
+
* Only quotes of this tweet ID.
|
|
564
|
+
*/
|
|
565
|
+
quotesOfTweetId?: string;
|
|
566
|
+
/**
|
|
567
|
+
* Reply mode.
|
|
568
|
+
*/
|
|
569
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
570
|
+
/**
|
|
571
|
+
* Retweet mode.
|
|
572
|
+
*/
|
|
573
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
574
|
+
/**
|
|
575
|
+
* Only retweets of this tweet ID.
|
|
576
|
+
*/
|
|
577
|
+
retweetsOfTweetId?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Start date in YYYY-MM-DD format.
|
|
580
|
+
*/
|
|
581
|
+
sinceDate?: string;
|
|
176
582
|
/**
|
|
177
583
|
* Unix timestamp - return mentions after this time
|
|
178
584
|
*/
|
|
179
585
|
sinceTime?: string;
|
|
586
|
+
/**
|
|
587
|
+
* Filter replies sent to a username.
|
|
588
|
+
*/
|
|
589
|
+
toUser?: string;
|
|
590
|
+
/**
|
|
591
|
+
* End date in YYYY-MM-DD format.
|
|
592
|
+
*/
|
|
593
|
+
untilDate?: string;
|
|
180
594
|
/**
|
|
181
595
|
* Unix timestamp - return mentions before this time
|
|
182
596
|
*/
|
|
183
597
|
untilTime?: string;
|
|
598
|
+
/**
|
|
599
|
+
* URL substring or domain filter.
|
|
600
|
+
*/
|
|
601
|
+
url?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Only return tweets from verified authors.
|
|
604
|
+
*/
|
|
605
|
+
verifiedOnly?: boolean;
|
|
606
|
+
}
|
|
607
|
+
export interface UserRetrieveRepliesParams {
|
|
608
|
+
/**
|
|
609
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
610
|
+
* or lines.
|
|
611
|
+
*/
|
|
612
|
+
anyWords?: string;
|
|
613
|
+
/**
|
|
614
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
615
|
+
*/
|
|
616
|
+
cashtags?: string;
|
|
617
|
+
/**
|
|
618
|
+
* Conversation ID filter.
|
|
619
|
+
*/
|
|
620
|
+
conversationId?: string;
|
|
621
|
+
/**
|
|
622
|
+
* Pagination cursor for user replies
|
|
623
|
+
*/
|
|
624
|
+
cursor?: string;
|
|
625
|
+
/**
|
|
626
|
+
* Exact phrase to match.
|
|
627
|
+
*/
|
|
628
|
+
exactPhrase?: string;
|
|
629
|
+
/**
|
|
630
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
631
|
+
*/
|
|
632
|
+
excludeWords?: string;
|
|
633
|
+
/**
|
|
634
|
+
* Filter by author username.
|
|
635
|
+
*/
|
|
636
|
+
fromUser?: string;
|
|
637
|
+
/**
|
|
638
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
639
|
+
*/
|
|
640
|
+
hashtags?: string;
|
|
641
|
+
/**
|
|
642
|
+
* Include parent tweet for replies
|
|
643
|
+
*/
|
|
644
|
+
includeParentTweet?: boolean;
|
|
645
|
+
/**
|
|
646
|
+
* Only replies to this tweet ID.
|
|
647
|
+
*/
|
|
648
|
+
inReplyToTweetId?: string;
|
|
649
|
+
/**
|
|
650
|
+
* Language code filter, e.g. en or tr.
|
|
651
|
+
*/
|
|
652
|
+
language?: string;
|
|
653
|
+
/**
|
|
654
|
+
* Filter by media type.
|
|
655
|
+
*/
|
|
656
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
657
|
+
/**
|
|
658
|
+
* Filter tweets mentioning a username.
|
|
659
|
+
*/
|
|
660
|
+
mentioning?: string;
|
|
661
|
+
/**
|
|
662
|
+
* Minimum likes threshold.
|
|
663
|
+
*/
|
|
664
|
+
minFaves?: number;
|
|
665
|
+
/**
|
|
666
|
+
* Minimum quote count threshold.
|
|
667
|
+
*/
|
|
668
|
+
minQuotes?: number;
|
|
669
|
+
/**
|
|
670
|
+
* Minimum replies threshold.
|
|
671
|
+
*/
|
|
672
|
+
minReplies?: number;
|
|
673
|
+
/**
|
|
674
|
+
* Minimum retweets threshold.
|
|
675
|
+
*/
|
|
676
|
+
minRetweets?: number;
|
|
677
|
+
/**
|
|
678
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
679
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
680
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
681
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
682
|
+
* aliases remain accepted.
|
|
683
|
+
*/
|
|
684
|
+
pageSize?: number;
|
|
685
|
+
/**
|
|
686
|
+
* Quote mode.
|
|
687
|
+
*/
|
|
688
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
689
|
+
/**
|
|
690
|
+
* Only quotes of this tweet ID.
|
|
691
|
+
*/
|
|
692
|
+
quotesOfTweetId?: string;
|
|
693
|
+
/**
|
|
694
|
+
* Reply mode.
|
|
695
|
+
*/
|
|
696
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
697
|
+
/**
|
|
698
|
+
* Retweet mode.
|
|
699
|
+
*/
|
|
700
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
701
|
+
/**
|
|
702
|
+
* Only retweets of this tweet ID.
|
|
703
|
+
*/
|
|
704
|
+
retweetsOfTweetId?: string;
|
|
705
|
+
/**
|
|
706
|
+
* Start date in YYYY-MM-DD format.
|
|
707
|
+
*/
|
|
708
|
+
sinceDate?: string;
|
|
709
|
+
/**
|
|
710
|
+
* Filter replies sent to a username.
|
|
711
|
+
*/
|
|
712
|
+
toUser?: string;
|
|
713
|
+
/**
|
|
714
|
+
* End date in YYYY-MM-DD format.
|
|
715
|
+
*/
|
|
716
|
+
untilDate?: string;
|
|
717
|
+
/**
|
|
718
|
+
* URL substring or domain filter.
|
|
719
|
+
*/
|
|
720
|
+
url?: string;
|
|
721
|
+
/**
|
|
722
|
+
* Only return tweets from verified authors.
|
|
723
|
+
*/
|
|
724
|
+
verifiedOnly?: boolean;
|
|
184
725
|
}
|
|
185
726
|
export interface UserRetrieveSearchParams {
|
|
186
727
|
/**
|
|
@@ -193,10 +734,39 @@ export interface UserRetrieveSearchParams {
|
|
|
193
734
|
cursor?: string;
|
|
194
735
|
}
|
|
195
736
|
export interface UserRetrieveTweetsParams {
|
|
737
|
+
/**
|
|
738
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
739
|
+
* or lines.
|
|
740
|
+
*/
|
|
741
|
+
anyWords?: string;
|
|
742
|
+
/**
|
|
743
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
744
|
+
*/
|
|
745
|
+
cashtags?: string;
|
|
746
|
+
/**
|
|
747
|
+
* Conversation ID filter.
|
|
748
|
+
*/
|
|
749
|
+
conversationId?: string;
|
|
196
750
|
/**
|
|
197
751
|
* Pagination cursor for user tweets
|
|
198
752
|
*/
|
|
199
753
|
cursor?: string;
|
|
754
|
+
/**
|
|
755
|
+
* Exact phrase to match.
|
|
756
|
+
*/
|
|
757
|
+
exactPhrase?: string;
|
|
758
|
+
/**
|
|
759
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
760
|
+
*/
|
|
761
|
+
excludeWords?: string;
|
|
762
|
+
/**
|
|
763
|
+
* Filter by author username.
|
|
764
|
+
*/
|
|
765
|
+
fromUser?: string;
|
|
766
|
+
/**
|
|
767
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
768
|
+
*/
|
|
769
|
+
hashtags?: string;
|
|
200
770
|
/**
|
|
201
771
|
* Include parent tweet for replies
|
|
202
772
|
*/
|
|
@@ -205,15 +775,102 @@ export interface UserRetrieveTweetsParams {
|
|
|
205
775
|
* Include reply tweets
|
|
206
776
|
*/
|
|
207
777
|
includeReplies?: boolean;
|
|
778
|
+
/**
|
|
779
|
+
* Only replies to this tweet ID.
|
|
780
|
+
*/
|
|
781
|
+
inReplyToTweetId?: string;
|
|
782
|
+
/**
|
|
783
|
+
* Language code filter, e.g. en or tr.
|
|
784
|
+
*/
|
|
785
|
+
language?: string;
|
|
786
|
+
/**
|
|
787
|
+
* Filter by media type.
|
|
788
|
+
*/
|
|
789
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
790
|
+
/**
|
|
791
|
+
* Filter tweets mentioning a username.
|
|
792
|
+
*/
|
|
793
|
+
mentioning?: string;
|
|
794
|
+
/**
|
|
795
|
+
* Minimum likes threshold.
|
|
796
|
+
*/
|
|
797
|
+
minFaves?: number;
|
|
798
|
+
/**
|
|
799
|
+
* Minimum quote count threshold.
|
|
800
|
+
*/
|
|
801
|
+
minQuotes?: number;
|
|
802
|
+
/**
|
|
803
|
+
* Minimum replies threshold.
|
|
804
|
+
*/
|
|
805
|
+
minReplies?: number;
|
|
806
|
+
/**
|
|
807
|
+
* Minimum retweets threshold.
|
|
808
|
+
*/
|
|
809
|
+
minRetweets?: number;
|
|
810
|
+
/**
|
|
811
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
812
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
813
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
814
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
815
|
+
* aliases remain accepted.
|
|
816
|
+
*/
|
|
817
|
+
pageSize?: number;
|
|
818
|
+
/**
|
|
819
|
+
* Quote mode.
|
|
820
|
+
*/
|
|
821
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
822
|
+
/**
|
|
823
|
+
* Only quotes of this tweet ID.
|
|
824
|
+
*/
|
|
825
|
+
quotesOfTweetId?: string;
|
|
826
|
+
/**
|
|
827
|
+
* Reply mode.
|
|
828
|
+
*/
|
|
829
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
830
|
+
/**
|
|
831
|
+
* Retweet mode.
|
|
832
|
+
*/
|
|
833
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
834
|
+
/**
|
|
835
|
+
* Only retweets of this tweet ID.
|
|
836
|
+
*/
|
|
837
|
+
retweetsOfTweetId?: string;
|
|
838
|
+
/**
|
|
839
|
+
* Start date in YYYY-MM-DD format.
|
|
840
|
+
*/
|
|
841
|
+
sinceDate?: string;
|
|
842
|
+
/**
|
|
843
|
+
* Filter replies sent to a username.
|
|
844
|
+
*/
|
|
845
|
+
toUser?: string;
|
|
846
|
+
/**
|
|
847
|
+
* End date in YYYY-MM-DD format.
|
|
848
|
+
*/
|
|
849
|
+
untilDate?: string;
|
|
850
|
+
/**
|
|
851
|
+
* URL substring or domain filter.
|
|
852
|
+
*/
|
|
853
|
+
url?: string;
|
|
854
|
+
/**
|
|
855
|
+
* Only return tweets from verified authors.
|
|
856
|
+
*/
|
|
857
|
+
verifiedOnly?: boolean;
|
|
208
858
|
}
|
|
209
859
|
export interface UserRetrieveVerifiedFollowersParams {
|
|
210
860
|
/**
|
|
211
861
|
* Pagination cursor for verified followers
|
|
212
862
|
*/
|
|
213
863
|
cursor?: string;
|
|
864
|
+
/**
|
|
865
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
866
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
867
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
868
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
869
|
+
*/
|
|
870
|
+
pageSize?: number;
|
|
214
871
|
}
|
|
215
872
|
export declare namespace Users {
|
|
216
|
-
export { type UserRetrieveBatchParams as UserRetrieveBatchParams, type UserRetrieveFollowersParams as UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams as UserRetrieveFollowingParams, type UserRetrieveLikesParams as UserRetrieveLikesParams, type UserRetrieveMediaParams as UserRetrieveMediaParams, type UserRetrieveMentionsParams as UserRetrieveMentionsParams, type UserRetrieveSearchParams as UserRetrieveSearchParams, type UserRetrieveTweetsParams as UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams, };
|
|
873
|
+
export { type UserRemoveFollowerResponse as UserRemoveFollowerResponse, type UserRetrieveBatchResponse as UserRetrieveBatchResponse, type UserRemoveFollowerParams as UserRemoveFollowerParams, type UserRetrieveBatchParams as UserRetrieveBatchParams, type UserRetrieveFollowersParams as UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams as UserRetrieveFollowingParams, type UserRetrieveLikesParams as UserRetrieveLikesParams, type UserRetrieveMediaParams as UserRetrieveMediaParams, type UserRetrieveMentionsParams as UserRetrieveMentionsParams, type UserRetrieveRepliesParams as UserRetrieveRepliesParams, type UserRetrieveSearchParams as UserRetrieveSearchParams, type UserRetrieveTweetsParams as UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams, };
|
|
217
874
|
export { Follow as Follow, type FollowCreateResponse as FollowCreateResponse, type FollowDeleteAllResponse as FollowDeleteAllResponse, type FollowCreateParams as FollowCreateParams, type FollowDeleteAllParams as FollowDeleteAllParams, };
|
|
218
875
|
}
|
|
219
876
|
//# sourceMappingURL=users.d.ts.map
|