@openclaw/feishu 2026.3.13 → 2026.5.2-beta.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.
Files changed (187) hide show
  1. package/api.ts +31 -0
  2. package/channel-entry.ts +20 -0
  3. package/channel-plugin-api.ts +1 -0
  4. package/contract-api.ts +16 -0
  5. package/index.ts +70 -53
  6. package/openclaw.plugin.json +1827 -4
  7. package/package.json +32 -7
  8. package/runtime-api.ts +55 -0
  9. package/secret-contract-api.ts +5 -0
  10. package/security-contract-api.ts +1 -0
  11. package/session-key-api.ts +1 -0
  12. package/setup-api.ts +3 -0
  13. package/setup-entry.test.ts +14 -0
  14. package/setup-entry.ts +13 -0
  15. package/src/accounts.test.ts +95 -7
  16. package/src/accounts.ts +199 -117
  17. package/src/app-registration.ts +331 -0
  18. package/src/approval-auth.test.ts +24 -0
  19. package/src/approval-auth.ts +25 -0
  20. package/src/async.test.ts +35 -0
  21. package/src/async.ts +43 -1
  22. package/src/audio-preflight.runtime.ts +9 -0
  23. package/src/bitable.test.ts +131 -0
  24. package/src/bitable.ts +59 -22
  25. package/src/bot-content.ts +474 -0
  26. package/src/bot-group-name.test.ts +108 -0
  27. package/src/bot-runtime-api.ts +12 -0
  28. package/src/bot-sender-name.ts +125 -0
  29. package/src/bot.broadcast.test.ts +463 -0
  30. package/src/bot.card-action.test.ts +519 -5
  31. package/src/bot.checkBotMentioned.test.ts +92 -20
  32. package/src/bot.helpers.test.ts +118 -0
  33. package/src/bot.stripBotMention.test.ts +13 -21
  34. package/src/bot.test.ts +1334 -401
  35. package/src/bot.ts +778 -775
  36. package/src/card-action.ts +408 -40
  37. package/src/card-interaction.test.ts +129 -0
  38. package/src/card-interaction.ts +159 -0
  39. package/src/card-test-helpers.ts +47 -0
  40. package/src/card-ux-approval.ts +65 -0
  41. package/src/card-ux-launcher.test.ts +99 -0
  42. package/src/card-ux-launcher.ts +121 -0
  43. package/src/card-ux-shared.ts +33 -0
  44. package/src/channel-runtime-api.ts +16 -0
  45. package/src/channel.runtime.ts +47 -0
  46. package/src/channel.test.ts +914 -3
  47. package/src/channel.ts +1253 -309
  48. package/src/chat-schema.ts +5 -4
  49. package/src/chat.test.ts +135 -28
  50. package/src/chat.ts +68 -10
  51. package/src/client.test.ts +212 -103
  52. package/src/client.ts +115 -21
  53. package/src/comment-dispatcher-runtime-api.ts +6 -0
  54. package/src/comment-dispatcher.test.ts +169 -0
  55. package/src/comment-dispatcher.ts +107 -0
  56. package/src/comment-handler-runtime-api.ts +3 -0
  57. package/src/comment-handler.test.ts +486 -0
  58. package/src/comment-handler.ts +309 -0
  59. package/src/comment-reaction.test.ts +166 -0
  60. package/src/comment-reaction.ts +259 -0
  61. package/src/comment-shared.test.ts +182 -0
  62. package/src/comment-shared.ts +406 -0
  63. package/src/comment-target.ts +44 -0
  64. package/src/config-schema.test.ts +63 -1
  65. package/src/config-schema.ts +31 -4
  66. package/src/conversation-id.test.ts +18 -0
  67. package/src/conversation-id.ts +199 -0
  68. package/src/dedup-runtime-api.ts +1 -0
  69. package/src/dedup.ts +33 -95
  70. package/src/directory.static.ts +61 -0
  71. package/src/directory.test.ts +116 -20
  72. package/src/directory.ts +60 -92
  73. package/src/doc-schema.ts +1 -1
  74. package/src/docx-batch-insert.test.ts +39 -38
  75. package/src/docx-batch-insert.ts +55 -19
  76. package/src/docx-color-text.ts +9 -4
  77. package/src/docx-table-ops.test.ts +53 -0
  78. package/src/docx-table-ops.ts +52 -34
  79. package/src/docx-types.ts +38 -0
  80. package/src/docx.account-selection.test.ts +12 -3
  81. package/src/docx.test.ts +314 -74
  82. package/src/docx.ts +278 -122
  83. package/src/drive-schema.ts +47 -1
  84. package/src/drive.test.ts +1219 -0
  85. package/src/drive.ts +614 -13
  86. package/src/dynamic-agent.ts +10 -4
  87. package/src/event-types.ts +45 -0
  88. package/src/external-keys.ts +1 -1
  89. package/src/lifecycle.test-support.ts +220 -0
  90. package/src/media.test.ts +403 -26
  91. package/src/media.ts +509 -132
  92. package/src/mention-target.types.ts +5 -0
  93. package/src/mention.ts +32 -51
  94. package/src/message-action-contract.ts +13 -0
  95. package/src/monitor-state-runtime-api.ts +7 -0
  96. package/src/monitor-transport-runtime-api.ts +7 -0
  97. package/src/monitor.account.ts +218 -312
  98. package/src/monitor.acp-init-failure.lifecycle.test-support.ts +219 -0
  99. package/src/monitor.bot-identity.ts +86 -0
  100. package/src/monitor.bot-menu-handler.ts +165 -0
  101. package/src/monitor.bot-menu.lifecycle.test-support.ts +224 -0
  102. package/src/monitor.bot-menu.test.ts +178 -0
  103. package/src/monitor.broadcast.reply-once.lifecycle.test-support.ts +264 -0
  104. package/src/monitor.card-action.lifecycle.test-support.ts +373 -0
  105. package/src/monitor.cleanup.test.ts +376 -0
  106. package/src/monitor.comment-notice-handler.ts +105 -0
  107. package/src/monitor.comment.test.ts +937 -0
  108. package/src/monitor.comment.ts +1386 -0
  109. package/src/monitor.lifecycle.test.ts +4 -0
  110. package/src/monitor.message-handler.ts +339 -0
  111. package/src/monitor.reaction.lifecycle.test-support.ts +68 -0
  112. package/src/monitor.reaction.test.ts +108 -48
  113. package/src/monitor.startup.test.ts +11 -9
  114. package/src/monitor.startup.ts +26 -16
  115. package/src/monitor.state.ts +20 -5
  116. package/src/monitor.synthetic-error.ts +18 -0
  117. package/src/monitor.test-mocks.ts +2 -2
  118. package/src/monitor.transport.ts +220 -60
  119. package/src/monitor.ts +15 -10
  120. package/src/monitor.webhook-e2e.test.ts +65 -7
  121. package/src/monitor.webhook-security.test.ts +122 -0
  122. package/src/monitor.webhook.test-helpers.ts +44 -26
  123. package/src/outbound-runtime-api.ts +1 -0
  124. package/src/outbound.test.ts +616 -37
  125. package/src/outbound.ts +623 -81
  126. package/src/perm-schema.ts +1 -1
  127. package/src/perm.ts +1 -7
  128. package/src/pins.ts +108 -0
  129. package/src/policy.test.ts +297 -117
  130. package/src/policy.ts +142 -29
  131. package/src/post.ts +7 -6
  132. package/src/probe.test.ts +14 -9
  133. package/src/probe.ts +26 -16
  134. package/src/processing-claims.ts +59 -0
  135. package/src/qr-terminal.ts +1 -0
  136. package/src/reactions.ts +4 -34
  137. package/src/reasoning-preview.test.ts +59 -0
  138. package/src/reasoning-preview.ts +20 -0
  139. package/src/reply-dispatcher-runtime-api.ts +7 -0
  140. package/src/reply-dispatcher.test.ts +660 -29
  141. package/src/reply-dispatcher.ts +407 -154
  142. package/src/runtime.ts +6 -3
  143. package/src/secret-contract.ts +145 -0
  144. package/src/secret-input.ts +1 -13
  145. package/src/security-audit-shared.ts +69 -0
  146. package/src/security-audit.test.ts +61 -0
  147. package/src/security-audit.ts +1 -0
  148. package/src/send-result.ts +1 -1
  149. package/src/send-target.test.ts +9 -3
  150. package/src/send-target.ts +10 -4
  151. package/src/send.reply-fallback.test.ts +105 -2
  152. package/src/send.test.ts +386 -4
  153. package/src/send.ts +414 -95
  154. package/src/sequential-key.test.ts +72 -0
  155. package/src/sequential-key.ts +28 -0
  156. package/src/sequential-queue.test.ts +92 -0
  157. package/src/sequential-queue.ts +16 -0
  158. package/src/session-conversation.ts +42 -0
  159. package/src/session-route.ts +48 -0
  160. package/src/setup-core.ts +51 -0
  161. package/src/{onboarding.test.ts → setup-surface.test.ts} +52 -21
  162. package/src/setup-surface.ts +581 -0
  163. package/src/streaming-card.test.ts +138 -2
  164. package/src/streaming-card.ts +134 -18
  165. package/src/subagent-hooks.test.ts +603 -0
  166. package/src/subagent-hooks.ts +397 -0
  167. package/src/targets.ts +3 -13
  168. package/src/test-support/lifecycle-test-support.ts +453 -0
  169. package/src/thread-bindings.test.ts +143 -0
  170. package/src/thread-bindings.ts +330 -0
  171. package/src/tool-account-routing.test.ts +66 -8
  172. package/src/tool-account.test.ts +44 -0
  173. package/src/tool-account.ts +40 -17
  174. package/src/tool-factory-test-harness.ts +11 -8
  175. package/src/tool-result.ts +3 -1
  176. package/src/tools-config.ts +1 -1
  177. package/src/types.ts +16 -15
  178. package/src/typing.ts +10 -6
  179. package/src/wiki-schema.ts +1 -1
  180. package/src/wiki.ts +1 -7
  181. package/subagent-hooks-api.ts +31 -0
  182. package/tsconfig.json +16 -0
  183. package/src/feishu-command-handler.ts +0 -59
  184. package/src/onboarding.status.test.ts +0 -25
  185. package/src/onboarding.ts +0 -489
  186. package/src/send-message.ts +0 -71
  187. package/src/targets.test.ts +0 -70
