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
|
@@ -0,0 +1,197 @@
|
|
|
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
|
+
* Find X Communities & read their info, members, posts & media
|
|
7
|
+
*/
|
|
8
|
+
export declare class Media extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the tweets with photos or videos on one community's Media tab, newest
|
|
11
|
+
* first. Each tweet costs 1 credit.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const paginatedTweets =
|
|
16
|
+
* await client.x.communities.media.list('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(id: string, query?: MediaListParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
20
|
+
}
|
|
21
|
+
export interface MediaListParams {
|
|
22
|
+
/**
|
|
23
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
24
|
+
* or lines.
|
|
25
|
+
*/
|
|
26
|
+
anyWords?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Only return tweets from Blue-verified authors.
|
|
29
|
+
*/
|
|
30
|
+
blueVerifiedOnly?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
33
|
+
*/
|
|
34
|
+
cashtags?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Conversation ID filter.
|
|
37
|
+
*/
|
|
38
|
+
conversationId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
41
|
+
* pagination_token or continuation_token.
|
|
42
|
+
*/
|
|
43
|
+
cursor?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Match this literal phrase, including any hyphens.
|
|
46
|
+
*/
|
|
47
|
+
exactPhrase?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
50
|
+
*/
|
|
51
|
+
excludeWords?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
54
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
55
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
56
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
57
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
58
|
+
* named fields.
|
|
59
|
+
*/
|
|
60
|
+
fields?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Filter by author username.
|
|
63
|
+
*/
|
|
64
|
+
fromUser?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
67
|
+
*/
|
|
68
|
+
hashtags?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Only replies to this tweet ID.
|
|
71
|
+
*/
|
|
72
|
+
inReplyToTweetId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Filter by language. Alias `lang` is accepted.
|
|
75
|
+
*/
|
|
76
|
+
language?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Maximum likes threshold. maxLikes & max_likes also work.
|
|
79
|
+
*/
|
|
80
|
+
maxFaves?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Return Tweets at or below this ID.
|
|
83
|
+
*/
|
|
84
|
+
maxId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Maximum quotes threshold.
|
|
87
|
+
*/
|
|
88
|
+
maxQuotes?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Maximum replies threshold.
|
|
91
|
+
*/
|
|
92
|
+
maxReplies?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Maximum retweets threshold.
|
|
95
|
+
*/
|
|
96
|
+
maxRetweets?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Filter media. Aliases: has_video, has_media.
|
|
99
|
+
*/
|
|
100
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
101
|
+
/**
|
|
102
|
+
* Filter tweets mentioning a username.
|
|
103
|
+
*/
|
|
104
|
+
mentioning?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Minimum bookmark count threshold.
|
|
107
|
+
*/
|
|
108
|
+
minBookmarks?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Minimum likes. Aliases: minFaves, min_likes, min_faves.
|
|
111
|
+
*/
|
|
112
|
+
minLikes?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Minimum quote count threshold.
|
|
115
|
+
*/
|
|
116
|
+
minQuotes?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Minimum replies threshold.
|
|
119
|
+
*/
|
|
120
|
+
minReplies?: number;
|
|
121
|
+
/**
|
|
122
|
+
* Minimum retweets threshold.
|
|
123
|
+
*/
|
|
124
|
+
minRetweets?: number;
|
|
125
|
+
/**
|
|
126
|
+
* Minimum view count threshold.
|
|
127
|
+
*/
|
|
128
|
+
minViews?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Only return native reposts.
|
|
131
|
+
*/
|
|
132
|
+
nativeRetweets?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
135
|
+
* fields. With fields, it drops from the kept fields.
|
|
136
|
+
*/
|
|
137
|
+
omit?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Items per page (1-100, default 20). Source, filters or credits can return fewer.
|
|
140
|
+
* Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
|
|
141
|
+
* max_items & per_page.
|
|
142
|
+
*/
|
|
143
|
+
pageSize?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Only when the caller requests a quote mode.
|
|
146
|
+
*/
|
|
147
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
148
|
+
/**
|
|
149
|
+
* Only quotes of this tweet ID.
|
|
150
|
+
*/
|
|
151
|
+
quotesOfTweetId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Reply mode. Exclude keeps own-thread replies.
|
|
154
|
+
*/
|
|
155
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
156
|
+
/**
|
|
157
|
+
* Only when the caller requests a repost mode.
|
|
158
|
+
*/
|
|
159
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
160
|
+
/**
|
|
161
|
+
* Only retweets of this tweet ID.
|
|
162
|
+
*/
|
|
163
|
+
retweetsOfTweetId?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Start date in YYYY-MM-DD format, as a UTC day.
|
|
166
|
+
*/
|
|
167
|
+
sinceDate?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Return Tweets whose IDs exceed this ID.
|
|
170
|
+
*/
|
|
171
|
+
sinceId?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Filter replies sent to a username.
|
|
174
|
+
*/
|
|
175
|
+
toUser?: string;
|
|
176
|
+
/**
|
|
177
|
+
* End date in YYYY-MM-DD format, as a UTC day, inclusive, so its own posts count.
|
|
178
|
+
*/
|
|
179
|
+
untilDate?: string;
|
|
180
|
+
/**
|
|
181
|
+
* URL substring or domain filter.
|
|
182
|
+
*/
|
|
183
|
+
url?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Only return tweets from verified authors.
|
|
186
|
+
*/
|
|
187
|
+
verifiedOnly?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Keeps Tweets from a recent window, such as 90m or 7d. Use a whole number & s, m,
|
|
190
|
+
* h or d.
|
|
191
|
+
*/
|
|
192
|
+
withinTime?: string;
|
|
193
|
+
}
|
|
194
|
+
export declare namespace Media {
|
|
195
|
+
export { type MediaListParams as MediaListParams };
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=media.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/media.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,197 @@
|
|
|
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
|
+
* Find X Communities & read their info, members, posts & media
|
|
7
|
+
*/
|
|
8
|
+
export declare class Media extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the tweets with photos or videos on one community's Media tab, newest
|
|
11
|
+
* first. Each tweet costs 1 credit.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const paginatedTweets =
|
|
16
|
+
* await client.x.communities.media.list('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(id: string, query?: MediaListParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
20
|
+
}
|
|
21
|
+
export interface MediaListParams {
|
|
22
|
+
/**
|
|
23
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
24
|
+
* or lines.
|
|
25
|
+
*/
|
|
26
|
+
anyWords?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Only return tweets from Blue-verified authors.
|
|
29
|
+
*/
|
|
30
|
+
blueVerifiedOnly?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
33
|
+
*/
|
|
34
|
+
cashtags?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Conversation ID filter.
|
|
37
|
+
*/
|
|
38
|
+
conversationId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
41
|
+
* pagination_token or continuation_token.
|
|
42
|
+
*/
|
|
43
|
+
cursor?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Match this literal phrase, including any hyphens.
|
|
46
|
+
*/
|
|
47
|
+
exactPhrase?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
50
|
+
*/
|
|
51
|
+
excludeWords?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
54
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
55
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
56
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
57
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
58
|
+
* named fields.
|
|
59
|
+
*/
|
|
60
|
+
fields?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Filter by author username.
|
|
63
|
+
*/
|
|
64
|
+
fromUser?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
67
|
+
*/
|
|
68
|
+
hashtags?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Only replies to this tweet ID.
|
|
71
|
+
*/
|
|
72
|
+
inReplyToTweetId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Filter by language. Alias `lang` is accepted.
|
|
75
|
+
*/
|
|
76
|
+
language?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Maximum likes threshold. maxLikes & max_likes also work.
|
|
79
|
+
*/
|
|
80
|
+
maxFaves?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Return Tweets at or below this ID.
|
|
83
|
+
*/
|
|
84
|
+
maxId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Maximum quotes threshold.
|
|
87
|
+
*/
|
|
88
|
+
maxQuotes?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Maximum replies threshold.
|
|
91
|
+
*/
|
|
92
|
+
maxReplies?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Maximum retweets threshold.
|
|
95
|
+
*/
|
|
96
|
+
maxRetweets?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Filter media. Aliases: has_video, has_media.
|
|
99
|
+
*/
|
|
100
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
101
|
+
/**
|
|
102
|
+
* Filter tweets mentioning a username.
|
|
103
|
+
*/
|
|
104
|
+
mentioning?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Minimum bookmark count threshold.
|
|
107
|
+
*/
|
|
108
|
+
minBookmarks?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Minimum likes. Aliases: minFaves, min_likes, min_faves.
|
|
111
|
+
*/
|
|
112
|
+
minLikes?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Minimum quote count threshold.
|
|
115
|
+
*/
|
|
116
|
+
minQuotes?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Minimum replies threshold.
|
|
119
|
+
*/
|
|
120
|
+
minReplies?: number;
|
|
121
|
+
/**
|
|
122
|
+
* Minimum retweets threshold.
|
|
123
|
+
*/
|
|
124
|
+
minRetweets?: number;
|
|
125
|
+
/**
|
|
126
|
+
* Minimum view count threshold.
|
|
127
|
+
*/
|
|
128
|
+
minViews?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Only return native reposts.
|
|
131
|
+
*/
|
|
132
|
+
nativeRetweets?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
135
|
+
* fields. With fields, it drops from the kept fields.
|
|
136
|
+
*/
|
|
137
|
+
omit?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Items per page (1-100, default 20). Source, filters or credits can return fewer.
|
|
140
|
+
* Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
|
|
141
|
+
* max_items & per_page.
|
|
142
|
+
*/
|
|
143
|
+
pageSize?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Only when the caller requests a quote mode.
|
|
146
|
+
*/
|
|
147
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
148
|
+
/**
|
|
149
|
+
* Only quotes of this tweet ID.
|
|
150
|
+
*/
|
|
151
|
+
quotesOfTweetId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Reply mode. Exclude keeps own-thread replies.
|
|
154
|
+
*/
|
|
155
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
156
|
+
/**
|
|
157
|
+
* Only when the caller requests a repost mode.
|
|
158
|
+
*/
|
|
159
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
160
|
+
/**
|
|
161
|
+
* Only retweets of this tweet ID.
|
|
162
|
+
*/
|
|
163
|
+
retweetsOfTweetId?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Start date in YYYY-MM-DD format, as a UTC day.
|
|
166
|
+
*/
|
|
167
|
+
sinceDate?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Return Tweets whose IDs exceed this ID.
|
|
170
|
+
*/
|
|
171
|
+
sinceId?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Filter replies sent to a username.
|
|
174
|
+
*/
|
|
175
|
+
toUser?: string;
|
|
176
|
+
/**
|
|
177
|
+
* End date in YYYY-MM-DD format, as a UTC day, inclusive, so its own posts count.
|
|
178
|
+
*/
|
|
179
|
+
untilDate?: string;
|
|
180
|
+
/**
|
|
181
|
+
* URL substring or domain filter.
|
|
182
|
+
*/
|
|
183
|
+
url?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Only return tweets from verified authors.
|
|
186
|
+
*/
|
|
187
|
+
verifiedOnly?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Keeps Tweets from a recent window, such as 90m or 7d. Use a whole number & s, m,
|
|
190
|
+
* h or d.
|
|
191
|
+
*/
|
|
192
|
+
withinTime?: string;
|
|
193
|
+
}
|
|
194
|
+
export declare namespace Media {
|
|
195
|
+
export { type MediaListParams as MediaListParams };
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/media.ts"],"names":[],"mappings":"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"}
|
|
@@ -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.Media = 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
|
+
* Find X Communities & read their info, members, posts & media
|
|
12
|
+
*/
|
|
13
|
+
class Media extends resource_1.APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* Returns the tweets with photos or videos on one community's Media tab, newest
|
|
16
|
+
* first. Each tweet costs 1 credit.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const paginatedTweets =
|
|
21
|
+
* await client.x.communities.media.list('id');
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(id, query = {}, options) {
|
|
25
|
+
return this._client.get((0, path_1.path) `/x/communities/${id}/media`, { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Media = Media;
|
|
29
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../src/resources/x/communities/media.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;OASG;IACH,IAAI,CACF,EAAU,EACV,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAlBD,sBAkBC"}
|
|
@@ -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
|
+
* Find X Communities & read their info, members, posts & media
|
|
9
|
+
*/
|
|
10
|
+
export class Media extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns the tweets with photos or videos on one community's Media tab, newest
|
|
13
|
+
* first. Each tweet costs 1 credit.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const paginatedTweets =
|
|
18
|
+
* await client.x.communities.media.list('id');
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(id, query = {}, options) {
|
|
22
|
+
return this._client.get(path `/x/communities/${id}/media`, { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=media.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/media.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,IAAI,CACF,EAAU,EACV,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|