@llun/activities.schema 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llun/activities.schema",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Validate ActivityPub and Mastodon with Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # Activities.schema
2
2
 
3
- Schema package for validating AcitivityPub data
3
+ Schema package for validating AcitivityPub and Mastodon data
@@ -40,7 +40,7 @@ const BaseAccount = z.object({
40
40
  description:
41
41
  "A static version of the `header`. Equal to `header` if its value is a static image; different if `header` is an animated GIF",
42
42
  }),
43
- loacked: z.string({
43
+ locked: z.boolean({
44
44
  description: "Whether the actor manually approves follow requests",
45
45
  }),
46
46
  fields: AccountField.array().describe(
@@ -104,7 +104,7 @@ const BaseAccount = z.object({
104
104
  type BaseAccount = z.infer<typeof BaseAccount>;
105
105
 
106
106
  export const Account = BaseAccount.extend({
107
- moved: BaseAccount.nullable().describe(
107
+ moved: BaseAccount.nullish().describe(
108
108
  "Indicates that the profile is currently inactive and that its user has moved to a new account"
109
109
  ),
110
110
  });
@@ -1,3 +1,10 @@
1
1
  export * from "./account.js";
2
2
  export * from "./accountField.js";
3
3
  export * from "./customEmoji.js";
4
+ export * from "./filterResult.js";
5
+ export * from "./previewCard.js";
6
+
7
+ export * from "./filter/index.js";
8
+ export * from "./mediaAttachment/index.js";
9
+ export * from "./poll/index.js";
10
+ export * from "./status/index.js";