x-twitter-scraper 0.1.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 +17 -0
- package/LICENSE +201 -0
- package/README.md +398 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +295 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +295 -0
- package/client.d.ts.map +1 -0
- package/client.js +592 -0
- package/client.js.map +1 -0
- package/client.mjs +588 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +79 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +79 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +143 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/account.d.mts +53 -0
- package/resources/account.d.mts.map +1 -0
- package/resources/account.d.ts +53 -0
- package/resources/account.d.ts.map +1 -0
- package/resources/account.js +30 -0
- package/resources/account.js.map +1 -0
- package/resources/account.mjs +26 -0
- package/resources/account.mjs.map +1 -0
- package/resources/api-keys.d.mts +48 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +48 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +31 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +27 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/bot/bot.d.mts +10 -0
- package/resources/bot/bot.d.mts.map +1 -0
- package/resources/bot/bot.d.ts +10 -0
- package/resources/bot/bot.d.ts.map +1 -0
- package/resources/bot/bot.js +17 -0
- package/resources/bot/bot.js.map +1 -0
- package/resources/bot/bot.mjs +12 -0
- package/resources/bot/bot.mjs.map +1 -0
- package/resources/bot/index.d.mts +3 -0
- package/resources/bot/index.d.mts.map +1 -0
- package/resources/bot/index.d.ts +3 -0
- package/resources/bot/index.d.ts.map +1 -0
- package/resources/bot/index.js +9 -0
- package/resources/bot/index.js.map +1 -0
- package/resources/bot/index.mjs +4 -0
- package/resources/bot/index.mjs.map +1 -0
- package/resources/bot/platform-links.d.mts +4 -0
- package/resources/bot/platform-links.d.mts.map +1 -0
- package/resources/bot/platform-links.d.ts +4 -0
- package/resources/bot/platform-links.d.ts.map +1 -0
- package/resources/bot/platform-links.js +9 -0
- package/resources/bot/platform-links.js.map +1 -0
- package/resources/bot/platform-links.mjs +5 -0
- package/resources/bot/platform-links.mjs.map +1 -0
- package/resources/bot.d.mts +2 -0
- package/resources/bot.d.mts.map +1 -0
- package/resources/bot.d.ts +2 -0
- package/resources/bot.d.ts.map +1 -0
- package/resources/bot.js +6 -0
- package/resources/bot.js.map +1 -0
- package/resources/bot.mjs +3 -0
- package/resources/bot.mjs.map +1 -0
- package/resources/compose.d.mts +65 -0
- package/resources/compose.d.mts.map +1 -0
- package/resources/compose.d.ts +65 -0
- package/resources/compose.d.ts.map +1 -0
- package/resources/compose.js +18 -0
- package/resources/compose.js.map +1 -0
- package/resources/compose.mjs +14 -0
- package/resources/compose.mjs.map +1 -0
- package/resources/credits.d.mts +35 -0
- package/resources/credits.d.mts.map +1 -0
- package/resources/credits.d.ts +35 -0
- package/resources/credits.d.ts.map +1 -0
- package/resources/credits.js +24 -0
- package/resources/credits.js.map +1 -0
- package/resources/credits.mjs +20 -0
- package/resources/credits.mjs.map +1 -0
- package/resources/drafts.d.mts +60 -0
- package/resources/drafts.d.mts.map +1 -0
- package/resources/drafts.d.ts +60 -0
- package/resources/drafts.d.ts.map +1 -0
- package/resources/drafts.js +41 -0
- package/resources/drafts.js.map +1 -0
- package/resources/drafts.mjs +37 -0
- package/resources/drafts.mjs.map +1 -0
- package/resources/draws.d.mts +103 -0
- package/resources/draws.d.mts.map +1 -0
- package/resources/draws.d.ts +103 -0
- package/resources/draws.d.ts.map +1 -0
- package/resources/draws.js +43 -0
- package/resources/draws.js.map +1 -0
- package/resources/draws.mjs +39 -0
- package/resources/draws.mjs.map +1 -0
- package/resources/events.d.mts +56 -0
- package/resources/events.d.mts.map +1 -0
- package/resources/events.d.ts +56 -0
- package/resources/events.d.ts.map +1 -0
- package/resources/events.js +25 -0
- package/resources/events.js.map +1 -0
- package/resources/events.mjs +21 -0
- package/resources/events.mjs.map +1 -0
- package/resources/extractions.d.mts +128 -0
- package/resources/extractions.d.mts.map +1 -0
- package/resources/extractions.d.ts +128 -0
- package/resources/extractions.d.ts.map +1 -0
- package/resources/extractions.js +49 -0
- package/resources/extractions.js.map +1 -0
- package/resources/extractions.mjs +45 -0
- package/resources/extractions.mjs.map +1 -0
- package/resources/index.d.mts +20 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +20 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +43 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +21 -0
- package/resources/index.mjs.map +1 -0
- package/resources/integrations.d.mts +115 -0
- package/resources/integrations.d.mts.map +1 -0
- package/resources/integrations.d.ts +115 -0
- package/resources/integrations.d.ts.map +1 -0
- package/resources/integrations.js +55 -0
- package/resources/integrations.js.map +1 -0
- package/resources/integrations.mjs +51 -0
- package/resources/integrations.mjs.map +1 -0
- package/resources/monitors.d.mts +66 -0
- package/resources/monitors.d.mts.map +1 -0
- package/resources/monitors.d.ts +66 -0
- package/resources/monitors.d.ts.map +1 -0
- package/resources/monitors.js +43 -0
- package/resources/monitors.js.map +1 -0
- package/resources/monitors.mjs +39 -0
- package/resources/monitors.mjs.map +1 -0
- package/resources/radar.d.mts +54 -0
- package/resources/radar.d.mts.map +1 -0
- package/resources/radar.d.ts +54 -0
- package/resources/radar.d.ts.map +1 -0
- package/resources/radar.js +18 -0
- package/resources/radar.js.map +1 -0
- package/resources/radar.mjs +14 -0
- package/resources/radar.mjs.map +1 -0
- package/resources/shared.d.mts +17 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +17 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/styles.d.mts +115 -0
- package/resources/styles.d.mts.map +1 -0
- package/resources/styles.d.ts +115 -0
- package/resources/styles.d.ts.map +1 -0
- package/resources/styles.js +59 -0
- package/resources/styles.js.map +1 -0
- package/resources/styles.mjs +55 -0
- package/resources/styles.mjs.map +1 -0
- package/resources/subscribe.d.mts +21 -0
- package/resources/subscribe.d.mts.map +1 -0
- package/resources/subscribe.d.ts +21 -0
- package/resources/subscribe.d.ts.map +1 -0
- package/resources/subscribe.js +18 -0
- package/resources/subscribe.js.map +1 -0
- package/resources/subscribe.mjs +14 -0
- package/resources/subscribe.mjs.map +1 -0
- package/resources/support/index.d.mts +3 -0
- package/resources/support/index.d.mts.map +1 -0
- package/resources/support/index.d.ts +3 -0
- package/resources/support/index.d.ts.map +1 -0
- package/resources/support/index.js +9 -0
- package/resources/support/index.js.map +1 -0
- package/resources/support/index.mjs +4 -0
- package/resources/support/index.mjs.map +1 -0
- package/resources/support/support.d.mts +10 -0
- package/resources/support/support.d.mts.map +1 -0
- package/resources/support/support.d.ts +10 -0
- package/resources/support/support.d.ts.map +1 -0
- package/resources/support/support.js +17 -0
- package/resources/support/support.js.map +1 -0
- package/resources/support/support.mjs +12 -0
- package/resources/support/support.mjs.map +1 -0
- package/resources/support/tickets.d.mts +80 -0
- package/resources/support/tickets.d.mts.map +1 -0
- package/resources/support/tickets.d.ts +80 -0
- package/resources/support/tickets.d.ts.map +1 -0
- package/resources/support/tickets.js +43 -0
- package/resources/support/tickets.js.map +1 -0
- package/resources/support/tickets.mjs +39 -0
- package/resources/support/tickets.mjs.map +1 -0
- package/resources/support.d.mts +2 -0
- package/resources/support.d.mts.map +1 -0
- package/resources/support.d.ts +2 -0
- package/resources/support.d.ts.map +1 -0
- package/resources/support.js +6 -0
- package/resources/support.js.map +1 -0
- package/resources/support.mjs +3 -0
- package/resources/support.mjs.map +1 -0
- package/resources/trends.d.mts +36 -0
- package/resources/trends.d.mts.map +1 -0
- package/resources/trends.d.ts +36 -0
- package/resources/trends.d.ts.map +1 -0
- package/resources/trends.js +18 -0
- package/resources/trends.js.map +1 -0
- package/resources/trends.mjs +14 -0
- package/resources/trends.mjs.map +1 -0
- package/resources/webhooks.d.mts +87 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +87 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +49 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +45 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/x/accounts.d.mts +98 -0
- package/resources/x/accounts.d.mts.map +1 -0
- package/resources/x/accounts.d.ts +98 -0
- package/resources/x/accounts.d.ts.map +1 -0
- package/resources/x/accounts.js +43 -0
- package/resources/x/accounts.js.map +1 -0
- package/resources/x/accounts.mjs +39 -0
- package/resources/x/accounts.mjs.map +1 -0
- package/resources/x/bookmarks.d.mts +42 -0
- package/resources/x/bookmarks.d.mts.map +1 -0
- package/resources/x/bookmarks.d.ts +42 -0
- package/resources/x/bookmarks.d.ts.map +1 -0
- package/resources/x/bookmarks.js +24 -0
- package/resources/x/bookmarks.js.map +1 -0
- package/resources/x/bookmarks.mjs +20 -0
- package/resources/x/bookmarks.mjs.map +1 -0
- package/resources/x/communities/communities.d.mts +110 -0
- package/resources/x/communities/communities.d.mts.map +1 -0
- package/resources/x/communities/communities.d.ts +110 -0
- package/resources/x/communities/communities.d.ts.map +1 -0
- package/resources/x/communities/communities.js +71 -0
- package/resources/x/communities/communities.js.map +1 -0
- package/resources/x/communities/communities.mjs +66 -0
- package/resources/x/communities/communities.mjs.map +1 -0
- package/resources/x/communities/index.d.mts +4 -0
- package/resources/x/communities/index.d.mts.map +1 -0
- package/resources/x/communities/index.d.ts +4 -0
- package/resources/x/communities/index.d.ts.map +1 -0
- package/resources/x/communities/index.js +11 -0
- package/resources/x/communities/index.js.map +1 -0
- package/resources/x/communities/index.mjs +5 -0
- package/resources/x/communities/index.mjs.map +1 -0
- package/resources/x/communities/join.d.mts +33 -0
- package/resources/x/communities/join.d.mts.map +1 -0
- package/resources/x/communities/join.d.ts +33 -0
- package/resources/x/communities/join.d.ts.map +1 -0
- package/resources/x/communities/join.js +25 -0
- package/resources/x/communities/join.js.map +1 -0
- package/resources/x/communities/join.mjs +21 -0
- package/resources/x/communities/join.mjs.map +1 -0
- package/resources/x/communities/tweets.d.mts +30 -0
- package/resources/x/communities/tweets.d.mts.map +1 -0
- package/resources/x/communities/tweets.d.ts +30 -0
- package/resources/x/communities/tweets.d.ts.map +1 -0
- package/resources/x/communities/tweets.js +23 -0
- package/resources/x/communities/tweets.js.map +1 -0
- package/resources/x/communities/tweets.mjs +19 -0
- package/resources/x/communities/tweets.mjs.map +1 -0
- package/resources/x/communities.d.mts +2 -0
- package/resources/x/communities.d.mts.map +1 -0
- package/resources/x/communities.d.ts +2 -0
- package/resources/x/communities.d.ts.map +1 -0
- package/resources/x/communities.js +6 -0
- package/resources/x/communities.js.map +1 -0
- package/resources/x/communities.mjs +3 -0
- package/resources/x/communities.mjs.map +1 -0
- package/resources/x/dm.d.mts +54 -0
- package/resources/x/dm.d.mts.map +1 -0
- package/resources/x/dm.d.ts +54 -0
- package/resources/x/dm.d.ts.map +1 -0
- package/resources/x/dm.js +22 -0
- package/resources/x/dm.js.map +1 -0
- package/resources/x/dm.mjs +18 -0
- package/resources/x/dm.mjs.map +1 -0
- package/resources/x/followers.d.mts +32 -0
- package/resources/x/followers.d.mts.map +1 -0
- package/resources/x/followers.d.ts +32 -0
- package/resources/x/followers.d.ts.map +1 -0
- package/resources/x/followers.js +18 -0
- package/resources/x/followers.js.map +1 -0
- package/resources/x/followers.mjs +14 -0
- package/resources/x/followers.mjs.map +1 -0
- package/resources/x/index.d.mts +12 -0
- package/resources/x/index.d.mts.map +1 -0
- package/resources/x/index.d.ts +12 -0
- package/resources/x/index.d.ts.map +1 -0
- package/resources/x/index.js +27 -0
- package/resources/x/index.js.map +1 -0
- package/resources/x/index.mjs +13 -0
- package/resources/x/index.mjs.map +1 -0
- package/resources/x/lists.d.mts +54 -0
- package/resources/x/lists.d.mts.map +1 -0
- package/resources/x/lists.d.ts +54 -0
- package/resources/x/lists.d.ts.map +1 -0
- package/resources/x/lists.js +44 -0
- package/resources/x/lists.js.map +1 -0
- package/resources/x/lists.mjs +40 -0
- package/resources/x/lists.mjs.map +1 -0
- package/resources/x/media.d.mts +53 -0
- package/resources/x/media.d.mts.map +1 -0
- package/resources/x/media.d.ts +53 -0
- package/resources/x/media.d.ts.map +1 -0
- package/resources/x/media.js +25 -0
- package/resources/x/media.js.map +1 -0
- package/resources/x/media.mjs +21 -0
- package/resources/x/media.mjs.map +1 -0
- package/resources/x/profile.d.mts +73 -0
- package/resources/x/profile.d.mts.map +1 -0
- package/resources/x/profile.d.ts +73 -0
- package/resources/x/profile.d.ts.map +1 -0
- package/resources/x/profile.js +31 -0
- package/resources/x/profile.js.map +1 -0
- package/resources/x/profile.mjs +27 -0
- package/resources/x/profile.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +4 -0
- package/resources/x/tweets/index.d.mts.map +1 -0
- package/resources/x/tweets/index.d.ts +4 -0
- package/resources/x/tweets/index.d.ts.map +1 -0
- package/resources/x/tweets/index.js +11 -0
- package/resources/x/tweets/index.js.map +1 -0
- package/resources/x/tweets/index.mjs +5 -0
- package/resources/x/tweets/index.mjs.map +1 -0
- package/resources/x/tweets/like.d.mts +38 -0
- package/resources/x/tweets/like.d.mts.map +1 -0
- package/resources/x/tweets/like.d.ts +38 -0
- package/resources/x/tweets/like.d.ts.map +1 -0
- package/resources/x/tweets/like.js +25 -0
- package/resources/x/tweets/like.js.map +1 -0
- package/resources/x/tweets/like.mjs +21 -0
- package/resources/x/tweets/like.mjs.map +1 -0
- package/resources/x/tweets/retweet.d.mts +38 -0
- package/resources/x/tweets/retweet.d.mts.map +1 -0
- package/resources/x/tweets/retweet.d.ts +38 -0
- package/resources/x/tweets/retweet.d.ts.map +1 -0
- package/resources/x/tweets/retweet.js +25 -0
- package/resources/x/tweets/retweet.js.map +1 -0
- package/resources/x/tweets/retweet.mjs +21 -0
- package/resources/x/tweets/retweet.mjs.map +1 -0
- package/resources/x/tweets/tweets.d.mts +207 -0
- package/resources/x/tweets/tweets.d.mts.map +1 -0
- package/resources/x/tweets/tweets.d.ts +207 -0
- package/resources/x/tweets/tweets.d.ts.map +1 -0
- package/resources/x/tweets/tweets.js +87 -0
- package/resources/x/tweets/tweets.js.map +1 -0
- package/resources/x/tweets/tweets.mjs +82 -0
- package/resources/x/tweets/tweets.mjs.map +1 -0
- package/resources/x/tweets.d.mts +2 -0
- package/resources/x/tweets.d.mts.map +1 -0
- package/resources/x/tweets.d.ts +2 -0
- package/resources/x/tweets.d.ts.map +1 -0
- package/resources/x/tweets.js +6 -0
- package/resources/x/tweets.js.map +1 -0
- package/resources/x/tweets.mjs +3 -0
- package/resources/x/tweets.mjs.map +1 -0
- package/resources/x/users/follow.d.mts +38 -0
- package/resources/x/users/follow.d.mts.map +1 -0
- package/resources/x/users/follow.d.ts +38 -0
- package/resources/x/users/follow.d.ts.map +1 -0
- package/resources/x/users/follow.js +25 -0
- package/resources/x/users/follow.js.map +1 -0
- package/resources/x/users/follow.mjs +21 -0
- package/resources/x/users/follow.mjs.map +1 -0
- package/resources/x/users/index.d.mts +3 -0
- package/resources/x/users/index.d.mts.map +1 -0
- package/resources/x/users/index.d.ts +3 -0
- package/resources/x/users/index.d.ts.map +1 -0
- package/resources/x/users/index.js +9 -0
- package/resources/x/users/index.js.map +1 -0
- package/resources/x/users/index.mjs +4 -0
- package/resources/x/users/index.mjs.map +1 -0
- package/resources/x/users/users.d.mts +162 -0
- package/resources/x/users/users.d.mts.map +1 -0
- package/resources/x/users/users.d.ts +162 -0
- package/resources/x/users/users.d.ts.map +1 -0
- package/resources/x/users/users.js +112 -0
- package/resources/x/users/users.js.map +1 -0
- package/resources/x/users/users.mjs +107 -0
- package/resources/x/users/users.mjs.map +1 -0
- package/resources/x/users.d.mts +2 -0
- package/resources/x/users.d.mts.map +1 -0
- package/resources/x/users.d.ts +2 -0
- package/resources/x/users.d.ts.map +1 -0
- package/resources/x/users.js +6 -0
- package/resources/x/users.js.map +1 -0
- package/resources/x/users.mjs +3 -0
- package/resources/x/users.mjs.map +1 -0
- package/resources/x/x.d.mts +135 -0
- package/resources/x/x.d.mts.map +1 -0
- package/resources/x/x.d.ts +135 -0
- package/resources/x/x.d.ts.map +1 -0
- package/resources/x/x.js +85 -0
- package/resources/x/x.js.map +1 -0
- package/resources/x/x.mjs +80 -0
- package/resources/x/x.mjs.map +1 -0
- package/resources/x.d.mts +2 -0
- package/resources/x.d.mts.map +1 -0
- package/resources/x.d.ts +2 -0
- package/resources/x.d.ts.map +1 -0
- package/resources/x.js +6 -0
- package/resources/x.js.map +1 -0
- package/resources/x.mjs +3 -0
- package/resources/x.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1123 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/request-options.ts +93 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/account.ts +88 -0
- package/src/resources/api-keys.ts +80 -0
- package/src/resources/bot/bot.ts +15 -0
- package/src/resources/bot/index.ts +4 -0
- package/src/resources/bot/platform-links.ts +5 -0
- package/src/resources/bot.ts +3 -0
- package/src/resources/compose.ts +83 -0
- package/src/resources/credits.ts +56 -0
- package/src/resources/drafts.ts +107 -0
- package/src/resources/draws.ts +192 -0
- package/src/resources/events.ts +89 -0
- package/src/resources/extractions.ts +321 -0
- package/src/resources/index.ts +121 -0
- package/src/resources/integrations.ts +183 -0
- package/src/resources/monitors.ts +109 -0
- package/src/resources/radar.ts +82 -0
- package/src/resources/shared.ts +57 -0
- package/src/resources/styles.ts +184 -0
- package/src/resources/subscribe.ts +29 -0
- package/src/resources/support/index.ts +14 -0
- package/src/resources/support/support.ts +35 -0
- package/src/resources/support/tickets.ts +131 -0
- package/src/resources/support.ts +3 -0
- package/src/resources/trends.ts +53 -0
- package/src/resources/webhooks.ts +147 -0
- package/src/resources/x/accounts.ts +154 -0
- package/src/resources/x/bookmarks.ts +63 -0
- package/src/resources/x/communities/communities.ts +194 -0
- package/src/resources/x/communities/index.ts +16 -0
- package/src/resources/x/communities/join.ts +52 -0
- package/src/resources/x/communities/tweets.ts +43 -0
- package/src/resources/x/communities.ts +3 -0
- package/src/resources/x/dm.ts +88 -0
- package/src/resources/x/followers.ts +46 -0
- package/src/resources/x/index.ts +95 -0
- package/src/resources/x/lists.ts +101 -0
- package/src/resources/x/media.ts +79 -0
- package/src/resources/x/profile.ts +116 -0
- package/src/resources/x/tweets/index.ts +34 -0
- package/src/resources/x/tweets/like.ts +56 -0
- package/src/resources/x/tweets/retweet.ts +64 -0
- package/src/resources/x/tweets/tweets.ts +367 -0
- package/src/resources/x/tweets.ts +3 -0
- package/src/resources/x/users/follow.ts +64 -0
- package/src/resources/x/users/index.ts +23 -0
- package/src/resources/x/users/users.ts +311 -0
- package/src/resources/x/users.ts +3 -0
- package/src/resources/x/x.ts +368 -0
- package/src/resources/x.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
package/client.d.mts
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
|
+
import * as Opts from "./internal/request-options.mjs";
|
|
5
|
+
import * as Errors from "./core/error.mjs";
|
|
6
|
+
import * as Uploads from "./core/uploads.mjs";
|
|
7
|
+
import * as API from "./resources/index.mjs";
|
|
8
|
+
import { APIPromise } from "./core/api-promise.mjs";
|
|
9
|
+
import { Account, AccountRetrieveResponse, AccountSetXUsernameParams, AccountSetXUsernameResponse, AccountUpdateLocaleParams, AccountUpdateLocaleResponse } from "./resources/account.mjs";
|
|
10
|
+
import { APIKey, APIKeyCreateParams, APIKeyCreateResponse, APIKeyListResponse, APIKeyRevokeResponse, APIKeys } from "./resources/api-keys.mjs";
|
|
11
|
+
import { Compose, ComposeCreateParams, ComposeCreateResponse } from "./resources/compose.mjs";
|
|
12
|
+
import { CreditRetrieveBalanceResponse, CreditTopupBalanceParams, CreditTopupBalanceResponse, Credits } from "./resources/credits.mjs";
|
|
13
|
+
import { Draft, DraftCreateParams, DraftDetail, DraftListParams, DraftListResponse, Drafts } from "./resources/drafts.mjs";
|
|
14
|
+
import { DrawDetail, DrawExportParams, DrawListItem, DrawListParams, DrawListResponse, DrawRetrieveResponse, DrawRunParams, DrawRunResponse, Draws, Winner } from "./resources/draws.mjs";
|
|
15
|
+
import { Event, EventDetail, EventListParams, EventListResponse, Events } from "./resources/events.mjs";
|
|
16
|
+
import { ExtractionEstimateCostParams, ExtractionEstimateCostResponse, ExtractionExportResultsParams, ExtractionJob, ExtractionListParams, ExtractionListResponse, ExtractionRetrieveParams, ExtractionRetrieveResponse, ExtractionRunParams, ExtractionRunResponse, Extractions } from "./resources/extractions.mjs";
|
|
17
|
+
import { Integration, IntegrationCreateParams, IntegrationDeleteResponse, IntegrationDelivery, IntegrationListDeliveriesParams, IntegrationListDeliveriesResponse, IntegrationListResponse, IntegrationSendTestResponse, IntegrationUpdateParams, Integrations } from "./resources/integrations.mjs";
|
|
18
|
+
import { Monitor, MonitorCreateParams, MonitorCreateResponse, MonitorDeactivateResponse, MonitorListResponse, MonitorUpdateParams, Monitors } from "./resources/monitors.mjs";
|
|
19
|
+
import { Radar, RadarItem, RadarRetrieveTrendingTopicsParams, RadarRetrieveTrendingTopicsResponse } from "./resources/radar.mjs";
|
|
20
|
+
import { StyleAnalyzeParams, StyleCompareParams, StyleCompareResponse, StyleGetPerformanceResponse, StyleListResponse, StyleProfile, StyleProfileSummary, StyleUpdateParams, Styles } from "./resources/styles.mjs";
|
|
21
|
+
import { Subscribe, SubscribeCreateResponse } from "./resources/subscribe.mjs";
|
|
22
|
+
import { TrendListParams, TrendListResponse, Trends } from "./resources/trends.mjs";
|
|
23
|
+
import { Delivery, Webhook, WebhookCreateParams, WebhookCreateResponse, WebhookDeactivateResponse, WebhookListDeliveriesResponse, WebhookListResponse, WebhookTestResponse, WebhookUpdateParams, Webhooks } from "./resources/webhooks.mjs";
|
|
24
|
+
import { Bot } from "./resources/bot/bot.mjs";
|
|
25
|
+
import { Support } from "./resources/support/support.mjs";
|
|
26
|
+
import { X, XGetArticleResponse, XGetHomeTimelineParams, XGetNotificationsParams, XGetNotificationsResponse } from "./resources/x/x.mjs";
|
|
27
|
+
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
28
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
29
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
30
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
|
|
31
|
+
export interface ClientOptions {
|
|
32
|
+
/**
|
|
33
|
+
* Defaults to process.env['X_TWITTER_SCRAPER_API_KEY'].
|
|
34
|
+
*/
|
|
35
|
+
apiKey?: string | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* OAuth 2.1 access token
|
|
38
|
+
*/
|
|
39
|
+
bearerToken?: string | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
42
|
+
*
|
|
43
|
+
* Defaults to process.env['X_TWITTER_SCRAPER_BASE_URL'].
|
|
44
|
+
*/
|
|
45
|
+
baseURL?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
48
|
+
* from the server before timing out a single request.
|
|
49
|
+
*
|
|
50
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
51
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
52
|
+
*
|
|
53
|
+
* @unit milliseconds
|
|
54
|
+
*/
|
|
55
|
+
timeout?: number | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
58
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
59
|
+
*/
|
|
60
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Specify a custom `fetch` function implementation.
|
|
63
|
+
*
|
|
64
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
65
|
+
*/
|
|
66
|
+
fetch?: Fetch | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
69
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
70
|
+
*
|
|
71
|
+
* @default 2
|
|
72
|
+
*/
|
|
73
|
+
maxRetries?: number | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Default headers to include with every request to the API.
|
|
76
|
+
*
|
|
77
|
+
* These can be removed in individual requests by explicitly setting the
|
|
78
|
+
* header to `null` in request options.
|
|
79
|
+
*/
|
|
80
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Default query parameters to include with every request to the API.
|
|
83
|
+
*
|
|
84
|
+
* These can be removed in individual requests by explicitly setting the
|
|
85
|
+
* param to `undefined` in request options.
|
|
86
|
+
*/
|
|
87
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Set the log level.
|
|
90
|
+
*
|
|
91
|
+
* Defaults to process.env['X_TWITTER_SCRAPER_LOG'] or 'warn' if it isn't set.
|
|
92
|
+
*/
|
|
93
|
+
logLevel?: LogLevel | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Set the logger.
|
|
96
|
+
*
|
|
97
|
+
* Defaults to globalThis.console.
|
|
98
|
+
*/
|
|
99
|
+
logger?: Logger | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* API Client for interfacing with the X Twitter Scraper API.
|
|
103
|
+
*/
|
|
104
|
+
export declare class XTwitterScraper {
|
|
105
|
+
#private;
|
|
106
|
+
apiKey: string | null;
|
|
107
|
+
bearerToken: string | null;
|
|
108
|
+
baseURL: string;
|
|
109
|
+
maxRetries: number;
|
|
110
|
+
timeout: number;
|
|
111
|
+
logger: Logger;
|
|
112
|
+
logLevel: LogLevel | undefined;
|
|
113
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
114
|
+
private fetch;
|
|
115
|
+
protected idempotencyHeader?: string;
|
|
116
|
+
private _options;
|
|
117
|
+
/**
|
|
118
|
+
* API Client for interfacing with the X Twitter Scraper API.
|
|
119
|
+
*
|
|
120
|
+
* @param {string | null | undefined} [opts.apiKey=process.env['X_TWITTER_SCRAPER_API_KEY'] ?? null]
|
|
121
|
+
* @param {string | null | undefined} [opts.bearerToken=process.env['X_TWITTER_SCRAPER_BEARER_TOKEN'] ?? null]
|
|
122
|
+
* @param {string} [opts.baseURL=process.env['X_TWITTER_SCRAPER_BASE_URL'] ?? https://xquik.com/api/v1] - Override the default base URL for the API.
|
|
123
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
124
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
125
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
126
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
127
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
128
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
129
|
+
*/
|
|
130
|
+
constructor({ baseURL, apiKey, bearerToken, ...opts }?: ClientOptions);
|
|
131
|
+
/**
|
|
132
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
133
|
+
*/
|
|
134
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
135
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
136
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
137
|
+
protected authHeaders(opts: FinalRequestOptions, schemes: {
|
|
138
|
+
apiKeyAuth?: boolean;
|
|
139
|
+
oauthBearerAuth?: boolean;
|
|
140
|
+
}): Promise<NullableHeaders | undefined>;
|
|
141
|
+
protected apiKeyAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
142
|
+
protected oauthBearerAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
145
|
+
*/
|
|
146
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string;
|
|
147
|
+
private getUserAgent;
|
|
148
|
+
protected defaultIdempotencyKey(): string;
|
|
149
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
150
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
151
|
+
/**
|
|
152
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
153
|
+
*/
|
|
154
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
157
|
+
*
|
|
158
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
159
|
+
* the request properties, e.g. `method` or `url`.
|
|
160
|
+
*/
|
|
161
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
162
|
+
url: string;
|
|
163
|
+
options: FinalRequestOptions;
|
|
164
|
+
}): Promise<void>;
|
|
165
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
166
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
167
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
168
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
169
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
170
|
+
private methodRequest;
|
|
171
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
172
|
+
private makeRequest;
|
|
173
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
174
|
+
private shouldRetry;
|
|
175
|
+
private retryRequest;
|
|
176
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
177
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
178
|
+
retryCount?: number;
|
|
179
|
+
}): Promise<{
|
|
180
|
+
req: FinalizedRequestInit;
|
|
181
|
+
url: string;
|
|
182
|
+
timeout: number;
|
|
183
|
+
}>;
|
|
184
|
+
private buildHeaders;
|
|
185
|
+
private _makeAbort;
|
|
186
|
+
private buildBody;
|
|
187
|
+
static XTwitterScraper: typeof XTwitterScraper;
|
|
188
|
+
static DEFAULT_TIMEOUT: number;
|
|
189
|
+
static XTwitterScraperError: typeof Errors.XTwitterScraperError;
|
|
190
|
+
static APIError: typeof Errors.APIError;
|
|
191
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
192
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
193
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
194
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
195
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
196
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
197
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
198
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
199
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
200
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
201
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
202
|
+
static toFile: typeof Uploads.toFile;
|
|
203
|
+
/**
|
|
204
|
+
* Account info & settings
|
|
205
|
+
*/
|
|
206
|
+
account: API.Account;
|
|
207
|
+
/**
|
|
208
|
+
* API key management (session auth only)
|
|
209
|
+
*/
|
|
210
|
+
apiKeys: API.APIKeys;
|
|
211
|
+
/**
|
|
212
|
+
* Subscription & billing
|
|
213
|
+
*/
|
|
214
|
+
subscribe: API.Subscribe;
|
|
215
|
+
/**
|
|
216
|
+
* Tweet composition, drafts, writing styles & radar
|
|
217
|
+
*/
|
|
218
|
+
compose: API.Compose;
|
|
219
|
+
/**
|
|
220
|
+
* Tweet composition, drafts, writing styles & radar
|
|
221
|
+
*/
|
|
222
|
+
drafts: API.Drafts;
|
|
223
|
+
/**
|
|
224
|
+
* Tweet composition, drafts, writing styles & radar
|
|
225
|
+
*/
|
|
226
|
+
styles: API.Styles;
|
|
227
|
+
/**
|
|
228
|
+
* Tweet composition, drafts, writing styles & radar
|
|
229
|
+
*/
|
|
230
|
+
radar: API.Radar;
|
|
231
|
+
/**
|
|
232
|
+
* Real-time X account monitoring
|
|
233
|
+
*/
|
|
234
|
+
monitors: API.Monitors;
|
|
235
|
+
/**
|
|
236
|
+
* Activity events from monitored accounts
|
|
237
|
+
*/
|
|
238
|
+
events: API.Events;
|
|
239
|
+
/**
|
|
240
|
+
* Bulk data extraction (20 tool types)
|
|
241
|
+
*/
|
|
242
|
+
extractions: API.Extractions;
|
|
243
|
+
/**
|
|
244
|
+
* Giveaway draws from tweet replies
|
|
245
|
+
*/
|
|
246
|
+
draws: API.Draws;
|
|
247
|
+
/**
|
|
248
|
+
* Webhook endpoint management & delivery
|
|
249
|
+
*/
|
|
250
|
+
webhooks: API.Webhooks;
|
|
251
|
+
/**
|
|
252
|
+
* Push notification integrations (Telegram)
|
|
253
|
+
*/
|
|
254
|
+
integrations: API.Integrations;
|
|
255
|
+
/**
|
|
256
|
+
* X data lookups (subscription required)
|
|
257
|
+
*/
|
|
258
|
+
x: API.X;
|
|
259
|
+
/**
|
|
260
|
+
* Trending topics by region
|
|
261
|
+
*/
|
|
262
|
+
trends: API.Trends;
|
|
263
|
+
bot: API.Bot;
|
|
264
|
+
support: API.Support;
|
|
265
|
+
/**
|
|
266
|
+
* Subscription & billing
|
|
267
|
+
*/
|
|
268
|
+
credits: API.Credits;
|
|
269
|
+
}
|
|
270
|
+
export declare namespace XTwitterScraper {
|
|
271
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
272
|
+
export { Account as Account, type AccountRetrieveResponse as AccountRetrieveResponse, type AccountSetXUsernameResponse as AccountSetXUsernameResponse, type AccountUpdateLocaleResponse as AccountUpdateLocaleResponse, type AccountSetXUsernameParams as AccountSetXUsernameParams, type AccountUpdateLocaleParams as AccountUpdateLocaleParams, };
|
|
273
|
+
export { APIKeys as APIKeys, type APIKey as APIKey, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyRevokeResponse as APIKeyRevokeResponse, type APIKeyCreateParams as APIKeyCreateParams, };
|
|
274
|
+
export { Subscribe as Subscribe, type SubscribeCreateResponse as SubscribeCreateResponse };
|
|
275
|
+
export { Compose as Compose, type ComposeCreateResponse as ComposeCreateResponse, type ComposeCreateParams as ComposeCreateParams, };
|
|
276
|
+
export { Drafts as Drafts, type Draft as Draft, type DraftDetail as DraftDetail, type DraftListResponse as DraftListResponse, type DraftCreateParams as DraftCreateParams, type DraftListParams as DraftListParams, };
|
|
277
|
+
export { Styles as Styles, type StyleProfile as StyleProfile, type StyleProfileSummary as StyleProfileSummary, type StyleListResponse as StyleListResponse, type StyleCompareResponse as StyleCompareResponse, type StyleGetPerformanceResponse as StyleGetPerformanceResponse, type StyleUpdateParams as StyleUpdateParams, type StyleAnalyzeParams as StyleAnalyzeParams, type StyleCompareParams as StyleCompareParams, };
|
|
278
|
+
export { Radar as Radar, type RadarItem as RadarItem, type RadarRetrieveTrendingTopicsResponse as RadarRetrieveTrendingTopicsResponse, type RadarRetrieveTrendingTopicsParams as RadarRetrieveTrendingTopicsParams, };
|
|
279
|
+
export { Monitors as Monitors, type Monitor as Monitor, type MonitorCreateResponse as MonitorCreateResponse, type MonitorListResponse as MonitorListResponse, type MonitorDeactivateResponse as MonitorDeactivateResponse, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, };
|
|
280
|
+
export { Events as Events, type Event as Event, type EventDetail as EventDetail, type EventListResponse as EventListResponse, type EventListParams as EventListParams, };
|
|
281
|
+
export { Extractions as Extractions, type ExtractionJob as ExtractionJob, type ExtractionRetrieveResponse as ExtractionRetrieveResponse, type ExtractionListResponse as ExtractionListResponse, type ExtractionEstimateCostResponse as ExtractionEstimateCostResponse, type ExtractionRunResponse as ExtractionRunResponse, type ExtractionRetrieveParams as ExtractionRetrieveParams, type ExtractionListParams as ExtractionListParams, type ExtractionEstimateCostParams as ExtractionEstimateCostParams, type ExtractionExportResultsParams as ExtractionExportResultsParams, type ExtractionRunParams as ExtractionRunParams, };
|
|
282
|
+
export { Draws as Draws, type DrawDetail as DrawDetail, type DrawListItem as DrawListItem, type Winner as Winner, type DrawRetrieveResponse as DrawRetrieveResponse, type DrawListResponse as DrawListResponse, type DrawRunResponse as DrawRunResponse, type DrawListParams as DrawListParams, type DrawExportParams as DrawExportParams, type DrawRunParams as DrawRunParams, };
|
|
283
|
+
export { Webhooks as Webhooks, type Delivery as Delivery, type Webhook as Webhook, type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeactivateResponse as WebhookDeactivateResponse, type WebhookListDeliveriesResponse as WebhookListDeliveriesResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, };
|
|
284
|
+
export { Integrations as Integrations, type Integration as Integration, type IntegrationDelivery as IntegrationDelivery, type IntegrationListResponse as IntegrationListResponse, type IntegrationDeleteResponse as IntegrationDeleteResponse, type IntegrationListDeliveriesResponse as IntegrationListDeliveriesResponse, type IntegrationSendTestResponse as IntegrationSendTestResponse, type IntegrationCreateParams as IntegrationCreateParams, type IntegrationUpdateParams as IntegrationUpdateParams, type IntegrationListDeliveriesParams as IntegrationListDeliveriesParams, };
|
|
285
|
+
export { X as X, type XGetArticleResponse as XGetArticleResponse, type XGetNotificationsResponse as XGetNotificationsResponse, type XGetHomeTimelineParams as XGetHomeTimelineParams, type XGetNotificationsParams as XGetNotificationsParams, };
|
|
286
|
+
export { Trends as Trends, type TrendListResponse as TrendListResponse, type TrendListParams as TrendListParams, };
|
|
287
|
+
export { Bot as Bot };
|
|
288
|
+
export { Support as Support };
|
|
289
|
+
export { Credits as Credits, type CreditRetrieveBalanceResponse as CreditRetrieveBalanceResponse, type CreditTopupBalanceResponse as CreditTopupBalanceResponse, type CreditTopupBalanceParams as CreditTopupBalanceParams, };
|
|
290
|
+
export type Error = API.Error;
|
|
291
|
+
export type EventType = API.EventType;
|
|
292
|
+
export type PaginatedTweets = API.PaginatedTweets;
|
|
293
|
+
export type PaginatedUsers = API.PaginatedUsers;
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,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,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EAAE,GAAG,IAAI,GAAG,EAAE,CAAC;IAEtB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC;IAE9B,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,MAAM,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAC9B,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IACtC,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IAClD,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;CACjD"}
|
package/client.d.ts
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.js";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.js";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.js";
|
|
4
|
+
import * as Opts from "./internal/request-options.js";
|
|
5
|
+
import * as Errors from "./core/error.js";
|
|
6
|
+
import * as Uploads from "./core/uploads.js";
|
|
7
|
+
import * as API from "./resources/index.js";
|
|
8
|
+
import { APIPromise } from "./core/api-promise.js";
|
|
9
|
+
import { Account, AccountRetrieveResponse, AccountSetXUsernameParams, AccountSetXUsernameResponse, AccountUpdateLocaleParams, AccountUpdateLocaleResponse } from "./resources/account.js";
|
|
10
|
+
import { APIKey, APIKeyCreateParams, APIKeyCreateResponse, APIKeyListResponse, APIKeyRevokeResponse, APIKeys } from "./resources/api-keys.js";
|
|
11
|
+
import { Compose, ComposeCreateParams, ComposeCreateResponse } from "./resources/compose.js";
|
|
12
|
+
import { CreditRetrieveBalanceResponse, CreditTopupBalanceParams, CreditTopupBalanceResponse, Credits } from "./resources/credits.js";
|
|
13
|
+
import { Draft, DraftCreateParams, DraftDetail, DraftListParams, DraftListResponse, Drafts } from "./resources/drafts.js";
|
|
14
|
+
import { DrawDetail, DrawExportParams, DrawListItem, DrawListParams, DrawListResponse, DrawRetrieveResponse, DrawRunParams, DrawRunResponse, Draws, Winner } from "./resources/draws.js";
|
|
15
|
+
import { Event, EventDetail, EventListParams, EventListResponse, Events } from "./resources/events.js";
|
|
16
|
+
import { ExtractionEstimateCostParams, ExtractionEstimateCostResponse, ExtractionExportResultsParams, ExtractionJob, ExtractionListParams, ExtractionListResponse, ExtractionRetrieveParams, ExtractionRetrieveResponse, ExtractionRunParams, ExtractionRunResponse, Extractions } from "./resources/extractions.js";
|
|
17
|
+
import { Integration, IntegrationCreateParams, IntegrationDeleteResponse, IntegrationDelivery, IntegrationListDeliveriesParams, IntegrationListDeliveriesResponse, IntegrationListResponse, IntegrationSendTestResponse, IntegrationUpdateParams, Integrations } from "./resources/integrations.js";
|
|
18
|
+
import { Monitor, MonitorCreateParams, MonitorCreateResponse, MonitorDeactivateResponse, MonitorListResponse, MonitorUpdateParams, Monitors } from "./resources/monitors.js";
|
|
19
|
+
import { Radar, RadarItem, RadarRetrieveTrendingTopicsParams, RadarRetrieveTrendingTopicsResponse } from "./resources/radar.js";
|
|
20
|
+
import { StyleAnalyzeParams, StyleCompareParams, StyleCompareResponse, StyleGetPerformanceResponse, StyleListResponse, StyleProfile, StyleProfileSummary, StyleUpdateParams, Styles } from "./resources/styles.js";
|
|
21
|
+
import { Subscribe, SubscribeCreateResponse } from "./resources/subscribe.js";
|
|
22
|
+
import { TrendListParams, TrendListResponse, Trends } from "./resources/trends.js";
|
|
23
|
+
import { Delivery, Webhook, WebhookCreateParams, WebhookCreateResponse, WebhookDeactivateResponse, WebhookListDeliveriesResponse, WebhookListResponse, WebhookTestResponse, WebhookUpdateParams, Webhooks } from "./resources/webhooks.js";
|
|
24
|
+
import { Bot } from "./resources/bot/bot.js";
|
|
25
|
+
import { Support } from "./resources/support/support.js";
|
|
26
|
+
import { X, XGetArticleResponse, XGetHomeTimelineParams, XGetNotificationsParams, XGetNotificationsResponse } from "./resources/x/x.js";
|
|
27
|
+
import { type Fetch } from "./internal/builtin-types.js";
|
|
28
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.js";
|
|
29
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
|
|
30
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.js";
|
|
31
|
+
export interface ClientOptions {
|
|
32
|
+
/**
|
|
33
|
+
* Defaults to process.env['X_TWITTER_SCRAPER_API_KEY'].
|
|
34
|
+
*/
|
|
35
|
+
apiKey?: string | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* OAuth 2.1 access token
|
|
38
|
+
*/
|
|
39
|
+
bearerToken?: string | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
42
|
+
*
|
|
43
|
+
* Defaults to process.env['X_TWITTER_SCRAPER_BASE_URL'].
|
|
44
|
+
*/
|
|
45
|
+
baseURL?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
48
|
+
* from the server before timing out a single request.
|
|
49
|
+
*
|
|
50
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
51
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
52
|
+
*
|
|
53
|
+
* @unit milliseconds
|
|
54
|
+
*/
|
|
55
|
+
timeout?: number | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
58
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
59
|
+
*/
|
|
60
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Specify a custom `fetch` function implementation.
|
|
63
|
+
*
|
|
64
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
65
|
+
*/
|
|
66
|
+
fetch?: Fetch | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
69
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
70
|
+
*
|
|
71
|
+
* @default 2
|
|
72
|
+
*/
|
|
73
|
+
maxRetries?: number | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Default headers to include with every request to the API.
|
|
76
|
+
*
|
|
77
|
+
* These can be removed in individual requests by explicitly setting the
|
|
78
|
+
* header to `null` in request options.
|
|
79
|
+
*/
|
|
80
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Default query parameters to include with every request to the API.
|
|
83
|
+
*
|
|
84
|
+
* These can be removed in individual requests by explicitly setting the
|
|
85
|
+
* param to `undefined` in request options.
|
|
86
|
+
*/
|
|
87
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Set the log level.
|
|
90
|
+
*
|
|
91
|
+
* Defaults to process.env['X_TWITTER_SCRAPER_LOG'] or 'warn' if it isn't set.
|
|
92
|
+
*/
|
|
93
|
+
logLevel?: LogLevel | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Set the logger.
|
|
96
|
+
*
|
|
97
|
+
* Defaults to globalThis.console.
|
|
98
|
+
*/
|
|
99
|
+
logger?: Logger | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* API Client for interfacing with the X Twitter Scraper API.
|
|
103
|
+
*/
|
|
104
|
+
export declare class XTwitterScraper {
|
|
105
|
+
#private;
|
|
106
|
+
apiKey: string | null;
|
|
107
|
+
bearerToken: string | null;
|
|
108
|
+
baseURL: string;
|
|
109
|
+
maxRetries: number;
|
|
110
|
+
timeout: number;
|
|
111
|
+
logger: Logger;
|
|
112
|
+
logLevel: LogLevel | undefined;
|
|
113
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
114
|
+
private fetch;
|
|
115
|
+
protected idempotencyHeader?: string;
|
|
116
|
+
private _options;
|
|
117
|
+
/**
|
|
118
|
+
* API Client for interfacing with the X Twitter Scraper API.
|
|
119
|
+
*
|
|
120
|
+
* @param {string | null | undefined} [opts.apiKey=process.env['X_TWITTER_SCRAPER_API_KEY'] ?? null]
|
|
121
|
+
* @param {string | null | undefined} [opts.bearerToken=process.env['X_TWITTER_SCRAPER_BEARER_TOKEN'] ?? null]
|
|
122
|
+
* @param {string} [opts.baseURL=process.env['X_TWITTER_SCRAPER_BASE_URL'] ?? https://xquik.com/api/v1] - Override the default base URL for the API.
|
|
123
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
124
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
125
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
126
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
127
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
128
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
129
|
+
*/
|
|
130
|
+
constructor({ baseURL, apiKey, bearerToken, ...opts }?: ClientOptions);
|
|
131
|
+
/**
|
|
132
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
133
|
+
*/
|
|
134
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
135
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
136
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
137
|
+
protected authHeaders(opts: FinalRequestOptions, schemes: {
|
|
138
|
+
apiKeyAuth?: boolean;
|
|
139
|
+
oauthBearerAuth?: boolean;
|
|
140
|
+
}): Promise<NullableHeaders | undefined>;
|
|
141
|
+
protected apiKeyAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
142
|
+
protected oauthBearerAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
145
|
+
*/
|
|
146
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string;
|
|
147
|
+
private getUserAgent;
|
|
148
|
+
protected defaultIdempotencyKey(): string;
|
|
149
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
150
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
151
|
+
/**
|
|
152
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
153
|
+
*/
|
|
154
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
157
|
+
*
|
|
158
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
159
|
+
* the request properties, e.g. `method` or `url`.
|
|
160
|
+
*/
|
|
161
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
162
|
+
url: string;
|
|
163
|
+
options: FinalRequestOptions;
|
|
164
|
+
}): Promise<void>;
|
|
165
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
166
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
167
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
168
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
169
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
170
|
+
private methodRequest;
|
|
171
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
172
|
+
private makeRequest;
|
|
173
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
174
|
+
private shouldRetry;
|
|
175
|
+
private retryRequest;
|
|
176
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
177
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
178
|
+
retryCount?: number;
|
|
179
|
+
}): Promise<{
|
|
180
|
+
req: FinalizedRequestInit;
|
|
181
|
+
url: string;
|
|
182
|
+
timeout: number;
|
|
183
|
+
}>;
|
|
184
|
+
private buildHeaders;
|
|
185
|
+
private _makeAbort;
|
|
186
|
+
private buildBody;
|
|
187
|
+
static XTwitterScraper: typeof XTwitterScraper;
|
|
188
|
+
static DEFAULT_TIMEOUT: number;
|
|
189
|
+
static XTwitterScraperError: typeof Errors.XTwitterScraperError;
|
|
190
|
+
static APIError: typeof Errors.APIError;
|
|
191
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
192
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
193
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
194
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
195
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
196
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
197
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
198
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
199
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
200
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
201
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
202
|
+
static toFile: typeof Uploads.toFile;
|
|
203
|
+
/**
|
|
204
|
+
* Account info & settings
|
|
205
|
+
*/
|
|
206
|
+
account: API.Account;
|
|
207
|
+
/**
|
|
208
|
+
* API key management (session auth only)
|
|
209
|
+
*/
|
|
210
|
+
apiKeys: API.APIKeys;
|
|
211
|
+
/**
|
|
212
|
+
* Subscription & billing
|
|
213
|
+
*/
|
|
214
|
+
subscribe: API.Subscribe;
|
|
215
|
+
/**
|
|
216
|
+
* Tweet composition, drafts, writing styles & radar
|
|
217
|
+
*/
|
|
218
|
+
compose: API.Compose;
|
|
219
|
+
/**
|
|
220
|
+
* Tweet composition, drafts, writing styles & radar
|
|
221
|
+
*/
|
|
222
|
+
drafts: API.Drafts;
|
|
223
|
+
/**
|
|
224
|
+
* Tweet composition, drafts, writing styles & radar
|
|
225
|
+
*/
|
|
226
|
+
styles: API.Styles;
|
|
227
|
+
/**
|
|
228
|
+
* Tweet composition, drafts, writing styles & radar
|
|
229
|
+
*/
|
|
230
|
+
radar: API.Radar;
|
|
231
|
+
/**
|
|
232
|
+
* Real-time X account monitoring
|
|
233
|
+
*/
|
|
234
|
+
monitors: API.Monitors;
|
|
235
|
+
/**
|
|
236
|
+
* Activity events from monitored accounts
|
|
237
|
+
*/
|
|
238
|
+
events: API.Events;
|
|
239
|
+
/**
|
|
240
|
+
* Bulk data extraction (20 tool types)
|
|
241
|
+
*/
|
|
242
|
+
extractions: API.Extractions;
|
|
243
|
+
/**
|
|
244
|
+
* Giveaway draws from tweet replies
|
|
245
|
+
*/
|
|
246
|
+
draws: API.Draws;
|
|
247
|
+
/**
|
|
248
|
+
* Webhook endpoint management & delivery
|
|
249
|
+
*/
|
|
250
|
+
webhooks: API.Webhooks;
|
|
251
|
+
/**
|
|
252
|
+
* Push notification integrations (Telegram)
|
|
253
|
+
*/
|
|
254
|
+
integrations: API.Integrations;
|
|
255
|
+
/**
|
|
256
|
+
* X data lookups (subscription required)
|
|
257
|
+
*/
|
|
258
|
+
x: API.X;
|
|
259
|
+
/**
|
|
260
|
+
* Trending topics by region
|
|
261
|
+
*/
|
|
262
|
+
trends: API.Trends;
|
|
263
|
+
bot: API.Bot;
|
|
264
|
+
support: API.Support;
|
|
265
|
+
/**
|
|
266
|
+
* Subscription & billing
|
|
267
|
+
*/
|
|
268
|
+
credits: API.Credits;
|
|
269
|
+
}
|
|
270
|
+
export declare namespace XTwitterScraper {
|
|
271
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
272
|
+
export { Account as Account, type AccountRetrieveResponse as AccountRetrieveResponse, type AccountSetXUsernameResponse as AccountSetXUsernameResponse, type AccountUpdateLocaleResponse as AccountUpdateLocaleResponse, type AccountSetXUsernameParams as AccountSetXUsernameParams, type AccountUpdateLocaleParams as AccountUpdateLocaleParams, };
|
|
273
|
+
export { APIKeys as APIKeys, type APIKey as APIKey, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyRevokeResponse as APIKeyRevokeResponse, type APIKeyCreateParams as APIKeyCreateParams, };
|
|
274
|
+
export { Subscribe as Subscribe, type SubscribeCreateResponse as SubscribeCreateResponse };
|
|
275
|
+
export { Compose as Compose, type ComposeCreateResponse as ComposeCreateResponse, type ComposeCreateParams as ComposeCreateParams, };
|
|
276
|
+
export { Drafts as Drafts, type Draft as Draft, type DraftDetail as DraftDetail, type DraftListResponse as DraftListResponse, type DraftCreateParams as DraftCreateParams, type DraftListParams as DraftListParams, };
|
|
277
|
+
export { Styles as Styles, type StyleProfile as StyleProfile, type StyleProfileSummary as StyleProfileSummary, type StyleListResponse as StyleListResponse, type StyleCompareResponse as StyleCompareResponse, type StyleGetPerformanceResponse as StyleGetPerformanceResponse, type StyleUpdateParams as StyleUpdateParams, type StyleAnalyzeParams as StyleAnalyzeParams, type StyleCompareParams as StyleCompareParams, };
|
|
278
|
+
export { Radar as Radar, type RadarItem as RadarItem, type RadarRetrieveTrendingTopicsResponse as RadarRetrieveTrendingTopicsResponse, type RadarRetrieveTrendingTopicsParams as RadarRetrieveTrendingTopicsParams, };
|
|
279
|
+
export { Monitors as Monitors, type Monitor as Monitor, type MonitorCreateResponse as MonitorCreateResponse, type MonitorListResponse as MonitorListResponse, type MonitorDeactivateResponse as MonitorDeactivateResponse, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, };
|
|
280
|
+
export { Events as Events, type Event as Event, type EventDetail as EventDetail, type EventListResponse as EventListResponse, type EventListParams as EventListParams, };
|
|
281
|
+
export { Extractions as Extractions, type ExtractionJob as ExtractionJob, type ExtractionRetrieveResponse as ExtractionRetrieveResponse, type ExtractionListResponse as ExtractionListResponse, type ExtractionEstimateCostResponse as ExtractionEstimateCostResponse, type ExtractionRunResponse as ExtractionRunResponse, type ExtractionRetrieveParams as ExtractionRetrieveParams, type ExtractionListParams as ExtractionListParams, type ExtractionEstimateCostParams as ExtractionEstimateCostParams, type ExtractionExportResultsParams as ExtractionExportResultsParams, type ExtractionRunParams as ExtractionRunParams, };
|
|
282
|
+
export { Draws as Draws, type DrawDetail as DrawDetail, type DrawListItem as DrawListItem, type Winner as Winner, type DrawRetrieveResponse as DrawRetrieveResponse, type DrawListResponse as DrawListResponse, type DrawRunResponse as DrawRunResponse, type DrawListParams as DrawListParams, type DrawExportParams as DrawExportParams, type DrawRunParams as DrawRunParams, };
|
|
283
|
+
export { Webhooks as Webhooks, type Delivery as Delivery, type Webhook as Webhook, type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeactivateResponse as WebhookDeactivateResponse, type WebhookListDeliveriesResponse as WebhookListDeliveriesResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, };
|
|
284
|
+
export { Integrations as Integrations, type Integration as Integration, type IntegrationDelivery as IntegrationDelivery, type IntegrationListResponse as IntegrationListResponse, type IntegrationDeleteResponse as IntegrationDeleteResponse, type IntegrationListDeliveriesResponse as IntegrationListDeliveriesResponse, type IntegrationSendTestResponse as IntegrationSendTestResponse, type IntegrationCreateParams as IntegrationCreateParams, type IntegrationUpdateParams as IntegrationUpdateParams, type IntegrationListDeliveriesParams as IntegrationListDeliveriesParams, };
|
|
285
|
+
export { X as X, type XGetArticleResponse as XGetArticleResponse, type XGetNotificationsResponse as XGetNotificationsResponse, type XGetHomeTimelineParams as XGetHomeTimelineParams, type XGetNotificationsParams as XGetNotificationsParams, };
|
|
286
|
+
export { Trends as Trends, type TrendListResponse as TrendListResponse, type TrendListParams as TrendListParams, };
|
|
287
|
+
export { Bot as Bot };
|
|
288
|
+
export { Support as Support };
|
|
289
|
+
export { Credits as Credits, type CreditRetrieveBalanceResponse as CreditRetrieveBalanceResponse, type CreditTopupBalanceResponse as CreditTopupBalanceResponse, type CreditTopupBalanceParams as CreditTopupBalanceParams, };
|
|
290
|
+
export type Error = API.Error;
|
|
291
|
+
export type EventType = API.EventType;
|
|
292
|
+
export type PaginatedTweets = API.PaginatedTweets;
|
|
293
|
+
export type PaginatedUsers = API.PaginatedUsers;
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=client.d.ts.map
|
package/client.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,OAAO,EACP,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC5B;OACM,EACL,MAAM,EACN,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,OAAO,EACR;OACM,EAAE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OACvD,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,EAC1B,OAAO,EACR;OACM,EACL,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,MAA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