@openclaw-china/dingtalk 0.1.19 → 0.1.21
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/clawdbot.plugin.json +34 -28
- package/dist/index.d.ts +20 -0
- package/dist/index.js +1374 -157
- package/dist/index.js.map +1 -1
- package/moltbot.plugin.json +34 -28
- package/openclaw.plugin.json +10 -4
- package/package.json +2 -2
package/clawdbot.plugin.json
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "dingtalk",
|
|
3
|
-
"name": "DingTalk",
|
|
4
|
-
"description": "钉钉消息渠道插件",
|
|
5
|
-
"version": "0.1.1",
|
|
6
|
-
"channels": ["dingtalk"],
|
|
7
|
-
"configSchema": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"additionalProperties": false,
|
|
10
|
-
"properties": {
|
|
11
|
-
"enabled": { "type": "boolean" },
|
|
12
|
-
"clientId": { "type": "string" },
|
|
13
|
-
"clientSecret": { "type": "string" },
|
|
14
|
-
"connectionMode": { "type": "string", "enum": ["stream", "webhook"] },
|
|
15
|
-
"dmPolicy": { "type": "string", "enum": ["open", "pairing", "allowlist"] },
|
|
16
|
-
"groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"] },
|
|
17
|
-
"requireMention": { "type": "boolean" },
|
|
18
|
-
"allowFrom": { "type": "array", "items": { "type": "string" } },
|
|
19
|
-
"groupAllowFrom": { "type": "array", "items": { "type": "string" } },
|
|
20
|
-
"historyLimit": { "type": "integer", "minimum": 0 },
|
|
21
|
-
"textChunkLimit": { "type": "integer", "minimum": 1 }
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
1
|
+
{
|
|
2
|
+
"id": "dingtalk",
|
|
3
|
+
"name": "DingTalk",
|
|
4
|
+
"description": "钉钉消息渠道插件",
|
|
5
|
+
"version": "0.1.1",
|
|
6
|
+
"channels": ["dingtalk"],
|
|
7
|
+
"configSchema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"enabled": { "type": "boolean" },
|
|
12
|
+
"clientId": { "type": "string" },
|
|
13
|
+
"clientSecret": { "type": "string" },
|
|
14
|
+
"connectionMode": { "type": "string", "enum": ["stream", "webhook"] },
|
|
15
|
+
"dmPolicy": { "type": "string", "enum": ["open", "pairing", "allowlist"] },
|
|
16
|
+
"groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"] },
|
|
17
|
+
"requireMention": { "type": "boolean" },
|
|
18
|
+
"allowFrom": { "type": "array", "items": { "type": "string" } },
|
|
19
|
+
"groupAllowFrom": { "type": "array", "items": { "type": "string" } },
|
|
20
|
+
"historyLimit": { "type": "integer", "minimum": 0 },
|
|
21
|
+
"textChunkLimit": { "type": "integer", "minimum": 1 },
|
|
22
|
+
"enableAICard": { "type": "boolean" },
|
|
23
|
+
"gatewayToken": { "type": "string" },
|
|
24
|
+
"gatewayPassword": { "type": "string" },
|
|
25
|
+
"maxFileSizeMB": { "type": "number", "minimum": 1 }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"uiHints": {
|
|
29
|
+
"clientId": { "label": "Client ID (AppKey)" },
|
|
30
|
+
"clientSecret": { "label": "Client Secret (AppSecret)", "sensitive": true },
|
|
31
|
+
"gatewayToken": { "label": "Gateway Token", "sensitive": true },
|
|
32
|
+
"gatewayPassword": { "label": "Gateway Password", "sensitive": true }
|
|
33
|
+
}
|
|
34
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ __exportStar(require("./ZodError.cjs"), exports);
|
|
|
35
35
|
* - historyLimit: 历史消息数量限制
|
|
36
36
|
* - textChunkLimit: 文本分块大小限制
|
|
37
37
|
* - enableAICard: 是否启用 AI Card 流式响应
|
|
38
|
+
* - maxFileSizeMB: 媒体文件大小限制 (MB)
|
|
38
39
|
*/
|
|
39
40
|
declare const DingtalkConfigSchema: undefined<{
|
|
40
41
|
/** 是否启用钉钉渠道 */
|
|
@@ -59,6 +60,12 @@ declare const DingtalkConfigSchema: undefined<{
|
|
|
59
60
|
textChunkLimit: undefined<undefined<undefined>>;
|
|
60
61
|
/** 是否启用 AI Card 流式响应 */
|
|
61
62
|
enableAICard: undefined<undefined<undefined>>;
|
|
63
|
+
/** Gateway auth token(Bearer) */
|
|
64
|
+
gatewayToken: undefined<undefined>;
|
|
65
|
+
/** Gateway auth password(替代 gatewayToken) */
|
|
66
|
+
gatewayPassword: undefined<undefined>;
|
|
67
|
+
/** 媒体文件大小限制 (MB),默认 100MB */
|
|
68
|
+
maxFileSizeMB: undefined<undefined<undefined>>;
|
|
62
69
|
}, "strip", undefined, {
|
|
63
70
|
enabled: boolean;
|
|
64
71
|
dmPolicy: "open" | "pairing" | "allowlist";
|
|
@@ -67,10 +74,13 @@ declare const DingtalkConfigSchema: undefined<{
|
|
|
67
74
|
historyLimit: number;
|
|
68
75
|
textChunkLimit: number;
|
|
69
76
|
enableAICard: boolean;
|
|
77
|
+
maxFileSizeMB: number;
|
|
70
78
|
clientId?: string | undefined;
|
|
71
79
|
clientSecret?: string | undefined;
|
|
72
80
|
allowFrom?: string[] | undefined;
|
|
73
81
|
groupAllowFrom?: string[] | undefined;
|
|
82
|
+
gatewayToken?: string | undefined;
|
|
83
|
+
gatewayPassword?: string | undefined;
|
|
74
84
|
}, {
|
|
75
85
|
enabled?: boolean | undefined;
|
|
76
86
|
clientId?: string | undefined;
|
|
@@ -83,6 +93,9 @@ declare const DingtalkConfigSchema: undefined<{
|
|
|
83
93
|
historyLimit?: number | undefined;
|
|
84
94
|
textChunkLimit?: number | undefined;
|
|
85
95
|
enableAICard?: boolean | undefined;
|
|
96
|
+
gatewayToken?: string | undefined;
|
|
97
|
+
gatewayPassword?: string | undefined;
|
|
98
|
+
maxFileSizeMB?: number | undefined;
|
|
86
99
|
}>;
|
|
87
100
|
type DingtalkConfig = undefined<typeof DingtalkConfigSchema>;
|
|
88
101
|
|
|
@@ -229,6 +242,7 @@ declare const dingtalkPlugin: {
|
|
|
229
242
|
edit: boolean;
|
|
230
243
|
reply: boolean;
|
|
231
244
|
polls: boolean;
|
|
245
|
+
blockStreaming: boolean;
|
|
232
246
|
};
|
|
233
247
|
/**
|
|
234
248
|
* 配置 Schema
|
|
@@ -282,6 +296,12 @@ declare const dingtalkPlugin: {
|
|
|
282
296
|
enableAICard: {
|
|
283
297
|
type: string;
|
|
284
298
|
};
|
|
299
|
+
gatewayToken: {
|
|
300
|
+
type: string;
|
|
301
|
+
};
|
|
302
|
+
gatewayPassword: {
|
|
303
|
+
type: string;
|
|
304
|
+
};
|
|
285
305
|
};
|
|
286
306
|
};
|
|
287
307
|
};
|