@openclaw-china/wecom 0.1.5 → 0.1.7
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.js +11 -11
- package/dist/index.js.map +1 -1
- package/package.json +25 -2
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
// ../../node_modules
|
|
9
|
+
// ../../node_modules/zod/v3/external.js
|
|
10
10
|
var external_exports = {};
|
|
11
11
|
__export(external_exports, {
|
|
12
12
|
BRAND: () => BRAND,
|
|
@@ -118,7 +118,7 @@ __export(external_exports, {
|
|
|
118
118
|
void: () => voidType
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
// ../../node_modules
|
|
121
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
122
122
|
var util;
|
|
123
123
|
(function(util2) {
|
|
124
124
|
util2.assertEqual = (_) => {
|
|
@@ -252,7 +252,7 @@ var getParsedType = (data) => {
|
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
// ../../node_modules
|
|
255
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
256
256
|
var ZodIssueCode = util.arrayToEnum([
|
|
257
257
|
"invalid_type",
|
|
258
258
|
"invalid_literal",
|
|
@@ -370,7 +370,7 @@ ZodError.create = (issues) => {
|
|
|
370
370
|
return error;
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
// ../../node_modules
|
|
373
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
374
374
|
var errorMap = (issue, _ctx) => {
|
|
375
375
|
let message;
|
|
376
376
|
switch (issue.code) {
|
|
@@ -473,7 +473,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
473
473
|
};
|
|
474
474
|
var en_default = errorMap;
|
|
475
475
|
|
|
476
|
-
// ../../node_modules
|
|
476
|
+
// ../../node_modules/zod/v3/errors.js
|
|
477
477
|
var overrideErrorMap = en_default;
|
|
478
478
|
function setErrorMap(map) {
|
|
479
479
|
overrideErrorMap = map;
|
|
@@ -482,7 +482,7 @@ function getErrorMap() {
|
|
|
482
482
|
return overrideErrorMap;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
// ../../node_modules
|
|
485
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
486
486
|
var makeIssue = (params) => {
|
|
487
487
|
const { data, path, errorMaps, issueData } = params;
|
|
488
488
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -592,14 +592,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
592
592
|
var isValid = (x) => x.status === "valid";
|
|
593
593
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
594
594
|
|
|
595
|
-
// ../../node_modules
|
|
595
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
596
596
|
var errorUtil;
|
|
597
597
|
(function(errorUtil2) {
|
|
598
598
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
599
599
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
600
600
|
})(errorUtil || (errorUtil = {}));
|
|
601
601
|
|
|
602
|
-
// ../../node_modules
|
|
602
|
+
// ../../node_modules/zod/v3/types.js
|
|
603
603
|
var ParseInputLazyPath = class {
|
|
604
604
|
constructor(parent, value, path, key) {
|
|
605
605
|
this._cachedPath = [];
|
|
@@ -4175,7 +4175,7 @@ function resolveGroupAllowFrom(config) {
|
|
|
4175
4175
|
return config.groupAllowFrom ?? [];
|
|
4176
4176
|
}
|
|
4177
4177
|
|
|
4178
|
-
// ../../
|
|
4178
|
+
// ../../packages/shared/src/logger/logger.ts
|
|
4179
4179
|
function createLogger(prefix, opts) {
|
|
4180
4180
|
const logFn = opts?.log ?? console.log;
|
|
4181
4181
|
const errorFn = opts?.error ?? console.error;
|
|
@@ -4187,7 +4187,7 @@ function createLogger(prefix, opts) {
|
|
|
4187
4187
|
};
|
|
4188
4188
|
}
|
|
4189
4189
|
|
|
4190
|
-
// ../../
|
|
4190
|
+
// ../../packages/shared/src/policy/dm-policy.ts
|
|
4191
4191
|
function checkDmPolicy(params) {
|
|
4192
4192
|
const { dmPolicy, senderId, allowFrom = [] } = params;
|
|
4193
4193
|
switch (dmPolicy) {
|
|
@@ -4208,7 +4208,7 @@ function checkDmPolicy(params) {
|
|
|
4208
4208
|
}
|
|
4209
4209
|
}
|
|
4210
4210
|
|
|
4211
|
-
// ../../
|
|
4211
|
+
// ../../packages/shared/src/policy/group-policy.ts
|
|
4212
4212
|
function checkGroupPolicy(params) {
|
|
4213
4213
|
const { groupPolicy, conversationId, groupAllowFrom = []} = params;
|
|
4214
4214
|
switch (groupPolicy) {
|