@tapline/client 0.2.4 → 0.2.5
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/README.md +4 -2
- package/dist/cjs/client.d.ts +2 -0
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +3 -0
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/twitter/client.d.ts +15 -0
- package/dist/cjs/services/twitter/client.d.ts.map +1 -0
- package/dist/cjs/services/twitter/client.js +32 -0
- package/dist/cjs/services/twitter/client.js.map +1 -0
- package/dist/cjs/services/twitter/index.d.ts +3 -0
- package/dist/cjs/services/twitter/index.d.ts.map +1 -0
- package/dist/cjs/services/twitter/index.js +22 -0
- package/dist/cjs/services/twitter/index.js.map +1 -0
- package/dist/cjs/services/twitter/types.d.ts +513 -0
- package/dist/cjs/services/twitter/types.d.ts.map +1 -0
- package/dist/cjs/services/twitter/types.js +4 -0
- package/dist/cjs/services/twitter/types.js.map +1 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/twitter/client.d.ts +15 -0
- package/dist/services/twitter/client.d.ts.map +1 -0
- package/dist/services/twitter/client.js +28 -0
- package/dist/services/twitter/client.js.map +1 -0
- package/dist/services/twitter/index.d.ts +3 -0
- package/dist/services/twitter/index.d.ts.map +1 -0
- package/dist/services/twitter/index.js +4 -0
- package/dist/services/twitter/index.js.map +1 -0
- package/dist/services/twitter/types.d.ts +513 -0
- package/dist/services/twitter/types.d.ts.map +1 -0
- package/dist/services/twitter/types.js +3 -0
- package/dist/services/twitter/types.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BaseClient } from '../../base.js';
|
|
2
|
+
import type { GetCommunityParams, GetTweetParams, GetUserProfileByIdParams, GetUserProfileParams, TwitterCommunityResponse, TwitterProfileResponse, TwitterTweetDetailResponse } from './types.js';
|
|
3
|
+
export declare class TwitterClient {
|
|
4
|
+
private readonly base;
|
|
5
|
+
constructor(base: BaseClient);
|
|
6
|
+
/** An X (Twitter) Community as x.com shows it to logged-out visitors, as X's Community object in the shape Scrape Creators returns it: `rest_id`, name, description, member count, `created_at` (Unix milliseconds), join policy, topic, banners, rules, creator and member facepile. `tweets` adds the 20 community posts x.com ranks by likes, flattened the way Scrape Creators flattens community posts: the post's `legacy` fields plus `id`, `view_count` and the author as `user`. This is a fixed window: x.com offers no latest feed and no further pages logged-out. A logged-out viewer is not a member, so `is_member` is false and `role` is NonMember. `success`, `credits_charged` and `credits_remaining` (the wallet balance after this charge) sit at the top level of the body, as in Scrape Creators' answers. Fields x.com does not show logged-out visitors are left out, never filled with placeholder values: for example `favourites_count`, `listed_count`, `media_count` and a post's `source`. Fields that depend on the viewer hold what every logged-out viewer gets: `favorited`, `retweeted`, `bookmarked`, `relationship_perspectives`, `can_dm` and the other viewer flags are false. A post's author (`core.user_results.result`, or `user` on a community post) carries what x.com embeds with posts plus what only the author's profile page shows: `location`, the exact join date (`core.created_at`), the bio (`legacy.description` and `profile_bio`), the bio link (`legacy.url` and `legacy.entities`), the banner (`legacy.profile_banner_url`), `legacy.pinned_tweet_ids_str`, `legacy.possibly_sensitive` and `verification.verified`. They come from the author's profile in the same response when there is one, else from the author's profile page, fetched at no extra charge and cached for 2 minutes, so they can be up to 2 minutes old. Author profiles are best-effort. An author whose profile page fails or takes more than 8 seconds keeps only what x.com embeds, and its join date comes from the timestamp inside the user id, which can run up to about 25 minutes before X's own value. Accounts created before about 2016 have ids without a timestamp, so their join date is left out only if that fetch fails or times out. Costs 2 credits. */
|
|
7
|
+
getCommunity(params: GetCommunityParams): Promise<TwitterCommunityResponse>;
|
|
8
|
+
/** One X (Twitter) post as x.com shows it to logged-out visitors, as X's Tweet object in the shape Scrape Creators returns it: `rest_id`, the author under `core.user_results.result`, `legacy` (full text, created time, counts, entities with every t.co link mapped, media with video variants and bitrates, reply and quote ids), `views`, `note_tweet` with the full text of a long post, `article`, `card`, `edit_control`, and the quoted post under `quoted_status_result`. `parent_tweets` holds the posts above a reply that x.com shows logged-out, oldest first; in samples that is only the post it replies to, so follow `legacy.in_reply_to_status_id_str` to walk further up. `replies` holds the top replies x.com shows logged-out (0 to 4 in samples, not every reply); x.com offers no further reply pages logged-out. Both lists hold Tweet objects plus their `url`. `success`, `credits_charged` and `credits_remaining` (the wallet balance after this charge) sit at the top level of the body, as in Scrape Creators' answers. Fields x.com does not show logged-out visitors are left out, never filled with placeholder values: for example `favourites_count`, `listed_count`, `media_count` and a post's `source`. Fields that depend on the viewer hold what every logged-out viewer gets: `favorited`, `retweeted`, `bookmarked`, `relationship_perspectives`, `can_dm` and the other viewer flags are false. A post's author (`core.user_results.result`, or `user` on a community post) carries what x.com embeds with posts plus what only the author's profile page shows: `location`, the exact join date (`core.created_at`), the bio (`legacy.description` and `profile_bio`), the bio link (`legacy.url` and `legacy.entities`), the banner (`legacy.profile_banner_url`), `legacy.pinned_tweet_ids_str`, `legacy.possibly_sensitive` and `verification.verified`. They come from the author's profile in the same response when there is one, else from the author's profile page, fetched at no extra charge and cached for 2 minutes, so they can be up to 2 minutes old. Author profiles are best-effort. An author whose profile page fails or takes more than 8 seconds keeps only what x.com embeds, and its join date comes from the timestamp inside the user id, which can run up to about 25 minutes before X's own value. Accounts created before about 2016 have ids without a timestamp, so their join date is left out only if that fetch fails or times out. Costs 1 credit. */
|
|
9
|
+
getTweet(params: GetTweetParams): Promise<TwitterTweetDetailResponse>;
|
|
10
|
+
/** An X (Twitter) account's public profile as x.com shows it to logged-out visitors, as X's User object in the shape Scrape Creators returns it: `rest_id`, `core` (name, handle, join date), `legacy` (bio, follower, following and post counts, avatar, banner, bio link, pinned post id), `location`, `privacy`, `verification` and `is_blue_verified`. `pinned_tweet` and `tweets` add the pinned post and the newest original posts x.com shows logged-out (4 or 5 in samples) from the same page fetch, each an X Tweet object plus its `url`. This is a fixed window: x.com offers no further pages logged-out, so there is no cursor. A protected account returns its profile with no posts. Tapline caches each profile page for 2 minutes, so a profile and its posts can be up to 2 minutes old. `success`, `credits_charged` and `credits_remaining` (the wallet balance after this charge) sit at the top level of the body, as in Scrape Creators' answers. Fields x.com does not show logged-out visitors are left out, never filled with placeholder values: for example `favourites_count`, `listed_count`, `media_count` and a post's `source`. Fields that depend on the viewer hold what every logged-out viewer gets: `favorited`, `retweeted`, `bookmarked`, `relationship_perspectives`, `can_dm` and the other viewer flags are false. A post's author (`core.user_results.result`, or `user` on a community post) carries what x.com embeds with posts plus what only the author's profile page shows: `location`, the exact join date (`core.created_at`), the bio (`legacy.description` and `profile_bio`), the bio link (`legacy.url` and `legacy.entities`), the banner (`legacy.profile_banner_url`), `legacy.pinned_tweet_ids_str`, `legacy.possibly_sensitive` and `verification.verified`. They come from the author's profile in the same response when there is one, else from the author's profile page, fetched at no extra charge and cached for 2 minutes, so they can be up to 2 minutes old. Author profiles are best-effort. An author whose profile page fails or takes more than 8 seconds keeps only what x.com embeds, and its join date comes from the timestamp inside the user id, which can run up to about 25 minutes before X's own value. Accounts created before about 2016 have ids without a timestamp, so their join date is left out only if that fetch fails or times out. Looks the account up by its numeric user id. Costs 1 credit. */
|
|
11
|
+
getUserProfileById(params: GetUserProfileByIdParams): Promise<TwitterProfileResponse>;
|
|
12
|
+
/** An X (Twitter) account's public profile as x.com shows it to logged-out visitors, as X's User object in the shape Scrape Creators returns it: `rest_id`, `core` (name, handle, join date), `legacy` (bio, follower, following and post counts, avatar, banner, bio link, pinned post id), `location`, `privacy`, `verification` and `is_blue_verified`. `pinned_tweet` and `tweets` add the pinned post and the newest original posts x.com shows logged-out (4 or 5 in samples) from the same page fetch, each an X Tweet object plus its `url`. This is a fixed window: x.com offers no further pages logged-out, so there is no cursor. A protected account returns its profile with no posts. Tapline caches each profile page for 2 minutes, so a profile and its posts can be up to 2 minutes old. `success`, `credits_charged` and `credits_remaining` (the wallet balance after this charge) sit at the top level of the body, as in Scrape Creators' answers. Fields x.com does not show logged-out visitors are left out, never filled with placeholder values: for example `favourites_count`, `listed_count`, `media_count` and a post's `source`. Fields that depend on the viewer hold what every logged-out viewer gets: `favorited`, `retweeted`, `bookmarked`, `relationship_perspectives`, `can_dm` and the other viewer flags are false. A post's author (`core.user_results.result`, or `user` on a community post) carries what x.com embeds with posts plus what only the author's profile page shows: `location`, the exact join date (`core.created_at`), the bio (`legacy.description` and `profile_bio`), the bio link (`legacy.url` and `legacy.entities`), the banner (`legacy.profile_banner_url`), `legacy.pinned_tweet_ids_str`, `legacy.possibly_sensitive` and `verification.verified`. They come from the author's profile in the same response when there is one, else from the author's profile page, fetched at no extra charge and cached for 2 minutes, so they can be up to 2 minutes old. Author profiles are best-effort. An author whose profile page fails or takes more than 8 seconds keeps only what x.com embeds, and its join date comes from the timestamp inside the user id, which can run up to about 25 minutes before X's own value. Accounts created before about 2016 have ids without a timestamp, so their join date is left out only if that fetch fails or times out. Looks the account up by its handle. Costs 1 credit. */
|
|
13
|
+
getUserProfile(params: GetUserProfileParams): Promise<TwitterProfileResponse>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/services/twitter/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAEnM,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C,mrEAAmrE;IAC7qE,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKjF,w4EAAw4E;IACl4E,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAK3E,s2EAAs2E;IACh2E,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAK3F,61EAA61E;IACv1E,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAIpF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Generated by generate-client from spec/openapi.json. Do not edit.
|
|
2
|
+
export class TwitterClient {
|
|
3
|
+
base;
|
|
4
|
+
constructor(base) {
|
|
5
|
+
this.base = base;
|
|
6
|
+
}
|
|
7
|
+
/** An X (Twitter) Community as x.com shows it to logged-out visitors, as X's Community object in the shape Scrape Creators returns it: `rest_id`, name, description, member count, `created_at` (Unix milliseconds), join policy, topic, banners, rules, creator and member facepile. `tweets` adds the 20 community posts x.com ranks by likes, flattened the way Scrape Creators flattens community posts: the post's `legacy` fields plus `id`, `view_count` and the author as `user`. This is a fixed window: x.com offers no latest feed and no further pages logged-out. A logged-out viewer is not a member, so `is_member` is false and `role` is NonMember. `success`, `credits_charged` and `credits_remaining` (the wallet balance after this charge) sit at the top level of the body, as in Scrape Creators' answers. Fields x.com does not show logged-out visitors are left out, never filled with placeholder values: for example `favourites_count`, `listed_count`, `media_count` and a post's `source`. Fields that depend on the viewer hold what every logged-out viewer gets: `favorited`, `retweeted`, `bookmarked`, `relationship_perspectives`, `can_dm` and the other viewer flags are false. A post's author (`core.user_results.result`, or `user` on a community post) carries what x.com embeds with posts plus what only the author's profile page shows: `location`, the exact join date (`core.created_at`), the bio (`legacy.description` and `profile_bio`), the bio link (`legacy.url` and `legacy.entities`), the banner (`legacy.profile_banner_url`), `legacy.pinned_tweet_ids_str`, `legacy.possibly_sensitive` and `verification.verified`. They come from the author's profile in the same response when there is one, else from the author's profile page, fetched at no extra charge and cached for 2 minutes, so they can be up to 2 minutes old. Author profiles are best-effort. An author whose profile page fails or takes more than 8 seconds keeps only what x.com embeds, and its join date comes from the timestamp inside the user id, which can run up to about 25 minutes before X's own value. Accounts created before about 2016 have ids without a timestamp, so their join date is left out only if that fetch fails or times out. Costs 2 credits. */
|
|
8
|
+
async getCommunity(params) {
|
|
9
|
+
const { community_id } = params;
|
|
10
|
+
return this.base.get(`/v1/twitter/communities/${encodeURIComponent(community_id)}`);
|
|
11
|
+
}
|
|
12
|
+
/** One X (Twitter) post as x.com shows it to logged-out visitors, as X's Tweet object in the shape Scrape Creators returns it: `rest_id`, the author under `core.user_results.result`, `legacy` (full text, created time, counts, entities with every t.co link mapped, media with video variants and bitrates, reply and quote ids), `views`, `note_tweet` with the full text of a long post, `article`, `card`, `edit_control`, and the quoted post under `quoted_status_result`. `parent_tweets` holds the posts above a reply that x.com shows logged-out, oldest first; in samples that is only the post it replies to, so follow `legacy.in_reply_to_status_id_str` to walk further up. `replies` holds the top replies x.com shows logged-out (0 to 4 in samples, not every reply); x.com offers no further reply pages logged-out. Both lists hold Tweet objects plus their `url`. `success`, `credits_charged` and `credits_remaining` (the wallet balance after this charge) sit at the top level of the body, as in Scrape Creators' answers. Fields x.com does not show logged-out visitors are left out, never filled with placeholder values: for example `favourites_count`, `listed_count`, `media_count` and a post's `source`. Fields that depend on the viewer hold what every logged-out viewer gets: `favorited`, `retweeted`, `bookmarked`, `relationship_perspectives`, `can_dm` and the other viewer flags are false. A post's author (`core.user_results.result`, or `user` on a community post) carries what x.com embeds with posts plus what only the author's profile page shows: `location`, the exact join date (`core.created_at`), the bio (`legacy.description` and `profile_bio`), the bio link (`legacy.url` and `legacy.entities`), the banner (`legacy.profile_banner_url`), `legacy.pinned_tweet_ids_str`, `legacy.possibly_sensitive` and `verification.verified`. They come from the author's profile in the same response when there is one, else from the author's profile page, fetched at no extra charge and cached for 2 minutes, so they can be up to 2 minutes old. Author profiles are best-effort. An author whose profile page fails or takes more than 8 seconds keeps only what x.com embeds, and its join date comes from the timestamp inside the user id, which can run up to about 25 minutes before X's own value. Accounts created before about 2016 have ids without a timestamp, so their join date is left out only if that fetch fails or times out. Costs 1 credit. */
|
|
13
|
+
async getTweet(params) {
|
|
14
|
+
const { tweet_id } = params;
|
|
15
|
+
return this.base.get(`/v1/twitter/tweets/${encodeURIComponent(tweet_id)}`);
|
|
16
|
+
}
|
|
17
|
+
/** An X (Twitter) account's public profile as x.com shows it to logged-out visitors, as X's User object in the shape Scrape Creators returns it: `rest_id`, `core` (name, handle, join date), `legacy` (bio, follower, following and post counts, avatar, banner, bio link, pinned post id), `location`, `privacy`, `verification` and `is_blue_verified`. `pinned_tweet` and `tweets` add the pinned post and the newest original posts x.com shows logged-out (4 or 5 in samples) from the same page fetch, each an X Tweet object plus its `url`. This is a fixed window: x.com offers no further pages logged-out, so there is no cursor. A protected account returns its profile with no posts. Tapline caches each profile page for 2 minutes, so a profile and its posts can be up to 2 minutes old. `success`, `credits_charged` and `credits_remaining` (the wallet balance after this charge) sit at the top level of the body, as in Scrape Creators' answers. Fields x.com does not show logged-out visitors are left out, never filled with placeholder values: for example `favourites_count`, `listed_count`, `media_count` and a post's `source`. Fields that depend on the viewer hold what every logged-out viewer gets: `favorited`, `retweeted`, `bookmarked`, `relationship_perspectives`, `can_dm` and the other viewer flags are false. A post's author (`core.user_results.result`, or `user` on a community post) carries what x.com embeds with posts plus what only the author's profile page shows: `location`, the exact join date (`core.created_at`), the bio (`legacy.description` and `profile_bio`), the bio link (`legacy.url` and `legacy.entities`), the banner (`legacy.profile_banner_url`), `legacy.pinned_tweet_ids_str`, `legacy.possibly_sensitive` and `verification.verified`. They come from the author's profile in the same response when there is one, else from the author's profile page, fetched at no extra charge and cached for 2 minutes, so they can be up to 2 minutes old. Author profiles are best-effort. An author whose profile page fails or takes more than 8 seconds keeps only what x.com embeds, and its join date comes from the timestamp inside the user id, which can run up to about 25 minutes before X's own value. Accounts created before about 2016 have ids without a timestamp, so their join date is left out only if that fetch fails or times out. Looks the account up by its numeric user id. Costs 1 credit. */
|
|
18
|
+
async getUserProfileById(params) {
|
|
19
|
+
const { user_id } = params;
|
|
20
|
+
return this.base.get(`/v1/twitter/users/by-id/${encodeURIComponent(user_id)}`);
|
|
21
|
+
}
|
|
22
|
+
/** An X (Twitter) account's public profile as x.com shows it to logged-out visitors, as X's User object in the shape Scrape Creators returns it: `rest_id`, `core` (name, handle, join date), `legacy` (bio, follower, following and post counts, avatar, banner, bio link, pinned post id), `location`, `privacy`, `verification` and `is_blue_verified`. `pinned_tweet` and `tweets` add the pinned post and the newest original posts x.com shows logged-out (4 or 5 in samples) from the same page fetch, each an X Tweet object plus its `url`. This is a fixed window: x.com offers no further pages logged-out, so there is no cursor. A protected account returns its profile with no posts. Tapline caches each profile page for 2 minutes, so a profile and its posts can be up to 2 minutes old. `success`, `credits_charged` and `credits_remaining` (the wallet balance after this charge) sit at the top level of the body, as in Scrape Creators' answers. Fields x.com does not show logged-out visitors are left out, never filled with placeholder values: for example `favourites_count`, `listed_count`, `media_count` and a post's `source`. Fields that depend on the viewer hold what every logged-out viewer gets: `favorited`, `retweeted`, `bookmarked`, `relationship_perspectives`, `can_dm` and the other viewer flags are false. A post's author (`core.user_results.result`, or `user` on a community post) carries what x.com embeds with posts plus what only the author's profile page shows: `location`, the exact join date (`core.created_at`), the bio (`legacy.description` and `profile_bio`), the bio link (`legacy.url` and `legacy.entities`), the banner (`legacy.profile_banner_url`), `legacy.pinned_tweet_ids_str`, `legacy.possibly_sensitive` and `verification.verified`. They come from the author's profile in the same response when there is one, else from the author's profile page, fetched at no extra charge and cached for 2 minutes, so they can be up to 2 minutes old. Author profiles are best-effort. An author whose profile page fails or takes more than 8 seconds keeps only what x.com embeds, and its join date comes from the timestamp inside the user id, which can run up to about 25 minutes before X's own value. Accounts created before about 2016 have ids without a timestamp, so their join date is left out only if that fetch fails or times out. Looks the account up by its handle. Costs 1 credit. */
|
|
23
|
+
async getUserProfile(params) {
|
|
24
|
+
const { screen_name } = params;
|
|
25
|
+
return this.base.get(`/v1/twitter/users/${encodeURIComponent(screen_name)}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/services/twitter/client.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAKpE,MAAM,OAAO,aAAa;IACK;IAA7B,YAA6B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAEjD,mrEAAmrE;IACnrE,KAAK,CAAC,YAAY,CAAC,MAA0B;QAC3C,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA2B,2BAA2B,kBAAkB,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAChH,CAAC;IAED,w4EAAw4E;IACx4E,KAAK,CAAC,QAAQ,CAAC,MAAsB;QACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA6B,sBAAsB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACzG,CAAC;IAED,s2EAAs2E;IACt2E,KAAK,CAAC,kBAAkB,CAAC,MAAgC;QACvD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAyB,2BAA2B,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzG,CAAC;IAED,61EAA61E;IAC71E,KAAK,CAAC,cAAc,CAAC,MAA4B;QAC/C,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAyB,qBAAqB,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/twitter/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/twitter/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
export interface ErrorDetail {
|
|
2
|
+
ctx?: Record<string, unknown> | null;
|
|
3
|
+
input?: unknown | null;
|
|
4
|
+
loc?: (string | number)[] | null;
|
|
5
|
+
msg?: string | null;
|
|
6
|
+
type?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface ErrorResponse {
|
|
9
|
+
code: PublicError;
|
|
10
|
+
details?: ErrorDetail[] | null;
|
|
11
|
+
domain?: string | null;
|
|
12
|
+
message: string;
|
|
13
|
+
request_id: string;
|
|
14
|
+
upgrade_url?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface GetCommunityParams {
|
|
17
|
+
/** Numeric X Community id, the digits after /i/communities/ in a community URL. */
|
|
18
|
+
community_id: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetTweetParams {
|
|
21
|
+
/** Numeric post (tweet) id, the digits after /status/ in a post URL. */
|
|
22
|
+
tweet_id: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GetUserProfileByIdParams {
|
|
25
|
+
/** Numeric X user id (the account's rest_id). */
|
|
26
|
+
user_id: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetUserProfileParams {
|
|
29
|
+
/** X handle without the @: 1 to 15 letters, digits or underscores. x.com's own page names (explore, home, search, ...) are rejected. */
|
|
30
|
+
screen_name: string;
|
|
31
|
+
}
|
|
32
|
+
export type PublicError = "blocked" | "concurrency_exceeded" | "timeout" | "extraction_failed" | "upstream_blocked" | "upstream_unavailable" | "upstream_response_invalid" | "invalid_url_scheme" | "invalid_url_host" | "unauthenticated" | "forbidden" | "resource_forbidden" | "not_found" | "rate_limited" | "invalid_request" | "invalid_cursor" | "insufficient_credits" | "internal_error";
|
|
33
|
+
export interface TwitterAdditionalMediaInfo {
|
|
34
|
+
monetizable: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface TwitterAdvertisingDisclosure {
|
|
37
|
+
is_paid_promotion: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface TwitterAffiliatesHighlightedLabel {
|
|
40
|
+
label?: TwitterUserLabel;
|
|
41
|
+
}
|
|
42
|
+
export interface TwitterAiGeneratedDisclosure {
|
|
43
|
+
has_ai_generated_media: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface TwitterAllowDownloadStatus {
|
|
46
|
+
allow_download: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface TwitterApiImage {
|
|
49
|
+
__typename: string;
|
|
50
|
+
original_img_height: number;
|
|
51
|
+
original_img_url: string;
|
|
52
|
+
original_img_width: number;
|
|
53
|
+
}
|
|
54
|
+
export interface TwitterArticle {
|
|
55
|
+
article_results: TwitterArticleResults;
|
|
56
|
+
}
|
|
57
|
+
export interface TwitterArticleCoverMedia {
|
|
58
|
+
id: string;
|
|
59
|
+
media_id?: string;
|
|
60
|
+
media_info: TwitterApiImage;
|
|
61
|
+
media_key?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface TwitterArticleLifecycleState {
|
|
64
|
+
modified_at_secs: number;
|
|
65
|
+
}
|
|
66
|
+
export interface TwitterArticleMetadata {
|
|
67
|
+
first_published_at_secs: number;
|
|
68
|
+
}
|
|
69
|
+
export interface TwitterArticleResult {
|
|
70
|
+
cover_media: TwitterArticleCoverMedia;
|
|
71
|
+
id: string;
|
|
72
|
+
lifecycle_state?: TwitterArticleLifecycleState;
|
|
73
|
+
metadata?: TwitterArticleMetadata;
|
|
74
|
+
plain_text?: string;
|
|
75
|
+
preview_text: string;
|
|
76
|
+
rest_id: string;
|
|
77
|
+
title: string;
|
|
78
|
+
}
|
|
79
|
+
export interface TwitterArticleResults {
|
|
80
|
+
result: TwitterArticleResult;
|
|
81
|
+
}
|
|
82
|
+
export interface TwitterCard {
|
|
83
|
+
legacy?: TwitterCardLegacy;
|
|
84
|
+
rest_id: string;
|
|
85
|
+
}
|
|
86
|
+
export interface TwitterCardBindingValue {
|
|
87
|
+
key: string;
|
|
88
|
+
value: TwitterCardBindingValueData;
|
|
89
|
+
}
|
|
90
|
+
export interface TwitterCardBindingValueData {
|
|
91
|
+
image_value?: TwitterCardImageValue;
|
|
92
|
+
string_value?: string;
|
|
93
|
+
type: string;
|
|
94
|
+
user_value?: TwitterCardUserValue;
|
|
95
|
+
}
|
|
96
|
+
export interface TwitterCardImageValue {
|
|
97
|
+
alt?: string;
|
|
98
|
+
height: number;
|
|
99
|
+
url: string;
|
|
100
|
+
width: number;
|
|
101
|
+
}
|
|
102
|
+
export interface TwitterCardLegacy {
|
|
103
|
+
binding_values: TwitterCardBindingValue[];
|
|
104
|
+
name: string;
|
|
105
|
+
url: string;
|
|
106
|
+
}
|
|
107
|
+
export interface TwitterCardUserValue {
|
|
108
|
+
id_str: string;
|
|
109
|
+
}
|
|
110
|
+
export interface TwitterCommunityActions {
|
|
111
|
+
id: string;
|
|
112
|
+
join_action_result: TwitterUnavailableResult;
|
|
113
|
+
}
|
|
114
|
+
export interface TwitterCommunityBannerMedia {
|
|
115
|
+
id: string;
|
|
116
|
+
media_info: TwitterApiImage;
|
|
117
|
+
}
|
|
118
|
+
export interface TwitterCommunityResponse {
|
|
119
|
+
__typename: string;
|
|
120
|
+
actions: TwitterCommunityActions;
|
|
121
|
+
created_at: number;
|
|
122
|
+
creator_results?: TwitterCommunityUserResults;
|
|
123
|
+
credits_charged: number;
|
|
124
|
+
credits_remaining: number;
|
|
125
|
+
custom_banner_media?: TwitterCommunityBannerMedia;
|
|
126
|
+
default_banner_media: TwitterCommunityBannerMedia;
|
|
127
|
+
description?: string;
|
|
128
|
+
id: string;
|
|
129
|
+
invites_result: TwitterUnavailableResult;
|
|
130
|
+
is_member: boolean;
|
|
131
|
+
is_nsfw: boolean;
|
|
132
|
+
join_policy: string;
|
|
133
|
+
join_requests_result: TwitterUnavailableResult;
|
|
134
|
+
member_count: number;
|
|
135
|
+
members_facepile_results: TwitterCommunityUserResults[];
|
|
136
|
+
name: string;
|
|
137
|
+
primary_community_topic?: TwitterPrimaryCommunityTopic;
|
|
138
|
+
rest_id: string;
|
|
139
|
+
role: string;
|
|
140
|
+
rules: TwitterCommunityRule[];
|
|
141
|
+
success: boolean;
|
|
142
|
+
tweets: TwitterCommunityTweetsItem[];
|
|
143
|
+
}
|
|
144
|
+
export interface TwitterCommunityRule {
|
|
145
|
+
description?: string;
|
|
146
|
+
id: string;
|
|
147
|
+
name: string;
|
|
148
|
+
rest_id: string;
|
|
149
|
+
}
|
|
150
|
+
export interface TwitterCommunityTweetsItem {
|
|
151
|
+
bookmark_count?: number;
|
|
152
|
+
bookmarked: boolean;
|
|
153
|
+
conversation_id_str?: string;
|
|
154
|
+
created_at: string;
|
|
155
|
+
display_text_range: number[];
|
|
156
|
+
entities: TwitterTweetEntities;
|
|
157
|
+
extended_entities?: TwitterExtendedEntities;
|
|
158
|
+
favorite_count: number;
|
|
159
|
+
favorited: boolean;
|
|
160
|
+
full_text: string;
|
|
161
|
+
id: string;
|
|
162
|
+
id_str: string;
|
|
163
|
+
in_reply_to_screen_name?: string;
|
|
164
|
+
in_reply_to_status_id_str?: string;
|
|
165
|
+
in_reply_to_user_id_str?: string;
|
|
166
|
+
is_quote_status: boolean;
|
|
167
|
+
lang: string;
|
|
168
|
+
possibly_sensitive?: boolean;
|
|
169
|
+
quote_count: number;
|
|
170
|
+
quoted_status_id_str?: string;
|
|
171
|
+
quoted_status_permalink?: TwitterQuotedStatusPermalink;
|
|
172
|
+
reply_count: number;
|
|
173
|
+
retweet_count: number;
|
|
174
|
+
retweeted: boolean;
|
|
175
|
+
user: TwitterUser;
|
|
176
|
+
user_id_str: string;
|
|
177
|
+
view_count?: string;
|
|
178
|
+
}
|
|
179
|
+
export interface TwitterCommunityUser {
|
|
180
|
+
__typename: string;
|
|
181
|
+
avatar?: TwitterUserAvatar;
|
|
182
|
+
core?: TwitterUserCore;
|
|
183
|
+
id: string;
|
|
184
|
+
is_blue_verified?: boolean;
|
|
185
|
+
profile_image_shape?: string;
|
|
186
|
+
rest_id?: string;
|
|
187
|
+
}
|
|
188
|
+
export interface TwitterCommunityUserResults {
|
|
189
|
+
id: string;
|
|
190
|
+
result: TwitterCommunityUser | TwitterUnavailableResult;
|
|
191
|
+
}
|
|
192
|
+
export interface TwitterContentDisclosure {
|
|
193
|
+
advertising_disclosure?: TwitterAdvertisingDisclosure;
|
|
194
|
+
ai_generated_disclosure?: TwitterAiGeneratedDisclosure;
|
|
195
|
+
}
|
|
196
|
+
export interface TwitterDmPermissions {
|
|
197
|
+
can_dm: boolean;
|
|
198
|
+
}
|
|
199
|
+
export interface TwitterEditControl {
|
|
200
|
+
edit_control_initial?: TwitterEditControlInitial;
|
|
201
|
+
edit_tweet_ids?: string[];
|
|
202
|
+
initial_tweet_id?: string;
|
|
203
|
+
}
|
|
204
|
+
export interface TwitterEditControlInitial {
|
|
205
|
+
edit_tweet_ids: string[];
|
|
206
|
+
}
|
|
207
|
+
export interface TwitterExtendedEntities {
|
|
208
|
+
media: TwitterMedia[];
|
|
209
|
+
}
|
|
210
|
+
export interface TwitterHighlightsInfo {
|
|
211
|
+
can_highlight_tweets: boolean;
|
|
212
|
+
highlighted_tweets: string;
|
|
213
|
+
}
|
|
214
|
+
export interface TwitterMedia {
|
|
215
|
+
additional_media_info?: TwitterAdditionalMediaInfo;
|
|
216
|
+
allow_download_status?: TwitterAllowDownloadStatus;
|
|
217
|
+
display_url?: string;
|
|
218
|
+
expanded_url?: string;
|
|
219
|
+
ext_media_availability?: TwitterMediaAvailability;
|
|
220
|
+
id_str: string;
|
|
221
|
+
indices: number[];
|
|
222
|
+
media_key?: string;
|
|
223
|
+
media_results?: TwitterMediaResults;
|
|
224
|
+
media_url_https: string;
|
|
225
|
+
original_info?: TwitterMediaOriginalInfo;
|
|
226
|
+
type: string;
|
|
227
|
+
url?: string;
|
|
228
|
+
video_info?: TwitterVideoInfo;
|
|
229
|
+
}
|
|
230
|
+
export interface TwitterMediaAvailability {
|
|
231
|
+
status: string;
|
|
232
|
+
}
|
|
233
|
+
export interface TwitterMediaOriginalInfo {
|
|
234
|
+
height: number;
|
|
235
|
+
width: number;
|
|
236
|
+
}
|
|
237
|
+
export interface TwitterMediaPermissions {
|
|
238
|
+
can_media_tag: boolean;
|
|
239
|
+
}
|
|
240
|
+
export interface TwitterMediaResult {
|
|
241
|
+
media_key: string;
|
|
242
|
+
}
|
|
243
|
+
export interface TwitterMediaResults {
|
|
244
|
+
result: TwitterMediaResult;
|
|
245
|
+
}
|
|
246
|
+
export interface TwitterNoteTweet {
|
|
247
|
+
is_expandable: boolean;
|
|
248
|
+
note_tweet_results: TwitterNoteTweetResults;
|
|
249
|
+
}
|
|
250
|
+
export interface TwitterNoteTweetResult {
|
|
251
|
+
entity_set: TwitterTweetEntities;
|
|
252
|
+
id: string;
|
|
253
|
+
text: string;
|
|
254
|
+
}
|
|
255
|
+
export interface TwitterNoteTweetResults {
|
|
256
|
+
result: TwitterNoteTweetResult;
|
|
257
|
+
}
|
|
258
|
+
export interface TwitterPrimaryCommunityTopic {
|
|
259
|
+
topic_name: string;
|
|
260
|
+
}
|
|
261
|
+
export interface TwitterProfileBio {
|
|
262
|
+
description: string;
|
|
263
|
+
}
|
|
264
|
+
export interface TwitterProfileResponse {
|
|
265
|
+
__typename: string;
|
|
266
|
+
affiliates_highlighted_label?: TwitterAffiliatesHighlightedLabel;
|
|
267
|
+
avatar?: TwitterUserAvatar;
|
|
268
|
+
core: TwitterUserCore;
|
|
269
|
+
creator_subscriptions_count?: number;
|
|
270
|
+
credits_charged: number;
|
|
271
|
+
credits_remaining: number;
|
|
272
|
+
dm_permissions: TwitterDmPermissions;
|
|
273
|
+
follow_request_sent: boolean;
|
|
274
|
+
has_hidden_subscriptions_on_profile?: boolean;
|
|
275
|
+
highlights_info?: TwitterHighlightsInfo;
|
|
276
|
+
id: string;
|
|
277
|
+
is_blue_verified?: boolean;
|
|
278
|
+
legacy: TwitterUserLegacy;
|
|
279
|
+
location?: TwitterUserLocation;
|
|
280
|
+
media_permissions: TwitterMediaPermissions;
|
|
281
|
+
pinned_tweet: TwitterUserTweetsItem | null;
|
|
282
|
+
privacy?: TwitterUserPrivacy;
|
|
283
|
+
profile_bio?: TwitterProfileBio;
|
|
284
|
+
profile_image_shape?: string;
|
|
285
|
+
relationship_perspectives: TwitterRelationshipPerspectives;
|
|
286
|
+
rest_id: string;
|
|
287
|
+
success: boolean;
|
|
288
|
+
super_follow_eligible?: boolean;
|
|
289
|
+
super_followed_by: boolean;
|
|
290
|
+
super_following: boolean;
|
|
291
|
+
tweets: TwitterUserTweetsItem[];
|
|
292
|
+
user_seed_tweet_count?: number;
|
|
293
|
+
verification?: TwitterUserVerification;
|
|
294
|
+
}
|
|
295
|
+
export interface TwitterQuotedStatusPermalink {
|
|
296
|
+
display: string;
|
|
297
|
+
expanded: string;
|
|
298
|
+
url: string;
|
|
299
|
+
}
|
|
300
|
+
export interface TwitterQuotedStatusResult {
|
|
301
|
+
result: TwitterTweet;
|
|
302
|
+
}
|
|
303
|
+
export interface TwitterRelationshipPerspectives {
|
|
304
|
+
blocked_by: boolean;
|
|
305
|
+
blocking: boolean;
|
|
306
|
+
followed_by: boolean;
|
|
307
|
+
following: boolean;
|
|
308
|
+
muting: boolean;
|
|
309
|
+
}
|
|
310
|
+
export interface TwitterTextEntity {
|
|
311
|
+
indices: number[];
|
|
312
|
+
text: string;
|
|
313
|
+
}
|
|
314
|
+
export interface TwitterTweet {
|
|
315
|
+
__typename: string;
|
|
316
|
+
article?: TwitterArticle;
|
|
317
|
+
card?: TwitterCard;
|
|
318
|
+
content_disclosure?: TwitterContentDisclosure;
|
|
319
|
+
core: TwitterTweetCore;
|
|
320
|
+
edit_control?: TwitterEditControl;
|
|
321
|
+
is_translatable?: boolean;
|
|
322
|
+
legacy: TwitterTweetLegacy;
|
|
323
|
+
note_tweet?: TwitterNoteTweet;
|
|
324
|
+
quoted_status_result?: TwitterQuotedStatusResult;
|
|
325
|
+
rest_id: string;
|
|
326
|
+
views: TwitterTweetViews;
|
|
327
|
+
}
|
|
328
|
+
export interface TwitterTweetCore {
|
|
329
|
+
user_results: TwitterTweetUserResults;
|
|
330
|
+
}
|
|
331
|
+
export interface TwitterTweetDetailResponse {
|
|
332
|
+
__typename: string;
|
|
333
|
+
article?: TwitterArticle;
|
|
334
|
+
card?: TwitterCard;
|
|
335
|
+
content_disclosure?: TwitterContentDisclosure;
|
|
336
|
+
core: TwitterTweetCore;
|
|
337
|
+
credits_charged: number;
|
|
338
|
+
credits_remaining: number;
|
|
339
|
+
edit_control?: TwitterEditControl;
|
|
340
|
+
is_translatable?: boolean;
|
|
341
|
+
legacy: TwitterTweetLegacy;
|
|
342
|
+
note_tweet?: TwitterNoteTweet;
|
|
343
|
+
parent_tweets: TwitterUserTweetsItem[];
|
|
344
|
+
quoted_status_result?: TwitterQuotedStatusResult;
|
|
345
|
+
replies: TwitterUserTweetsItem[];
|
|
346
|
+
rest_id: string;
|
|
347
|
+
success: boolean;
|
|
348
|
+
views: TwitterTweetViews;
|
|
349
|
+
}
|
|
350
|
+
export interface TwitterTweetEntities {
|
|
351
|
+
hashtags?: TwitterTextEntity[];
|
|
352
|
+
media?: TwitterMedia[];
|
|
353
|
+
symbols?: TwitterTextEntity[];
|
|
354
|
+
urls?: TwitterUrlEntity[];
|
|
355
|
+
user_mentions?: TwitterUserMention[];
|
|
356
|
+
}
|
|
357
|
+
export interface TwitterTweetLegacy {
|
|
358
|
+
bookmark_count?: number;
|
|
359
|
+
bookmarked: boolean;
|
|
360
|
+
conversation_id_str?: string;
|
|
361
|
+
created_at: string;
|
|
362
|
+
display_text_range: number[];
|
|
363
|
+
entities: TwitterTweetEntities;
|
|
364
|
+
extended_entities?: TwitterExtendedEntities;
|
|
365
|
+
favorite_count: number;
|
|
366
|
+
favorited: boolean;
|
|
367
|
+
full_text: string;
|
|
368
|
+
id_str: string;
|
|
369
|
+
in_reply_to_screen_name?: string;
|
|
370
|
+
in_reply_to_status_id_str?: string;
|
|
371
|
+
in_reply_to_user_id_str?: string;
|
|
372
|
+
is_quote_status: boolean;
|
|
373
|
+
lang: string;
|
|
374
|
+
possibly_sensitive?: boolean;
|
|
375
|
+
quote_count: number;
|
|
376
|
+
quoted_status_id_str?: string;
|
|
377
|
+
quoted_status_permalink?: TwitterQuotedStatusPermalink;
|
|
378
|
+
reply_count: number;
|
|
379
|
+
retweet_count: number;
|
|
380
|
+
retweeted: boolean;
|
|
381
|
+
user_id_str: string;
|
|
382
|
+
}
|
|
383
|
+
export interface TwitterTweetUserResults {
|
|
384
|
+
result: TwitterUser;
|
|
385
|
+
}
|
|
386
|
+
export interface TwitterTweetViews {
|
|
387
|
+
count?: string;
|
|
388
|
+
state: string;
|
|
389
|
+
}
|
|
390
|
+
export interface TwitterUnavailableResult {
|
|
391
|
+
__typename: string;
|
|
392
|
+
}
|
|
393
|
+
export interface TwitterUrlEntity {
|
|
394
|
+
display_url: string;
|
|
395
|
+
expanded_url: string;
|
|
396
|
+
indices: number[];
|
|
397
|
+
url: string;
|
|
398
|
+
}
|
|
399
|
+
export interface TwitterUser {
|
|
400
|
+
__typename: string;
|
|
401
|
+
affiliates_highlighted_label?: TwitterAffiliatesHighlightedLabel;
|
|
402
|
+
avatar?: TwitterUserAvatar;
|
|
403
|
+
core: TwitterUserCore;
|
|
404
|
+
dm_permissions: TwitterDmPermissions;
|
|
405
|
+
follow_request_sent: boolean;
|
|
406
|
+
id: string;
|
|
407
|
+
is_blue_verified?: boolean;
|
|
408
|
+
legacy: TwitterUserLegacy;
|
|
409
|
+
location?: TwitterUserLocation;
|
|
410
|
+
media_permissions: TwitterMediaPermissions;
|
|
411
|
+
privacy?: TwitterUserPrivacy;
|
|
412
|
+
profile_bio?: TwitterProfileBio;
|
|
413
|
+
profile_image_shape?: string;
|
|
414
|
+
relationship_perspectives: TwitterRelationshipPerspectives;
|
|
415
|
+
rest_id: string;
|
|
416
|
+
super_follow_eligible?: boolean;
|
|
417
|
+
super_followed_by: boolean;
|
|
418
|
+
super_following: boolean;
|
|
419
|
+
verification?: TwitterUserVerification;
|
|
420
|
+
}
|
|
421
|
+
export interface TwitterUserAvatar {
|
|
422
|
+
image_url: string;
|
|
423
|
+
}
|
|
424
|
+
export interface TwitterUserCore {
|
|
425
|
+
created_at?: string;
|
|
426
|
+
name?: string;
|
|
427
|
+
screen_name: string;
|
|
428
|
+
}
|
|
429
|
+
export interface TwitterUserDescriptionEntities {
|
|
430
|
+
urls?: TwitterUrlEntity[];
|
|
431
|
+
}
|
|
432
|
+
export interface TwitterUserEntities {
|
|
433
|
+
description: TwitterUserDescriptionEntities;
|
|
434
|
+
url?: TwitterUserUrlEntities;
|
|
435
|
+
}
|
|
436
|
+
export interface TwitterUserLabel {
|
|
437
|
+
badge: TwitterUserLabelBadge;
|
|
438
|
+
description: string;
|
|
439
|
+
url: TwitterUserLabelUrl;
|
|
440
|
+
userLabelDisplayType: string;
|
|
441
|
+
userLabelType: string;
|
|
442
|
+
}
|
|
443
|
+
export interface TwitterUserLabelBadge {
|
|
444
|
+
url: string;
|
|
445
|
+
}
|
|
446
|
+
export interface TwitterUserLabelUrl {
|
|
447
|
+
url: string;
|
|
448
|
+
}
|
|
449
|
+
export interface TwitterUserLegacy {
|
|
450
|
+
created_at?: string;
|
|
451
|
+
default_profile_image?: boolean;
|
|
452
|
+
description?: string;
|
|
453
|
+
entities?: TwitterUserEntities;
|
|
454
|
+
follow_request_sent: boolean;
|
|
455
|
+
followers_count?: number;
|
|
456
|
+
friends_count?: number;
|
|
457
|
+
location?: string;
|
|
458
|
+
name?: string;
|
|
459
|
+
needs_phone_verification: boolean;
|
|
460
|
+
notifications: boolean;
|
|
461
|
+
pinned_tweet_ids_str?: string[];
|
|
462
|
+
possibly_sensitive?: boolean;
|
|
463
|
+
profile_banner_url?: string;
|
|
464
|
+
profile_image_url_https?: string;
|
|
465
|
+
screen_name?: string;
|
|
466
|
+
statuses_count?: number;
|
|
467
|
+
translator_type?: string;
|
|
468
|
+
url?: string;
|
|
469
|
+
}
|
|
470
|
+
export interface TwitterUserLocation {
|
|
471
|
+
location: string;
|
|
472
|
+
}
|
|
473
|
+
export interface TwitterUserMention {
|
|
474
|
+
id_str: string;
|
|
475
|
+
indices: number[];
|
|
476
|
+
screen_name: string;
|
|
477
|
+
}
|
|
478
|
+
export interface TwitterUserPrivacy {
|
|
479
|
+
protected: boolean;
|
|
480
|
+
}
|
|
481
|
+
export interface TwitterUserTweetsItem {
|
|
482
|
+
__typename: string;
|
|
483
|
+
article?: TwitterArticle;
|
|
484
|
+
card?: TwitterCard;
|
|
485
|
+
content_disclosure?: TwitterContentDisclosure;
|
|
486
|
+
core: TwitterTweetCore;
|
|
487
|
+
edit_control?: TwitterEditControl;
|
|
488
|
+
is_translatable?: boolean;
|
|
489
|
+
legacy: TwitterTweetLegacy;
|
|
490
|
+
note_tweet?: TwitterNoteTweet;
|
|
491
|
+
quoted_status_result?: TwitterQuotedStatusResult;
|
|
492
|
+
rest_id: string;
|
|
493
|
+
url: string;
|
|
494
|
+
views: TwitterTweetViews;
|
|
495
|
+
}
|
|
496
|
+
export interface TwitterUserUrlEntities {
|
|
497
|
+
urls: TwitterUrlEntity[];
|
|
498
|
+
}
|
|
499
|
+
export interface TwitterUserVerification {
|
|
500
|
+
verified?: boolean;
|
|
501
|
+
verified_type?: string;
|
|
502
|
+
}
|
|
503
|
+
export interface TwitterVideoInfo {
|
|
504
|
+
aspect_ratio?: number[];
|
|
505
|
+
duration_millis?: number;
|
|
506
|
+
variants: TwitterVideoVariant[];
|
|
507
|
+
}
|
|
508
|
+
export interface TwitterVideoVariant {
|
|
509
|
+
bitrate?: number;
|
|
510
|
+
content_type: string;
|
|
511
|
+
url: string;
|
|
512
|
+
}
|
|
513
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/twitter/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,mFAAmF;IACnF,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACn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B,CAAC,EAAE,yBAAyB,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,iBAAiB,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/twitter/types.ts"],"names":[],"mappings":"AAAA,oEAAoE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapline/client",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Typed TypeScript SDK for Tapline's web scraping APIs for YouTube, Airbnb, GMGN, GeckoTerminal, GoPlus Security and
|
|
3
|
+
"version": "0.2.5",
|
|
4
|
+
"description": "Typed TypeScript SDK for Tapline's web scraping APIs for YouTube, Airbnb, GMGN, GeckoTerminal, GoPlus Security, Pons Family and Twitter (X).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/cjs/index.js",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"geckoterminal",
|
|
21
21
|
"goplus",
|
|
22
22
|
"ponsfamily",
|
|
23
|
+
"twitter",
|
|
23
24
|
"api",
|
|
24
25
|
"client",
|
|
25
26
|
"sdk",
|