x-twitter-scraper 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +5 -5
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +19 -0
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +19 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +20 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +20 -1
- package/resources/account.mjs.map +1 -1
- package/resources/api-keys.d.mts +20 -0
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +20 -0
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +20 -3
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +20 -3
- package/resources/api-keys.mjs.map +1 -1
- package/resources/compose.d.mts +28 -3
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +28 -3
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js +9 -0
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +9 -0
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +12 -0
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +12 -0
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +12 -0
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +12 -0
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +33 -0
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +33 -0
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +24 -0
- package/resources/drafts.js.map +1 -1
- package/resources/drafts.mjs +24 -0
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +46 -1
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +46 -1
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +27 -0
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +27 -0
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +25 -1
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +25 -1
- package/resources/events.d.ts.map +1 -1
- package/resources/extractions.d.mts +74 -5
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +74 -5
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +36 -0
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +36 -0
- package/resources/extractions.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/integrations.d.mts +77 -0
- package/resources/integrations.d.mts.map +1 -1
- package/resources/integrations.d.ts +77 -0
- package/resources/integrations.d.ts.map +1 -1
- package/resources/integrations.js +47 -0
- package/resources/integrations.js.map +1 -1
- package/resources/integrations.mjs +47 -0
- package/resources/integrations.mjs.map +1 -1
- package/resources/monitors.d.mts +46 -0
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts +46 -0
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +31 -0
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +31 -0
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +4 -1
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +4 -1
- package/resources/radar.d.ts.map +1 -1
- package/resources/shared.d.mts +12 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +12 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts +63 -4
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts +63 -4
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.js +55 -8
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +55 -8
- package/resources/styles.mjs.map +1 -1
- package/resources/support/tickets.d.mts +34 -0
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +34 -0
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +34 -0
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +34 -0
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/trends.d.mts +4 -1
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +4 -1
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.js +1 -1
- package/resources/trends.mjs +1 -1
- package/resources/webhooks.d.mts +54 -0
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +54 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +36 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +36 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/accounts.d.mts +59 -3
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +59 -3
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +55 -5
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +55 -5
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/bookmarks.d.mts +11 -1
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +11 -1
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.js +10 -0
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +10 -0
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +118 -11
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +118 -11
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +45 -16
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +45 -16
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +1 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +1 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +18 -2
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +18 -2
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +16 -0
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +16 -0
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/tweets.d.mts +28 -5
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +28 -5
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +20 -6
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +20 -6
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/dm.d.mts +19 -2
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +19 -2
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +17 -0
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +17 -0
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +8 -0
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +8 -0
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.js +8 -0
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +8 -0
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +2 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +2 -2
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/lists.d.mts +27 -6
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +27 -6
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.js +23 -16
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +23 -16
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +17 -1
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +17 -1
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +16 -0
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +16 -0
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +30 -3
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +30 -3
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +27 -0
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +27 -0
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +18 -4
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +18 -4
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +18 -4
- package/resources/x/tweets/like.js.map +1 -1
- package/resources/x/tweets/like.mjs +18 -4
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts +18 -4
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +18 -4
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +18 -4
- package/resources/x/tweets/retweet.js.map +1 -1
- package/resources/x/tweets/retweet.mjs +18 -4
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +146 -15
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +146 -15
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +74 -10
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +74 -10
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +19 -4
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +19 -4
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +19 -4
- package/resources/x/users/follow.js.map +1 -1
- package/resources/x/users/follow.mjs +19 -4
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/users.d.mts +94 -21
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +94 -21
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +78 -33
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +78 -33
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/x.d.mts +42 -6
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +42 -6
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +21 -5
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +21 -5
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/account.ts +20 -1
- package/src/resources/api-keys.ts +23 -3
- package/src/resources/compose.ts +32 -1
- package/src/resources/credits.ts +12 -0
- package/src/resources/drafts.ts +33 -0
- package/src/resources/draws.ts +46 -1
- package/src/resources/events.ts +25 -1
- package/src/resources/extractions.ts +74 -5
- package/src/resources/index.ts +1 -0
- package/src/resources/integrations.ts +77 -0
- package/src/resources/monitors.ts +46 -0
- package/src/resources/radar.ts +4 -1
- package/src/resources/shared.ts +12 -0
- package/src/resources/styles.ts +67 -8
- package/src/resources/support/tickets.ts +34 -0
- package/src/resources/trends.ts +4 -1
- package/src/resources/webhooks.ts +54 -0
- package/src/resources/x/accounts.ts +72 -7
- package/src/resources/x/bookmarks.ts +11 -1
- package/src/resources/x/communities/communities.ts +142 -26
- package/src/resources/x/communities/index.ts +1 -1
- package/src/resources/x/communities/join.ts +18 -2
- package/src/resources/x/communities/tweets.ts +41 -11
- package/src/resources/x/dm.ts +19 -2
- package/src/resources/x/followers.ts +8 -0
- package/src/resources/x/index.ts +2 -0
- package/src/resources/x/lists.ts +30 -22
- package/src/resources/x/media.ts +17 -1
- package/src/resources/x/profile.ts +30 -3
- package/src/resources/x/tweets/like.ts +20 -6
- package/src/resources/x/tweets/retweet.ts +20 -14
- package/src/resources/x/tweets/tweets.ts +157 -27
- package/src/resources/x/users/follow.ts +21 -10
- package/src/resources/x/users/users.ts +103 -52
- package/src/resources/x/x.ts +50 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -7,35 +7,80 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
7
7
|
export declare class Extractions extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Get extraction results
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const extraction = await client.extractions.retrieve('id');
|
|
14
|
+
* ```
|
|
10
15
|
*/
|
|
11
16
|
retrieve(id: string, query?: ExtractionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionRetrieveResponse>;
|
|
12
17
|
/**
|
|
13
18
|
* List extraction jobs
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const extractions = await client.extractions.list();
|
|
23
|
+
* ```
|
|
14
24
|
*/
|
|
15
25
|
list(query?: ExtractionListParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionListResponse>;
|
|
16
26
|
/**
|
|
17
27
|
* Estimate extraction cost
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response = await client.extractions.estimateCost({
|
|
32
|
+
* toolType: 'follower_explorer',
|
|
33
|
+
* targetUsername: 'elonmusk',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
18
36
|
*/
|
|
19
37
|
estimateCost(body: ExtractionEstimateCostParams, options?: RequestOptions): APIPromise<ExtractionEstimateCostResponse>;
|
|
20
38
|
/**
|
|
21
39
|
* Export extraction results
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const response = await client.extractions.exportResults(
|
|
44
|
+
* 'id',
|
|
45
|
+
* );
|
|
46
|
+
*
|
|
47
|
+
* const content = await response.blob();
|
|
48
|
+
* console.log(content);
|
|
49
|
+
* ```
|
|
22
50
|
*/
|
|
23
51
|
exportResults(id: string, query?: ExtractionExportResultsParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
24
52
|
/**
|
|
25
53
|
* Run extraction
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const response = await client.extractions.run({
|
|
58
|
+
* toolType: 'follower_explorer',
|
|
59
|
+
* targetUsername: 'elonmusk',
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
26
62
|
*/
|
|
27
63
|
run(body: ExtractionRunParams, options?: RequestOptions): APIPromise<ExtractionRunResponse>;
|
|
28
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Extraction job tracking status, tool type, and result count.
|
|
67
|
+
*/
|
|
29
68
|
export interface ExtractionJob {
|
|
30
69
|
id: string;
|
|
31
70
|
createdAt: string;
|
|
32
71
|
status: 'running' | 'completed' | 'failed';
|
|
72
|
+
/**
|
|
73
|
+
* Identifier for the extraction tool used to run a job.
|
|
74
|
+
*/
|
|
33
75
|
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
34
76
|
totalResults: number;
|
|
35
77
|
completedAt?: string;
|
|
36
78
|
}
|
|
37
79
|
export interface ExtractionRetrieveResponse {
|
|
38
80
|
hasMore: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Extraction job metadata — shape varies by tool type (JSON)
|
|
83
|
+
*/
|
|
39
84
|
job: {
|
|
40
85
|
[key: string]: unknown;
|
|
41
86
|
};
|
|
@@ -59,36 +104,54 @@ export interface ExtractionEstimateCostResponse {
|
|
|
59
104
|
export interface ExtractionRunResponse {
|
|
60
105
|
id: string;
|
|
61
106
|
status: 'running';
|
|
107
|
+
/**
|
|
108
|
+
* Identifier for the extraction tool used to run a job.
|
|
109
|
+
*/
|
|
62
110
|
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
63
111
|
}
|
|
64
112
|
export interface ExtractionRetrieveParams {
|
|
65
113
|
/**
|
|
66
|
-
* Cursor for pagination
|
|
114
|
+
* Cursor for keyset pagination
|
|
67
115
|
*/
|
|
68
116
|
after?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Maximum number of results to return (1-1000, default 100)
|
|
119
|
+
*/
|
|
69
120
|
limit?: number;
|
|
70
121
|
}
|
|
71
122
|
export interface ExtractionListParams {
|
|
72
123
|
/**
|
|
73
|
-
* Cursor for pagination
|
|
124
|
+
* Cursor for keyset pagination
|
|
74
125
|
*/
|
|
75
126
|
after?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Maximum number of items to return (1-100, default 50)
|
|
129
|
+
*/
|
|
76
130
|
limit?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Filter by job status
|
|
133
|
+
*/
|
|
77
134
|
status?: 'running' | 'completed' | 'failed';
|
|
135
|
+
/**
|
|
136
|
+
* Filter by extraction tool type
|
|
137
|
+
*/
|
|
78
138
|
toolType?: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
79
139
|
}
|
|
80
140
|
export interface ExtractionEstimateCostParams {
|
|
141
|
+
/**
|
|
142
|
+
* Identifier for the extraction tool used to run a job.
|
|
143
|
+
*/
|
|
81
144
|
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
82
145
|
/**
|
|
83
|
-
* Raw advanced
|
|
146
|
+
* Raw advanced query string appended to the estimate (tweet_search_extractor)
|
|
84
147
|
*/
|
|
85
148
|
advancedQuery?: string;
|
|
86
149
|
/**
|
|
87
|
-
* Exact phrase
|
|
150
|
+
* Exact phrase filter for search estimation
|
|
88
151
|
*/
|
|
89
152
|
exactPhrase?: string;
|
|
90
153
|
/**
|
|
91
|
-
* Words
|
|
154
|
+
* Words excluded from estimated search results
|
|
92
155
|
*/
|
|
93
156
|
excludeWords?: string;
|
|
94
157
|
searchQuery?: string;
|
|
@@ -99,9 +162,15 @@ export interface ExtractionEstimateCostParams {
|
|
|
99
162
|
targetUsername?: string;
|
|
100
163
|
}
|
|
101
164
|
export interface ExtractionExportResultsParams {
|
|
165
|
+
/**
|
|
166
|
+
* Export file format
|
|
167
|
+
*/
|
|
102
168
|
format?: 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx';
|
|
103
169
|
}
|
|
104
170
|
export interface ExtractionRunParams {
|
|
171
|
+
/**
|
|
172
|
+
* Identifier for the extraction tool used to run a job.
|
|
173
|
+
*/
|
|
105
174
|
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
106
175
|
/**
|
|
107
176
|
* Raw advanced search query appended as-is (tweet_search_extractor)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractions.d.mts","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"extractions.d.mts","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;OAOG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAA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C9B,0BAA0B,GAC1B,kBAAkB,GAClB,mBAAmB,GACnB,oBAAoB,GACpB,wBAAwB,GACxB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,eAAe,GACf,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,wBAAwB,GACxB,4BAA4B,CAAC;IAEjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -7,35 +7,80 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
7
7
|
export declare class Extractions extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Get extraction results
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const extraction = await client.extractions.retrieve('id');
|
|
14
|
+
* ```
|
|
10
15
|
*/
|
|
11
16
|
retrieve(id: string, query?: ExtractionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionRetrieveResponse>;
|
|
12
17
|
/**
|
|
13
18
|
* List extraction jobs
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const extractions = await client.extractions.list();
|
|
23
|
+
* ```
|
|
14
24
|
*/
|
|
15
25
|
list(query?: ExtractionListParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionListResponse>;
|
|
16
26
|
/**
|
|
17
27
|
* Estimate extraction cost
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response = await client.extractions.estimateCost({
|
|
32
|
+
* toolType: 'follower_explorer',
|
|
33
|
+
* targetUsername: 'elonmusk',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
18
36
|
*/
|
|
19
37
|
estimateCost(body: ExtractionEstimateCostParams, options?: RequestOptions): APIPromise<ExtractionEstimateCostResponse>;
|
|
20
38
|
/**
|
|
21
39
|
* Export extraction results
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const response = await client.extractions.exportResults(
|
|
44
|
+
* 'id',
|
|
45
|
+
* );
|
|
46
|
+
*
|
|
47
|
+
* const content = await response.blob();
|
|
48
|
+
* console.log(content);
|
|
49
|
+
* ```
|
|
22
50
|
*/
|
|
23
51
|
exportResults(id: string, query?: ExtractionExportResultsParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
24
52
|
/**
|
|
25
53
|
* Run extraction
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const response = await client.extractions.run({
|
|
58
|
+
* toolType: 'follower_explorer',
|
|
59
|
+
* targetUsername: 'elonmusk',
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
26
62
|
*/
|
|
27
63
|
run(body: ExtractionRunParams, options?: RequestOptions): APIPromise<ExtractionRunResponse>;
|
|
28
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Extraction job tracking status, tool type, and result count.
|
|
67
|
+
*/
|
|
29
68
|
export interface ExtractionJob {
|
|
30
69
|
id: string;
|
|
31
70
|
createdAt: string;
|
|
32
71
|
status: 'running' | 'completed' | 'failed';
|
|
72
|
+
/**
|
|
73
|
+
* Identifier for the extraction tool used to run a job.
|
|
74
|
+
*/
|
|
33
75
|
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
34
76
|
totalResults: number;
|
|
35
77
|
completedAt?: string;
|
|
36
78
|
}
|
|
37
79
|
export interface ExtractionRetrieveResponse {
|
|
38
80
|
hasMore: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Extraction job metadata — shape varies by tool type (JSON)
|
|
83
|
+
*/
|
|
39
84
|
job: {
|
|
40
85
|
[key: string]: unknown;
|
|
41
86
|
};
|
|
@@ -59,36 +104,54 @@ export interface ExtractionEstimateCostResponse {
|
|
|
59
104
|
export interface ExtractionRunResponse {
|
|
60
105
|
id: string;
|
|
61
106
|
status: 'running';
|
|
107
|
+
/**
|
|
108
|
+
* Identifier for the extraction tool used to run a job.
|
|
109
|
+
*/
|
|
62
110
|
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
63
111
|
}
|
|
64
112
|
export interface ExtractionRetrieveParams {
|
|
65
113
|
/**
|
|
66
|
-
* Cursor for pagination
|
|
114
|
+
* Cursor for keyset pagination
|
|
67
115
|
*/
|
|
68
116
|
after?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Maximum number of results to return (1-1000, default 100)
|
|
119
|
+
*/
|
|
69
120
|
limit?: number;
|
|
70
121
|
}
|
|
71
122
|
export interface ExtractionListParams {
|
|
72
123
|
/**
|
|
73
|
-
* Cursor for pagination
|
|
124
|
+
* Cursor for keyset pagination
|
|
74
125
|
*/
|
|
75
126
|
after?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Maximum number of items to return (1-100, default 50)
|
|
129
|
+
*/
|
|
76
130
|
limit?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Filter by job status
|
|
133
|
+
*/
|
|
77
134
|
status?: 'running' | 'completed' | 'failed';
|
|
135
|
+
/**
|
|
136
|
+
* Filter by extraction tool type
|
|
137
|
+
*/
|
|
78
138
|
toolType?: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
79
139
|
}
|
|
80
140
|
export interface ExtractionEstimateCostParams {
|
|
141
|
+
/**
|
|
142
|
+
* Identifier for the extraction tool used to run a job.
|
|
143
|
+
*/
|
|
81
144
|
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
82
145
|
/**
|
|
83
|
-
* Raw advanced
|
|
146
|
+
* Raw advanced query string appended to the estimate (tweet_search_extractor)
|
|
84
147
|
*/
|
|
85
148
|
advancedQuery?: string;
|
|
86
149
|
/**
|
|
87
|
-
* Exact phrase
|
|
150
|
+
* Exact phrase filter for search estimation
|
|
88
151
|
*/
|
|
89
152
|
exactPhrase?: string;
|
|
90
153
|
/**
|
|
91
|
-
* Words
|
|
154
|
+
* Words excluded from estimated search results
|
|
92
155
|
*/
|
|
93
156
|
excludeWords?: string;
|
|
94
157
|
searchQuery?: string;
|
|
@@ -99,9 +162,15 @@ export interface ExtractionEstimateCostParams {
|
|
|
99
162
|
targetUsername?: string;
|
|
100
163
|
}
|
|
101
164
|
export interface ExtractionExportResultsParams {
|
|
165
|
+
/**
|
|
166
|
+
* Export file format
|
|
167
|
+
*/
|
|
102
168
|
format?: 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx';
|
|
103
169
|
}
|
|
104
170
|
export interface ExtractionRunParams {
|
|
171
|
+
/**
|
|
172
|
+
* Identifier for the extraction tool used to run a job.
|
|
173
|
+
*/
|
|
105
174
|
toolType: 'article_extractor' | 'community_extractor' | 'community_moderator_explorer' | 'community_post_extractor' | 'community_search' | 'follower_explorer' | 'following_explorer' | 'list_follower_explorer' | 'list_member_extractor' | 'list_post_extractor' | 'mention_extractor' | 'people_search' | 'post_extractor' | 'quote_extractor' | 'reply_extractor' | 'repost_extractor' | 'space_explorer' | 'thread_extractor' | 'tweet_search_extractor' | 'verified_follower_explorer';
|
|
106
175
|
/**
|
|
107
176
|
* Raw advanced search query appended as-is (tweet_search_extractor)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractions.d.ts","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,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0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/extractions.js
CHANGED
|
@@ -11,24 +11,52 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
11
11
|
class Extractions extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Get extraction results
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const extraction = await client.extractions.retrieve('id');
|
|
18
|
+
* ```
|
|
14
19
|
*/
|
|
15
20
|
retrieve(id, query = {}, options) {
|
|
16
21
|
return this._client.get((0, path_1.path) `/extractions/${id}`, { query, ...options });
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
19
24
|
* List extraction jobs
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const extractions = await client.extractions.list();
|
|
29
|
+
* ```
|
|
20
30
|
*/
|
|
21
31
|
list(query = {}, options) {
|
|
22
32
|
return this._client.get('/extractions', { query, ...options });
|
|
23
33
|
}
|
|
24
34
|
/**
|
|
25
35
|
* Estimate extraction cost
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const response = await client.extractions.estimateCost({
|
|
40
|
+
* toolType: 'follower_explorer',
|
|
41
|
+
* targetUsername: 'elonmusk',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
26
44
|
*/
|
|
27
45
|
estimateCost(body, options) {
|
|
28
46
|
return this._client.post('/extractions/estimate', { body, ...options });
|
|
29
47
|
}
|
|
30
48
|
/**
|
|
31
49
|
* Export extraction results
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response = await client.extractions.exportResults(
|
|
54
|
+
* 'id',
|
|
55
|
+
* );
|
|
56
|
+
*
|
|
57
|
+
* const content = await response.blob();
|
|
58
|
+
* console.log(content);
|
|
59
|
+
* ```
|
|
32
60
|
*/
|
|
33
61
|
exportResults(id, query = {}, options) {
|
|
34
62
|
return this._client.get((0, path_1.path) `/extractions/${id}/export`, {
|
|
@@ -40,6 +68,14 @@ class Extractions extends resource_1.APIResource {
|
|
|
40
68
|
}
|
|
41
69
|
/**
|
|
42
70
|
* Run extraction
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const response = await client.extractions.run({
|
|
75
|
+
* toolType: 'follower_explorer',
|
|
76
|
+
* targetUsername: 'elonmusk',
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
43
79
|
*/
|
|
44
80
|
run(body, options) {
|
|
45
81
|
return this._client.post('/extractions', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractions.js","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"extractions.js","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;OAOG;IACH,QAAQ,CACN,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,aAAa,CACX,EAAU,EACV,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,SAAS,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AA1FD,kCA0FC"}
|
|
@@ -8,24 +8,52 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
8
8
|
export class Extractions extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Get extraction results
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const extraction = await client.extractions.retrieve('id');
|
|
15
|
+
* ```
|
|
11
16
|
*/
|
|
12
17
|
retrieve(id, query = {}, options) {
|
|
13
18
|
return this._client.get(path `/extractions/${id}`, { query, ...options });
|
|
14
19
|
}
|
|
15
20
|
/**
|
|
16
21
|
* List extraction jobs
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const extractions = await client.extractions.list();
|
|
26
|
+
* ```
|
|
17
27
|
*/
|
|
18
28
|
list(query = {}, options) {
|
|
19
29
|
return this._client.get('/extractions', { query, ...options });
|
|
20
30
|
}
|
|
21
31
|
/**
|
|
22
32
|
* Estimate extraction cost
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response = await client.extractions.estimateCost({
|
|
37
|
+
* toolType: 'follower_explorer',
|
|
38
|
+
* targetUsername: 'elonmusk',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
23
41
|
*/
|
|
24
42
|
estimateCost(body, options) {
|
|
25
43
|
return this._client.post('/extractions/estimate', { body, ...options });
|
|
26
44
|
}
|
|
27
45
|
/**
|
|
28
46
|
* Export extraction results
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response = await client.extractions.exportResults(
|
|
51
|
+
* 'id',
|
|
52
|
+
* );
|
|
53
|
+
*
|
|
54
|
+
* const content = await response.blob();
|
|
55
|
+
* console.log(content);
|
|
56
|
+
* ```
|
|
29
57
|
*/
|
|
30
58
|
exportResults(id, query = {}, options) {
|
|
31
59
|
return this._client.get(path `/extractions/${id}/export`, {
|
|
@@ -37,6 +65,14 @@ export class Extractions extends APIResource {
|
|
|
37
65
|
}
|
|
38
66
|
/**
|
|
39
67
|
* Run extraction
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const response = await client.extractions.run({
|
|
72
|
+
* toolType: 'follower_explorer',
|
|
73
|
+
* targetUsername: 'elonmusk',
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
40
76
|
*/
|
|
41
77
|
run(body, options) {
|
|
42
78
|
return this._client.post('/extractions', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractions.mjs","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"extractions.mjs","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;OAOG;IACH,QAAQ,CACN,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,aAAa,CACX,EAAU,EACV,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,SAAS,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -16,5 +16,5 @@ export { Subscribe, type SubscribeCreateResponse } from "./subscribe.mjs";
|
|
|
16
16
|
export { Support } from "./support/support.mjs";
|
|
17
17
|
export { Trends, type TrendListResponse, type TrendListParams } from "./trends.mjs";
|
|
18
18
|
export { Webhooks, type Delivery, type Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeactivateResponse, type WebhookListDeliveriesResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookUpdateParams, } from "./webhooks.mjs";
|
|
19
|
-
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x/x.mjs";
|
|
19
|
+
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x/x.mjs";
|
|
20
20
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,uB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AK,mBAAmB,GACzB;OACM,EACL,KAAK,EACL,KAAK,SAAS,EACd,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,GACvC;OACM,EACL,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE;OAC3C,EAAE,OAAO,EAAE;OACX,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EAAE,GAAG,EAAE;OACP,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACjE,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,MAAM,E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E,SAAS,EAAE,KAAK,uBAAuB,EAAE;OAC3C,EAAE,OAAO,EAAE;OACX,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B"}
|
package/resources/index.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export { Subscribe, type SubscribeCreateResponse } from "./subscribe.js";
|
|
|
16
16
|
export { Support } from "./support/support.js";
|
|
17
17
|
export { Trends, type TrendListResponse, type TrendListParams } from "./trends.js";
|
|
18
18
|
export { Webhooks, type Delivery, type Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeactivateResponse, type WebhookListDeliveriesResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookUpdateParams, } from "./webhooks.js";
|
|
19
|
-
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x/x.js";
|
|
19
|
+
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x/x.js";
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAA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,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,KAAK,EACL,KAAK,SAAS,EACd,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,GACvC;OACM,EACL,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE;OAC3C,EAAE,OAAO,EAAE;OACX,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EAAE,GAAG,EAAE;OACP,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACjE,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,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K,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE;OAC3C,EAAE,OAAO,EAAE;OACX,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,0CAOoB;AANlB,mGAAA,OAAO,OAAA;AAOT,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,oCAAgC;AAAvB,0FAAA,GAAG,OAAA;AACZ,wCAA0F;AAAjF,kGAAA,OAAO,OAAA;AAChB,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,sCAA8G;AAArG,gGAAA,MAAM,OAAA;AACf,gDAYuB;AAXrB,0GAAA,WAAW,OAAA;AAYb,kDAWwB;AAVtB,4GAAA,YAAY,OAAA;AAWd,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,4CAAsE;AAA7D,sGAAA,SAAS,OAAA;AAClB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,sCAAgF;AAAvE,gGAAA,MAAM,OAAA;AACf,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,0CAOoB;AANlB,mGAAA,OAAO,OAAA;AAOT,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,oCAAgC;AAAvB,0FAAA,GAAG,OAAA;AACZ,wCAA0F;AAAjF,kGAAA,OAAO,OAAA;AAChB,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,sCAA8G;AAArG,gGAAA,MAAM,OAAA;AACf,gDAYuB;AAXrB,0GAAA,WAAW,OAAA;AAYb,kDAWwB;AAVtB,4GAAA,YAAY,OAAA;AAWd,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,4CAAsE;AAA7D,sGAAA,SAAS,OAAA;AAClB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,sCAAgF;AAAvE,gGAAA,MAAM,OAAA;AACf,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,8BAOe;AANb,sFAAA,CAAC,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAMR;OACM,EAAE,GAAG,EAAE;OACP,EAAE,OAAO,EAAwD;OACjE,EACL,OAAO,GAIR;OACM,EACL,MAAM,GAMP;OACM,EACL,KAAK,GAUN;OACM,EAAE,MAAM,EAA8E;OACtF,EACL,WAAW,GAWZ;OACM,EACL,YAAY,GAUb;OACM,EACL,QAAQ,GAOT;OACM,EACL,KAAK,GAIN;OACM,EACL,MAAM,GASP;OACM,EAAE,SAAS,EAAgC;OAC3C,EAAE,OAAO,EAAE;OACX,EAAE,MAAM,EAAgD;OACxD,EACL,QAAQ,GAUT;OACM,EACL,CAAC,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAMR;OACM,EAAE,GAAG,EAAE;OACP,EAAE,OAAO,EAAwD;OACjE,EACL,OAAO,GAIR;OACM,EACL,MAAM,GAMP;OACM,EACL,KAAK,GAUN;OACM,EAAE,MAAM,EAA8E;OACtF,EACL,WAAW,GAWZ;OACM,EACL,YAAY,GAUb;OACM,EACL,QAAQ,GAOT;OACM,EACL,KAAK,GAIN;OACM,EACL,MAAM,GASP;OACM,EAAE,SAAS,EAAgC;OAC3C,EAAE,OAAO,EAAE;OACX,EAAE,MAAM,EAAgD;OACxD,EACL,QAAQ,GAUT;OACM,EACL,CAAC,GAMF"}
|