@llun/activities.schema 0.2.31 → 0.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/dist/cjs/{person.js → actor.js} +8 -5
- package/dist/cjs/index.js +1 -1
- package/dist/esm/{person.js → actor.js} +7 -4
- package/dist/esm/index.js +1 -1
- package/dist/types/actor.d.ts +370 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/like.d.ts +31 -31
- package/dist/types/mastodon/account.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/audio.d.ts +5 -5
- package/dist/types/mastodon/mediaAttachment/base.d.ts +2 -2
- package/dist/types/mastodon/mediaAttachment/gifv.d.ts +5 -5
- package/dist/types/mastodon/mediaAttachment/image.d.ts +5 -5
- package/dist/types/mastodon/mediaAttachment/index.d.ts +50 -50
- package/dist/types/mastodon/mediaAttachment/unknown.d.ts +5 -5
- package/dist/types/mastodon/mediaAttachment/video.d.ts +5 -5
- package/dist/types/mastodon/previewCard.d.ts +4 -4
- package/dist/types/mastodon/status/base.d.ts +46 -46
- package/dist/types/mastodon/status/index.d.ts +109 -109
- package/dist/types/note/attachment.d.ts +2 -2
- package/dist/types/note/baseContent.d.ts +18 -18
- package/dist/types/note/document.d.ts +2 -2
- package/dist/types/note/emoji.d.ts +2 -2
- package/dist/types/note/tag.d.ts +2 -2
- package/dist/types/note.d.ts +21 -21
- package/dist/types/question.d.ts +21 -21
- package/dist/types/undo.d.ts +41 -41
- package/package.json +3 -3
- package/src/{person.ts → actor.ts} +11 -4
- package/src/index.ts +1 -1
- package/dist/types/person.d.ts +0 -121
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;
|
|
@@ -89,19 +89,19 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
89
89
|
type: "Document";
|
|
90
90
|
mediaType: string;
|
|
91
91
|
url: string;
|
|
92
|
+
name?: string | null | undefined;
|
|
92
93
|
blurhash?: string | undefined;
|
|
93
94
|
width?: number | undefined;
|
|
94
95
|
height?: number | undefined;
|
|
95
|
-
name?: string | null | undefined;
|
|
96
96
|
focalPoint?: [number, number] | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
type: "Document";
|
|
99
99
|
mediaType: string;
|
|
100
100
|
url: string;
|
|
101
|
+
name?: string | null | undefined;
|
|
101
102
|
blurhash?: string | undefined;
|
|
102
103
|
width?: number | undefined;
|
|
103
104
|
height?: number | undefined;
|
|
104
|
-
name?: string | null | undefined;
|
|
105
105
|
focalPoint?: [number, number] | undefined;
|
|
106
106
|
}>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
107
107
|
type: z.ZodLiteral<"PropertyValue">;
|
|
@@ -128,19 +128,19 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
128
128
|
type: "Document";
|
|
129
129
|
mediaType: string;
|
|
130
130
|
url: string;
|
|
131
|
+
name?: string | null | undefined;
|
|
131
132
|
blurhash?: string | undefined;
|
|
132
133
|
width?: number | undefined;
|
|
133
134
|
height?: number | undefined;
|
|
134
|
-
name?: string | null | undefined;
|
|
135
135
|
focalPoint?: [number, number] | undefined;
|
|
136
136
|
}, {
|
|
137
137
|
type: "Document";
|
|
138
138
|
mediaType: string;
|
|
139
139
|
url: string;
|
|
140
|
+
name?: string | null | undefined;
|
|
140
141
|
blurhash?: string | undefined;
|
|
141
142
|
width?: number | undefined;
|
|
142
143
|
height?: number | undefined;
|
|
143
|
-
name?: string | null | undefined;
|
|
144
144
|
focalPoint?: [number, number] | undefined;
|
|
145
145
|
}>]>, "many">]>>>;
|
|
146
146
|
tag: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -175,21 +175,21 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
175
175
|
}, "strip", z.ZodTypeAny, {
|
|
176
176
|
type: "Emoji";
|
|
177
177
|
name: string;
|
|
178
|
-
updated: string;
|
|
179
178
|
icon: {
|
|
180
179
|
type: "Image";
|
|
181
180
|
url: string;
|
|
182
181
|
mediaType?: string | null | undefined;
|
|
183
182
|
};
|
|
183
|
+
updated: string;
|
|
184
184
|
}, {
|
|
185
185
|
type: "Emoji";
|
|
186
186
|
name: string;
|
|
187
|
-
updated: string;
|
|
188
187
|
icon: {
|
|
189
188
|
type: "Image";
|
|
190
189
|
url: string;
|
|
191
190
|
mediaType?: string | null | undefined;
|
|
192
191
|
};
|
|
192
|
+
updated: string;
|
|
193
193
|
}>, z.ZodObject<{
|
|
194
194
|
type: z.ZodLiteral<"Hashtag">;
|
|
195
195
|
href: z.ZodString;
|
|
@@ -234,21 +234,21 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
235
|
type: "Emoji";
|
|
236
236
|
name: string;
|
|
237
|
-
updated: string;
|
|
238
237
|
icon: {
|
|
239
238
|
type: "Image";
|
|
240
239
|
url: string;
|
|
241
240
|
mediaType?: string | null | undefined;
|
|
242
241
|
};
|
|
242
|
+
updated: string;
|
|
243
243
|
}, {
|
|
244
244
|
type: "Emoji";
|
|
245
245
|
name: string;
|
|
246
|
-
updated: string;
|
|
247
246
|
icon: {
|
|
248
247
|
type: "Image";
|
|
249
248
|
url: string;
|
|
250
249
|
mediaType?: string | null | undefined;
|
|
251
250
|
};
|
|
251
|
+
updated: string;
|
|
252
252
|
}>, z.ZodObject<{
|
|
253
253
|
type: z.ZodLiteral<"Hashtag">;
|
|
254
254
|
href: 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;
|
|
@@ -305,12 +305,12 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
305
305
|
tag: {
|
|
306
306
|
type: "Emoji";
|
|
307
307
|
name: string;
|
|
308
|
-
updated: string;
|
|
309
308
|
icon: {
|
|
310
309
|
type: "Image";
|
|
311
310
|
url: string;
|
|
312
311
|
mediaType?: string | null | undefined;
|
|
313
312
|
};
|
|
313
|
+
updated: string;
|
|
314
314
|
} | {
|
|
315
315
|
type: "Mention";
|
|
316
316
|
name: string;
|
|
@@ -322,12 +322,12 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
322
322
|
} | ({
|
|
323
323
|
type: "Emoji";
|
|
324
324
|
name: string;
|
|
325
|
-
updated: string;
|
|
326
325
|
icon: {
|
|
327
326
|
type: "Image";
|
|
328
327
|
url: string;
|
|
329
328
|
mediaType?: string | null | undefined;
|
|
330
329
|
};
|
|
330
|
+
updated: string;
|
|
331
331
|
} | {
|
|
332
332
|
type: "Mention";
|
|
333
333
|
name: string;
|
|
@@ -347,9 +347,9 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
347
347
|
};
|
|
348
348
|
}[];
|
|
349
349
|
url?: string | null | undefined;
|
|
350
|
+
summary?: string | null | undefined;
|
|
350
351
|
updated?: string | null | undefined;
|
|
351
352
|
inReplyTo?: string | null | undefined;
|
|
352
|
-
summary?: string | null | undefined;
|
|
353
353
|
summaryMap?: Record<string, string> | null | undefined;
|
|
354
354
|
content?: string | string[] | null | undefined;
|
|
355
355
|
contentMap?: string[] | Record<string, string> | null | undefined;
|
|
@@ -372,10 +372,10 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
372
372
|
type: "Document";
|
|
373
373
|
mediaType: string;
|
|
374
374
|
url: string;
|
|
375
|
+
name?: string | null | undefined;
|
|
375
376
|
blurhash?: string | undefined;
|
|
376
377
|
width?: number | undefined;
|
|
377
378
|
height?: number | undefined;
|
|
378
|
-
name?: string | null | undefined;
|
|
379
379
|
focalPoint?: [number, number] | undefined;
|
|
380
380
|
} | {
|
|
381
381
|
type: "PropertyValue";
|
|
@@ -385,10 +385,10 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
385
385
|
type: "Document";
|
|
386
386
|
mediaType: string;
|
|
387
387
|
url: string;
|
|
388
|
+
name?: string | null | undefined;
|
|
388
389
|
blurhash?: string | undefined;
|
|
389
390
|
width?: number | undefined;
|
|
390
391
|
height?: number | undefined;
|
|
391
|
-
name?: string | null | undefined;
|
|
392
392
|
focalPoint?: [number, number] | undefined;
|
|
393
393
|
} | {
|
|
394
394
|
type: "PropertyValue";
|
|
@@ -405,12 +405,12 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
405
405
|
tag: {
|
|
406
406
|
type: "Emoji";
|
|
407
407
|
name: string;
|
|
408
|
-
updated: string;
|
|
409
408
|
icon: {
|
|
410
409
|
type: "Image";
|
|
411
410
|
url: string;
|
|
412
411
|
mediaType?: string | null | undefined;
|
|
413
412
|
};
|
|
413
|
+
updated: string;
|
|
414
414
|
} | {
|
|
415
415
|
type: "Mention";
|
|
416
416
|
name: string;
|
|
@@ -422,12 +422,12 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
422
422
|
} | ({
|
|
423
423
|
type: "Emoji";
|
|
424
424
|
name: string;
|
|
425
|
-
updated: string;
|
|
426
425
|
icon: {
|
|
427
426
|
type: "Image";
|
|
428
427
|
url: string;
|
|
429
428
|
mediaType?: string | null | undefined;
|
|
430
429
|
};
|
|
430
|
+
updated: string;
|
|
431
431
|
} | {
|
|
432
432
|
type: "Mention";
|
|
433
433
|
name: string;
|
|
@@ -447,9 +447,9 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
447
447
|
};
|
|
448
448
|
}[];
|
|
449
449
|
url?: string | null | undefined;
|
|
450
|
+
summary?: string | null | undefined;
|
|
450
451
|
updated?: string | null | undefined;
|
|
451
452
|
inReplyTo?: string | null | undefined;
|
|
452
|
-
summary?: string | null | undefined;
|
|
453
453
|
summaryMap?: Record<string, string> | null | undefined;
|
|
454
454
|
content?: string | string[] | null | undefined;
|
|
455
455
|
contentMap?: string[] | Record<string, string> | null | undefined;
|
|
@@ -472,10 +472,10 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
472
472
|
type: "Document";
|
|
473
473
|
mediaType: string;
|
|
474
474
|
url: string;
|
|
475
|
+
name?: string | null | undefined;
|
|
475
476
|
blurhash?: string | undefined;
|
|
476
477
|
width?: number | undefined;
|
|
477
478
|
height?: number | undefined;
|
|
478
|
-
name?: string | null | undefined;
|
|
479
479
|
focalPoint?: [number, number] | undefined;
|
|
480
480
|
} | {
|
|
481
481
|
type: "PropertyValue";
|
|
@@ -485,10 +485,10 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
485
485
|
type: "Document";
|
|
486
486
|
mediaType: string;
|
|
487
487
|
url: string;
|
|
488
|
+
name?: string | null | undefined;
|
|
488
489
|
blurhash?: string | undefined;
|
|
489
490
|
width?: number | undefined;
|
|
490
491
|
height?: number | undefined;
|
|
491
|
-
name?: string | null | undefined;
|
|
492
492
|
focalPoint?: [number, number] | undefined;
|
|
493
493
|
} | {
|
|
494
494
|
type: "PropertyValue";
|