x-twitter-scraper 0.3.3 → 0.4.1
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 +27 -0
- package/README.md +34 -6
- 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 +15 -18
- 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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* X write actions (tweets, likes, follows, DMs)
|
|
10
|
+
*/
|
|
11
|
+
export class WriteActions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get write action status
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const writeAction = await client.x.writeActions.retrieve(
|
|
18
|
+
* 'id',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<WriteActionRetrieveResponse> {
|
|
23
|
+
return this._client.get(path`/x/write-actions/${id}`, options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface WriteActionRetrieveResponse {
|
|
28
|
+
action: string;
|
|
29
|
+
|
|
30
|
+
charged: boolean;
|
|
31
|
+
|
|
32
|
+
chargedCredits: string;
|
|
33
|
+
|
|
34
|
+
createdAt: string;
|
|
35
|
+
|
|
36
|
+
media: WriteActionRetrieveResponse.Media;
|
|
37
|
+
|
|
38
|
+
retryable: false;
|
|
39
|
+
|
|
40
|
+
sendDispatched: boolean;
|
|
41
|
+
|
|
42
|
+
status: 'success' | 'failed' | 'pending_confirmation';
|
|
43
|
+
|
|
44
|
+
writeActionId: string;
|
|
45
|
+
|
|
46
|
+
confirmationAttempts?: number;
|
|
47
|
+
|
|
48
|
+
confirmationCheckedAt?: string;
|
|
49
|
+
|
|
50
|
+
confirmationSource?: string | null;
|
|
51
|
+
|
|
52
|
+
confirmedAt?: string;
|
|
53
|
+
|
|
54
|
+
message?: string;
|
|
55
|
+
|
|
56
|
+
messageId?: string;
|
|
57
|
+
|
|
58
|
+
sendDispatchedAt?: string;
|
|
59
|
+
|
|
60
|
+
targetId?: string | null;
|
|
61
|
+
|
|
62
|
+
tweetId?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export namespace WriteActionRetrieveResponse {
|
|
66
|
+
export interface Media {
|
|
67
|
+
count: number;
|
|
68
|
+
|
|
69
|
+
credits: string;
|
|
70
|
+
|
|
71
|
+
kind: 'none' | 'image' | 'video';
|
|
72
|
+
|
|
73
|
+
totalBytes: string;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export declare namespace WriteActions {
|
|
78
|
+
export { type WriteActionRetrieveResponse as WriteActionRetrieveResponse };
|
|
79
|
+
}
|
package/src/resources/x/x.ts
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
+
import * as AccountConnectionChallengesAPI from './account-connection-challenges';
|
|
6
|
+
import {
|
|
7
|
+
AccountConnectionChallengeSubmitParams,
|
|
8
|
+
AccountConnectionChallengeSubmitResponse,
|
|
9
|
+
AccountConnectionChallenges,
|
|
10
|
+
} from './account-connection-challenges';
|
|
5
11
|
import * as AccountsAPI from './accounts';
|
|
6
12
|
import {
|
|
7
13
|
AccountBulkRetryResponse,
|
|
@@ -46,10 +52,11 @@ import {
|
|
|
46
52
|
ProfileUpdateParams,
|
|
47
53
|
ProfileUpdateResponse,
|
|
48
54
|
} from './profile';
|
|
55
|
+
import * as WriteActionsAPI from './write-actions';
|
|
56
|
+
import { WriteActionRetrieveResponse, WriteActions } from './write-actions';
|
|
49
57
|
import * as CommunitiesAPI from './communities/communities';
|
|
50
58
|
import {
|
|
51
59
|
Communities,
|
|
52
|
-
CommunityActionResult,
|
|
53
60
|
CommunityCreateParams,
|
|
54
61
|
CommunityCreateResponse,
|
|
55
62
|
CommunityDeleteParams,
|
|
@@ -79,13 +86,17 @@ import {
|
|
|
79
86
|
} from './tweets/tweets';
|
|
80
87
|
import * as UsersAPI from './users/users';
|
|
81
88
|
import {
|
|
89
|
+
UserRemoveFollowerParams,
|
|
90
|
+
UserRemoveFollowerResponse,
|
|
82
91
|
UserRetrieveBatchParams,
|
|
92
|
+
UserRetrieveBatchResponse,
|
|
83
93
|
UserRetrieveFollowersParams,
|
|
84
94
|
UserRetrieveFollowersYouKnowParams,
|
|
85
95
|
UserRetrieveFollowingParams,
|
|
86
96
|
UserRetrieveLikesParams,
|
|
87
97
|
UserRetrieveMediaParams,
|
|
88
98
|
UserRetrieveMentionsParams,
|
|
99
|
+
UserRetrieveRepliesParams,
|
|
89
100
|
UserRetrieveSearchParams,
|
|
90
101
|
UserRetrieveTweetsParams,
|
|
91
102
|
UserRetrieveVerifiedFollowersParams,
|
|
@@ -96,6 +107,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
96
107
|
import { path } from '../../internal/utils/path';
|
|
97
108
|
|
|
98
109
|
export class X extends APIResource {
|
|
110
|
+
writeActions: WriteActionsAPI.WriteActions = new WriteActionsAPI.WriteActions(this._client);
|
|
99
111
|
tweets: TweetsAPI.Tweets = new TweetsAPI.Tweets(this._client);
|
|
100
112
|
users: UsersAPI.Users = new UsersAPI.Users(this._client);
|
|
101
113
|
followers: FollowersAPI.Followers = new FollowersAPI.Followers(this._client);
|
|
@@ -104,11 +116,14 @@ export class X extends APIResource {
|
|
|
104
116
|
profile: ProfileAPI.Profile = new ProfileAPI.Profile(this._client);
|
|
105
117
|
communities: CommunitiesAPI.Communities = new CommunitiesAPI.Communities(this._client);
|
|
106
118
|
accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client);
|
|
119
|
+
accountConnectionChallenges: AccountConnectionChallengesAPI.AccountConnectionChallenges =
|
|
120
|
+
new AccountConnectionChallengesAPI.AccountConnectionChallenges(this._client);
|
|
107
121
|
bookmarks: BookmarksAPI.Bookmarks = new BookmarksAPI.Bookmarks(this._client);
|
|
108
122
|
lists: ListsAPI.Lists = new ListsAPI.Lists(this._client);
|
|
109
123
|
|
|
110
124
|
/**
|
|
111
|
-
* Retrieve the full content of an X Article (long-form post) by tweet ID.
|
|
125
|
+
* Retrieve the full content of an X Article (long-form post) by numeric tweet ID.
|
|
126
|
+
* Returns article_not_found when the tweet is valid but is not an X Article.
|
|
112
127
|
*
|
|
113
128
|
* @example
|
|
114
129
|
* ```ts
|
|
@@ -169,13 +184,18 @@ export interface XGetArticleResponse {
|
|
|
169
184
|
article: XGetArticleResponse.Article;
|
|
170
185
|
|
|
171
186
|
/**
|
|
172
|
-
*
|
|
187
|
+
* X Article author profile fields returned when available.
|
|
173
188
|
*/
|
|
174
|
-
author?:
|
|
189
|
+
author?: XGetArticleResponse.Author;
|
|
175
190
|
}
|
|
176
191
|
|
|
177
192
|
export namespace XGetArticleResponse {
|
|
178
193
|
export interface Article {
|
|
194
|
+
/**
|
|
195
|
+
* Plain text joined from all article blocks
|
|
196
|
+
*/
|
|
197
|
+
bodyText?: string;
|
|
198
|
+
|
|
179
199
|
contents?: Array<Article.Content>;
|
|
180
200
|
|
|
181
201
|
coverImageUrl?: string;
|
|
@@ -199,21 +219,85 @@ export namespace XGetArticleResponse {
|
|
|
199
219
|
export interface Content {
|
|
200
220
|
height?: number;
|
|
201
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Inline text formatting ranges
|
|
224
|
+
*/
|
|
225
|
+
inlineStyleRanges?: Array<Content.InlineStyleRange>;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Preview image URL for media blocks
|
|
229
|
+
*/
|
|
230
|
+
previewUrl?: string;
|
|
231
|
+
|
|
202
232
|
text?: string;
|
|
203
233
|
|
|
204
234
|
/**
|
|
205
|
-
* Block type:
|
|
206
|
-
*
|
|
235
|
+
* Block type: paragraph, header-one, header-two, header-three, header-four,
|
|
236
|
+
* header-five, header-six, unordered-list-item, ordered-list-item, blockquote,
|
|
237
|
+
* code-block, media, divider
|
|
207
238
|
*/
|
|
208
239
|
type?: string;
|
|
209
240
|
|
|
210
241
|
/**
|
|
211
|
-
* Media URL for
|
|
242
|
+
* Media URL for media blocks
|
|
212
243
|
*/
|
|
213
244
|
url?: string;
|
|
214
245
|
|
|
215
246
|
width?: number;
|
|
216
247
|
}
|
|
248
|
+
|
|
249
|
+
export namespace Content {
|
|
250
|
+
export interface InlineStyleRange {
|
|
251
|
+
length?: number;
|
|
252
|
+
|
|
253
|
+
offset?: number;
|
|
254
|
+
|
|
255
|
+
style?: string;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* X Article author profile fields returned when available.
|
|
262
|
+
*/
|
|
263
|
+
export interface Author {
|
|
264
|
+
id: string;
|
|
265
|
+
|
|
266
|
+
name: string;
|
|
267
|
+
|
|
268
|
+
username: string;
|
|
269
|
+
|
|
270
|
+
canDm?: boolean;
|
|
271
|
+
|
|
272
|
+
createdAt?: string;
|
|
273
|
+
|
|
274
|
+
description?: string;
|
|
275
|
+
|
|
276
|
+
favouritesCount?: number;
|
|
277
|
+
|
|
278
|
+
followersCount?: number;
|
|
279
|
+
|
|
280
|
+
followingCount?: number;
|
|
281
|
+
|
|
282
|
+
isBlueVerified?: boolean;
|
|
283
|
+
|
|
284
|
+
isTranslator?: boolean;
|
|
285
|
+
|
|
286
|
+
isVerified?: boolean;
|
|
287
|
+
|
|
288
|
+
location?: string;
|
|
289
|
+
|
|
290
|
+
mediaCount?: number;
|
|
291
|
+
|
|
292
|
+
profileBannerUrl?: string;
|
|
293
|
+
|
|
294
|
+
profilePicture?: string;
|
|
295
|
+
|
|
296
|
+
protected?: boolean;
|
|
297
|
+
|
|
298
|
+
statusesCount?: number;
|
|
299
|
+
|
|
300
|
+
url?: string;
|
|
217
301
|
}
|
|
218
302
|
}
|
|
219
303
|
|
|
@@ -264,7 +348,7 @@ export interface XGetHomeTimelineParams {
|
|
|
264
348
|
cursor?: string;
|
|
265
349
|
|
|
266
350
|
/**
|
|
267
|
-
* Comma-separated tweet IDs to exclude from results
|
|
351
|
+
* Comma-separated tweet IDs to exclude from results. Empty entries are ignored.
|
|
268
352
|
*/
|
|
269
353
|
seenTweetIds?: string;
|
|
270
354
|
}
|
|
@@ -276,7 +360,7 @@ export interface XGetNotificationsParams {
|
|
|
276
360
|
cursor?: string;
|
|
277
361
|
|
|
278
362
|
/**
|
|
279
|
-
* Notification type filter
|
|
363
|
+
* Notification type filter. Unrecognized values fall back to All.
|
|
280
364
|
*/
|
|
281
365
|
type?: 'All' | 'Verified' | 'Mentions';
|
|
282
366
|
}
|
|
@@ -293,6 +377,7 @@ export interface XGetTrendsParams {
|
|
|
293
377
|
woeid?: number;
|
|
294
378
|
}
|
|
295
379
|
|
|
380
|
+
X.WriteActions = WriteActions;
|
|
296
381
|
X.Tweets = Tweets;
|
|
297
382
|
X.Users = Users;
|
|
298
383
|
X.Followers = Followers;
|
|
@@ -301,6 +386,7 @@ X.Media = Media;
|
|
|
301
386
|
X.Profile = Profile;
|
|
302
387
|
X.Communities = Communities;
|
|
303
388
|
X.Accounts = Accounts;
|
|
389
|
+
X.AccountConnectionChallenges = AccountConnectionChallenges;
|
|
304
390
|
X.Bookmarks = Bookmarks;
|
|
305
391
|
X.Lists = Lists;
|
|
306
392
|
|
|
@@ -314,6 +400,8 @@ export declare namespace X {
|
|
|
314
400
|
type XGetTrendsParams as XGetTrendsParams,
|
|
315
401
|
};
|
|
316
402
|
|
|
403
|
+
export { WriteActions as WriteActions, type WriteActionRetrieveResponse as WriteActionRetrieveResponse };
|
|
404
|
+
|
|
317
405
|
export {
|
|
318
406
|
Tweets as Tweets,
|
|
319
407
|
type TweetAuthor as TweetAuthor,
|
|
@@ -334,6 +422,9 @@ export declare namespace X {
|
|
|
334
422
|
|
|
335
423
|
export {
|
|
336
424
|
Users as Users,
|
|
425
|
+
type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
|
|
426
|
+
type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
|
|
427
|
+
type UserRemoveFollowerParams as UserRemoveFollowerParams,
|
|
337
428
|
type UserRetrieveBatchParams as UserRetrieveBatchParams,
|
|
338
429
|
type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
|
|
339
430
|
type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
|
|
@@ -341,6 +432,7 @@ export declare namespace X {
|
|
|
341
432
|
type UserRetrieveLikesParams as UserRetrieveLikesParams,
|
|
342
433
|
type UserRetrieveMediaParams as UserRetrieveMediaParams,
|
|
343
434
|
type UserRetrieveMentionsParams as UserRetrieveMentionsParams,
|
|
435
|
+
type UserRetrieveRepliesParams as UserRetrieveRepliesParams,
|
|
344
436
|
type UserRetrieveSearchParams as UserRetrieveSearchParams,
|
|
345
437
|
type UserRetrieveTweetsParams as UserRetrieveTweetsParams,
|
|
346
438
|
type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams,
|
|
@@ -380,7 +472,6 @@ export declare namespace X {
|
|
|
380
472
|
|
|
381
473
|
export {
|
|
382
474
|
Communities as Communities,
|
|
383
|
-
type CommunityActionResult as CommunityActionResult,
|
|
384
475
|
type CommunityCreateResponse as CommunityCreateResponse,
|
|
385
476
|
type CommunityDeleteResponse as CommunityDeleteResponse,
|
|
386
477
|
type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse,
|
|
@@ -404,6 +495,12 @@ export declare namespace X {
|
|
|
404
495
|
type AccountReauthParams as AccountReauthParams,
|
|
405
496
|
};
|
|
406
497
|
|
|
498
|
+
export {
|
|
499
|
+
AccountConnectionChallenges as AccountConnectionChallenges,
|
|
500
|
+
type AccountConnectionChallengeSubmitResponse as AccountConnectionChallengeSubmitResponse,
|
|
501
|
+
type AccountConnectionChallengeSubmitParams as AccountConnectionChallengeSubmitParams,
|
|
502
|
+
};
|
|
503
|
+
|
|
407
504
|
export {
|
|
408
505
|
Bookmarks as Bookmarks,
|
|
409
506
|
type BookmarkRetrieveFoldersResponse as BookmarkRetrieveFoldersResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.4.1'; // x-release-please-version
|
package/uploads.d.mts
CHANGED
package/uploads.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/uploads.d.ts
CHANGED
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
|
package/uploads.mjs
CHANGED
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.4.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.4.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.4.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/resources/api-keys.d.mts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* API key management (session auth only)
|
|
6
|
-
*/
|
|
7
|
-
export declare class APIKeys extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create API key
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const apiKey = await client.apiKeys.create({
|
|
14
|
-
* name: 'My API Key',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
create(body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* List API keys
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const apiKeys = await client.apiKeys.list();
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
list(options?: RequestOptions): APIPromise<APIKeyListResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Revoke API key
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const response = await client.apiKeys.revoke('id');
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
revoke(id: string, options?: RequestOptions): APIPromise<APIKeyRevokeResponse>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* API key metadata returned when listing keys.
|
|
40
|
-
*/
|
|
41
|
-
export interface APIKey {
|
|
42
|
-
id: string;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
isActive: boolean;
|
|
45
|
-
name: string;
|
|
46
|
-
prefix: string;
|
|
47
|
-
lastUsedAt?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface APIKeyCreateResponse {
|
|
50
|
-
id: string;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
fullKey: string;
|
|
53
|
-
name: string;
|
|
54
|
-
prefix: string;
|
|
55
|
-
}
|
|
56
|
-
export interface APIKeyListResponse {
|
|
57
|
-
keys: Array<APIKey>;
|
|
58
|
-
}
|
|
59
|
-
export interface APIKeyRevokeResponse {
|
|
60
|
-
success: true;
|
|
61
|
-
}
|
|
62
|
-
export interface APIKeyCreateParams {
|
|
63
|
-
name?: string;
|
|
64
|
-
}
|
|
65
|
-
export declare namespace APIKeys {
|
|
66
|
-
export { type APIKey as APIKey, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyRevokeResponse as APIKeyRevokeResponse, type APIKeyCreateParams as APIKeyCreateParams, };
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=api-keys.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9D;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG/E;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,OAAO,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/api-keys.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
/**
|
|
5
|
-
* API key management (session auth only)
|
|
6
|
-
*/
|
|
7
|
-
export declare class APIKeys extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create API key
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const apiKey = await client.apiKeys.create({
|
|
14
|
-
* name: 'My API Key',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
create(body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* List API keys
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const apiKeys = await client.apiKeys.list();
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
list(options?: RequestOptions): APIPromise<APIKeyListResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Revoke API key
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const response = await client.apiKeys.revoke('id');
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
revoke(id: string, options?: RequestOptions): APIPromise<APIKeyRevokeResponse>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* API key metadata returned when listing keys.
|
|
40
|
-
*/
|
|
41
|
-
export interface APIKey {
|
|
42
|
-
id: string;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
isActive: boolean;
|
|
45
|
-
name: string;
|
|
46
|
-
prefix: string;
|
|
47
|
-
lastUsedAt?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface APIKeyCreateResponse {
|
|
50
|
-
id: string;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
fullKey: string;
|
|
53
|
-
name: string;
|
|
54
|
-
prefix: string;
|
|
55
|
-
}
|
|
56
|
-
export interface APIKeyListResponse {
|
|
57
|
-
keys: Array<APIKey>;
|
|
58
|
-
}
|
|
59
|
-
export interface APIKeyRevokeResponse {
|
|
60
|
-
success: true;
|
|
61
|
-
}
|
|
62
|
-
export interface APIKeyCreateParams {
|
|
63
|
-
name?: string;
|
|
64
|
-
}
|
|
65
|
-
export declare namespace APIKeys {
|
|
66
|
-
export { type APIKey as APIKey, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyRevokeResponse as APIKeyRevokeResponse, type APIKeyCreateParams as APIKeyCreateParams, };
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=api-keys.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9D;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG/E;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,OAAO,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/api-keys.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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.APIKeys = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const path_1 = require("../internal/utils/path.js");
|
|
7
|
-
/**
|
|
8
|
-
* API key management (session auth only)
|
|
9
|
-
*/
|
|
10
|
-
class APIKeys extends resource_1.APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Create API key
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const apiKey = await client.apiKeys.create({
|
|
17
|
-
* name: 'My API Key',
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
create(body, options) {
|
|
22
|
-
return this._client.post('/api-keys', { body, ...options });
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* List API keys
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const apiKeys = await client.apiKeys.list();
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
list(options) {
|
|
33
|
-
return this._client.get('/api-keys', options);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Revoke API key
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* const response = await client.apiKeys.revoke('id');
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
revoke(id, options) {
|
|
44
|
-
return this._client.delete((0, path_1.path) `/api-keys/${id}`, options);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.APIKeys = APIKeys;
|
|
48
|
-
//# sourceMappingURL=api-keys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAtCD,0BAsCC"}
|
package/resources/api-keys.mjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { path } from "../internal/utils/path.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* API key management (session auth only)
|
|
6
|
-
*/
|
|
7
|
-
export class APIKeys extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create API key
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const apiKey = await client.apiKeys.create({
|
|
14
|
-
* name: 'My API Key',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
create(body, options) {
|
|
19
|
-
return this._client.post('/api-keys', { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* List API keys
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const apiKeys = await client.apiKeys.list();
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
list(options) {
|
|
30
|
-
return this._client.get('/api-keys', options);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Revoke API key
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* const response = await client.apiKeys.revoke('id');
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
revoke(id, options) {
|
|
41
|
-
return this._client.delete(path `/api-keys/${id}`, options);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=api-keys.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
package/resources/bot/bot.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as PlatformLinksAPI from "./platform-links.mjs";
|
|
3
|
-
import { PlatformLinks } from "./platform-links.mjs";
|
|
4
|
-
export declare class Bot extends APIResource {
|
|
5
|
-
platformLinks: PlatformLinksAPI.PlatformLinks;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace Bot {
|
|
8
|
-
export { PlatformLinks as PlatformLinks };
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=bot.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bot.d.mts","sourceRoot":"","sources":["../../src/resources/bot/bot.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE;AAExB,qBAAa,GAAI,SAAQ,WAAW;IAClC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAID,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,CAAC;CAC3C"}
|
package/resources/bot/bot.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as PlatformLinksAPI from "./platform-links.js";
|
|
3
|
-
import { PlatformLinks } from "./platform-links.js";
|
|
4
|
-
export declare class Bot extends APIResource {
|
|
5
|
-
platformLinks: PlatformLinksAPI.PlatformLinks;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace Bot {
|
|
8
|
-
export { PlatformLinks as PlatformLinks };
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=bot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bot.d.ts","sourceRoot":"","sources":["../../src/resources/bot/bot.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE;AAExB,qBAAa,GAAI,SAAQ,WAAW;IAClC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAID,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,CAAC;CAC3C"}
|