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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../shared.mjs";
|
|
3
3
|
import * as KeywordsAPI from "./keywords.mjs";
|
|
4
|
-
import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse, KeywordListResponse, KeywordRetrieveResponse, KeywordUpdateParams, KeywordUpdateResponse, Keywords } from "./keywords.mjs";
|
|
4
|
+
import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse, KeywordListParams, KeywordListResponse, KeywordRetrieveResponse, KeywordUpdateParams, KeywordUpdateResponse, Keywords } from "./keywords.mjs";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
7
|
/**
|
|
@@ -10,22 +10,22 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
10
10
|
export declare class Monitors extends APIResource {
|
|
11
11
|
keywords: KeywordsAPI.Keywords;
|
|
12
12
|
/**
|
|
13
|
-
* Creates an account monitor
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* username lookup.
|
|
13
|
+
* Creates an account monitor, with no count limit. Active monitors check every
|
|
14
|
+
* second for 30 credits an hour, events & webhook deliveries included. That hourly
|
|
15
|
+
* price is a monitor's only charge. Creation needs the credits of the first hour.
|
|
17
16
|
*
|
|
18
17
|
* @example
|
|
19
18
|
* ```ts
|
|
20
19
|
* const monitor = await client.monitors.create({
|
|
21
20
|
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
22
21
|
* username: 'elonmusk',
|
|
22
|
+
* name: 'Launch watch',
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
create(body: MonitorCreateParams, options?: RequestOptions): APIPromise<MonitorCreateResponse>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Returns configuration and status for one account monitor.
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
@@ -34,28 +34,30 @@ export declare class Monitors extends APIResource {
|
|
|
34
34
|
*/
|
|
35
35
|
retrieve(id: string, options?: RequestOptions): APIPromise<Monitor>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Updates mutable settings for an existing account monitor.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* ```ts
|
|
41
41
|
* const monitor = await client.monitors.update('id', {
|
|
42
42
|
* eventTypes: ['tweet.new'],
|
|
43
43
|
* isActive: true,
|
|
44
|
+
* name: 'Launch watch',
|
|
44
45
|
* });
|
|
45
46
|
* ```
|
|
46
47
|
*/
|
|
47
48
|
update(id: string, body: MonitorUpdateParams, options?: RequestOptions): APIPromise<Monitor>;
|
|
48
49
|
/**
|
|
49
|
-
*
|
|
50
|
+
* Returns account monitors with their current operating states.
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
53
54
|
* const monitors = await client.monitors.list();
|
|
54
55
|
* ```
|
|
55
56
|
*/
|
|
56
|
-
list(options?: RequestOptions): APIPromise<MonitorListResponse>;
|
|
57
|
+
list(query?: MonitorListParams | null | undefined, options?: RequestOptions): APIPromise<MonitorListResponse>;
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
+
* Stops one account monitor, then removes its stored events in bounded batches.
|
|
60
|
+
* Poll statusUrl until the monitor returns 404.
|
|
59
61
|
*
|
|
60
62
|
* @example
|
|
61
63
|
* ```ts
|
|
@@ -76,11 +78,15 @@ export interface Monitor {
|
|
|
76
78
|
eventTypes: Array<Shared.EventType>;
|
|
77
79
|
isActive: boolean;
|
|
78
80
|
/**
|
|
79
|
-
* Next hourly
|
|
81
|
+
* Next hourly credit charge time for this account monitor.
|
|
80
82
|
*/
|
|
81
83
|
nextBillingAt: string;
|
|
82
84
|
username: string;
|
|
83
85
|
xUserId: string;
|
|
86
|
+
/**
|
|
87
|
+
* Customer-set label of the account monitor, when set.
|
|
88
|
+
*/
|
|
89
|
+
name?: string;
|
|
84
90
|
/**
|
|
85
91
|
* When Xquik automatically paused this monitor.
|
|
86
92
|
*/
|
|
@@ -88,7 +94,7 @@ export interface Monitor {
|
|
|
88
94
|
/**
|
|
89
95
|
* Why Xquik automatically paused this monitor.
|
|
90
96
|
*/
|
|
91
|
-
pausedReason?: 'x_user_not_found';
|
|
97
|
+
pausedReason?: 'x_account_protected' | 'x_user_not_found';
|
|
92
98
|
}
|
|
93
99
|
export interface MonitorCreateResponse {
|
|
94
100
|
id: string;
|
|
@@ -99,17 +105,27 @@ export interface MonitorCreateResponse {
|
|
|
99
105
|
eventTypes: Array<Shared.EventType>;
|
|
100
106
|
isActive: boolean;
|
|
101
107
|
/**
|
|
102
|
-
* Next hourly
|
|
108
|
+
* Next hourly credit charge time. New active monitors are due immediately.
|
|
103
109
|
*/
|
|
104
110
|
nextBillingAt: string;
|
|
105
111
|
username: string;
|
|
106
112
|
xUserId: string;
|
|
107
113
|
}
|
|
108
114
|
export interface MonitorListResponse {
|
|
115
|
+
hasMore: boolean;
|
|
109
116
|
monitors: Array<Monitor>;
|
|
117
|
+
/**
|
|
118
|
+
* Account monitors on this page.
|
|
119
|
+
*/
|
|
110
120
|
total: number;
|
|
121
|
+
nextCursor?: string;
|
|
111
122
|
}
|
|
112
123
|
export interface MonitorDeactivateResponse {
|
|
124
|
+
deletionStatus: 'deleting';
|
|
125
|
+
/**
|
|
126
|
+
* Poll this monitor URL until it returns 404.
|
|
127
|
+
*/
|
|
128
|
+
statusUrl: string;
|
|
113
129
|
success: true;
|
|
114
130
|
}
|
|
115
131
|
export interface MonitorCreateParams {
|
|
@@ -118,9 +134,14 @@ export interface MonitorCreateParams {
|
|
|
118
134
|
*/
|
|
119
135
|
eventTypes: Array<Shared.EventType>;
|
|
120
136
|
/**
|
|
121
|
-
* X username
|
|
137
|
+
* X username to monitor, with or without @
|
|
122
138
|
*/
|
|
123
139
|
username: string;
|
|
140
|
+
/**
|
|
141
|
+
* Your label for the monitor. Its events carry it as monitorName. Whitespace is
|
|
142
|
+
* normalized.
|
|
143
|
+
*/
|
|
144
|
+
name?: string;
|
|
124
145
|
}
|
|
125
146
|
export interface MonitorUpdateParams {
|
|
126
147
|
/**
|
|
@@ -128,9 +149,25 @@ export interface MonitorUpdateParams {
|
|
|
128
149
|
*/
|
|
129
150
|
eventTypes?: Array<Shared.EventType>;
|
|
130
151
|
isActive?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* New label for the account monitor. Send null to remove the label.
|
|
154
|
+
*/
|
|
155
|
+
name?: string | null;
|
|
156
|
+
}
|
|
157
|
+
export interface MonitorListParams {
|
|
158
|
+
/**
|
|
159
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
160
|
+
* supported.
|
|
161
|
+
*/
|
|
162
|
+
cursor?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Maximum items per page: 1 to 200, default 200. Pass nextCursor as cursor for the
|
|
165
|
+
* next page.
|
|
166
|
+
*/
|
|
167
|
+
limit?: number;
|
|
131
168
|
}
|
|
132
169
|
export declare namespace Monitors {
|
|
133
|
-
export { type Monitor as Monitor, type MonitorCreateResponse as MonitorCreateResponse, type MonitorListResponse as MonitorListResponse, type MonitorDeactivateResponse as MonitorDeactivateResponse, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, };
|
|
134
|
-
export { Keywords as Keywords, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, };
|
|
170
|
+
export { type Monitor as Monitor, type MonitorCreateResponse as MonitorCreateResponse, type MonitorListResponse as MonitorListResponse, type MonitorDeactivateResponse as MonitorDeactivateResponse, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, type MonitorListParams as MonitorListParams, };
|
|
171
|
+
export { Keywords as Keywords, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
135
172
|
}
|
|
136
173
|
//# sourceMappingURL=monitors.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.d.mts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,uBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInE
|
|
1
|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AED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAErC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as Shared from "../shared.js";
|
|
3
3
|
import * as KeywordsAPI from "./keywords.js";
|
|
4
|
-
import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse, KeywordListResponse, KeywordRetrieveResponse, KeywordUpdateParams, KeywordUpdateResponse, Keywords } from "./keywords.js";
|
|
4
|
+
import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse, KeywordListParams, KeywordListResponse, KeywordRetrieveResponse, KeywordUpdateParams, KeywordUpdateResponse, Keywords } from "./keywords.js";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
7
|
/**
|
|
@@ -10,22 +10,22 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
10
10
|
export declare class Monitors extends APIResource {
|
|
11
11
|
keywords: KeywordsAPI.Keywords;
|
|
12
12
|
/**
|
|
13
|
-
* Creates an account monitor
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* username lookup.
|
|
13
|
+
* Creates an account monitor, with no count limit. Active monitors check every
|
|
14
|
+
* second for 30 credits an hour, events & webhook deliveries included. That hourly
|
|
15
|
+
* price is a monitor's only charge. Creation needs the credits of the first hour.
|
|
17
16
|
*
|
|
18
17
|
* @example
|
|
19
18
|
* ```ts
|
|
20
19
|
* const monitor = await client.monitors.create({
|
|
21
20
|
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
22
21
|
* username: 'elonmusk',
|
|
22
|
+
* name: 'Launch watch',
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
create(body: MonitorCreateParams, options?: RequestOptions): APIPromise<MonitorCreateResponse>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Returns configuration and status for one account monitor.
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
@@ -34,28 +34,30 @@ export declare class Monitors extends APIResource {
|
|
|
34
34
|
*/
|
|
35
35
|
retrieve(id: string, options?: RequestOptions): APIPromise<Monitor>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Updates mutable settings for an existing account monitor.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* ```ts
|
|
41
41
|
* const monitor = await client.monitors.update('id', {
|
|
42
42
|
* eventTypes: ['tweet.new'],
|
|
43
43
|
* isActive: true,
|
|
44
|
+
* name: 'Launch watch',
|
|
44
45
|
* });
|
|
45
46
|
* ```
|
|
46
47
|
*/
|
|
47
48
|
update(id: string, body: MonitorUpdateParams, options?: RequestOptions): APIPromise<Monitor>;
|
|
48
49
|
/**
|
|
49
|
-
*
|
|
50
|
+
* Returns account monitors with their current operating states.
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
53
54
|
* const monitors = await client.monitors.list();
|
|
54
55
|
* ```
|
|
55
56
|
*/
|
|
56
|
-
list(options?: RequestOptions): APIPromise<MonitorListResponse>;
|
|
57
|
+
list(query?: MonitorListParams | null | undefined, options?: RequestOptions): APIPromise<MonitorListResponse>;
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
+
* Stops one account monitor, then removes its stored events in bounded batches.
|
|
60
|
+
* Poll statusUrl until the monitor returns 404.
|
|
59
61
|
*
|
|
60
62
|
* @example
|
|
61
63
|
* ```ts
|
|
@@ -76,11 +78,15 @@ export interface Monitor {
|
|
|
76
78
|
eventTypes: Array<Shared.EventType>;
|
|
77
79
|
isActive: boolean;
|
|
78
80
|
/**
|
|
79
|
-
* Next hourly
|
|
81
|
+
* Next hourly credit charge time for this account monitor.
|
|
80
82
|
*/
|
|
81
83
|
nextBillingAt: string;
|
|
82
84
|
username: string;
|
|
83
85
|
xUserId: string;
|
|
86
|
+
/**
|
|
87
|
+
* Customer-set label of the account monitor, when set.
|
|
88
|
+
*/
|
|
89
|
+
name?: string;
|
|
84
90
|
/**
|
|
85
91
|
* When Xquik automatically paused this monitor.
|
|
86
92
|
*/
|
|
@@ -88,7 +94,7 @@ export interface Monitor {
|
|
|
88
94
|
/**
|
|
89
95
|
* Why Xquik automatically paused this monitor.
|
|
90
96
|
*/
|
|
91
|
-
pausedReason?: 'x_user_not_found';
|
|
97
|
+
pausedReason?: 'x_account_protected' | 'x_user_not_found';
|
|
92
98
|
}
|
|
93
99
|
export interface MonitorCreateResponse {
|
|
94
100
|
id: string;
|
|
@@ -99,17 +105,27 @@ export interface MonitorCreateResponse {
|
|
|
99
105
|
eventTypes: Array<Shared.EventType>;
|
|
100
106
|
isActive: boolean;
|
|
101
107
|
/**
|
|
102
|
-
* Next hourly
|
|
108
|
+
* Next hourly credit charge time. New active monitors are due immediately.
|
|
103
109
|
*/
|
|
104
110
|
nextBillingAt: string;
|
|
105
111
|
username: string;
|
|
106
112
|
xUserId: string;
|
|
107
113
|
}
|
|
108
114
|
export interface MonitorListResponse {
|
|
115
|
+
hasMore: boolean;
|
|
109
116
|
monitors: Array<Monitor>;
|
|
117
|
+
/**
|
|
118
|
+
* Account monitors on this page.
|
|
119
|
+
*/
|
|
110
120
|
total: number;
|
|
121
|
+
nextCursor?: string;
|
|
111
122
|
}
|
|
112
123
|
export interface MonitorDeactivateResponse {
|
|
124
|
+
deletionStatus: 'deleting';
|
|
125
|
+
/**
|
|
126
|
+
* Poll this monitor URL until it returns 404.
|
|
127
|
+
*/
|
|
128
|
+
statusUrl: string;
|
|
113
129
|
success: true;
|
|
114
130
|
}
|
|
115
131
|
export interface MonitorCreateParams {
|
|
@@ -118,9 +134,14 @@ export interface MonitorCreateParams {
|
|
|
118
134
|
*/
|
|
119
135
|
eventTypes: Array<Shared.EventType>;
|
|
120
136
|
/**
|
|
121
|
-
* X username
|
|
137
|
+
* X username to monitor, with or without @
|
|
122
138
|
*/
|
|
123
139
|
username: string;
|
|
140
|
+
/**
|
|
141
|
+
* Your label for the monitor. Its events carry it as monitorName. Whitespace is
|
|
142
|
+
* normalized.
|
|
143
|
+
*/
|
|
144
|
+
name?: string;
|
|
124
145
|
}
|
|
125
146
|
export interface MonitorUpdateParams {
|
|
126
147
|
/**
|
|
@@ -128,9 +149,25 @@ export interface MonitorUpdateParams {
|
|
|
128
149
|
*/
|
|
129
150
|
eventTypes?: Array<Shared.EventType>;
|
|
130
151
|
isActive?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* New label for the account monitor. Send null to remove the label.
|
|
154
|
+
*/
|
|
155
|
+
name?: string | null;
|
|
156
|
+
}
|
|
157
|
+
export interface MonitorListParams {
|
|
158
|
+
/**
|
|
159
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
160
|
+
* supported.
|
|
161
|
+
*/
|
|
162
|
+
cursor?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Maximum items per page: 1 to 200, default 200. Pass nextCursor as cursor for the
|
|
165
|
+
* next page.
|
|
166
|
+
*/
|
|
167
|
+
limit?: number;
|
|
131
168
|
}
|
|
132
169
|
export declare namespace Monitors {
|
|
133
|
-
export { type Monitor as Monitor, type MonitorCreateResponse as MonitorCreateResponse, type MonitorListResponse as MonitorListResponse, type MonitorDeactivateResponse as MonitorDeactivateResponse, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, };
|
|
134
|
-
export { Keywords as Keywords, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, };
|
|
170
|
+
export { type Monitor as Monitor, type MonitorCreateResponse as MonitorCreateResponse, type MonitorListResponse as MonitorListResponse, type MonitorDeactivateResponse as MonitorDeactivateResponse, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, type MonitorListParams as MonitorListParams, };
|
|
171
|
+
export { Keywords as Keywords, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
135
172
|
}
|
|
136
173
|
//# sourceMappingURL=monitors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,sBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInE
|
|
1
|
+
{"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,sBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,E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AK,OAAO,IAAI,OAAO,EACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -19,16 +19,16 @@ class Monitors extends resource_1.APIResource {
|
|
|
19
19
|
this.keywords = new KeywordsAPI.Keywords(this._client);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Creates an account monitor
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* username lookup.
|
|
22
|
+
* Creates an account monitor, with no count limit. Active monitors check every
|
|
23
|
+
* second for 30 credits an hour, events & webhook deliveries included. That hourly
|
|
24
|
+
* price is a monitor's only charge. Creation needs the credits of the first hour.
|
|
26
25
|
*
|
|
27
26
|
* @example
|
|
28
27
|
* ```ts
|
|
29
28
|
* const monitor = await client.monitors.create({
|
|
30
29
|
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
31
30
|
* username: 'elonmusk',
|
|
31
|
+
* name: 'Launch watch',
|
|
32
32
|
* });
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
@@ -36,7 +36,7 @@ class Monitors extends resource_1.APIResource {
|
|
|
36
36
|
return this._client.post('/monitors', { body, ...options });
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Returns configuration and status for one account monitor.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```ts
|
|
@@ -47,13 +47,14 @@ class Monitors extends resource_1.APIResource {
|
|
|
47
47
|
return this._client.get((0, path_1.path) `/monitors/${id}`, options);
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Updates mutable settings for an existing account monitor.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* ```ts
|
|
54
54
|
* const monitor = await client.monitors.update('id', {
|
|
55
55
|
* eventTypes: ['tweet.new'],
|
|
56
56
|
* isActive: true,
|
|
57
|
+
* name: 'Launch watch',
|
|
57
58
|
* });
|
|
58
59
|
* ```
|
|
59
60
|
*/
|
|
@@ -61,18 +62,19 @@ class Monitors extends resource_1.APIResource {
|
|
|
61
62
|
return this._client.patch((0, path_1.path) `/monitors/${id}`, { body, ...options });
|
|
62
63
|
}
|
|
63
64
|
/**
|
|
64
|
-
*
|
|
65
|
+
* Returns account monitors with their current operating states.
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
68
|
* ```ts
|
|
68
69
|
* const monitors = await client.monitors.list();
|
|
69
70
|
* ```
|
|
70
71
|
*/
|
|
71
|
-
list(options) {
|
|
72
|
-
return this._client.get('/monitors', options);
|
|
72
|
+
list(query = {}, options) {
|
|
73
|
+
return this._client.get('/monitors', { query, ...options });
|
|
73
74
|
}
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* Stops one account monitor, then removes its stored events in bounded batches.
|
|
77
|
+
* Poll statusUrl until the monitor returns 404.
|
|
76
78
|
*
|
|
77
79
|
* @example
|
|
78
80
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.js","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;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B;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AA5ED,4BA4EC;AAsID,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -15,16 +15,16 @@ export class Monitors extends APIResource {
|
|
|
15
15
|
this.keywords = new KeywordsAPI.Keywords(this._client);
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Creates an account monitor
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* username lookup.
|
|
18
|
+
* Creates an account 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.
|
|
22
21
|
*
|
|
23
22
|
* @example
|
|
24
23
|
* ```ts
|
|
25
24
|
* const monitor = await client.monitors.create({
|
|
26
25
|
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
27
26
|
* username: 'elonmusk',
|
|
27
|
+
* name: 'Launch watch',
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
@@ -32,7 +32,7 @@ export class Monitors extends APIResource {
|
|
|
32
32
|
return this._client.post('/monitors', { body, ...options });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Returns configuration and status for one account monitor.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* ```ts
|
|
@@ -43,13 +43,14 @@ export class Monitors extends APIResource {
|
|
|
43
43
|
return this._client.get(path `/monitors/${id}`, options);
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Updates mutable settings for an existing account monitor.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* ```ts
|
|
50
50
|
* const monitor = await client.monitors.update('id', {
|
|
51
51
|
* eventTypes: ['tweet.new'],
|
|
52
52
|
* isActive: true,
|
|
53
|
+
* name: 'Launch watch',
|
|
53
54
|
* });
|
|
54
55
|
* ```
|
|
55
56
|
*/
|
|
@@ -57,18 +58,19 @@ export class Monitors extends APIResource {
|
|
|
57
58
|
return this._client.patch(path `/monitors/${id}`, { body, ...options });
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
+
* Returns account monitors with their current operating states.
|
|
61
62
|
*
|
|
62
63
|
* @example
|
|
63
64
|
* ```ts
|
|
64
65
|
* const monitors = await client.monitors.list();
|
|
65
66
|
* ```
|
|
66
67
|
*/
|
|
67
|
-
list(options) {
|
|
68
|
-
return this._client.get('/monitors', options);
|
|
68
|
+
list(query = {}, options) {
|
|
69
|
+
return this._client.get('/monitors', { query, ...options });
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
71
|
-
*
|
|
72
|
+
* Stops one account monitor, then removes its stored events in bounded batches.
|
|
73
|
+
* Poll statusUrl until the monitor returns 404.
|
|
72
74
|
*
|
|
73
75
|
* @example
|
|
74
76
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.mjs","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"monitors.mjs","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EASL,QAAQ,GACT,uBAAmB;AAGpB,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2E1E,CAAC;IAzEC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAsID,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
package/resources/radar.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Radar extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns current topics and sources for writing research.
|
|
10
10
|
*/
|
|
11
11
|
retrieveTrendingTopics(query?: RadarRetrieveTrendingTopicsParams | null | undefined, options?: RequestOptions): APIPromise<RadarRetrieveTrendingTopicsResponse>;
|
|
12
12
|
}
|
|
@@ -26,33 +26,26 @@ export interface RadarItem {
|
|
|
26
26
|
*/
|
|
27
27
|
language: string;
|
|
28
28
|
/**
|
|
29
|
-
* Source
|
|
30
|
-
*
|
|
29
|
+
* Source fields vary:
|
|
31
30
|
* - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
|
|
32
31
|
* sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
|
|
33
32
|
* numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
|
|
34
33
|
* postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
|
|
35
34
|
* editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
|
|
36
35
|
* isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
|
|
37
|
-
* isSelf?, isSpoiler?, isVideo?, locked?, stickied? }.
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* - github: { starsToday: number }
|
|
44
|
-
* - hacker_news: { points: number, numberComments: number }
|
|
45
|
-
* - google_trends: { approxTraffic: number }
|
|
46
|
-
* - polymarket: { volume24hr: number }
|
|
47
|
-
* - wikipedia: { views: number }
|
|
36
|
+
* isSelf?, isSpoiler?, isVideo?, locked?, stickied? }.
|
|
37
|
+
* - github: { starsToday }
|
|
38
|
+
* - hacker_news: { points, numberComments }
|
|
39
|
+
* - google_trends: { approxTraffic }
|
|
40
|
+
* - polymarket: { volume24hr }
|
|
41
|
+
* - wikipedia: { views }
|
|
48
42
|
* - trustmrr: { mrr, growthPercent, last30Days, total, customers,
|
|
49
43
|
* activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
|
|
50
44
|
* foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
|
|
51
45
|
* multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
|
|
52
|
-
* revenuePerVisitor?, targetAudience?, visitorsLast30Days? }
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* revenue-growth rank.
|
|
46
|
+
* revenuePerVisitor?, targetAudience?, visitorsLast30Days? } Reddit score is
|
|
47
|
+
* public net. Vote estimates use its fuzzed ratio. Comments are omitted. Startup
|
|
48
|
+
* xHandle omits @. rank is its growth rank.
|
|
56
49
|
*/
|
|
57
50
|
metadata: RadarItem.Metadata;
|
|
58
51
|
publishedAt: string;
|
|
@@ -73,39 +66,41 @@ export interface RadarItem {
|
|
|
73
66
|
}
|
|
74
67
|
export declare namespace RadarItem {
|
|
75
68
|
/**
|
|
76
|
-
* Source
|
|
77
|
-
*
|
|
69
|
+
* Source fields vary:
|
|
78
70
|
* - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
|
|
79
71
|
* sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
|
|
80
72
|
* numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
|
|
81
73
|
* postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
|
|
82
74
|
* editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
|
|
83
75
|
* isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
|
|
84
|
-
* isSelf?, isSpoiler?, isVideo?, locked?, stickied? }.
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* - github: { starsToday: number }
|
|
91
|
-
* - hacker_news: { points: number, numberComments: number }
|
|
92
|
-
* - google_trends: { approxTraffic: number }
|
|
93
|
-
* - polymarket: { volume24hr: number }
|
|
94
|
-
* - wikipedia: { views: number }
|
|
76
|
+
* isSelf?, isSpoiler?, isVideo?, locked?, stickied? }.
|
|
77
|
+
* - github: { starsToday }
|
|
78
|
+
* - hacker_news: { points, numberComments }
|
|
79
|
+
* - google_trends: { approxTraffic }
|
|
80
|
+
* - polymarket: { volume24hr }
|
|
81
|
+
* - wikipedia: { views }
|
|
95
82
|
* - trustmrr: { mrr, growthPercent, last30Days, total, customers,
|
|
96
83
|
* activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
|
|
97
84
|
* foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
|
|
98
85
|
* multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
|
|
99
|
-
* revenuePerVisitor?, targetAudience?, visitorsLast30Days? }
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* revenue-growth rank.
|
|
86
|
+
* revenuePerVisitor?, targetAudience?, visitorsLast30Days? } Reddit score is
|
|
87
|
+
* public net. Vote estimates use its fuzzed ratio. Comments are omitted. Startup
|
|
88
|
+
* xHandle omits @. rank is its growth rank.
|
|
103
89
|
*/
|
|
104
90
|
interface Metadata {
|
|
105
91
|
author?: string;
|
|
106
92
|
contentUrl?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Whole number from 0.
|
|
95
|
+
*/
|
|
107
96
|
estimatedDownvotes?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Whole number from 0.
|
|
99
|
+
*/
|
|
108
100
|
estimatedUpvotes?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Whole number from 0.
|
|
103
|
+
*/
|
|
109
104
|
numberComments?: number;
|
|
110
105
|
score?: number;
|
|
111
106
|
selftext?: string;
|
|
@@ -128,7 +123,8 @@ export interface RadarRetrieveTrendingTopicsResponse {
|
|
|
128
123
|
}
|
|
129
124
|
export interface RadarRetrieveTrendingTopicsParams {
|
|
130
125
|
/**
|
|
131
|
-
* Cursor for pagination
|
|
126
|
+
* Cursor for pagination, from the prior response's nextCursor. A cursor the radar
|
|
127
|
+
* can't read gets 400 `invalid_input`.
|
|
132
128
|
*/
|
|
133
129
|
after?: string;
|
|
134
130
|
/**
|