@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const MediaTypes: {
|
|
3
|
-
Gifv: z.ZodObject<
|
|
3
|
+
Gifv: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
url: z.ZodString;
|
|
6
6
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
7
7
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
8
8
|
description: z.ZodNullable<z.ZodString>;
|
|
9
9
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}
|
|
10
|
+
} & {
|
|
11
11
|
type: z.ZodLiteral<"gifv">;
|
|
12
12
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
13
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -95,11 +95,11 @@ export declare const MediaTypes: {
|
|
|
95
95
|
aspect: number;
|
|
96
96
|
} | null | undefined;
|
|
97
97
|
}>>>;
|
|
98
|
-
}
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
99
|
id: string;
|
|
100
100
|
type: "gifv";
|
|
101
|
-
description: string | null;
|
|
102
101
|
url: string;
|
|
102
|
+
description: string | null;
|
|
103
103
|
blurhash: string | null;
|
|
104
104
|
preview_url: string | null;
|
|
105
105
|
remote_url: string | null;
|
|
@@ -128,8 +128,8 @@ export declare const MediaTypes: {
|
|
|
128
128
|
}, {
|
|
129
129
|
id: string;
|
|
130
130
|
type: "gifv";
|
|
131
|
-
description: string | null;
|
|
132
131
|
url: string;
|
|
132
|
+
description: string | null;
|
|
133
133
|
blurhash: string | null;
|
|
134
134
|
preview_url: string | null;
|
|
135
135
|
remote_url: string | null;
|
|
@@ -156,14 +156,14 @@ export declare const MediaTypes: {
|
|
|
156
156
|
} | null | undefined;
|
|
157
157
|
} | null | undefined;
|
|
158
158
|
}>;
|
|
159
|
-
Image: z.ZodObject<
|
|
159
|
+
Image: z.ZodObject<{
|
|
160
160
|
id: z.ZodString;
|
|
161
161
|
url: z.ZodString;
|
|
162
162
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
163
163
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
164
164
|
description: z.ZodNullable<z.ZodString>;
|
|
165
165
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
166
|
-
}
|
|
166
|
+
} & {
|
|
167
167
|
type: z.ZodLiteral<"image">;
|
|
168
168
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
169
169
|
original: z.ZodObject<{
|
|
@@ -243,11 +243,11 @@ export declare const MediaTypes: {
|
|
|
243
243
|
y: number;
|
|
244
244
|
} | null | undefined;
|
|
245
245
|
}>>>;
|
|
246
|
-
}
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
247
|
id: string;
|
|
248
248
|
type: "image";
|
|
249
|
-
description: string | null;
|
|
250
249
|
url: string;
|
|
250
|
+
description: string | null;
|
|
251
251
|
blurhash: string | null;
|
|
252
252
|
preview_url: string | null;
|
|
253
253
|
remote_url: string | null;
|
|
@@ -272,8 +272,8 @@ export declare const MediaTypes: {
|
|
|
272
272
|
}, {
|
|
273
273
|
id: string;
|
|
274
274
|
type: "image";
|
|
275
|
-
description: string | null;
|
|
276
275
|
url: string;
|
|
276
|
+
description: string | null;
|
|
277
277
|
blurhash: string | null;
|
|
278
278
|
preview_url: string | null;
|
|
279
279
|
remote_url: string | null;
|
|
@@ -296,14 +296,14 @@ export declare const MediaTypes: {
|
|
|
296
296
|
} | null | undefined;
|
|
297
297
|
} | null | undefined;
|
|
298
298
|
}>;
|
|
299
|
-
Video: z.ZodObject<
|
|
299
|
+
Video: z.ZodObject<{
|
|
300
300
|
id: z.ZodString;
|
|
301
301
|
url: z.ZodString;
|
|
302
302
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
303
303
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
304
304
|
description: z.ZodNullable<z.ZodString>;
|
|
305
305
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
306
|
-
}
|
|
306
|
+
} & {
|
|
307
307
|
type: z.ZodLiteral<"video">;
|
|
308
308
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
309
309
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -400,11 +400,11 @@ export declare const MediaTypes: {
|
|
|
400
400
|
audio_bitrate?: string | null | undefined;
|
|
401
401
|
audio_channels?: string | null | undefined;
|
|
402
402
|
}>>>;
|
|
403
|
-
}
|
|
403
|
+
}, "strip", z.ZodTypeAny, {
|
|
404
404
|
id: string;
|
|
405
405
|
type: "video";
|
|
406
|
-
description: string | null;
|
|
407
406
|
url: string;
|
|
407
|
+
description: string | null;
|
|
408
408
|
blurhash: string | null;
|
|
409
409
|
preview_url: string | null;
|
|
410
410
|
remote_url: string | null;
|
|
@@ -436,8 +436,8 @@ export declare const MediaTypes: {
|
|
|
436
436
|
}, {
|
|
437
437
|
id: string;
|
|
438
438
|
type: "video";
|
|
439
|
-
description: string | null;
|
|
440
439
|
url: string;
|
|
440
|
+
description: string | null;
|
|
441
441
|
blurhash: string | null;
|
|
442
442
|
preview_url: string | null;
|
|
443
443
|
remote_url: string | null;
|
|
@@ -467,14 +467,14 @@ export declare const MediaTypes: {
|
|
|
467
467
|
audio_channels?: string | null | undefined;
|
|
468
468
|
} | null | undefined;
|
|
469
469
|
}>;
|
|
470
|
-
Audio: z.ZodObject<
|
|
470
|
+
Audio: z.ZodObject<{
|
|
471
471
|
id: z.ZodString;
|
|
472
472
|
url: z.ZodString;
|
|
473
473
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
474
474
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
475
475
|
description: z.ZodNullable<z.ZodString>;
|
|
476
476
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
477
|
-
}
|
|
477
|
+
} & {
|
|
478
478
|
type: z.ZodLiteral<"audio">;
|
|
479
479
|
meta: z.ZodObject<{
|
|
480
480
|
length: z.ZodString;
|
|
@@ -513,11 +513,11 @@ export declare const MediaTypes: {
|
|
|
513
513
|
audio_bitrate?: string | null | undefined;
|
|
514
514
|
audio_channels?: string | null | undefined;
|
|
515
515
|
}>;
|
|
516
|
-
}
|
|
516
|
+
}, "strip", z.ZodTypeAny, {
|
|
517
517
|
id: string;
|
|
518
518
|
type: "audio";
|
|
519
|
-
description: string | null;
|
|
520
519
|
url: string;
|
|
520
|
+
description: string | null;
|
|
521
521
|
blurhash: string | null;
|
|
522
522
|
preview_url: string | null;
|
|
523
523
|
remote_url: string | null;
|
|
@@ -535,8 +535,8 @@ export declare const MediaTypes: {
|
|
|
535
535
|
}, {
|
|
536
536
|
id: string;
|
|
537
537
|
type: "audio";
|
|
538
|
-
description: string | null;
|
|
539
538
|
url: string;
|
|
539
|
+
description: string | null;
|
|
540
540
|
blurhash: string | null;
|
|
541
541
|
preview_url: string | null;
|
|
542
542
|
remote_url: string | null;
|
|
@@ -552,41 +552,41 @@ export declare const MediaTypes: {
|
|
|
552
552
|
audio_channels?: string | null | undefined;
|
|
553
553
|
};
|
|
554
554
|
}>;
|
|
555
|
-
Unknown: z.ZodObject<
|
|
555
|
+
Unknown: z.ZodObject<{
|
|
556
556
|
id: z.ZodString;
|
|
557
557
|
url: z.ZodString;
|
|
558
558
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
559
559
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
560
560
|
description: z.ZodNullable<z.ZodString>;
|
|
561
561
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
562
|
-
}
|
|
562
|
+
} & {
|
|
563
563
|
type: z.ZodLiteral<"unknown">;
|
|
564
|
-
}
|
|
564
|
+
}, "strip", z.ZodTypeAny, {
|
|
565
565
|
id: string;
|
|
566
566
|
type: "unknown";
|
|
567
|
-
description: string | null;
|
|
568
567
|
url: string;
|
|
568
|
+
description: string | null;
|
|
569
569
|
blurhash: string | null;
|
|
570
570
|
preview_url: string | null;
|
|
571
571
|
remote_url: string | null;
|
|
572
572
|
}, {
|
|
573
573
|
id: string;
|
|
574
574
|
type: "unknown";
|
|
575
|
-
description: string | null;
|
|
576
575
|
url: string;
|
|
576
|
+
description: string | null;
|
|
577
577
|
blurhash: string | null;
|
|
578
578
|
preview_url: string | null;
|
|
579
579
|
remote_url: string | null;
|
|
580
580
|
}>;
|
|
581
581
|
};
|
|
582
|
-
export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<
|
|
582
|
+
export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<{
|
|
583
583
|
id: z.ZodString;
|
|
584
584
|
url: z.ZodString;
|
|
585
585
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
586
586
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
587
587
|
description: z.ZodNullable<z.ZodString>;
|
|
588
588
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
589
|
-
}
|
|
589
|
+
} & {
|
|
590
590
|
type: z.ZodLiteral<"image">;
|
|
591
591
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
592
592
|
original: z.ZodObject<{
|
|
@@ -666,11 +666,11 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
666
666
|
y: number;
|
|
667
667
|
} | null | undefined;
|
|
668
668
|
}>>>;
|
|
669
|
-
}
|
|
669
|
+
}, "strip", z.ZodTypeAny, {
|
|
670
670
|
id: string;
|
|
671
671
|
type: "image";
|
|
672
|
-
description: string | null;
|
|
673
672
|
url: string;
|
|
673
|
+
description: string | null;
|
|
674
674
|
blurhash: string | null;
|
|
675
675
|
preview_url: string | null;
|
|
676
676
|
remote_url: string | null;
|
|
@@ -695,8 +695,8 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
695
695
|
}, {
|
|
696
696
|
id: string;
|
|
697
697
|
type: "image";
|
|
698
|
-
description: string | null;
|
|
699
698
|
url: string;
|
|
699
|
+
description: string | null;
|
|
700
700
|
blurhash: string | null;
|
|
701
701
|
preview_url: string | null;
|
|
702
702
|
remote_url: string | null;
|
|
@@ -718,14 +718,14 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
718
718
|
y: number;
|
|
719
719
|
} | null | undefined;
|
|
720
720
|
} | null | undefined;
|
|
721
|
-
}>, z.ZodObject<
|
|
721
|
+
}>, z.ZodObject<{
|
|
722
722
|
id: z.ZodString;
|
|
723
723
|
url: z.ZodString;
|
|
724
724
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
725
725
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
726
726
|
description: z.ZodNullable<z.ZodString>;
|
|
727
727
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
728
|
-
}
|
|
728
|
+
} & {
|
|
729
729
|
type: z.ZodLiteral<"gifv">;
|
|
730
730
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
731
731
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -813,11 +813,11 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
813
813
|
aspect: number;
|
|
814
814
|
} | null | undefined;
|
|
815
815
|
}>>>;
|
|
816
|
-
}
|
|
816
|
+
}, "strip", z.ZodTypeAny, {
|
|
817
817
|
id: string;
|
|
818
818
|
type: "gifv";
|
|
819
|
-
description: string | null;
|
|
820
819
|
url: string;
|
|
820
|
+
description: string | null;
|
|
821
821
|
blurhash: string | null;
|
|
822
822
|
preview_url: string | null;
|
|
823
823
|
remote_url: string | null;
|
|
@@ -846,8 +846,8 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
846
846
|
}, {
|
|
847
847
|
id: string;
|
|
848
848
|
type: "gifv";
|
|
849
|
-
description: string | null;
|
|
850
849
|
url: string;
|
|
850
|
+
description: string | null;
|
|
851
851
|
blurhash: string | null;
|
|
852
852
|
preview_url: string | null;
|
|
853
853
|
remote_url: string | null;
|
|
@@ -873,14 +873,14 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
873
873
|
aspect: number;
|
|
874
874
|
} | null | undefined;
|
|
875
875
|
} | null | undefined;
|
|
876
|
-
}>, z.ZodObject<
|
|
876
|
+
}>, z.ZodObject<{
|
|
877
877
|
id: z.ZodString;
|
|
878
878
|
url: z.ZodString;
|
|
879
879
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
880
880
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
881
881
|
description: z.ZodNullable<z.ZodString>;
|
|
882
882
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
883
|
-
}
|
|
883
|
+
} & {
|
|
884
884
|
type: z.ZodLiteral<"video">;
|
|
885
885
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
886
886
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -977,11 +977,11 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
977
977
|
audio_bitrate?: string | null | undefined;
|
|
978
978
|
audio_channels?: string | null | undefined;
|
|
979
979
|
}>>>;
|
|
980
|
-
}
|
|
980
|
+
}, "strip", z.ZodTypeAny, {
|
|
981
981
|
id: string;
|
|
982
982
|
type: "video";
|
|
983
|
-
description: string | null;
|
|
984
983
|
url: string;
|
|
984
|
+
description: string | null;
|
|
985
985
|
blurhash: string | null;
|
|
986
986
|
preview_url: string | null;
|
|
987
987
|
remote_url: string | null;
|
|
@@ -1013,8 +1013,8 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1013
1013
|
}, {
|
|
1014
1014
|
id: string;
|
|
1015
1015
|
type: "video";
|
|
1016
|
-
description: string | null;
|
|
1017
1016
|
url: string;
|
|
1017
|
+
description: string | null;
|
|
1018
1018
|
blurhash: string | null;
|
|
1019
1019
|
preview_url: string | null;
|
|
1020
1020
|
remote_url: string | null;
|
|
@@ -1043,14 +1043,14 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1043
1043
|
audio_bitrate?: string | null | undefined;
|
|
1044
1044
|
audio_channels?: string | null | undefined;
|
|
1045
1045
|
} | null | undefined;
|
|
1046
|
-
}>, z.ZodObject<
|
|
1046
|
+
}>, z.ZodObject<{
|
|
1047
1047
|
id: z.ZodString;
|
|
1048
1048
|
url: z.ZodString;
|
|
1049
1049
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
1050
1050
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
1051
1051
|
description: z.ZodNullable<z.ZodString>;
|
|
1052
1052
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
1053
|
-
}
|
|
1053
|
+
} & {
|
|
1054
1054
|
type: z.ZodLiteral<"audio">;
|
|
1055
1055
|
meta: z.ZodObject<{
|
|
1056
1056
|
length: z.ZodString;
|
|
@@ -1089,11 +1089,11 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1089
1089
|
audio_bitrate?: string | null | undefined;
|
|
1090
1090
|
audio_channels?: string | null | undefined;
|
|
1091
1091
|
}>;
|
|
1092
|
-
}
|
|
1092
|
+
}, "strip", z.ZodTypeAny, {
|
|
1093
1093
|
id: string;
|
|
1094
1094
|
type: "audio";
|
|
1095
|
-
description: string | null;
|
|
1096
1095
|
url: string;
|
|
1096
|
+
description: string | null;
|
|
1097
1097
|
blurhash: string | null;
|
|
1098
1098
|
preview_url: string | null;
|
|
1099
1099
|
remote_url: string | null;
|
|
@@ -1111,8 +1111,8 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1111
1111
|
}, {
|
|
1112
1112
|
id: string;
|
|
1113
1113
|
type: "audio";
|
|
1114
|
-
description: string | null;
|
|
1115
1114
|
url: string;
|
|
1115
|
+
description: string | null;
|
|
1116
1116
|
blurhash: string | null;
|
|
1117
1117
|
preview_url: string | null;
|
|
1118
1118
|
remote_url: string | null;
|
|
@@ -1127,28 +1127,28 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1127
1127
|
audio_bitrate?: string | null | undefined;
|
|
1128
1128
|
audio_channels?: string | null | undefined;
|
|
1129
1129
|
};
|
|
1130
|
-
}>, z.ZodObject<
|
|
1130
|
+
}>, z.ZodObject<{
|
|
1131
1131
|
id: z.ZodString;
|
|
1132
1132
|
url: z.ZodString;
|
|
1133
1133
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
1134
1134
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
1135
1135
|
description: z.ZodNullable<z.ZodString>;
|
|
1136
1136
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
1137
|
-
}
|
|
1137
|
+
} & {
|
|
1138
1138
|
type: z.ZodLiteral<"unknown">;
|
|
1139
|
-
}
|
|
1139
|
+
}, "strip", z.ZodTypeAny, {
|
|
1140
1140
|
id: string;
|
|
1141
1141
|
type: "unknown";
|
|
1142
|
-
description: string | null;
|
|
1143
1142
|
url: string;
|
|
1143
|
+
description: string | null;
|
|
1144
1144
|
blurhash: string | null;
|
|
1145
1145
|
preview_url: string | null;
|
|
1146
1146
|
remote_url: string | null;
|
|
1147
1147
|
}, {
|
|
1148
1148
|
id: string;
|
|
1149
1149
|
type: "unknown";
|
|
1150
|
-
description: string | null;
|
|
1151
1150
|
url: string;
|
|
1151
|
+
description: string | null;
|
|
1152
1152
|
blurhash: string | null;
|
|
1153
1153
|
preview_url: string | null;
|
|
1154
1154
|
remote_url: string | null;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Unknown: z.ZodObject<
|
|
2
|
+
export declare const Unknown: 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<"unknown">;
|
|
11
|
-
}
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
13
|
type: "unknown";
|
|
14
|
-
description: string | null;
|
|
15
14
|
url: string;
|
|
15
|
+
description: string | null;
|
|
16
16
|
blurhash: string | null;
|
|
17
17
|
preview_url: string | null;
|
|
18
18
|
remote_url: string | null;
|
|
19
19
|
}, {
|
|
20
20
|
id: string;
|
|
21
21
|
type: "unknown";
|
|
22
|
-
description: string | null;
|
|
23
22
|
url: string;
|
|
23
|
+
description: string | null;
|
|
24
24
|
blurhash: string | null;
|
|
25
25
|
preview_url: string | null;
|
|
26
26
|
remote_url: string | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Video: z.ZodObject<
|
|
2
|
+
export declare const Video: 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<"video">;
|
|
11
11
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
12
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -103,11 +103,11 @@ export declare const Video: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
103
103
|
audio_bitrate?: string | null | undefined;
|
|
104
104
|
audio_channels?: string | null | undefined;
|
|
105
105
|
}>>>;
|
|
106
|
-
}
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
107
|
id: string;
|
|
108
108
|
type: "video";
|
|
109
|
-
description: string | null;
|
|
110
109
|
url: string;
|
|
110
|
+
description: string | null;
|
|
111
111
|
blurhash: string | null;
|
|
112
112
|
preview_url: string | null;
|
|
113
113
|
remote_url: string | null;
|
|
@@ -139,8 +139,8 @@ export declare const Video: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
139
139
|
}, {
|
|
140
140
|
id: string;
|
|
141
141
|
type: "video";
|
|
142
|
-
description: string | null;
|
|
143
142
|
url: string;
|
|
143
|
+
description: string | null;
|
|
144
144
|
blurhash: string | null;
|
|
145
145
|
preview_url: string | null;
|
|
146
146
|
remote_url: string | null;
|
|
@@ -16,12 +16,12 @@ export declare const PreviewCard: z.ZodObject<{
|
|
|
16
16
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
type: "link" | "photo" | "video" | "rich";
|
|
19
|
-
description: string;
|
|
20
19
|
url: string;
|
|
20
|
+
image: string | null;
|
|
21
|
+
description: string;
|
|
21
22
|
blurhash: string | null;
|
|
22
23
|
width: number;
|
|
23
24
|
height: number;
|
|
24
|
-
image: string | null;
|
|
25
25
|
title: string;
|
|
26
26
|
author_name: string;
|
|
27
27
|
author_url: string;
|
|
@@ -31,12 +31,12 @@ export declare const PreviewCard: z.ZodObject<{
|
|
|
31
31
|
embed_url: string;
|
|
32
32
|
}, {
|
|
33
33
|
type: "link" | "photo" | "video" | "rich";
|
|
34
|
-
description: string;
|
|
35
34
|
url: string;
|
|
35
|
+
image: string | null;
|
|
36
|
+
description: string;
|
|
36
37
|
blurhash: string | null;
|
|
37
38
|
width: number;
|
|
38
39
|
height: number;
|
|
39
|
-
image: string | null;
|
|
40
40
|
title: string;
|
|
41
41
|
author_name: string;
|
|
42
42
|
author_url: string;
|