@llun/activities.schema 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/dist/cjs/image.js +1 -1
- package/dist/esm/image.js +1 -1
- package/dist/types/image.d.ts +3 -3
- package/dist/types/like.d.ts +18 -18
- package/dist/types/note/baseContent.d.ts +14 -14
- package/dist/types/note/emoji.d.ts +5 -5
- package/dist/types/note/tag.d.ts +5 -5
- package/dist/types/note.d.ts +14 -14
- package/dist/types/person.d.ts +10 -10
- package/dist/types/question.d.ts +14 -14
- package/dist/types/undo.d.ts +22 -22
- package/package.json +2 -2
- package/src/image.ts +1 -1
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/dist/cjs/image.js
CHANGED
package/dist/esm/image.js
CHANGED
package/dist/types/image.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const Image: z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"Image">;
|
|
4
|
-
mediaType: z.ZodString
|
|
4
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
url: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
type: "Image";
|
|
8
|
-
mediaType: string;
|
|
9
8
|
url: string;
|
|
9
|
+
mediaType?: string | null | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
type: "Image";
|
|
12
|
-
mediaType: string;
|
|
13
12
|
url: string;
|
|
13
|
+
mediaType?: string | null | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type Image = z.infer<typeof Image>;
|
package/dist/types/like.d.ts
CHANGED
|
@@ -165,16 +165,16 @@ export declare const Like: z.ZodObject<{
|
|
|
165
165
|
updated: z.ZodString;
|
|
166
166
|
icon: z.ZodObject<{
|
|
167
167
|
type: z.ZodLiteral<"Image">;
|
|
168
|
-
mediaType: z.ZodString
|
|
168
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
169
|
url: z.ZodString;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
171
|
type: "Image";
|
|
172
|
-
mediaType: string;
|
|
173
172
|
url: string;
|
|
173
|
+
mediaType?: string | null | undefined;
|
|
174
174
|
}, {
|
|
175
175
|
type: "Image";
|
|
176
|
-
mediaType: string;
|
|
177
176
|
url: string;
|
|
177
|
+
mediaType?: string | null | undefined;
|
|
178
178
|
}>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
type: "Emoji";
|
|
@@ -182,8 +182,8 @@ export declare const Like: z.ZodObject<{
|
|
|
182
182
|
updated: string;
|
|
183
183
|
icon: {
|
|
184
184
|
type: "Image";
|
|
185
|
-
mediaType: string;
|
|
186
185
|
url: string;
|
|
186
|
+
mediaType?: string | null | undefined;
|
|
187
187
|
};
|
|
188
188
|
}, {
|
|
189
189
|
type: "Emoji";
|
|
@@ -191,8 +191,8 @@ export declare const Like: z.ZodObject<{
|
|
|
191
191
|
updated: string;
|
|
192
192
|
icon: {
|
|
193
193
|
type: "Image";
|
|
194
|
-
mediaType: string;
|
|
195
194
|
url: string;
|
|
195
|
+
mediaType?: string | null | undefined;
|
|
196
196
|
};
|
|
197
197
|
}>, z.ZodObject<{
|
|
198
198
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -224,16 +224,16 @@ export declare const Like: z.ZodObject<{
|
|
|
224
224
|
updated: z.ZodString;
|
|
225
225
|
icon: z.ZodObject<{
|
|
226
226
|
type: z.ZodLiteral<"Image">;
|
|
227
|
-
mediaType: z.ZodString
|
|
227
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
228
|
url: z.ZodString;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
230
|
type: "Image";
|
|
231
|
-
mediaType: string;
|
|
232
231
|
url: string;
|
|
232
|
+
mediaType?: string | null | undefined;
|
|
233
233
|
}, {
|
|
234
234
|
type: "Image";
|
|
235
|
-
mediaType: string;
|
|
236
235
|
url: string;
|
|
236
|
+
mediaType?: string | null | undefined;
|
|
237
237
|
}>;
|
|
238
238
|
}, "strip", z.ZodTypeAny, {
|
|
239
239
|
type: "Emoji";
|
|
@@ -241,8 +241,8 @@ export declare const Like: z.ZodObject<{
|
|
|
241
241
|
updated: string;
|
|
242
242
|
icon: {
|
|
243
243
|
type: "Image";
|
|
244
|
-
mediaType: string;
|
|
245
244
|
url: string;
|
|
245
|
+
mediaType?: string | null | undefined;
|
|
246
246
|
};
|
|
247
247
|
}, {
|
|
248
248
|
type: "Emoji";
|
|
@@ -250,8 +250,8 @@ export declare const Like: z.ZodObject<{
|
|
|
250
250
|
updated: string;
|
|
251
251
|
icon: {
|
|
252
252
|
type: "Image";
|
|
253
|
-
mediaType: string;
|
|
254
253
|
url: string;
|
|
254
|
+
mediaType?: string | null | undefined;
|
|
255
255
|
};
|
|
256
256
|
}>, z.ZodObject<{
|
|
257
257
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -283,8 +283,8 @@ export declare const Like: z.ZodObject<{
|
|
|
283
283
|
updated: string;
|
|
284
284
|
icon: {
|
|
285
285
|
type: "Image";
|
|
286
|
-
mediaType: string;
|
|
287
286
|
url: string;
|
|
287
|
+
mediaType?: string | null | undefined;
|
|
288
288
|
};
|
|
289
289
|
} | {
|
|
290
290
|
type: "Mention";
|
|
@@ -300,8 +300,8 @@ export declare const Like: z.ZodObject<{
|
|
|
300
300
|
updated: string;
|
|
301
301
|
icon: {
|
|
302
302
|
type: "Image";
|
|
303
|
-
mediaType: string;
|
|
304
303
|
url: string;
|
|
304
|
+
mediaType?: string | null | undefined;
|
|
305
305
|
};
|
|
306
306
|
} | {
|
|
307
307
|
type: "Mention";
|
|
@@ -374,8 +374,8 @@ export declare const Like: z.ZodObject<{
|
|
|
374
374
|
updated: string;
|
|
375
375
|
icon: {
|
|
376
376
|
type: "Image";
|
|
377
|
-
mediaType: string;
|
|
378
377
|
url: string;
|
|
378
|
+
mediaType?: string | null | undefined;
|
|
379
379
|
};
|
|
380
380
|
} | {
|
|
381
381
|
type: "Mention";
|
|
@@ -391,8 +391,8 @@ export declare const Like: z.ZodObject<{
|
|
|
391
391
|
updated: string;
|
|
392
392
|
icon: {
|
|
393
393
|
type: "Image";
|
|
394
|
-
mediaType: string;
|
|
395
394
|
url: string;
|
|
395
|
+
mediaType?: string | null | undefined;
|
|
396
396
|
};
|
|
397
397
|
} | {
|
|
398
398
|
type: "Mention";
|
|
@@ -467,8 +467,8 @@ export declare const Like: z.ZodObject<{
|
|
|
467
467
|
updated: string;
|
|
468
468
|
icon: {
|
|
469
469
|
type: "Image";
|
|
470
|
-
mediaType: string;
|
|
471
470
|
url: string;
|
|
471
|
+
mediaType?: string | null | undefined;
|
|
472
472
|
};
|
|
473
473
|
} | {
|
|
474
474
|
type: "Mention";
|
|
@@ -484,8 +484,8 @@ export declare const Like: z.ZodObject<{
|
|
|
484
484
|
updated: string;
|
|
485
485
|
icon: {
|
|
486
486
|
type: "Image";
|
|
487
|
-
mediaType: string;
|
|
488
487
|
url: string;
|
|
488
|
+
mediaType?: string | null | undefined;
|
|
489
489
|
};
|
|
490
490
|
} | {
|
|
491
491
|
type: "Mention";
|
|
@@ -563,8 +563,8 @@ export declare const Like: z.ZodObject<{
|
|
|
563
563
|
updated: string;
|
|
564
564
|
icon: {
|
|
565
565
|
type: "Image";
|
|
566
|
-
mediaType: string;
|
|
567
566
|
url: string;
|
|
567
|
+
mediaType?: string | null | undefined;
|
|
568
568
|
};
|
|
569
569
|
} | {
|
|
570
570
|
type: "Mention";
|
|
@@ -580,8 +580,8 @@ export declare const Like: z.ZodObject<{
|
|
|
580
580
|
updated: string;
|
|
581
581
|
icon: {
|
|
582
582
|
type: "Image";
|
|
583
|
-
mediaType: string;
|
|
584
583
|
url: string;
|
|
584
|
+
mediaType?: string | null | undefined;
|
|
585
585
|
};
|
|
586
586
|
} | {
|
|
587
587
|
type: "Mention";
|
|
@@ -160,16 +160,16 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
160
160
|
updated: z.ZodString;
|
|
161
161
|
icon: z.ZodObject<{
|
|
162
162
|
type: z.ZodLiteral<"Image">;
|
|
163
|
-
mediaType: z.ZodString
|
|
163
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
164
|
url: z.ZodString;
|
|
165
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
166
|
type: "Image";
|
|
167
|
-
mediaType: string;
|
|
168
167
|
url: string;
|
|
168
|
+
mediaType?: string | null | undefined;
|
|
169
169
|
}, {
|
|
170
170
|
type: "Image";
|
|
171
|
-
mediaType: string;
|
|
172
171
|
url: string;
|
|
172
|
+
mediaType?: string | null | undefined;
|
|
173
173
|
}>;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
175
|
type: "Emoji";
|
|
@@ -177,8 +177,8 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
177
177
|
updated: string;
|
|
178
178
|
icon: {
|
|
179
179
|
type: "Image";
|
|
180
|
-
mediaType: string;
|
|
181
180
|
url: string;
|
|
181
|
+
mediaType?: string | null | undefined;
|
|
182
182
|
};
|
|
183
183
|
}, {
|
|
184
184
|
type: "Emoji";
|
|
@@ -186,8 +186,8 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
186
186
|
updated: string;
|
|
187
187
|
icon: {
|
|
188
188
|
type: "Image";
|
|
189
|
-
mediaType: string;
|
|
190
189
|
url: string;
|
|
190
|
+
mediaType?: string | null | undefined;
|
|
191
191
|
};
|
|
192
192
|
}>, z.ZodObject<{
|
|
193
193
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -219,16 +219,16 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
219
219
|
updated: z.ZodString;
|
|
220
220
|
icon: z.ZodObject<{
|
|
221
221
|
type: z.ZodLiteral<"Image">;
|
|
222
|
-
mediaType: z.ZodString
|
|
222
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
223
|
url: z.ZodString;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
225
|
type: "Image";
|
|
226
|
-
mediaType: string;
|
|
227
226
|
url: string;
|
|
227
|
+
mediaType?: string | null | undefined;
|
|
228
228
|
}, {
|
|
229
229
|
type: "Image";
|
|
230
|
-
mediaType: string;
|
|
231
230
|
url: string;
|
|
231
|
+
mediaType?: string | null | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
234
|
type: "Emoji";
|
|
@@ -236,8 +236,8 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
236
236
|
updated: string;
|
|
237
237
|
icon: {
|
|
238
238
|
type: "Image";
|
|
239
|
-
mediaType: string;
|
|
240
239
|
url: string;
|
|
240
|
+
mediaType?: string | null | undefined;
|
|
241
241
|
};
|
|
242
242
|
}, {
|
|
243
243
|
type: "Emoji";
|
|
@@ -245,8 +245,8 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
245
245
|
updated: string;
|
|
246
246
|
icon: {
|
|
247
247
|
type: "Image";
|
|
248
|
-
mediaType: string;
|
|
249
248
|
url: string;
|
|
249
|
+
mediaType?: string | null | undefined;
|
|
250
250
|
};
|
|
251
251
|
}>, z.ZodObject<{
|
|
252
252
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -275,8 +275,8 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
275
275
|
updated: string;
|
|
276
276
|
icon: {
|
|
277
277
|
type: "Image";
|
|
278
|
-
mediaType: string;
|
|
279
278
|
url: string;
|
|
279
|
+
mediaType?: string | null | undefined;
|
|
280
280
|
};
|
|
281
281
|
} | {
|
|
282
282
|
type: "Mention";
|
|
@@ -292,8 +292,8 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
292
292
|
updated: string;
|
|
293
293
|
icon: {
|
|
294
294
|
type: "Image";
|
|
295
|
-
mediaType: string;
|
|
296
295
|
url: string;
|
|
296
|
+
mediaType?: string | null | undefined;
|
|
297
297
|
};
|
|
298
298
|
} | {
|
|
299
299
|
type: "Mention";
|
|
@@ -365,8 +365,8 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
365
365
|
updated: string;
|
|
366
366
|
icon: {
|
|
367
367
|
type: "Image";
|
|
368
|
-
mediaType: string;
|
|
369
368
|
url: string;
|
|
369
|
+
mediaType?: string | null | undefined;
|
|
370
370
|
};
|
|
371
371
|
} | {
|
|
372
372
|
type: "Mention";
|
|
@@ -382,8 +382,8 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
382
382
|
updated: string;
|
|
383
383
|
icon: {
|
|
384
384
|
type: "Image";
|
|
385
|
-
mediaType: string;
|
|
386
385
|
url: string;
|
|
386
|
+
mediaType?: string | null | undefined;
|
|
387
387
|
};
|
|
388
388
|
} | {
|
|
389
389
|
type: "Mention";
|
|
@@ -5,16 +5,16 @@ export declare const Emoji: z.ZodObject<{
|
|
|
5
5
|
updated: z.ZodString;
|
|
6
6
|
icon: z.ZodObject<{
|
|
7
7
|
type: z.ZodLiteral<"Image">;
|
|
8
|
-
mediaType: z.ZodString
|
|
8
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
url: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
type: "Image";
|
|
12
|
-
mediaType: string;
|
|
13
12
|
url: string;
|
|
13
|
+
mediaType?: string | null | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
type: "Image";
|
|
16
|
-
mediaType: string;
|
|
17
16
|
url: string;
|
|
17
|
+
mediaType?: string | null | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
type: "Emoji";
|
|
@@ -22,8 +22,8 @@ export declare const Emoji: z.ZodObject<{
|
|
|
22
22
|
updated: string;
|
|
23
23
|
icon: {
|
|
24
24
|
type: "Image";
|
|
25
|
-
mediaType: string;
|
|
26
25
|
url: string;
|
|
26
|
+
mediaType?: string | null | undefined;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
29
29
|
type: "Emoji";
|
|
@@ -31,8 +31,8 @@ export declare const Emoji: z.ZodObject<{
|
|
|
31
31
|
updated: string;
|
|
32
32
|
icon: {
|
|
33
33
|
type: "Image";
|
|
34
|
-
mediaType: string;
|
|
35
34
|
url: string;
|
|
35
|
+
mediaType?: string | null | undefined;
|
|
36
36
|
};
|
|
37
37
|
}>;
|
|
38
38
|
export type Emoji = z.infer<typeof Emoji>;
|
package/dist/types/note/tag.d.ts
CHANGED
|
@@ -17,16 +17,16 @@ export declare const Tag: z.ZodUnion<[z.ZodObject<{
|
|
|
17
17
|
updated: z.ZodString;
|
|
18
18
|
icon: z.ZodObject<{
|
|
19
19
|
type: z.ZodLiteral<"Image">;
|
|
20
|
-
mediaType: z.ZodString
|
|
20
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
url: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
type: "Image";
|
|
24
|
-
mediaType: string;
|
|
25
24
|
url: string;
|
|
25
|
+
mediaType?: string | null | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
type: "Image";
|
|
28
|
-
mediaType: string;
|
|
29
28
|
url: string;
|
|
29
|
+
mediaType?: string | null | undefined;
|
|
30
30
|
}>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
type: "Emoji";
|
|
@@ -34,8 +34,8 @@ export declare const Tag: z.ZodUnion<[z.ZodObject<{
|
|
|
34
34
|
updated: string;
|
|
35
35
|
icon: {
|
|
36
36
|
type: "Image";
|
|
37
|
-
mediaType: string;
|
|
38
37
|
url: string;
|
|
38
|
+
mediaType?: string | null | undefined;
|
|
39
39
|
};
|
|
40
40
|
}, {
|
|
41
41
|
type: "Emoji";
|
|
@@ -43,8 +43,8 @@ export declare const Tag: z.ZodUnion<[z.ZodObject<{
|
|
|
43
43
|
updated: string;
|
|
44
44
|
icon: {
|
|
45
45
|
type: "Image";
|
|
46
|
-
mediaType: string;
|
|
47
46
|
url: string;
|
|
47
|
+
mediaType?: string | null | undefined;
|
|
48
48
|
};
|
|
49
49
|
}>, z.ZodObject<{
|
|
50
50
|
type: z.ZodLiteral<"Hashtag">;
|
package/dist/types/note.d.ts
CHANGED
|
@@ -161,16 +161,16 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
161
161
|
updated: z.ZodString;
|
|
162
162
|
icon: z.ZodObject<{
|
|
163
163
|
type: z.ZodLiteral<"Image">;
|
|
164
|
-
mediaType: z.ZodString
|
|
164
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
165
|
url: z.ZodString;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
167
|
type: "Image";
|
|
168
|
-
mediaType: string;
|
|
169
168
|
url: string;
|
|
169
|
+
mediaType?: string | null | undefined;
|
|
170
170
|
}, {
|
|
171
171
|
type: "Image";
|
|
172
|
-
mediaType: string;
|
|
173
172
|
url: string;
|
|
173
|
+
mediaType?: string | null | undefined;
|
|
174
174
|
}>;
|
|
175
175
|
}, "strip", z.ZodTypeAny, {
|
|
176
176
|
type: "Emoji";
|
|
@@ -178,8 +178,8 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
178
178
|
updated: string;
|
|
179
179
|
icon: {
|
|
180
180
|
type: "Image";
|
|
181
|
-
mediaType: string;
|
|
182
181
|
url: string;
|
|
182
|
+
mediaType?: string | null | undefined;
|
|
183
183
|
};
|
|
184
184
|
}, {
|
|
185
185
|
type: "Emoji";
|
|
@@ -187,8 +187,8 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
187
187
|
updated: string;
|
|
188
188
|
icon: {
|
|
189
189
|
type: "Image";
|
|
190
|
-
mediaType: string;
|
|
191
190
|
url: string;
|
|
191
|
+
mediaType?: string | null | undefined;
|
|
192
192
|
};
|
|
193
193
|
}>, z.ZodObject<{
|
|
194
194
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -220,16 +220,16 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
220
220
|
updated: z.ZodString;
|
|
221
221
|
icon: z.ZodObject<{
|
|
222
222
|
type: z.ZodLiteral<"Image">;
|
|
223
|
-
mediaType: z.ZodString
|
|
223
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
224
|
url: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
type: "Image";
|
|
227
|
-
mediaType: string;
|
|
228
227
|
url: string;
|
|
228
|
+
mediaType?: string | null | undefined;
|
|
229
229
|
}, {
|
|
230
230
|
type: "Image";
|
|
231
|
-
mediaType: string;
|
|
232
231
|
url: string;
|
|
232
|
+
mediaType?: string | null | undefined;
|
|
233
233
|
}>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
235
|
type: "Emoji";
|
|
@@ -237,8 +237,8 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
237
237
|
updated: string;
|
|
238
238
|
icon: {
|
|
239
239
|
type: "Image";
|
|
240
|
-
mediaType: string;
|
|
241
240
|
url: string;
|
|
241
|
+
mediaType?: string | null | undefined;
|
|
242
242
|
};
|
|
243
243
|
}, {
|
|
244
244
|
type: "Emoji";
|
|
@@ -246,8 +246,8 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
246
246
|
updated: string;
|
|
247
247
|
icon: {
|
|
248
248
|
type: "Image";
|
|
249
|
-
mediaType: string;
|
|
250
249
|
url: string;
|
|
250
|
+
mediaType?: string | null | undefined;
|
|
251
251
|
};
|
|
252
252
|
}>, z.ZodObject<{
|
|
253
253
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -279,8 +279,8 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
279
279
|
updated: string;
|
|
280
280
|
icon: {
|
|
281
281
|
type: "Image";
|
|
282
|
-
mediaType: string;
|
|
283
282
|
url: string;
|
|
283
|
+
mediaType?: string | null | undefined;
|
|
284
284
|
};
|
|
285
285
|
} | {
|
|
286
286
|
type: "Mention";
|
|
@@ -296,8 +296,8 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
296
296
|
updated: string;
|
|
297
297
|
icon: {
|
|
298
298
|
type: "Image";
|
|
299
|
-
mediaType: string;
|
|
300
299
|
url: string;
|
|
300
|
+
mediaType?: string | null | undefined;
|
|
301
301
|
};
|
|
302
302
|
} | {
|
|
303
303
|
type: "Mention";
|
|
@@ -370,8 +370,8 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
370
370
|
updated: string;
|
|
371
371
|
icon: {
|
|
372
372
|
type: "Image";
|
|
373
|
-
mediaType: string;
|
|
374
373
|
url: string;
|
|
374
|
+
mediaType?: string | null | undefined;
|
|
375
375
|
};
|
|
376
376
|
} | {
|
|
377
377
|
type: "Mention";
|
|
@@ -387,8 +387,8 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
387
387
|
updated: string;
|
|
388
388
|
icon: {
|
|
389
389
|
type: "Image";
|
|
390
|
-
mediaType: string;
|
|
391
390
|
url: string;
|
|
391
|
+
mediaType?: string | null | undefined;
|
|
392
392
|
};
|
|
393
393
|
} | {
|
|
394
394
|
type: "Mention";
|
package/dist/types/person.d.ts
CHANGED
|
@@ -33,29 +33,29 @@ export declare const Person: z.ZodObject<{
|
|
|
33
33
|
}>>;
|
|
34
34
|
icon: z.ZodOptional<z.ZodObject<{
|
|
35
35
|
type: z.ZodLiteral<"Image">;
|
|
36
|
-
mediaType: z.ZodString
|
|
36
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
url: z.ZodString;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
type: "Image";
|
|
40
|
-
mediaType: string;
|
|
41
40
|
url: string;
|
|
41
|
+
mediaType?: string | null | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
type: "Image";
|
|
44
|
-
mediaType: string;
|
|
45
44
|
url: string;
|
|
45
|
+
mediaType?: string | null | undefined;
|
|
46
46
|
}>>;
|
|
47
47
|
image: z.ZodOptional<z.ZodObject<{
|
|
48
48
|
type: z.ZodLiteral<"Image">;
|
|
49
|
-
mediaType: z.ZodString
|
|
49
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
url: z.ZodString;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
type: "Image";
|
|
53
|
-
mediaType: string;
|
|
54
53
|
url: string;
|
|
54
|
+
mediaType?: string | null | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
type: "Image";
|
|
57
|
-
mediaType: string;
|
|
58
57
|
url: string;
|
|
58
|
+
mediaType?: string | null | undefined;
|
|
59
59
|
}>>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
id: string;
|
|
@@ -76,16 +76,16 @@ export declare const Person: z.ZodObject<{
|
|
|
76
76
|
};
|
|
77
77
|
icon?: {
|
|
78
78
|
type: "Image";
|
|
79
|
-
mediaType: string;
|
|
80
79
|
url: string;
|
|
80
|
+
mediaType?: string | null | undefined;
|
|
81
81
|
} | undefined;
|
|
82
82
|
endpoints?: {
|
|
83
83
|
sharedInbox?: string | undefined;
|
|
84
84
|
} | undefined;
|
|
85
85
|
image?: {
|
|
86
86
|
type: "Image";
|
|
87
|
-
mediaType: string;
|
|
88
87
|
url: string;
|
|
88
|
+
mediaType?: string | null | undefined;
|
|
89
89
|
} | undefined;
|
|
90
90
|
}, {
|
|
91
91
|
id: string;
|
|
@@ -106,16 +106,16 @@ export declare const Person: z.ZodObject<{
|
|
|
106
106
|
};
|
|
107
107
|
icon?: {
|
|
108
108
|
type: "Image";
|
|
109
|
-
mediaType: string;
|
|
110
109
|
url: string;
|
|
110
|
+
mediaType?: string | null | undefined;
|
|
111
111
|
} | undefined;
|
|
112
112
|
endpoints?: {
|
|
113
113
|
sharedInbox?: string | undefined;
|
|
114
114
|
} | undefined;
|
|
115
115
|
image?: {
|
|
116
116
|
type: "Image";
|
|
117
|
-
mediaType: string;
|
|
118
117
|
url: string;
|
|
118
|
+
mediaType?: string | null | undefined;
|
|
119
119
|
} | undefined;
|
|
120
120
|
}>;
|
|
121
121
|
export type Person = z.infer<typeof Person>;
|
package/dist/types/question.d.ts
CHANGED
|
@@ -161,16 +161,16 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
161
161
|
updated: z.ZodString;
|
|
162
162
|
icon: z.ZodObject<{
|
|
163
163
|
type: z.ZodLiteral<"Image">;
|
|
164
|
-
mediaType: z.ZodString
|
|
164
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
165
|
url: z.ZodString;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
167
|
type: "Image";
|
|
168
|
-
mediaType: string;
|
|
169
168
|
url: string;
|
|
169
|
+
mediaType?: string | null | undefined;
|
|
170
170
|
}, {
|
|
171
171
|
type: "Image";
|
|
172
|
-
mediaType: string;
|
|
173
172
|
url: string;
|
|
173
|
+
mediaType?: string | null | undefined;
|
|
174
174
|
}>;
|
|
175
175
|
}, "strip", z.ZodTypeAny, {
|
|
176
176
|
type: "Emoji";
|
|
@@ -178,8 +178,8 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
178
178
|
updated: string;
|
|
179
179
|
icon: {
|
|
180
180
|
type: "Image";
|
|
181
|
-
mediaType: string;
|
|
182
181
|
url: string;
|
|
182
|
+
mediaType?: string | null | undefined;
|
|
183
183
|
};
|
|
184
184
|
}, {
|
|
185
185
|
type: "Emoji";
|
|
@@ -187,8 +187,8 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
187
187
|
updated: string;
|
|
188
188
|
icon: {
|
|
189
189
|
type: "Image";
|
|
190
|
-
mediaType: string;
|
|
191
190
|
url: string;
|
|
191
|
+
mediaType?: string | null | undefined;
|
|
192
192
|
};
|
|
193
193
|
}>, z.ZodObject<{
|
|
194
194
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -220,16 +220,16 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
220
220
|
updated: z.ZodString;
|
|
221
221
|
icon: z.ZodObject<{
|
|
222
222
|
type: z.ZodLiteral<"Image">;
|
|
223
|
-
mediaType: z.ZodString
|
|
223
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
224
|
url: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
type: "Image";
|
|
227
|
-
mediaType: string;
|
|
228
227
|
url: string;
|
|
228
|
+
mediaType?: string | null | undefined;
|
|
229
229
|
}, {
|
|
230
230
|
type: "Image";
|
|
231
|
-
mediaType: string;
|
|
232
231
|
url: string;
|
|
232
|
+
mediaType?: string | null | undefined;
|
|
233
233
|
}>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
235
|
type: "Emoji";
|
|
@@ -237,8 +237,8 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
237
237
|
updated: string;
|
|
238
238
|
icon: {
|
|
239
239
|
type: "Image";
|
|
240
|
-
mediaType: string;
|
|
241
240
|
url: string;
|
|
241
|
+
mediaType?: string | null | undefined;
|
|
242
242
|
};
|
|
243
243
|
}, {
|
|
244
244
|
type: "Emoji";
|
|
@@ -246,8 +246,8 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
246
246
|
updated: string;
|
|
247
247
|
icon: {
|
|
248
248
|
type: "Image";
|
|
249
|
-
mediaType: string;
|
|
250
249
|
url: string;
|
|
250
|
+
mediaType?: string | null | undefined;
|
|
251
251
|
};
|
|
252
252
|
}>, z.ZodObject<{
|
|
253
253
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -308,8 +308,8 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
308
308
|
updated: string;
|
|
309
309
|
icon: {
|
|
310
310
|
type: "Image";
|
|
311
|
-
mediaType: string;
|
|
312
311
|
url: string;
|
|
312
|
+
mediaType?: string | null | undefined;
|
|
313
313
|
};
|
|
314
314
|
} | {
|
|
315
315
|
type: "Mention";
|
|
@@ -325,8 +325,8 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
325
325
|
updated: string;
|
|
326
326
|
icon: {
|
|
327
327
|
type: "Image";
|
|
328
|
-
mediaType: string;
|
|
329
328
|
url: string;
|
|
329
|
+
mediaType?: string | null | undefined;
|
|
330
330
|
};
|
|
331
331
|
} | {
|
|
332
332
|
type: "Mention";
|
|
@@ -408,8 +408,8 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
408
408
|
updated: string;
|
|
409
409
|
icon: {
|
|
410
410
|
type: "Image";
|
|
411
|
-
mediaType: string;
|
|
412
411
|
url: string;
|
|
412
|
+
mediaType?: string | null | undefined;
|
|
413
413
|
};
|
|
414
414
|
} | {
|
|
415
415
|
type: "Mention";
|
|
@@ -425,8 +425,8 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
425
425
|
updated: string;
|
|
426
426
|
icon: {
|
|
427
427
|
type: "Image";
|
|
428
|
-
mediaType: string;
|
|
429
428
|
url: string;
|
|
429
|
+
mediaType?: string | null | undefined;
|
|
430
430
|
};
|
|
431
431
|
} | {
|
|
432
432
|
type: "Mention";
|
package/dist/types/undo.d.ts
CHANGED
|
@@ -168,16 +168,16 @@ export declare const Undo: z.ZodObject<{
|
|
|
168
168
|
updated: z.ZodString;
|
|
169
169
|
icon: z.ZodObject<{
|
|
170
170
|
type: z.ZodLiteral<"Image">;
|
|
171
|
-
mediaType: z.ZodString
|
|
171
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
172
|
url: z.ZodString;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
type: "Image";
|
|
175
|
-
mediaType: string;
|
|
176
175
|
url: string;
|
|
176
|
+
mediaType?: string | null | undefined;
|
|
177
177
|
}, {
|
|
178
178
|
type: "Image";
|
|
179
|
-
mediaType: string;
|
|
180
179
|
url: string;
|
|
180
|
+
mediaType?: string | null | undefined;
|
|
181
181
|
}>;
|
|
182
182
|
}, "strip", z.ZodTypeAny, {
|
|
183
183
|
type: "Emoji";
|
|
@@ -185,8 +185,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
185
185
|
updated: string;
|
|
186
186
|
icon: {
|
|
187
187
|
type: "Image";
|
|
188
|
-
mediaType: string;
|
|
189
188
|
url: string;
|
|
189
|
+
mediaType?: string | null | undefined;
|
|
190
190
|
};
|
|
191
191
|
}, {
|
|
192
192
|
type: "Emoji";
|
|
@@ -194,8 +194,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
194
194
|
updated: string;
|
|
195
195
|
icon: {
|
|
196
196
|
type: "Image";
|
|
197
|
-
mediaType: string;
|
|
198
197
|
url: string;
|
|
198
|
+
mediaType?: string | null | undefined;
|
|
199
199
|
};
|
|
200
200
|
}>, z.ZodObject<{
|
|
201
201
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -227,16 +227,16 @@ export declare const Undo: z.ZodObject<{
|
|
|
227
227
|
updated: z.ZodString;
|
|
228
228
|
icon: z.ZodObject<{
|
|
229
229
|
type: z.ZodLiteral<"Image">;
|
|
230
|
-
mediaType: z.ZodString
|
|
230
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
231
|
url: z.ZodString;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
233
|
type: "Image";
|
|
234
|
-
mediaType: string;
|
|
235
234
|
url: string;
|
|
235
|
+
mediaType?: string | null | undefined;
|
|
236
236
|
}, {
|
|
237
237
|
type: "Image";
|
|
238
|
-
mediaType: string;
|
|
239
238
|
url: string;
|
|
239
|
+
mediaType?: string | null | undefined;
|
|
240
240
|
}>;
|
|
241
241
|
}, "strip", z.ZodTypeAny, {
|
|
242
242
|
type: "Emoji";
|
|
@@ -244,8 +244,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
244
244
|
updated: string;
|
|
245
245
|
icon: {
|
|
246
246
|
type: "Image";
|
|
247
|
-
mediaType: string;
|
|
248
247
|
url: string;
|
|
248
|
+
mediaType?: string | null | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
type: "Emoji";
|
|
@@ -253,8 +253,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
253
253
|
updated: string;
|
|
254
254
|
icon: {
|
|
255
255
|
type: "Image";
|
|
256
|
-
mediaType: string;
|
|
257
256
|
url: string;
|
|
257
|
+
mediaType?: string | null | undefined;
|
|
258
258
|
};
|
|
259
259
|
}>, z.ZodObject<{
|
|
260
260
|
type: z.ZodLiteral<"Hashtag">;
|
|
@@ -286,8 +286,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
286
286
|
updated: string;
|
|
287
287
|
icon: {
|
|
288
288
|
type: "Image";
|
|
289
|
-
mediaType: string;
|
|
290
289
|
url: string;
|
|
290
|
+
mediaType?: string | null | undefined;
|
|
291
291
|
};
|
|
292
292
|
} | {
|
|
293
293
|
type: "Mention";
|
|
@@ -303,8 +303,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
303
303
|
updated: string;
|
|
304
304
|
icon: {
|
|
305
305
|
type: "Image";
|
|
306
|
-
mediaType: string;
|
|
307
306
|
url: string;
|
|
307
|
+
mediaType?: string | null | undefined;
|
|
308
308
|
};
|
|
309
309
|
} | {
|
|
310
310
|
type: "Mention";
|
|
@@ -377,8 +377,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
377
377
|
updated: string;
|
|
378
378
|
icon: {
|
|
379
379
|
type: "Image";
|
|
380
|
-
mediaType: string;
|
|
381
380
|
url: string;
|
|
381
|
+
mediaType?: string | null | undefined;
|
|
382
382
|
};
|
|
383
383
|
} | {
|
|
384
384
|
type: "Mention";
|
|
@@ -394,8 +394,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
394
394
|
updated: string;
|
|
395
395
|
icon: {
|
|
396
396
|
type: "Image";
|
|
397
|
-
mediaType: string;
|
|
398
397
|
url: string;
|
|
398
|
+
mediaType?: string | null | undefined;
|
|
399
399
|
};
|
|
400
400
|
} | {
|
|
401
401
|
type: "Mention";
|
|
@@ -470,8 +470,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
470
470
|
updated: string;
|
|
471
471
|
icon: {
|
|
472
472
|
type: "Image";
|
|
473
|
-
mediaType: string;
|
|
474
473
|
url: string;
|
|
474
|
+
mediaType?: string | null | undefined;
|
|
475
475
|
};
|
|
476
476
|
} | {
|
|
477
477
|
type: "Mention";
|
|
@@ -487,8 +487,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
487
487
|
updated: string;
|
|
488
488
|
icon: {
|
|
489
489
|
type: "Image";
|
|
490
|
-
mediaType: string;
|
|
491
490
|
url: string;
|
|
491
|
+
mediaType?: string | null | undefined;
|
|
492
492
|
};
|
|
493
493
|
} | {
|
|
494
494
|
type: "Mention";
|
|
@@ -566,8 +566,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
566
566
|
updated: string;
|
|
567
567
|
icon: {
|
|
568
568
|
type: "Image";
|
|
569
|
-
mediaType: string;
|
|
570
569
|
url: string;
|
|
570
|
+
mediaType?: string | null | undefined;
|
|
571
571
|
};
|
|
572
572
|
} | {
|
|
573
573
|
type: "Mention";
|
|
@@ -583,8 +583,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
583
583
|
updated: string;
|
|
584
584
|
icon: {
|
|
585
585
|
type: "Image";
|
|
586
|
-
mediaType: string;
|
|
587
586
|
url: string;
|
|
587
|
+
mediaType?: string | null | undefined;
|
|
588
588
|
};
|
|
589
589
|
} | {
|
|
590
590
|
type: "Mention";
|
|
@@ -684,8 +684,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
684
684
|
updated: string;
|
|
685
685
|
icon: {
|
|
686
686
|
type: "Image";
|
|
687
|
-
mediaType: string;
|
|
688
687
|
url: string;
|
|
688
|
+
mediaType?: string | null | undefined;
|
|
689
689
|
};
|
|
690
690
|
} | {
|
|
691
691
|
type: "Mention";
|
|
@@ -701,8 +701,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
701
701
|
updated: string;
|
|
702
702
|
icon: {
|
|
703
703
|
type: "Image";
|
|
704
|
-
mediaType: string;
|
|
705
704
|
url: string;
|
|
705
|
+
mediaType?: string | null | undefined;
|
|
706
706
|
};
|
|
707
707
|
} | {
|
|
708
708
|
type: "Mention";
|
|
@@ -790,8 +790,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
790
790
|
updated: string;
|
|
791
791
|
icon: {
|
|
792
792
|
type: "Image";
|
|
793
|
-
mediaType: string;
|
|
794
793
|
url: string;
|
|
794
|
+
mediaType?: string | null | undefined;
|
|
795
795
|
};
|
|
796
796
|
} | {
|
|
797
797
|
type: "Mention";
|
|
@@ -807,8 +807,8 @@ export declare const Undo: z.ZodObject<{
|
|
|
807
807
|
updated: string;
|
|
808
808
|
icon: {
|
|
809
809
|
type: "Image";
|
|
810
|
-
mediaType: string;
|
|
811
810
|
url: string;
|
|
811
|
+
mediaType?: string | null | undefined;
|
|
812
812
|
};
|
|
813
813
|
} | {
|
|
814
814
|
type: "Mention";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llun/activities.schema",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"description": "Validate ActivityPub and Mastodon with Zod",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"author": "Maythee Anegboonlap <null@llun.dev>",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"zod": "^3.24.
|
|
16
|
+
"zod": "^3.24.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"typescript": "^5.7.3"
|