@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
package/dist/types/actor.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const Actor: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
type: z.ZodUnion<[z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
|
|
4
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
|
|
5
5
|
following: z.ZodOptional<z.ZodString>;
|
|
6
6
|
followers: z.ZodString;
|
|
7
7
|
inbox: z.ZodString;
|
|
@@ -16,115 +16,25 @@ export declare const Actor: z.ZodObject<{
|
|
|
16
16
|
id: z.ZodString;
|
|
17
17
|
owner: z.ZodString;
|
|
18
18
|
publicKeyPem: z.ZodString;
|
|
19
|
-
},
|
|
20
|
-
id: string;
|
|
21
|
-
owner: string;
|
|
22
|
-
publicKeyPem: string;
|
|
23
|
-
}, {
|
|
24
|
-
id: string;
|
|
25
|
-
owner: string;
|
|
26
|
-
publicKeyPem: string;
|
|
27
|
-
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
28
20
|
endpoints: z.ZodOptional<z.ZodObject<{
|
|
29
21
|
sharedInbox: z.ZodOptional<z.ZodString>;
|
|
30
|
-
},
|
|
31
|
-
sharedInbox?: string | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
sharedInbox?: string | undefined;
|
|
34
|
-
}>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
35
23
|
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
36
24
|
type: z.ZodLiteral<"Image">;
|
|
37
25
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
26
|
url: z.ZodString;
|
|
39
|
-
},
|
|
40
|
-
type: "Image";
|
|
41
|
-
url: string;
|
|
42
|
-
mediaType?: string | null | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
type: "Image";
|
|
45
|
-
url: string;
|
|
46
|
-
mediaType?: string | null | undefined;
|
|
47
|
-
}>>>;
|
|
27
|
+
}, z.core.$strip>>>;
|
|
48
28
|
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
29
|
type: z.ZodLiteral<"Image">;
|
|
50
30
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
31
|
url: z.ZodString;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
url: string;
|
|
55
|
-
mediaType?: string | null | undefined;
|
|
56
|
-
}, {
|
|
57
|
-
type: "Image";
|
|
58
|
-
url: string;
|
|
59
|
-
mediaType?: string | null | undefined;
|
|
60
|
-
}>>>;
|
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
id: string;
|
|
63
|
-
type: "Person" | "Service";
|
|
64
|
-
url: string;
|
|
65
|
-
followers: string;
|
|
66
|
-
inbox: string;
|
|
67
|
-
outbox: string;
|
|
68
|
-
preferredUsername: string;
|
|
69
|
-
name: string;
|
|
70
|
-
publicKey: {
|
|
71
|
-
id: string;
|
|
72
|
-
owner: string;
|
|
73
|
-
publicKeyPem: string;
|
|
74
|
-
};
|
|
75
|
-
following?: string | undefined;
|
|
76
|
-
summary?: string | null | undefined;
|
|
77
|
-
published?: string | null | undefined;
|
|
78
|
-
manuallyApprovesFollowers?: boolean | undefined;
|
|
79
|
-
endpoints?: {
|
|
80
|
-
sharedInbox?: string | undefined;
|
|
81
|
-
} | undefined;
|
|
82
|
-
icon?: {
|
|
83
|
-
type: "Image";
|
|
84
|
-
url: string;
|
|
85
|
-
mediaType?: string | null | undefined;
|
|
86
|
-
} | null | undefined;
|
|
87
|
-
image?: {
|
|
88
|
-
type: "Image";
|
|
89
|
-
url: string;
|
|
90
|
-
mediaType?: string | null | undefined;
|
|
91
|
-
} | null | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
id: string;
|
|
94
|
-
type: "Person" | "Service";
|
|
95
|
-
url: string;
|
|
96
|
-
followers: string;
|
|
97
|
-
inbox: string;
|
|
98
|
-
outbox: string;
|
|
99
|
-
preferredUsername: string;
|
|
100
|
-
name: string;
|
|
101
|
-
publicKey: {
|
|
102
|
-
id: string;
|
|
103
|
-
owner: string;
|
|
104
|
-
publicKeyPem: string;
|
|
105
|
-
};
|
|
106
|
-
following?: string | undefined;
|
|
107
|
-
summary?: string | null | undefined;
|
|
108
|
-
published?: string | null | undefined;
|
|
109
|
-
manuallyApprovesFollowers?: boolean | undefined;
|
|
110
|
-
endpoints?: {
|
|
111
|
-
sharedInbox?: string | undefined;
|
|
112
|
-
} | undefined;
|
|
113
|
-
icon?: {
|
|
114
|
-
type: "Image";
|
|
115
|
-
url: string;
|
|
116
|
-
mediaType?: string | null | undefined;
|
|
117
|
-
} | null | undefined;
|
|
118
|
-
image?: {
|
|
119
|
-
type: "Image";
|
|
120
|
-
url: string;
|
|
121
|
-
mediaType?: string | null | undefined;
|
|
122
|
-
} | null | undefined;
|
|
123
|
-
}>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
124
34
|
export type Actor = z.infer<typeof Actor>;
|
|
125
35
|
export declare const Person: z.ZodObject<{
|
|
126
36
|
id: z.ZodString;
|
|
127
|
-
type: z.ZodUnion<[z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
|
|
37
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
|
|
128
38
|
following: z.ZodOptional<z.ZodString>;
|
|
129
39
|
followers: z.ZodString;
|
|
130
40
|
inbox: z.ZodString;
|
|
@@ -139,115 +49,25 @@ export declare const Person: z.ZodObject<{
|
|
|
139
49
|
id: z.ZodString;
|
|
140
50
|
owner: z.ZodString;
|
|
141
51
|
publicKeyPem: z.ZodString;
|
|
142
|
-
},
|
|
143
|
-
id: string;
|
|
144
|
-
owner: string;
|
|
145
|
-
publicKeyPem: string;
|
|
146
|
-
}, {
|
|
147
|
-
id: string;
|
|
148
|
-
owner: string;
|
|
149
|
-
publicKeyPem: string;
|
|
150
|
-
}>;
|
|
52
|
+
}, z.core.$strip>;
|
|
151
53
|
endpoints: z.ZodOptional<z.ZodObject<{
|
|
152
54
|
sharedInbox: z.ZodOptional<z.ZodString>;
|
|
153
|
-
},
|
|
154
|
-
sharedInbox?: string | undefined;
|
|
155
|
-
}, {
|
|
156
|
-
sharedInbox?: string | undefined;
|
|
157
|
-
}>>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
158
56
|
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
159
57
|
type: z.ZodLiteral<"Image">;
|
|
160
58
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
59
|
url: z.ZodString;
|
|
162
|
-
},
|
|
163
|
-
type: "Image";
|
|
164
|
-
url: string;
|
|
165
|
-
mediaType?: string | null | undefined;
|
|
166
|
-
}, {
|
|
167
|
-
type: "Image";
|
|
168
|
-
url: string;
|
|
169
|
-
mediaType?: string | null | undefined;
|
|
170
|
-
}>>>;
|
|
60
|
+
}, z.core.$strip>>>;
|
|
171
61
|
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
172
62
|
type: z.ZodLiteral<"Image">;
|
|
173
63
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
64
|
url: z.ZodString;
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
url: string;
|
|
178
|
-
mediaType?: string | null | undefined;
|
|
179
|
-
}, {
|
|
180
|
-
type: "Image";
|
|
181
|
-
url: string;
|
|
182
|
-
mediaType?: string | null | undefined;
|
|
183
|
-
}>>>;
|
|
184
|
-
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
id: string;
|
|
186
|
-
type: "Person" | "Service";
|
|
187
|
-
url: string;
|
|
188
|
-
followers: string;
|
|
189
|
-
inbox: string;
|
|
190
|
-
outbox: string;
|
|
191
|
-
preferredUsername: string;
|
|
192
|
-
name: string;
|
|
193
|
-
publicKey: {
|
|
194
|
-
id: string;
|
|
195
|
-
owner: string;
|
|
196
|
-
publicKeyPem: string;
|
|
197
|
-
};
|
|
198
|
-
following?: string | undefined;
|
|
199
|
-
summary?: string | null | undefined;
|
|
200
|
-
published?: string | null | undefined;
|
|
201
|
-
manuallyApprovesFollowers?: boolean | undefined;
|
|
202
|
-
endpoints?: {
|
|
203
|
-
sharedInbox?: string | undefined;
|
|
204
|
-
} | undefined;
|
|
205
|
-
icon?: {
|
|
206
|
-
type: "Image";
|
|
207
|
-
url: string;
|
|
208
|
-
mediaType?: string | null | undefined;
|
|
209
|
-
} | null | undefined;
|
|
210
|
-
image?: {
|
|
211
|
-
type: "Image";
|
|
212
|
-
url: string;
|
|
213
|
-
mediaType?: string | null | undefined;
|
|
214
|
-
} | null | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
id: string;
|
|
217
|
-
type: "Person" | "Service";
|
|
218
|
-
url: string;
|
|
219
|
-
followers: string;
|
|
220
|
-
inbox: string;
|
|
221
|
-
outbox: string;
|
|
222
|
-
preferredUsername: string;
|
|
223
|
-
name: string;
|
|
224
|
-
publicKey: {
|
|
225
|
-
id: string;
|
|
226
|
-
owner: string;
|
|
227
|
-
publicKeyPem: string;
|
|
228
|
-
};
|
|
229
|
-
following?: string | undefined;
|
|
230
|
-
summary?: string | null | undefined;
|
|
231
|
-
published?: string | null | undefined;
|
|
232
|
-
manuallyApprovesFollowers?: boolean | undefined;
|
|
233
|
-
endpoints?: {
|
|
234
|
-
sharedInbox?: string | undefined;
|
|
235
|
-
} | undefined;
|
|
236
|
-
icon?: {
|
|
237
|
-
type: "Image";
|
|
238
|
-
url: string;
|
|
239
|
-
mediaType?: string | null | undefined;
|
|
240
|
-
} | null | undefined;
|
|
241
|
-
image?: {
|
|
242
|
-
type: "Image";
|
|
243
|
-
url: string;
|
|
244
|
-
mediaType?: string | null | undefined;
|
|
245
|
-
} | null | undefined;
|
|
246
|
-
}>;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
247
67
|
export type Person = z.infer<typeof Person>;
|
|
248
68
|
export declare const Service: z.ZodObject<{
|
|
249
69
|
id: z.ZodString;
|
|
250
|
-
type: z.ZodUnion<[z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
|
|
70
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
|
|
251
71
|
following: z.ZodOptional<z.ZodString>;
|
|
252
72
|
followers: z.ZodString;
|
|
253
73
|
inbox: z.ZodString;
|
|
@@ -262,109 +82,19 @@ export declare const Service: z.ZodObject<{
|
|
|
262
82
|
id: z.ZodString;
|
|
263
83
|
owner: z.ZodString;
|
|
264
84
|
publicKeyPem: z.ZodString;
|
|
265
|
-
},
|
|
266
|
-
id: string;
|
|
267
|
-
owner: string;
|
|
268
|
-
publicKeyPem: string;
|
|
269
|
-
}, {
|
|
270
|
-
id: string;
|
|
271
|
-
owner: string;
|
|
272
|
-
publicKeyPem: string;
|
|
273
|
-
}>;
|
|
85
|
+
}, z.core.$strip>;
|
|
274
86
|
endpoints: z.ZodOptional<z.ZodObject<{
|
|
275
87
|
sharedInbox: z.ZodOptional<z.ZodString>;
|
|
276
|
-
},
|
|
277
|
-
sharedInbox?: string | undefined;
|
|
278
|
-
}, {
|
|
279
|
-
sharedInbox?: string | undefined;
|
|
280
|
-
}>>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
281
89
|
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
282
90
|
type: z.ZodLiteral<"Image">;
|
|
283
91
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
92
|
url: z.ZodString;
|
|
285
|
-
},
|
|
286
|
-
type: "Image";
|
|
287
|
-
url: string;
|
|
288
|
-
mediaType?: string | null | undefined;
|
|
289
|
-
}, {
|
|
290
|
-
type: "Image";
|
|
291
|
-
url: string;
|
|
292
|
-
mediaType?: string | null | undefined;
|
|
293
|
-
}>>>;
|
|
93
|
+
}, z.core.$strip>>>;
|
|
294
94
|
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
295
95
|
type: z.ZodLiteral<"Image">;
|
|
296
96
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
97
|
url: z.ZodString;
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
url: string;
|
|
301
|
-
mediaType?: string | null | undefined;
|
|
302
|
-
}, {
|
|
303
|
-
type: "Image";
|
|
304
|
-
url: string;
|
|
305
|
-
mediaType?: string | null | undefined;
|
|
306
|
-
}>>>;
|
|
307
|
-
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
id: string;
|
|
309
|
-
type: "Person" | "Service";
|
|
310
|
-
url: string;
|
|
311
|
-
followers: string;
|
|
312
|
-
inbox: string;
|
|
313
|
-
outbox: string;
|
|
314
|
-
preferredUsername: string;
|
|
315
|
-
name: string;
|
|
316
|
-
publicKey: {
|
|
317
|
-
id: string;
|
|
318
|
-
owner: string;
|
|
319
|
-
publicKeyPem: string;
|
|
320
|
-
};
|
|
321
|
-
following?: string | undefined;
|
|
322
|
-
summary?: string | null | undefined;
|
|
323
|
-
published?: string | null | undefined;
|
|
324
|
-
manuallyApprovesFollowers?: boolean | undefined;
|
|
325
|
-
endpoints?: {
|
|
326
|
-
sharedInbox?: string | undefined;
|
|
327
|
-
} | undefined;
|
|
328
|
-
icon?: {
|
|
329
|
-
type: "Image";
|
|
330
|
-
url: string;
|
|
331
|
-
mediaType?: string | null | undefined;
|
|
332
|
-
} | null | undefined;
|
|
333
|
-
image?: {
|
|
334
|
-
type: "Image";
|
|
335
|
-
url: string;
|
|
336
|
-
mediaType?: string | null | undefined;
|
|
337
|
-
} | null | undefined;
|
|
338
|
-
}, {
|
|
339
|
-
id: string;
|
|
340
|
-
type: "Person" | "Service";
|
|
341
|
-
url: string;
|
|
342
|
-
followers: string;
|
|
343
|
-
inbox: string;
|
|
344
|
-
outbox: string;
|
|
345
|
-
preferredUsername: string;
|
|
346
|
-
name: string;
|
|
347
|
-
publicKey: {
|
|
348
|
-
id: string;
|
|
349
|
-
owner: string;
|
|
350
|
-
publicKeyPem: string;
|
|
351
|
-
};
|
|
352
|
-
following?: string | undefined;
|
|
353
|
-
summary?: string | null | undefined;
|
|
354
|
-
published?: string | null | undefined;
|
|
355
|
-
manuallyApprovesFollowers?: boolean | undefined;
|
|
356
|
-
endpoints?: {
|
|
357
|
-
sharedInbox?: string | undefined;
|
|
358
|
-
} | undefined;
|
|
359
|
-
icon?: {
|
|
360
|
-
type: "Image";
|
|
361
|
-
url: string;
|
|
362
|
-
mediaType?: string | null | undefined;
|
|
363
|
-
} | null | undefined;
|
|
364
|
-
image?: {
|
|
365
|
-
type: "Image";
|
|
366
|
-
url: string;
|
|
367
|
-
mediaType?: string | null | undefined;
|
|
368
|
-
} | null | undefined;
|
|
369
|
-
}>;
|
|
98
|
+
}, z.core.$strip>>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
370
100
|
export type Service = z.infer<typeof Service>;
|
package/dist/types/announce.d.ts
CHANGED
|
@@ -4,24 +4,8 @@ export declare const Announce: z.ZodObject<{
|
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
actor: z.ZodString;
|
|
6
6
|
published: z.ZodString;
|
|
7
|
-
to: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
8
|
-
cc: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
7
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
8
|
+
cc: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
9
9
|
object: z.ZodString;
|
|
10
|
-
},
|
|
11
|
-
object: string;
|
|
12
|
-
id: string;
|
|
13
|
-
type: "Announce";
|
|
14
|
-
actor: string;
|
|
15
|
-
published: string;
|
|
16
|
-
to: string | string[];
|
|
17
|
-
cc: string | string[];
|
|
18
|
-
}, {
|
|
19
|
-
object: string;
|
|
20
|
-
id: string;
|
|
21
|
-
type: "Announce";
|
|
22
|
-
actor: string;
|
|
23
|
-
published: string;
|
|
24
|
-
to: string | string[];
|
|
25
|
-
cc: string | string[];
|
|
26
|
-
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
27
11
|
export type Announce = z.infer<typeof Announce>;
|
|
@@ -6,106 +6,30 @@ export declare const CollectionWithFirstPage: z.ZodObject<{
|
|
|
6
6
|
type: z.ZodLiteral<"CollectionPage">;
|
|
7
7
|
next: z.ZodString;
|
|
8
8
|
partOf: z.ZodString;
|
|
9
|
-
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
next: string;
|
|
13
|
-
partOf: string;
|
|
14
|
-
items?: any;
|
|
15
|
-
}, {
|
|
16
|
-
type: "CollectionPage";
|
|
17
|
-
next: string;
|
|
18
|
-
partOf: string;
|
|
19
|
-
items?: any;
|
|
20
|
-
}>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
id: string;
|
|
23
|
-
type: "Collection";
|
|
24
|
-
first: {
|
|
25
|
-
type: "CollectionPage";
|
|
26
|
-
next: string;
|
|
27
|
-
partOf: string;
|
|
28
|
-
items?: any;
|
|
29
|
-
};
|
|
30
|
-
}, {
|
|
31
|
-
id: string;
|
|
32
|
-
type: "Collection";
|
|
33
|
-
first: {
|
|
34
|
-
type: "CollectionPage";
|
|
35
|
-
next: string;
|
|
36
|
-
partOf: string;
|
|
37
|
-
items?: any;
|
|
38
|
-
};
|
|
39
|
-
}>;
|
|
9
|
+
items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
40
12
|
export type CollectionWithFirstPage = z.infer<typeof CollectionWithFirstPage>;
|
|
41
13
|
export declare const CollectionWithItems: z.ZodObject<{
|
|
42
14
|
id: z.ZodString;
|
|
43
15
|
type: z.ZodLiteral<"Collection">;
|
|
44
16
|
totalItems: z.ZodNumber;
|
|
45
|
-
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny
|
|
46
|
-
},
|
|
47
|
-
id: string;
|
|
48
|
-
type: "Collection";
|
|
49
|
-
totalItems: number;
|
|
50
|
-
items?: any;
|
|
51
|
-
}, {
|
|
52
|
-
id: string;
|
|
53
|
-
type: "Collection";
|
|
54
|
-
totalItems: number;
|
|
55
|
-
items?: any;
|
|
56
|
-
}>;
|
|
17
|
+
items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
|
|
18
|
+
}, z.core.$strip>;
|
|
57
19
|
export type CollectionWithItems = z.infer<typeof CollectionWithItems>;
|
|
58
|
-
export declare const Collection: z.ZodUnion<[z.ZodObject<{
|
|
20
|
+
export declare const Collection: z.ZodUnion<readonly [z.ZodObject<{
|
|
59
21
|
id: z.ZodString;
|
|
60
22
|
type: z.ZodLiteral<"Collection">;
|
|
61
23
|
first: z.ZodObject<{
|
|
62
24
|
type: z.ZodLiteral<"CollectionPage">;
|
|
63
25
|
next: z.ZodString;
|
|
64
26
|
partOf: z.ZodString;
|
|
65
|
-
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
next: string;
|
|
69
|
-
partOf: string;
|
|
70
|
-
items?: any;
|
|
71
|
-
}, {
|
|
72
|
-
type: "CollectionPage";
|
|
73
|
-
next: string;
|
|
74
|
-
partOf: string;
|
|
75
|
-
items?: any;
|
|
76
|
-
}>;
|
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
id: string;
|
|
79
|
-
type: "Collection";
|
|
80
|
-
first: {
|
|
81
|
-
type: "CollectionPage";
|
|
82
|
-
next: string;
|
|
83
|
-
partOf: string;
|
|
84
|
-
items?: any;
|
|
85
|
-
};
|
|
86
|
-
}, {
|
|
87
|
-
id: string;
|
|
88
|
-
type: "Collection";
|
|
89
|
-
first: {
|
|
90
|
-
type: "CollectionPage";
|
|
91
|
-
next: string;
|
|
92
|
-
partOf: string;
|
|
93
|
-
items?: any;
|
|
94
|
-
};
|
|
95
|
-
}>, z.ZodObject<{
|
|
27
|
+
items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
30
|
id: z.ZodString;
|
|
97
31
|
type: z.ZodLiteral<"Collection">;
|
|
98
32
|
totalItems: z.ZodNumber;
|
|
99
|
-
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny
|
|
100
|
-
},
|
|
101
|
-
id: string;
|
|
102
|
-
type: "Collection";
|
|
103
|
-
totalItems: number;
|
|
104
|
-
items?: any;
|
|
105
|
-
}, {
|
|
106
|
-
id: string;
|
|
107
|
-
type: "Collection";
|
|
108
|
-
totalItems: number;
|
|
109
|
-
items?: any;
|
|
110
|
-
}>]>;
|
|
33
|
+
items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
|
|
34
|
+
}, z.core.$strip>]>;
|
|
111
35
|
export type Collection = z.infer<typeof Collection>;
|
package/dist/types/follow.d.ts
CHANGED
|
@@ -5,15 +5,5 @@ export declare const Follow: z.ZodObject<{
|
|
|
5
5
|
type: z.ZodLiteral<"Follow">;
|
|
6
6
|
actor: z.ZodString;
|
|
7
7
|
object: z.ZodString;
|
|
8
|
-
},
|
|
9
|
-
object: string;
|
|
10
|
-
id: string;
|
|
11
|
-
type: "Follow";
|
|
12
|
-
actor: string;
|
|
13
|
-
}, {
|
|
14
|
-
object: string;
|
|
15
|
-
id: string;
|
|
16
|
-
type: "Follow";
|
|
17
|
-
actor: string;
|
|
18
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
19
9
|
export type Follow = z.infer<typeof Follow>;
|
package/dist/types/image.d.ts
CHANGED
|
@@ -3,13 +3,5 @@ export declare const Image: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodLiteral<"Image">;
|
|
4
4
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
url: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
type: "Image";
|
|
8
|
-
url: string;
|
|
9
|
-
mediaType?: string | null | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
type: "Image";
|
|
12
|
-
url: string;
|
|
13
|
-
mediaType?: string | null | undefined;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type Image = z.infer<typeof Image>;
|