x-twitter-scraper 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +25 -5
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +23 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -17
- package/client.d.ts.map +1 -1
- package/client.js +42 -17
- package/client.js.map +1 -1
- package/client.mjs +42 -17
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +29 -16
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/account.d.mts +59 -3
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +59 -3
- package/resources/account.d.ts.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +88 -11
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +88 -11
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +37 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +37 -4
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +4 -1
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +4 -1
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +33 -8
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +33 -8
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +12 -4
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +12 -4
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +46 -7
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +46 -7
- package/resources/events.d.ts.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +287 -17
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +287 -17
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +3 -2
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +3 -2
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +245 -0
- package/resources/guest-wallets.d.mts.map +1 -0
- package/resources/guest-wallets.d.ts +245 -0
- package/resources/guest-wallets.d.ts.map +1 -0
- package/resources/guest-wallets.js +79 -0
- package/resources/guest-wallets.js.map +1 -0
- package/resources/guest-wallets.mjs +75 -0
- package/resources/guest-wallets.mjs.map +1 -0
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +3 -0
- package/resources/monitors/index.d.mts.map +1 -0
- package/resources/monitors/index.d.ts +3 -0
- package/resources/monitors/index.d.ts.map +1 -0
- package/resources/monitors/index.js +9 -0
- package/resources/monitors/index.js.map +1 -0
- package/resources/monitors/index.mjs +4 -0
- package/resources/monitors/index.mjs.map +1 -0
- package/resources/monitors/keywords.d.mts +164 -0
- package/resources/monitors/keywords.d.mts.map +1 -0
- package/resources/monitors/keywords.d.ts +164 -0
- package/resources/monitors/keywords.d.ts.map +1 -0
- package/resources/monitors/keywords.js +80 -0
- package/resources/monitors/keywords.js.map +1 -0
- package/resources/monitors/keywords.mjs +76 -0
- package/resources/monitors/keywords.mjs.map +1 -0
- package/resources/monitors/monitors.d.mts +127 -0
- package/resources/monitors/monitors.d.mts.map +1 -0
- package/resources/monitors/monitors.d.ts +127 -0
- package/resources/monitors/monitors.d.ts.map +1 -0
- package/resources/monitors/monitors.js +84 -0
- package/resources/monitors/monitors.js.map +1 -0
- package/resources/monitors/monitors.mjs +79 -0
- package/resources/monitors/monitors.mjs.map +1 -0
- package/resources/monitors.d.mts +1 -111
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts +1 -111
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +2 -70
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +1 -68
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +3 -3
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +3 -3
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.mjs.map +1 -1
- package/resources/shared.d.mts +251 -19
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +251 -19
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +20 -6
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts +20 -6
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js +12 -4
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs +12 -4
- package/resources/subscribe.mjs.map +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +9 -7
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +9 -7
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +9 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +9 -7
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/trends.d.mts +2 -2
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +2 -2
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +34 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +34 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +11 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-challenges.d.mts +41 -0
- package/resources/x/account-connection-challenges.d.mts.map +1 -0
- package/resources/x/account-connection-challenges.d.ts +41 -0
- package/resources/x/account-connection-challenges.d.ts.map +1 -0
- package/resources/x/account-connection-challenges.js +27 -0
- package/resources/x/account-connection-challenges.js.map +1 -0
- package/resources/x/account-connection-challenges.mjs +23 -0
- package/resources/x/account-connection-challenges.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -41
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -41
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +3 -3
- package/resources/x/accounts.mjs +3 -3
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/bookmarks.d.mts +6 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +6 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +50 -14
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +50 -14
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +5 -2
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +6 -3
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -2
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -2
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +16 -12
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +16 -12
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +7 -8
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +7 -8
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/tweets.d.mts +29 -6
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +29 -6
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +5 -2
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +5 -2
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/communities.d.mts.map +1 -1
- package/resources/x/communities.d.ts.map +1 -1
- package/resources/x/communities.mjs.map +1 -1
- package/resources/x/dm.d.mts +17 -5
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +17 -5
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +2 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +2 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +2 -2
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +2 -2
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +4 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +4 -2
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +5 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +2 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/lists.d.mts +19 -0
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +19 -0
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +17 -8
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +17 -8
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -3
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +3 -4
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +8 -9
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +8 -9
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +4 -4
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +5 -5
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +442 -29
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +442 -29
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/tweets.d.mts.map +1 -1
- package/resources/x/tweets.d.ts.map +1 -1
- package/resources/x/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +666 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +666 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +26 -4
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +26 -4
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/users.d.mts.map +1 -1
- package/resources/x/users.d.ts.map +1 -1
- package/resources/x/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +51 -0
- package/resources/x/write-actions.d.mts.map +1 -0
- package/resources/x/write-actions.d.ts +51 -0
- package/resources/x/write-actions.d.ts.map +1 -0
- package/resources/x/write-actions.js +26 -0
- package/resources/x/write-actions.js.map +1 -0
- package/resources/x/write-actions.mjs +22 -0
- package/resources/x/write-actions.mjs.map +1 -0
- package/resources/x/x.d.mts +65 -12
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +65 -12
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +10 -1
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +10 -1
- package/resources/x/x.mjs.map +1 -1
- package/resources/x.d.mts.map +1 -1
- package/resources/x.d.ts.map +1 -1
- package/resources/x.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +86 -40
- package/src/internal/request-options.ts +2 -0
- package/src/internal/utils/log.ts +2 -1
- package/src/resources/account.ts +72 -5
- package/src/resources/credits.ts +117 -10
- package/src/resources/drafts.ts +4 -1
- package/src/resources/draws.ts +33 -12
- package/src/resources/events.ts +52 -7
- package/src/resources/extractions.ts +364 -12
- package/src/resources/guest-wallets.ts +337 -0
- package/src/resources/index.ts +15 -10
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +221 -0
- package/src/resources/monitors/monitors.ts +195 -0
- package/src/resources/monitors.ts +1 -153
- package/src/resources/radar.ts +3 -3
- package/src/resources/shared.ts +463 -21
- package/src/resources/subscribe.ts +29 -8
- package/src/resources/support/tickets.ts +9 -7
- package/src/resources/trends.ts +2 -2
- package/src/resources/webhooks.ts +43 -0
- package/src/resources/x/account-connection-challenges.ts +61 -0
- package/src/resources/x/accounts.ts +15 -46
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +68 -16
- package/src/resources/x/communities/index.ts +7 -2
- package/src/resources/x/communities/join.ts +23 -16
- package/src/resources/x/communities/tweets.ts +32 -6
- package/src/resources/x/dm.ts +20 -7
- package/src/resources/x/followers.ts +2 -2
- package/src/resources/x/index.ts +10 -1
- package/src/resources/x/lists.ts +22 -0
- package/src/resources/x/media.ts +25 -11
- package/src/resources/x/profile.ts +11 -12
- package/src/resources/x/tweets/tweets.ts +540 -32
- package/src/resources/x/users/index.ts +4 -0
- package/src/resources/x/users/users.ts +834 -8
- package/src/resources/x/write-actions.ts +79 -0
- package/src/resources/x/x.ts +107 -10
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/api-keys.d.mts +0 -68
- package/resources/api-keys.d.mts.map +0 -1
- package/resources/api-keys.d.ts +0 -68
- package/resources/api-keys.d.ts.map +0 -1
- package/resources/api-keys.js +0 -48
- package/resources/api-keys.js.map +0 -1
- package/resources/api-keys.mjs +0 -44
- package/resources/api-keys.mjs.map +0 -1
- package/resources/bot/bot.d.mts +0 -10
- package/resources/bot/bot.d.mts.map +0 -1
- package/resources/bot/bot.d.ts +0 -10
- package/resources/bot/bot.d.ts.map +0 -1
- package/resources/bot/bot.js +0 -17
- package/resources/bot/bot.js.map +0 -1
- package/resources/bot/bot.mjs +0 -12
- package/resources/bot/bot.mjs.map +0 -1
- package/resources/bot/index.d.mts +0 -3
- package/resources/bot/index.d.mts.map +0 -1
- package/resources/bot/index.d.ts +0 -3
- package/resources/bot/index.d.ts.map +0 -1
- package/resources/bot/index.js +0 -9
- package/resources/bot/index.js.map +0 -1
- package/resources/bot/index.mjs +0 -4
- package/resources/bot/index.mjs.map +0 -1
- package/resources/bot/platform-links.d.mts +0 -4
- package/resources/bot/platform-links.d.mts.map +0 -1
- package/resources/bot/platform-links.d.ts +0 -4
- package/resources/bot/platform-links.d.ts.map +0 -1
- package/resources/bot/platform-links.js +0 -9
- package/resources/bot/platform-links.js.map +0 -1
- package/resources/bot/platform-links.mjs +0 -5
- package/resources/bot/platform-links.mjs.map +0 -1
- package/resources/bot.d.mts +0 -2
- package/resources/bot.d.mts.map +0 -1
- package/resources/bot.d.ts +0 -2
- package/resources/bot.d.ts.map +0 -1
- package/resources/bot.js +0 -6
- package/resources/bot.js.map +0 -1
- package/resources/bot.mjs +0 -3
- package/resources/bot.mjs.map +0 -1
- package/src/resources/api-keys.ts +0 -100
- package/src/resources/bot/bot.ts +0 -15
- package/src/resources/bot/index.ts +0 -4
- package/src/resources/bot/platform-links.ts +0 -5
- package/src/resources/bot.ts +0 -3
package/resources/x/x.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as Shared from "../shared.js";
|
|
3
|
+
import * as AccountConnectionChallengesAPI from "./account-connection-challenges.js";
|
|
4
|
+
import { AccountConnectionChallengeSubmitParams, AccountConnectionChallengeSubmitResponse, AccountConnectionChallenges } from "./account-connection-challenges.js";
|
|
3
5
|
import * as AccountsAPI from "./accounts.js";
|
|
4
6
|
import { AccountBulkRetryResponse, AccountCreateParams, AccountCreateResponse, AccountDeleteResponse, AccountListResponse, AccountReauthParams, AccountReauthResponse, Accounts, XAccount, XAccountDetail } from "./accounts.js";
|
|
5
7
|
import * as BookmarksAPI from "./bookmarks.js";
|
|
@@ -14,15 +16,18 @@ import * as MediaAPI from "./media.js";
|
|
|
14
16
|
import { Media, MediaDownloadParams, MediaDownloadResponse, MediaUploadParams, MediaUploadResponse } from "./media.js";
|
|
15
17
|
import * as ProfileAPI from "./profile.js";
|
|
16
18
|
import { Profile, ProfileUpdateAvatarParams, ProfileUpdateAvatarResponse, ProfileUpdateBannerParams, ProfileUpdateBannerResponse, ProfileUpdateParams, ProfileUpdateResponse } from "./profile.js";
|
|
19
|
+
import * as WriteActionsAPI from "./write-actions.js";
|
|
20
|
+
import { WriteActionRetrieveResponse, WriteActions } from "./write-actions.js";
|
|
17
21
|
import * as CommunitiesAPI from "./communities/communities.js";
|
|
18
|
-
import { Communities,
|
|
22
|
+
import { Communities, CommunityCreateParams, CommunityCreateResponse, CommunityDeleteParams, CommunityDeleteResponse, CommunityRetrieveInfoResponse, CommunityRetrieveMembersParams, CommunityRetrieveModeratorsParams, CommunityRetrieveSearchParams } from "./communities/communities.js";
|
|
19
23
|
import * as TweetsAPI from "./tweets/tweets.js";
|
|
20
24
|
import { TweetAuthor, TweetCreateParams, TweetCreateResponse, TweetDeleteParams, TweetDeleteResponse, TweetDetail, TweetGetFavoritersParams, TweetGetQuotesParams, TweetGetRepliesParams, TweetGetRetweetersParams, TweetGetThreadParams, TweetListParams, TweetRetrieveResponse, TweetSearchParams, Tweets } from "./tweets/tweets.js";
|
|
21
25
|
import * as UsersAPI from "./users/users.js";
|
|
22
|
-
import { UserRetrieveBatchParams, UserRetrieveFollowersParams, UserRetrieveFollowersYouKnowParams, UserRetrieveFollowingParams, UserRetrieveLikesParams, UserRetrieveMediaParams, UserRetrieveMentionsParams, UserRetrieveSearchParams, UserRetrieveTweetsParams, UserRetrieveVerifiedFollowersParams, Users } from "./users/users.js";
|
|
26
|
+
import { UserRemoveFollowerParams, UserRemoveFollowerResponse, UserRetrieveBatchParams, UserRetrieveBatchResponse, UserRetrieveFollowersParams, UserRetrieveFollowersYouKnowParams, UserRetrieveFollowingParams, UserRetrieveLikesParams, UserRetrieveMediaParams, UserRetrieveMentionsParams, UserRetrieveRepliesParams, UserRetrieveSearchParams, UserRetrieveTweetsParams, UserRetrieveVerifiedFollowersParams, Users } from "./users/users.js";
|
|
23
27
|
import { APIPromise } from "../../core/api-promise.js";
|
|
24
28
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
25
29
|
export declare class X extends APIResource {
|
|
30
|
+
writeActions: WriteActionsAPI.WriteActions;
|
|
26
31
|
tweets: TweetsAPI.Tweets;
|
|
27
32
|
users: UsersAPI.Users;
|
|
28
33
|
followers: FollowersAPI.Followers;
|
|
@@ -31,10 +36,12 @@ export declare class X extends APIResource {
|
|
|
31
36
|
profile: ProfileAPI.Profile;
|
|
32
37
|
communities: CommunitiesAPI.Communities;
|
|
33
38
|
accounts: AccountsAPI.Accounts;
|
|
39
|
+
accountConnectionChallenges: AccountConnectionChallengesAPI.AccountConnectionChallenges;
|
|
34
40
|
bookmarks: BookmarksAPI.Bookmarks;
|
|
35
41
|
lists: ListsAPI.Lists;
|
|
36
42
|
/**
|
|
37
|
-
* Retrieve the full content of an X Article (long-form post) by tweet ID.
|
|
43
|
+
* Retrieve the full content of an X Article (long-form post) by numeric tweet ID.
|
|
44
|
+
* Returns article_not_found when the tweet is valid but is not an X Article.
|
|
38
45
|
*
|
|
39
46
|
* @example
|
|
40
47
|
* ```ts
|
|
@@ -73,12 +80,16 @@ export declare class X extends APIResource {
|
|
|
73
80
|
export interface XGetArticleResponse {
|
|
74
81
|
article: XGetArticleResponse.Article;
|
|
75
82
|
/**
|
|
76
|
-
*
|
|
83
|
+
* X Article author profile fields returned when available.
|
|
77
84
|
*/
|
|
78
|
-
author?:
|
|
85
|
+
author?: XGetArticleResponse.Author;
|
|
79
86
|
}
|
|
80
87
|
export declare namespace XGetArticleResponse {
|
|
81
88
|
interface Article {
|
|
89
|
+
/**
|
|
90
|
+
* Plain text joined from all article blocks
|
|
91
|
+
*/
|
|
92
|
+
bodyText?: string;
|
|
82
93
|
contents?: Array<Article.Content>;
|
|
83
94
|
coverImageUrl?: string;
|
|
84
95
|
createdAt?: string;
|
|
@@ -92,18 +103,58 @@ export declare namespace XGetArticleResponse {
|
|
|
92
103
|
namespace Article {
|
|
93
104
|
interface Content {
|
|
94
105
|
height?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Inline text formatting ranges
|
|
108
|
+
*/
|
|
109
|
+
inlineStyleRanges?: Array<Content.InlineStyleRange>;
|
|
110
|
+
/**
|
|
111
|
+
* Preview image URL for media blocks
|
|
112
|
+
*/
|
|
113
|
+
previewUrl?: string;
|
|
95
114
|
text?: string;
|
|
96
115
|
/**
|
|
97
|
-
* Block type:
|
|
98
|
-
*
|
|
116
|
+
* Block type: paragraph, header-one, header-two, header-three, header-four,
|
|
117
|
+
* header-five, header-six, unordered-list-item, ordered-list-item, blockquote,
|
|
118
|
+
* code-block, media, divider
|
|
99
119
|
*/
|
|
100
120
|
type?: string;
|
|
101
121
|
/**
|
|
102
|
-
* Media URL for
|
|
122
|
+
* Media URL for media blocks
|
|
103
123
|
*/
|
|
104
124
|
url?: string;
|
|
105
125
|
width?: number;
|
|
106
126
|
}
|
|
127
|
+
namespace Content {
|
|
128
|
+
interface InlineStyleRange {
|
|
129
|
+
length?: number;
|
|
130
|
+
offset?: number;
|
|
131
|
+
style?: string;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* X Article author profile fields returned when available.
|
|
137
|
+
*/
|
|
138
|
+
interface Author {
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
username: string;
|
|
142
|
+
canDm?: boolean;
|
|
143
|
+
createdAt?: string;
|
|
144
|
+
description?: string;
|
|
145
|
+
favouritesCount?: number;
|
|
146
|
+
followersCount?: number;
|
|
147
|
+
followingCount?: number;
|
|
148
|
+
isBlueVerified?: boolean;
|
|
149
|
+
isTranslator?: boolean;
|
|
150
|
+
isVerified?: boolean;
|
|
151
|
+
location?: string;
|
|
152
|
+
mediaCount?: number;
|
|
153
|
+
profileBannerUrl?: string;
|
|
154
|
+
profilePicture?: string;
|
|
155
|
+
protected?: boolean;
|
|
156
|
+
statusesCount?: number;
|
|
157
|
+
url?: string;
|
|
107
158
|
}
|
|
108
159
|
}
|
|
109
160
|
export interface XGetNotificationsResponse {
|
|
@@ -138,7 +189,7 @@ export interface XGetHomeTimelineParams {
|
|
|
138
189
|
*/
|
|
139
190
|
cursor?: string;
|
|
140
191
|
/**
|
|
141
|
-
* Comma-separated tweet IDs to exclude from results
|
|
192
|
+
* Comma-separated tweet IDs to exclude from results. Empty entries are ignored.
|
|
142
193
|
*/
|
|
143
194
|
seenTweetIds?: string;
|
|
144
195
|
}
|
|
@@ -148,7 +199,7 @@ export interface XGetNotificationsParams {
|
|
|
148
199
|
*/
|
|
149
200
|
cursor?: string;
|
|
150
201
|
/**
|
|
151
|
-
* Notification type filter
|
|
202
|
+
* Notification type filter. Unrecognized values fall back to All.
|
|
152
203
|
*/
|
|
153
204
|
type?: 'All' | 'Verified' | 'Mentions';
|
|
154
205
|
}
|
|
@@ -164,14 +215,16 @@ export interface XGetTrendsParams {
|
|
|
164
215
|
}
|
|
165
216
|
export declare namespace X {
|
|
166
217
|
export { type XGetArticleResponse as XGetArticleResponse, type XGetNotificationsResponse as XGetNotificationsResponse, type XGetTrendsResponse as XGetTrendsResponse, type XGetHomeTimelineParams as XGetHomeTimelineParams, type XGetNotificationsParams as XGetNotificationsParams, type XGetTrendsParams as XGetTrendsParams, };
|
|
218
|
+
export { WriteActions as WriteActions, type WriteActionRetrieveResponse as WriteActionRetrieveResponse };
|
|
167
219
|
export { Tweets as Tweets, type TweetAuthor as TweetAuthor, type TweetDetail as TweetDetail, type TweetCreateResponse as TweetCreateResponse, type TweetRetrieveResponse as TweetRetrieveResponse, type TweetDeleteResponse as TweetDeleteResponse, type TweetCreateParams as TweetCreateParams, type TweetListParams as TweetListParams, type TweetDeleteParams as TweetDeleteParams, type TweetGetFavoritersParams as TweetGetFavoritersParams, type TweetGetQuotesParams as TweetGetQuotesParams, type TweetGetRepliesParams as TweetGetRepliesParams, type TweetGetRetweetersParams as TweetGetRetweetersParams, type TweetGetThreadParams as TweetGetThreadParams, type TweetSearchParams as TweetSearchParams, };
|
|
168
|
-
export { Users as Users, type UserRetrieveBatchParams as UserRetrieveBatchParams, type UserRetrieveFollowersParams as UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams as UserRetrieveFollowingParams, type UserRetrieveLikesParams as UserRetrieveLikesParams, type UserRetrieveMediaParams as UserRetrieveMediaParams, type UserRetrieveMentionsParams as UserRetrieveMentionsParams, type UserRetrieveSearchParams as UserRetrieveSearchParams, type UserRetrieveTweetsParams as UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams, };
|
|
220
|
+
export { Users as Users, type UserRemoveFollowerResponse as UserRemoveFollowerResponse, type UserRetrieveBatchResponse as UserRetrieveBatchResponse, type UserRemoveFollowerParams as UserRemoveFollowerParams, type UserRetrieveBatchParams as UserRetrieveBatchParams, type UserRetrieveFollowersParams as UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams as UserRetrieveFollowingParams, type UserRetrieveLikesParams as UserRetrieveLikesParams, type UserRetrieveMediaParams as UserRetrieveMediaParams, type UserRetrieveMentionsParams as UserRetrieveMentionsParams, type UserRetrieveRepliesParams as UserRetrieveRepliesParams, type UserRetrieveSearchParams as UserRetrieveSearchParams, type UserRetrieveTweetsParams as UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams, };
|
|
169
221
|
export { Followers as Followers, type FollowerCheckResponse as FollowerCheckResponse, type FollowerCheckParams as FollowerCheckParams, };
|
|
170
222
|
export { Dm as Dm, type DmRetrieveHistoryResponse as DmRetrieveHistoryResponse, type DmSendResponse as DmSendResponse, type DmRetrieveHistoryParams as DmRetrieveHistoryParams, type DmSendParams as DmSendParams, };
|
|
171
223
|
export { Media as Media, type MediaDownloadResponse as MediaDownloadResponse, type MediaUploadResponse as MediaUploadResponse, type MediaDownloadParams as MediaDownloadParams, type MediaUploadParams as MediaUploadParams, };
|
|
172
224
|
export { Profile as Profile, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateAvatarResponse as ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse as ProfileUpdateBannerResponse, type ProfileUpdateParams as ProfileUpdateParams, type ProfileUpdateAvatarParams as ProfileUpdateAvatarParams, type ProfileUpdateBannerParams as ProfileUpdateBannerParams, };
|
|
173
|
-
export { Communities as Communities, type
|
|
225
|
+
export { Communities as Communities, type CommunityCreateResponse as CommunityCreateResponse, type CommunityDeleteResponse as CommunityDeleteResponse, type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse, type CommunityCreateParams as CommunityCreateParams, type CommunityDeleteParams as CommunityDeleteParams, type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams, };
|
|
174
226
|
export { Accounts as Accounts, type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountBulkRetryResponse as AccountBulkRetryResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountReauthParams as AccountReauthParams, };
|
|
227
|
+
export { AccountConnectionChallenges as AccountConnectionChallenges, type AccountConnectionChallengeSubmitResponse as AccountConnectionChallengeSubmitResponse, type AccountConnectionChallengeSubmitParams as AccountConnectionChallengeSubmitParams, };
|
|
175
228
|
export { Bookmarks as Bookmarks, type BookmarkRetrieveFoldersResponse as BookmarkRetrieveFoldersResponse, type BookmarkListParams as BookmarkListParams, };
|
|
176
229
|
export { Lists as Lists, type ListRetrieveFollowersParams as ListRetrieveFollowersParams, type ListRetrieveMembersParams as ListRetrieveMembersParams, type ListRetrieveTweetsParams as ListRetrieveTweetsParams, };
|
|
177
230
|
}
|
package/resources/x/x.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x.d.ts","sourceRoot":"","sources":["../../src/resources/x/x.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x.d.ts","sourceRoot":"","sources":["../../src/resources/x/x.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,8BAA8B,2CAAwC;AAClF,OAAO,EACL,sCAAsC,EACtC,wCAAwC,EACxC,2BAA2B,EAC5B,2CAAwC;AACzC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,cAAc,EACf,sBAAmB;AACpB,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EAAE,kBAAkB,EAAE,+BAA+B,EAAE,SAAS,EAAE,uBAAoB;AAC7F,OAAO,KAAK,KAAK,gBAAa;AAC9B,OAAO,EAAE,EAAE,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAa;AAC5G,OAAO,KAAK,YAAY,uBAAoB;AAC5C,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,KAAK,IAAI,KAAK,EACd,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/x/x.js
CHANGED
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.X = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const AccountConnectionChallengesAPI = tslib_1.__importStar(require("./account-connection-challenges.js"));
|
|
8
|
+
const account_connection_challenges_1 = require("./account-connection-challenges.js");
|
|
7
9
|
const AccountsAPI = tslib_1.__importStar(require("./accounts.js"));
|
|
8
10
|
const accounts_1 = require("./accounts.js");
|
|
9
11
|
const BookmarksAPI = tslib_1.__importStar(require("./bookmarks.js"));
|
|
@@ -18,6 +20,8 @@ const MediaAPI = tslib_1.__importStar(require("./media.js"));
|
|
|
18
20
|
const media_1 = require("./media.js");
|
|
19
21
|
const ProfileAPI = tslib_1.__importStar(require("./profile.js"));
|
|
20
22
|
const profile_1 = require("./profile.js");
|
|
23
|
+
const WriteActionsAPI = tslib_1.__importStar(require("./write-actions.js"));
|
|
24
|
+
const write_actions_1 = require("./write-actions.js");
|
|
21
25
|
const CommunitiesAPI = tslib_1.__importStar(require("./communities/communities.js"));
|
|
22
26
|
const communities_1 = require("./communities/communities.js");
|
|
23
27
|
const TweetsAPI = tslib_1.__importStar(require("./tweets/tweets.js"));
|
|
@@ -28,6 +32,7 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
28
32
|
class X extends resource_1.APIResource {
|
|
29
33
|
constructor() {
|
|
30
34
|
super(...arguments);
|
|
35
|
+
this.writeActions = new WriteActionsAPI.WriteActions(this._client);
|
|
31
36
|
this.tweets = new TweetsAPI.Tweets(this._client);
|
|
32
37
|
this.users = new UsersAPI.Users(this._client);
|
|
33
38
|
this.followers = new FollowersAPI.Followers(this._client);
|
|
@@ -36,11 +41,13 @@ class X extends resource_1.APIResource {
|
|
|
36
41
|
this.profile = new ProfileAPI.Profile(this._client);
|
|
37
42
|
this.communities = new CommunitiesAPI.Communities(this._client);
|
|
38
43
|
this.accounts = new AccountsAPI.Accounts(this._client);
|
|
44
|
+
this.accountConnectionChallenges = new AccountConnectionChallengesAPI.AccountConnectionChallenges(this._client);
|
|
39
45
|
this.bookmarks = new BookmarksAPI.Bookmarks(this._client);
|
|
40
46
|
this.lists = new ListsAPI.Lists(this._client);
|
|
41
47
|
}
|
|
42
48
|
/**
|
|
43
|
-
* Retrieve the full content of an X Article (long-form post) by tweet ID.
|
|
49
|
+
* Retrieve the full content of an X Article (long-form post) by numeric tweet ID.
|
|
50
|
+
* Returns article_not_found when the tweet is valid but is not an X Article.
|
|
44
51
|
*
|
|
45
52
|
* @example
|
|
46
53
|
* ```ts
|
|
@@ -85,6 +92,7 @@ class X extends resource_1.APIResource {
|
|
|
85
92
|
}
|
|
86
93
|
}
|
|
87
94
|
exports.X = X;
|
|
95
|
+
X.WriteActions = write_actions_1.WriteActions;
|
|
88
96
|
X.Tweets = tweets_1.Tweets;
|
|
89
97
|
X.Users = users_1.Users;
|
|
90
98
|
X.Followers = followers_1.Followers;
|
|
@@ -93,6 +101,7 @@ X.Media = media_1.Media;
|
|
|
93
101
|
X.Profile = profile_1.Profile;
|
|
94
102
|
X.Communities = communities_1.Communities;
|
|
95
103
|
X.Accounts = accounts_1.Accounts;
|
|
104
|
+
X.AccountConnectionChallenges = account_connection_challenges_1.AccountConnectionChallenges;
|
|
96
105
|
X.Bookmarks = bookmarks_1.Bookmarks;
|
|
97
106
|
X.Lists = lists_1.Lists;
|
|
98
107
|
//# sourceMappingURL=x.js.map
|
package/resources/x/x.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x.js","sourceRoot":"","sources":["../../src/resources/x/x.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;A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AC,CAAC;IAC9D,CAAC;CACF;AAxED,cAwEC;AAuMD,CAAC,CAAC,YAAY,GAAG,4BAAY,CAAC;AAC9B,CAAC,CAAC,MAAM,GAAG,eAAM,CAAC;AAClB,CAAC,CAAC,KAAK,GAAG,aAAK,CAAC;AAChB,CAAC,CAAC,SAAS,GAAG,qBAAS,CAAC;AACxB,CAAC,CAAC,EAAE,GAAG,OAAE,CAAC;AACV,CAAC,CAAC,KAAK,GAAG,aAAK,CAAC;AAChB,CAAC,CAAC,OAAO,GAAG,iBAAO,CAAC;AACpB,CAAC,CAAC,WAAW,GAAG,yBAAW,CAAC;AAC5B,CAAC,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACtB,CAAC,CAAC,2BAA2B,GAAG,2DAA2B,CAAC;AAC5D,CAAC,CAAC,SAAS,GAAG,qBAAS,CAAC;AACxB,CAAC,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
package/resources/x/x.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as AccountConnectionChallengesAPI from "./account-connection-challenges.mjs";
|
|
4
|
+
import { AccountConnectionChallenges, } from "./account-connection-challenges.mjs";
|
|
3
5
|
import * as AccountsAPI from "./accounts.mjs";
|
|
4
6
|
import { Accounts, } from "./accounts.mjs";
|
|
5
7
|
import * as BookmarksAPI from "./bookmarks.mjs";
|
|
@@ -14,6 +16,8 @@ import * as MediaAPI from "./media.mjs";
|
|
|
14
16
|
import { Media, } from "./media.mjs";
|
|
15
17
|
import * as ProfileAPI from "./profile.mjs";
|
|
16
18
|
import { Profile, } from "./profile.mjs";
|
|
19
|
+
import * as WriteActionsAPI from "./write-actions.mjs";
|
|
20
|
+
import { WriteActions } from "./write-actions.mjs";
|
|
17
21
|
import * as CommunitiesAPI from "./communities/communities.mjs";
|
|
18
22
|
import { Communities, } from "./communities/communities.mjs";
|
|
19
23
|
import * as TweetsAPI from "./tweets/tweets.mjs";
|
|
@@ -24,6 +28,7 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
24
28
|
export class X extends APIResource {
|
|
25
29
|
constructor() {
|
|
26
30
|
super(...arguments);
|
|
31
|
+
this.writeActions = new WriteActionsAPI.WriteActions(this._client);
|
|
27
32
|
this.tweets = new TweetsAPI.Tweets(this._client);
|
|
28
33
|
this.users = new UsersAPI.Users(this._client);
|
|
29
34
|
this.followers = new FollowersAPI.Followers(this._client);
|
|
@@ -32,11 +37,13 @@ export class X extends APIResource {
|
|
|
32
37
|
this.profile = new ProfileAPI.Profile(this._client);
|
|
33
38
|
this.communities = new CommunitiesAPI.Communities(this._client);
|
|
34
39
|
this.accounts = new AccountsAPI.Accounts(this._client);
|
|
40
|
+
this.accountConnectionChallenges = new AccountConnectionChallengesAPI.AccountConnectionChallenges(this._client);
|
|
35
41
|
this.bookmarks = new BookmarksAPI.Bookmarks(this._client);
|
|
36
42
|
this.lists = new ListsAPI.Lists(this._client);
|
|
37
43
|
}
|
|
38
44
|
/**
|
|
39
|
-
* Retrieve the full content of an X Article (long-form post) by tweet ID.
|
|
45
|
+
* Retrieve the full content of an X Article (long-form post) by numeric tweet ID.
|
|
46
|
+
* Returns article_not_found when the tweet is valid but is not an X Article.
|
|
40
47
|
*
|
|
41
48
|
* @example
|
|
42
49
|
* ```ts
|
|
@@ -80,6 +87,7 @@ export class X extends APIResource {
|
|
|
80
87
|
return this._client.get('/x/trends', { query, ...options });
|
|
81
88
|
}
|
|
82
89
|
}
|
|
90
|
+
X.WriteActions = WriteActions;
|
|
83
91
|
X.Tweets = Tweets;
|
|
84
92
|
X.Users = Users;
|
|
85
93
|
X.Followers = Followers;
|
|
@@ -88,6 +96,7 @@ X.Media = Media;
|
|
|
88
96
|
X.Profile = Profile;
|
|
89
97
|
X.Communities = Communities;
|
|
90
98
|
X.Accounts = Accounts;
|
|
99
|
+
X.AccountConnectionChallenges = AccountConnectionChallenges;
|
|
91
100
|
X.Bookmarks = Bookmarks;
|
|
92
101
|
X.Lists = Lists;
|
|
93
102
|
//# sourceMappingURL=x.mjs.map
|
package/resources/x/x.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x.mjs","sourceRoot":"","sources":["../../src/resources/x/x.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"x.mjs","sourceRoot":"","sources":["../../src/resources/x/x.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,8BAA8B,4CAAwC;AAClF,OAAO,EAGL,2BAA2B,GAC5B,4CAAwC;AACzC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAQL,QAAQ,GAGT,uBAAmB;AACpB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAuD,SAAS,EAAE,wBAAoB;AAC7F,OAAO,KAAK,KAAK,iBAAa;AAC9B,OAAO,EAAE,EAAE,EAAoF,iBAAa;AAC5G,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAA8C,SAAS,EAAE,wBAAoB;AACpF,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAIL,KAAK,GACN,oBAAgB;AACjB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,KAAK,GAKN,oBAAgB;AACjB,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,GAOR,sBAAkB;AACnB,OAAO,KAAK,eAAe,4BAAwB;AACnD,OAAO,EAA+B,YAAY,EAAE,4BAAwB;AAC5E,OAAO,KAAK,cAAc,sCAAkC;AAC5D,OAAO,EACL,WAAW,GASZ,sCAAkC;AACnC,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAeL,MAAM,GACP,4BAAwB;AACzB,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,EAeL,KAAK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
+
{"version":3,"file":"x.d.mts","sourceRoot":"","sources":["../src/resources/x.ts"],"names":[],"mappings":"AAEA,8BAA0B"}
|
package/resources/x.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x.d.ts","sourceRoot":"","sources":["../src/resources/x.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"x.d.ts","sourceRoot":"","sources":["../src/resources/x.ts"],"names":[],"mappings":"AAEA,6BAA0B"}
|
package/resources/x.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x.mjs","sourceRoot":"","sources":["../src/resources/x.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"x.mjs","sourceRoot":"","sources":["../src/resources/x.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,8BAA0B"}
|
package/resources.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,sCAAkC"}
|
package/resources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,qCAAkC"}
|
package/resources.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,sCAAkC"}
|
package/src/client.ts
CHANGED
|
@@ -25,17 +25,12 @@ import {
|
|
|
25
25
|
AccountUpdateLocaleParams,
|
|
26
26
|
AccountUpdateLocaleResponse,
|
|
27
27
|
} from './resources/account';
|
|
28
|
-
import {
|
|
29
|
-
APIKey,
|
|
30
|
-
APIKeyCreateParams,
|
|
31
|
-
APIKeyCreateResponse,
|
|
32
|
-
APIKeyListResponse,
|
|
33
|
-
APIKeyRevokeResponse,
|
|
34
|
-
APIKeys,
|
|
35
|
-
} from './resources/api-keys';
|
|
36
28
|
import { Compose, ComposeCreateParams, ComposeCreateResponse } from './resources/compose';
|
|
37
29
|
import {
|
|
30
|
+
CreditRedirectTopupCheckoutParams,
|
|
38
31
|
CreditRetrieveBalanceResponse,
|
|
32
|
+
CreditRetrieveTopupStatusParams,
|
|
33
|
+
CreditRetrieveTopupStatusResponse,
|
|
39
34
|
CreditTopupBalanceParams,
|
|
40
35
|
CreditTopupBalanceResponse,
|
|
41
36
|
Credits,
|
|
@@ -75,14 +70,14 @@ import {
|
|
|
75
70
|
Extractions,
|
|
76
71
|
} from './resources/extractions';
|
|
77
72
|
import {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
} from './resources/
|
|
73
|
+
GuestWalletAmount,
|
|
74
|
+
GuestWalletCreateParams,
|
|
75
|
+
GuestWalletCreateResponse,
|
|
76
|
+
GuestWalletRetrieveStatusResponse,
|
|
77
|
+
GuestWalletTopupParams,
|
|
78
|
+
GuestWalletTopupResponse,
|
|
79
|
+
GuestWallets,
|
|
80
|
+
} from './resources/guest-wallets';
|
|
86
81
|
import {
|
|
87
82
|
Radar,
|
|
88
83
|
RadarItem,
|
|
@@ -100,7 +95,7 @@ import {
|
|
|
100
95
|
StyleUpdateParams,
|
|
101
96
|
Styles,
|
|
102
97
|
} from './resources/styles';
|
|
103
|
-
import { Subscribe, SubscribeCreateResponse } from './resources/subscribe';
|
|
98
|
+
import { Subscribe, SubscribeCreateParams, SubscribeCreateResponse } from './resources/subscribe';
|
|
104
99
|
import { TrendListParams, TrendListResponse, Trends } from './resources/trends';
|
|
105
100
|
import {
|
|
106
101
|
Delivery,
|
|
@@ -110,10 +105,20 @@ import {
|
|
|
110
105
|
WebhookDeactivateResponse,
|
|
111
106
|
WebhookListDeliveriesResponse,
|
|
112
107
|
WebhookListResponse,
|
|
108
|
+
WebhookResumeResponse,
|
|
113
109
|
WebhookTestResponse,
|
|
114
110
|
WebhookUpdateParams,
|
|
115
111
|
Webhooks,
|
|
116
112
|
} from './resources/webhooks';
|
|
113
|
+
import {
|
|
114
|
+
Monitor,
|
|
115
|
+
MonitorCreateParams,
|
|
116
|
+
MonitorCreateResponse,
|
|
117
|
+
MonitorDeactivateResponse,
|
|
118
|
+
MonitorListResponse,
|
|
119
|
+
MonitorUpdateParams,
|
|
120
|
+
Monitors,
|
|
121
|
+
} from './resources/monitors/monitors';
|
|
117
122
|
import { Support } from './resources/support/support';
|
|
118
123
|
import {
|
|
119
124
|
X,
|
|
@@ -277,6 +282,18 @@ export class XTwitterScraper {
|
|
|
277
282
|
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
278
283
|
this.#encoder = Opts.FallbackEncoder;
|
|
279
284
|
|
|
285
|
+
const customHeadersEnv = readEnv('X_TWITTER_SCRAPER_CUSTOM_HEADERS');
|
|
286
|
+
if (customHeadersEnv) {
|
|
287
|
+
const parsed: Record<string, string> = {};
|
|
288
|
+
for (const line of customHeadersEnv.split('\n')) {
|
|
289
|
+
const colon = line.indexOf(':');
|
|
290
|
+
if (colon >= 0) {
|
|
291
|
+
parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
options.defaultHeaders = { ...parsed, ...options.defaultHeaders };
|
|
295
|
+
}
|
|
296
|
+
|
|
280
297
|
this._options = options;
|
|
281
298
|
|
|
282
299
|
this.apiKey = apiKey;
|
|
@@ -330,19 +347,25 @@ export class XTwitterScraper {
|
|
|
330
347
|
}
|
|
331
348
|
|
|
332
349
|
throw new Error(
|
|
333
|
-
'Could not resolve authentication method. Expected either apiKey or bearerToken to be set. Or for one of the "
|
|
350
|
+
'Could not resolve authentication method. Expected either apiKey or bearerToken to be set. Or for one of the "x-api-key" or "Authorization" headers to be explicitly omitted',
|
|
334
351
|
);
|
|
335
352
|
}
|
|
336
353
|
|
|
337
|
-
protected async authHeaders(
|
|
338
|
-
|
|
354
|
+
protected async authHeaders(
|
|
355
|
+
opts: FinalRequestOptions,
|
|
356
|
+
schemes: { apiKeyAuth?: boolean; oauthBearerAuth?: boolean },
|
|
357
|
+
): Promise<NullableHeaders | undefined> {
|
|
358
|
+
return buildHeaders([
|
|
359
|
+
schemes.apiKeyAuth ? await this.apiKeyAuth(opts) : null,
|
|
360
|
+
schemes.oauthBearerAuth ? await this.oauthBearerAuth(opts) : null,
|
|
361
|
+
]);
|
|
339
362
|
}
|
|
340
363
|
|
|
341
364
|
protected async apiKeyAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
342
365
|
if (this.apiKey == null) {
|
|
343
366
|
return undefined;
|
|
344
367
|
}
|
|
345
|
-
return buildHeaders([{ '
|
|
368
|
+
return buildHeaders([{ 'x-api-key': this.apiKey }]);
|
|
346
369
|
}
|
|
347
370
|
|
|
348
371
|
protected async oauthBearerAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
@@ -769,6 +792,7 @@ export class XTwitterScraper {
|
|
|
769
792
|
idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey;
|
|
770
793
|
}
|
|
771
794
|
|
|
795
|
+
const security = options.__security ?? { apiKeyAuth: true, oauthBearerAuth: true };
|
|
772
796
|
const headers = buildHeaders([
|
|
773
797
|
idempotencyHeaders,
|
|
774
798
|
{
|
|
@@ -778,13 +802,15 @@ export class XTwitterScraper {
|
|
|
778
802
|
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
779
803
|
...getPlatformHeaders(),
|
|
780
804
|
},
|
|
781
|
-
await this.authHeaders(options),
|
|
805
|
+
await this.authHeaders(options, security),
|
|
782
806
|
this._options.defaultHeaders,
|
|
783
807
|
bodyHeaders,
|
|
784
808
|
options.headers,
|
|
785
809
|
]);
|
|
786
810
|
|
|
787
|
-
|
|
811
|
+
if (security.apiKeyAuth || security.oauthBearerAuth) {
|
|
812
|
+
this.validateHeaders(headers);
|
|
813
|
+
}
|
|
788
814
|
|
|
789
815
|
return headers.values;
|
|
790
816
|
}
|
|
@@ -795,11 +821,19 @@ export class XTwitterScraper {
|
|
|
795
821
|
return () => controller.abort();
|
|
796
822
|
}
|
|
797
823
|
|
|
798
|
-
private buildBody({ options
|
|
824
|
+
private buildBody({ options }: { options: FinalRequestOptions }): {
|
|
799
825
|
bodyHeaders: HeadersLike;
|
|
800
826
|
body: BodyInit | undefined;
|
|
801
827
|
} {
|
|
828
|
+
const { body, headers: rawHeaders } = options;
|
|
802
829
|
if (!body) {
|
|
830
|
+
// A resource method always passes a `body` key when its operation defines a
|
|
831
|
+
// request body, even if the caller omitted an optional body param. Keep the
|
|
832
|
+
// content-type for those, and only elide it for operations with no body at
|
|
833
|
+
// all (e.g. GET/DELETE).
|
|
834
|
+
if (body == null && 'body' in options) {
|
|
835
|
+
return this.#encoder({ body, headers: buildHeaders([rawHeaders]) });
|
|
836
|
+
}
|
|
803
837
|
return { bodyHeaders: undefined, body: undefined };
|
|
804
838
|
}
|
|
805
839
|
const headers = buildHeaders([rawHeaders]);
|
|
@@ -864,11 +898,7 @@ export class XTwitterScraper {
|
|
|
864
898
|
*/
|
|
865
899
|
account: API.Account = new API.Account(this);
|
|
866
900
|
/**
|
|
867
|
-
*
|
|
868
|
-
*/
|
|
869
|
-
apiKeys: API.APIKeys = new API.APIKeys(this);
|
|
870
|
-
/**
|
|
871
|
-
* Subscription, billing, and credits
|
|
901
|
+
* Subscription, billing, and usage balance
|
|
872
902
|
*/
|
|
873
903
|
subscribe: API.Subscribe = new API.Subscribe(this);
|
|
874
904
|
/**
|
|
@@ -896,7 +926,7 @@ export class XTwitterScraper {
|
|
|
896
926
|
*/
|
|
897
927
|
events: API.Events = new API.Events(this);
|
|
898
928
|
/**
|
|
899
|
-
* Bulk data extraction (
|
|
929
|
+
* Bulk data extraction (23 tool types)
|
|
900
930
|
*/
|
|
901
931
|
extractions: API.Extractions = new API.Extractions(this);
|
|
902
932
|
/**
|
|
@@ -914,13 +944,16 @@ export class XTwitterScraper {
|
|
|
914
944
|
trends: API.Trends = new API.Trends(this);
|
|
915
945
|
support: API.Support = new API.Support(this);
|
|
916
946
|
/**
|
|
917
|
-
* Subscription, billing, and
|
|
947
|
+
* Subscription, billing, and usage balance
|
|
918
948
|
*/
|
|
919
949
|
credits: API.Credits = new API.Credits(this);
|
|
950
|
+
/**
|
|
951
|
+
* Accountless prepaid access for paid read endpoints
|
|
952
|
+
*/
|
|
953
|
+
guestWallets: API.GuestWallets = new API.GuestWallets(this);
|
|
920
954
|
}
|
|
921
955
|
|
|
922
956
|
XTwitterScraper.Account = Account;
|
|
923
|
-
XTwitterScraper.APIKeys = APIKeys;
|
|
924
957
|
XTwitterScraper.Subscribe = Subscribe;
|
|
925
958
|
XTwitterScraper.Compose = Compose;
|
|
926
959
|
XTwitterScraper.Drafts = Drafts;
|
|
@@ -935,6 +968,7 @@ XTwitterScraper.X = X;
|
|
|
935
968
|
XTwitterScraper.Trends = Trends;
|
|
936
969
|
XTwitterScraper.Support = Support;
|
|
937
970
|
XTwitterScraper.Credits = Credits;
|
|
971
|
+
XTwitterScraper.GuestWallets = GuestWallets;
|
|
938
972
|
|
|
939
973
|
export declare namespace XTwitterScraper {
|
|
940
974
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -949,16 +983,11 @@ export declare namespace XTwitterScraper {
|
|
|
949
983
|
};
|
|
950
984
|
|
|
951
985
|
export {
|
|
952
|
-
|
|
953
|
-
type
|
|
954
|
-
type
|
|
955
|
-
type APIKeyListResponse as APIKeyListResponse,
|
|
956
|
-
type APIKeyRevokeResponse as APIKeyRevokeResponse,
|
|
957
|
-
type APIKeyCreateParams as APIKeyCreateParams,
|
|
986
|
+
Subscribe as Subscribe,
|
|
987
|
+
type SubscribeCreateResponse as SubscribeCreateResponse,
|
|
988
|
+
type SubscribeCreateParams as SubscribeCreateParams,
|
|
958
989
|
};
|
|
959
990
|
|
|
960
|
-
export { Subscribe as Subscribe, type SubscribeCreateResponse as SubscribeCreateResponse };
|
|
961
|
-
|
|
962
991
|
export {
|
|
963
992
|
Compose as Compose,
|
|
964
993
|
type ComposeCreateResponse as ComposeCreateResponse,
|
|
@@ -1046,6 +1075,7 @@ export declare namespace XTwitterScraper {
|
|
|
1046
1075
|
type WebhookListResponse as WebhookListResponse,
|
|
1047
1076
|
type WebhookDeactivateResponse as WebhookDeactivateResponse,
|
|
1048
1077
|
type WebhookListDeliveriesResponse as WebhookListDeliveriesResponse,
|
|
1078
|
+
type WebhookResumeResponse as WebhookResumeResponse,
|
|
1049
1079
|
type WebhookTestResponse as WebhookTestResponse,
|
|
1050
1080
|
type WebhookCreateParams as WebhookCreateParams,
|
|
1051
1081
|
type WebhookUpdateParams as WebhookUpdateParams,
|
|
@@ -1072,14 +1102,30 @@ export declare namespace XTwitterScraper {
|
|
|
1072
1102
|
export {
|
|
1073
1103
|
Credits as Credits,
|
|
1074
1104
|
type CreditRetrieveBalanceResponse as CreditRetrieveBalanceResponse,
|
|
1105
|
+
type CreditRetrieveTopupStatusResponse as CreditRetrieveTopupStatusResponse,
|
|
1075
1106
|
type CreditTopupBalanceResponse as CreditTopupBalanceResponse,
|
|
1107
|
+
type CreditRedirectTopupCheckoutParams as CreditRedirectTopupCheckoutParams,
|
|
1108
|
+
type CreditRetrieveTopupStatusParams as CreditRetrieveTopupStatusParams,
|
|
1076
1109
|
type CreditTopupBalanceParams as CreditTopupBalanceParams,
|
|
1077
1110
|
};
|
|
1078
1111
|
|
|
1112
|
+
export {
|
|
1113
|
+
GuestWallets as GuestWallets,
|
|
1114
|
+
type GuestWalletAmount as GuestWalletAmount,
|
|
1115
|
+
type GuestWalletCreateResponse as GuestWalletCreateResponse,
|
|
1116
|
+
type GuestWalletRetrieveStatusResponse as GuestWalletRetrieveStatusResponse,
|
|
1117
|
+
type GuestWalletTopupResponse as GuestWalletTopupResponse,
|
|
1118
|
+
type GuestWalletCreateParams as GuestWalletCreateParams,
|
|
1119
|
+
type GuestWalletTopupParams as GuestWalletTopupParams,
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
export type ContentDisclosure = API.ContentDisclosure;
|
|
1123
|
+
export type EmbeddedTweet = API.EmbeddedTweet;
|
|
1079
1124
|
export type Error = API.Error;
|
|
1080
1125
|
export type EventType = API.EventType;
|
|
1081
1126
|
export type PaginatedTweets = API.PaginatedTweets;
|
|
1082
1127
|
export type PaginatedUsers = API.PaginatedUsers;
|
|
1083
1128
|
export type SearchTweet = API.SearchTweet;
|
|
1129
|
+
export type TweetMedia = API.TweetMedia;
|
|
1084
1130
|
export type UserProfile = API.UserProfile;
|
|
1085
1131
|
}
|