@openclaw-china/qqbot 0.1.1 → 0.1.2

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.
@@ -16,10 +16,12 @@
16
16
  "groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"] },
17
17
  "requireMention": { "type": "boolean" },
18
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
- "replyFinalOnly": { "type": "boolean" }
23
- }
24
- }
25
- }
19
+ "groupAllowFrom": { "type": "array", "items": { "type": "string" } },
20
+ "historyLimit": { "type": "integer", "minimum": 0 },
21
+ "textChunkLimit": { "type": "integer", "minimum": 1 },
22
+ "replyFinalOnly": { "type": "boolean" },
23
+ "maxFileSizeMB": { "type": "number", "exclusiveMinimum": 0 },
24
+ "mediaTimeoutMs": { "type": "integer", "minimum": 1 }
25
+ }
26
+ }
27
+ }
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import { z } from 'zod';
2
2
 
3
3
  declare const QQBotConfigSchema: z.ZodObject<{
4
4
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5
- appId: z.ZodOptional<z.ZodString>;
6
- clientSecret: z.ZodOptional<z.ZodString>;
5
+ appId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
6
+ clientSecret: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
7
7
  markdownSupport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
8
  dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["open", "pairing", "allowlist"]>>>;
9
9
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["open", "allowlist", "disabled"]>>>;
@@ -13,6 +13,8 @@ declare const QQBotConfigSchema: z.ZodObject<{
13
13
  historyLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14
14
  textChunkLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15
15
  replyFinalOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
16
+ maxFileSizeMB: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
17
+ mediaTimeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16
18
  }, "strip", z.ZodTypeAny, {
17
19
  enabled: boolean;
18
20
  markdownSupport: boolean;
@@ -22,14 +24,16 @@ declare const QQBotConfigSchema: z.ZodObject<{
22
24
  historyLimit: number;
23
25
  textChunkLimit: number;
24
26
  replyFinalOnly: boolean;
27
+ maxFileSizeMB: number;
28
+ mediaTimeoutMs: number;
25
29
  appId?: string | undefined;
26
30
  clientSecret?: string | undefined;
27
31
  allowFrom?: string[] | undefined;
28
32
  groupAllowFrom?: string[] | undefined;
29
33
  }, {
30
34
  enabled?: boolean | undefined;
31
- appId?: string | undefined;
32
- clientSecret?: string | undefined;
35
+ appId?: unknown;
36
+ clientSecret?: unknown;
33
37
  markdownSupport?: boolean | undefined;
34
38
  dmPolicy?: "open" | "pairing" | "allowlist" | undefined;
35
39
  groupPolicy?: "open" | "allowlist" | "disabled" | undefined;
@@ -39,6 +43,8 @@ declare const QQBotConfigSchema: z.ZodObject<{
39
43
  historyLimit?: number | undefined;
40
44
  textChunkLimit?: number | undefined;
41
45
  replyFinalOnly?: boolean | undefined;
46
+ maxFileSizeMB?: number | undefined;
47
+ mediaTimeoutMs?: number | undefined;
42
48
  }>;
43
49
  type QQBotConfig = z.infer<typeof QQBotConfigSchema>;
44
50
 
@@ -57,7 +63,7 @@ interface QQBotSendResult {
57
63
  }
58
64
 
59
65
  /**
60
- * QQ Bot 出站适配器(仅文本)
66
+ * QQ Bot 出站适配器
61
67
  */
62
68
 
63
69
  interface OutboundConfig {
@@ -213,6 +219,13 @@ declare const qqbotPlugin: {
213
219
  to: string;
214
220
  text?: string;
215
221
  mediaUrl?: string;
222
+ replyToId?: string;
223
+ }) => Promise<QQBotSendResult>;
224
+ sendTyping: (params: {
225
+ cfg: OutboundConfig;
226
+ to: string;
227
+ replyToId?: string;
228
+ inputSecond?: number;
216
229
  }) => Promise<QQBotSendResult>;
217
230
  };
218
231
  gateway: {