x-twitter-scraper 0.12.3 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +73 -2
- package/README.md +66 -51
- 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 +3 -3
- package/client.js.map +1 -1
- package/client.mjs +4 -4
- package/client.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 +270 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +265 -0
- package/core/streaming.mjs.map +1 -0
- 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 +116 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +111 -0
- package/internal/decoders/line.mjs.map +1 -0
- 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/tslib.js +18 -18
- 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 -3
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +4 -3
- 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 -4
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +3 -4
- 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 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +5 -4
- 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 -4
- package/resources/drafts.mjs +4 -4
- 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 -9
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +24 -9
- 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 -2
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +34 -2
- 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 -12
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +74 -12
- 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 -1
- package/resources/guest-wallets.js.map +1 -1
- package/resources/guest-wallets.mjs +2 -1
- 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.map +1 -1
- package/resources/index.mjs +1 -1
- 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.map +1 -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 -10
- package/resources/monitors/keywords.js.map +1 -1
- package/resources/monitors/keywords.mjs +16 -10
- 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 -10
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +12 -10
- package/resources/monitors/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 -1
- package/resources/radar.mjs +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 -13
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +11 -13
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +1 -1
- package/resources/subscribe.d.ts +1 -1
- package/resources/subscribe.js +1 -1
- package/resources/subscribe.mjs +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.map +1 -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.map +1 -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 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +7 -7
- package/resources/support/tickets.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 -1
- package/resources/trends.js.map +1 -1
- package/resources/trends.mjs +2 -1
- 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 -11
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +30 -11
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +1 -1
- package/resources/x/account-connection-attempts.d.ts +1 -1
- package/resources/x/account-connection-attempts.js +1 -1
- package/resources/x/account-connection-attempts.mjs +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 -4
- package/resources/x/account-connection-challenges.js.map +1 -1
- package/resources/x/account-connection-challenges.mjs +5 -4
- 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 -7
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +8 -7
- 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 +132 -0
- package/resources/x/analysis.js.map +1 -0
- package/resources/x/analysis.mjs +128 -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 -4
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +6 -4
- 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 +29 -0
- package/resources/x/broadcasts.js.map +1 -0
- package/resources/x/broadcasts.mjs +25 -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 -17
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +96 -17
- 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 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -0
- 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 -7
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +10 -7
- 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 +29 -0
- package/resources/x/communities/media.js.map +1 -0
- package/resources/x/communities/media.mjs +25 -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 -7
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +8 -7
- package/resources/x/communities/tweets.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 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +29 -2
- 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 -1
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +2 -1
- 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 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +5 -1
- 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 +60 -0
- package/resources/x/jobs.js.map +1 -0
- package/resources/x/jobs.mjs +56 -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 -9
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +39 -9
- 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 -2
- package/resources/x/media.mjs +2 -2
- 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 -3
- package/resources/x/profile.mjs +3 -3
- 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 +58 -0
- package/resources/x/spaces.js.map +1 -0
- package/resources/x/spaces.mjs +54 -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.map +1 -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 -2
- package/resources/x/tweets/like.mjs +2 -2
- 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 -2
- package/resources/x/tweets/retweet.mjs +2 -2
- 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 -21
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +147 -21
- package/resources/x/tweets/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 -2
- package/resources/x/users/follow.mjs +2 -2
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +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 -22
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +205 -22
- package/resources/x/users/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 -1
- package/resources/x/write-actions.mjs +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 -5
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +80 -7
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/SKILL.md +97 -350
- package/skills/x-twitter-scraper/metadata.json +3 -9
- package/skills/x-twitter-scraper/references/draws.md +24 -24
- package/skills/x-twitter-scraper/references/extractions.md +71 -62
- package/skills/x-twitter-scraper/references/mcp-setup.md +36 -39
- package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
- package/skills/x-twitter-scraper/references/python-examples.md +5 -5
- package/skills/x-twitter-scraper/references/security.md +8 -8
- 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/references/usage.md +5 -5
- package/skills/x-twitter-scraper/references/webhooks.md +28 -31
- package/skills/x-twitter-scraper/references/workflows.md +70 -71
- package/skills/x-twitter-scraper/skill-card.md +13 -14
- package/skills/x-twitter-scraper/skillspector-report.md +8 -5
- package/skills/xquik-account-automation/LICENSE +21 -0
- package/skills/xquik-account-automation/SKILL.md +91 -0
- package/skills/xquik-social-research/SKILL.md +49 -56
- package/src/client.ts +47 -4
- package/src/core/streaming.ts +328 -0
- package/src/internal/decoders/line.ts +140 -0
- package/src/internal/parse.ts +9 -0
- package/src/resources/account.ts +41 -12
- package/src/resources/compose.ts +77 -21
- package/src/resources/credits.ts +19 -10
- package/src/resources/drafts.ts +13 -22
- package/src/resources/draws.ts +94 -36
- package/src/resources/events.ts +3225 -68
- package/src/resources/extractions.ts +512 -125
- package/src/resources/guest-wallets.ts +6 -5
- package/src/resources/index.ts +24 -1
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/keywords.ts +82 -14
- package/src/resources/monitors/monitors.ts +66 -14
- package/src/resources/radar.ts +32 -36
- package/src/resources/shared.ts +2227 -351
- package/src/resources/styles.ts +43 -27
- package/src/resources/subscribe.ts +1 -1
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +38 -10
- package/src/resources/trends.ts +23 -5
- package/src/resources/webhooks.ts +109 -15
- package/src/resources/x/account-connection-attempts.ts +1 -1
- package/src/resources/x/account-connection-challenges.ts +39 -11
- package/src/resources/x/accounts.ts +46 -10
- package/src/resources/x/analysis.ts +3947 -0
- package/src/resources/x/bookmarks.ts +103 -9
- package/src/resources/x/broadcasts.ts +225 -0
- package/src/resources/x/communities/communities.ts +743 -141
- package/src/resources/x/communities/index.ts +9 -0
- package/src/resources/x/communities/join.ts +46 -23
- package/src/resources/x/communities/media.ts +251 -0
- package/src/resources/x/communities/tweets.ts +427 -20
- package/src/resources/x/dm.ts +334 -11
- package/src/resources/x/followers.ts +35 -3
- package/src/resources/x/index.ts +106 -1
- package/src/resources/x/jobs.ts +627 -0
- package/src/resources/x/lists.ts +1307 -28
- package/src/resources/x/media.ts +24 -12
- package/src/resources/x/profile.ts +60 -30
- package/src/resources/x/spaces.ts +1076 -0
- package/src/resources/x/tweets/index.ts +18 -0
- package/src/resources/x/tweets/like.ts +38 -18
- package/src/resources/x/tweets/retweet.ts +38 -18
- package/src/resources/x/tweets/tweets.ts +3695 -843
- package/src/resources/x/users/follow.ts +38 -18
- package/src/resources/x/users/index.ts +22 -0
- package/src/resources/x/users/users.ts +3687 -465
- package/src/resources/x/write-actions.ts +13 -5
- package/src/resources/x/x.ts +1227 -15
- 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
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Public X job listings, search and details
|
|
6
|
+
*/
|
|
7
|
+
export declare class Jobs extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns a public job listing with its description as text & Markdown, work type,
|
|
10
|
+
* seniority, salary, company & apply link. A job that closed returns job_not_found
|
|
11
|
+
* & is free.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const job = await client.x.jobs.retrieve(
|
|
16
|
+
* '1899202395210649861',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id: string, query?: JobRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<JobRetrieveResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the places whose names match a query, each with the location ID that GET
|
|
23
|
+
* /x/jobs/search takes. No match returns an empty list, free.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const response = await client.x.jobs.listLocations({
|
|
28
|
+
* q: 'new york',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
listLocations(query: JobListLocationsParams, options?: RequestOptions): APIPromise<JobListLocationsResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns job listings with title, location, salary, company & apply link. Add
|
|
35
|
+
* filters to narrow them. A job that closed is left out & free. Follow next_cursor
|
|
36
|
+
* for more.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const response = await client.x.jobs.search({
|
|
41
|
+
* q: 'engineer',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
search(query: JobSearchParams, options?: RequestOptions): APIPromise<JobSearchResponse>;
|
|
46
|
+
}
|
|
47
|
+
export interface JobRetrieveResponse {
|
|
48
|
+
/**
|
|
49
|
+
* Public X job listing. A search returns the fields down to the salary, plus
|
|
50
|
+
* company & account. A lookup adds work type, seniority, function, team &
|
|
51
|
+
* descriptions. A field X leaves empty is left out.
|
|
52
|
+
*/
|
|
53
|
+
job: JobRetrieveResponse.Job;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace JobRetrieveResponse {
|
|
56
|
+
/**
|
|
57
|
+
* Public X job listing. A search returns the fields down to the salary, plus
|
|
58
|
+
* company & account. A lookup adds work type, seniority, function, team &
|
|
59
|
+
* descriptions. A field X leaves empty is left out.
|
|
60
|
+
*/
|
|
61
|
+
interface Job {
|
|
62
|
+
/**
|
|
63
|
+
* Job ID.
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
66
|
+
/**
|
|
67
|
+
* The job page on X.
|
|
68
|
+
*/
|
|
69
|
+
url: string;
|
|
70
|
+
/**
|
|
71
|
+
* The X account that posted a job. A job has none when X imported it from a job
|
|
72
|
+
* board or no longer shows the account.
|
|
73
|
+
*/
|
|
74
|
+
account?: Job.Account;
|
|
75
|
+
/**
|
|
76
|
+
* Where applicants apply, off X.
|
|
77
|
+
*/
|
|
78
|
+
applyUrl?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The company profile of a job X imported from a job board.
|
|
81
|
+
*/
|
|
82
|
+
company?: Job.Company;
|
|
83
|
+
/**
|
|
84
|
+
* Full description as plain text, 1 line per paragraph.
|
|
85
|
+
*/
|
|
86
|
+
description?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Full description as Markdown, with headings, lists, links, bold & italics.
|
|
89
|
+
*/
|
|
90
|
+
descriptionMarkdown?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Contract type (full_time, full_time_contract, part_time or contract_to_hire).
|
|
93
|
+
*/
|
|
94
|
+
employmentType?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Whether X features the job.
|
|
97
|
+
*/
|
|
98
|
+
featured?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Salary as X shows it.
|
|
101
|
+
*/
|
|
102
|
+
formattedSalary?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Job function, such as software_engineering.
|
|
105
|
+
*/
|
|
106
|
+
jobFunction?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Location as the employer wrote it.
|
|
109
|
+
*/
|
|
110
|
+
location?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Where the work happens (onsite, remote or hybrid).
|
|
113
|
+
*/
|
|
114
|
+
locationType?: string;
|
|
115
|
+
/**
|
|
116
|
+
* When the employer posted the job.
|
|
117
|
+
*/
|
|
118
|
+
postedAt?: string;
|
|
119
|
+
/**
|
|
120
|
+
* ISO 4217 currency code of the salary.
|
|
121
|
+
*/
|
|
122
|
+
salaryCurrencyCode?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Pay period of the salary (annually or hourly).
|
|
125
|
+
*/
|
|
126
|
+
salaryInterval?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Highest salary, in salaryCurrencyCode per salaryInterval.
|
|
129
|
+
*/
|
|
130
|
+
salaryMax?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Lowest salary, in salaryCurrencyCode per salaryInterval.
|
|
133
|
+
*/
|
|
134
|
+
salaryMin?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Seniority (intern, entry_level, junior, mid_level, senior, lead, manager or
|
|
137
|
+
* executive).
|
|
138
|
+
*/
|
|
139
|
+
seniorityLevel?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Short summary of the job, as plain text.
|
|
142
|
+
*/
|
|
143
|
+
shortDescription?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Team inside the company.
|
|
146
|
+
*/
|
|
147
|
+
team?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Job title.
|
|
150
|
+
*/
|
|
151
|
+
title?: string;
|
|
152
|
+
}
|
|
153
|
+
namespace Job {
|
|
154
|
+
/**
|
|
155
|
+
* The X account that posted a job. A job has none when X imported it from a job
|
|
156
|
+
* board or no longer shows the account.
|
|
157
|
+
*/
|
|
158
|
+
interface Account {
|
|
159
|
+
/**
|
|
160
|
+
* X user ID of the account.
|
|
161
|
+
*/
|
|
162
|
+
id: string;
|
|
163
|
+
/**
|
|
164
|
+
* Whether X shows a verification badge on the account.
|
|
165
|
+
*/
|
|
166
|
+
verified: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Bio of the account. A job lookup returns it.
|
|
169
|
+
*/
|
|
170
|
+
description?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Display name of the account that posted the job.
|
|
173
|
+
*/
|
|
174
|
+
name?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Avatar shape, such as Circle or Square.
|
|
177
|
+
*/
|
|
178
|
+
profileImageShape?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Avatar URL of the account that posted the job.
|
|
181
|
+
*/
|
|
182
|
+
profilePicture?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Handle without @.
|
|
185
|
+
*/
|
|
186
|
+
username?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Badge type, such as Business or Government.
|
|
189
|
+
*/
|
|
190
|
+
verifiedType?: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The company profile of a job X imported from a job board.
|
|
194
|
+
*/
|
|
195
|
+
interface Company {
|
|
196
|
+
/**
|
|
197
|
+
* X company profile ID.
|
|
198
|
+
*/
|
|
199
|
+
id: string;
|
|
200
|
+
/**
|
|
201
|
+
* Company logo URL.
|
|
202
|
+
*/
|
|
203
|
+
logoUrl?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Company name.
|
|
206
|
+
*/
|
|
207
|
+
name?: string;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* The places whose names match a query.
|
|
213
|
+
*/
|
|
214
|
+
export interface JobListLocationsResponse {
|
|
215
|
+
/**
|
|
216
|
+
* Places returned, each charged 1 credit.
|
|
217
|
+
*/
|
|
218
|
+
count: number;
|
|
219
|
+
/**
|
|
220
|
+
* Matching places, best match first.
|
|
221
|
+
*/
|
|
222
|
+
locations: Array<JobListLocationsResponse.Location>;
|
|
223
|
+
}
|
|
224
|
+
export declare namespace JobListLocationsResponse {
|
|
225
|
+
/**
|
|
226
|
+
* A place a job search can name by its ID.
|
|
227
|
+
*/
|
|
228
|
+
interface Location {
|
|
229
|
+
/**
|
|
230
|
+
* Location ID, which the job search locationId takes.
|
|
231
|
+
*/
|
|
232
|
+
id: string;
|
|
233
|
+
/**
|
|
234
|
+
* Place name with its region or country code.
|
|
235
|
+
*/
|
|
236
|
+
name: string;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* One page of job listings. Follow next_cursor while the response reports more
|
|
241
|
+
* pages.
|
|
242
|
+
*/
|
|
243
|
+
export interface JobSearchResponse {
|
|
244
|
+
has_next_page: boolean;
|
|
245
|
+
jobs: Array<JobSearchResponse.Job>;
|
|
246
|
+
next_cursor: string;
|
|
247
|
+
}
|
|
248
|
+
export declare namespace JobSearchResponse {
|
|
249
|
+
/**
|
|
250
|
+
* Public X job listing. A search returns the fields down to the salary, plus
|
|
251
|
+
* company & account. A lookup adds work type, seniority, function, team &
|
|
252
|
+
* descriptions. A field X leaves empty is left out.
|
|
253
|
+
*/
|
|
254
|
+
interface Job {
|
|
255
|
+
/**
|
|
256
|
+
* Job ID.
|
|
257
|
+
*/
|
|
258
|
+
id: string;
|
|
259
|
+
/**
|
|
260
|
+
* The job page on X.
|
|
261
|
+
*/
|
|
262
|
+
url: string;
|
|
263
|
+
/**
|
|
264
|
+
* The X account that posted a job. A job has none when X imported it from a job
|
|
265
|
+
* board or no longer shows the account.
|
|
266
|
+
*/
|
|
267
|
+
account?: Job.Account;
|
|
268
|
+
/**
|
|
269
|
+
* Where applicants apply, off X.
|
|
270
|
+
*/
|
|
271
|
+
applyUrl?: string;
|
|
272
|
+
/**
|
|
273
|
+
* The company profile of a job X imported from a job board.
|
|
274
|
+
*/
|
|
275
|
+
company?: Job.Company;
|
|
276
|
+
/**
|
|
277
|
+
* Full description as plain text, 1 line per paragraph.
|
|
278
|
+
*/
|
|
279
|
+
description?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Full description as Markdown, with headings, lists, links, bold & italics.
|
|
282
|
+
*/
|
|
283
|
+
descriptionMarkdown?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Contract type (full_time, full_time_contract, part_time or contract_to_hire).
|
|
286
|
+
*/
|
|
287
|
+
employmentType?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Whether X features the job.
|
|
290
|
+
*/
|
|
291
|
+
featured?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Salary as X shows it.
|
|
294
|
+
*/
|
|
295
|
+
formattedSalary?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Job function, such as software_engineering.
|
|
298
|
+
*/
|
|
299
|
+
jobFunction?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Location as the employer wrote it.
|
|
302
|
+
*/
|
|
303
|
+
location?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Where the work happens (onsite, remote or hybrid).
|
|
306
|
+
*/
|
|
307
|
+
locationType?: string;
|
|
308
|
+
/**
|
|
309
|
+
* When the employer posted the job.
|
|
310
|
+
*/
|
|
311
|
+
postedAt?: string;
|
|
312
|
+
/**
|
|
313
|
+
* ISO 4217 currency code of the salary.
|
|
314
|
+
*/
|
|
315
|
+
salaryCurrencyCode?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Pay period of the salary (annually or hourly).
|
|
318
|
+
*/
|
|
319
|
+
salaryInterval?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Highest salary, in salaryCurrencyCode per salaryInterval.
|
|
322
|
+
*/
|
|
323
|
+
salaryMax?: number;
|
|
324
|
+
/**
|
|
325
|
+
* Lowest salary, in salaryCurrencyCode per salaryInterval.
|
|
326
|
+
*/
|
|
327
|
+
salaryMin?: number;
|
|
328
|
+
/**
|
|
329
|
+
* Seniority (intern, entry_level, junior, mid_level, senior, lead, manager or
|
|
330
|
+
* executive).
|
|
331
|
+
*/
|
|
332
|
+
seniorityLevel?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Short summary of the job, as plain text.
|
|
335
|
+
*/
|
|
336
|
+
shortDescription?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Team inside the company.
|
|
339
|
+
*/
|
|
340
|
+
team?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Job title.
|
|
343
|
+
*/
|
|
344
|
+
title?: string;
|
|
345
|
+
}
|
|
346
|
+
namespace Job {
|
|
347
|
+
/**
|
|
348
|
+
* The X account that posted a job. A job has none when X imported it from a job
|
|
349
|
+
* board or no longer shows the account.
|
|
350
|
+
*/
|
|
351
|
+
interface Account {
|
|
352
|
+
/**
|
|
353
|
+
* X user ID of the account.
|
|
354
|
+
*/
|
|
355
|
+
id: string;
|
|
356
|
+
/**
|
|
357
|
+
* Whether X shows a verification badge on the account.
|
|
358
|
+
*/
|
|
359
|
+
verified: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Bio of the account. A job lookup returns it.
|
|
362
|
+
*/
|
|
363
|
+
description?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Display name of the account that posted the job.
|
|
366
|
+
*/
|
|
367
|
+
name?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Avatar shape, such as Circle or Square.
|
|
370
|
+
*/
|
|
371
|
+
profileImageShape?: string;
|
|
372
|
+
/**
|
|
373
|
+
* Avatar URL of the account that posted the job.
|
|
374
|
+
*/
|
|
375
|
+
profilePicture?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Handle without @.
|
|
378
|
+
*/
|
|
379
|
+
username?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Badge type, such as Business or Government.
|
|
382
|
+
*/
|
|
383
|
+
verifiedType?: string;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* The company profile of a job X imported from a job board.
|
|
387
|
+
*/
|
|
388
|
+
interface Company {
|
|
389
|
+
/**
|
|
390
|
+
* X company profile ID.
|
|
391
|
+
*/
|
|
392
|
+
id: string;
|
|
393
|
+
/**
|
|
394
|
+
* Company logo URL.
|
|
395
|
+
*/
|
|
396
|
+
logoUrl?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Company name.
|
|
399
|
+
*/
|
|
400
|
+
name?: string;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
export interface JobRetrieveParams {
|
|
405
|
+
/**
|
|
406
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
407
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
408
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
409
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
410
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
411
|
+
* named fields.
|
|
412
|
+
*/
|
|
413
|
+
fields?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
416
|
+
* fields. With fields, it drops from the kept fields.
|
|
417
|
+
*/
|
|
418
|
+
omit?: string;
|
|
419
|
+
}
|
|
420
|
+
export interface JobListLocationsParams {
|
|
421
|
+
/**
|
|
422
|
+
* Place name or its start, such as new york. Alias: query.
|
|
423
|
+
*/
|
|
424
|
+
q: string;
|
|
425
|
+
/**
|
|
426
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
427
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
428
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
429
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
430
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
431
|
+
* named fields.
|
|
432
|
+
*/
|
|
433
|
+
fields?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Most places to return. Without it, every match returns. Aliases: pageSize,
|
|
436
|
+
* count, max_results, maxItems, max_items & per_page.
|
|
437
|
+
*/
|
|
438
|
+
limit?: number;
|
|
439
|
+
/**
|
|
440
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
441
|
+
* fields. With fields, it drops from the kept fields.
|
|
442
|
+
*/
|
|
443
|
+
omit?: string;
|
|
444
|
+
}
|
|
445
|
+
export interface JobSearchParams {
|
|
446
|
+
/**
|
|
447
|
+
* Keyword, such as a job title or skill. Alias: query.
|
|
448
|
+
*/
|
|
449
|
+
q: string;
|
|
450
|
+
/**
|
|
451
|
+
* Company name to match.
|
|
452
|
+
*/
|
|
453
|
+
company?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
456
|
+
* pagination_token or continuation_token.
|
|
457
|
+
*/
|
|
458
|
+
cursor?: string;
|
|
459
|
+
/**
|
|
460
|
+
* Comma list of full_time, full_time_contract, part_time & contract_to_hire. Any
|
|
461
|
+
* case works, with spaces or hyphens between words.
|
|
462
|
+
*/
|
|
463
|
+
employmentType?: string;
|
|
464
|
+
/**
|
|
465
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
466
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
467
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
468
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
469
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
470
|
+
* named fields.
|
|
471
|
+
*/
|
|
472
|
+
fields?: string;
|
|
473
|
+
/**
|
|
474
|
+
* City, region or country as text, such as Berlin.
|
|
475
|
+
*/
|
|
476
|
+
location?: string;
|
|
477
|
+
/**
|
|
478
|
+
* Location ID from GET /x/jobs/locations. Replaces location when both are sent.
|
|
479
|
+
*/
|
|
480
|
+
locationId?: string;
|
|
481
|
+
/**
|
|
482
|
+
* Where the work happens. Comma list of onsite, remote & hybrid. Any case works,
|
|
483
|
+
* with spaces or hyphens between words.
|
|
484
|
+
*/
|
|
485
|
+
locationType?: string;
|
|
486
|
+
/**
|
|
487
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
488
|
+
* fields. With fields, it drops from the kept fields.
|
|
489
|
+
*/
|
|
490
|
+
omit?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Items per page (1-100, default 20). Source, filters or credits can return fewer.
|
|
493
|
+
* Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
|
|
494
|
+
* max_items & per_page.
|
|
495
|
+
*/
|
|
496
|
+
pageSize?: number;
|
|
497
|
+
/**
|
|
498
|
+
* Comma list of intern, entry_level, junior, mid_level, senior, lead, manager &
|
|
499
|
+
* executive. Any case works, with spaces or hyphens between words.
|
|
500
|
+
*/
|
|
501
|
+
seniority?: string;
|
|
502
|
+
}
|
|
503
|
+
export declare namespace Jobs {
|
|
504
|
+
export { type JobRetrieveResponse as JobRetrieveResponse, type JobListLocationsResponse as JobListLocationsResponse, type JobSearchResponse as JobSearchResponse, type JobRetrieveParams as JobRetrieveParams, type JobListLocationsParams as JobListLocationsParams, type JobSearchParams as JobSearchParams, };
|
|
505
|
+
}
|
|
506
|
+
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/x/jobs.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,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CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
3
|
+
//
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Jobs = void 0;
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
const resource_1 = require("../../core/resource.js");
|
|
9
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
10
|
+
/**
|
|
11
|
+
* Public X job listings, search and details
|
|
12
|
+
*/
|
|
13
|
+
class Jobs extends resource_1.APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* Returns a public job listing with its description as text & Markdown, work type,
|
|
16
|
+
* seniority, salary, company & apply link. A job that closed returns job_not_found
|
|
17
|
+
* & is free.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const job = await client.x.jobs.retrieve(
|
|
22
|
+
* '1899202395210649861',
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
retrieve(id, query = {}, options) {
|
|
27
|
+
return this._client.get((0, path_1.path) `/x/jobs/${id}`, { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns the places whose names match a query, each with the location ID that GET
|
|
31
|
+
* /x/jobs/search takes. No match returns an empty list, free.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.x.jobs.listLocations({
|
|
36
|
+
* q: 'new york',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
listLocations(query, options) {
|
|
41
|
+
return this._client.get('/x/jobs/locations', { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns job listings with title, location, salary, company & apply link. Add
|
|
45
|
+
* filters to narrow them. A job that closed is left out & free. Follow next_cursor
|
|
46
|
+
* for more.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response = await client.x.jobs.search({
|
|
51
|
+
* q: 'engineer',
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
search(query, options) {
|
|
56
|
+
return this._client.get('/x/jobs/search', { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.Jobs = Jobs;
|
|
60
|
+
//# sourceMappingURL=jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/x/jobs.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,sFAAsF;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAtDD,oBAsDC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
5
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
6
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Public X job listings, search and details
|
|
9
|
+
*/
|
|
10
|
+
export class Jobs extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns a public job listing with its description as text & Markdown, work type,
|
|
13
|
+
* seniority, salary, company & apply link. A job that closed returns job_not_found
|
|
14
|
+
* & is free.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const job = await client.x.jobs.retrieve(
|
|
19
|
+
* '1899202395210649861',
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
retrieve(id, query = {}, options) {
|
|
24
|
+
return this._client.get(path `/x/jobs/${id}`, { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns the places whose names match a query, each with the location ID that GET
|
|
28
|
+
* /x/jobs/search takes. No match returns an empty list, free.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const response = await client.x.jobs.listLocations({
|
|
33
|
+
* q: 'new york',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
listLocations(query, options) {
|
|
38
|
+
return this._client.get('/x/jobs/locations', { query, ...options });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns job listings with title, location, salary, company & apply link. Add
|
|
42
|
+
* filters to narrow them. A job that closed is left out & free. Follow next_cursor
|
|
43
|
+
* for more.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const response = await client.x.jobs.search({
|
|
48
|
+
* q: 'engineer',
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
search(query, options) {
|
|
53
|
+
return this._client.get('/x/jobs/search', { query, ...options });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=jobs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/x/jobs.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
|