@openclaw-china/qqbot 2026.3.4-2 → 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;
@@ -353,7 +426,7 @@ declare const qqbotPlugin: {
353
426
  type: string;
354
427
  };
355
428
  appId: {
356
- type: string;
429
+ type: string[];
357
430
  };
358
431
  clientSecret: {
359
432
  type: string;
@@ -366,7 +439,7 @@ declare const qqbotPlugin: {
366
439
  type: string;
367
440
  };
368
441
  appId: {
369
- type: string;
442
+ type: string[];
370
443
  };
371
444
  secretId: {
372
445
  type: string;
@@ -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: {
@@ -432,7 +522,7 @@ declare const qqbotPlugin: {
432
522
  type: string;
433
523
  };
434
524
  appId: {
435
- type: string;
525
+ type: string[];
436
526
  };
437
527
  clientSecret: {
438
528
  type: string;
@@ -445,7 +535,7 @@ declare const qqbotPlugin: {
445
535
  type: string;
446
536
  };
447
537
  appId: {
448
- type: string;
538
+ type: string[];
449
539
  };
450
540
  secretId: {
451
541
  type: string;
@@ -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
  };
@@ -559,6 +666,7 @@ declare const qqbotPlugin: {
559
666
  to: string;
560
667
  text: string;
561
668
  replyToId?: string;
669
+ replyEventId?: string;
562
670
  accountId?: string;
563
671
  }) => Promise<QQBotSendResult>;
564
672
  sendMedia: (params: {
@@ -567,12 +675,14 @@ declare const qqbotPlugin: {
567
675
  text?: string;
568
676
  mediaUrl?: string;
569
677
  replyToId?: string;
678
+ replyEventId?: string;
570
679
  accountId?: string;
571
680
  }) => Promise<QQBotSendResult>;
572
681
  sendTyping: (params: {
573
682
  cfg: PluginConfig;
574
683
  to: string;
575
684
  replyToId?: string;
685
+ replyEventId?: string;
576
686
  inputSecond?: number;
577
687
  accountId?: string;
578
688
  }) => Promise<QQBotSendResult>;
@@ -756,7 +866,7 @@ declare const plugin: {
756
866
  type: string;
757
867
  };
758
868
  appId: {
759
- type: string;
869
+ type: string[];
760
870
  };
761
871
  clientSecret: {
762
872
  type: string;
@@ -769,7 +879,7 @@ declare const plugin: {
769
879
  type: string;
770
880
  };
771
881
  appId: {
772
- type: string;
882
+ type: string[];
773
883
  };
774
884
  secretId: {
775
885
  type: string;
@@ -816,12 +926,29 @@ declare const plugin: {
816
926
  replyFinalOnly: {
817
927
  type: string;
818
928
  };
929
+ longTaskNoticeDelayMs: {
930
+ type: string;
931
+ minimum: number;
932
+ };
819
933
  maxFileSizeMB: {
820
934
  type: string;
821
935
  };
822
936
  mediaTimeoutMs: {
823
937
  type: string;
824
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
+ };
825
952
  accounts: {
826
953
  type: string;
827
954
  additionalProperties: {
@@ -835,7 +962,7 @@ declare const plugin: {
835
962
  type: string;
836
963
  };
837
964
  appId: {
838
- type: string;
965
+ type: string[];
839
966
  };
840
967
  clientSecret: {
841
968
  type: string;
@@ -848,7 +975,7 @@ declare const plugin: {
848
975
  type: string;
849
976
  };
850
977
  appId: {
851
- type: string;
978
+ type: string[];
852
979
  };
853
980
  secretId: {
854
981
  type: string;
@@ -895,12 +1022,29 @@ declare const plugin: {
895
1022
  replyFinalOnly: {
896
1023
  type: string;
897
1024
  };
1025
+ longTaskNoticeDelayMs: {
1026
+ type: string;
1027
+ minimum: number;
1028
+ };
898
1029
  maxFileSizeMB: {
899
1030
  type: string;
900
1031
  };
901
1032
  mediaTimeoutMs: {
902
1033
  type: string;
903
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
+ };
904
1048
  };
905
1049
  };
906
1050
  };