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/webhooks.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
9
9
|
*/
|
|
10
10
|
export class Webhooks extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Registers an endpoint for signed event deliveries.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -23,11 +23,12 @@ export class Webhooks extends APIResource {
|
|
|
23
23
|
return this._client.post('/webhooks', { body, ...options });
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Updates an endpoint, event selection, or delivery settings.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* ```ts
|
|
30
30
|
* const webhook = await client.webhooks.update('id', {
|
|
31
|
+
* eventTypes: ['tweet.new'],
|
|
31
32
|
* isActive: true,
|
|
32
33
|
* url: 'https://example.com/webhook',
|
|
33
34
|
* });
|
|
@@ -37,18 +38,36 @@ export class Webhooks extends APIResource {
|
|
|
37
38
|
return this._client.patch(path `/webhooks/${id}`, { body, ...options });
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
|
-
*
|
|
41
|
+
* Returns configured webhook endpoints and delivery states.
|
|
41
42
|
*
|
|
42
43
|
* @example
|
|
43
44
|
* ```ts
|
|
44
45
|
* const webhooks = await client.webhooks.list();
|
|
45
46
|
* ```
|
|
46
47
|
*/
|
|
47
|
-
list(options) {
|
|
48
|
-
return this._client.get('/webhooks', options);
|
|
48
|
+
list(query = {}, options) {
|
|
49
|
+
return this._client.get('/webhooks', { query, ...options });
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* Returns a t.me link to @XquikBot that connects a Telegram chat to the account's
|
|
53
|
+
* monitor events. Opening it & pressing Start connects the chat, which then gets
|
|
54
|
+
* each event as a message. The link works once, within 15 minutes. The chat
|
|
55
|
+
* appears in the webhook list with the URL telegram:<chat ID>, with deliveries,
|
|
56
|
+
* retries & resume as any webhook. In the chat, /stop pauses its alerts. It costs
|
|
57
|
+
* no credits.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const response = await client.webhooks.createTelegramLink({
|
|
62
|
+
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
createTelegramLink(body = {}, options) {
|
|
67
|
+
return this._client.post('/webhooks/telegram', { body, ...options });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Stops future deliveries to the selected webhook.
|
|
52
71
|
*
|
|
53
72
|
* @example
|
|
54
73
|
* ```ts
|
|
@@ -59,18 +78,18 @@ export class Webhooks extends APIResource {
|
|
|
59
78
|
return this._client.delete(path `/webhooks/${id}`, options);
|
|
60
79
|
}
|
|
61
80
|
/**
|
|
62
|
-
*
|
|
81
|
+
* Returns delivery attempts and response outcomes, newest first.
|
|
63
82
|
*
|
|
64
83
|
* @example
|
|
65
84
|
* ```ts
|
|
66
85
|
* const response = await client.webhooks.listDeliveries('id');
|
|
67
86
|
* ```
|
|
68
87
|
*/
|
|
69
|
-
listDeliveries(id, options) {
|
|
70
|
-
return this._client.get(path `/webhooks/${id}/deliveries`, options);
|
|
88
|
+
listDeliveries(id, query = {}, options) {
|
|
89
|
+
return this._client.get(path `/webhooks/${id}/deliveries`, { query, ...options });
|
|
71
90
|
}
|
|
72
91
|
/**
|
|
73
|
-
*
|
|
92
|
+
* Tests the endpoint before resuming a manually paused webhook.
|
|
74
93
|
*
|
|
75
94
|
* @example
|
|
76
95
|
* ```ts
|
|
@@ -81,7 +100,7 @@ export class Webhooks extends APIResource {
|
|
|
81
100
|
return this._client.post(path `/webhooks/${id}/resume`, options);
|
|
82
101
|
}
|
|
83
102
|
/**
|
|
84
|
-
*
|
|
103
|
+
* Sends a signed test event to the configured endpoint.
|
|
85
104
|
*
|
|
86
105
|
* @example
|
|
87
106
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,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;OAcG;IACH,kBAAkB,CAChB,OAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CACZ,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccountConnectionAttempts extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns progress for an X account connection attempt.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccountConnectionAttempts extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns progress for an X account connection attempt.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -6,14 +6,15 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccountConnectionChallenges extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Submits the email code requested during X account connection.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
13
|
* const response =
|
|
14
|
-
* await client.x.accountConnectionChallenges.submit(
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* await client.x.accountConnectionChallenges.submit(
|
|
15
|
+
* 'xch_AbCdEfGhIjKlMnOp',
|
|
16
|
+
* { email_code: '<EMAIL_VERIFICATION_CODE>' },
|
|
17
|
+
* );
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
20
|
submit(id: string, body: AccountConnectionChallengeSubmitParams, options?: RequestOptions): APIPromise<AccountConnectionChallengeSubmitResponse>;
|
|
@@ -21,13 +22,31 @@ export declare class AccountConnectionChallenges extends APIResource {
|
|
|
21
22
|
/**
|
|
22
23
|
* Sanitized X account summary returned by connect and reauth.
|
|
23
24
|
*/
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
export type AccountConnectionChallengeSubmitResponse = AccountConnectionChallengeSubmitResponse.SanitizedXAccount | AccountConnectionChallengeSubmitResponse.XAccountConnectionChallenge;
|
|
26
|
+
export declare namespace AccountConnectionChallengeSubmitResponse {
|
|
27
|
+
/**
|
|
28
|
+
* Sanitized X account summary returned by connect and reauth.
|
|
29
|
+
*/
|
|
30
|
+
interface SanitizedXAccount {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
|
|
34
|
+
status: 'active';
|
|
35
|
+
xUserId: string;
|
|
36
|
+
xUsername: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Resumable account connection challenge. Submit the email code to finish the same
|
|
40
|
+
* connection attempt.
|
|
41
|
+
*/
|
|
42
|
+
interface XAccountConnectionChallenge {
|
|
43
|
+
id: string;
|
|
44
|
+
expiresAt: string;
|
|
45
|
+
message: string;
|
|
46
|
+
object: 'x_account_connection_challenge';
|
|
47
|
+
status: 'requires_email_code';
|
|
48
|
+
username: string;
|
|
49
|
+
}
|
|
31
50
|
}
|
|
32
51
|
export interface AccountConnectionChallengeSubmitParams {
|
|
33
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-challenges.d.mts","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,WAAW;IAC1D
|
|
1
|
+
{"version":3,"file":"account-connection-challenges.d.mts","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,WAAW;IAC1D;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,sCAAsC,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,wCAAwC,CAAC,iBAAiB,GAC1D,wCAAwC,CAAC,2BAA2B,CAAC;AAEzE,yBAAiB,wCAAwC,CAAC;IACxD;;OAEG;IACH,UAAiB,iBAAiB;QAChC,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,gBAAgB,CAAC;QAE7F,MAAM,EAAE,QAAQ,CAAC;QAEjB,OAAO,EAAE,MAAM,CAAC;QAEhB,SAAS,EAAE,MAAM,CAAC;KACnB;IAED;;;OAGG;IACH,UAAiB,2BAA2B;QAC1C,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,gCAAgC,CAAC;QAEzC,MAAM,EAAE,qBAAqB,CAAC;QAE9B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,2BAA2B,CAAC;IACnD,OAAO,EACL,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sCAAsC,IAAI,sCAAsC,GACtF,CAAC;CACH"}
|
|
@@ -6,14 +6,15 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccountConnectionChallenges extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Submits the email code requested during X account connection.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
13
|
* const response =
|
|
14
|
-
* await client.x.accountConnectionChallenges.submit(
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* await client.x.accountConnectionChallenges.submit(
|
|
15
|
+
* 'xch_AbCdEfGhIjKlMnOp',
|
|
16
|
+
* { email_code: '<EMAIL_VERIFICATION_CODE>' },
|
|
17
|
+
* );
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
20
|
submit(id: string, body: AccountConnectionChallengeSubmitParams, options?: RequestOptions): APIPromise<AccountConnectionChallengeSubmitResponse>;
|
|
@@ -21,13 +22,31 @@ export declare class AccountConnectionChallenges extends APIResource {
|
|
|
21
22
|
/**
|
|
22
23
|
* Sanitized X account summary returned by connect and reauth.
|
|
23
24
|
*/
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
export type AccountConnectionChallengeSubmitResponse = AccountConnectionChallengeSubmitResponse.SanitizedXAccount | AccountConnectionChallengeSubmitResponse.XAccountConnectionChallenge;
|
|
26
|
+
export declare namespace AccountConnectionChallengeSubmitResponse {
|
|
27
|
+
/**
|
|
28
|
+
* Sanitized X account summary returned by connect and reauth.
|
|
29
|
+
*/
|
|
30
|
+
interface SanitizedXAccount {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
|
|
34
|
+
status: 'active';
|
|
35
|
+
xUserId: string;
|
|
36
|
+
xUsername: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Resumable account connection challenge. Submit the email code to finish the same
|
|
40
|
+
* connection attempt.
|
|
41
|
+
*/
|
|
42
|
+
interface XAccountConnectionChallenge {
|
|
43
|
+
id: string;
|
|
44
|
+
expiresAt: string;
|
|
45
|
+
message: string;
|
|
46
|
+
object: 'x_account_connection_challenge';
|
|
47
|
+
status: 'requires_email_code';
|
|
48
|
+
username: string;
|
|
49
|
+
}
|
|
31
50
|
}
|
|
32
51
|
export interface AccountConnectionChallengeSubmitParams {
|
|
33
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-challenges.d.ts","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,WAAW;IAC1D
|
|
1
|
+
{"version":3,"file":"account-connection-challenges.d.ts","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,WAAW;IAC1D;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,sCAAsC,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,wCAAwC,CAAC,iBAAiB,GAC1D,wCAAwC,CAAC,2BAA2B,CAAC;AAEzE,yBAAiB,wCAAwC,CAAC;IACxD;;OAEG;IACH,UAAiB,iBAAiB;QAChC,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,gBAAgB,CAAC;QAE7F,MAAM,EAAE,QAAQ,CAAC;QAEjB,OAAO,EAAE,MAAM,CAAC;QAEhB,SAAS,EAAE,MAAM,CAAC;KACnB;IAED;;;OAGG;IACH,UAAiB,2BAA2B;QAC1C,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,gCAAgC,CAAC;QAEzC,MAAM,EAAE,qBAAqB,CAAC;QAE9B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,2BAA2B,CAAC;IACnD,OAAO,EACL,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sCAAsC,IAAI,sCAAsC,GACtF,CAAC;CACH"}
|
|
@@ -12,14 +12,15 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
12
12
|
*/
|
|
13
13
|
class AccountConnectionChallenges extends resource_1.APIResource {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Submits the email code requested during X account connection.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
19
19
|
* const response =
|
|
20
|
-
* await client.x.accountConnectionChallenges.submit(
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* await client.x.accountConnectionChallenges.submit(
|
|
21
|
+
* 'xch_AbCdEfGhIjKlMnOp',
|
|
22
|
+
* { email_code: '<EMAIL_VERIFICATION_CODE>' },
|
|
23
|
+
* );
|
|
23
24
|
* ```
|
|
24
25
|
*/
|
|
25
26
|
submit(id, body, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-challenges.js","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,2BAA4B,SAAQ,sBAAW;IAC1D
|
|
1
|
+
{"version":3,"file":"account-connection-challenges.js","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,2BAA4B,SAAQ,sBAAW;IAC1D;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAU,EACV,IAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AApBD,kEAoBC"}
|
|
@@ -9,14 +9,15 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
9
9
|
*/
|
|
10
10
|
export class AccountConnectionChallenges extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Submits the email code requested during X account connection.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
16
|
* const response =
|
|
17
|
-
* await client.x.accountConnectionChallenges.submit(
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* await client.x.accountConnectionChallenges.submit(
|
|
18
|
+
* 'xch_AbCdEfGhIjKlMnOp',
|
|
19
|
+
* { email_code: '<EMAIL_VERIFICATION_CODE>' },
|
|
20
|
+
* );
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
23
|
submit(id, body, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-connection-challenges.mjs","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,WAAW;IAC1D
|
|
1
|
+
{"version":3,"file":"account-connection-challenges.mjs","sourceRoot":"","sources":["../../src/resources/x/account-connection-challenges.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,WAAW;IAC1D;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAU,EACV,IAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF"}
|
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Accounts extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Starts a secure X account connection flow.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -20,7 +20,7 @@ export declare class Accounts extends APIResource {
|
|
|
20
20
|
*/
|
|
21
21
|
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Returns one connected X account and its current status.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* ```ts
|
|
@@ -31,16 +31,17 @@ export declare class Accounts extends APIResource {
|
|
|
31
31
|
*/
|
|
32
32
|
retrieve(id: string, options?: RequestOptions): APIPromise<XAccountDetail>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Returns connected accounts in creation order. Omit pagination for up to 10,000
|
|
35
|
+
* accounts. Send limit or cursor for legacy pagination.
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
37
38
|
* ```ts
|
|
38
39
|
* const accounts = await client.x.accounts.list();
|
|
39
40
|
* ```
|
|
40
41
|
*/
|
|
41
|
-
list(options?: RequestOptions): APIPromise<AccountListResponse>;
|
|
42
|
+
list(query?: AccountListParams | null | undefined, options?: RequestOptions): APIPromise<AccountListResponse>;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Disconnects one X account and removes stored session access.
|
|
44
45
|
*
|
|
45
46
|
* @example
|
|
46
47
|
* ```ts
|
|
@@ -59,7 +60,7 @@ export declare class Accounts extends APIResource {
|
|
|
59
60
|
*/
|
|
60
61
|
bulkRetry(options?: RequestOptions): APIPromise<AccountBulkRetryResponse>;
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* Starts re-authentication for an existing X account connection.
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```ts
|
|
@@ -88,7 +89,10 @@ export interface XAccount {
|
|
|
88
89
|
updatedAt: string;
|
|
89
90
|
xUserId: string;
|
|
90
91
|
xUsername: string;
|
|
91
|
-
|
|
92
|
+
/**
|
|
93
|
+
* When the account last connected or reconnected.
|
|
94
|
+
*/
|
|
95
|
+
connectedAt?: string;
|
|
92
96
|
}
|
|
93
97
|
/**
|
|
94
98
|
* Connected X account details with health and timestamp metadata.
|
|
@@ -100,7 +104,11 @@ export interface XAccountDetail {
|
|
|
100
104
|
status: string;
|
|
101
105
|
xUserId: string;
|
|
102
106
|
xUsername: string;
|
|
103
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Last connection or reconnection time of this account. Omitted before its first
|
|
109
|
+
* login.
|
|
110
|
+
*/
|
|
111
|
+
connectedAt?: string;
|
|
104
112
|
updatedAt?: string;
|
|
105
113
|
}
|
|
106
114
|
/**
|
|
@@ -143,6 +151,14 @@ export declare namespace AccountCreateResponse {
|
|
|
143
151
|
}
|
|
144
152
|
export interface AccountListResponse {
|
|
145
153
|
accounts: Array<XAccount>;
|
|
154
|
+
/**
|
|
155
|
+
* Present on cursor-paginated responses.
|
|
156
|
+
*/
|
|
157
|
+
hasMore?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Pass unchanged as cursor when hasMore is true.
|
|
160
|
+
*/
|
|
161
|
+
nextCursor?: string;
|
|
146
162
|
}
|
|
147
163
|
export interface AccountDeleteResponse {
|
|
148
164
|
success: true;
|
|
@@ -178,10 +194,22 @@ export interface AccountCreateParams {
|
|
|
178
194
|
*/
|
|
179
195
|
totp_secret: string;
|
|
180
196
|
/**
|
|
181
|
-
* X username
|
|
197
|
+
* X username of the account to connect, with or without @
|
|
182
198
|
*/
|
|
183
199
|
username: string;
|
|
184
200
|
}
|
|
201
|
+
export interface AccountListParams {
|
|
202
|
+
/**
|
|
203
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
204
|
+
* supported.
|
|
205
|
+
*/
|
|
206
|
+
cursor?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Maximum items per page: 1 to 100, default 50. Credits can reduce paid results.
|
|
209
|
+
* With none affordable, it returns 402 insufficient_credits.
|
|
210
|
+
*/
|
|
211
|
+
limit?: number;
|
|
212
|
+
}
|
|
185
213
|
export interface AccountReauthParams {
|
|
186
214
|
/**
|
|
187
215
|
* Updated account password
|
|
@@ -197,6 +225,6 @@ export interface AccountReauthParams {
|
|
|
197
225
|
totp_secret?: string;
|
|
198
226
|
}
|
|
199
227
|
export declare namespace Accounts {
|
|
200
|
-
export { type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountBulkRetryResponse as AccountBulkRetryResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountReauthParams as AccountReauthParams, };
|
|
228
|
+
export { type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountBulkRetryResponse as AccountBulkRetryResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountListParams as AccountListParams, type AccountReauthParams as AccountReauthParams, };
|
|
201
229
|
}
|
|
202
230
|
//# sourceMappingURL=accounts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI1E
|
|
1
|
+
{"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI1E;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,U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EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Accounts extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Starts a secure X account connection flow.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -20,7 +20,7 @@ export declare class Accounts extends APIResource {
|
|
|
20
20
|
*/
|
|
21
21
|
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Returns one connected X account and its current status.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* ```ts
|
|
@@ -31,16 +31,17 @@ export declare class Accounts extends APIResource {
|
|
|
31
31
|
*/
|
|
32
32
|
retrieve(id: string, options?: RequestOptions): APIPromise<XAccountDetail>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Returns connected accounts in creation order. Omit pagination for up to 10,000
|
|
35
|
+
* accounts. Send limit or cursor for legacy pagination.
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
37
38
|
* ```ts
|
|
38
39
|
* const accounts = await client.x.accounts.list();
|
|
39
40
|
* ```
|
|
40
41
|
*/
|
|
41
|
-
list(options?: RequestOptions): APIPromise<AccountListResponse>;
|
|
42
|
+
list(query?: AccountListParams | null | undefined, options?: RequestOptions): APIPromise<AccountListResponse>;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Disconnects one X account and removes stored session access.
|
|
44
45
|
*
|
|
45
46
|
* @example
|
|
46
47
|
* ```ts
|
|
@@ -59,7 +60,7 @@ export declare class Accounts extends APIResource {
|
|
|
59
60
|
*/
|
|
60
61
|
bulkRetry(options?: RequestOptions): APIPromise<AccountBulkRetryResponse>;
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* Starts re-authentication for an existing X account connection.
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```ts
|
|
@@ -88,7 +89,10 @@ export interface XAccount {
|
|
|
88
89
|
updatedAt: string;
|
|
89
90
|
xUserId: string;
|
|
90
91
|
xUsername: string;
|
|
91
|
-
|
|
92
|
+
/**
|
|
93
|
+
* When the account last connected or reconnected.
|
|
94
|
+
*/
|
|
95
|
+
connectedAt?: string;
|
|
92
96
|
}
|
|
93
97
|
/**
|
|
94
98
|
* Connected X account details with health and timestamp metadata.
|
|
@@ -100,7 +104,11 @@ export interface XAccountDetail {
|
|
|
100
104
|
status: string;
|
|
101
105
|
xUserId: string;
|
|
102
106
|
xUsername: string;
|
|
103
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Last connection or reconnection time of this account. Omitted before its first
|
|
109
|
+
* login.
|
|
110
|
+
*/
|
|
111
|
+
connectedAt?: string;
|
|
104
112
|
updatedAt?: string;
|
|
105
113
|
}
|
|
106
114
|
/**
|
|
@@ -143,6 +151,14 @@ export declare namespace AccountCreateResponse {
|
|
|
143
151
|
}
|
|
144
152
|
export interface AccountListResponse {
|
|
145
153
|
accounts: Array<XAccount>;
|
|
154
|
+
/**
|
|
155
|
+
* Present on cursor-paginated responses.
|
|
156
|
+
*/
|
|
157
|
+
hasMore?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Pass unchanged as cursor when hasMore is true.
|
|
160
|
+
*/
|
|
161
|
+
nextCursor?: string;
|
|
146
162
|
}
|
|
147
163
|
export interface AccountDeleteResponse {
|
|
148
164
|
success: true;
|
|
@@ -178,10 +194,22 @@ export interface AccountCreateParams {
|
|
|
178
194
|
*/
|
|
179
195
|
totp_secret: string;
|
|
180
196
|
/**
|
|
181
|
-
* X username
|
|
197
|
+
* X username of the account to connect, with or without @
|
|
182
198
|
*/
|
|
183
199
|
username: string;
|
|
184
200
|
}
|
|
201
|
+
export interface AccountListParams {
|
|
202
|
+
/**
|
|
203
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
204
|
+
* supported.
|
|
205
|
+
*/
|
|
206
|
+
cursor?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Maximum items per page: 1 to 100, default 50. Credits can reduce paid results.
|
|
209
|
+
* With none affordable, it returns 402 insufficient_credits.
|
|
210
|
+
*/
|
|
211
|
+
limit?: number;
|
|
212
|
+
}
|
|
185
213
|
export interface AccountReauthParams {
|
|
186
214
|
/**
|
|
187
215
|
* Updated account password
|
|
@@ -197,6 +225,6 @@ export interface AccountReauthParams {
|
|
|
197
225
|
totp_secret?: string;
|
|
198
226
|
}
|
|
199
227
|
export declare namespace Accounts {
|
|
200
|
-
export { type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountBulkRetryResponse as AccountBulkRetryResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountReauthParams as AccountReauthParams, };
|
|
228
|
+
export { type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountBulkRetryResponse as AccountBulkRetryResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountListParams as AccountListParams, type AccountReauthParams as AccountReauthParams, };
|
|
201
229
|
}
|
|
202
230
|
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI1E
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,+BAA4B;A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