@openclaw-china/wecom 0.1.11 → 0.1.13
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/dist/index.d.ts +0 -22
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -72,28 +72,6 @@ type WecomInboundEvent = WecomInboundBase & {
|
|
|
72
72
|
};
|
|
73
73
|
type WecomInboundMessage = WecomInboundText | WecomInboundVoice | WecomInboundStreamRefresh | WecomInboundEvent | (WecomInboundBase & Record<string, unknown>);
|
|
74
74
|
|
|
75
|
-
var __createBinding = (undefined && undefined.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
76
|
-
if (k2 === undefined) k2 = k;
|
|
77
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
78
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
79
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
80
|
-
}
|
|
81
|
-
Object.defineProperty(o, k2, desc);
|
|
82
|
-
}) : (function(o, m, k, k2) {
|
|
83
|
-
if (k2 === undefined) k2 = k;
|
|
84
|
-
o[k2] = m[k];
|
|
85
|
-
}));
|
|
86
|
-
var __exportStar = (undefined && undefined.__exportStar) || function(m, exports$1) {
|
|
87
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
88
|
-
};
|
|
89
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
-
__exportStar(require("./errors.cjs"), exports);
|
|
91
|
-
__exportStar(require("./helpers/parseUtil.cjs"), exports);
|
|
92
|
-
__exportStar(require("./helpers/typeAliases.cjs"), exports);
|
|
93
|
-
__exportStar(require("./helpers/util.cjs"), exports);
|
|
94
|
-
__exportStar(require("./types.cjs"), exports);
|
|
95
|
-
__exportStar(require("./ZodError.cjs"), exports);
|
|
96
|
-
|
|
97
75
|
/** 默认账户 ID */
|
|
98
76
|
declare const DEFAULT_ACCOUNT_ID = "default";
|
|
99
77
|
interface PluginConfig {
|
package/dist/index.js
CHANGED
|
@@ -4228,6 +4228,62 @@ function checkGroupPolicy(params) {
|
|
|
4228
4228
|
}
|
|
4229
4229
|
return { allowed: true };
|
|
4230
4230
|
}
|
|
4231
|
+
|
|
4232
|
+
// ../../packages/shared/src/media/media-parser.ts
|
|
4233
|
+
var AUDIO_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
4234
|
+
"mp3",
|
|
4235
|
+
"wav",
|
|
4236
|
+
"ogg",
|
|
4237
|
+
"m4a",
|
|
4238
|
+
"amr",
|
|
4239
|
+
"flac",
|
|
4240
|
+
"aac",
|
|
4241
|
+
"wma"
|
|
4242
|
+
]);
|
|
4243
|
+
var VIDEO_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
4244
|
+
"mp4",
|
|
4245
|
+
"mov",
|
|
4246
|
+
"avi",
|
|
4247
|
+
"mkv",
|
|
4248
|
+
"webm",
|
|
4249
|
+
"flv",
|
|
4250
|
+
"wmv",
|
|
4251
|
+
"m4v"
|
|
4252
|
+
]);
|
|
4253
|
+
var NON_IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
4254
|
+
// 文档
|
|
4255
|
+
"pdf",
|
|
4256
|
+
"doc",
|
|
4257
|
+
"docx",
|
|
4258
|
+
"xls",
|
|
4259
|
+
"xlsx",
|
|
4260
|
+
"csv",
|
|
4261
|
+
"ppt",
|
|
4262
|
+
"pptx",
|
|
4263
|
+
"txt",
|
|
4264
|
+
"md",
|
|
4265
|
+
"rtf",
|
|
4266
|
+
"odt",
|
|
4267
|
+
"ods",
|
|
4268
|
+
// 压缩包
|
|
4269
|
+
"zip",
|
|
4270
|
+
"rar",
|
|
4271
|
+
"7z",
|
|
4272
|
+
"tar",
|
|
4273
|
+
"gz",
|
|
4274
|
+
"tgz",
|
|
4275
|
+
"bz2",
|
|
4276
|
+
// 音频
|
|
4277
|
+
...AUDIO_EXTENSIONS,
|
|
4278
|
+
// 视频
|
|
4279
|
+
...VIDEO_EXTENSIONS,
|
|
4280
|
+
// 数据
|
|
4281
|
+
"json",
|
|
4282
|
+
"xml",
|
|
4283
|
+
"yaml",
|
|
4284
|
+
"yml"
|
|
4285
|
+
]);
|
|
4286
|
+
Array.from(NON_IMAGE_EXTENSIONS).join("|");
|
|
4231
4287
|
function decodeEncodingAESKey(encodingAESKey) {
|
|
4232
4288
|
const trimmed = encodingAESKey.trim();
|
|
4233
4289
|
if (!trimmed) throw new Error("encodingAESKey missing");
|