@openclaw-china/wecom 0.1.20 → 0.1.22
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 +68 -2
- package/dist/index.js +3271 -492
- package/dist/index.js.map +1 -1
- package/package.json +2 -6
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,17 @@ declare const wecomPlugin: {
|
|
|
108
108
|
reply: boolean;
|
|
109
109
|
polls: boolean;
|
|
110
110
|
};
|
|
111
|
+
messaging: {
|
|
112
|
+
normalizeTarget: (raw: string) => string | undefined;
|
|
113
|
+
targetResolver: {
|
|
114
|
+
looksLikeId: (raw: string, normalized?: string) => boolean;
|
|
115
|
+
hint: string;
|
|
116
|
+
};
|
|
117
|
+
formatTargetDisplay: (params: {
|
|
118
|
+
target: string;
|
|
119
|
+
display?: string;
|
|
120
|
+
}) => string;
|
|
121
|
+
};
|
|
111
122
|
configSchema: {
|
|
112
123
|
schema: {
|
|
113
124
|
type: string;
|
|
@@ -255,13 +266,68 @@ declare const wecomPlugin: {
|
|
|
255
266
|
account?: ResolvedWecomAccount;
|
|
256
267
|
}) => boolean;
|
|
257
268
|
};
|
|
269
|
+
directory: {
|
|
270
|
+
canResolve: (params: {
|
|
271
|
+
target: string;
|
|
272
|
+
}) => boolean;
|
|
273
|
+
resolveTarget: (params: {
|
|
274
|
+
cfg: PluginConfig;
|
|
275
|
+
target: string;
|
|
276
|
+
}) => {
|
|
277
|
+
channel: string;
|
|
278
|
+
accountId?: string;
|
|
279
|
+
to: string;
|
|
280
|
+
} | null;
|
|
281
|
+
resolveTargets: (params: {
|
|
282
|
+
cfg: PluginConfig;
|
|
283
|
+
targets: string[];
|
|
284
|
+
}) => Array<{
|
|
285
|
+
channel: string;
|
|
286
|
+
accountId?: string;
|
|
287
|
+
to: string;
|
|
288
|
+
}>;
|
|
289
|
+
getTargetFormats: () => string[];
|
|
290
|
+
};
|
|
258
291
|
outbound: {
|
|
259
292
|
deliveryMode: string;
|
|
260
|
-
sendText: (
|
|
293
|
+
sendText: (params: {
|
|
294
|
+
cfg: PluginConfig;
|
|
295
|
+
accountId?: string;
|
|
296
|
+
to: string;
|
|
297
|
+
text: string;
|
|
298
|
+
sessionKey?: string;
|
|
299
|
+
runId?: string;
|
|
300
|
+
}) => Promise<{
|
|
301
|
+
channel: string;
|
|
302
|
+
ok: boolean;
|
|
303
|
+
messageId: string;
|
|
304
|
+
error?: Error;
|
|
305
|
+
}>;
|
|
306
|
+
sendMedia: (params: {
|
|
307
|
+
cfg: PluginConfig;
|
|
308
|
+
accountId?: string;
|
|
309
|
+
to: string;
|
|
310
|
+
mediaUrl: string;
|
|
311
|
+
text?: string;
|
|
312
|
+
mimeType?: string;
|
|
313
|
+
sessionKey?: string;
|
|
314
|
+
runId?: string;
|
|
315
|
+
}) => Promise<{
|
|
316
|
+
channel: string;
|
|
317
|
+
ok: boolean;
|
|
318
|
+
messageId: string;
|
|
319
|
+
error?: Error;
|
|
320
|
+
}>;
|
|
321
|
+
sendTemplateCard: (params: {
|
|
322
|
+
cfg: PluginConfig;
|
|
323
|
+
accountId?: string;
|
|
324
|
+
to: string;
|
|
325
|
+
templateCard: Record<string, unknown>;
|
|
326
|
+
}) => Promise<{
|
|
261
327
|
channel: string;
|
|
262
328
|
ok: boolean;
|
|
263
329
|
messageId: string;
|
|
264
|
-
error
|
|
330
|
+
error?: Error;
|
|
265
331
|
}>;
|
|
266
332
|
};
|
|
267
333
|
gateway: {
|