x-twitter-scraper 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/CHANGELOG.md +44 -5
  2. package/README.md +1 -0
  3. package/client.d.mts +8 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +8 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/internal/detect-platform.d.mts +3 -1
  10. package/internal/detect-platform.d.mts.map +1 -1
  11. package/internal/detect-platform.d.ts +3 -1
  12. package/internal/detect-platform.d.ts.map +1 -1
  13. package/internal/detect-platform.js +1 -1
  14. package/internal/detect-platform.js.map +1 -1
  15. package/internal/detect-platform.mjs +1 -1
  16. package/internal/detect-platform.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/resources/events.d.mts +50 -11
  19. package/resources/events.d.mts.map +1 -1
  20. package/resources/events.d.ts +50 -11
  21. package/resources/events.d.ts.map +1 -1
  22. package/resources/events.js.map +1 -1
  23. package/resources/events.mjs.map +1 -1
  24. package/resources/index.d.mts +1 -1
  25. package/resources/index.d.mts.map +1 -1
  26. package/resources/index.d.ts +1 -1
  27. package/resources/index.d.ts.map +1 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs.map +1 -1
  30. package/resources/monitors/index.d.mts +2 -1
  31. package/resources/monitors/index.d.mts.map +1 -1
  32. package/resources/monitors/index.d.ts +2 -1
  33. package/resources/monitors/index.d.ts.map +1 -1
  34. package/resources/monitors/index.js +3 -1
  35. package/resources/monitors/index.js.map +1 -1
  36. package/resources/monitors/index.mjs +1 -0
  37. package/resources/monitors/index.mjs.map +1 -1
  38. package/resources/monitors/keywords.d.mts +10 -96
  39. package/resources/monitors/keywords.d.mts.map +1 -1
  40. package/resources/monitors/keywords.d.ts +10 -96
  41. package/resources/monitors/keywords.d.ts.map +1 -1
  42. package/resources/monitors/monitors.d.mts +6 -2
  43. package/resources/monitors/monitors.d.mts.map +1 -1
  44. package/resources/monitors/monitors.d.ts +6 -2
  45. package/resources/monitors/monitors.d.ts.map +1 -1
  46. package/resources/monitors/monitors.js +4 -0
  47. package/resources/monitors/monitors.js.map +1 -1
  48. package/resources/monitors/monitors.mjs +4 -0
  49. package/resources/monitors/monitors.mjs.map +1 -1
  50. package/resources/monitors/posts.d.mts +344 -0
  51. package/resources/monitors/posts.d.mts.map +1 -0
  52. package/resources/monitors/posts.d.ts +344 -0
  53. package/resources/monitors/posts.d.ts.map +1 -0
  54. package/resources/monitors/posts.js +94 -0
  55. package/resources/monitors/posts.js.map +1 -0
  56. package/resources/monitors/posts.mjs +90 -0
  57. package/resources/monitors/posts.mjs.map +1 -0
  58. package/resources/shared.d.mts +577 -2
  59. package/resources/shared.d.mts.map +1 -1
  60. package/resources/shared.d.ts +577 -2
  61. package/resources/shared.d.ts.map +1 -1
  62. package/resources/support/index.d.mts +1 -1
  63. package/resources/support/index.d.mts.map +1 -1
  64. package/resources/support/index.d.ts +1 -1
  65. package/resources/support/index.d.ts.map +1 -1
  66. package/resources/support/index.js.map +1 -1
  67. package/resources/support/index.mjs.map +1 -1
  68. package/resources/support/support.d.mts +2 -2
  69. package/resources/support/support.d.mts.map +1 -1
  70. package/resources/support/support.d.ts +2 -2
  71. package/resources/support/support.d.ts.map +1 -1
  72. package/resources/support/support.js.map +1 -1
  73. package/resources/support/support.mjs.map +1 -1
  74. package/resources/support/tickets.d.mts +12 -20
  75. package/resources/support/tickets.d.mts.map +1 -1
  76. package/resources/support/tickets.d.ts +12 -20
  77. package/resources/support/tickets.d.ts.map +1 -1
  78. package/resources/webhooks.d.mts +5 -4
  79. package/resources/webhooks.d.mts.map +1 -1
  80. package/resources/webhooks.d.ts +5 -4
  81. package/resources/webhooks.d.ts.map +1 -1
  82. package/resources/webhooks.js.map +1 -1
  83. package/resources/webhooks.mjs.map +1 -1
  84. package/resources/x/accounts.d.mts +14 -4
  85. package/resources/x/accounts.d.mts.map +1 -1
  86. package/resources/x/accounts.d.ts +14 -4
  87. package/resources/x/accounts.d.ts.map +1 -1
  88. package/resources/x/accounts.js +6 -4
  89. package/resources/x/accounts.js.map +1 -1
  90. package/resources/x/accounts.mjs +6 -4
  91. package/resources/x/accounts.mjs.map +1 -1
  92. package/resources/x/broadcasts.d.mts +3 -131
  93. package/resources/x/broadcasts.d.mts.map +1 -1
  94. package/resources/x/broadcasts.d.ts +3 -131
  95. package/resources/x/broadcasts.d.ts.map +1 -1
  96. package/resources/x/communities/communities.d.mts +92 -1
  97. package/resources/x/communities/communities.d.mts.map +1 -1
  98. package/resources/x/communities/communities.d.ts +92 -1
  99. package/resources/x/communities/communities.d.ts.map +1 -1
  100. package/resources/x/communities/communities.js +14 -0
  101. package/resources/x/communities/communities.js.map +1 -1
  102. package/resources/x/communities/communities.mjs +14 -0
  103. package/resources/x/communities/communities.mjs.map +1 -1
  104. package/resources/x/communities/index.d.mts +1 -1
  105. package/resources/x/communities/index.d.mts.map +1 -1
  106. package/resources/x/communities/index.d.ts +1 -1
  107. package/resources/x/communities/index.d.ts.map +1 -1
  108. package/resources/x/communities/index.js.map +1 -1
  109. package/resources/x/communities/index.mjs.map +1 -1
  110. package/resources/x/community-notes.d.mts +122 -510
  111. package/resources/x/community-notes.d.mts.map +1 -1
  112. package/resources/x/community-notes.d.ts +122 -510
  113. package/resources/x/community-notes.d.ts.map +1 -1
  114. package/resources/x/community-notes.js.map +1 -1
  115. package/resources/x/community-notes.mjs.map +1 -1
  116. package/resources/x/index.d.mts +7 -6
  117. package/resources/x/index.d.mts.map +1 -1
  118. package/resources/x/index.d.ts +7 -6
  119. package/resources/x/index.d.ts.map +1 -1
  120. package/resources/x/index.js +3 -1
  121. package/resources/x/index.js.map +1 -1
  122. package/resources/x/index.mjs +1 -0
  123. package/resources/x/index.mjs.map +1 -1
  124. package/resources/x/jobs.d.mts +144 -291
  125. package/resources/x/jobs.d.mts.map +1 -1
  126. package/resources/x/jobs.d.ts +144 -291
  127. package/resources/x/jobs.d.ts.map +1 -1
  128. package/resources/x/jobs.js.map +1 -1
  129. package/resources/x/jobs.mjs.map +1 -1
  130. package/resources/x/lists.d.mts +21 -419
  131. package/resources/x/lists.d.mts.map +1 -1
  132. package/resources/x/lists.d.ts +21 -419
  133. package/resources/x/lists.d.ts.map +1 -1
  134. package/resources/x/spaces.d.mts +213 -693
  135. package/resources/x/spaces.d.mts.map +1 -1
  136. package/resources/x/spaces.d.ts +213 -693
  137. package/resources/x/spaces.d.ts.map +1 -1
  138. package/resources/x/spaces.js.map +1 -1
  139. package/resources/x/spaces.mjs.map +1 -1
  140. package/resources/x/sports.d.mts +1512 -0
  141. package/resources/x/sports.d.mts.map +1 -0
  142. package/resources/x/sports.d.ts +1512 -0
  143. package/resources/x/sports.d.ts.map +1 -0
  144. package/resources/x/sports.js +91 -0
  145. package/resources/x/sports.js.map +1 -0
  146. package/resources/x/sports.mjs +87 -0
  147. package/resources/x/sports.mjs.map +1 -0
  148. package/resources/x/tweets/tweets.d.mts +11 -13
  149. package/resources/x/tweets/tweets.d.mts.map +1 -1
  150. package/resources/x/tweets/tweets.d.ts +11 -13
  151. package/resources/x/tweets/tweets.d.ts.map +1 -1
  152. package/resources/x/users/users.d.mts +29 -585
  153. package/resources/x/users/users.d.mts.map +1 -1
  154. package/resources/x/users/users.d.ts +29 -585
  155. package/resources/x/users/users.d.ts.map +1 -1
  156. package/resources/x/users/users.js.map +1 -1
  157. package/resources/x/users/users.mjs.map +1 -1
  158. package/resources/x/x.d.mts +55 -118
  159. package/resources/x/x.d.mts.map +1 -1
  160. package/resources/x/x.d.ts +55 -118
  161. package/resources/x/x.d.ts.map +1 -1
  162. package/resources/x/x.js +4 -0
  163. package/resources/x/x.js.map +1 -1
  164. package/resources/x/x.mjs +4 -0
  165. package/resources/x/x.mjs.map +1 -1
  166. package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
  167. package/src/client.ts +8 -0
  168. package/src/internal/detect-platform.ts +2 -2
  169. package/src/resources/events.ts +72 -10
  170. package/src/resources/index.ts +1 -0
  171. package/src/resources/monitors/index.ts +21 -0
  172. package/src/resources/monitors/keywords.ts +10 -118
  173. package/src/resources/monitors/monitors.ts +46 -0
  174. package/src/resources/monitors/posts.ts +463 -0
  175. package/src/resources/shared.ts +773 -200
  176. package/src/resources/support/index.ts +1 -0
  177. package/src/resources/support/support.ts +2 -0
  178. package/src/resources/support/tickets.ts +14 -21
  179. package/src/resources/webhooks.ts +5 -4
  180. package/src/resources/x/accounts.ts +19 -4
  181. package/src/resources/x/broadcasts.ts +3 -159
  182. package/src/resources/x/communities/communities.ts +113 -0
  183. package/src/resources/x/communities/index.ts +3 -0
  184. package/src/resources/x/community-notes.ts +137 -582
  185. package/src/resources/x/index.ts +70 -0
  186. package/src/resources/x/jobs.ts +160 -334
  187. package/src/resources/x/lists.ts +21 -493
  188. package/src/resources/x/spaces.ts +227 -817
  189. package/src/resources/x/sports.ts +1877 -0
  190. package/src/resources/x/tweets/tweets.ts +15 -15
  191. package/src/resources/x/users/users.ts +29 -693
  192. package/src/resources/x/x.ts +191 -128
  193. package/src/version.ts +1 -1
  194. package/version.d.mts +1 -1
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. package/version.mjs +1 -1
  198. package/src/lib/.keep +0 -2
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { APIResource } from '../../core/resource';
6
6
  import * as Shared from '../shared';
