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,54 @@
|
|
|
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
|
+
* X data lookups (subscription required)
|
|
6
|
+
*/
|
|
7
|
+
export declare class Lists extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get list followers
|
|
10
|
+
*/
|
|
11
|
+
retrieveFollowers(id: string, query?: ListRetrieveFollowersParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Get list members
|
|
14
|
+
*/
|
|
15
|
+
retrieveMembers(id: string, query?: ListRetrieveMembersParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Get list tweets
|
|
18
|
+
*/
|
|
19
|
+
retrieveTweets(id: string, query?: ListRetrieveTweetsParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
20
|
+
}
|
|
21
|
+
export interface ListRetrieveFollowersParams {
|
|
22
|
+
/**
|
|
23
|
+
* Pagination cursor
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ListRetrieveMembersParams {
|
|
28
|
+
/**
|
|
29
|
+
* Pagination cursor
|
|
30
|
+
*/
|
|
31
|
+
cursor?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ListRetrieveTweetsParams {
|
|
34
|
+
/**
|
|
35
|
+
* Pagination cursor
|
|
36
|
+
*/
|
|
37
|
+
cursor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Include replies (default false)
|
|
40
|
+
*/
|
|
41
|
+
includeReplies?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Unix timestamp - filter after
|
|
44
|
+
*/
|
|
45
|
+
sinceTime?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Unix timestamp - filter before
|
|
48
|
+
*/
|
|
49
|
+
untilTime?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace Lists {
|
|
52
|
+
export { type ListRetrieveFollowersParams as ListRetrieveFollowersParams, type ListRetrieveMembersParams as ListRetrieveMembersParams, type ListRetrieveTweetsParams as ListRetrieveTweetsParams, };
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=lists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../src/resources/x/lists.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,iBAAiB,CACf,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;OAEG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;OAEG;IACH,cAAc,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.Lists = 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
|
+
* X data lookups (subscription required)
|
|
10
|
+
*/
|
|
11
|
+
class Lists extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get list followers
|
|
14
|
+
*/
|
|
15
|
+
retrieveFollowers(id, query = {}, options) {
|
|
16
|
+
return this._client.get((0, path_1.path) `/x/lists/${id}/followers`, {
|
|
17
|
+
query,
|
|
18
|
+
...options,
|
|
19
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get list members
|
|
24
|
+
*/
|
|
25
|
+
retrieveMembers(id, query = {}, options) {
|
|
26
|
+
return this._client.get((0, path_1.path) `/x/lists/${id}/members`, {
|
|
27
|
+
query,
|
|
28
|
+
...options,
|
|
29
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get list tweets
|
|
34
|
+
*/
|
|
35
|
+
retrieveTweets(id, query = {}, options) {
|
|
36
|
+
return this._client.get((0, path_1.path) `/x/lists/${id}/tweets`, {
|
|
37
|
+
query,
|
|
38
|
+
...options,
|
|
39
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.Lists = Lists;
|
|
44
|
+
//# sourceMappingURL=lists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lists.js","sourceRoot":"","sources":["../../src/resources/x/lists.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,iBAAiB,CACf,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,YAAY,EAAE;YACtD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,eAAe,CACb,EAAU,EACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,UAAU,EAAE;YACpD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,cAAc,CACZ,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,SAAS,EAAE;YACnD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA7CD,sBA6CC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* X data lookups (subscription required)
|
|
7
|
+
*/
|
|
8
|
+
export class Lists extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get list followers
|
|
11
|
+
*/
|
|
12
|
+
retrieveFollowers(id, query = {}, options) {
|
|
13
|
+
return this._client.get(path `/x/lists/${id}/followers`, {
|
|
14
|
+
query,
|
|
15
|
+
...options,
|
|
16
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get list members
|
|
21
|
+
*/
|
|
22
|
+
retrieveMembers(id, query = {}, options) {
|
|
23
|
+
return this._client.get(path `/x/lists/${id}/members`, {
|
|
24
|
+
query,
|
|
25
|
+
...options,
|
|
26
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get list tweets
|
|
31
|
+
*/
|
|
32
|
+
retrieveTweets(id, query = {}, options) {
|
|
33
|
+
return this._client.get(path `/x/lists/${id}/tweets`, {
|
|
34
|
+
query,
|
|
35
|
+
...options,
|
|
36
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=lists.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lists.mjs","sourceRoot":"","sources":["../../src/resources/x/lists.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,iBAAiB,CACf,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,YAAY,EAAE;YACtD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,eAAe,CACb,EAAU,EACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,UAAU,EAAE;YACpD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,cAAc,CACZ,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,SAAS,EAAE;YACnD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { type Uploadable } from "../../core/uploads.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Media upload & download
|
|
7
|
+
*/
|
|
8
|
+
export declare class Media extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Download tweet media
|
|
11
|
+
*/
|
|
12
|
+
download(body: MediaDownloadParams, options?: RequestOptions): APIPromise<MediaDownloadResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Upload media
|
|
15
|
+
*/
|
|
16
|
+
upload(body: MediaUploadParams, options?: RequestOptions): APIPromise<MediaUploadResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface MediaDownloadResponse {
|
|
19
|
+
cacheHit?: boolean;
|
|
20
|
+
galleryUrl?: string;
|
|
21
|
+
totalMedia?: number;
|
|
22
|
+
totalTweets?: number;
|
|
23
|
+
tweetId?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface MediaUploadResponse {
|
|
26
|
+
mediaId: string;
|
|
27
|
+
success: true;
|
|
28
|
+
}
|
|
29
|
+
export interface MediaDownloadParams {
|
|
30
|
+
/**
|
|
31
|
+
* Array of tweet URLs or IDs (bulk, max 50)
|
|
32
|
+
*/
|
|
33
|
+
tweetIds?: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Tweet URL or ID (single tweet)
|
|
36
|
+
*/
|
|
37
|
+
tweetInput?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface MediaUploadParams {
|
|
40
|
+
/**
|
|
41
|
+
* X account (@username or account ID)
|
|
42
|
+
*/
|
|
43
|
+
account: string;
|
|
44
|
+
/**
|
|
45
|
+
* Media file to upload
|
|
46
|
+
*/
|
|
47
|
+
file: Uploadable;
|
|
48
|
+
is_long_video?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace Media {
|
|
51
|
+
export { type MediaDownloadResponse as MediaDownloadResponse, type MediaUploadResponse as MediaUploadResponse, type MediaDownloadParams as MediaDownloadParams, type MediaUploadParams as MediaUploadParams, };
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=media.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.mts","sourceRoot":"","sources":["../../src/resources/x/media.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIhG;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { type Uploadable } from "../../core/uploads.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Media upload & download
|
|
7
|
+
*/
|
|
8
|
+
export declare class Media extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Download tweet media
|
|
11
|
+
*/
|
|
12
|
+
download(body: MediaDownloadParams, options?: RequestOptions): APIPromise<MediaDownloadResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Upload media
|
|
15
|
+
*/
|
|
16
|
+
upload(body: MediaUploadParams, options?: RequestOptions): APIPromise<MediaUploadResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface MediaDownloadResponse {
|
|
19
|
+
cacheHit?: boolean;
|
|
20
|
+
galleryUrl?: string;
|
|
21
|
+
totalMedia?: number;
|
|
22
|
+
totalTweets?: number;
|
|
23
|
+
tweetId?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface MediaUploadResponse {
|
|
26
|
+
mediaId: string;
|
|
27
|
+
success: true;
|
|
28
|
+
}
|
|
29
|
+
export interface MediaDownloadParams {
|
|
30
|
+
/**
|
|
31
|
+
* Array of tweet URLs or IDs (bulk, max 50)
|
|
32
|
+
*/
|
|
33
|
+
tweetIds?: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Tweet URL or ID (single tweet)
|
|
36
|
+
*/
|
|
37
|
+
tweetInput?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface MediaUploadParams {
|
|
40
|
+
/**
|
|
41
|
+
* X account (@username or account ID)
|
|
42
|
+
*/
|
|
43
|
+
account: string;
|
|
44
|
+
/**
|
|
45
|
+
* Media file to upload
|
|
46
|
+
*/
|
|
47
|
+
file: Uploadable;
|
|
48
|
+
is_long_video?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace Media {
|
|
51
|
+
export { type MediaDownloadResponse as MediaDownloadResponse, type MediaUploadResponse as MediaUploadResponse, type MediaDownloadParams as MediaDownloadParams, type MediaUploadParams as MediaUploadParams, };
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../src/resources/x/media.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIhG;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,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.Media = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const uploads_1 = require("../../internal/uploads.js");
|
|
7
|
+
/**
|
|
8
|
+
* Media upload & download
|
|
9
|
+
*/
|
|
10
|
+
class Media extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Download tweet media
|
|
13
|
+
*/
|
|
14
|
+
download(body, options) {
|
|
15
|
+
return this._client.post('/x/media/download', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Upload media
|
|
19
|
+
*/
|
|
20
|
+
upload(body, options) {
|
|
21
|
+
return this._client.post('/x/media', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Media = Media;
|
|
25
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../src/resources/x/media.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAqE;AAErE;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACxG,CAAC;CACF;AAdD,sBAcC"}
|
|
@@ -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 { multipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Media upload & download
|
|
6
|
+
*/
|
|
7
|
+
export class Media extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Download tweet media
|
|
10
|
+
*/
|
|
11
|
+
download(body, options) {
|
|
12
|
+
return this._client.post('/x/media/download', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Upload media
|
|
16
|
+
*/
|
|
17
|
+
upload(body, options) {
|
|
18
|
+
return this._client.post('/x/media', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=media.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.mjs","sourceRoot":"","sources":["../../src/resources/x/media.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;AAEtC;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACxG,CAAC;CACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { type Uploadable } from "../../core/uploads.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* X write actions (tweets, likes, follows, DMs)
|
|
7
|
+
*/
|
|
8
|
+
export declare class Profile extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Update X profile
|
|
11
|
+
*/
|
|
12
|
+
update(body: ProfileUpdateParams, options?: RequestOptions): APIPromise<ProfileUpdateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Update profile avatar
|
|
15
|
+
*/
|
|
16
|
+
updateAvatar(body: ProfileUpdateAvatarParams, options?: RequestOptions): APIPromise<ProfileUpdateAvatarResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Update profile banner
|
|
19
|
+
*/
|
|
20
|
+
updateBanner(body: ProfileUpdateBannerParams, options?: RequestOptions): APIPromise<ProfileUpdateBannerResponse>;
|
|
21
|
+
}
|
|
22
|
+
export interface ProfileUpdateResponse {
|
|
23
|
+
success: true;
|
|
24
|
+
}
|
|
25
|
+
export interface ProfileUpdateAvatarResponse {
|
|
26
|
+
success: true;
|
|
27
|
+
}
|
|
28
|
+
export interface ProfileUpdateBannerResponse {
|
|
29
|
+
success: true;
|
|
30
|
+
}
|
|
31
|
+
export interface ProfileUpdateParams {
|
|
32
|
+
/**
|
|
33
|
+
* X account (@username or account ID)
|
|
34
|
+
*/
|
|
35
|
+
account: string;
|
|
36
|
+
/**
|
|
37
|
+
* Bio description
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
location?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Display name
|
|
43
|
+
*/
|
|
44
|
+
name?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Website URL
|
|
47
|
+
*/
|
|
48
|
+
url?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ProfileUpdateAvatarParams {
|
|
51
|
+
/**
|
|
52
|
+
* X account (@username or account ID)
|
|
53
|
+
*/
|
|
54
|
+
account: string;
|
|
55
|
+
/**
|
|
56
|
+
* Avatar image (max 716KB)
|
|
57
|
+
*/
|
|
58
|
+
file: Uploadable;
|
|
59
|
+
}
|
|
60
|
+
export interface ProfileUpdateBannerParams {
|
|
61
|
+
/**
|
|
62
|
+
* X account (@username or account ID)
|
|
63
|
+
*/
|
|
64
|
+
account: string;
|
|
65
|
+
/**
|
|
66
|
+
* Banner image (max 2MB)
|
|
67
|
+
*/
|
|
68
|
+
file: Uploadable;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace Profile {
|
|
71
|
+
export { type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateAvatarResponse as ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse as ProfileUpdateBannerResponse, type ProfileUpdateParams as ProfileUpdateParams, type ProfileUpdateAvatarParams as ProfileUpdateAvatarParams, type ProfileUpdateBannerParams as ProfileUpdateBannerParams, };
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=profile.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.mts","sourceRoot":"","sources":["../../src/resources/x/profile.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;OAEG;IACH,YAAY,CACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAO1C;;OAEG;IACH,YAAY,CACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAM3C;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { type Uploadable } from "../../core/uploads.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* X write actions (tweets, likes, follows, DMs)
|
|
7
|
+
*/
|
|
8
|
+
export declare class Profile extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Update X profile
|
|
11
|
+
*/
|
|
12
|
+
update(body: ProfileUpdateParams, options?: RequestOptions): APIPromise<ProfileUpdateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Update profile avatar
|
|
15
|
+
*/
|
|
16
|
+
updateAvatar(body: ProfileUpdateAvatarParams, options?: RequestOptions): APIPromise<ProfileUpdateAvatarResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Update profile banner
|
|
19
|
+
*/
|
|
20
|
+
updateBanner(body: ProfileUpdateBannerParams, options?: RequestOptions): APIPromise<ProfileUpdateBannerResponse>;
|
|
21
|
+
}
|
|
22
|
+
export interface ProfileUpdateResponse {
|
|
23
|
+
success: true;
|
|
24
|
+
}
|
|
25
|
+
export interface ProfileUpdateAvatarResponse {
|
|
26
|
+
success: true;
|
|
27
|
+
}
|
|
28
|
+
export interface ProfileUpdateBannerResponse {
|
|
29
|
+
success: true;
|
|
30
|
+
}
|
|
31
|
+
export interface ProfileUpdateParams {
|
|
32
|
+
/**
|
|
33
|
+
* X account (@username or account ID)
|
|
34
|
+
*/
|
|
35
|
+
account: string;
|
|
36
|
+
/**
|
|
37
|
+
* Bio description
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
location?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Display name
|
|
43
|
+
*/
|
|
44
|
+
name?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Website URL
|
|
47
|
+
*/
|
|
48
|
+
url?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ProfileUpdateAvatarParams {
|
|
51
|
+
/**
|
|
52
|
+
* X account (@username or account ID)
|
|
53
|
+
*/
|
|
54
|
+
account: string;
|
|
55
|
+
/**
|
|
56
|
+
* Avatar image (max 716KB)
|
|
57
|
+
*/
|
|
58
|
+
file: Uploadable;
|
|
59
|
+
}
|
|
60
|
+
export interface ProfileUpdateBannerParams {
|
|
61
|
+
/**
|
|
62
|
+
* X account (@username or account ID)
|
|
63
|
+
*/
|
|
64
|
+
account: string;
|
|
65
|
+
/**
|
|
66
|
+
* Banner image (max 2MB)
|
|
67
|
+
*/
|
|
68
|
+
file: Uploadable;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace Profile {
|
|
71
|
+
export { type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateAvatarResponse as ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse as ProfileUpdateBannerResponse, type ProfileUpdateParams as ProfileUpdateParams, type ProfileUpdateAvatarParams as ProfileUpdateAvatarParams, type ProfileUpdateBannerParams as ProfileUpdateBannerParams, };
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/resources/x/profile.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;OAEG;IACH,YAAY,CACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAO1C;;OAEG;IACH,YAAY,CACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAM3C;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.Profile = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const uploads_1 = require("../../internal/uploads.js");
|
|
7
|
+
/**
|
|
8
|
+
* X write actions (tweets, likes, follows, DMs)
|
|
9
|
+
*/
|
|
10
|
+
class Profile extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Update X profile
|
|
13
|
+
*/
|
|
14
|
+
update(body, options) {
|
|
15
|
+
return this._client.patch('/x/profile', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Update profile avatar
|
|
19
|
+
*/
|
|
20
|
+
updateAvatar(body, options) {
|
|
21
|
+
return this._client.patch('/x/profile/avatar', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Update profile banner
|
|
25
|
+
*/
|
|
26
|
+
updateBanner(body, options) {
|
|
27
|
+
return this._client.patch('/x/profile/banner', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.Profile = Profile;
|
|
31
|
+
//# sourceMappingURL=profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/resources/x/profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAqE;AAErE;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,YAAY,CACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,mBAAmB,EACnB,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,YAAY,CACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,mBAAmB,EACnB,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAjCD,0BAiCC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* X write actions (tweets, likes, follows, DMs)
|
|
6
|
+
*/
|
|
7
|
+
export class Profile extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Update X profile
|
|
10
|
+
*/
|
|
11
|
+
update(body, options) {
|
|
12
|
+
return this._client.patch('/x/profile', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Update profile avatar
|
|
16
|
+
*/
|
|
17
|
+
updateAvatar(body, options) {
|
|
18
|
+
return this._client.patch('/x/profile/avatar', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Update profile banner
|
|
22
|
+
*/
|
|
23
|
+
updateBanner(body, options) {
|
|
24
|
+
return this._client.patch('/x/profile/banner', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=profile.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.mjs","sourceRoot":"","sources":["../../src/resources/x/profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;AAEtC;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,YAAY,CACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,mBAAmB,EACnB,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,YAAY,CACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,mBAAmB,EACnB,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Like, type LikeCreateResponse, type LikeDeleteResponse, type LikeCreateParams, type LikeDeleteParams, } from "./like.mjs";
|
|
2
|
+
export { Retweet, type RetweetCreateResponse, type RetweetDeleteResponse, type RetweetCreateParams, type RetweetDeleteParams, } from "./retweet.mjs";
|
|
3
|
+
export { Tweets, type SearchTweet, type TweetAuthor, type TweetDetail, type TweetCreateResponse, type TweetRetrieveResponse, type TweetDeleteResponse, type TweetCreateParams, type TweetListParams, type TweetDeleteParams, type TweetGetFavoritersParams, type TweetGetQuotesParams, type TweetGetRepliesParams, type TweetGetRetweetersParams, type TweetGetThreadParams, type TweetSearchParams, } from "./tweets.mjs";
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/x/tweets/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Like, type LikeCreateResponse, type LikeDeleteResponse, type LikeCreateParams, type LikeDeleteParams, } from "./like.js";
|
|
2
|
+
export { Retweet, type RetweetCreateResponse, type RetweetDeleteResponse, type RetweetCreateParams, type RetweetDeleteParams, } from "./retweet.js";
|
|
3
|
+
export { Tweets, type SearchTweet, type TweetAuthor, type TweetDetail, type TweetCreateResponse, type TweetRetrieveResponse, type TweetDeleteResponse, type TweetCreateParams, type TweetListParams, type TweetDeleteParams, type TweetGetFavoritersParams, type TweetGetQuotesParams, type TweetGetRepliesParams, type TweetGetRetweetersParams, type TweetGetThreadParams, type TweetSearchParams, } from "./tweets.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/x/tweets/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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.Tweets = exports.Retweet = exports.Like = void 0;
|
|
5
|
+
var like_1 = require("./like.js");
|
|
6
|
+
Object.defineProperty(exports, "Like", { enumerable: true, get: function () { return like_1.Like; } });
|
|
7
|
+
var retweet_1 = require("./retweet.js");
|
|
8
|
+
Object.defineProperty(exports, "Retweet", { enumerable: true, get: function () { return retweet_1.Retweet; } });
|
|
9
|
+
var tweets_1 = require("./tweets.js");
|
|
10
|
+
Object.defineProperty(exports, "Tweets", { enumerable: true, get: function () { return tweets_1.Tweets; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/x/tweets/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAMgB;AALd,4FAAA,IAAI,OAAA;AAMN,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,sCAiBkB;AAhBhB,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/x/tweets/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAKL;OACM,EACL,OAAO,GAKR;OACM,EACL,MAAM,GAgBP"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* X write actions (tweets, likes, follows, DMs)
|
|
6
|
+
*/
|
|
7
|
+
export declare class Like extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Like tweet
|
|
10
|
+
*/
|
|
11
|
+
create(tweetID: string, body: LikeCreateParams, options?: RequestOptions): APIPromise<LikeCreateResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Unlike tweet
|
|
14
|
+
*/
|
|
15
|
+
delete(tweetID: string, body: LikeDeleteParams, options?: RequestOptions): APIPromise<LikeDeleteResponse>;
|
|
16
|
+
}
|
|
17
|
+
export interface LikeCreateResponse {
|
|
18
|
+
success: true;
|
|
19
|
+
}
|
|
20
|
+
export interface LikeDeleteResponse {
|
|
21
|
+
success: true;
|
|
22
|
+
}
|
|
23
|
+
export interface LikeCreateParams {
|
|
24
|
+
/**
|
|
25
|
+
* X account (@username or account ID)
|
|
26
|
+
*/
|
|
27
|
+
account: string;
|
|
28
|
+
}
|
|
29
|
+
export interface LikeDeleteParams {
|
|
30
|
+
/**
|
|
31
|
+
* X account (@username or account ID)
|
|
32
|
+
*/
|
|
33
|
+
account: string;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace Like {
|
|
36
|
+
export { type LikeCreateResponse as LikeCreateResponse, type LikeDeleteResponse as LikeDeleteResponse, type LikeCreateParams as LikeCreateParams, type LikeDeleteParams as LikeDeleteParams, };
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=like.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"like.d.mts","sourceRoot":"","sources":["../../../src/resources/x/tweets/like.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIzG;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG1G;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|