openclaw-event-server-plugin 1.0.0

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 (209) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +473 -0
  3. package/config.example.json +203 -0
  4. package/dist/broadcast/index.d.ts +3 -0
  5. package/dist/broadcast/index.d.ts.map +1 -0
  6. package/dist/broadcast/index.js +19 -0
  7. package/dist/broadcast/index.js.map +1 -0
  8. package/dist/broadcast/queue.d.ts +63 -0
  9. package/dist/broadcast/queue.d.ts.map +1 -0
  10. package/dist/broadcast/queue.js +259 -0
  11. package/dist/broadcast/queue.js.map +1 -0
  12. package/dist/broadcast/webhook.d.ts +30 -0
  13. package/dist/broadcast/webhook.d.ts.map +1 -0
  14. package/dist/broadcast/webhook.js +184 -0
  15. package/dist/broadcast/webhook.js.map +1 -0
  16. package/dist/broadcast/websocketServer.d.ts +90 -0
  17. package/dist/broadcast/websocketServer.d.ts.map +1 -0
  18. package/dist/broadcast/websocketServer.js +403 -0
  19. package/dist/broadcast/websocketServer.js.map +1 -0
  20. package/dist/config/config-types.d.ts +280 -0
  21. package/dist/config/config-types.d.ts.map +1 -0
  22. package/dist/config/config-types.js +3 -0
  23. package/dist/config/config-types.js.map +1 -0
  24. package/dist/config/default-config.d.ts +3 -0
  25. package/dist/config/default-config.d.ts.map +1 -0
  26. package/dist/config/default-config.js +136 -0
  27. package/dist/config/default-config.js.map +1 -0
  28. package/dist/config/env.d.ts +6 -0
  29. package/dist/config/env.d.ts.map +1 -0
  30. package/dist/config/env.js +160 -0
  31. package/dist/config/env.js.map +1 -0
  32. package/dist/config/event-types.d.ts +5 -0
  33. package/dist/config/event-types.d.ts.map +1 -0
  34. package/dist/config/event-types.js +54 -0
  35. package/dist/config/event-types.js.map +1 -0
  36. package/dist/config/handler.d.ts +9 -0
  37. package/dist/config/handler.d.ts.map +1 -0
  38. package/dist/config/handler.js +17 -0
  39. package/dist/config/handler.js.map +1 -0
  40. package/dist/config/helpers.d.ts +5 -0
  41. package/dist/config/helpers.d.ts.map +1 -0
  42. package/dist/config/helpers.js +40 -0
  43. package/dist/config/helpers.js.map +1 -0
  44. package/dist/config/index.d.ts +3 -0
  45. package/dist/config/index.d.ts.map +1 -0
  46. package/dist/config/index.js +19 -0
  47. package/dist/config/index.js.map +1 -0
  48. package/dist/config/merge.d.ts +6 -0
  49. package/dist/config/merge.d.ts.map +1 -0
  50. package/dist/config/merge.js +108 -0
  51. package/dist/config/merge.js.map +1 -0
  52. package/dist/config/schema-hook-bridge.d.ts +594 -0
  53. package/dist/config/schema-hook-bridge.d.ts.map +1 -0
  54. package/dist/config/schema-hook-bridge.js +423 -0
  55. package/dist/config/schema-hook-bridge.js.map +1 -0
  56. package/dist/config/schema.d.ts +915 -0
  57. package/dist/config/schema.d.ts.map +1 -0
  58. package/dist/config/schema.js +323 -0
  59. package/dist/config/schema.js.map +1 -0
  60. package/dist/config/types.d.ts +9 -0
  61. package/dist/config/types.d.ts.map +1 -0
  62. package/dist/config/types.js +28 -0
  63. package/dist/config/types.js.map +1 -0
  64. package/dist/config/validate-hook-bridge.d.ts +3 -0
  65. package/dist/config/validate-hook-bridge.d.ts.map +1 -0
  66. package/dist/config/validate-hook-bridge.js +246 -0
  67. package/dist/config/validate-hook-bridge.js.map +1 -0
  68. package/dist/config/validate.d.ts +17 -0
  69. package/dist/config/validate.d.ts.map +1 -0
  70. package/dist/config/validate.js +194 -0
  71. package/dist/config/validate.js.map +1 -0
  72. package/dist/events/index.d.ts +4 -0
  73. package/dist/events/index.d.ts.map +1 -0
  74. package/dist/events/index.js +20 -0
  75. package/dist/events/index.js.map +1 -0
  76. package/dist/events/redaction.d.ts +5 -0
  77. package/dist/events/redaction.d.ts.map +1 -0
  78. package/dist/events/redaction.js +46 -0
  79. package/dist/events/redaction.js.map +1 -0
  80. package/dist/events/signing.d.ts +8 -0
  81. package/dist/events/signing.d.ts.map +1 -0
  82. package/dist/events/signing.js +35 -0
  83. package/dist/events/signing.js.map +1 -0
  84. package/dist/events/types.d.ts +125 -0
  85. package/dist/events/types.d.ts.map +1 -0
  86. package/dist/events/types.js +9 -0
  87. package/dist/events/types.js.map +1 -0
  88. package/dist/hooks/agent-hooks.d.ts +59 -0
  89. package/dist/hooks/agent-hooks.d.ts.map +1 -0
  90. package/dist/hooks/agent-hooks.js +116 -0
  91. package/dist/hooks/agent-hooks.js.map +1 -0
  92. package/dist/hooks/command-hooks.d.ts +13 -0
  93. package/dist/hooks/command-hooks.d.ts.map +1 -0
  94. package/dist/hooks/command-hooks.js +26 -0
  95. package/dist/hooks/command-hooks.js.map +1 -0
  96. package/dist/hooks/event-factory.d.ts +21 -0
  97. package/dist/hooks/event-factory.d.ts.map +1 -0
  98. package/dist/hooks/event-factory.js +31 -0
  99. package/dist/hooks/event-factory.js.map +1 -0
  100. package/dist/hooks/gateway-hooks.d.ts +14 -0
  101. package/dist/hooks/gateway-hooks.d.ts.map +1 -0
  102. package/dist/hooks/gateway-hooks.js +43 -0
  103. package/dist/hooks/gateway-hooks.js.map +1 -0
  104. package/dist/hooks/index.d.ts +10 -0
  105. package/dist/hooks/index.d.ts.map +1 -0
  106. package/dist/hooks/index.js +26 -0
  107. package/dist/hooks/index.js.map +1 -0
  108. package/dist/hooks/message-hooks.d.ts +33 -0
  109. package/dist/hooks/message-hooks.d.ts.map +1 -0
  110. package/dist/hooks/message-hooks.js +208 -0
  111. package/dist/hooks/message-hooks.js.map +1 -0
  112. package/dist/hooks/session-hooks.d.ts +89 -0
  113. package/dist/hooks/session-hooks.d.ts.map +1 -0
  114. package/dist/hooks/session-hooks.js +253 -0
  115. package/dist/hooks/session-hooks.js.map +1 -0
  116. package/dist/hooks/status-reducer.d.ts +30 -0
  117. package/dist/hooks/status-reducer.d.ts.map +1 -0
  118. package/dist/hooks/status-reducer.js +157 -0
  119. package/dist/hooks/status-reducer.js.map +1 -0
  120. package/dist/hooks/subagent-hooks.d.ts +37 -0
  121. package/dist/hooks/subagent-hooks.d.ts.map +1 -0
  122. package/dist/hooks/subagent-hooks.js +79 -0
  123. package/dist/hooks/subagent-hooks.js.map +1 -0
  124. package/dist/hooks/subagent-tracker.d.ts +33 -0
  125. package/dist/hooks/subagent-tracker.d.ts.map +1 -0
  126. package/dist/hooks/subagent-tracker.js +73 -0
  127. package/dist/hooks/subagent-tracker.js.map +1 -0
  128. package/dist/hooks/tool-hooks.d.ts +132 -0
  129. package/dist/hooks/tool-hooks.d.ts.map +1 -0
  130. package/dist/hooks/tool-hooks.js +215 -0
  131. package/dist/hooks/tool-hooks.js.map +1 -0
  132. package/dist/index.d.ts +929 -0
  133. package/dist/index.d.ts.map +1 -0
  134. package/dist/index.js +236 -0
  135. package/dist/index.js.map +1 -0
  136. package/dist/logging/event-file-logger.d.ts +21 -0
  137. package/dist/logging/event-file-logger.d.ts.map +1 -0
  138. package/dist/logging/event-file-logger.js +167 -0
  139. package/dist/logging/event-file-logger.js.map +1 -0
  140. package/dist/logging/index.d.ts +3 -0
  141. package/dist/logging/index.d.ts.map +1 -0
  142. package/dist/logging/index.js +19 -0
  143. package/dist/logging/index.js.map +1 -0
  144. package/dist/logging/runtime-logger.d.ts +12 -0
  145. package/dist/logging/runtime-logger.d.ts.map +1 -0
  146. package/dist/logging/runtime-logger.js +45 -0
  147. package/dist/logging/runtime-logger.js.map +1 -0
  148. package/dist/runtime/hook-bridge-actions.d.ts +9 -0
  149. package/dist/runtime/hook-bridge-actions.d.ts.map +1 -0
  150. package/dist/runtime/hook-bridge-actions.js +248 -0
  151. package/dist/runtime/hook-bridge-actions.js.map +1 -0
  152. package/dist/runtime/hook-bridge-dispatch-engine.d.ts +42 -0
  153. package/dist/runtime/hook-bridge-dispatch-engine.d.ts.map +1 -0
  154. package/dist/runtime/hook-bridge-dispatch-engine.js +233 -0
  155. package/dist/runtime/hook-bridge-dispatch-engine.js.map +1 -0
  156. package/dist/runtime/hook-bridge-tool-guard.d.ts +16 -0
  157. package/dist/runtime/hook-bridge-tool-guard.d.ts.map +1 -0
  158. package/dist/runtime/hook-bridge-tool-guard.js +236 -0
  159. package/dist/runtime/hook-bridge-tool-guard.js.map +1 -0
  160. package/dist/runtime/hook-bridge-utils.d.ts +11 -0
  161. package/dist/runtime/hook-bridge-utils.d.ts.map +1 -0
  162. package/dist/runtime/hook-bridge-utils.js +116 -0
  163. package/dist/runtime/hook-bridge-utils.js.map +1 -0
  164. package/dist/runtime/hook-bridge.d.ts +33 -0
  165. package/dist/runtime/hook-bridge.d.ts.map +1 -0
  166. package/dist/runtime/hook-bridge.js +359 -0
  167. package/dist/runtime/hook-bridge.js.map +1 -0
  168. package/dist/runtime/internal-handlers.d.ts +20 -0
  169. package/dist/runtime/internal-handlers.d.ts.map +1 -0
  170. package/dist/runtime/internal-handlers.js +225 -0
  171. package/dist/runtime/internal-handlers.js.map +1 -0
  172. package/dist/runtime/register-gateway-hooks.d.ts +4 -0
  173. package/dist/runtime/register-gateway-hooks.d.ts.map +1 -0
  174. package/dist/runtime/register-gateway-hooks.js +27 -0
  175. package/dist/runtime/register-gateway-hooks.js.map +1 -0
  176. package/dist/runtime/register-session-hooks.d.ts +4 -0
  177. package/dist/runtime/register-session-hooks.d.ts.map +1 -0
  178. package/dist/runtime/register-session-hooks.js +88 -0
  179. package/dist/runtime/register-session-hooks.js.map +1 -0
  180. package/dist/runtime/register-subagent-hooks.d.ts +4 -0
  181. package/dist/runtime/register-subagent-hooks.d.ts.map +1 -0
  182. package/dist/runtime/register-subagent-hooks.js +143 -0
  183. package/dist/runtime/register-subagent-hooks.js.map +1 -0
  184. package/dist/runtime/register-tool-hooks.d.ts +4 -0
  185. package/dist/runtime/register-tool-hooks.d.ts.map +1 -0
  186. package/dist/runtime/register-tool-hooks.js +348 -0
  187. package/dist/runtime/register-tool-hooks.js.map +1 -0
  188. package/dist/runtime/runtime-events.d.ts +14 -0
  189. package/dist/runtime/runtime-events.d.ts.map +1 -0
  190. package/dist/runtime/runtime-events.js +166 -0
  191. package/dist/runtime/runtime-events.js.map +1 -0
  192. package/dist/runtime/typed-hooks.d.ts +9 -0
  193. package/dist/runtime/typed-hooks.d.ts.map +1 -0
  194. package/dist/runtime/typed-hooks.js +14 -0
  195. package/dist/runtime/typed-hooks.js.map +1 -0
  196. package/dist/runtime/types.d.ts +91 -0
  197. package/dist/runtime/types.d.ts.map +1 -0
  198. package/dist/runtime/types.js +3 -0
  199. package/dist/runtime/types.js.map +1 -0
  200. package/dist/runtime/utils.d.ts +47 -0
  201. package/dist/runtime/utils.d.ts.map +1 -0
  202. package/dist/runtime/utils.js +166 -0
  203. package/dist/runtime/utils.js.map +1 -0
  204. package/dist/tools/replay-tool-guard.d.ts +3 -0
  205. package/dist/tools/replay-tool-guard.d.ts.map +1 -0
  206. package/dist/tools/replay-tool-guard.js +96 -0
  207. package/dist/tools/replay-tool-guard.js.map +1 -0
  208. package/openclaw.plugin.json +847 -0
  209. package/package.json +63 -0
