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.
Files changed (171) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +1 -0
  3. package/client.d.mts +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.js +1 -1
  6. package/client.mjs +1 -1
  7. package/package.json +1 -1
  8. package/resources/account.d.mts +2 -2
  9. package/resources/account.d.ts +2 -2
  10. package/resources/compose.d.mts +186 -65
  11. package/resources/compose.d.mts.map +1 -1
  12. package/resources/compose.d.ts +186 -65
  13. package/resources/compose.d.ts.map +1 -1
  14. package/resources/compose.js +5 -2
  15. package/resources/compose.js.map +1 -1
  16. package/resources/compose.mjs +5 -2
  17. package/resources/compose.mjs.map +1 -1
  18. package/resources/credits.d.mts +1 -1
  19. package/resources/credits.d.ts +1 -1
  20. package/resources/extractions.d.mts +4 -4
  21. package/resources/extractions.d.ts +4 -4
  22. package/resources/guest-wallets.d.mts +2 -2
  23. package/resources/guest-wallets.d.ts +2 -2
  24. package/resources/monitors/keywords.d.mts +4 -4
  25. package/resources/monitors/keywords.d.ts +4 -4
  26. package/resources/monitors/keywords.js +4 -4
  27. package/resources/monitors/keywords.mjs +4 -4
  28. package/resources/monitors/monitors.d.mts +5 -4
  29. package/resources/monitors/monitors.d.mts.map +1 -1
  30. package/resources/monitors/monitors.d.ts +5 -4
  31. package/resources/monitors/monitors.d.ts.map +1 -1
  32. package/resources/monitors/monitors.js +5 -4
  33. package/resources/monitors/monitors.js.map +1 -1
  34. package/resources/monitors/monitors.mjs +5 -4
  35. package/resources/monitors/monitors.mjs.map +1 -1
  36. package/resources/shared.d.mts +24 -8
  37. package/resources/shared.d.mts.map +1 -1
  38. package/resources/shared.d.ts +24 -8
  39. package/resources/shared.d.ts.map +1 -1
  40. package/resources/support/tickets.d.mts +67 -4
  41. package/resources/support/tickets.d.mts.map +1 -1
  42. package/resources/support/tickets.d.ts +67 -4
  43. package/resources/support/tickets.d.ts.map +1 -1
  44. package/resources/support/tickets.js +22 -4
  45. package/resources/support/tickets.js.map +1 -1
  46. package/resources/support/tickets.mjs +22 -4
  47. package/resources/support/tickets.mjs.map +1 -1
  48. package/resources/x/account-connection-challenges.d.mts +1 -1
  49. package/resources/x/account-connection-challenges.d.ts +1 -1
  50. package/resources/x/account-connection-challenges.js +1 -1
  51. package/resources/x/account-connection-challenges.mjs +1 -1
  52. package/resources/x/accounts.d.mts +9 -6
  53. package/resources/x/accounts.d.mts.map +1 -1
  54. package/resources/x/accounts.d.ts +9 -6
  55. package/resources/x/accounts.d.ts.map +1 -1
  56. package/resources/x/accounts.js +4 -2
  57. package/resources/x/accounts.js.map +1 -1
  58. package/resources/x/accounts.mjs +4 -2
  59. package/resources/x/accounts.mjs.map +1 -1
  60. package/resources/x/communities/communities.d.mts +360 -10
  61. package/resources/x/communities/communities.d.mts.map +1 -1
  62. package/resources/x/communities/communities.d.ts +360 -10
  63. package/resources/x/communities/communities.d.ts.map +1 -1
  64. package/resources/x/communities/communities.js +17 -4
  65. package/resources/x/communities/communities.js.map +1 -1
  66. package/resources/x/communities/communities.mjs +17 -4
  67. package/resources/x/communities/communities.mjs.map +1 -1
  68. package/resources/x/communities/join.d.mts +361 -7
  69. package/resources/x/communities/join.d.mts.map +1 -1
  70. package/resources/x/communities/join.d.ts +361 -7
  71. package/resources/x/communities/join.d.ts.map +1 -1
  72. package/resources/x/communities/join.js +20 -5
  73. package/resources/x/communities/join.js.map +1 -1
  74. package/resources/x/communities/join.mjs +20 -5
  75. package/resources/x/communities/join.mjs.map +1 -1
  76. package/resources/x/dm.d.mts +183 -5
  77. package/resources/x/dm.d.mts.map +1 -1
  78. package/resources/x/dm.d.ts +183 -5
  79. package/resources/x/dm.d.ts.map +1 -1
  80. package/resources/x/dm.js +9 -2
  81. package/resources/x/dm.js.map +1 -1
  82. package/resources/x/dm.mjs +9 -2
  83. package/resources/x/dm.mjs.map +1 -1
  84. package/resources/x/media.d.mts +178 -10
  85. package/resources/x/media.d.mts.map +1 -1
  86. package/resources/x/media.d.ts +178 -10
  87. package/resources/x/media.d.ts.map +1 -1
  88. package/resources/x/media.js +9 -5
  89. package/resources/x/media.js.map +1 -1
  90. package/resources/x/media.mjs +9 -5
  91. package/resources/x/media.mjs.map +1 -1
  92. package/resources/x/profile.d.mts +545 -14
  93. package/resources/x/profile.d.mts.map +1 -1
  94. package/resources/x/profile.d.ts +545 -14
  95. package/resources/x/profile.d.ts.map +1 -1
  96. package/resources/x/profile.js +25 -6
  97. package/resources/x/profile.js.map +1 -1
  98. package/resources/x/profile.mjs +25 -6
  99. package/resources/x/profile.mjs.map +1 -1
  100. package/resources/x/tweets/like.d.mts +358 -6
  101. package/resources/x/tweets/like.d.mts.map +1 -1
  102. package/resources/x/tweets/like.d.ts +358 -6
  103. package/resources/x/tweets/like.d.ts.map +1 -1
  104. package/resources/x/tweets/like.js +17 -4
  105. package/resources/x/tweets/like.js.map +1 -1
  106. package/resources/x/tweets/like.mjs +17 -4
  107. package/resources/x/tweets/like.mjs.map +1 -1
  108. package/resources/x/tweets/retweet.d.mts +358 -6
  109. package/resources/x/tweets/retweet.d.mts.map +1 -1
  110. package/resources/x/tweets/retweet.d.ts +358 -6
  111. package/resources/x/tweets/retweet.d.ts.map +1 -1
  112. package/resources/x/tweets/retweet.js +17 -4
  113. package/resources/x/tweets/retweet.js.map +1 -1
  114. package/resources/x/tweets/retweet.mjs +17 -4
  115. package/resources/x/tweets/retweet.mjs.map +1 -1
  116. package/resources/x/tweets/tweets.d.mts +376 -18
  117. package/resources/x/tweets/tweets.d.mts.map +1 -1
  118. package/resources/x/tweets/tweets.d.ts +376 -18
  119. package/resources/x/tweets/tweets.d.ts.map +1 -1
  120. package/resources/x/tweets/tweets.js +25 -6
  121. package/resources/x/tweets/tweets.js.map +1 -1
  122. package/resources/x/tweets/tweets.mjs +25 -6
  123. package/resources/x/tweets/tweets.mjs.map +1 -1
  124. package/resources/x/users/follow.d.mts +361 -7
  125. package/resources/x/users/follow.d.mts.map +1 -1
  126. package/resources/x/users/follow.d.ts +361 -7
  127. package/resources/x/users/follow.d.ts.map +1 -1
  128. package/resources/x/users/follow.js +20 -5
  129. package/resources/x/users/follow.js.map +1 -1
  130. package/resources/x/users/follow.mjs +20 -5
  131. package/resources/x/users/follow.mjs.map +1 -1
  132. package/resources/x/users/users.d.mts +181 -5
  133. package/resources/x/users/users.d.mts.map +1 -1
  134. package/resources/x/users/users.d.ts +181 -5
  135. package/resources/x/users/users.d.ts.map +1 -1
  136. package/resources/x/users/users.js +9 -2
  137. package/resources/x/users/users.js.map +1 -1
  138. package/resources/x/users/users.mjs +9 -2
  139. package/resources/x/users/users.mjs.map +1 -1
  140. package/resources/x/write-actions.d.mts +155 -12
  141. package/resources/x/write-actions.d.mts.map +1 -1
  142. package/resources/x/write-actions.d.ts +155 -12
  143. package/resources/x/write-actions.d.ts.map +1 -1
  144. package/src/client.ts +1 -1
  145. package/src/resources/account.ts +2 -2
  146. package/src/resources/compose.ts +232 -65
  147. package/src/resources/credits.ts +1 -1
  148. package/src/resources/extractions.ts +4 -4
  149. package/src/resources/guest-wallets.ts +2 -2
  150. package/src/resources/monitors/keywords.ts +4 -4
  151. package/src/resources/monitors/monitors.ts +5 -4
  152. package/src/resources/shared.ts +93 -9
  153. package/src/resources/support/tickets.ts +122 -6
  154. package/src/resources/x/account-connection-challenges.ts +1 -1
  155. package/src/resources/x/accounts.ts +9 -6
  156. package/src/resources/x/communities/communities.ts +515 -12
  157. package/src/resources/x/communities/join.ts +518 -9
  158. package/src/resources/x/dm.ts +261 -6
  159. package/src/resources/x/media.ts +258 -11
  160. package/src/resources/x/profile.ts +786 -17
  161. package/src/resources/x/tweets/like.ts +515 -8
  162. package/src/resources/x/tweets/retweet.ts +523 -8
  163. package/src/resources/x/tweets/tweets.ts +529 -23
  164. package/src/resources/x/users/follow.ts +518 -9
  165. package/src/resources/x/users/users.ts +260 -6
  166. package/src/resources/x/write-actions.ts +207 -14
  167. package/src/version.ts +1 -1
  168. package/version.d.mts +1 -1
  169. package/version.d.ts +1 -1
  170. package/version.js +1 -1
  171. package/version.mjs +1 -1