7
+ import * as CommunityNotesAPI from './community-notes';
7
8
  import { APIPromise } from '../../core/api-promise';
8
9
  import { RequestOptions } from '../../internal/request-options';
9
10
  import { path } from '../../internal/utils/path';
@@ -29,7 +30,7 @@ export class CommunityNotes extends APIResource {
29
30
  alias: string,
30
31
  query: CommunityNoteListContributorDeletedNotesParams | null | undefined = {},
31
32
  options?: RequestOptions,
32
- ): APIPromise<CommunityNoteListContributorDeletedNotesResponse> {
33
+ ): APIPromise<PaginatedCommunityNotes> {
33
34
  return this._client.get(path`/x/community-notes/contributors/${alias}/deleted-notes`, {
34
35
  query,
35
36
  ...options,
@@ -51,7 +52,7 @@ export class CommunityNotes extends APIResource {
51
52
  alias: string,
52
53
  query: CommunityNoteListContributorNotesParams | null | undefined = {},
53
54
  options?: RequestOptions,
54
- ): APIPromise<CommunityNoteListContributorNotesResponse> {
55
+ ): APIPromise<PaginatedCommunityNotes> {
55
56
  return this._client.get(path`/x/community-notes/contributors/${alias}/notes`, { query, ...options });
56
57
  }
57
58
 
@@ -76,381 +77,129 @@ export class CommunityNotes extends APIResource {
76
77
  }
77
78
 
78
79
  /**
79
- * 1 page of Community Notes. Follow next_cursor while the response reports more
80
- * pages.
80
+ * A Community Notes contributor. X names contributors by an alias, never by their
81
+ * X account. A field X leaves out is left out. Beside a note, X sends its writer
82
+ * with only some of the counts.
81
83
  */
82
- export interface CommunityNoteListContributorDeletedNotesResponse {
83
- has_next_page: boolean;
84
-
85
- next_cursor: string;
86
-
87
- notes: Array<CommunityNoteListContributorDeletedNotesResponse.Note>;
88
- }
89
-
90
- export namespace CommunityNoteListContributorDeletedNotesResponse {
84
+ export interface CommunityNotesContributor {
91
85
  /**
92
- * A Community Note as its writer's page lists it, with the post it is on. A deleted
93
- * note has no text, classification or post. A field X leaves out is left out.
86
+ * The alias X gives the contributor.
94
87
  */
95
- export interface Note {
96
- /**
97
- * Note ID.
98
- */
99
- id: string;
100
-
101
- /**
102
- * Whether the note scores above X's bar for a possible helpful rating.
103
- */
104
- abovePcrhThreshold?: boolean;
105
-
106
- /**
107
- * Whether the rating is under appeal.
108
- */
109
- appealStatus?: string;
110
-
111
- /**
112
- * What the writer says of the post, such as MisinformedOrPotentiallyMisleading or
113
- * NotMisleading.
114
- */
115
- classification?: string;
116
-
117
- /**
118
- * The note's writer, with the counts X sends beside a note. GET
119
- * /x/community-notes/contributors/{alias} serves every count.
120
- */
121
- contributor?: Note.Contributor;
122
-
123
- /**
124
- * When the contributor wrote the note.
125
- */
126
- createdAt?: string;
127
-
128
- /**
129
- * The X scoring model that set the rating.
130
- */
131
- decidedBy?: string;
132
-
133
- /**
134
- * Whether the writer deleted the note.
135
- */
136
- deleted?: boolean;
137
-
138
- /**
139
- * The link a link note is on, as X shows it.
140
- */
141
- displayUrl?: string;
142
-
143
- /**
144
- * Links, tags & accounts inside the text, by character range.
145
- */
146
- entities?: Array<Note.Entity>;
147
-
148
- /**
149
- * Whether X marks that scoring model as fully visible.
150
- */
151
- fullyVisibleModel?: boolean;
152
-
153
- /**
154
- * Why raters called the note helpful.
155
- */
156
- helpfulTags?: Array<string>;
157
-
158
- /**
159
- * Views of the note, when X shares them.
160
- */
161
- impressionCount?: number;
88
+ alias: string;
162
89
 
163
- /**
164
- * Whether the note came through X's API.
165
- */
166
- isApiAuthor?: boolean;
167
-
168
- /**
169
- * Whether the note is about the post's media. X can show such a note on other
170
- * posts.
171
- */
172
- isMediaNote?: boolean;
90
+ /**
91
+ * Notes the contributor deleted.
92
+ */
93
+ deletedNotesCount?: number;
173
94
 
174
- /**
175
- * Whether X offers a translation of the note.
176
- */
177
- isTranslatable?: boolean;
95
+ /**
96
+ * Whether the contributor writes notes through X's API.
97
+ */
98
+ isApiContributor?: boolean;
178
99
 
179
- /**
180
- * Whether the note is on a link.
181
- */
182
- isUrlNote?: boolean;
100
+ /**
101
+ * Whether X marks the contributor as a top writer.
102
+ */
103
+ isTopWriter?: boolean;
183
104
 
184
- /**
185
- * Language code of the note.
186
- */
187
- language?: string;
105
+ /**
106
+ * How many notes a contributor wrote, by X's current rating.
107
+ */
108
+ notesCount?: CommunityNotesContributor.NotesCount;
188
109
 
189
- /**
190
- * Other posts X matched a media note to.
191
- */
192
- mediaNoteMatchCount?: number;
110
+ /**
111
+ * How a contributor's ratings of other notes went.
112
+ */
113
+ ratingsCount?: CommunityNotesContributor.RatingsCount;
114
+ }
193
115
 
116
+ export namespace CommunityNotesContributor {
117
+ /**
118
+ * How many notes a contributor wrote, by X's current rating.
119
+ */
120
+ export interface NotesCount {
194
121
  /**
195
- * Why raters called the note not helpful.
122
+ * Notes that need more ratings.
196
123
  */
197
- notHelpfulTags?: Array<string>;
124
+ awaitingMoreRatings?: number;
198
125
 
199
126
  /**
200
- * The post the note is on. Null when X no longer shows it.
127
+ * Notes X rates helpful now.
201
128
  */
202
- post?: Shared.SearchTweet | null;
129
+ currentlyRatedHelpful?: number;
203
130
 
204
131
  /**
205
- * ID of the post the note is on.
132
+ * Notes X rates not helpful now.
206
133
  */
207
- postId?: string;
134
+ currentlyRatedNotHelpful?: number;
208
135
 
209
136
  /**
210
- * Why X shows no post, when X says.
137
+ * When X last counted the notes.
211
138
  */
212
- postUnavailable?: Note.PostUnavailable;
139
+ updatedAt?: string;
140
+ }
213
141
 
142
+ /**
143
+ * How a contributor's ratings of other notes went.
144
+ */
145
+ export interface RatingsCount {
214
146
  /**
215
- * X's current rating, such as NeedsMoreRatings, CurrentlyRatedHelpful or
216
- * CurrentlyRatedNotHelpful. x.com shows only helpful notes under posts.
147
+ * Ratings on notes that need more ratings.
217
148
  */
218
- ratingStatus?: string;
149
+ awaitingMoreRatings?: number;
219
150
 
220
151
  /**
221
- * What the note says.
152
+ * Ratings made after X rated the note.
222
153
  */
223
- text?: string;
154
+ ratedAfterDecision?: number;
224
155
 
225
156
  /**
226
- * Milliseconds from the note's creation to its helpful rating.
157
+ * Ratings that matched the rating X gave the note.
227
158
  */
228
- timeToHelpfulFromNoteMs?: number;
159
+ successful?: CommunityNotesRatingOutcome;
229
160
 
230
161
  /**
231
- * Milliseconds from the post's creation to the note's helpful rating.
162
+ * Ratings that went against the rating X gave the note.
232
163
  */
233
- timeToHelpfulFromPostMs?: number;
164
+ unsuccessful?: CommunityNotesRatingOutcome;
234
165
 
235
166
  /**
236
- * X's notice in place of a deleted note.
167
+ * When X last counted the ratings.
237
168
  */
238
- tombstone?: string;
169
+ updatedAt?: string;
239
170
  }
171
+ }
240
172
 
241
- export namespace Note {
242
- /**
243
- * The note's writer, with the counts X sends beside a note. GET
244
- * /x/community-notes/contributors/{alias} serves every count.
245
- */
246
- export interface Contributor {
247
- /**
248
- * The alias X gives the contributor.
249
- */
250
- alias: string;
251
-
252
- /**
253
- * Notes the contributor deleted.
254
- */
255
- deletedNotesCount?: number;
256
-
257
- /**
258
- * Whether the contributor writes notes through X's API.
259
- */
260
- isApiContributor?: boolean;
261
-
262
- /**
263
- * Whether X marks the contributor as a top writer.
264
- */
265
- isTopWriter?: boolean;
266
-
267
- /**
268
- * How many notes a contributor wrote, by X's current rating.
269
- */
270
- notesCount?: Contributor.NotesCount;
271
-
272
- /**
273
- * How a contributor's ratings of other notes went.
274
- */
275
- ratingsCount?: Contributor.RatingsCount;
276
- }
277
-
278
- export namespace Contributor {
279
- /**
280
- * How many notes a contributor wrote, by X's current rating.
281
- */
282
- export interface NotesCount {
283
- /**
284
- * Notes that need more ratings.
285
- */
286
- awaitingMoreRatings?: number;
287
-
288
- /**
289
- * Notes X rates helpful now.
290
- */
291
- currentlyRatedHelpful?: number;
292
-
293
- /**
294
- * Notes X rates not helpful now.
295
- */
296
- currentlyRatedNotHelpful?: number;
297
-
298
- /**
299
- * When X last counted the notes.
300
- */
301
- updatedAt?: string;
302
- }
303
-
304
- /**
305
- * How a contributor's ratings of other notes went.
306
- */
307
- export interface RatingsCount {
308
- /**
309
- * Ratings on notes that need more ratings.
310
- */
311
- awaitingMoreRatings?: number;
312
-
313
- /**
314
- * Ratings made after X rated the note.
315
- */
316
- ratedAfterDecision?: number;
317
-
318
- /**
319
- * Ratings that matched the rating X gave the note.
320
- */
321
- successful?: RatingsCount.Successful;
322
-
323
- /**
324
- * Ratings that went against the rating X gave the note.
325
- */
326
- unsuccessful?: RatingsCount.Unsuccessful;
327
-
328
- /**
329
- * When X last counted the ratings.
330
- */
331
- updatedAt?: string;
332
- }
333
-
334
- export namespace RatingsCount {
335
- /**
336
- * Ratings that matched the rating X gave the note.
337
- */
338
- export interface Successful {
339
- /**
340
- * Ratings that called a note helpful.
341
- */
342
- helpfulCount?: number;
343
-
344
- /**
345
- * Ratings that called a note not helpful.
346
- */
347
- notHelpfulCount?: number;
348
-
349
- /**
350
- * All ratings in the group, when X sends the sum.
351
- */
352
- total?: number;
353
- }
354
-
355
- /**
356
- * Ratings that went against the rating X gave the note.
357
- */
358
- export interface Unsuccessful {
359
- /**
360
- * Ratings that called a note helpful.
361
- */
362
- helpfulCount?: number;
363
-
364
- /**
365
- * Ratings that called a note not helpful.
366
- */
367
- notHelpfulCount?: number;
368
-
369
- /**
370
- * All ratings in the group, when X sends the sum.
371
- */
372
- total?: number;
373
- }
374
- }
375
- }
376
-
377
- /**
378
- * A link, tag or account inside a note's text.
379
- */
380
- export interface Entity {
381
- /**
382
- * Where it starts in the text.
383
- */
384
- fromIndex?: number;
385
-
386
- /**
387
- * What it points at.
388
- */
389
- ref?: Entity.Ref;
390
-
391
- /**
392
- * Where it ends in the text.
393
- */
394
- toIndex?: number;
395
- }
396
-
397
- export namespace Entity {
398
- /**
399
- * What it points at.
400
- */
401
- export interface Ref {
402
- /**
403
- * A mentioned account's username.
404
- */
405
- screenName?: string;
406
-
407
- /**
408
- * A hashtag's or cashtag's text.
409
- */
410
- text?: string;
411
-
412
- /**
413
- * X's kind, such as TimelineUrl.
414
- */
415
- type?: string;
416
-
417
- /**
418
- * The link.
419
- */
420
- url?: string;
173
+ export interface CommunityNotesRatingOutcome {
174
+ /**
175
+ * Ratings that called a note helpful.
176
+ */
177
+ helpfulCount?: number;
421
178
 
422
- /**
423
- * How X opens the link, such as ExternalUrl.
424
- */
425
- urlType?: string;
426
- }
427
- }
179
+ /**
180
+ * Ratings that called a note not helpful.
181
+ */
182
+ notHelpfulCount?: number;
428
183
 
429
- /**
430
- * Why X shows no post, when X says.
431
- */
432
- export interface PostUnavailable {
433
- /**
434
- * Why X shows no post, as X names it.
435
- */
436
- reason: string;
437
- }
438
- }
184
+ /**
185
+ * All ratings in the group, when X sends the sum.
186
+ */
187
+ total?: number;
439
188
  }
440
189
 
441
190
  /**
442
191
  * 1 page of Community Notes. Follow next_cursor while the response reports more
443
192
  * pages.
444
193
  */
445
- export interface CommunityNoteListContributorNotesResponse {
194
+ export interface PaginatedCommunityNotes {
446
195
  has_next_page: boolean;
447
196
 
448
197
  next_cursor: string;
449
198
 
450
- notes: Array<CommunityNoteListContributorNotesResponse.Note>;
199
+ notes: Array<PaginatedCommunityNotes.Note>;
451
200
  }
452
201
 
453
- export namespace CommunityNoteListContributorNotesResponse {
202
+ export namespace PaginatedCommunityNotes {
454
203
  /**
455
204
  * A Community Note as its writer's page lists it, with the post it is on. A deleted
456
205
  * note has no text, classification or post. A field X leaves out is left out.
@@ -481,7 +230,7 @@ export namespace CommunityNoteListContributorNotesResponse {
481
230
  * The note's writer, with the counts X sends beside a note. GET
482
231
  * /x/community-notes/contributors/{alias} serves every count.
483
232
  */
484
- contributor?: Note.Contributor;
233
+ contributor?: CommunityNotesContributor;
485
234
 
486
235
  /**
487
236
  * When the contributor wrote the note.
@@ -602,141 +351,6 @@ export namespace CommunityNoteListContributorNotesResponse {
602
351
  }
603
352
 
604
353
  export namespace Note {
605
- /**
606
- * The note's writer, with the counts X sends beside a note. GET
607
- * /x/community-notes/contributors/{alias} serves every count.
608
- */
609
- export interface Contributor {
610
- /**
611
- * The alias X gives the contributor.
612
- */
613
- alias: string;
614
-
615
- /**
616
- * Notes the contributor deleted.
617
- */
618
- deletedNotesCount?: number;
619
-
620
- /**
621
- * Whether the contributor writes notes through X's API.
622
- */
623
- isApiContributor?: boolean;
624
-
625
- /**
626
- * Whether X marks the contributor as a top writer.
627
- */
628
- isTopWriter?: boolean;
629
-
630
- /**
631
- * How many notes a contributor wrote, by X's current rating.
632
- */
633
- notesCount?: Contributor.NotesCount;
634
-
635
- /**
636
- * How a contributor's ratings of other notes went.
637
- */
638
- ratingsCount?: Contributor.RatingsCount;
639
- }
640
-
641
- export namespace Contributor {
642
- /**
643
- * How many notes a contributor wrote, by X's current rating.
644
- */
645
- export interface NotesCount {
646
- /**
647
- * Notes that need more ratings.
648
- */
649
- awaitingMoreRatings?: number;
650
-
651
- /**
652
- * Notes X rates helpful now.
653
- */
654
- currentlyRatedHelpful?: number;
655
-
656
- /**
657
- * Notes X rates not helpful now.
658
- */
659
- currentlyRatedNotHelpful?: number;
660
-
661
- /**
662
- * When X last counted the notes.
663
- */
664
- updatedAt?: string;
665
- }
666
-
667
- /**
668
- * How a contributor's ratings of other notes went.
669
- */
670
- export interface RatingsCount {
671
- /**
672
- * Ratings on notes that need more ratings.
673
- */
674
- awaitingMoreRatings?: number;
675
-
676
- /**
677
- * Ratings made after X rated the note.
678
- */
679
- ratedAfterDecision?: number;
680
-
681
- /**
682
- * Ratings that matched the rating X gave the note.
683
- */
684
- successful?: RatingsCount.Successful;
685
-
686
- /**
687
- * Ratings that went against the rating X gave the note.
688
- */
689
- unsuccessful?: RatingsCount.Unsuccessful;
690
-
691
- /**
692
- * When X last counted the ratings.
693
- */
694
- updatedAt?: string;
695
- }
696
-
697
- export namespace RatingsCount {
698
- /**
699
- * Ratings that matched the rating X gave the note.
700
- */
701
- export interface Successful {
702
- /**
703
- * Ratings that called a note helpful.
704
- */
705
- helpfulCount?: number;
706
-
707
- /**
708
- * Ratings that called a note not helpful.
709
- */
710
- notHelpfulCount?: number;
711
-
712
- /**
713
- * All ratings in the group, when X sends the sum.
714
- */
715
- total?: number;
716
- }
717
-
718
- /**
719
- * Ratings that went against the rating X gave the note.
720
- */
721
- export interface Unsuccessful {
722
- /**
723
- * Ratings that called a note helpful.
724
- */
725
- helpfulCount?: number;
726
-
727
- /**
728
- * Ratings that called a note not helpful.
729
- */
730
- notHelpfulCount?: number;
731
-
732
- /**
733
- * All ratings in the group, when X sends the sum.
734
- */
735
- total?: number;
736
- }
737
- }
738
- }
739
-
740
354
  /**
741
355
  * A link, tag or account inside a note's text.
742
356
  */
@@ -801,149 +415,87 @@ export namespace CommunityNoteListContributorNotesResponse {
801
415
  }
802
416
  }
803
417
 
804
- export interface CommunityNoteRetrieveContributorResponse {
805
- /**
806
- * A Community Notes contributor. X names contributors by an alias, never by their
807
- * X account. A field X leaves out is left out. Beside a note, X sends its writer
808
- * with only some of the counts.
809
- */
810
- contributor: CommunityNoteRetrieveContributorResponse.Contributor;
811
- }
418
+ export type CommunityNoteListContributorDeletedNotesResponse = CommunityNotesAPI.PaginatedCommunityNotes;
812
419
 
813
- export namespace CommunityNoteRetrieveContributorResponse {
814
- /**
815
- * A Community Notes contributor. X names contributors by an alias, never by their
816
- * X account. A field X leaves out is left out. Beside a note, X sends its writer
817
- * with only some of the counts.
818
- */
819
- export interface Contributor {
820
- /**
821
- * The alias X gives the contributor.
822
- */
823
- alias: string;
420
+ export namespace CommunityNoteListContributorDeletedNotesResponse {
421
+ export type Note = CommunityNotesAPI.PaginatedCommunityNotes.Note;
824
422
 
825
- /**
826
- * Notes the contributor deleted.
827
- */
828
- deletedNotesCount?: number;
423
+ export namespace Note {
424
+ export type Contributor = CommunityNotesAPI.CommunityNotesContributor;
829
425
 
830
- /**
831
- * Whether the contributor writes notes through X's API.
832
- */
833
- isApiContributor?: boolean;
426
+ export namespace Contributor {
427
+ export type NotesCount = CommunityNotesAPI.CommunityNotesContributor.NotesCount;
834
428
 
835
- /**
836
- * Whether X marks the contributor as a top writer.
837
- */
838
- isTopWriter?: boolean;
429
+ export type RatingsCount = CommunityNotesAPI.CommunityNotesContributor.RatingsCount;
839
430
 
840
- /**
841
- * How many notes a contributor wrote, by X's current rating.
842
- */
843
- notesCount?: Contributor.NotesCount;
431
+ export namespace RatingsCount {
432
+ export type Successful = CommunityNotesAPI.CommunityNotesRatingOutcome;
844
433
 
845
- /**
846
- * How a contributor's ratings of other notes went.
847
- */
848
- ratingsCount?: Contributor.RatingsCount;
434
+ export type Unsuccessful = CommunityNotesAPI.CommunityNotesRatingOutcome;
435
+ }
436
+ }
437
+
438
+ export type Entity = CommunityNotesAPI.PaginatedCommunityNotes.Note.Entity;
439
+
440
+ export namespace Entity {
441
+ export type Ref = CommunityNotesAPI.PaginatedCommunityNotes.Note.Entity.Ref;
442
+ }
443
+
444
+ export type PostUnavailable = CommunityNotesAPI.PaginatedCommunityNotes.Note.PostUnavailable;
849
445
  }
446
+ }
850
447
 
851
- export namespace Contributor {
852
- /**
853
- * How many notes a contributor wrote, by X's current rating.
854
- */
855
- export interface NotesCount {
856
- /**
857
- * Notes that need more ratings.
858
- */
859
- awaitingMoreRatings?: number;
448
+ export type CommunityNoteListContributorNotesResponse = CommunityNotesAPI.PaginatedCommunityNotes;
860
449
 
861
- /**
862
- * Notes X rates helpful now.
863
- */
864
- currentlyRatedHelpful?: number;
450
+ export namespace CommunityNoteListContributorNotesResponse {
451
+ export type Note = CommunityNotesAPI.PaginatedCommunityNotes.Note;
865
452
 
866
- /**
867
- * Notes X rates not helpful now.
868
- */
869
- currentlyRatedNotHelpful?: number;
453
+ export namespace Note {
454
+ export type Contributor = CommunityNotesAPI.CommunityNotesContributor;
870
455
 
871
- /**
872
- * When X last counted the notes.
873
- */
874
- updatedAt?: string;
875
- }
456
+ export namespace Contributor {
457
+ export type NotesCount = CommunityNotesAPI.CommunityNotesContributor.NotesCount;
876
458
 
877
- /**
878
- * How a contributor's ratings of other notes went.
879
- */
880
- export interface RatingsCount {
881
- /**
882
- * Ratings on notes that need more ratings.
883
- */
884
- awaitingMoreRatings?: number;
459
+ export type RatingsCount = CommunityNotesAPI.CommunityNotesContributor.RatingsCount;
885
460
 
886
- /**
887
- * Ratings made after X rated the note.
888
- */
889
- ratedAfterDecision?: number;
461
+ export namespace RatingsCount {
462
+ export type Successful = CommunityNotesAPI.CommunityNotesRatingOutcome;
890
463
 
891
- /**
892
- * Ratings that matched the rating X gave the note.
893
- */
894
- successful?: RatingsCount.Successful;
464
+ export type Unsuccessful = CommunityNotesAPI.CommunityNotesRatingOutcome;
465
+ }
466
+ }
895
467
 
896
- /**
897
- * Ratings that went against the rating X gave the note.
898
- */
899
- unsuccessful?: RatingsCount.Unsuccessful;
468
+ export type Entity = CommunityNotesAPI.PaginatedCommunityNotes.Note.Entity;
900
469
 
901
- /**
902
- * When X last counted the ratings.
903
- */
904
- updatedAt?: string;
470
+ export namespace Entity {
471
+ export type Ref = CommunityNotesAPI.PaginatedCommunityNotes.Note.Entity.Ref;
905
472
  }
906
473
 
907
- export namespace RatingsCount {
908
- /**
909
- * Ratings that matched the rating X gave the note.
910
- */
911
- export interface Successful {
912
- /**
913
- * Ratings that called a note helpful.
914
- */
915
- helpfulCount?: number;
474
+ export type PostUnavailable = CommunityNotesAPI.PaginatedCommunityNotes.Note.PostUnavailable;
475
+ }
476
+ }
916
477
 
917
- /**
918
- * Ratings that called a note not helpful.
919
- */
920
- notHelpfulCount?: number;
478
+ export interface CommunityNoteRetrieveContributorResponse {
479
+ /**
480
+ * A Community Notes contributor. X names contributors by an alias, never by their
481
+ * X account. A field X leaves out is left out. Beside a note, X sends its writer
482
+ * with only some of the counts.
483
+ */
484
+ contributor: CommunityNotesContributor;
485
+ }
921
486
 
922
- /**
923
- * All ratings in the group, when X sends the sum.
924
- */
925
- total?: number;
926
- }
487
+ export namespace CommunityNoteRetrieveContributorResponse {
488
+ export type Contributor = CommunityNotesAPI.CommunityNotesContributor;
927
489
 
928
- /**
929
- * Ratings that went against the rating X gave the note.
930
- */
931
- export interface Unsuccessful {
932
- /**
933
- * Ratings that called a note helpful.
934
- */
935
- helpfulCount?: number;
490
+ export namespace Contributor {
491
+ export type NotesCount = CommunityNotesAPI.CommunityNotesContributor.NotesCount;
936
492
 
937
- /**
938
- * Ratings that called a note not helpful.
939
- */
940
- notHelpfulCount?: number;
493
+ export type RatingsCount = CommunityNotesAPI.CommunityNotesContributor.RatingsCount;
941
494
 
942
- /**
943
- * All ratings in the group, when X sends the sum.
944
- */
945
- total?: number;
946
- }
495
+ export namespace RatingsCount {
496
+ export type Successful = CommunityNotesAPI.CommunityNotesRatingOutcome;
497
+
498
+ export type Unsuccessful = CommunityNotesAPI.CommunityNotesRatingOutcome;
947
499
  }
948
500
  }
949
501
  }
@@ -1030,6 +582,9 @@ export interface CommunityNoteRetrieveContributorParams {
1030
582
 
1031
583
  export declare namespace CommunityNotes {
1032
584
  export {
585
+ type CommunityNotesContributor as CommunityNotesContributor,
586
+ type CommunityNotesRatingOutcome as CommunityNotesRatingOutcome,
587
+ type PaginatedCommunityNotes as PaginatedCommunityNotes,
1033
588
  type CommunityNoteListContributorDeletedNotesResponse as CommunityNoteListContributorDeletedNotesResponse,
1034
589
  type CommunityNoteListContributorNotesResponse as CommunityNoteListContributorNotesResponse,
1035
590
  type CommunityNoteRetrieveContributorResponse as CommunityNoteRetrieveContributorResponse,