x-twitter-scraper 0.3.3 → 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 +27 -0
- package/README.md +19 -2
- 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 +26 -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
package/resources/shared.d.mts
CHANGED
|
@@ -1,15 +1,100 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
3
|
+
* partnership content or AI-generated media.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContentDisclosure {
|
|
6
|
+
advertising?: ContentDisclosure.Advertising;
|
|
7
|
+
aiGenerated?: ContentDisclosure.AIGenerated;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace ContentDisclosure {
|
|
10
|
+
interface Advertising {
|
|
11
|
+
/**
|
|
12
|
+
* True when X labels the tweet as paid promotion content.
|
|
13
|
+
*/
|
|
14
|
+
isPaidPromotion?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface AIGenerated {
|
|
17
|
+
/**
|
|
18
|
+
* Whether the disclosure can be edited on X.
|
|
19
|
+
*/
|
|
20
|
+
canEdit?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Source of the AI-generated media disclosure.
|
|
23
|
+
*/
|
|
24
|
+
detectionSource?: string;
|
|
25
|
+
/**
|
|
26
|
+
* True when X labels the tweet as containing AI-generated media.
|
|
27
|
+
*/
|
|
28
|
+
hasAiGeneratedMedia?: boolean;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
33
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
34
|
+
* media, and conversation fields appear when available.
|
|
35
|
+
*/
|
|
36
|
+
export interface EmbeddedTweet {
|
|
37
|
+
id: string;
|
|
38
|
+
bookmarkCount: number;
|
|
39
|
+
likeCount: number;
|
|
40
|
+
quoteCount: number;
|
|
41
|
+
replyCount: number;
|
|
42
|
+
retweetCount: number;
|
|
43
|
+
text: string;
|
|
44
|
+
viewCount: number;
|
|
45
|
+
/**
|
|
46
|
+
* X user profile with bio, follower counts, and verification status.
|
|
47
|
+
*/
|
|
48
|
+
author?: UserProfile;
|
|
49
|
+
/**
|
|
50
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
51
|
+
* partnership content or AI-generated media.
|
|
52
|
+
*/
|
|
53
|
+
contentDisclosure?: ContentDisclosure;
|
|
54
|
+
conversationId?: string;
|
|
55
|
+
createdAt?: string;
|
|
56
|
+
displayTextRange?: Array<number>;
|
|
57
|
+
entities?: {
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
inReplyToId?: string;
|
|
61
|
+
inReplyToUserId?: string;
|
|
62
|
+
inReplyToUsername?: string;
|
|
63
|
+
isLimitedReply?: boolean;
|
|
64
|
+
isNoteTweet?: boolean;
|
|
65
|
+
isQuoteStatus?: boolean;
|
|
66
|
+
isReply?: boolean;
|
|
67
|
+
lang?: string;
|
|
68
|
+
media?: Array<TweetMedia>;
|
|
69
|
+
source?: string;
|
|
70
|
+
type?: string;
|
|
71
|
+
url?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Error response. Default v1 returns a legacy string error code. Send
|
|
75
|
+
* `xquik-api-contract: 2026-04-29` to receive the structured best-practice error
|
|
76
|
+
* object.
|
|
3
77
|
*/
|
|
4
78
|
export interface Error {
|
|
5
|
-
error: 'internal_error' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_username' | 'insufficient_credits' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | '
|
|
79
|
+
error: 'internal_error' | 'account_already_connected' | 'account_needs_reauth' | 'account_not_found' | 'account_required' | 'account_restricted' | 'api_key_limit_reached' | 'article_not_found' | 'dm_not_permitted' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_user_id' | 'invalid_user_ids' | 'invalid_username' | 'invalid_json' | 'insufficient_credits' | 'login_cooldown' | 'login_failed' | 'media_download_failed' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | 'no_media' | 'no_credits' | 'no_subscription' | 'not_found' | 'payment_failed' | 'rate_limit_exceeded' | 'service_unavailable' | 'style_not_found' | 'subscription_inactive' | 'tweet_not_found' | 'unauthenticated' | 'unsupported_field' | 'user_not_found' | 'x_account_feature_required' | 'x_account_protected' | 'x_account_suspended' | 'x_api_rate_limited' | 'x_api_unavailable' | 'x_api_unauthorized' | 'x_auth_failure' | 'x_content_too_long' | 'x_daily_limit' | 'x_dm_not_allowed' | 'x_duplicate_action' | 'x_login_auth_failed' | 'x_login_challenge' | 'x_login_denied' | 'x_login_failed' | 'x_login_proxy_error' | 'x_login_rate_limited' | 'x_login_service_unavailable' | 'x_login_suspended' | 'x_rate_limited' | 'x_rejected' | 'x_target_not_found' | 'x_transient_error' | 'x_user_lookup_failed' | 'x_write_ambiguous' | 'x_write_failed' | 'x_write_unconfirmed' | Error.StructuredError;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace Error {
|
|
82
|
+
interface StructuredError {
|
|
83
|
+
code: 'internal_error' | 'account_already_connected' | 'account_needs_reauth' | 'account_not_found' | 'account_required' | 'account_restricted' | 'api_key_limit_reached' | 'article_not_found' | 'dm_not_permitted' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_user_id' | 'invalid_user_ids' | 'invalid_username' | 'invalid_json' | 'insufficient_credits' | 'login_cooldown' | 'login_failed' | 'media_download_failed' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | 'no_media' | 'no_credits' | 'no_subscription' | 'not_found' | 'payment_failed' | 'rate_limit_exceeded' | 'service_unavailable' | 'style_not_found' | 'subscription_inactive' | 'tweet_not_found' | 'unauthenticated' | 'unsupported_field' | 'user_not_found' | 'x_account_feature_required' | 'x_account_protected' | 'x_account_suspended' | 'x_api_rate_limited' | 'x_api_unavailable' | 'x_api_unauthorized' | 'x_auth_failure' | 'x_content_too_long' | 'x_daily_limit' | 'x_dm_not_allowed' | 'x_duplicate_action' | 'x_login_auth_failed' | 'x_login_challenge' | 'x_login_denied' | 'x_login_failed' | 'x_login_proxy_error' | 'x_login_rate_limited' | 'x_login_service_unavailable' | 'x_login_suspended' | 'x_rate_limited' | 'x_rejected' | 'x_target_not_found' | 'x_transient_error' | 'x_user_lookup_failed' | 'x_write_ambiguous' | 'x_write_failed' | 'x_write_unconfirmed';
|
|
84
|
+
message: string;
|
|
85
|
+
type: 'api_error' | 'authentication_error' | 'billing_error' | 'dependency_error' | 'invalid_request_error' | 'permission_error' | 'rate_limit_error';
|
|
86
|
+
}
|
|
6
87
|
}
|
|
7
88
|
/**
|
|
8
89
|
* Type of monitor event fired when account activity occurs.
|
|
9
90
|
*/
|
|
10
|
-
export type EventType = 'tweet.new' | 'tweet.reply' | 'tweet.retweet' | 'tweet.quote';
|
|
91
|
+
export type EventType = 'tweet.new' | 'tweet.reply' | 'tweet.retweet' | 'tweet.quote' | 'tweet.media' | 'tweet.link' | 'tweet.poll' | 'tweet.mention' | 'tweet.hashtag' | 'tweet.longform' | 'profile.avatar.changed' | 'profile.banner.changed' | 'profile.name.changed' | 'profile.username.changed' | 'profile.bio.changed' | 'profile.location.changed' | 'profile.url.changed' | 'profile.verified.changed' | 'profile.protected.changed' | 'profile.pinned_tweet.changed' | 'profile.unavailable.changed';
|
|
11
92
|
/**
|
|
12
|
-
* Paginated
|
|
93
|
+
* Paginated tweet results. The item count can be lower than pageSize when the
|
|
94
|
+
* source returns fewer tweets, filters remove tweets, or the available usage balance covers
|
|
95
|
+
* fewer results. Follow next_cursor while has_next_page is true. An empty page can
|
|
96
|
+
* still have has_next_page true after filtering. Zero affordable results returns
|
|
97
|
+
* 402 insufficient_credits.
|
|
13
98
|
*/
|
|
14
99
|
export interface PaginatedTweets {
|
|
15
100
|
has_next_page: boolean;
|
|
@@ -17,7 +102,11 @@ export interface PaginatedTweets {
|
|
|
17
102
|
tweets: Array<SearchTweet>;
|
|
18
103
|
}
|
|
19
104
|
/**
|
|
20
|
-
* Paginated
|
|
105
|
+
* Paginated user profiles. The item count can be lower than pageSize when the
|
|
106
|
+
* source returns fewer profiles or the available usage balance covers fewer results. Follow
|
|
107
|
+
* next_cursor while has_next_page is true. A relationship can naturally contain
|
|
108
|
+
* fewer profiles than requested. Zero affordable results returns 402
|
|
109
|
+
* insufficient_credits.
|
|
21
110
|
*/
|
|
22
111
|
export interface PaginatedUsers {
|
|
23
112
|
has_next_page: boolean;
|
|
@@ -25,30 +114,124 @@ export interface PaginatedUsers {
|
|
|
25
114
|
users: Array<UserProfile>;
|
|
26
115
|
}
|
|
27
116
|
/**
|
|
28
|
-
* Tweet returned from search results with inline author info.
|
|
117
|
+
* Tweet returned from search results with inline author info. A zero metric can
|
|
118
|
+
* mean X did not report the count.
|
|
29
119
|
*/
|
|
30
120
|
export interface SearchTweet {
|
|
31
121
|
id: string;
|
|
122
|
+
bookmarkCount: number;
|
|
123
|
+
likeCount: number;
|
|
124
|
+
quoteCount: number;
|
|
125
|
+
replyCount: number;
|
|
126
|
+
retweetCount: number;
|
|
32
127
|
text: string;
|
|
33
|
-
|
|
34
|
-
|
|
128
|
+
viewCount: number;
|
|
129
|
+
/**
|
|
130
|
+
* X user profile with bio, follower counts, and verification status.
|
|
131
|
+
*/
|
|
132
|
+
author?: UserProfile;
|
|
133
|
+
/**
|
|
134
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
135
|
+
* partnership content or AI-generated media.
|
|
136
|
+
*/
|
|
137
|
+
contentDisclosure?: ContentDisclosure;
|
|
138
|
+
/**
|
|
139
|
+
* Root tweet ID for the search result conversation
|
|
140
|
+
*/
|
|
141
|
+
conversationId?: string;
|
|
35
142
|
createdAt?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Start and end offsets for rendered tweet text
|
|
145
|
+
*/
|
|
146
|
+
displayTextRange?: Array<number>;
|
|
147
|
+
/**
|
|
148
|
+
* Parsed search-result entities including URLs, mentions, hashtags, and media
|
|
149
|
+
* markers
|
|
150
|
+
*/
|
|
151
|
+
entities?: {
|
|
152
|
+
[key: string]: unknown;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Tweet ID being replied to
|
|
156
|
+
*/
|
|
157
|
+
inReplyToId?: string;
|
|
158
|
+
/**
|
|
159
|
+
* User ID being replied to
|
|
160
|
+
*/
|
|
161
|
+
inReplyToUserId?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Username being replied to
|
|
164
|
+
*/
|
|
165
|
+
inReplyToUsername?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Whether the tweet has limited reply permissions
|
|
168
|
+
*/
|
|
169
|
+
isLimitedReply?: boolean;
|
|
36
170
|
/**
|
|
37
171
|
* True for Note Tweets (long-form content, up to 25,000 characters)
|
|
38
172
|
*/
|
|
39
173
|
isNoteTweet?: boolean;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
174
|
+
/**
|
|
175
|
+
* True when this search result quotes another tweet
|
|
176
|
+
*/
|
|
177
|
+
isQuoteStatus?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* True when this search result is a reply
|
|
180
|
+
*/
|
|
181
|
+
isReply?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Tweet language code
|
|
184
|
+
*/
|
|
185
|
+
lang?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Search-result media attachments, omitted when no media is present
|
|
188
|
+
*/
|
|
189
|
+
media?: Array<TweetMedia>;
|
|
190
|
+
/**
|
|
191
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
192
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
193
|
+
* media, and conversation fields appear when available.
|
|
194
|
+
*/
|
|
195
|
+
quoted_tweet?: EmbeddedTweet;
|
|
196
|
+
/**
|
|
197
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
198
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
199
|
+
* media, and conversation fields appear when available.
|
|
200
|
+
*/
|
|
201
|
+
retweeted_tweet?: EmbeddedTweet;
|
|
202
|
+
/**
|
|
203
|
+
* Client application used to post the tweet
|
|
204
|
+
*/
|
|
205
|
+
source?: string;
|
|
206
|
+
type?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Tweet permalink URL
|
|
209
|
+
*/
|
|
210
|
+
url?: string;
|
|
45
211
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
212
|
+
/**
|
|
213
|
+
* Normalized media attached to a tweet.
|
|
214
|
+
*/
|
|
215
|
+
export interface TweetMedia {
|
|
216
|
+
/**
|
|
217
|
+
* Media preview URL
|
|
218
|
+
*/
|
|
219
|
+
mediaUrl: string;
|
|
220
|
+
type: 'photo' | 'video' | 'animated_gif';
|
|
221
|
+
/**
|
|
222
|
+
* X media link from the tweet
|
|
223
|
+
*/
|
|
224
|
+
url: string;
|
|
225
|
+
/**
|
|
226
|
+
* Available video encodings, ordered as returned
|
|
227
|
+
*/
|
|
228
|
+
videoVariants?: Array<TweetMedia.VideoVariant>;
|
|
229
|
+
}
|
|
230
|
+
export declare namespace TweetMedia {
|
|
231
|
+
interface VideoVariant {
|
|
232
|
+
contentType: string;
|
|
233
|
+
url: string;
|
|
234
|
+
bitrate?: number;
|
|
52
235
|
}
|
|
53
236
|
}
|
|
54
237
|
/**
|
|
@@ -58,13 +241,62 @@ export interface UserProfile {
|
|
|
58
241
|
id: string;
|
|
59
242
|
name: string;
|
|
60
243
|
username: string;
|
|
244
|
+
automatedBy?: string;
|
|
245
|
+
canDm?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Community role when returned by community member reads
|
|
248
|
+
*/
|
|
249
|
+
communityRole?: string;
|
|
250
|
+
coverPicture?: string;
|
|
61
251
|
createdAt?: string;
|
|
62
252
|
description?: string;
|
|
253
|
+
favouritesCount?: number;
|
|
63
254
|
followers?: number;
|
|
64
255
|
following?: number;
|
|
256
|
+
hasCustomTimelines?: boolean;
|
|
257
|
+
isAutomated?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Whether X shows a blue verification badge
|
|
260
|
+
*/
|
|
261
|
+
isBlueVerified?: boolean;
|
|
262
|
+
isTranslator?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Whether X marks the profile as verified
|
|
265
|
+
*/
|
|
266
|
+
isVerified?: boolean;
|
|
65
267
|
location?: string;
|
|
268
|
+
mediaCount?: number;
|
|
269
|
+
pinnedTweetIds?: Array<string>;
|
|
270
|
+
possiblySensitive?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* Structured profile bio with entity annotations
|
|
273
|
+
*/
|
|
274
|
+
profile_bio?: {
|
|
275
|
+
[key: string]: unknown;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Original X profile banner field when available
|
|
279
|
+
*/
|
|
280
|
+
profileBannerUrl?: string;
|
|
66
281
|
profilePicture?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Whether the profile protects its posts
|
|
284
|
+
*/
|
|
285
|
+
protected?: boolean;
|
|
67
286
|
statusesCount?: number;
|
|
287
|
+
unavailable?: boolean;
|
|
288
|
+
unavailableReason?: string;
|
|
289
|
+
url?: string;
|
|
68
290
|
verified?: boolean;
|
|
291
|
+
verifiedType?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Whether this profile follows the authenticated viewer
|
|
294
|
+
*/
|
|
295
|
+
viewerFollowedBy?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Whether the authenticated viewer follows this profile
|
|
298
|
+
*/
|
|
299
|
+
viewerFollowing?: boolean;
|
|
300
|
+
withheldInCountries?: Array<string>;
|
|
69
301
|
}
|
|
70
302
|
//# sourceMappingURL=shared.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;
|
|
1
|
+
{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC;IAE5C,WAAW,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC;CAC7C;AA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AC,CAAC;CACrC"}
|
package/resources/shared.d.ts
CHANGED
|
@@ -1,15 +1,100 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
3
|
+
* partnership content or AI-generated media.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContentDisclosure {
|
|
6
|
+
advertising?: ContentDisclosure.Advertising;
|
|
7
|
+
aiGenerated?: ContentDisclosure.AIGenerated;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace ContentDisclosure {
|
|
10
|
+
interface Advertising {
|
|
11
|
+
/**
|
|
12
|
+
* True when X labels the tweet as paid promotion content.
|
|
13
|
+
*/
|
|
14
|
+
isPaidPromotion?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface AIGenerated {
|
|
17
|
+
/**
|
|
18
|
+
* Whether the disclosure can be edited on X.
|
|
19
|
+
*/
|
|
20
|
+
canEdit?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Source of the AI-generated media disclosure.
|
|
23
|
+
*/
|
|
24
|
+
detectionSource?: string;
|
|
25
|
+
/**
|
|
26
|
+
* True when X labels the tweet as containing AI-generated media.
|
|
27
|
+
*/
|
|
28
|
+
hasAiGeneratedMedia?: boolean;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
33
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
34
|
+
* media, and conversation fields appear when available.
|
|
35
|
+
*/
|
|
36
|
+
export interface EmbeddedTweet {
|
|
37
|
+
id: string;
|
|
38
|
+
bookmarkCount: number;
|
|
39
|
+
likeCount: number;
|
|
40
|
+
quoteCount: number;
|
|
41
|
+
replyCount: number;
|
|
42
|
+
retweetCount: number;
|
|
43
|
+
text: string;
|
|
44
|
+
viewCount: number;
|
|
45
|
+
/**
|
|
46
|
+
* X user profile with bio, follower counts, and verification status.
|
|
47
|
+
*/
|
|
48
|
+
author?: UserProfile;
|
|
49
|
+
/**
|
|
50
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
51
|
+
* partnership content or AI-generated media.
|
|
52
|
+
*/
|
|
53
|
+
contentDisclosure?: ContentDisclosure;
|
|
54
|
+
conversationId?: string;
|
|
55
|
+
createdAt?: string;
|
|
56
|
+
displayTextRange?: Array<number>;
|
|
57
|
+
entities?: {
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
inReplyToId?: string;
|
|
61
|
+
inReplyToUserId?: string;
|
|
62
|
+
inReplyToUsername?: string;
|
|
63
|
+
isLimitedReply?: boolean;
|
|
64
|
+
isNoteTweet?: boolean;
|
|
65
|
+
isQuoteStatus?: boolean;
|
|
66
|
+
isReply?: boolean;
|
|
67
|
+
lang?: string;
|
|
68
|
+
media?: Array<TweetMedia>;
|
|
69
|
+
source?: string;
|
|
70
|
+
type?: string;
|
|
71
|
+
url?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Error response. Default v1 returns a legacy string error code. Send
|
|
75
|
+
* `xquik-api-contract: 2026-04-29` to receive the structured best-practice error
|
|
76
|
+
* object.
|
|
3
77
|
*/
|
|
4
78
|
export interface Error {
|
|
5
|
-
error: 'internal_error' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_username' | 'insufficient_credits' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | '
|
|
79
|
+
error: 'internal_error' | 'account_already_connected' | 'account_needs_reauth' | 'account_not_found' | 'account_required' | 'account_restricted' | 'api_key_limit_reached' | 'article_not_found' | 'dm_not_permitted' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_user_id' | 'invalid_user_ids' | 'invalid_username' | 'invalid_json' | 'insufficient_credits' | 'login_cooldown' | 'login_failed' | 'media_download_failed' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | 'no_media' | 'no_credits' | 'no_subscription' | 'not_found' | 'payment_failed' | 'rate_limit_exceeded' | 'service_unavailable' | 'style_not_found' | 'subscription_inactive' | 'tweet_not_found' | 'unauthenticated' | 'unsupported_field' | 'user_not_found' | 'x_account_feature_required' | 'x_account_protected' | 'x_account_suspended' | 'x_api_rate_limited' | 'x_api_unavailable' | 'x_api_unauthorized' | 'x_auth_failure' | 'x_content_too_long' | 'x_daily_limit' | 'x_dm_not_allowed' | 'x_duplicate_action' | 'x_login_auth_failed' | 'x_login_challenge' | 'x_login_denied' | 'x_login_failed' | 'x_login_proxy_error' | 'x_login_rate_limited' | 'x_login_service_unavailable' | 'x_login_suspended' | 'x_rate_limited' | 'x_rejected' | 'x_target_not_found' | 'x_transient_error' | 'x_user_lookup_failed' | 'x_write_ambiguous' | 'x_write_failed' | 'x_write_unconfirmed' | Error.StructuredError;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace Error {
|
|
82
|
+
interface StructuredError {
|
|
83
|
+
code: 'internal_error' | 'account_already_connected' | 'account_needs_reauth' | 'account_not_found' | 'account_required' | 'account_restricted' | 'api_key_limit_reached' | 'article_not_found' | 'dm_not_permitted' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_user_id' | 'invalid_user_ids' | 'invalid_username' | 'invalid_json' | 'insufficient_credits' | 'login_cooldown' | 'login_failed' | 'media_download_failed' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | 'no_media' | 'no_credits' | 'no_subscription' | 'not_found' | 'payment_failed' | 'rate_limit_exceeded' | 'service_unavailable' | 'style_not_found' | 'subscription_inactive' | 'tweet_not_found' | 'unauthenticated' | 'unsupported_field' | 'user_not_found' | 'x_account_feature_required' | 'x_account_protected' | 'x_account_suspended' | 'x_api_rate_limited' | 'x_api_unavailable' | 'x_api_unauthorized' | 'x_auth_failure' | 'x_content_too_long' | 'x_daily_limit' | 'x_dm_not_allowed' | 'x_duplicate_action' | 'x_login_auth_failed' | 'x_login_challenge' | 'x_login_denied' | 'x_login_failed' | 'x_login_proxy_error' | 'x_login_rate_limited' | 'x_login_service_unavailable' | 'x_login_suspended' | 'x_rate_limited' | 'x_rejected' | 'x_target_not_found' | 'x_transient_error' | 'x_user_lookup_failed' | 'x_write_ambiguous' | 'x_write_failed' | 'x_write_unconfirmed';
|
|
84
|
+
message: string;
|
|
85
|
+
type: 'api_error' | 'authentication_error' | 'billing_error' | 'dependency_error' | 'invalid_request_error' | 'permission_error' | 'rate_limit_error';
|
|
86
|
+
}
|
|
6
87
|
}
|
|
7
88
|
/**
|
|
8
89
|
* Type of monitor event fired when account activity occurs.
|
|
9
90
|
*/
|
|
10
|
-
export type EventType = 'tweet.new' | 'tweet.reply' | 'tweet.retweet' | 'tweet.quote';
|
|
91
|
+
export type EventType = 'tweet.new' | 'tweet.reply' | 'tweet.retweet' | 'tweet.quote' | 'tweet.media' | 'tweet.link' | 'tweet.poll' | 'tweet.mention' | 'tweet.hashtag' | 'tweet.longform' | 'profile.avatar.changed' | 'profile.banner.changed' | 'profile.name.changed' | 'profile.username.changed' | 'profile.bio.changed' | 'profile.location.changed' | 'profile.url.changed' | 'profile.verified.changed' | 'profile.protected.changed' | 'profile.pinned_tweet.changed' | 'profile.unavailable.changed';
|
|
11
92
|
/**
|
|
12
|
-
* Paginated
|
|
93
|
+
* Paginated tweet results. The item count can be lower than pageSize when the
|
|
94
|
+
* source returns fewer tweets, filters remove tweets, or the available usage balance covers
|
|
95
|
+
* fewer results. Follow next_cursor while has_next_page is true. An empty page can
|
|
96
|
+
* still have has_next_page true after filtering. Zero affordable results returns
|
|
97
|
+
* 402 insufficient_credits.
|
|
13
98
|
*/
|
|
14
99
|
export interface PaginatedTweets {
|
|
15
100
|
has_next_page: boolean;
|
|
@@ -17,7 +102,11 @@ export interface PaginatedTweets {
|
|
|
17
102
|
tweets: Array<SearchTweet>;
|
|
18
103
|
}
|
|
19
104
|
/**
|
|
20
|
-
* Paginated
|
|
105
|
+
* Paginated user profiles. The item count can be lower than pageSize when the
|
|
106
|
+
* source returns fewer profiles or the available usage balance covers fewer results. Follow
|
|
107
|
+
* next_cursor while has_next_page is true. A relationship can naturally contain
|
|
108
|
+
* fewer profiles than requested. Zero affordable results returns 402
|
|
109
|
+
* insufficient_credits.
|
|
21
110
|
*/
|
|
22
111
|
export interface PaginatedUsers {
|
|
23
112
|
has_next_page: boolean;
|
|
@@ -25,30 +114,124 @@ export interface PaginatedUsers {
|
|
|
25
114
|
users: Array<UserProfile>;
|
|
26
115
|
}
|
|
27
116
|
/**
|
|
28
|
-
* Tweet returned from search results with inline author info.
|
|
117
|
+
* Tweet returned from search results with inline author info. A zero metric can
|
|
118
|
+
* mean X did not report the count.
|
|
29
119
|
*/
|
|
30
120
|
export interface SearchTweet {
|
|
31
121
|
id: string;
|
|
122
|
+
bookmarkCount: number;
|
|
123
|
+
likeCount: number;
|
|
124
|
+
quoteCount: number;
|
|
125
|
+
replyCount: number;
|
|
126
|
+
retweetCount: number;
|
|
32
127
|
text: string;
|
|
33
|
-
|
|
34
|
-
|
|
128
|
+
viewCount: number;
|
|
129
|
+
/**
|
|
130
|
+
* X user profile with bio, follower counts, and verification status.
|
|
131
|
+
*/
|
|
132
|
+
author?: UserProfile;
|
|
133
|
+
/**
|
|
134
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
135
|
+
* partnership content or AI-generated media.
|
|
136
|
+
*/
|
|
137
|
+
contentDisclosure?: ContentDisclosure;
|
|
138
|
+
/**
|
|
139
|
+
* Root tweet ID for the search result conversation
|
|
140
|
+
*/
|
|
141
|
+
conversationId?: string;
|
|
35
142
|
createdAt?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Start and end offsets for rendered tweet text
|
|
145
|
+
*/
|
|
146
|
+
displayTextRange?: Array<number>;
|
|
147
|
+
/**
|
|
148
|
+
* Parsed search-result entities including URLs, mentions, hashtags, and media
|
|
149
|
+
* markers
|
|
150
|
+
*/
|
|
151
|
+
entities?: {
|
|
152
|
+
[key: string]: unknown;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Tweet ID being replied to
|
|
156
|
+
*/
|
|
157
|
+
inReplyToId?: string;
|
|
158
|
+
/**
|
|
159
|
+
* User ID being replied to
|
|
160
|
+
*/
|
|
161
|
+
inReplyToUserId?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Username being replied to
|
|
164
|
+
*/
|
|
165
|
+
inReplyToUsername?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Whether the tweet has limited reply permissions
|
|
168
|
+
*/
|
|
169
|
+
isLimitedReply?: boolean;
|
|
36
170
|
/**
|
|
37
171
|
* True for Note Tweets (long-form content, up to 25,000 characters)
|
|
38
172
|
*/
|
|
39
173
|
isNoteTweet?: boolean;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
174
|
+
/**
|
|
175
|
+
* True when this search result quotes another tweet
|
|
176
|
+
*/
|
|
177
|
+
isQuoteStatus?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* True when this search result is a reply
|
|
180
|
+
*/
|
|
181
|
+
isReply?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Tweet language code
|
|
184
|
+
*/
|
|
185
|
+
lang?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Search-result media attachments, omitted when no media is present
|
|
188
|
+
*/
|
|
189
|
+
media?: Array<TweetMedia>;
|
|
190
|
+
/**
|
|
191
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
192
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
193
|
+
* media, and conversation fields appear when available.
|
|
194
|
+
*/
|
|
195
|
+
quoted_tweet?: EmbeddedTweet;
|
|
196
|
+
/**
|
|
197
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
198
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
199
|
+
* media, and conversation fields appear when available.
|
|
200
|
+
*/
|
|
201
|
+
retweeted_tweet?: EmbeddedTweet;
|
|
202
|
+
/**
|
|
203
|
+
* Client application used to post the tweet
|
|
204
|
+
*/
|
|
205
|
+
source?: string;
|
|
206
|
+
type?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Tweet permalink URL
|
|
209
|
+
*/
|
|
210
|
+
url?: string;
|
|
45
211
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
212
|
+
/**
|
|
213
|
+
* Normalized media attached to a tweet.
|
|
214
|
+
*/
|
|
215
|
+
export interface TweetMedia {
|
|
216
|
+
/**
|
|
217
|
+
* Media preview URL
|
|
218
|
+
*/
|
|
219
|
+
mediaUrl: string;
|
|
220
|
+
type: 'photo' | 'video' | 'animated_gif';
|
|
221
|
+
/**
|
|
222
|
+
* X media link from the tweet
|
|
223
|
+
*/
|
|
224
|
+
url: string;
|
|
225
|
+
/**
|
|
226
|
+
* Available video encodings, ordered as returned
|
|
227
|
+
*/
|
|
228
|
+
videoVariants?: Array<TweetMedia.VideoVariant>;
|
|
229
|
+
}
|
|
230
|
+
export declare namespace TweetMedia {
|
|
231
|
+
interface VideoVariant {
|
|
232
|
+
contentType: string;
|
|
233
|
+
url: string;
|
|
234
|
+
bitrate?: number;
|
|
52
235
|
}
|
|
53
236
|
}
|
|
54
237
|
/**
|
|
@@ -58,13 +241,62 @@ export interface UserProfile {
|
|
|
58
241
|
id: string;
|
|
59
242
|
name: string;
|
|
60
243
|
username: string;
|
|
244
|
+
automatedBy?: string;
|
|
245
|
+
canDm?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Community role when returned by community member reads
|
|
248
|
+
*/
|
|
249
|
+
communityRole?: string;
|
|
250
|
+
coverPicture?: string;
|
|
61
251
|
createdAt?: string;
|
|
62
252
|
description?: string;
|
|
253
|
+
favouritesCount?: number;
|
|
63
254
|
followers?: number;
|
|
64
255
|
following?: number;
|
|
256
|
+
hasCustomTimelines?: boolean;
|
|
257
|
+
isAutomated?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Whether X shows a blue verification badge
|
|
260
|
+
*/
|
|
261
|
+
isBlueVerified?: boolean;
|
|
262
|
+
isTranslator?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Whether X marks the profile as verified
|
|
265
|
+
*/
|
|
266
|
+
isVerified?: boolean;
|
|
65
267
|
location?: string;
|
|
268
|
+
mediaCount?: number;
|
|
269
|
+
pinnedTweetIds?: Array<string>;
|
|
270
|
+
possiblySensitive?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* Structured profile bio with entity annotations
|
|
273
|
+
*/
|
|
274
|
+
profile_bio?: {
|
|
275
|
+
[key: string]: unknown;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Original X profile banner field when available
|
|
279
|
+
*/
|
|
280
|
+
profileBannerUrl?: string;
|
|
66
281
|
profilePicture?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Whether the profile protects its posts
|
|
284
|
+
*/
|
|
285
|
+
protected?: boolean;
|
|
67
286
|
statusesCount?: number;
|
|
287
|
+
unavailable?: boolean;
|
|
288
|
+
unavailableReason?: string;
|
|
289
|
+
url?: string;
|
|
68
290
|
verified?: boolean;
|
|
291
|
+
verifiedType?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Whether this profile follows the authenticated viewer
|
|
294
|
+
*/
|
|
295
|
+
viewerFollowedBy?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Whether the authenticated viewer follows this profile
|
|
298
|
+
*/
|
|
299
|
+
viewerFollowing?: boolean;
|
|
300
|
+
withheldInCountries?: Array<string>;
|
|
69
301
|
}
|
|
70
302
|
//# sourceMappingURL=shared.d.ts.map
|