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
package/src/resources/x/x.ts
CHANGED
|
@@ -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 AccountConnectionAttemptsAPI from './account-connection-attempts';
|
|
@@ -23,6 +21,7 @@ import {
|
|
|
23
21
|
AccountCreateParams,
|
|
24
22
|
AccountCreateResponse,
|
|
25
23
|
AccountDeleteResponse,
|
|
24
|
+
AccountListParams,
|
|
26
25
|
AccountListResponse,
|
|
27
26
|
AccountReauthParams,
|
|
28
27
|
AccountReauthResponse,
|
|
@@ -30,16 +29,63 @@ import {
|
|
|
30
29
|
XAccount,
|
|
31
30
|
XAccountDetail,
|
|
32
31
|
} from './accounts';
|
|
32
|
+
import * as AnalysisAPI from './analysis';
|
|
33
|
+
import {
|
|
34
|
+
Analysis,
|
|
35
|
+
AnalysisBrandParams,
|
|
36
|
+
AnalysisBrandResponse,
|
|
37
|
+
AnalysisClassifyParams,
|
|
38
|
+
AnalysisClassifyResponse,
|
|
39
|
+
AnalysisMarketSignalsParams,
|
|
40
|
+
AnalysisMarketSignalsResponse,
|
|
41
|
+
AnalysisNewsParams,
|
|
42
|
+
AnalysisNewsResponse,
|
|
43
|
+
AnalysisSentimentParams,
|
|
44
|
+
AnalysisSentimentResponse,
|
|
45
|
+
AnalysisViralScoreParams,
|
|
46
|
+
AnalysisViralScoreResponse,
|
|
47
|
+
} from './analysis';
|
|
33
48
|
import * as BookmarksAPI from './bookmarks';
|
|
34
|
-
import {
|
|
49
|
+
import {
|
|
50
|
+
BookmarkListParams,
|
|
51
|
+
BookmarkRetrieveFoldersParams,
|
|
52
|
+
BookmarkRetrieveFoldersResponse,
|
|
53
|
+
Bookmarks,
|
|
54
|
+
} from './bookmarks';
|
|
55
|
+
import * as BroadcastsAPI from './broadcasts';
|
|
56
|
+
import { BroadcastRetrieveParams, BroadcastRetrieveResponse, Broadcasts } from './broadcasts';
|
|
35
57
|
import * as DmAPI from './dm';
|
|
36
|
-
import {
|
|
58
|
+
import {
|
|
59
|
+
Dm,
|
|
60
|
+
DmDeleteMessageParams,
|
|
61
|
+
DmDeleteMessageResponse,
|
|
62
|
+
DmRetrieveHistoryParams,
|
|
63
|
+
DmRetrieveHistoryResponse,
|
|
64
|
+
DmSendParams,
|
|
65
|
+
DmSendResponse,
|
|
66
|
+
} from './dm';
|
|
37
67
|
import * as FollowersAPI from './followers';
|
|
38
68
|
import { FollowerCheckParams, FollowerCheckResponse, Followers } from './followers';
|
|
69
|
+
import * as JobsAPI from './jobs';
|
|
70
|
+
import {
|
|
71
|
+
JobListLocationsParams,
|
|
72
|
+
JobListLocationsResponse,
|
|
73
|
+
JobRetrieveParams,
|
|
74
|
+
JobRetrieveResponse,
|
|
75
|
+
JobSearchParams,
|
|
76
|
+
JobSearchResponse,
|
|
77
|
+
Jobs,
|
|
78
|
+
} from './jobs';
|
|
39
79
|
import * as ListsAPI from './lists';
|
|
40
80
|
import {
|
|
41
81
|
ListRetrieveFollowersParams,
|
|
82
|
+
ListRetrieveFollowersResponse,
|
|
42
83
|
ListRetrieveMembersParams,
|
|
84
|
+
ListRetrieveMembersResponse,
|
|
85
|
+
ListRetrieveParams,
|
|
86
|
+
ListRetrieveResponse,
|
|
87
|
+
ListRetrieveSearchParams,
|
|
88
|
+
ListRetrieveSearchResponse,
|
|
43
89
|
ListRetrieveTweetsParams,
|
|
44
90
|
Lists,
|
|
45
91
|
} from './lists';
|
|
@@ -61,6 +107,16 @@ import {
|
|
|
61
107
|
ProfileUpdateParams,
|
|
62
108
|
ProfileUpdateResponse,
|
|
63
109
|
} from './profile';
|
|
110
|
+
import * as SpacesAPI from './spaces';
|
|
111
|
+
import {
|
|
112
|
+
SpaceRetrieveParams,
|
|
113
|
+
SpaceRetrieveReplayParams,
|
|
114
|
+
SpaceRetrieveReplayResponse,
|
|
115
|
+
SpaceRetrieveResponse,
|
|
116
|
+
SpaceSearchParams,
|
|
117
|
+
SpaceSearchResponse,
|
|
118
|
+
Spaces,
|
|
119
|
+
} from './spaces';
|
|
64
120
|
import * as WriteActionsAPI from './write-actions';
|
|
65
121
|
import { WriteActionRetrieveResponse, WriteActions } from './write-actions';
|
|
66
122
|
import * as CommunitiesAPI from './communities/communities';
|
|
@@ -70,50 +126,98 @@ import {
|
|
|
70
126
|
CommunityCreateResponse,
|
|
71
127
|
CommunityDeleteParams,
|
|
72
128
|
CommunityDeleteResponse,
|
|
129
|
+
CommunityFindParams,
|
|
130
|
+
CommunityListPopularParams,
|
|
131
|
+
CommunityListSuggestedParams,
|
|
132
|
+
CommunityListSuggestedResponse,
|
|
133
|
+
CommunityListTopicsParams,
|
|
134
|
+
CommunityListTopicsResponse,
|
|
135
|
+
CommunityRetrieveInfoParams,
|
|
73
136
|
CommunityRetrieveInfoResponse,
|
|
74
137
|
CommunityRetrieveMembersParams,
|
|
75
138
|
CommunityRetrieveModeratorsParams,
|
|
76
139
|
CommunityRetrieveSearchParams,
|
|
140
|
+
CommunitySearchMembersParams,
|
|
77
141
|
} from './communities/communities';
|
|
78
142
|
import * as TweetsAPI from './tweets/tweets';
|
|
79
143
|
import {
|
|
80
144
|
TweetAuthor,
|
|
145
|
+
TweetCheckRepostParams,
|
|
146
|
+
TweetCheckRepostResponse,
|
|
81
147
|
TweetCreateParams,
|
|
82
148
|
TweetCreateResponse,
|
|
83
149
|
TweetDeleteParams,
|
|
84
150
|
TweetDeleteResponse,
|
|
85
151
|
TweetDetail,
|
|
152
|
+
TweetEmbedParams,
|
|
153
|
+
TweetEmbedResponse,
|
|
86
154
|
TweetGetFavoritersParams,
|
|
155
|
+
TweetGetHiddenRepliesParams,
|
|
156
|
+
TweetGetInsightsParams,
|
|
157
|
+
TweetGetInsightsResponse,
|
|
87
158
|
TweetGetQuotesParams,
|
|
88
159
|
TweetGetRepliesParams,
|
|
89
160
|
TweetGetRepliesResponse,
|
|
161
|
+
TweetGetRetweeterIDsParams,
|
|
162
|
+
TweetGetRetweeterIDsResponse,
|
|
90
163
|
TweetGetRetweetersParams,
|
|
164
|
+
TweetGetSubtitlesParams,
|
|
165
|
+
TweetGetSubtitlesResponse,
|
|
91
166
|
TweetGetThreadParams,
|
|
92
167
|
TweetListParams,
|
|
168
|
+
TweetListResponse,
|
|
169
|
+
TweetListTopParams,
|
|
170
|
+
TweetResolveLinksParams,
|
|
171
|
+
TweetResolveLinksResponse,
|
|
172
|
+
TweetRetrieveParams,
|
|
93
173
|
TweetRetrieveResponse,
|
|
94
174
|
TweetSearchParams,
|
|
95
175
|
TweetSearchResponse,
|
|
176
|
+
TweetTranslateParams,
|
|
177
|
+
TweetTranslateResponse,
|
|
96
178
|
Tweets,
|
|
97
179
|
} from './tweets/tweets';
|
|
98
180
|
import * as UsersAPI from './users/users';
|
|
99
181
|
import {
|
|
100
182
|
UserRemoveFollowerParams,
|
|
101
183
|
UserRemoveFollowerResponse,
|
|
184
|
+
UserRetrieveAffiliatesParams,
|
|
185
|
+
UserRetrieveArticlesParams,
|
|
102
186
|
UserRetrieveBatchParams,
|
|
103
187
|
UserRetrieveBatchResponse,
|
|
188
|
+
UserRetrieveBatchTweetsParams,
|
|
189
|
+
UserRetrieveBatchTweetsResponse,
|
|
190
|
+
UserRetrieveFollowerIDsParams,
|
|
191
|
+
UserRetrieveFollowerIDsResponse,
|
|
104
192
|
UserRetrieveFollowersParams,
|
|
105
193
|
UserRetrieveFollowersResponse,
|
|
106
194
|
UserRetrieveFollowersYouKnowParams,
|
|
195
|
+
UserRetrieveFollowingIDsParams,
|
|
196
|
+
UserRetrieveFollowingIDsResponse,
|
|
107
197
|
UserRetrieveFollowingParams,
|
|
108
198
|
UserRetrieveFollowingResponse,
|
|
199
|
+
UserRetrieveHighlightsParams,
|
|
200
|
+
UserRetrieveInsightsParams,
|
|
201
|
+
UserRetrieveInsightsResponse,
|
|
109
202
|
UserRetrieveLikesParams,
|
|
203
|
+
UserRetrieveListMembershipsParams,
|
|
204
|
+
UserRetrieveListMembershipsResponse,
|
|
205
|
+
UserRetrieveListsParams,
|
|
206
|
+
UserRetrieveListsResponse,
|
|
207
|
+
UserRetrieveLiveParams,
|
|
208
|
+
UserRetrieveLiveResponse,
|
|
110
209
|
UserRetrieveMediaParams,
|
|
111
210
|
UserRetrieveMentionsParams,
|
|
211
|
+
UserRetrieveParams,
|
|
112
212
|
UserRetrieveRepliesParams,
|
|
113
213
|
UserRetrieveSearchParams,
|
|
214
|
+
UserRetrieveSimilarParams,
|
|
215
|
+
UserRetrieveSubscriptionsParams,
|
|
114
216
|
UserRetrieveTweetsParams,
|
|
115
217
|
UserRetrieveVerifiedFollowersParams,
|
|
116
218
|
UserRetrieveVerifiedFollowersResponse,
|
|
219
|
+
UserTranslateBioParams,
|
|
220
|
+
UserTranslateBioResponse,
|
|
117
221
|
Users,
|
|
118
222
|
} from './users/users';
|
|
119
223
|
import { APIPromise } from '../../core/api-promise';
|
|
@@ -122,9 +226,11 @@ import { path } from '../../internal/utils/path';
|
|
|
122
226
|
|
|
123
227
|
export class X extends APIResource {
|
|
124
228
|
writeActions: WriteActionsAPI.WriteActions = new WriteActionsAPI.WriteActions(this._client);
|
|
229
|
+
analysis: AnalysisAPI.Analysis = new AnalysisAPI.Analysis(this._client);
|
|
125
230
|
tweets: TweetsAPI.Tweets = new TweetsAPI.Tweets(this._client);
|
|
126
231
|
users: UsersAPI.Users = new UsersAPI.Users(this._client);
|
|
127
232
|
followers: FollowersAPI.Followers = new FollowersAPI.Followers(this._client);
|
|
233
|
+
jobs: JobsAPI.Jobs = new JobsAPI.Jobs(this._client);
|
|
128
234
|
dm: DmAPI.Dm = new DmAPI.Dm(this._client);
|
|
129
235
|
media: MediaAPI.Media = new MediaAPI.Media(this._client);
|
|
130
236
|
profile: ProfileAPI.Profile = new ProfileAPI.Profile(this._client);
|
|
@@ -136,6 +242,27 @@ export class X extends APIResource {
|
|
|
136
242
|
new AccountConnectionAttemptsAPI.AccountConnectionAttempts(this._client);
|
|
137
243
|
bookmarks: BookmarksAPI.Bookmarks = new BookmarksAPI.Bookmarks(this._client);
|
|
138
244
|
lists: ListsAPI.Lists = new ListsAPI.Lists(this._client);
|
|
245
|
+
broadcasts: BroadcastsAPI.Broadcasts = new BroadcastsAPI.Broadcasts(this._client);
|
|
246
|
+
spaces: SpacesAPI.Spaces = new SpacesAPI.Spaces(this._client);
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Returns the accounts, topics, hashtags & cashtags X suggests while someone types
|
|
250
|
+
* a search. X may rank them differently per request. Costs 1 credit per
|
|
251
|
+
* suggestion.
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* ```ts
|
|
255
|
+
* const response = await client.x.autocompleteSearch({
|
|
256
|
+
* q: 'nasa',
|
|
257
|
+
* });
|
|
258
|
+
* ```
|
|
259
|
+
*/
|
|
260
|
+
autocompleteSearch(
|
|
261
|
+
query: XAutocompleteSearchParams,
|
|
262
|
+
options?: RequestOptions,
|
|
263
|
+
): APIPromise<XAutocompleteSearchResponse> {
|
|
264
|
+
return this._client.get('/x/search/autocomplete', { query, ...options });
|
|
265
|
+
}
|
|
139
266
|
|
|
140
267
|
/**
|
|
141
268
|
* Retrieve the full content of an X Article (long-form post) by numeric tweet ID.
|
|
@@ -146,12 +273,35 @@ export class X extends APIResource {
|
|
|
146
273
|
* const response = await client.x.getArticle('tweetId');
|
|
147
274
|
* ```
|
|
148
275
|
*/
|
|
149
|
-
getArticle(
|
|
150
|
-
|
|
276
|
+
getArticle(
|
|
277
|
+
tweetID: string,
|
|
278
|
+
query: XGetArticleParams | null | undefined = {},
|
|
279
|
+
options?: RequestOptions,
|
|
280
|
+
): APIPromise<XGetArticleResponse> {
|
|
281
|
+
return this._client.get(path`/x/articles/${tweetID}`, { query, ...options });
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Returns X's hashflags, the custom emoji X shows after some hashtags. Lists the
|
|
286
|
+
* ones running now unless activeOnly is false. Each returned hashflag costs 1
|
|
287
|
+
* credit.
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* ```ts
|
|
291
|
+
* const response = await client.x.getHashflags();
|
|
292
|
+
* ```
|
|
293
|
+
*/
|
|
294
|
+
getHashflags(
|
|
295
|
+
query: XGetHashflagsParams | null | undefined = {},
|
|
296
|
+
options?: RequestOptions,
|
|
297
|
+
): APIPromise<XGetHashflagsResponse> {
|
|
298
|
+
return this._client.get('/x/hashflags', { query, ...options });
|
|
151
299
|
}
|
|
152
300
|
|
|
153
301
|
/**
|
|
154
|
-
*
|
|
302
|
+
* Returns the home timeline of 1 of your connected X accounts, else 424
|
|
303
|
+
* `account_required`. A cursor reads the next page from the same account. Results
|
|
304
|
+
* exclude X ads.
|
|
155
305
|
*
|
|
156
306
|
* @example
|
|
157
307
|
* ```ts
|
|
@@ -166,7 +316,7 @@ export class X extends APIResource {
|
|
|
166
316
|
}
|
|
167
317
|
|
|
168
318
|
/**
|
|
169
|
-
*
|
|
319
|
+
* Returns your X account's notifications, else 424 `account_required`.
|
|
170
320
|
*
|
|
171
321
|
* @example
|
|
172
322
|
* ```ts
|
|
@@ -181,7 +331,25 @@ export class X extends APIResource {
|
|
|
181
331
|
}
|
|
182
332
|
|
|
183
333
|
/**
|
|
184
|
-
*
|
|
334
|
+
* Returns the places X offers trends for. Pass a location's woeid to /x/trends.
|
|
335
|
+
* Each returned location costs 1 credit.
|
|
336
|
+
*
|
|
337
|
+
* @example
|
|
338
|
+
* ```ts
|
|
339
|
+
* const response = await client.x.getTrendLocations();
|
|
340
|
+
* ```
|
|
341
|
+
*/
|
|
342
|
+
getTrendLocations(
|
|
343
|
+
query: XGetTrendLocationsParams | null | undefined = {},
|
|
344
|
+
options?: RequestOptions,
|
|
345
|
+
): APIPromise<XGetTrendLocationsResponse> {
|
|
346
|
+
return this._client.get('/x/trends/locations', { query, ...options });
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Returns X's current trends for a place you choose. Pick it by woeid, country or
|
|
351
|
+
* location name. Without one, trends are worldwide. Each request costs 1 credit,
|
|
352
|
+
* however many trends it returns.
|
|
185
353
|
*
|
|
186
354
|
* @example
|
|
187
355
|
* ```ts
|
|
@@ -194,38 +362,344 @@ export class X extends APIResource {
|
|
|
194
362
|
): APIPromise<XGetTrendsResponse> {
|
|
195
363
|
return this._client.get('/x/trends', { query, ...options });
|
|
196
364
|
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Finds places on X by name. Pass a place's id as place to /x/tweets/search to
|
|
368
|
+
* read posts tagged there. X ranks the places, so their order can differ between
|
|
369
|
+
* requests. Each returned place costs 1 credit.
|
|
370
|
+
*
|
|
371
|
+
* @example
|
|
372
|
+
* ```ts
|
|
373
|
+
* const response = await client.x.searchPlaces({ q: 'q' });
|
|
374
|
+
* ```
|
|
375
|
+
*/
|
|
376
|
+
searchPlaces(query: XSearchPlacesParams, options?: RequestOptions): APIPromise<XSearchPlacesResponse> {
|
|
377
|
+
return this._client.get('/x/places/search', { query, ...options });
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* What X suggests for a partial search query. Each list keeps X's order. A list is
|
|
383
|
+
* empty when X suggests none of its type or types leaves it out.
|
|
384
|
+
*/
|
|
385
|
+
export interface XAutocompleteSearchResponse {
|
|
386
|
+
/**
|
|
387
|
+
* Suggested stocks & crypto tokens.
|
|
388
|
+
*/
|
|
389
|
+
cashtags: Array<XAutocompleteSearchResponse.Cashtag>;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Suggestions returned across all 4 lists. Each costs 1 credit.
|
|
393
|
+
*/
|
|
394
|
+
count: number;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Suggested hashtags.
|
|
398
|
+
*/
|
|
399
|
+
hashtags: Array<XAutocompleteSearchResponse.Hashtag>;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* The query you sent, trimmed.
|
|
403
|
+
*/
|
|
404
|
+
query: string;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Suggested search phrases that are not hashtags.
|
|
408
|
+
*/
|
|
409
|
+
topics: Array<XAutocompleteSearchResponse.Topic>;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Suggested accounts.
|
|
413
|
+
*/
|
|
414
|
+
users: Array<XAutocompleteSearchResponse.User>;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export namespace XAutocompleteSearchResponse {
|
|
418
|
+
/**
|
|
419
|
+
* A stock or crypto token X suggests for the query.
|
|
420
|
+
*/
|
|
421
|
+
export interface Cashtag {
|
|
422
|
+
/**
|
|
423
|
+
* Ticker symbol without the $.
|
|
424
|
+
*/
|
|
425
|
+
ticker: string;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Logo of the token's chain. Tokens only.
|
|
429
|
+
*/
|
|
430
|
+
chainLogoUrl?: string;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Token contract address. Tokens only.
|
|
434
|
+
*/
|
|
435
|
+
contractAddress?: string;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Currency of price & marketCap.
|
|
439
|
+
*/
|
|
440
|
+
currency?: string;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Price change over the last 24 hours, in percent.
|
|
444
|
+
*/
|
|
445
|
+
dailyChangePercent?: number;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Stock exchange. Stocks only.
|
|
449
|
+
*/
|
|
450
|
+
exchangeShortName?: string;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Logo image URL.
|
|
454
|
+
*/
|
|
455
|
+
logoUrl?: string;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Market capitalization as decimal text.
|
|
459
|
+
*/
|
|
460
|
+
marketCap?: string;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Company or token name.
|
|
464
|
+
*/
|
|
465
|
+
name?: string;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Latest price as decimal text, which keeps every digit.
|
|
469
|
+
*/
|
|
470
|
+
price?: string;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* X's tag for the asset. $TICKER for a stock, chain:contract for a token.
|
|
474
|
+
*/
|
|
475
|
+
smartTag?: string;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* A hashtag X suggests for the query.
|
|
480
|
+
*/
|
|
481
|
+
export interface Hashtag {
|
|
482
|
+
/**
|
|
483
|
+
* Suggested hashtag, with its
|
|
484
|
+
*/
|
|
485
|
+
hashtag: string;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* X's inline flag for the hashtag.
|
|
489
|
+
*/
|
|
490
|
+
inline?: boolean;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* X's rounded relevance score for the hashtag.
|
|
494
|
+
*/
|
|
495
|
+
score?: number;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Normalized text tokens X matches the hashtag by.
|
|
499
|
+
*/
|
|
500
|
+
tokens?: Array<string>;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* A search phrase X suggests for the query.
|
|
505
|
+
*/
|
|
506
|
+
export interface Topic {
|
|
507
|
+
/**
|
|
508
|
+
* Suggested search phrase.
|
|
509
|
+
*/
|
|
510
|
+
topic: string;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* X's inline flag for the phrase.
|
|
514
|
+
*/
|
|
515
|
+
inline?: boolean;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* X's rounded relevance score for the phrase.
|
|
519
|
+
*/
|
|
520
|
+
score?: number;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Normalized text tokens X matches the phrase by.
|
|
524
|
+
*/
|
|
525
|
+
tokens?: Array<string>;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* An account X suggests for the query.
|
|
530
|
+
*/
|
|
531
|
+
export interface User {
|
|
532
|
+
/**
|
|
533
|
+
* X user ID.
|
|
534
|
+
*/
|
|
535
|
+
id: string;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Display name.
|
|
539
|
+
*/
|
|
540
|
+
name: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Handle without the @.
|
|
544
|
+
*/
|
|
545
|
+
username: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Affiliation badges X shows beside the name.
|
|
549
|
+
*/
|
|
550
|
+
badges?: Array<User.Badge>;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* X's inline flag for the account.
|
|
554
|
+
*/
|
|
555
|
+
inline?: boolean;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Whether X shows a blue verification badge.
|
|
559
|
+
*/
|
|
560
|
+
isBlueVerified?: boolean;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* X's flag for whether media can be generated from this account's persona.
|
|
564
|
+
*/
|
|
565
|
+
isPersonaMediaGenable?: boolean;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Whether the account holds X's legacy verification.
|
|
569
|
+
*/
|
|
570
|
+
isVerified?: boolean;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Public profile location text. Omitted when empty.
|
|
574
|
+
*/
|
|
575
|
+
location?: string;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Avatar URL.
|
|
579
|
+
*/
|
|
580
|
+
profilePicture?: string;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Whether the account protects its posts.
|
|
584
|
+
*/
|
|
585
|
+
protected?: boolean;
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* X's rounded relevance score for the account.
|
|
589
|
+
*/
|
|
590
|
+
score?: number;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Normalized text tokens X matches the account by.
|
|
594
|
+
*/
|
|
595
|
+
tokens?: Array<string>;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Whether X shows any verification badge.
|
|
599
|
+
*/
|
|
600
|
+
verified?: boolean;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Verification category, such as Government or Business. Omitted when X names
|
|
604
|
+
* none.
|
|
605
|
+
*/
|
|
606
|
+
verifiedType?: string;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export namespace User {
|
|
610
|
+
/**
|
|
611
|
+
* 1 affiliation badge.
|
|
612
|
+
*/
|
|
613
|
+
export interface Badge {
|
|
614
|
+
/**
|
|
615
|
+
* Kind of badge.
|
|
616
|
+
*/
|
|
617
|
+
badgeType?: string;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Badge image URL.
|
|
621
|
+
*/
|
|
622
|
+
badgeUrl?: string;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Name of the affiliated account.
|
|
626
|
+
*/
|
|
627
|
+
description?: string;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
197
630
|
}
|
|
198
631
|
|
|
199
632
|
export interface XGetArticleResponse {
|
|
200
633
|
article: XGetArticleResponse.Article;
|
|
201
634
|
|
|
202
635
|
/**
|
|
203
|
-
* X Article author
|
|
636
|
+
* Available X Article author fields.
|
|
204
637
|
*/
|
|
205
638
|
author?: XGetArticleResponse.Author;
|
|
206
639
|
}
|
|
207
640
|
|
|
208
641
|
export namespace XGetArticleResponse {
|
|
209
642
|
export interface Article {
|
|
643
|
+
/**
|
|
644
|
+
* X's ID for the Article, which differs from its post's ID
|
|
645
|
+
*/
|
|
646
|
+
articleId?: string;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Article blocks as Markdown, with headings, lists, bold, italic, links, images &
|
|
650
|
+
* embedded posts as their x.com URLs. Holds no HTML.
|
|
651
|
+
*/
|
|
652
|
+
bodyMarkdown?: string;
|
|
653
|
+
|
|
210
654
|
/**
|
|
211
655
|
* Plain text joined from all article blocks
|
|
212
656
|
*/
|
|
213
657
|
bodyText?: string;
|
|
214
658
|
|
|
659
|
+
/**
|
|
660
|
+
* Accounts that bookmarked the Article's post. 0 or more.
|
|
661
|
+
*/
|
|
662
|
+
bookmarkCount?: number;
|
|
663
|
+
|
|
215
664
|
contents?: Array<Article.Content>;
|
|
216
665
|
|
|
217
666
|
coverImageUrl?: string;
|
|
218
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Public metadata whose fields are defined by X.
|
|
670
|
+
*/
|
|
671
|
+
coverMedia?: { [key: string]: unknown };
|
|
672
|
+
|
|
219
673
|
createdAt?: string;
|
|
220
674
|
|
|
675
|
+
/**
|
|
676
|
+
* Public metadata whose fields are defined by X.
|
|
677
|
+
*/
|
|
678
|
+
lifecycleState?: { [key: string]: unknown };
|
|
679
|
+
|
|
221
680
|
likeCount?: number;
|
|
222
681
|
|
|
682
|
+
/**
|
|
683
|
+
* Public metadata whose fields are defined by X.
|
|
684
|
+
*/
|
|
685
|
+
metadata?: { [key: string]: unknown };
|
|
686
|
+
|
|
223
687
|
previewText?: string;
|
|
224
688
|
|
|
225
689
|
quoteCount?: number;
|
|
226
690
|
|
|
227
691
|
replyCount?: number;
|
|
228
692
|
|
|
693
|
+
/**
|
|
694
|
+
* Reposts of the Article's post. 0 or more.
|
|
695
|
+
*/
|
|
696
|
+
retweetCount?: number;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* X's summary of the Article, when X has one
|
|
700
|
+
*/
|
|
701
|
+
summaryText?: string;
|
|
702
|
+
|
|
229
703
|
title?: string;
|
|
230
704
|
|
|
231
705
|
viewCount?: number;
|
|
@@ -233,6 +707,24 @@ export namespace XGetArticleResponse {
|
|
|
233
707
|
|
|
234
708
|
export namespace Article {
|
|
235
709
|
export interface Content {
|
|
710
|
+
/**
|
|
711
|
+
* Alt text of the image or preview image
|
|
712
|
+
*/
|
|
713
|
+
altText?: string;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Caption the author wrote under a media block
|
|
717
|
+
*/
|
|
718
|
+
caption?: string;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Length of a video, in milliseconds
|
|
722
|
+
*/
|
|
723
|
+
durationMs?: number;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Height of the image or preview image
|
|
727
|
+
*/
|
|
236
728
|
height?: number;
|
|
237
729
|
|
|
238
730
|
/**
|
|
@@ -241,24 +733,47 @@ export namespace XGetArticleResponse {
|
|
|
241
733
|
inlineStyleRanges?: Array<Content.InlineStyleRange>;
|
|
242
734
|
|
|
243
735
|
/**
|
|
244
|
-
*
|
|
736
|
+
* Links in the block's text, with the text range each covers
|
|
737
|
+
*/
|
|
738
|
+
links?: Array<Content.Link>;
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* What a media block holds
|
|
742
|
+
*/
|
|
743
|
+
mediaType?: 'image' | 'video' | 'gif';
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Image of a media block, or the preview image of a video or GIF
|
|
245
747
|
*/
|
|
246
748
|
previewUrl?: string;
|
|
247
749
|
|
|
248
750
|
text?: string;
|
|
249
751
|
|
|
752
|
+
/**
|
|
753
|
+
* ID of the post a tweet block embeds
|
|
754
|
+
*/
|
|
755
|
+
tweetId?: string;
|
|
756
|
+
|
|
250
757
|
/**
|
|
251
758
|
* Block type: paragraph, header-one, header-two, header-three, header-four,
|
|
252
759
|
* header-five, header-six, unordered-list-item, ordered-list-item, blockquote,
|
|
253
|
-
* code-block, media, divider
|
|
760
|
+
* code-block, markdown, media, tweet, divider
|
|
254
761
|
*/
|
|
255
762
|
type?: string;
|
|
256
763
|
|
|
257
764
|
/**
|
|
258
|
-
*
|
|
765
|
+
* Image URL of an image block. A video or GIF block lists its files in `variants`.
|
|
259
766
|
*/
|
|
260
767
|
url?: string;
|
|
261
768
|
|
|
769
|
+
/**
|
|
770
|
+
* Files of a video or GIF block, in X's order
|
|
771
|
+
*/
|
|
772
|
+
variants?: Array<Content.Variant>;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Width of the image or preview image
|
|
776
|
+
*/
|
|
262
777
|
width?: number;
|
|
263
778
|
}
|
|
264
779
|
|
|
@@ -268,18 +783,37 @@ export namespace XGetArticleResponse {
|
|
|
268
783
|
|
|
269
784
|
offset?: number;
|
|
270
785
|
|
|
786
|
+
/**
|
|
787
|
+
* X's name for the style, such as Bold or Italic
|
|
788
|
+
*/
|
|
271
789
|
style?: string;
|
|
272
790
|
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
791
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
*/
|
|
279
|
-
export interface Author {
|
|
280
|
-
id: string;
|
|
792
|
+
export interface Link {
|
|
793
|
+
length?: number;
|
|
281
794
|
|
|
282
|
-
|
|
795
|
+
offset?: number;
|
|
796
|
+
|
|
797
|
+
url?: string;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export interface Variant {
|
|
801
|
+
contentType: string;
|
|
802
|
+
|
|
803
|
+
url: string;
|
|
804
|
+
|
|
805
|
+
bitrate?: number;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Available X Article author fields.
|
|
812
|
+
*/
|
|
813
|
+
export interface Author {
|
|
814
|
+
id: string;
|
|
815
|
+
|
|
816
|
+
name: string;
|
|
283
817
|
|
|
284
818
|
username: string;
|
|
285
819
|
|
|
@@ -287,10 +821,19 @@ export namespace XGetArticleResponse {
|
|
|
287
821
|
|
|
288
822
|
description?: string;
|
|
289
823
|
|
|
824
|
+
/**
|
|
825
|
+
* Whole number from 0.
|
|
826
|
+
*/
|
|
290
827
|
favouritesCount?: number;
|
|
291
828
|
|
|
829
|
+
/**
|
|
830
|
+
* Whole number from 0.
|
|
831
|
+
*/
|
|
292
832
|
followersCount?: number;
|
|
293
833
|
|
|
834
|
+
/**
|
|
835
|
+
* Whole number from 0.
|
|
836
|
+
*/
|
|
294
837
|
followingCount?: number;
|
|
295
838
|
|
|
296
839
|
isBlueVerified?: boolean;
|
|
@@ -301,6 +844,9 @@ export namespace XGetArticleResponse {
|
|
|
301
844
|
|
|
302
845
|
location?: string;
|
|
303
846
|
|
|
847
|
+
/**
|
|
848
|
+
* Whole number from 0.
|
|
849
|
+
*/
|
|
304
850
|
mediaCount?: number;
|
|
305
851
|
|
|
306
852
|
profileBannerUrl?: string;
|
|
@@ -309,12 +855,90 @@ export namespace XGetArticleResponse {
|
|
|
309
855
|
|
|
310
856
|
protected?: boolean;
|
|
311
857
|
|
|
858
|
+
/**
|
|
859
|
+
* Whole number from 0.
|
|
860
|
+
*/
|
|
312
861
|
statusesCount?: number;
|
|
313
862
|
|
|
314
863
|
url?: string;
|
|
315
864
|
}
|
|
316
865
|
}
|
|
317
866
|
|
|
867
|
+
export interface XGetHashflagsResponse {
|
|
868
|
+
/**
|
|
869
|
+
* Hashflags returned & charged.
|
|
870
|
+
*/
|
|
871
|
+
count: number;
|
|
872
|
+
|
|
873
|
+
hashflags: Array<XGetHashflagsResponse.Hashflag>;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Hashflags that match the filters, before limit.
|
|
877
|
+
*/
|
|
878
|
+
total: number;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* What to send instead. Present only when no hashflag matches.
|
|
882
|
+
*/
|
|
883
|
+
message?: string;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export namespace XGetHashflagsResponse {
|
|
887
|
+
/**
|
|
888
|
+
* A custom emoji X shows after a hashtag for a set time.
|
|
889
|
+
*/
|
|
890
|
+
export interface Hashflag {
|
|
891
|
+
/**
|
|
892
|
+
* Animations X plays for the hashtag, such as on a like. Often empty.
|
|
893
|
+
*/
|
|
894
|
+
animations: Array<Hashflag.Animation>;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Image of the emoji.
|
|
898
|
+
*/
|
|
899
|
+
assetUrl: string;
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* When X stops showing the emoji, in UTC.
|
|
903
|
+
*/
|
|
904
|
+
endsAt: string;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Hashtag text without the hash sign. X also lists some plain phrases.
|
|
908
|
+
*/
|
|
909
|
+
hashtag: string;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Whether X marks the hashflag for its hashfetti effect.
|
|
913
|
+
*/
|
|
914
|
+
isHashfettiEnabled: boolean;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* When X starts showing the emoji, in UTC.
|
|
918
|
+
*/
|
|
919
|
+
startsAt: string;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
export namespace Hashflag {
|
|
923
|
+
export interface Animation {
|
|
924
|
+
/**
|
|
925
|
+
* Animation file.
|
|
926
|
+
*/
|
|
927
|
+
assetUrl: string;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* What plays the animation, such as Like.
|
|
931
|
+
*/
|
|
932
|
+
context: string | null;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* X's order among the animations of a hashtag.
|
|
936
|
+
*/
|
|
937
|
+
priority: number | null;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
|
|
318
942
|
export interface XGetNotificationsResponse {
|
|
319
943
|
has_next_page: boolean;
|
|
320
944
|
|
|
@@ -335,12 +959,81 @@ export namespace XGetNotificationsResponse {
|
|
|
335
959
|
}
|
|
336
960
|
}
|
|
337
961
|
|
|
962
|
+
export interface XGetTrendLocationsResponse {
|
|
963
|
+
/**
|
|
964
|
+
* Locations returned & charged.
|
|
965
|
+
*/
|
|
966
|
+
count: number;
|
|
967
|
+
|
|
968
|
+
locations: Array<XGetTrendLocationsResponse.Location>;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Locations that match the filters, before limit.
|
|
972
|
+
*/
|
|
973
|
+
total: number;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* What to send instead. Present only when no location matches.
|
|
977
|
+
*/
|
|
978
|
+
message?: string;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
export namespace XGetTrendLocationsResponse {
|
|
982
|
+
/**
|
|
983
|
+
* A place X offers trends for.
|
|
984
|
+
*/
|
|
985
|
+
export interface Location {
|
|
986
|
+
/**
|
|
987
|
+
* Country name. Null for Worldwide.
|
|
988
|
+
*/
|
|
989
|
+
country: string | null;
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* 2-letter country code. Null for Worldwide.
|
|
993
|
+
*/
|
|
994
|
+
countryCode: string | null;
|
|
995
|
+
|
|
996
|
+
name: string;
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* WOEID of the country or region above it. Null for Worldwide.
|
|
1000
|
+
*/
|
|
1001
|
+
parentWoeid: number | null;
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* X's kind of place. Town, Country, Supername for Worldwide, or Unknown.
|
|
1005
|
+
*/
|
|
1006
|
+
placeType: string | null;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* X's numeric code for the kind of place.
|
|
1010
|
+
*/
|
|
1011
|
+
placeTypeCode: number | null;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* X's legacy Yahoo GeoPlanet reference. It may not resolve.
|
|
1015
|
+
*/
|
|
1016
|
+
url: string | null;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Location ID. Pass it as woeid to /x/trends.
|
|
1020
|
+
*/
|
|
1021
|
+
woeid: number;
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
338
1025
|
export interface XGetTrendsResponse {
|
|
339
1026
|
count: number;
|
|
340
1027
|
|
|
341
1028
|
trends: Array<XGetTrendsResponse.Trend>;
|
|
342
1029
|
|
|
343
1030
|
woeid: number;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* The place country or location named. Absent when woeid picked the place or the
|
|
1034
|
+
* request named none.
|
|
1035
|
+
*/
|
|
1036
|
+
location?: XGetTrendsResponse.Location;
|
|
344
1037
|
}
|
|
345
1038
|
|
|
346
1039
|
export namespace XGetTrendsResponse {
|
|
@@ -368,11 +1061,316 @@ export namespace XGetTrendsResponse {
|
|
|
368
1061
|
*/
|
|
369
1062
|
url?: string;
|
|
370
1063
|
}
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* The place country or location named. Absent when woeid picked the place or the
|
|
1067
|
+
* request named none.
|
|
1068
|
+
*/
|
|
1069
|
+
export interface Location {
|
|
1070
|
+
/**
|
|
1071
|
+
* Country name. Null for Worldwide.
|
|
1072
|
+
*/
|
|
1073
|
+
country: string | null;
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* 2-letter country code. Null for Worldwide.
|
|
1077
|
+
*/
|
|
1078
|
+
countryCode: string | null;
|
|
1079
|
+
|
|
1080
|
+
name: string;
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* WOEID of the country or region above it. Null for Worldwide.
|
|
1084
|
+
*/
|
|
1085
|
+
parentWoeid: number | null;
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* X's kind of place. Town, Country, Supername for Worldwide, or Unknown.
|
|
1089
|
+
*/
|
|
1090
|
+
placeType: string | null;
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* X's numeric code for the kind of place.
|
|
1094
|
+
*/
|
|
1095
|
+
placeTypeCode: number | null;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* X's legacy Yahoo GeoPlanet reference. It may not resolve.
|
|
1099
|
+
*/
|
|
1100
|
+
url: string | null;
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Location ID. Pass it as woeid to /x/trends.
|
|
1104
|
+
*/
|
|
1105
|
+
woeid: number;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
export interface XSearchPlacesResponse {
|
|
1110
|
+
/**
|
|
1111
|
+
* Places returned & charged.
|
|
1112
|
+
*/
|
|
1113
|
+
count: number;
|
|
1114
|
+
|
|
1115
|
+
places: Array<XSearchPlacesResponse.Place>;
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Places X found, before limit.
|
|
1119
|
+
*/
|
|
1120
|
+
total: number;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* What to send instead. Present only when X finds no place.
|
|
1124
|
+
*/
|
|
1125
|
+
message?: string;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
export namespace XSearchPlacesResponse {
|
|
1129
|
+
/**
|
|
1130
|
+
* A place X found, with the larger places it lies in.
|
|
1131
|
+
*/
|
|
1132
|
+
export interface Place {
|
|
1133
|
+
/**
|
|
1134
|
+
* Place ID. Pass it as place to /x/tweets/search.
|
|
1135
|
+
*/
|
|
1136
|
+
id: string;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Extra details X attaches to some places. Often empty.
|
|
1140
|
+
*/
|
|
1141
|
+
attributes: { [key: string]: unknown };
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Outline of the place as GeoJSON. Each point holds longitude, then latitude.
|
|
1145
|
+
*/
|
|
1146
|
+
boundingBox: Place.BoundingBox | null;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Center of the place. Longitude, then latitude.
|
|
1150
|
+
*/
|
|
1151
|
+
centroid: Array<number> | null;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Larger places this place lies in. Often 1.
|
|
1155
|
+
*/
|
|
1156
|
+
containedWithin: Array<Place.ContainedWithin>;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Country the place lies in.
|
|
1160
|
+
*/
|
|
1161
|
+
country: string | null;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* 2-letter code of the country the place lies in.
|
|
1165
|
+
*/
|
|
1166
|
+
countryCode: string | null;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Name with the region or country around the place.
|
|
1170
|
+
*/
|
|
1171
|
+
fullName: string | null;
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Short name of the place.
|
|
1175
|
+
*/
|
|
1176
|
+
name: string;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* X's kind of place, such as city, admin, neighborhood, poi or country.
|
|
1180
|
+
*/
|
|
1181
|
+
placeType: string | null;
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* X's own reference URL for the place.
|
|
1185
|
+
*/
|
|
1186
|
+
url: string | null;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
export namespace Place {
|
|
1190
|
+
/**
|
|
1191
|
+
* Outline of the place as GeoJSON. Each point holds longitude, then latitude.
|
|
1192
|
+
*/
|
|
1193
|
+
export interface BoundingBox {
|
|
1194
|
+
/**
|
|
1195
|
+
* Rings of points that draw the outline.
|
|
1196
|
+
*/
|
|
1197
|
+
coordinates: Array<Array<Array<number>>>;
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* GeoJSON shape of the outline.
|
|
1201
|
+
*/
|
|
1202
|
+
type: string;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* A place on X, such as a city or a neighborhood.
|
|
1207
|
+
*/
|
|
1208
|
+
export interface ContainedWithin {
|
|
1209
|
+
/**
|
|
1210
|
+
* Place ID. Pass it as place to /x/tweets/search.
|
|
1211
|
+
*/
|
|
1212
|
+
id: string;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Extra details X attaches to some places. Often empty.
|
|
1216
|
+
*/
|
|
1217
|
+
attributes: { [key: string]: unknown };
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Outline of the place as GeoJSON. Each point holds longitude, then latitude.
|
|
1221
|
+
*/
|
|
1222
|
+
boundingBox: ContainedWithin.BoundingBox | null;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Center of the place. Longitude, then latitude.
|
|
1226
|
+
*/
|
|
1227
|
+
centroid: Array<number> | null;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Country the place lies in.
|
|
1231
|
+
*/
|
|
1232
|
+
country: string | null;
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* 2-letter code of the country the place lies in.
|
|
1236
|
+
*/
|
|
1237
|
+
countryCode: string | null;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Name with the region or country around the place.
|
|
1241
|
+
*/
|
|
1242
|
+
fullName: string | null;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Short name of the place.
|
|
1246
|
+
*/
|
|
1247
|
+
name: string;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* X's kind of place, such as city, admin, neighborhood, poi or country.
|
|
1251
|
+
*/
|
|
1252
|
+
placeType: string | null;
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* X's own reference URL for the place.
|
|
1256
|
+
*/
|
|
1257
|
+
url: string | null;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
export namespace ContainedWithin {
|
|
1261
|
+
/**
|
|
1262
|
+
* Outline of the place as GeoJSON. Each point holds longitude, then latitude.
|
|
1263
|
+
*/
|
|
1264
|
+
export interface BoundingBox {
|
|
1265
|
+
/**
|
|
1266
|
+
* Rings of points that draw the outline.
|
|
1267
|
+
*/
|
|
1268
|
+
coordinates: Array<Array<Array<number>>>;
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* GeoJSON shape of the outline.
|
|
1272
|
+
*/
|
|
1273
|
+
type: string;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
export interface XAutocompleteSearchParams {
|
|
1280
|
+
/**
|
|
1281
|
+
* Text typed so far. Start with # for hashtags or $ for cashtags. A # query
|
|
1282
|
+
* returns hashtags & the accounts X suggests for it. Alias: query.
|
|
1283
|
+
*/
|
|
1284
|
+
q: string;
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1288
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1289
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1290
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1291
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1292
|
+
* named fields.
|
|
1293
|
+
*/
|
|
1294
|
+
fields?: string;
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Most suggestions to return: 1 to 100, default 20. Accounts fill it first, then
|
|
1298
|
+
* topics, hashtags & cashtags. Credits can return fewer. Aliases: pageSize, count,
|
|
1299
|
+
* max_results, maxItems, max_items & per_page.
|
|
1300
|
+
*/
|
|
1301
|
+
limit?: number;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1305
|
+
* fields. With fields, it drops from the kept fields.
|
|
1306
|
+
*/
|
|
1307
|
+
omit?: string;
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* Comma-separated suggestion types: users, topics, hashtags or cashtags. Omit for
|
|
1311
|
+
* all. With only hashtags or only cashtags, the query gets its # or $ when it
|
|
1312
|
+
* lacks one.
|
|
1313
|
+
*/
|
|
1314
|
+
types?: string;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
export interface XGetArticleParams {
|
|
1318
|
+
/**
|
|
1319
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1320
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1321
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1322
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1323
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1324
|
+
* named fields.
|
|
1325
|
+
*/
|
|
1326
|
+
fields?: string;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1330
|
+
* fields. With fields, it drops from the kept fields.
|
|
1331
|
+
*/
|
|
1332
|
+
omit?: string;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
export interface XGetHashflagsParams {
|
|
1336
|
+
/**
|
|
1337
|
+
* Keeps hashflags that run now. Send false to add ended & upcoming ones.
|
|
1338
|
+
*/
|
|
1339
|
+
activeOnly?: boolean;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1343
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1344
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1345
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1346
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1347
|
+
* named fields.
|
|
1348
|
+
*/
|
|
1349
|
+
fields?: string;
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* Maximum hashflags to return. Omit it for every match. Credits can return fewer.
|
|
1353
|
+
* Aliases pageSize, count, max_results, maxItems, max_items & per_page.
|
|
1354
|
+
*/
|
|
1355
|
+
limit?: number;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1359
|
+
* fields. With fields, it drops from the kept fields.
|
|
1360
|
+
*/
|
|
1361
|
+
omit?: string;
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Text the hashtag contains, such as football. Case insensitive. A leading hash
|
|
1365
|
+
* sign is ignored. Alias query.
|
|
1366
|
+
*/
|
|
1367
|
+
q?: string;
|
|
371
1368
|
}
|
|
372
1369
|
|
|
373
1370
|
export interface XGetHomeTimelineParams {
|
|
374
1371
|
/**
|
|
375
|
-
* Pagination cursor for
|
|
1372
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
1373
|
+
* pagination_token or continuation_token.
|
|
376
1374
|
*/
|
|
377
1375
|
cursor?: string;
|
|
378
1376
|
|
|
@@ -384,7 +1382,8 @@ export interface XGetHomeTimelineParams {
|
|
|
384
1382
|
|
|
385
1383
|
export interface XGetNotificationsParams {
|
|
386
1384
|
/**
|
|
387
|
-
* Pagination cursor for
|
|
1385
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
1386
|
+
* pagination_token or continuation_token.
|
|
388
1387
|
*/
|
|
389
1388
|
cursor?: string;
|
|
390
1389
|
|
|
@@ -394,6 +1393,46 @@ export interface XGetNotificationsParams {
|
|
|
394
1393
|
type?: 'All' | 'Verified' | 'Mentions';
|
|
395
1394
|
}
|
|
396
1395
|
|
|
1396
|
+
export interface XGetTrendLocationsParams {
|
|
1397
|
+
/**
|
|
1398
|
+
* Country name or 2-letter code, such as Turkey or TR. Case insensitive. Returns
|
|
1399
|
+
* the country & its towns.
|
|
1400
|
+
*/
|
|
1401
|
+
country?: string;
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1405
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1406
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1407
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1408
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1409
|
+
* named fields.
|
|
1410
|
+
*/
|
|
1411
|
+
fields?: string;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Maximum locations to return. Omit it for every match. Credits can return fewer.
|
|
1415
|
+
* Aliases pageSize, count, max_results, maxItems, max_items & per_page.
|
|
1416
|
+
*/
|
|
1417
|
+
limit?: number;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1421
|
+
* fields. With fields, it drops from the kept fields.
|
|
1422
|
+
*/
|
|
1423
|
+
omit?: string;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Kind of place. Case insensitive. X labels a few towns unknown.
|
|
1427
|
+
*/
|
|
1428
|
+
placeType?: 'country' | 'town' | 'worldwide' | 'unknown';
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Text the location name contains, such as york. Case insensitive. Alias query.
|
|
1432
|
+
*/
|
|
1433
|
+
q?: string;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
397
1436
|
export interface XGetTrendsParams {
|
|
398
1437
|
/**
|
|
399
1438
|
* Number of trending topics to return (1-50, default 30)
|
|
@@ -401,15 +1440,75 @@ export interface XGetTrendsParams {
|
|
|
401
1440
|
count?: number;
|
|
402
1441
|
|
|
403
1442
|
/**
|
|
404
|
-
*
|
|
1443
|
+
* Country to read trends for, by name or 2-letter code, such as Turkey or TR. Case
|
|
1444
|
+
* insensitive.
|
|
1445
|
+
*/
|
|
1446
|
+
country?: string;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1450
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1451
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1452
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1453
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1454
|
+
* named fields.
|
|
1455
|
+
*/
|
|
1456
|
+
fields?: string;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* Town or country to read trends for, by name, such as Istanbul. Case insensitive.
|
|
1460
|
+
* Add country when 2 towns share a name. /x/trends/locations lists every name.
|
|
1461
|
+
*/
|
|
1462
|
+
location?: string;
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1466
|
+
* fields. With fields, it drops from the kept fields.
|
|
1467
|
+
*/
|
|
1468
|
+
omit?: string;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Region WOEID (1=Worldwide, 23424977=US, 23424975=UK, 23424969=Turkey). Wins over
|
|
1472
|
+
* country & location.
|
|
405
1473
|
*/
|
|
406
1474
|
woeid?: number;
|
|
407
1475
|
}
|
|
408
1476
|
|
|
1477
|
+
export interface XSearchPlacesParams {
|
|
1478
|
+
/**
|
|
1479
|
+
* Place name to search for, such as istanbul. Alias query.
|
|
1480
|
+
*/
|
|
1481
|
+
q: string;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1485
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
1486
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1487
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1488
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
1489
|
+
* named fields.
|
|
1490
|
+
*/
|
|
1491
|
+
fields?: string;
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* Maximum places to return. Omit it for every place X finds. Credits can return
|
|
1495
|
+
* fewer. Aliases pageSize, count, max_results, maxItems, max_items & per_page.
|
|
1496
|
+
*/
|
|
1497
|
+
limit?: number;
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
1501
|
+
* fields. With fields, it drops from the kept fields.
|
|
1502
|
+
*/
|
|
1503
|
+
omit?: string;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
409
1506
|
X.WriteActions = WriteActions;
|
|
1507
|
+
X.Analysis = Analysis;
|
|
410
1508
|
X.Tweets = Tweets;
|
|
411
1509
|
X.Users = Users;
|
|
412
1510
|
X.Followers = Followers;
|
|
1511
|
+
X.Jobs = Jobs;
|
|
413
1512
|
X.Dm = Dm;
|
|
414
1513
|
X.Media = Media;
|
|
415
1514
|
X.Profile = Profile;
|
|
@@ -419,58 +1518,125 @@ X.AccountConnectionChallenges = AccountConnectionChallenges;
|
|
|
419
1518
|
X.AccountConnectionAttempts = AccountConnectionAttempts;
|
|
420
1519
|
X.Bookmarks = Bookmarks;
|
|
421
1520
|
X.Lists = Lists;
|
|
1521
|
+
X.Broadcasts = Broadcasts;
|
|
1522
|
+
X.Spaces = Spaces;
|
|
422
1523
|
|
|
423
1524
|
export declare namespace X {
|
|
424
1525
|
export {
|
|
1526
|
+
type XAutocompleteSearchResponse as XAutocompleteSearchResponse,
|
|
425
1527
|
type XGetArticleResponse as XGetArticleResponse,
|
|
1528
|
+
type XGetHashflagsResponse as XGetHashflagsResponse,
|
|
426
1529
|
type XGetNotificationsResponse as XGetNotificationsResponse,
|
|
1530
|
+
type XGetTrendLocationsResponse as XGetTrendLocationsResponse,
|
|
427
1531
|
type XGetTrendsResponse as XGetTrendsResponse,
|
|
1532
|
+
type XSearchPlacesResponse as XSearchPlacesResponse,
|
|
1533
|
+
type XAutocompleteSearchParams as XAutocompleteSearchParams,
|
|
1534
|
+
type XGetArticleParams as XGetArticleParams,
|
|
1535
|
+
type XGetHashflagsParams as XGetHashflagsParams,
|
|
428
1536
|
type XGetHomeTimelineParams as XGetHomeTimelineParams,
|
|
429
1537
|
type XGetNotificationsParams as XGetNotificationsParams,
|
|
1538
|
+
type XGetTrendLocationsParams as XGetTrendLocationsParams,
|
|
430
1539
|
type XGetTrendsParams as XGetTrendsParams,
|
|
1540
|
+
type XSearchPlacesParams as XSearchPlacesParams,
|
|
431
1541
|
};
|
|
432
1542
|
|
|
433
1543
|
export { WriteActions as WriteActions, type WriteActionRetrieveResponse as WriteActionRetrieveResponse };
|
|
434
1544
|
|
|
1545
|
+
export {
|
|
1546
|
+
Analysis as Analysis,
|
|
1547
|
+
type AnalysisBrandResponse as AnalysisBrandResponse,
|
|
1548
|
+
type AnalysisClassifyResponse as AnalysisClassifyResponse,
|
|
1549
|
+
type AnalysisMarketSignalsResponse as AnalysisMarketSignalsResponse,
|
|
1550
|
+
type AnalysisNewsResponse as AnalysisNewsResponse,
|
|
1551
|
+
type AnalysisSentimentResponse as AnalysisSentimentResponse,
|
|
1552
|
+
type AnalysisViralScoreResponse as AnalysisViralScoreResponse,
|
|
1553
|
+
type AnalysisBrandParams as AnalysisBrandParams,
|
|
1554
|
+
type AnalysisClassifyParams as AnalysisClassifyParams,
|
|
1555
|
+
type AnalysisMarketSignalsParams as AnalysisMarketSignalsParams,
|
|
1556
|
+
type AnalysisNewsParams as AnalysisNewsParams,
|
|
1557
|
+
type AnalysisSentimentParams as AnalysisSentimentParams,
|
|
1558
|
+
type AnalysisViralScoreParams as AnalysisViralScoreParams,
|
|
1559
|
+
};
|
|
1560
|
+
|
|
435
1561
|
export {
|
|
436
1562
|
Tweets as Tweets,
|
|
437
1563
|
type TweetAuthor as TweetAuthor,
|
|
438
1564
|
type TweetDetail as TweetDetail,
|
|
439
1565
|
type TweetCreateResponse as TweetCreateResponse,
|
|
440
1566
|
type TweetRetrieveResponse as TweetRetrieveResponse,
|
|
1567
|
+
type TweetListResponse as TweetListResponse,
|
|
441
1568
|
type TweetDeleteResponse as TweetDeleteResponse,
|
|
1569
|
+
type TweetCheckRepostResponse as TweetCheckRepostResponse,
|
|
1570
|
+
type TweetEmbedResponse as TweetEmbedResponse,
|
|
1571
|
+
type TweetGetInsightsResponse as TweetGetInsightsResponse,
|
|
442
1572
|
type TweetGetRepliesResponse as TweetGetRepliesResponse,
|
|
1573
|
+
type TweetGetRetweeterIDsResponse as TweetGetRetweeterIDsResponse,
|
|
1574
|
+
type TweetGetSubtitlesResponse as TweetGetSubtitlesResponse,
|
|
1575
|
+
type TweetResolveLinksResponse as TweetResolveLinksResponse,
|
|
443
1576
|
type TweetSearchResponse as TweetSearchResponse,
|
|
1577
|
+
type TweetTranslateResponse as TweetTranslateResponse,
|
|
444
1578
|
type TweetCreateParams as TweetCreateParams,
|
|
1579
|
+
type TweetRetrieveParams as TweetRetrieveParams,
|
|
445
1580
|
type TweetListParams as TweetListParams,
|
|
446
1581
|
type TweetDeleteParams as TweetDeleteParams,
|
|
1582
|
+
type TweetCheckRepostParams as TweetCheckRepostParams,
|
|
1583
|
+
type TweetEmbedParams as TweetEmbedParams,
|
|
447
1584
|
type TweetGetFavoritersParams as TweetGetFavoritersParams,
|
|
1585
|
+
type TweetGetHiddenRepliesParams as TweetGetHiddenRepliesParams,
|
|
1586
|
+
type TweetGetInsightsParams as TweetGetInsightsParams,
|
|
448
1587
|
type TweetGetQuotesParams as TweetGetQuotesParams,
|
|
449
1588
|
type TweetGetRepliesParams as TweetGetRepliesParams,
|
|
1589
|
+
type TweetGetRetweeterIDsParams as TweetGetRetweeterIDsParams,
|
|
450
1590
|
type TweetGetRetweetersParams as TweetGetRetweetersParams,
|
|
1591
|
+
type TweetGetSubtitlesParams as TweetGetSubtitlesParams,
|
|
451
1592
|
type TweetGetThreadParams as TweetGetThreadParams,
|
|
1593
|
+
type TweetListTopParams as TweetListTopParams,
|
|
1594
|
+
type TweetResolveLinksParams as TweetResolveLinksParams,
|
|
452
1595
|
type TweetSearchParams as TweetSearchParams,
|
|
1596
|
+
type TweetTranslateParams as TweetTranslateParams,
|
|
453
1597
|
};
|
|
454
1598
|
|
|
455
1599
|
export {
|
|
456
1600
|
Users as Users,
|
|
457
1601
|
type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
|
|
458
1602
|
type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
|
|
1603
|
+
type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse,
|
|
1604
|
+
type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse,
|
|
459
1605
|
type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse,
|
|
460
1606
|
type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse,
|
|
1607
|
+
type UserRetrieveFollowingIDsResponse as UserRetrieveFollowingIDsResponse,
|
|
1608
|
+
type UserRetrieveInsightsResponse as UserRetrieveInsightsResponse,
|
|
1609
|
+
type UserRetrieveListMembershipsResponse as UserRetrieveListMembershipsResponse,
|
|
1610
|
+
type UserRetrieveListsResponse as UserRetrieveListsResponse,
|
|
1611
|
+
type UserRetrieveLiveResponse as UserRetrieveLiveResponse,
|
|
461
1612
|
type UserRetrieveVerifiedFollowersResponse as UserRetrieveVerifiedFollowersResponse,
|
|
1613
|
+
type UserTranslateBioResponse as UserTranslateBioResponse,
|
|
1614
|
+
type UserRetrieveParams as UserRetrieveParams,
|
|
462
1615
|
type UserRemoveFollowerParams as UserRemoveFollowerParams,
|
|
1616
|
+
type UserRetrieveAffiliatesParams as UserRetrieveAffiliatesParams,
|
|
1617
|
+
type UserRetrieveArticlesParams as UserRetrieveArticlesParams,
|
|
463
1618
|
type UserRetrieveBatchParams as UserRetrieveBatchParams,
|
|
1619
|
+
type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams,
|
|
1620
|
+
type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams,
|
|
464
1621
|
type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
|
|
465
1622
|
type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
|
|
466
1623
|
type UserRetrieveFollowingParams as UserRetrieveFollowingParams,
|
|
1624
|
+
type UserRetrieveFollowingIDsParams as UserRetrieveFollowingIDsParams,
|
|
1625
|
+
type UserRetrieveHighlightsParams as UserRetrieveHighlightsParams,
|
|
1626
|
+
type UserRetrieveInsightsParams as UserRetrieveInsightsParams,
|
|
467
1627
|
type UserRetrieveLikesParams as UserRetrieveLikesParams,
|
|
1628
|
+
type UserRetrieveListMembershipsParams as UserRetrieveListMembershipsParams,
|
|
1629
|
+
type UserRetrieveListsParams as UserRetrieveListsParams,
|
|
1630
|
+
type UserRetrieveLiveParams as UserRetrieveLiveParams,
|
|
468
1631
|
type UserRetrieveMediaParams as UserRetrieveMediaParams,
|
|
469
1632
|
type UserRetrieveMentionsParams as UserRetrieveMentionsParams,
|
|
470
1633
|
type UserRetrieveRepliesParams as UserRetrieveRepliesParams,
|
|
471
1634
|
type UserRetrieveSearchParams as UserRetrieveSearchParams,
|
|
1635
|
+
type UserRetrieveSimilarParams as UserRetrieveSimilarParams,
|
|
1636
|
+
type UserRetrieveSubscriptionsParams as UserRetrieveSubscriptionsParams,
|
|
472
1637
|
type UserRetrieveTweetsParams as UserRetrieveTweetsParams,
|
|
473
1638
|
type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams,
|
|
1639
|
+
type UserTranslateBioParams as UserTranslateBioParams,
|
|
474
1640
|
};
|
|
475
1641
|
|
|
476
1642
|
export {
|
|
@@ -479,10 +1645,22 @@ export declare namespace X {
|
|
|
479
1645
|
type FollowerCheckParams as FollowerCheckParams,
|
|
480
1646
|
};
|
|
481
1647
|
|
|
1648
|
+
export {
|
|
1649
|
+
Jobs as Jobs,
|
|
1650
|
+
type JobRetrieveResponse as JobRetrieveResponse,
|
|
1651
|
+
type JobListLocationsResponse as JobListLocationsResponse,
|
|
1652
|
+
type JobSearchResponse as JobSearchResponse,
|
|
1653
|
+
type JobRetrieveParams as JobRetrieveParams,
|
|
1654
|
+
type JobListLocationsParams as JobListLocationsParams,
|
|
1655
|
+
type JobSearchParams as JobSearchParams,
|
|
1656
|
+
};
|
|
1657
|
+
|
|
482
1658
|
export {
|
|
483
1659
|
Dm as Dm,
|
|
1660
|
+
type DmDeleteMessageResponse as DmDeleteMessageResponse,
|
|
484
1661
|
type DmRetrieveHistoryResponse as DmRetrieveHistoryResponse,
|
|
485
1662
|
type DmSendResponse as DmSendResponse,
|
|
1663
|
+
type DmDeleteMessageParams as DmDeleteMessageParams,
|
|
486
1664
|
type DmRetrieveHistoryParams as DmRetrieveHistoryParams,
|
|
487
1665
|
type DmSendParams as DmSendParams,
|
|
488
1666
|
};
|
|
@@ -509,12 +1687,20 @@ export declare namespace X {
|
|
|
509
1687
|
Communities as Communities,
|
|
510
1688
|
type CommunityCreateResponse as CommunityCreateResponse,
|
|
511
1689
|
type CommunityDeleteResponse as CommunityDeleteResponse,
|
|
1690
|
+
type CommunityListSuggestedResponse as CommunityListSuggestedResponse,
|
|
1691
|
+
type CommunityListTopicsResponse as CommunityListTopicsResponse,
|
|
512
1692
|
type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse,
|
|
513
1693
|
type CommunityCreateParams as CommunityCreateParams,
|
|
514
1694
|
type CommunityDeleteParams as CommunityDeleteParams,
|
|
1695
|
+
type CommunityFindParams as CommunityFindParams,
|
|
1696
|
+
type CommunityListPopularParams as CommunityListPopularParams,
|
|
1697
|
+
type CommunityListSuggestedParams as CommunityListSuggestedParams,
|
|
1698
|
+
type CommunityListTopicsParams as CommunityListTopicsParams,
|
|
1699
|
+
type CommunityRetrieveInfoParams as CommunityRetrieveInfoParams,
|
|
515
1700
|
type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams,
|
|
516
1701
|
type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams,
|
|
517
1702
|
type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams,
|
|
1703
|
+
type CommunitySearchMembersParams as CommunitySearchMembersParams,
|
|
518
1704
|
};
|
|
519
1705
|
|
|
520
1706
|
export {
|
|
@@ -527,6 +1713,7 @@ export declare namespace X {
|
|
|
527
1713
|
type AccountBulkRetryResponse as AccountBulkRetryResponse,
|
|
528
1714
|
type AccountReauthResponse as AccountReauthResponse,
|
|
529
1715
|
type AccountCreateParams as AccountCreateParams,
|
|
1716
|
+
type AccountListParams as AccountListParams,
|
|
530
1717
|
type AccountReauthParams as AccountReauthParams,
|
|
531
1718
|
};
|
|
532
1719
|
|
|
@@ -545,12 +1732,35 @@ export declare namespace X {
|
|
|
545
1732
|
Bookmarks as Bookmarks,
|
|
546
1733
|
type BookmarkRetrieveFoldersResponse as BookmarkRetrieveFoldersResponse,
|
|
547
1734
|
type BookmarkListParams as BookmarkListParams,
|
|
1735
|
+
type BookmarkRetrieveFoldersParams as BookmarkRetrieveFoldersParams,
|
|
548
1736
|
};
|
|
549
1737
|
|
|
550
1738
|
export {
|
|
551
1739
|
Lists as Lists,
|
|
1740
|
+
type ListRetrieveResponse as ListRetrieveResponse,
|
|
1741
|
+
type ListRetrieveFollowersResponse as ListRetrieveFollowersResponse,
|
|
1742
|
+
type ListRetrieveMembersResponse as ListRetrieveMembersResponse,
|
|
1743
|
+
type ListRetrieveSearchResponse as ListRetrieveSearchResponse,
|
|
1744
|
+
type ListRetrieveParams as ListRetrieveParams,
|
|
552
1745
|
type ListRetrieveFollowersParams as ListRetrieveFollowersParams,
|
|
553
1746
|
type ListRetrieveMembersParams as ListRetrieveMembersParams,
|
|
1747
|
+
type ListRetrieveSearchParams as ListRetrieveSearchParams,
|
|
554
1748
|
type ListRetrieveTweetsParams as ListRetrieveTweetsParams,
|
|
555
1749
|
};
|
|
1750
|
+
|
|
1751
|
+
export {
|
|
1752
|
+
Broadcasts as Broadcasts,
|
|
1753
|
+
type BroadcastRetrieveResponse as BroadcastRetrieveResponse,
|
|
1754
|
+
type BroadcastRetrieveParams as BroadcastRetrieveParams,
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
export {
|
|
1758
|
+
Spaces as Spaces,
|
|
1759
|
+
type SpaceRetrieveResponse as SpaceRetrieveResponse,
|
|
1760
|
+
type SpaceRetrieveReplayResponse as SpaceRetrieveReplayResponse,
|
|
1761
|
+
type SpaceSearchResponse as SpaceSearchResponse,
|
|
1762
|
+
type SpaceRetrieveParams as SpaceRetrieveParams,
|
|
1763
|
+
type SpaceRetrieveReplayParams as SpaceRetrieveReplayParams,
|
|
1764
|
+
type SpaceSearchParams as SpaceSearchParams,
|
|
1765
|
+
};
|
|
556
1766
|
}
|