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.
- package/CHANGELOG.md +44 -5
- package/README.md +1 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/detect-platform.d.mts +3 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts +3 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/events.d.mts +50 -11
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +50 -11
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +2 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js +3 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs +1 -0
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +10 -96
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +10 -96
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/monitors.d.mts +6 -2
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +6 -2
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +4 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +4 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +344 -0
- package/resources/monitors/posts.d.mts.map +1 -0
- package/resources/monitors/posts.d.ts +344 -0
- package/resources/monitors/posts.d.ts.map +1 -0
- package/resources/monitors/posts.js +94 -0
- package/resources/monitors/posts.js.map +1 -0
- package/resources/monitors/posts.mjs +90 -0
- package/resources/monitors/posts.mjs.map +1 -0
- package/resources/shared.d.mts +577 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +577 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +12 -20
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +12 -20
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/webhooks.d.mts +5 -4
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +5 -4
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/accounts.d.mts +14 -4
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +14 -4
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +6 -4
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +6 -4
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +3 -131
- package/resources/x/broadcasts.d.mts.map +1 -1
- package/resources/x/broadcasts.d.ts +3 -131
- package/resources/x/broadcasts.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +92 -1
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +92 -1
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +14 -0
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +14 -0
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +1 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +1 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/community-notes.d.mts +122 -510
- package/resources/x/community-notes.d.mts.map +1 -1
- package/resources/x/community-notes.d.ts +122 -510
- package/resources/x/community-notes.d.ts.map +1 -1
- package/resources/x/community-notes.js.map +1 -1
- package/resources/x/community-notes.mjs.map +1 -1
- package/resources/x/index.d.mts +7 -6
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +7 -6
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +3 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +1 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +144 -291
- package/resources/x/jobs.d.mts.map +1 -1
- package/resources/x/jobs.d.ts +144 -291
- package/resources/x/jobs.d.ts.map +1 -1
- package/resources/x/jobs.js.map +1 -1
- package/resources/x/jobs.mjs.map +1 -1
- package/resources/x/lists.d.mts +21 -419
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +21 -419
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/spaces.d.mts +213 -693
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts +213 -693
- package/resources/x/spaces.d.ts.map +1 -1
- package/resources/x/spaces.js.map +1 -1
- package/resources/x/spaces.mjs.map +1 -1
- package/resources/x/sports.d.mts +1512 -0
- package/resources/x/sports.d.mts.map +1 -0
- package/resources/x/sports.d.ts +1512 -0
- package/resources/x/sports.d.ts.map +1 -0
- package/resources/x/sports.js +91 -0
- package/resources/x/sports.js.map +1 -0
- package/resources/x/sports.mjs +87 -0
- package/resources/x/sports.mjs.map +1 -0
- package/resources/x/tweets/tweets.d.mts +11 -13
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +11 -13
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/users/users.d.mts +29 -585
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +29 -585
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/x.d.mts +55 -118
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +55 -118
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -0
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -0
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
- package/src/client.ts +8 -0
- package/src/internal/detect-platform.ts +2 -2
- package/src/resources/events.ts +72 -10
- package/src/resources/index.ts +1 -0
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +10 -118
- package/src/resources/monitors/monitors.ts +46 -0
- package/src/resources/monitors/posts.ts +463 -0
- package/src/resources/shared.ts +773 -200
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +14 -21
- package/src/resources/webhooks.ts +5 -4
- package/src/resources/x/accounts.ts +19 -4
- package/src/resources/x/broadcasts.ts +3 -159
- package/src/resources/x/communities/communities.ts +113 -0
- package/src/resources/x/communities/index.ts +3 -0
- package/src/resources/x/community-notes.ts +137 -582
- package/src/resources/x/index.ts +70 -0
- package/src/resources/x/jobs.ts +160 -334
- package/src/resources/x/lists.ts +21 -493
- package/src/resources/x/spaces.ts +227 -817
- package/src/resources/x/sports.ts +1877 -0
- package/src/resources/x/tweets/tweets.ts +15 -15
- package/src/resources/x/users/users.ts +29 -693
- package/src/resources/x/x.ts +191 -128
- 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/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<
|
|
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<
|
|
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
|
-
*
|
|
80
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
176
|
-
|
|
177
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Whether the contributor writes notes through X's API.
|
|
97
|
+
*/
|
|
98
|
+
isApiContributor?: boolean;
|
|
178
99
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Whether X marks the contributor as a top writer.
|
|
102
|
+
*/
|
|
103
|
+
isTopWriter?: boolean;
|
|
183
104
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
105
|
+
/**
|
|
106
|
+
* How many notes a contributor wrote, by X's current rating.
|
|
107
|
+
*/
|
|
108
|
+
notesCount?: CommunityNotesContributor.NotesCount;
|
|
188
109
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
-
*
|
|
122
|
+
* Notes that need more ratings.
|
|
196
123
|
*/
|
|
197
|
-
|
|
124
|
+
awaitingMoreRatings?: number;
|
|
198
125
|
|
|
199
126
|
/**
|
|
200
|
-
*
|
|
127
|
+
* Notes X rates helpful now.
|
|
201
128
|
*/
|
|
202
|
-
|
|
129
|
+
currentlyRatedHelpful?: number;
|
|
203
130
|
|
|
204
131
|
/**
|
|
205
|
-
*
|
|
132
|
+
* Notes X rates not helpful now.
|
|
206
133
|
*/
|
|
207
|
-
|
|
134
|
+
currentlyRatedNotHelpful?: number;
|
|
208
135
|
|
|
209
136
|
/**
|
|
210
|
-
*
|
|
137
|
+
* When X last counted the notes.
|
|
211
138
|
*/
|
|
212
|
-
|
|
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
|
-
*
|
|
216
|
-
* CurrentlyRatedNotHelpful. x.com shows only helpful notes under posts.
|
|
147
|
+
* Ratings on notes that need more ratings.
|
|
217
148
|
*/
|
|
218
|
-
|
|
149
|
+
awaitingMoreRatings?: number;
|
|
219
150
|
|
|
220
151
|
/**
|
|
221
|
-
*
|
|
152
|
+
* Ratings made after X rated the note.
|
|
222
153
|
*/
|
|
223
|
-
|
|
154
|
+
ratedAfterDecision?: number;
|
|
224
155
|
|
|
225
156
|
/**
|
|
226
|
-
*
|
|
157
|
+
* Ratings that matched the rating X gave the note.
|
|
227
158
|
*/
|
|
228
|
-
|
|
159
|
+
successful?: CommunityNotesRatingOutcome;
|
|
229
160
|
|
|
230
161
|
/**
|
|
231
|
-
*
|
|
162
|
+
* Ratings that went against the rating X gave the note.
|
|
232
163
|
*/
|
|
233
|
-
|
|
164
|
+
unsuccessful?: CommunityNotesRatingOutcome;
|
|
234
165
|
|
|
235
166
|
/**
|
|
236
|
-
* X
|
|
167
|
+
* When X last counted the ratings.
|
|
237
168
|
*/
|
|
238
|
-
|
|
169
|
+
updatedAt?: string;
|
|
239
170
|
}
|
|
171
|
+
}
|
|
240
172
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}
|
|
427
|
-
}
|
|
179
|
+
/**
|
|
180
|
+
* Ratings that called a note not helpful.
|
|
181
|
+
*/
|
|
182
|
+
notHelpfulCount?: number;
|
|
428
183
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
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
|
|
194
|
+
export interface PaginatedCommunityNotes {
|
|
446
195
|
has_next_page: boolean;
|
|
447
196
|
|
|
448
197
|
next_cursor: string;
|
|
449
198
|
|
|
450
|
-
notes: Array<
|
|
199
|
+
notes: Array<PaginatedCommunityNotes.Note>;
|
|
451
200
|
}
|
|
452
201
|
|
|
453
|
-
export namespace
|
|
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?:
|
|
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
|
|
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
|
|
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
|
-
|
|
827
|
-
*/
|
|
828
|
-
deletedNotesCount?: number;
|
|
423
|
+
export namespace Note {
|
|
424
|
+
export type Contributor = CommunityNotesAPI.CommunityNotesContributor;
|
|
829
425
|
|
|
830
|
-
|
|
831
|
-
|
|
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
|
-
|
|
842
|
-
*/
|
|
843
|
-
notesCount?: Contributor.NotesCount;
|
|
431
|
+
export namespace RatingsCount {
|
|
432
|
+
export type Successful = CommunityNotesAPI.CommunityNotesRatingOutcome;
|
|
844
433
|
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
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
|
-
|
|
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
|
-
|
|
863
|
-
*/
|
|
864
|
-
currentlyRatedHelpful?: number;
|
|
450
|
+
export namespace CommunityNoteListContributorNotesResponse {
|
|
451
|
+
export type Note = CommunityNotesAPI.PaginatedCommunityNotes.Note;
|
|
865
452
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
*/
|
|
869
|
-
currentlyRatedNotHelpful?: number;
|
|
453
|
+
export namespace Note {
|
|
454
|
+
export type Contributor = CommunityNotesAPI.CommunityNotesContributor;
|
|
870
455
|
|
|
871
|
-
|
|
872
|
-
|
|
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
|
-
|
|
888
|
-
*/
|
|
889
|
-
ratedAfterDecision?: number;
|
|
461
|
+
export namespace RatingsCount {
|
|
462
|
+
export type Successful = CommunityNotesAPI.CommunityNotesRatingOutcome;
|
|
890
463
|
|
|
891
|
-
|
|
892
|
-
|
|
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
|
-
|
|
903
|
-
*/
|
|
904
|
-
updatedAt?: string;
|
|
470
|
+
export namespace Entity {
|
|
471
|
+
export type Ref = CommunityNotesAPI.PaginatedCommunityNotes.Note.Entity.Ref;
|
|
905
472
|
}
|
|
906
473
|
|
|
907
|
-
export
|
|
908
|
-
|
|
909
|
-
|
|
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
|
-
|
|
919
|
-
|
|
920
|
-
|
|
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
|
-
|
|
924
|
-
*/
|
|
925
|
-
total?: number;
|
|
926
|
-
}
|
|
487
|
+
export namespace CommunityNoteRetrieveContributorResponse {
|
|
488
|
+
export type Contributor = CommunityNotesAPI.CommunityNotesContributor;
|
|
927
489
|
|
|
928
|
-
|
|
929
|
-
|
|
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
|
-
|
|
944
|
-
|
|
945
|
-
|
|
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,
|