x-twitter-scraper 0.3.2 → 0.4.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 +35 -0
- package/README.md +25 -5
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +23 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -17
- package/client.d.ts.map +1 -1
- package/client.js +42 -17
- package/client.js.map +1 -1
- package/client.mjs +42 -17
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +29 -16
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/account.d.mts +59 -3
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +59 -3
- package/resources/account.d.ts.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +88 -11
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +88 -11
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +37 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +37 -4
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +4 -1
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +4 -1
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +33 -8
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +33 -8
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +12 -4
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +12 -4
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +46 -7
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +46 -7
- package/resources/events.d.ts.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +287 -17
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +287 -17
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +3 -2
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +3 -2
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +245 -0
- package/resources/guest-wallets.d.mts.map +1 -0
- package/resources/guest-wallets.d.ts +245 -0
- package/resources/guest-wallets.d.ts.map +1 -0
- package/resources/guest-wallets.js +79 -0
- package/resources/guest-wallets.js.map +1 -0
- package/resources/guest-wallets.mjs +75 -0
- package/resources/guest-wallets.mjs.map +1 -0
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +3 -0
- package/resources/monitors/index.d.mts.map +1 -0
- package/resources/monitors/index.d.ts +3 -0
- package/resources/monitors/index.d.ts.map +1 -0
- package/resources/monitors/index.js +9 -0
- package/resources/monitors/index.js.map +1 -0
- package/resources/monitors/index.mjs +4 -0
- package/resources/monitors/index.mjs.map +1 -0
- package/resources/monitors/keywords.d.mts +164 -0
- package/resources/monitors/keywords.d.mts.map +1 -0
- package/resources/monitors/keywords.d.ts +164 -0
- package/resources/monitors/keywords.d.ts.map +1 -0
- package/resources/monitors/keywords.js +80 -0
- package/resources/monitors/keywords.js.map +1 -0
- package/resources/monitors/keywords.mjs +76 -0
- package/resources/monitors/keywords.mjs.map +1 -0
- package/resources/monitors/monitors.d.mts +127 -0
- package/resources/monitors/monitors.d.mts.map +1 -0
- package/resources/monitors/monitors.d.ts +127 -0
- package/resources/monitors/monitors.d.ts.map +1 -0
- package/resources/monitors/monitors.js +84 -0
- package/resources/monitors/monitors.js.map +1 -0
- package/resources/monitors/monitors.mjs +79 -0
- package/resources/monitors/monitors.mjs.map +1 -0
- package/resources/monitors.d.mts +1 -111
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts +1 -111
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +2 -70
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +1 -68
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +3 -3
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +3 -3
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.mjs.map +1 -1
- package/resources/shared.d.mts +251 -19
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +251 -19
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +20 -6
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts +20 -6
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js +12 -4
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs +12 -4
- package/resources/subscribe.mjs.map +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +9 -7
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +9 -7
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +9 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +9 -7
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/trends.d.mts +2 -2
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +2 -2
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +34 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +34 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +11 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-challenges.d.mts +41 -0
- package/resources/x/account-connection-challenges.d.mts.map +1 -0
- package/resources/x/account-connection-challenges.d.ts +41 -0
- package/resources/x/account-connection-challenges.d.ts.map +1 -0
- package/resources/x/account-connection-challenges.js +27 -0
- package/resources/x/account-connection-challenges.js.map +1 -0
- package/resources/x/account-connection-challenges.mjs +23 -0
- package/resources/x/account-connection-challenges.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -41
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -41
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +3 -3
- package/resources/x/accounts.mjs +3 -3
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/bookmarks.d.mts +6 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +6 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +50 -14
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +50 -14
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +5 -2
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +6 -3
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -2
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -2
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +16 -12
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +16 -12
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +7 -8
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +7 -8
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/tweets.d.mts +29 -6
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +29 -6
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +5 -2
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +5 -2
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/communities.d.mts.map +1 -1
- package/resources/x/communities.d.ts.map +1 -1
- package/resources/x/communities.mjs.map +1 -1
- package/resources/x/dm.d.mts +17 -5
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +17 -5
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +2 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +2 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +2 -2
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +2 -2
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +4 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +4 -2
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +5 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +2 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/lists.d.mts +19 -0
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +19 -0
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +17 -8
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +17 -8
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -3
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +3 -4
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +8 -9
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +8 -9
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +4 -4
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +5 -5
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +442 -29
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +442 -29
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/tweets.d.mts.map +1 -1
- package/resources/x/tweets.d.ts.map +1 -1
- package/resources/x/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.mjs.map +1 -1
- 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 +666 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +666 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +26 -4
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +26 -4
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/users.d.mts.map +1 -1
- package/resources/x/users.d.ts.map +1 -1
- package/resources/x/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +51 -0
- package/resources/x/write-actions.d.mts.map +1 -0
- package/resources/x/write-actions.d.ts +51 -0
- package/resources/x/write-actions.d.ts.map +1 -0
- package/resources/x/write-actions.js +26 -0
- package/resources/x/write-actions.js.map +1 -0
- package/resources/x/write-actions.mjs +22 -0
- package/resources/x/write-actions.mjs.map +1 -0
- package/resources/x/x.d.mts +65 -12
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +65 -12
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +10 -1
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +10 -1
- package/resources/x/x.mjs.map +1 -1
- package/resources/x.d.mts.map +1 -1
- package/resources/x.d.ts.map +1 -1
- package/resources/x.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +86 -40
- package/src/internal/request-options.ts +2 -0
- package/src/internal/utils/log.ts +2 -1
- package/src/resources/account.ts +72 -5
- package/src/resources/credits.ts +117 -10
- package/src/resources/drafts.ts +4 -1
- package/src/resources/draws.ts +33 -12
- package/src/resources/events.ts +52 -7
- package/src/resources/extractions.ts +364 -12
- package/src/resources/guest-wallets.ts +337 -0
- package/src/resources/index.ts +15 -10
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +221 -0
- package/src/resources/monitors/monitors.ts +195 -0
- package/src/resources/monitors.ts +1 -153
- package/src/resources/radar.ts +3 -3
- package/src/resources/shared.ts +463 -21
- package/src/resources/subscribe.ts +29 -8
- package/src/resources/support/tickets.ts +9 -7
- package/src/resources/trends.ts +2 -2
- package/src/resources/webhooks.ts +43 -0
- package/src/resources/x/account-connection-challenges.ts +61 -0
- package/src/resources/x/accounts.ts +15 -46
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +68 -16
- package/src/resources/x/communities/index.ts +7 -2
- package/src/resources/x/communities/join.ts +23 -16
- package/src/resources/x/communities/tweets.ts +32 -6
- package/src/resources/x/dm.ts +20 -7
- package/src/resources/x/followers.ts +2 -2
- package/src/resources/x/index.ts +10 -1
- package/src/resources/x/lists.ts +22 -0
- package/src/resources/x/media.ts +25 -11
- package/src/resources/x/profile.ts +11 -12
- package/src/resources/x/tweets/tweets.ts +540 -32
- package/src/resources/x/users/index.ts +4 -0
- package/src/resources/x/users/users.ts +834 -8
- package/src/resources/x/write-actions.ts +79 -0
- package/src/resources/x/x.ts +107 -10
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/api-keys.d.mts +0 -68
- package/resources/api-keys.d.mts.map +0 -1
- package/resources/api-keys.d.ts +0 -68
- package/resources/api-keys.d.ts.map +0 -1
- package/resources/api-keys.js +0 -48
- package/resources/api-keys.js.map +0 -1
- package/resources/api-keys.mjs +0 -44
- package/resources/api-keys.mjs.map +0 -1
- package/resources/bot/bot.d.mts +0 -10
- package/resources/bot/bot.d.mts.map +0 -1
- package/resources/bot/bot.d.ts +0 -10
- package/resources/bot/bot.d.ts.map +0 -1
- package/resources/bot/bot.js +0 -17
- package/resources/bot/bot.js.map +0 -1
- package/resources/bot/bot.mjs +0 -12
- package/resources/bot/bot.mjs.map +0 -1
- package/resources/bot/index.d.mts +0 -3
- package/resources/bot/index.d.mts.map +0 -1
- package/resources/bot/index.d.ts +0 -3
- package/resources/bot/index.d.ts.map +0 -1
- package/resources/bot/index.js +0 -9
- package/resources/bot/index.js.map +0 -1
- package/resources/bot/index.mjs +0 -4
- package/resources/bot/index.mjs.map +0 -1
- package/resources/bot/platform-links.d.mts +0 -4
- package/resources/bot/platform-links.d.mts.map +0 -1
- package/resources/bot/platform-links.d.ts +0 -4
- package/resources/bot/platform-links.d.ts.map +0 -1
- package/resources/bot/platform-links.js +0 -9
- package/resources/bot/platform-links.js.map +0 -1
- package/resources/bot/platform-links.mjs +0 -5
- package/resources/bot/platform-links.mjs.map +0 -1
- package/resources/bot.d.mts +0 -2
- package/resources/bot.d.mts.map +0 -1
- package/resources/bot.d.ts +0 -2
- package/resources/bot.d.ts.map +0 -1
- package/resources/bot.js +0 -6
- package/resources/bot.js.map +0 -1
- package/resources/bot.mjs +0 -3
- package/resources/bot.mjs.map +0 -1
- package/src/resources/api-keys.ts +0 -100
- package/src/resources/bot/bot.ts +0 -15
- package/src/resources/bot/index.ts +0 -4
- package/src/resources/bot/platform-links.ts +0 -5
- package/src/resources/bot.ts +0 -3
package/resources/index.d.mts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
|
-
export { APIKeys, type APIKey, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyRevokeResponse, type APIKeyCreateParams, } from "./api-keys.mjs";
|
|
3
2
|
export { Account, type AccountRetrieveResponse, type AccountSetXUsernameResponse, type AccountUpdateLocaleResponse, type AccountSetXUsernameParams, type AccountUpdateLocaleParams, } from "./account.mjs";
|
|
4
3
|
export { Compose, type ComposeCreateResponse, type ComposeCreateParams } from "./compose.mjs";
|
|
5
|
-
export { Credits, type CreditRetrieveBalanceResponse, type CreditTopupBalanceResponse, type CreditTopupBalanceParams, } from "./credits.mjs";
|
|
4
|
+
export { Credits, type CreditRetrieveBalanceResponse, type CreditRetrieveTopupStatusResponse, type CreditTopupBalanceResponse, type CreditRedirectTopupCheckoutParams, type CreditRetrieveTopupStatusParams, type CreditTopupBalanceParams, } from "./credits.mjs";
|
|
6
5
|
export { Drafts, type Draft, type DraftDetail, type DraftListResponse, type DraftCreateParams, type DraftListParams, } from "./drafts.mjs";
|
|
7
6
|
export { Draws, type DrawDetail, type DrawListItem, type Winner, type DrawRetrieveResponse, type DrawListResponse, type DrawRunResponse, type DrawListParams, type DrawExportParams, type DrawRunParams, } from "./draws.mjs";
|
|
8
7
|
export { Events, type Event, type EventDetail, type EventListResponse, type EventListParams } from "./events.mjs";
|
|
9
8
|
export { Extractions, type ExtractionJob, type ExtractionRetrieveResponse, type ExtractionListResponse, type ExtractionEstimateCostResponse, type ExtractionRunResponse, type ExtractionRetrieveParams, type ExtractionListParams, type ExtractionEstimateCostParams, type ExtractionExportResultsParams, type ExtractionRunParams, } from "./extractions.mjs";
|
|
10
|
-
export {
|
|
9
|
+
export { GuestWallets, type GuestWalletAmount, type GuestWalletCreateResponse, type GuestWalletRetrieveStatusResponse, type GuestWalletTopupResponse, type GuestWalletCreateParams, type GuestWalletTopupParams, } from "./guest-wallets.mjs";
|
|
10
|
+
export { Monitors, type Monitor, type MonitorCreateResponse, type MonitorListResponse, type MonitorDeactivateResponse, type MonitorCreateParams, type MonitorUpdateParams, } from "./monitors/monitors.mjs";
|
|
11
11
|
export { Radar, type RadarItem, type RadarRetrieveTrendingTopicsResponse, type RadarRetrieveTrendingTopicsParams, } from "./radar.mjs";
|
|
12
12
|
export { Styles, type StyleProfile, type StyleProfileSummary, type StyleListResponse, type StyleCompareResponse, type StyleGetPerformanceResponse, type StyleUpdateParams, type StyleAnalyzeParams, type StyleCompareParams, } from "./styles.mjs";
|
|
13
|
-
export { Subscribe, type SubscribeCreateResponse } from "./subscribe.mjs";
|
|
13
|
+
export { Subscribe, type SubscribeCreateResponse, type SubscribeCreateParams } from "./subscribe.mjs";
|
|
14
14
|
export { Support } from "./support/support.mjs";
|
|
15
15
|
export { Trends, type TrendListResponse, type TrendListParams } from "./trends.mjs";
|
|
16
|
-
export { Webhooks, type Delivery, type Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeactivateResponse, type WebhookListDeliveriesResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookUpdateParams, } from "./webhooks.mjs";
|
|
16
|
+
export { Webhooks, type Delivery, type Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeactivateResponse, type WebhookListDeliveriesResponse, type WebhookResumeResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookUpdateParams, } from "./webhooks.mjs";
|
|
17
17
|
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, type XGetTrendsParams, } from "./x/x.mjs";
|
|
18
18
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,sBAAkB;AACnB,OAAO,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,s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AAK,mCAAmC,EACxC,KAAK,iCAAiC,GACvC,oBAAgB;AACjB,OAAO,EACL,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,qBAAiB;AAClB,OAAO,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,wBAAoB;AAClG,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,qBAAiB;AAChF,OAAO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,uBAAmB;AACpB,OAAO,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB,kBAAc"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
-
export { APIKeys, type APIKey, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyRevokeResponse, type APIKeyCreateParams, } from "./api-keys.js";
|
|
3
2
|
export { Account, type AccountRetrieveResponse, type AccountSetXUsernameResponse, type AccountUpdateLocaleResponse, type AccountSetXUsernameParams, type AccountUpdateLocaleParams, } from "./account.js";
|
|
4
3
|
export { Compose, type ComposeCreateResponse, type ComposeCreateParams } from "./compose.js";
|
|
5
|
-
export { Credits, type CreditRetrieveBalanceResponse, type CreditTopupBalanceResponse, type CreditTopupBalanceParams, } from "./credits.js";
|
|
4
|
+
export { Credits, type CreditRetrieveBalanceResponse, type CreditRetrieveTopupStatusResponse, type CreditTopupBalanceResponse, type CreditRedirectTopupCheckoutParams, type CreditRetrieveTopupStatusParams, type CreditTopupBalanceParams, } from "./credits.js";
|
|
6
5
|
export { Drafts, type Draft, type DraftDetail, type DraftListResponse, type DraftCreateParams, type DraftListParams, } from "./drafts.js";
|
|
7
6
|
export { Draws, type DrawDetail, type DrawListItem, type Winner, type DrawRetrieveResponse, type DrawListResponse, type DrawRunResponse, type DrawListParams, type DrawExportParams, type DrawRunParams, } from "./draws.js";
|
|
8
7
|
export { Events, type Event, type EventDetail, type EventListResponse, type EventListParams } from "./events.js";
|
|
9
8
|
export { Extractions, type ExtractionJob, type ExtractionRetrieveResponse, type ExtractionListResponse, type ExtractionEstimateCostResponse, type ExtractionRunResponse, type ExtractionRetrieveParams, type ExtractionListParams, type ExtractionEstimateCostParams, type ExtractionExportResultsParams, type ExtractionRunParams, } from "./extractions.js";
|
|
10
|
-
export {
|
|
9
|
+
export { GuestWallets, type GuestWalletAmount, type GuestWalletCreateResponse, type GuestWalletRetrieveStatusResponse, type GuestWalletTopupResponse, type GuestWalletCreateParams, type GuestWalletTopupParams, } from "./guest-wallets.js";
|
|
10
|
+
export { Monitors, type Monitor, type MonitorCreateResponse, type MonitorListResponse, type MonitorDeactivateResponse, type MonitorCreateParams, type MonitorUpdateParams, } from "./monitors/monitors.js";
|
|
11
11
|
export { Radar, type RadarItem, type RadarRetrieveTrendingTopicsResponse, type RadarRetrieveTrendingTopicsParams, } from "./radar.js";
|
|
12
12
|
export { Styles, type StyleProfile, type StyleProfileSummary, type StyleListResponse, type StyleCompareResponse, type StyleGetPerformanceResponse, type StyleUpdateParams, type StyleAnalyzeParams, type StyleCompareParams, } from "./styles.js";
|
|
13
|
-
export { Subscribe, type SubscribeCreateResponse } from "./subscribe.js";
|
|
13
|
+
export { Subscribe, type SubscribeCreateResponse, type SubscribeCreateParams } from "./subscribe.js";
|
|
14
14
|
export { Support } from "./support/support.js";
|
|
15
15
|
export { Trends, type TrendListResponse, type TrendListParams } from "./trends.js";
|
|
16
|
-
export { Webhooks, type Delivery, type Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeactivateResponse, type WebhookListDeliveriesResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookUpdateParams, } from "./webhooks.js";
|
|
16
|
+
export { Webhooks, type Delivery, type Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeactivateResponse, type WebhookListDeliveriesResponse, type WebhookResumeResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookUpdateParams, } from "./webhooks.js";
|
|
17
17
|
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, type XGetTrendsParams, } from "./x/x.js";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,qBAAkB;AACnB,OAAO,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,qBAAkB;AAC1F,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,GAC9B,qBAAkB;AACnB,OAAO,EACL,MAAM,EACN,KAAK,KA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AkB,EACvB,KAAK,kBAAkB,GACxB,oBAAiB;AAClB,OAAO,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,uBAAoB;AAClG,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,oBAAiB;AAChF,OAAO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,sBAAmB;AACpB,OAAO,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB,iBAAc"}
|
package/resources/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.X = exports.Webhooks = exports.Trends = exports.Support = exports.Subscribe = exports.Styles = exports.Radar = exports.Monitors = exports.Extractions = exports.Events = exports.Draws = exports.Drafts = exports.Credits = exports.Compose = exports.Account =
|
|
4
|
+
exports.X = exports.Webhooks = exports.Trends = exports.Support = exports.Subscribe = exports.Styles = exports.Radar = exports.Monitors = exports.GuestWallets = exports.Extractions = exports.Events = exports.Draws = exports.Drafts = exports.Credits = exports.Compose = exports.Account = void 0;
|
|
5
5
|
const tslib_1 = require("../internal/tslib.js");
|
|
6
6
|
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
|
-
var api_keys_1 = require("./api-keys.js");
|
|
8
|
-
Object.defineProperty(exports, "APIKeys", { enumerable: true, get: function () { return api_keys_1.APIKeys; } });
|
|
9
7
|
var account_1 = require("./account.js");
|
|
10
8
|
Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return account_1.Account; } });
|
|
11
9
|
var compose_1 = require("./compose.js");
|
|
@@ -20,7 +18,9 @@ var events_1 = require("./events.js");
|
|
|
20
18
|
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
|
|
21
19
|
var extractions_1 = require("./extractions.js");
|
|
22
20
|
Object.defineProperty(exports, "Extractions", { enumerable: true, get: function () { return extractions_1.Extractions; } });
|
|
23
|
-
var
|
|
21
|
+
var guest_wallets_1 = require("./guest-wallets.js");
|
|
22
|
+
Object.defineProperty(exports, "GuestWallets", { enumerable: true, get: function () { return guest_wallets_1.GuestWallets; } });
|
|
23
|
+
var monitors_1 = require("./monitors/monitors.js");
|
|
24
24
|
Object.defineProperty(exports, "Monitors", { enumerable: true, get: function () { return monitors_1.Monitors; } });
|
|
25
25
|
var radar_1 = require("./radar.js");
|
|
26
26
|
Object.defineProperty(exports, "Radar", { enumerable: true, get: function () { return radar_1.Radar; } });
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,wCAA0F;AAAjF,kGAAA,OAAO,OAAA;AAChB,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,sCAA8G;AAArG,gGAAA,MAAM,OAAA;AACf,gDAYuB;AAXrB,0GAAA,WAAW,OAAA;AAYb,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,mDAQ6B;AAP3B,oGAAA,QAAQ,OAAA;AAQV,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,4CAAkG;AAAzF,sGAAA,SAAS,OAAA;AAClB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,sCAAgF;AAAvE,gGAAA,MAAM,OAAA;AACf,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA;AAYV,8BAQe;AAPb,sFAAA,CAAC,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export * from "./shared.mjs";
|
|
3
|
-
export { APIKeys, } from "./api-keys.mjs";
|
|
4
3
|
export { Account, } from "./account.mjs";
|
|
5
4
|
export { Compose } from "./compose.mjs";
|
|
6
5
|
export { Credits, } from "./credits.mjs";
|
|
@@ -8,7 +7,8 @@ export { Drafts, } from "./drafts.mjs";
|
|
|
8
7
|
export { Draws, } from "./draws.mjs";
|
|
9
8
|
export { Events } from "./events.mjs";
|
|
10
9
|
export { Extractions, } from "./extractions.mjs";
|
|
11
|
-
export {
|
|
10
|
+
export { GuestWallets, } from "./guest-wallets.mjs";
|
|
11
|
+
export { Monitors, } from "./monitors/monitors.mjs";
|
|
12
12
|
export { Radar, } from "./radar.mjs";
|
|
13
13
|
export { Styles, } from "./styles.mjs";
|
|
14
14
|
export { Subscribe } from "./subscribe.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,OAAO,GAMR,sBAAkB;AACnB,OAAO,EAAE,OAAO,EAAwD,sBAAkB;AAC1F,OAAO,EACL,OAAO,GAOR,sBAAkB;AACnB,OAAO,EACL,MAAM,GAMP,qBAAiB;AAClB,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EAAE,MAAM,EAA8E,qBAAiB;AAC9G,OAAO,EACL,WAAW,GAWZ,0BAAsB;AACvB,OAAO,EACL,YAAY,GAOb,4BAAwB;AACzB,OAAO,EACL,QAAQ,GAOT,gCAA4B;AAC7B,OAAO,EACL,KAAK,GAIN,oBAAgB;AACjB,OAAO,EACL,MAAM,GASP,qBAAiB;AAClB,OAAO,EAAE,SAAS,EAA4D,wBAAoB;AAClG,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EAAE,MAAM,EAAgD,qBAAiB;AAChF,OAAO,EACL,QAAQ,GAWT,uBAAmB;AACpB,OAAO,EACL,CAAC,GAOF,kBAAc"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Keywords, type KeywordCreateResponse, type KeywordRetrieveResponse, type KeywordUpdateResponse, type KeywordListResponse, type KeywordDeactivateResponse, type KeywordCreateParams, type KeywordUpdateParams, } from "./keywords.mjs";
|
|
2
|
+
export { Monitors, type Monitor, type MonitorCreateResponse, type MonitorListResponse, type MonitorDeactivateResponse, type MonitorCreateParams, type MonitorUpdateParams, } from "./monitors.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/monitors/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,uBAAmB;AACpB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,uBAAmB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Keywords, type KeywordCreateResponse, type KeywordRetrieveResponse, type KeywordUpdateResponse, type KeywordListResponse, type KeywordDeactivateResponse, type KeywordCreateParams, type KeywordUpdateParams, } from "./keywords.js";
|
|
2
|
+
export { Monitors, type Monitor, type MonitorCreateResponse, type MonitorListResponse, type MonitorDeactivateResponse, type MonitorCreateParams, type MonitorUpdateParams, } from "./monitors.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,sBAAmB;AACpB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,sBAAmB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Monitors = exports.Keywords = void 0;
|
|
5
|
+
var keywords_1 = require("./keywords.js");
|
|
6
|
+
Object.defineProperty(exports, "Keywords", { enumerable: true, get: function () { return keywords_1.Keywords; } });
|
|
7
|
+
var monitors_1 = require("./monitors.js");
|
|
8
|
+
Object.defineProperty(exports, "Monitors", { enumerable: true, get: function () { return monitors_1.Monitors; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/monitors/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/monitors/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAQT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAOT,uBAAmB"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../shared.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Real-time X account monitoring
|
|
7
|
+
*/
|
|
8
|
+
export declare class Keywords extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an instant keyword monitor. Keyword monitors are unlimited. Active
|
|
11
|
+
* monitors check every 1 second. Events and webhook deliveries are included.
|
|
12
|
+
* Creation requires an available usage balance.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const keyword = await client.monitors.keywords.create({
|
|
17
|
+
* eventTypes: ['tweet.new'],
|
|
18
|
+
* query: 'xquik OR "x api"',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: KeywordCreateParams, options?: RequestOptions): APIPromise<KeywordCreateResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get keyword monitor
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const keyword = await client.monitors.keywords.retrieve(
|
|
29
|
+
* 'id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<KeywordRetrieveResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Update keyword monitor
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const keyword = await client.monitors.keywords.update(
|
|
40
|
+
* 'id',
|
|
41
|
+
* { eventTypes: ['tweet.new'], isActive: true },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
update(id: string, body: KeywordUpdateParams, options?: RequestOptions): APIPromise<KeywordUpdateResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* List keyword monitors
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const keywords = await client.monitors.keywords.list();
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
list(options?: RequestOptions): APIPromise<KeywordListResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete keyword monitor
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.monitors.keywords.deactivate(
|
|
61
|
+
* 'id',
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
deactivate(id: string, options?: RequestOptions): APIPromise<KeywordDeactivateResponse>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Keyword monitor that tracks matching public X activity.
|
|
69
|
+
*/
|
|
70
|
+
export interface KeywordCreateResponse {
|
|
71
|
+
id: string;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
/**
|
|
74
|
+
* Array of event types to subscribe to.
|
|
75
|
+
*/
|
|
76
|
+
eventTypes: Array<Shared.EventType>;
|
|
77
|
+
isActive: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Next hourly usage charge time for this keyword query monitor.
|
|
80
|
+
*/
|
|
81
|
+
nextBillingAt: string;
|
|
82
|
+
query: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Keyword monitor that tracks matching public X activity.
|
|
86
|
+
*/
|
|
87
|
+
export interface KeywordRetrieveResponse {
|
|
88
|
+
id: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
/**
|
|
91
|
+
* Array of event types to subscribe to.
|
|
92
|
+
*/
|
|
93
|
+
eventTypes: Array<Shared.EventType>;
|
|
94
|
+
isActive: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Next hourly usage charge time for this keyword query monitor.
|
|
97
|
+
*/
|
|
98
|
+
nextBillingAt: string;
|
|
99
|
+
query: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Keyword monitor that tracks matching public X activity.
|
|
103
|
+
*/
|
|
104
|
+
export interface KeywordUpdateResponse {
|
|
105
|
+
id: string;
|
|
106
|
+
createdAt: string;
|
|
107
|
+
/**
|
|
108
|
+
* Array of event types to subscribe to.
|
|
109
|
+
*/
|
|
110
|
+
eventTypes: Array<Shared.EventType>;
|
|
111
|
+
isActive: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Next hourly usage charge time for this keyword query monitor.
|
|
114
|
+
*/
|
|
115
|
+
nextBillingAt: string;
|
|
116
|
+
query: string;
|
|
117
|
+
}
|
|
118
|
+
export interface KeywordListResponse {
|
|
119
|
+
monitors: Array<KeywordListResponse.Monitor>;
|
|
120
|
+
total: number;
|
|
121
|
+
}
|
|
122
|
+
export declare namespace KeywordListResponse {
|
|
123
|
+
/**
|
|
124
|
+
* Keyword monitor that tracks matching public X activity.
|
|
125
|
+
*/
|
|
126
|
+
interface Monitor {
|
|
127
|
+
id: string;
|
|
128
|
+
createdAt: string;
|
|
129
|
+
/**
|
|
130
|
+
* Array of event types to subscribe to.
|
|
131
|
+
*/
|
|
132
|
+
eventTypes: Array<Shared.EventType>;
|
|
133
|
+
isActive: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Next hourly usage charge time for this keyword query monitor.
|
|
136
|
+
*/
|
|
137
|
+
nextBillingAt: string;
|
|
138
|
+
query: string;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export interface KeywordDeactivateResponse {
|
|
142
|
+
success: true;
|
|
143
|
+
}
|
|
144
|
+
export interface KeywordCreateParams {
|
|
145
|
+
/**
|
|
146
|
+
* Array of event types to subscribe to.
|
|
147
|
+
*/
|
|
148
|
+
eventTypes: Array<Shared.EventType>;
|
|
149
|
+
/**
|
|
150
|
+
* X search query to monitor. Whitespace is normalized.
|
|
151
|
+
*/
|
|
152
|
+
query: string;
|
|
153
|
+
}
|
|
154
|
+
export interface KeywordUpdateParams {
|
|
155
|
+
/**
|
|
156
|
+
* Array of event types to subscribe to.
|
|
157
|
+
*/
|
|
158
|
+
eventTypes?: Array<Shared.EventType>;
|
|
159
|
+
isActive?: boolean;
|
|
160
|
+
}
|
|
161
|
+
export declare namespace Keywords {
|
|
162
|
+
export { 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, };
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=keywords.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keywords.d.mts","sourceRoot":"","sources":["../../src/resources/monitors/keywords.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,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BAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as Shared from "../shared.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Real-time X account monitoring
|
|
7
|
+
*/
|
|
8
|
+
export declare class Keywords extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an instant keyword monitor. Keyword monitors are unlimited. Active
|
|
11
|
+
* monitors check every 1 second. Events and webhook deliveries are included.
|
|
12
|
+
* Creation requires an available usage balance.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const keyword = await client.monitors.keywords.create({
|
|
17
|
+
* eventTypes: ['tweet.new'],
|
|
18
|
+
* query: 'xquik OR "x api"',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: KeywordCreateParams, options?: RequestOptions): APIPromise<KeywordCreateResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get keyword monitor
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const keyword = await client.monitors.keywords.retrieve(
|
|
29
|
+
* 'id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<KeywordRetrieveResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Update keyword monitor
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const keyword = await client.monitors.keywords.update(
|
|
40
|
+
* 'id',
|
|
41
|
+
* { eventTypes: ['tweet.new'], isActive: true },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
update(id: string, body: KeywordUpdateParams, options?: RequestOptions): APIPromise<KeywordUpdateResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* List keyword monitors
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const keywords = await client.monitors.keywords.list();
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
list(options?: RequestOptions): APIPromise<KeywordListResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete keyword monitor
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.monitors.keywords.deactivate(
|
|
61
|
+
* 'id',
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
deactivate(id: string, options?: RequestOptions): APIPromise<KeywordDeactivateResponse>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Keyword monitor that tracks matching public X activity.
|
|
69
|
+
*/
|
|
70
|
+
export interface KeywordCreateResponse {
|
|
71
|
+
id: string;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
/**
|
|
74
|
+
* Array of event types to subscribe to.
|
|
75
|
+
*/
|
|
76
|
+
eventTypes: Array<Shared.EventType>;
|
|
77
|
+
isActive: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Next hourly usage charge time for this keyword query monitor.
|
|
80
|
+
*/
|
|
81
|
+
nextBillingAt: string;
|
|
82
|
+
query: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Keyword monitor that tracks matching public X activity.
|
|
86
|
+
*/
|
|
87
|
+
export interface KeywordRetrieveResponse {
|
|
88
|
+
id: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
/**
|
|
91
|
+
* Array of event types to subscribe to.
|
|
92
|
+
*/
|
|
93
|
+
eventTypes: Array<Shared.EventType>;
|
|
94
|
+
isActive: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Next hourly usage charge time for this keyword query monitor.
|
|
97
|
+
*/
|
|
98
|
+
nextBillingAt: string;
|
|
99
|
+
query: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Keyword monitor that tracks matching public X activity.
|
|
103
|
+
*/
|
|
104
|
+
export interface KeywordUpdateResponse {
|
|
105
|
+
id: string;
|
|
106
|
+
createdAt: string;
|
|
107
|
+
/**
|
|
108
|
+
* Array of event types to subscribe to.
|
|
109
|
+
*/
|
|
110
|
+
eventTypes: Array<Shared.EventType>;
|
|
111
|
+
isActive: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Next hourly usage charge time for this keyword query monitor.
|
|
114
|
+
*/
|
|
115
|
+
nextBillingAt: string;
|
|
116
|
+
query: string;
|
|
117
|
+
}
|
|
118
|
+
export interface KeywordListResponse {
|
|
119
|
+
monitors: Array<KeywordListResponse.Monitor>;
|
|
120
|
+
total: number;
|
|
121
|
+
}
|
|
122
|
+
export declare namespace KeywordListResponse {
|
|
123
|
+
/**
|
|
124
|
+
* Keyword monitor that tracks matching public X activity.
|
|
125
|
+
*/
|
|
126
|
+
interface Monitor {
|
|
127
|
+
id: string;
|
|
128
|
+
createdAt: string;
|
|
129
|
+
/**
|
|
130
|
+
* Array of event types to subscribe to.
|
|
131
|
+
*/
|
|
132
|
+
eventTypes: Array<Shared.EventType>;
|
|
133
|
+
isActive: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Next hourly usage charge time for this keyword query monitor.
|
|
136
|
+
*/
|
|
137
|
+
nextBillingAt: string;
|
|
138
|
+
query: string;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export interface KeywordDeactivateResponse {
|
|
142
|
+
success: true;
|
|
143
|
+
}
|
|
144
|
+
export interface KeywordCreateParams {
|
|
145
|
+
/**
|
|
146
|
+
* Array of event types to subscribe to.
|
|
147
|
+
*/
|
|
148
|
+
eventTypes: Array<Shared.EventType>;
|
|
149
|
+
/**
|
|
150
|
+
* X search query to monitor. Whitespace is normalized.
|
|
151
|
+
*/
|
|
152
|
+
query: string;
|
|
153
|
+
}
|
|
154
|
+
export interface KeywordUpdateParams {
|
|
155
|
+
/**
|
|
156
|
+
* Array of event types to subscribe to.
|
|
157
|
+
*/
|
|
158
|
+
eventTypes?: Array<Shared.EventType>;
|
|
159
|
+
isActive?: boolean;
|
|
160
|
+
}
|
|
161
|
+
export declare namespace Keywords {
|
|
162
|
+
export { 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, };
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=keywords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/keywords.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInF;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI1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B,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAEpC,QAAQ,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAErC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,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,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Keywords = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Real-time X account monitoring
|
|
9
|
+
*/
|
|
10
|
+
class Keywords extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instant keyword monitor. Keyword monitors are unlimited. Active
|
|
13
|
+
* monitors check every 1 second. Events and webhook deliveries are included.
|
|
14
|
+
* Creation requires an available usage balance.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const keyword = await client.monitors.keywords.create({
|
|
19
|
+
* eventTypes: ['tweet.new'],
|
|
20
|
+
* query: 'xquik OR "x api"',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body, options) {
|
|
25
|
+
return this._client.post('/monitors/keywords', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get keyword monitor
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const keyword = await client.monitors.keywords.retrieve(
|
|
33
|
+
* 'id',
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieve(id, options) {
|
|
38
|
+
return this._client.get((0, path_1.path) `/monitors/keywords/${id}`, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Update keyword monitor
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const keyword = await client.monitors.keywords.update(
|
|
46
|
+
* 'id',
|
|
47
|
+
* { eventTypes: ['tweet.new'], isActive: true },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
update(id, body, options) {
|
|
52
|
+
return this._client.patch((0, path_1.path) `/monitors/keywords/${id}`, { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* List keyword monitors
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const keywords = await client.monitors.keywords.list();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
list(options) {
|
|
63
|
+
return this._client.get('/monitors/keywords', options);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Delete keyword monitor
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const response = await client.monitors.keywords.deactivate(
|
|
71
|
+
* 'id',
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
deactivate(id, options) {
|
|
76
|
+
return this._client.delete((0, path_1.path) `/monitors/keywords/${id}`, options);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.Keywords = Keywords;
|
|
80
|
+
//# sourceMappingURL=keywords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keywords.js","sourceRoot":"","sources":["../../src/resources/monitors/keywords.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,sBAAsB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,sBAAsB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AAxED,4BAwEC"}
|