rettiwt-api 6.1.0 → 6.1.2
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/dist/models/data/Notification.js +12 -14
- package/dist/models/data/Notification.js.map +1 -1
- package/dist/services/public/FetcherService.js +2 -2
- package/dist/services/public/FetcherService.js.map +1 -1
- package/dist/types/raw/base/Notification.d.ts +35 -33
- package/dist/types/raw/user/Notifications.d.ts +379 -93
- package/package.json +2 -2
- package/src/models/data/Notification.ts +14 -18
- package/src/services/public/FetcherService.ts +1 -1
- package/src/types/raw/base/Notification.ts +35 -36
- package/src/types/raw/user/Notifications.ts +412 -88
|
@@ -6,141 +6,481 @@
|
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
8
|
export interface IUserNotificationsResponse {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
data: Data;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface Data {
|
|
13
|
+
viewer_v2: ViewerV2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface ViewerV2 {
|
|
17
|
+
user_results: UserResults;
|
|
11
18
|
}
|
|
12
19
|
|
|
13
|
-
interface
|
|
14
|
-
|
|
20
|
+
interface UserResults {
|
|
21
|
+
result: Result;
|
|
15
22
|
}
|
|
16
23
|
|
|
17
|
-
interface
|
|
18
|
-
|
|
24
|
+
interface Result {
|
|
25
|
+
__typename: string;
|
|
26
|
+
rest_id: string;
|
|
27
|
+
notification_timeline: NotificationTimeline;
|
|
19
28
|
}
|
|
20
29
|
|
|
21
|
-
interface
|
|
30
|
+
interface NotificationTimeline {
|
|
22
31
|
id: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
timeline: Timeline;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface Timeline {
|
|
36
|
+
instructions: Instruction[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface Instruction {
|
|
40
|
+
type: string;
|
|
41
|
+
entries?: Entry[];
|
|
42
|
+
sort_index?: string;
|
|
27
43
|
}
|
|
28
44
|
|
|
29
|
-
interface
|
|
45
|
+
interface Entry {
|
|
46
|
+
entryId: string;
|
|
47
|
+
sortIndex: string;
|
|
48
|
+
content: Content;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface Content {
|
|
52
|
+
entryType: string;
|
|
53
|
+
__typename: string;
|
|
54
|
+
value?: string;
|
|
55
|
+
cursorType?: string;
|
|
56
|
+
itemContent?: ItemContent;
|
|
57
|
+
clientEventInfo?: ClientEventInfo;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface ItemContent {
|
|
61
|
+
itemType: string;
|
|
62
|
+
__typename: string;
|
|
30
63
|
id: string;
|
|
64
|
+
notification_icon: string;
|
|
65
|
+
rich_message: RichMessage;
|
|
66
|
+
notification_url: NotificationUrl;
|
|
67
|
+
template: Template;
|
|
68
|
+
timestamp_ms: string;
|
|
31
69
|
}
|
|
32
70
|
|
|
33
|
-
interface
|
|
71
|
+
interface RichMessage {
|
|
72
|
+
rtl: boolean;
|
|
34
73
|
text: string;
|
|
35
74
|
entities: Entity[];
|
|
36
|
-
rtl: boolean;
|
|
37
75
|
}
|
|
38
76
|
|
|
39
77
|
interface Entity {
|
|
40
78
|
fromIndex: number;
|
|
41
79
|
toIndex: number;
|
|
42
|
-
|
|
80
|
+
ref: Ref;
|
|
43
81
|
}
|
|
44
82
|
|
|
45
|
-
interface
|
|
46
|
-
|
|
83
|
+
interface Ref {
|
|
84
|
+
type: string;
|
|
85
|
+
user_results: UserResults2;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface UserResults2 {
|
|
89
|
+
result: Result2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface Result2 {
|
|
93
|
+
__typename: string;
|
|
94
|
+
id: string;
|
|
95
|
+
rest_id: string;
|
|
96
|
+
affiliates_highlighted_label: AffiliatesHighlightedLabel;
|
|
97
|
+
avatar: Avatar;
|
|
98
|
+
core: Core;
|
|
99
|
+
dm_permissions: DmPermissions;
|
|
100
|
+
follow_request_sent: boolean;
|
|
101
|
+
has_graduated_access: boolean;
|
|
102
|
+
is_blue_verified: boolean;
|
|
103
|
+
legacy: Legacy;
|
|
104
|
+
location: Location;
|
|
105
|
+
media_permissions: MediaPermissions;
|
|
106
|
+
parody_commentary_fan_label: string;
|
|
107
|
+
profile_image_shape: string;
|
|
108
|
+
profile_bio: ProfileBio;
|
|
109
|
+
privacy: Privacy;
|
|
110
|
+
relationship_perspectives: RelationshipPerspectives;
|
|
111
|
+
tipjar_settings: TipjarSettings;
|
|
112
|
+
verification: Verification;
|
|
113
|
+
verified_phone_status: boolean;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface AffiliatesHighlightedLabel {}
|
|
117
|
+
|
|
118
|
+
interface Avatar {
|
|
119
|
+
image_url: string;
|
|
47
120
|
}
|
|
48
121
|
|
|
49
|
-
interface
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
122
|
+
interface Core {
|
|
123
|
+
created_at: string;
|
|
124
|
+
name: string;
|
|
125
|
+
screen_name: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
interface DmPermissions {
|
|
129
|
+
can_dm: boolean;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface Legacy {
|
|
133
|
+
default_profile: boolean;
|
|
134
|
+
default_profile_image: boolean;
|
|
135
|
+
description: string;
|
|
136
|
+
entities: Entities;
|
|
137
|
+
fast_followers_count: number;
|
|
138
|
+
favourites_count: number;
|
|
139
|
+
followers_count: number;
|
|
140
|
+
friends_count: number;
|
|
141
|
+
has_custom_timelines: boolean;
|
|
142
|
+
is_translator: boolean;
|
|
143
|
+
listed_count: number;
|
|
144
|
+
media_count: number;
|
|
145
|
+
normal_followers_count: number;
|
|
146
|
+
notifications: boolean;
|
|
147
|
+
pinned_tweet_ids_str: any[];
|
|
148
|
+
possibly_sensitive: boolean;
|
|
149
|
+
profile_interstitial_type: string;
|
|
150
|
+
statuses_count: number;
|
|
151
|
+
translator_type: string;
|
|
152
|
+
want_retweets: boolean;
|
|
153
|
+
withheld_in_countries: any[];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
interface Entities {
|
|
157
|
+
description: Description;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
interface Description {
|
|
161
|
+
urls: any[];
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
interface Location {
|
|
165
|
+
location: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
interface MediaPermissions {
|
|
169
|
+
can_media_tag: boolean;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface ProfileBio {
|
|
173
|
+
description: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface Privacy {
|
|
177
|
+
protected: boolean;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
interface RelationshipPerspectives {
|
|
181
|
+
followed_by: boolean;
|
|
182
|
+
following: boolean;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
interface TipjarSettings {}
|
|
186
|
+
|
|
187
|
+
interface Verification {
|
|
188
|
+
verified: boolean;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface NotificationUrl {
|
|
192
|
+
url: string;
|
|
193
|
+
urlType: string;
|
|
194
|
+
urtEndpointOptions?: UrtEndpointOptions;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
interface UrtEndpointOptions {
|
|
198
|
+
cacheId: string;
|
|
199
|
+
title: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
interface Template {
|
|
203
|
+
__typename: string;
|
|
204
|
+
target_objects: TargetObject[];
|
|
205
|
+
from_users: FromUser[];
|
|
53
206
|
}
|
|
54
207
|
|
|
55
208
|
interface TargetObject {
|
|
56
|
-
|
|
209
|
+
__typename: string;
|
|
210
|
+
tweet_results: TweetResults;
|
|
57
211
|
}
|
|
58
212
|
|
|
59
|
-
interface
|
|
60
|
-
|
|
213
|
+
interface TweetResults {
|
|
214
|
+
result: Result3;
|
|
61
215
|
}
|
|
62
216
|
|
|
63
|
-
interface
|
|
64
|
-
|
|
217
|
+
interface Result3 {
|
|
218
|
+
__typename: string;
|
|
219
|
+
rest_id: string;
|
|
220
|
+
core: Core2;
|
|
221
|
+
unmention_data: UnmentionData;
|
|
222
|
+
edit_control: EditControl;
|
|
223
|
+
is_translatable: boolean;
|
|
224
|
+
views: Views;
|
|
225
|
+
source: string;
|
|
226
|
+
grok_analysis_button: boolean;
|
|
227
|
+
legacy: Legacy3;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
interface Core2 {
|
|
231
|
+
user_results: UserResults3;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
interface UserResults3 {
|
|
235
|
+
result: Result4;
|
|
65
236
|
}
|
|
66
237
|
|
|
67
|
-
interface
|
|
238
|
+
interface Result4 {
|
|
239
|
+
__typename: string;
|
|
68
240
|
id: string;
|
|
241
|
+
rest_id: string;
|
|
242
|
+
affiliates_highlighted_label: AffiliatesHighlightedLabel2;
|
|
243
|
+
avatar: Avatar2;
|
|
244
|
+
core: Core3;
|
|
245
|
+
dm_permissions: DmPermissions2;
|
|
246
|
+
follow_request_sent: boolean;
|
|
247
|
+
has_graduated_access: boolean;
|
|
248
|
+
is_blue_verified: boolean;
|
|
249
|
+
legacy: Legacy2;
|
|
250
|
+
location: Location2;
|
|
251
|
+
media_permissions: MediaPermissions2;
|
|
252
|
+
parody_commentary_fan_label: string;
|
|
253
|
+
profile_image_shape: string;
|
|
254
|
+
profile_bio: ProfileBio2;
|
|
255
|
+
privacy: Privacy2;
|
|
256
|
+
relationship_perspectives: RelationshipPerspectives2;
|
|
257
|
+
tipjar_settings: TipjarSettings2;
|
|
258
|
+
verification: Verification2;
|
|
259
|
+
verified_phone_status: boolean;
|
|
69
260
|
}
|
|
70
261
|
|
|
71
|
-
interface
|
|
72
|
-
|
|
262
|
+
interface AffiliatesHighlightedLabel2 {}
|
|
263
|
+
|
|
264
|
+
interface Avatar2 {
|
|
265
|
+
image_url: string;
|
|
73
266
|
}
|
|
74
267
|
|
|
75
|
-
interface
|
|
76
|
-
|
|
77
|
-
|
|
268
|
+
interface Core3 {
|
|
269
|
+
created_at: string;
|
|
270
|
+
name: string;
|
|
271
|
+
screen_name: string;
|
|
78
272
|
}
|
|
79
273
|
|
|
80
|
-
interface
|
|
81
|
-
|
|
82
|
-
instructions: Instruction[];
|
|
274
|
+
interface DmPermissions2 {
|
|
275
|
+
can_dm: boolean;
|
|
83
276
|
}
|
|
84
277
|
|
|
85
|
-
interface
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
278
|
+
interface Legacy2 {
|
|
279
|
+
default_profile: boolean;
|
|
280
|
+
default_profile_image: boolean;
|
|
281
|
+
description: string;
|
|
282
|
+
entities: Entities2;
|
|
283
|
+
fast_followers_count: number;
|
|
284
|
+
favourites_count: number;
|
|
285
|
+
followers_count: number;
|
|
286
|
+
friends_count: number;
|
|
287
|
+
has_custom_timelines: boolean;
|
|
288
|
+
is_translator: boolean;
|
|
289
|
+
listed_count: number;
|
|
290
|
+
media_count: number;
|
|
291
|
+
needs_phone_verification: boolean;
|
|
292
|
+
normal_followers_count: number;
|
|
293
|
+
pinned_tweet_ids_str: any[];
|
|
294
|
+
possibly_sensitive: boolean;
|
|
295
|
+
profile_interstitial_type: string;
|
|
296
|
+
statuses_count: number;
|
|
297
|
+
translator_type: string;
|
|
298
|
+
want_retweets: boolean;
|
|
299
|
+
withheld_in_countries: any[];
|
|
90
300
|
}
|
|
91
301
|
|
|
92
|
-
interface
|
|
302
|
+
interface Entities2 {
|
|
303
|
+
description: Description2;
|
|
304
|
+
}
|
|
93
305
|
|
|
94
|
-
interface
|
|
95
|
-
|
|
306
|
+
interface Description2 {
|
|
307
|
+
urls: any[];
|
|
96
308
|
}
|
|
97
309
|
|
|
98
|
-
interface
|
|
99
|
-
|
|
100
|
-
sortIndex: string;
|
|
101
|
-
content: Content;
|
|
310
|
+
interface Location2 {
|
|
311
|
+
location: string;
|
|
102
312
|
}
|
|
103
313
|
|
|
104
|
-
interface
|
|
105
|
-
|
|
106
|
-
item?: Item;
|
|
314
|
+
interface MediaPermissions2 {
|
|
315
|
+
can_media_tag: boolean;
|
|
107
316
|
}
|
|
108
317
|
|
|
109
|
-
interface
|
|
110
|
-
|
|
318
|
+
interface ProfileBio2 {
|
|
319
|
+
description: string;
|
|
111
320
|
}
|
|
112
321
|
|
|
113
|
-
interface
|
|
114
|
-
|
|
115
|
-
cursorType: string;
|
|
322
|
+
interface Privacy2 {
|
|
323
|
+
protected: boolean;
|
|
116
324
|
}
|
|
117
325
|
|
|
118
|
-
interface
|
|
119
|
-
|
|
120
|
-
clientEventInfo: ClientEventInfo;
|
|
121
|
-
feedbackInfo?: FeedbackInfo;
|
|
326
|
+
interface RelationshipPerspectives2 {
|
|
327
|
+
following: boolean;
|
|
122
328
|
}
|
|
123
329
|
|
|
124
|
-
interface
|
|
125
|
-
|
|
330
|
+
interface TipjarSettings2 {}
|
|
331
|
+
|
|
332
|
+
interface Verification2 {
|
|
333
|
+
verified: boolean;
|
|
126
334
|
}
|
|
127
335
|
|
|
128
|
-
interface
|
|
336
|
+
interface UnmentionData {}
|
|
337
|
+
|
|
338
|
+
interface EditControl {
|
|
339
|
+
edit_tweet_ids: string[];
|
|
340
|
+
editable_until_msecs: string;
|
|
341
|
+
is_edit_eligible: boolean;
|
|
342
|
+
edits_remaining: string;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
interface Views {
|
|
346
|
+
count: string;
|
|
347
|
+
state: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
interface Legacy3 {
|
|
351
|
+
bookmark_count: number;
|
|
352
|
+
bookmarked: boolean;
|
|
353
|
+
created_at: string;
|
|
354
|
+
conversation_id_str: string;
|
|
355
|
+
display_text_range: number[];
|
|
356
|
+
entities: Entities3;
|
|
357
|
+
favorite_count: number;
|
|
358
|
+
favorited: boolean;
|
|
359
|
+
full_text: string;
|
|
360
|
+
is_quote_status: boolean;
|
|
361
|
+
lang: string;
|
|
362
|
+
quote_count: number;
|
|
363
|
+
reply_count: number;
|
|
364
|
+
retweet_count: number;
|
|
365
|
+
retweeted: boolean;
|
|
366
|
+
user_id_str: string;
|
|
367
|
+
id_str: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface Entities3 {
|
|
371
|
+
hashtags: any[];
|
|
372
|
+
symbols: any[];
|
|
373
|
+
timestamps: any[];
|
|
374
|
+
urls: any[];
|
|
375
|
+
user_mentions: any[];
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
interface FromUser {
|
|
379
|
+
__typename: string;
|
|
380
|
+
user_results: UserResults4;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
interface UserResults4 {
|
|
384
|
+
result: Result5;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
interface Result5 {
|
|
388
|
+
__typename: string;
|
|
129
389
|
id: string;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
390
|
+
rest_id: string;
|
|
391
|
+
affiliates_highlighted_label: AffiliatesHighlightedLabel3;
|
|
392
|
+
avatar: Avatar3;
|
|
393
|
+
core: Core4;
|
|
394
|
+
dm_permissions: DmPermissions3;
|
|
395
|
+
follow_request_sent: boolean;
|
|
396
|
+
has_graduated_access: boolean;
|
|
397
|
+
is_blue_verified: boolean;
|
|
398
|
+
legacy: Legacy4;
|
|
399
|
+
location: Location3;
|
|
400
|
+
media_permissions: MediaPermissions3;
|
|
401
|
+
parody_commentary_fan_label: string;
|
|
402
|
+
profile_image_shape: string;
|
|
403
|
+
profile_bio: ProfileBio3;
|
|
404
|
+
privacy: Privacy3;
|
|
405
|
+
relationship_perspectives: RelationshipPerspectives3;
|
|
406
|
+
tipjar_settings: TipjarSettings3;
|
|
407
|
+
verification: Verification3;
|
|
408
|
+
verified_phone_status: boolean;
|
|
133
409
|
}
|
|
134
410
|
|
|
135
|
-
interface
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
411
|
+
interface AffiliatesHighlightedLabel3 {}
|
|
412
|
+
|
|
413
|
+
interface Avatar3 {
|
|
414
|
+
image_url: string;
|
|
139
415
|
}
|
|
140
416
|
|
|
141
|
-
interface
|
|
142
|
-
|
|
143
|
-
|
|
417
|
+
interface Core4 {
|
|
418
|
+
created_at: string;
|
|
419
|
+
name: string;
|
|
420
|
+
screen_name: string;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
interface DmPermissions3 {
|
|
424
|
+
can_dm: boolean;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
interface Legacy4 {
|
|
428
|
+
default_profile: boolean;
|
|
429
|
+
default_profile_image: boolean;
|
|
430
|
+
description: string;
|
|
431
|
+
entities: Entities4;
|
|
432
|
+
fast_followers_count: number;
|
|
433
|
+
favourites_count: number;
|
|
434
|
+
followers_count: number;
|
|
435
|
+
friends_count: number;
|
|
436
|
+
has_custom_timelines: boolean;
|
|
437
|
+
is_translator: boolean;
|
|
438
|
+
listed_count: number;
|
|
439
|
+
media_count: number;
|
|
440
|
+
normal_followers_count: number;
|
|
441
|
+
notifications: boolean;
|
|
442
|
+
pinned_tweet_ids_str: any[];
|
|
443
|
+
possibly_sensitive: boolean;
|
|
444
|
+
profile_interstitial_type: string;
|
|
445
|
+
statuses_count: number;
|
|
446
|
+
translator_type: string;
|
|
447
|
+
want_retweets: boolean;
|
|
448
|
+
withheld_in_countries: any[];
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
interface Entities4 {
|
|
452
|
+
description: Description3;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
interface Description3 {
|
|
456
|
+
urls: any[];
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
interface Location3 {
|
|
460
|
+
location: string;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
interface MediaPermissions3 {
|
|
464
|
+
can_media_tag: boolean;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
interface ProfileBio3 {
|
|
468
|
+
description: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
interface Privacy3 {
|
|
472
|
+
protected: boolean;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
interface RelationshipPerspectives3 {
|
|
476
|
+
followed_by: boolean;
|
|
477
|
+
following: boolean;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
interface TipjarSettings3 {}
|
|
481
|
+
|
|
482
|
+
interface Verification3 {
|
|
483
|
+
verified: boolean;
|
|
144
484
|
}
|
|
145
485
|
|
|
146
486
|
interface ClientEventInfo {
|
|
@@ -157,19 +497,3 @@ interface NotificationDetails {
|
|
|
157
497
|
impressionId: string;
|
|
158
498
|
metadata: string;
|
|
159
499
|
}
|
|
160
|
-
|
|
161
|
-
interface FeedbackInfo {
|
|
162
|
-
feedbackKeys: string[];
|
|
163
|
-
feedbackMetadata: string;
|
|
164
|
-
clientEventInfo: ClientEventInfo2;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface ClientEventInfo2 {
|
|
168
|
-
element: string;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
interface ClearEntriesUnreadState {}
|
|
172
|
-
|
|
173
|
-
interface MarkEntriesUnreadGreaterThanSortIndex {
|
|
174
|
-
sortIndex: string;
|
|
175
|
-
}
|