x-twitter-scraper 0.12.4 → 0.13.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 +80 -0
- package/README.md +56 -29
- package/client.d.mts +18 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -15
- package/client.d.ts.map +1 -1
- package/client.js +4 -4
- package/client.js.map +1 -1
- package/client.mjs +5 -5
- 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.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js +0 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs +0 -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/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +269 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +264 -0
- package/core/streaming.mjs.map +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +115 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +110 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +0 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +0 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +0 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +0 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +0 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +0 -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.js +7 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +7 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- 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/shim-types.d.mts.map +1 -1
- package/internal/shim-types.d.ts.map +1 -1
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +0 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +0 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js +0 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +0 -1
- package/internal/utils/env.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 +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +0 -1
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +0 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/sleep.js +0 -1
- package/internal/utils/sleep.js.map +1 -1
- package/internal/utils/sleep.mjs +0 -1
- package/internal/utils/sleep.mjs.map +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +0 -1
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +0 -1
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +0 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +0 -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.js +0 -1
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +0 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +23 -5
- package/resources/account.d.mts +35 -12
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +35 -12
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +4 -4
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +4 -4
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts +77 -21
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +77 -21
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js +3 -5
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +3 -5
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +18 -10
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +18 -10
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +5 -5
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +5 -5
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +13 -17
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +13 -17
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +4 -5
- package/resources/drafts.js.map +1 -1
- package/resources/drafts.mjs +4 -5
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +84 -28
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +84 -28
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +24 -10
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +24 -10
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +2564 -21
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +2564 -21
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +34 -3
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +34 -3
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +410 -128
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +410 -128
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +74 -13
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +74 -13
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +6 -5
- package/resources/guest-wallets.d.mts.map +1 -1
- package/resources/guest-wallets.d.ts +6 -5
- package/resources/guest-wallets.d.ts.map +1 -1
- package/resources/guest-wallets.js +2 -2
- package/resources/guest-wallets.js.map +1 -1
- package/resources/guest-wallets.mjs +2 -2
- package/resources/guest-wallets.mjs.map +1 -1
- package/resources/index.d.mts +6 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +0 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +2 -2
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -2
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js +0 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs +0 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +66 -14
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +66 -14
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/keywords.js +16 -11
- package/resources/monitors/keywords.js.map +1 -1
- package/resources/monitors/keywords.mjs +16 -11
- package/resources/monitors/keywords.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +53 -16
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +53 -16
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +12 -11
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +12 -11
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +0 -1
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +0 -1
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +32 -36
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +32 -36
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.js +1 -2
- package/resources/radar.js.map +1 -1
- package/resources/radar.mjs +1 -2
- package/resources/radar.mjs.map +1 -1
- package/resources/shared.d.mts +1726 -233
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1726 -233
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts +34 -23
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts +34 -23
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.js +11 -14
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +11 -14
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +1 -1
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts +1 -1
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js +1 -2
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs +1 -2
- package/resources/subscribe.mjs.map +1 -1
- package/resources/support/attachments.d.mts.map +1 -1
- package/resources/support/attachments.d.ts.map +1 -1
- package/resources/support/attachments.js +0 -1
- package/resources/support/attachments.js.map +1 -1
- package/resources/support/attachments.mjs +0 -1
- package/resources/support/attachments.mjs.map +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js +0 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs +0 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js +0 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs +0 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +30 -10
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +30 -10
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +7 -8
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +7 -8
- 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.js +0 -1
- package/resources/support.js.map +1 -1
- package/resources/support.mjs +0 -1
- package/resources/support.mjs.map +1 -1
- package/resources/trends.d.mts +21 -5
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +21 -5
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.js +2 -2
- package/resources/trends.js.map +1 -1
- package/resources/trends.mjs +2 -2
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +80 -14
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -14
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +30 -12
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +30 -12
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +1 -1
- package/resources/x/account-connection-attempts.d.mts.map +1 -1
- package/resources/x/account-connection-attempts.d.ts +1 -1
- package/resources/x/account-connection-attempts.d.ts.map +1 -1
- package/resources/x/account-connection-attempts.js +1 -2
- package/resources/x/account-connection-attempts.js.map +1 -1
- package/resources/x/account-connection-attempts.mjs +1 -2
- package/resources/x/account-connection-attempts.mjs.map +1 -1
- package/resources/x/account-connection-challenges.d.mts +30 -11
- package/resources/x/account-connection-challenges.d.mts.map +1 -1
- package/resources/x/account-connection-challenges.d.ts +30 -11
- package/resources/x/account-connection-challenges.d.ts.map +1 -1
- package/resources/x/account-connection-challenges.js +5 -5
- package/resources/x/account-connection-challenges.js.map +1 -1
- package/resources/x/account-connection-challenges.mjs +5 -5
- package/resources/x/account-connection-challenges.mjs.map +1 -1
- package/resources/x/accounts.d.mts +38 -10
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +38 -10
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +8 -8
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +8 -8
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/analysis.d.mts +3274 -0
- package/resources/x/analysis.d.mts.map +1 -0
- package/resources/x/analysis.d.ts +3274 -0
- package/resources/x/analysis.d.ts.map +1 -0
- package/resources/x/analysis.js +131 -0
- package/resources/x/analysis.js.map +1 -0
- package/resources/x/analysis.mjs +127 -0
- package/resources/x/analysis.mjs.map +1 -0
- package/resources/x/bookmarks.d.mts +84 -9
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +84 -9
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.js +6 -5
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +6 -5
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +176 -0
- package/resources/x/broadcasts.d.mts.map +1 -0
- package/resources/x/broadcasts.d.ts +176 -0
- package/resources/x/broadcasts.d.ts.map +1 -0
- package/resources/x/broadcasts.js +28 -0
- package/resources/x/broadcasts.js.map +1 -0
- package/resources/x/broadcasts.mjs +24 -0
- package/resources/x/broadcasts.mjs.map +1 -0
- package/resources/x/communities/communities.d.mts +612 -128
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +612 -128
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +96 -18
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +96 -18
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js +3 -2
- 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 +46 -25
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +46 -25
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +10 -8
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +10 -8
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/media.d.mts +197 -0
- package/resources/x/communities/media.d.mts.map +1 -0
- package/resources/x/communities/media.d.ts +197 -0
- package/resources/x/communities/media.d.ts.map +1 -0
- package/resources/x/communities/media.js +28 -0
- package/resources/x/communities/media.js.map +1 -0
- package/resources/x/communities/media.mjs +24 -0
- package/resources/x/communities/media.mjs.map +1 -0
- package/resources/x/communities/tweets.d.mts +350 -20
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +350 -20
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +8 -8
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +8 -8
- 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.js +0 -1
- package/resources/x/communities.js.map +1 -1
- package/resources/x/communities.mjs +0 -1
- package/resources/x/communities.mjs.map +1 -1
- package/resources/x/dm.d.mts +245 -13
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +245 -13
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +29 -3
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +29 -3
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +31 -3
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +31 -3
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.js +2 -2
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +2 -2
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +12 -8
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +12 -8
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +9 -2
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +5 -2
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +506 -0
- package/resources/x/jobs.d.mts.map +1 -0
- package/resources/x/jobs.d.ts +506 -0
- package/resources/x/jobs.d.ts.map +1 -0
- package/resources/x/jobs.js +59 -0
- package/resources/x/jobs.js.map +1 -0
- package/resources/x/jobs.mjs +55 -0
- package/resources/x/jobs.mjs.map +1 -0
- package/resources/x/lists.d.mts +1058 -27
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +1058 -27
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.js +39 -10
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +39 -10
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +24 -13
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +24 -13
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -3
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +2 -3
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +60 -33
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +60 -33
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +3 -4
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +3 -4
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/spaces.d.mts +857 -0
- package/resources/x/spaces.d.mts.map +1 -0
- package/resources/x/spaces.d.ts +857 -0
- package/resources/x/spaces.d.ts.map +1 -0
- package/resources/x/spaces.js +57 -0
- package/resources/x/spaces.js.map +1 -0
- package/resources/x/spaces.mjs +53 -0
- package/resources/x/spaces.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js +0 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs +0 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +38 -20
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +38 -20
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +2 -3
- package/resources/x/tweets/like.js.map +1 -1
- package/resources/x/tweets/like.mjs +2 -3
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts +38 -20
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +38 -20
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +2 -3
- package/resources/x/tweets/retweet.js.map +1 -1
- package/resources/x/tweets/retweet.mjs +2 -3
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +2639 -326
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +2639 -326
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +147 -22
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +147 -22
- 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.js +0 -1
- package/resources/x/tweets.js.map +1 -1
- package/resources/x/tweets.mjs +0 -1
- package/resources/x/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +38 -20
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +38 -20
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +2 -3
- package/resources/x/users/follow.js.map +1 -1
- package/resources/x/users/follow.mjs +2 -3
- 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 +0 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs +0 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +3068 -457
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +3068 -457
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +205 -23
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +205 -23
- 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.js +0 -1
- package/resources/x/users.js.map +1 -1
- package/resources/x/users.mjs +0 -1
- package/resources/x/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +13 -6
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +13 -6
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/write-actions.js +1 -2
- package/resources/x/write-actions.js.map +1 -1
- package/resources/x/write-actions.mjs +1 -2
- package/resources/x/write-actions.mjs.map +1 -1
- package/resources/x/x.d.mts +864 -27
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +864 -27
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +78 -6
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +80 -8
- 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.js +0 -1
- package/resources/x.js.map +1 -1
- package/resources/x.mjs +0 -1
- package/resources/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/SKILL.md +99 -344
- package/skills/x-twitter-scraper/metadata.json +2 -2
- package/skills/x-twitter-scraper/references/mcp-setup.md +12 -15
- package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
- package/skills/x-twitter-scraper/references/types-mcp-output-schemas.md +4 -4
- package/skills/x-twitter-scraper/references/types.md +0 -1
- package/skills/x-twitter-scraper/skill-card.md +5 -6
- package/skills/x-twitter-scraper/skillspector-report.md +6 -3
- package/skills/xquik-account-automation/LICENSE +21 -0
- package/skills/xquik-account-automation/SKILL.md +91 -0
- package/skills/xquik-social-research/SKILL.md +48 -55
- package/src/client.ts +48 -7
- package/src/core/api-promise.ts +0 -2
- package/src/core/error.ts +0 -2
- package/src/core/resource.ts +0 -2
- package/src/core/streaming.ts +326 -0
- package/src/index.ts +0 -2
- package/src/internal/builtin-types.ts +0 -2
- package/src/internal/decoders/line.ts +138 -0
- package/src/internal/detect-platform.ts +0 -2
- package/src/internal/errors.ts +0 -2
- package/src/internal/headers.ts +0 -2
- package/src/internal/parse.ts +9 -2
- package/src/internal/request-options.ts +0 -2
- package/src/internal/shim-types.ts +0 -2
- package/src/internal/shims.ts +0 -2
- package/src/internal/types.ts +0 -2
- package/src/internal/utils/base64.ts +0 -2
- package/src/internal/utils/env.ts +0 -2
- package/src/internal/utils/log.ts +0 -2
- package/src/internal/utils/query.ts +0 -2
- package/src/internal/utils/sleep.ts +0 -2
- package/src/internal/utils/uuid.ts +0 -2
- package/src/internal/utils/values.ts +0 -2
- package/src/internal/utils.ts +0 -2
- package/src/lib/.keep +2 -4
- package/src/resources/account.ts +41 -14
- package/src/resources/compose.ts +77 -23
- package/src/resources/credits.ts +19 -12
- package/src/resources/drafts.ts +13 -24
- package/src/resources/draws.ts +94 -38
- package/src/resources/events.ts +3225 -70
- package/src/resources/extractions.ts +512 -127
- package/src/resources/guest-wallets.ts +6 -7
- package/src/resources/index.ts +24 -3
- package/src/resources/monitors/index.ts +2 -2
- package/src/resources/monitors/keywords.ts +82 -16
- package/src/resources/monitors/monitors.ts +66 -16
- package/src/resources/monitors.ts +0 -2
- package/src/resources/radar.ts +32 -38
- package/src/resources/shared.ts +2226 -352
- package/src/resources/styles.ts +43 -29
- package/src/resources/subscribe.ts +1 -3
- package/src/resources/support/attachments.ts +0 -2
- package/src/resources/support/index.ts +1 -2
- package/src/resources/support/support.ts +2 -2
- package/src/resources/support/tickets.ts +38 -12
- package/src/resources/support.ts +0 -2
- package/src/resources/trends.ts +23 -7
- package/src/resources/webhooks.ts +109 -17
- package/src/resources/x/account-connection-attempts.ts +1 -3
- package/src/resources/x/account-connection-challenges.ts +39 -13
- package/src/resources/x/accounts.ts +46 -12
- package/src/resources/x/analysis.ts +3945 -0
- package/src/resources/x/bookmarks.ts +103 -11
- package/src/resources/x/broadcasts.ts +223 -0
- package/src/resources/x/communities/communities.ts +743 -143
- package/src/resources/x/communities/index.ts +9 -2
- package/src/resources/x/communities/join.ts +46 -25
- package/src/resources/x/communities/media.ts +249 -0
- package/src/resources/x/communities/tweets.ts +427 -22
- package/src/resources/x/communities.ts +0 -2
- package/src/resources/x/dm.ts +334 -13
- package/src/resources/x/followers.ts +35 -5
- package/src/resources/x/index.ts +106 -3
- package/src/resources/x/jobs.ts +625 -0
- package/src/resources/x/lists.ts +1307 -30
- package/src/resources/x/media.ts +24 -14
- package/src/resources/x/profile.ts +60 -32
- package/src/resources/x/spaces.ts +1074 -0
- package/src/resources/x/tweets/index.ts +18 -2
- package/src/resources/x/tweets/like.ts +38 -20
- package/src/resources/x/tweets/retweet.ts +38 -20
- package/src/resources/x/tweets/tweets.ts +3693 -843
- package/src/resources/x/tweets.ts +0 -2
- package/src/resources/x/users/follow.ts +38 -20
- package/src/resources/x/users/index.ts +22 -2
- package/src/resources/x/users/users.ts +3687 -467
- package/src/resources/x/users.ts +0 -2
- package/src/resources/x/write-actions.ts +13 -7
- package/src/resources/x/x.ts +1234 -24
- package/src/resources/x.ts +0 -2
- package/src/streaming.ts +6 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +3 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +3 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +9 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +6 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/skills/x-twitter-scraper/references/types-rest-api-vs-mcp-field-naming.md +0 -15
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
6
|
-
|
|
7
5
|
import { APIResource } from '../../../core/resource';
|
|
8
6
|
import * as Shared from '../../shared';
|
|
9
7
|
import * as JoinAPI from './join';
|
|
@@ -14,6 +12,8 @@ import {
|
|
|
14
12
|
JoinDeleteAllParams,
|
|
15
13
|
JoinDeleteAllResponse,
|
|
16
14
|
} from './join';
|
|
15
|
+
import * as MediaAPI from './media';
|
|
16
|
+
import { Media, MediaListParams } from './media';
|
|
17
17
|
import * as TweetsAPI from './tweets';
|
|
18
18
|
import { TweetListByCommunityParams, TweetListParams, Tweets } from './tweets';
|
|
19
19
|
import { APIPromise } from '../../../core/api-promise';
|
|
@@ -24,9 +24,10 @@ import { path } from '../../../internal/utils/path';
|
|
|
24
24
|
export class Communities extends APIResource {
|
|
25
25
|
join: JoinAPI.Join = new JoinAPI.Join(this._client);
|
|
26
26
|
tweets: TweetsAPI.Tweets = new TweetsAPI.Tweets(this._client);
|
|
27
|
+
media: MediaAPI.Media = new MediaAPI.Media(this._client);
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
*
|
|
30
|
+
* Creates an X Community through a connected account.
|
|
30
31
|
*
|
|
31
32
|
* @example
|
|
32
33
|
* ```ts
|
|
@@ -48,15 +49,18 @@ export class Communities extends APIResource {
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* Deletes an owned X Community through a connected account.
|
|
52
53
|
*
|
|
53
54
|
* @example
|
|
54
55
|
* ```ts
|
|
55
|
-
* const community = await client.x.communities.delete(
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
56
|
+
* const community = await client.x.communities.delete(
|
|
57
|
+
* '1500000000000000000',
|
|
58
|
+
* {
|
|
59
|
+
* account: '@elonmusk',
|
|
60
|
+
* community_name: 'Tesla Fans',
|
|
61
|
+
* 'Idempotency-Key': 'Idempotency-Key',
|
|
62
|
+
* },
|
|
63
|
+
* );
|
|
60
64
|
* ```
|
|
61
65
|
*/
|
|
62
66
|
delete(
|
|
@@ -73,7 +77,76 @@ export class Communities extends APIResource {
|
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
/**
|
|
76
|
-
*
|
|
80
|
+
* Returns the communities X finds for a keyword, in X's order. Each community
|
|
81
|
+
* costs 1 credit. To search the tweets in Communities, use /x/communities/search.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const communityPage = await client.x.communities.find({
|
|
86
|
+
* q: 'q',
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
find(query: CommunityFindParams, options?: RequestOptions): APIPromise<Shared.CommunityPage> {
|
|
91
|
+
return this._client.get('/x/communities/find', { query, ...options });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Returns the communities X ranks highest under a topic or subtopic. Name it by
|
|
96
|
+
* topicId or by topic name from /x/communities/topics. Each community costs 1
|
|
97
|
+
* credit. A missing or unknown topic returns invalid_community_topic & lists the
|
|
98
|
+
* topic names.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* const communityPage =
|
|
103
|
+
* await client.x.communities.listPopular();
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
listPopular(
|
|
107
|
+
query: CommunityListPopularParams | null | undefined = {},
|
|
108
|
+
options?: RequestOptions,
|
|
109
|
+
): APIPromise<Shared.CommunityPage> {
|
|
110
|
+
return this._client.get('/x/communities/popular', { query, ...options });
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Returns the communities X suggests, with their full public fields. X picks them
|
|
115
|
+
* per request, so 2 calls can differ. If X suggests none, Xquik asks up to 2 more
|
|
116
|
+
* times. An empty list is free. Each community costs 1 credit.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```ts
|
|
120
|
+
* const response = await client.x.communities.listSuggested();
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
listSuggested(
|
|
124
|
+
query: CommunityListSuggestedParams | null | undefined = {},
|
|
125
|
+
options?: RequestOptions,
|
|
126
|
+
): APIPromise<CommunityListSuggestedResponse> {
|
|
127
|
+
return this._client.get('/x/communities/suggested', { query, ...options });
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Returns the community topics with their subtopics. Pass an ID as topicId, or a
|
|
132
|
+
* name as topic, to /x/communities/popular. Each top-level topic costs 1 credit,
|
|
133
|
+
* its subtopics included.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* const response = await client.x.communities.listTopics();
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
listTopics(
|
|
141
|
+
query: CommunityListTopicsParams | null | undefined = {},
|
|
142
|
+
options?: RequestOptions,
|
|
143
|
+
): APIPromise<CommunityListTopicsResponse> {
|
|
144
|
+
return this._client.get('/x/communities/topics', { query, ...options });
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Returns one community's public identity, rules, join question, search tags,
|
|
149
|
+
* membership counts, and the profiles of its creator, admin and previewed members.
|
|
77
150
|
*
|
|
78
151
|
* @example
|
|
79
152
|
* ```ts
|
|
@@ -82,12 +155,16 @@ export class Communities extends APIResource {
|
|
|
82
155
|
* );
|
|
83
156
|
* ```
|
|
84
157
|
*/
|
|
85
|
-
retrieveInfo(
|
|
86
|
-
|
|
158
|
+
retrieveInfo(
|
|
159
|
+
id: string,
|
|
160
|
+
query: CommunityRetrieveInfoParams | null | undefined = {},
|
|
161
|
+
options?: RequestOptions,
|
|
162
|
+
): APIPromise<CommunityRetrieveInfoResponse> {
|
|
163
|
+
return this._client.get(path`/x/communities/${id}/info`, { query, ...options });
|
|
87
164
|
}
|
|
88
165
|
|
|
89
166
|
/**
|
|
90
|
-
*
|
|
167
|
+
* Returns public member profiles for one community.
|
|
91
168
|
*
|
|
92
169
|
* @example
|
|
93
170
|
* ```ts
|
|
@@ -104,7 +181,7 @@ export class Communities extends APIResource {
|
|
|
104
181
|
}
|
|
105
182
|
|
|
106
183
|
/**
|
|
107
|
-
*
|
|
184
|
+
* Returns public moderator profiles for one community.
|
|
108
185
|
*
|
|
109
186
|
* @example
|
|
110
187
|
* ```ts
|
|
@@ -121,15 +198,14 @@ export class Communities extends APIResource {
|
|
|
121
198
|
}
|
|
122
199
|
|
|
123
200
|
/**
|
|
124
|
-
* Returns
|
|
201
|
+
* Returns one tweet page, not community records. Add communityId to search 1
|
|
202
|
+
* Community, or leave it out to search every Community. To find communities by
|
|
203
|
+
* keyword, use /x/communities/find.
|
|
125
204
|
*
|
|
126
205
|
* @example
|
|
127
206
|
* ```ts
|
|
128
207
|
* const paginatedTweets =
|
|
129
|
-
* await client.x.communities.retrieveSearch({
|
|
130
|
-
* communityId: '321669910225',
|
|
131
|
-
* q: 'q',
|
|
132
|
-
* });
|
|
208
|
+
* await client.x.communities.retrieveSearch({ q: 'q' });
|
|
133
209
|
* ```
|
|
134
210
|
*/
|
|
135
211
|
retrieveSearch(
|
|
@@ -138,12 +214,34 @@ export class Communities extends APIResource {
|
|
|
138
214
|
): APIPromise<Shared.PaginatedTweets> {
|
|
139
215
|
return this._client.get('/x/communities/search', { query, ...options });
|
|
140
216
|
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Finds a community's members by name or username, as the search box on X's
|
|
220
|
+
* members page does. X checks up to 10 accounts that match, & the answer holds the
|
|
221
|
+
* members among them, each with its role. Each member costs 1 credit. An answer
|
|
222
|
+
* without members is free.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```ts
|
|
226
|
+
* const paginatedUsers =
|
|
227
|
+
* await client.x.communities.searchMembers('id', {
|
|
228
|
+
* q: 'q',
|
|
229
|
+
* });
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
searchMembers(
|
|
233
|
+
id: string,
|
|
234
|
+
query: CommunitySearchMembersParams,
|
|
235
|
+
options?: RequestOptions,
|
|
236
|
+
): APIPromise<Shared.PaginatedUsers> {
|
|
237
|
+
return this._client.get(path`/x/communities/${id}/members/search`, { query, ...options });
|
|
238
|
+
}
|
|
141
239
|
}
|
|
142
240
|
|
|
143
241
|
/**
|
|
144
|
-
* Durable write
|
|
145
|
-
*
|
|
146
|
-
*
|
|
242
|
+
* Durable write record. Poll statusUrl until terminal is true. Reusing its
|
|
243
|
+
* Idempotency-Key returns this record. Create another action only when safeToRetry
|
|
244
|
+
* is true.
|
|
147
245
|
*/
|
|
148
246
|
export interface CommunityCreateResponse {
|
|
149
247
|
id: string;
|
|
@@ -164,6 +262,7 @@ export interface CommunityCreateResponse {
|
|
|
164
262
|
| 'unfollow'
|
|
165
263
|
| 'remove_follower'
|
|
166
264
|
| 'send_dm'
|
|
265
|
+
| 'delete_dm'
|
|
167
266
|
| 'upload_media'
|
|
168
267
|
| 'update_profile'
|
|
169
268
|
| 'update_avatar'
|
|
@@ -208,7 +307,7 @@ export interface CommunityCreateResponse {
|
|
|
208
307
|
retryable: boolean;
|
|
209
308
|
|
|
210
309
|
/**
|
|
211
|
-
* True only when
|
|
310
|
+
* True only when X did not get the write and a new idempotency key may be used.
|
|
212
311
|
*/
|
|
213
312
|
safeToRetry: boolean;
|
|
214
313
|
|
|
@@ -264,6 +363,10 @@ export interface CommunityCreateResponse {
|
|
|
264
363
|
*/
|
|
265
364
|
expiresAt?: string;
|
|
266
365
|
|
|
366
|
+
/**
|
|
367
|
+
* True when this answers a retry of an earlier request with the same
|
|
368
|
+
* Idempotency-Key.
|
|
369
|
+
*/
|
|
267
370
|
idempotent?: boolean;
|
|
268
371
|
|
|
269
372
|
/**
|
|
@@ -340,6 +443,9 @@ export namespace CommunityCreateResponse {
|
|
|
340
443
|
export interface NextAction {
|
|
341
444
|
type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
|
|
342
445
|
|
|
446
|
+
/**
|
|
447
|
+
* Milliseconds to wait before you poll or retry.
|
|
448
|
+
*/
|
|
343
449
|
afterMs?: number;
|
|
344
450
|
|
|
345
451
|
requiresNewIdempotencyKey?: boolean;
|
|
@@ -384,9 +490,9 @@ export namespace CommunityCreateResponse {
|
|
|
384
490
|
}
|
|
385
491
|
|
|
386
492
|
/**
|
|
387
|
-
* Durable write
|
|
388
|
-
*
|
|
389
|
-
*
|
|
493
|
+
* Durable write record. Poll statusUrl until terminal is true. Reusing its
|
|
494
|
+
* Idempotency-Key returns this record. Create another action only when safeToRetry
|
|
495
|
+
* is true.
|
|
390
496
|
*/
|
|
391
497
|
export interface CommunityDeleteResponse {
|
|
392
498
|
id: string;
|
|
@@ -407,6 +513,7 @@ export interface CommunityDeleteResponse {
|
|
|
407
513
|
| 'unfollow'
|
|
408
514
|
| 'remove_follower'
|
|
409
515
|
| 'send_dm'
|
|
516
|
+
| 'delete_dm'
|
|
410
517
|
| 'upload_media'
|
|
411
518
|
| 'update_profile'
|
|
412
519
|
| 'update_avatar'
|
|
@@ -451,7 +558,7 @@ export interface CommunityDeleteResponse {
|
|
|
451
558
|
retryable: boolean;
|
|
452
559
|
|
|
453
560
|
/**
|
|
454
|
-
* True only when
|
|
561
|
+
* True only when X did not get the write and a new idempotency key may be used.
|
|
455
562
|
*/
|
|
456
563
|
safeToRetry: boolean;
|
|
457
564
|
|
|
@@ -507,6 +614,10 @@ export interface CommunityDeleteResponse {
|
|
|
507
614
|
*/
|
|
508
615
|
expiresAt?: string;
|
|
509
616
|
|
|
617
|
+
/**
|
|
618
|
+
* True when this answers a retry of an earlier request with the same
|
|
619
|
+
* Idempotency-Key.
|
|
620
|
+
*/
|
|
510
621
|
idempotent?: boolean;
|
|
511
622
|
|
|
512
623
|
/**
|
|
@@ -583,6 +694,9 @@ export namespace CommunityDeleteResponse {
|
|
|
583
694
|
export interface NextAction {
|
|
584
695
|
type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
|
|
585
696
|
|
|
697
|
+
/**
|
|
698
|
+
* Milliseconds to wait before you poll or retry.
|
|
699
|
+
*/
|
|
586
700
|
afterMs?: number;
|
|
587
701
|
|
|
588
702
|
requiresNewIdempotencyKey?: boolean;
|
|
@@ -626,154 +740,237 @@ export namespace CommunityDeleteResponse {
|
|
|
626
740
|
}
|
|
627
741
|
}
|
|
628
742
|
|
|
629
|
-
export interface
|
|
743
|
+
export interface CommunityListSuggestedResponse {
|
|
744
|
+
/**
|
|
745
|
+
* Suggested communities in X's order
|
|
746
|
+
*/
|
|
747
|
+
communities: Array<Shared.Community>;
|
|
748
|
+
|
|
630
749
|
/**
|
|
631
|
-
*
|
|
750
|
+
* Communities returned & charged
|
|
632
751
|
*/
|
|
633
|
-
|
|
752
|
+
count: number;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* What to do next. Present only when X suggests none.
|
|
756
|
+
*/
|
|
757
|
+
message?: string;
|
|
634
758
|
}
|
|
635
759
|
|
|
636
|
-
export
|
|
760
|
+
export interface CommunityListTopicsResponse {
|
|
637
761
|
/**
|
|
638
|
-
*
|
|
762
|
+
* Top-level topics returned & charged
|
|
639
763
|
*/
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* Unique community identifier
|
|
643
|
-
*/
|
|
644
|
-
id: string;
|
|
764
|
+
count: number;
|
|
645
765
|
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
766
|
+
/**
|
|
767
|
+
* Topics in X's order
|
|
768
|
+
*/
|
|
769
|
+
topics: Array<Shared.CommunityTopic>;
|
|
650
770
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
771
|
+
/**
|
|
772
|
+
* What to do next. Present only when X lists no topic.
|
|
773
|
+
*/
|
|
774
|
+
message?: string;
|
|
775
|
+
}
|
|
655
776
|
|
|
656
|
-
|
|
777
|
+
export interface CommunityRetrieveInfoResponse {
|
|
778
|
+
/**
|
|
779
|
+
* Public X Community, as every Community read returns it.
|
|
780
|
+
*/
|
|
781
|
+
community: Shared.Community;
|
|
782
|
+
}
|
|
657
783
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
784
|
+
export interface CommunityCreateParams {
|
|
785
|
+
/**
|
|
786
|
+
* Body param: X account (@username or ID) creating the community
|
|
787
|
+
*/
|
|
788
|
+
account: string;
|
|
662
789
|
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
790
|
+
/**
|
|
791
|
+
* Body param: Community name, 1 to 100 characters, as X takes it
|
|
792
|
+
*/
|
|
793
|
+
name: string;
|
|
667
794
|
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
795
|
+
/**
|
|
796
|
+
* Header param: Use one unique value per intended write. Reuse it only for an
|
|
797
|
+
* identical retry. A matching retry returns the first answer again, with
|
|
798
|
+
* idempotent: true added. It keeps the first status, body & Retry-After. It sends
|
|
799
|
+
* nothing to X & charges nothing. While the first request runs, a retry returns
|
|
800
|
+
* 202 & the action. Different input returns 409. Protection lasts at least 90
|
|
801
|
+
* days.
|
|
802
|
+
*/
|
|
803
|
+
'Idempotency-Key': string;
|
|
672
804
|
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
805
|
+
/**
|
|
806
|
+
* Body param: Community description
|
|
807
|
+
*/
|
|
808
|
+
description?: string;
|
|
809
|
+
}
|
|
677
810
|
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
811
|
+
export interface CommunityDeleteParams {
|
|
812
|
+
/**
|
|
813
|
+
* Body param: X account (@username or ID) deleting the community
|
|
814
|
+
*/
|
|
815
|
+
account: string;
|
|
682
816
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
817
|
+
/**
|
|
818
|
+
* Body param: Community name for confirmation
|
|
819
|
+
*/
|
|
820
|
+
community_name: string;
|
|
687
821
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
822
|
+
/**
|
|
823
|
+
* Header param: Use one unique value per intended write. Reuse it only for an
|
|
824
|
+
* identical retry. A matching retry returns the first answer again, with
|
|
825
|
+
* idempotent: true added. It keeps the first status, body & Retry-After. It sends
|
|
826
|
+
* nothing to X & charges nothing. While the first request runs, a retry returns
|
|
827
|
+
* 202 & the action. Different input returns 409. Protection lasts at least 90
|
|
828
|
+
* days.
|
|
829
|
+
*/
|
|
830
|
+
'Idempotency-Key': string;
|
|
831
|
+
}
|
|
692
832
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
833
|
+
export interface CommunityFindParams {
|
|
834
|
+
/**
|
|
835
|
+
* Keyword to find communities by, such as ai. Alias query.
|
|
836
|
+
*/
|
|
837
|
+
q: string;
|
|
697
838
|
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
839
|
+
/**
|
|
840
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
841
|
+
* pagination_token or continuation_token.
|
|
842
|
+
*/
|
|
843
|
+
cursor?: string;
|
|
703
844
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
845
|
+
/**
|
|
846
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
847
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
848
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
849
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
850
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
851
|
+
* named fields.
|
|
852
|
+
*/
|
|
853
|
+
fields?: string;
|
|
707
854
|
|
|
708
|
-
|
|
855
|
+
/**
|
|
856
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
857
|
+
* fields. With fields, it drops from the kept fields.
|
|
858
|
+
*/
|
|
859
|
+
omit?: string;
|
|
709
860
|
|
|
710
|
-
|
|
861
|
+
/**
|
|
862
|
+
* Items per page (1-100, default 20). Source, filters or credits can return fewer.
|
|
863
|
+
* Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
|
|
864
|
+
* max_items & per_page.
|
|
865
|
+
*/
|
|
866
|
+
pageSize?: number;
|
|
867
|
+
}
|
|
711
868
|
|
|
712
|
-
|
|
713
|
-
|
|
869
|
+
export interface CommunityListPopularParams {
|
|
870
|
+
/**
|
|
871
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
872
|
+
* pagination_token or continuation_token.
|
|
873
|
+
*/
|
|
874
|
+
cursor?: string;
|
|
714
875
|
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
876
|
+
/**
|
|
877
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
878
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
879
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
880
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
881
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
882
|
+
* named fields.
|
|
883
|
+
*/
|
|
884
|
+
fields?: string;
|
|
720
885
|
|
|
721
|
-
|
|
722
|
-
|
|
886
|
+
/**
|
|
887
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
888
|
+
* fields. With fields, it drops from the kept fields.
|
|
889
|
+
*/
|
|
890
|
+
omit?: string;
|
|
723
891
|
|
|
724
|
-
|
|
725
|
-
|
|
892
|
+
/**
|
|
893
|
+
* Items per page (1-100, default 20). Source, filters or credits can return fewer.
|
|
894
|
+
* Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
|
|
895
|
+
* max_items & per_page.
|
|
896
|
+
*/
|
|
897
|
+
pageSize?: number;
|
|
726
898
|
|
|
727
|
-
|
|
899
|
+
/**
|
|
900
|
+
* Topic or subtopic name in any case, such as technology. Send this or topicId.
|
|
901
|
+
*/
|
|
902
|
+
topic?: string;
|
|
728
903
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
904
|
+
/**
|
|
905
|
+
* Topic or subtopic ID from /x/communities/topics, such as 301. Wins over topic.
|
|
906
|
+
*/
|
|
907
|
+
topicId?: string;
|
|
732
908
|
}
|
|
733
909
|
|
|
734
|
-
export interface
|
|
910
|
+
export interface CommunityListSuggestedParams {
|
|
735
911
|
/**
|
|
736
|
-
*
|
|
912
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
913
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
914
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
915
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
916
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
917
|
+
* named fields.
|
|
737
918
|
*/
|
|
738
|
-
|
|
919
|
+
fields?: string;
|
|
739
920
|
|
|
740
921
|
/**
|
|
741
|
-
*
|
|
922
|
+
* Maximum communities to return. Omit it for every suggestion. Credits can return
|
|
923
|
+
* fewer. Aliases pageSize, count, max_results, maxItems, max_items & per_page.
|
|
742
924
|
*/
|
|
743
|
-
|
|
925
|
+
limit?: number;
|
|
744
926
|
|
|
745
927
|
/**
|
|
746
|
-
*
|
|
747
|
-
*
|
|
748
|
-
* returns the original action. Reusing it with different input returns 409. Replay
|
|
749
|
-
* protection remains active for at least 90 days.
|
|
928
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
929
|
+
* fields. With fields, it drops from the kept fields.
|
|
750
930
|
*/
|
|
751
|
-
|
|
931
|
+
omit?: string;
|
|
932
|
+
}
|
|
752
933
|
|
|
934
|
+
export interface CommunityListTopicsParams {
|
|
753
935
|
/**
|
|
754
|
-
*
|
|
936
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
937
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
938
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
939
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
940
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
941
|
+
* named fields.
|
|
755
942
|
*/
|
|
756
|
-
|
|
757
|
-
}
|
|
943
|
+
fields?: string;
|
|
758
944
|
|
|
759
|
-
export interface CommunityDeleteParams {
|
|
760
945
|
/**
|
|
761
|
-
*
|
|
946
|
+
* Maximum topics to return. Omit it for every topic. Credits can return fewer.
|
|
947
|
+
* Aliases pageSize, count, max_results, maxItems, max_items & per_page.
|
|
762
948
|
*/
|
|
763
|
-
|
|
949
|
+
limit?: number;
|
|
764
950
|
|
|
765
951
|
/**
|
|
766
|
-
*
|
|
952
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
953
|
+
* fields. With fields, it drops from the kept fields.
|
|
767
954
|
*/
|
|
768
|
-
|
|
955
|
+
omit?: string;
|
|
956
|
+
}
|
|
769
957
|
|
|
958
|
+
export interface CommunityRetrieveInfoParams {
|
|
770
959
|
/**
|
|
771
|
-
*
|
|
772
|
-
*
|
|
773
|
-
*
|
|
774
|
-
*
|
|
960
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
961
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
962
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
963
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
964
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
965
|
+
* named fields.
|
|
775
966
|
*/
|
|
776
|
-
|
|
967
|
+
fields?: string;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
971
|
+
* fields. With fields, it drops from the kept fields.
|
|
972
|
+
*/
|
|
973
|
+
omit?: string;
|
|
777
974
|
}
|
|
778
975
|
|
|
779
976
|
export interface CommunityRetrieveMembersParams {
|
|
@@ -783,10 +980,43 @@ export interface CommunityRetrieveMembersParams {
|
|
|
783
980
|
bioContains?: string;
|
|
784
981
|
|
|
785
982
|
/**
|
|
786
|
-
*
|
|
983
|
+
* Only return profiles X marks as blue verified. X marks many business &
|
|
984
|
+
* government accounts blue too. Use verifiedType for 1 badge type.
|
|
985
|
+
*/
|
|
986
|
+
blueVerifiedOnly?: boolean;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Only return profiles that publish an email outside free webmail, such as Gmail.
|
|
990
|
+
*/
|
|
991
|
+
businessEmailOnly?: boolean;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
995
|
+
* pagination_token or continuation_token.
|
|
787
996
|
*/
|
|
788
997
|
cursor?: string;
|
|
789
998
|
|
|
999
|
+
/**
|
|
1000
|
+
* Only return profiles with an email at one of these domains. Separate domains
|
|
1001
|
+
* with commas. Subdomains match.
|
|
1002
|
+
*/
|
|
1003
|
+
emailDomains?: string;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1007
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1008
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1009
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1010
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1011
|
+
* named fields.
|
|
1012
|
+
*/
|
|
1013
|
+
fields?: string;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Only return profiles that publish an email.
|
|
1017
|
+
*/
|
|
1018
|
+
hasEmail?: boolean;
|
|
1019
|
+
|
|
790
1020
|
/**
|
|
791
1021
|
* Only return profiles with a location.
|
|
792
1022
|
*/
|
|
@@ -808,7 +1038,7 @@ export interface CommunityRetrieveMembersParams {
|
|
|
808
1038
|
maxFollowers?: number;
|
|
809
1039
|
|
|
810
1040
|
/**
|
|
811
|
-
*
|
|
1041
|
+
* Profiles may follow at most this many accounts.
|
|
812
1042
|
*/
|
|
813
1043
|
maxFollowing?: number;
|
|
814
1044
|
|
|
@@ -828,7 +1058,7 @@ export interface CommunityRetrieveMembersParams {
|
|
|
828
1058
|
minFollowers?: number;
|
|
829
1059
|
|
|
830
1060
|
/**
|
|
831
|
-
*
|
|
1061
|
+
* Profiles must follow at least this many accounts.
|
|
832
1062
|
*/
|
|
833
1063
|
minFollowing?: number;
|
|
834
1064
|
|
|
@@ -838,9 +1068,13 @@ export interface CommunityRetrieveMembersParams {
|
|
|
838
1068
|
minStatuses?: number;
|
|
839
1069
|
|
|
840
1070
|
/**
|
|
841
|
-
*
|
|
842
|
-
*
|
|
843
|
-
|
|
1071
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1072
|
+
* fields. With fields, it drops from the kept fields.
|
|
1073
|
+
*/
|
|
1074
|
+
omit?: string;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Maximum user profiles per page (1-200, default 20).
|
|
844
1078
|
*/
|
|
845
1079
|
pageSize?: number;
|
|
846
1080
|
|
|
@@ -867,10 +1101,43 @@ export interface CommunityRetrieveModeratorsParams {
|
|
|
867
1101
|
bioContains?: string;
|
|
868
1102
|
|
|
869
1103
|
/**
|
|
870
|
-
*
|
|
1104
|
+
* Only return profiles X marks as blue verified. X marks many business &
|
|
1105
|
+
* government accounts blue too. Use verifiedType for 1 badge type.
|
|
1106
|
+
*/
|
|
1107
|
+
blueVerifiedOnly?: boolean;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Only return profiles that publish an email outside free webmail, such as Gmail.
|
|
1111
|
+
*/
|
|
1112
|
+
businessEmailOnly?: boolean;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
1116
|
+
* pagination_token or continuation_token.
|
|
871
1117
|
*/
|
|
872
1118
|
cursor?: string;
|
|
873
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* Only return profiles with an email at one of these domains. Separate domains
|
|
1122
|
+
* with commas. Subdomains match.
|
|
1123
|
+
*/
|
|
1124
|
+
emailDomains?: string;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1128
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1129
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1130
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1131
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1132
|
+
* named fields.
|
|
1133
|
+
*/
|
|
1134
|
+
fields?: string;
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Only return profiles that publish an email.
|
|
1138
|
+
*/
|
|
1139
|
+
hasEmail?: boolean;
|
|
1140
|
+
|
|
874
1141
|
/**
|
|
875
1142
|
* Only return profiles with a location.
|
|
876
1143
|
*/
|
|
@@ -892,7 +1159,7 @@ export interface CommunityRetrieveModeratorsParams {
|
|
|
892
1159
|
maxFollowers?: number;
|
|
893
1160
|
|
|
894
1161
|
/**
|
|
895
|
-
*
|
|
1162
|
+
* Profiles may follow at most this many accounts.
|
|
896
1163
|
*/
|
|
897
1164
|
maxFollowing?: number;
|
|
898
1165
|
|
|
@@ -912,7 +1179,7 @@ export interface CommunityRetrieveModeratorsParams {
|
|
|
912
1179
|
minFollowers?: number;
|
|
913
1180
|
|
|
914
1181
|
/**
|
|
915
|
-
*
|
|
1182
|
+
* Profiles must follow at least this many accounts.
|
|
916
1183
|
*/
|
|
917
1184
|
minFollowing?: number;
|
|
918
1185
|
|
|
@@ -921,6 +1188,12 @@ export interface CommunityRetrieveModeratorsParams {
|
|
|
921
1188
|
*/
|
|
922
1189
|
minStatuses?: number;
|
|
923
1190
|
|
|
1191
|
+
/**
|
|
1192
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1193
|
+
* fields. With fields, it drops from the kept fields.
|
|
1194
|
+
*/
|
|
1195
|
+
omit?: string;
|
|
1196
|
+
|
|
924
1197
|
/**
|
|
925
1198
|
* Match a username substring, ignoring case.
|
|
926
1199
|
*/
|
|
@@ -939,24 +1212,163 @@ export interface CommunityRetrieveModeratorsParams {
|
|
|
939
1212
|
|
|
940
1213
|
export interface CommunityRetrieveSearchParams {
|
|
941
1214
|
/**
|
|
942
|
-
*
|
|
1215
|
+
* Search query
|
|
943
1216
|
*/
|
|
944
|
-
|
|
1217
|
+
q: string;
|
|
945
1218
|
|
|
946
1219
|
/**
|
|
947
|
-
*
|
|
1220
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
1221
|
+
* or lines.
|
|
948
1222
|
*/
|
|
949
|
-
|
|
1223
|
+
anyWords?: string;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* Only return tweets from Blue-verified authors.
|
|
1227
|
+
*/
|
|
1228
|
+
blueVerifiedOnly?: boolean;
|
|
950
1229
|
|
|
951
1230
|
/**
|
|
952
|
-
*
|
|
1231
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
1232
|
+
*/
|
|
1233
|
+
cashtags?: string;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* Numeric ID of the Community whose posts to search. Leave it out to search posts
|
|
1237
|
+
* across every Community.
|
|
1238
|
+
*/
|
|
1239
|
+
communityId?: string;
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Conversation ID filter.
|
|
1243
|
+
*/
|
|
1244
|
+
conversationId?: string;
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Pagination cursor for community search. Also read as next_cursor, next_token,
|
|
1248
|
+
* pagination_token or continuation_token.
|
|
953
1249
|
*/
|
|
954
1250
|
cursor?: string;
|
|
955
1251
|
|
|
956
1252
|
/**
|
|
957
|
-
*
|
|
958
|
-
|
|
959
|
-
|
|
1253
|
+
* Match this literal phrase, including any hyphens.
|
|
1254
|
+
*/
|
|
1255
|
+
exactPhrase?: string;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
1259
|
+
*/
|
|
1260
|
+
excludeWords?: string;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1264
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1265
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1266
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1267
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1268
|
+
* named fields.
|
|
1269
|
+
*/
|
|
1270
|
+
fields?: string;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Filter by author username.
|
|
1274
|
+
*/
|
|
1275
|
+
fromUser?: string;
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
1279
|
+
*/
|
|
1280
|
+
hashtags?: string;
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Only replies to this tweet ID.
|
|
1284
|
+
*/
|
|
1285
|
+
inReplyToTweetId?: string;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Filter by language. Alias `lang` is accepted.
|
|
1289
|
+
*/
|
|
1290
|
+
language?: string;
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Maximum likes threshold. maxLikes & max_likes also work.
|
|
1294
|
+
*/
|
|
1295
|
+
maxFaves?: number;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Return Tweets at or below this ID.
|
|
1299
|
+
*/
|
|
1300
|
+
maxId?: string;
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Maximum quotes threshold.
|
|
1304
|
+
*/
|
|
1305
|
+
maxQuotes?: number;
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Maximum replies threshold.
|
|
1309
|
+
*/
|
|
1310
|
+
maxReplies?: number;
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Maximum retweets threshold.
|
|
1314
|
+
*/
|
|
1315
|
+
maxRetweets?: number;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Filter media. Aliases: has_video, has_media.
|
|
1319
|
+
*/
|
|
1320
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* Filter tweets mentioning a username.
|
|
1324
|
+
*/
|
|
1325
|
+
mentioning?: string;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Minimum bookmark count threshold.
|
|
1329
|
+
*/
|
|
1330
|
+
minBookmarks?: number;
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Minimum likes. Aliases: minFaves, min_likes, min_faves.
|
|
1334
|
+
*/
|
|
1335
|
+
minLikes?: number;
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* Minimum quote count threshold.
|
|
1339
|
+
*/
|
|
1340
|
+
minQuotes?: number;
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Minimum replies threshold.
|
|
1344
|
+
*/
|
|
1345
|
+
minReplies?: number;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Minimum retweets threshold.
|
|
1349
|
+
*/
|
|
1350
|
+
minRetweets?: number;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Minimum view count threshold.
|
|
1354
|
+
*/
|
|
1355
|
+
minViews?: number;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Only return native reposts.
|
|
1359
|
+
*/
|
|
1360
|
+
nativeRetweets?: boolean;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1364
|
+
* fields. With fields, it drops from the kept fields.
|
|
1365
|
+
*/
|
|
1366
|
+
omit?: string;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Items per page (1-100, default 20). Source, filters or credits can return fewer.
|
|
1370
|
+
* Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
|
|
1371
|
+
* max_items & per_page.
|
|
960
1372
|
*/
|
|
961
1373
|
pageSize?: number;
|
|
962
1374
|
|
|
@@ -964,21 +1376,207 @@ export interface CommunityRetrieveSearchParams {
|
|
|
964
1376
|
* Sort order (Latest or Top)
|
|
965
1377
|
*/
|
|
966
1378
|
queryType?: 'Latest' | 'Top';
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Only when the caller requests a quote mode.
|
|
1382
|
+
*/
|
|
1383
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* Only quotes of this tweet ID.
|
|
1387
|
+
*/
|
|
1388
|
+
quotesOfTweetId?: string;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Reply mode. Exclude keeps own-thread replies.
|
|
1392
|
+
*/
|
|
1393
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* Only when the caller requests a repost mode.
|
|
1397
|
+
*/
|
|
1398
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* Only retweets of this tweet ID.
|
|
1402
|
+
*/
|
|
1403
|
+
retweetsOfTweetId?: string;
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* Start date in YYYY-MM-DD format, as a UTC day.
|
|
1407
|
+
*/
|
|
1408
|
+
sinceDate?: string;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* Return Tweets whose IDs exceed this ID.
|
|
1412
|
+
*/
|
|
1413
|
+
sinceId?: string;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* Filter replies sent to a username.
|
|
1417
|
+
*/
|
|
1418
|
+
toUser?: string;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* End date in YYYY-MM-DD format, as a UTC day, inclusive, so its own posts count.
|
|
1422
|
+
*/
|
|
1423
|
+
untilDate?: string;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* URL substring or domain filter.
|
|
1427
|
+
*/
|
|
1428
|
+
url?: string;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Only return tweets from verified authors.
|
|
1432
|
+
*/
|
|
1433
|
+
verifiedOnly?: boolean;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Keeps Tweets from a recent window, such as 90m or 7d. Use a whole number & s, m,
|
|
1437
|
+
* h or d.
|
|
1438
|
+
*/
|
|
1439
|
+
withinTime?: string;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
export interface CommunitySearchMembersParams {
|
|
1443
|
+
/**
|
|
1444
|
+
* Name or username to find members by, such as marckohlbrugge. A leading @ is
|
|
1445
|
+
* dropped. Alias query.
|
|
1446
|
+
*/
|
|
1447
|
+
q: string;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Match any comma-separated or line-separated bio term, ignoring case.
|
|
1451
|
+
*/
|
|
1452
|
+
bioContains?: string;
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Only return profiles X marks as blue verified. X marks many business &
|
|
1456
|
+
* government accounts blue too. Use verifiedType for 1 badge type.
|
|
1457
|
+
*/
|
|
1458
|
+
blueVerifiedOnly?: boolean;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Only return profiles that publish an email outside free webmail, such as Gmail.
|
|
1462
|
+
*/
|
|
1463
|
+
businessEmailOnly?: boolean;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Only return profiles with an email at one of these domains. Separate domains
|
|
1467
|
+
* with commas. Subdomains match.
|
|
1468
|
+
*/
|
|
1469
|
+
emailDomains?: string;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1473
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1474
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1475
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1476
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1477
|
+
* named fields.
|
|
1478
|
+
*/
|
|
1479
|
+
fields?: string;
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Only return profiles that publish an email.
|
|
1483
|
+
*/
|
|
1484
|
+
hasEmail?: boolean;
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Only return profiles with a location.
|
|
1488
|
+
*/
|
|
1489
|
+
hasLocation?: boolean;
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* Only return profiles with a website.
|
|
1493
|
+
*/
|
|
1494
|
+
hasWebsite?: boolean;
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* Match a location substring, ignoring case.
|
|
1498
|
+
*/
|
|
1499
|
+
locationContains?: string;
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* Maximum follower count. Missing counts pass this maximum.
|
|
1503
|
+
*/
|
|
1504
|
+
maxFollowers?: number;
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Profiles may follow at most this many accounts.
|
|
1508
|
+
*/
|
|
1509
|
+
maxFollowing?: number;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Maximum post count. maxPosts is also accepted.
|
|
1513
|
+
*/
|
|
1514
|
+
maxStatuses?: number;
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Minimum account age in whole days.
|
|
1518
|
+
*/
|
|
1519
|
+
minAccountAgeDays?: number;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Minimum follower count. Filtering happens before billing.
|
|
1523
|
+
*/
|
|
1524
|
+
minFollowers?: number;
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Profiles must follow at least this many accounts.
|
|
1528
|
+
*/
|
|
1529
|
+
minFollowing?: number;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Minimum post count. minPosts is also accepted.
|
|
1533
|
+
*/
|
|
1534
|
+
minStatuses?: number;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1538
|
+
* fields. With fields, it drops from the kept fields.
|
|
1539
|
+
*/
|
|
1540
|
+
omit?: string;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Match a username substring, ignoring case.
|
|
1544
|
+
*/
|
|
1545
|
+
usernameContains?: string;
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* Only return verified profiles.
|
|
1549
|
+
*/
|
|
1550
|
+
verifiedOnly?: boolean;
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* Match the verification type exactly, ignoring case.
|
|
1554
|
+
*/
|
|
1555
|
+
verifiedType?: string;
|
|
967
1556
|
}
|
|
968
1557
|
|
|
969
1558
|
Communities.Join = Join;
|
|
970
1559
|
Communities.Tweets = Tweets;
|
|
1560
|
+
Communities.Media = Media;
|
|
971
1561
|
|
|
972
1562
|
export declare namespace Communities {
|
|
973
1563
|
export {
|
|
974
1564
|
type CommunityCreateResponse as CommunityCreateResponse,
|
|
975
1565
|
type CommunityDeleteResponse as CommunityDeleteResponse,
|
|
1566
|
+
type CommunityListSuggestedResponse as CommunityListSuggestedResponse,
|
|
1567
|
+
type CommunityListTopicsResponse as CommunityListTopicsResponse,
|
|
976
1568
|
type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse,
|
|
977
1569
|
type CommunityCreateParams as CommunityCreateParams,
|
|
978
1570
|
type CommunityDeleteParams as CommunityDeleteParams,
|
|
1571
|
+
type CommunityFindParams as CommunityFindParams,
|
|
1572
|
+
type CommunityListPopularParams as CommunityListPopularParams,
|
|
1573
|
+
type CommunityListSuggestedParams as CommunityListSuggestedParams,
|
|
1574
|
+
type CommunityListTopicsParams as CommunityListTopicsParams,
|
|
1575
|
+
type CommunityRetrieveInfoParams as CommunityRetrieveInfoParams,
|
|
979
1576
|
type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams,
|
|
980
1577
|
type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams,
|
|
981
1578
|
type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams,
|
|
1579
|
+
type CommunitySearchMembersParams as CommunitySearchMembersParams,
|
|
982
1580
|
};
|
|
983
1581
|
|
|
984
1582
|
export {
|
|
@@ -994,4 +1592,6 @@ export declare namespace Communities {
|
|
|
994
1592
|
type TweetListParams as TweetListParams,
|
|
995
1593
|
type TweetListByCommunityParams as TweetListByCommunityParams,
|
|
996
1594
|
};
|
|
1595
|
+
|
|
1596
|
+
export { Media as Media, type MediaListParams as MediaListParams };
|
|
997
1597
|
}
|