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
|
@@ -41,7 +41,8 @@ export class GuestWallets extends APIResource {
|
|
|
41
41
|
/**
|
|
42
42
|
* Poll after payment. Use usable to decide whether paid reads can run. An active
|
|
43
43
|
* wallet can remain usable while a top-up is pending. A new wallet becomes usable
|
|
44
|
-
* only after payment is verified. Send the guest key as Authorization: Bearer
|
|
44
|
+
* only after payment is verified. Send the guest key as Authorization: Bearer
|
|
45
|
+
* xq_...
|
|
45
46
|
*
|
|
46
47
|
* @example
|
|
47
48
|
* ```ts
|
|
@@ -119,7 +120,7 @@ export interface GuestWalletCreateResponse {
|
|
|
119
120
|
credential_notice: 'Store api_key and the Idempotency-Key securely before sharing checkout_url. No email recovery is available.';
|
|
120
121
|
|
|
121
122
|
/**
|
|
122
|
-
*
|
|
123
|
+
* Credits granted after verified payment.
|
|
123
124
|
*/
|
|
124
125
|
credits: string;
|
|
125
126
|
|
|
@@ -164,7 +165,7 @@ export interface GuestWalletRetrieveStatusResponse {
|
|
|
164
165
|
balance: string;
|
|
165
166
|
|
|
166
167
|
/**
|
|
167
|
-
* Latest
|
|
168
|
+
* Latest purchase state. This does not determine usability.
|
|
168
169
|
*/
|
|
169
170
|
latest_purchase: GuestWalletRetrieveStatusResponse.LatestPurchase | null;
|
|
170
171
|
|
|
@@ -229,7 +230,7 @@ export namespace GuestWalletRetrieveStatusResponse {
|
|
|
229
230
|
}
|
|
230
231
|
|
|
231
232
|
/**
|
|
232
|
-
*
|
|
233
|
+
* Existing guest wallet top-up response without a new key.
|
|
233
234
|
*/
|
|
234
235
|
export interface GuestWalletTopupResponse {
|
|
235
236
|
account_required: false;
|
|
@@ -245,7 +246,7 @@ export interface GuestWalletTopupResponse {
|
|
|
245
246
|
checkout_url: string;
|
|
246
247
|
|
|
247
248
|
/**
|
|
248
|
-
*
|
|
249
|
+
* Credits granted after verified payment.
|
|
249
250
|
*/
|
|
250
251
|
credits: string;
|
|
251
252
|
|
package/src/resources/index.ts
CHANGED
|
@@ -43,12 +43,20 @@ export {
|
|
|
43
43
|
type DrawExportParams,
|
|
44
44
|
type DrawRunParams,
|
|
45
45
|
} from './draws';
|
|
46
|
-
export {
|
|
46
|
+
export {
|
|
47
|
+
Events,
|
|
48
|
+
type Event,
|
|
49
|
+
type EventDetail,
|
|
50
|
+
type EventListResponse,
|
|
51
|
+
type EventListParams,
|
|
52
|
+
type EventStreamParams,
|
|
53
|
+
} from './events';
|
|
47
54
|
export {
|
|
48
55
|
Extractions,
|
|
49
56
|
type ExtractionJob,
|
|
50
57
|
type ExtractionRetrieveResponse,
|
|
51
58
|
type ExtractionListResponse,
|
|
59
|
+
type ExtractionCancelResponse,
|
|
52
60
|
type ExtractionEstimateCostResponse,
|
|
53
61
|
type ExtractionRunResponse,
|
|
54
62
|
type ExtractionRetrieveParams,
|
|
@@ -74,6 +82,7 @@ export {
|
|
|
74
82
|
type MonitorDeactivateResponse,
|
|
75
83
|
type MonitorCreateParams,
|
|
76
84
|
type MonitorUpdateParams,
|
|
85
|
+
type MonitorListParams,
|
|
77
86
|
} from './monitors/monitors';
|
|
78
87
|
export {
|
|
79
88
|
Radar,
|
|
@@ -89,6 +98,7 @@ export {
|
|
|
89
98
|
type StyleCompareResponse,
|
|
90
99
|
type StyleGetPerformanceResponse,
|
|
91
100
|
type StyleUpdateParams,
|
|
101
|
+
type StyleListParams,
|
|
92
102
|
type StyleAnalyzeParams,
|
|
93
103
|
type StyleCompareParams,
|
|
94
104
|
} from './styles';
|
|
@@ -101,19 +111,32 @@ export {
|
|
|
101
111
|
type Webhook,
|
|
102
112
|
type WebhookCreateResponse,
|
|
103
113
|
type WebhookListResponse,
|
|
114
|
+
type WebhookCreateTelegramLinkResponse,
|
|
104
115
|
type WebhookDeactivateResponse,
|
|
105
116
|
type WebhookListDeliveriesResponse,
|
|
106
117
|
type WebhookResumeResponse,
|
|
107
118
|
type WebhookTestResponse,
|
|
108
119
|
type WebhookCreateParams,
|
|
109
120
|
type WebhookUpdateParams,
|
|
121
|
+
type WebhookListParams,
|
|
122
|
+
type WebhookCreateTelegramLinkParams,
|
|
123
|
+
type WebhookListDeliveriesParams,
|
|
110
124
|
} from './webhooks';
|
|
111
125
|
export {
|
|
112
126
|
X,
|
|
127
|
+
type XAutocompleteSearchResponse,
|
|
113
128
|
type XGetArticleResponse,
|
|
129
|
+
type XGetHashflagsResponse,
|
|
114
130
|
type XGetNotificationsResponse,
|
|
131
|
+
type XGetTrendLocationsResponse,
|
|
115
132
|
type XGetTrendsResponse,
|
|
133
|
+
type XSearchPlacesResponse,
|
|
134
|
+
type XAutocompleteSearchParams,
|
|
135
|
+
type XGetArticleParams,
|
|
136
|
+
type XGetHashflagsParams,
|
|
116
137
|
type XGetHomeTimelineParams,
|
|
117
138
|
type XGetNotificationsParams,
|
|
139
|
+
type XGetTrendLocationsParams,
|
|
118
140
|
type XGetTrendsParams,
|
|
141
|
+
type XSearchPlacesParams,
|
|
119
142
|
} from './x/x';
|
|
@@ -13,6 +13,7 @@ export {
|
|
|
13
13
|
type KeywordDeactivateResponse,
|
|
14
14
|
type KeywordCreateParams,
|
|
15
15
|
type KeywordUpdateParams,
|
|
16
|
+
type KeywordListParams,
|
|
16
17
|
} from './keywords';
|
|
17
18
|
export {
|
|
18
19
|
Monitors,
|
|
@@ -22,4 +23,5 @@ export {
|
|
|
22
23
|
type MonitorDeactivateResponse,
|
|
23
24
|
type MonitorCreateParams,
|
|
24
25
|
type MonitorUpdateParams,
|
|
26
|
+
type MonitorListParams,
|
|
25
27
|
} from './monitors';
|
|
@@ -15,15 +15,16 @@ import { path } from '../../internal/utils/path';
|
|
|
15
15
|
*/
|
|
16
16
|
export class Keywords extends APIResource {
|
|
17
17
|
/**
|
|
18
|
-
* Creates a keyword monitor
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* Creates a keyword monitor, with no count limit. Active monitors check every
|
|
19
|
+
* second for 30 credits an hour, events & webhook deliveries included. That hourly
|
|
20
|
+
* price is a monitor's only charge. Creation needs the credits of the first hour.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
24
24
|
* const keyword = await client.monitors.keywords.create({
|
|
25
25
|
* eventTypes: ['tweet.new'],
|
|
26
26
|
* query: 'xquik OR "x api"',
|
|
27
|
+
* name: 'Launch mentions',
|
|
27
28
|
* });
|
|
28
29
|
* ```
|
|
29
30
|
*/
|
|
@@ -32,7 +33,7 @@ export class Keywords extends APIResource {
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
+
* Returns configuration and status for one keyword monitor.
|
|
36
37
|
*
|
|
37
38
|
* @example
|
|
38
39
|
* ```ts
|
|
@@ -46,13 +47,17 @@ export class Keywords extends APIResource {
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
|
-
*
|
|
50
|
+
* Updates mutable settings for an existing keyword monitor.
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
53
54
|
* const keyword = await client.monitors.keywords.update(
|
|
54
55
|
* 'id',
|
|
55
|
-
* {
|
|
56
|
+
* {
|
|
57
|
+
* eventTypes: ['tweet.new'],
|
|
58
|
+
* isActive: true,
|
|
59
|
+
* name: 'Launch mentions',
|
|
60
|
+
* },
|
|
56
61
|
* );
|
|
57
62
|
* ```
|
|
58
63
|
*/
|
|
@@ -61,19 +66,23 @@ export class Keywords extends APIResource {
|
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
|
-
*
|
|
69
|
+
* Returns keyword monitors with their current operating states.
|
|
65
70
|
*
|
|
66
71
|
* @example
|
|
67
72
|
* ```ts
|
|
68
73
|
* const keywords = await client.monitors.keywords.list();
|
|
69
74
|
* ```
|
|
70
75
|
*/
|
|
71
|
-
list(
|
|
72
|
-
|
|
76
|
+
list(
|
|
77
|
+
query: KeywordListParams | null | undefined = {},
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): APIPromise<KeywordListResponse> {
|
|
80
|
+
return this._client.get('/monitors/keywords', { query, ...options });
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
/**
|
|
76
|
-
*
|
|
84
|
+
* Stops one keyword monitor, then removes its stored events in bounded batches.
|
|
85
|
+
* Poll statusUrl until the monitor returns 404.
|
|
77
86
|
*
|
|
78
87
|
* @example
|
|
79
88
|
* ```ts
|
|
@@ -103,11 +112,16 @@ export interface KeywordCreateResponse {
|
|
|
103
112
|
isActive: boolean;
|
|
104
113
|
|
|
105
114
|
/**
|
|
106
|
-
* Next hourly
|
|
115
|
+
* Next hourly credit charge time for this keyword query monitor.
|
|
107
116
|
*/
|
|
108
117
|
nextBillingAt: string;
|
|
109
118
|
|
|
110
119
|
query: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Customer-set label of the keyword monitor, when set.
|
|
123
|
+
*/
|
|
124
|
+
name?: string;
|
|
111
125
|
}
|
|
112
126
|
|
|
113
127
|
/**
|
|
@@ -126,11 +140,16 @@ export interface KeywordRetrieveResponse {
|
|
|
126
140
|
isActive: boolean;
|
|
127
141
|
|
|
128
142
|
/**
|
|
129
|
-
* Next hourly
|
|
143
|
+
* Next hourly credit charge time for this keyword query monitor.
|
|
130
144
|
*/
|
|
131
145
|
nextBillingAt: string;
|
|
132
146
|
|
|
133
147
|
query: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Customer-set label of the keyword monitor, when set.
|
|
151
|
+
*/
|
|
152
|
+
name?: string;
|
|
134
153
|
}
|
|
135
154
|
|
|
136
155
|
/**
|
|
@@ -149,17 +168,29 @@ export interface KeywordUpdateResponse {
|
|
|
149
168
|
isActive: boolean;
|
|
150
169
|
|
|
151
170
|
/**
|
|
152
|
-
* Next hourly
|
|
171
|
+
* Next hourly credit charge time for this keyword query monitor.
|
|
153
172
|
*/
|
|
154
173
|
nextBillingAt: string;
|
|
155
174
|
|
|
156
175
|
query: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Customer-set label of the keyword monitor, when set.
|
|
179
|
+
*/
|
|
180
|
+
name?: string;
|
|
157
181
|
}
|
|
158
182
|
|
|
159
183
|
export interface KeywordListResponse {
|
|
184
|
+
hasMore: boolean;
|
|
185
|
+
|
|
160
186
|
monitors: Array<KeywordListResponse.Monitor>;
|
|
161
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Keyword monitors on this page.
|
|
190
|
+
*/
|
|
162
191
|
total: number;
|
|
192
|
+
|
|
193
|
+
nextCursor?: string;
|
|
163
194
|
}
|
|
164
195
|
|
|
165
196
|
export namespace KeywordListResponse {
|
|
@@ -179,15 +210,27 @@ export namespace KeywordListResponse {
|
|
|
179
210
|
isActive: boolean;
|
|
180
211
|
|
|
181
212
|
/**
|
|
182
|
-
* Next hourly
|
|
213
|
+
* Next hourly credit charge time for this keyword query monitor.
|
|
183
214
|
*/
|
|
184
215
|
nextBillingAt: string;
|
|
185
216
|
|
|
186
217
|
query: string;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Customer-set label of the keyword monitor, when set.
|
|
221
|
+
*/
|
|
222
|
+
name?: string;
|
|
187
223
|
}
|
|
188
224
|
}
|
|
189
225
|
|
|
190
226
|
export interface KeywordDeactivateResponse {
|
|
227
|
+
deletionStatus: 'deleting';
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Poll this monitor URL until it returns 404.
|
|
231
|
+
*/
|
|
232
|
+
statusUrl: string;
|
|
233
|
+
|
|
191
234
|
success: true;
|
|
192
235
|
}
|
|
193
236
|
|
|
@@ -201,6 +244,11 @@ export interface KeywordCreateParams {
|
|
|
201
244
|
* X search query to monitor. Whitespace is normalized.
|
|
202
245
|
*/
|
|
203
246
|
query: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Your own label for the keyword monitor. Its events carry it as monitorName.
|
|
250
|
+
*/
|
|
251
|
+
name?: string;
|
|
204
252
|
}
|
|
205
253
|
|
|
206
254
|
export interface KeywordUpdateParams {
|
|
@@ -210,6 +258,25 @@ export interface KeywordUpdateParams {
|
|
|
210
258
|
eventTypes?: Array<Shared.EventType>;
|
|
211
259
|
|
|
212
260
|
isActive?: boolean;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* New label for the keyword monitor. Send null to remove it.
|
|
264
|
+
*/
|
|
265
|
+
name?: string | null;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface KeywordListParams {
|
|
269
|
+
/**
|
|
270
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
271
|
+
* supported.
|
|
272
|
+
*/
|
|
273
|
+
cursor?: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Maximum items per page: 1 to 200, default 200. Pass nextCursor as cursor for the
|
|
277
|
+
* next page.
|
|
278
|
+
*/
|
|
279
|
+
limit?: number;
|
|
213
280
|
}
|
|
214
281
|
|
|
215
282
|
export declare namespace Keywords {
|
|
@@ -221,5 +288,6 @@ export declare namespace Keywords {
|
|
|
221
288
|
type KeywordDeactivateResponse as KeywordDeactivateResponse,
|
|
222
289
|
type KeywordCreateParams as KeywordCreateParams,
|
|
223
290
|
type KeywordUpdateParams as KeywordUpdateParams,
|
|
291
|
+
type KeywordListParams as KeywordListParams,
|
|
224
292
|
};
|
|
225
293
|
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
KeywordCreateParams,
|
|
12
12
|
KeywordCreateResponse,
|
|
13
13
|
KeywordDeactivateResponse,
|
|
14
|
+
KeywordListParams,
|
|
14
15
|
KeywordListResponse,
|
|
15
16
|
KeywordRetrieveResponse,
|
|
16
17
|
KeywordUpdateParams,
|
|
@@ -28,16 +29,16 @@ export class Monitors extends APIResource {
|
|
|
28
29
|
keywords: KeywordsAPI.Keywords = new KeywordsAPI.Keywords(this._client);
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
* Creates an account monitor
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* username lookup.
|
|
32
|
+
* Creates an account monitor, with no count limit. Active monitors check every
|
|
33
|
+
* second for 30 credits an hour, events & webhook deliveries included. That hourly
|
|
34
|
+
* price is a monitor's only charge. Creation needs the credits of the first hour.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
38
38
|
* const monitor = await client.monitors.create({
|
|
39
39
|
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
40
40
|
* username: 'elonmusk',
|
|
41
|
+
* name: 'Launch watch',
|
|
41
42
|
* });
|
|
42
43
|
* ```
|
|
43
44
|
*/
|
|
@@ -46,7 +47,7 @@ export class Monitors extends APIResource {
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
|
-
*
|
|
50
|
+
* Returns configuration and status for one account monitor.
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
@@ -58,13 +59,14 @@ export class Monitors extends APIResource {
|
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
|
-
*
|
|
62
|
+
* Updates mutable settings for an existing account monitor.
|
|
62
63
|
*
|
|
63
64
|
* @example
|
|
64
65
|
* ```ts
|
|
65
66
|
* const monitor = await client.monitors.update('id', {
|
|
66
67
|
* eventTypes: ['tweet.new'],
|
|
67
68
|
* isActive: true,
|
|
69
|
+
* name: 'Launch watch',
|
|
68
70
|
* });
|
|
69
71
|
* ```
|
|
70
72
|
*/
|
|
@@ -73,19 +75,23 @@ export class Monitors extends APIResource {
|
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
/**
|
|
76
|
-
*
|
|
78
|
+
* Returns account monitors with their current operating states.
|
|
77
79
|
*
|
|
78
80
|
* @example
|
|
79
81
|
* ```ts
|
|
80
82
|
* const monitors = await client.monitors.list();
|
|
81
83
|
* ```
|
|
82
84
|
*/
|
|
83
|
-
list(
|
|
84
|
-
|
|
85
|
+
list(
|
|
86
|
+
query: MonitorListParams | null | undefined = {},
|
|
87
|
+
options?: RequestOptions,
|
|
88
|
+
): APIPromise<MonitorListResponse> {
|
|
89
|
+
return this._client.get('/monitors', { query, ...options });
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
/**
|
|
88
|
-
*
|
|
93
|
+
* Stops one account monitor, then removes its stored events in bounded batches.
|
|
94
|
+
* Poll statusUrl until the monitor returns 404.
|
|
89
95
|
*
|
|
90
96
|
* @example
|
|
91
97
|
* ```ts
|
|
@@ -113,7 +119,7 @@ export interface Monitor {
|
|
|
113
119
|
isActive: boolean;
|
|
114
120
|
|
|
115
121
|
/**
|
|
116
|
-
* Next hourly
|
|
122
|
+
* Next hourly credit charge time for this account monitor.
|
|
117
123
|
*/
|
|
118
124
|
nextBillingAt: string;
|
|
119
125
|
|
|
@@ -121,6 +127,11 @@ export interface Monitor {
|
|
|
121
127
|
|
|
122
128
|
xUserId: string;
|
|
123
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Customer-set label of the account monitor, when set.
|
|
132
|
+
*/
|
|
133
|
+
name?: string;
|
|
134
|
+
|
|
124
135
|
/**
|
|
125
136
|
* When Xquik automatically paused this monitor.
|
|
126
137
|
*/
|
|
@@ -129,7 +140,7 @@ export interface Monitor {
|
|
|
129
140
|
/**
|
|
130
141
|
* Why Xquik automatically paused this monitor.
|
|
131
142
|
*/
|
|
132
|
-
pausedReason?: 'x_user_not_found';
|
|
143
|
+
pausedReason?: 'x_account_protected' | 'x_user_not_found';
|
|
133
144
|
}
|
|
134
145
|
|
|
135
146
|
export interface MonitorCreateResponse {
|
|
@@ -145,7 +156,7 @@ export interface MonitorCreateResponse {
|
|
|
145
156
|
isActive: boolean;
|
|
146
157
|
|
|
147
158
|
/**
|
|
148
|
-
* Next hourly
|
|
159
|
+
* Next hourly credit charge time. New active monitors are due immediately.
|
|
149
160
|
*/
|
|
150
161
|
nextBillingAt: string;
|
|
151
162
|
|
|
@@ -155,12 +166,26 @@ export interface MonitorCreateResponse {
|
|
|
155
166
|
}
|
|
156
167
|
|
|
157
168
|
export interface MonitorListResponse {
|
|
169
|
+
hasMore: boolean;
|
|
170
|
+
|
|
158
171
|
monitors: Array<Monitor>;
|
|
159
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Account monitors on this page.
|
|
175
|
+
*/
|
|
160
176
|
total: number;
|
|
177
|
+
|
|
178
|
+
nextCursor?: string;
|
|
161
179
|
}
|
|
162
180
|
|
|
163
181
|
export interface MonitorDeactivateResponse {
|
|
182
|
+
deletionStatus: 'deleting';
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Poll this monitor URL until it returns 404.
|
|
186
|
+
*/
|
|
187
|
+
statusUrl: string;
|
|
188
|
+
|
|
164
189
|
success: true;
|
|
165
190
|
}
|
|
166
191
|
|
|
@@ -171,9 +196,15 @@ export interface MonitorCreateParams {
|
|
|
171
196
|
eventTypes: Array<Shared.EventType>;
|
|
172
197
|
|
|
173
198
|
/**
|
|
174
|
-
* X username
|
|
199
|
+
* X username to monitor, with or without @
|
|
175
200
|
*/
|
|
176
201
|
username: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Your label for the monitor. Its events carry it as monitorName. Whitespace is
|
|
205
|
+
* normalized.
|
|
206
|
+
*/
|
|
207
|
+
name?: string;
|
|
177
208
|
}
|
|
178
209
|
|
|
179
210
|
export interface MonitorUpdateParams {
|
|
@@ -183,6 +214,25 @@ export interface MonitorUpdateParams {
|
|
|
183
214
|
eventTypes?: Array<Shared.EventType>;
|
|
184
215
|
|
|
185
216
|
isActive?: boolean;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* New label for the account monitor. Send null to remove the label.
|
|
220
|
+
*/
|
|
221
|
+
name?: string | null;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface MonitorListParams {
|
|
225
|
+
/**
|
|
226
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
227
|
+
* supported.
|
|
228
|
+
*/
|
|
229
|
+
cursor?: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Maximum items per page: 1 to 200, default 200. Pass nextCursor as cursor for the
|
|
233
|
+
* next page.
|
|
234
|
+
*/
|
|
235
|
+
limit?: number;
|
|
186
236
|
}
|
|
187
237
|
|
|
188
238
|
Monitors.Keywords = Keywords;
|
|
@@ -195,6 +245,7 @@ export declare namespace Monitors {
|
|
|
195
245
|
type MonitorDeactivateResponse as MonitorDeactivateResponse,
|
|
196
246
|
type MonitorCreateParams as MonitorCreateParams,
|
|
197
247
|
type MonitorUpdateParams as MonitorUpdateParams,
|
|
248
|
+
type MonitorListParams as MonitorListParams,
|
|
198
249
|
};
|
|
199
250
|
|
|
200
251
|
export {
|
|
@@ -206,5 +257,6 @@ export declare namespace Monitors {
|
|
|
206
257
|
type KeywordDeactivateResponse as KeywordDeactivateResponse,
|
|
207
258
|
type KeywordCreateParams as KeywordCreateParams,
|
|
208
259
|
type KeywordUpdateParams as KeywordUpdateParams,
|
|
260
|
+
type KeywordListParams as KeywordListParams,
|
|
209
261
|
};
|
|
210
262
|
}
|
package/src/resources/radar.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
13
13
|
*/
|
|
14
14
|
export class Radar extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Returns current topics and sources for writing research.
|
|
17
17
|
*/
|
|
18
18
|
retrieveTrendingTopics(
|
|
19
19
|
query: RadarRetrieveTrendingTopicsParams | null | undefined = {},
|
|
@@ -43,33 +43,26 @@ export interface RadarItem {
|
|
|
43
43
|
language: string;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Source
|
|
47
|
-
*
|
|
46
|
+
* Source fields vary:
|
|
48
47
|
* - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
|
|
49
48
|
* sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
|
|
50
49
|
* numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
|
|
51
50
|
* postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
|
|
52
51
|
* editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
|
|
53
52
|
* isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
|
|
54
|
-
* isSelf?, isSpoiler?, isVideo?, locked?, stickied? }.
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* - github: { starsToday: number }
|
|
61
|
-
* - hacker_news: { points: number, numberComments: number }
|
|
62
|
-
* - google_trends: { approxTraffic: number }
|
|
63
|
-
* - polymarket: { volume24hr: number }
|
|
64
|
-
* - wikipedia: { views: number }
|
|
53
|
+
* isSelf?, isSpoiler?, isVideo?, locked?, stickied? }.
|
|
54
|
+
* - github: { starsToday }
|
|
55
|
+
* - hacker_news: { points, numberComments }
|
|
56
|
+
* - google_trends: { approxTraffic }
|
|
57
|
+
* - polymarket: { volume24hr }
|
|
58
|
+
* - wikipedia: { views }
|
|
65
59
|
* - trustmrr: { mrr, growthPercent, last30Days, total, customers,
|
|
66
60
|
* activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
|
|
67
61
|
* foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
|
|
68
62
|
* multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
|
|
69
|
-
* revenuePerVisitor?, targetAudience?, visitorsLast30Days? }
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* revenue-growth rank.
|
|
63
|
+
* revenuePerVisitor?, targetAudience?, visitorsLast30Days? } Reddit score is
|
|
64
|
+
* public net. Vote estimates use its fuzzed ratio. Comments are omitted. Startup
|
|
65
|
+
* xHandle omits @. rank is its growth rank.
|
|
73
66
|
*/
|
|
74
67
|
metadata: RadarItem.Metadata;
|
|
75
68
|
|
|
@@ -100,43 +93,45 @@ export interface RadarItem {
|
|
|
100
93
|
|
|
101
94
|
export namespace RadarItem {
|
|
102
95
|
/**
|
|
103
|
-
* Source
|
|
104
|
-
*
|
|
96
|
+
* Source fields vary:
|
|
105
97
|
* - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
|
|
106
98
|
* sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
|
|
107
99
|
* numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
|
|
108
100
|
* postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
|
|
109
101
|
* editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
|
|
110
102
|
* isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
|
|
111
|
-
* isSelf?, isSpoiler?, isVideo?, locked?, stickied? }.
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* - github: { starsToday: number }
|
|
118
|
-
* - hacker_news: { points: number, numberComments: number }
|
|
119
|
-
* - google_trends: { approxTraffic: number }
|
|
120
|
-
* - polymarket: { volume24hr: number }
|
|
121
|
-
* - wikipedia: { views: number }
|
|
103
|
+
* isSelf?, isSpoiler?, isVideo?, locked?, stickied? }.
|
|
104
|
+
* - github: { starsToday }
|
|
105
|
+
* - hacker_news: { points, numberComments }
|
|
106
|
+
* - google_trends: { approxTraffic }
|
|
107
|
+
* - polymarket: { volume24hr }
|
|
108
|
+
* - wikipedia: { views }
|
|
122
109
|
* - trustmrr: { mrr, growthPercent, last30Days, total, customers,
|
|
123
110
|
* activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
|
|
124
111
|
* foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
|
|
125
112
|
* multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
|
|
126
|
-
* revenuePerVisitor?, targetAudience?, visitorsLast30Days? }
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* revenue-growth rank.
|
|
113
|
+
* revenuePerVisitor?, targetAudience?, visitorsLast30Days? } Reddit score is
|
|
114
|
+
* public net. Vote estimates use its fuzzed ratio. Comments are omitted. Startup
|
|
115
|
+
* xHandle omits @. rank is its growth rank.
|
|
130
116
|
*/
|
|
131
117
|
export interface Metadata {
|
|
132
118
|
author?: string;
|
|
133
119
|
|
|
134
120
|
contentUrl?: string;
|
|
135
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Whole number from 0.
|
|
124
|
+
*/
|
|
136
125
|
estimatedDownvotes?: number;
|
|
137
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Whole number from 0.
|
|
129
|
+
*/
|
|
138
130
|
estimatedUpvotes?: number;
|
|
139
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Whole number from 0.
|
|
134
|
+
*/
|
|
140
135
|
numberComments?: number;
|
|
141
136
|
|
|
142
137
|
score?: number;
|
|
@@ -169,7 +164,8 @@ export interface RadarRetrieveTrendingTopicsResponse {
|
|
|
169
164
|
|
|
170
165
|
export interface RadarRetrieveTrendingTopicsParams {
|
|
171
166
|
/**
|
|
172
|
-
* Cursor for pagination
|
|
167
|
+
* Cursor for pagination, from the prior response's nextCursor. A cursor the radar
|
|
168
|
+
* can't read gets 400 `invalid_input`.
|
|
173
169
|
*/
|
|
174
170
|
after?: string;
|
|
175
171
|
|