x-twitter-scraper 0.3.3 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +34 -6
- 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 +15 -18
- 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/src/resources/shared.ts
CHANGED
|
@@ -1,11 +1,123 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
5
|
+
* partnership content or AI-generated media.
|
|
6
|
+
*/
|
|
7
|
+
export interface ContentDisclosure {
|
|
8
|
+
advertising?: ContentDisclosure.Advertising;
|
|
9
|
+
|
|
10
|
+
aiGenerated?: ContentDisclosure.AIGenerated;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export namespace ContentDisclosure {
|
|
14
|
+
export interface Advertising {
|
|
15
|
+
/**
|
|
16
|
+
* True when X labels the tweet as paid promotion content.
|
|
17
|
+
*/
|
|
18
|
+
isPaidPromotion?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AIGenerated {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the disclosure can be edited on X.
|
|
24
|
+
*/
|
|
25
|
+
canEdit?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Source of the AI-generated media disclosure.
|
|
29
|
+
*/
|
|
30
|
+
detectionSource?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* True when X labels the tweet as containing AI-generated media.
|
|
34
|
+
*/
|
|
35
|
+
hasAiGeneratedMedia?: boolean;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
41
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
42
|
+
* media, and conversation fields appear when available.
|
|
43
|
+
*/
|
|
44
|
+
export interface EmbeddedTweet {
|
|
45
|
+
id: string;
|
|
46
|
+
|
|
47
|
+
bookmarkCount: number;
|
|
48
|
+
|
|
49
|
+
likeCount: number;
|
|
50
|
+
|
|
51
|
+
quoteCount: number;
|
|
52
|
+
|
|
53
|
+
replyCount: number;
|
|
54
|
+
|
|
55
|
+
retweetCount: number;
|
|
56
|
+
|
|
57
|
+
text: string;
|
|
58
|
+
|
|
59
|
+
viewCount: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* X user profile with bio, follower counts, and verification status.
|
|
63
|
+
*/
|
|
64
|
+
author?: UserProfile;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
68
|
+
* partnership content or AI-generated media.
|
|
69
|
+
*/
|
|
70
|
+
contentDisclosure?: ContentDisclosure;
|
|
71
|
+
|
|
72
|
+
conversationId?: string;
|
|
73
|
+
|
|
74
|
+
createdAt?: string;
|
|
75
|
+
|
|
76
|
+
displayTextRange?: Array<number>;
|
|
77
|
+
|
|
78
|
+
entities?: { [key: string]: unknown };
|
|
79
|
+
|
|
80
|
+
inReplyToId?: string;
|
|
81
|
+
|
|
82
|
+
inReplyToUserId?: string;
|
|
83
|
+
|
|
84
|
+
inReplyToUsername?: string;
|
|
85
|
+
|
|
86
|
+
isLimitedReply?: boolean;
|
|
87
|
+
|
|
88
|
+
isNoteTweet?: boolean;
|
|
89
|
+
|
|
90
|
+
isQuoteStatus?: boolean;
|
|
91
|
+
|
|
92
|
+
isReply?: boolean;
|
|
93
|
+
|
|
94
|
+
lang?: string;
|
|
95
|
+
|
|
96
|
+
media?: Array<TweetMedia>;
|
|
97
|
+
|
|
98
|
+
source?: string;
|
|
99
|
+
|
|
100
|
+
type?: string;
|
|
101
|
+
|
|
102
|
+
url?: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Error response. Default v1 returns a legacy string error code. Send
|
|
107
|
+
* `xquik-api-contract: 2026-04-29` to receive the structured best-practice error
|
|
108
|
+
* object.
|
|
5
109
|
*/
|
|
6
110
|
export interface Error {
|
|
7
111
|
error:
|
|
8
112
|
| 'internal_error'
|
|
113
|
+
| 'account_already_connected'
|
|
114
|
+
| 'account_needs_reauth'
|
|
115
|
+
| 'account_not_found'
|
|
116
|
+
| 'account_required'
|
|
117
|
+
| 'account_restricted'
|
|
118
|
+
| 'api_key_limit_reached'
|
|
119
|
+
| 'article_not_found'
|
|
120
|
+
| 'dm_not_permitted'
|
|
9
121
|
| 'invalid_format'
|
|
10
122
|
| 'invalid_id'
|
|
11
123
|
| 'invalid_input'
|
|
@@ -13,32 +125,176 @@ export interface Error {
|
|
|
13
125
|
| 'invalid_tool_type'
|
|
14
126
|
| 'invalid_tweet_id'
|
|
15
127
|
| 'invalid_tweet_url'
|
|
128
|
+
| 'invalid_user_id'
|
|
129
|
+
| 'invalid_user_ids'
|
|
16
130
|
| 'invalid_username'
|
|
131
|
+
| 'invalid_json'
|
|
17
132
|
| 'insufficient_credits'
|
|
133
|
+
| 'login_cooldown'
|
|
134
|
+
| 'login_failed'
|
|
135
|
+
| 'media_download_failed'
|
|
18
136
|
| 'missing_params'
|
|
19
137
|
| 'missing_query'
|
|
20
138
|
| 'monitor_already_exists'
|
|
21
|
-
| '
|
|
139
|
+
| 'no_media'
|
|
22
140
|
| 'no_credits'
|
|
23
141
|
| 'no_subscription'
|
|
24
142
|
| 'not_found'
|
|
143
|
+
| 'payment_failed'
|
|
144
|
+
| 'rate_limit_exceeded'
|
|
145
|
+
| 'service_unavailable'
|
|
146
|
+
| 'style_not_found'
|
|
25
147
|
| 'subscription_inactive'
|
|
26
148
|
| 'tweet_not_found'
|
|
27
149
|
| 'unauthenticated'
|
|
150
|
+
| 'unsupported_field'
|
|
28
151
|
| 'user_not_found'
|
|
29
|
-
| '
|
|
152
|
+
| 'x_account_feature_required'
|
|
153
|
+
| 'x_account_protected'
|
|
154
|
+
| 'x_account_suspended'
|
|
30
155
|
| 'x_api_rate_limited'
|
|
31
156
|
| 'x_api_unavailable'
|
|
32
|
-
| 'x_api_unauthorized'
|
|
157
|
+
| 'x_api_unauthorized'
|
|
158
|
+
| 'x_auth_failure'
|
|
159
|
+
| 'x_content_too_long'
|
|
160
|
+
| 'x_daily_limit'
|
|
161
|
+
| 'x_dm_not_allowed'
|
|
162
|
+
| 'x_duplicate_action'
|
|
163
|
+
| 'x_login_auth_failed'
|
|
164
|
+
| 'x_login_challenge'
|
|
165
|
+
| 'x_login_denied'
|
|
166
|
+
| 'x_login_failed'
|
|
167
|
+
| 'x_login_proxy_error'
|
|
168
|
+
| 'x_login_rate_limited'
|
|
169
|
+
| 'x_login_service_unavailable'
|
|
170
|
+
| 'x_login_suspended'
|
|
171
|
+
| 'x_rate_limited'
|
|
172
|
+
| 'x_rejected'
|
|
173
|
+
| 'x_target_not_found'
|
|
174
|
+
| 'x_transient_error'
|
|
175
|
+
| 'x_user_lookup_failed'
|
|
176
|
+
| 'x_write_ambiguous'
|
|
177
|
+
| 'x_write_failed'
|
|
178
|
+
| 'x_write_unconfirmed'
|
|
179
|
+
| Error.StructuredError;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export namespace Error {
|
|
183
|
+
export interface StructuredError {
|
|
184
|
+
code:
|
|
185
|
+
| 'internal_error'
|
|
186
|
+
| 'account_already_connected'
|
|
187
|
+
| 'account_needs_reauth'
|
|
188
|
+
| 'account_not_found'
|
|
189
|
+
| 'account_required'
|
|
190
|
+
| 'account_restricted'
|
|
191
|
+
| 'api_key_limit_reached'
|
|
192
|
+
| 'article_not_found'
|
|
193
|
+
| 'dm_not_permitted'
|
|
194
|
+
| 'invalid_format'
|
|
195
|
+
| 'invalid_id'
|
|
196
|
+
| 'invalid_input'
|
|
197
|
+
| 'invalid_params'
|
|
198
|
+
| 'invalid_tool_type'
|
|
199
|
+
| 'invalid_tweet_id'
|
|
200
|
+
| 'invalid_tweet_url'
|
|
201
|
+
| 'invalid_user_id'
|
|
202
|
+
| 'invalid_user_ids'
|
|
203
|
+
| 'invalid_username'
|
|
204
|
+
| 'invalid_json'
|
|
205
|
+
| 'insufficient_credits'
|
|
206
|
+
| 'login_cooldown'
|
|
207
|
+
| 'login_failed'
|
|
208
|
+
| 'media_download_failed'
|
|
209
|
+
| 'missing_params'
|
|
210
|
+
| 'missing_query'
|
|
211
|
+
| 'monitor_already_exists'
|
|
212
|
+
| 'no_media'
|
|
213
|
+
| 'no_credits'
|
|
214
|
+
| 'no_subscription'
|
|
215
|
+
| 'not_found'
|
|
216
|
+
| 'payment_failed'
|
|
217
|
+
| 'rate_limit_exceeded'
|
|
218
|
+
| 'service_unavailable'
|
|
219
|
+
| 'style_not_found'
|
|
220
|
+
| 'subscription_inactive'
|
|
221
|
+
| 'tweet_not_found'
|
|
222
|
+
| 'unauthenticated'
|
|
223
|
+
| 'unsupported_field'
|
|
224
|
+
| 'user_not_found'
|
|
225
|
+
| 'x_account_feature_required'
|
|
226
|
+
| 'x_account_protected'
|
|
227
|
+
| 'x_account_suspended'
|
|
228
|
+
| 'x_api_rate_limited'
|
|
229
|
+
| 'x_api_unavailable'
|
|
230
|
+
| 'x_api_unauthorized'
|
|
231
|
+
| 'x_auth_failure'
|
|
232
|
+
| 'x_content_too_long'
|
|
233
|
+
| 'x_daily_limit'
|
|
234
|
+
| 'x_dm_not_allowed'
|
|
235
|
+
| 'x_duplicate_action'
|
|
236
|
+
| 'x_login_auth_failed'
|
|
237
|
+
| 'x_login_challenge'
|
|
238
|
+
| 'x_login_denied'
|
|
239
|
+
| 'x_login_failed'
|
|
240
|
+
| 'x_login_proxy_error'
|
|
241
|
+
| 'x_login_rate_limited'
|
|
242
|
+
| 'x_login_service_unavailable'
|
|
243
|
+
| 'x_login_suspended'
|
|
244
|
+
| 'x_rate_limited'
|
|
245
|
+
| 'x_rejected'
|
|
246
|
+
| 'x_target_not_found'
|
|
247
|
+
| 'x_transient_error'
|
|
248
|
+
| 'x_user_lookup_failed'
|
|
249
|
+
| 'x_write_ambiguous'
|
|
250
|
+
| 'x_write_failed'
|
|
251
|
+
| 'x_write_unconfirmed';
|
|
252
|
+
|
|
253
|
+
message: string;
|
|
254
|
+
|
|
255
|
+
type:
|
|
256
|
+
| 'api_error'
|
|
257
|
+
| 'authentication_error'
|
|
258
|
+
| 'billing_error'
|
|
259
|
+
| 'dependency_error'
|
|
260
|
+
| 'invalid_request_error'
|
|
261
|
+
| 'permission_error'
|
|
262
|
+
| 'rate_limit_error';
|
|
263
|
+
}
|
|
33
264
|
}
|
|
34
265
|
|
|
35
266
|
/**
|
|
36
267
|
* Type of monitor event fired when account activity occurs.
|
|
37
268
|
*/
|
|
38
|
-
export type EventType =
|
|
269
|
+
export type EventType =
|
|
270
|
+
| 'tweet.new'
|
|
271
|
+
| 'tweet.reply'
|
|
272
|
+
| 'tweet.retweet'
|
|
273
|
+
| 'tweet.quote'
|
|
274
|
+
| 'tweet.media'
|
|
275
|
+
| 'tweet.link'
|
|
276
|
+
| 'tweet.poll'
|
|
277
|
+
| 'tweet.mention'
|
|
278
|
+
| 'tweet.hashtag'
|
|
279
|
+
| 'tweet.longform'
|
|
280
|
+
| 'profile.avatar.changed'
|
|
281
|
+
| 'profile.banner.changed'
|
|
282
|
+
| 'profile.name.changed'
|
|
283
|
+
| 'profile.username.changed'
|
|
284
|
+
| 'profile.bio.changed'
|
|
285
|
+
| 'profile.location.changed'
|
|
286
|
+
| 'profile.url.changed'
|
|
287
|
+
| 'profile.verified.changed'
|
|
288
|
+
| 'profile.protected.changed'
|
|
289
|
+
| 'profile.pinned_tweet.changed'
|
|
290
|
+
| 'profile.unavailable.changed';
|
|
39
291
|
|
|
40
292
|
/**
|
|
41
|
-
* Paginated
|
|
293
|
+
* Paginated tweet results. The item count can be lower than pageSize when the
|
|
294
|
+
* source returns fewer tweets, filters remove tweets, or the available usage balance covers
|
|
295
|
+
* fewer results. Follow next_cursor while has_next_page is true. An empty page can
|
|
296
|
+
* still have has_next_page true after filtering. Zero affordable results returns
|
|
297
|
+
* 402 insufficient_credits.
|
|
42
298
|
*/
|
|
43
299
|
export interface PaginatedTweets {
|
|
44
300
|
has_next_page: boolean;
|
|
@@ -49,7 +305,11 @@ export interface PaginatedTweets {
|
|
|
49
305
|
}
|
|
50
306
|
|
|
51
307
|
/**
|
|
52
|
-
* Paginated
|
|
308
|
+
* Paginated user profiles. The item count can be lower than pageSize when the
|
|
309
|
+
* source returns fewer profiles or the available usage balance covers fewer results. Follow
|
|
310
|
+
* next_cursor while has_next_page is true. A relationship can naturally contain
|
|
311
|
+
* fewer profiles than requested. Zero affordable results returns 402
|
|
312
|
+
* insufficient_credits.
|
|
53
313
|
*/
|
|
54
314
|
export interface PaginatedUsers {
|
|
55
315
|
has_next_page: boolean;
|
|
@@ -60,44 +320,156 @@ export interface PaginatedUsers {
|
|
|
60
320
|
}
|
|
61
321
|
|
|
62
322
|
/**
|
|
63
|
-
* Tweet returned from search results with inline author info.
|
|
323
|
+
* Tweet returned from search results with inline author info. A zero metric can
|
|
324
|
+
* mean X did not report the count.
|
|
64
325
|
*/
|
|
65
326
|
export interface SearchTweet {
|
|
66
327
|
id: string;
|
|
67
328
|
|
|
329
|
+
bookmarkCount: number;
|
|
330
|
+
|
|
331
|
+
likeCount: number;
|
|
332
|
+
|
|
333
|
+
quoteCount: number;
|
|
334
|
+
|
|
335
|
+
replyCount: number;
|
|
336
|
+
|
|
337
|
+
retweetCount: number;
|
|
338
|
+
|
|
68
339
|
text: string;
|
|
69
340
|
|
|
70
|
-
|
|
341
|
+
viewCount: number;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* X user profile with bio, follower counts, and verification status.
|
|
345
|
+
*/
|
|
346
|
+
author?: UserProfile;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
350
|
+
* partnership content or AI-generated media.
|
|
351
|
+
*/
|
|
352
|
+
contentDisclosure?: ContentDisclosure;
|
|
71
353
|
|
|
72
|
-
|
|
354
|
+
/**
|
|
355
|
+
* Root tweet ID for the search result conversation
|
|
356
|
+
*/
|
|
357
|
+
conversationId?: string;
|
|
73
358
|
|
|
74
359
|
createdAt?: string;
|
|
75
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Start and end offsets for rendered tweet text
|
|
363
|
+
*/
|
|
364
|
+
displayTextRange?: Array<number>;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Parsed search-result entities including URLs, mentions, hashtags, and media
|
|
368
|
+
* markers
|
|
369
|
+
*/
|
|
370
|
+
entities?: { [key: string]: unknown };
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Tweet ID being replied to
|
|
374
|
+
*/
|
|
375
|
+
inReplyToId?: string;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* User ID being replied to
|
|
379
|
+
*/
|
|
380
|
+
inReplyToUserId?: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Username being replied to
|
|
384
|
+
*/
|
|
385
|
+
inReplyToUsername?: string;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Whether the tweet has limited reply permissions
|
|
389
|
+
*/
|
|
390
|
+
isLimitedReply?: boolean;
|
|
391
|
+
|
|
76
392
|
/**
|
|
77
393
|
* True for Note Tweets (long-form content, up to 25,000 characters)
|
|
78
394
|
*/
|
|
79
395
|
isNoteTweet?: boolean;
|
|
80
396
|
|
|
81
|
-
|
|
397
|
+
/**
|
|
398
|
+
* True when this search result quotes another tweet
|
|
399
|
+
*/
|
|
400
|
+
isQuoteStatus?: boolean;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* True when this search result is a reply
|
|
404
|
+
*/
|
|
405
|
+
isReply?: boolean;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Tweet language code
|
|
409
|
+
*/
|
|
410
|
+
lang?: string;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Search-result media attachments, omitted when no media is present
|
|
414
|
+
*/
|
|
415
|
+
media?: Array<TweetMedia>;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
419
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
420
|
+
* media, and conversation fields appear when available.
|
|
421
|
+
*/
|
|
422
|
+
quoted_tweet?: EmbeddedTweet;
|
|
82
423
|
|
|
83
|
-
|
|
424
|
+
/**
|
|
425
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
426
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
427
|
+
* media, and conversation fields appear when available.
|
|
428
|
+
*/
|
|
429
|
+
retweeted_tweet?: EmbeddedTweet;
|
|
84
430
|
|
|
85
|
-
|
|
431
|
+
/**
|
|
432
|
+
* Client application used to post the tweet
|
|
433
|
+
*/
|
|
434
|
+
source?: string;
|
|
86
435
|
|
|
87
|
-
|
|
436
|
+
type?: string;
|
|
88
437
|
|
|
89
|
-
|
|
438
|
+
/**
|
|
439
|
+
* Tweet permalink URL
|
|
440
|
+
*/
|
|
441
|
+
url?: string;
|
|
90
442
|
}
|
|
91
443
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
444
|
+
/**
|
|
445
|
+
* Normalized media attached to a tweet.
|
|
446
|
+
*/
|
|
447
|
+
export interface TweetMedia {
|
|
448
|
+
/**
|
|
449
|
+
* Media preview URL
|
|
450
|
+
*/
|
|
451
|
+
mediaUrl: string;
|
|
95
452
|
|
|
96
|
-
|
|
453
|
+
type: 'photo' | 'video' | 'animated_gif';
|
|
97
454
|
|
|
98
|
-
|
|
455
|
+
/**
|
|
456
|
+
* X media link from the tweet
|
|
457
|
+
*/
|
|
458
|
+
url: string;
|
|
99
459
|
|
|
100
|
-
|
|
460
|
+
/**
|
|
461
|
+
* Available video encodings, ordered as returned
|
|
462
|
+
*/
|
|
463
|
+
videoVariants?: Array<TweetMedia.VideoVariant>;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export namespace TweetMedia {
|
|
467
|
+
export interface VideoVariant {
|
|
468
|
+
contentType: string;
|
|
469
|
+
|
|
470
|
+
url: string;
|
|
471
|
+
|
|
472
|
+
bitrate?: number;
|
|
101
473
|
}
|
|
102
474
|
}
|
|
103
475
|
|
|
@@ -111,19 +483,89 @@ export interface UserProfile {
|
|
|
111
483
|
|
|
112
484
|
username: string;
|
|
113
485
|
|
|
486
|
+
automatedBy?: string;
|
|
487
|
+
|
|
488
|
+
canDm?: boolean;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Community role when returned by community member reads
|
|
492
|
+
*/
|
|
493
|
+
communityRole?: string;
|
|
494
|
+
|
|
495
|
+
coverPicture?: string;
|
|
496
|
+
|
|
114
497
|
createdAt?: string;
|
|
115
498
|
|
|
116
499
|
description?: string;
|
|
117
500
|
|
|
501
|
+
favouritesCount?: number;
|
|
502
|
+
|
|
118
503
|
followers?: number;
|
|
119
504
|
|
|
120
505
|
following?: number;
|
|
121
506
|
|
|
507
|
+
hasCustomTimelines?: boolean;
|
|
508
|
+
|
|
509
|
+
isAutomated?: boolean;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Whether X shows a blue verification badge
|
|
513
|
+
*/
|
|
514
|
+
isBlueVerified?: boolean;
|
|
515
|
+
|
|
516
|
+
isTranslator?: boolean;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Whether X marks the profile as verified
|
|
520
|
+
*/
|
|
521
|
+
isVerified?: boolean;
|
|
522
|
+
|
|
122
523
|
location?: string;
|
|
123
524
|
|
|
525
|
+
mediaCount?: number;
|
|
526
|
+
|
|
527
|
+
pinnedTweetIds?: Array<string>;
|
|
528
|
+
|
|
529
|
+
possiblySensitive?: boolean;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Structured profile bio with entity annotations
|
|
533
|
+
*/
|
|
534
|
+
profile_bio?: { [key: string]: unknown };
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Original X profile banner field when available
|
|
538
|
+
*/
|
|
539
|
+
profileBannerUrl?: string;
|
|
540
|
+
|
|
124
541
|
profilePicture?: string;
|
|
125
542
|
|
|
543
|
+
/**
|
|
544
|
+
* Whether the profile protects its posts
|
|
545
|
+
*/
|
|
546
|
+
protected?: boolean;
|
|
547
|
+
|
|
126
548
|
statusesCount?: number;
|
|
127
549
|
|
|
550
|
+
unavailable?: boolean;
|
|
551
|
+
|
|
552
|
+
unavailableReason?: string;
|
|
553
|
+
|
|
554
|
+
url?: string;
|
|
555
|
+
|
|
128
556
|
verified?: boolean;
|
|
557
|
+
|
|
558
|
+
verifiedType?: string;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Whether this profile follows the authenticated viewer
|
|
562
|
+
*/
|
|
563
|
+
viewerFollowedBy?: boolean;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Whether the authenticated viewer follows this profile
|
|
567
|
+
*/
|
|
568
|
+
viewerFollowing?: boolean;
|
|
569
|
+
|
|
570
|
+
withheldInCountries?: Array<string>;
|
|
129
571
|
}
|
|
@@ -5,25 +5,46 @@ import { APIPromise } from '../core/api-promise';
|
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Subscription, billing, and
|
|
8
|
+
* Subscription, billing, and usage balance
|
|
9
9
|
*/
|
|
10
10
|
export class Subscribe extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Create a subscription checkout or billing-management URL only after the user
|
|
13
|
+
* confirms. The request never completes payment by itself.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const subscribe = await client.subscribe.create({
|
|
18
|
+
* tier: 'pro',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
|
-
create(
|
|
15
|
-
|
|
22
|
+
create(
|
|
23
|
+
body: SubscribeCreateParams | null | undefined = {},
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<SubscribeCreateResponse> {
|
|
26
|
+
return this._client.post('/subscribe', { body, ...options });
|
|
16
27
|
}
|
|
17
28
|
}
|
|
18
29
|
|
|
19
30
|
export interface SubscribeCreateResponse {
|
|
20
|
-
|
|
31
|
+
message: string;
|
|
32
|
+
|
|
33
|
+
status: 'checkout_created' | 'already_subscribed' | 'payment_issue';
|
|
21
34
|
|
|
22
|
-
|
|
35
|
+
url: string;
|
|
36
|
+
}
|
|
23
37
|
|
|
24
|
-
|
|
38
|
+
export interface SubscribeCreateParams {
|
|
39
|
+
/**
|
|
40
|
+
* Subscription tier to pre-select.
|
|
41
|
+
*/
|
|
42
|
+
tier?: 'starter' | 'pro' | 'business';
|
|
25
43
|
}
|
|
26
44
|
|
|
27
45
|
export declare namespace Subscribe {
|
|
28
|
-
export {
|
|
46
|
+
export {
|
|
47
|
+
type SubscribeCreateResponse as SubscribeCreateResponse,
|
|
48
|
+
type SubscribeCreateParams as SubscribeCreateParams,
|
|
49
|
+
};
|
|
29
50
|
}
|
|
@@ -30,7 +30,7 @@ export class Tickets extends APIResource {
|
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
32
32
|
* const ticket = await client.support.tickets.retrieve(
|
|
33
|
-
* '
|
|
33
|
+
* 'tkt_a1b2c3d4e5f6a1b2c3d4e5f6',
|
|
34
34
|
* );
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
@@ -43,9 +43,10 @@ export class Tickets extends APIResource {
|
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* ```ts
|
|
46
|
-
* const ticket = await client.support.tickets.update(
|
|
47
|
-
*
|
|
48
|
-
* }
|
|
46
|
+
* const ticket = await client.support.tickets.update(
|
|
47
|
+
* 'tkt_a1b2c3d4e5f6a1b2c3d4e5f6',
|
|
48
|
+
* { status: 'resolved' },
|
|
49
|
+
* );
|
|
49
50
|
* ```
|
|
50
51
|
*/
|
|
51
52
|
update(id: string, body: TicketUpdateParams, options?: RequestOptions): APIPromise<TicketUpdateResponse> {
|
|
@@ -69,9 +70,10 @@ export class Tickets extends APIResource {
|
|
|
69
70
|
*
|
|
70
71
|
* @example
|
|
71
72
|
* ```ts
|
|
72
|
-
* const response = await client.support.tickets.reply(
|
|
73
|
-
*
|
|
74
|
-
* }
|
|
73
|
+
* const response = await client.support.tickets.reply(
|
|
74
|
+
* 'tkt_a1b2c3d4e5f6a1b2c3d4e5f6',
|
|
75
|
+
* { body: 'Thank you for the update.' },
|
|
76
|
+
* );
|
|
75
77
|
* ```
|
|
76
78
|
*/
|
|
77
79
|
reply(id: string, body: TicketReplyParams, options?: RequestOptions): APIPromise<TicketReplyResponse> {
|
package/src/resources/trends.ts
CHANGED
|
@@ -41,12 +41,12 @@ export namespace TrendListResponse {
|
|
|
41
41
|
|
|
42
42
|
export interface TrendListParams {
|
|
43
43
|
/**
|
|
44
|
-
* Number of trending topics
|
|
44
|
+
* Number of trending topics returned (1-50, default 30)
|
|
45
45
|
*/
|
|
46
46
|
count?: number;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Region WOEID (1=Worldwide, 23424977=US, 23424975=UK, 23424969=Turkey)
|
|
49
|
+
* Region Yahoo WOEID code (1=Worldwide, 23424977=US, 23424975=UK, 23424969=Turkey)
|
|
50
50
|
*/
|
|
51
51
|
woeid?: number;
|
|
52
52
|
}
|