x-twitter-scraper 0.12.3 → 0.13.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 +73 -2
- package/README.md +66 -51
- 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 +3 -3
- package/client.js.map +1 -1
- package/client.mjs +4 -4
- package/client.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 +270 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +265 -0
- package/core/streaming.mjs.map +1 -0
- 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 +116 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +111 -0
- package/internal/decoders/line.mjs.map +1 -0
- 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/tslib.js +18 -18
- 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 -3
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +4 -3
- 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 -4
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +3 -4
- 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 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +5 -4
- 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 -4
- package/resources/drafts.mjs +4 -4
- 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 -9
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +24 -9
- 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 -2
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +34 -2
- 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 -12
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +74 -12
- 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 -1
- package/resources/guest-wallets.js.map +1 -1
- package/resources/guest-wallets.mjs +2 -1
- 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.map +1 -1
- package/resources/index.mjs +1 -1
- 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.map +1 -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 -10
- package/resources/monitors/keywords.js.map +1 -1
- package/resources/monitors/keywords.mjs +16 -10
- 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 -10
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +12 -10
- package/resources/monitors/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 -1
- package/resources/radar.mjs +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 -13
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +11 -13
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +1 -1
- package/resources/subscribe.d.ts +1 -1
- package/resources/subscribe.js +1 -1
- package/resources/subscribe.mjs +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.map +1 -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.map +1 -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 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +7 -7
- package/resources/support/tickets.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 -1
- package/resources/trends.js.map +1 -1
- package/resources/trends.mjs +2 -1
- 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 -11
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +30 -11
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +1 -1
- package/resources/x/account-connection-attempts.d.ts +1 -1
- package/resources/x/account-connection-attempts.js +1 -1
- package/resources/x/account-connection-attempts.mjs +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 -4
- package/resources/x/account-connection-challenges.js.map +1 -1
- package/resources/x/account-connection-challenges.mjs +5 -4
- 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 -7
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +8 -7
- 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 +132 -0
- package/resources/x/analysis.js.map +1 -0
- package/resources/x/analysis.mjs +128 -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 -4
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +6 -4
- 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 +29 -0
- package/resources/x/broadcasts.js.map +1 -0
- package/resources/x/broadcasts.mjs +25 -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 -17
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +96 -17
- 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 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -0
- 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 -7
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +10 -7
- 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 +29 -0
- package/resources/x/communities/media.js.map +1 -0
- package/resources/x/communities/media.mjs +25 -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 -7
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +8 -7
- package/resources/x/communities/tweets.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 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +29 -2
- 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 -1
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +2 -1
- 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 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +5 -1
- 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 +60 -0
- package/resources/x/jobs.js.map +1 -0
- package/resources/x/jobs.mjs +56 -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 -9
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +39 -9
- 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 -2
- package/resources/x/media.mjs +2 -2
- 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 -3
- package/resources/x/profile.mjs +3 -3
- 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 +58 -0
- package/resources/x/spaces.js.map +1 -0
- package/resources/x/spaces.mjs +54 -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.map +1 -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 -2
- package/resources/x/tweets/like.mjs +2 -2
- 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 -2
- package/resources/x/tweets/retweet.mjs +2 -2
- 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 -21
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +147 -21
- package/resources/x/tweets/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 -2
- package/resources/x/users/follow.mjs +2 -2
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +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 -22
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +205 -22
- package/resources/x/users/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 -1
- package/resources/x/write-actions.mjs +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 -5
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +80 -7
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/SKILL.md +97 -350
- package/skills/x-twitter-scraper/metadata.json +3 -9
- package/skills/x-twitter-scraper/references/draws.md +24 -24
- package/skills/x-twitter-scraper/references/extractions.md +71 -62
- package/skills/x-twitter-scraper/references/mcp-setup.md +36 -39
- package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
- package/skills/x-twitter-scraper/references/python-examples.md +5 -5
- package/skills/x-twitter-scraper/references/security.md +8 -8
- 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/references/usage.md +5 -5
- package/skills/x-twitter-scraper/references/webhooks.md +28 -31
- package/skills/x-twitter-scraper/references/workflows.md +70 -71
- package/skills/x-twitter-scraper/skill-card.md +13 -14
- package/skills/x-twitter-scraper/skillspector-report.md +8 -5
- package/skills/xquik-account-automation/LICENSE +21 -0
- package/skills/xquik-account-automation/SKILL.md +91 -0
- package/skills/xquik-social-research/SKILL.md +49 -56
- package/src/client.ts +47 -4
- package/src/core/streaming.ts +328 -0
- package/src/internal/decoders/line.ts +140 -0
- package/src/internal/parse.ts +9 -0
- package/src/resources/account.ts +41 -12
- package/src/resources/compose.ts +77 -21
- package/src/resources/credits.ts +19 -10
- package/src/resources/drafts.ts +13 -22
- package/src/resources/draws.ts +94 -36
- package/src/resources/events.ts +3225 -68
- package/src/resources/extractions.ts +512 -125
- package/src/resources/guest-wallets.ts +6 -5
- package/src/resources/index.ts +24 -1
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/keywords.ts +82 -14
- package/src/resources/monitors/monitors.ts +66 -14
- package/src/resources/radar.ts +32 -36
- package/src/resources/shared.ts +2227 -351
- package/src/resources/styles.ts +43 -27
- package/src/resources/subscribe.ts +1 -1
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +38 -10
- package/src/resources/trends.ts +23 -5
- package/src/resources/webhooks.ts +109 -15
- package/src/resources/x/account-connection-attempts.ts +1 -1
- package/src/resources/x/account-connection-challenges.ts +39 -11
- package/src/resources/x/accounts.ts +46 -10
- package/src/resources/x/analysis.ts +3947 -0
- package/src/resources/x/bookmarks.ts +103 -9
- package/src/resources/x/broadcasts.ts +225 -0
- package/src/resources/x/communities/communities.ts +743 -141
- package/src/resources/x/communities/index.ts +9 -0
- package/src/resources/x/communities/join.ts +46 -23
- package/src/resources/x/communities/media.ts +251 -0
- package/src/resources/x/communities/tweets.ts +427 -20
- package/src/resources/x/dm.ts +334 -11
- package/src/resources/x/followers.ts +35 -3
- package/src/resources/x/index.ts +106 -1
- package/src/resources/x/jobs.ts +627 -0
- package/src/resources/x/lists.ts +1307 -28
- package/src/resources/x/media.ts +24 -12
- package/src/resources/x/profile.ts +60 -30
- package/src/resources/x/spaces.ts +1076 -0
- package/src/resources/x/tweets/index.ts +18 -0
- package/src/resources/x/tweets/like.ts +38 -18
- package/src/resources/x/tweets/retweet.ts +38 -18
- package/src/resources/x/tweets/tweets.ts +3695 -843
- package/src/resources/x/users/follow.ts +38 -18
- package/src/resources/x/users/index.ts +22 -0
- package/src/resources/x/users/users.ts +3687 -465
- package/src/resources/x/write-actions.ts +13 -5
- package/src/resources/x/x.ts +1227 -15
- 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/compose.d.ts
CHANGED
|
@@ -6,10 +6,8 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Compose extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* goal-specific guidance. Score applies deterministic text checks. It does not
|
|
12
|
-
* predict reach or expose X ranking weights.
|
|
9
|
+
* Uses xai-org/x-algorithm facts to compose and refine text. Score checks text. It
|
|
10
|
+
* never predicts reach or engagement.
|
|
13
11
|
*
|
|
14
12
|
* @example
|
|
15
13
|
* ```ts
|
|
@@ -17,20 +15,27 @@ export declare class Compose extends APIResource {
|
|
|
17
15
|
* step: 'compose',
|
|
18
16
|
* topic: 'PostgreSQL query planning',
|
|
19
17
|
* goal: 'engagement',
|
|
18
|
+
* styleUsername: 'example_user',
|
|
20
19
|
* });
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
22
|
create(body: ComposeCreateParams, options?: RequestOptions): APIPromise<ComposeCreateResponse>;
|
|
24
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Rules, questions, and research guidance for drafting a post.
|
|
26
|
+
*/
|
|
25
27
|
export type ComposeCreateResponse = ComposeCreateResponse.ComposePrepareResult | ComposeCreateResponse.ComposeRefineResult | ComposeCreateResponse.ComposeScoreResult;
|
|
26
28
|
export declare namespace ComposeCreateResponse {
|
|
29
|
+
/**
|
|
30
|
+
* Rules, questions, and research guidance for drafting a post.
|
|
31
|
+
*/
|
|
27
32
|
interface ComposePrepareResult {
|
|
28
33
|
/**
|
|
29
|
-
*
|
|
34
|
+
* Facts derived only from xai-org/x-algorithm.
|
|
30
35
|
*/
|
|
31
36
|
contentRules: Array<ComposePrepareResult.ContentRule>;
|
|
32
37
|
/**
|
|
33
|
-
*
|
|
38
|
+
* Source ranking signals. Repository defaults may vary in production.
|
|
34
39
|
*/
|
|
35
40
|
engagementMultipliers: Array<ComposePrepareResult.EngagementMultiplier>;
|
|
36
41
|
/**
|
|
@@ -44,11 +49,13 @@ export declare namespace ComposeCreateResponse {
|
|
|
44
49
|
intentUrl: string;
|
|
45
50
|
nextStep: string;
|
|
46
51
|
/**
|
|
47
|
-
*
|
|
52
|
+
* Deprecated compatibility field. Always empty.
|
|
53
|
+
*
|
|
54
|
+
* @deprecated
|
|
48
55
|
*/
|
|
49
56
|
radarRecommendations: Array<ComposePrepareResult.RadarRecommendation>;
|
|
50
57
|
/**
|
|
51
|
-
*
|
|
58
|
+
* Source signals with production values withheld as null.
|
|
52
59
|
*/
|
|
53
60
|
scorerWeights: Array<ComposePrepareResult.ScorerWeight>;
|
|
54
61
|
/**
|
|
@@ -73,16 +80,27 @@ export declare namespace ComposeCreateResponse {
|
|
|
73
80
|
styleTweets?: Array<string>;
|
|
74
81
|
}
|
|
75
82
|
namespace ComposePrepareResult {
|
|
83
|
+
/**
|
|
84
|
+
* One source-backed ranking fact returned during preparation.
|
|
85
|
+
*/
|
|
76
86
|
interface ContentRule {
|
|
77
87
|
rule: string;
|
|
78
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* One ranking signal and its source-value limit.
|
|
91
|
+
*/
|
|
79
92
|
interface EngagementMultiplier {
|
|
80
93
|
/**
|
|
81
94
|
* Human-readable published signal name.
|
|
82
95
|
*/
|
|
83
96
|
action: string;
|
|
84
|
-
multiplier: '
|
|
97
|
+
multiplier: 'Source default; production value can vary';
|
|
85
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Deprecated compatibility schema. The response array is empty.
|
|
101
|
+
*
|
|
102
|
+
* @deprecated
|
|
103
|
+
*/
|
|
86
104
|
interface RadarRecommendation {
|
|
87
105
|
/**
|
|
88
106
|
* Radar endpoint for this source.
|
|
@@ -98,9 +116,12 @@ export declare namespace ComposeCreateResponse {
|
|
|
98
116
|
*/
|
|
99
117
|
useFor: string;
|
|
100
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* One source ranking signal without a production claim.
|
|
121
|
+
*/
|
|
101
122
|
interface ScorerWeight {
|
|
102
123
|
/**
|
|
103
|
-
* Signal direction and
|
|
124
|
+
* Signal direction and production limit.
|
|
104
125
|
*/
|
|
105
126
|
context: string;
|
|
106
127
|
/**
|
|
@@ -108,49 +129,72 @@ export declare namespace ComposeCreateResponse {
|
|
|
108
129
|
*/
|
|
109
130
|
signal: string;
|
|
110
131
|
/**
|
|
111
|
-
*
|
|
132
|
+
* Null prevents source defaults becoming production claims.
|
|
112
133
|
*/
|
|
113
134
|
weight: null;
|
|
114
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* A saved username style and analyzed post count.
|
|
138
|
+
*/
|
|
115
139
|
interface SavedStyle {
|
|
140
|
+
/**
|
|
141
|
+
* Whole number from 0.
|
|
142
|
+
*/
|
|
116
143
|
tweetCount: number;
|
|
117
144
|
username: string;
|
|
118
145
|
}
|
|
119
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Source-backed guidance for refining a post.
|
|
149
|
+
*/
|
|
120
150
|
interface ComposeRefineResult {
|
|
121
151
|
/**
|
|
122
|
-
*
|
|
152
|
+
* Request context and xai-org/x-algorithm guidance.
|
|
123
153
|
*/
|
|
124
154
|
compositionGuidance: Array<string>;
|
|
155
|
+
/**
|
|
156
|
+
* @deprecated
|
|
157
|
+
*/
|
|
125
158
|
examplePatterns: Array<ComposeRefineResult.ExamplePattern>;
|
|
126
159
|
/**
|
|
127
|
-
* X post intent
|
|
160
|
+
* X post intent generated for the refined topic.
|
|
128
161
|
*/
|
|
129
162
|
intentUrl: string;
|
|
130
163
|
nextStep: string;
|
|
131
164
|
}
|
|
132
165
|
namespace ComposeRefineResult {
|
|
166
|
+
/**
|
|
167
|
+
* Deprecated example-pattern schema. The response array is empty.
|
|
168
|
+
*
|
|
169
|
+
* @deprecated
|
|
170
|
+
*/
|
|
133
171
|
interface ExamplePattern {
|
|
134
172
|
description: string;
|
|
135
173
|
pattern: string;
|
|
136
174
|
}
|
|
137
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Posting validation without a fabricated ranking score.
|
|
178
|
+
*/
|
|
138
179
|
interface ComposeScoreResult {
|
|
139
180
|
/**
|
|
140
|
-
* Deterministic
|
|
181
|
+
* Deterministic input validation. Not a reach prediction.
|
|
141
182
|
*/
|
|
142
183
|
checklist: Array<ComposeScoreResult.Checklist>;
|
|
143
184
|
nextStep: string;
|
|
144
185
|
passed: boolean;
|
|
145
186
|
passedCount: number;
|
|
146
187
|
topSuggestion: string;
|
|
147
|
-
totalChecks:
|
|
188
|
+
totalChecks: 1;
|
|
148
189
|
/**
|
|
149
190
|
* Present only when every check passes.
|
|
150
191
|
*/
|
|
151
192
|
intentUrl?: string;
|
|
152
193
|
}
|
|
153
194
|
namespace ComposeScoreResult {
|
|
195
|
+
/**
|
|
196
|
+
* One deterministic draft check.
|
|
197
|
+
*/
|
|
154
198
|
interface Checklist {
|
|
155
199
|
factor: string;
|
|
156
200
|
passed: boolean;
|
|
@@ -161,8 +205,14 @@ export declare namespace ComposeCreateResponse {
|
|
|
161
205
|
}
|
|
162
206
|
}
|
|
163
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Inputs for preparing source-backed post guidance.
|
|
210
|
+
*/
|
|
164
211
|
export type ComposeCreateParams = ComposeCreateParams.ComposePrepareRequest | ComposeCreateParams.ComposeRefineRequest | ComposeCreateParams.ComposeScoreRequest;
|
|
165
212
|
export declare namespace ComposeCreateParams {
|
|
213
|
+
/**
|
|
214
|
+
* Inputs for preparing source-backed post guidance.
|
|
215
|
+
*/
|
|
166
216
|
interface ComposePrepareRequest {
|
|
167
217
|
step: 'compose';
|
|
168
218
|
/**
|
|
@@ -170,7 +220,7 @@ export declare namespace ComposeCreateParams {
|
|
|
170
220
|
*/
|
|
171
221
|
topic: string;
|
|
172
222
|
/**
|
|
173
|
-
*
|
|
223
|
+
* User goal used for one follow-up question.
|
|
174
224
|
*/
|
|
175
225
|
goal?: 'engagement' | 'followers' | 'authority' | 'conversation';
|
|
176
226
|
/**
|
|
@@ -179,9 +229,12 @@ export declare namespace ComposeCreateParams {
|
|
|
179
229
|
styleUsername?: string;
|
|
180
230
|
[k: string]: unknown;
|
|
181
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* Inputs for refining a post plan.
|
|
234
|
+
*/
|
|
182
235
|
interface ComposeRefineRequest {
|
|
183
236
|
/**
|
|
184
|
-
*
|
|
237
|
+
* User goal interpreted against published ranking signals.
|
|
185
238
|
*/
|
|
186
239
|
goal: 'engagement' | 'followers' | 'authority' | 'conversation';
|
|
187
240
|
step: 'refine';
|
|
@@ -190,7 +243,7 @@ export declare namespace ComposeCreateParams {
|
|
|
190
243
|
*/
|
|
191
244
|
tone: string;
|
|
192
245
|
/**
|
|
193
|
-
* Subject
|
|
246
|
+
* Subject to refine into a post.
|
|
194
247
|
*/
|
|
195
248
|
topic: string;
|
|
196
249
|
/**
|
|
@@ -207,18 +260,21 @@ export declare namespace ComposeCreateParams {
|
|
|
207
260
|
mediaType?: 'photo' | 'video' | 'none';
|
|
208
261
|
[k: string]: unknown;
|
|
209
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Inputs for checking a post draft.
|
|
265
|
+
*/
|
|
210
266
|
interface ComposeScoreRequest {
|
|
211
267
|
/**
|
|
212
|
-
* Full post text
|
|
268
|
+
* Full post text. The endpoint never assigns a ranking score.
|
|
213
269
|
*/
|
|
214
270
|
draft: string;
|
|
215
271
|
step: 'score';
|
|
216
272
|
/**
|
|
217
|
-
*
|
|
273
|
+
* @deprecated Ignored. Remove this field.
|
|
218
274
|
*/
|
|
219
275
|
hasLink?: boolean;
|
|
220
276
|
/**
|
|
221
|
-
* @deprecated Ignored. Remove this field.
|
|
277
|
+
* @deprecated Ignored. Remove this field.
|
|
222
278
|
*/
|
|
223
279
|
hasMedia?: boolean;
|
|
224
280
|
[k: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B,qBAAqB,CAAC,oBAAoB,GAC1C,qBAAqB,CAAC,mBAAmB,GACzC,qBAAqB,CAAC,kBAAkB,CAAC;AAE7C,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,YAAY,EAAE,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;QAEtD;;WAEG;QACH,qBAAqB,EAAE,KAAK,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;QAExE;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEjC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;WAIG;QACH,oBAAoB,EAAE,KAAK,CAAC,o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C,EAAE,MAAM,CAAC;QAEvB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;IAED;;OAEG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,cAAc,CAAC;QAEhE,IAAI,EAAE,QAAQ,CAAC;QAEf;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;QAEvC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;IAED;;OAEG;IACH,UAAiB,mBAAmB;QAClC;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/compose.js
CHANGED
|
@@ -11,10 +11,8 @@ const resource_1 = require("../core/resource.js");
|
|
|
11
11
|
*/
|
|
12
12
|
class Compose extends resource_1.APIResource {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* goal-specific guidance. Score applies deterministic text checks. It does not
|
|
17
|
-
* predict reach or expose X ranking weights.
|
|
14
|
+
* Uses xai-org/x-algorithm facts to compose and refine text. Score checks text. It
|
|
15
|
+
* never predicts reach or engagement.
|
|
18
16
|
*
|
|
19
17
|
* @example
|
|
20
18
|
* ```ts
|
|
@@ -22,6 +20,7 @@ class Compose extends resource_1.APIResource {
|
|
|
22
20
|
* step: 'compose',
|
|
23
21
|
* topic: 'PostgreSQL query planning',
|
|
24
22
|
* goal: 'engagement',
|
|
23
|
+
* styleUsername: 'example_user',
|
|
25
24
|
* });
|
|
26
25
|
* ```
|
|
27
26
|
*/
|
package/resources/compose.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AAlBD,0BAkBC"}
|
package/resources/compose.mjs
CHANGED
|
@@ -8,10 +8,8 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export class Compose extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* goal-specific guidance. Score applies deterministic text checks. It does not
|
|
14
|
-
* predict reach or expose X ranking weights.
|
|
11
|
+
* Uses xai-org/x-algorithm facts to compose and refine text. Score checks text. It
|
|
12
|
+
* never predicts reach or engagement.
|
|
15
13
|
*
|
|
16
14
|
* @example
|
|
17
15
|
* ```ts
|
|
@@ -19,6 +17,7 @@ export class Compose extends APIResource {
|
|
|
19
17
|
* step: 'compose',
|
|
20
18
|
* topic: 'PostgreSQL query planning',
|
|
21
19
|
* goal: 'engagement',
|
|
20
|
+
* styleUsername: 'example_user',
|
|
22
21
|
* });
|
|
23
22
|
* ```
|
|
24
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.mjs","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"compose.mjs","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
package/resources/credits.d.mts
CHANGED
|
@@ -2,11 +2,11 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* Subscription, billing, and
|
|
5
|
+
* Subscription, billing, and credits
|
|
6
6
|
*/
|
|
7
7
|
export declare class Credits extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Redirects to the active hosted top-up checkout.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -17,7 +17,7 @@ export declare class Credits extends APIResource {
|
|
|
17
17
|
*/
|
|
18
18
|
redirectTopupCheckout(query: CreditRedirectTopupCheckoutParams, options?: RequestOptions): APIPromise<void>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Returns the account credit balance and usage context.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
@@ -26,7 +26,7 @@ export declare class Credits extends APIResource {
|
|
|
26
26
|
*/
|
|
27
27
|
retrieveBalance(options?: RequestOptions): APIPromise<CreditRetrieveBalanceResponse>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Returns verification status for a credit top-up.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* ```ts
|
|
@@ -44,6 +44,7 @@ export declare class Credits extends APIResource {
|
|
|
44
44
|
* ```ts
|
|
45
45
|
* const response = await client.credits.topupBalance({
|
|
46
46
|
* dollars: 10,
|
|
47
|
+
* locale: 'en',
|
|
47
48
|
* });
|
|
48
49
|
* ```
|
|
49
50
|
*/
|
|
@@ -56,21 +57,27 @@ export interface CreditRetrieveBalanceResponse {
|
|
|
56
57
|
auto_topup_amount_dollars: number;
|
|
57
58
|
auto_topup_enabled: boolean;
|
|
58
59
|
/**
|
|
59
|
-
*
|
|
60
|
+
* Whether declined charges stopped automatic top-up while it is enabled. It stops
|
|
61
|
+
* after 3 declines in a row on one card. A paid top-up, a paid plan renewal, or
|
|
62
|
+
* the next automatic top-up on a new card clears it.
|
|
63
|
+
*/
|
|
64
|
+
auto_topup_stopped: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Credit balance threshold that triggers automatic top-up when enabled,
|
|
60
67
|
* represented as a bigint string.
|
|
61
68
|
*/
|
|
62
69
|
auto_topup_threshold: string;
|
|
63
70
|
/**
|
|
64
|
-
* Current
|
|
71
|
+
* Current credit balance as a bigint string to preserve precision above
|
|
65
72
|
* Number.MAX_SAFE_INTEGER.
|
|
66
73
|
*/
|
|
67
74
|
balance: string;
|
|
68
75
|
/**
|
|
69
|
-
* Lifetime purchased
|
|
76
|
+
* Lifetime purchased credits as a bigint string.
|
|
70
77
|
*/
|
|
71
78
|
lifetime_purchased: string;
|
|
72
79
|
/**
|
|
73
|
-
* Lifetime consumed
|
|
80
|
+
* Lifetime consumed credits as a bigint string.
|
|
74
81
|
*/
|
|
75
82
|
lifetime_used: string;
|
|
76
83
|
}
|
|
@@ -81,7 +88,7 @@ export interface CreditRetrieveTopupStatusResponse {
|
|
|
81
88
|
*/
|
|
82
89
|
amount_dollars?: number | null;
|
|
83
90
|
/**
|
|
84
|
-
* Bigint string
|
|
91
|
+
* Bigint string credit amount granted or pending.
|
|
85
92
|
*/
|
|
86
93
|
credits?: string;
|
|
87
94
|
}
|
|
@@ -114,7 +121,8 @@ export interface CreditTopupBalanceParams {
|
|
|
114
121
|
*/
|
|
115
122
|
dollars: number;
|
|
116
123
|
/**
|
|
117
|
-
* Optional
|
|
124
|
+
* Optional site language for Stripe's return page. An unsupported 1 uses en, the
|
|
125
|
+
* default.
|
|
118
126
|
*/
|
|
119
127
|
locale?: string;
|
|
120
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.mts","sourceRoot":"","sources":["../src/resources/credits.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,qBAAqB,CACnB,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;;;;OAOG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAA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,iCAAiC;IAChD,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,SAAS,CAAC;IAErD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/credits.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
/**
|
|
5
|
-
* Subscription, billing, and
|
|
5
|
+
* Subscription, billing, and credits
|
|
6
6
|
*/
|
|
7
7
|
export declare class Credits extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Redirects to the active hosted top-up checkout.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -17,7 +17,7 @@ export declare class Credits extends APIResource {
|
|
|
17
17
|
*/
|
|
18
18
|
redirectTopupCheckout(query: CreditRedirectTopupCheckoutParams, options?: RequestOptions): APIPromise<void>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Returns the account credit balance and usage context.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
@@ -26,7 +26,7 @@ export declare class Credits extends APIResource {
|
|
|
26
26
|
*/
|
|
27
27
|
retrieveBalance(options?: RequestOptions): APIPromise<CreditRetrieveBalanceResponse>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Returns verification status for a credit top-up.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* ```ts
|
|
@@ -44,6 +44,7 @@ export declare class Credits extends APIResource {
|
|
|
44
44
|
* ```ts
|
|
45
45
|
* const response = await client.credits.topupBalance({
|
|
46
46
|
* dollars: 10,
|
|
47
|
+
* locale: 'en',
|
|
47
48
|
* });
|
|
48
49
|
* ```
|
|
49
50
|
*/
|
|
@@ -56,21 +57,27 @@ export interface CreditRetrieveBalanceResponse {
|
|
|
56
57
|
auto_topup_amount_dollars: number;
|
|
57
58
|
auto_topup_enabled: boolean;
|
|
58
59
|
/**
|
|
59
|
-
*
|
|
60
|
+
* Whether declined charges stopped automatic top-up while it is enabled. It stops
|
|
61
|
+
* after 3 declines in a row on one card. A paid top-up, a paid plan renewal, or
|
|
62
|
+
* the next automatic top-up on a new card clears it.
|
|
63
|
+
*/
|
|
64
|
+
auto_topup_stopped: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Credit balance threshold that triggers automatic top-up when enabled,
|
|
60
67
|
* represented as a bigint string.
|
|
61
68
|
*/
|
|
62
69
|
auto_topup_threshold: string;
|
|
63
70
|
/**
|
|
64
|
-
* Current
|
|
71
|
+
* Current credit balance as a bigint string to preserve precision above
|
|
65
72
|
* Number.MAX_SAFE_INTEGER.
|
|
66
73
|
*/
|
|
67
74
|
balance: string;
|
|
68
75
|
/**
|
|
69
|
-
* Lifetime purchased
|
|
76
|
+
* Lifetime purchased credits as a bigint string.
|
|
70
77
|
*/
|
|
71
78
|
lifetime_purchased: string;
|
|
72
79
|
/**
|
|
73
|
-
* Lifetime consumed
|
|
80
|
+
* Lifetime consumed credits as a bigint string.
|
|
74
81
|
*/
|
|
75
82
|
lifetime_used: string;
|
|
76
83
|
}
|
|
@@ -81,7 +88,7 @@ export interface CreditRetrieveTopupStatusResponse {
|
|
|
81
88
|
*/
|
|
82
89
|
amount_dollars?: number | null;
|
|
83
90
|
/**
|
|
84
|
-
* Bigint string
|
|
91
|
+
* Bigint string credit amount granted or pending.
|
|
85
92
|
*/
|
|
86
93
|
credits?: string;
|
|
87
94
|
}
|
|
@@ -114,7 +121,8 @@ export interface CreditTopupBalanceParams {
|
|
|
114
121
|
*/
|
|
115
122
|
dollars: number;
|
|
116
123
|
/**
|
|
117
|
-
* Optional
|
|
124
|
+
* Optional site language for Stripe's return page. An unsupported 1 uses en, the
|
|
125
|
+
* default.
|
|
118
126
|
*/
|
|
119
127
|
locale?: string;
|
|
120
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../src/resources/credits.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,qBAAqB,CACnB,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;;;;OAOG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIpF;;;;;;;;;OASG;IACH,mB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,SAAS,CAAC;IAErD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/credits.js
CHANGED
|
@@ -8,11 +8,11 @@ exports.Credits = void 0;
|
|
|
8
8
|
const resource_1 = require("../core/resource.js");
|
|
9
9
|
const headers_1 = require("../internal/headers.js");
|
|
10
10
|
/**
|
|
11
|
-
* Subscription, billing, and
|
|
11
|
+
* Subscription, billing, and credits
|
|
12
12
|
*/
|
|
13
13
|
class Credits extends resource_1.APIResource {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Redirects to the active hosted top-up checkout.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
@@ -30,7 +30,7 @@ class Credits extends resource_1.APIResource {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Returns the account credit balance and usage context.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* ```ts
|
|
@@ -41,7 +41,7 @@ class Credits extends resource_1.APIResource {
|
|
|
41
41
|
return this._client.get('/credits', options);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Returns verification status for a credit top-up.
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```ts
|
|
@@ -61,6 +61,7 @@ class Credits extends resource_1.APIResource {
|
|
|
61
61
|
* ```ts
|
|
62
62
|
* const response = await client.credits.topupBalance({
|
|
63
63
|
* dollars: 10,
|
|
64
|
+
* locale: 'en',
|
|
64
65
|
* });
|
|
65
66
|
* ```
|
|
66
67
|
*/
|
package/resources/credits.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../src/resources/credits.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,kDAA+C;AAE/C,oDAAmD;AAGnD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,qBAAqB,CACnB,KAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE;YACjD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC5D,UAAU,EAAE,EAAE;SACf,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;;;;;OASG;IACH,mBAAmB,CACjB,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../src/resources/credits.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,kDAA+C;AAE/C,oDAAmD;AAGnD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,qBAAqB,CACnB,KAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE;YACjD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC5D,UAAU,EAAE,EAAE;SACf,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;;;;;OASG;IACH,mBAAmB,CACjB,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CACV,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAtED,0BAsEC"}
|
package/resources/credits.mjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { APIResource } from "../core/resource.mjs";
|
|
6
6
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
7
7
|
/**
|
|
8
|
-
* Subscription, billing, and
|
|
8
|
+
* Subscription, billing, and credits
|
|
9
9
|
*/
|
|
10
10
|
export class Credits extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Redirects to the active hosted top-up checkout.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -27,7 +27,7 @@ export class Credits extends APIResource {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Returns the account credit balance and usage context.
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```ts
|
|
@@ -38,7 +38,7 @@ export class Credits extends APIResource {
|
|
|
38
38
|
return this._client.get('/credits', options);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Returns verification status for a credit top-up.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```ts
|
|
@@ -58,6 +58,7 @@ export class Credits extends APIResource {
|
|
|
58
58
|
* ```ts
|
|
59
59
|
* const response = await client.credits.topupBalance({
|
|
60
60
|
* dollars: 10,
|
|
61
|
+
* locale: 'en',
|
|
61
62
|
* });
|
|
62
63
|
* ```
|
|
63
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../src/resources/credits.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAGnD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,qBAAqB,CACnB,KAAwC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