@llun/activities.schema 0.2.32 → 0.2.34
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/CLAUDE.md +46 -0
- package/dist/types/like.d.ts +3 -3
- package/dist/types/mastodon/account.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/audio.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/gifv.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/image.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/index.d.ts +30 -30
- package/dist/types/mastodon/mediaAttachment/unknown.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/video.d.ts +3 -3
- package/dist/types/mastodon/status/base.d.ts +18 -18
- package/dist/types/mastodon/status/index.d.ts +39 -39
- package/dist/types/note.d.ts +3 -3
- package/dist/types/question.d.ts +3 -3
- package/dist/types/undo.d.ts +3 -3
- package/package.json +4 -4
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
|
+
|
|
5
|
+
## Project Overview
|
|
6
|
+
|
|
7
|
+
This is a TypeScript library that provides Zod schemas for validating ActivityPub and Mastodon data. It exports validation schemas for social media activities and objects like notes, actors, follows, likes, and various Mastodon-specific entities.
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
### Build
|
|
12
|
+
```bash
|
|
13
|
+
npm run build
|
|
14
|
+
```
|
|
15
|
+
Builds the project in three module formats:
|
|
16
|
+
- CommonJS to `dist/cjs/`
|
|
17
|
+
- ES Modules to `dist/esm/`
|
|
18
|
+
- TypeScript declarations to `dist/types/`
|
|
19
|
+
|
|
20
|
+
### Release
|
|
21
|
+
```bash
|
|
22
|
+
npm run release
|
|
23
|
+
```
|
|
24
|
+
Cleans dist directory, builds, and publishes to npm with public access.
|
|
25
|
+
|
|
26
|
+
## Architecture
|
|
27
|
+
|
|
28
|
+
### Core Structure
|
|
29
|
+
- **Root exports** (`src/index.ts`): ActivityPub entities (Actor, Note, Follow, Like, etc.)
|
|
30
|
+
- **Mastodon namespace** (`src/mastodon/`): Mastodon-specific schemas exported as `Mastodon.*`
|
|
31
|
+
- **Nested schemas**: Complex types like Note use composition with shared base schemas
|
|
32
|
+
|
|
33
|
+
### Key Patterns
|
|
34
|
+
- All schemas use Zod for validation and TypeScript type generation
|
|
35
|
+
- Exports follow the pattern: `export const Schema = z.object(...)` and `export type Schema = z.infer<typeof Schema>`
|
|
36
|
+
- ActivityPub entities extend base content schemas for common properties
|
|
37
|
+
- Mastodon schemas are organized by entity type (account, status, media, etc.)
|
|
38
|
+
|
|
39
|
+
### Module System
|
|
40
|
+
- Uses ES modules (`"type": "module"` in package.json)
|
|
41
|
+
- Import paths use `.js` extensions for compatibility
|
|
42
|
+
- Triple build output supports both CommonJS and ES module consumers
|
|
43
|
+
|
|
44
|
+
## Key Dependencies
|
|
45
|
+
- **zod**: Core validation library - all schemas are built with Zod
|
|
46
|
+
- **typescript**: Development dependency for type checking and compilation
|
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;
|
|
@@ -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;
|
|
@@ -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,7 +45,7 @@ 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
51
|
url: string;
|
|
@@ -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,7 +94,7 @@ 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
100
|
url: string;
|
|
@@ -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,7 +86,7 @@ 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
92
|
url: string;
|
|
@@ -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,7 +95,7 @@ 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
101
|
url: string;
|
|
@@ -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,7 +243,7 @@ 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
249
|
url: string;
|
|
@@ -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,7 +400,7 @@ 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
406
|
url: string;
|
|
@@ -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,7 +513,7 @@ 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
519
|
url: string;
|
|
@@ -552,16 +552,16 @@ 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
567
|
url: string;
|
|
@@ -579,14 +579,14 @@ export declare const MediaTypes: {
|
|
|
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,7 +666,7 @@ 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
672
|
url: string;
|
|
@@ -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,7 +813,7 @@ 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
819
|
url: string;
|
|
@@ -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,7 +977,7 @@ 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
983
|
url: string;
|
|
@@ -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,7 +1089,7 @@ 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
1095
|
url: string;
|
|
@@ -1127,16 +1127,16 @@ 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
1142
|
url: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
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
14
|
url: string;
|
|
@@ -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,7 +103,7 @@ 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
109
|
url: string;
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const BaseStatus: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
uri: z.ZodString;
|
|
5
|
-
account: z.ZodObject<
|
|
5
|
+
account: z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
username: z.ZodString;
|
|
8
8
|
acct: z.ZodString;
|
|
@@ -99,7 +99,7 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
99
99
|
statuses_count: z.ZodNumber;
|
|
100
100
|
followers_count: z.ZodNumber;
|
|
101
101
|
following_count: z.ZodNumber;
|
|
102
|
-
}
|
|
102
|
+
} & {
|
|
103
103
|
moved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
104
104
|
id: z.ZodString;
|
|
105
105
|
username: z.ZodString;
|
|
@@ -292,7 +292,7 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
292
292
|
suspended?: boolean | undefined;
|
|
293
293
|
limited?: boolean | undefined;
|
|
294
294
|
}>>>;
|
|
295
|
-
}
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
296
|
id: string;
|
|
297
297
|
url: string;
|
|
298
298
|
note: string;
|
|
@@ -487,14 +487,14 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
487
487
|
visibility: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
488
488
|
sensitive: z.ZodBoolean;
|
|
489
489
|
spoiler_text: z.ZodString;
|
|
490
|
-
media_attachments: z.ZodArray<z.ZodUnion<[z.ZodObject<
|
|
490
|
+
media_attachments: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
491
491
|
id: z.ZodString;
|
|
492
492
|
url: z.ZodString;
|
|
493
493
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
494
494
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
495
495
|
description: z.ZodNullable<z.ZodString>;
|
|
496
496
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
497
|
-
}
|
|
497
|
+
} & {
|
|
498
498
|
type: z.ZodLiteral<"image">;
|
|
499
499
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
500
500
|
original: z.ZodObject<{
|
|
@@ -574,7 +574,7 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
574
574
|
y: number;
|
|
575
575
|
} | null | undefined;
|
|
576
576
|
}>>>;
|
|
577
|
-
}
|
|
577
|
+
}, "strip", z.ZodTypeAny, {
|
|
578
578
|
id: string;
|
|
579
579
|
type: "image";
|
|
580
580
|
url: string;
|
|
@@ -626,14 +626,14 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
626
626
|
y: number;
|
|
627
627
|
} | null | undefined;
|
|
628
628
|
} | null | undefined;
|
|
629
|
-
}>, z.ZodObject<
|
|
629
|
+
}>, z.ZodObject<{
|
|
630
630
|
id: z.ZodString;
|
|
631
631
|
url: z.ZodString;
|
|
632
632
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
633
633
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
634
634
|
description: z.ZodNullable<z.ZodString>;
|
|
635
635
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
636
|
-
}
|
|
636
|
+
} & {
|
|
637
637
|
type: z.ZodLiteral<"gifv">;
|
|
638
638
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
639
639
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -721,7 +721,7 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
721
721
|
aspect: number;
|
|
722
722
|
} | null | undefined;
|
|
723
723
|
}>>>;
|
|
724
|
-
}
|
|
724
|
+
}, "strip", z.ZodTypeAny, {
|
|
725
725
|
id: string;
|
|
726
726
|
type: "gifv";
|
|
727
727
|
url: string;
|
|
@@ -781,14 +781,14 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
781
781
|
aspect: number;
|
|
782
782
|
} | null | undefined;
|
|
783
783
|
} | null | undefined;
|
|
784
|
-
}>, z.ZodObject<
|
|
784
|
+
}>, z.ZodObject<{
|
|
785
785
|
id: z.ZodString;
|
|
786
786
|
url: z.ZodString;
|
|
787
787
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
788
788
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
789
789
|
description: z.ZodNullable<z.ZodString>;
|
|
790
790
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
791
|
-
}
|
|
791
|
+
} & {
|
|
792
792
|
type: z.ZodLiteral<"video">;
|
|
793
793
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
794
794
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -885,7 +885,7 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
885
885
|
audio_bitrate?: string | null | undefined;
|
|
886
886
|
audio_channels?: string | null | undefined;
|
|
887
887
|
}>>>;
|
|
888
|
-
}
|
|
888
|
+
}, "strip", z.ZodTypeAny, {
|
|
889
889
|
id: string;
|
|
890
890
|
type: "video";
|
|
891
891
|
url: string;
|
|
@@ -951,14 +951,14 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
951
951
|
audio_bitrate?: string | null | undefined;
|
|
952
952
|
audio_channels?: string | null | undefined;
|
|
953
953
|
} | null | undefined;
|
|
954
|
-
}>, z.ZodObject<
|
|
954
|
+
}>, z.ZodObject<{
|
|
955
955
|
id: z.ZodString;
|
|
956
956
|
url: z.ZodString;
|
|
957
957
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
958
958
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
959
959
|
description: z.ZodNullable<z.ZodString>;
|
|
960
960
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
961
|
-
}
|
|
961
|
+
} & {
|
|
962
962
|
type: z.ZodLiteral<"audio">;
|
|
963
963
|
meta: z.ZodObject<{
|
|
964
964
|
length: z.ZodString;
|
|
@@ -997,7 +997,7 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
997
997
|
audio_bitrate?: string | null | undefined;
|
|
998
998
|
audio_channels?: string | null | undefined;
|
|
999
999
|
}>;
|
|
1000
|
-
}
|
|
1000
|
+
}, "strip", z.ZodTypeAny, {
|
|
1001
1001
|
id: string;
|
|
1002
1002
|
type: "audio";
|
|
1003
1003
|
url: string;
|
|
@@ -1035,16 +1035,16 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
1035
1035
|
audio_bitrate?: string | null | undefined;
|
|
1036
1036
|
audio_channels?: string | null | undefined;
|
|
1037
1037
|
};
|
|
1038
|
-
}>, z.ZodObject<
|
|
1038
|
+
}>, z.ZodObject<{
|
|
1039
1039
|
id: z.ZodString;
|
|
1040
1040
|
url: z.ZodString;
|
|
1041
1041
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
1042
1042
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
1043
1043
|
description: z.ZodNullable<z.ZodString>;
|
|
1044
1044
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
1045
|
-
}
|
|
1045
|
+
} & {
|
|
1046
1046
|
type: z.ZodLiteral<"unknown">;
|
|
1047
|
-
}
|
|
1047
|
+
}, "strip", z.ZodTypeAny, {
|
|
1048
1048
|
id: string;
|
|
1049
1049
|
type: "unknown";
|
|
1050
1050
|
url: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Status: z.ZodObject<
|
|
2
|
+
export declare const Status: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
uri: z.ZodString;
|
|
5
|
-
account: z.ZodObject<
|
|
5
|
+
account: z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
username: z.ZodString;
|
|
8
8
|
acct: z.ZodString;
|
|
@@ -99,7 +99,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
99
99
|
statuses_count: z.ZodNumber;
|
|
100
100
|
followers_count: z.ZodNumber;
|
|
101
101
|
following_count: z.ZodNumber;
|
|
102
|
-
}
|
|
102
|
+
} & {
|
|
103
103
|
moved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
104
104
|
id: z.ZodString;
|
|
105
105
|
username: z.ZodString;
|
|
@@ -292,7 +292,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
292
292
|
suspended?: boolean | undefined;
|
|
293
293
|
limited?: boolean | undefined;
|
|
294
294
|
}>>>;
|
|
295
|
-
}
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
296
|
id: string;
|
|
297
297
|
url: string;
|
|
298
298
|
note: string;
|
|
@@ -487,14 +487,14 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
487
487
|
visibility: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
488
488
|
sensitive: z.ZodBoolean;
|
|
489
489
|
spoiler_text: z.ZodString;
|
|
490
|
-
media_attachments: z.ZodArray<z.ZodUnion<[z.ZodObject<
|
|
490
|
+
media_attachments: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
491
491
|
id: z.ZodString;
|
|
492
492
|
url: z.ZodString;
|
|
493
493
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
494
494
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
495
495
|
description: z.ZodNullable<z.ZodString>;
|
|
496
496
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
497
|
-
}
|
|
497
|
+
} & {
|
|
498
498
|
type: z.ZodLiteral<"image">;
|
|
499
499
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
500
500
|
original: z.ZodObject<{
|
|
@@ -574,7 +574,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
574
574
|
y: number;
|
|
575
575
|
} | null | undefined;
|
|
576
576
|
}>>>;
|
|
577
|
-
}
|
|
577
|
+
}, "strip", z.ZodTypeAny, {
|
|
578
578
|
id: string;
|
|
579
579
|
type: "image";
|
|
580
580
|
url: string;
|
|
@@ -626,14 +626,14 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
626
626
|
y: number;
|
|
627
627
|
} | null | undefined;
|
|
628
628
|
} | null | undefined;
|
|
629
|
-
}>, z.ZodObject<
|
|
629
|
+
}>, z.ZodObject<{
|
|
630
630
|
id: z.ZodString;
|
|
631
631
|
url: z.ZodString;
|
|
632
632
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
633
633
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
634
634
|
description: z.ZodNullable<z.ZodString>;
|
|
635
635
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
636
|
-
}
|
|
636
|
+
} & {
|
|
637
637
|
type: z.ZodLiteral<"gifv">;
|
|
638
638
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
639
639
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -721,7 +721,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
721
721
|
aspect: number;
|
|
722
722
|
} | null | undefined;
|
|
723
723
|
}>>>;
|
|
724
|
-
}
|
|
724
|
+
}, "strip", z.ZodTypeAny, {
|
|
725
725
|
id: string;
|
|
726
726
|
type: "gifv";
|
|
727
727
|
url: string;
|
|
@@ -781,14 +781,14 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
781
781
|
aspect: number;
|
|
782
782
|
} | null | undefined;
|
|
783
783
|
} | null | undefined;
|
|
784
|
-
}>, z.ZodObject<
|
|
784
|
+
}>, z.ZodObject<{
|
|
785
785
|
id: z.ZodString;
|
|
786
786
|
url: z.ZodString;
|
|
787
787
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
788
788
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
789
789
|
description: z.ZodNullable<z.ZodString>;
|
|
790
790
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
791
|
-
}
|
|
791
|
+
} & {
|
|
792
792
|
type: z.ZodLiteral<"video">;
|
|
793
793
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
794
794
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -885,7 +885,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
885
885
|
audio_bitrate?: string | null | undefined;
|
|
886
886
|
audio_channels?: string | null | undefined;
|
|
887
887
|
}>>>;
|
|
888
|
-
}
|
|
888
|
+
}, "strip", z.ZodTypeAny, {
|
|
889
889
|
id: string;
|
|
890
890
|
type: "video";
|
|
891
891
|
url: string;
|
|
@@ -951,14 +951,14 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
951
951
|
audio_bitrate?: string | null | undefined;
|
|
952
952
|
audio_channels?: string | null | undefined;
|
|
953
953
|
} | null | undefined;
|
|
954
|
-
}>, z.ZodObject<
|
|
954
|
+
}>, z.ZodObject<{
|
|
955
955
|
id: z.ZodString;
|
|
956
956
|
url: z.ZodString;
|
|
957
957
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
958
958
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
959
959
|
description: z.ZodNullable<z.ZodString>;
|
|
960
960
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
961
|
-
}
|
|
961
|
+
} & {
|
|
962
962
|
type: z.ZodLiteral<"audio">;
|
|
963
963
|
meta: z.ZodObject<{
|
|
964
964
|
length: z.ZodString;
|
|
@@ -997,7 +997,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
997
997
|
audio_bitrate?: string | null | undefined;
|
|
998
998
|
audio_channels?: string | null | undefined;
|
|
999
999
|
}>;
|
|
1000
|
-
}
|
|
1000
|
+
}, "strip", z.ZodTypeAny, {
|
|
1001
1001
|
id: string;
|
|
1002
1002
|
type: "audio";
|
|
1003
1003
|
url: string;
|
|
@@ -1035,16 +1035,16 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1035
1035
|
audio_bitrate?: string | null | undefined;
|
|
1036
1036
|
audio_channels?: string | null | undefined;
|
|
1037
1037
|
};
|
|
1038
|
-
}>, z.ZodObject<
|
|
1038
|
+
}>, z.ZodObject<{
|
|
1039
1039
|
id: z.ZodString;
|
|
1040
1040
|
url: z.ZodString;
|
|
1041
1041
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
1042
1042
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
1043
1043
|
description: z.ZodNullable<z.ZodString>;
|
|
1044
1044
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
1045
|
-
}
|
|
1045
|
+
} & {
|
|
1046
1046
|
type: z.ZodLiteral<"unknown">;
|
|
1047
|
-
}
|
|
1047
|
+
}, "strip", z.ZodTypeAny, {
|
|
1048
1048
|
id: string;
|
|
1049
1049
|
type: "unknown";
|
|
1050
1050
|
url: string;
|
|
@@ -1358,11 +1358,11 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1358
1358
|
keyword_matches: string[] | null;
|
|
1359
1359
|
status_matches: string[] | null;
|
|
1360
1360
|
}>>;
|
|
1361
|
-
}
|
|
1361
|
+
} & {
|
|
1362
1362
|
reblog: z.ZodNullable<z.ZodObject<{
|
|
1363
1363
|
id: z.ZodString;
|
|
1364
1364
|
uri: z.ZodString;
|
|
1365
|
-
account: z.ZodObject<
|
|
1365
|
+
account: z.ZodObject<{
|
|
1366
1366
|
id: z.ZodString;
|
|
1367
1367
|
username: z.ZodString;
|
|
1368
1368
|
acct: z.ZodString;
|
|
@@ -1459,7 +1459,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1459
1459
|
statuses_count: z.ZodNumber;
|
|
1460
1460
|
followers_count: z.ZodNumber;
|
|
1461
1461
|
following_count: z.ZodNumber;
|
|
1462
|
-
}
|
|
1462
|
+
} & {
|
|
1463
1463
|
moved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1464
1464
|
id: z.ZodString;
|
|
1465
1465
|
username: z.ZodString;
|
|
@@ -1652,7 +1652,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1652
1652
|
suspended?: boolean | undefined;
|
|
1653
1653
|
limited?: boolean | undefined;
|
|
1654
1654
|
}>>>;
|
|
1655
|
-
}
|
|
1655
|
+
}, "strip", z.ZodTypeAny, {
|
|
1656
1656
|
id: string;
|
|
1657
1657
|
url: string;
|
|
1658
1658
|
note: string;
|
|
@@ -1847,14 +1847,14 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1847
1847
|
visibility: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
1848
1848
|
sensitive: z.ZodBoolean;
|
|
1849
1849
|
spoiler_text: z.ZodString;
|
|
1850
|
-
media_attachments: z.ZodArray<z.ZodUnion<[z.ZodObject<
|
|
1850
|
+
media_attachments: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1851
1851
|
id: z.ZodString;
|
|
1852
1852
|
url: z.ZodString;
|
|
1853
1853
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
1854
1854
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
1855
1855
|
description: z.ZodNullable<z.ZodString>;
|
|
1856
1856
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
1857
|
-
}
|
|
1857
|
+
} & {
|
|
1858
1858
|
type: z.ZodLiteral<"image">;
|
|
1859
1859
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1860
1860
|
original: z.ZodObject<{
|
|
@@ -1934,7 +1934,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1934
1934
|
y: number;
|
|
1935
1935
|
} | null | undefined;
|
|
1936
1936
|
}>>>;
|
|
1937
|
-
}
|
|
1937
|
+
}, "strip", z.ZodTypeAny, {
|
|
1938
1938
|
id: string;
|
|
1939
1939
|
type: "image";
|
|
1940
1940
|
url: string;
|
|
@@ -1986,14 +1986,14 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1986
1986
|
y: number;
|
|
1987
1987
|
} | null | undefined;
|
|
1988
1988
|
} | null | undefined;
|
|
1989
|
-
}>, z.ZodObject<
|
|
1989
|
+
}>, z.ZodObject<{
|
|
1990
1990
|
id: z.ZodString;
|
|
1991
1991
|
url: z.ZodString;
|
|
1992
1992
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
1993
1993
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
1994
1994
|
description: z.ZodNullable<z.ZodString>;
|
|
1995
1995
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
1996
|
-
}
|
|
1996
|
+
} & {
|
|
1997
1997
|
type: z.ZodLiteral<"gifv">;
|
|
1998
1998
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1999
1999
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2081,7 +2081,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2081
2081
|
aspect: number;
|
|
2082
2082
|
} | null | undefined;
|
|
2083
2083
|
}>>>;
|
|
2084
|
-
}
|
|
2084
|
+
}, "strip", z.ZodTypeAny, {
|
|
2085
2085
|
id: string;
|
|
2086
2086
|
type: "gifv";
|
|
2087
2087
|
url: string;
|
|
@@ -2141,14 +2141,14 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2141
2141
|
aspect: number;
|
|
2142
2142
|
} | null | undefined;
|
|
2143
2143
|
} | null | undefined;
|
|
2144
|
-
}>, z.ZodObject<
|
|
2144
|
+
}>, z.ZodObject<{
|
|
2145
2145
|
id: z.ZodString;
|
|
2146
2146
|
url: z.ZodString;
|
|
2147
2147
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
2148
2148
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
2149
2149
|
description: z.ZodNullable<z.ZodString>;
|
|
2150
2150
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
2151
|
-
}
|
|
2151
|
+
} & {
|
|
2152
2152
|
type: z.ZodLiteral<"video">;
|
|
2153
2153
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2154
2154
|
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2245,7 +2245,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2245
2245
|
audio_bitrate?: string | null | undefined;
|
|
2246
2246
|
audio_channels?: string | null | undefined;
|
|
2247
2247
|
}>>>;
|
|
2248
|
-
}
|
|
2248
|
+
}, "strip", z.ZodTypeAny, {
|
|
2249
2249
|
id: string;
|
|
2250
2250
|
type: "video";
|
|
2251
2251
|
url: string;
|
|
@@ -2311,14 +2311,14 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2311
2311
|
audio_bitrate?: string | null | undefined;
|
|
2312
2312
|
audio_channels?: string | null | undefined;
|
|
2313
2313
|
} | null | undefined;
|
|
2314
|
-
}>, z.ZodObject<
|
|
2314
|
+
}>, z.ZodObject<{
|
|
2315
2315
|
id: z.ZodString;
|
|
2316
2316
|
url: z.ZodString;
|
|
2317
2317
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
2318
2318
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
2319
2319
|
description: z.ZodNullable<z.ZodString>;
|
|
2320
2320
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
2321
|
-
}
|
|
2321
|
+
} & {
|
|
2322
2322
|
type: z.ZodLiteral<"audio">;
|
|
2323
2323
|
meta: z.ZodObject<{
|
|
2324
2324
|
length: z.ZodString;
|
|
@@ -2357,7 +2357,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2357
2357
|
audio_bitrate?: string | null | undefined;
|
|
2358
2358
|
audio_channels?: string | null | undefined;
|
|
2359
2359
|
}>;
|
|
2360
|
-
}
|
|
2360
|
+
}, "strip", z.ZodTypeAny, {
|
|
2361
2361
|
id: string;
|
|
2362
2362
|
type: "audio";
|
|
2363
2363
|
url: string;
|
|
@@ -2395,16 +2395,16 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2395
2395
|
audio_bitrate?: string | null | undefined;
|
|
2396
2396
|
audio_channels?: string | null | undefined;
|
|
2397
2397
|
};
|
|
2398
|
-
}>, z.ZodObject<
|
|
2398
|
+
}>, z.ZodObject<{
|
|
2399
2399
|
id: z.ZodString;
|
|
2400
2400
|
url: z.ZodString;
|
|
2401
2401
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
2402
2402
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
2403
2403
|
description: z.ZodNullable<z.ZodString>;
|
|
2404
2404
|
blurhash: z.ZodNullable<z.ZodString>;
|
|
2405
|
-
}
|
|
2405
|
+
} & {
|
|
2406
2406
|
type: z.ZodLiteral<"unknown">;
|
|
2407
|
-
}
|
|
2407
|
+
}, "strip", z.ZodTypeAny, {
|
|
2408
2408
|
id: string;
|
|
2409
2409
|
type: "unknown";
|
|
2410
2410
|
url: string;
|
|
@@ -3345,7 +3345,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3345
3345
|
status_matches: string[] | null;
|
|
3346
3346
|
} | undefined;
|
|
3347
3347
|
}>>;
|
|
3348
|
-
}
|
|
3348
|
+
}, "strip", z.ZodTypeAny, {
|
|
3349
3349
|
id: string;
|
|
3350
3350
|
url: string | null;
|
|
3351
3351
|
content: string;
|
package/dist/types/note.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ENTITY_TYPE_NOTE = "Note";
|
|
3
|
-
export declare const Note: z.ZodObject<
|
|
3
|
+
export declare const Note: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
attributedTo: z.ZodString;
|
|
@@ -264,9 +264,9 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
264
264
|
}>]>, "many">]>;
|
|
265
265
|
published: z.ZodString;
|
|
266
266
|
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
|
-
}
|
|
267
|
+
} & {
|
|
268
268
|
type: z.ZodLiteral<"Note">;
|
|
269
|
-
}
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
270
|
id: string;
|
|
271
271
|
type: "Note";
|
|
272
272
|
published: string;
|
package/dist/types/question.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ENTITY_TYPE_QUESTION = "Question";
|
|
3
|
-
export declare const Question: z.ZodObject<
|
|
3
|
+
export declare const Question: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
attributedTo: z.ZodString;
|
|
@@ -264,7 +264,7 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
264
264
|
}>]>, "many">]>;
|
|
265
265
|
published: z.ZodString;
|
|
266
266
|
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
|
-
}
|
|
267
|
+
} & {
|
|
268
268
|
type: z.ZodLiteral<"Question">;
|
|
269
269
|
endTime: z.ZodString;
|
|
270
270
|
oneOf: z.ZodArray<z.ZodObject<{
|
|
@@ -295,7 +295,7 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
295
295
|
totalItems: number;
|
|
296
296
|
};
|
|
297
297
|
}>, "many">;
|
|
298
|
-
}
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
299
|
id: string;
|
|
300
300
|
type: "Question";
|
|
301
301
|
published: string;
|
package/dist/types/undo.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const Undo: z.ZodObject<{
|
|
|
7
7
|
type: z.ZodLiteral<"Like">;
|
|
8
8
|
id: z.ZodString;
|
|
9
9
|
actor: z.ZodString;
|
|
10
|
-
object: z.ZodUnion<[z.ZodString, z.ZodObject<
|
|
10
|
+
object: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
11
11
|
id: z.ZodString;
|
|
12
12
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
attributedTo: z.ZodString;
|
|
@@ -271,9 +271,9 @@ export declare const Undo: z.ZodObject<{
|
|
|
271
271
|
}>]>, "many">]>;
|
|
272
272
|
published: z.ZodString;
|
|
273
273
|
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
-
}
|
|
274
|
+
} & {
|
|
275
275
|
type: z.ZodLiteral<"Note">;
|
|
276
|
-
}
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
id: string;
|
|
278
278
|
type: "Note";
|
|
279
279
|
published: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llun/activities.schema",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
4
4
|
"description": "Validate ActivityPub and Mastodon with Zod",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"author": "Maythee Anegboonlap <null@llun.dev>",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"zod": "^3.
|
|
16
|
+
"zod": "^3.25.71"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"typescript": "^5.8.
|
|
19
|
+
"typescript": "^5.8.3"
|
|
20
20
|
},
|
|
21
|
-
"packageManager": "yarn@4.
|
|
21
|
+
"packageManager": "yarn@4.9.2"
|
|
22
22
|
}
|