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
|
@@ -13,10 +13,9 @@ class Join extends resource_1.APIResource {
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
|
-
* const
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* });
|
|
16
|
+
* const join = await client.x.communities.join.create('id', {
|
|
17
|
+
* account: '@elonmusk',
|
|
18
|
+
* });
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
21
|
create(id, body, options) {
|
|
@@ -27,10 +26,10 @@ class Join extends resource_1.APIResource {
|
|
|
27
26
|
*
|
|
28
27
|
* @example
|
|
29
28
|
* ```ts
|
|
30
|
-
* const
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
29
|
+
* const response = await client.x.communities.join.deleteAll(
|
|
30
|
+
* 'id',
|
|
31
|
+
* { account: '@elonmusk' },
|
|
32
|
+
* );
|
|
34
33
|
* ```
|
|
35
34
|
*/
|
|
36
35
|
deleteAll(id, body, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.js","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"join.js","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,IAAsB,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CACP,EAAU,EACV,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAjCD,oBAiCC"}
|
|
@@ -10,10 +10,9 @@ export class Join extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* });
|
|
13
|
+
* const join = await client.x.communities.join.create('id', {
|
|
14
|
+
* account: '@elonmusk',
|
|
15
|
+
* });
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
19
18
|
create(id, body, options) {
|
|
@@ -24,10 +23,10 @@ export class Join extends APIResource {
|
|
|
24
23
|
*
|
|
25
24
|
* @example
|
|
26
25
|
* ```ts
|
|
27
|
-
* const
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
26
|
+
* const response = await client.x.communities.join.deleteAll(
|
|
27
|
+
* 'id',
|
|
28
|
+
* { account: '@elonmusk' },
|
|
29
|
+
* );
|
|
31
30
|
* ```
|
|
32
31
|
*/
|
|
33
32
|
deleteAll(id, body, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"join.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,IAAsB,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CACP,EAAU,EACV,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -7,12 +7,15 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Tweets extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Requires a Community ID and keyword query.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* const paginatedTweets =
|
|
15
|
-
* await client.x.communities.tweets.list({
|
|
15
|
+
* await client.x.communities.tweets.list({
|
|
16
|
+
* communityId: '321669910225',
|
|
17
|
+
* q: 'q',
|
|
18
|
+
* });
|
|
16
19
|
* ```
|
|
17
20
|
*/
|
|
18
21
|
list(query: TweetListParams, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
@@ -29,23 +32,43 @@ export declare class Tweets extends APIResource {
|
|
|
29
32
|
}
|
|
30
33
|
export interface TweetListParams {
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
35
|
+
* Numeric ID of the community to search
|
|
36
|
+
*/
|
|
37
|
+
communityId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Keyword query within the selected community
|
|
33
40
|
*/
|
|
34
41
|
q: string;
|
|
35
42
|
/**
|
|
36
|
-
* Pagination cursor for
|
|
43
|
+
* Pagination cursor for community results
|
|
37
44
|
*/
|
|
38
45
|
cursor?: string;
|
|
39
46
|
/**
|
|
40
|
-
*
|
|
47
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
48
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
49
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
50
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
51
|
+
* aliases remain accepted.
|
|
52
|
+
*/
|
|
53
|
+
pageSize?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Sort order for community results (Latest or Top)
|
|
41
56
|
*/
|
|
42
|
-
queryType?:
|
|
57
|
+
queryType?: 'Latest' | 'Top';
|
|
43
58
|
}
|
|
44
59
|
export interface TweetListByCommunityParams {
|
|
45
60
|
/**
|
|
46
61
|
* Pagination cursor for community tweets
|
|
47
62
|
*/
|
|
48
63
|
cursor?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
66
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
67
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
68
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
69
|
+
* aliases remain accepted.
|
|
70
|
+
*/
|
|
71
|
+
pageSize?: number;
|
|
49
72
|
}
|
|
50
73
|
export declare namespace Tweets {
|
|
51
74
|
export { type TweetListParams as TweetListParams, type TweetListByCommunityParams as TweetListByCommunityParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tweets.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tweets.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;IAI1F;;;;;;;;OAQG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;CAGtC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CAC9B;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -7,12 +7,15 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Tweets extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Requires a Community ID and keyword query.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* const paginatedTweets =
|
|
15
|
-
* await client.x.communities.tweets.list({
|
|
15
|
+
* await client.x.communities.tweets.list({
|
|
16
|
+
* communityId: '321669910225',
|
|
17
|
+
* q: 'q',
|
|
18
|
+
* });
|
|
16
19
|
* ```
|
|
17
20
|
*/
|
|
18
21
|
list(query: TweetListParams, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
@@ -29,23 +32,43 @@ export declare class Tweets extends APIResource {
|
|
|
29
32
|
}
|
|
30
33
|
export interface TweetListParams {
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
35
|
+
* Numeric ID of the community to search
|
|
36
|
+
*/
|
|
37
|
+
communityId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Keyword query within the selected community
|
|
33
40
|
*/
|
|
34
41
|
q: string;
|
|
35
42
|
/**
|
|
36
|
-
* Pagination cursor for
|
|
43
|
+
* Pagination cursor for community results
|
|
37
44
|
*/
|
|
38
45
|
cursor?: string;
|
|
39
46
|
/**
|
|
40
|
-
*
|
|
47
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
48
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
49
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
50
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
51
|
+
* aliases remain accepted.
|
|
52
|
+
*/
|
|
53
|
+
pageSize?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Sort order for community results (Latest or Top)
|
|
41
56
|
*/
|
|
42
|
-
queryType?:
|
|
57
|
+
queryType?: 'Latest' | 'Top';
|
|
43
58
|
}
|
|
44
59
|
export interface TweetListByCommunityParams {
|
|
45
60
|
/**
|
|
46
61
|
* Pagination cursor for community tweets
|
|
47
62
|
*/
|
|
48
63
|
cursor?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
66
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
67
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
68
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
69
|
+
* aliases remain accepted.
|
|
70
|
+
*/
|
|
71
|
+
pageSize?: number;
|
|
49
72
|
}
|
|
50
73
|
export declare namespace Tweets {
|
|
51
74
|
export { type TweetListParams as TweetListParams, type TweetListByCommunityParams as TweetListByCommunityParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tweets.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tweets.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;IAI1F;;;;;;;;OAQG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;CAGtC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CAC9B;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -9,12 +9,15 @@ const path_1 = require("../../../internal/utils/path.js");
|
|
|
9
9
|
*/
|
|
10
10
|
class Tweets extends resource_1.APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Requires a Community ID and keyword query.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
16
|
* const paginatedTweets =
|
|
17
|
-
* await client.x.communities.tweets.list({
|
|
17
|
+
* await client.x.communities.tweets.list({
|
|
18
|
+
* communityId: '321669910225',
|
|
19
|
+
* q: 'q',
|
|
20
|
+
* });
|
|
18
21
|
* ```
|
|
19
22
|
*/
|
|
20
23
|
list(query, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tweets.js","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"tweets.js","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAsB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;OAQG;IACH,eAAe,CACb,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAjCD,wBAiCC"}
|
|
@@ -6,12 +6,15 @@ import { path } from "../../../internal/utils/path.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export class Tweets extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Requires a Community ID and keyword query.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
13
|
* const paginatedTweets =
|
|
14
|
-
* await client.x.communities.tweets.list({
|
|
14
|
+
* await client.x.communities.tweets.list({
|
|
15
|
+
* communityId: '321669910225',
|
|
16
|
+
* q: 'q',
|
|
17
|
+
* });
|
|
15
18
|
* ```
|
|
16
19
|
*/
|
|
17
20
|
list(query, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tweets.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"tweets.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAsB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;OAQG;IACH,eAAe,CACb,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities.d.mts","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"communities.d.mts","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":"AAEA,wCAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities.d.ts","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"communities.d.ts","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":"AAEA,uCAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities.mjs","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"communities.mjs","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,wCAAoC"}
|
package/resources/x/dm.d.mts
CHANGED
|
@@ -9,10 +9,11 @@ export declare class Dm extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const response = await client.x.dm.retrieveHistory(
|
|
11
11
|
* 'userId',
|
|
12
|
+
* { account: 'account' },
|
|
12
13
|
* );
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
|
-
retrieveHistory(userID: string, query
|
|
16
|
+
retrieveHistory(userID: string, query: DmRetrieveHistoryParams, options?: RequestOptions): APIPromise<DmRetrieveHistoryResponse>;
|
|
16
17
|
/**
|
|
17
18
|
* Send direct message
|
|
18
19
|
*
|
|
@@ -22,7 +23,6 @@ export declare class Dm extends APIResource {
|
|
|
22
23
|
* account: '@elonmusk',
|
|
23
24
|
* text: 'Example text content',
|
|
24
25
|
* media_ids: ['1234567890123456789'],
|
|
25
|
-
* reply_to_message_id: '1234567890123456789',
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
@@ -36,9 +36,14 @@ export interface DmRetrieveHistoryResponse {
|
|
|
36
36
|
export declare namespace DmRetrieveHistoryResponse {
|
|
37
37
|
interface Message {
|
|
38
38
|
id: string;
|
|
39
|
+
receiverId: string;
|
|
40
|
+
senderId: string;
|
|
39
41
|
createdAt?: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
/**
|
|
43
|
+
* URL of attached media (image, GIF, or video). Omitted when the message has no
|
|
44
|
+
* media attachment.
|
|
45
|
+
*/
|
|
46
|
+
mediaUrl?: string;
|
|
42
47
|
text?: string;
|
|
43
48
|
}
|
|
44
49
|
}
|
|
@@ -47,6 +52,11 @@ export interface DmSendResponse {
|
|
|
47
52
|
success: true;
|
|
48
53
|
}
|
|
49
54
|
export interface DmRetrieveHistoryParams {
|
|
55
|
+
/**
|
|
56
|
+
* X handle (without the `@` prefix) of the connected X account used to read the
|
|
57
|
+
* conversation. The account must be a participant in the conversation.
|
|
58
|
+
*/
|
|
59
|
+
account: string;
|
|
50
60
|
/**
|
|
51
61
|
* Pagination cursor for DM history
|
|
52
62
|
*/
|
|
@@ -62,8 +72,10 @@ export interface DmSendParams {
|
|
|
62
72
|
*/
|
|
63
73
|
account: string;
|
|
64
74
|
text: string;
|
|
75
|
+
/**
|
|
76
|
+
* Optional array containing exactly 1 uploaded media ID.
|
|
77
|
+
*/
|
|
65
78
|
media_ids?: Array<string>;
|
|
66
|
-
reply_to_message_id?: string;
|
|
67
79
|
}
|
|
68
80
|
export declare namespace Dm {
|
|
69
81
|
export { type DmRetrieveHistoryResponse as DmRetrieveHistoryResponse, type DmSendResponse as DmSendResponse, type DmRetrieveHistoryParams as DmRetrieveHistoryParams, type DmSendParams as DmSendParams, };
|
package/resources/x/dm.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dm.d.mts","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dm.d.mts","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,eAAe,CACb,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;CAG/F;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,OAAO,CAAC;IAEvB,QAAQ,EAAE,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEnD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB,QAAQ,EAAE,MAAM,CAAC;QAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
|
package/resources/x/dm.d.ts
CHANGED
|
@@ -9,10 +9,11 @@ export declare class Dm extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const response = await client.x.dm.retrieveHistory(
|
|
11
11
|
* 'userId',
|
|
12
|
+
* { account: 'account' },
|
|
12
13
|
* );
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
|
-
retrieveHistory(userID: string, query
|
|
16
|
+
retrieveHistory(userID: string, query: DmRetrieveHistoryParams, options?: RequestOptions): APIPromise<DmRetrieveHistoryResponse>;
|
|
16
17
|
/**
|
|
17
18
|
* Send direct message
|
|
18
19
|
*
|
|
@@ -22,7 +23,6 @@ export declare class Dm extends APIResource {
|
|
|
22
23
|
* account: '@elonmusk',
|
|
23
24
|
* text: 'Example text content',
|
|
24
25
|
* media_ids: ['1234567890123456789'],
|
|
25
|
-
* reply_to_message_id: '1234567890123456789',
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
@@ -36,9 +36,14 @@ export interface DmRetrieveHistoryResponse {
|
|
|
36
36
|
export declare namespace DmRetrieveHistoryResponse {
|
|
37
37
|
interface Message {
|
|
38
38
|
id: string;
|
|
39
|
+
receiverId: string;
|
|
40
|
+
senderId: string;
|
|
39
41
|
createdAt?: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
/**
|
|
43
|
+
* URL of attached media (image, GIF, or video). Omitted when the message has no
|
|
44
|
+
* media attachment.
|
|
45
|
+
*/
|
|
46
|
+
mediaUrl?: string;
|
|
42
47
|
text?: string;
|
|
43
48
|
}
|
|
44
49
|
}
|
|
@@ -47,6 +52,11 @@ export interface DmSendResponse {
|
|
|
47
52
|
success: true;
|
|
48
53
|
}
|
|
49
54
|
export interface DmRetrieveHistoryParams {
|
|
55
|
+
/**
|
|
56
|
+
* X handle (without the `@` prefix) of the connected X account used to read the
|
|
57
|
+
* conversation. The account must be a participant in the conversation.
|
|
58
|
+
*/
|
|
59
|
+
account: string;
|
|
50
60
|
/**
|
|
51
61
|
* Pagination cursor for DM history
|
|
52
62
|
*/
|
|
@@ -62,8 +72,10 @@ export interface DmSendParams {
|
|
|
62
72
|
*/
|
|
63
73
|
account: string;
|
|
64
74
|
text: string;
|
|
75
|
+
/**
|
|
76
|
+
* Optional array containing exactly 1 uploaded media ID.
|
|
77
|
+
*/
|
|
65
78
|
media_ids?: Array<string>;
|
|
66
|
-
reply_to_message_id?: string;
|
|
67
79
|
}
|
|
68
80
|
export declare namespace Dm {
|
|
69
81
|
export { type DmRetrieveHistoryResponse as DmRetrieveHistoryResponse, type DmSendResponse as DmSendResponse, type DmRetrieveHistoryParams as DmRetrieveHistoryParams, type DmSendParams as DmSendParams, };
|
package/resources/x/dm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,eAAe,CACb,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;CAG/F;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,OAAO,CAAC;IAEvB,QAAQ,EAAE,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEnD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB,QAAQ,EAAE,MAAM,CAAC;QAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
|
package/resources/x/dm.js
CHANGED
|
@@ -12,10 +12,11 @@ class Dm extends resource_1.APIResource {
|
|
|
12
12
|
* ```ts
|
|
13
13
|
* const response = await client.x.dm.retrieveHistory(
|
|
14
14
|
* 'userId',
|
|
15
|
+
* { account: 'account' },
|
|
15
16
|
* );
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
|
-
retrieveHistory(userID, query
|
|
19
|
+
retrieveHistory(userID, query, options) {
|
|
19
20
|
return this._client.get((0, path_1.path) `/x/dm/${userID}/history`, { query, ...options });
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
@@ -27,7 +28,6 @@ class Dm extends resource_1.APIResource {
|
|
|
27
28
|
* account: '@elonmusk',
|
|
28
29
|
* text: 'Example text content',
|
|
29
30
|
* media_ids: ['1234567890123456789'],
|
|
30
|
-
* reply_to_message_id: '1234567890123456789',
|
|
31
31
|
* });
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
package/resources/x/dm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dm.js","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,EAAG,SAAQ,sBAAW;IACjC
|
|
1
|
+
{"version":3,"file":"dm.js","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;;OAUG;IACH,eAAe,CACb,MAAc,EACd,KAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,SAAS,MAAM,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,MAAc,EAAE,IAAkB,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,SAAS,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAnCD,gBAmCC"}
|
package/resources/x/dm.mjs
CHANGED
|
@@ -9,10 +9,11 @@ export class Dm extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const response = await client.x.dm.retrieveHistory(
|
|
11
11
|
* 'userId',
|
|
12
|
+
* { account: 'account' },
|
|
12
13
|
* );
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
|
-
retrieveHistory(userID, query
|
|
16
|
+
retrieveHistory(userID, query, options) {
|
|
16
17
|
return this._client.get(path `/x/dm/${userID}/history`, { query, ...options });
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
@@ -24,7 +25,6 @@ export class Dm extends APIResource {
|
|
|
24
25
|
* account: '@elonmusk',
|
|
25
26
|
* text: 'Example text content',
|
|
26
27
|
* media_ids: ['1234567890123456789'],
|
|
27
|
-
* reply_to_message_id: '1234567890123456789',
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
package/resources/x/dm.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dm.mjs","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"dm.mjs","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,eAAe,CACb,MAAc,EACd,KAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,SAAS,MAAM,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,MAAc,EAAE,IAAkB,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -26,11 +26,11 @@ export interface FollowerCheckResponse {
|
|
|
26
26
|
}
|
|
27
27
|
export interface FollowerCheckParams {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Source username, @username, or X or Twitter profile URL
|
|
30
30
|
*/
|
|
31
31
|
source: string;
|
|
32
32
|
/**
|
|
33
|
-
* Target username
|
|
33
|
+
* Target username, @username, or X or Twitter profile URL
|
|
34
34
|
*/
|
|
35
35
|
target: string;
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"followers.d.mts","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"followers.d.mts","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,OAAO,CAAC;IAEtB,WAAW,EAAE,OAAO,CAAC;IAErB,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -26,11 +26,11 @@ export interface FollowerCheckResponse {
|
|
|
26
26
|
}
|
|
27
27
|
export interface FollowerCheckParams {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Source username, @username, or X or Twitter profile URL
|
|
30
30
|
*/
|
|
31
31
|
source: string;
|
|
32
32
|
/**
|
|
33
|
-
* Target username
|
|
33
|
+
* Target username, @username, or X or Twitter profile URL
|
|
34
34
|
*/
|
|
35
35
|
target: string;
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"followers.d.ts","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"followers.d.ts","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,OAAO,CAAC;IAEtB,WAAW,EAAE,OAAO,CAAC;IAErB,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"followers.mjs","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"followers.mjs","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,KAA0B,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
package/resources/x/index.d.mts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
export { AccountConnectionChallenges, type AccountConnectionChallengeSubmitResponse, type AccountConnectionChallengeSubmitParams, } from "./account-connection-challenges.mjs";
|
|
1
2
|
export { Accounts, type XAccount, type XAccountDetail, type AccountCreateResponse, type AccountListResponse, type AccountDeleteResponse, type AccountBulkRetryResponse, type AccountReauthResponse, type AccountCreateParams, type AccountReauthParams, } from "./accounts.mjs";
|
|
2
3
|
export { Bookmarks, type BookmarkRetrieveFoldersResponse, type BookmarkListParams } from "./bookmarks.mjs";
|
|
3
|
-
export { Communities, type
|
|
4
|
+
export { Communities, type CommunityCreateResponse, type CommunityDeleteResponse, type CommunityRetrieveInfoResponse, type CommunityCreateParams, type CommunityDeleteParams, type CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams, } from "./communities/index.mjs";
|
|
4
5
|
export { Dm, type DmRetrieveHistoryResponse, type DmSendResponse, type DmRetrieveHistoryParams, type DmSendParams, } from "./dm.mjs";
|
|
5
6
|
export { Followers, type FollowerCheckResponse, type FollowerCheckParams } from "./followers.mjs";
|
|
6
7
|
export { Lists, type ListRetrieveFollowersParams, type ListRetrieveMembersParams, type ListRetrieveTweetsParams, } from "./lists.mjs";
|
|
7
8
|
export { Media, type MediaDownloadResponse, type MediaUploadResponse, type MediaDownloadParams, type MediaUploadParams, } from "./media.mjs";
|
|
8
9
|
export { Profile, type ProfileUpdateResponse, type ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse, type ProfileUpdateParams, type ProfileUpdateAvatarParams, type ProfileUpdateBannerParams, } from "./profile.mjs";
|
|
9
10
|
export { Tweets, type TweetAuthor, type TweetDetail, type TweetCreateResponse, type TweetRetrieveResponse, type TweetDeleteResponse, type TweetCreateParams, type TweetListParams, type TweetDeleteParams, type TweetGetFavoritersParams, type TweetGetQuotesParams, type TweetGetRepliesParams, type TweetGetRetweetersParams, type TweetGetThreadParams, type TweetSearchParams, } from "./tweets/index.mjs";
|
|
10
|
-
export { Users, type UserRetrieveBatchParams, type UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams, type UserRetrieveLikesParams, type UserRetrieveMediaParams, type UserRetrieveMentionsParams, type UserRetrieveSearchParams, type UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams, } from "./users/index.mjs";
|
|
11
|
+
export { Users, type UserRemoveFollowerResponse, type UserRetrieveBatchResponse, type UserRemoveFollowerParams, type UserRetrieveBatchParams, type UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams, type UserRetrieveLikesParams, type UserRetrieveMediaParams, type UserRetrieveMentionsParams, type UserRetrieveRepliesParams, type UserRetrieveSearchParams, type UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams, } from "./users/index.mjs";
|
|
12
|
+
export { WriteActions, type WriteActionRetrieveResponse } from "./write-actions.mjs";
|
|
11
13
|
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, type XGetTrendsParams, } from "./x.mjs";
|
|
12
14
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,2BAA2B,EAC3B,KAAK,wCAAwC,EAC7C,KAAK,sCAAsC,GAC5C,4CAAwC;AACzC,OAAO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,uBAAmB;AACpB,OAAO,EAAE,SAAS,EAAE,KAAK,+BAA+B,EAAE,KAAK,kBAAkB,EAAE,wBAAoB;AACvG,OAAO,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,GACnC,gCAA4B;AAC7B,OAAO,EACL,EAAE,EACF,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB,iBAAa;AACd,OAAO,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,wBAAoB;AAC9F,OAAO,EACL,KAAK,EACL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,oBAAgB;AACjB,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,oBAAgB;AACjB,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,sBAAkB;AACnB,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,2BAAuB;AACxB,OAAO,EACL,KAAK,EACL,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,GACzC,0BAAsB;AACvB,OAAO,EAAE,YAAY,EAAE,KAAK,2BAA2B,EAAE,4BAAwB;AACjF,OAAO,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB,gBAAY"}
|
package/resources/x/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
export { AccountConnectionChallenges, type AccountConnectionChallengeSubmitResponse, type AccountConnectionChallengeSubmitParams, } from "./account-connection-challenges.js";
|
|
1
2
|
export { Accounts, type XAccount, type XAccountDetail, type AccountCreateResponse, type AccountListResponse, type AccountDeleteResponse, type AccountBulkRetryResponse, type AccountReauthResponse, type AccountCreateParams, type AccountReauthParams, } from "./accounts.js";
|
|
2
3
|
export { Bookmarks, type BookmarkRetrieveFoldersResponse, type BookmarkListParams } from "./bookmarks.js";
|
|
3
|
-
export { Communities, type
|
|
4
|
+
export { Communities, type CommunityCreateResponse, type CommunityDeleteResponse, type CommunityRetrieveInfoResponse, type CommunityCreateParams, type CommunityDeleteParams, type CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams, } from "./communities/index.js";
|
|
4
5
|
export { Dm, type DmRetrieveHistoryResponse, type DmSendResponse, type DmRetrieveHistoryParams, type DmSendParams, } from "./dm.js";
|
|
5
6
|
export { Followers, type FollowerCheckResponse, type FollowerCheckParams } from "./followers.js";
|
|
6
7
|
export { Lists, type ListRetrieveFollowersParams, type ListRetrieveMembersParams, type ListRetrieveTweetsParams, } from "./lists.js";
|
|
7
8
|
export { Media, type MediaDownloadResponse, type MediaUploadResponse, type MediaDownloadParams, type MediaUploadParams, } from "./media.js";
|
|
8
9
|
export { Profile, type ProfileUpdateResponse, type ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse, type ProfileUpdateParams, type ProfileUpdateAvatarParams, type ProfileUpdateBannerParams, } from "./profile.js";
|
|
9
10
|
export { Tweets, type TweetAuthor, type TweetDetail, type TweetCreateResponse, type TweetRetrieveResponse, type TweetDeleteResponse, type TweetCreateParams, type TweetListParams, type TweetDeleteParams, type TweetGetFavoritersParams, type TweetGetQuotesParams, type TweetGetRepliesParams, type TweetGetRetweetersParams, type TweetGetThreadParams, type TweetSearchParams, } from "./tweets/index.js";
|
|
10
|
-
export { Users, type UserRetrieveBatchParams, type UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams, type UserRetrieveLikesParams, type UserRetrieveMediaParams, type UserRetrieveMentionsParams, type UserRetrieveSearchParams, type UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams, } from "./users/index.js";
|
|
11
|
+
export { Users, type UserRemoveFollowerResponse, type UserRetrieveBatchResponse, type UserRemoveFollowerParams, type UserRetrieveBatchParams, type UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams, type UserRetrieveLikesParams, type UserRetrieveMediaParams, type UserRetrieveMentionsParams, type UserRetrieveRepliesParams, type UserRetrieveSearchParams, type UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams, } from "./users/index.js";
|
|
12
|
+
export { WriteActions, type WriteActionRetrieveResponse } from "./write-actions.js";
|
|
11
13
|
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, type XGetTrendsParams, } from "./x.js";
|
|
12
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,2BAA2B,EAC3B,KAAK,wCAAwC,EAC7C,KAAK,sCAAsC,GAC5C,2CAAwC;AACzC,OAAO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,sBAAmB;AACpB,OAAO,EAAE,SAAS,EAAE,KAAK,+BAA+B,EAAE,KAAK,kBAAkB,EAAE,uBAAoB;AACvG,OAAO,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,GACnC,+BAA4B;AAC7B,OAAO,EACL,EAAE,EACF,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB,gBAAa;AACd,OAAO,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,uBAAoB;AAC9F,OAAO,EACL,KAAK,EACL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,mBAAgB;AACjB,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,mBAAgB;AACjB,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,qBAAkB;AACnB,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,0BAAuB;AACxB,OAAO,EACL,KAAK,EACL,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,GACzC,yBAAsB;AACvB,OAAO,EAAE,YAAY,EAAE,KAAK,2BAA2B,EAAE,2BAAwB;AACjF,OAAO,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB,eAAY"}
|