@llun/activities.schema 0.2.28 → 0.2.29
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/dist/cjs/person.js +3 -3
- package/dist/esm/person.js +3 -3
- package/dist/types/person.d.ts +11 -11
- package/package.json +1 -1
- package/src/person.ts +3 -3
package/dist/cjs/person.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.Person = zod_1.z.object({
|
|
|
14
14
|
name: zod_1.z.string(),
|
|
15
15
|
summary: zod_1.z.string().nullish(),
|
|
16
16
|
url: zod_1.z.string().url(),
|
|
17
|
-
published: zod_1.z.string(),
|
|
17
|
+
published: zod_1.z.string().nullish(),
|
|
18
18
|
publicKey: zod_1.z.object({
|
|
19
19
|
id: zod_1.z.string(),
|
|
20
20
|
owner: zod_1.z.string(),
|
|
@@ -25,6 +25,6 @@ exports.Person = zod_1.z.object({
|
|
|
25
25
|
sharedInbox: zod_1.z.string().optional(),
|
|
26
26
|
})
|
|
27
27
|
.optional(),
|
|
28
|
-
icon: image_js_1.Image.
|
|
29
|
-
image: image_js_1.Image.
|
|
28
|
+
icon: image_js_1.Image.nullish(),
|
|
29
|
+
image: image_js_1.Image.nullish(),
|
|
30
30
|
});
|
package/dist/esm/person.js
CHANGED
|
@@ -11,7 +11,7 @@ export const Person = z.object({
|
|
|
11
11
|
name: z.string(),
|
|
12
12
|
summary: z.string().nullish(),
|
|
13
13
|
url: z.string().url(),
|
|
14
|
-
published: z.string(),
|
|
14
|
+
published: z.string().nullish(),
|
|
15
15
|
publicKey: z.object({
|
|
16
16
|
id: z.string(),
|
|
17
17
|
owner: z.string(),
|
|
@@ -22,6 +22,6 @@ export const Person = z.object({
|
|
|
22
22
|
sharedInbox: z.string().optional(),
|
|
23
23
|
})
|
|
24
24
|
.optional(),
|
|
25
|
-
icon: Image.
|
|
26
|
-
image: Image.
|
|
25
|
+
icon: Image.nullish(),
|
|
26
|
+
image: Image.nullish(),
|
|
27
27
|
});
|
package/dist/types/person.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const Person: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodString;
|
|
11
11
|
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
url: z.ZodString;
|
|
13
|
-
published: z.ZodString
|
|
13
|
+
published: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
publicKey: z.ZodObject<{
|
|
15
15
|
id: z.ZodString;
|
|
16
16
|
owner: z.ZodString;
|
|
@@ -31,7 +31,7 @@ export declare const Person: z.ZodObject<{
|
|
|
31
31
|
}, {
|
|
32
32
|
sharedInbox?: string | undefined;
|
|
33
33
|
}>>;
|
|
34
|
-
icon: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
type: z.ZodLiteral<"Image">;
|
|
36
36
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
url: z.ZodString;
|
|
@@ -43,8 +43,8 @@ export declare const Person: z.ZodObject<{
|
|
|
43
43
|
type: "Image";
|
|
44
44
|
url: string;
|
|
45
45
|
mediaType?: string | null | undefined;
|
|
46
|
-
}
|
|
47
|
-
image: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
}>>>;
|
|
47
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
48
|
type: z.ZodLiteral<"Image">;
|
|
49
49
|
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
url: z.ZodString;
|
|
@@ -56,11 +56,10 @@ export declare const Person: z.ZodObject<{
|
|
|
56
56
|
type: "Image";
|
|
57
57
|
url: string;
|
|
58
58
|
mediaType?: string | null | undefined;
|
|
59
|
-
}
|
|
59
|
+
}>>>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
id: string;
|
|
62
62
|
type: "Person";
|
|
63
|
-
published: string;
|
|
64
63
|
url: string;
|
|
65
64
|
name: string;
|
|
66
65
|
following: string;
|
|
@@ -73,11 +72,12 @@ export declare const Person: z.ZodObject<{
|
|
|
73
72
|
owner: string;
|
|
74
73
|
publicKeyPem: string;
|
|
75
74
|
};
|
|
75
|
+
published?: string | null | undefined;
|
|
76
76
|
icon?: {
|
|
77
77
|
type: "Image";
|
|
78
78
|
url: string;
|
|
79
79
|
mediaType?: string | null | undefined;
|
|
80
|
-
} | undefined;
|
|
80
|
+
} | null | undefined;
|
|
81
81
|
summary?: string | null | undefined;
|
|
82
82
|
endpoints?: {
|
|
83
83
|
sharedInbox?: string | undefined;
|
|
@@ -86,11 +86,10 @@ export declare const Person: z.ZodObject<{
|
|
|
86
86
|
type: "Image";
|
|
87
87
|
url: string;
|
|
88
88
|
mediaType?: string | null | undefined;
|
|
89
|
-
} | undefined;
|
|
89
|
+
} | null | undefined;
|
|
90
90
|
}, {
|
|
91
91
|
id: string;
|
|
92
92
|
type: "Person";
|
|
93
|
-
published: string;
|
|
94
93
|
url: string;
|
|
95
94
|
name: string;
|
|
96
95
|
following: string;
|
|
@@ -103,11 +102,12 @@ export declare const Person: z.ZodObject<{
|
|
|
103
102
|
owner: string;
|
|
104
103
|
publicKeyPem: string;
|
|
105
104
|
};
|
|
105
|
+
published?: string | null | undefined;
|
|
106
106
|
icon?: {
|
|
107
107
|
type: "Image";
|
|
108
108
|
url: string;
|
|
109
109
|
mediaType?: string | null | undefined;
|
|
110
|
-
} | undefined;
|
|
110
|
+
} | null | undefined;
|
|
111
111
|
summary?: string | null | undefined;
|
|
112
112
|
endpoints?: {
|
|
113
113
|
sharedInbox?: string | undefined;
|
|
@@ -116,6 +116,6 @@ export declare const Person: z.ZodObject<{
|
|
|
116
116
|
type: "Image";
|
|
117
117
|
url: string;
|
|
118
118
|
mediaType?: string | null | undefined;
|
|
119
|
-
} | undefined;
|
|
119
|
+
} | null | undefined;
|
|
120
120
|
}>;
|
|
121
121
|
export type Person = z.infer<typeof Person>;
|
package/package.json
CHANGED
package/src/person.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const Person = z.object({
|
|
|
12
12
|
name: z.string(),
|
|
13
13
|
summary: z.string().nullish(),
|
|
14
14
|
url: z.string().url(),
|
|
15
|
-
published: z.string(),
|
|
15
|
+
published: z.string().nullish(),
|
|
16
16
|
publicKey: z.object({
|
|
17
17
|
id: z.string(),
|
|
18
18
|
owner: z.string(),
|
|
@@ -23,7 +23,7 @@ export const Person = z.object({
|
|
|
23
23
|
sharedInbox: z.string().optional(),
|
|
24
24
|
})
|
|
25
25
|
.optional(),
|
|
26
|
-
icon: Image.
|
|
27
|
-
image: Image.
|
|
26
|
+
icon: Image.nullish(),
|
|
27
|
+
image: Image.nullish(),
|
|
28
28
|
});
|
|
29
29
|
export type Person = z.infer<typeof Person>;
|