x-twitter-scraper 0.12.4 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/README.md +30 -9
- package/client.d.mts +18 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -15
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +4 -4
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +270 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +265 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +116 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +111 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +7 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +7 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/package.json +23 -5
- package/resources/account.d.mts +35 -12
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +35 -12
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +4 -3
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +4 -3
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts +77 -21
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +77 -21
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js +3 -4
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +3 -4
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +18 -10
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +18 -10
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +5 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +5 -4
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +13 -17
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +13 -17
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +4 -4
- package/resources/drafts.mjs +4 -4
- package/resources/draws.d.mts +84 -28
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +84 -28
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +24 -9
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +24 -9
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +2564 -21
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +2564 -21
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +34 -2
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +34 -2
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +410 -128
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +410 -128
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +74 -12
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +74 -12
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +6 -5
- package/resources/guest-wallets.d.mts.map +1 -1
- package/resources/guest-wallets.d.ts +6 -5
- package/resources/guest-wallets.d.ts.map +1 -1
- package/resources/guest-wallets.js +2 -1
- package/resources/guest-wallets.js.map +1 -1
- package/resources/guest-wallets.mjs +2 -1
- package/resources/guest-wallets.mjs.map +1 -1
- package/resources/index.d.mts +6 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +2 -2
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -2
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +66 -14
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +66 -14
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/keywords.js +16 -10
- package/resources/monitors/keywords.js.map +1 -1
- package/resources/monitors/keywords.mjs +16 -10
- package/resources/monitors/keywords.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +53 -16
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +53 -16
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +12 -10
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +12 -10
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +32 -36
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +32 -36
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.js +1 -1
- package/resources/radar.mjs +1 -1
- package/resources/shared.d.mts +1726 -233
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1726 -233
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts +34 -23
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts +34 -23
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.js +11 -13
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +11 -13
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +1 -1
- package/resources/subscribe.d.ts +1 -1
- package/resources/subscribe.js +1 -1
- package/resources/subscribe.mjs +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +30 -10
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +30 -10
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +7 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +7 -7
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/trends.d.mts +21 -5
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +21 -5
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.js +2 -1
- package/resources/trends.js.map +1 -1
- package/resources/trends.mjs +2 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +80 -14
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -14
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +30 -11
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +30 -11
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +1 -1
- package/resources/x/account-connection-attempts.d.ts +1 -1
- package/resources/x/account-connection-attempts.js +1 -1
- package/resources/x/account-connection-attempts.mjs +1 -1
- package/resources/x/account-connection-challenges.d.mts +30 -11
- package/resources/x/account-connection-challenges.d.mts.map +1 -1
- package/resources/x/account-connection-challenges.d.ts +30 -11
- package/resources/x/account-connection-challenges.d.ts.map +1 -1
- package/resources/x/account-connection-challenges.js +5 -4
- package/resources/x/account-connection-challenges.js.map +1 -1
- package/resources/x/account-connection-challenges.mjs +5 -4
- package/resources/x/account-connection-challenges.mjs.map +1 -1
- package/resources/x/accounts.d.mts +38 -10
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +38 -10
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +8 -7
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +8 -7
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/analysis.d.mts +3274 -0
- package/resources/x/analysis.d.mts.map +1 -0
- package/resources/x/analysis.d.ts +3274 -0
- package/resources/x/analysis.d.ts.map +1 -0
- package/resources/x/analysis.js +132 -0
- package/resources/x/analysis.js.map +1 -0
- package/resources/x/analysis.mjs +128 -0
- package/resources/x/analysis.mjs.map +1 -0
- package/resources/x/bookmarks.d.mts +84 -9
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +84 -9
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.js +6 -4
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +6 -4
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +176 -0
- package/resources/x/broadcasts.d.mts.map +1 -0
- package/resources/x/broadcasts.d.ts +176 -0
- package/resources/x/broadcasts.d.ts.map +1 -0
- package/resources/x/broadcasts.js +29 -0
- package/resources/x/broadcasts.js.map +1 -0
- package/resources/x/broadcasts.mjs +25 -0
- package/resources/x/broadcasts.mjs.map +1 -0
- package/resources/x/communities/communities.d.mts +612 -128
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +612 -128
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +96 -17
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +96 -17
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js +3 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -0
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +46 -25
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +46 -25
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +10 -7
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +10 -7
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/media.d.mts +197 -0
- package/resources/x/communities/media.d.mts.map +1 -0
- package/resources/x/communities/media.d.ts +197 -0
- package/resources/x/communities/media.d.ts.map +1 -0
- package/resources/x/communities/media.js +29 -0
- package/resources/x/communities/media.js.map +1 -0
- package/resources/x/communities/media.mjs +25 -0
- package/resources/x/communities/media.mjs.map +1 -0
- package/resources/x/communities/tweets.d.mts +350 -20
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +350 -20
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +8 -7
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +8 -7
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/dm.d.mts +245 -13
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +245 -13
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +29 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +29 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +31 -3
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +31 -3
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.js +2 -1
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +2 -1
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +12 -8
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +12 -8
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +9 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +5 -1
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +506 -0
- package/resources/x/jobs.d.mts.map +1 -0
- package/resources/x/jobs.d.ts +506 -0
- package/resources/x/jobs.d.ts.map +1 -0
- package/resources/x/jobs.js +60 -0
- package/resources/x/jobs.js.map +1 -0
- package/resources/x/jobs.mjs +56 -0
- package/resources/x/jobs.mjs.map +1 -0
- package/resources/x/lists.d.mts +1058 -27
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +1058 -27
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.js +39 -9
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +39 -9
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +24 -13
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +24 -13
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -2
- package/resources/x/media.mjs +2 -2
- package/resources/x/profile.d.mts +60 -33
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +60 -33
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +3 -3
- package/resources/x/profile.mjs +3 -3
- package/resources/x/spaces.d.mts +857 -0
- package/resources/x/spaces.d.mts.map +1 -0
- package/resources/x/spaces.d.ts +857 -0
- package/resources/x/spaces.d.ts.map +1 -0
- package/resources/x/spaces.js +58 -0
- package/resources/x/spaces.js.map +1 -0
- package/resources/x/spaces.mjs +54 -0
- package/resources/x/spaces.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +38 -20
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +38 -20
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +2 -2
- package/resources/x/tweets/like.mjs +2 -2
- package/resources/x/tweets/retweet.d.mts +38 -20
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +38 -20
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +2 -2
- package/resources/x/tweets/retweet.mjs +2 -2
- package/resources/x/tweets/tweets.d.mts +2639 -326
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +2639 -326
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +147 -21
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +147 -21
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +38 -20
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +38 -20
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +2 -2
- package/resources/x/users/follow.mjs +2 -2
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +3068 -457
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +3068 -457
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +205 -22
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +205 -22
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +13 -6
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +13 -6
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/write-actions.js +1 -1
- package/resources/x/write-actions.mjs +1 -1
- package/resources/x/x.d.mts +864 -27
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +864 -27
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +78 -5
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +80 -7
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/SKILL.md +99 -344
- package/skills/x-twitter-scraper/metadata.json +2 -2
- package/skills/x-twitter-scraper/references/mcp-setup.md +12 -15
- package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
- package/skills/x-twitter-scraper/references/types-mcp-output-schemas.md +4 -4
- package/skills/x-twitter-scraper/references/types.md +0 -1
- package/skills/x-twitter-scraper/skill-card.md +5 -6
- package/skills/x-twitter-scraper/skillspector-report.md +6 -3
- package/skills/xquik-account-automation/LICENSE +21 -0
- package/skills/xquik-account-automation/SKILL.md +91 -0
- package/skills/xquik-social-research/SKILL.md +48 -55
- package/src/client.ts +47 -4
- package/src/core/streaming.ts +328 -0
- package/src/internal/decoders/line.ts +140 -0
- package/src/internal/parse.ts +9 -0
- package/src/resources/account.ts +41 -12
- package/src/resources/compose.ts +77 -21
- package/src/resources/credits.ts +19 -10
- package/src/resources/drafts.ts +13 -22
- package/src/resources/draws.ts +94 -36
- package/src/resources/events.ts +3225 -68
- package/src/resources/extractions.ts +512 -125
- package/src/resources/guest-wallets.ts +6 -5
- package/src/resources/index.ts +24 -1
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/keywords.ts +82 -14
- package/src/resources/monitors/monitors.ts +66 -14
- package/src/resources/radar.ts +32 -36
- package/src/resources/shared.ts +2227 -351
- package/src/resources/styles.ts +43 -27
- package/src/resources/subscribe.ts +1 -1
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +38 -10
- package/src/resources/trends.ts +23 -5
- package/src/resources/webhooks.ts +109 -15
- package/src/resources/x/account-connection-attempts.ts +1 -1
- package/src/resources/x/account-connection-challenges.ts +39 -11
- package/src/resources/x/accounts.ts +46 -10
- package/src/resources/x/analysis.ts +3947 -0
- package/src/resources/x/bookmarks.ts +103 -9
- package/src/resources/x/broadcasts.ts +225 -0
- package/src/resources/x/communities/communities.ts +743 -141
- package/src/resources/x/communities/index.ts +9 -0
- package/src/resources/x/communities/join.ts +46 -23
- package/src/resources/x/communities/media.ts +251 -0
- package/src/resources/x/communities/tweets.ts +427 -20
- package/src/resources/x/dm.ts +334 -11
- package/src/resources/x/followers.ts +35 -3
- package/src/resources/x/index.ts +106 -1
- package/src/resources/x/jobs.ts +627 -0
- package/src/resources/x/lists.ts +1307 -28
- package/src/resources/x/media.ts +24 -12
- package/src/resources/x/profile.ts +60 -30
- package/src/resources/x/spaces.ts +1076 -0
- package/src/resources/x/tweets/index.ts +18 -0
- package/src/resources/x/tweets/like.ts +38 -18
- package/src/resources/x/tweets/retweet.ts +38 -18
- package/src/resources/x/tweets/tweets.ts +3695 -843
- package/src/resources/x/users/follow.ts +38 -18
- package/src/resources/x/users/index.ts +22 -0
- package/src/resources/x/users/users.ts +3687 -465
- package/src/resources/x/write-actions.ts +13 -5
- package/src/resources/x/x.ts +1227 -15
- package/src/streaming.ts +6 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +3 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +3 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +9 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +6 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/skills/x-twitter-scraper/references/types-rest-api-vs-mcp-field-naming.md +0 -15
package/src/resources/styles.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { path } from '../internal/utils/path';
|
|
|
15
15
|
*/
|
|
16
16
|
export class Styles extends APIResource {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Returns one cached writing style profile.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
@@ -27,17 +27,15 @@ export class Styles extends APIResource {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Creates or replaces a style profile from supplied posts.
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```ts
|
|
34
34
|
* const styleProfile = await client.styles.update('id', {
|
|
35
|
-
* label: 'Professional Voice',
|
|
36
35
|
* tweets: [
|
|
37
|
-
* {
|
|
38
|
-
* text: 'Excited to share our latest research findings.',
|
|
39
|
-
* },
|
|
36
|
+
* { text: 'Excited to share our latest research.' },
|
|
40
37
|
* ],
|
|
38
|
+
* label: 'Professional Voice',
|
|
41
39
|
* });
|
|
42
40
|
* ```
|
|
43
41
|
*/
|
|
@@ -46,19 +44,22 @@ export class Styles extends APIResource {
|
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
/**
|
|
49
|
-
*
|
|
47
|
+
* Returns cached writing style profiles for the account.
|
|
50
48
|
*
|
|
51
49
|
* @example
|
|
52
50
|
* ```ts
|
|
53
51
|
* const styles = await client.styles.list();
|
|
54
52
|
* ```
|
|
55
53
|
*/
|
|
56
|
-
list(
|
|
57
|
-
|
|
54
|
+
list(
|
|
55
|
+
query: StyleListParams | null | undefined = {},
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): APIPromise<StyleListResponse> {
|
|
58
|
+
return this._client.get('/styles', { query, ...options });
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
|
-
*
|
|
62
|
+
* Permanently removes one cached style profile.
|
|
62
63
|
*
|
|
63
64
|
* @example
|
|
64
65
|
* ```ts
|
|
@@ -73,7 +74,7 @@ export class Styles extends APIResource {
|
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
/**
|
|
76
|
-
*
|
|
77
|
+
* Builds a writing style profile from recent public posts.
|
|
77
78
|
*
|
|
78
79
|
* @example
|
|
79
80
|
* ```ts
|
|
@@ -87,7 +88,7 @@ export class Styles extends APIResource {
|
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
/**
|
|
90
|
-
*
|
|
91
|
+
* Compares language and engagement signals across two style profiles.
|
|
91
92
|
*
|
|
92
93
|
* @example
|
|
93
94
|
* ```ts
|
|
@@ -102,7 +103,7 @@ export class Styles extends APIResource {
|
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
/**
|
|
105
|
-
*
|
|
106
|
+
* Returns engagement metrics for an analyzed public X profile.
|
|
106
107
|
*
|
|
107
108
|
* @example
|
|
108
109
|
* ```ts
|
|
@@ -117,16 +118,8 @@ export class Styles extends APIResource {
|
|
|
117
118
|
/**
|
|
118
119
|
* Full style profile with sampled tweets used for tone analysis.
|
|
119
120
|
*/
|
|
120
|
-
export interface StyleProfile {
|
|
121
|
-
fetchedAt: string;
|
|
122
|
-
|
|
123
|
-
isOwnAccount: boolean;
|
|
124
|
-
|
|
125
|
-
tweetCount: number;
|
|
126
|
-
|
|
121
|
+
export interface StyleProfile extends StyleProfileSummary {
|
|
127
122
|
tweets: Array<StyleProfile.Tweet>;
|
|
128
|
-
|
|
129
|
-
xUsername: string;
|
|
130
123
|
}
|
|
131
124
|
|
|
132
125
|
export namespace StyleProfile {
|
|
@@ -155,7 +148,11 @@ export interface StyleProfileSummary {
|
|
|
155
148
|
}
|
|
156
149
|
|
|
157
150
|
export interface StyleListResponse {
|
|
151
|
+
hasMore: boolean;
|
|
152
|
+
|
|
158
153
|
styles: Array<StyleProfileSummary>;
|
|
154
|
+
|
|
155
|
+
nextCursor?: string;
|
|
159
156
|
}
|
|
160
157
|
|
|
161
158
|
export interface StyleCompareResponse {
|
|
@@ -184,10 +181,12 @@ export namespace StyleGetPerformanceResponse {
|
|
|
184
181
|
|
|
185
182
|
text: string;
|
|
186
183
|
|
|
187
|
-
|
|
184
|
+
bookmarkCount?: number;
|
|
188
185
|
|
|
189
186
|
likeCount?: number;
|
|
190
187
|
|
|
188
|
+
quoteCount?: number;
|
|
189
|
+
|
|
191
190
|
replyCount?: number;
|
|
192
191
|
|
|
193
192
|
retweetCount?: number;
|
|
@@ -198,14 +197,16 @@ export namespace StyleGetPerformanceResponse {
|
|
|
198
197
|
|
|
199
198
|
export interface StyleUpdateParams {
|
|
200
199
|
/**
|
|
201
|
-
*
|
|
200
|
+
* Array of tweet objects
|
|
202
201
|
*/
|
|
203
|
-
|
|
202
|
+
tweets: Array<StyleUpdateParams.Tweet>;
|
|
204
203
|
|
|
205
204
|
/**
|
|
206
|
-
*
|
|
205
|
+
* Optional display label of up to 50 characters. When sent, it must match the path
|
|
206
|
+
* ID, ignoring case and a leading @. When it is left out, the path ID names the
|
|
207
|
+
* style and must fit the same limit.
|
|
207
208
|
*/
|
|
208
|
-
|
|
209
|
+
label?: string;
|
|
209
210
|
}
|
|
210
211
|
|
|
211
212
|
export namespace StyleUpdateParams {
|
|
@@ -214,6 +215,20 @@ export namespace StyleUpdateParams {
|
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
217
|
|
|
218
|
+
export interface StyleListParams {
|
|
219
|
+
/**
|
|
220
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
221
|
+
* supported.
|
|
222
|
+
*/
|
|
223
|
+
cursor?: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Maximum items per page: 1 to 200, default 200. Pass nextCursor as cursor for the
|
|
227
|
+
* next page.
|
|
228
|
+
*/
|
|
229
|
+
limit?: number;
|
|
230
|
+
}
|
|
231
|
+
|
|
217
232
|
export interface StyleAnalyzeParams {
|
|
218
233
|
/**
|
|
219
234
|
* X username to analyze
|
|
@@ -241,6 +256,7 @@ export declare namespace Styles {
|
|
|
241
256
|
type StyleCompareResponse as StyleCompareResponse,
|
|
242
257
|
type StyleGetPerformanceResponse as StyleGetPerformanceResponse,
|
|
243
258
|
type StyleUpdateParams as StyleUpdateParams,
|
|
259
|
+
type StyleListParams as StyleListParams,
|
|
244
260
|
type StyleAnalyzeParams as StyleAnalyzeParams,
|
|
245
261
|
type StyleCompareParams as StyleCompareParams,
|
|
246
262
|
};
|
|
@@ -9,7 +9,7 @@ import { APIPromise } from '../core/api-promise';
|
|
|
9
9
|
import { RequestOptions } from '../internal/request-options';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Subscription, billing, and
|
|
12
|
+
* Subscription, billing, and credits
|
|
13
13
|
*/
|
|
14
14
|
export class Subscribe extends APIResource {
|
|
15
15
|
/**
|
|
@@ -11,6 +11,7 @@ import * as TicketsAPI from './tickets';
|
|
|
11
11
|
import {
|
|
12
12
|
TicketCreateParams,
|
|
13
13
|
TicketCreateResponse,
|
|
14
|
+
TicketListParams,
|
|
14
15
|
TicketListResponse,
|
|
15
16
|
TicketReplyParams,
|
|
16
17
|
TicketReplyResponse,
|
|
@@ -40,6 +41,7 @@ export declare namespace Support {
|
|
|
40
41
|
type TicketReplyResponse as TicketReplyResponse,
|
|
41
42
|
type TicketCreateParams as TicketCreateParams,
|
|
42
43
|
type TicketUpdateParams as TicketUpdateParams,
|
|
44
|
+
type TicketListParams as TicketListParams,
|
|
43
45
|
type TicketReplyParams as TicketReplyParams,
|
|
44
46
|
};
|
|
45
47
|
}
|
|
@@ -16,7 +16,7 @@ import { path } from '../../internal/utils/path';
|
|
|
16
16
|
*/
|
|
17
17
|
export class Tickets extends APIResource {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Creates a support ticket with an initial message.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
@@ -45,7 +45,7 @@ export class Tickets extends APIResource {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Returns one support ticket with its message history.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* ```ts
|
|
@@ -59,7 +59,7 @@ export class Tickets extends APIResource {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Changes the open or closed state of a support ticket.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```ts
|
|
@@ -74,19 +74,22 @@ export class Tickets extends APIResource {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Returns support tickets owned by the authenticated user, latest activity first.
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
80
|
* ```ts
|
|
81
81
|
* const tickets = await client.support.tickets.list();
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
list(
|
|
85
|
-
|
|
84
|
+
list(
|
|
85
|
+
query: TicketListParams | null | undefined = {},
|
|
86
|
+
options?: RequestOptions,
|
|
87
|
+
): APIPromise<TicketListResponse> {
|
|
88
|
+
return this._client.get('/support/tickets', { query, ...options });
|
|
86
89
|
}
|
|
87
90
|
|
|
88
91
|
/**
|
|
89
|
-
*
|
|
92
|
+
* Adds a message to an existing support ticket.
|
|
90
93
|
*
|
|
91
94
|
* @example
|
|
92
95
|
* ```ts
|
|
@@ -115,6 +118,9 @@ export class Tickets extends APIResource {
|
|
|
115
118
|
}
|
|
116
119
|
}
|
|
117
120
|
|
|
121
|
+
/**
|
|
122
|
+
* Support submission receipt.
|
|
123
|
+
*/
|
|
118
124
|
export interface TicketCreateResponse {
|
|
119
125
|
attachments: Array<TicketCreateResponse.Attachment>;
|
|
120
126
|
|
|
@@ -202,7 +208,11 @@ export interface TicketUpdateResponse {
|
|
|
202
208
|
}
|
|
203
209
|
|
|
204
210
|
export interface TicketListResponse {
|
|
211
|
+
hasMore: boolean;
|
|
212
|
+
|
|
205
213
|
tickets: Array<TicketListResponse.Ticket>;
|
|
214
|
+
|
|
215
|
+
nextCursor?: string;
|
|
206
216
|
}
|
|
207
217
|
|
|
208
218
|
export namespace TicketListResponse {
|
|
@@ -221,6 +231,9 @@ export namespace TicketListResponse {
|
|
|
221
231
|
}
|
|
222
232
|
}
|
|
223
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Support submission receipt.
|
|
236
|
+
*/
|
|
224
237
|
export interface TicketReplyResponse {
|
|
225
238
|
attachments: Array<TicketReplyResponse.Attachment>;
|
|
226
239
|
|
|
@@ -240,12 +253,12 @@ export namespace TicketReplyResponse {
|
|
|
240
253
|
|
|
241
254
|
export interface TicketCreateParams {
|
|
242
255
|
/**
|
|
243
|
-
* Body param
|
|
256
|
+
* Body param: Non-empty support message text.
|
|
244
257
|
*/
|
|
245
258
|
body: string;
|
|
246
259
|
|
|
247
260
|
/**
|
|
248
|
-
* Body param
|
|
261
|
+
* Body param: Non-empty support ticket subject.
|
|
249
262
|
*/
|
|
250
263
|
subject: string;
|
|
251
264
|
|
|
@@ -260,9 +273,23 @@ export interface TicketUpdateParams {
|
|
|
260
273
|
status: 'open' | 'resolved' | 'closed';
|
|
261
274
|
}
|
|
262
275
|
|
|
276
|
+
export interface TicketListParams {
|
|
277
|
+
/**
|
|
278
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
279
|
+
* supported.
|
|
280
|
+
*/
|
|
281
|
+
cursor?: string;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Maximum items per page: 1 to 200, default 200. Pass nextCursor as cursor for the
|
|
285
|
+
* next page.
|
|
286
|
+
*/
|
|
287
|
+
limit?: number;
|
|
288
|
+
}
|
|
289
|
+
|
|
263
290
|
export interface TicketReplyParams {
|
|
264
291
|
/**
|
|
265
|
-
* Body param
|
|
292
|
+
* Body param: Non-empty support message text.
|
|
266
293
|
*/
|
|
267
294
|
body: string;
|
|
268
295
|
|
|
@@ -282,6 +309,7 @@ export declare namespace Tickets {
|
|
|
282
309
|
type TicketReplyResponse as TicketReplyResponse,
|
|
283
310
|
type TicketCreateParams as TicketCreateParams,
|
|
284
311
|
type TicketUpdateParams as TicketUpdateParams,
|
|
312
|
+
type TicketListParams as TicketListParams,
|
|
285
313
|
type TicketReplyParams as TicketReplyParams,
|
|
286
314
|
};
|
|
287
315
|
}
|
package/src/resources/trends.ts
CHANGED
|
@@ -13,7 +13,8 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
13
13
|
*/
|
|
14
14
|
export class Trends extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Returns current regional trends through the compatibility route. Each request
|
|
17
|
+
* costs 1 credit, however many trends it returns.
|
|
17
18
|
*/
|
|
18
19
|
list(
|
|
19
20
|
query: TrendListParams | null | undefined = {},
|
|
@@ -38,7 +39,7 @@ export namespace TrendListResponse {
|
|
|
38
39
|
description?: string;
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
|
-
* Promotion
|
|
42
|
+
* Promotion ID for this trend, or null when organic.
|
|
42
43
|
*/
|
|
43
44
|
promotedContent?: string | null;
|
|
44
45
|
|
|
@@ -47,12 +48,12 @@ export namespace TrendListResponse {
|
|
|
47
48
|
rank?: number;
|
|
48
49
|
|
|
49
50
|
/**
|
|
50
|
-
*
|
|
51
|
+
* Estimated post volume for this trend.
|
|
51
52
|
*/
|
|
52
53
|
tweetVolume?: number | null;
|
|
53
54
|
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
56
|
+
* Search URL associated with this trend.
|
|
56
57
|
*/
|
|
57
58
|
url?: string;
|
|
58
59
|
}
|
|
@@ -65,7 +66,24 @@ export interface TrendListParams {
|
|
|
65
66
|
count?: number;
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
|
-
*
|
|
69
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
70
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
71
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
72
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
73
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
74
|
+
* named fields.
|
|
75
|
+
*/
|
|
76
|
+
fields?: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
80
|
+
* fields. With fields, it drops from the kept fields.
|
|
81
|
+
*/
|
|
82
|
+
omit?: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The WOEID of any place X lists trends for (1=Worldwide, 23424977=US,
|
|
86
|
+
* 23424975=UK, 23424969=Turkey). List places with GET /x/trends/locations.
|
|
69
87
|
*/
|
|
70
88
|
woeid?: number;
|
|
71
89
|
}
|
|
@@ -15,7 +15,7 @@ import { path } from '../internal/utils/path';
|
|
|
15
15
|
*/
|
|
16
16
|
export class Webhooks extends APIResource {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Registers an endpoint for signed event deliveries.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
@@ -30,11 +30,12 @@ export class Webhooks extends APIResource {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Updates an endpoint, event selection, or delivery settings.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* ```ts
|
|
37
37
|
* const webhook = await client.webhooks.update('id', {
|
|
38
|
+
* eventTypes: ['tweet.new'],
|
|
38
39
|
* isActive: true,
|
|
39
40
|
* url: 'https://example.com/webhook',
|
|
40
41
|
* });
|
|
@@ -45,19 +46,44 @@ export class Webhooks extends APIResource {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Returns configured webhook endpoints and delivery states.
|
|
49
50
|
*
|
|
50
51
|
* @example
|
|
51
52
|
* ```ts
|
|
52
53
|
* const webhooks = await client.webhooks.list();
|
|
53
54
|
* ```
|
|
54
55
|
*/
|
|
55
|
-
list(
|
|
56
|
-
|
|
56
|
+
list(
|
|
57
|
+
query: WebhookListParams | null | undefined = {},
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): APIPromise<WebhookListResponse> {
|
|
60
|
+
return this._client.get('/webhooks', { query, ...options });
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
/**
|
|
60
|
-
*
|
|
64
|
+
* Returns a t.me link to @XquikBot that connects a Telegram chat to the account's
|
|
65
|
+
* monitor events. Opening it & pressing Start connects the chat, which then gets
|
|
66
|
+
* each event as a message. The link works once, within 15 minutes. The chat
|
|
67
|
+
* appears in the webhook list with the URL telegram:<chat ID>, with deliveries,
|
|
68
|
+
* retries & resume as any webhook. In the chat, /stop pauses its alerts. It costs
|
|
69
|
+
* no credits.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const response = await client.webhooks.createTelegramLink({
|
|
74
|
+
* eventTypes: ['tweet.new', 'tweet.reply'],
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
createTelegramLink(
|
|
79
|
+
body: WebhookCreateTelegramLinkParams | null | undefined = {},
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): APIPromise<WebhookCreateTelegramLinkResponse> {
|
|
82
|
+
return this._client.post('/webhooks/telegram', { body, ...options });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Stops future deliveries to the selected webhook.
|
|
61
87
|
*
|
|
62
88
|
* @example
|
|
63
89
|
* ```ts
|
|
@@ -69,19 +95,23 @@ export class Webhooks extends APIResource {
|
|
|
69
95
|
}
|
|
70
96
|
|
|
71
97
|
/**
|
|
72
|
-
*
|
|
98
|
+
* Returns delivery attempts and response outcomes, newest first.
|
|
73
99
|
*
|
|
74
100
|
* @example
|
|
75
101
|
* ```ts
|
|
76
102
|
* const response = await client.webhooks.listDeliveries('id');
|
|
77
103
|
* ```
|
|
78
104
|
*/
|
|
79
|
-
listDeliveries(
|
|
80
|
-
|
|
105
|
+
listDeliveries(
|
|
106
|
+
id: string,
|
|
107
|
+
query: WebhookListDeliveriesParams | null | undefined = {},
|
|
108
|
+
options?: RequestOptions,
|
|
109
|
+
): APIPromise<WebhookListDeliveriesResponse> {
|
|
110
|
+
return this._client.get(path`/webhooks/${id}/deliveries`, { query, ...options });
|
|
81
111
|
}
|
|
82
112
|
|
|
83
113
|
/**
|
|
84
|
-
*
|
|
114
|
+
* Tests the endpoint before resuming a manually paused webhook.
|
|
85
115
|
*
|
|
86
116
|
* @example
|
|
87
117
|
* ```ts
|
|
@@ -93,7 +123,7 @@ export class Webhooks extends APIResource {
|
|
|
93
123
|
}
|
|
94
124
|
|
|
95
125
|
/**
|
|
96
|
-
*
|
|
126
|
+
* Sends a signed test event to the configured endpoint.
|
|
97
127
|
*
|
|
98
128
|
* @example
|
|
99
129
|
* ```ts
|
|
@@ -111,6 +141,9 @@ export class Webhooks extends APIResource {
|
|
|
111
141
|
export interface Delivery {
|
|
112
142
|
id: string;
|
|
113
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Whole number from 0.
|
|
146
|
+
*/
|
|
114
147
|
attempts: number;
|
|
115
148
|
|
|
116
149
|
createdAt: string;
|
|
@@ -140,8 +173,8 @@ export interface Webhook {
|
|
|
140
173
|
createdAt: string;
|
|
141
174
|
|
|
142
175
|
/**
|
|
143
|
-
* Endpoint delivery state.
|
|
144
|
-
* failures.
|
|
176
|
+
* Endpoint delivery state. paused means the user paused delivery. needs_attention
|
|
177
|
+
* marks repeated failures. Delivery attempts continue.
|
|
145
178
|
*/
|
|
146
179
|
deliveryStatus: 'active' | 'paused' | 'needs_attention';
|
|
147
180
|
|
|
@@ -151,7 +184,7 @@ export interface Webhook {
|
|
|
151
184
|
eventTypes: Array<Shared.EventType>;
|
|
152
185
|
|
|
153
186
|
/**
|
|
154
|
-
*
|
|
187
|
+
* Maximum reported failures before needs_attention. It does not pause delivery.
|
|
155
188
|
*/
|
|
156
189
|
failureHardCap: number;
|
|
157
190
|
|
|
@@ -179,7 +212,23 @@ export interface WebhookCreateResponse {
|
|
|
179
212
|
}
|
|
180
213
|
|
|
181
214
|
export interface WebhookListResponse {
|
|
215
|
+
hasMore: boolean;
|
|
216
|
+
|
|
182
217
|
webhooks: Array<Webhook>;
|
|
218
|
+
|
|
219
|
+
nextCursor?: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface WebhookCreateTelegramLinkResponse {
|
|
223
|
+
/**
|
|
224
|
+
* When the link stops working, 15 minutes on.
|
|
225
|
+
*/
|
|
226
|
+
expiresAt: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Opens @XquikBot with the link's code.
|
|
230
|
+
*/
|
|
231
|
+
url: string;
|
|
183
232
|
}
|
|
184
233
|
|
|
185
234
|
export interface WebhookDeactivateResponse {
|
|
@@ -188,6 +237,10 @@ export interface WebhookDeactivateResponse {
|
|
|
188
237
|
|
|
189
238
|
export interface WebhookListDeliveriesResponse {
|
|
190
239
|
deliveries: Array<Delivery>;
|
|
240
|
+
|
|
241
|
+
hasMore: boolean;
|
|
242
|
+
|
|
243
|
+
nextCursor?: string;
|
|
191
244
|
}
|
|
192
245
|
|
|
193
246
|
export interface WebhookResumeResponse {
|
|
@@ -216,7 +269,9 @@ export interface WebhookCreateParams {
|
|
|
216
269
|
eventTypes: Array<Shared.EventType>;
|
|
217
270
|
|
|
218
271
|
/**
|
|
219
|
-
* HTTPS URL
|
|
272
|
+
* HTTPS URL. A Discord channel webhook URL gets each event as a Discord message, &
|
|
273
|
+
* a Slack incoming webhook URL as a Slack message. To deliver to Telegram, use
|
|
274
|
+
* POST /webhooks/telegram instead.
|
|
220
275
|
*/
|
|
221
276
|
url: string;
|
|
222
277
|
}
|
|
@@ -232,17 +287,56 @@ export interface WebhookUpdateParams {
|
|
|
232
287
|
url?: string;
|
|
233
288
|
}
|
|
234
289
|
|
|
290
|
+
export interface WebhookListParams {
|
|
291
|
+
/**
|
|
292
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
293
|
+
* supported.
|
|
294
|
+
*/
|
|
295
|
+
cursor?: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Maximum items per page: 1 to 200, default 200. Pass nextCursor as cursor for the
|
|
299
|
+
* next page.
|
|
300
|
+
*/
|
|
301
|
+
limit?: number;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export interface WebhookCreateTelegramLinkParams {
|
|
305
|
+
/**
|
|
306
|
+
* Array of event types to subscribe to.
|
|
307
|
+
*/
|
|
308
|
+
eventTypes?: Array<Shared.EventType>;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export interface WebhookListDeliveriesParams {
|
|
312
|
+
/**
|
|
313
|
+
* Previous nextCursor. The after alias also works. Offset pagination is not
|
|
314
|
+
* supported.
|
|
315
|
+
*/
|
|
316
|
+
cursor?: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Maximum deliveries per page: 1 to 100, default 100. Pass nextCursor as cursor
|
|
320
|
+
* for the next page.
|
|
321
|
+
*/
|
|
322
|
+
limit?: number;
|
|
323
|
+
}
|
|
324
|
+
|
|
235
325
|
export declare namespace Webhooks {
|
|
236
326
|
export {
|
|
237
327
|
type Delivery as Delivery,
|
|
238
328
|
type Webhook as Webhook,
|
|
239
329
|
type WebhookCreateResponse as WebhookCreateResponse,
|
|
240
330
|
type WebhookListResponse as WebhookListResponse,
|
|
331
|
+
type WebhookCreateTelegramLinkResponse as WebhookCreateTelegramLinkResponse,
|
|
241
332
|
type WebhookDeactivateResponse as WebhookDeactivateResponse,
|
|
242
333
|
type WebhookListDeliveriesResponse as WebhookListDeliveriesResponse,
|
|
243
334
|
type WebhookResumeResponse as WebhookResumeResponse,
|
|
244
335
|
type WebhookTestResponse as WebhookTestResponse,
|
|
245
336
|
type WebhookCreateParams as WebhookCreateParams,
|
|
246
337
|
type WebhookUpdateParams as WebhookUpdateParams,
|
|
338
|
+
type WebhookListParams as WebhookListParams,
|
|
339
|
+
type WebhookCreateTelegramLinkParams as WebhookCreateTelegramLinkParams,
|
|
340
|
+
type WebhookListDeliveriesParams as WebhookListDeliveriesParams,
|
|
247
341
|
};
|
|
248
342
|
}
|