x-twitter-scraper 0.12.4 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/README.md +56 -29
- package/client.d.mts +18 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -15
- package/client.d.ts.map +1 -1
- package/client.js +4 -4
- package/client.js.map +1 -1
- package/client.mjs +5 -5
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js +0 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs +0 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +269 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +264 -0
- package/core/streaming.mjs.map +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +115 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +110 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +0 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +0 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +0 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +0 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +0 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +0 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +7 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +7 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts.map +1 -1
- package/internal/shim-types.d.ts.map +1 -1
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +0 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +0 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js +0 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +0 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +0 -1
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +0 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/sleep.js +0 -1
- package/internal/utils/sleep.js.map +1 -1
- package/internal/utils/sleep.mjs +0 -1
- package/internal/utils/sleep.mjs.map +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +0 -1
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +0 -1
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +0 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +0 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.js +0 -1
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +0 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +23 -5
- package/resources/account.d.mts +35 -12
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +35 -12
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +4 -4
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +4 -4
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts +77 -21
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +77 -21
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js +3 -5
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +3 -5
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +18 -10
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +18 -10
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +5 -5
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +5 -5
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +13 -17
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +13 -17
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +4 -5
- package/resources/drafts.js.map +1 -1
- package/resources/drafts.mjs +4 -5
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +84 -28
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +84 -28
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +24 -10
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +24 -10
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +2564 -21
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +2564 -21
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +34 -3
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +34 -3
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +410 -128
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +410 -128
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +74 -13
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +74 -13
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +6 -5
- package/resources/guest-wallets.d.mts.map +1 -1
- package/resources/guest-wallets.d.ts +6 -5
- package/resources/guest-wallets.d.ts.map +1 -1
- package/resources/guest-wallets.js +2 -2
- package/resources/guest-wallets.js.map +1 -1
- package/resources/guest-wallets.mjs +2 -2
- package/resources/guest-wallets.mjs.map +1 -1
- package/resources/index.d.mts +6 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +0 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +2 -2
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -2
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js +0 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs +0 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +66 -14
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +66 -14
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/keywords.js +16 -11
- package/resources/monitors/keywords.js.map +1 -1
- package/resources/monitors/keywords.mjs +16 -11
- package/resources/monitors/keywords.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +53 -16
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +53 -16
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +12 -11
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +12 -11
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +0 -1
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +0 -1
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +32 -36
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +32 -36
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.js +1 -2
- package/resources/radar.js.map +1 -1
- package/resources/radar.mjs +1 -2
- package/resources/radar.mjs.map +1 -1
- package/resources/shared.d.mts +1726 -233
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1726 -233
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts +34 -23
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts +34 -23
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.js +11 -14
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +11 -14
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +1 -1
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts +1 -1
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js +1 -2
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs +1 -2
- package/resources/subscribe.mjs.map +1 -1
- package/resources/support/attachments.d.mts.map +1 -1
- package/resources/support/attachments.d.ts.map +1 -1
- package/resources/support/attachments.js +0 -1
- package/resources/support/attachments.js.map +1 -1
- package/resources/support/attachments.mjs +0 -1
- package/resources/support/attachments.mjs.map +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js +0 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs +0 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js +0 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs +0 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +30 -10
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +30 -10
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +7 -8
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +7 -8
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.js +0 -1
- package/resources/support.js.map +1 -1
- package/resources/support.mjs +0 -1
- package/resources/support.mjs.map +1 -1
- package/resources/trends.d.mts +21 -5
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +21 -5
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.js +2 -2
- package/resources/trends.js.map +1 -1
- package/resources/trends.mjs +2 -2
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +80 -14
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -14
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +30 -12
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +30 -12
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +1 -1
- package/resources/x/account-connection-attempts.d.mts.map +1 -1
- package/resources/x/account-connection-attempts.d.ts +1 -1
- package/resources/x/account-connection-attempts.d.ts.map +1 -1
- package/resources/x/account-connection-attempts.js +1 -2
- package/resources/x/account-connection-attempts.js.map +1 -1
- package/resources/x/account-connection-attempts.mjs +1 -2
- package/resources/x/account-connection-attempts.mjs.map +1 -1
- package/resources/x/account-connection-challenges.d.mts +30 -11
- package/resources/x/account-connection-challenges.d.mts.map +1 -1
- package/resources/x/account-connection-challenges.d.ts +30 -11
- package/resources/x/account-connection-challenges.d.ts.map +1 -1
- package/resources/x/account-connection-challenges.js +5 -5
- package/resources/x/account-connection-challenges.js.map +1 -1
- package/resources/x/account-connection-challenges.mjs +5 -5
- package/resources/x/account-connection-challenges.mjs.map +1 -1
- package/resources/x/accounts.d.mts +38 -10
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +38 -10
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +8 -8
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +8 -8
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/analysis.d.mts +3274 -0
- package/resources/x/analysis.d.mts.map +1 -0
- package/resources/x/analysis.d.ts +3274 -0
- package/resources/x/analysis.d.ts.map +1 -0
- package/resources/x/analysis.js +131 -0
- package/resources/x/analysis.js.map +1 -0
- package/resources/x/analysis.mjs +127 -0
- package/resources/x/analysis.mjs.map +1 -0
- package/resources/x/bookmarks.d.mts +84 -9
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +84 -9
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.js +6 -5
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +6 -5
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +176 -0
- package/resources/x/broadcasts.d.mts.map +1 -0
- package/resources/x/broadcasts.d.ts +176 -0
- package/resources/x/broadcasts.d.ts.map +1 -0
- package/resources/x/broadcasts.js +28 -0
- package/resources/x/broadcasts.js.map +1 -0
- package/resources/x/broadcasts.mjs +24 -0
- package/resources/x/broadcasts.mjs.map +1 -0
- package/resources/x/communities/communities.d.mts +612 -128
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +612 -128
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +96 -18
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +96 -18
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js +3 -2
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +46 -25
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +46 -25
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +10 -8
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +10 -8
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/media.d.mts +197 -0
- package/resources/x/communities/media.d.mts.map +1 -0
- package/resources/x/communities/media.d.ts +197 -0
- package/resources/x/communities/media.d.ts.map +1 -0
- package/resources/x/communities/media.js +28 -0
- package/resources/x/communities/media.js.map +1 -0
- package/resources/x/communities/media.mjs +24 -0
- package/resources/x/communities/media.mjs.map +1 -0
- package/resources/x/communities/tweets.d.mts +350 -20
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +350 -20
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +8 -8
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +8 -8
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/communities.d.mts.map +1 -1
- package/resources/x/communities.d.ts.map +1 -1
- package/resources/x/communities.js +0 -1
- package/resources/x/communities.js.map +1 -1
- package/resources/x/communities.mjs +0 -1
- package/resources/x/communities.mjs.map +1 -1
- package/resources/x/dm.d.mts +245 -13
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +245 -13
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +29 -3
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +29 -3
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +31 -3
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +31 -3
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.js +2 -2
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +2 -2
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +12 -8
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +12 -8
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +9 -2
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +5 -2
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +506 -0
- package/resources/x/jobs.d.mts.map +1 -0
- package/resources/x/jobs.d.ts +506 -0
- package/resources/x/jobs.d.ts.map +1 -0
- package/resources/x/jobs.js +59 -0
- package/resources/x/jobs.js.map +1 -0
- package/resources/x/jobs.mjs +55 -0
- package/resources/x/jobs.mjs.map +1 -0
- package/resources/x/lists.d.mts +1058 -27
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +1058 -27
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.js +39 -10
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +39 -10
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +24 -13
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +24 -13
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -3
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +2 -3
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +60 -33
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +60 -33
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +3 -4
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +3 -4
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/spaces.d.mts +857 -0
- package/resources/x/spaces.d.mts.map +1 -0
- package/resources/x/spaces.d.ts +857 -0
- package/resources/x/spaces.d.ts.map +1 -0
- package/resources/x/spaces.js +57 -0
- package/resources/x/spaces.js.map +1 -0
- package/resources/x/spaces.mjs +53 -0
- package/resources/x/spaces.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js +0 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs +0 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +38 -20
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +38 -20
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +2 -3
- package/resources/x/tweets/like.js.map +1 -1
- package/resources/x/tweets/like.mjs +2 -3
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts +38 -20
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +38 -20
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +2 -3
- package/resources/x/tweets/retweet.js.map +1 -1
- package/resources/x/tweets/retweet.mjs +2 -3
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +2639 -326
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +2639 -326
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +147 -22
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +147 -22
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/tweets.d.mts.map +1 -1
- package/resources/x/tweets.d.ts.map +1 -1
- package/resources/x/tweets.js +0 -1
- package/resources/x/tweets.js.map +1 -1
- package/resources/x/tweets.mjs +0 -1
- package/resources/x/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +38 -20
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +38 -20
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +2 -3
- package/resources/x/users/follow.js.map +1 -1
- package/resources/x/users/follow.mjs +2 -3
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js +0 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs +0 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +3068 -457
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +3068 -457
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +205 -23
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +205 -23
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/users.d.mts.map +1 -1
- package/resources/x/users.d.ts.map +1 -1
- package/resources/x/users.js +0 -1
- package/resources/x/users.js.map +1 -1
- package/resources/x/users.mjs +0 -1
- package/resources/x/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +13 -6
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +13 -6
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/write-actions.js +1 -2
- package/resources/x/write-actions.js.map +1 -1
- package/resources/x/write-actions.mjs +1 -2
- package/resources/x/write-actions.mjs.map +1 -1
- package/resources/x/x.d.mts +864 -27
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +864 -27
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +78 -6
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +80 -8
- package/resources/x/x.mjs.map +1 -1
- package/resources/x.d.mts.map +1 -1
- package/resources/x.d.ts.map +1 -1
- package/resources/x.js +0 -1
- package/resources/x.js.map +1 -1
- package/resources/x.mjs +0 -1
- package/resources/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/SKILL.md +99 -344
- package/skills/x-twitter-scraper/metadata.json +2 -2
- package/skills/x-twitter-scraper/references/mcp-setup.md +12 -15
- package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
- package/skills/x-twitter-scraper/references/types-mcp-output-schemas.md +4 -4
- package/skills/x-twitter-scraper/references/types.md +0 -1
- package/skills/x-twitter-scraper/skill-card.md +5 -6
- package/skills/x-twitter-scraper/skillspector-report.md +6 -3
- package/skills/xquik-account-automation/LICENSE +21 -0
- package/skills/xquik-account-automation/SKILL.md +91 -0
- package/skills/xquik-social-research/SKILL.md +48 -55
- package/src/client.ts +48 -7
- package/src/core/api-promise.ts +0 -2
- package/src/core/error.ts +0 -2
- package/src/core/resource.ts +0 -2
- package/src/core/streaming.ts +326 -0
- package/src/index.ts +0 -2
- package/src/internal/builtin-types.ts +0 -2
- package/src/internal/decoders/line.ts +138 -0
- package/src/internal/detect-platform.ts +0 -2
- package/src/internal/errors.ts +0 -2
- package/src/internal/headers.ts +0 -2
- package/src/internal/parse.ts +9 -2
- package/src/internal/request-options.ts +0 -2
- package/src/internal/shim-types.ts +0 -2
- package/src/internal/shims.ts +0 -2
- package/src/internal/types.ts +0 -2
- package/src/internal/utils/base64.ts +0 -2
- package/src/internal/utils/env.ts +0 -2
- package/src/internal/utils/log.ts +0 -2
- package/src/internal/utils/query.ts +0 -2
- package/src/internal/utils/sleep.ts +0 -2
- package/src/internal/utils/uuid.ts +0 -2
- package/src/internal/utils/values.ts +0 -2
- package/src/internal/utils.ts +0 -2
- package/src/lib/.keep +2 -4
- package/src/resources/account.ts +41 -14
- package/src/resources/compose.ts +77 -23
- package/src/resources/credits.ts +19 -12
- package/src/resources/drafts.ts +13 -24
- package/src/resources/draws.ts +94 -38
- package/src/resources/events.ts +3225 -70
- package/src/resources/extractions.ts +512 -127
- package/src/resources/guest-wallets.ts +6 -7
- package/src/resources/index.ts +24 -3
- package/src/resources/monitors/index.ts +2 -2
- package/src/resources/monitors/keywords.ts +82 -16
- package/src/resources/monitors/monitors.ts +66 -16
- package/src/resources/monitors.ts +0 -2
- package/src/resources/radar.ts +32 -38
- package/src/resources/shared.ts +2226 -352
- package/src/resources/styles.ts +43 -29
- package/src/resources/subscribe.ts +1 -3
- package/src/resources/support/attachments.ts +0 -2
- package/src/resources/support/index.ts +1 -2
- package/src/resources/support/support.ts +2 -2
- package/src/resources/support/tickets.ts +38 -12
- package/src/resources/support.ts +0 -2
- package/src/resources/trends.ts +23 -7
- package/src/resources/webhooks.ts +109 -17
- package/src/resources/x/account-connection-attempts.ts +1 -3
- package/src/resources/x/account-connection-challenges.ts +39 -13
- package/src/resources/x/accounts.ts +46 -12
- package/src/resources/x/analysis.ts +3945 -0
- package/src/resources/x/bookmarks.ts +103 -11
- package/src/resources/x/broadcasts.ts +223 -0
- package/src/resources/x/communities/communities.ts +743 -143
- package/src/resources/x/communities/index.ts +9 -2
- package/src/resources/x/communities/join.ts +46 -25
- package/src/resources/x/communities/media.ts +249 -0
- package/src/resources/x/communities/tweets.ts +427 -22
- package/src/resources/x/communities.ts +0 -2
- package/src/resources/x/dm.ts +334 -13
- package/src/resources/x/followers.ts +35 -5
- package/src/resources/x/index.ts +106 -3
- package/src/resources/x/jobs.ts +625 -0
- package/src/resources/x/lists.ts +1307 -30
- package/src/resources/x/media.ts +24 -14
- package/src/resources/x/profile.ts +60 -32
- package/src/resources/x/spaces.ts +1074 -0
- package/src/resources/x/tweets/index.ts +18 -2
- package/src/resources/x/tweets/like.ts +38 -20
- package/src/resources/x/tweets/retweet.ts +38 -20
- package/src/resources/x/tweets/tweets.ts +3693 -843
- package/src/resources/x/tweets.ts +0 -2
- package/src/resources/x/users/follow.ts +38 -20
- package/src/resources/x/users/index.ts +22 -2
- package/src/resources/x/users/users.ts +3687 -467
- package/src/resources/x/users.ts +0 -2
- package/src/resources/x/write-actions.ts +13 -7
- package/src/resources/x/x.ts +1234 -24
- package/src/resources/x.ts +0 -2
- package/src/streaming.ts +6 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +3 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +3 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +9 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +6 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/skills/x-twitter-scraper/references/types-rest-api-vs-mcp-field-naming.md +0 -15
package/resources/webhooks.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Webhooks extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Registers an endpoint for signed event deliveries.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -19,11 +19,12 @@ export declare class Webhooks extends APIResource {
|
|
|
19
19
|
*/
|
|
20
20
|
create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Updates an endpoint, event selection, or delivery settings.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
26
26
|
* const webhook = await client.webhooks.update('id', {
|
|
27
|
+
* eventTypes: ['tweet.new'],
|
|
27
28
|
* isActive: true,
|
|
28
29
|
* url: 'https://example.com/webhook',
|
|
29
30
|
* });
|
|
@@ -31,16 +32,32 @@ export declare class Webhooks extends APIResource {
|
|
|
31
32
|
*/
|
|
32
33
|
update(id: string, body: WebhookUpdateParams, options?: RequestOptions): APIPromise<Webhook>;
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* Returns configured webhook endpoints and delivery states.
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
37
38
|
* ```ts
|
|
38
39
|
* const webhooks = await client.webhooks.list();
|
|
39
40
|
* ```
|
|
40
41
|
*/
|
|
41
|
-
list(options?: RequestOptions): APIPromise<WebhookListResponse>;
|
|
42
|
+
list(query?: WebhookListParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListResponse>;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Returns a t.me link to @XquikBot that connects a Telegram chat to the account's
|
|
45
|
+
* monitor events. Opening it & pressing Start connects the chat, which then gets
|
|
46
|
+
* each event as a message. The link works once, within 15 minutes. The chat
|
|
47
|
+
* appears in the webhook list with the URL telegram:<chat ID>, with deliveries,
|
|
48
|
+
* retries & resume as any webhook. In the chat, /stop pauses its alerts. It costs
|
|
49
|
+
* no credits.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response = await client.webhooks.createTelegramLink({
|
|
54
|
+
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
createTelegramLink(body?: WebhookCreateTelegramLinkParams | null | undefined, options?: RequestOptions): APIPromise<WebhookCreateTelegramLinkResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Stops future deliveries to the selected webhook.
|
|
44
61
|
*
|
|
45
62
|
* @example
|
|
46
63
|
* ```ts
|
|
@@ -49,16 +66,16 @@ export declare class Webhooks extends APIResource {
|
|
|
49
66
|
*/
|
|
50
67
|
deactivate(id: string, options?: RequestOptions): APIPromise<WebhookDeactivateResponse>;
|
|
51
68
|
/**
|
|
52
|
-
*
|
|
69
|
+
* Returns delivery attempts and response outcomes, newest first.
|
|
53
70
|
*
|
|
54
71
|
* @example
|
|
55
72
|
* ```ts
|
|
56
73
|
* const response = await client.webhooks.listDeliveries('id');
|
|
57
74
|
* ```
|
|
58
75
|
*/
|
|
59
|
-
listDeliveries(id: string, options?: RequestOptions): APIPromise<WebhookListDeliveriesResponse>;
|
|
76
|
+
listDeliveries(id: string, query?: WebhookListDeliveriesParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListDeliveriesResponse>;
|
|
60
77
|
/**
|
|
61
|
-
*
|
|
78
|
+
* Tests the endpoint before resuming a manually paused webhook.
|
|
62
79
|
*
|
|
63
80
|
* @example
|
|
64
81
|
* ```ts
|
|
@@ -67,7 +84,7 @@ export declare class Webhooks extends APIResource {
|
|
|
67
84
|
*/
|
|
68
85
|
resume(id: string, options?: RequestOptions): APIPromise<WebhookResumeResponse>;
|
|
69
86
|
/**
|
|
70
|
-
*
|
|
87
|
+
* Sends a signed test event to the configured endpoint.
|
|
71
88
|
*
|
|
72
89
|
* @example
|
|
73
90
|
* ```ts
|
|
@@ -81,6 +98,9 @@ export declare class Webhooks extends APIResource {
|
|
|
81
98
|
*/
|
|
82
99
|
export interface Delivery {
|
|
83
100
|
id: string;
|
|
101
|
+
/**
|
|
102
|
+
* Whole number from 0.
|
|
103
|
+
*/
|
|
84
104
|
attempts: number;
|
|
85
105
|
createdAt: string;
|
|
86
106
|
status: string;
|
|
@@ -100,8 +120,8 @@ export interface Webhook {
|
|
|
100
120
|
consecutiveFailures: number;
|
|
101
121
|
createdAt: string;
|
|
102
122
|
/**
|
|
103
|
-
* Endpoint delivery state.
|
|
104
|
-
* failures.
|
|
123
|
+
* Endpoint delivery state. paused means the user paused delivery. needs_attention
|
|
124
|
+
* marks repeated failures. Delivery attempts continue.
|
|
105
125
|
*/
|
|
106
126
|
deliveryStatus: 'active' | 'paused' | 'needs_attention';
|
|
107
127
|
/**
|
|
@@ -109,7 +129,7 @@ export interface Webhook {
|
|
|
109
129
|
*/
|
|
110
130
|
eventTypes: Array<Shared.EventType>;
|
|
111
131
|
/**
|
|
112
|
-
*
|
|
132
|
+
* Maximum reported failures before needs_attention. It does not pause delivery.
|
|
113
133
|
*/
|
|
114
134
|
failureHardCap: number;
|
|
115
135
|
isActive: boolean;
|
|
@@ -129,13 +149,27 @@ export interface WebhookCreateResponse {
|
|
|
129
149
|
url: string;
|
|
130
150
|
}
|
|
131
151
|
export interface WebhookListResponse {
|
|
152
|
+
hasMore: boolean;
|
|
132
153
|
webhooks: Array<Webhook>;
|
|
154
|
+
nextCursor?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface WebhookCreateTelegramLinkResponse {
|
|
157
|
+
/**
|
|
158
|
+
* When the link stops working, 15 minutes on.
|
|
159
|
+
*/
|
|
160
|
+
expiresAt: string;
|
|
161
|
+
/**
|
|
162
|
+
* Opens @XquikBot with the link's code.
|
|
163
|
+
*/
|
|
164
|
+
url: string;
|
|
133
165
|
}
|
|
134
166
|
export interface WebhookDeactivateResponse {
|
|
135
167
|
success: true;
|
|
136
168
|
}
|
|
137
169
|
export interface WebhookListDeliveriesResponse {
|
|
138
170
|
deliveries: Array<Delivery>;
|
|
171
|
+
hasMore: boolean;
|
|
172
|
+
nextCursor?: string;
|
|
139
173
|
}
|
|
140
174
|
export interface WebhookResumeResponse {
|
|
141
175
|
statusCode: number;
|
|
@@ -156,7 +190,9 @@ export interface WebhookCreateParams {
|
|
|
156
190
|
*/
|
|
157
191
|
eventTypes: Array<Shared.EventType>;
|
|
158
192
|
/**
|
|
159
|
-
* HTTPS URL
|
|
193
|
+
* HTTPS URL. A Discord channel webhook URL gets each event as a Discord message, &
|
|
194
|
+
* a Slack incoming webhook URL as a Slack message. To deliver to Telegram, use
|
|
195
|
+
* POST /webhooks/telegram instead.
|
|
160
196
|
*/
|
|
161
197
|
url: string;
|
|
162
198
|
}
|
|
@@ -168,7 +204,37 @@ export interface WebhookUpdateParams {
|
|
|
168
204
|
isActive?: boolean;
|
|
169
205
|
url?: string;
|
|
170
206
|
}
|
|
207
|
+
export interface WebhookListParams {
|
|
208
|
+
/**
|
|
209
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
210
|
+
* supported.
|
|
211
|
+
*/
|
|
212
|
+
cursor?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Maximum items per page: 1 to 200, default 200. Pass nextCursor as cursor for the
|
|
215
|
+
* next page.
|
|
216
|
+
*/
|
|
217
|
+
limit?: number;
|
|
218
|
+
}
|
|
219
|
+
export interface WebhookCreateTelegramLinkParams {
|
|
220
|
+
/**
|
|
221
|
+
* Array of event types to subscribe to.
|
|
222
|
+
*/
|
|
223
|
+
eventTypes?: Array<Shared.EventType>;
|
|
224
|
+
}
|
|
225
|
+
export interface WebhookListDeliveriesParams {
|
|
226
|
+
/**
|
|
227
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
228
|
+
* supported.
|
|
229
|
+
*/
|
|
230
|
+
cursor?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Maximum deliveries per page: 1 to 100, default 100. Pass nextCursor as cursor
|
|
233
|
+
* for the next page.
|
|
234
|
+
*/
|
|
235
|
+
limit?: number;
|
|
236
|
+
}
|
|
171
237
|
export declare namespace Webhooks {
|
|
172
|
-
export { type Delivery as Delivery, type Webhook as Webhook, type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeactivateResponse as WebhookDeactivateResponse, type WebhookListDeliveriesResponse as WebhookListDeliveriesResponse, type WebhookResumeResponse as WebhookResumeResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, };
|
|
238
|
+
export { type Delivery as Delivery, type Webhook as Webhook, type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookCreateTelegramLinkResponse as WebhookCreateTelegramLinkResponse, type WebhookDeactivateResponse as WebhookDeactivateResponse, type WebhookListDeliveriesResponse as WebhookListDeliveriesResponse, type WebhookResumeResponse as WebhookResumeResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookCreateTelegramLinkParams as WebhookCreateTelegramLinkParams, type WebhookListDeliveriesParams as WebhookListDeliveriesParams, };
|
|
173
239
|
}
|
|
174
240
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4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ACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/resources/webhooks.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Webhooks = void 0;
|
|
7
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
7
|
const resource_1 = require("../core/resource.js");
|
|
9
8
|
const path_1 = require("../internal/utils/path.js");
|
|
10
9
|
/**
|
|
@@ -12,7 +11,7 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
12
11
|
*/
|
|
13
12
|
class Webhooks extends resource_1.APIResource {
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
14
|
+
* Registers an endpoint for signed event deliveries.
|
|
16
15
|
*
|
|
17
16
|
* @example
|
|
18
17
|
* ```ts
|
|
@@ -26,11 +25,12 @@ class Webhooks extends resource_1.APIResource {
|
|
|
26
25
|
return this._client.post('/webhooks', { body, ...options });
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
28
|
+
* Updates an endpoint, event selection, or delivery settings.
|
|
30
29
|
*
|
|
31
30
|
* @example
|
|
32
31
|
* ```ts
|
|
33
32
|
* const webhook = await client.webhooks.update('id', {
|
|
33
|
+
* eventTypes: ['tweet.new'],
|
|
34
34
|
* isActive: true,
|
|
35
35
|
* url: 'https://example.com/webhook',
|
|
36
36
|
* });
|
|
@@ -40,18 +40,36 @@ class Webhooks extends resource_1.APIResource {
|
|
|
40
40
|
return this._client.patch((0, path_1.path) `/webhooks/${id}`, { body, ...options });
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Returns configured webhook endpoints and delivery states.
|
|
44
44
|
*
|
|
45
45
|
* @example
|
|
46
46
|
* ```ts
|
|
47
47
|
* const webhooks = await client.webhooks.list();
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
list(options) {
|
|
51
|
-
return this._client.get('/webhooks', options);
|
|
50
|
+
list(query = {}, options) {
|
|
51
|
+
return this._client.get('/webhooks', { query, ...options });
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Returns a t.me link to @XquikBot that connects a Telegram chat to the account's
|
|
55
|
+
* monitor events. Opening it & pressing Start connects the chat, which then gets
|
|
56
|
+
* each event as a message. The link works once, within 15 minutes. The chat
|
|
57
|
+
* appears in the webhook list with the URL telegram:<chat ID>, with deliveries,
|
|
58
|
+
* retries & resume as any webhook. In the chat, /stop pauses its alerts. It costs
|
|
59
|
+
* no credits.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const response = await client.webhooks.createTelegramLink({
|
|
64
|
+
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
createTelegramLink(body = {}, options) {
|
|
69
|
+
return this._client.post('/webhooks/telegram', { body, ...options });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Stops future deliveries to the selected webhook.
|
|
55
73
|
*
|
|
56
74
|
* @example
|
|
57
75
|
* ```ts
|
|
@@ -62,18 +80,18 @@ class Webhooks extends resource_1.APIResource {
|
|
|
62
80
|
return this._client.delete((0, path_1.path) `/webhooks/${id}`, options);
|
|
63
81
|
}
|
|
64
82
|
/**
|
|
65
|
-
*
|
|
83
|
+
* Returns delivery attempts and response outcomes, newest first.
|
|
66
84
|
*
|
|
67
85
|
* @example
|
|
68
86
|
* ```ts
|
|
69
87
|
* const response = await client.webhooks.listDeliveries('id');
|
|
70
88
|
* ```
|
|
71
89
|
*/
|
|
72
|
-
listDeliveries(id, options) {
|
|
73
|
-
return this._client.get((0, path_1.path) `/webhooks/${id}/deliveries`, options);
|
|
90
|
+
listDeliveries(id, query = {}, options) {
|
|
91
|
+
return this._client.get((0, path_1.path) `/webhooks/${id}/deliveries`, { query, ...options });
|
|
74
92
|
}
|
|
75
93
|
/**
|
|
76
|
-
*
|
|
94
|
+
* Tests the endpoint before resuming a manually paused webhook.
|
|
77
95
|
*
|
|
78
96
|
* @example
|
|
79
97
|
* ```ts
|
|
@@ -84,7 +102,7 @@ class Webhooks extends resource_1.APIResource {
|
|
|
84
102
|
return this._client.post((0, path_1.path) `/webhooks/${id}/resume`, options);
|
|
85
103
|
}
|
|
86
104
|
/**
|
|
87
|
-
*
|
|
105
|
+
* Sends a signed test event to the configured endpoint.
|
|
88
106
|
*
|
|
89
107
|
* @example
|
|
90
108
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,kDAA+C;AAI/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CA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C,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAxHD,4BAwHC"}
|
package/resources/webhooks.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
5
4
|
import { APIResource } from "../core/resource.mjs";
|
|
6
5
|
import { path } from "../internal/utils/path.mjs";
|
|
7
6
|
/**
|
|
@@ -9,7 +8,7 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
9
8
|
*/
|
|
10
9
|
export class Webhooks extends APIResource {
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
11
|
+
* Registers an endpoint for signed event deliveries.
|
|
13
12
|
*
|
|
14
13
|
* @example
|
|
15
14
|
* ```ts
|
|
@@ -23,11 +22,12 @@ export class Webhooks extends APIResource {
|
|
|
23
22
|
return this._client.post('/webhooks', { body, ...options });
|
|
24
23
|
}
|
|
25
24
|
/**
|
|
26
|
-
*
|
|
25
|
+
* Updates an endpoint, event selection, or delivery settings.
|
|
27
26
|
*
|
|
28
27
|
* @example
|
|
29
28
|
* ```ts
|
|
30
29
|
* const webhook = await client.webhooks.update('id', {
|
|
30
|
+
* eventTypes: ['tweet.new'],
|
|
31
31
|
* isActive: true,
|
|
32
32
|
* url: 'https://example.com/webhook',
|
|
33
33
|
* });
|
|
@@ -37,18 +37,36 @@ export class Webhooks extends APIResource {
|
|
|
37
37
|
return this._client.patch(path `/webhooks/${id}`, { body, ...options });
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Returns configured webhook endpoints and delivery states.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
44
44
|
* const webhooks = await client.webhooks.list();
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
list(options) {
|
|
48
|
-
return this._client.get('/webhooks', options);
|
|
47
|
+
list(query = {}, options) {
|
|
48
|
+
return this._client.get('/webhooks', { query, ...options });
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Returns a t.me link to @XquikBot that connects a Telegram chat to the account's
|
|
52
|
+
* monitor events. Opening it & pressing Start connects the chat, which then gets
|
|
53
|
+
* each event as a message. The link works once, within 15 minutes. The chat
|
|
54
|
+
* appears in the webhook list with the URL telegram:<chat ID>, with deliveries,
|
|
55
|
+
* retries & resume as any webhook. In the chat, /stop pauses its alerts. It costs
|
|
56
|
+
* no credits.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.webhooks.createTelegramLink({
|
|
61
|
+
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
createTelegramLink(body = {}, options) {
|
|
66
|
+
return this._client.post('/webhooks/telegram', { body, ...options });
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Stops future deliveries to the selected webhook.
|
|
52
70
|
*
|
|
53
71
|
* @example
|
|
54
72
|
* ```ts
|
|
@@ -59,18 +77,18 @@ export class Webhooks extends APIResource {
|
|
|
59
77
|
return this._client.delete(path `/webhooks/${id}`, options);
|
|
60
78
|
}
|
|
61
79
|
/**
|
|
62
|
-
*
|
|
80
|
+
* Returns delivery attempts and response outcomes, newest first.
|
|
63
81
|
*
|
|
64
82
|
* @example
|
|
65
83
|
* ```ts
|
|
66
84
|
* const response = await client.webhooks.listDeliveries('id');
|
|
67
85
|
* ```
|
|
68
86
|
*/
|
|
69
|
-
listDeliveries(id, options) {
|
|
70
|
-
return this._client.get(path `/webhooks/${id}/deliveries`, options);
|
|
87
|
+
listDeliveries(id, query = {}, options) {
|
|
88
|
+
return this._client.get(path `/webhooks/${id}/deliveries`, { query, ...options });
|
|
71
89
|
}
|
|
72
90
|
/**
|
|
73
|
-
*
|
|
91
|
+
* Tests the endpoint before resuming a manually paused webhook.
|
|
74
92
|
*
|
|
75
93
|
* @example
|
|
76
94
|
* ```ts
|
|
@@ -81,7 +99,7 @@ export class Webhooks extends APIResource {
|
|
|
81
99
|
return this._client.post(path `/webhooks/${id}/resume`, options);
|
|
82
100
|
}
|
|
83
101
|
/**
|
|
84
|
-
*
|
|
102
|
+
* Sends a signed test event to the configured endpoint.
|
|
85
103
|
*
|
|
86
104
|
* @example
|
|
87
105
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,E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|
7
7
|
export declare class AccountConnectionAttempts extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns progress for an X account connection attempt.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-attempts.d.mts","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-connection-attempts.d.mts","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wCAAwC,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,wCAAwC,CAAC,gCAAgC,GACzE,wCAAwC,CAAC,gCAAgC,GACzE,wCAAwC,CAAC,+BAA+B,GACxE,wCAAwC,CAAC,2BAA2B,CAAC;AAEzE,yBAAiB,wCAAwC,CAAC;IACxD;;OAEG;IACH,UAAiB,gCAAgC;QAC/C,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,8BAA8B,CAAC;QAEvC,WAAW,EAAE,MAAM,CAAC;QAEpB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,gCAAgC;QAC/C,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,8BAA8B,CAAC;QAEvC,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,+BAA+B;QAC9C,EAAE,EAAE,MAAM,CAAC;QAEX,KAAK,EAAE,MAAM,CAAC;QAEd,MAAM,EAAE,8BAA8B,CAAC;QAEvC,SAAS,EAAE,OAAO,CAAC;QAEnB,MAAM,EAAE,QAAQ,CAAC;QAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAED;;;OAGG;IACH,UAAiB,2BAA2B;QAC1C,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,gCAAgC,CAAC;QAEzC,MAAM,EAAE,qBAAqB,CAAC;QAE9B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,yBAAyB,CAAC;IACjD,OAAO,EAAE,KAAK,wCAAwC,IAAI,wCAAwC,EAAE,CAAC;CACtG"}
|
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccountConnectionAttempts extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns progress for an X account connection attempt.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-attempts.d.ts","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-connection-attempts.d.ts","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wCAAwC,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,wCAAwC,CAAC,gCAAgC,GACzE,wCAAwC,CAAC,gCAAgC,GACzE,wCAAwC,CAAC,+BAA+B,GACxE,wCAAwC,CAAC,2BAA2B,CAAC;AAEzE,yBAAiB,wCAAwC,CAAC;IACxD;;OAEG;IACH,UAAiB,gCAAgC;QAC/C,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,8BAA8B,CAAC;QAEvC,WAAW,EAAE,MAAM,CAAC;QAEpB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,gCAAgC;QAC/C,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,8BAA8B,CAAC;QAEvC,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,+BAA+B;QAC9C,EAAE,EAAE,MAAM,CAAC;QAEX,KAAK,EAAE,MAAM,CAAC;QAEd,MAAM,EAAE,8BAA8B,CAAC;QAEvC,SAAS,EAAE,OAAO,CAAC;QAEnB,MAAM,EAAE,QAAQ,CAAC;QAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAED;;;OAGG;IACH,UAAiB,2BAA2B;QAC1C,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,gCAAgC,CAAC;QAEzC,MAAM,EAAE,qBAAqB,CAAC;QAE9B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,yBAAyB,CAAC;IACjD,OAAO,EAAE,KAAK,wCAAwC,IAAI,wCAAwC,EAAE,CAAC;CACtG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.AccountConnectionAttempts = void 0;
|
|
5
4
|
const resource_1 = require("../../core/resource.js");
|
|
@@ -9,7 +8,7 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
9
8
|
*/
|
|
10
9
|
class AccountConnectionAttempts extends resource_1.APIResource {
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
11
|
+
* Returns progress for an X account connection attempt.
|
|
13
12
|
*
|
|
14
13
|
* @example
|
|
15
14
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-attempts.js","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-connection-attempts.js","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAfD,8DAeC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
2
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
3
|
/**
|
|
@@ -6,7 +5,7 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
6
5
|
*/
|
|
7
6
|
export class AccountConnectionAttempts extends APIResource {
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* Returns progress for an X account connection attempt.
|
|
10
9
|
*
|
|
11
10
|
* @example
|
|
12
11
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-attempts.mjs","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"account-connection-attempts.mjs","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -6,14 +6,15 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccountConnectionChallenges extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Submits the email code requested during X account connection.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
13
|
* const response =
|
|
14
|
-
* await client.x.accountConnectionChallenges.submit(
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* await client.x.accountConnectionChallenges.submit(
|
|
15
|
+
* 'xch_AbCdEfGhIjKlMnOp',
|
|
16
|
+
* { email_code: '<EMAIL_VERIFICATION_CODE>' },
|
|
17
|
+
* );
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
20
|
submit(id: string, body: AccountConnectionChallengeSubmitParams, options?: RequestOptions): APIPromise<AccountConnectionChallengeSubmitResponse>;
|
|
@@ -21,13 +22,31 @@ export declare class AccountConnectionChallenges extends APIResource {
|
|
|
21
22
|
/**
|
|
22
23
|
* Sanitized X account summary returned by connect and reauth.
|
|
23
24
|
*/
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
export type AccountConnectionChallengeSubmitResponse = AccountConnectionChallengeSubmitResponse.SanitizedXAccount | AccountConnectionChallengeSubmitResponse.XAccountConnectionChallenge;
|
|
26
|
+
export declare namespace AccountConnectionChallengeSubmitResponse {
|
|
27
|
+
/**
|
|
28
|
+
* Sanitized X account summary returned by connect and reauth.
|
|
29
|
+
*/
|
|
30
|
+
interface SanitizedXAccount {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
|
|
34
|
+
status: 'active';
|
|
35
|
+
xUserId: string;
|
|
36
|
+
xUsername: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Resumable account connection challenge. Submit the email code to finish the same
|
|
40
|
+
* connection attempt.
|
|
41
|
+
*/
|
|
42
|
+
interface XAccountConnectionChallenge {
|
|
43
|
+
id: string;
|
|
44
|
+
expiresAt: string;
|
|
45
|
+
message: string;
|
|
46
|
+
object: 'x_account_connection_challenge';
|
|
47
|
+
status: 'requires_email_code';
|
|
48
|
+
username: string;
|
|
49
|
+
}
|
|
31
50
|
}
|
|
32
51
|
export interface AccountConnectionChallengeSubmitParams {
|
|
33
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-challenges.d.mts","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-connection-challenges.d.mts","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,WAAW;IAC1D;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,sCAAsC,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,wCAAwC,CAAC,iBAAiB,GAC1D,wCAAwC,CAAC,2BAA2B,CAAC;AAEzE,yBAAiB,wCAAwC,CAAC;IACxD;;OAEG;IACH,UAAiB,iBAAiB;QAChC,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,gBAAgB,CAAC;QAE7F,MAAM,EAAE,QAAQ,CAAC;QAEjB,OAAO,EAAE,MAAM,CAAC;QAEhB,SAAS,EAAE,MAAM,CAAC;KACnB;IAED;;;OAGG;IACH,UAAiB,2BAA2B;QAC1C,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,gCAAgC,CAAC;QAEzC,MAAM,EAAE,qBAAqB,CAAC;QAE9B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,2BAA2B,CAAC;IACnD,OAAO,EACL,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sCAAsC,IAAI,sCAAsC,GACtF,CAAC;CACH"}
|
|
@@ -6,14 +6,15 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccountConnectionChallenges extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Submits the email code requested during X account connection.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
13
|
* const response =
|
|
14
|
-
* await client.x.accountConnectionChallenges.submit(
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* await client.x.accountConnectionChallenges.submit(
|
|
15
|
+
* 'xch_AbCdEfGhIjKlMnOp',
|
|
16
|
+
* { email_code: '<EMAIL_VERIFICATION_CODE>' },
|
|
17
|
+
* );
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
20
|
submit(id: string, body: AccountConnectionChallengeSubmitParams, options?: RequestOptions): APIPromise<AccountConnectionChallengeSubmitResponse>;
|
|
@@ -21,13 +22,31 @@ export declare class AccountConnectionChallenges extends APIResource {
|
|
|
21
22
|
/**
|
|
22
23
|
* Sanitized X account summary returned by connect and reauth.
|
|
23
24
|
*/
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
export type AccountConnectionChallengeSubmitResponse = AccountConnectionChallengeSubmitResponse.SanitizedXAccount | AccountConnectionChallengeSubmitResponse.XAccountConnectionChallenge;
|
|
26
|
+
export declare namespace AccountConnectionChallengeSubmitResponse {
|
|
27
|
+
/**
|
|
28
|
+
* Sanitized X account summary returned by connect and reauth.
|
|
29
|
+
*/
|
|
30
|
+
interface SanitizedXAccount {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
|
|
34
|
+
status: 'active';
|
|
35
|
+
xUserId: string;
|
|
36
|
+
xUsername: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Resumable account connection challenge. Submit the email code to finish the same
|
|
40
|
+
* connection attempt.
|
|
41
|
+
*/
|
|
42
|
+
interface XAccountConnectionChallenge {
|
|
43
|
+
id: string;
|
|
44
|
+
expiresAt: string;
|
|
45
|
+
message: string;
|
|
46
|
+
object: 'x_account_connection_challenge';
|
|
47
|
+
status: 'requires_email_code';
|
|
48
|
+
username: string;
|
|
49
|
+
}
|
|
31
50
|
}
|
|
32
51
|
export interface AccountConnectionChallengeSubmitParams {
|
|
33
52
|
/**
|