x-twitter-scraper 0.12.4 → 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 +65 -0
- package/README.md +30 -9
- 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 +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 +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/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,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AC;IAE5B;;;OAGG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,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,CAC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G;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,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.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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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;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AAC,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"}
|
package/resources/drafts.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Drafts extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Stores a private Xquik draft. It never publishes or creates native X drafts.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -19,7 +19,7 @@ export declare class Drafts extends APIResource {
|
|
|
19
19
|
*/
|
|
20
20
|
create(body: DraftCreateParams, options?: RequestOptions): APIPromise<DraftDetail>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Returns one private Xquik draft. Native X drafts remain inaccessible.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
@@ -28,7 +28,7 @@ export declare class Drafts extends APIResource {
|
|
|
28
28
|
*/
|
|
29
29
|
retrieve(id: string, options?: RequestOptions): APIPromise<DraftDetail>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Lists private Xquik drafts. It cannot access native X drafts.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```ts
|
|
@@ -37,7 +37,7 @@ export declare class Drafts extends APIResource {
|
|
|
37
37
|
*/
|
|
38
38
|
list(query?: DraftListParams | null | undefined, options?: RequestOptions): APIPromise<DraftListResponse>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Deletes one Xquik draft, not native X drafts or published posts.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
@@ -47,7 +47,7 @@ export declare class Drafts extends APIResource {
|
|
|
47
47
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Private Xquik draft with optional topic and goal.
|
|
51
51
|
*/
|
|
52
52
|
export interface Draft {
|
|
53
53
|
id: string;
|
|
@@ -57,15 +57,10 @@ export interface Draft {
|
|
|
57
57
|
topic?: string;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Full
|
|
60
|
+
* Full private Xquik draft including update timestamp.
|
|
61
61
|
*/
|
|
62
|
-
export interface DraftDetail {
|
|
63
|
-
id: string;
|
|
64
|
-
createdAt: string;
|
|
65
|
-
text: string;
|
|
62
|
+
export interface DraftDetail extends Draft {
|
|
66
63
|
updatedAt: string;
|
|
67
|
-
goal?: string;
|
|
68
|
-
topic?: string;
|
|
69
64
|
}
|
|
70
65
|
export interface DraftListResponse {
|
|
71
66
|
drafts: Array<Draft>;
|
|
@@ -73,20 +68,21 @@ export interface DraftListResponse {
|
|
|
73
68
|
nextCursor?: string;
|
|
74
69
|
}
|
|
75
70
|
export interface DraftCreateParams {
|
|
71
|
+
/**
|
|
72
|
+
* Draft text, up to 25,000 characters. An emoji counts as 2.
|
|
73
|
+
*/
|
|
76
74
|
text: string;
|
|
77
75
|
goal?: 'engagement' | 'followers' | 'authority' | 'conversation';
|
|
78
76
|
topic?: string;
|
|
79
77
|
}
|
|
80
78
|
export interface DraftListParams {
|
|
81
79
|
/**
|
|
82
|
-
* Cursor for pagination
|
|
80
|
+
* Cursor for pagination. The after alias also works.
|
|
83
81
|
*/
|
|
84
82
|
afterCursor?: string;
|
|
85
83
|
/**
|
|
86
|
-
* Maximum
|
|
87
|
-
*
|
|
88
|
-
* the requested page. If zero paid results are affordable, the endpoint returns
|
|
89
|
-
* 402 insufficient_credits.
|
|
84
|
+
* Maximum items per page: 1 to 100, default 50. Credits can reduce paid results.
|
|
85
|
+
* With none affordable, it returns 402 insufficient_credits.
|
|
90
86
|
*/
|
|
91
87
|
limit?: number;
|
|
92
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drafts.d.mts","sourceRoot":"","sources":["../src/resources/drafts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIlF;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED;;G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AAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAErB,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,cAAc,CAAC;IAEjE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/drafts.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Drafts extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Stores a private Xquik draft. It never publishes or creates native X drafts.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -19,7 +19,7 @@ export declare class Drafts extends APIResource {
|
|
|
19
19
|
*/
|
|
20
20
|
create(body: DraftCreateParams, options?: RequestOptions): APIPromise<DraftDetail>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Returns one private Xquik draft. Native X drafts remain inaccessible.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
@@ -28,7 +28,7 @@ export declare class Drafts extends APIResource {
|
|
|
28
28
|
*/
|
|
29
29
|
retrieve(id: string, options?: RequestOptions): APIPromise<DraftDetail>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Lists private Xquik drafts. It cannot access native X drafts.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```ts
|
|
@@ -37,7 +37,7 @@ export declare class Drafts extends APIResource {
|
|
|
37
37
|
*/
|
|
38
38
|
list(query?: DraftListParams | null | undefined, options?: RequestOptions): APIPromise<DraftListResponse>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Deletes one Xquik draft, not native X drafts or published posts.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
@@ -47,7 +47,7 @@ export declare class Drafts extends APIResource {
|
|
|
47
47
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Private Xquik draft with optional topic and goal.
|
|
51
51
|
*/
|
|
52
52
|
export interface Draft {
|
|
53
53
|
id: string;
|
|
@@ -57,15 +57,10 @@ export interface Draft {
|
|
|
57
57
|
topic?: string;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Full
|
|
60
|
+
* Full private Xquik draft including update timestamp.
|
|
61
61
|
*/
|
|
62
|
-
export interface DraftDetail {
|
|
63
|
-
id: string;
|
|
64
|
-
createdAt: string;
|
|
65
|
-
text: string;
|
|
62
|
+
export interface DraftDetail extends Draft {
|
|
66
63
|
updatedAt: string;
|
|
67
|
-
goal?: string;
|
|
68
|
-
topic?: string;
|
|
69
64
|
}
|
|
70
65
|
export interface DraftListResponse {
|
|
71
66
|
drafts: Array<Draft>;
|
|
@@ -73,20 +68,21 @@ export interface DraftListResponse {
|
|
|
73
68
|
nextCursor?: string;
|
|
74
69
|
}
|
|
75
70
|
export interface DraftCreateParams {
|
|
71
|
+
/**
|
|
72
|
+
* Draft text, up to 25,000 characters. An emoji counts as 2.
|
|
73
|
+
*/
|
|
76
74
|
text: string;
|
|
77
75
|
goal?: 'engagement' | 'followers' | 'authority' | 'conversation';
|
|
78
76
|
topic?: string;
|
|
79
77
|
}
|
|
80
78
|
export interface DraftListParams {
|
|
81
79
|
/**
|
|
82
|
-
* Cursor for pagination
|
|
80
|
+
* Cursor for pagination. The after alias also works.
|
|
83
81
|
*/
|
|
84
82
|
afterCursor?: string;
|
|
85
83
|
/**
|
|
86
|
-
* Maximum
|
|
87
|
-
*
|
|
88
|
-
* the requested page. If zero paid results are affordable, the endpoint returns
|
|
89
|
-
* 402 insufficient_credits.
|
|
84
|
+
* Maximum items per page: 1 to 100, default 50. Credits can reduce paid results.
|
|
85
|
+
* With none affordable, it returns 402 insufficient_credits.
|
|
90
86
|
*/
|
|
91
87
|
limit?: number;
|
|
92
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drafts.d.ts","sourceRoot":"","sources":["../src/resources/drafts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIlF;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;OAOG;IACH,MAAM,CAAC,EAA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AK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,KAAK;IACxC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAErB,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,cAAc,CAAC;IAEjE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/drafts.js
CHANGED
|
@@ -13,7 +13,7 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
13
13
|
*/
|
|
14
14
|
class Drafts extends resource_1.APIResource {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Stores a private Xquik draft. It never publishes or creates native X drafts.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -28,7 +28,7 @@ class Drafts extends resource_1.APIResource {
|
|
|
28
28
|
return this._client.post('/drafts', { body, ...options });
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Returns one private Xquik draft. Native X drafts remain inaccessible.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```ts
|
|
@@ -39,7 +39,7 @@ class Drafts extends resource_1.APIResource {
|
|
|
39
39
|
return this._client.get((0, path_1.path) `/drafts/${id}`, options);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Lists private Xquik drafts. It cannot access native X drafts.
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* ```ts
|
|
@@ -50,7 +50,7 @@ class Drafts extends resource_1.APIResource {
|
|
|
50
50
|
return this._client.get('/drafts', { query, ...options });
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Deletes one Xquik draft, not native X drafts or published posts.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
package/resources/drafts.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
10
10
|
*/
|
|
11
11
|
export class Drafts extends APIResource {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Stores a private Xquik draft. It never publishes or creates native X drafts.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
@@ -25,7 +25,7 @@ export class Drafts extends APIResource {
|
|
|
25
25
|
return this._client.post('/drafts', { body, ...options });
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Returns one private Xquik draft. Native X drafts remain inaccessible.
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
@@ -36,7 +36,7 @@ export class Drafts extends APIResource {
|
|
|
36
36
|
return this._client.get(path `/drafts/${id}`, options);
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists private Xquik drafts. It cannot access native X drafts.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```ts
|
|
@@ -47,7 +47,7 @@ export class Drafts extends APIResource {
|
|
|
47
47
|
return this._client.get('/drafts', { query, ...options });
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Deletes one Xquik draft, not native X drafts or published posts.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* ```ts
|