@@ -6,83 +6,204 @@ import { RequestOptions } from "../internal/request-options.js";
6
6
  */
7
7
  export declare class Compose extends APIResource {
8
8
  /**
9
- * Compose, refine, or score a tweet
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 interface ComposeCreateResponse {
23
- /**
24
- * AI feedback on the draft
25
- */
26
- feedback?: string;
27
- /**
28
- * Engagement score (0-100)
29
- */
30
- score?: number;
31
- /**
32
- * Improvement suggestions
33
- */
34
- suggestions?: Array<string>;
35
- /**
36
- * Generated or refined tweet text
37
- */
38
- text?: string;
39
- [k: string]: unknown;
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 interface ComposeCreateParams {
42
- /**
43
- * Workflow step
44
- */
45
- step: 'compose' | 'refine' | 'score';
46
- /**
47
- * Extra context or URLs (refine)
48
- */
49
- additionalContext?: string;
50
- /**
51
- * Desired call to action (refine)
52
- */
53
- callToAction?: string;
54
- /**
55
- * Tweet draft text to evaluate (score)
56
- */
57
- draft?: string;
58
- /**
59
- * Optimization goal
60
- */
61
- goal?: 'engagement' | 'followers' | 'authority' | 'conversation';
62
- /**
63
- * Whether a link is attached (score)
64
- */
65
- hasLink?: boolean;
66
- /**
67
- * Whether media is attached (score)
68
- */
69
- hasMedia?: boolean;
70
- /**
71
- * Media type (refine)
72
- */
73
- mediaType?: 'photo' | 'video' | 'none';
74
- /**
75
- * Cached style username for voice matching (compose)
76
- */
77
- styleUsername?: string;
78
- /**
79
- * Desired tone (refine)
80
- */
81
- tone?: string;
82
- /**
83
- * Tweet topic (compose, refine)
84
- */
85
- topic?: string;
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;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B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AG,WAAW,GAAG,WAAW,GAAG,cAAc,CAAC;QAEjE;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,CAAC,CAAC,EAAE,MAAM,GAAG,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"}
@@ -8,14 +8,17 @@ const resource_1 = require("../core/resource.js");
8
8
  */
9
9
  class Compose extends resource_1.APIResource {
10
10
  /**
11
- * Compose, refine, or score a tweet
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
  */
@@ -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;;;;;;;;;;;OAWG;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;AAhBD,0BAgBC"}
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"}
@@ -5,14 +5,17 @@ import { APIResource } from "../core/resource.mjs";
5
5
  */
6
6
  export class Compose extends APIResource {
7
7
  /**
8
- * Compose, refine, or score a tweet
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;;;;;;;;;;;OAWG;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"}
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"}
@@ -104,7 +104,7 @@ export interface CreditRedirectTopupCheckoutParams {
104
104
  }
105
105
  export interface CreditRetrieveTopupStatusParams {
106
106
  /**
107
- * Billing session ID returned by the top-up billing flow.
107
+ * Top-up session ID to inspect.
108
108
  */
109
109
  session_id: string;
110
110
  }
@@ -104,7 +104,7 @@ export interface CreditRedirectTopupCheckoutParams {
104
104
  }
105
105
  export interface CreditRetrieveTopupStatusParams {
106
106
  /**
107
- * Billing session ID returned by the top-up billing flow.
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
- * Required for tweet_search_extractor & community_search.
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
- * Required for community_post_extractor & community_search.
272
+ * Community ID used to price community_post_extractor or community_search.
273
273
  */
274
274
  targetCommunityId?: string;
275
275
  /**
276
- * Required for list_follower_explorer, list_member_extractor &
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
- * Required for space_explorer.
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
- * Required for tweet_search_extractor & community_search.
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
- * Required for community_post_extractor & community_search.
272
+ * Community ID used to price community_post_extractor or community_search.
273
273
  */
274
274
  targetCommunityId?: string;
275
275
  /**
276
- * Required for list_follower_explorer, list_member_extractor &
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
- * Required for space_explorer.
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: Confirmed USD amount in cents.
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: Confirmed USD amount in cents.
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: Confirmed USD amount in cents.
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: Confirmed USD amount in cents.
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
- * Real-time X account monitoring
6
+ * X account monitoring with 1-second checks
7
7
  */
8
8
  export declare class Keywords extends APIResource {
9
9
  /**
10
- * Creates an instant keyword monitor. Keyword monitors are unlimited. Active
11
- * monitors check every 1 second. Events and webhook deliveries are included.
12
- * Creation requires an available usage balance.
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
- * Real-time X account monitoring
6
+ * X account monitoring with 1-second checks
7
7
  */
8
8
  export declare class Keywords extends APIResource {
9
9
  /**
10
- * Creates an instant keyword monitor. Keyword monitors are unlimited. Active
11
- * monitors check every 1 second. Events and webhook deliveries are included.
12
- * Creation requires an available usage balance.
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
- * Real-time X account monitoring
8
+ * X account monitoring with 1-second checks
9
9
  */
10
10
  class Keywords extends resource_1.APIResource {
11
11
  /**
12
- * Creates an instant keyword monitor. Keyword monitors are unlimited. Active
13
- * monitors check every 1 second. Events and webhook deliveries are included.
14
- * Creation requires an available usage balance.
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
- * Real-time X account monitoring
5
+ * X account monitoring with 1-second checks
6
6
  */
7
7
  export class Keywords extends APIResource {
8
8
  /**
9
- * Creates an instant keyword monitor. Keyword monitors are unlimited. Active
10
- * monitors check every 1 second. Events and webhook deliveries are included.
11
- * Creation requires an available usage balance.
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
- * Real-time X account monitoring
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 instant monitor. Monitors are unlimited. Active monitors check every
14
- * 1 second. Events and webhook deliveries are included. Creation requires an
15
- * available usage balance.
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,uBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI5F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI/D;;;;;;;OAOG;I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,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAEpC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,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"}
@@ -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
- * Real-time X account monitoring
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 instant monitor. Monitors are unlimited. Active monitors check every
14
- * 1 second. Events and webhook deliveries are included. Creation requires an
15
- * available usage balance.
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;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,sBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI5F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI/D;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGxF;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EA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C,EAAE,KAAK,CAAC,MAAM,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
- * Real-time X account monitoring
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 instant monitor. Monitors are unlimited. Active monitors check every
20
- * 1 second. Events and webhook deliveries are included. Creation requires an
21
- * available usage balance.
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 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