@openclaw-china/qqbot 2026.3.5 → 2026.3.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.d.ts CHANGED
@@ -30,8 +30,19 @@ declare const QQBotAccountSchema: z.ZodObject<{
30
30
  historyLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
31
31
  textChunkLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
32
32
  replyFinalOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
33
+ longTaskNoticeDelayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
33
34
  maxFileSizeMB: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
34
35
  mediaTimeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
36
+ inboundMedia: z.ZodOptional<z.ZodObject<{
37
+ dir: z.ZodOptional<z.ZodString>;
38
+ keepDays: z.ZodOptional<z.ZodNumber>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ dir?: string | undefined;
41
+ keepDays?: number | undefined;
42
+ }, {
43
+ dir?: string | undefined;
44
+ keepDays?: number | undefined;
45
+ }>>;
35
46
  }, "strip", z.ZodTypeAny, {
36
47
  markdownSupport: boolean;
37
48
  dmPolicy: "open" | "pairing" | "allowlist";
@@ -40,6 +51,7 @@ declare const QQBotAccountSchema: z.ZodObject<{
40
51
  historyLimit: number;
41
52
  textChunkLimit: number;
42
53
  replyFinalOnly: boolean;
54
+ longTaskNoticeDelayMs: number;
43
55
  maxFileSizeMB: number;
44
56
  mediaTimeoutMs: number;
45
57
  name?: string | undefined;
@@ -54,6 +66,10 @@ declare const QQBotAccountSchema: z.ZodObject<{
54
66
  } | undefined;
55
67
  allowFrom?: string[] | undefined;
56
68
  groupAllowFrom?: string[] | undefined;
69
+ inboundMedia?: {
70
+ dir?: string | undefined;
71
+ keepDays?: number | undefined;
72
+ } | undefined;
57
73
  }, {
58
74
  name?: string | undefined;
59
75
  enabled?: boolean | undefined;
@@ -74,8 +90,13 @@ declare const QQBotAccountSchema: z.ZodObject<{
74
90
  historyLimit?: number | undefined;
75
91
  textChunkLimit?: number | undefined;
76
92
  replyFinalOnly?: boolean | undefined;
93
+ longTaskNoticeDelayMs?: number | undefined;
77
94
  maxFileSizeMB?: number | undefined;
78
95
  mediaTimeoutMs?: number | undefined;
96
+ inboundMedia?: {
97
+ dir?: string | undefined;
98
+ keepDays?: number | undefined;
99
+ } | undefined;
79
100
  }>;
80
101
  declare const QQBotConfigSchema: z.ZodObject<{
81
102
  name: z.ZodOptional<z.ZodString>;
@@ -107,8 +128,19 @@ declare const QQBotConfigSchema: z.ZodObject<{
107
128
  historyLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
108
129
  textChunkLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
109
130
  replyFinalOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
131
+ longTaskNoticeDelayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
110
132
  maxFileSizeMB: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
111
133
  mediaTimeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
134
+ inboundMedia: z.ZodOptional<z.ZodObject<{
135
+ dir: z.ZodOptional<z.ZodString>;
136
+ keepDays: z.ZodOptional<z.ZodNumber>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ dir?: string | undefined;
139
+ keepDays?: number | undefined;
140
+ }, {
141
+ dir?: string | undefined;
142
+ keepDays?: number | undefined;
143
+ }>>;
112
144
  } & {
113
145
  defaultAccount: z.ZodOptional<z.ZodString>;
114
146
  accounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -141,8 +173,19 @@ declare const QQBotConfigSchema: z.ZodObject<{
141
173
  historyLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
142
174
  textChunkLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
143
175
  replyFinalOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
176
+ longTaskNoticeDelayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
144
177
  maxFileSizeMB: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
145
178
  mediaTimeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
179
+ inboundMedia: z.ZodOptional<z.ZodObject<{
180
+ dir: z.ZodOptional<z.ZodString>;
181
+ keepDays: z.ZodOptional<z.ZodNumber>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ dir?: string | undefined;
184
+ keepDays?: number | undefined;
185
+ }, {
186
+ dir?: string | undefined;
187
+ keepDays?: number | undefined;
188
+ }>>;
146
189
  }, "strip", z.ZodTypeAny, {
147
190
  markdownSupport: boolean;
148
191
  dmPolicy: "open" | "pairing" | "allowlist";
@@ -151,6 +194,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
151
194
  historyLimit: number;
152
195
  textChunkLimit: number;
153
196
  replyFinalOnly: boolean;
197
+ longTaskNoticeDelayMs: number;
154
198
  maxFileSizeMB: number;
155
199
  mediaTimeoutMs: number;
156
200
  name?: string | undefined;
@@ -165,6 +209,10 @@ declare const QQBotConfigSchema: z.ZodObject<{
165
209
  } | undefined;
166
210
  allowFrom?: string[] | undefined;
167
211
  groupAllowFrom?: string[] | undefined;
212
+ inboundMedia?: {
213
+ dir?: string | undefined;
214
+ keepDays?: number | undefined;
215
+ } | undefined;
168
216
  }, {
169
217
  name?: string | undefined;
170
218
  enabled?: boolean | undefined;
@@ -185,8 +233,13 @@ declare const QQBotConfigSchema: z.ZodObject<{
185
233
  historyLimit?: number | undefined;
186
234
  textChunkLimit?: number | undefined;
187
235
  replyFinalOnly?: boolean | undefined;
236
+ longTaskNoticeDelayMs?: number | undefined;
188
237
  maxFileSizeMB?: number | undefined;
189
238
  mediaTimeoutMs?: number | undefined;
239
+ inboundMedia?: {
240
+ dir?: string | undefined;
241
+ keepDays?: number | undefined;
242
+ } | undefined;
190
243
  }>>>;
191
244
  }, "strip", z.ZodTypeAny, {
192
245
  markdownSupport: boolean;
@@ -196,6 +249,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
196
249
  historyLimit: number;
197
250
  textChunkLimit: number;
198
251
  replyFinalOnly: boolean;
252
+ longTaskNoticeDelayMs: number;
199
253
  maxFileSizeMB: number;
200
254
  mediaTimeoutMs: number;
201
255
  name?: string | undefined;
@@ -210,6 +264,10 @@ declare const QQBotConfigSchema: z.ZodObject<{
210
264
  } | undefined;
211
265
  allowFrom?: string[] | undefined;
212
266
  groupAllowFrom?: string[] | undefined;
267
+ inboundMedia?: {
268
+ dir?: string | undefined;
269
+ keepDays?: number | undefined;
270
+ } | undefined;
213
271
  defaultAccount?: string | undefined;
214
272
  accounts?: Record<string, {
215
273
  markdownSupport: boolean;
@@ -219,6 +277,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
219
277
  historyLimit: number;
220
278
  textChunkLimit: number;
221
279
  replyFinalOnly: boolean;
280
+ longTaskNoticeDelayMs: number;
222
281
  maxFileSizeMB: number;
223
282
  mediaTimeoutMs: number;
224
283
  name?: string | undefined;
@@ -233,6 +292,10 @@ declare const QQBotConfigSchema: z.ZodObject<{
233
292
  } | undefined;
234
293
  allowFrom?: string[] | undefined;
235
294
  groupAllowFrom?: string[] | undefined;
295
+ inboundMedia?: {
296
+ dir?: string | undefined;
297
+ keepDays?: number | undefined;
298
+ } | undefined;
236
299
  }> | undefined;
237
300
  }, {
238
301
  name?: string | undefined;
@@ -254,8 +317,13 @@ declare const QQBotConfigSchema: z.ZodObject<{
254
317
  historyLimit?: number | undefined;
255
318
  textChunkLimit?: number | undefined;
256
319
  replyFinalOnly?: boolean | undefined;
320
+ longTaskNoticeDelayMs?: number | undefined;
257
321
  maxFileSizeMB?: number | undefined;
258
322
  mediaTimeoutMs?: number | undefined;
323
+ inboundMedia?: {
324
+ dir?: string | undefined;
325
+ keepDays?: number | undefined;
326
+ } | undefined;
259
327
  defaultAccount?: string | undefined;
260
328
  accounts?: Record<string, {
261
329
  name?: string | undefined;
@@ -277,12 +345,17 @@ declare const QQBotConfigSchema: z.ZodObject<{
277
345
  historyLimit?: number | undefined;
278
346
  textChunkLimit?: number | undefined;
279
347
  replyFinalOnly?: boolean | undefined;
348
+ longTaskNoticeDelayMs?: number | undefined;
280
349
  maxFileSizeMB?: number | undefined;
281
350
  mediaTimeoutMs?: number | undefined;
351
+ inboundMedia?: {
352
+ dir?: string | undefined;
353
+ keepDays?: number | undefined;
354
+ } | undefined;
282
355
  }> | undefined;
283
356
  }>;
284
- type QQBotConfig = z.infer<typeof QQBotConfigSchema>;
285
- type QQBotAccountConfig = z.infer<typeof QQBotAccountSchema>;
357
+ type QQBotConfig = z.input<typeof QQBotConfigSchema>;
358
+ type QQBotAccountConfig = z.input<typeof QQBotAccountSchema>;
286
359
  interface PluginConfig {
287
360
  channels?: {
288
361
  qqbot?: QQBotConfig;
@@ -413,12 +486,29 @@ declare const qqbotPlugin: {
413
486
  replyFinalOnly: {
414
487
  type: string;
415
488
  };
489
+ longTaskNoticeDelayMs: {
490
+ type: string;
491
+ minimum: number;
492
+ };
416
493
  maxFileSizeMB: {
417
494
  type: string;
418
495
  };
419
496
  mediaTimeoutMs: {
420
497
  type: string;
421
498
  };
499
+ inboundMedia: {
500
+ type: string;
501
+ additionalProperties: boolean;
502
+ properties: {
503
+ dir: {
504
+ type: string;
505
+ };
506
+ keepDays: {
507
+ type: string;
508
+ minimum: number;
509
+ };
510
+ };
511
+ };
422
512
  accounts: {
423
513
  type: string;
424
514
  additionalProperties: {
@@ -492,12 +582,29 @@ declare const qqbotPlugin: {
492
582
  replyFinalOnly: {
493
583
  type: string;
494
584
  };
585
+ longTaskNoticeDelayMs: {
586
+ type: string;
587
+ minimum: number;
588
+ };
495
589
  maxFileSizeMB: {
496
590
  type: string;
497
591
  };
498
592
  mediaTimeoutMs: {
499
593
  type: string;
500
594
  };
595
+ inboundMedia: {
596
+ type: string;
597
+ additionalProperties: boolean;
598
+ properties: {
599
+ dir: {
600
+ type: string;
601
+ };
602
+ keepDays: {
603
+ type: string;
604
+ minimum: number;
605
+ };
606
+ };
607
+ };
501
608
  };
502
609
  };
503
610
  };
@@ -819,12 +926,29 @@ declare const plugin: {
819
926
  replyFinalOnly: {
820
927
  type: string;
821
928
  };
929
+ longTaskNoticeDelayMs: {
930
+ type: string;
931
+ minimum: number;
932
+ };
822
933
  maxFileSizeMB: {
823
934
  type: string;
824
935
  };
825
936
  mediaTimeoutMs: {
826
937
  type: string;
827
938
  };
939
+ inboundMedia: {
940
+ type: string;
941
+ additionalProperties: boolean;
942
+ properties: {
943
+ dir: {
944
+ type: string;
945
+ };
946
+ keepDays: {
947
+ type: string;
948
+ minimum: number;
949
+ };
950
+ };
951
+ };
828
952
  accounts: {
829
953
  type: string;
830
954
  additionalProperties: {
@@ -898,12 +1022,29 @@ declare const plugin: {
898
1022
  replyFinalOnly: {
899
1023
  type: string;
900
1024
  };
1025
+ longTaskNoticeDelayMs: {
1026
+ type: string;
1027
+ minimum: number;
1028
+ };
901
1029
  maxFileSizeMB: {
902
1030
  type: string;
903
1031
  };
904
1032
  mediaTimeoutMs: {
905
1033
  type: string;
906
1034
  };
1035
+ inboundMedia: {
1036
+ type: string;
1037
+ additionalProperties: boolean;
1038
+ properties: {
1039
+ dir: {
1040
+ type: string;
1041
+ };
1042
+ keepDays: {
1043
+ type: string;
1044
+ minimum: number;
1045
+ };
1046
+ };
1047
+ };
907
1048
  };
908
1049
  };
909
1050
  };