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
|
@@ -0,0 +1,857 @@
|
|
|
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 Space details, host, and speakers
|
|
7
|
+
*/
|
|
8
|
+
export declare class Spaces extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns one X Space as X shows it, live, scheduled or ended. Accepts the Space
|
|
11
|
+
* ID or the URL-encoded Space URL. A Space X limits to subscribers or a community
|
|
12
|
+
* answers 404.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const space = await client.x.spaces.retrieve('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id: string, query?: SpaceRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<SpaceRetrieveResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the recording X plays back once a Space is over, in state Ended or
|
|
22
|
+
* TimedOut. Accepts the Space ID or the URL-encoded Space URL. Check state and
|
|
23
|
+
* isAvailableForReplay with the Space lookup first. A live or scheduled Space
|
|
24
|
+
* answers 409, and a cancelled one 404.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const response = await client.x.spaces.retrieveReplay('id');
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
retrieveReplay(id: string, query?: SpaceRetrieveReplayParams | null | undefined, options?: RequestOptions): APIPromise<SpaceRetrieveReplayResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the public Spaces that posts matching the query share, live, scheduled
|
|
34
|
+
* or ended. Each page reads up to pageSize posts, 20 by default, and returns each
|
|
35
|
+
* Space once. Costs 1 credit per Space.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const response = await client.x.spaces.search({
|
|
40
|
+
* q: 'from:solana',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
search(query: SpaceSearchParams, options?: RequestOptions): APIPromise<SpaceSearchResponse>;
|
|
45
|
+
}
|
|
46
|
+
export interface SpaceRetrieveResponse {
|
|
47
|
+
/**
|
|
48
|
+
* X Space
|
|
49
|
+
*/
|
|
50
|
+
space: SpaceRetrieveResponse.Space;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace SpaceRetrieveResponse {
|
|
53
|
+
/**
|
|
54
|
+
* X Space
|
|
55
|
+
*/
|
|
56
|
+
interface Space {
|
|
57
|
+
/**
|
|
58
|
+
* Space ID
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
/**
|
|
62
|
+
* Hosts and co-hosts
|
|
63
|
+
*/
|
|
64
|
+
admins: Array<Space.Admin>;
|
|
65
|
+
/**
|
|
66
|
+
* Accounts X lists as listeners
|
|
67
|
+
*/
|
|
68
|
+
listeners: Array<Space.Listener>;
|
|
69
|
+
/**
|
|
70
|
+
* Accounts X lists as speakers
|
|
71
|
+
*/
|
|
72
|
+
speakers: Array<Space.Speaker>;
|
|
73
|
+
/**
|
|
74
|
+
* Audio or video kind, as X names it
|
|
75
|
+
*/
|
|
76
|
+
contentType?: string;
|
|
77
|
+
/**
|
|
78
|
+
* X's code for who may speak
|
|
79
|
+
*/
|
|
80
|
+
conversationControls?: number;
|
|
81
|
+
/**
|
|
82
|
+
* When the Space was made
|
|
83
|
+
*/
|
|
84
|
+
createdAt?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Public X profile.
|
|
87
|
+
*/
|
|
88
|
+
creator?: Shared.UserProfile;
|
|
89
|
+
/**
|
|
90
|
+
* Whether X lets no more accounts join
|
|
91
|
+
*/
|
|
92
|
+
disallowJoin?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* When the Space ended
|
|
95
|
+
*/
|
|
96
|
+
endedAt?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Whether listeners may clip the Space
|
|
99
|
+
*/
|
|
100
|
+
isAvailableForClipping?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Whether X offers a recording
|
|
103
|
+
*/
|
|
104
|
+
isAvailableForReplay?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Whether only X employees may join
|
|
107
|
+
*/
|
|
108
|
+
isEmployeeOnly?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the host locked the Space
|
|
111
|
+
*/
|
|
112
|
+
isLocked?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Most hosts and co-hosts the Space allows
|
|
115
|
+
*/
|
|
116
|
+
maxAdminCapacity?: number;
|
|
117
|
+
/**
|
|
118
|
+
* X's media key for the Space's audio
|
|
119
|
+
*/
|
|
120
|
+
mediaKey?: string;
|
|
121
|
+
/**
|
|
122
|
+
* IDs of the accounts the host tagged
|
|
123
|
+
*/
|
|
124
|
+
mentionedUserIds?: Array<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Whether anonymous listening is off
|
|
127
|
+
*/
|
|
128
|
+
noIncognito?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Accounts in the Space now, while it is live
|
|
131
|
+
*/
|
|
132
|
+
participantCount?: number;
|
|
133
|
+
/**
|
|
134
|
+
* When the Space was set to start
|
|
135
|
+
*/
|
|
136
|
+
scheduledStart?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Posts the hosts and speakers shared in the Space, in X's order. Only when X
|
|
139
|
+
* lists them.
|
|
140
|
+
*/
|
|
141
|
+
sharings?: Array<Space.Sharing>;
|
|
142
|
+
/**
|
|
143
|
+
* When the Space went live
|
|
144
|
+
*/
|
|
145
|
+
startedAt?: string;
|
|
146
|
+
/**
|
|
147
|
+
* NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
|
|
148
|
+
* started) or TimedOut (closed by X, not by its host)
|
|
149
|
+
*/
|
|
150
|
+
state?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Space title
|
|
153
|
+
*/
|
|
154
|
+
title?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Accounts that listened live
|
|
157
|
+
*/
|
|
158
|
+
totalLiveListeners?: number;
|
|
159
|
+
/**
|
|
160
|
+
* Accounts that played the recording
|
|
161
|
+
*/
|
|
162
|
+
totalReplayWatched?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
165
|
+
*/
|
|
166
|
+
tweet?: Shared.SearchTweet;
|
|
167
|
+
/**
|
|
168
|
+
* ID of the post that announces the Space
|
|
169
|
+
*/
|
|
170
|
+
tweetId?: string;
|
|
171
|
+
/**
|
|
172
|
+
* When X last changed the Space
|
|
173
|
+
*/
|
|
174
|
+
updatedAt?: string;
|
|
175
|
+
}
|
|
176
|
+
namespace Space {
|
|
177
|
+
/**
|
|
178
|
+
* An account on a Space's stage or in its audience, as X lists it there.
|
|
179
|
+
*/
|
|
180
|
+
interface Admin {
|
|
181
|
+
id: string;
|
|
182
|
+
/**
|
|
183
|
+
* Name the account shows in the Space
|
|
184
|
+
*/
|
|
185
|
+
name: string;
|
|
186
|
+
username: string;
|
|
187
|
+
/**
|
|
188
|
+
* Organization affiliation label shown on an X profile.
|
|
189
|
+
*/
|
|
190
|
+
affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
|
|
191
|
+
/**
|
|
192
|
+
* Whether the account has X Premium verification
|
|
193
|
+
*/
|
|
194
|
+
isBlueVerified?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Whether a host muted the account
|
|
197
|
+
*/
|
|
198
|
+
isMutedByAdmin?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Whether the account muted itself
|
|
201
|
+
*/
|
|
202
|
+
isMutedByGuest?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Whether X shows a verified badge in the Space
|
|
205
|
+
*/
|
|
206
|
+
isVerified?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* When the account joined the Space
|
|
209
|
+
*/
|
|
210
|
+
joinedAt?: string;
|
|
211
|
+
/**
|
|
212
|
+
* The account's ID in X's broadcast service
|
|
213
|
+
*/
|
|
214
|
+
periscopeUserId?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Profile picture URL
|
|
217
|
+
*/
|
|
218
|
+
profilePicture?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Business or Government badge type
|
|
221
|
+
*/
|
|
222
|
+
verifiedType?: string;
|
|
223
|
+
}
|
|
224
|
+
namespace Admin {
|
|
225
|
+
/**
|
|
226
|
+
* Organization affiliation label shown on an X profile.
|
|
227
|
+
*/
|
|
228
|
+
interface AffiliatesHighlightedLabel {
|
|
229
|
+
badgeUrl?: string;
|
|
230
|
+
description?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Public text, ranges, references, and mention data.
|
|
233
|
+
*/
|
|
234
|
+
longDescription?: {
|
|
235
|
+
[key: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
url?: string;
|
|
238
|
+
urlType?: string;
|
|
239
|
+
userLabelDisplayType?: string;
|
|
240
|
+
userLabelType?: string;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* An account on a Space's stage or in its audience, as X lists it there.
|
|
245
|
+
*/
|
|
246
|
+
interface Listener {
|
|
247
|
+
id: string;
|
|
248
|
+
/**
|
|
249
|
+
* Name the account shows in the Space
|
|
250
|
+
*/
|
|
251
|
+
name: string;
|
|
252
|
+
username: string;
|
|
253
|
+
/**
|
|
254
|
+
* Organization affiliation label shown on an X profile.
|
|
255
|
+
*/
|
|
256
|
+
affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
|
|
257
|
+
/**
|
|
258
|
+
* Whether the account has X Premium verification
|
|
259
|
+
*/
|
|
260
|
+
isBlueVerified?: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Whether a host muted the account
|
|
263
|
+
*/
|
|
264
|
+
isMutedByAdmin?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Whether the account muted itself
|
|
267
|
+
*/
|
|
268
|
+
isMutedByGuest?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Whether X shows a verified badge in the Space
|
|
271
|
+
*/
|
|
272
|
+
isVerified?: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* When the account joined the Space
|
|
275
|
+
*/
|
|
276
|
+
joinedAt?: string;
|
|
277
|
+
/**
|
|
278
|
+
* The account's ID in X's broadcast service
|
|
279
|
+
*/
|
|
280
|
+
periscopeUserId?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Profile picture URL
|
|
283
|
+
*/
|
|
284
|
+
profilePicture?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Business or Government badge type
|
|
287
|
+
*/
|
|
288
|
+
verifiedType?: string;
|
|
289
|
+
}
|
|
290
|
+
namespace Listener {
|
|
291
|
+
/**
|
|
292
|
+
* Organization affiliation label shown on an X profile.
|
|
293
|
+
*/
|
|
294
|
+
interface AffiliatesHighlightedLabel {
|
|
295
|
+
badgeUrl?: string;
|
|
296
|
+
description?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Public text, ranges, references, and mention data.
|
|
299
|
+
*/
|
|
300
|
+
longDescription?: {
|
|
301
|
+
[key: string]: unknown;
|
|
302
|
+
};
|
|
303
|
+
url?: string;
|
|
304
|
+
urlType?: string;
|
|
305
|
+
userLabelDisplayType?: string;
|
|
306
|
+
userLabelType?: string;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* An account on a Space's stage or in its audience, as X lists it there.
|
|
311
|
+
*/
|
|
312
|
+
interface Speaker {
|
|
313
|
+
id: string;
|
|
314
|
+
/**
|
|
315
|
+
* Name the account shows in the Space
|
|
316
|
+
*/
|
|
317
|
+
name: string;
|
|
318
|
+
username: string;
|
|
319
|
+
/**
|
|
320
|
+
* Organization affiliation label shown on an X profile.
|
|
321
|
+
*/
|
|
322
|
+
affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
|
|
323
|
+
/**
|
|
324
|
+
* Whether the account has X Premium verification
|
|
325
|
+
*/
|
|
326
|
+
isBlueVerified?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Whether a host muted the account
|
|
329
|
+
*/
|
|
330
|
+
isMutedByAdmin?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Whether the account muted itself
|
|
333
|
+
*/
|
|
334
|
+
isMutedByGuest?: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* Whether X shows a verified badge in the Space
|
|
337
|
+
*/
|
|
338
|
+
isVerified?: boolean;
|
|
339
|
+
/**
|
|
340
|
+
* When the account joined the Space
|
|
341
|
+
*/
|
|
342
|
+
joinedAt?: string;
|
|
343
|
+
/**
|
|
344
|
+
* The account's ID in X's broadcast service
|
|
345
|
+
*/
|
|
346
|
+
periscopeUserId?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Profile picture URL
|
|
349
|
+
*/
|
|
350
|
+
profilePicture?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Business or Government badge type
|
|
353
|
+
*/
|
|
354
|
+
verifiedType?: string;
|
|
355
|
+
}
|
|
356
|
+
namespace Speaker {
|
|
357
|
+
/**
|
|
358
|
+
* Organization affiliation label shown on an X profile.
|
|
359
|
+
*/
|
|
360
|
+
interface AffiliatesHighlightedLabel {
|
|
361
|
+
badgeUrl?: string;
|
|
362
|
+
description?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Public text, ranges, references, and mention data.
|
|
365
|
+
*/
|
|
366
|
+
longDescription?: {
|
|
367
|
+
[key: string]: unknown;
|
|
368
|
+
};
|
|
369
|
+
url?: string;
|
|
370
|
+
urlType?: string;
|
|
371
|
+
userLabelDisplayType?: string;
|
|
372
|
+
userLabelType?: string;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* A post shared in a Space, & the account that shared it.
|
|
377
|
+
*/
|
|
378
|
+
interface Sharing {
|
|
379
|
+
/**
|
|
380
|
+
* X's ID of the sharing, not of the post
|
|
381
|
+
*/
|
|
382
|
+
id?: string;
|
|
383
|
+
/**
|
|
384
|
+
* When the post was shared
|
|
385
|
+
*/
|
|
386
|
+
sharedAt?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Public X profile.
|
|
389
|
+
*/
|
|
390
|
+
sharedBy?: Shared.UserProfile;
|
|
391
|
+
/**
|
|
392
|
+
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
393
|
+
*/
|
|
394
|
+
tweet?: Shared.SearchTweet;
|
|
395
|
+
/**
|
|
396
|
+
* When X last changed the sharing
|
|
397
|
+
*/
|
|
398
|
+
updatedAt?: string;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
export interface SpaceRetrieveReplayResponse {
|
|
403
|
+
/**
|
|
404
|
+
* Recording of an ended Space
|
|
405
|
+
*/
|
|
406
|
+
replay: SpaceRetrieveReplayResponse.Replay;
|
|
407
|
+
}
|
|
408
|
+
export declare namespace SpaceRetrieveReplayResponse {
|
|
409
|
+
/**
|
|
410
|
+
* Recording of an ended Space
|
|
411
|
+
*/
|
|
412
|
+
interface Replay {
|
|
413
|
+
/**
|
|
414
|
+
* HLS playlist of the recording
|
|
415
|
+
*/
|
|
416
|
+
url: string;
|
|
417
|
+
/**
|
|
418
|
+
* Stream status, as X names it
|
|
419
|
+
*/
|
|
420
|
+
status?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Stream format, as X names it
|
|
423
|
+
*/
|
|
424
|
+
streamType?: string;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
export interface SpaceSearchResponse {
|
|
428
|
+
has_next_page: boolean;
|
|
429
|
+
next_cursor: string;
|
|
430
|
+
/**
|
|
431
|
+
* Public Spaces, in the order the posts share them
|
|
432
|
+
*/
|
|
433
|
+
spaces: Array<SpaceSearchResponse.Space>;
|
|
434
|
+
}
|
|
435
|
+
export declare namespace SpaceSearchResponse {
|
|
436
|
+
/**
|
|
437
|
+
* X Space
|
|
438
|
+
*/
|
|
439
|
+
interface Space {
|
|
440
|
+
/**
|
|
441
|
+
* Space ID
|
|
442
|
+
*/
|
|
443
|
+
id: string;
|
|
444
|
+
/**
|
|
445
|
+
* Hosts and co-hosts
|
|
446
|
+
*/
|
|
447
|
+
admins: Array<Space.Admin>;
|
|
448
|
+
/**
|
|
449
|
+
* Accounts X lists as listeners
|
|
450
|
+
*/
|
|
451
|
+
listeners: Array<Space.Listener>;
|
|
452
|
+
/**
|
|
453
|
+
* Accounts X lists as speakers
|
|
454
|
+
*/
|
|
455
|
+
speakers: Array<Space.Speaker>;
|
|
456
|
+
/**
|
|
457
|
+
* Audio or video kind, as X names it
|
|
458
|
+
*/
|
|
459
|
+
contentType?: string;
|
|
460
|
+
/**
|
|
461
|
+
* X's code for who may speak
|
|
462
|
+
*/
|
|
463
|
+
conversationControls?: number;
|
|
464
|
+
/**
|
|
465
|
+
* When the Space was made
|
|
466
|
+
*/
|
|
467
|
+
createdAt?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Public X profile.
|
|
470
|
+
*/
|
|
471
|
+
creator?: Shared.UserProfile;
|
|
472
|
+
/**
|
|
473
|
+
* Whether X lets no more accounts join
|
|
474
|
+
*/
|
|
475
|
+
disallowJoin?: boolean;
|
|
476
|
+
/**
|
|
477
|
+
* When the Space ended
|
|
478
|
+
*/
|
|
479
|
+
endedAt?: string;
|
|
480
|
+
/**
|
|
481
|
+
* Whether listeners may clip the Space
|
|
482
|
+
*/
|
|
483
|
+
isAvailableForClipping?: boolean;
|
|
484
|
+
/**
|
|
485
|
+
* Whether X offers a recording
|
|
486
|
+
*/
|
|
487
|
+
isAvailableForReplay?: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* Whether only X employees may join
|
|
490
|
+
*/
|
|
491
|
+
isEmployeeOnly?: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* Whether the host locked the Space
|
|
494
|
+
*/
|
|
495
|
+
isLocked?: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* Most hosts and co-hosts the Space allows
|
|
498
|
+
*/
|
|
499
|
+
maxAdminCapacity?: number;
|
|
500
|
+
/**
|
|
501
|
+
* X's media key for the Space's audio
|
|
502
|
+
*/
|
|
503
|
+
mediaKey?: string;
|
|
504
|
+
/**
|
|
505
|
+
* IDs of the accounts the host tagged
|
|
506
|
+
*/
|
|
507
|
+
mentionedUserIds?: Array<string>;
|
|
508
|
+
/**
|
|
509
|
+
* Whether anonymous listening is off
|
|
510
|
+
*/
|
|
511
|
+
noIncognito?: boolean;
|
|
512
|
+
/**
|
|
513
|
+
* Accounts in the Space now, while it is live
|
|
514
|
+
*/
|
|
515
|
+
participantCount?: number;
|
|
516
|
+
/**
|
|
517
|
+
* When the Space was set to start
|
|
518
|
+
*/
|
|
519
|
+
scheduledStart?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Posts the hosts and speakers shared in the Space, in X's order. Only when X
|
|
522
|
+
* lists them.
|
|
523
|
+
*/
|
|
524
|
+
sharings?: Array<Space.Sharing>;
|
|
525
|
+
/**
|
|
526
|
+
* When the Space went live
|
|
527
|
+
*/
|
|
528
|
+
startedAt?: string;
|
|
529
|
+
/**
|
|
530
|
+
* NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
|
|
531
|
+
* started) or TimedOut (closed by X, not by its host)
|
|
532
|
+
*/
|
|
533
|
+
state?: string;
|
|
534
|
+
/**
|
|
535
|
+
* Space title
|
|
536
|
+
*/
|
|
537
|
+
title?: string;
|
|
538
|
+
/**
|
|
539
|
+
* Accounts that listened live
|
|
540
|
+
*/
|
|
541
|
+
totalLiveListeners?: number;
|
|
542
|
+
/**
|
|
543
|
+
* Accounts that played the recording
|
|
544
|
+
*/
|
|
545
|
+
totalReplayWatched?: number;
|
|
546
|
+
/**
|
|
547
|
+
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
548
|
+
*/
|
|
549
|
+
tweet?: Shared.SearchTweet;
|
|
550
|
+
/**
|
|
551
|
+
* ID of the post that announces the Space
|
|
552
|
+
*/
|
|
553
|
+
tweetId?: string;
|
|
554
|
+
/**
|
|
555
|
+
* When X last changed the Space
|
|
556
|
+
*/
|
|
557
|
+
updatedAt?: string;
|
|
558
|
+
}
|
|
559
|
+
namespace Space {
|
|
560
|
+
/**
|
|
561
|
+
* An account on a Space's stage or in its audience, as X lists it there.
|
|
562
|
+
*/
|
|
563
|
+
interface Admin {
|
|
564
|
+
id: string;
|
|
565
|
+
/**
|
|
566
|
+
* Name the account shows in the Space
|
|
567
|
+
*/
|
|
568
|
+
name: string;
|
|
569
|
+
username: string;
|
|
570
|
+
/**
|
|
571
|
+
* Organization affiliation label shown on an X profile.
|
|
572
|
+
*/
|
|
573
|
+
affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
|
|
574
|
+
/**
|
|
575
|
+
* Whether the account has X Premium verification
|
|
576
|
+
*/
|
|
577
|
+
isBlueVerified?: boolean;
|
|
578
|
+
/**
|
|
579
|
+
* Whether a host muted the account
|
|
580
|
+
*/
|
|
581
|
+
isMutedByAdmin?: boolean;
|
|
582
|
+
/**
|
|
583
|
+
* Whether the account muted itself
|
|
584
|
+
*/
|
|
585
|
+
isMutedByGuest?: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* Whether X shows a verified badge in the Space
|
|
588
|
+
*/
|
|
589
|
+
isVerified?: boolean;
|
|
590
|
+
/**
|
|
591
|
+
* When the account joined the Space
|
|
592
|
+
*/
|
|
593
|
+
joinedAt?: string;
|
|
594
|
+
/**
|
|
595
|
+
* The account's ID in X's broadcast service
|
|
596
|
+
*/
|
|
597
|
+
periscopeUserId?: string;
|
|
598
|
+
/**
|
|
599
|
+
* Profile picture URL
|
|
600
|
+
*/
|
|
601
|
+
profilePicture?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Business or Government badge type
|
|
604
|
+
*/
|
|
605
|
+
verifiedType?: string;
|
|
606
|
+
}
|
|
607
|
+
namespace Admin {
|
|
608
|
+
/**
|
|
609
|
+
* Organization affiliation label shown on an X profile.
|
|
610
|
+
*/
|
|
611
|
+
interface AffiliatesHighlightedLabel {
|
|
612
|
+
badgeUrl?: string;
|
|
613
|
+
description?: string;
|
|
614
|
+
/**
|
|
615
|
+
* Public text, ranges, references, and mention data.
|
|
616
|
+
*/
|
|
617
|
+
longDescription?: {
|
|
618
|
+
[key: string]: unknown;
|
|
619
|
+
};
|
|
620
|
+
url?: string;
|
|
621
|
+
urlType?: string;
|
|
622
|
+
userLabelDisplayType?: string;
|
|
623
|
+
userLabelType?: string;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* An account on a Space's stage or in its audience, as X lists it there.
|
|
628
|
+
*/
|
|
629
|
+
interface Listener {
|
|
630
|
+
id: string;
|
|
631
|
+
/**
|
|
632
|
+
* Name the account shows in the Space
|
|
633
|
+
*/
|
|
634
|
+
name: string;
|
|
635
|
+
username: string;
|
|
636
|
+
/**
|
|
637
|
+
* Organization affiliation label shown on an X profile.
|
|
638
|
+
*/
|
|
639
|
+
affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
|
|
640
|
+
/**
|
|
641
|
+
* Whether the account has X Premium verification
|
|
642
|
+
*/
|
|
643
|
+
isBlueVerified?: boolean;
|
|
644
|
+
/**
|
|
645
|
+
* Whether a host muted the account
|
|
646
|
+
*/
|
|
647
|
+
isMutedByAdmin?: boolean;
|
|
648
|
+
/**
|
|
649
|
+
* Whether the account muted itself
|
|
650
|
+
*/
|
|
651
|
+
isMutedByGuest?: boolean;
|
|
652
|
+
/**
|
|
653
|
+
* Whether X shows a verified badge in the Space
|
|
654
|
+
*/
|
|
655
|
+
isVerified?: boolean;
|
|
656
|
+
/**
|
|
657
|
+
* When the account joined the Space
|
|
658
|
+
*/
|
|
659
|
+
joinedAt?: string;
|
|
660
|
+
/**
|
|
661
|
+
* The account's ID in X's broadcast service
|
|
662
|
+
*/
|
|
663
|
+
periscopeUserId?: string;
|
|
664
|
+
/**
|
|
665
|
+
* Profile picture URL
|
|
666
|
+
*/
|
|
667
|
+
profilePicture?: string;
|
|
668
|
+
/**
|
|
669
|
+
* Business or Government badge type
|
|
670
|
+
*/
|
|
671
|
+
verifiedType?: string;
|
|
672
|
+
}
|
|
673
|
+
namespace Listener {
|
|
674
|
+
/**
|
|
675
|
+
* Organization affiliation label shown on an X profile.
|
|
676
|
+
*/
|
|
677
|
+
interface AffiliatesHighlightedLabel {
|
|
678
|
+
badgeUrl?: string;
|
|
679
|
+
description?: string;
|
|
680
|
+
/**
|
|
681
|
+
* Public text, ranges, references, and mention data.
|
|
682
|
+
*/
|
|
683
|
+
longDescription?: {
|
|
684
|
+
[key: string]: unknown;
|
|
685
|
+
};
|
|
686
|
+
url?: string;
|
|
687
|
+
urlType?: string;
|
|
688
|
+
userLabelDisplayType?: string;
|
|
689
|
+
userLabelType?: string;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* An account on a Space's stage or in its audience, as X lists it there.
|
|
694
|
+
*/
|
|
695
|
+
interface Speaker {
|
|
696
|
+
id: string;
|
|
697
|
+
/**
|
|
698
|
+
* Name the account shows in the Space
|
|
699
|
+
*/
|
|
700
|
+
name: string;
|
|
701
|
+
username: string;
|
|
702
|
+
/**
|
|
703
|
+
* Organization affiliation label shown on an X profile.
|
|
704
|
+
*/
|
|
705
|
+
affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
|
|
706
|
+
/**
|
|
707
|
+
* Whether the account has X Premium verification
|
|
708
|
+
*/
|
|
709
|
+
isBlueVerified?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* Whether a host muted the account
|
|
712
|
+
*/
|
|
713
|
+
isMutedByAdmin?: boolean;
|
|
714
|
+
/**
|
|
715
|
+
* Whether the account muted itself
|
|
716
|
+
*/
|
|
717
|
+
isMutedByGuest?: boolean;
|
|
718
|
+
/**
|
|
719
|
+
* Whether X shows a verified badge in the Space
|
|
720
|
+
*/
|
|
721
|
+
isVerified?: boolean;
|
|
722
|
+
/**
|
|
723
|
+
* When the account joined the Space
|
|
724
|
+
*/
|
|
725
|
+
joinedAt?: string;
|
|
726
|
+
/**
|
|
727
|
+
* The account's ID in X's broadcast service
|
|
728
|
+
*/
|
|
729
|
+
periscopeUserId?: string;
|
|
730
|
+
/**
|
|
731
|
+
* Profile picture URL
|
|
732
|
+
*/
|
|
733
|
+
profilePicture?: string;
|
|
734
|
+
/**
|
|
735
|
+
* Business or Government badge type
|
|
736
|
+
*/
|
|
737
|
+
verifiedType?: string;
|
|
738
|
+
}
|
|
739
|
+
namespace Speaker {
|
|
740
|
+
/**
|
|
741
|
+
* Organization affiliation label shown on an X profile.
|
|
742
|
+
*/
|
|
743
|
+
interface AffiliatesHighlightedLabel {
|
|
744
|
+
badgeUrl?: string;
|
|
745
|
+
description?: string;
|
|
746
|
+
/**
|
|
747
|
+
* Public text, ranges, references, and mention data.
|
|
748
|
+
*/
|
|
749
|
+
longDescription?: {
|
|
750
|
+
[key: string]: unknown;
|
|
751
|
+
};
|
|
752
|
+
url?: string;
|
|
753
|
+
urlType?: string;
|
|
754
|
+
userLabelDisplayType?: string;
|
|
755
|
+
userLabelType?: string;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* A post shared in a Space, & the account that shared it.
|
|
760
|
+
*/
|
|
761
|
+
interface Sharing {
|
|
762
|
+
/**
|
|
763
|
+
* X's ID of the sharing, not of the post
|
|
764
|
+
*/
|
|
765
|
+
id?: string;
|
|
766
|
+
/**
|
|
767
|
+
* When the post was shared
|
|
768
|
+
*/
|
|
769
|
+
sharedAt?: string;
|
|
770
|
+
/**
|
|
771
|
+
* Public X profile.
|
|
772
|
+
*/
|
|
773
|
+
sharedBy?: Shared.UserProfile;
|
|
774
|
+
/**
|
|
775
|
+
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
776
|
+
*/
|
|
777
|
+
tweet?: Shared.SearchTweet;
|
|
778
|
+
/**
|
|
779
|
+
* When X last changed the sharing
|
|
780
|
+
*/
|
|
781
|
+
updatedAt?: string;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
export interface SpaceRetrieveParams {
|
|
786
|
+
/**
|
|
787
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
788
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
789
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
790
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
791
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
792
|
+
* named fields.
|
|
793
|
+
*/
|
|
794
|
+
fields?: string;
|
|
795
|
+
/**
|
|
796
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
797
|
+
* fields. With fields, it drops from the kept fields.
|
|
798
|
+
*/
|
|
799
|
+
omit?: string;
|
|
800
|
+
}
|
|
801
|
+
export interface SpaceRetrieveReplayParams {
|
|
802
|
+
/**
|
|
803
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
804
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
805
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
806
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
807
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
808
|
+
* named fields.
|
|
809
|
+
*/
|
|
810
|
+
fields?: string;
|
|
811
|
+
/**
|
|
812
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
813
|
+
* fields. With fields, it drops from the kept fields.
|
|
814
|
+
*/
|
|
815
|
+
omit?: string;
|
|
816
|
+
}
|
|
817
|
+
export interface SpaceSearchParams {
|
|
818
|
+
/**
|
|
819
|
+
* Words, hashtags or X search operators, such as from:solana. The search adds
|
|
820
|
+
* filter:spaces. Alias query.
|
|
821
|
+
*/
|
|
822
|
+
q: string;
|
|
823
|
+
/**
|
|
824
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
825
|
+
* pagination_token or continuation_token.
|
|
826
|
+
*/
|
|
827
|
+
cursor?: string;
|
|
828
|
+
/**
|
|
829
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
830
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
831
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
832
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
833
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
834
|
+
* named fields.
|
|
835
|
+
*/
|
|
836
|
+
fields?: string;
|
|
837
|
+
/**
|
|
838
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
839
|
+
* fields. With fields, it drops from the kept fields.
|
|
840
|
+
*/
|
|
841
|
+
omit?: string;
|
|
842
|
+
/**
|
|
843
|
+
* Posts a page reads, 20 at a time (1-100, default 20). Posts often share the same
|
|
844
|
+
* Space, so a page returns fewer Spaces. Send 100 to read a search fastest.
|
|
845
|
+
* Aliases: limit, count, max_results, maxItems, max_items & per_page.
|
|
846
|
+
*/
|
|
847
|
+
pageSize?: number;
|
|
848
|
+
/**
|
|
849
|
+
* Latest sorts by post time. Top ranks by engagement. Any case works. Aliases
|
|
850
|
+
* result_type, sort_order, type, search_type, product, category & section.
|
|
851
|
+
*/
|
|
852
|
+
queryType?: 'Latest' | 'Top';
|
|
853
|
+
}
|
|
854
|
+
export declare namespace Spaces {
|
|
855
|
+
export { type SpaceRetrieveResponse as SpaceRetrieveResponse, type SpaceRetrieveReplayResponse as SpaceRetrieveReplayResponse, type SpaceSearchResponse as SpaceSearchResponse, type SpaceRetrieveParams as SpaceRetrieveParams, type SpaceRetrieveReplayParams as SpaceRetrieveReplayParams, type SpaceSearchParams as SpaceSearchParams, };
|
|
856
|
+
}
|
|
857
|
+
//# sourceMappingURL=spaces.d.ts.map
|