x-twitter-scraper 0.12.3 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +73 -2
- package/README.md +66 -51
- package/client.d.mts +18 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -15
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +4 -4
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +270 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +265 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +116 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +111 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +7 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +7 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/package.json +23 -5
- package/resources/account.d.mts +35 -12
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +35 -12
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +4 -3
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +4 -3
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts +77 -21
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +77 -21
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js +3 -4
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +3 -4
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +18 -10
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +18 -10
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +5 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +5 -4
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +13 -17
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +13 -17
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +4 -4
- package/resources/drafts.mjs +4 -4
- package/resources/draws.d.mts +84 -28
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +84 -28
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +24 -9
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +24 -9
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +2564 -21
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +2564 -21
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +34 -2
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +34 -2
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +410 -128
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +410 -128
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +74 -12
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +74 -12
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +6 -5
- package/resources/guest-wallets.d.mts.map +1 -1
- package/resources/guest-wallets.d.ts +6 -5
- package/resources/guest-wallets.d.ts.map +1 -1
- package/resources/guest-wallets.js +2 -1
- package/resources/guest-wallets.js.map +1 -1
- package/resources/guest-wallets.mjs +2 -1
- package/resources/guest-wallets.mjs.map +1 -1
- package/resources/index.d.mts +6 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +2 -2
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -2
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +66 -14
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +66 -14
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/keywords.js +16 -10
- package/resources/monitors/keywords.js.map +1 -1
- package/resources/monitors/keywords.mjs +16 -10
- package/resources/monitors/keywords.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +53 -16
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +53 -16
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +12 -10
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +12 -10
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +32 -36
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +32 -36
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.js +1 -1
- package/resources/radar.mjs +1 -1
- package/resources/shared.d.mts +1726 -233
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1726 -233
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts +34 -23
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts +34 -23
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.js +11 -13
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +11 -13
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +1 -1
- package/resources/subscribe.d.ts +1 -1
- package/resources/subscribe.js +1 -1
- package/resources/subscribe.mjs +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +30 -10
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +30 -10
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +7 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +7 -7
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/trends.d.mts +21 -5
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +21 -5
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.js +2 -1
- package/resources/trends.js.map +1 -1
- package/resources/trends.mjs +2 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +80 -14
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -14
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +30 -11
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +30 -11
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +1 -1
- package/resources/x/account-connection-attempts.d.ts +1 -1
- package/resources/x/account-connection-attempts.js +1 -1
- package/resources/x/account-connection-attempts.mjs +1 -1
- package/resources/x/account-connection-challenges.d.mts +30 -11
- package/resources/x/account-connection-challenges.d.mts.map +1 -1
- package/resources/x/account-connection-challenges.d.ts +30 -11
- package/resources/x/account-connection-challenges.d.ts.map +1 -1
- package/resources/x/account-connection-challenges.js +5 -4
- package/resources/x/account-connection-challenges.js.map +1 -1
- package/resources/x/account-connection-challenges.mjs +5 -4
- package/resources/x/account-connection-challenges.mjs.map +1 -1
- package/resources/x/accounts.d.mts +38 -10
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +38 -10
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +8 -7
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +8 -7
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/analysis.d.mts +3274 -0
- package/resources/x/analysis.d.mts.map +1 -0
- package/resources/x/analysis.d.ts +3274 -0
- package/resources/x/analysis.d.ts.map +1 -0
- package/resources/x/analysis.js +132 -0
- package/resources/x/analysis.js.map +1 -0
- package/resources/x/analysis.mjs +128 -0
- package/resources/x/analysis.mjs.map +1 -0
- package/resources/x/bookmarks.d.mts +84 -9
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +84 -9
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.js +6 -4
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +6 -4
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +176 -0
- package/resources/x/broadcasts.d.mts.map +1 -0
- package/resources/x/broadcasts.d.ts +176 -0
- package/resources/x/broadcasts.d.ts.map +1 -0
- package/resources/x/broadcasts.js +29 -0
- package/resources/x/broadcasts.js.map +1 -0
- package/resources/x/broadcasts.mjs +25 -0
- package/resources/x/broadcasts.mjs.map +1 -0
- package/resources/x/communities/communities.d.mts +612 -128
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +612 -128
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +96 -17
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +96 -17
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js +3 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -0
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +46 -25
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +46 -25
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +10 -7
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +10 -7
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/media.d.mts +197 -0
- package/resources/x/communities/media.d.mts.map +1 -0
- package/resources/x/communities/media.d.ts +197 -0
- package/resources/x/communities/media.d.ts.map +1 -0
- package/resources/x/communities/media.js +29 -0
- package/resources/x/communities/media.js.map +1 -0
- package/resources/x/communities/media.mjs +25 -0
- package/resources/x/communities/media.mjs.map +1 -0
- package/resources/x/communities/tweets.d.mts +350 -20
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +350 -20
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +8 -7
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +8 -7
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/dm.d.mts +245 -13
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +245 -13
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +29 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +29 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +31 -3
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +31 -3
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.js +2 -1
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +2 -1
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +12 -8
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +12 -8
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +9 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +5 -1
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +506 -0
- package/resources/x/jobs.d.mts.map +1 -0
- package/resources/x/jobs.d.ts +506 -0
- package/resources/x/jobs.d.ts.map +1 -0
- package/resources/x/jobs.js +60 -0
- package/resources/x/jobs.js.map +1 -0
- package/resources/x/jobs.mjs +56 -0
- package/resources/x/jobs.mjs.map +1 -0
- package/resources/x/lists.d.mts +1058 -27
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +1058 -27
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.js +39 -9
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +39 -9
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +24 -13
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +24 -13
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -2
- package/resources/x/media.mjs +2 -2
- package/resources/x/profile.d.mts +60 -33
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +60 -33
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +3 -3
- package/resources/x/profile.mjs +3 -3
- package/resources/x/spaces.d.mts +857 -0
- package/resources/x/spaces.d.mts.map +1 -0
- package/resources/x/spaces.d.ts +857 -0
- package/resources/x/spaces.d.ts.map +1 -0
- package/resources/x/spaces.js +58 -0
- package/resources/x/spaces.js.map +1 -0
- package/resources/x/spaces.mjs +54 -0
- package/resources/x/spaces.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +38 -20
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +38 -20
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +2 -2
- package/resources/x/tweets/like.mjs +2 -2
- package/resources/x/tweets/retweet.d.mts +38 -20
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +38 -20
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +2 -2
- package/resources/x/tweets/retweet.mjs +2 -2
- package/resources/x/tweets/tweets.d.mts +2639 -326
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +2639 -326
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +147 -21
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +147 -21
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +38 -20
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +38 -20
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +2 -2
- package/resources/x/users/follow.mjs +2 -2
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +3068 -457
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +3068 -457
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +205 -22
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +205 -22
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +13 -6
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +13 -6
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/write-actions.js +1 -1
- package/resources/x/write-actions.mjs +1 -1
- package/resources/x/x.d.mts +864 -27
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +864 -27
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +78 -5
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +80 -7
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/SKILL.md +97 -350
- package/skills/x-twitter-scraper/metadata.json +3 -9
- package/skills/x-twitter-scraper/references/draws.md +24 -24
- package/skills/x-twitter-scraper/references/extractions.md +71 -62
- package/skills/x-twitter-scraper/references/mcp-setup.md +36 -39
- package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
- package/skills/x-twitter-scraper/references/python-examples.md +5 -5
- package/skills/x-twitter-scraper/references/security.md +8 -8
- package/skills/x-twitter-scraper/references/types-mcp-output-schemas.md +4 -4
- package/skills/x-twitter-scraper/references/types.md +0 -1
- package/skills/x-twitter-scraper/references/usage.md +5 -5
- package/skills/x-twitter-scraper/references/webhooks.md +28 -31
- package/skills/x-twitter-scraper/references/workflows.md +70 -71
- package/skills/x-twitter-scraper/skill-card.md +13 -14
- package/skills/x-twitter-scraper/skillspector-report.md +8 -5
- package/skills/xquik-account-automation/LICENSE +21 -0
- package/skills/xquik-account-automation/SKILL.md +91 -0
- package/skills/xquik-social-research/SKILL.md +49 -56
- package/src/client.ts +47 -4
- package/src/core/streaming.ts +328 -0
- package/src/internal/decoders/line.ts +140 -0
- package/src/internal/parse.ts +9 -0
- package/src/resources/account.ts +41 -12
- package/src/resources/compose.ts +77 -21
- package/src/resources/credits.ts +19 -10
- package/src/resources/drafts.ts +13 -22
- package/src/resources/draws.ts +94 -36
- package/src/resources/events.ts +3225 -68
- package/src/resources/extractions.ts +512 -125
- package/src/resources/guest-wallets.ts +6 -5
- package/src/resources/index.ts +24 -1
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/keywords.ts +82 -14
- package/src/resources/monitors/monitors.ts +66 -14
- package/src/resources/radar.ts +32 -36
- package/src/resources/shared.ts +2227 -351
- package/src/resources/styles.ts +43 -27
- package/src/resources/subscribe.ts +1 -1
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +38 -10
- package/src/resources/trends.ts +23 -5
- package/src/resources/webhooks.ts +109 -15
- package/src/resources/x/account-connection-attempts.ts +1 -1
- package/src/resources/x/account-connection-challenges.ts +39 -11
- package/src/resources/x/accounts.ts +46 -10
- package/src/resources/x/analysis.ts +3947 -0
- package/src/resources/x/bookmarks.ts +103 -9
- package/src/resources/x/broadcasts.ts +225 -0
- package/src/resources/x/communities/communities.ts +743 -141
- package/src/resources/x/communities/index.ts +9 -0
- package/src/resources/x/communities/join.ts +46 -23
- package/src/resources/x/communities/media.ts +251 -0
- package/src/resources/x/communities/tweets.ts +427 -20
- package/src/resources/x/dm.ts +334 -11
- package/src/resources/x/followers.ts +35 -3
- package/src/resources/x/index.ts +106 -1
- package/src/resources/x/jobs.ts +627 -0
- package/src/resources/x/lists.ts +1307 -28
- package/src/resources/x/media.ts +24 -12
- package/src/resources/x/profile.ts +60 -30
- package/src/resources/x/spaces.ts +1076 -0
- package/src/resources/x/tweets/index.ts +18 -0
- package/src/resources/x/tweets/like.ts +38 -18
- package/src/resources/x/tweets/retweet.ts +38 -18
- package/src/resources/x/tweets/tweets.ts +3695 -843
- package/src/resources/x/users/follow.ts +38 -18
- package/src/resources/x/users/index.ts +22 -0
- package/src/resources/x/users/users.ts +3687 -465
- package/src/resources/x/write-actions.ts +13 -5
- package/src/resources/x/x.ts +1227 -15
- package/src/streaming.ts +6 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +3 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +3 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +9 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +6 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/skills/x-twitter-scraper/references/types-rest-api-vs-mcp-field-naming.md +0 -15
package/resources/x/bookmarks.js
CHANGED
|
@@ -11,7 +11,8 @@ const resource_1 = require("../../core/resource.js");
|
|
|
11
11
|
*/
|
|
12
12
|
class Bookmarks extends resource_1.APIResource {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Returns your X account's bookmarks, else 424 `account_required`. A folder needs
|
|
15
|
+
* X Premium, else 424 `bookmark_folders_unavailable`.
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* ```ts
|
|
@@ -22,15 +23,16 @@ class Bookmarks extends resource_1.APIResource {
|
|
|
22
23
|
return this._client.get('/x/bookmarks', { query, ...options });
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* Returns your X account's bookmark folders, else 424 `account_required`. Folders
|
|
27
|
+
* need X Premium, else 424 `bookmark_folders_unavailable`.
|
|
26
28
|
*
|
|
27
29
|
* @example
|
|
28
30
|
* ```ts
|
|
29
31
|
* const response = await client.x.bookmarks.retrieveFolders();
|
|
30
32
|
* ```
|
|
31
33
|
*/
|
|
32
|
-
retrieveFolders(options) {
|
|
33
|
-
return this._client.get('/x/bookmarks/folders', options);
|
|
34
|
+
retrieveFolders(query = {}, options) {
|
|
35
|
+
return this._client.get('/x/bookmarks/folders', { query, ...options });
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
exports.Bookmarks = Bookmarks;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookmarks.js","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,qDAAkD;AAKlD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"bookmarks.js","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,qDAAkD;AAKlD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;OAQG;IACH,eAAe,CACb,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAhCD,8BAgCC"}
|
|
@@ -8,7 +8,8 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export class Bookmarks extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Returns your X account's bookmarks, else 424 `account_required`. A folder needs
|
|
12
|
+
* X Premium, else 424 `bookmark_folders_unavailable`.
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
* ```ts
|
|
@@ -19,15 +20,16 @@ export class Bookmarks extends APIResource {
|
|
|
19
20
|
return this._client.get('/x/bookmarks', { query, ...options });
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* Returns your X account's bookmark folders, else 424 `account_required`. Folders
|
|
24
|
+
* need X Premium, else 424 `bookmark_folders_unavailable`.
|
|
23
25
|
*
|
|
24
26
|
* @example
|
|
25
27
|
* ```ts
|
|
26
28
|
* const response = await client.x.bookmarks.retrieveFolders();
|
|
27
29
|
* ```
|
|
28
30
|
*/
|
|
29
|
-
retrieveFolders(options) {
|
|
30
|
-
return this._client.get('/x/bookmarks/folders', options);
|
|
31
|
+
retrieveFolders(query = {}, options) {
|
|
32
|
+
return this._client.get('/x/bookmarks/folders', { query, ...options });
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
//# sourceMappingURL=bookmarks.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookmarks.mjs","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"bookmarks.mjs","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;OAQG;IACH,eAAe,CACb,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../shared.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* X live video details, watch counts, and broadcaster
|
|
7
|
+
*/
|
|
8
|
+
export declare class Broadcasts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns one X broadcast, the live video X hosts at x.com/i/broadcasts, live or
|
|
11
|
+
* ended. Accepts the broadcast ID or the URL-encoded broadcast URL. Reading a
|
|
12
|
+
* broadcast adds no view to it.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const broadcast = await client.x.broadcasts.retrieve('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id: string, query?: BroadcastRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<BroadcastRetrieveResponse>;
|
|
20
|
+
}
|
|
21
|
+
export interface BroadcastRetrieveResponse {
|
|
22
|
+
/**
|
|
23
|
+
* X broadcast, a live video
|
|
24
|
+
*/
|
|
25
|
+
broadcast: BroadcastRetrieveResponse.Broadcast;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace BroadcastRetrieveResponse {
|
|
28
|
+
/**
|
|
29
|
+
* X broadcast, a live video
|
|
30
|
+
*/
|
|
31
|
+
interface Broadcast {
|
|
32
|
+
/**
|
|
33
|
+
* Broadcast ID
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Camera rotation in degrees
|
|
38
|
+
*/
|
|
39
|
+
cameraRotation?: number;
|
|
40
|
+
/**
|
|
41
|
+
* X's code for who may chat
|
|
42
|
+
*/
|
|
43
|
+
chatOption?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Public X profile.
|
|
46
|
+
*/
|
|
47
|
+
creator?: Shared.UserProfile;
|
|
48
|
+
/**
|
|
49
|
+
* When the broadcast ended
|
|
50
|
+
*/
|
|
51
|
+
endedAt?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Video height in pixels
|
|
54
|
+
*/
|
|
55
|
+
height?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Whether X offers a recording of the broadcast
|
|
58
|
+
*/
|
|
59
|
+
isAvailableForReplay?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the video stream runs in high-latency mode
|
|
62
|
+
*/
|
|
63
|
+
isHighLatency?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether X marks the chat private
|
|
66
|
+
*/
|
|
67
|
+
isPrivateChat?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the broadcaster edited the title of the replay
|
|
70
|
+
*/
|
|
71
|
+
isTitleEdited?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* When the video stream last reached X
|
|
74
|
+
*/
|
|
75
|
+
lastPingAt?: string;
|
|
76
|
+
/**
|
|
77
|
+
* X's media key for the video
|
|
78
|
+
*/
|
|
79
|
+
mediaKey?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Broadcaster, as X's live video service names the account
|
|
82
|
+
*/
|
|
83
|
+
periscopeUser?: Broadcast.PeriscopeUser;
|
|
84
|
+
/**
|
|
85
|
+
* Image X shows before the broadcast starts
|
|
86
|
+
*/
|
|
87
|
+
preLiveSlateUrl?: string;
|
|
88
|
+
/**
|
|
89
|
+
* When the broadcast was set to start
|
|
90
|
+
*/
|
|
91
|
+
scheduledStart?: string;
|
|
92
|
+
/**
|
|
93
|
+
* What produced the video stream, as X names it
|
|
94
|
+
*/
|
|
95
|
+
source?: string;
|
|
96
|
+
/**
|
|
97
|
+
* When the broadcast went live
|
|
98
|
+
*/
|
|
99
|
+
startedAt?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Such as NotStarted, Running or Ended, as X names it
|
|
102
|
+
*/
|
|
103
|
+
state?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Broadcast title
|
|
106
|
+
*/
|
|
107
|
+
title?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Accounts that watched, live or after
|
|
110
|
+
*/
|
|
111
|
+
totalWatched?: number;
|
|
112
|
+
/**
|
|
113
|
+
* Accounts watching, as X counts them
|
|
114
|
+
*/
|
|
115
|
+
totalWatching?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
118
|
+
*/
|
|
119
|
+
tweet?: Shared.SearchTweet;
|
|
120
|
+
/**
|
|
121
|
+
* ID of the post that announces the broadcast
|
|
122
|
+
*/
|
|
123
|
+
tweetId?: string;
|
|
124
|
+
/**
|
|
125
|
+
* X's revision number of the broadcast
|
|
126
|
+
*/
|
|
127
|
+
version?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Video width in pixels
|
|
130
|
+
*/
|
|
131
|
+
width?: number;
|
|
132
|
+
}
|
|
133
|
+
namespace Broadcast {
|
|
134
|
+
/**
|
|
135
|
+
* Broadcaster, as X's live video service names the account
|
|
136
|
+
*/
|
|
137
|
+
interface PeriscopeUser {
|
|
138
|
+
/**
|
|
139
|
+
* Live video account ID
|
|
140
|
+
*/
|
|
141
|
+
id?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Live video display name
|
|
144
|
+
*/
|
|
145
|
+
displayName?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Live video avatar URL
|
|
148
|
+
*/
|
|
149
|
+
profilePicture?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Live video username
|
|
152
|
+
*/
|
|
153
|
+
username?: string;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
export interface BroadcastRetrieveParams {
|
|
158
|
+
/**
|
|
159
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
160
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
161
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
162
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
163
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
164
|
+
* named fields.
|
|
165
|
+
*/
|
|
166
|
+
fields?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
169
|
+
* fields. With fields, it drops from the kept fields.
|
|
170
|
+
*/
|
|
171
|
+
omit?: string;
|
|
172
|
+
}
|
|
173
|
+
export declare namespace Broadcasts {
|
|
174
|
+
export { type BroadcastRetrieveResponse as BroadcastRetrieveResponse, type BroadcastRetrieveParams as BroadcastRetrieveParams, };
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=broadcasts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcasts.d.mts","sourceRoot":"","sources":["../../src/resources/x/broadcasts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,yBAAyB,CAAC,SAAS,CAAC;CAChD;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;QAE7B;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAE/B;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,aAAa,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC;QAExC;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;QAE3B;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAED,UAAiB,SAAS,CAAC;QACzB;;WAEG;QACH,UAAiB,aAAa;YAC5B;;eAEG;YACH,EAAE,CAAC,EAAE,MAAM,CAAC;YAEZ;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;YAExB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as Shared from "../shared.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* X live video details, watch counts, and broadcaster
|
|
7
|
+
*/
|
|
8
|
+
export declare class Broadcasts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns one X broadcast, the live video X hosts at x.com/i/broadcasts, live or
|
|
11
|
+
* ended. Accepts the broadcast ID or the URL-encoded broadcast URL. Reading a
|
|
12
|
+
* broadcast adds no view to it.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const broadcast = await client.x.broadcasts.retrieve('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id: string, query?: BroadcastRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<BroadcastRetrieveResponse>;
|
|
20
|
+
}
|
|
21
|
+
export interface BroadcastRetrieveResponse {
|
|
22
|
+
/**
|
|
23
|
+
* X broadcast, a live video
|
|
24
|
+
*/
|
|
25
|
+
broadcast: BroadcastRetrieveResponse.Broadcast;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace BroadcastRetrieveResponse {
|
|
28
|
+
/**
|
|
29
|
+
* X broadcast, a live video
|
|
30
|
+
*/
|
|
31
|
+
interface Broadcast {
|
|
32
|
+
/**
|
|
33
|
+
* Broadcast ID
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Camera rotation in degrees
|
|
38
|
+
*/
|
|
39
|
+
cameraRotation?: number;
|
|
40
|
+
/**
|
|
41
|
+
* X's code for who may chat
|
|
42
|
+
*/
|
|
43
|
+
chatOption?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Public X profile.
|
|
46
|
+
*/
|
|
47
|
+
creator?: Shared.UserProfile;
|
|
48
|
+
/**
|
|
49
|
+
* When the broadcast ended
|
|
50
|
+
*/
|
|
51
|
+
endedAt?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Video height in pixels
|
|
54
|
+
*/
|
|
55
|
+
height?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Whether X offers a recording of the broadcast
|
|
58
|
+
*/
|
|
59
|
+
isAvailableForReplay?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the video stream runs in high-latency mode
|
|
62
|
+
*/
|
|
63
|
+
isHighLatency?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether X marks the chat private
|
|
66
|
+
*/
|
|
67
|
+
isPrivateChat?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the broadcaster edited the title of the replay
|
|
70
|
+
*/
|
|
71
|
+
isTitleEdited?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* When the video stream last reached X
|
|
74
|
+
*/
|
|
75
|
+
lastPingAt?: string;
|
|
76
|
+
/**
|
|
77
|
+
* X's media key for the video
|
|
78
|
+
*/
|
|
79
|
+
mediaKey?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Broadcaster, as X's live video service names the account
|
|
82
|
+
*/
|
|
83
|
+
periscopeUser?: Broadcast.PeriscopeUser;
|
|
84
|
+
/**
|
|
85
|
+
* Image X shows before the broadcast starts
|
|
86
|
+
*/
|
|
87
|
+
preLiveSlateUrl?: string;
|
|
88
|
+
/**
|
|
89
|
+
* When the broadcast was set to start
|
|
90
|
+
*/
|
|
91
|
+
scheduledStart?: string;
|
|
92
|
+
/**
|
|
93
|
+
* What produced the video stream, as X names it
|
|
94
|
+
*/
|
|
95
|
+
source?: string;
|
|
96
|
+
/**
|
|
97
|
+
* When the broadcast went live
|
|
98
|
+
*/
|
|
99
|
+
startedAt?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Such as NotStarted, Running or Ended, as X names it
|
|
102
|
+
*/
|
|
103
|
+
state?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Broadcast title
|
|
106
|
+
*/
|
|
107
|
+
title?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Accounts that watched, live or after
|
|
110
|
+
*/
|
|
111
|
+
totalWatched?: number;
|
|
112
|
+
/**
|
|
113
|
+
* Accounts watching, as X counts them
|
|
114
|
+
*/
|
|
115
|
+
totalWatching?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
118
|
+
*/
|
|
119
|
+
tweet?: Shared.SearchTweet;
|
|
120
|
+
/**
|
|
121
|
+
* ID of the post that announces the broadcast
|
|
122
|
+
*/
|
|
123
|
+
tweetId?: string;
|
|
124
|
+
/**
|
|
125
|
+
* X's revision number of the broadcast
|
|
126
|
+
*/
|
|
127
|
+
version?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Video width in pixels
|
|
130
|
+
*/
|
|
131
|
+
width?: number;
|
|
132
|
+
}
|
|
133
|
+
namespace Broadcast {
|
|
134
|
+
/**
|
|
135
|
+
* Broadcaster, as X's live video service names the account
|
|
136
|
+
*/
|
|
137
|
+
interface PeriscopeUser {
|
|
138
|
+
/**
|
|
139
|
+
* Live video account ID
|
|
140
|
+
*/
|
|
141
|
+
id?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Live video display name
|
|
144
|
+
*/
|
|
145
|
+
displayName?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Live video avatar URL
|
|
148
|
+
*/
|
|
149
|
+
profilePicture?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Live video username
|
|
152
|
+
*/
|
|
153
|
+
username?: string;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
export interface BroadcastRetrieveParams {
|
|
158
|
+
/**
|
|
159
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
160
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
161
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
162
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
163
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
164
|
+
* named fields.
|
|
165
|
+
*/
|
|
166
|
+
fields?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
169
|
+
* fields. With fields, it drops from the kept fields.
|
|
170
|
+
*/
|
|
171
|
+
omit?: string;
|
|
172
|
+
}
|
|
173
|
+
export declare namespace Broadcasts {
|
|
174
|
+
export { type BroadcastRetrieveResponse as BroadcastRetrieveResponse, type BroadcastRetrieveParams as BroadcastRetrieveParams, };
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=broadcasts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcasts.d.ts","sourceRoot":"","sources":["../../src/resources/x/broadcasts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,yBAAyB,CAAC,SAAS,CAAC;CAChD;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;QAE7B;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAE/B;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,aAAa,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC;QAExC;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;QAE3B;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAED,UAAiB,SAAS,CAAC;QACzB;;WAEG;QACH,UAAiB,aAAa;YAC5B;;eAEG;YACH,EAAE,CAAC,EAAE,MAAM,CAAC;YAEZ;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;YAExB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
3
|
+
//
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Broadcasts = void 0;
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
const resource_1 = require("../../core/resource.js");
|
|
9
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
10
|
+
/**
|
|
11
|
+
* X live video details, watch counts, and broadcaster
|
|
12
|
+
*/
|
|
13
|
+
class Broadcasts extends resource_1.APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* Returns one X broadcast, the live video X hosts at x.com/i/broadcasts, live or
|
|
16
|
+
* ended. Accepts the broadcast ID or the URL-encoded broadcast URL. Reading a
|
|
17
|
+
* broadcast adds no view to it.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const broadcast = await client.x.broadcasts.retrieve('id');
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
retrieve(id, query = {}, options) {
|
|
25
|
+
return this._client.get((0, path_1.path) `/x/broadcasts/${id}`, { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Broadcasts = Broadcasts;
|
|
29
|
+
//# sourceMappingURL=broadcasts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcasts.js","sourceRoot":"","sources":["../../src/resources/x/broadcasts.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAlBD,gCAkBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
5
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
6
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* X live video details, watch counts, and broadcaster
|
|
9
|
+
*/
|
|
10
|
+
export class Broadcasts extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns one X broadcast, the live video X hosts at x.com/i/broadcasts, live or
|
|
13
|
+
* ended. Accepts the broadcast ID or the URL-encoded broadcast URL. Reading a
|
|
14
|
+
* broadcast adds no view to it.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const broadcast = await client.x.broadcasts.retrieve('id');
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
retrieve(id, query = {}, options) {
|
|
22
|
+
return this._client.get(path `/x/broadcasts/${id}`, { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=broadcasts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcasts.mjs","sourceRoot":"","sources":["../../src/resources/x/broadcasts.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|