@@ -0,0 +1,915 @@
1
+ /**
2
+ * JSON Schema for plugin configuration validation
3
+ */
4
+ export declare const CONFIG_SCHEMA: {
5
+ type: string;
6
+ additionalProperties: boolean;
7
+ properties: {
8
+ enabled: {
9
+ type: string;
10
+ description: string;
11
+ default: boolean;
12
+ };
13
+ webhooks: {
14
+ type: string;
15
+ description: string;
16
+ items: {
17
+ type: string;
18
+ required: string[];
19
+ properties: {
20
+ url: {
21
+ type: string;
22
+ description: string;
23
+ };
24
+ method: {
25
+ type: string;
26
+ enum: string[];
27
+ default: string;
28
+ description: string;
29
+ };
30
+ headers: {
31
+ type: string;
32
+ additionalProperties: {
33
+ type: string;
34
+ };
35
+ description: string;
36
+ };
37
+ authToken: {
38
+ type: string;
39
+ description: string;
40
+ };
41
+ includeFullPayload: {
42
+ type: string;
43
+ default: boolean;
44
+ description: string;
45
+ };
46
+ };
47
+ };
48
+ default: never[];
49
+ };
50
+ filters: {
51
+ type: string;
52
+ description: string;
53
+ properties: {
54
+ includeTypes: {
55
+ type: string;
56
+ items: {
57
+ type: string;
58
+ enum: readonly import("../events").EventType[];
59
+ };
60
+ description: string;
61
+ };
62
+ excludeTypes: {
63
+ type: string;
64
+ items: {
65
+ type: string;
66
+ enum: readonly import("../events").EventType[];
67
+ };
68
+ description: string;
69
+ };
70
+ channelId: {
71
+ type: string;
72
+ description: string;
73
+ };
74
+ toolName: {
75
+ type: string;
76
+ description: string;
77
+ };
78
+ sessionId: {
79
+ type: string;
80
+ description: string;
81
+ };
82
+ };
83
+ };
84
+ retry: {
85
+ type: string;
86
+ description: string;
87
+ properties: {
88
+ maxAttempts: {
89
+ type: string;
90
+ minimum: number;
91
+ maximum: number;
92
+ default: number;
93
+ };
94
+ initialDelayMs: {
95
+ type: string;
96
+ minimum: number;
97
+ maximum: number;
98
+ default: number;
99
+ };
100
+ maxDelayMs: {
101
+ type: string;
102
+ minimum: number;
103
+ maximum: number;
104
+ default: number;
105
+ };
106
+ backoffMultiplier: {
107
+ type: string;
108
+ minimum: number;
109
+ maximum: number;
110
+ default: number;
111
+ };
112
+ };
113
+ };
114
+ queue: {
115
+ type: string;
116
+ description: string;
117
+ properties: {
118
+ maxSize: {
119
+ type: string;
120
+ minimum: number;
121
+ maximum: number;
122
+ default: number;
123
+ };
124
+ flushIntervalMs: {
125
+ type: string;
126
+ minimum: number;
127
+ maximum: number;
128
+ default: number;
129
+ };
130
+ persistToDisk: {
131
+ type: string;
132
+ default: boolean;
133
+ };
134
+ persistPath: {
135
+ type: string;
136
+ description: string;
137
+ };
138
+ };
139
+ };
140
+ logging: {
141
+ type: string;
142
+ description: string;
143
+ properties: {
144
+ debug: {
145
+ type: string;
146
+ default: boolean;
147
+ };
148
+ logSuccess: {
149
+ type: string;
150
+ default: boolean;
151
+ };
152
+ logErrors: {
153
+ type: string;
154
+ default: boolean;
155
+ };
156
+ logQueue: {
157
+ type: string;
158
+ default: boolean;
159
+ };
160
+ };
161
+ };
162
+ status: {
163
+ type: string;
164
+ description: string;
165
+ properties: {
166
+ workingWindowMs: {
167
+ type: string;
168
+ minimum: number;
169
+ maximum: number;
170
+ default: number;
171
+ description: string;
172
+ };
173
+ sleepingWindowMs: {
174
+ type: string;
175
+ minimum: number;
176
+ maximum: number;
177
+ default: number;
178
+ description: string;
179
+ };
180
+ tickIntervalMs: {
181
+ type: string;
182
+ minimum: number;
183
+ maximum: number;
184
+ default: number;
185
+ description: string;
186
+ };
187
+ subagentIdleWindowMs: {
188
+ type: string;
189
+ minimum: number;
190
+ maximum: number;
191
+ default: number;
192
+ description: string;
193
+ };
194
+ };
195
+ };
196
+ redaction: {
197
+ type: string;
198
+ description: string;
199
+ properties: {
200
+ enabled: {
201
+ type: string;
202
+ default: boolean;
203
+ };
204
+ replacement: {
205
+ type: string;
206
+ default: string;
207
+ };
208
+ fields: {
209
+ type: string;
210
+ items: {
211
+ type: string;
212
+ };
213
+ default: string[];
214
+ };
215
+ };
216
+ };
217
+ eventLog: {
218
+ type: string;
219
+ description: string;
220
+ properties: {
221
+ enabled: {
222
+ type: string;
223
+ default: boolean;
224
+ };
225
+ path: {
226
+ type: string;
227
+ description: string;
228
+ default: string;
229
+ };
230
+ maxFileSizeMb: {
231
+ type: string;
232
+ minimum: number;
233
+ maximum: number;
234
+ default: number;
235
+ description: string;
236
+ };
237
+ format: {
238
+ type: string;
239
+ enum: string[];
240
+ default: string;
241
+ };
242
+ minLevel: {
243
+ type: string;
244
+ enum: string[];
245
+ default: string;
246
+ };
247
+ includeRuntimeLogs: {
248
+ type: string;
249
+ default: boolean;
250
+ };
251
+ };
252
+ };
253
+ security: {
254
+ type: string;
255
+ description: string;
256
+ properties: {
257
+ ws: {
258
+ type: string;
259
+ properties: {
260
+ bindAddress: {
261
+ type: string;
262
+ default: string;
263
+ };
264
+ requireAuth: {
265
+ type: string;
266
+ default: boolean;
267
+ };
268
+ authToken: {
269
+ type: string;
270
+ };
271
+ allowedOrigins: {
272
+ type: string;
273
+ items: {
274
+ type: string;
275
+ };
276
+ default: never[];
277
+ };
278
+ allowedIps: {
279
+ type: string;
280
+ items: {
281
+ type: string;
282
+ };
283
+ default: never[];
284
+ };
285
+ };
286
+ };
287
+ hmac: {
288
+ type: string;
289
+ properties: {
290
+ enabled: {
291
+ type: string;
292
+ default: boolean;
293
+ };
294
+ secret: {
295
+ type: string;
296
+ };
297
+ secretFilePath: {
298
+ type: string;
299
+ default: string;
300
+ };
301
+ algorithm: {
302
+ type: string;
303
+ enum: string[];
304
+ default: string;
305
+ };
306
+ };
307
+ };
308
+ };
309
+ };
310
+ correlationIdHeader: {
311
+ type: string;
312
+ default: string;
313
+ };
314
+ webhookTimeoutMs: {
315
+ type: string;
316
+ minimum: number;
317
+ maximum: number;
318
+ default: number;
319
+ };
320
+ hookBridge: {
321
+ type: string;
322
+ description: string;
323
+ properties: {
324
+ enabled: {
325
+ type: string;
326
+ default: boolean;
327
+ };
328
+ dryRun: {
329
+ type: string;
330
+ default: boolean;
331
+ };
332
+ allowedActionDirs: {
333
+ type: string;
334
+ items: {
335
+ type: string;
336
+ };
337
+ default: never[];
338
+ };
339
+ localScriptDefaults: {
340
+ type: string;
341
+ properties: {
342
+ timeoutMs: {
343
+ type: string;
344
+ minimum: number;
345
+ maximum: number;
346
+ default: number;
347
+ };
348
+ maxPayloadBytes: {
349
+ type: string;
350
+ minimum: number;
351
+ maximum: number;
352
+ default: number;
353
+ };
354
+ };
355
+ };
356
+ actions: {
357
+ type: string;
358
+ additionalProperties: {
359
+ type: string;
360
+ properties: {
361
+ type: {
362
+ type: string;
363
+ enum: string[];
364
+ };
365
+ url: {
366
+ type: string;
367
+ };
368
+ method: {
369
+ type: string;
370
+ enum: string[];
371
+ };
372
+ headers: {
373
+ type: string;
374
+ additionalProperties: {
375
+ type: string;
376
+ };
377
+ };
378
+ authToken: {
379
+ type: string;
380
+ };
381
+ path: {
382
+ type: string;
383
+ };
384
+ args: {
385
+ type: string;
386
+ items: {
387
+ type: string;
388
+ };
389
+ };
390
+ timeoutMs: {
391
+ type: string;
392
+ };
393
+ maxPayloadBytes: {
394
+ type: string;
395
+ };
396
+ };
397
+ required: string[];
398
+ };
399
+ default: {};
400
+ };
401
+ rules: {
402
+ type: string;
403
+ default: never[];
404
+ items: {
405
+ type: string;
406
+ properties: {
407
+ id: {
408
+ type: string;
409
+ };
410
+ enabled: {
411
+ type: string;
412
+ };
413
+ action: {
414
+ type: string;
415
+ };
416
+ cooldownMs: {
417
+ type: string;
418
+ minimum: number;
419
+ };
420
+ coalesce: {
421
+ type: string;
422
+ properties: {
423
+ enabled: {
424
+ type: string;
425
+ };
426
+ keyFields: {
427
+ type: string;
428
+ items: {
429
+ type: string;
430
+ };
431
+ };
432
+ windowMs: {
433
+ type: string;
434
+ minimum: number;
435
+ };
436
+ strategy: {
437
+ type: string;
438
+ enum: string[];
439
+ };
440
+ };
441
+ };
442
+ when: {
443
+ type: string;
444
+ properties: {
445
+ eventType: {
446
+ oneOf: ({
447
+ type: string;
448
+ items?: undefined;
449
+ } | {
450
+ type: string;
451
+ items: {
452
+ type: string;
453
+ };
454
+ })[];
455
+ };
456
+ toolName: {
457
+ oneOf: ({
458
+ type: string;
459
+ items?: undefined;
460
+ } | {
461
+ type: string;
462
+ items: {
463
+ type: string;
464
+ };
465
+ })[];
466
+ };
467
+ agentId: {
468
+ oneOf: ({
469
+ type: string;
470
+ items?: undefined;
471
+ } | {
472
+ type: string;
473
+ items: {
474
+ type: string;
475
+ };
476
+ })[];
477
+ };
478
+ sessionId: {
479
+ oneOf: ({
480
+ type: string;
481
+ items?: undefined;
482
+ } | {
483
+ type: string;
484
+ items: {
485
+ type: string;
486
+ };
487
+ })[];
488
+ };
489
+ sessionKey: {
490
+ oneOf: ({
491
+ type: string;
492
+ items?: undefined;
493
+ } | {
494
+ type: string;
495
+ items: {
496
+ type: string;
497
+ };
498
+ })[];
499
+ };
500
+ contains: {
501
+ type: string;
502
+ additionalProperties: {
503
+ type: string;
504
+ };
505
+ };
506
+ equals: {
507
+ type: string;
508
+ additionalProperties: {
509
+ oneOf: {
510
+ type: string;
511
+ }[];
512
+ };
513
+ };
514
+ requiredPaths: {
515
+ type: string;
516
+ items: {
517
+ type: string;
518
+ };
519
+ };
520
+ typeChecks: {
521
+ type: string;
522
+ additionalProperties: {
523
+ type: string;
524
+ enum: string[];
525
+ };
526
+ };
527
+ inList: {
528
+ type: string;
529
+ additionalProperties: {
530
+ type: string;
531
+ items: {
532
+ oneOf: {
533
+ type: string;
534
+ }[];
535
+ };
536
+ };
537
+ };
538
+ notInList: {
539
+ type: string;
540
+ additionalProperties: {
541
+ type: string;
542
+ items: {
543
+ oneOf: {
544
+ type: string;
545
+ }[];
546
+ };
547
+ };
548
+ };
549
+ matchesRegex: {
550
+ type: string;
551
+ additionalProperties: {
552
+ type: string;
553
+ };
554
+ };
555
+ notMatchesRegex: {
556
+ type: string;
557
+ additionalProperties: {
558
+ type: string;
559
+ };
560
+ };
561
+ domainAllowlist: {
562
+ type: string;
563
+ items: {
564
+ type: string;
565
+ };
566
+ };
567
+ domainBlocklist: {
568
+ type: string;
569
+ items: {
570
+ type: string;
571
+ };
572
+ };
573
+ domainPath: {
574
+ type: string;
575
+ };
576
+ idleForMsGte: {
577
+ type: string;
578
+ minimum: number;
579
+ };
580
+ parentStatus: {
581
+ type: string;
582
+ };
583
+ };
584
+ };
585
+ };
586
+ required: string[];
587
+ };
588
+ };
589
+ toolGuard: {
590
+ type: string;
591
+ properties: {
592
+ enabled: {
593
+ type: string;
594
+ default: boolean;
595
+ };
596
+ dryRun: {
597
+ type: string;
598
+ default: boolean;
599
+ };
600
+ timeoutMs: {
601
+ type: string;
602
+ minimum: number;
603
+ maximum: number;
604
+ default: number;
605
+ };
606
+ onError: {
607
+ type: string;
608
+ enum: string[];
609
+ default: string;
610
+ };
611
+ scopeKeyBy: {
612
+ type: string;
613
+ enum: string[];
614
+ default: string;
615
+ };
616
+ retryBackoffMs: {
617
+ type: string;
618
+ minimum: number;
619
+ maximum: number;
620
+ default: number;
621
+ };
622
+ retryBackoffReason: {
623
+ type: string;
624
+ };
625
+ approvalCacheTtlMs: {
626
+ type: string;
627
+ minimum: number;
628
+ maximum: number;
629
+ default: number;
630
+ };
631
+ stopOnMatchDefault: {
632
+ type: string;
633
+ default: boolean;
634
+ };
635
+ redaction: {
636
+ type: string;
637
+ properties: {
638
+ enabled: {
639
+ type: string;
640
+ default: boolean;
641
+ };
642
+ replacement: {
643
+ type: string;
644
+ default: string;
645
+ };
646
+ fields: {
647
+ type: string;
648
+ items: {
649
+ type: string;
650
+ };
651
+ };
652
+ };
653
+ };
654
+ rules: {
655
+ type: string;
656
+ default: never[];
657
+ items: {
658
+ type: string;
659
+ properties: {
660
+ id: {
661
+ type: string;
662
+ };
663
+ enabled: {
664
+ type: string;
665
+ };
666
+ priority: {
667
+ type: string;
668
+ };
669
+ action: {
670
+ type: string;
671
+ };
672
+ decision: {
673
+ type: string;
674
+ properties: {
675
+ block: {
676
+ type: string;
677
+ };
678
+ blockReason: {
679
+ type: string;
680
+ };
681
+ blockReasonTemplate: {
682
+ type: string;
683
+ };
684
+ params: {
685
+ type: string;
686
+ };
687
+ };
688
+ };
689
+ stopOnMatch: {
690
+ type: string;
691
+ };
692
+ cooldownMs: {
693
+ type: string;
694
+ minimum: number;
695
+ };
696
+ when: {
697
+ type: string;
698
+ properties: {
699
+ eventType: {
700
+ oneOf: ({
701
+ type: string;
702
+ items?: undefined;
703
+ } | {
704
+ type: string;
705
+ items: {
706
+ type: string;
707
+ };
708
+ })[];
709
+ };
710
+ toolName: {
711
+ oneOf: ({
712
+ type: string;
713
+ items?: undefined;
714
+ } | {
715
+ type: string;
716
+ items: {
717
+ type: string;
718
+ };
719
+ })[];
720
+ };
721
+ agentId: {
722
+ oneOf: ({
723
+ type: string;
724
+ items?: undefined;
725
+ } | {
726
+ type: string;
727
+ items: {
728
+ type: string;
729
+ };
730
+ })[];
731
+ };
732
+ sessionId: {
733
+ oneOf: ({
734
+ type: string;
735
+ items?: undefined;
736
+ } | {
737
+ type: string;
738
+ items: {
739
+ type: string;
740
+ };
741
+ })[];
742
+ };
743
+ sessionKey: {
744
+ oneOf: ({
745
+ type: string;
746
+ items?: undefined;
747
+ } | {
748
+ type: string;
749
+ items: {
750
+ type: string;
751
+ };
752
+ })[];
753
+ };
754
+ contains: {
755
+ type: string;
756
+ additionalProperties: {
757
+ type: string;
758
+ };
759
+ };
760
+ equals: {
761
+ type: string;
762
+ additionalProperties: {
763
+ oneOf: {
764
+ type: string;
765
+ }[];
766
+ };
767
+ };
768
+ requiredPaths: {
769
+ type: string;
770
+ items: {
771
+ type: string;
772
+ };
773
+ };
774
+ typeChecks: {
775
+ type: string;
776
+ additionalProperties: {
777
+ type: string;
778
+ enum: string[];
779
+ };
780
+ };
781
+ inList: {
782
+ type: string;
783
+ additionalProperties: {
784
+ type: string;
785
+ items: {
786
+ oneOf: {
787
+ type: string;
788
+ }[];
789
+ };
790
+ };
791
+ };
792
+ notInList: {
793
+ type: string;
794
+ additionalProperties: {
795
+ type: string;
796
+ items: {
797
+ oneOf: {
798
+ type: string;
799
+ }[];
800
+ };
801
+ };
802
+ };
803
+ matchesRegex: {
804
+ type: string;
805
+ additionalProperties: {
806
+ type: string;
807
+ };
808
+ };
809
+ notMatchesRegex: {
810
+ type: string;
811
+ additionalProperties: {
812
+ type: string;
813
+ };
814
+ };
815
+ domainAllowlist: {
816
+ type: string;
817
+ items: {
818
+ type: string;
819
+ };
820
+ };
821
+ domainBlocklist: {
822
+ type: string;
823
+ items: {
824
+ type: string;
825
+ };
826
+ };
827
+ domainPath: {
828
+ type: string;
829
+ };
830
+ idleForMsGte: {
831
+ type: string;
832
+ minimum: number;
833
+ };
834
+ parentStatus: {
835
+ type: string;
836
+ };
837
+ };
838
+ };
839
+ };
840
+ required: string[];
841
+ };
842
+ };
843
+ };
844
+ };
845
+ runtime: {
846
+ type: string;
847
+ properties: {
848
+ maxPendingEvents: {
849
+ type: string;
850
+ minimum: number;
851
+ maximum: number;
852
+ default: number;
853
+ };
854
+ concurrency: {
855
+ type: string;
856
+ minimum: number;
857
+ maximum: number;
858
+ default: number;
859
+ };
860
+ dropPolicy: {
861
+ type: string;
862
+ enum: string[];
863
+ default: string;
864
+ };
865
+ };
866
+ };
867
+ telemetry: {
868
+ type: string;
869
+ properties: {
870
+ highWatermarks: {
871
+ type: string;
872
+ items: {
873
+ type: string;
874
+ minimum: number;
875
+ maximum: number;
876
+ };
877
+ default: number[];
878
+ };
879
+ slowActionMs: {
880
+ type: string;
881
+ minimum: number;
882
+ maximum: number;
883
+ default: number;
884
+ };
885
+ failureRateWindowMs: {
886
+ type: string;
887
+ minimum: number;
888
+ maximum: number;
889
+ default: number;
890
+ };
891
+ failureRateThresholdPct: {
892
+ type: string;
893
+ minimum: number;
894
+ maximum: number;
895
+ default: number;
896
+ };
897
+ failureRateMinSamples: {
898
+ type: string;
899
+ minimum: number;
900
+ maximum: number;
901
+ default: number;
902
+ };
903
+ saturationWindowMs: {
904
+ type: string;
905
+ minimum: number;
906
+ maximum: number;
907
+ default: number;
908
+ };
909
+ };
910
+ };
911
+ };
912
+ };
913
+ };
914
+ };
915
+ //# sourceMappingURL=schema.d.ts.map