@llun/activities.schema 0.2.27 → 0.2.28

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.
@@ -12,7 +12,7 @@ exports.Person = zod_1.z.object({
12
12
  outbox: zod_1.z.string().url(),
13
13
  preferredUsername: zod_1.z.string(),
14
14
  name: zod_1.z.string(),
15
- summary: zod_1.z.string(),
15
+ summary: zod_1.z.string().nullish(),
16
16
  url: zod_1.z.string().url(),
17
17
  published: zod_1.z.string(),
18
18
  publicKey: zod_1.z.object({
@@ -9,7 +9,7 @@ export const Person = z.object({
9
9
  outbox: z.string().url(),
10
10
  preferredUsername: z.string(),
11
11
  name: z.string(),
12
- summary: z.string(),
12
+ summary: z.string().nullish(),
13
13
  url: z.string().url(),
14
14
  published: z.string(),
15
15
  publicKey: z.object({
@@ -8,7 +8,7 @@ export declare const Person: z.ZodObject<{
8
8
  outbox: z.ZodString;
9
9
  preferredUsername: z.ZodString;
10
10
  name: z.ZodString;
11
- summary: z.ZodString;
11
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
12
  url: z.ZodString;
13
13
  published: z.ZodString;
14
14
  publicKey: z.ZodObject<{
@@ -63,7 +63,6 @@ export declare const Person: z.ZodObject<{
63
63
  published: string;
64
64
  url: string;
65
65
  name: string;
66
- summary: string;
67
66
  following: string;
68
67
  followers: string;
69
68
  inbox: string;
@@ -79,6 +78,7 @@ export declare const Person: z.ZodObject<{
79
78
  url: string;
80
79
  mediaType?: string | null | undefined;
81
80
  } | undefined;
81
+ summary?: string | null | undefined;
82
82
  endpoints?: {
83
83
  sharedInbox?: string | undefined;
84
84
  } | undefined;
@@ -93,7 +93,6 @@ export declare const Person: z.ZodObject<{
93
93
  published: string;
94
94
  url: string;
95
95
  name: string;
96
- summary: string;
97
96
  following: string;
98
97
  followers: string;
99
98
  inbox: string;
@@ -109,6 +108,7 @@ export declare const Person: z.ZodObject<{
109
108
  url: string;
110
109
  mediaType?: string | null | undefined;
111
110
  } | undefined;
111
+ summary?: string | null | undefined;
112
112
  endpoints?: {
113
113
  sharedInbox?: string | undefined;
114
114
  } | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llun/activities.schema",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "Validate ActivityPub and Mastodon with Zod",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/person.ts CHANGED
@@ -10,7 +10,7 @@ export const Person = z.object({
10
10
  outbox: z.string().url(),
11
11
  preferredUsername: z.string(),
12
12
  name: z.string(),
13
- summary: z.string(),
13
+ summary: z.string().nullish(),
14
14
  url: z.string().url(),
15
15
  published: z.string(),
16
16
  publicKey: z.object({