@llun/activities.schema 0.2.2 → 0.2.3

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.
@@ -152,10 +152,11 @@ export declare const Undo: z.ZodObject<{
152
152
  }>, "strip", z.ZodTypeAny, {
153
153
  id: string;
154
154
  type: "Note";
155
- url: string;
156
- attributedTo: string;
155
+ published: string;
157
156
  to: string | string[];
158
157
  cc: string | string[];
158
+ url: string;
159
+ attributedTo: string;
159
160
  inReplyTo: string | null;
160
161
  tag: ({
161
162
  type: "Emoji";
@@ -171,7 +172,6 @@ export declare const Undo: z.ZodObject<{
171
172
  name: string;
172
173
  href: string;
173
174
  })[];
174
- published: string;
175
175
  updated?: string | undefined;
176
176
  summary?: string | undefined;
177
177
  summaryMap?: Record<string, string> | undefined;
@@ -207,10 +207,11 @@ export declare const Undo: z.ZodObject<{
207
207
  }, {
208
208
  id: string;
209
209
  type: "Note";
210
- url: string;
211
- attributedTo: string;
210
+ published: string;
212
211
  to: string | string[];
213
212
  cc: string | string[];
213
+ url: string;
214
+ attributedTo: string;
214
215
  inReplyTo: string | null;
215
216
  tag: ({
216
217
  type: "Emoji";
@@ -226,7 +227,6 @@ export declare const Undo: z.ZodObject<{
226
227
  name: string;
227
228
  href: string;
228
229
  })[];
229
- published: string;
230
230
  updated?: string | undefined;
231
231
  summary?: string | undefined;
232
232
  summaryMap?: Record<string, string> | undefined;
@@ -264,10 +264,11 @@ export declare const Undo: z.ZodObject<{
264
264
  object: string | {
265
265
  id: string;
266
266
  type: "Note";
267
- url: string;
268
- attributedTo: string;
267
+ published: string;
269
268
  to: string | string[];
270
269
  cc: string | string[];
270
+ url: string;
271
+ attributedTo: string;
271
272
  inReplyTo: string | null;
272
273
  tag: ({
273
274
  type: "Emoji";
@@ -283,7 +284,6 @@ export declare const Undo: z.ZodObject<{
283
284
  name: string;
284
285
  href: string;
285
286
  })[];
286
- published: string;
287
287
  updated?: string | undefined;
288
288
  summary?: string | undefined;
289
289
  summaryMap?: Record<string, string> | undefined;
@@ -324,10 +324,11 @@ export declare const Undo: z.ZodObject<{
324
324
  object: string | {
325
325
  id: string;
326
326
  type: "Note";
327
- url: string;
328
- attributedTo: string;
327
+ published: string;
329
328
  to: string | string[];
330
329
  cc: string | string[];
330
+ url: string;
331
+ attributedTo: string;
331
332
  inReplyTo: string | null;
332
333
  tag: ({
333
334
  type: "Emoji";
@@ -343,7 +344,6 @@ export declare const Undo: z.ZodObject<{
343
344
  name: string;
344
345
  href: string;
345
346
  })[];
346
- published: string;
347
347
  updated?: string | undefined;
348
348
  summary?: string | undefined;
349
349
  summaryMap?: Record<string, string> | undefined;
@@ -406,10 +406,11 @@ export declare const Undo: z.ZodObject<{
406
406
  object: string | {
407
407
  id: string;
408
408
  type: "Note";
409
- url: string;
410
- attributedTo: string;
409
+ published: string;
411
410
  to: string | string[];
412
411
  cc: string | string[];
412
+ url: string;
413
+ attributedTo: string;
413
414
  inReplyTo: string | null;
414
415
  tag: ({
415
416
  type: "Emoji";
@@ -425,7 +426,6 @@ export declare const Undo: z.ZodObject<{
425
426
  name: string;
426
427
  href: string;
427
428
  })[];
428
- published: string;
429
429
  updated?: string | undefined;
430
430
  summary?: string | undefined;
431
431
  summaryMap?: Record<string, string> | undefined;
@@ -476,10 +476,11 @@ export declare const Undo: z.ZodObject<{
476
476
  object: string | {
477
477
  id: string;
478
478
  type: "Note";
479
- url: string;
480
- attributedTo: string;
479
+ published: string;
481
480
  to: string | string[];
482
481
  cc: string | string[];
482
+ url: string;
483
+ attributedTo: string;
483
484
  inReplyTo: string | null;
484
485
  tag: ({
485
486
  type: "Emoji";
@@ -495,7 +496,6 @@ export declare const Undo: z.ZodObject<{
495
496
  name: string;
496
497
  href: string;
497
498
  })[];
498
- published: string;
499
499
  updated?: string | undefined;
500
500
  summary?: string | undefined;
501
501
  summaryMap?: Record<string, string> | undefined;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@llun/activities.schema",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Validate ActivityPub and Mastodon with Zod",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "type": "module",
9
9
  "scripts": {
10
- "build": "mkdir -p dist && tsc --module commonjs --outDir dist/cjs && tsc --module node16 --outDir dist/esm && tsc --emitDeclarationOnly --declaration --moduleResolution node16 --module node16 --outDir dist/types",
10
+ "build": "mkdir -p dist && tsc --module commonjs --moduleResolution Node --outDir dist/cjs && tsc --module NodeNext --moduleResolution NodeNext --outDir dist/esm && tsc --emitDeclarationOnly --declaration --moduleResolution node16 --module node16 --outDir dist/types",
11
11
  "release": "rm -rf dist && npm run build && npm publish --access public"
12
12
  },
13
13
  "author": "Maythee Anegboonlap <null@llun.dev>",