@@ -1,10 +1,1833 @@
1
1
  {
2
2
  "id": "feishu",
3
- "channels": ["feishu"],
4
- "skills": ["./skills"],
3
+ "activation": {
4
+ "onStartup": false
5
+ },
6
+ "channels": [
7
+ "feishu"
8
+ ],
9
+ "contracts": {
10
+ "tools": [
11
+ "feishu_app_scopes",
12
+ "feishu_bitable_create_app",
13
+ "feishu_bitable_create_field",
14
+ "feishu_bitable_create_record",
15
+ "feishu_bitable_get_meta",
16
+ "feishu_bitable_get_record",
17
+ "feishu_bitable_list_fields",
18
+ "feishu_bitable_list_records",
19
+ "feishu_bitable_update_record",
20
+ "feishu_chat",
21
+ "feishu_doc",
22
+ "feishu_drive",
23
+ "feishu_perm",
24
+ "feishu_wiki"
25
+ ]
26
+ },
27
+ "toolMetadata": {
28
+ "feishu_app_scopes": {
29
+ "configSignals": [
30
+ {
31
+ "rootPath": "channels.feishu",
32
+ "required": [
33
+ "appId",
34
+ "appSecret"
35
+ ]
36
+ }
37
+ ]
38
+ },
39
+ "feishu_bitable_create_app": {
40
+ "configSignals": [
41
+ {
42
+ "rootPath": "channels.feishu",
43
+ "required": [
44
+ "appId",
45
+ "appSecret"
46
+ ]
47
+ }
48
+ ]
49
+ },
50
+ "feishu_bitable_create_field": {
51
+ "configSignals": [
52
+ {
53
+ "rootPath": "channels.feishu",
54
+ "required": [
55
+ "appId",
56
+ "appSecret"
57
+ ]
58
+ }
59
+ ]
60
+ },
61
+ "feishu_bitable_create_record": {
62
+ "configSignals": [
63
+ {
64
+ "rootPath": "channels.feishu",
65
+ "required": [
66
+ "appId",
67
+ "appSecret"
68
+ ]
69
+ }
70
+ ]
71
+ },
72
+ "feishu_bitable_get_meta": {
73
+ "configSignals": [
74
+ {
75
+ "rootPath": "channels.feishu",
76
+ "required": [
77
+ "appId",
78
+ "appSecret"
79
+ ]
80
+ }
81
+ ]
82
+ },
83
+ "feishu_bitable_get_record": {
84
+ "configSignals": [
85
+ {
86
+ "rootPath": "channels.feishu",
87
+ "required": [
88
+ "appId",
89
+ "appSecret"
90
+ ]
91
+ }
92
+ ]
93
+ },
94
+ "feishu_bitable_list_fields": {
95
+ "configSignals": [
96
+ {
97
+ "rootPath": "channels.feishu",
98
+ "required": [
99
+ "appId",
100
+ "appSecret"
101
+ ]
102
+ }
103
+ ]
104
+ },
105
+ "feishu_bitable_list_records": {
106
+ "configSignals": [
107
+ {
108
+ "rootPath": "channels.feishu",
109
+ "required": [
110
+ "appId",
111
+ "appSecret"
112
+ ]
113
+ }
114
+ ]
115
+ },
116
+ "feishu_bitable_update_record": {
117
+ "configSignals": [
118
+ {
119
+ "rootPath": "channels.feishu",
120
+ "required": [
121
+ "appId",
122
+ "appSecret"
123
+ ]
124
+ }
125
+ ]
126
+ },
127
+ "feishu_chat": {
128
+ "configSignals": [
129
+ {
130
+ "rootPath": "channels.feishu",
131
+ "required": [
132
+ "appId",
133
+ "appSecret"
134
+ ]
135
+ }
136
+ ]
137
+ },
138
+ "feishu_doc": {
139
+ "configSignals": [
140
+ {
141
+ "rootPath": "channels.feishu",
142
+ "required": [
143
+ "appId",
144
+ "appSecret"
145
+ ]
146
+ }
147
+ ]
148
+ },
149
+ "feishu_drive": {
150
+ "configSignals": [
151
+ {
152
+ "rootPath": "channels.feishu",
153
+ "required": [
154
+ "appId",
155
+ "appSecret"
156
+ ]
157
+ }
158
+ ]
159
+ },
160
+ "feishu_perm": {
161
+ "configSignals": [
162
+ {
163
+ "rootPath": "channels.feishu",
164
+ "required": [
165
+ "appId",
166
+ "appSecret"
167
+ ]
168
+ }
169
+ ]
170
+ },
171
+ "feishu_wiki": {
172
+ "configSignals": [
173
+ {
174
+ "rootPath": "channels.feishu",
175
+ "required": [
176
+ "appId",
177
+ "appSecret"
178
+ ]
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ "channelEnvVars": {
184
+ "feishu": [
185
+ "FEISHU_APP_ID",
186
+ "FEISHU_APP_SECRET",
187
+ "FEISHU_VERIFICATION_TOKEN",
188
+ "FEISHU_ENCRYPT_KEY"
189
+ ]
190
+ },
191
+ "skills": [
192
+ "./skills"
193
+ ],
5
194
  "configSchema": {
6
195
  "type": "object",
7
- "additionalProperties": false,
8
- "properties": {}
196
+ "additionalProperties": true,
197
+ "$defs": {
198
+ "secretRef": {
199
+ "type": "object",
200
+ "additionalProperties": false,
201
+ "properties": {
202
+ "source": {
203
+ "type": "string",
204
+ "enum": [
205
+ "env",
206
+ "file",
207
+ "exec"
208
+ ]
209
+ },
210
+ "provider": {
211
+ "type": "string"
212
+ },
213
+ "id": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "required": [
218
+ "source",
219
+ "provider",
220
+ "id"
221
+ ]
222
+ },
223
+ "secretInput": {
224
+ "anyOf": [
225
+ {
226
+ "type": "string",
227
+ "minLength": 1
228
+ },
229
+ {
230
+ "$ref": "#/$defs/secretRef"
231
+ }
232
+ ]
233
+ },
234
+ "account": {
235
+ "type": "object",
236
+ "additionalProperties": true,
237
+ "properties": {
238
+ "enabled": {
239
+ "type": "boolean"
240
+ },
241
+ "name": {
242
+ "type": "string"
243
+ },
244
+ "appId": {
245
+ "type": "string"
246
+ },
247
+ "appSecret": {
248
+ "$ref": "#/$defs/secretInput"
249
+ },
250
+ "encryptKey": {
251
+ "$ref": "#/$defs/secretInput"
252
+ },
253
+ "verificationToken": {
254
+ "$ref": "#/$defs/secretInput"
255
+ },
256
+ "domain": {
257
+ "anyOf": [
258
+ {
259
+ "type": "string",
260
+ "enum": [
261
+ "feishu",
262
+ "lark"
263
+ ]
264
+ },
265
+ {
266
+ "type": "string",
267
+ "format": "uri"
268
+ }
269
+ ]
270
+ },
271
+ "connectionMode": {
272
+ "type": "string",
273
+ "enum": [
274
+ "websocket",
275
+ "webhook"
276
+ ]
277
+ },
278
+ "renderMode": {
279
+ "type": "string",
280
+ "enum": [
281
+ "auto",
282
+ "raw",
283
+ "card"
284
+ ]
285
+ },
286
+ "streaming": {
287
+ "type": "boolean"
288
+ },
289
+ "replyInThread": {
290
+ "type": "string",
291
+ "enum": [
292
+ "disabled",
293
+ "enabled"
294
+ ]
295
+ },
296
+ "typingIndicator": {
297
+ "type": "boolean"
298
+ }
299
+ }
300
+ }
301
+ },
302
+ "properties": {
303
+ "enabled": {
304
+ "type": "boolean"
305
+ },
306
+ "defaultAccount": {
307
+ "type": "string"
308
+ },
309
+ "appId": {
310
+ "type": "string"
311
+ },
312
+ "appSecret": {
313
+ "$ref": "#/$defs/secretInput"
314
+ },
315
+ "encryptKey": {
316
+ "$ref": "#/$defs/secretInput"
317
+ },
318
+ "verificationToken": {
319
+ "$ref": "#/$defs/secretInput"
320
+ },
321
+ "domain": {
322
+ "anyOf": [
323
+ {
324
+ "type": "string",
325
+ "enum": [
326
+ "feishu",
327
+ "lark"
328
+ ]
329
+ },
330
+ {
331
+ "type": "string",
332
+ "format": "uri"
333
+ }
334
+ ]
335
+ },
336
+ "connectionMode": {
337
+ "type": "string",
338
+ "enum": [
339
+ "websocket",
340
+ "webhook"
341
+ ]
342
+ },
343
+ "renderMode": {
344
+ "type": "string",
345
+ "enum": [
346
+ "auto",
347
+ "raw",
348
+ "card"
349
+ ]
350
+ },
351
+ "streaming": {
352
+ "type": "boolean"
353
+ },
354
+ "replyInThread": {
355
+ "type": "string",
356
+ "enum": [
357
+ "disabled",
358
+ "enabled"
359
+ ]
360
+ },
361
+ "typingIndicator": {
362
+ "type": "boolean"
363
+ },
364
+ "accounts": {
365
+ "type": "object",
366
+ "additionalProperties": {
367
+ "$ref": "#/$defs/account"
368
+ }
369
+ }
370
+ }
371
+ },
372
+ "channelConfigs": {
373
+ "feishu": {
374
+ "schema": {
375
+ "$schema": "http://json-schema.org/draft-07/schema#",
376
+ "type": "object",
377
+ "properties": {
378
+ "enabled": {
379
+ "type": "boolean"
380
+ },
381
+ "defaultAccount": {
382
+ "type": "string"
383
+ },
384
+ "appId": {
385
+ "type": "string"
386
+ },
387
+ "appSecret": {
388
+ "anyOf": [
389
+ {
390
+ "type": "string"
391
+ },
392
+ {
393
+ "oneOf": [
394
+ {
395
+ "type": "object",
396
+ "properties": {
397
+ "source": {
398
+ "type": "string",
399
+ "const": "env"
400
+ },
401
+ "provider": {
402
+ "type": "string",
403
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
404
+ },
405
+ "id": {
406
+ "type": "string",
407
+ "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
408
+ }
409
+ },
410
+ "required": [
411
+ "source",
412
+ "provider",
413
+ "id"
414
+ ],
415
+ "additionalProperties": false
416
+ },
417
+ {
418
+ "type": "object",
419
+ "properties": {
420
+ "source": {
421
+ "type": "string",
422
+ "const": "file"
423
+ },
424
+ "provider": {
425
+ "type": "string",
426
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
427
+ },
428
+ "id": {
429
+ "type": "string"
430
+ }
431
+ },
432
+ "required": [
433
+ "source",
434
+ "provider",
435
+ "id"
436
+ ],
437
+ "additionalProperties": false
438
+ },
439
+ {
440
+ "type": "object",
441
+ "properties": {
442
+ "source": {
443
+ "type": "string",
444
+ "const": "exec"
445
+ },
446
+ "provider": {
447
+ "type": "string",
448
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
449
+ },
450
+ "id": {
451
+ "type": "string"
452
+ }
453
+ },
454
+ "required": [
455
+ "source",
456
+ "provider",
457
+ "id"
458
+ ],
459
+ "additionalProperties": false
460
+ }
461
+ ]
462
+ }
463
+ ]
464
+ },
465
+ "encryptKey": {
466
+ "anyOf": [
467
+ {
468
+ "type": "string"
469
+ },
470
+ {
471
+ "oneOf": [
472
+ {
473
+ "type": "object",
474
+ "properties": {
475
+ "source": {
476
+ "type": "string",
477
+ "const": "env"
478
+ },
479
+ "provider": {
480
+ "type": "string",
481
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
482
+ },
483
+ "id": {
484
+ "type": "string",
485
+ "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
486
+ }
487
+ },
488
+ "required": [
489
+ "source",
490
+ "provider",
491
+ "id"
492
+ ],
493
+ "additionalProperties": false
494
+ },
495
+ {
496
+ "type": "object",
497
+ "properties": {
498
+ "source": {
499
+ "type": "string",
500
+ "const": "file"
501
+ },
502
+ "provider": {
503
+ "type": "string",
504
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
505
+ },
506
+ "id": {
507
+ "type": "string"
508
+ }
509
+ },
510
+ "required": [
511
+ "source",
512
+ "provider",
513
+ "id"
514
+ ],
515
+ "additionalProperties": false
516
+ },
517
+ {
518
+ "type": "object",
519
+ "properties": {
520
+ "source": {
521
+ "type": "string",
522
+ "const": "exec"
523
+ },
524
+ "provider": {
525
+ "type": "string",
526
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
527
+ },
528
+ "id": {
529
+ "type": "string"
530
+ }
531
+ },
532
+ "required": [
533
+ "source",
534
+ "provider",
535
+ "id"
536
+ ],
537
+ "additionalProperties": false
538
+ }
539
+ ]
540
+ }
541
+ ]
542
+ },
543
+ "verificationToken": {
544
+ "anyOf": [
545
+ {
546
+ "type": "string"
547
+ },
548
+ {
549
+ "oneOf": [
550
+ {
551
+ "type": "object",
552
+ "properties": {
553
+ "source": {
554
+ "type": "string",
555
+ "const": "env"
556
+ },
557
+ "provider": {
558
+ "type": "string",
559
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
560
+ },
561
+ "id": {
562
+ "type": "string",
563
+ "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
564
+ }
565
+ },
566
+ "required": [
567
+ "source",
568
+ "provider",
569
+ "id"
570
+ ],
571
+ "additionalProperties": false
572
+ },
573
+ {
574
+ "type": "object",
575
+ "properties": {
576
+ "source": {
577
+ "type": "string",
578
+ "const": "file"
579
+ },
580
+ "provider": {
581
+ "type": "string",
582
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
583
+ },
584
+ "id": {
585
+ "type": "string"
586
+ }
587
+ },
588
+ "required": [
589
+ "source",
590
+ "provider",
591
+ "id"
592
+ ],
593
+ "additionalProperties": false
594
+ },
595
+ {
596
+ "type": "object",
597
+ "properties": {
598
+ "source": {
599
+ "type": "string",
600
+ "const": "exec"
601
+ },
602
+ "provider": {
603
+ "type": "string",
604
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
605
+ },
606
+ "id": {
607
+ "type": "string"
608
+ }
609
+ },
610
+ "required": [
611
+ "source",
612
+ "provider",
613
+ "id"
614
+ ],
615
+ "additionalProperties": false
616
+ }
617
+ ]
618
+ }
619
+ ]
620
+ },
621
+ "domain": {
622
+ "default": "feishu",
623
+ "anyOf": [
624
+ {
625
+ "type": "string",
626
+ "enum": [
627
+ "feishu",
628
+ "lark"
629
+ ]
630
+ },
631
+ {
632
+ "type": "string",
633
+ "format": "uri",
634
+ "pattern": "^https:\\/\\/.*"
635
+ }
636
+ ]
637
+ },
638
+ "connectionMode": {
639
+ "default": "websocket",
640
+ "type": "string",
641
+ "enum": [
642
+ "websocket",
643
+ "webhook"
644
+ ]
645
+ },
646
+ "webhookPath": {
647
+ "default": "/feishu/events",
648
+ "type": "string"
649
+ },
650
+ "webhookHost": {
651
+ "type": "string"
652
+ },
653
+ "webhookPort": {
654
+ "type": "integer",
655
+ "exclusiveMinimum": 0,
656
+ "maximum": 9007199254740991
657
+ },
658
+ "capabilities": {
659
+ "type": "array",
660
+ "items": {
661
+ "type": "string"
662
+ }
663
+ },
664
+ "markdown": {
665
+ "type": "object",
666
+ "properties": {
667
+ "mode": {
668
+ "type": "string",
669
+ "enum": [
670
+ "native",
671
+ "escape",
672
+ "strip"
673
+ ]
674
+ },
675
+ "tableMode": {
676
+ "type": "string",
677
+ "enum": [
678
+ "native",
679
+ "ascii",
680
+ "simple"
681
+ ]
682
+ }
683
+ },
684
+ "additionalProperties": false
685
+ },
686
+ "configWrites": {
687
+ "type": "boolean"
688
+ },
689
+ "dmPolicy": {
690
+ "default": "pairing",
691
+ "type": "string",
692
+ "enum": [
693
+ "open",
694
+ "pairing",
695
+ "allowlist"
696
+ ]
697
+ },
698
+ "allowFrom": {
699
+ "type": "array",
700
+ "items": {
701
+ "anyOf": [
702
+ {
703
+ "type": "string"
704
+ },
705
+ {
706
+ "type": "number"
707
+ }
708
+ ]
709
+ }
710
+ },
711
+ "groupPolicy": {
712
+ "default": "allowlist",
713
+ "anyOf": [
714
+ {
715
+ "type": "string",
716
+ "enum": [
717
+ "open",
718
+ "allowlist",
719
+ "disabled"
720
+ ]
721
+ },
722
+ {}
723
+ ]
724
+ },
725
+ "groupAllowFrom": {
726
+ "type": "array",
727
+ "items": {
728
+ "anyOf": [
729
+ {
730
+ "type": "string"
731
+ },
732
+ {
733
+ "type": "number"
734
+ }
735
+ ]
736
+ }
737
+ },
738
+ "groupSenderAllowFrom": {
739
+ "type": "array",
740
+ "items": {
741
+ "anyOf": [
742
+ {
743
+ "type": "string"
744
+ },
745
+ {
746
+ "type": "number"
747
+ }
748
+ ]
749
+ }
750
+ },
751
+ "requireMention": {
752
+ "type": "boolean"
753
+ },
754
+ "groups": {
755
+ "type": "object",
756
+ "propertyNames": {
757
+ "type": "string"
758
+ },
759
+ "additionalProperties": {
760
+ "type": "object",
761
+ "properties": {
762
+ "requireMention": {
763
+ "type": "boolean"
764
+ },
765
+ "tools": {
766
+ "type": "object",
767
+ "properties": {
768
+ "allow": {
769
+ "type": "array",
770
+ "items": {
771
+ "type": "string"
772
+ }
773
+ },
774
+ "deny": {
775
+ "type": "array",
776
+ "items": {
777
+ "type": "string"
778
+ }
779
+ }
780
+ },
781
+ "additionalProperties": false
782
+ },
783
+ "skills": {
784
+ "type": "array",
785
+ "items": {
786
+ "type": "string"
787
+ }
788
+ },
789
+ "enabled": {
790
+ "type": "boolean"
791
+ },
792
+ "allowFrom": {
793
+ "type": "array",
794
+ "items": {
795
+ "anyOf": [
796
+ {
797
+ "type": "string"
798
+ },
799
+ {
800
+ "type": "number"
801
+ }
802
+ ]
803
+ }
804
+ },
805
+ "systemPrompt": {
806
+ "type": "string"
807
+ },
808
+ "groupSessionScope": {
809
+ "type": "string",
810
+ "enum": [
811
+ "group",
812
+ "group_sender",
813
+ "group_topic",
814
+ "group_topic_sender"
815
+ ]
816
+ },
817
+ "topicSessionMode": {
818
+ "type": "string",
819
+ "enum": [
820
+ "disabled",
821
+ "enabled"
822
+ ]
823
+ },
824
+ "replyInThread": {
825
+ "type": "string",
826
+ "enum": [
827
+ "disabled",
828
+ "enabled"
829
+ ]
830
+ }
831
+ },
832
+ "additionalProperties": false
833
+ }
834
+ },
835
+ "historyLimit": {
836
+ "type": "integer",
837
+ "minimum": 0,
838
+ "maximum": 9007199254740991
839
+ },
840
+ "dmHistoryLimit": {
841
+ "type": "integer",
842
+ "minimum": 0,
843
+ "maximum": 9007199254740991
844
+ },
845
+ "dms": {
846
+ "type": "object",
847
+ "propertyNames": {
848
+ "type": "string"
849
+ },
850
+ "additionalProperties": {
851
+ "type": "object",
852
+ "properties": {
853
+ "enabled": {
854
+ "type": "boolean"
855
+ },
856
+ "systemPrompt": {
857
+ "type": "string"
858
+ }
859
+ },
860
+ "additionalProperties": false
861
+ }
862
+ },
863
+ "textChunkLimit": {
864
+ "type": "integer",
865
+ "exclusiveMinimum": 0,
866
+ "maximum": 9007199254740991
867
+ },
868
+ "chunkMode": {
869
+ "type": "string",
870
+ "enum": [
871
+ "length",
872
+ "newline"
873
+ ]
874
+ },
875
+ "blockStreamingCoalesce": {
876
+ "type": "object",
877
+ "properties": {
878
+ "enabled": {
879
+ "type": "boolean"
880
+ },
881
+ "minDelayMs": {
882
+ "type": "integer",
883
+ "exclusiveMinimum": 0,
884
+ "maximum": 9007199254740991
885
+ },
886
+ "maxDelayMs": {
887
+ "type": "integer",
888
+ "exclusiveMinimum": 0,
889
+ "maximum": 9007199254740991
890
+ }
891
+ },
892
+ "additionalProperties": false
893
+ },
894
+ "mediaMaxMb": {
895
+ "type": "number",
896
+ "exclusiveMinimum": 0
897
+ },
898
+ "httpTimeoutMs": {
899
+ "type": "integer",
900
+ "exclusiveMinimum": 0,
901
+ "maximum": 300000
902
+ },
903
+ "heartbeat": {
904
+ "type": "object",
905
+ "properties": {
906
+ "visibility": {
907
+ "type": "string",
908
+ "enum": [
909
+ "visible",
910
+ "hidden"
911
+ ]
912
+ },
913
+ "intervalMs": {
914
+ "type": "integer",
915
+ "exclusiveMinimum": 0,
916
+ "maximum": 9007199254740991
917
+ }
918
+ },
919
+ "additionalProperties": false
920
+ },
921
+ "renderMode": {
922
+ "type": "string",
923
+ "enum": [
924
+ "auto",
925
+ "raw",
926
+ "card"
927
+ ]
928
+ },
929
+ "streaming": {
930
+ "type": "boolean"
931
+ },
932
+ "tools": {
933
+ "type": "object",
934
+ "properties": {
935
+ "doc": {
936
+ "type": "boolean"
937
+ },
938
+ "chat": {
939
+ "type": "boolean"
940
+ },
941
+ "wiki": {
942
+ "type": "boolean"
943
+ },
944
+ "drive": {
945
+ "type": "boolean"
946
+ },
947
+ "perm": {
948
+ "type": "boolean"
949
+ },
950
+ "scopes": {
951
+ "type": "boolean"
952
+ }
953
+ },
954
+ "additionalProperties": false
955
+ },
956
+ "actions": {
957
+ "type": "object",
958
+ "properties": {
959
+ "reactions": {
960
+ "type": "boolean"
961
+ }
962
+ },
963
+ "additionalProperties": false
964
+ },
965
+ "replyInThread": {
966
+ "type": "string",
967
+ "enum": [
968
+ "disabled",
969
+ "enabled"
970
+ ]
971
+ },
972
+ "reactionNotifications": {
973
+ "default": "own",
974
+ "type": "string",
975
+ "enum": [
976
+ "off",
977
+ "own",
978
+ "all"
979
+ ]
980
+ },
981
+ "typingIndicator": {
982
+ "default": true,
983
+ "type": "boolean"
984
+ },
985
+ "resolveSenderNames": {
986
+ "default": true,
987
+ "type": "boolean"
988
+ },
989
+ "tts": {
990
+ "type": "object",
991
+ "properties": {
992
+ "auto": {
993
+ "type": "string",
994
+ "enum": [
995
+ "off",
996
+ "always",
997
+ "inbound",
998
+ "tagged"
999
+ ]
1000
+ },
1001
+ "enabled": {
1002
+ "type": "boolean"
1003
+ },
1004
+ "mode": {
1005
+ "type": "string",
1006
+ "enum": [
1007
+ "final",
1008
+ "all"
1009
+ ]
1010
+ },
1011
+ "provider": {
1012
+ "type": "string"
1013
+ },
1014
+ "persona": {
1015
+ "type": "string"
1016
+ },
1017
+ "personas": {
1018
+ "type": "object",
1019
+ "propertyNames": {
1020
+ "type": "string"
1021
+ },
1022
+ "additionalProperties": {
1023
+ "type": "object",
1024
+ "propertyNames": {
1025
+ "type": "string"
1026
+ },
1027
+ "additionalProperties": {}
1028
+ }
1029
+ },
1030
+ "summaryModel": {
1031
+ "type": "string"
1032
+ },
1033
+ "modelOverrides": {
1034
+ "type": "object",
1035
+ "propertyNames": {
1036
+ "type": "string"
1037
+ },
1038
+ "additionalProperties": {}
1039
+ },
1040
+ "providers": {
1041
+ "type": "object",
1042
+ "propertyNames": {
1043
+ "type": "string"
1044
+ },
1045
+ "additionalProperties": {
1046
+ "type": "object",
1047
+ "propertyNames": {
1048
+ "type": "string"
1049
+ },
1050
+ "additionalProperties": {}
1051
+ }
1052
+ },
1053
+ "prefsPath": {
1054
+ "type": "string"
1055
+ },
1056
+ "maxTextLength": {
1057
+ "type": "integer",
1058
+ "minimum": 1,
1059
+ "maximum": 9007199254740991
1060
+ },
1061
+ "timeoutMs": {
1062
+ "type": "integer",
1063
+ "minimum": 1000,
1064
+ "maximum": 120000
1065
+ }
1066
+ },
1067
+ "additionalProperties": false
1068
+ },
1069
+ "groupSessionScope": {
1070
+ "type": "string",
1071
+ "enum": [
1072
+ "group",
1073
+ "group_sender",
1074
+ "group_topic",
1075
+ "group_topic_sender"
1076
+ ]
1077
+ },
1078
+ "topicSessionMode": {
1079
+ "type": "string",
1080
+ "enum": [
1081
+ "disabled",
1082
+ "enabled"
1083
+ ]
1084
+ },
1085
+ "dynamicAgentCreation": {
1086
+ "type": "object",
1087
+ "properties": {
1088
+ "enabled": {
1089
+ "type": "boolean"
1090
+ },
1091
+ "workspaceTemplate": {
1092
+ "type": "string"
1093
+ },
1094
+ "agentDirTemplate": {
1095
+ "type": "string"
1096
+ },
1097
+ "maxAgents": {
1098
+ "type": "integer",
1099
+ "exclusiveMinimum": 0,
1100
+ "maximum": 9007199254740991
1101
+ }
1102
+ },
1103
+ "additionalProperties": false
1104
+ },
1105
+ "accounts": {
1106
+ "type": "object",
1107
+ "propertyNames": {
1108
+ "type": "string"
1109
+ },
1110
+ "additionalProperties": {
1111
+ "type": "object",
1112
+ "properties": {
1113
+ "enabled": {
1114
+ "type": "boolean"
1115
+ },
1116
+ "name": {
1117
+ "type": "string"
1118
+ },
1119
+ "appId": {
1120
+ "type": "string"
1121
+ },
1122
+ "appSecret": {
1123
+ "anyOf": [
1124
+ {
1125
+ "type": "string"
1126
+ },
1127
+ {
1128
+ "oneOf": [
1129
+ {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "source": {
1133
+ "type": "string",
1134
+ "const": "env"
1135
+ },
1136
+ "provider": {
1137
+ "type": "string",
1138
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1139
+ },
1140
+ "id": {
1141
+ "type": "string",
1142
+ "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
1143
+ }
1144
+ },
1145
+ "required": [
1146
+ "source",
1147
+ "provider",
1148
+ "id"
1149
+ ],
1150
+ "additionalProperties": false
1151
+ },
1152
+ {
1153
+ "type": "object",
1154
+ "properties": {
1155
+ "source": {
1156
+ "type": "string",
1157
+ "const": "file"
1158
+ },
1159
+ "provider": {
1160
+ "type": "string",
1161
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1162
+ },
1163
+ "id": {
1164
+ "type": "string"
1165
+ }
1166
+ },
1167
+ "required": [
1168
+ "source",
1169
+ "provider",
1170
+ "id"
1171
+ ],
1172
+ "additionalProperties": false
1173
+ },
1174
+ {
1175
+ "type": "object",
1176
+ "properties": {
1177
+ "source": {
1178
+ "type": "string",
1179
+ "const": "exec"
1180
+ },
1181
+ "provider": {
1182
+ "type": "string",
1183
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1184
+ },
1185
+ "id": {
1186
+ "type": "string"
1187
+ }
1188
+ },
1189
+ "required": [
1190
+ "source",
1191
+ "provider",
1192
+ "id"
1193
+ ],
1194
+ "additionalProperties": false
1195
+ }
1196
+ ]
1197
+ }
1198
+ ]
1199
+ },
1200
+ "encryptKey": {
1201
+ "anyOf": [
1202
+ {
1203
+ "type": "string"
1204
+ },
1205
+ {
1206
+ "oneOf": [
1207
+ {
1208
+ "type": "object",
1209
+ "properties": {
1210
+ "source": {
1211
+ "type": "string",
1212
+ "const": "env"
1213
+ },
1214
+ "provider": {
1215
+ "type": "string",
1216
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1217
+ },
1218
+ "id": {
1219
+ "type": "string",
1220
+ "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
1221
+ }
1222
+ },
1223
+ "required": [
1224
+ "source",
1225
+ "provider",
1226
+ "id"
1227
+ ],
1228
+ "additionalProperties": false
1229
+ },
1230
+ {
1231
+ "type": "object",
1232
+ "properties": {
1233
+ "source": {
1234
+ "type": "string",
1235
+ "const": "file"
1236
+ },
1237
+ "provider": {
1238
+ "type": "string",
1239
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1240
+ },
1241
+ "id": {
1242
+ "type": "string"
1243
+ }
1244
+ },
1245
+ "required": [
1246
+ "source",
1247
+ "provider",
1248
+ "id"
1249
+ ],
1250
+ "additionalProperties": false
1251
+ },
1252
+ {
1253
+ "type": "object",
1254
+ "properties": {
1255
+ "source": {
1256
+ "type": "string",
1257
+ "const": "exec"
1258
+ },
1259
+ "provider": {
1260
+ "type": "string",
1261
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1262
+ },
1263
+ "id": {
1264
+ "type": "string"
1265
+ }
1266
+ },
1267
+ "required": [
1268
+ "source",
1269
+ "provider",
1270
+ "id"
1271
+ ],
1272
+ "additionalProperties": false
1273
+ }
1274
+ ]
1275
+ }
1276
+ ]
1277
+ },
1278
+ "verificationToken": {
1279
+ "anyOf": [
1280
+ {
1281
+ "type": "string"
1282
+ },
1283
+ {
1284
+ "oneOf": [
1285
+ {
1286
+ "type": "object",
1287
+ "properties": {
1288
+ "source": {
1289
+ "type": "string",
1290
+ "const": "env"
1291
+ },
1292
+ "provider": {
1293
+ "type": "string",
1294
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1295
+ },
1296
+ "id": {
1297
+ "type": "string",
1298
+ "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
1299
+ }
1300
+ },
1301
+ "required": [
1302
+ "source",
1303
+ "provider",
1304
+ "id"
1305
+ ],
1306
+ "additionalProperties": false
1307
+ },
1308
+ {
1309
+ "type": "object",
1310
+ "properties": {
1311
+ "source": {
1312
+ "type": "string",
1313
+ "const": "file"
1314
+ },
1315
+ "provider": {
1316
+ "type": "string",
1317
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1318
+ },
1319
+ "id": {
1320
+ "type": "string"
1321
+ }
1322
+ },
1323
+ "required": [
1324
+ "source",
1325
+ "provider",
1326
+ "id"
1327
+ ],
1328
+ "additionalProperties": false
1329
+ },
1330
+ {
1331
+ "type": "object",
1332
+ "properties": {
1333
+ "source": {
1334
+ "type": "string",
1335
+ "const": "exec"
1336
+ },
1337
+ "provider": {
1338
+ "type": "string",
1339
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1340
+ },
1341
+ "id": {
1342
+ "type": "string"
1343
+ }
1344
+ },
1345
+ "required": [
1346
+ "source",
1347
+ "provider",
1348
+ "id"
1349
+ ],
1350
+ "additionalProperties": false
1351
+ }
1352
+ ]
1353
+ }
1354
+ ]
1355
+ },
1356
+ "domain": {
1357
+ "anyOf": [
1358
+ {
1359
+ "type": "string",
1360
+ "enum": [
1361
+ "feishu",
1362
+ "lark"
1363
+ ]
1364
+ },
1365
+ {
1366
+ "type": "string",
1367
+ "format": "uri",
1368
+ "pattern": "^https:\\/\\/.*"
1369
+ }
1370
+ ]
1371
+ },
1372
+ "connectionMode": {
1373
+ "type": "string",
1374
+ "enum": [
1375
+ "websocket",
1376
+ "webhook"
1377
+ ]
1378
+ },
1379
+ "webhookPath": {
1380
+ "type": "string"
1381
+ },
1382
+ "webhookHost": {
1383
+ "type": "string"
1384
+ },
1385
+ "webhookPort": {
1386
+ "type": "integer",
1387
+ "exclusiveMinimum": 0,
1388
+ "maximum": 9007199254740991
1389
+ },
1390
+ "capabilities": {
1391
+ "type": "array",
1392
+ "items": {
1393
+ "type": "string"
1394
+ }
1395
+ },
1396
+ "markdown": {
1397
+ "type": "object",
1398
+ "properties": {
1399
+ "mode": {
1400
+ "type": "string",
1401
+ "enum": [
1402
+ "native",
1403
+ "escape",
1404
+ "strip"
1405
+ ]
1406
+ },
1407
+ "tableMode": {
1408
+ "type": "string",
1409
+ "enum": [
1410
+ "native",
1411
+ "ascii",
1412
+ "simple"
1413
+ ]
1414
+ }
1415
+ },
1416
+ "additionalProperties": false
1417
+ },
1418
+ "configWrites": {
1419
+ "type": "boolean"
1420
+ },
1421
+ "dmPolicy": {
1422
+ "type": "string",
1423
+ "enum": [
1424
+ "open",
1425
+ "pairing",
1426
+ "allowlist"
1427
+ ]
1428
+ },
1429
+ "allowFrom": {
1430
+ "type": "array",
1431
+ "items": {
1432
+ "anyOf": [
1433
+ {
1434
+ "type": "string"
1435
+ },
1436
+ {
1437
+ "type": "number"
1438
+ }
1439
+ ]
1440
+ }
1441
+ },
1442
+ "groupPolicy": {
1443
+ "anyOf": [
1444
+ {
1445
+ "type": "string",
1446
+ "enum": [
1447
+ "open",
1448
+ "allowlist",
1449
+ "disabled"
1450
+ ]
1451
+ },
1452
+ {}
1453
+ ]
1454
+ },
1455
+ "groupAllowFrom": {
1456
+ "type": "array",
1457
+ "items": {
1458
+ "anyOf": [
1459
+ {
1460
+ "type": "string"
1461
+ },
1462
+ {
1463
+ "type": "number"
1464
+ }
1465
+ ]
1466
+ }
1467
+ },
1468
+ "groupSenderAllowFrom": {
1469
+ "type": "array",
1470
+ "items": {
1471
+ "anyOf": [
1472
+ {
1473
+ "type": "string"
1474
+ },
1475
+ {
1476
+ "type": "number"
1477
+ }
1478
+ ]
1479
+ }
1480
+ },
1481
+ "requireMention": {
1482
+ "type": "boolean"
1483
+ },
1484
+ "groups": {
1485
+ "type": "object",
1486
+ "propertyNames": {
1487
+ "type": "string"
1488
+ },
1489
+ "additionalProperties": {
1490
+ "type": "object",
1491
+ "properties": {
1492
+ "requireMention": {
1493
+ "type": "boolean"
1494
+ },
1495
+ "tools": {
1496
+ "type": "object",
1497
+ "properties": {
1498
+ "allow": {
1499
+ "type": "array",
1500
+ "items": {
1501
+ "type": "string"
1502
+ }
1503
+ },
1504
+ "deny": {
1505
+ "type": "array",
1506
+ "items": {
1507
+ "type": "string"
1508
+ }
1509
+ }
1510
+ },
1511
+ "additionalProperties": false
1512
+ },
1513
+ "skills": {
1514
+ "type": "array",
1515
+ "items": {
1516
+ "type": "string"
1517
+ }
1518
+ },
1519
+ "enabled": {
1520
+ "type": "boolean"
1521
+ },
1522
+ "allowFrom": {
1523
+ "type": "array",
1524
+ "items": {
1525
+ "anyOf": [
1526
+ {
1527
+ "type": "string"
1528
+ },
1529
+ {
1530
+ "type": "number"
1531
+ }
1532
+ ]
1533
+ }
1534
+ },
1535
+ "systemPrompt": {
1536
+ "type": "string"
1537
+ },
1538
+ "groupSessionScope": {
1539
+ "type": "string",
1540
+ "enum": [
1541
+ "group",
1542
+ "group_sender",
1543
+ "group_topic",
1544
+ "group_topic_sender"
1545
+ ]
1546
+ },
1547
+ "topicSessionMode": {
1548
+ "type": "string",
1549
+ "enum": [
1550
+ "disabled",
1551
+ "enabled"
1552
+ ]
1553
+ },
1554
+ "replyInThread": {
1555
+ "type": "string",
1556
+ "enum": [
1557
+ "disabled",
1558
+ "enabled"
1559
+ ]
1560
+ }
1561
+ },
1562
+ "additionalProperties": false
1563
+ }
1564
+ },
1565
+ "historyLimit": {
1566
+ "type": "integer",
1567
+ "minimum": 0,
1568
+ "maximum": 9007199254740991
1569
+ },
1570
+ "dmHistoryLimit": {
1571
+ "type": "integer",
1572
+ "minimum": 0,
1573
+ "maximum": 9007199254740991
1574
+ },
1575
+ "dms": {
1576
+ "type": "object",
1577
+ "propertyNames": {
1578
+ "type": "string"
1579
+ },
1580
+ "additionalProperties": {
1581
+ "type": "object",
1582
+ "properties": {
1583
+ "enabled": {
1584
+ "type": "boolean"
1585
+ },
1586
+ "systemPrompt": {
1587
+ "type": "string"
1588
+ }
1589
+ },
1590
+ "additionalProperties": false
1591
+ }
1592
+ },
1593
+ "textChunkLimit": {
1594
+ "type": "integer",
1595
+ "exclusiveMinimum": 0,
1596
+ "maximum": 9007199254740991
1597
+ },
1598
+ "chunkMode": {
1599
+ "type": "string",
1600
+ "enum": [
1601
+ "length",
1602
+ "newline"
1603
+ ]
1604
+ },
1605
+ "blockStreamingCoalesce": {
1606
+ "type": "object",
1607
+ "properties": {
1608
+ "enabled": {
1609
+ "type": "boolean"
1610
+ },
1611
+ "minDelayMs": {
1612
+ "type": "integer",
1613
+ "exclusiveMinimum": 0,
1614
+ "maximum": 9007199254740991
1615
+ },
1616
+ "maxDelayMs": {
1617
+ "type": "integer",
1618
+ "exclusiveMinimum": 0,
1619
+ "maximum": 9007199254740991
1620
+ }
1621
+ },
1622
+ "additionalProperties": false
1623
+ },
1624
+ "mediaMaxMb": {
1625
+ "type": "number",
1626
+ "exclusiveMinimum": 0
1627
+ },
1628
+ "httpTimeoutMs": {
1629
+ "type": "integer",
1630
+ "exclusiveMinimum": 0,
1631
+ "maximum": 300000
1632
+ },
1633
+ "heartbeat": {
1634
+ "type": "object",
1635
+ "properties": {
1636
+ "visibility": {
1637
+ "type": "string",
1638
+ "enum": [
1639
+ "visible",
1640
+ "hidden"
1641
+ ]
1642
+ },
1643
+ "intervalMs": {
1644
+ "type": "integer",
1645
+ "exclusiveMinimum": 0,
1646
+ "maximum": 9007199254740991
1647
+ }
1648
+ },
1649
+ "additionalProperties": false
1650
+ },
1651
+ "renderMode": {
1652
+ "type": "string",
1653
+ "enum": [
1654
+ "auto",
1655
+ "raw",
1656
+ "card"
1657
+ ]
1658
+ },
1659
+ "streaming": {
1660
+ "type": "boolean"
1661
+ },
1662
+ "tools": {
1663
+ "type": "object",
1664
+ "properties": {
1665
+ "doc": {
1666
+ "type": "boolean"
1667
+ },
1668
+ "chat": {
1669
+ "type": "boolean"
1670
+ },
1671
+ "wiki": {
1672
+ "type": "boolean"
1673
+ },
1674
+ "drive": {
1675
+ "type": "boolean"
1676
+ },
1677
+ "perm": {
1678
+ "type": "boolean"
1679
+ },
1680
+ "scopes": {
1681
+ "type": "boolean"
1682
+ }
1683
+ },
1684
+ "additionalProperties": false
1685
+ },
1686
+ "actions": {
1687
+ "type": "object",
1688
+ "properties": {
1689
+ "reactions": {
1690
+ "type": "boolean"
1691
+ }
1692
+ },
1693
+ "additionalProperties": false
1694
+ },
1695
+ "replyInThread": {
1696
+ "type": "string",
1697
+ "enum": [
1698
+ "disabled",
1699
+ "enabled"
1700
+ ]
1701
+ },
1702
+ "reactionNotifications": {
1703
+ "type": "string",
1704
+ "enum": [
1705
+ "off",
1706
+ "own",
1707
+ "all"
1708
+ ]
1709
+ },
1710
+ "typingIndicator": {
1711
+ "type": "boolean"
1712
+ },
1713
+ "resolveSenderNames": {
1714
+ "type": "boolean"
1715
+ },
1716
+ "tts": {
1717
+ "type": "object",
1718
+ "properties": {
1719
+ "auto": {
1720
+ "type": "string",
1721
+ "enum": [
1722
+ "off",
1723
+ "always",
1724
+ "inbound",
1725
+ "tagged"
1726
+ ]
1727
+ },
1728
+ "enabled": {
1729
+ "type": "boolean"
1730
+ },
1731
+ "mode": {
1732
+ "type": "string",
1733
+ "enum": [
1734
+ "final",
1735
+ "all"
1736
+ ]
1737
+ },
1738
+ "provider": {
1739
+ "type": "string"
1740
+ },
1741
+ "persona": {
1742
+ "type": "string"
1743
+ },
1744
+ "personas": {
1745
+ "type": "object",
1746
+ "propertyNames": {
1747
+ "type": "string"
1748
+ },
1749
+ "additionalProperties": {
1750
+ "type": "object",
1751
+ "propertyNames": {
1752
+ "type": "string"
1753
+ },
1754
+ "additionalProperties": {}
1755
+ }
1756
+ },
1757
+ "summaryModel": {
1758
+ "type": "string"
1759
+ },
1760
+ "modelOverrides": {
1761
+ "type": "object",
1762
+ "propertyNames": {
1763
+ "type": "string"
1764
+ },
1765
+ "additionalProperties": {}
1766
+ },
1767
+ "providers": {
1768
+ "type": "object",
1769
+ "propertyNames": {
1770
+ "type": "string"
1771
+ },
1772
+ "additionalProperties": {
1773
+ "type": "object",
1774
+ "propertyNames": {
1775
+ "type": "string"
1776
+ },
1777
+ "additionalProperties": {}
1778
+ }
1779
+ },
1780
+ "prefsPath": {
1781
+ "type": "string"
1782
+ },
1783
+ "maxTextLength": {
1784
+ "type": "integer",
1785
+ "minimum": 1,
1786
+ "maximum": 9007199254740991
1787
+ },
1788
+ "timeoutMs": {
1789
+ "type": "integer",
1790
+ "minimum": 1000,
1791
+ "maximum": 120000
1792
+ }
1793
+ },
1794
+ "additionalProperties": false
1795
+ },
1796
+ "groupSessionScope": {
1797
+ "type": "string",
1798
+ "enum": [
1799
+ "group",
1800
+ "group_sender",
1801
+ "group_topic",
1802
+ "group_topic_sender"
1803
+ ]
1804
+ },
1805
+ "topicSessionMode": {
1806
+ "type": "string",
1807
+ "enum": [
1808
+ "disabled",
1809
+ "enabled"
1810
+ ]
1811
+ }
1812
+ },
1813
+ "additionalProperties": false
1814
+ }
1815
+ }
1816
+ },
1817
+ "required": [
1818
+ "domain",
1819
+ "connectionMode",
1820
+ "webhookPath",
1821
+ "dmPolicy",
1822
+ "groupPolicy",
1823
+ "reactionNotifications",
1824
+ "typingIndicator",
1825
+ "resolveSenderNames"
1826
+ ],
1827
+ "additionalProperties": false
1828
+ },
1829
+ "label": "Feishu",
1830
+ "description": "飞书/Lark enterprise messaging with doc/wiki/drive tools."
1831
+ }
9
1832
  }
10
1833
  }