@openclaw-china/wecom 2026.3.8-3 → 2026.3.9-1

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 CHANGED
@@ -3,6 +3,7 @@ import { IncomingMessage, ServerResponse } from 'http';
3
3
  type WecomDmPolicy = "open" | "pairing" | "allowlist" | "disabled";
4
4
  type WecomGroupPolicy = "open" | "allowlist" | "disabled";
5
5
  type WecomTransportMode = "webhook" | "ws";
6
+ type WecomWsImageReplyMode = "native" | "markdown-url";
6
7
  type WecomAccountConfig = {
7
8
  name?: string;
8
9
  enabled?: boolean;
@@ -18,6 +19,7 @@ type WecomAccountConfig = {
18
19
  reconnectInitialDelayMs?: number;
19
20
  reconnectMaxDelayMs?: number;
20
21
  publicBaseUrl?: string;
22
+ wsImageReplyMode?: WecomWsImageReplyMode;
21
23
  welcomeText?: string;
22
24
  dmPolicy?: WecomDmPolicy;
23
25
  allowFrom?: string[];
@@ -45,6 +47,7 @@ type ResolvedWecomAccount = {
45
47
  reconnectInitialDelayMs: number;
46
48
  reconnectMaxDelayMs: number;
47
49
  publicBaseUrl?: string;
50
+ wsImageReplyMode: WecomWsImageReplyMode;
48
51
  config: WecomAccountConfig;
49
52
  };
50
53
  type WecomInboundBase = {
@@ -146,6 +149,7 @@ declare const wecomPlugin: {
146
149
  mode: {
147
150
  type: string;
148
151
  enum: string[];
152
+ default: string;
149
153
  };
150
154
  webhookPath: {
151
155
  type: string;
@@ -183,6 +187,10 @@ declare const wecomPlugin: {
183
187
  publicBaseUrl: {
184
188
  type: string;
185
189
  };
190
+ wsImageReplyMode: {
191
+ type: string;
192
+ enum: string[];
193
+ };
186
194
  welcomeText: {
187
195
  type: string;
188
196
  };
@@ -227,6 +235,7 @@ declare const wecomPlugin: {
227
235
  mode: {
228
236
  type: string;
229
237
  enum: string[];
238
+ default: string;
230
239
  };
231
240
  webhookPath: {
232
241
  type: string;
@@ -264,6 +273,10 @@ declare const wecomPlugin: {
264
273
  publicBaseUrl: {
265
274
  type: string;
266
275
  };
276
+ wsImageReplyMode: {
277
+ type: string;
278
+ enum: string[];
279
+ };
267
280
  welcomeText: {
268
281
  type: string;
269
282
  };
@@ -460,6 +473,8 @@ interface PluginRuntime {
460
473
  dispatcherOptions: {
461
474
  deliver: (payload: {
462
475
  text?: string;
476
+ mediaUrl?: string;
477
+ mediaUrls?: string[];
463
478
  }) => Promise<void>;
464
479
  onError?: (err: unknown, info: {
465
480
  kind: string;