@zzedbot/yunzhijia 1.0.11 → 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 +2 -3
- package/src/config.ts +40 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zzedbot/yunzhijia",
|
|
3
|
-
"version": "1.0.
|
|
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 {
|
|
1
|
+
import { buildChannelConfigSchema } from "openclaw/plugin-sdk";
|
|
2
2
|
|
|
3
|
-
// Define the configuration schema using
|
|
4
|
-
const YunzhiJiaAccountConfigSchema =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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";
|