@zzedbot/yunzhijia 1.0.10 → 1.0.12

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.

Potentially problematic release.


This version of @zzedbot/yunzhijia might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzedbot/yunzhijia",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "YunzhiJia channel plugin for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,8 +24,7 @@
24
24
  "@types/node": "^20.0.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "openclaw": "^2026.2.0",
28
- "zod": "^3.22.0"
27
+ "openclaw": "^2026.2.0"
29
28
  },
30
29
  "openclaw": {
31
30
  "extensions": [
package/src/config.ts CHANGED
@@ -1,24 +1,44 @@
1
- import { z } from "zod";
1
+ import { buildChannelConfigSchema } from "openclaw/plugin-sdk";
2
2
 
3
- // Define the configuration schema using Zod
4
- const YunzhiJiaAccountConfigSchema = z.object({
5
- webhookToken: z.string().optional(),
6
- appSecret: z.string().optional(),
7
- skipSignatureVerification: z.boolean().optional(),
8
- name: z.string().optional(),
9
- enabled: z.boolean().optional(),
10
- requireMention: z.boolean().optional(),
11
- allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
12
- });
3
+ // Define the configuration schema using JSON Schema format
4
+ const YunzhiJiaAccountConfigSchema = {
5
+ type: "object",
6
+ properties: {
7
+ webhookToken: { type: "string" },
8
+ appSecret: { type: "string" },
9
+ skipSignatureVerification: { type: "boolean" },
10
+ name: { type: "string" },
11
+ enabled: { type: "boolean" },
12
+ requireMention: { type: "boolean" },
13
+ allowFrom: {
14
+ type: "array",
15
+ items: { type: ["string", "number"] }
16
+ }
17
+ },
18
+ required: []
19
+ };
13
20
 
14
- export const YunzhiJiaConfigSchema = z.object({
15
- webhookToken: z.string().optional(),
16
- appSecret: z.string().optional(),
17
- enabled: z.boolean().optional(),
18
- name: z.string().optional(),
19
- requireMention: z.boolean().optional(),
20
- allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
21
- accounts: z.record(YunzhiJiaAccountConfigSchema).optional(),
22
- });
21
+ export const YunzhiJiaConfigSchema = {
22
+ type: "object",
23
+ properties: {
24
+ webhookToken: { type: "string" },
25
+ appSecret: { type: "string" },
26
+ enabled: { type: "boolean" },
27
+ name: { type: "string" },
28
+ requireMention: { type: "boolean" },
29
+ allowFrom: {
30
+ type: "array",
31
+ items: { type: ["string", "number"] }
32
+ },
33
+ accounts: {
34
+ type: "object",
35
+ additionalProperties: YunzhiJiaAccountConfigSchema
36
+ }
37
+ },
38
+ required: []
39
+ };
40
+
41
+ // Export the channel config schema in OpenClaw format
42
+ export const yunzhijiaConfigSchema = buildChannelConfigSchema(YunzhiJiaConfigSchema);
23
43
 
24
44
  export const DEFAULT_ACCOUNT_ID = "default";
Binary file