x-twitter-scraper 0.4.1 → 0.5.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 +21 -0
- package/README.md +1 -0
- package/client.d.mts +1 -1
- package/client.d.ts +1 -1
- package/client.js +1 -1
- package/client.mjs +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +2 -2
- package/resources/account.d.ts +2 -2
- package/resources/compose.d.mts +186 -65
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +186 -65
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js +5 -2
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +5 -2
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +1 -1
- package/resources/credits.d.ts +1 -1
- package/resources/extractions.d.mts +4 -4
- package/resources/extractions.d.ts +4 -4
- package/resources/guest-wallets.d.mts +2 -2
- package/resources/guest-wallets.d.ts +2 -2
- package/resources/monitors/keywords.d.mts +4 -4
- package/resources/monitors/keywords.d.ts +4 -4
- package/resources/monitors/keywords.js +4 -4
- package/resources/monitors/keywords.mjs +4 -4
- package/resources/monitors/monitors.d.mts +5 -4
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +5 -4
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +5 -4
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +5 -4
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/shared.d.mts +24 -8
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +24 -8
- package/resources/shared.d.ts.map +1 -1
- package/resources/support/tickets.d.mts +67 -4
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +67 -4
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +22 -4
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +22 -4
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/x/account-connection-challenges.d.mts +1 -1
- package/resources/x/account-connection-challenges.d.ts +1 -1
- package/resources/x/account-connection-challenges.js +1 -1
- package/resources/x/account-connection-challenges.mjs +1 -1
- package/resources/x/accounts.d.mts +9 -6
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +9 -6
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +4 -2
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +4 -2
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +360 -10
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +360 -10
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +17 -4
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +17 -4
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +361 -7
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +361 -7
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +20 -5
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +20 -5
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/dm.d.mts +183 -5
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +183 -5
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +9 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +9 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/media.d.mts +178 -10
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +178 -10
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +9 -5
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +9 -5
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +545 -14
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +545 -14
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +25 -6
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +25 -6
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +358 -6
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +358 -6
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +17 -4
- package/resources/x/tweets/like.js.map +1 -1
- package/resources/x/tweets/like.mjs +17 -4
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts +358 -6
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +358 -6
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +17 -4
- package/resources/x/tweets/retweet.js.map +1 -1
- package/resources/x/tweets/retweet.mjs +17 -4
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +376 -18
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +376 -18
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +25 -6
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +25 -6
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +361 -7
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +361 -7
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +20 -5
- package/resources/x/users/follow.js.map +1 -1
- package/resources/x/users/follow.mjs +20 -5
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/users.d.mts +181 -5
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +181 -5
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +9 -2
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +9 -2
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +155 -12
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +155 -12
- package/resources/x/write-actions.d.ts.map +1 -1
- package/src/client.ts +1 -1
- package/src/resources/account.ts +2 -2
- package/src/resources/compose.ts +232 -65
- package/src/resources/credits.ts +1 -1
- package/src/resources/extractions.ts +4 -4
- package/src/resources/guest-wallets.ts +2 -2
- package/src/resources/monitors/keywords.ts +4 -4
- package/src/resources/monitors/monitors.ts +5 -4
- package/src/resources/shared.ts +93 -9
- package/src/resources/support/tickets.ts +122 -6
- package/src/resources/x/account-connection-challenges.ts +1 -1
- package/src/resources/x/accounts.ts +9 -6
- package/src/resources/x/communities/communities.ts +515 -12
- package/src/resources/x/communities/join.ts +518 -9
- package/src/resources/x/dm.ts +261 -6
- package/src/resources/x/media.ts +258 -11
- package/src/resources/x/profile.ts +786 -17
- package/src/resources/x/tweets/like.ts +515 -8
- package/src/resources/x/tweets/retweet.ts +523 -8
- package/src/resources/x/tweets/tweets.ts +529 -23
- package/src/resources/x/users/follow.ts +518 -9
- package/src/resources/x/users/users.ts +260 -6
- package/src/resources/x/write-actions.ts +207 -14
- 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
package/resources/compose.d.ts
CHANGED
|
@@ -6,83 +6,204 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Compose extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Run one step of Xquik's three-step writing workflow. Compose returns questions
|
|
10
|
+
* and editorial rules. Refine returns goal-specific guidance. Score applies
|
|
11
|
+
* deterministic text checks. It does not predict reach or expose X ranking
|
|
12
|
+
* weights.
|
|
10
13
|
*
|
|
11
14
|
* @example
|
|
12
15
|
* ```ts
|
|
13
16
|
* const compose = await client.compose.create({
|
|
14
17
|
* step: 'compose',
|
|
18
|
+
* topic: 'PostgreSQL query planning',
|
|
15
19
|
* goal: 'engagement',
|
|
16
|
-
* topic: 'AI trends in 2025',
|
|
17
20
|
* });
|
|
18
21
|
* ```
|
|
19
22
|
*/
|
|
20
23
|
create(body: ComposeCreateParams, options?: RequestOptions): APIPromise<ComposeCreateResponse>;
|
|
21
24
|
}
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
export type ComposeCreateResponse = ComposeCreateResponse.ComposePrepareResult | ComposeCreateResponse.ComposeRefineResult | ComposeCreateResponse.ComposeScoreResult;
|
|
26
|
+
export declare namespace ComposeCreateResponse {
|
|
27
|
+
interface ComposePrepareResult {
|
|
28
|
+
/**
|
|
29
|
+
* Xquik editorial heuristics, ordered for the goal.
|
|
30
|
+
*/
|
|
31
|
+
contentRules: Array<ComposePrepareResult.ContentRule>;
|
|
32
|
+
/**
|
|
33
|
+
* Published engagement signal names. Production multipliers are not published.
|
|
34
|
+
*/
|
|
35
|
+
engagementMultipliers: Array<ComposePrepareResult.EngagementMultiplier>;
|
|
36
|
+
/**
|
|
37
|
+
* Publication limit for timing and decay claims.
|
|
38
|
+
*/
|
|
39
|
+
engagementVelocity: string;
|
|
40
|
+
followUpQuestions: Array<string>;
|
|
41
|
+
/**
|
|
42
|
+
* X post intent seeded with the topic.
|
|
43
|
+
*/
|
|
44
|
+
intentUrl: string;
|
|
45
|
+
nextStep: string;
|
|
46
|
+
/**
|
|
47
|
+
* Published signal names with unpublished weights as null.
|
|
48
|
+
*/
|
|
49
|
+
scorerWeights: Array<ComposePrepareResult.ScorerWeight>;
|
|
50
|
+
/**
|
|
51
|
+
* Signal source and evidence limits.
|
|
52
|
+
*/
|
|
53
|
+
source: string;
|
|
54
|
+
/**
|
|
55
|
+
* Negative engagement predictions in the public model.
|
|
56
|
+
*/
|
|
57
|
+
topPenalties: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Style analyses saved to the account.
|
|
60
|
+
*/
|
|
61
|
+
savedStyles?: Array<ComposePrepareResult.SavedStyle>;
|
|
62
|
+
/**
|
|
63
|
+
* Next action when no cached style is available.
|
|
64
|
+
*/
|
|
65
|
+
styleNote?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Cached examples for the requested style username.
|
|
68
|
+
*/
|
|
69
|
+
styleTweets?: Array<string>;
|
|
70
|
+
}
|
|
71
|
+
namespace ComposePrepareResult {
|
|
72
|
+
interface ContentRule {
|
|
73
|
+
rule: string;
|
|
74
|
+
}
|
|
75
|
+
interface EngagementMultiplier {
|
|
76
|
+
/**
|
|
77
|
+
* Human-readable published signal name.
|
|
78
|
+
*/
|
|
79
|
+
action: string;
|
|
80
|
+
multiplier: 'Production weight not published by X';
|
|
81
|
+
}
|
|
82
|
+
interface ScorerWeight {
|
|
83
|
+
/**
|
|
84
|
+
* Signal direction and publication limit.
|
|
85
|
+
*/
|
|
86
|
+
context: string;
|
|
87
|
+
/**
|
|
88
|
+
* Signal name from X's public ranking repository.
|
|
89
|
+
*/
|
|
90
|
+
signal: string;
|
|
91
|
+
/**
|
|
92
|
+
* X does not publish the production weight.
|
|
93
|
+
*/
|
|
94
|
+
weight: null;
|
|
95
|
+
}
|
|
96
|
+
interface SavedStyle {
|
|
97
|
+
tweetCount: number;
|
|
98
|
+
username: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
interface ComposeRefineResult {
|
|
102
|
+
/**
|
|
103
|
+
* Goal, tone, media, and editorial guidance.
|
|
104
|
+
*/
|
|
105
|
+
compositionGuidance: Array<string>;
|
|
106
|
+
examplePatterns: Array<ComposeRefineResult.ExamplePattern>;
|
|
107
|
+
/**
|
|
108
|
+
* X post intent seeded with the topic.
|
|
109
|
+
*/
|
|
110
|
+
intentUrl: string;
|
|
111
|
+
nextStep: string;
|
|
112
|
+
}
|
|
113
|
+
namespace ComposeRefineResult {
|
|
114
|
+
interface ExamplePattern {
|
|
115
|
+
description: string;
|
|
116
|
+
pattern: string;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
interface ComposeScoreResult {
|
|
120
|
+
/**
|
|
121
|
+
* Deterministic editorial checks. Not a reach prediction.
|
|
122
|
+
*/
|
|
123
|
+
checklist: Array<ComposeScoreResult.Checklist>;
|
|
124
|
+
nextStep: string;
|
|
125
|
+
passed: boolean;
|
|
126
|
+
passedCount: number;
|
|
127
|
+
topSuggestion: string;
|
|
128
|
+
totalChecks: 9;
|
|
129
|
+
/**
|
|
130
|
+
* Present only when every check passes.
|
|
131
|
+
*/
|
|
132
|
+
intentUrl?: string;
|
|
133
|
+
}
|
|
134
|
+
namespace ComposeScoreResult {
|
|
135
|
+
interface Checklist {
|
|
136
|
+
factor: string;
|
|
137
|
+
passed: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Present only when the check fails.
|
|
140
|
+
*/
|
|
141
|
+
suggestion?: string;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
40
144
|
}
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
145
|
+
export type ComposeCreateParams = ComposeCreateParams.ComposePrepareRequest | ComposeCreateParams.ComposeRefineRequest | ComposeCreateParams.ComposeScoreRequest;
|
|
146
|
+
export declare namespace ComposeCreateParams {
|
|
147
|
+
interface ComposePrepareRequest {
|
|
148
|
+
step: 'compose';
|
|
149
|
+
/**
|
|
150
|
+
* Subject for the post.
|
|
151
|
+
*/
|
|
152
|
+
topic: string;
|
|
153
|
+
/**
|
|
154
|
+
* Editorial goal used to order the rules and questions.
|
|
155
|
+
*/
|
|
156
|
+
goal?: 'engagement' | 'followers' | 'authority' | 'conversation';
|
|
157
|
+
/**
|
|
158
|
+
* Username from a style analysis saved to this account.
|
|
159
|
+
*/
|
|
160
|
+
styleUsername?: string;
|
|
161
|
+
[k: string]: unknown;
|
|
162
|
+
}
|
|
163
|
+
interface ComposeRefineRequest {
|
|
164
|
+
/**
|
|
165
|
+
* Editorial goal for the guidance.
|
|
166
|
+
*/
|
|
167
|
+
goal: 'engagement' | 'followers' | 'authority' | 'conversation';
|
|
168
|
+
step: 'refine';
|
|
169
|
+
/**
|
|
170
|
+
* Requested writing tone.
|
|
171
|
+
*/
|
|
172
|
+
tone: string;
|
|
173
|
+
/**
|
|
174
|
+
* Subject for the post.
|
|
175
|
+
*/
|
|
176
|
+
topic: string;
|
|
177
|
+
/**
|
|
178
|
+
* Audience, constraints, sources, or other writing context.
|
|
179
|
+
*/
|
|
180
|
+
additionalContext?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Specific action the draft should request.
|
|
183
|
+
*/
|
|
184
|
+
callToAction?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Planned media type.
|
|
187
|
+
*/
|
|
188
|
+
mediaType?: 'photo' | 'video' | 'none';
|
|
189
|
+
[k: string]: unknown;
|
|
190
|
+
}
|
|
191
|
+
interface ComposeScoreRequest {
|
|
192
|
+
/**
|
|
193
|
+
* Full post text for deterministic editorial checks.
|
|
194
|
+
*/
|
|
195
|
+
draft: string;
|
|
196
|
+
step: 'score';
|
|
197
|
+
/**
|
|
198
|
+
* True when a separate link card is attached.
|
|
199
|
+
*/
|
|
200
|
+
hasLink?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated Ignored. Remove this field. Use hasLink for a separate link card.
|
|
203
|
+
*/
|
|
204
|
+
hasMedia?: boolean;
|
|
205
|
+
[k: string]: unknown;
|
|
206
|
+
}
|
|
86
207
|
}
|
|
87
208
|
export declare namespace Compose {
|
|
88
209
|
export { type ComposeCreateResponse as ComposeCreateResponse, type ComposeCreateParams as ComposeCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,MAAM,qBAAqB,GAC7B,qBAAqB,CAAC,oBAAoB,GAC1C,qBAAqB,CAAC,mBAAmB,GACzC,qBAA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G,OAAO,CAAC;KACtB;IAED,UAAiB,oBAAoB;QACnC;;WAEG;QACH,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,cAAc,CAAC;QAEhE,IAAI,EAAE,QAAQ,CAAC;QAEf;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;QAEvC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;IAED,UAAiB,mBAAmB;QAClC;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/compose.js
CHANGED
|
@@ -8,14 +8,17 @@ const resource_1 = require("../core/resource.js");
|
|
|
8
8
|
*/
|
|
9
9
|
class Compose extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Run one step of Xquik's three-step writing workflow. Compose returns questions
|
|
12
|
+
* and editorial rules. Refine returns goal-specific guidance. Score applies
|
|
13
|
+
* deterministic text checks. It does not predict reach or expose X ranking
|
|
14
|
+
* weights.
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
14
17
|
* ```ts
|
|
15
18
|
* const compose = await client.compose.create({
|
|
16
19
|
* step: 'compose',
|
|
20
|
+
* topic: 'PostgreSQL query planning',
|
|
17
21
|
* goal: 'engagement',
|
|
18
|
-
* topic: 'AI trends in 2025',
|
|
19
22
|
* });
|
|
20
23
|
* ```
|
|
21
24
|
*/
|
package/resources/compose.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AAnBD,0BAmBC"}
|
package/resources/compose.mjs
CHANGED
|
@@ -5,14 +5,17 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
5
5
|
*/
|
|
6
6
|
export class Compose extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Run one step of Xquik's three-step writing workflow. Compose returns questions
|
|
9
|
+
* and editorial rules. Refine returns goal-specific guidance. Score applies
|
|
10
|
+
* deterministic text checks. It does not predict reach or expose X ranking
|
|
11
|
+
* weights.
|
|
9
12
|
*
|
|
10
13
|
* @example
|
|
11
14
|
* ```ts
|
|
12
15
|
* const compose = await client.compose.create({
|
|
13
16
|
* step: 'compose',
|
|
17
|
+
* topic: 'PostgreSQL query planning',
|
|
14
18
|
* goal: 'engagement',
|
|
15
|
-
* topic: 'AI trends in 2025',
|
|
16
19
|
* });
|
|
17
20
|
* ```
|
|
18
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.mjs","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"compose.mjs","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
package/resources/credits.d.mts
CHANGED
|
@@ -104,7 +104,7 @@ export interface CreditRedirectTopupCheckoutParams {
|
|
|
104
104
|
}
|
|
105
105
|
export interface CreditRetrieveTopupStatusParams {
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Top-up session ID to inspect.
|
|
108
108
|
*/
|
|
109
109
|
session_id: string;
|
|
110
110
|
}
|
package/resources/credits.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export interface CreditRedirectTopupCheckoutParams {
|
|
|
104
104
|
}
|
|
105
105
|
export interface CreditRetrieveTopupStatusParams {
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Top-up session ID to inspect.
|
|
108
108
|
*/
|
|
109
109
|
session_id: string;
|
|
110
110
|
}
|
|
@@ -261,7 +261,7 @@ export interface ExtractionEstimateCostParams {
|
|
|
261
261
|
*/
|
|
262
262
|
retweetsOfTweetId?: string;
|
|
263
263
|
/**
|
|
264
|
-
*
|
|
264
|
+
* Query used to price tweet_search_extractor or community_search.
|
|
265
265
|
*/
|
|
266
266
|
searchQuery?: string;
|
|
267
267
|
/**
|
|
@@ -269,16 +269,16 @@ export interface ExtractionEstimateCostParams {
|
|
|
269
269
|
*/
|
|
270
270
|
sinceDate?: string;
|
|
271
271
|
/**
|
|
272
|
-
*
|
|
272
|
+
* Community ID used to price community_post_extractor or community_search.
|
|
273
273
|
*/
|
|
274
274
|
targetCommunityId?: string;
|
|
275
275
|
/**
|
|
276
|
-
*
|
|
276
|
+
* List ID used to price list_follower_explorer, list_member_extractor, or
|
|
277
277
|
* list_post_extractor.
|
|
278
278
|
*/
|
|
279
279
|
targetListId?: string;
|
|
280
280
|
/**
|
|
281
|
-
*
|
|
281
|
+
* Space ID used to price space_explorer.
|
|
282
282
|
*/
|
|
283
283
|
targetSpaceId?: string;
|
|
284
284
|
targetTweetId?: string;
|
|
@@ -261,7 +261,7 @@ export interface ExtractionEstimateCostParams {
|
|
|
261
261
|
*/
|
|
262
262
|
retweetsOfTweetId?: string;
|
|
263
263
|
/**
|
|
264
|
-
*
|
|
264
|
+
* Query used to price tweet_search_extractor or community_search.
|
|
265
265
|
*/
|
|
266
266
|
searchQuery?: string;
|
|
267
267
|
/**
|
|
@@ -269,16 +269,16 @@ export interface ExtractionEstimateCostParams {
|
|
|
269
269
|
*/
|
|
270
270
|
sinceDate?: string;
|
|
271
271
|
/**
|
|
272
|
-
*
|
|
272
|
+
* Community ID used to price community_post_extractor or community_search.
|
|
273
273
|
*/
|
|
274
274
|
targetCommunityId?: string;
|
|
275
275
|
/**
|
|
276
|
-
*
|
|
276
|
+
* List ID used to price list_follower_explorer, list_member_extractor, or
|
|
277
277
|
* list_post_extractor.
|
|
278
278
|
*/
|
|
279
279
|
targetListId?: string;
|
|
280
280
|
/**
|
|
281
|
-
*
|
|
281
|
+
* Space ID used to price space_explorer.
|
|
282
282
|
*/
|
|
283
283
|
targetSpaceId?: string;
|
|
284
284
|
targetTweetId?: string;
|
|
@@ -209,7 +209,7 @@ export declare namespace GuestWalletTopupResponse {
|
|
|
209
209
|
}
|
|
210
210
|
export interface GuestWalletCreateParams {
|
|
211
211
|
/**
|
|
212
|
-
* Body param:
|
|
212
|
+
* Body param: USD cents accepted for this checkout.
|
|
213
213
|
*/
|
|
214
214
|
amount_minor: number;
|
|
215
215
|
/**
|
|
@@ -225,7 +225,7 @@ export interface GuestWalletCreateParams {
|
|
|
225
225
|
}
|
|
226
226
|
export interface GuestWalletTopupParams {
|
|
227
227
|
/**
|
|
228
|
-
* Body param:
|
|
228
|
+
* Body param: USD cents accepted for this checkout.
|
|
229
229
|
*/
|
|
230
230
|
amount_minor: number;
|
|
231
231
|
/**
|
|
@@ -209,7 +209,7 @@ export declare namespace GuestWalletTopupResponse {
|
|
|
209
209
|
}
|
|
210
210
|
export interface GuestWalletCreateParams {
|
|
211
211
|
/**
|
|
212
|
-
* Body param:
|
|
212
|
+
* Body param: USD cents accepted for this checkout.
|
|
213
213
|
*/
|
|
214
214
|
amount_minor: number;
|
|
215
215
|
/**
|
|
@@ -225,7 +225,7 @@ export interface GuestWalletCreateParams {
|
|
|
225
225
|
}
|
|
226
226
|
export interface GuestWalletTopupParams {
|
|
227
227
|
/**
|
|
228
|
-
* Body param:
|
|
228
|
+
* Body param: USD cents accepted for this checkout.
|
|
229
229
|
*/
|
|
230
230
|
amount_minor: number;
|
|
231
231
|
/**
|
|
@@ -3,13 +3,13 @@ import * as Shared from "../shared.mjs";
|
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* X account monitoring with 1-second checks
|
|
7
7
|
*/
|
|
8
8
|
export declare class Keywords extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Creates
|
|
11
|
-
*
|
|
12
|
-
* Creation requires
|
|
10
|
+
* Creates a keyword monitor. Keyword monitors are unlimited. Active monitors check
|
|
11
|
+
* every 1 second and cost 21 credits per hour. Events and webhook deliveries are
|
|
12
|
+
* included. Creation requires available credits for the first hourly charge.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -3,13 +3,13 @@ import * as Shared from "../shared.js";
|
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.js";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* X account monitoring with 1-second checks
|
|
7
7
|
*/
|
|
8
8
|
export declare class Keywords extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Creates
|
|
11
|
-
*
|
|
12
|
-
* Creation requires
|
|
10
|
+
* Creates a keyword monitor. Keyword monitors are unlimited. Active monitors check
|
|
11
|
+
* every 1 second and cost 21 credits per hour. Events and webhook deliveries are
|
|
12
|
+
* included. Creation requires available credits for the first hourly charge.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -5,13 +5,13 @@ exports.Keywords = void 0;
|
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* X account monitoring with 1-second checks
|
|
9
9
|
*/
|
|
10
10
|
class Keywords extends resource_1.APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Creates
|
|
13
|
-
*
|
|
14
|
-
* Creation requires
|
|
12
|
+
* Creates a keyword monitor. Keyword monitors are unlimited. Active monitors check
|
|
13
|
+
* every 1 second and cost 21 credits per hour. Events and webhook deliveries are
|
|
14
|
+
* included. Creation requires available credits for the first hourly charge.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* X account monitoring with 1-second checks
|
|
6
6
|
*/
|
|
7
7
|
export class Keywords extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Creates
|
|
10
|
-
*
|
|
11
|
-
* Creation requires
|
|
9
|
+
* Creates a keyword monitor. Keyword monitors are unlimited. Active monitors check
|
|
10
|
+
* every 1 second and cost 21 credits per hour. Events and webhook deliveries are
|
|
11
|
+
* included. Creation requires available credits for the first hourly charge.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
@@ -5,14 +5,15 @@ import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse,
|
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* X account monitoring with 1-second checks
|
|
9
9
|
*/
|
|
10
10
|
export declare class Monitors extends APIResource {
|
|
11
11
|
keywords: KeywordsAPI.Keywords;
|
|
12
12
|
/**
|
|
13
|
-
* Creates an
|
|
14
|
-
* 1 second. Events and webhook deliveries are
|
|
15
|
-
* available
|
|
13
|
+
* Creates an account monitor. Monitors are unlimited. Active monitors check every
|
|
14
|
+
* 1 second and cost 21 credits per hour. Events and webhook deliveries are
|
|
15
|
+
* included. Creation requires available credits for the first hourly charge and
|
|
16
|
+
* username lookup.
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.d.mts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,uB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qB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -5,14 +5,15 @@ import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse,
|
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* X account monitoring with 1-second checks
|
|
9
9
|
*/
|
|
10
10
|
export declare class Monitors extends APIResource {
|
|
11
11
|
keywords: KeywordsAPI.Keywords;
|
|
12
12
|
/**
|
|
13
|
-
* Creates an
|
|
14
|
-
* 1 second. Events and webhook deliveries are
|
|
15
|
-
* available
|
|
13
|
+
* Creates an account monitor. Monitors are unlimited. Active monitors check every
|
|
14
|
+
* 1 second and cost 21 credits per hour. Events and webhook deliveries are
|
|
15
|
+
* included. Creation requires available credits for the first hourly charge and
|
|
16
|
+
* username lookup.
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB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CAAC,SAAS,CAAC,CAAC;IAErC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -8,7 +8,7 @@ const KeywordsAPI = tslib_1.__importStar(require("./keywords.js"));
|
|
|
8
8
|
const keywords_1 = require("./keywords.js");
|
|
9
9
|
const path_1 = require("../../internal/utils/path.js");
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* X account monitoring with 1-second checks
|
|
12
12
|
*/
|
|
13
13
|
class Monitors extends resource_1.APIResource {
|
|
14
14
|
constructor() {
|
|
@@ -16,9 +16,10 @@ class Monitors extends resource_1.APIResource {
|
|
|
16
16
|
this.keywords = new KeywordsAPI.Keywords(this._client);
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Creates an
|
|
20
|
-
* 1 second. Events and webhook deliveries are
|
|
21
|
-
* available
|
|
19
|
+
* Creates an account monitor. Monitors are unlimited. Active monitors check every
|
|
20
|
+
* 1 second and cost 21 credits per hour. Events and webhook deliveries are
|
|
21
|
+
* included. Creation requires available credits for the first hourly charge and
|
|
22
|
+
* username lookup.
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.js","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,mEAA0C;AAC1C,4CASoB;AAGpB,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"monitors.js","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,mEAA0C;AAC1C,4CASoB;AAGpB,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsE1E,CAAC;IApEC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAA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