x-twitter-scraper 0.12.4 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/README.md +30 -9
- package/client.d.mts +18 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -15
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +4 -4
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +270 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +265 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +116 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +111 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +7 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +7 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/package.json +23 -5
- package/resources/account.d.mts +35 -12
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +35 -12
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +4 -3
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +4 -3
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts +77 -21
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +77 -21
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js +3 -4
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +3 -4
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +18 -10
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +18 -10
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +5 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +5 -4
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +13 -17
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +13 -17
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +4 -4
- package/resources/drafts.mjs +4 -4
- package/resources/draws.d.mts +84 -28
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +84 -28
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +24 -9
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +24 -9
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +2564 -21
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +2564 -21
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +34 -2
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +34 -2
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +410 -128
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +410 -128
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +74 -12
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +74 -12
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +6 -5
- package/resources/guest-wallets.d.mts.map +1 -1
- package/resources/guest-wallets.d.ts +6 -5
- package/resources/guest-wallets.d.ts.map +1 -1
- package/resources/guest-wallets.js +2 -1
- package/resources/guest-wallets.js.map +1 -1
- package/resources/guest-wallets.mjs +2 -1
- package/resources/guest-wallets.mjs.map +1 -1
- package/resources/index.d.mts +6 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +2 -2
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -2
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +66 -14
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +66 -14
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/keywords.js +16 -10
- package/resources/monitors/keywords.js.map +1 -1
- package/resources/monitors/keywords.mjs +16 -10
- package/resources/monitors/keywords.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +53 -16
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +53 -16
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +12 -10
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +12 -10
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +32 -36
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +32 -36
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.js +1 -1
- package/resources/radar.mjs +1 -1
- package/resources/shared.d.mts +1726 -233
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1726 -233
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts +34 -23
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts +34 -23
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.js +11 -13
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +11 -13
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +1 -1
- package/resources/subscribe.d.ts +1 -1
- package/resources/subscribe.js +1 -1
- package/resources/subscribe.mjs +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +30 -10
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +30 -10
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +7 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +7 -7
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/trends.d.mts +21 -5
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +21 -5
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.js +2 -1
- package/resources/trends.js.map +1 -1
- package/resources/trends.mjs +2 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +80 -14
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -14
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +30 -11
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +30 -11
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +1 -1
- package/resources/x/account-connection-attempts.d.ts +1 -1
- package/resources/x/account-connection-attempts.js +1 -1
- package/resources/x/account-connection-attempts.mjs +1 -1
- package/resources/x/account-connection-challenges.d.mts +30 -11
- package/resources/x/account-connection-challenges.d.mts.map +1 -1
- package/resources/x/account-connection-challenges.d.ts +30 -11
- package/resources/x/account-connection-challenges.d.ts.map +1 -1
- package/resources/x/account-connection-challenges.js +5 -4
- package/resources/x/account-connection-challenges.js.map +1 -1
- package/resources/x/account-connection-challenges.mjs +5 -4
- package/resources/x/account-connection-challenges.mjs.map +1 -1
- package/resources/x/accounts.d.mts +38 -10
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +38 -10
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +8 -7
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +8 -7
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/analysis.d.mts +3274 -0
- package/resources/x/analysis.d.mts.map +1 -0
- package/resources/x/analysis.d.ts +3274 -0
- package/resources/x/analysis.d.ts.map +1 -0
- package/resources/x/analysis.js +132 -0
- package/resources/x/analysis.js.map +1 -0
- package/resources/x/analysis.mjs +128 -0
- package/resources/x/analysis.mjs.map +1 -0
- package/resources/x/bookmarks.d.mts +84 -9
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +84 -9
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.js +6 -4
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +6 -4
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +176 -0
- package/resources/x/broadcasts.d.mts.map +1 -0
- package/resources/x/broadcasts.d.ts +176 -0
- package/resources/x/broadcasts.d.ts.map +1 -0
- package/resources/x/broadcasts.js +29 -0
- package/resources/x/broadcasts.js.map +1 -0
- package/resources/x/broadcasts.mjs +25 -0
- package/resources/x/broadcasts.mjs.map +1 -0
- package/resources/x/communities/communities.d.mts +612 -128
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +612 -128
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +96 -17
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +96 -17
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js +3 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -0
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +46 -25
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +46 -25
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +10 -7
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +10 -7
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/media.d.mts +197 -0
- package/resources/x/communities/media.d.mts.map +1 -0
- package/resources/x/communities/media.d.ts +197 -0
- package/resources/x/communities/media.d.ts.map +1 -0
- package/resources/x/communities/media.js +29 -0
- package/resources/x/communities/media.js.map +1 -0
- package/resources/x/communities/media.mjs +25 -0
- package/resources/x/communities/media.mjs.map +1 -0
- package/resources/x/communities/tweets.d.mts +350 -20
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +350 -20
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +8 -7
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +8 -7
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/dm.d.mts +245 -13
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +245 -13
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +29 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +29 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +31 -3
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +31 -3
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.js +2 -1
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +2 -1
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +12 -8
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +12 -8
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +9 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +5 -1
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +506 -0
- package/resources/x/jobs.d.mts.map +1 -0
- package/resources/x/jobs.d.ts +506 -0
- package/resources/x/jobs.d.ts.map +1 -0
- package/resources/x/jobs.js +60 -0
- package/resources/x/jobs.js.map +1 -0
- package/resources/x/jobs.mjs +56 -0
- package/resources/x/jobs.mjs.map +1 -0
- package/resources/x/lists.d.mts +1058 -27
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +1058 -27
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.js +39 -9
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +39 -9
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +24 -13
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +24 -13
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -2
- package/resources/x/media.mjs +2 -2
- package/resources/x/profile.d.mts +60 -33
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +60 -33
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +3 -3
- package/resources/x/profile.mjs +3 -3
- package/resources/x/spaces.d.mts +857 -0
- package/resources/x/spaces.d.mts.map +1 -0
- package/resources/x/spaces.d.ts +857 -0
- package/resources/x/spaces.d.ts.map +1 -0
- package/resources/x/spaces.js +58 -0
- package/resources/x/spaces.js.map +1 -0
- package/resources/x/spaces.mjs +54 -0
- package/resources/x/spaces.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +38 -20
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +38 -20
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +2 -2
- package/resources/x/tweets/like.mjs +2 -2
- package/resources/x/tweets/retweet.d.mts +38 -20
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +38 -20
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +2 -2
- package/resources/x/tweets/retweet.mjs +2 -2
- package/resources/x/tweets/tweets.d.mts +2639 -326
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +2639 -326
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +147 -21
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +147 -21
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +38 -20
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +38 -20
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +2 -2
- package/resources/x/users/follow.mjs +2 -2
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +3068 -457
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +3068 -457
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +205 -22
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +205 -22
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +13 -6
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +13 -6
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/write-actions.js +1 -1
- package/resources/x/write-actions.mjs +1 -1
- package/resources/x/x.d.mts +864 -27
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +864 -27
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +78 -5
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +80 -7
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/SKILL.md +99 -344
- package/skills/x-twitter-scraper/metadata.json +2 -2
- package/skills/x-twitter-scraper/references/mcp-setup.md +12 -15
- package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
- package/skills/x-twitter-scraper/references/types-mcp-output-schemas.md +4 -4
- package/skills/x-twitter-scraper/references/types.md +0 -1
- package/skills/x-twitter-scraper/skill-card.md +5 -6
- package/skills/x-twitter-scraper/skillspector-report.md +6 -3
- package/skills/xquik-account-automation/LICENSE +21 -0
- package/skills/xquik-account-automation/SKILL.md +91 -0
- package/skills/xquik-social-research/SKILL.md +48 -55
- package/src/client.ts +47 -4
- package/src/core/streaming.ts +328 -0
- package/src/internal/decoders/line.ts +140 -0
- package/src/internal/parse.ts +9 -0
- package/src/resources/account.ts +41 -12
- package/src/resources/compose.ts +77 -21
- package/src/resources/credits.ts +19 -10
- package/src/resources/drafts.ts +13 -22
- package/src/resources/draws.ts +94 -36
- package/src/resources/events.ts +3225 -68
- package/src/resources/extractions.ts +512 -125
- package/src/resources/guest-wallets.ts +6 -5
- package/src/resources/index.ts +24 -1
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/keywords.ts +82 -14
- package/src/resources/monitors/monitors.ts +66 -14
- package/src/resources/radar.ts +32 -36
- package/src/resources/shared.ts +2227 -351
- package/src/resources/styles.ts +43 -27
- package/src/resources/subscribe.ts +1 -1
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +38 -10
- package/src/resources/trends.ts +23 -5
- package/src/resources/webhooks.ts +109 -15
- package/src/resources/x/account-connection-attempts.ts +1 -1
- package/src/resources/x/account-connection-challenges.ts +39 -11
- package/src/resources/x/accounts.ts +46 -10
- package/src/resources/x/analysis.ts +3947 -0
- package/src/resources/x/bookmarks.ts +103 -9
- package/src/resources/x/broadcasts.ts +225 -0
- package/src/resources/x/communities/communities.ts +743 -141
- package/src/resources/x/communities/index.ts +9 -0
- package/src/resources/x/communities/join.ts +46 -23
- package/src/resources/x/communities/media.ts +251 -0
- package/src/resources/x/communities/tweets.ts +427 -20
- package/src/resources/x/dm.ts +334 -11
- package/src/resources/x/followers.ts +35 -3
- package/src/resources/x/index.ts +106 -1
- package/src/resources/x/jobs.ts +627 -0
- package/src/resources/x/lists.ts +1307 -28
- package/src/resources/x/media.ts +24 -12
- package/src/resources/x/profile.ts +60 -30
- package/src/resources/x/spaces.ts +1076 -0
- package/src/resources/x/tweets/index.ts +18 -0
- package/src/resources/x/tweets/like.ts +38 -18
- package/src/resources/x/tweets/retweet.ts +38 -18
- package/src/resources/x/tweets/tweets.ts +3695 -843
- package/src/resources/x/users/follow.ts +38 -18
- package/src/resources/x/users/index.ts +22 -0
- package/src/resources/x/users/users.ts +3687 -465
- package/src/resources/x/write-actions.ts +13 -5
- package/src/resources/x/x.ts +1227 -15
- package/src/streaming.ts +6 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +3 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +3 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +9 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +6 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/skills/x-twitter-scraper/references/types-rest-api-vs-mcp-field-naming.md +0 -15
package/resources/draws.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Draws extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns draw rules, status, candidates, and selected winners.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -17,7 +17,7 @@ export declare class Draws extends APIResource {
|
|
|
17
17
|
*/
|
|
18
18
|
retrieve(id: string, options?: RequestOptions): APIPromise<DrawRetrieveResponse>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Returns giveaway draws owned by the authenticated account.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
@@ -26,7 +26,7 @@ export declare class Draws extends APIResource {
|
|
|
26
26
|
*/
|
|
27
27
|
list(query?: DrawListParams | null | undefined, options?: RequestOptions): APIPromise<DrawListResponse>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Downloads draw evidence in the requested format.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* ```ts
|
|
@@ -41,43 +41,52 @@ export declare class Draws extends APIResource {
|
|
|
41
41
|
*/
|
|
42
42
|
export(id: string, query: DrawExportParams, options?: RequestOptions): APIPromise<Response>;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* caps how many replies and retweeters can be inspected before filters and winner
|
|
47
|
-
* selection run.
|
|
44
|
+
* Checks credits, then draws winners from inspected replies & reposters. Remaining
|
|
45
|
+
* credits cap the candidates.
|
|
48
46
|
*
|
|
49
47
|
* @example
|
|
50
48
|
* ```ts
|
|
51
49
|
* const response = await client.draws.run({
|
|
52
50
|
* tweetUrl: 'https://x.com/elonmusk/status/1234567890',
|
|
51
|
+
* backupCount: 2,
|
|
52
|
+
* filterAccountAgeDays: 30,
|
|
53
|
+
* filterLanguage: 'en',
|
|
54
|
+
* filterMinFollowers: 50,
|
|
55
|
+
* mustFollowUsername: 'elonmusk',
|
|
53
56
|
* mustRetweet: true,
|
|
57
|
+
* requiredHashtags: ['#giveaway'],
|
|
58
|
+
* requiredKeywords: ['entered'],
|
|
59
|
+
* requiredMentions: ['@elonmusk'],
|
|
60
|
+
* uniqueAuthorsOnly: true,
|
|
54
61
|
* winnerCount: 3,
|
|
55
62
|
* });
|
|
56
63
|
* ```
|
|
57
64
|
*/
|
|
58
|
-
run(
|
|
65
|
+
run(params: DrawRunParams, options?: RequestOptions): APIPromise<DrawRunResponse>;
|
|
59
66
|
}
|
|
60
67
|
/**
|
|
61
68
|
* Full giveaway draw with tweet metrics, entries, and timing.
|
|
62
69
|
*/
|
|
63
|
-
export interface DrawDetail {
|
|
64
|
-
/**
|
|
65
|
-
* Draw public ID.
|
|
66
|
-
*/
|
|
67
|
-
id: string;
|
|
68
|
-
createdAt: string;
|
|
69
|
-
status: string;
|
|
70
|
-
totalEntries: number;
|
|
70
|
+
export interface DrawDetail extends DrawListItem {
|
|
71
71
|
tweetAuthorUsername: string;
|
|
72
72
|
tweetId: string;
|
|
73
|
+
/**
|
|
74
|
+
* Whole number from 0.
|
|
75
|
+
*/
|
|
73
76
|
tweetLikeCount: number;
|
|
77
|
+
/**
|
|
78
|
+
* Whole number from 0.
|
|
79
|
+
*/
|
|
74
80
|
tweetQuoteCount: number;
|
|
81
|
+
/**
|
|
82
|
+
* Whole number from 0.
|
|
83
|
+
*/
|
|
75
84
|
tweetReplyCount: number;
|
|
85
|
+
/**
|
|
86
|
+
* Whole number from 0.
|
|
87
|
+
*/
|
|
76
88
|
tweetRetweetCount: number;
|
|
77
89
|
tweetText: string;
|
|
78
|
-
tweetUrl: string;
|
|
79
|
-
validEntries: number;
|
|
80
|
-
drawnAt?: string;
|
|
81
90
|
}
|
|
82
91
|
/**
|
|
83
92
|
* Giveaway draw summary with entry counts and status.
|
|
@@ -89,8 +98,14 @@ export interface DrawListItem {
|
|
|
89
98
|
id: string;
|
|
90
99
|
createdAt: string;
|
|
91
100
|
status: string;
|
|
101
|
+
/**
|
|
102
|
+
* Whole number from 0.
|
|
103
|
+
*/
|
|
92
104
|
totalEntries: number;
|
|
93
105
|
tweetUrl: string;
|
|
106
|
+
/**
|
|
107
|
+
* Whole number from 0.
|
|
108
|
+
*/
|
|
94
109
|
validEntries: number;
|
|
95
110
|
drawnAt?: string;
|
|
96
111
|
}
|
|
@@ -118,28 +133,27 @@ export interface DrawListResponse {
|
|
|
118
133
|
export interface DrawRunResponse {
|
|
119
134
|
id: string;
|
|
120
135
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
136
|
+
* Entries inspected after the credit cap, which can be fewer than the post's
|
|
137
|
+
* replies.
|
|
123
138
|
*/
|
|
124
139
|
totalEntries: number;
|
|
125
140
|
tweetId: string;
|
|
126
141
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
142
|
+
* Inspected entries that passed every filter. A credit cap can leave valid replies
|
|
143
|
+
* uninspected.
|
|
129
144
|
*/
|
|
130
145
|
validEntries: number;
|
|
131
146
|
winners: Array<Winner>;
|
|
132
147
|
}
|
|
133
148
|
export interface DrawListParams {
|
|
134
149
|
/**
|
|
135
|
-
* Previous nextCursor.
|
|
150
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
151
|
+
* supported.
|
|
136
152
|
*/
|
|
137
153
|
cursor?: string;
|
|
138
154
|
/**
|
|
139
|
-
* Maximum
|
|
140
|
-
*
|
|
141
|
-
* the requested page. If zero paid results are affordable, the endpoint returns
|
|
142
|
-
* 402 insufficient_credits.
|
|
155
|
+
* Maximum items per page: 1 to 100, default 50. Credits can reduce paid results.
|
|
156
|
+
* With none affordable, it returns 402 insufficient_credits.
|
|
143
157
|
*/
|
|
144
158
|
limit?: number;
|
|
145
159
|
}
|
|
@@ -155,18 +169,60 @@ export interface DrawExportParams {
|
|
|
155
169
|
type?: 'winners' | 'entries';
|
|
156
170
|
}
|
|
157
171
|
export interface DrawRunParams {
|
|
172
|
+
/**
|
|
173
|
+
* Body param
|
|
174
|
+
*/
|
|
158
175
|
tweetUrl: string;
|
|
176
|
+
/**
|
|
177
|
+
* Body param
|
|
178
|
+
*/
|
|
159
179
|
backupCount?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Body param
|
|
182
|
+
*/
|
|
160
183
|
filterAccountAgeDays?: number;
|
|
184
|
+
/**
|
|
185
|
+
* Body param
|
|
186
|
+
*/
|
|
161
187
|
filterLanguage?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Body param
|
|
190
|
+
*/
|
|
162
191
|
filterMinFollowers?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Body param: X username entrants must follow, with or without @
|
|
194
|
+
*/
|
|
163
195
|
mustFollowUsername?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Body param
|
|
198
|
+
*/
|
|
164
199
|
mustRetweet?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Body param
|
|
202
|
+
*/
|
|
165
203
|
requiredHashtags?: Array<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Body param
|
|
206
|
+
*/
|
|
166
207
|
requiredKeywords?: Array<string>;
|
|
208
|
+
/**
|
|
209
|
+
* Body param
|
|
210
|
+
*/
|
|
167
211
|
requiredMentions?: Array<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Body param
|
|
214
|
+
*/
|
|
168
215
|
uniqueAuthorsOnly?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Body param
|
|
218
|
+
*/
|
|
169
219
|
winnerCount?: number;
|
|
220
|
+
/**
|
|
221
|
+
* Header param: Generate 1 unique value per intended request. Reuse it only to
|
|
222
|
+
* retry the same request. Exact retries return the original result & charge
|
|
223
|
+
* nothing.
|
|
224
|
+
*/
|
|
225
|
+
'Idempotency-Key'?: string;
|
|
170
226
|
}
|
|
171
227
|
export declare namespace Draws {
|
|
172
228
|
export { type DrawDetail as DrawDetail, type DrawListItem as DrawListItem, type Winner as Winner, type DrawRetrieveResponse as DrawRetrieveResponse, type DrawListResponse as DrawListResponse, type DrawRunResponse as DrawRunResponse, type DrawListParams as DrawListParams, type DrawExportParams as DrawExportParams, type DrawRunParams as DrawRunParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draws.d.mts","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAS3F
|
|
1
|
+
{"version":3,"file":"draws.d.mts","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;OAaG;IACH,MAA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;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
package/resources/draws.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Draws extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns draw rules, status, candidates, and selected winners.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -17,7 +17,7 @@ export declare class Draws extends APIResource {
|
|
|
17
17
|
*/
|
|
18
18
|
retrieve(id: string, options?: RequestOptions): APIPromise<DrawRetrieveResponse>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Returns giveaway draws owned by the authenticated account.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
@@ -26,7 +26,7 @@ export declare class Draws extends APIResource {
|
|
|
26
26
|
*/
|
|
27
27
|
list(query?: DrawListParams | null | undefined, options?: RequestOptions): APIPromise<DrawListResponse>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Downloads draw evidence in the requested format.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* ```ts
|
|
@@ -41,43 +41,52 @@ export declare class Draws extends APIResource {
|
|
|
41
41
|
*/
|
|
42
42
|
export(id: string, query: DrawExportParams, options?: RequestOptions): APIPromise<Response>;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* caps how many replies and retweeters can be inspected before filters and winner
|
|
47
|
-
* selection run.
|
|
44
|
+
* Checks credits, then draws winners from inspected replies & reposters. Remaining
|
|
45
|
+
* credits cap the candidates.
|
|
48
46
|
*
|
|
49
47
|
* @example
|
|
50
48
|
* ```ts
|
|
51
49
|
* const response = await client.draws.run({
|
|
52
50
|
* tweetUrl: 'https://x.com/elonmusk/status/1234567890',
|
|
51
|
+
* backupCount: 2,
|
|
52
|
+
* filterAccountAgeDays: 30,
|
|
53
|
+
* filterLanguage: 'en',
|
|
54
|
+
* filterMinFollowers: 50,
|
|
55
|
+
* mustFollowUsername: 'elonmusk',
|
|
53
56
|
* mustRetweet: true,
|
|
57
|
+
* requiredHashtags: ['#giveaway'],
|
|
58
|
+
* requiredKeywords: ['entered'],
|
|
59
|
+
* requiredMentions: ['@elonmusk'],
|
|
60
|
+
* uniqueAuthorsOnly: true,
|
|
54
61
|
* winnerCount: 3,
|
|
55
62
|
* });
|
|
56
63
|
* ```
|
|
57
64
|
*/
|
|
58
|
-
run(
|
|
65
|
+
run(params: DrawRunParams, options?: RequestOptions): APIPromise<DrawRunResponse>;
|
|
59
66
|
}
|
|
60
67
|
/**
|
|
61
68
|
* Full giveaway draw with tweet metrics, entries, and timing.
|
|
62
69
|
*/
|
|
63
|
-
export interface DrawDetail {
|
|
64
|
-
/**
|
|
65
|
-
* Draw public ID.
|
|
66
|
-
*/
|
|
67
|
-
id: string;
|
|
68
|
-
createdAt: string;
|
|
69
|
-
status: string;
|
|
70
|
-
totalEntries: number;
|
|
70
|
+
export interface DrawDetail extends DrawListItem {
|
|
71
71
|
tweetAuthorUsername: string;
|
|
72
72
|
tweetId: string;
|
|
73
|
+
/**
|
|
74
|
+
* Whole number from 0.
|
|
75
|
+
*/
|
|
73
76
|
tweetLikeCount: number;
|
|
77
|
+
/**
|
|
78
|
+
* Whole number from 0.
|
|
79
|
+
*/
|
|
74
80
|
tweetQuoteCount: number;
|
|
81
|
+
/**
|
|
82
|
+
* Whole number from 0.
|
|
83
|
+
*/
|
|
75
84
|
tweetReplyCount: number;
|
|
85
|
+
/**
|
|
86
|
+
* Whole number from 0.
|
|
87
|
+
*/
|
|
76
88
|
tweetRetweetCount: number;
|
|
77
89
|
tweetText: string;
|
|
78
|
-
tweetUrl: string;
|
|
79
|
-
validEntries: number;
|
|
80
|
-
drawnAt?: string;
|
|
81
90
|
}
|
|
82
91
|
/**
|
|
83
92
|
* Giveaway draw summary with entry counts and status.
|
|
@@ -89,8 +98,14 @@ export interface DrawListItem {
|
|
|
89
98
|
id: string;
|
|
90
99
|
createdAt: string;
|
|
91
100
|
status: string;
|
|
101
|
+
/**
|
|
102
|
+
* Whole number from 0.
|
|
103
|
+
*/
|
|
92
104
|
totalEntries: number;
|
|
93
105
|
tweetUrl: string;
|
|
106
|
+
/**
|
|
107
|
+
* Whole number from 0.
|
|
108
|
+
*/
|
|
94
109
|
validEntries: number;
|
|
95
110
|
drawnAt?: string;
|
|
96
111
|
}
|
|
@@ -118,28 +133,27 @@ export interface DrawListResponse {
|
|
|
118
133
|
export interface DrawRunResponse {
|
|
119
134
|
id: string;
|
|
120
135
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
136
|
+
* Entries inspected after the credit cap, which can be fewer than the post's
|
|
137
|
+
* replies.
|
|
123
138
|
*/
|
|
124
139
|
totalEntries: number;
|
|
125
140
|
tweetId: string;
|
|
126
141
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
142
|
+
* Inspected entries that passed every filter. A credit cap can leave valid replies
|
|
143
|
+
* uninspected.
|
|
129
144
|
*/
|
|
130
145
|
validEntries: number;
|
|
131
146
|
winners: Array<Winner>;
|
|
132
147
|
}
|
|
133
148
|
export interface DrawListParams {
|
|
134
149
|
/**
|
|
135
|
-
* Previous nextCursor.
|
|
150
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
151
|
+
* supported.
|
|
136
152
|
*/
|
|
137
153
|
cursor?: string;
|
|
138
154
|
/**
|
|
139
|
-
* Maximum
|
|
140
|
-
*
|
|
141
|
-
* the requested page. If zero paid results are affordable, the endpoint returns
|
|
142
|
-
* 402 insufficient_credits.
|
|
155
|
+
* Maximum items per page: 1 to 100, default 50. Credits can reduce paid results.
|
|
156
|
+
* With none affordable, it returns 402 insufficient_credits.
|
|
143
157
|
*/
|
|
144
158
|
limit?: number;
|
|
145
159
|
}
|
|
@@ -155,18 +169,60 @@ export interface DrawExportParams {
|
|
|
155
169
|
type?: 'winners' | 'entries';
|
|
156
170
|
}
|
|
157
171
|
export interface DrawRunParams {
|
|
172
|
+
/**
|
|
173
|
+
* Body param
|
|
174
|
+
*/
|
|
158
175
|
tweetUrl: string;
|
|
176
|
+
/**
|
|
177
|
+
* Body param
|
|
178
|
+
*/
|
|
159
179
|
backupCount?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Body param
|
|
182
|
+
*/
|
|
160
183
|
filterAccountAgeDays?: number;
|
|
184
|
+
/**
|
|
185
|
+
* Body param
|
|
186
|
+
*/
|
|
161
187
|
filterLanguage?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Body param
|
|
190
|
+
*/
|
|
162
191
|
filterMinFollowers?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Body param: X username entrants must follow, with or without @
|
|
194
|
+
*/
|
|
163
195
|
mustFollowUsername?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Body param
|
|
198
|
+
*/
|
|
164
199
|
mustRetweet?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Body param
|
|
202
|
+
*/
|
|
165
203
|
requiredHashtags?: Array<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Body param
|
|
206
|
+
*/
|
|
166
207
|
requiredKeywords?: Array<string>;
|
|
208
|
+
/**
|
|
209
|
+
* Body param
|
|
210
|
+
*/
|
|
167
211
|
requiredMentions?: Array<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Body param
|
|
214
|
+
*/
|
|
168
215
|
uniqueAuthorsOnly?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Body param
|
|
218
|
+
*/
|
|
169
219
|
winnerCount?: number;
|
|
220
|
+
/**
|
|
221
|
+
* Header param: Generate 1 unique value per intended request. Reuse it only to
|
|
222
|
+
* retry the same request. Exact retries return the original result & charge
|
|
223
|
+
* nothing.
|
|
224
|
+
*/
|
|
225
|
+
'Idempotency-Key'?: string;
|
|
170
226
|
}
|
|
171
227
|
export declare namespace Draws {
|
|
172
228
|
export { type DrawDetail as DrawDetail, type DrawListItem as DrawListItem, type Winner as Winner, type DrawRetrieveResponse as DrawRetrieveResponse, type DrawListResponse as DrawListResponse, type DrawRunResponse as DrawRunResponse, type DrawListParams as DrawListParams, type DrawExportParams as DrawExportParams, type DrawRunParams as DrawRunParams, };
|
package/resources/draws.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draws.d.ts","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,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
|
*/
|
|
14
14
|
class Draws extends resource_1.APIResource {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Returns draw rules, status, candidates, and selected winners.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -26,7 +26,7 @@ class Draws extends resource_1.APIResource {
|
|
|
26
26
|
return this._client.get((0, path_1.path) `/draws/${id}`, options);
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Returns giveaway draws owned by the authenticated account.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* ```ts
|
|
@@ -37,7 +37,7 @@ class Draws extends resource_1.APIResource {
|
|
|
37
37
|
return this._client.get('/draws', { query, ...options });
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Downloads draw evidence in the requested format.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
@@ -59,22 +59,37 @@ class Draws extends resource_1.APIResource {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* caps how many replies and retweeters can be inspected before filters and winner
|
|
65
|
-
* selection run.
|
|
62
|
+
* Checks credits, then draws winners from inspected replies & reposters. Remaining
|
|
63
|
+
* credits cap the candidates.
|
|
66
64
|
*
|
|
67
65
|
* @example
|
|
68
66
|
* ```ts
|
|
69
67
|
* const response = await client.draws.run({
|
|
70
68
|
* tweetUrl: 'https://x.com/elonmusk/status/1234567890',
|
|
69
|
+
* backupCount: 2,
|
|
70
|
+
* filterAccountAgeDays: 30,
|
|
71
|
+
* filterLanguage: 'en',
|
|
72
|
+
* filterMinFollowers: 50,
|
|
73
|
+
* mustFollowUsername: 'elonmusk',
|
|
71
74
|
* mustRetweet: true,
|
|
75
|
+
* requiredHashtags: ['#giveaway'],
|
|
76
|
+
* requiredKeywords: ['entered'],
|
|
77
|
+
* requiredMentions: ['@elonmusk'],
|
|
78
|
+
* uniqueAuthorsOnly: true,
|
|
72
79
|
* winnerCount: 3,
|
|
73
80
|
* });
|
|
74
81
|
* ```
|
|
75
82
|
*/
|
|
76
|
-
run(
|
|
77
|
-
|
|
83
|
+
run(params, options) {
|
|
84
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
85
|
+
return this._client.post('/draws', {
|
|
86
|
+
body,
|
|
87
|
+
...options,
|
|
88
|
+
headers: (0, headers_1.buildHeaders)([
|
|
89
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
90
|
+
options?.headers,
|
|
91
|
+
]),
|
|
92
|
+
});
|
|
78
93
|
}
|
|
79
94
|
}
|
|
80
95
|
exports.Draws = Draws;
|
package/resources/draws.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draws.js","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,KAAuB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAA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,GAAG,CAAC,MAAqB,EAAE,OAAwB;QACjD,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;YACjC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAtFD,sBAsFC"}
|
package/resources/draws.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
10
10
|
*/
|
|
11
11
|
export class Draws extends APIResource {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Returns draw rules, status, candidates, and selected winners.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
@@ -23,7 +23,7 @@ export class Draws extends APIResource {
|
|
|
23
23
|
return this._client.get(path `/draws/${id}`, options);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Returns giveaway draws owned by the authenticated account.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* ```ts
|
|
@@ -34,7 +34,7 @@ export class Draws extends APIResource {
|
|
|
34
34
|
return this._client.get('/draws', { query, ...options });
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Downloads draw evidence in the requested format.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* ```ts
|
|
@@ -56,22 +56,37 @@ export class Draws extends APIResource {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* caps how many replies and retweeters can be inspected before filters and winner
|
|
62
|
-
* selection run.
|
|
59
|
+
* Checks credits, then draws winners from inspected replies & reposters. Remaining
|
|
60
|
+
* credits cap the candidates.
|
|
63
61
|
*
|
|
64
62
|
* @example
|
|
65
63
|
* ```ts
|
|
66
64
|
* const response = await client.draws.run({
|
|
67
65
|
* tweetUrl: 'https://x.com/elonmusk/status/1234567890',
|
|
66
|
+
* backupCount: 2,
|
|
67
|
+
* filterAccountAgeDays: 30,
|
|
68
|
+
* filterLanguage: 'en',
|
|
69
|
+
* filterMinFollowers: 50,
|
|
70
|
+
* mustFollowUsername: 'elonmusk',
|
|
68
71
|
* mustRetweet: true,
|
|
72
|
+
* requiredHashtags: ['#giveaway'],
|
|
73
|
+
* requiredKeywords: ['entered'],
|
|
74
|
+
* requiredMentions: ['@elonmusk'],
|
|
75
|
+
* uniqueAuthorsOnly: true,
|
|
69
76
|
* winnerCount: 3,
|
|
70
77
|
* });
|
|
71
78
|
* ```
|
|
72
79
|
*/
|
|
73
|
-
run(
|
|
74
|
-
|
|
80
|
+
run(params, options) {
|
|
81
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
82
|
+
return this._client.post('/draws', {
|
|
83
|
+
body,
|
|
84
|
+
...options,
|
|
85
|
+
headers: buildHeaders([
|
|
86
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
87
|
+
options?.headers,
|
|
88
|
+
]),
|
|
89
|
+
});
|
|
75
90
|
}
|
|
76
91
|
}
|
|
77
92
|
//# sourceMappingURL=draws.mjs.map
|
package/resources/draws.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draws.mjs","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YA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