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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draws.mjs","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,EAAE,SAAS,EAAE;YACjD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,IAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Activity events from monitored accounts
|
|
7
|
+
*/
|
|
8
|
+
export declare class Events extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get event
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<EventDetail>;
|
|
13
|
+
/**
|
|
14
|
+
* List events
|
|
15
|
+
*/
|
|
16
|
+
list(query?: EventListParams | null | undefined, options?: RequestOptions): APIPromise<EventListResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface Event {
|
|
19
|
+
id: string;
|
|
20
|
+
data: {
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
monitorId: string;
|
|
24
|
+
occurredAt: string;
|
|
25
|
+
type: Shared.EventType;
|
|
26
|
+
username: string;
|
|
27
|
+
}
|
|
28
|
+
export interface EventDetail {
|
|
29
|
+
id: string;
|
|
30
|
+
data: {
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
monitorId: string;
|
|
34
|
+
occurredAt: string;
|
|
35
|
+
type: Shared.EventType;
|
|
36
|
+
username: string;
|
|
37
|
+
xEventId?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface EventListResponse {
|
|
40
|
+
events: Array<Event>;
|
|
41
|
+
hasMore: boolean;
|
|
42
|
+
nextCursor?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface EventListParams {
|
|
45
|
+
/**
|
|
46
|
+
* Cursor for pagination
|
|
47
|
+
*/
|
|
48
|
+
after?: string;
|
|
49
|
+
eventType?: Shared.EventType;
|
|
50
|
+
limit?: number;
|
|
51
|
+
monitorId?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace Events {
|
|
54
|
+
export { type Event as Event, type EventDetail as EventDetail, type EventListResponse as EventListResponse, type EventListParams as EventListParams, };
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/resources/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAA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AM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Activity events from monitored accounts
|
|
7
|
+
*/
|
|
8
|
+
export declare class Events extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get event
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<EventDetail>;
|
|
13
|
+
/**
|
|
14
|
+
* List events
|
|
15
|
+
*/
|
|
16
|
+
list(query?: EventListParams | null | undefined, options?: RequestOptions): APIPromise<EventListResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface Event {
|
|
19
|
+
id: string;
|
|
20
|
+
data: {
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
monitorId: string;
|
|
24
|
+
occurredAt: string;
|
|
25
|
+
type: Shared.EventType;
|
|
26
|
+
username: string;
|
|
27
|
+
}
|
|
28
|
+
export interface EventDetail {
|
|
29
|
+
id: string;
|
|
30
|
+
data: {
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
monitorId: string;
|
|
34
|
+
occurredAt: string;
|
|
35
|
+
type: Shared.EventType;
|
|
36
|
+
username: string;
|
|
37
|
+
xEventId?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface EventListResponse {
|
|
40
|
+
events: Array<Event>;
|
|
41
|
+
hasMore: boolean;
|
|
42
|
+
nextCursor?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface EventListParams {
|
|
45
|
+
/**
|
|
46
|
+
* Cursor for pagination
|
|
47
|
+
*/
|
|
48
|
+
after?: string;
|
|
49
|
+
eventType?: Shared.EventType;
|
|
50
|
+
limit?: number;
|
|
51
|
+
monitorId?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace Events {
|
|
54
|
+
export { type Event as Event, type EventDetail as EventDetail, type EventListResponse as EventListResponse, type EventListParams as EventListParams, };
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/resources/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEjC,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC;IAEvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEjC,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC;IAEvB,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAErB,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC;IAE7B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Events = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Activity events from monitored accounts
|
|
9
|
+
*/
|
|
10
|
+
class Events extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get event
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id, options) {
|
|
15
|
+
return this._client.get((0, path_1.path) `/events/${id}`, options);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* List events
|
|
19
|
+
*/
|
|
20
|
+
list(query = {}, options) {
|
|
21
|
+
return this._client.get('/events', { query, ...options, __security: { apiKeyAuth: true } });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Events = Events;
|
|
25
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/resources/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AAjBD,wBAiBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Activity events from monitored accounts
|
|
6
|
+
*/
|
|
7
|
+
export class Events extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get event
|
|
10
|
+
*/
|
|
11
|
+
retrieve(id, options) {
|
|
12
|
+
return this._client.get(path `/events/${id}`, options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* List events
|
|
16
|
+
*/
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return this._client.get('/events', { query, ...options, __security: { apiKeyAuth: true } });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=events.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../src/resources/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Bulk data extraction (20 tool types)
|
|
6
|
+
*/
|
|
7
|
+
export declare class Extractions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get extraction results
|
|
10
|
+
*/
|
|
11
|
+
retrieve(id: string, query?: ExtractionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionRetrieveResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* List extraction jobs
|
|
14
|
+
*/
|
|
15
|
+
list(query?: ExtractionListParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionListResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Estimate extraction cost
|
|
18
|
+
*/
|
|
19
|
+
estimateCost(body: ExtractionEstimateCostParams, options?: RequestOptions): APIPromise<ExtractionEstimateCostResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Export extraction results
|
|
22
|
+
*/
|
|
23
|
+
exportResults(id: string, query?: ExtractionExportResultsParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
24
|
+
/**
|
|
25
|
+
* Run extraction
|
|
26
|
+
*/
|
|
27
|
+
run(body: ExtractionRunParams, options?: RequestOptions): APIPromise<ExtractionRunResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface ExtractionJob {
|
|
30
|
+
id: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
status: 'running' | 'completed' | 'failed';
|
|
33
|
+
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
34
|
+
totalResults: number;
|
|
35
|
+
completedAt?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ExtractionRetrieveResponse {
|
|
38
|
+
hasMore: boolean;
|
|
39
|
+
job: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
results: Array<{
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
}>;
|
|
45
|
+
nextCursor?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ExtractionListResponse {
|
|
48
|
+
extractions: Array<ExtractionJob>;
|
|
49
|
+
hasMore: boolean;
|
|
50
|
+
nextCursor?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ExtractionEstimateCostResponse {
|
|
53
|
+
allowed: boolean;
|
|
54
|
+
estimatedResults: number;
|
|
55
|
+
projectedPercent: number;
|
|
56
|
+
source: string;
|
|
57
|
+
usagePercent: number;
|
|
58
|
+
}
|
|
59
|
+
export interface ExtractionRunResponse {
|
|
60
|
+
id: string;
|
|
61
|
+
status: 'running';
|
|
62
|
+
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
63
|
+
}
|
|
64
|
+
export interface ExtractionRetrieveParams {
|
|
65
|
+
/**
|
|
66
|
+
* Cursor for pagination
|
|
67
|
+
*/
|
|
68
|
+
after?: string;
|
|
69
|
+
limit?: number;
|
|
70
|
+
}
|
|
71
|
+
export interface ExtractionListParams {
|
|
72
|
+
/**
|
|
73
|
+
* Cursor for pagination
|
|
74
|
+
*/
|
|
75
|
+
after?: string;
|
|
76
|
+
limit?: number;
|
|
77
|
+
status?: 'running' | 'completed' | 'failed';
|
|
78
|
+
toolType?: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
79
|
+
}
|
|
80
|
+
export interface ExtractionEstimateCostParams {
|
|
81
|
+
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
82
|
+
/**
|
|
83
|
+
* Raw advanced search query appended as-is (tweet_search_extractor)
|
|
84
|
+
*/
|
|
85
|
+
advancedQuery?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Exact phrase to match (tweet_search_extractor)
|
|
88
|
+
*/
|
|
89
|
+
exactPhrase?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Words to exclude from results (tweet_search_extractor)
|
|
92
|
+
*/
|
|
93
|
+
excludeWords?: string;
|
|
94
|
+
searchQuery?: string;
|
|
95
|
+
targetCommunityId?: string;
|
|
96
|
+
targetListId?: string;
|
|
97
|
+
targetSpaceId?: string;
|
|
98
|
+
targetTweetId?: string;
|
|
99
|
+
targetUsername?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ExtractionExportResultsParams {
|
|
102
|
+
format?: 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx';
|
|
103
|
+
}
|
|
104
|
+
export interface ExtractionRunParams {
|
|
105
|
+
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
106
|
+
/**
|
|
107
|
+
* Raw advanced search query appended as-is (tweet_search_extractor)
|
|
108
|
+
*/
|
|
109
|
+
advancedQuery?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Exact phrase to match (tweet_search_extractor)
|
|
112
|
+
*/
|
|
113
|
+
exactPhrase?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Words to exclude from results (tweet_search_extractor)
|
|
116
|
+
*/
|
|
117
|
+
excludeWords?: string;
|
|
118
|
+
searchQuery?: string;
|
|
119
|
+
targetCommunityId?: string;
|
|
120
|
+
targetListId?: string;
|
|
121
|
+
targetSpaceId?: string;
|
|
122
|
+
targetTweetId?: string;
|
|
123
|
+
targetUsername?: string;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace Extractions {
|
|
126
|
+
export { 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, };
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=extractions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractions.d.mts","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,YAAY,CACV,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;OAEG;IACH,aAAa,CACX,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,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BAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Bulk data extraction (20 tool types)
|
|
6
|
+
*/
|
|
7
|
+
export declare class Extractions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get extraction results
|
|
10
|
+
*/
|
|
11
|
+
retrieve(id: string, query?: ExtractionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionRetrieveResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* List extraction jobs
|
|
14
|
+
*/
|
|
15
|
+
list(query?: ExtractionListParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionListResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Estimate extraction cost
|
|
18
|
+
*/
|
|
19
|
+
estimateCost(body: ExtractionEstimateCostParams, options?: RequestOptions): APIPromise<ExtractionEstimateCostResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Export extraction results
|
|
22
|
+
*/
|
|
23
|
+
exportResults(id: string, query?: ExtractionExportResultsParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
24
|
+
/**
|
|
25
|
+
* Run extraction
|
|
26
|
+
*/
|
|
27
|
+
run(body: ExtractionRunParams, options?: RequestOptions): APIPromise<ExtractionRunResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface ExtractionJob {
|
|
30
|
+
id: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
status: 'running' | 'completed' | 'failed';
|
|
33
|
+
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
34
|
+
totalResults: number;
|
|
35
|
+
completedAt?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ExtractionRetrieveResponse {
|
|
38
|
+
hasMore: boolean;
|
|
39
|
+
job: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
results: Array<{
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
}>;
|
|
45
|
+
nextCursor?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ExtractionListResponse {
|
|
48
|
+
extractions: Array<ExtractionJob>;
|
|
49
|
+
hasMore: boolean;
|
|
50
|
+
nextCursor?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ExtractionEstimateCostResponse {
|
|
53
|
+
allowed: boolean;
|
|
54
|
+
estimatedResults: number;
|
|
55
|
+
projectedPercent: number;
|
|
56
|
+
source: string;
|
|
57
|
+
usagePercent: number;
|
|
58
|
+
}
|
|
59
|
+
export interface ExtractionRunResponse {
|
|
60
|
+
id: string;
|
|
61
|
+
status: 'running';
|
|
62
|
+
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
63
|
+
}
|
|
64
|
+
export interface ExtractionRetrieveParams {
|
|
65
|
+
/**
|
|
66
|
+
* Cursor for pagination
|
|
67
|
+
*/
|
|
68
|
+
after?: string;
|
|
69
|
+
limit?: number;
|
|
70
|
+
}
|
|
71
|
+
export interface ExtractionListParams {
|
|
72
|
+
/**
|
|
73
|
+
* Cursor for pagination
|
|
74
|
+
*/
|
|
75
|
+
after?: string;
|
|
76
|
+
limit?: number;
|
|
77
|
+
status?: 'running' | 'completed' | 'failed';
|
|
78
|
+
toolType?: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
79
|
+
}
|
|
80
|
+
export interface ExtractionEstimateCostParams {
|
|
81
|
+
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
82
|
+
/**
|
|
83
|
+
* Raw advanced search query appended as-is (tweet_search_extractor)
|
|
84
|
+
*/
|
|
85
|
+
advancedQuery?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Exact phrase to match (tweet_search_extractor)
|
|
88
|
+
*/
|
|
89
|
+
exactPhrase?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Words to exclude from results (tweet_search_extractor)
|
|
92
|
+
*/
|
|
93
|
+
excludeWords?: string;
|
|
94
|
+
searchQuery?: string;
|
|
95
|
+
targetCommunityId?: string;
|
|
96
|
+
targetListId?: string;
|
|
97
|
+
targetSpaceId?: string;
|
|
98
|
+
targetTweetId?: string;
|
|
99
|
+
targetUsername?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ExtractionExportResultsParams {
|
|
102
|
+
format?: 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx';
|
|
103
|
+
}
|
|
104
|
+
export interface ExtractionRunParams {
|
|
105
|
+
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
106
|
+
/**
|
|
107
|
+
* Raw advanced search query appended as-is (tweet_search_extractor)
|
|
108
|
+
*/
|
|
109
|
+
advancedQuery?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Exact phrase to match (tweet_search_extractor)
|
|
112
|
+
*/
|
|
113
|
+
exactPhrase?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Words to exclude from results (tweet_search_extractor)
|
|
116
|
+
*/
|
|
117
|
+
excludeWords?: string;
|
|
118
|
+
searchQuery?: string;
|
|
119
|
+
targetCommunityId?: string;
|
|
120
|
+
targetListId?: string;
|
|
121
|
+
targetSpaceId?: string;
|
|
122
|
+
targetTweetId?: string;
|
|
123
|
+
targetUsername?: string;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace Extractions {
|
|
126
|
+
export { 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, };
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=extractions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractions.d.ts","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,YAAY,CACV,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;OAEG;IACH,aAAa,CACX,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,QAAQ,CAAC;IASvB;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,m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IAEvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Extractions = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Bulk data extraction (20 tool types)
|
|
10
|
+
*/
|
|
11
|
+
class Extractions extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get extraction results
|
|
14
|
+
*/
|
|
15
|
+
retrieve(id, query = {}, options) {
|
|
16
|
+
return this._client.get((0, path_1.path) `/extractions/${id}`, { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* List extraction jobs
|
|
20
|
+
*/
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
return this._client.get('/extractions', { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Estimate extraction cost
|
|
26
|
+
*/
|
|
27
|
+
estimateCost(body, options) {
|
|
28
|
+
return this._client.post('/extractions/estimate', { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Export extraction results
|
|
32
|
+
*/
|
|
33
|
+
exportResults(id, query = {}, options) {
|
|
34
|
+
return this._client.get((0, path_1.path) `/extractions/${id}/export`, {
|
|
35
|
+
query,
|
|
36
|
+
...options,
|
|
37
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
38
|
+
__binaryResponse: true,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Run extraction
|
|
43
|
+
*/
|
|
44
|
+
run(body, options) {
|
|
45
|
+
return this._client.post('/extractions', { body, ...options });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.Extractions = Extractions;
|
|
49
|
+
//# sourceMappingURL=extractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractions.js","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,YAAY,CACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,aAAa,CACX,EAAU,EACV,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,SAAS,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AAtDD,kCAsDC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Bulk data extraction (20 tool types)
|
|
7
|
+
*/
|
|
8
|
+
export class Extractions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get extraction results
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id, query = {}, options) {
|
|
13
|
+
return this._client.get(path `/extractions/${id}`, { query, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* List extraction jobs
|
|
17
|
+
*/
|
|
18
|
+
list(query = {}, options) {
|
|
19
|
+
return this._client.get('/extractions', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Estimate extraction cost
|
|
23
|
+
*/
|
|
24
|
+
estimateCost(body, options) {
|
|
25
|
+
return this._client.post('/extractions/estimate', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Export extraction results
|
|
29
|
+
*/
|
|
30
|
+
exportResults(id, query = {}, options) {
|
|
31
|
+
return this._client.get(path `/extractions/${id}/export`, {
|
|
32
|
+
query,
|
|
33
|
+
...options,
|
|
34
|
+
headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
35
|
+
__binaryResponse: true,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Run extraction
|
|
40
|
+
*/
|
|
41
|
+
run(body, options) {
|
|
42
|
+
return this._client.post('/extractions', { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=extractions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractions.mjs","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,YAAY,CACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,aAAa,CACX,EAAU,EACV,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,SAAS,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from "./shared.mjs";
|
|
2
|
+
export { APIKeys, type APIKey, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyRevokeResponse, type APIKeyCreateParams, } from "./api-keys.mjs";
|
|
3
|
+
export { Account, type AccountRetrieveResponse, type AccountSetXUsernameResponse, type AccountUpdateLocaleResponse, type AccountSetXUsernameParams, type AccountUpdateLocaleParams, } from "./account.mjs";
|
|
4
|
+
export { Bot } from "./bot/bot.mjs";
|
|
5
|
+
export { Compose, type ComposeCreateResponse, type ComposeCreateParams } from "./compose.mjs";
|
|
6
|
+
export { Credits, type CreditRetrieveBalanceResponse, type CreditTopupBalanceResponse, type CreditTopupBalanceParams, } from "./credits.mjs";
|
|
7
|
+
export { Drafts, type Draft, type DraftDetail, type DraftListResponse, type DraftCreateParams, type DraftListParams, } from "./drafts.mjs";
|
|
8
|
+
export { Draws, type DrawDetail, type DrawListItem, type Winner, type DrawRetrieveResponse, type DrawListResponse, type DrawRunResponse, type DrawListParams, type DrawExportParams, type DrawRunParams, } from "./draws.mjs";
|
|
9
|
+
export { Events, type Event, type EventDetail, type EventListResponse, type EventListParams } from "./events.mjs";
|
|
10
|
+
export { Extractions, type ExtractionJob, type ExtractionRetrieveResponse, type ExtractionListResponse, type ExtractionEstimateCostResponse, type ExtractionRunResponse, type ExtractionRetrieveParams, type ExtractionListParams, type ExtractionEstimateCostParams, type ExtractionExportResultsParams, type ExtractionRunParams, } from "./extractions.mjs";
|
|
11
|
+
export { Integrations, type Integration, type IntegrationDelivery, type IntegrationListResponse, type IntegrationDeleteResponse, type IntegrationListDeliveriesResponse, type IntegrationSendTestResponse, type IntegrationCreateParams, type IntegrationUpdateParams, type IntegrationListDeliveriesParams, } from "./integrations.mjs";
|
|
12
|
+
export { Monitors, type Monitor, type MonitorCreateResponse, type MonitorListResponse, type MonitorDeactivateResponse, type MonitorCreateParams, type MonitorUpdateParams, } from "./monitors.mjs";
|
|
13
|
+
export { Radar, type RadarItem, type RadarRetrieveTrendingTopicsResponse, type RadarRetrieveTrendingTopicsParams, } from "./radar.mjs";
|
|
14
|
+
export { Styles, type StyleProfile, type StyleProfileSummary, type StyleListResponse, type StyleCompareResponse, type StyleGetPerformanceResponse, type StyleUpdateParams, type StyleAnalyzeParams, type StyleCompareParams, } from "./styles.mjs";
|
|
15
|
+
export { Subscribe, type SubscribeCreateResponse } from "./subscribe.mjs";
|
|
16
|
+
export { Support } from "./support/support.mjs";
|
|
17
|
+
export { Trends, type TrendListResponse, type TrendListParams } from "./trends.mjs";
|
|
18
|
+
export { Webhooks, type Delivery, type Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeactivateResponse, type WebhookListDeliveriesResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookUpdateParams, } from "./webhooks.mjs";
|
|
19
|
+
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x/x.mjs";
|
|
20
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EAAE,GAAG,EAAE;OACP,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACjE,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB;OACM,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACtF,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,GACzB;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,GACrC;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,KAAK,EACL,KAAK,SAAS,EACd,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,GACvC;OACM,EACL,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE;OAC3C,EAAE,OAAO,EAAE;OACX,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from "./shared.js";
|
|
2
|
+
export { APIKeys, type APIKey, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyRevokeResponse, type APIKeyCreateParams, } from "./api-keys.js";
|
|
3
|
+
export { Account, type AccountRetrieveResponse, type AccountSetXUsernameResponse, type AccountUpdateLocaleResponse, type AccountSetXUsernameParams, type AccountUpdateLocaleParams, } from "./account.js";
|
|
4
|
+
export { Bot } from "./bot/bot.js";
|
|
5
|
+
export { Compose, type ComposeCreateResponse, type ComposeCreateParams } from "./compose.js";
|
|
6
|
+
export { Credits, type CreditRetrieveBalanceResponse, type CreditTopupBalanceResponse, type CreditTopupBalanceParams, } from "./credits.js";
|
|
7
|
+
export { Drafts, type Draft, type DraftDetail, type DraftListResponse, type DraftCreateParams, type DraftListParams, } from "./drafts.js";
|
|
8
|
+
export { Draws, type DrawDetail, type DrawListItem, type Winner, type DrawRetrieveResponse, type DrawListResponse, type DrawRunResponse, type DrawListParams, type DrawExportParams, type DrawRunParams, } from "./draws.js";
|
|
9
|
+
export { Events, type Event, type EventDetail, type EventListResponse, type EventListParams } from "./events.js";
|
|
10
|
+
export { Extractions, type ExtractionJob, type ExtractionRetrieveResponse, type ExtractionListResponse, type ExtractionEstimateCostResponse, type ExtractionRunResponse, type ExtractionRetrieveParams, type ExtractionListParams, type ExtractionEstimateCostParams, type ExtractionExportResultsParams, type ExtractionRunParams, } from "./extractions.js";
|
|
11
|
+
export { Integrations, type Integration, type IntegrationDelivery, type IntegrationListResponse, type IntegrationDeleteResponse, type IntegrationListDeliveriesResponse, type IntegrationSendTestResponse, type IntegrationCreateParams, type IntegrationUpdateParams, type IntegrationListDeliveriesParams, } from "./integrations.js";
|
|
12
|
+
export { Monitors, type Monitor, type MonitorCreateResponse, type MonitorListResponse, type MonitorDeactivateResponse, type MonitorCreateParams, type MonitorUpdateParams, } from "./monitors.js";
|
|
13
|
+
export { Radar, type RadarItem, type RadarRetrieveTrendingTopicsResponse, type RadarRetrieveTrendingTopicsParams, } from "./radar.js";
|
|
14
|
+
export { Styles, type StyleProfile, type StyleProfileSummary, type StyleListResponse, type StyleCompareResponse, type StyleGetPerformanceResponse, type StyleUpdateParams, type StyleAnalyzeParams, type StyleCompareParams, } from "./styles.js";
|
|
15
|
+
export { Subscribe, type SubscribeCreateResponse } from "./subscribe.js";
|
|
16
|
+
export { Support } from "./support/support.js";
|
|
17
|
+
export { Trends, type TrendListResponse, type TrendListParams } from "./trends.js";
|
|
18
|
+
export { Webhooks, type Delivery, type Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeactivateResponse, type WebhookListDeliveriesResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookUpdateParams, } from "./webhooks.js";
|
|
19
|
+
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x/x.js";
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EAAE,GAAG,EAAE;OACP,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACjE,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB;OACM,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,KA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