@llun/activities.schema 0.2.31 → 0.2.33
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/.yarn/install-state.gz +0 -0
- package/dist/cjs/{person.js → actor.js} +8 -5
- package/dist/cjs/index.js +1 -1
- package/dist/esm/{person.js → actor.js} +7 -4
- package/dist/esm/index.js +1 -1
- package/dist/types/actor.d.ts +370 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/like.d.ts +31 -31
- package/dist/types/mastodon/account.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/audio.d.ts +5 -5
- package/dist/types/mastodon/mediaAttachment/base.d.ts +2 -2
- package/dist/types/mastodon/mediaAttachment/gifv.d.ts +5 -5
- package/dist/types/mastodon/mediaAttachment/image.d.ts +5 -5
- package/dist/types/mastodon/mediaAttachment/index.d.ts +50 -50
- package/dist/types/mastodon/mediaAttachment/unknown.d.ts +5 -5
- package/dist/types/mastodon/mediaAttachment/video.d.ts +5 -5
- package/dist/types/mastodon/previewCard.d.ts +4 -4
- package/dist/types/mastodon/status/base.d.ts +46 -46
- package/dist/types/mastodon/status/index.d.ts +109 -109
- package/dist/types/note/attachment.d.ts +2 -2
- package/dist/types/note/baseContent.d.ts +18 -18
- package/dist/types/note/document.d.ts +2 -2
- package/dist/types/note/emoji.d.ts +2 -2
- package/dist/types/note/tag.d.ts +2 -2
- package/dist/types/note.d.ts +21 -21
- package/dist/types/question.d.ts +21 -21
- package/dist/types/undo.d.ts +41 -41
- package/package.json +3 -3
- package/src/{person.ts → actor.ts} +11 -4
- package/src/index.ts +1 -1
- package/dist/types/person.d.ts +0 -121
package/dist/types/like.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const Like: z.ZodObject<{
|
|
|
4
4
|
type: z.ZodLiteral<"Like">;
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
actor: z.ZodString;
|
|
7
|
-
object: z.ZodUnion<[z.ZodString, z.ZodObject<
|
|
7
|
+
object: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
9
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
attributedTo: z.ZodString;
|
|
@@ -93,19 +93,19 @@ export declare const Like: z.ZodObject<{
|
|
|
93
93
|
type: "Document";
|
|
94
94
|
mediaType: string;
|
|
95
95
|
url: string;
|
|
96
|
+
name?: string | null | undefined;
|
|
96
97
|
blurhash?: string | undefined;
|
|
97
98
|
width?: number | undefined;
|
|
98
99
|
height?: number | undefined;
|
|
99
|
-
name?: string | null | undefined;
|
|
100
100
|
focalPoint?: [number, number] | undefined;
|
|
101
101
|
}, {
|
|
102
102
|
type: "Document";
|
|
103
103
|
mediaType: string;
|
|
104
104
|
url: string;
|
|
105
|
+
name?: string | null | undefined;
|
|
105
106
|
blurhash?: string | undefined;
|
|
106
107
|
width?: number | undefined;
|
|
107
108
|
height?: number | undefined;
|
|
108
|
-
name?: string | null | undefined;
|
|
109
109
|
focalPoint?: [number, number] | undefined;
|
|
110
110
|
}>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
111
111
|
type: z.ZodLiteral<"PropertyValue">;
|
|
@@ -132,19 +132,19 @@ export declare const Like: z.ZodObject<{
|
|
|
132
132
|
type: "Document";
|
|
133
133
|
mediaType: string;
|
|
134
134
|
url: string;
|
|
135
|
+
name?: string | null | undefined;
|
|
135
136
|
blurhash?: string | undefined;
|
|
136
137
|
width?: number | undefined;
|
|
137
138
|
height?: number | undefined;
|
|
138
|
-
name?: string | null | undefined;
|
|
139
139
|
focalPoint?: [number, number] | undefined;
|
|
140
140
|
}, {
|
|
141
141
|
type: "Document";
|
|
142
142
|
mediaType: string;
|
|
143
143
|
url: string;
|
|
144
|
+
name?: string | null | undefined;
|
|
144
145
|
blurhash?: string | undefined;
|
|
145
146
|
width?: number | undefined;
|
|
146
147
|
height?: number | undefined;
|
|
147
|
-
name?: string | null | undefined;
|
|
148
148
|
focalPoint?: [number, number] | undefined;
|
|
149
149
|
}>]>, "many">]>>>;
|
|
150
150
|
tag: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -179,21 +179,21 @@ export declare const Like: z.ZodObject<{
|
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
type: "Emoji";
|
|
181
181
|
name: string;
|
|
182
|
-
updated: string;
|
|
183
182
|
icon: {
|
|
184
183
|
type: "Image";
|
|
185
184
|
url: string;
|
|
186
185
|
mediaType?: string | null | undefined;
|
|
187
186
|
};
|
|
187
|
+
updated: string;
|
|
188
188
|
}, {
|
|
189
189
|
type: "Emoji";
|
|
190
190
|
name: string;
|
|
191
|
-
updated: string;
|
|
192
191
|
icon: {
|
|
193
192
|
type: "Image";
|
|
194
193
|
url: string;
|
|
195
194
|
mediaType?: string | null | undefined;
|
|
196
195
|
};
|
|
196
|
+
updated: string;
|
|
197
197
|
}>, z.ZodObject<{
|
|
198
198
|
type: z.ZodLiteral<"Hashtag">;
|
|
199
199
|
href: z.ZodString;
|
|
@@ -238,21 +238,21 @@ export declare const Like: z.ZodObject<{
|
|
|
238
238
|
}, "strip", z.ZodTypeAny, {
|
|
239
239
|
type: "Emoji";
|
|
240
240
|
name: string;
|
|
241
|
-
updated: string;
|
|
242
241
|
icon: {
|
|
243
242
|
type: "Image";
|
|
244
243
|
url: string;
|
|
245
244
|
mediaType?: string | null | undefined;
|
|
246
245
|
};
|
|
246
|
+
updated: string;
|
|
247
247
|
}, {
|
|
248
248
|
type: "Emoji";
|
|
249
249
|
name: string;
|
|
250
|
-
updated: string;
|
|
251
250
|
icon: {
|
|
252
251
|
type: "Image";
|
|
253
252
|
url: string;
|
|
254
253
|
mediaType?: string | null | undefined;
|
|
255
254
|
};
|
|
255
|
+
updated: string;
|
|
256
256
|
}>, z.ZodObject<{
|
|
257
257
|
type: z.ZodLiteral<"Hashtag">;
|
|
258
258
|
href: z.ZodString;
|
|
@@ -268,9 +268,9 @@ export declare const Like: z.ZodObject<{
|
|
|
268
268
|
}>]>, "many">]>;
|
|
269
269
|
published: z.ZodString;
|
|
270
270
|
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
-
}
|
|
271
|
+
} & {
|
|
272
272
|
type: z.ZodLiteral<"Note">;
|
|
273
|
-
}
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
274
|
id: string;
|
|
275
275
|
type: "Note";
|
|
276
276
|
published: string;
|
|
@@ -280,12 +280,12 @@ export declare const Like: z.ZodObject<{
|
|
|
280
280
|
tag: {
|
|
281
281
|
type: "Emoji";
|
|
282
282
|
name: string;
|
|
283
|
-
updated: string;
|
|
284
283
|
icon: {
|
|
285
284
|
type: "Image";
|
|
286
285
|
url: string;
|
|
287
286
|
mediaType?: string | null | undefined;
|
|
288
287
|
};
|
|
288
|
+
updated: string;
|
|
289
289
|
} | {
|
|
290
290
|
type: "Mention";
|
|
291
291
|
name: string;
|
|
@@ -297,12 +297,12 @@ export declare const Like: z.ZodObject<{
|
|
|
297
297
|
} | ({
|
|
298
298
|
type: "Emoji";
|
|
299
299
|
name: string;
|
|
300
|
-
updated: string;
|
|
301
300
|
icon: {
|
|
302
301
|
type: "Image";
|
|
303
302
|
url: string;
|
|
304
303
|
mediaType?: string | null | undefined;
|
|
305
304
|
};
|
|
305
|
+
updated: string;
|
|
306
306
|
} | {
|
|
307
307
|
type: "Mention";
|
|
308
308
|
name: string;
|
|
@@ -313,9 +313,9 @@ export declare const Like: z.ZodObject<{
|
|
|
313
313
|
href: string;
|
|
314
314
|
})[];
|
|
315
315
|
url?: string | null | undefined;
|
|
316
|
+
summary?: string | null | undefined;
|
|
316
317
|
updated?: string | null | undefined;
|
|
317
318
|
inReplyTo?: string | null | undefined;
|
|
318
|
-
summary?: string | null | undefined;
|
|
319
319
|
summaryMap?: Record<string, string> | null | undefined;
|
|
320
320
|
content?: string | string[] | null | undefined;
|
|
321
321
|
contentMap?: string[] | Record<string, string> | null | undefined;
|
|
@@ -338,10 +338,10 @@ export declare const Like: z.ZodObject<{
|
|
|
338
338
|
type: "Document";
|
|
339
339
|
mediaType: string;
|
|
340
340
|
url: string;
|
|
341
|
+
name?: string | null | undefined;
|
|
341
342
|
blurhash?: string | undefined;
|
|
342
343
|
width?: number | undefined;
|
|
343
344
|
height?: number | undefined;
|
|
344
|
-
name?: string | null | undefined;
|
|
345
345
|
focalPoint?: [number, number] | undefined;
|
|
346
346
|
} | {
|
|
347
347
|
type: "PropertyValue";
|
|
@@ -351,10 +351,10 @@ export declare const Like: z.ZodObject<{
|
|
|
351
351
|
type: "Document";
|
|
352
352
|
mediaType: string;
|
|
353
353
|
url: string;
|
|
354
|
+
name?: string | null | undefined;
|
|
354
355
|
blurhash?: string | undefined;
|
|
355
356
|
width?: number | undefined;
|
|
356
357
|
height?: number | undefined;
|
|
357
|
-
name?: string | null | undefined;
|
|
358
358
|
focalPoint?: [number, number] | undefined;
|
|
359
359
|
} | {
|
|
360
360
|
type: "PropertyValue";
|
|
@@ -371,12 +371,12 @@ export declare const Like: z.ZodObject<{
|
|
|
371
371
|
tag: {
|
|
372
372
|
type: "Emoji";
|
|
373
373
|
name: string;
|
|
374
|
-
updated: string;
|
|
375
374
|
icon: {
|
|
376
375
|
type: "Image";
|
|
377
376
|
url: string;
|
|
378
377
|
mediaType?: string | null | undefined;
|
|
379
378
|
};
|
|
379
|
+
updated: string;
|
|
380
380
|
} | {
|
|
381
381
|
type: "Mention";
|
|
382
382
|
name: string;
|
|
@@ -388,12 +388,12 @@ export declare const Like: z.ZodObject<{
|
|
|
388
388
|
} | ({
|
|
389
389
|
type: "Emoji";
|
|
390
390
|
name: string;
|
|
391
|
-
updated: string;
|
|
392
391
|
icon: {
|
|
393
392
|
type: "Image";
|
|
394
393
|
url: string;
|
|
395
394
|
mediaType?: string | null | undefined;
|
|
396
395
|
};
|
|
396
|
+
updated: string;
|
|
397
397
|
} | {
|
|
398
398
|
type: "Mention";
|
|
399
399
|
name: string;
|
|
@@ -404,9 +404,9 @@ export declare const Like: z.ZodObject<{
|
|
|
404
404
|
href: string;
|
|
405
405
|
})[];
|
|
406
406
|
url?: string | null | undefined;
|
|
407
|
+
summary?: string | null | undefined;
|
|
407
408
|
updated?: string | null | undefined;
|
|
408
409
|
inReplyTo?: string | null | undefined;
|
|
409
|
-
summary?: string | null | undefined;
|
|
410
410
|
summaryMap?: Record<string, string> | null | undefined;
|
|
411
411
|
content?: string | string[] | null | undefined;
|
|
412
412
|
contentMap?: string[] | Record<string, string> | null | undefined;
|
|
@@ -429,10 +429,10 @@ export declare const Like: z.ZodObject<{
|
|
|
429
429
|
type: "Document";
|
|
430
430
|
mediaType: string;
|
|
431
431
|
url: string;
|
|
432
|
+
name?: string | null | undefined;
|
|
432
433
|
blurhash?: string | undefined;
|
|
433
434
|
width?: number | undefined;
|
|
434
435
|
height?: number | undefined;
|
|
435
|
-
name?: string | null | undefined;
|
|
436
436
|
focalPoint?: [number, number] | undefined;
|
|
437
437
|
} | {
|
|
438
438
|
type: "PropertyValue";
|
|
@@ -442,10 +442,10 @@ export declare const Like: z.ZodObject<{
|
|
|
442
442
|
type: "Document";
|
|
443
443
|
mediaType: string;
|
|
444
444
|
url: string;
|
|
445
|
+
name?: string | null | undefined;
|
|
445
446
|
blurhash?: string | undefined;
|
|
446
447
|
width?: number | undefined;
|
|
447
448
|
height?: number | undefined;
|
|
448
|
-
name?: string | null | undefined;
|
|
449
449
|
focalPoint?: [number, number] | undefined;
|
|
450
450
|
} | {
|
|
451
451
|
type: "PropertyValue";
|
|
@@ -464,12 +464,12 @@ export declare const Like: z.ZodObject<{
|
|
|
464
464
|
tag: {
|
|
465
465
|
type: "Emoji";
|
|
466
466
|
name: string;
|
|
467
|
-
updated: string;
|
|
468
467
|
icon: {
|
|
469
468
|
type: "Image";
|
|
470
469
|
url: string;
|
|
471
470
|
mediaType?: string | null | undefined;
|
|
472
471
|
};
|
|
472
|
+
updated: string;
|
|
473
473
|
} | {
|
|
474
474
|
type: "Mention";
|
|
475
475
|
name: string;
|
|
@@ -481,12 +481,12 @@ export declare const Like: z.ZodObject<{
|
|
|
481
481
|
} | ({
|
|
482
482
|
type: "Emoji";
|
|
483
483
|
name: string;
|
|
484
|
-
updated: string;
|
|
485
484
|
icon: {
|
|
486
485
|
type: "Image";
|
|
487
486
|
url: string;
|
|
488
487
|
mediaType?: string | null | undefined;
|
|
489
488
|
};
|
|
489
|
+
updated: string;
|
|
490
490
|
} | {
|
|
491
491
|
type: "Mention";
|
|
492
492
|
name: string;
|
|
@@ -497,9 +497,9 @@ export declare const Like: z.ZodObject<{
|
|
|
497
497
|
href: string;
|
|
498
498
|
})[];
|
|
499
499
|
url?: string | null | undefined;
|
|
500
|
+
summary?: string | null | undefined;
|
|
500
501
|
updated?: string | null | undefined;
|
|
501
502
|
inReplyTo?: string | null | undefined;
|
|
502
|
-
summary?: string | null | undefined;
|
|
503
503
|
summaryMap?: Record<string, string> | null | undefined;
|
|
504
504
|
content?: string | string[] | null | undefined;
|
|
505
505
|
contentMap?: string[] | Record<string, string> | null | undefined;
|
|
@@ -522,10 +522,10 @@ export declare const Like: z.ZodObject<{
|
|
|
522
522
|
type: "Document";
|
|
523
523
|
mediaType: string;
|
|
524
524
|
url: string;
|
|
525
|
+
name?: string | null | undefined;
|
|
525
526
|
blurhash?: string | undefined;
|
|
526
527
|
width?: number | undefined;
|
|
527
528
|
height?: number | undefined;
|
|
528
|
-
name?: string | null | undefined;
|
|
529
529
|
focalPoint?: [number, number] | undefined;
|
|
530
530
|
} | {
|
|
531
531
|
type: "PropertyValue";
|
|
@@ -535,10 +535,10 @@ export declare const Like: z.ZodObject<{
|
|
|
535
535
|
type: "Document";
|
|
536
536
|
mediaType: string;
|
|
537
537
|
url: string;
|
|
538
|
+
name?: string | null | undefined;
|
|
538
539
|
blurhash?: string | undefined;
|
|
539
540
|
width?: number | undefined;
|
|
540
541
|
height?: number | undefined;
|
|
541
|
-
name?: string | null | undefined;
|
|
542
542
|
focalPoint?: [number, number] | undefined;
|
|
543
543
|
} | {
|
|
544
544
|
type: "PropertyValue";
|
|
@@ -560,12 +560,12 @@ export declare const Like: z.ZodObject<{
|
|
|
560
560
|
tag: {
|
|
561
561
|
type: "Emoji";
|
|
562
562
|
name: string;
|
|
563
|
-
updated: string;
|
|
564
563
|
icon: {
|
|
565
564
|
type: "Image";
|
|
566
565
|
url: string;
|
|
567
566
|
mediaType?: string | null | undefined;
|
|
568
567
|
};
|
|
568
|
+
updated: string;
|
|
569
569
|
} | {
|
|
570
570
|
type: "Mention";
|
|
571
571
|
name: string;
|
|
@@ -577,12 +577,12 @@ export declare const Like: z.ZodObject<{
|
|
|
577
577
|
} | ({
|
|
578
578
|
type: "Emoji";
|
|
579
579
|
name: string;
|
|
580
|
-
updated: string;
|
|
581
580
|
icon: {
|
|
582
581
|
type: "Image";
|
|
583
582
|
url: string;
|
|
584
583
|
mediaType?: string | null | undefined;
|
|
585
584
|
};
|
|
585
|
+
updated: string;
|
|
586
586
|
} | {
|
|
587
587
|
type: "Mention";
|
|
588
588
|
name: string;
|
|
@@ -593,9 +593,9 @@ export declare const Like: z.ZodObject<{
|
|
|
593
593
|
href: string;
|
|
594
594
|
})[];
|
|
595
595
|
url?: string | null | undefined;
|
|
596
|
+
summary?: string | null | undefined;
|
|
596
597
|
updated?: string | null | undefined;
|
|
597
598
|
inReplyTo?: string | null | undefined;
|
|
598
|
-
summary?: string | null | undefined;
|
|
599
599
|
summaryMap?: Record<string, string> | null | undefined;
|
|
600
600
|
content?: string | string[] | null | undefined;
|
|
601
601
|
contentMap?: string[] | Record<string, string> | null | undefined;
|
|
@@ -618,10 +618,10 @@ export declare const Like: z.ZodObject<{
|
|
|
618
618
|
type: "Document";
|
|
619
619
|
mediaType: string;
|
|
620
620
|
url: string;
|
|
621
|
+
name?: string | null | undefined;
|
|
621
622
|
blurhash?: string | undefined;
|
|
622
623
|
width?: number | undefined;
|
|
623
624
|
height?: number | undefined;
|
|
624
|
-
name?: string | null | undefined;
|
|
625
625
|
focalPoint?: [number, number] | undefined;
|
|
626
626
|
} | {
|
|
627
627
|
type: "PropertyValue";
|
|
@@ -631,10 +631,10 @@ export declare const Like: z.ZodObject<{
|
|
|
631
631
|
type: "Document";
|
|
632
632
|
mediaType: string;
|
|
633
633
|
url: string;
|
|
634
|
+
name?: string | null | undefined;
|
|
634
635
|
blurhash?: string | undefined;
|
|
635
636
|
width?: number | undefined;
|
|
636
637
|
height?: number | undefined;
|
|
637
|
-
name?: string | null | undefined;
|
|
638
638
|
focalPoint?: [number, number] | undefined;
|
|
639
639
|
} | {
|
|
640
640
|
type: "PropertyValue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Account: z.ZodObject<
|
|
2
|
+
export declare const Account: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
username: z.ZodString;
|
|
5
5
|
acct: z.ZodString;
|
|
@@ -96,7 +96,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
96
96
|
statuses_count: z.ZodNumber;
|
|
97
97
|
followers_count: z.ZodNumber;
|
|
98
98
|
following_count: z.ZodNumber;
|
|
99
|
-
}
|
|
99
|
+
} & {
|
|
100
100
|
moved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
101
101
|
id: z.ZodString;
|
|
102
102
|
username: z.ZodString;
|
|
@@ -289,7 +289,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
289
289
|
suspended?: boolean | undefined;
|
|
290
290
|
limited?: boolean | undefined;
|
|
291
291
|
}>>>;
|
|
292
|
-
}
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
293
|
id: string;
|
|
294
294
|
url: string;
|
|
295
295
|
note: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Audio: z.ZodObject<
|
|
2
|
+
export declare const Audio: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
url: z.ZodString;
|
|
5
5
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
6
6
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
7
7
|
description: z.ZodNullable<z.ZodString>;
|
|
8
8
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}
|
|
9
|
+
} & {
|
|
10
10
|
type: z.ZodLiteral<"audio">;
|
|
11
11
|
meta: z.ZodObject<{
|
|
12
12
|
length: z.ZodString;
|
|
@@ -45,11 +45,11 @@ export declare const Audio: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
45
45
|
audio_bitrate?: string | null | undefined;
|
|
46
46
|
audio_channels?: string | null | undefined;
|
|
47
47
|
}>;
|
|
48
|
-
}
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
49
|
id: string;
|
|
50
50
|
type: "audio";
|
|
51
|
-
description: string | null;
|
|
52
51
|
url: string;
|
|
52
|
+
description: string | null;
|
|
53
53
|
blurhash: string | null;
|
|
54
54
|
preview_url: string | null;
|
|
55
55
|
remote_url: string | null;
|
|
@@ -67,8 +67,8 @@ export declare const Audio: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
67
67
|
}, {
|
|
68
68
|
id: string;
|
|
69
69
|
type: "audio";
|
|
70
|
-
description: string | null;
|
|
71
70
|
url: string;
|
|
71
|
+
description: string | null;
|
|
72
72
|
blurhash: string | null;
|
|
73
73
|
preview_url: string | null;
|
|
74
74
|
remote_url: string | null;
|
|
@@ -8,15 +8,15 @@ export declare const BaseMediaAttachment: z.ZodObject<{
|
|
|
8
8
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: string;
|
|
11
|
-
description: string | null;
|
|
12
11
|
url: string;
|
|
12
|
+
description: string | null;
|
|
13
13
|
blurhash: string | null;
|
|
14
14
|
preview_url: string | null;
|
|
15
15
|
remote_url: string | null;
|
|
16
16
|
}, {
|
|
17
17
|
id: string;
|
|
18
|
-
description: string | null;
|
|
19
18
|
url: string;
|
|
19
|
+
description: string | null;
|
|
20
20
|
blurhash: string | null;
|
|
21
21
|
preview_url: string | null;
|
|
22
22
|
remote_url: string | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Gifv: z.ZodObject<
|
|
2
|
+
export declare const Gifv: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
url: z.ZodString;
|
|
5
5
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
6
6
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
7
7
|
description: z.ZodNullable<z.ZodString>;
|
|
8
8
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}
|
|
9
|
+
} & {
|
|
10
10
|
type: z.ZodLiteral<"gifv">;
|
|
11
11
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
12
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -94,11 +94,11 @@ export declare const Gifv: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
94
94
|
aspect: number;
|
|
95
95
|
} | null | undefined;
|
|
96
96
|
}>>>;
|
|
97
|
-
}
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
id: string;
|
|
99
99
|
type: "gifv";
|
|
100
|
-
description: string | null;
|
|
101
100
|
url: string;
|
|
101
|
+
description: string | null;
|
|
102
102
|
blurhash: string | null;
|
|
103
103
|
preview_url: string | null;
|
|
104
104
|
remote_url: string | null;
|
|
@@ -127,8 +127,8 @@ export declare const Gifv: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
127
127
|
}, {
|
|
128
128
|
id: string;
|
|
129
129
|
type: "gifv";
|
|
130
|
-
description: string | null;
|
|
131
130
|
url: string;
|
|
131
|
+
description: string | null;
|
|
132
132
|
blurhash: string | null;
|
|
133
133
|
preview_url: string | null;
|
|
134
134
|
remote_url: string | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Image: z.ZodObject<
|
|
2
|
+
export declare const Image: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
url: z.ZodString;
|
|
5
5
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
6
6
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
7
7
|
description: z.ZodNullable<z.ZodString>;
|
|
8
8
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}
|
|
9
|
+
} & {
|
|
10
10
|
type: z.ZodLiteral<"image">;
|
|
11
11
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
12
|
original: z.ZodObject<{
|
|
@@ -86,11 +86,11 @@ export declare const Image: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
86
86
|
y: number;
|
|
87
87
|
} | null | undefined;
|
|
88
88
|
}>>>;
|
|
89
|
-
}
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
id: string;
|
|
91
91
|
type: "image";
|
|
92
|
-
description: string | null;
|
|
93
92
|
url: string;
|
|
93
|
+
description: string | null;
|
|
94
94
|
blurhash: string | null;
|
|
95
95
|
preview_url: string | null;
|
|
96
96
|
remote_url: string | null;
|
|
@@ -115,8 +115,8 @@ export declare const Image: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
115
115
|
}, {
|
|
116
116
|
id: string;
|
|
117
117
|
type: "image";
|
|
118
|
-
description: string | null;
|
|
119
118
|
url: string;
|
|
119
|
+
description: string | null;
|
|
120
120
|
blurhash: string | null;
|
|
121
121
|
preview_url: string | null;
|
|
122
122
|
remote_url: string | null;
|