x-twitter-scraper 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +25 -5
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +23 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -17
- package/client.d.ts.map +1 -1
- package/client.js +42 -17
- package/client.js.map +1 -1
- package/client.mjs +42 -17
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +29 -16
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/account.d.mts +59 -3
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +59 -3
- package/resources/account.d.ts.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +88 -11
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +88 -11
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +37 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +37 -4
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +4 -1
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +4 -1
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +33 -8
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +33 -8
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +12 -4
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +12 -4
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +46 -7
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +46 -7
- package/resources/events.d.ts.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +287 -17
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +287 -17
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +3 -2
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +3 -2
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +245 -0
- package/resources/guest-wallets.d.mts.map +1 -0
- package/resources/guest-wallets.d.ts +245 -0
- package/resources/guest-wallets.d.ts.map +1 -0
- package/resources/guest-wallets.js +79 -0
- package/resources/guest-wallets.js.map +1 -0
- package/resources/guest-wallets.mjs +75 -0
- package/resources/guest-wallets.mjs.map +1 -0
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +3 -0
- package/resources/monitors/index.d.mts.map +1 -0
- package/resources/monitors/index.d.ts +3 -0
- package/resources/monitors/index.d.ts.map +1 -0
- package/resources/monitors/index.js +9 -0
- package/resources/monitors/index.js.map +1 -0
- package/resources/monitors/index.mjs +4 -0
- package/resources/monitors/index.mjs.map +1 -0
- package/resources/monitors/keywords.d.mts +164 -0
- package/resources/monitors/keywords.d.mts.map +1 -0
- package/resources/monitors/keywords.d.ts +164 -0
- package/resources/monitors/keywords.d.ts.map +1 -0
- package/resources/monitors/keywords.js +80 -0
- package/resources/monitors/keywords.js.map +1 -0
- package/resources/monitors/keywords.mjs +76 -0
- package/resources/monitors/keywords.mjs.map +1 -0
- package/resources/monitors/monitors.d.mts +127 -0
- package/resources/monitors/monitors.d.mts.map +1 -0
- package/resources/monitors/monitors.d.ts +127 -0
- package/resources/monitors/monitors.d.ts.map +1 -0
- package/resources/monitors/monitors.js +84 -0
- package/resources/monitors/monitors.js.map +1 -0
- package/resources/monitors/monitors.mjs +79 -0
- package/resources/monitors/monitors.mjs.map +1 -0
- package/resources/monitors.d.mts +1 -111
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts +1 -111
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +2 -70
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +1 -68
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +3 -3
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +3 -3
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.mjs.map +1 -1
- package/resources/shared.d.mts +251 -19
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +251 -19
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +20 -6
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts +20 -6
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js +12 -4
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs +12 -4
- package/resources/subscribe.mjs.map +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +9 -7
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +9 -7
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +9 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +9 -7
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/trends.d.mts +2 -2
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +2 -2
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +34 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +34 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +11 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-challenges.d.mts +41 -0
- package/resources/x/account-connection-challenges.d.mts.map +1 -0
- package/resources/x/account-connection-challenges.d.ts +41 -0
- package/resources/x/account-connection-challenges.d.ts.map +1 -0
- package/resources/x/account-connection-challenges.js +27 -0
- package/resources/x/account-connection-challenges.js.map +1 -0
- package/resources/x/account-connection-challenges.mjs +23 -0
- package/resources/x/account-connection-challenges.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -41
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -41
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +3 -3
- package/resources/x/accounts.mjs +3 -3
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/bookmarks.d.mts +6 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +6 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +50 -14
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +50 -14
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +5 -2
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +6 -3
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -2
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -2
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +16 -12
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +16 -12
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +7 -8
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +7 -8
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/tweets.d.mts +29 -6
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +29 -6
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +5 -2
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +5 -2
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/communities.d.mts.map +1 -1
- package/resources/x/communities.d.ts.map +1 -1
- package/resources/x/communities.mjs.map +1 -1
- package/resources/x/dm.d.mts +17 -5
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +17 -5
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +2 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +2 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +2 -2
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +2 -2
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +4 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +4 -2
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +5 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +2 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/lists.d.mts +19 -0
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +19 -0
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +17 -8
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +17 -8
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -3
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +3 -4
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +8 -9
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +8 -9
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +4 -4
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +5 -5
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +442 -29
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +442 -29
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/tweets.d.mts.map +1 -1
- package/resources/x/tweets.d.ts.map +1 -1
- package/resources/x/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +666 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +666 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +26 -4
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +26 -4
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/users.d.mts.map +1 -1
- package/resources/x/users.d.ts.map +1 -1
- package/resources/x/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +51 -0
- package/resources/x/write-actions.d.mts.map +1 -0
- package/resources/x/write-actions.d.ts +51 -0
- package/resources/x/write-actions.d.ts.map +1 -0
- package/resources/x/write-actions.js +26 -0
- package/resources/x/write-actions.js.map +1 -0
- package/resources/x/write-actions.mjs +22 -0
- package/resources/x/write-actions.mjs.map +1 -0
- package/resources/x/x.d.mts +65 -12
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +65 -12
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +10 -1
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +10 -1
- package/resources/x/x.mjs.map +1 -1
- package/resources/x.d.mts.map +1 -1
- package/resources/x.d.ts.map +1 -1
- package/resources/x.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +86 -40
- package/src/internal/request-options.ts +2 -0
- package/src/internal/utils/log.ts +2 -1
- package/src/resources/account.ts +72 -5
- package/src/resources/credits.ts +117 -10
- package/src/resources/drafts.ts +4 -1
- package/src/resources/draws.ts +33 -12
- package/src/resources/events.ts +52 -7
- package/src/resources/extractions.ts +364 -12
- package/src/resources/guest-wallets.ts +337 -0
- package/src/resources/index.ts +15 -10
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +221 -0
- package/src/resources/monitors/monitors.ts +195 -0
- package/src/resources/monitors.ts +1 -153
- package/src/resources/radar.ts +3 -3
- package/src/resources/shared.ts +463 -21
- package/src/resources/subscribe.ts +29 -8
- package/src/resources/support/tickets.ts +9 -7
- package/src/resources/trends.ts +2 -2
- package/src/resources/webhooks.ts +43 -0
- package/src/resources/x/account-connection-challenges.ts +61 -0
- package/src/resources/x/accounts.ts +15 -46
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +68 -16
- package/src/resources/x/communities/index.ts +7 -2
- package/src/resources/x/communities/join.ts +23 -16
- package/src/resources/x/communities/tweets.ts +32 -6
- package/src/resources/x/dm.ts +20 -7
- package/src/resources/x/followers.ts +2 -2
- package/src/resources/x/index.ts +10 -1
- package/src/resources/x/lists.ts +22 -0
- package/src/resources/x/media.ts +25 -11
- package/src/resources/x/profile.ts +11 -12
- package/src/resources/x/tweets/tweets.ts +540 -32
- package/src/resources/x/users/index.ts +4 -0
- package/src/resources/x/users/users.ts +834 -8
- package/src/resources/x/write-actions.ts +79 -0
- package/src/resources/x/x.ts +107 -10
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/api-keys.d.mts +0 -68
- package/resources/api-keys.d.mts.map +0 -1
- package/resources/api-keys.d.ts +0 -68
- package/resources/api-keys.d.ts.map +0 -1
- package/resources/api-keys.js +0 -48
- package/resources/api-keys.js.map +0 -1
- package/resources/api-keys.mjs +0 -44
- package/resources/api-keys.mjs.map +0 -1
- package/resources/bot/bot.d.mts +0 -10
- package/resources/bot/bot.d.mts.map +0 -1
- package/resources/bot/bot.d.ts +0 -10
- package/resources/bot/bot.d.ts.map +0 -1
- package/resources/bot/bot.js +0 -17
- package/resources/bot/bot.js.map +0 -1
- package/resources/bot/bot.mjs +0 -12
- package/resources/bot/bot.mjs.map +0 -1
- package/resources/bot/index.d.mts +0 -3
- package/resources/bot/index.d.mts.map +0 -1
- package/resources/bot/index.d.ts +0 -3
- package/resources/bot/index.d.ts.map +0 -1
- package/resources/bot/index.js +0 -9
- package/resources/bot/index.js.map +0 -1
- package/resources/bot/index.mjs +0 -4
- package/resources/bot/index.mjs.map +0 -1
- package/resources/bot/platform-links.d.mts +0 -4
- package/resources/bot/platform-links.d.mts.map +0 -1
- package/resources/bot/platform-links.d.ts +0 -4
- package/resources/bot/platform-links.d.ts.map +0 -1
- package/resources/bot/platform-links.js +0 -9
- package/resources/bot/platform-links.js.map +0 -1
- package/resources/bot/platform-links.mjs +0 -5
- package/resources/bot/platform-links.mjs.map +0 -1
- package/resources/bot.d.mts +0 -2
- package/resources/bot.d.mts.map +0 -1
- package/resources/bot.d.ts +0 -2
- package/resources/bot.d.ts.map +0 -1
- package/resources/bot.js +0 -6
- package/resources/bot.js.map +0 -1
- package/resources/bot.mjs +0 -3
- package/resources/bot.mjs.map +0 -1
- package/src/resources/api-keys.ts +0 -100
- package/src/resources/bot/bot.ts +0 -15
- package/src/resources/bot/index.ts +0 -4
- package/src/resources/bot/platform-links.ts +0 -5
- package/src/resources/bot.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAA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
export interface BookmarkRetrieveFoldersResponse {
|
|
29
29
|
folders: Array<BookmarkRetrieveFoldersResponse.Folder>;
|
|
30
|
+
/**
|
|
31
|
+
* Always false for the current bookmark folder route
|
|
32
|
+
*/
|
|
30
33
|
has_next_page: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Always empty for the current bookmark folder route
|
|
36
|
+
*/
|
|
31
37
|
next_cursor: string;
|
|
32
38
|
}
|
|
33
39
|
export declare namespace BookmarkRetrieveFoldersResponse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookmarks.d.mts","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bookmarks.d.mts","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;IAIrC;;;;;;;OAOG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;CAGvF;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,KAAK,CAAC,+BAA+B,CAAC,MAAM,CAAC,CAAC;IAEvD;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QAEX,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -27,7 +27,13 @@ export declare class Bookmarks extends APIResource {
|
|
|
27
27
|
}
|
|
28
28
|
export interface BookmarkRetrieveFoldersResponse {
|
|
29
29
|
folders: Array<BookmarkRetrieveFoldersResponse.Folder>;
|
|
30
|
+
/**
|
|
31
|
+
* Always false for the current bookmark folder route
|
|
32
|
+
*/
|
|
30
33
|
has_next_page: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Always empty for the current bookmark folder route
|
|
36
|
+
*/
|
|
31
37
|
next_cursor: string;
|
|
32
38
|
}
|
|
33
39
|
export declare namespace BookmarkRetrieveFoldersResponse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookmarks.d.ts","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bookmarks.d.ts","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;IAIrC;;;;;;;OAOG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;CAGvF;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,KAAK,CAAC,+BAA+B,CAAC,MAAM,CAAC,CAAC;IAEvD;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QAEX,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookmarks.mjs","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"bookmarks.mjs","sourceRoot":"","sources":["../../src/resources/x/bookmarks.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../../shared.mjs";
|
|
3
3
|
import * as JoinAPI from "./join.mjs";
|
|
4
|
-
import { Join, JoinCreateParams, JoinDeleteAllParams } from "./join.mjs";
|
|
4
|
+
import { Join, JoinCreateParams, JoinCreateResponse, JoinDeleteAllParams, JoinDeleteAllResponse } from "./join.mjs";
|
|
5
5
|
import * as TweetsAPI from "./tweets.mjs";
|
|
6
6
|
import { TweetListByCommunityParams, TweetListParams, Tweets } from "./tweets.mjs";
|
|
7
7
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
@@ -66,24 +66,19 @@ export declare class Communities extends APIResource {
|
|
|
66
66
|
*/
|
|
67
67
|
retrieveModerators(id: string, query?: CommunityRetrieveModeratorsParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Returns tweets, not community records. Requires a Community ID.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* ```ts
|
|
73
73
|
* const paginatedTweets =
|
|
74
|
-
* await client.x.communities.retrieveSearch({
|
|
74
|
+
* await client.x.communities.retrieveSearch({
|
|
75
|
+
* communityId: '321669910225',
|
|
76
|
+
* q: 'q',
|
|
77
|
+
* });
|
|
75
78
|
* ```
|
|
76
79
|
*/
|
|
77
80
|
retrieveSearch(query: CommunityRetrieveSearchParams, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
78
81
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Result of a community join or leave action.
|
|
81
|
-
*/
|
|
82
|
-
export interface CommunityActionResult {
|
|
83
|
-
communityId: string;
|
|
84
|
-
communityName: string;
|
|
85
|
-
success: true;
|
|
86
|
-
}
|
|
87
82
|
export interface CommunityCreateResponse {
|
|
88
83
|
communityId: string;
|
|
89
84
|
success: true;
|
|
@@ -115,10 +110,23 @@ export declare namespace CommunityRetrieveInfoResponse {
|
|
|
115
110
|
* Community creation timestamp
|
|
116
111
|
*/
|
|
117
112
|
created_at?: string;
|
|
113
|
+
creator?: Community.Creator;
|
|
118
114
|
/**
|
|
119
115
|
* About text for the community
|
|
120
116
|
*/
|
|
121
117
|
description?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Invitation policy
|
|
120
|
+
*/
|
|
121
|
+
invites_policy?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the authenticated viewer is a member
|
|
124
|
+
*/
|
|
125
|
+
is_member?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the community is marked sensitive
|
|
128
|
+
*/
|
|
129
|
+
is_nsfw?: boolean;
|
|
122
130
|
/**
|
|
123
131
|
* Join policy (open or restricted)
|
|
124
132
|
*/
|
|
@@ -139,12 +147,22 @@ export declare namespace CommunityRetrieveInfoResponse {
|
|
|
139
147
|
* Primary topic
|
|
140
148
|
*/
|
|
141
149
|
primary_topic?: Community.PrimaryTopic;
|
|
150
|
+
/**
|
|
151
|
+
* Authenticated viewer's community role
|
|
152
|
+
*/
|
|
153
|
+
role?: string;
|
|
142
154
|
/**
|
|
143
155
|
* Community rules
|
|
144
156
|
*/
|
|
145
157
|
rules?: Array<Community.Rule>;
|
|
146
158
|
}
|
|
147
159
|
namespace Community {
|
|
160
|
+
interface Creator {
|
|
161
|
+
id: string;
|
|
162
|
+
username: string;
|
|
163
|
+
verified: boolean;
|
|
164
|
+
name?: string;
|
|
165
|
+
}
|
|
148
166
|
/**
|
|
149
167
|
* Primary topic
|
|
150
168
|
*/
|
|
@@ -188,6 +206,12 @@ export interface CommunityRetrieveMembersParams {
|
|
|
188
206
|
* Pagination cursor
|
|
189
207
|
*/
|
|
190
208
|
cursor?: string;
|
|
209
|
+
/**
|
|
210
|
+
* Items per page (20-200, default 20). This is an upper bound for paid
|
|
211
|
+
* authenticated calls: available usage balance can reduce the returned page size, and
|
|
212
|
+
* zero affordable results returns 402 insufficient_credits.
|
|
213
|
+
*/
|
|
214
|
+
pageSize?: number;
|
|
191
215
|
}
|
|
192
216
|
export interface CommunityRetrieveModeratorsParams {
|
|
193
217
|
/**
|
|
@@ -196,6 +220,10 @@ export interface CommunityRetrieveModeratorsParams {
|
|
|
196
220
|
cursor?: string;
|
|
197
221
|
}
|
|
198
222
|
export interface CommunityRetrieveSearchParams {
|
|
223
|
+
/**
|
|
224
|
+
* Numeric ID of the community whose posts to search
|
|
225
|
+
*/
|
|
226
|
+
communityId: string;
|
|
199
227
|
/**
|
|
200
228
|
* Search query
|
|
201
229
|
*/
|
|
@@ -204,14 +232,22 @@ export interface CommunityRetrieveSearchParams {
|
|
|
204
232
|
* Pagination cursor for community search
|
|
205
233
|
*/
|
|
206
234
|
cursor?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
237
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
238
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
239
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
240
|
+
* aliases remain accepted.
|
|
241
|
+
*/
|
|
242
|
+
pageSize?: number;
|
|
207
243
|
/**
|
|
208
244
|
* Sort order (Latest or Top)
|
|
209
245
|
*/
|
|
210
|
-
queryType?:
|
|
246
|
+
queryType?: 'Latest' | 'Top';
|
|
211
247
|
}
|
|
212
248
|
export declare namespace Communities {
|
|
213
|
-
export { type
|
|
214
|
-
export { Join as Join, type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams, };
|
|
249
|
+
export { type CommunityCreateResponse as CommunityCreateResponse, type CommunityDeleteResponse as CommunityDeleteResponse, type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse, type CommunityCreateParams as CommunityCreateParams, type CommunityDeleteParams as CommunityDeleteParams, type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams, };
|
|
250
|
+
export { Join as Join, type JoinCreateResponse as JoinCreateResponse, type JoinDeleteAllResponse as JoinDeleteAllResponse, type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams, };
|
|
215
251
|
export { Tweets as Tweets, type TweetListParams as TweetListParams, type TweetListByCommunityParams as TweetListByCommunityParams, };
|
|
216
252
|
}
|
|
217
253
|
//# sourceMappingURL=communities.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/communities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"communities.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/communities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EACL,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,mBAAe;AAChB,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,EAAE,qBAAiB;AAC/E,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,q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1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as Shared from "../../shared.js";
|
|
3
3
|
import * as JoinAPI from "./join.js";
|
|
4
|
-
import { Join, JoinCreateParams, JoinDeleteAllParams } from "./join.js";
|
|
4
|
+
import { Join, JoinCreateParams, JoinCreateResponse, JoinDeleteAllParams, JoinDeleteAllResponse } from "./join.js";
|
|
5
5
|
import * as TweetsAPI from "./tweets.js";
|
|
6
6
|
import { TweetListByCommunityParams, TweetListParams, Tweets } from "./tweets.js";
|
|
7
7
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
@@ -66,24 +66,19 @@ export declare class Communities extends APIResource {
|
|
|
66
66
|
*/
|
|
67
67
|
retrieveModerators(id: string, query?: CommunityRetrieveModeratorsParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Returns tweets, not community records. Requires a Community ID.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* ```ts
|
|
73
73
|
* const paginatedTweets =
|
|
74
|
-
* await client.x.communities.retrieveSearch({
|
|
74
|
+
* await client.x.communities.retrieveSearch({
|
|
75
|
+
* communityId: '321669910225',
|
|
76
|
+
* q: 'q',
|
|
77
|
+
* });
|
|
75
78
|
* ```
|
|
76
79
|
*/
|
|
77
80
|
retrieveSearch(query: CommunityRetrieveSearchParams, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
78
81
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Result of a community join or leave action.
|
|
81
|
-
*/
|
|
82
|
-
export interface CommunityActionResult {
|
|
83
|
-
communityId: string;
|
|
84
|
-
communityName: string;
|
|
85
|
-
success: true;
|
|
86
|
-
}
|
|
87
82
|
export interface CommunityCreateResponse {
|
|
88
83
|
communityId: string;
|
|
89
84
|
success: true;
|
|
@@ -115,10 +110,23 @@ export declare namespace CommunityRetrieveInfoResponse {
|
|
|
115
110
|
* Community creation timestamp
|
|
116
111
|
*/
|
|
117
112
|
created_at?: string;
|
|
113
|
+
creator?: Community.Creator;
|
|
118
114
|
/**
|
|
119
115
|
* About text for the community
|
|
120
116
|
*/
|
|
121
117
|
description?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Invitation policy
|
|
120
|
+
*/
|
|
121
|
+
invites_policy?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the authenticated viewer is a member
|
|
124
|
+
*/
|
|
125
|
+
is_member?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the community is marked sensitive
|
|
128
|
+
*/
|
|
129
|
+
is_nsfw?: boolean;
|
|
122
130
|
/**
|
|
123
131
|
* Join policy (open or restricted)
|
|
124
132
|
*/
|
|
@@ -139,12 +147,22 @@ export declare namespace CommunityRetrieveInfoResponse {
|
|
|
139
147
|
* Primary topic
|
|
140
148
|
*/
|
|
141
149
|
primary_topic?: Community.PrimaryTopic;
|
|
150
|
+
/**
|
|
151
|
+
* Authenticated viewer's community role
|
|
152
|
+
*/
|
|
153
|
+
role?: string;
|
|
142
154
|
/**
|
|
143
155
|
* Community rules
|
|
144
156
|
*/
|
|
145
157
|
rules?: Array<Community.Rule>;
|
|
146
158
|
}
|
|
147
159
|
namespace Community {
|
|
160
|
+
interface Creator {
|
|
161
|
+
id: string;
|
|
162
|
+
username: string;
|
|
163
|
+
verified: boolean;
|
|
164
|
+
name?: string;
|
|
165
|
+
}
|
|
148
166
|
/**
|
|
149
167
|
* Primary topic
|
|
150
168
|
*/
|
|
@@ -188,6 +206,12 @@ export interface CommunityRetrieveMembersParams {
|
|
|
188
206
|
* Pagination cursor
|
|
189
207
|
*/
|
|
190
208
|
cursor?: string;
|
|
209
|
+
/**
|
|
210
|
+
* Items per page (20-200, default 20). This is an upper bound for paid
|
|
211
|
+
* authenticated calls: available usage balance can reduce the returned page size, and
|
|
212
|
+
* zero affordable results returns 402 insufficient_credits.
|
|
213
|
+
*/
|
|
214
|
+
pageSize?: number;
|
|
191
215
|
}
|
|
192
216
|
export interface CommunityRetrieveModeratorsParams {
|
|
193
217
|
/**
|
|
@@ -196,6 +220,10 @@ export interface CommunityRetrieveModeratorsParams {
|
|
|
196
220
|
cursor?: string;
|
|
197
221
|
}
|
|
198
222
|
export interface CommunityRetrieveSearchParams {
|
|
223
|
+
/**
|
|
224
|
+
* Numeric ID of the community whose posts to search
|
|
225
|
+
*/
|
|
226
|
+
communityId: string;
|
|
199
227
|
/**
|
|
200
228
|
* Search query
|
|
201
229
|
*/
|
|
@@ -204,14 +232,22 @@ export interface CommunityRetrieveSearchParams {
|
|
|
204
232
|
* Pagination cursor for community search
|
|
205
233
|
*/
|
|
206
234
|
cursor?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
237
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
238
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
239
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
240
|
+
* aliases remain accepted.
|
|
241
|
+
*/
|
|
242
|
+
pageSize?: number;
|
|
207
243
|
/**
|
|
208
244
|
* Sort order (Latest or Top)
|
|
209
245
|
*/
|
|
210
|
-
queryType?:
|
|
246
|
+
queryType?: 'Latest' | 'Top';
|
|
211
247
|
}
|
|
212
248
|
export declare namespace Communities {
|
|
213
|
-
export { type
|
|
214
|
-
export { Join as Join, type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams, };
|
|
249
|
+
export { type CommunityCreateResponse as CommunityCreateResponse, type CommunityDeleteResponse as CommunityDeleteResponse, type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse, type CommunityCreateParams as CommunityCreateParams, type CommunityDeleteParams as CommunityDeleteParams, type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams, };
|
|
250
|
+
export { Join as Join, type JoinCreateResponse as JoinCreateResponse, type JoinDeleteAllResponse as JoinDeleteAllResponse, type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams, };
|
|
215
251
|
export { Tweets as Tweets, type TweetListParams as TweetListParams, type TweetListByCommunityParams as TweetListByCommunityParams, };
|
|
216
252
|
}
|
|
217
253
|
//# sourceMappingURL=communities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/communities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"communities.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/communities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,EACL,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,kBAAe;AAChB,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,EAAE,oBAAiB;AAC/E,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,EAAE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AC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;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;AAKD,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -82,12 +82,15 @@ class Communities extends resource_1.APIResource {
|
|
|
82
82
|
return this._client.get((0, path_1.path) `/x/communities/${id}/moderators`, { query, ...options });
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Returns tweets, not community records. Requires a Community ID.
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```ts
|
|
89
89
|
* const paginatedTweets =
|
|
90
|
-
* await client.x.communities.retrieveSearch({
|
|
90
|
+
* await client.x.communities.retrieveSearch({
|
|
91
|
+
* communityId: '321669910225',
|
|
92
|
+
* q: 'q',
|
|
93
|
+
* });
|
|
91
94
|
* ```
|
|
92
95
|
*/
|
|
93
96
|
retrieveSearch(query, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities.js","sourceRoot":"","sources":["../../../src/resources/x/communities/communities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,2DAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"communities.js","sourceRoot":"","sources":["../../../src/resources/x/communities/communities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,2DAAkC;AAClC,oCAMgB;AAChB,+DAAsC;AACtC,wCAA+E;AAG/E,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuGhE,CAAC;IArGC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;OAQG;IACH,eAAe,CACb,EAAU,EACV,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;OAQG;IACH,kBAAkB,CAChB,EAAU,EACV,QAA8D,EAAE,EAChE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,KAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAzGD,kCAyGC;AAkND,WAAW,CAAC,IAAI,GAAG,WAAI,CAAC;AACxB,WAAW,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as JoinAPI from "./join.mjs";
|
|
4
|
-
import { Join } from "./join.mjs";
|
|
4
|
+
import { Join, } from "./join.mjs";
|
|
5
5
|
import * as TweetsAPI from "./tweets.mjs";
|
|
6
6
|
import { Tweets } from "./tweets.mjs";
|
|
7
7
|
import { path } from "../../../internal/utils/path.mjs";
|
|
@@ -78,12 +78,15 @@ export class Communities extends APIResource {
|
|
|
78
78
|
return this._client.get(path `/x/communities/${id}/moderators`, { query, ...options });
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Returns tweets, not community records. Requires a Community ID.
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* ```ts
|
|
85
85
|
* const paginatedTweets =
|
|
86
|
-
* await client.x.communities.retrieveSearch({
|
|
86
|
+
* await client.x.communities.retrieveSearch({
|
|
87
|
+
* communityId: '321669910225',
|
|
88
|
+
* q: 'q',
|
|
89
|
+
* });
|
|
87
90
|
* ```
|
|
88
91
|
*/
|
|
89
92
|
retrieveSearch(query, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/communities.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"communities.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/communities.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EACL,IAAI,GAKL,mBAAe;AAChB,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAA+C,MAAM,EAAE,qBAAiB;AAG/E,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuGhE,CAAC;IArGC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAw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C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Communities, type
|
|
2
|
-
export { Join, type JoinCreateParams, type JoinDeleteAllParams } from "./join.mjs";
|
|
1
|
+
export { Communities, type CommunityCreateResponse, type CommunityDeleteResponse, type CommunityRetrieveInfoResponse, type CommunityCreateParams, type CommunityDeleteParams, type CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams, } from "./communities.mjs";
|
|
2
|
+
export { Join, type JoinCreateResponse, type JoinDeleteAllResponse, type JoinCreateParams, type JoinDeleteAllParams, } from "./join.mjs";
|
|
3
3
|
export { Tweets, type TweetListParams, type TweetListByCommunityParams } from "./tweets.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/index.ts"],"names":[],"mappings":"AAEA,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,0BAAsB;AACvB,OAAO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB,mBAAe;AAChB,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,0BAA0B,EAAE,qBAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Communities, type
|
|
2
|
-
export { Join, type JoinCreateParams, type JoinDeleteAllParams } from "./join.js";
|
|
1
|
+
export { Communities, type CommunityCreateResponse, type CommunityDeleteResponse, type CommunityRetrieveInfoResponse, type CommunityCreateParams, type CommunityDeleteParams, type CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams, } from "./communities.js";
|
|
2
|
+
export { Join, type JoinCreateResponse, type JoinDeleteAllResponse, type JoinCreateParams, type JoinDeleteAllParams, } from "./join.js";
|
|
3
3
|
export { Tweets, type TweetListParams, type TweetListByCommunityParams } from "./tweets.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/index.ts"],"names":[],"mappings":"AAEA,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,yBAAsB;AACvB,OAAO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB,kBAAe;AAChB,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,0BAA0B,EAAE,oBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/x/communities/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/x/communities/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,kCAMgB;AALd,4FAAA,IAAI,OAAA;AAMN,sCAAyF;AAAhF,gGAAA,MAAM,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Communities, } from "./communities.mjs";
|
|
3
|
-
export { Join } from "./join.mjs";
|
|
3
|
+
export { Join, } from "./join.mjs";
|
|
4
4
|
export { Tweets } from "./tweets.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GASZ,0BAAsB;AACvB,OAAO,EACL,IAAI,GAKL,mBAAe;AAChB,OAAO,EAAE,MAAM,EAAyD,qBAAiB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as CommunitiesAPI from "./communities.mjs";
|
|
3
2
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
4
|
/**
|
|
@@ -11,25 +10,30 @@ export declare class Join extends APIResource {
|
|
|
11
10
|
*
|
|
12
11
|
* @example
|
|
13
12
|
* ```ts
|
|
14
|
-
* const
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* });
|
|
13
|
+
* const join = await client.x.communities.join.create('id', {
|
|
14
|
+
* account: '@elonmusk',
|
|
15
|
+
* });
|
|
18
16
|
* ```
|
|
19
17
|
*/
|
|
20
|
-
create(id: string, body: JoinCreateParams, options?: RequestOptions): APIPromise<
|
|
18
|
+
create(id: string, body: JoinCreateParams, options?: RequestOptions): APIPromise<JoinCreateResponse>;
|
|
21
19
|
/**
|
|
22
20
|
* Leave community
|
|
23
21
|
*
|
|
24
22
|
* @example
|
|
25
23
|
* ```ts
|
|
26
|
-
* const
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
24
|
+
* const response = await client.x.communities.join.deleteAll(
|
|
25
|
+
* 'id',
|
|
26
|
+
* { account: '@elonmusk' },
|
|
27
|
+
* );
|
|
30
28
|
* ```
|
|
31
29
|
*/
|
|
32
|
-
deleteAll(id: string, body: JoinDeleteAllParams, options?: RequestOptions): APIPromise<
|
|
30
|
+
deleteAll(id: string, body: JoinDeleteAllParams, options?: RequestOptions): APIPromise<JoinDeleteAllResponse>;
|
|
31
|
+
}
|
|
32
|
+
export interface JoinCreateResponse {
|
|
33
|
+
success: true;
|
|
34
|
+
}
|
|
35
|
+
export interface JoinDeleteAllResponse {
|
|
36
|
+
success: true;
|
|
33
37
|
}
|
|
34
38
|
export interface JoinCreateParams {
|
|
35
39
|
/**
|
|
@@ -44,6 +48,6 @@ export interface JoinDeleteAllParams {
|
|
|
44
48
|
account: string;
|
|
45
49
|
}
|
|
46
50
|
export declare namespace Join {
|
|
47
|
-
export { type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams };
|
|
51
|
+
export { type JoinCreateResponse as JoinCreateResponse, type JoinDeleteAllResponse as JoinDeleteAllResponse, type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams, };
|
|
48
52
|
}
|
|
49
53
|
//# sourceMappingURL=join.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"join.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIpG;;;;;;;;;;OAUG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAGrC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as CommunitiesAPI from "./communities.js";
|
|
3
2
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
4
|
/**
|
|
@@ -11,25 +10,30 @@ export declare class Join extends APIResource {
|
|
|
11
10
|
*
|
|
12
11
|
* @example
|
|
13
12
|
* ```ts
|
|
14
|
-
* const
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* });
|
|
13
|
+
* const join = await client.x.communities.join.create('id', {
|
|
14
|
+
* account: '@elonmusk',
|
|
15
|
+
* });
|
|
18
16
|
* ```
|
|
19
17
|
*/
|
|
20
|
-
create(id: string, body: JoinCreateParams, options?: RequestOptions): APIPromise<
|
|
18
|
+
create(id: string, body: JoinCreateParams, options?: RequestOptions): APIPromise<JoinCreateResponse>;
|
|
21
19
|
/**
|
|
22
20
|
* Leave community
|
|
23
21
|
*
|
|
24
22
|
* @example
|
|
25
23
|
* ```ts
|
|
26
|
-
* const
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
24
|
+
* const response = await client.x.communities.join.deleteAll(
|
|
25
|
+
* 'id',
|
|
26
|
+
* { account: '@elonmusk' },
|
|
27
|
+
* );
|
|
30
28
|
* ```
|
|
31
29
|
*/
|
|
32
|
-
deleteAll(id: string, body: JoinDeleteAllParams, options?: RequestOptions): APIPromise<
|
|
30
|
+
deleteAll(id: string, body: JoinDeleteAllParams, options?: RequestOptions): APIPromise<JoinDeleteAllResponse>;
|
|
31
|
+
}
|
|
32
|
+
export interface JoinCreateResponse {
|
|
33
|
+
success: true;
|
|
34
|
+
}
|
|
35
|
+
export interface JoinDeleteAllResponse {
|
|
36
|
+
success: true;
|
|
33
37
|
}
|
|
34
38
|
export interface JoinCreateParams {
|
|
35
39
|
/**
|
|
@@ -44,6 +48,6 @@ export interface JoinDeleteAllParams {
|
|
|
44
48
|
account: string;
|
|
45
49
|
}
|
|
46
50
|
export declare namespace Join {
|
|
47
|
-
export { type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams };
|
|
51
|
+
export { type JoinCreateResponse as JoinCreateResponse, type JoinDeleteAllResponse as JoinDeleteAllResponse, type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams, };
|
|
48
52
|
}
|
|
49
53
|
//# sourceMappingURL=join.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIpG;;;;;;;;;;OAUG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAGrC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|