@llun/activities.schema 0.2.33 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +22 -0
- package/.yarn/install-state.gz +0 -0
- package/CLAUDE.md +46 -0
- package/dist/cjs/announce.js +1 -1
- package/dist/cjs/mastodon/account/field.js +4 -9
- package/dist/cjs/mastodon/account/source.js +4 -12
- package/dist/cjs/mastodon/account.js +27 -66
- package/dist/cjs/mastodon/customEmoji.js +6 -15
- package/dist/cjs/mastodon/filter/index.js +4 -7
- package/dist/cjs/mastodon/filter/keyword.js +3 -5
- package/dist/cjs/mastodon/filter/status.js +2 -4
- package/dist/cjs/mastodon/mediaAttachment/base.js +10 -18
- package/dist/cjs/mastodon/mediaAttachment/gifv.js +2 -6
- package/dist/cjs/mastodon/mediaAttachment/video.js +2 -6
- package/dist/cjs/mastodon/poll/index.js +9 -11
- package/dist/cjs/mastodon/poll/option.js +3 -4
- package/dist/cjs/mastodon/previewCard.js +15 -28
- package/dist/cjs/mastodon/status/application.js +3 -6
- package/dist/cjs/mastodon/status/base.js +31 -54
- package/dist/cjs/mastodon/status/mention.js +4 -8
- package/dist/cjs/mastodon/status/tag.js +2 -6
- package/dist/cjs/note/baseContent.js +11 -12
- package/dist/cjs/question.js +1 -1
- package/dist/esm/announce.js +1 -1
- package/dist/esm/mastodon/account/field.js +4 -9
- package/dist/esm/mastodon/account/source.js +4 -12
- package/dist/esm/mastodon/account.js +27 -66
- package/dist/esm/mastodon/customEmoji.js +6 -15
- package/dist/esm/mastodon/filter/index.js +4 -7
- package/dist/esm/mastodon/filter/keyword.js +3 -5
- package/dist/esm/mastodon/filter/status.js +2 -4
- package/dist/esm/mastodon/mediaAttachment/base.js +10 -18
- package/dist/esm/mastodon/mediaAttachment/gifv.js +2 -6
- package/dist/esm/mastodon/mediaAttachment/video.js +2 -6
- package/dist/esm/mastodon/poll/index.js +9 -11
- package/dist/esm/mastodon/poll/option.js +3 -4
- package/dist/esm/mastodon/previewCard.js +15 -28
- package/dist/esm/mastodon/status/application.js +3 -6
- package/dist/esm/mastodon/status/base.js +31 -54
- package/dist/esm/mastodon/status/mention.js +4 -8
- package/dist/esm/mastodon/status/tag.js +2 -6
- package/dist/esm/note/baseContent.js +11 -12
- package/dist/esm/question.js +1 -1
- package/dist/types/accept.d.ts +2 -32
- package/dist/types/actor.d.ts +18 -288
- package/dist/types/announce.d.ts +3 -19
- package/dist/types/collection.d.ts +11 -87
- package/dist/types/follow.d.ts +1 -11
- package/dist/types/image.d.ts +1 -9
- package/dist/types/like.d.ts +27 -576
- package/dist/types/mastodon/account/field.d.ts +1 -9
- package/dist/types/mastodon/account/relationship.d.ts +2 -34
- package/dist/types/mastodon/account/source.d.ts +8 -33
- package/dist/types/mastodon/account.d.ts +22 -397
- package/dist/types/mastodon/customEmoji.d.ts +1 -13
- package/dist/types/mastodon/filter/index.d.ts +14 -49
- package/dist/types/mastodon/filter/keyword.d.ts +1 -9
- package/dist/types/mastodon/filter/status.d.ts +1 -7
- package/dist/types/mastodon/filterResult.d.ts +17 -90
- package/dist/types/mastodon/mediaAttachment/audio.d.ts +3 -68
- package/dist/types/mastodon/mediaAttachment/base.d.ts +1 -15
- package/dist/types/mastodon/mediaAttachment/gifv.d.ts +4 -129
- package/dist/types/mastodon/mediaAttachment/image.d.ts +5 -118
- package/dist/types/mastodon/mediaAttachment/index.d.ts +35 -949
- package/dist/types/mastodon/mediaAttachment/unknown.d.ts +1 -18
- package/dist/types/mastodon/mediaAttachment/video.d.ts +4 -141
- package/dist/types/mastodon/poll/index.d.ts +4 -62
- package/dist/types/mastodon/poll/option.d.ts +1 -7
- package/dist/types/mastodon/previewCard.d.ts +7 -32
- package/dist/types/mastodon/status/application.d.ts +1 -7
- package/dist/types/mastodon/status/base.d.ts +79 -1722
- package/dist/types/mastodon/status/index.d.ts +158 -4073
- package/dist/types/mastodon/status/mention.d.ts +1 -11
- package/dist/types/mastodon/status/tag.d.ts +1 -7
- package/dist/types/mastodon/visibility.d.ts +6 -1
- package/dist/types/note/attachment.d.ts +3 -29
- package/dist/types/note/baseContent.d.ts +25 -379
- package/dist/types/note/document.d.ts +1 -19
- package/dist/types/note/emoji.d.ts +2 -28
- package/dist/types/note/hashtag.d.ts +1 -9
- package/dist/types/note/mention.d.ts +1 -9
- package/dist/types/note/propertyValue.d.ts +1 -9
- package/dist/types/note/tag.d.ts +5 -47
- package/dist/types/note.d.ts +25 -382
- package/dist/types/question/note.d.ts +2 -22
- package/dist/types/question.d.ts +27 -422
- package/dist/types/reject.d.ts +2 -32
- package/dist/types/tombstone.d.ts +1 -7
- package/dist/types/undo.d.ts +30 -801
- package/package.json +3 -3
- package/src/announce.ts +1 -1
- package/src/mastodon/account/field.ts +6 -10
- package/src/mastodon/account/source.ts +4 -12
- package/src/mastodon/account.ts +71 -78
- package/src/mastodon/customEmoji.ts +8 -16
- package/src/mastodon/filter/index.ts +6 -8
- package/src/mastodon/filter/keyword.ts +5 -6
- package/src/mastodon/filter/status.ts +2 -4
- package/src/mastodon/mediaAttachment/base.ts +16 -21
- package/src/mastodon/mediaAttachment/gifv.ts +2 -6
- package/src/mastodon/mediaAttachment/video.ts +2 -6
- package/src/mastodon/poll/index.ts +13 -13
- package/src/mastodon/poll/option.ts +5 -5
- package/src/mastodon/previewCard.ts +17 -29
- package/src/mastodon/status/application.ts +5 -7
- package/src/mastodon/status/base.ts +53 -65
- package/src/mastodon/status/mention.ts +6 -9
- package/src/mastodon/status/tag.ts +2 -6
- package/src/note/baseContent.ts +13 -13
- package/src/question.ts +1 -1
|
@@ -4,15 +4,5 @@ export declare const Mention: z.ZodObject<{
|
|
|
4
4
|
username: z.ZodString;
|
|
5
5
|
url: z.ZodString;
|
|
6
6
|
acct: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
id: string;
|
|
9
|
-
url: string;
|
|
10
|
-
username: string;
|
|
11
|
-
acct: string;
|
|
12
|
-
}, {
|
|
13
|
-
id: string;
|
|
14
|
-
url: string;
|
|
15
|
-
username: string;
|
|
16
|
-
acct: string;
|
|
17
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
18
8
|
export type Mention = z.infer<typeof Mention>;
|
|
@@ -2,11 +2,5 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const Tag: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
url: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
url: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}, {
|
|
9
|
-
url: string;
|
|
10
|
-
name: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export type Tag = z.infer<typeof Tag>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Visibility: z.ZodEnum<
|
|
2
|
+
export declare const Visibility: z.ZodEnum<{
|
|
3
|
+
public: "public";
|
|
4
|
+
unlist: "unlist";
|
|
5
|
+
private: "private";
|
|
6
|
+
direct: "direct";
|
|
7
|
+
}>;
|
|
3
8
|
export type Visibility = z.infer<typeof Visibility>;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Attachment: z.ZodUnion<[z.ZodObject<{
|
|
2
|
+
export declare const Attachment: z.ZodUnion<readonly [z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"PropertyValue">;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
value: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
type: "PropertyValue";
|
|
8
|
-
value: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}, {
|
|
11
|
-
type: "PropertyValue";
|
|
12
|
-
value: string;
|
|
13
|
-
name: string;
|
|
14
|
-
}>, z.ZodObject<{
|
|
6
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
7
|
type: z.ZodLiteral<"Document">;
|
|
16
8
|
mediaType: z.ZodString;
|
|
17
9
|
url: z.ZodString;
|
|
@@ -20,23 +12,5 @@ export declare const Attachment: z.ZodUnion<[z.ZodObject<{
|
|
|
20
12
|
height: z.ZodOptional<z.ZodNumber>;
|
|
21
13
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
14
|
focalPoint: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
23
|
-
},
|
|
24
|
-
type: "Document";
|
|
25
|
-
mediaType: string;
|
|
26
|
-
url: string;
|
|
27
|
-
name?: string | null | undefined;
|
|
28
|
-
blurhash?: string | undefined;
|
|
29
|
-
width?: number | undefined;
|
|
30
|
-
height?: number | undefined;
|
|
31
|
-
focalPoint?: [number, number] | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
type: "Document";
|
|
34
|
-
mediaType: string;
|
|
35
|
-
url: string;
|
|
36
|
-
name?: string | null | undefined;
|
|
37
|
-
blurhash?: string | undefined;
|
|
38
|
-
width?: number | undefined;
|
|
39
|
-
height?: number | undefined;
|
|
40
|
-
focalPoint?: [number, number] | undefined;
|
|
41
|
-
}>]>;
|
|
15
|
+
}, z.core.$strip>]>;
|
|
42
16
|
export type Attachment = z.infer<typeof Attachment>;
|
|
@@ -3,79 +3,33 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
attributedTo: z.ZodString;
|
|
6
|
-
to: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
7
|
-
cc: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
6
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
7
|
+
cc: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
8
8
|
inReplyTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
summaryMap: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
11
|
-
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
12
|
-
contentMap: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString
|
|
13
|
-
replies: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
11
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
12
|
+
contentMap: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString>]>>>;
|
|
13
|
+
replies: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
14
14
|
id: z.ZodString;
|
|
15
15
|
type: z.ZodLiteral<"Collection">;
|
|
16
16
|
first: z.ZodObject<{
|
|
17
17
|
type: z.ZodLiteral<"CollectionPage">;
|
|
18
18
|
next: z.ZodString;
|
|
19
19
|
partOf: z.ZodString;
|
|
20
|
-
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
next: string;
|
|
24
|
-
partOf: string;
|
|
25
|
-
items?: any;
|
|
26
|
-
}, {
|
|
27
|
-
type: "CollectionPage";
|
|
28
|
-
next: string;
|
|
29
|
-
partOf: string;
|
|
30
|
-
items?: any;
|
|
31
|
-
}>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
id: string;
|
|
34
|
-
type: "Collection";
|
|
35
|
-
first: {
|
|
36
|
-
type: "CollectionPage";
|
|
37
|
-
next: string;
|
|
38
|
-
partOf: string;
|
|
39
|
-
items?: any;
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
id: string;
|
|
43
|
-
type: "Collection";
|
|
44
|
-
first: {
|
|
45
|
-
type: "CollectionPage";
|
|
46
|
-
next: string;
|
|
47
|
-
partOf: string;
|
|
48
|
-
items?: any;
|
|
49
|
-
};
|
|
50
|
-
}>, z.ZodObject<{
|
|
20
|
+
items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
23
|
id: z.ZodString;
|
|
52
24
|
type: z.ZodLiteral<"Collection">;
|
|
53
25
|
totalItems: z.ZodNumber;
|
|
54
|
-
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
type: "Collection";
|
|
58
|
-
totalItems: number;
|
|
59
|
-
items?: any;
|
|
60
|
-
}, {
|
|
61
|
-
id: string;
|
|
62
|
-
type: "Collection";
|
|
63
|
-
totalItems: number;
|
|
64
|
-
items?: any;
|
|
65
|
-
}>]>>>;
|
|
66
|
-
attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
26
|
+
items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
|
|
27
|
+
}, z.core.$strip>]>>>;
|
|
28
|
+
attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
67
29
|
type: z.ZodLiteral<"PropertyValue">;
|
|
68
30
|
name: z.ZodString;
|
|
69
31
|
value: z.ZodString;
|
|
70
|
-
},
|
|
71
|
-
type: "PropertyValue";
|
|
72
|
-
value: string;
|
|
73
|
-
name: string;
|
|
74
|
-
}, {
|
|
75
|
-
type: "PropertyValue";
|
|
76
|
-
value: string;
|
|
77
|
-
name: string;
|
|
78
|
-
}>, z.ZodObject<{
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
33
|
type: z.ZodLiteral<"Document">;
|
|
80
34
|
mediaType: z.ZodString;
|
|
81
35
|
url: z.ZodString;
|
|
@@ -84,37 +38,11 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
84
38
|
height: z.ZodOptional<z.ZodNumber>;
|
|
85
39
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
86
40
|
focalPoint: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
87
|
-
},
|
|
88
|
-
type: "Document";
|
|
89
|
-
mediaType: string;
|
|
90
|
-
url: string;
|
|
91
|
-
name?: string | null | undefined;
|
|
92
|
-
blurhash?: string | undefined;
|
|
93
|
-
width?: number | undefined;
|
|
94
|
-
height?: number | undefined;
|
|
95
|
-
focalPoint?: [number, number] | undefined;
|
|
96
|
-
}, {
|
|
97
|
-
type: "Document";
|
|
98
|
-
mediaType: string;
|
|
99
|
-
url: string;
|
|
100
|
-
name?: string | null | undefined;
|
|
101
|
-
blurhash?: string | undefined;
|
|
102
|
-
width?: number | undefined;
|
|
103
|
-
height?: number | undefined;
|
|
104
|
-
focalPoint?: [number, number] | undefined;
|
|
105
|
-
}>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
41
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
106
42
|
type: z.ZodLiteral<"PropertyValue">;
|
|
107
43
|
name: z.ZodString;
|
|
108
44
|
value: z.ZodString;
|
|
109
|
-
},
|
|
110
|
-
type: "PropertyValue";
|
|
111
|
-
value: string;
|
|
112
|
-
name: string;
|
|
113
|
-
}, {
|
|
114
|
-
type: "PropertyValue";
|
|
115
|
-
value: string;
|
|
116
|
-
name: string;
|
|
117
|
-
}>, z.ZodObject<{
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
118
46
|
type: z.ZodLiteral<"Document">;
|
|
119
47
|
mediaType: z.ZodString;
|
|
120
48
|
url: z.ZodString;
|
|
@@ -123,38 +51,12 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
123
51
|
height: z.ZodOptional<z.ZodNumber>;
|
|
124
52
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
53
|
focalPoint: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
mediaType: string;
|
|
129
|
-
url: string;
|
|
130
|
-
name?: string | null | undefined;
|
|
131
|
-
blurhash?: string | undefined;
|
|
132
|
-
width?: number | undefined;
|
|
133
|
-
height?: number | undefined;
|
|
134
|
-
focalPoint?: [number, number] | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
type: "Document";
|
|
137
|
-
mediaType: string;
|
|
138
|
-
url: string;
|
|
139
|
-
name?: string | null | undefined;
|
|
140
|
-
blurhash?: string | undefined;
|
|
141
|
-
width?: number | undefined;
|
|
142
|
-
height?: number | undefined;
|
|
143
|
-
focalPoint?: [number, number] | undefined;
|
|
144
|
-
}>]>, "many">]>>>;
|
|
145
|
-
tag: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
54
|
+
}, z.core.$strip>]>>]>>>;
|
|
55
|
+
tag: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
146
56
|
type: z.ZodLiteral<"Mention">;
|
|
147
57
|
href: z.ZodString;
|
|
148
58
|
name: z.ZodString;
|
|
149
|
-
},
|
|
150
|
-
type: "Mention";
|
|
151
|
-
name: string;
|
|
152
|
-
href: string;
|
|
153
|
-
}, {
|
|
154
|
-
type: "Mention";
|
|
155
|
-
name: string;
|
|
156
|
-
href: string;
|
|
157
|
-
}>, z.ZodObject<{
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
60
|
type: z.ZodLiteral<"Emoji">;
|
|
159
61
|
name: z.ZodString;
|
|
160
62
|
updated: z.ZodString;
|
|
@@ -162,58 +64,16 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
162
64
|
type: z.ZodLiteral<"Image">;
|
|
163
65
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
66
|
url: z.ZodString;
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
url: string;
|
|
168
|
-
mediaType?: string | null | undefined;
|
|
169
|
-
}, {
|
|
170
|
-
type: "Image";
|
|
171
|
-
url: string;
|
|
172
|
-
mediaType?: string | null | undefined;
|
|
173
|
-
}>;
|
|
174
|
-
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
type: "Emoji";
|
|
176
|
-
name: string;
|
|
177
|
-
icon: {
|
|
178
|
-
type: "Image";
|
|
179
|
-
url: string;
|
|
180
|
-
mediaType?: string | null | undefined;
|
|
181
|
-
};
|
|
182
|
-
updated: string;
|
|
183
|
-
}, {
|
|
184
|
-
type: "Emoji";
|
|
185
|
-
name: string;
|
|
186
|
-
icon: {
|
|
187
|
-
type: "Image";
|
|
188
|
-
url: string;
|
|
189
|
-
mediaType?: string | null | undefined;
|
|
190
|
-
};
|
|
191
|
-
updated: string;
|
|
192
|
-
}>, z.ZodObject<{
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
69
|
type: z.ZodLiteral<"Hashtag">;
|
|
194
70
|
href: z.ZodString;
|
|
195
71
|
name: z.ZodString;
|
|
196
|
-
},
|
|
197
|
-
type: "Hashtag";
|
|
198
|
-
name: string;
|
|
199
|
-
href: string;
|
|
200
|
-
}, {
|
|
201
|
-
type: "Hashtag";
|
|
202
|
-
name: string;
|
|
203
|
-
href: string;
|
|
204
|
-
}>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
72
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
205
73
|
type: z.ZodLiteral<"Mention">;
|
|
206
74
|
href: z.ZodString;
|
|
207
75
|
name: z.ZodString;
|
|
208
|
-
},
|
|
209
|
-
type: "Mention";
|
|
210
|
-
name: string;
|
|
211
|
-
href: string;
|
|
212
|
-
}, {
|
|
213
|
-
type: "Mention";
|
|
214
|
-
name: string;
|
|
215
|
-
href: string;
|
|
216
|
-
}>, z.ZodObject<{
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
217
77
|
type: z.ZodLiteral<"Emoji">;
|
|
218
78
|
name: z.ZodString;
|
|
219
79
|
updated: z.ZodString;
|
|
@@ -221,227 +81,13 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
221
81
|
type: z.ZodLiteral<"Image">;
|
|
222
82
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
83
|
url: z.ZodString;
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
url: string;
|
|
227
|
-
mediaType?: string | null | undefined;
|
|
228
|
-
}, {
|
|
229
|
-
type: "Image";
|
|
230
|
-
url: string;
|
|
231
|
-
mediaType?: string | null | undefined;
|
|
232
|
-
}>;
|
|
233
|
-
}, "strip", z.ZodTypeAny, {
|
|
234
|
-
type: "Emoji";
|
|
235
|
-
name: string;
|
|
236
|
-
icon: {
|
|
237
|
-
type: "Image";
|
|
238
|
-
url: string;
|
|
239
|
-
mediaType?: string | null | undefined;
|
|
240
|
-
};
|
|
241
|
-
updated: string;
|
|
242
|
-
}, {
|
|
243
|
-
type: "Emoji";
|
|
244
|
-
name: string;
|
|
245
|
-
icon: {
|
|
246
|
-
type: "Image";
|
|
247
|
-
url: string;
|
|
248
|
-
mediaType?: string | null | undefined;
|
|
249
|
-
};
|
|
250
|
-
updated: string;
|
|
251
|
-
}>, z.ZodObject<{
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
252
86
|
type: z.ZodLiteral<"Hashtag">;
|
|
253
87
|
href: z.ZodString;
|
|
254
88
|
name: z.ZodString;
|
|
255
|
-
},
|
|
256
|
-
type: "Hashtag";
|
|
257
|
-
name: string;
|
|
258
|
-
href: string;
|
|
259
|
-
}, {
|
|
260
|
-
type: "Hashtag";
|
|
261
|
-
name: string;
|
|
262
|
-
href: string;
|
|
263
|
-
}>]>, "many">]>;
|
|
89
|
+
}, z.core.$strip>]>>]>;
|
|
264
90
|
published: z.ZodString;
|
|
265
91
|
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
|
-
},
|
|
267
|
-
id: string;
|
|
268
|
-
published: string;
|
|
269
|
-
to: string | string[];
|
|
270
|
-
cc: string | string[];
|
|
271
|
-
attributedTo: string;
|
|
272
|
-
tag: {
|
|
273
|
-
type: "Emoji";
|
|
274
|
-
name: string;
|
|
275
|
-
icon: {
|
|
276
|
-
type: "Image";
|
|
277
|
-
url: string;
|
|
278
|
-
mediaType?: string | null | undefined;
|
|
279
|
-
};
|
|
280
|
-
updated: string;
|
|
281
|
-
} | {
|
|
282
|
-
type: "Mention";
|
|
283
|
-
name: string;
|
|
284
|
-
href: string;
|
|
285
|
-
} | {
|
|
286
|
-
type: "Hashtag";
|
|
287
|
-
name: string;
|
|
288
|
-
href: string;
|
|
289
|
-
} | ({
|
|
290
|
-
type: "Emoji";
|
|
291
|
-
name: string;
|
|
292
|
-
icon: {
|
|
293
|
-
type: "Image";
|
|
294
|
-
url: string;
|
|
295
|
-
mediaType?: string | null | undefined;
|
|
296
|
-
};
|
|
297
|
-
updated: string;
|
|
298
|
-
} | {
|
|
299
|
-
type: "Mention";
|
|
300
|
-
name: string;
|
|
301
|
-
href: string;
|
|
302
|
-
} | {
|
|
303
|
-
type: "Hashtag";
|
|
304
|
-
name: string;
|
|
305
|
-
href: string;
|
|
306
|
-
})[];
|
|
307
|
-
url?: string | null | undefined;
|
|
308
|
-
summary?: string | null | undefined;
|
|
309
|
-
updated?: string | null | undefined;
|
|
310
|
-
inReplyTo?: string | null | undefined;
|
|
311
|
-
summaryMap?: Record<string, string> | null | undefined;
|
|
312
|
-
content?: string | string[] | null | undefined;
|
|
313
|
-
contentMap?: string[] | Record<string, string> | null | undefined;
|
|
314
|
-
replies?: {
|
|
315
|
-
id: string;
|
|
316
|
-
type: "Collection";
|
|
317
|
-
first: {
|
|
318
|
-
type: "CollectionPage";
|
|
319
|
-
next: string;
|
|
320
|
-
partOf: string;
|
|
321
|
-
items?: any;
|
|
322
|
-
};
|
|
323
|
-
} | {
|
|
324
|
-
id: string;
|
|
325
|
-
type: "Collection";
|
|
326
|
-
totalItems: number;
|
|
327
|
-
items?: any;
|
|
328
|
-
} | null | undefined;
|
|
329
|
-
attachment?: {
|
|
330
|
-
type: "Document";
|
|
331
|
-
mediaType: string;
|
|
332
|
-
url: string;
|
|
333
|
-
name?: string | null | undefined;
|
|
334
|
-
blurhash?: string | undefined;
|
|
335
|
-
width?: number | undefined;
|
|
336
|
-
height?: number | undefined;
|
|
337
|
-
focalPoint?: [number, number] | undefined;
|
|
338
|
-
} | {
|
|
339
|
-
type: "PropertyValue";
|
|
340
|
-
value: string;
|
|
341
|
-
name: string;
|
|
342
|
-
} | ({
|
|
343
|
-
type: "Document";
|
|
344
|
-
mediaType: string;
|
|
345
|
-
url: string;
|
|
346
|
-
name?: string | null | undefined;
|
|
347
|
-
blurhash?: string | undefined;
|
|
348
|
-
width?: number | undefined;
|
|
349
|
-
height?: number | undefined;
|
|
350
|
-
focalPoint?: [number, number] | undefined;
|
|
351
|
-
} | {
|
|
352
|
-
type: "PropertyValue";
|
|
353
|
-
value: string;
|
|
354
|
-
name: string;
|
|
355
|
-
})[] | null | undefined;
|
|
356
|
-
}, {
|
|
357
|
-
id: string;
|
|
358
|
-
published: string;
|
|
359
|
-
to: string | string[];
|
|
360
|
-
cc: string | string[];
|
|
361
|
-
attributedTo: string;
|
|
362
|
-
tag: {
|
|
363
|
-
type: "Emoji";
|
|
364
|
-
name: string;
|
|
365
|
-
icon: {
|
|
366
|
-
type: "Image";
|
|
367
|
-
url: string;
|
|
368
|
-
mediaType?: string | null | undefined;
|
|
369
|
-
};
|
|
370
|
-
updated: string;
|
|
371
|
-
} | {
|
|
372
|
-
type: "Mention";
|
|
373
|
-
name: string;
|
|
374
|
-
href: string;
|
|
375
|
-
} | {
|
|
376
|
-
type: "Hashtag";
|
|
377
|
-
name: string;
|
|
378
|
-
href: string;
|
|
379
|
-
} | ({
|
|
380
|
-
type: "Emoji";
|
|
381
|
-
name: string;
|
|
382
|
-
icon: {
|
|
383
|
-
type: "Image";
|
|
384
|
-
url: string;
|
|
385
|
-
mediaType?: string | null | undefined;
|
|
386
|
-
};
|
|
387
|
-
updated: string;
|
|
388
|
-
} | {
|
|
389
|
-
type: "Mention";
|
|
390
|
-
name: string;
|
|
391
|
-
href: string;
|
|
392
|
-
} | {
|
|
393
|
-
type: "Hashtag";
|
|
394
|
-
name: string;
|
|
395
|
-
href: string;
|
|
396
|
-
})[];
|
|
397
|
-
url?: string | null | undefined;
|
|
398
|
-
summary?: string | null | undefined;
|
|
399
|
-
updated?: string | null | undefined;
|
|
400
|
-
inReplyTo?: string | null | undefined;
|
|
401
|
-
summaryMap?: Record<string, string> | null | undefined;
|
|
402
|
-
content?: string | string[] | null | undefined;
|
|
403
|
-
contentMap?: string[] | Record<string, string> | null | undefined;
|
|
404
|
-
replies?: {
|
|
405
|
-
id: string;
|
|
406
|
-
type: "Collection";
|
|
407
|
-
first: {
|
|
408
|
-
type: "CollectionPage";
|
|
409
|
-
next: string;
|
|
410
|
-
partOf: string;
|
|
411
|
-
items?: any;
|
|
412
|
-
};
|
|
413
|
-
} | {
|
|
414
|
-
id: string;
|
|
415
|
-
type: "Collection";
|
|
416
|
-
totalItems: number;
|
|
417
|
-
items?: any;
|
|
418
|
-
} | null | undefined;
|
|
419
|
-
attachment?: {
|
|
420
|
-
type: "Document";
|
|
421
|
-
mediaType: string;
|
|
422
|
-
url: string;
|
|
423
|
-
name?: string | null | undefined;
|
|
424
|
-
blurhash?: string | undefined;
|
|
425
|
-
width?: number | undefined;
|
|
426
|
-
height?: number | undefined;
|
|
427
|
-
focalPoint?: [number, number] | undefined;
|
|
428
|
-
} | {
|
|
429
|
-
type: "PropertyValue";
|
|
430
|
-
value: string;
|
|
431
|
-
name: string;
|
|
432
|
-
} | ({
|
|
433
|
-
type: "Document";
|
|
434
|
-
mediaType: string;
|
|
435
|
-
url: string;
|
|
436
|
-
name?: string | null | undefined;
|
|
437
|
-
blurhash?: string | undefined;
|
|
438
|
-
width?: number | undefined;
|
|
439
|
-
height?: number | undefined;
|
|
440
|
-
focalPoint?: [number, number] | undefined;
|
|
441
|
-
} | {
|
|
442
|
-
type: "PropertyValue";
|
|
443
|
-
value: string;
|
|
444
|
-
name: string;
|
|
445
|
-
})[] | null | undefined;
|
|
446
|
-
}>;
|
|
92
|
+
}, z.core.$strip>;
|
|
447
93
|
export type BaseContent = z.infer<typeof BaseContent>;
|
|
@@ -8,23 +8,5 @@ export declare const Document: z.ZodObject<{
|
|
|
8
8
|
height: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
10
|
focalPoint: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
11
|
-
},
|
|
12
|
-
type: "Document";
|
|
13
|
-
mediaType: string;
|
|
14
|
-
url: string;
|
|
15
|
-
name?: string | null | undefined;
|
|
16
|
-
blurhash?: string | undefined;
|
|
17
|
-
width?: number | undefined;
|
|
18
|
-
height?: number | undefined;
|
|
19
|
-
focalPoint?: [number, number] | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
type: "Document";
|
|
22
|
-
mediaType: string;
|
|
23
|
-
url: string;
|
|
24
|
-
name?: string | null | undefined;
|
|
25
|
-
blurhash?: string | undefined;
|
|
26
|
-
width?: number | undefined;
|
|
27
|
-
height?: number | undefined;
|
|
28
|
-
focalPoint?: [number, number] | undefined;
|
|
29
|
-
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
30
12
|
export type Document = z.infer<typeof Document>;
|
|
@@ -7,32 +7,6 @@ export declare const Emoji: z.ZodObject<{
|
|
|
7
7
|
type: z.ZodLiteral<"Image">;
|
|
8
8
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
url: z.ZodString;
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
url: string;
|
|
13
|
-
mediaType?: string | null | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
type: "Image";
|
|
16
|
-
url: string;
|
|
17
|
-
mediaType?: string | null | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
type: "Emoji";
|
|
21
|
-
name: string;
|
|
22
|
-
icon: {
|
|
23
|
-
type: "Image";
|
|
24
|
-
url: string;
|
|
25
|
-
mediaType?: string | null | undefined;
|
|
26
|
-
};
|
|
27
|
-
updated: string;
|
|
28
|
-
}, {
|
|
29
|
-
type: "Emoji";
|
|
30
|
-
name: string;
|
|
31
|
-
icon: {
|
|
32
|
-
type: "Image";
|
|
33
|
-
url: string;
|
|
34
|
-
mediaType?: string | null | undefined;
|
|
35
|
-
};
|
|
36
|
-
updated: string;
|
|
37
|
-
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
38
12
|
export type Emoji = z.infer<typeof Emoji>;
|
|
@@ -3,13 +3,5 @@ export declare const HashTag: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodLiteral<"Hashtag">;
|
|
4
4
|
href: z.ZodString;
|
|
5
5
|
name: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
type: "Hashtag";
|
|
8
|
-
name: string;
|
|
9
|
-
href: string;
|
|
10
|
-
}, {
|
|
11
|
-
type: "Hashtag";
|
|
12
|
-
name: string;
|
|
13
|
-
href: string;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type HashTag = z.infer<typeof HashTag>;
|
|
@@ -3,13 +3,5 @@ export declare const Mention: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodLiteral<"Mention">;
|
|
4
4
|
href: z.ZodString;
|
|
5
5
|
name: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
type: "Mention";
|
|
8
|
-
name: string;
|
|
9
|
-
href: string;
|
|
10
|
-
}, {
|
|
11
|
-
type: "Mention";
|
|
12
|
-
name: string;
|
|
13
|
-
href: string;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type Mention = z.infer<typeof Mention>;
|
|
@@ -3,13 +3,5 @@ export declare const PropertyValue: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodLiteral<"PropertyValue">;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
value: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
type: "PropertyValue";
|
|
8
|
-
value: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}, {
|
|
11
|
-
type: "PropertyValue";
|
|
12
|
-
value: string;
|
|
13
|
-
name: string;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type PropertyValue = z.infer<typeof PropertyValue>;
|