@handlebar/governance-schema 0.0.6-dev.1 → 0.0.6-dev.11

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.
@@ -0,0 +1,1879 @@
1
+ import { z } from "zod";
2
+ export declare const RulePhaseSchema: z.ZodEnum<{
3
+ "tool.before": "tool.before";
4
+ "tool.after": "tool.after";
5
+ }>;
6
+ export type RulePhase = z.infer<typeof RulePhaseSchema>;
7
+ export declare const RuleSelectorSchema: z.ZodObject<{
8
+ phase: z.ZodEnum<{
9
+ "tool.before": "tool.before";
10
+ "tool.after": "tool.after";
11
+ }>;
12
+ tool: z.ZodOptional<z.ZodObject<{
13
+ name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
14
+ tagsAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ tagsAny: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ }, z.core.$strict>>;
17
+ }, z.core.$strict>;
18
+ export type RuleSelector = z.infer<typeof RuleSelectorSchema>;
19
+ export declare const RuleSchema: z.ZodObject<{
20
+ id: z.ZodString;
21
+ policyId: z.ZodString;
22
+ enabled: z.ZodBoolean;
23
+ priority: z.ZodNumber;
24
+ name: z.ZodString;
25
+ selector: z.ZodObject<{
26
+ phase: z.ZodEnum<{
27
+ "tool.before": "tool.before";
28
+ "tool.after": "tool.after";
29
+ }>;
30
+ tool: z.ZodOptional<z.ZodObject<{
31
+ name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
32
+ tagsAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
33
+ tagsAny: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
+ }, z.core.$strict>>;
35
+ }, z.core.$strict>;
36
+ condition: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
37
+ kind: z.ZodLiteral<"toolName">;
38
+ op: z.ZodEnum<{
39
+ eq: "eq";
40
+ neq: "neq";
41
+ contains: "contains";
42
+ startsWith: "startsWith";
43
+ endsWith: "endsWith";
44
+ glob: "glob";
45
+ }>;
46
+ value: z.ZodString;
47
+ }, z.core.$strict>, z.ZodObject<{
48
+ kind: z.ZodLiteral<"toolName">;
49
+ op: z.ZodLiteral<"in">;
50
+ value: z.ZodArray<z.ZodString>;
51
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ kind: z.ZodLiteral<"toolTag">;
53
+ op: z.ZodLiteral<"has">;
54
+ tag: z.ZodString;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"toolTag">;
57
+ op: z.ZodLiteral<"anyOf">;
58
+ tags: z.ZodArray<z.ZodString>;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"toolTag">;
61
+ op: z.ZodLiteral<"allOf">;
62
+ tags: z.ZodArray<z.ZodString>;
63
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
64
+ kind: z.ZodLiteral<"toolArg">;
65
+ type: z.ZodLiteral<"string">;
66
+ op: z.ZodEnum<{
67
+ in: "in";
68
+ eq: "eq";
69
+ neq: "neq";
70
+ contains: "contains";
71
+ startsWith: "startsWith";
72
+ endsWith: "endsWith";
73
+ }>;
74
+ path: z.ZodString;
75
+ value: z.ZodString;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ kind: z.ZodLiteral<"toolArg">;
78
+ type: z.ZodLiteral<"number">;
79
+ op: z.ZodEnum<{
80
+ gt: "gt";
81
+ gte: "gte";
82
+ lt: "lt";
83
+ lte: "lte";
84
+ eq: "eq";
85
+ neq: "neq";
86
+ }>;
87
+ path: z.ZodString;
88
+ value: z.ZodNumber;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ kind: z.ZodLiteral<"toolArg">;
91
+ type: z.ZodLiteral<"boolean">;
92
+ op: z.ZodLiteral<"eq">;
93
+ path: z.ZodString;
94
+ value: z.ZodBoolean;
95
+ }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ kind: z.ZodLiteral<"enduserTag">;
97
+ op: z.ZodLiteral<"has">;
98
+ tag: z.ZodString;
99
+ }, z.core.$strict>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"enduserTag">;
101
+ op: z.ZodLiteral<"hasValue">;
102
+ tag: z.ZodString;
103
+ value: z.ZodString;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ kind: z.ZodLiteral<"enduserTag">;
106
+ op: z.ZodLiteral<"hasValueAny">;
107
+ tag: z.ZodString;
108
+ values: z.ZodArray<z.ZodString>;
109
+ }, z.core.$strict>], "op">, z.ZodObject<{
110
+ kind: z.ZodLiteral<"executionTime">;
111
+ scope: z.ZodEnum<{
112
+ tool: "tool";
113
+ total: "total";
114
+ }>;
115
+ op: z.ZodEnum<{
116
+ gt: "gt";
117
+ gte: "gte";
118
+ lt: "lt";
119
+ lte: "lte";
120
+ eq: "eq";
121
+ neq: "neq";
122
+ }>;
123
+ ms: z.ZodNumber;
124
+ }, z.core.$strict>, z.ZodObject<{
125
+ kind: z.ZodLiteral<"sequence">;
126
+ mustHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
127
+ mustNotHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
+ }, z.core.$strict>, z.ZodObject<{
129
+ kind: z.ZodLiteral<"maxCalls">;
130
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
131
+ by: z.ZodLiteral<"toolName">;
132
+ patterns: z.ZodArray<z.ZodString>;
133
+ }, z.core.$strict>, z.ZodObject<{
134
+ by: z.ZodLiteral<"toolTag">;
135
+ tags: z.ZodArray<z.ZodString>;
136
+ }, z.core.$strict>], "by">;
137
+ max: z.ZodNumber;
138
+ }, z.core.$strict>, z.ZodObject<{
139
+ kind: z.ZodLiteral<"custom">;
140
+ name: z.ZodString;
141
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
142
+ }, z.core.$strict>, z.ZodObject<{
143
+ kind: z.ZodLiteral<"metricWindow">;
144
+ scope: z.ZodEnum<{
145
+ agent: "agent";
146
+ agent_user: "agent_user";
147
+ }>;
148
+ metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ kind: z.ZodLiteral<"inbuilt">;
150
+ key: z.ZodEnum<{
151
+ bytes_in: "bytes_in";
152
+ bytes_out: "bytes_out";
153
+ duration_ms: "duration_ms";
154
+ records_in: "records_in";
155
+ records_out: "records_out";
156
+ llm_tokens_in: "llm_tokens_in";
157
+ llm_tokens_out: "llm_tokens_out";
158
+ llm_cost_usd: "llm_cost_usd";
159
+ }>;
160
+ }, z.core.$strict>, z.ZodObject<{
161
+ kind: z.ZodLiteral<"custom">;
162
+ key: z.ZodString;
163
+ }, z.core.$strict>], "kind">;
164
+ aggregate: z.ZodEnum<{
165
+ sum: "sum";
166
+ avg: "avg";
167
+ max: "max";
168
+ min: "min";
169
+ count: "count";
170
+ }>;
171
+ windowSeconds: z.ZodNumber;
172
+ filter: z.ZodOptional<z.ZodObject<{
173
+ toolName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
174
+ toolTag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
175
+ }, z.core.$strict>>;
176
+ op: z.ZodEnum<{
177
+ gt: "gt";
178
+ gte: "gte";
179
+ lt: "lt";
180
+ lte: "lte";
181
+ eq: "eq";
182
+ neq: "neq";
183
+ }>;
184
+ value: z.ZodNumber;
185
+ onMissing: z.ZodOptional<z.ZodEnum<{
186
+ allow: "allow";
187
+ block: "block";
188
+ hitl: "hitl";
189
+ }>>;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ kind: z.ZodLiteral<"timeGate">;
192
+ timezone: z.ZodObject<{
193
+ source: z.ZodLiteral<"enduserTag">;
194
+ tag: z.ZodString;
195
+ fallback: z.ZodOptional<z.ZodLiteral<"org">>;
196
+ }, z.core.$strict>;
197
+ windows: z.ZodArray<z.ZodObject<{
198
+ days: z.ZodArray<z.ZodEnum<{
199
+ mon: "mon";
200
+ tue: "tue";
201
+ wed: "wed";
202
+ thu: "thu";
203
+ fri: "fri";
204
+ sat: "sat";
205
+ sun: "sun";
206
+ }>>;
207
+ start: z.ZodString;
208
+ end: z.ZodString;
209
+ }, z.core.$strict>>;
210
+ }, z.core.$strict>, z.ZodObject<{
211
+ kind: z.ZodLiteral<"requireSubject">;
212
+ subjectType: z.ZodString;
213
+ idSystem: z.ZodOptional<z.ZodString>;
214
+ }, z.core.$strict>, z.ZodObject<{
215
+ kind: z.ZodLiteral<"signal">;
216
+ key: z.ZodString;
217
+ args: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
218
+ from: z.ZodLiteral<"enduserId">;
219
+ }, z.core.$strict>, z.ZodObject<{
220
+ from: z.ZodLiteral<"enduserTag">;
221
+ tag: z.ZodString;
222
+ }, z.core.$strict>, z.ZodObject<{
223
+ from: z.ZodLiteral<"toolName">;
224
+ }, z.core.$strict>, z.ZodObject<{
225
+ from: z.ZodLiteral<"toolTag">;
226
+ tag: z.ZodString;
227
+ }, z.core.$strict>, z.ZodObject<{
228
+ from: z.ZodLiteral<"toolArg">;
229
+ path: z.ZodString;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ from: z.ZodLiteral<"subject">;
232
+ subjectType: z.ZodString;
233
+ role: z.ZodOptional<z.ZodString>;
234
+ field: z.ZodOptional<z.ZodEnum<{
235
+ idSystem: "idSystem";
236
+ id: "id";
237
+ }>>;
238
+ }, z.core.$strict>, z.ZodObject<{
239
+ from: z.ZodLiteral<"const">;
240
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
241
+ }, z.core.$strict>], "from">>;
242
+ op: z.ZodEnum<{
243
+ in: "in";
244
+ gt: "gt";
245
+ gte: "gte";
246
+ lt: "lt";
247
+ lte: "lte";
248
+ eq: "eq";
249
+ neq: "neq";
250
+ nin: "nin";
251
+ }>;
252
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
253
+ onMissing: z.ZodOptional<z.ZodEnum<{
254
+ allow: "allow";
255
+ block: "block";
256
+ hitl: "hitl";
257
+ }>>;
258
+ }, z.core.$strict>]>, z.ZodObject<{
259
+ kind: z.ZodLiteral<"and">;
260
+ all: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
261
+ kind: z.ZodLiteral<"toolName">;
262
+ op: z.ZodEnum<{
263
+ eq: "eq";
264
+ neq: "neq";
265
+ contains: "contains";
266
+ startsWith: "startsWith";
267
+ endsWith: "endsWith";
268
+ glob: "glob";
269
+ }>;
270
+ value: z.ZodString;
271
+ }, z.core.$strict>, z.ZodObject<{
272
+ kind: z.ZodLiteral<"toolName">;
273
+ op: z.ZodLiteral<"in">;
274
+ value: z.ZodArray<z.ZodString>;
275
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
276
+ kind: z.ZodLiteral<"toolTag">;
277
+ op: z.ZodLiteral<"has">;
278
+ tag: z.ZodString;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ kind: z.ZodLiteral<"toolTag">;
281
+ op: z.ZodLiteral<"anyOf">;
282
+ tags: z.ZodArray<z.ZodString>;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ kind: z.ZodLiteral<"toolTag">;
285
+ op: z.ZodLiteral<"allOf">;
286
+ tags: z.ZodArray<z.ZodString>;
287
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
288
+ kind: z.ZodLiteral<"toolArg">;
289
+ type: z.ZodLiteral<"string">;
290
+ op: z.ZodEnum<{
291
+ in: "in";
292
+ eq: "eq";
293
+ neq: "neq";
294
+ contains: "contains";
295
+ startsWith: "startsWith";
296
+ endsWith: "endsWith";
297
+ }>;
298
+ path: z.ZodString;
299
+ value: z.ZodString;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ kind: z.ZodLiteral<"toolArg">;
302
+ type: z.ZodLiteral<"number">;
303
+ op: z.ZodEnum<{
304
+ gt: "gt";
305
+ gte: "gte";
306
+ lt: "lt";
307
+ lte: "lte";
308
+ eq: "eq";
309
+ neq: "neq";
310
+ }>;
311
+ path: z.ZodString;
312
+ value: z.ZodNumber;
313
+ }, z.core.$strip>, z.ZodObject<{
314
+ kind: z.ZodLiteral<"toolArg">;
315
+ type: z.ZodLiteral<"boolean">;
316
+ op: z.ZodLiteral<"eq">;
317
+ path: z.ZodString;
318
+ value: z.ZodBoolean;
319
+ }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
320
+ kind: z.ZodLiteral<"enduserTag">;
321
+ op: z.ZodLiteral<"has">;
322
+ tag: z.ZodString;
323
+ }, z.core.$strict>, z.ZodObject<{
324
+ kind: z.ZodLiteral<"enduserTag">;
325
+ op: z.ZodLiteral<"hasValue">;
326
+ tag: z.ZodString;
327
+ value: z.ZodString;
328
+ }, z.core.$strict>, z.ZodObject<{
329
+ kind: z.ZodLiteral<"enduserTag">;
330
+ op: z.ZodLiteral<"hasValueAny">;
331
+ tag: z.ZodString;
332
+ values: z.ZodArray<z.ZodString>;
333
+ }, z.core.$strict>], "op">, z.ZodObject<{
334
+ kind: z.ZodLiteral<"executionTime">;
335
+ scope: z.ZodEnum<{
336
+ tool: "tool";
337
+ total: "total";
338
+ }>;
339
+ op: z.ZodEnum<{
340
+ gt: "gt";
341
+ gte: "gte";
342
+ lt: "lt";
343
+ lte: "lte";
344
+ eq: "eq";
345
+ neq: "neq";
346
+ }>;
347
+ ms: z.ZodNumber;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"sequence">;
350
+ mustHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
+ mustNotHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
352
+ }, z.core.$strict>, z.ZodObject<{
353
+ kind: z.ZodLiteral<"maxCalls">;
354
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
355
+ by: z.ZodLiteral<"toolName">;
356
+ patterns: z.ZodArray<z.ZodString>;
357
+ }, z.core.$strict>, z.ZodObject<{
358
+ by: z.ZodLiteral<"toolTag">;
359
+ tags: z.ZodArray<z.ZodString>;
360
+ }, z.core.$strict>], "by">;
361
+ max: z.ZodNumber;
362
+ }, z.core.$strict>, z.ZodObject<{
363
+ kind: z.ZodLiteral<"custom">;
364
+ name: z.ZodString;
365
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
366
+ }, z.core.$strict>, z.ZodObject<{
367
+ kind: z.ZodLiteral<"metricWindow">;
368
+ scope: z.ZodEnum<{
369
+ agent: "agent";
370
+ agent_user: "agent_user";
371
+ }>;
372
+ metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ kind: z.ZodLiteral<"inbuilt">;
374
+ key: z.ZodEnum<{
375
+ bytes_in: "bytes_in";
376
+ bytes_out: "bytes_out";
377
+ duration_ms: "duration_ms";
378
+ records_in: "records_in";
379
+ records_out: "records_out";
380
+ llm_tokens_in: "llm_tokens_in";
381
+ llm_tokens_out: "llm_tokens_out";
382
+ llm_cost_usd: "llm_cost_usd";
383
+ }>;
384
+ }, z.core.$strict>, z.ZodObject<{
385
+ kind: z.ZodLiteral<"custom">;
386
+ key: z.ZodString;
387
+ }, z.core.$strict>], "kind">;
388
+ aggregate: z.ZodEnum<{
389
+ sum: "sum";
390
+ avg: "avg";
391
+ max: "max";
392
+ min: "min";
393
+ count: "count";
394
+ }>;
395
+ windowSeconds: z.ZodNumber;
396
+ filter: z.ZodOptional<z.ZodObject<{
397
+ toolName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
398
+ toolTag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
399
+ }, z.core.$strict>>;
400
+ op: z.ZodEnum<{
401
+ gt: "gt";
402
+ gte: "gte";
403
+ lt: "lt";
404
+ lte: "lte";
405
+ eq: "eq";
406
+ neq: "neq";
407
+ }>;
408
+ value: z.ZodNumber;
409
+ onMissing: z.ZodOptional<z.ZodEnum<{
410
+ allow: "allow";
411
+ block: "block";
412
+ hitl: "hitl";
413
+ }>>;
414
+ }, z.core.$strict>, z.ZodObject<{
415
+ kind: z.ZodLiteral<"timeGate">;
416
+ timezone: z.ZodObject<{
417
+ source: z.ZodLiteral<"enduserTag">;
418
+ tag: z.ZodString;
419
+ fallback: z.ZodOptional<z.ZodLiteral<"org">>;
420
+ }, z.core.$strict>;
421
+ windows: z.ZodArray<z.ZodObject<{
422
+ days: z.ZodArray<z.ZodEnum<{
423
+ mon: "mon";
424
+ tue: "tue";
425
+ wed: "wed";
426
+ thu: "thu";
427
+ fri: "fri";
428
+ sat: "sat";
429
+ sun: "sun";
430
+ }>>;
431
+ start: z.ZodString;
432
+ end: z.ZodString;
433
+ }, z.core.$strict>>;
434
+ }, z.core.$strict>, z.ZodObject<{
435
+ kind: z.ZodLiteral<"requireSubject">;
436
+ subjectType: z.ZodString;
437
+ idSystem: z.ZodOptional<z.ZodString>;
438
+ }, z.core.$strict>, z.ZodObject<{
439
+ kind: z.ZodLiteral<"signal">;
440
+ key: z.ZodString;
441
+ args: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
442
+ from: z.ZodLiteral<"enduserId">;
443
+ }, z.core.$strict>, z.ZodObject<{
444
+ from: z.ZodLiteral<"enduserTag">;
445
+ tag: z.ZodString;
446
+ }, z.core.$strict>, z.ZodObject<{
447
+ from: z.ZodLiteral<"toolName">;
448
+ }, z.core.$strict>, z.ZodObject<{
449
+ from: z.ZodLiteral<"toolTag">;
450
+ tag: z.ZodString;
451
+ }, z.core.$strict>, z.ZodObject<{
452
+ from: z.ZodLiteral<"toolArg">;
453
+ path: z.ZodString;
454
+ }, z.core.$strict>, z.ZodObject<{
455
+ from: z.ZodLiteral<"subject">;
456
+ subjectType: z.ZodString;
457
+ role: z.ZodOptional<z.ZodString>;
458
+ field: z.ZodOptional<z.ZodEnum<{
459
+ idSystem: "idSystem";
460
+ id: "id";
461
+ }>>;
462
+ }, z.core.$strict>, z.ZodObject<{
463
+ from: z.ZodLiteral<"const">;
464
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
465
+ }, z.core.$strict>], "from">>;
466
+ op: z.ZodEnum<{
467
+ in: "in";
468
+ gt: "gt";
469
+ gte: "gte";
470
+ lt: "lt";
471
+ lte: "lte";
472
+ eq: "eq";
473
+ neq: "neq";
474
+ nin: "nin";
475
+ }>;
476
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
477
+ onMissing: z.ZodOptional<z.ZodEnum<{
478
+ allow: "allow";
479
+ block: "block";
480
+ hitl: "hitl";
481
+ }>>;
482
+ }, z.core.$strict>]>>;
483
+ }, z.core.$strict>, z.ZodObject<{
484
+ kind: z.ZodLiteral<"or">;
485
+ any: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
486
+ kind: z.ZodLiteral<"toolName">;
487
+ op: z.ZodEnum<{
488
+ eq: "eq";
489
+ neq: "neq";
490
+ contains: "contains";
491
+ startsWith: "startsWith";
492
+ endsWith: "endsWith";
493
+ glob: "glob";
494
+ }>;
495
+ value: z.ZodString;
496
+ }, z.core.$strict>, z.ZodObject<{
497
+ kind: z.ZodLiteral<"toolName">;
498
+ op: z.ZodLiteral<"in">;
499
+ value: z.ZodArray<z.ZodString>;
500
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
501
+ kind: z.ZodLiteral<"toolTag">;
502
+ op: z.ZodLiteral<"has">;
503
+ tag: z.ZodString;
504
+ }, z.core.$strict>, z.ZodObject<{
505
+ kind: z.ZodLiteral<"toolTag">;
506
+ op: z.ZodLiteral<"anyOf">;
507
+ tags: z.ZodArray<z.ZodString>;
508
+ }, z.core.$strict>, z.ZodObject<{
509
+ kind: z.ZodLiteral<"toolTag">;
510
+ op: z.ZodLiteral<"allOf">;
511
+ tags: z.ZodArray<z.ZodString>;
512
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
513
+ kind: z.ZodLiteral<"toolArg">;
514
+ type: z.ZodLiteral<"string">;
515
+ op: z.ZodEnum<{
516
+ in: "in";
517
+ eq: "eq";
518
+ neq: "neq";
519
+ contains: "contains";
520
+ startsWith: "startsWith";
521
+ endsWith: "endsWith";
522
+ }>;
523
+ path: z.ZodString;
524
+ value: z.ZodString;
525
+ }, z.core.$strip>, z.ZodObject<{
526
+ kind: z.ZodLiteral<"toolArg">;
527
+ type: z.ZodLiteral<"number">;
528
+ op: z.ZodEnum<{
529
+ gt: "gt";
530
+ gte: "gte";
531
+ lt: "lt";
532
+ lte: "lte";
533
+ eq: "eq";
534
+ neq: "neq";
535
+ }>;
536
+ path: z.ZodString;
537
+ value: z.ZodNumber;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ kind: z.ZodLiteral<"toolArg">;
540
+ type: z.ZodLiteral<"boolean">;
541
+ op: z.ZodLiteral<"eq">;
542
+ path: z.ZodString;
543
+ value: z.ZodBoolean;
544
+ }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
545
+ kind: z.ZodLiteral<"enduserTag">;
546
+ op: z.ZodLiteral<"has">;
547
+ tag: z.ZodString;
548
+ }, z.core.$strict>, z.ZodObject<{
549
+ kind: z.ZodLiteral<"enduserTag">;
550
+ op: z.ZodLiteral<"hasValue">;
551
+ tag: z.ZodString;
552
+ value: z.ZodString;
553
+ }, z.core.$strict>, z.ZodObject<{
554
+ kind: z.ZodLiteral<"enduserTag">;
555
+ op: z.ZodLiteral<"hasValueAny">;
556
+ tag: z.ZodString;
557
+ values: z.ZodArray<z.ZodString>;
558
+ }, z.core.$strict>], "op">, z.ZodObject<{
559
+ kind: z.ZodLiteral<"executionTime">;
560
+ scope: z.ZodEnum<{
561
+ tool: "tool";
562
+ total: "total";
563
+ }>;
564
+ op: z.ZodEnum<{
565
+ gt: "gt";
566
+ gte: "gte";
567
+ lt: "lt";
568
+ lte: "lte";
569
+ eq: "eq";
570
+ neq: "neq";
571
+ }>;
572
+ ms: z.ZodNumber;
573
+ }, z.core.$strict>, z.ZodObject<{
574
+ kind: z.ZodLiteral<"sequence">;
575
+ mustHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
576
+ mustNotHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
577
+ }, z.core.$strict>, z.ZodObject<{
578
+ kind: z.ZodLiteral<"maxCalls">;
579
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
580
+ by: z.ZodLiteral<"toolName">;
581
+ patterns: z.ZodArray<z.ZodString>;
582
+ }, z.core.$strict>, z.ZodObject<{
583
+ by: z.ZodLiteral<"toolTag">;
584
+ tags: z.ZodArray<z.ZodString>;
585
+ }, z.core.$strict>], "by">;
586
+ max: z.ZodNumber;
587
+ }, z.core.$strict>, z.ZodObject<{
588
+ kind: z.ZodLiteral<"custom">;
589
+ name: z.ZodString;
590
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
591
+ }, z.core.$strict>, z.ZodObject<{
592
+ kind: z.ZodLiteral<"metricWindow">;
593
+ scope: z.ZodEnum<{
594
+ agent: "agent";
595
+ agent_user: "agent_user";
596
+ }>;
597
+ metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
598
+ kind: z.ZodLiteral<"inbuilt">;
599
+ key: z.ZodEnum<{
600
+ bytes_in: "bytes_in";
601
+ bytes_out: "bytes_out";
602
+ duration_ms: "duration_ms";
603
+ records_in: "records_in";
604
+ records_out: "records_out";
605
+ llm_tokens_in: "llm_tokens_in";
606
+ llm_tokens_out: "llm_tokens_out";
607
+ llm_cost_usd: "llm_cost_usd";
608
+ }>;
609
+ }, z.core.$strict>, z.ZodObject<{
610
+ kind: z.ZodLiteral<"custom">;
611
+ key: z.ZodString;
612
+ }, z.core.$strict>], "kind">;
613
+ aggregate: z.ZodEnum<{
614
+ sum: "sum";
615
+ avg: "avg";
616
+ max: "max";
617
+ min: "min";
618
+ count: "count";
619
+ }>;
620
+ windowSeconds: z.ZodNumber;
621
+ filter: z.ZodOptional<z.ZodObject<{
622
+ toolName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
623
+ toolTag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
624
+ }, z.core.$strict>>;
625
+ op: z.ZodEnum<{
626
+ gt: "gt";
627
+ gte: "gte";
628
+ lt: "lt";
629
+ lte: "lte";
630
+ eq: "eq";
631
+ neq: "neq";
632
+ }>;
633
+ value: z.ZodNumber;
634
+ onMissing: z.ZodOptional<z.ZodEnum<{
635
+ allow: "allow";
636
+ block: "block";
637
+ hitl: "hitl";
638
+ }>>;
639
+ }, z.core.$strict>, z.ZodObject<{
640
+ kind: z.ZodLiteral<"timeGate">;
641
+ timezone: z.ZodObject<{
642
+ source: z.ZodLiteral<"enduserTag">;
643
+ tag: z.ZodString;
644
+ fallback: z.ZodOptional<z.ZodLiteral<"org">>;
645
+ }, z.core.$strict>;
646
+ windows: z.ZodArray<z.ZodObject<{
647
+ days: z.ZodArray<z.ZodEnum<{
648
+ mon: "mon";
649
+ tue: "tue";
650
+ wed: "wed";
651
+ thu: "thu";
652
+ fri: "fri";
653
+ sat: "sat";
654
+ sun: "sun";
655
+ }>>;
656
+ start: z.ZodString;
657
+ end: z.ZodString;
658
+ }, z.core.$strict>>;
659
+ }, z.core.$strict>, z.ZodObject<{
660
+ kind: z.ZodLiteral<"requireSubject">;
661
+ subjectType: z.ZodString;
662
+ idSystem: z.ZodOptional<z.ZodString>;
663
+ }, z.core.$strict>, z.ZodObject<{
664
+ kind: z.ZodLiteral<"signal">;
665
+ key: z.ZodString;
666
+ args: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
667
+ from: z.ZodLiteral<"enduserId">;
668
+ }, z.core.$strict>, z.ZodObject<{
669
+ from: z.ZodLiteral<"enduserTag">;
670
+ tag: z.ZodString;
671
+ }, z.core.$strict>, z.ZodObject<{
672
+ from: z.ZodLiteral<"toolName">;
673
+ }, z.core.$strict>, z.ZodObject<{
674
+ from: z.ZodLiteral<"toolTag">;
675
+ tag: z.ZodString;
676
+ }, z.core.$strict>, z.ZodObject<{
677
+ from: z.ZodLiteral<"toolArg">;
678
+ path: z.ZodString;
679
+ }, z.core.$strict>, z.ZodObject<{
680
+ from: z.ZodLiteral<"subject">;
681
+ subjectType: z.ZodString;
682
+ role: z.ZodOptional<z.ZodString>;
683
+ field: z.ZodOptional<z.ZodEnum<{
684
+ idSystem: "idSystem";
685
+ id: "id";
686
+ }>>;
687
+ }, z.core.$strict>, z.ZodObject<{
688
+ from: z.ZodLiteral<"const">;
689
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
690
+ }, z.core.$strict>], "from">>;
691
+ op: z.ZodEnum<{
692
+ in: "in";
693
+ gt: "gt";
694
+ gte: "gte";
695
+ lt: "lt";
696
+ lte: "lte";
697
+ eq: "eq";
698
+ neq: "neq";
699
+ nin: "nin";
700
+ }>;
701
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
702
+ onMissing: z.ZodOptional<z.ZodEnum<{
703
+ allow: "allow";
704
+ block: "block";
705
+ hitl: "hitl";
706
+ }>>;
707
+ }, z.core.$strict>]>>;
708
+ }, z.core.$strict>, z.ZodObject<{
709
+ kind: z.ZodLiteral<"not">;
710
+ not: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
711
+ kind: z.ZodLiteral<"toolName">;
712
+ op: z.ZodEnum<{
713
+ eq: "eq";
714
+ neq: "neq";
715
+ contains: "contains";
716
+ startsWith: "startsWith";
717
+ endsWith: "endsWith";
718
+ glob: "glob";
719
+ }>;
720
+ value: z.ZodString;
721
+ }, z.core.$strict>, z.ZodObject<{
722
+ kind: z.ZodLiteral<"toolName">;
723
+ op: z.ZodLiteral<"in">;
724
+ value: z.ZodArray<z.ZodString>;
725
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
726
+ kind: z.ZodLiteral<"toolTag">;
727
+ op: z.ZodLiteral<"has">;
728
+ tag: z.ZodString;
729
+ }, z.core.$strict>, z.ZodObject<{
730
+ kind: z.ZodLiteral<"toolTag">;
731
+ op: z.ZodLiteral<"anyOf">;
732
+ tags: z.ZodArray<z.ZodString>;
733
+ }, z.core.$strict>, z.ZodObject<{
734
+ kind: z.ZodLiteral<"toolTag">;
735
+ op: z.ZodLiteral<"allOf">;
736
+ tags: z.ZodArray<z.ZodString>;
737
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
738
+ kind: z.ZodLiteral<"toolArg">;
739
+ type: z.ZodLiteral<"string">;
740
+ op: z.ZodEnum<{
741
+ in: "in";
742
+ eq: "eq";
743
+ neq: "neq";
744
+ contains: "contains";
745
+ startsWith: "startsWith";
746
+ endsWith: "endsWith";
747
+ }>;
748
+ path: z.ZodString;
749
+ value: z.ZodString;
750
+ }, z.core.$strip>, z.ZodObject<{
751
+ kind: z.ZodLiteral<"toolArg">;
752
+ type: z.ZodLiteral<"number">;
753
+ op: z.ZodEnum<{
754
+ gt: "gt";
755
+ gte: "gte";
756
+ lt: "lt";
757
+ lte: "lte";
758
+ eq: "eq";
759
+ neq: "neq";
760
+ }>;
761
+ path: z.ZodString;
762
+ value: z.ZodNumber;
763
+ }, z.core.$strip>, z.ZodObject<{
764
+ kind: z.ZodLiteral<"toolArg">;
765
+ type: z.ZodLiteral<"boolean">;
766
+ op: z.ZodLiteral<"eq">;
767
+ path: z.ZodString;
768
+ value: z.ZodBoolean;
769
+ }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
770
+ kind: z.ZodLiteral<"enduserTag">;
771
+ op: z.ZodLiteral<"has">;
772
+ tag: z.ZodString;
773
+ }, z.core.$strict>, z.ZodObject<{
774
+ kind: z.ZodLiteral<"enduserTag">;
775
+ op: z.ZodLiteral<"hasValue">;
776
+ tag: z.ZodString;
777
+ value: z.ZodString;
778
+ }, z.core.$strict>, z.ZodObject<{
779
+ kind: z.ZodLiteral<"enduserTag">;
780
+ op: z.ZodLiteral<"hasValueAny">;
781
+ tag: z.ZodString;
782
+ values: z.ZodArray<z.ZodString>;
783
+ }, z.core.$strict>], "op">, z.ZodObject<{
784
+ kind: z.ZodLiteral<"executionTime">;
785
+ scope: z.ZodEnum<{
786
+ tool: "tool";
787
+ total: "total";
788
+ }>;
789
+ op: z.ZodEnum<{
790
+ gt: "gt";
791
+ gte: "gte";
792
+ lt: "lt";
793
+ lte: "lte";
794
+ eq: "eq";
795
+ neq: "neq";
796
+ }>;
797
+ ms: z.ZodNumber;
798
+ }, z.core.$strict>, z.ZodObject<{
799
+ kind: z.ZodLiteral<"sequence">;
800
+ mustHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
801
+ mustNotHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
802
+ }, z.core.$strict>, z.ZodObject<{
803
+ kind: z.ZodLiteral<"maxCalls">;
804
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
805
+ by: z.ZodLiteral<"toolName">;
806
+ patterns: z.ZodArray<z.ZodString>;
807
+ }, z.core.$strict>, z.ZodObject<{
808
+ by: z.ZodLiteral<"toolTag">;
809
+ tags: z.ZodArray<z.ZodString>;
810
+ }, z.core.$strict>], "by">;
811
+ max: z.ZodNumber;
812
+ }, z.core.$strict>, z.ZodObject<{
813
+ kind: z.ZodLiteral<"custom">;
814
+ name: z.ZodString;
815
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
816
+ }, z.core.$strict>, z.ZodObject<{
817
+ kind: z.ZodLiteral<"metricWindow">;
818
+ scope: z.ZodEnum<{
819
+ agent: "agent";
820
+ agent_user: "agent_user";
821
+ }>;
822
+ metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
823
+ kind: z.ZodLiteral<"inbuilt">;
824
+ key: z.ZodEnum<{
825
+ bytes_in: "bytes_in";
826
+ bytes_out: "bytes_out";
827
+ duration_ms: "duration_ms";
828
+ records_in: "records_in";
829
+ records_out: "records_out";
830
+ llm_tokens_in: "llm_tokens_in";
831
+ llm_tokens_out: "llm_tokens_out";
832
+ llm_cost_usd: "llm_cost_usd";
833
+ }>;
834
+ }, z.core.$strict>, z.ZodObject<{
835
+ kind: z.ZodLiteral<"custom">;
836
+ key: z.ZodString;
837
+ }, z.core.$strict>], "kind">;
838
+ aggregate: z.ZodEnum<{
839
+ sum: "sum";
840
+ avg: "avg";
841
+ max: "max";
842
+ min: "min";
843
+ count: "count";
844
+ }>;
845
+ windowSeconds: z.ZodNumber;
846
+ filter: z.ZodOptional<z.ZodObject<{
847
+ toolName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
848
+ toolTag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
849
+ }, z.core.$strict>>;
850
+ op: z.ZodEnum<{
851
+ gt: "gt";
852
+ gte: "gte";
853
+ lt: "lt";
854
+ lte: "lte";
855
+ eq: "eq";
856
+ neq: "neq";
857
+ }>;
858
+ value: z.ZodNumber;
859
+ onMissing: z.ZodOptional<z.ZodEnum<{
860
+ allow: "allow";
861
+ block: "block";
862
+ hitl: "hitl";
863
+ }>>;
864
+ }, z.core.$strict>, z.ZodObject<{
865
+ kind: z.ZodLiteral<"timeGate">;
866
+ timezone: z.ZodObject<{
867
+ source: z.ZodLiteral<"enduserTag">;
868
+ tag: z.ZodString;
869
+ fallback: z.ZodOptional<z.ZodLiteral<"org">>;
870
+ }, z.core.$strict>;
871
+ windows: z.ZodArray<z.ZodObject<{
872
+ days: z.ZodArray<z.ZodEnum<{
873
+ mon: "mon";
874
+ tue: "tue";
875
+ wed: "wed";
876
+ thu: "thu";
877
+ fri: "fri";
878
+ sat: "sat";
879
+ sun: "sun";
880
+ }>>;
881
+ start: z.ZodString;
882
+ end: z.ZodString;
883
+ }, z.core.$strict>>;
884
+ }, z.core.$strict>, z.ZodObject<{
885
+ kind: z.ZodLiteral<"requireSubject">;
886
+ subjectType: z.ZodString;
887
+ idSystem: z.ZodOptional<z.ZodString>;
888
+ }, z.core.$strict>, z.ZodObject<{
889
+ kind: z.ZodLiteral<"signal">;
890
+ key: z.ZodString;
891
+ args: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
892
+ from: z.ZodLiteral<"enduserId">;
893
+ }, z.core.$strict>, z.ZodObject<{
894
+ from: z.ZodLiteral<"enduserTag">;
895
+ tag: z.ZodString;
896
+ }, z.core.$strict>, z.ZodObject<{
897
+ from: z.ZodLiteral<"toolName">;
898
+ }, z.core.$strict>, z.ZodObject<{
899
+ from: z.ZodLiteral<"toolTag">;
900
+ tag: z.ZodString;
901
+ }, z.core.$strict>, z.ZodObject<{
902
+ from: z.ZodLiteral<"toolArg">;
903
+ path: z.ZodString;
904
+ }, z.core.$strict>, z.ZodObject<{
905
+ from: z.ZodLiteral<"subject">;
906
+ subjectType: z.ZodString;
907
+ role: z.ZodOptional<z.ZodString>;
908
+ field: z.ZodOptional<z.ZodEnum<{
909
+ idSystem: "idSystem";
910
+ id: "id";
911
+ }>>;
912
+ }, z.core.$strict>, z.ZodObject<{
913
+ from: z.ZodLiteral<"const">;
914
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
915
+ }, z.core.$strict>], "from">>;
916
+ op: z.ZodEnum<{
917
+ in: "in";
918
+ gt: "gt";
919
+ gte: "gte";
920
+ lt: "lt";
921
+ lte: "lte";
922
+ eq: "eq";
923
+ neq: "neq";
924
+ nin: "nin";
925
+ }>;
926
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
927
+ onMissing: z.ZodOptional<z.ZodEnum<{
928
+ allow: "allow";
929
+ block: "block";
930
+ hitl: "hitl";
931
+ }>>;
932
+ }, z.core.$strict>]>;
933
+ }, z.core.$strict>]>;
934
+ effect: z.ZodDiscriminatedUnion<[z.ZodObject<{
935
+ type: z.ZodLiteral<"allow">;
936
+ reason: z.ZodOptional<z.ZodString>;
937
+ }, z.core.$strict>, z.ZodObject<{
938
+ type: z.ZodLiteral<"hitl">;
939
+ reason: z.ZodOptional<z.ZodString>;
940
+ }, z.core.$strict>, z.ZodObject<{
941
+ type: z.ZodLiteral<"block">;
942
+ reason: z.ZodOptional<z.ZodString>;
943
+ }, z.core.$strict>], "type">;
944
+ onMissing: z.ZodOptional<z.ZodEnum<{
945
+ allow: "allow";
946
+ block: "block";
947
+ hitl: "hitl";
948
+ }>>;
949
+ }, z.core.$strict>;
950
+ export type Rule = z.infer<typeof RuleSchema>;
951
+ export declare const RuleSpecSchema: z.ZodObject<{
952
+ name: z.ZodString;
953
+ effect: z.ZodDiscriminatedUnion<[z.ZodObject<{
954
+ type: z.ZodLiteral<"allow">;
955
+ reason: z.ZodOptional<z.ZodString>;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ type: z.ZodLiteral<"hitl">;
958
+ reason: z.ZodOptional<z.ZodString>;
959
+ }, z.core.$strict>, z.ZodObject<{
960
+ type: z.ZodLiteral<"block">;
961
+ reason: z.ZodOptional<z.ZodString>;
962
+ }, z.core.$strict>], "type">;
963
+ enabled: z.ZodBoolean;
964
+ onMissing: z.ZodOptional<z.ZodEnum<{
965
+ allow: "allow";
966
+ block: "block";
967
+ hitl: "hitl";
968
+ }>>;
969
+ selector: z.ZodObject<{
970
+ phase: z.ZodEnum<{
971
+ "tool.before": "tool.before";
972
+ "tool.after": "tool.after";
973
+ }>;
974
+ tool: z.ZodOptional<z.ZodObject<{
975
+ name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
976
+ tagsAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
977
+ tagsAny: z.ZodOptional<z.ZodArray<z.ZodString>>;
978
+ }, z.core.$strict>>;
979
+ }, z.core.$strict>;
980
+ condition: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
981
+ kind: z.ZodLiteral<"toolName">;
982
+ op: z.ZodEnum<{
983
+ eq: "eq";
984
+ neq: "neq";
985
+ contains: "contains";
986
+ startsWith: "startsWith";
987
+ endsWith: "endsWith";
988
+ glob: "glob";
989
+ }>;
990
+ value: z.ZodString;
991
+ }, z.core.$strict>, z.ZodObject<{
992
+ kind: z.ZodLiteral<"toolName">;
993
+ op: z.ZodLiteral<"in">;
994
+ value: z.ZodArray<z.ZodString>;
995
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
996
+ kind: z.ZodLiteral<"toolTag">;
997
+ op: z.ZodLiteral<"has">;
998
+ tag: z.ZodString;
999
+ }, z.core.$strict>, z.ZodObject<{
1000
+ kind: z.ZodLiteral<"toolTag">;
1001
+ op: z.ZodLiteral<"anyOf">;
1002
+ tags: z.ZodArray<z.ZodString>;
1003
+ }, z.core.$strict>, z.ZodObject<{
1004
+ kind: z.ZodLiteral<"toolTag">;
1005
+ op: z.ZodLiteral<"allOf">;
1006
+ tags: z.ZodArray<z.ZodString>;
1007
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1008
+ kind: z.ZodLiteral<"toolArg">;
1009
+ type: z.ZodLiteral<"string">;
1010
+ op: z.ZodEnum<{
1011
+ in: "in";
1012
+ eq: "eq";
1013
+ neq: "neq";
1014
+ contains: "contains";
1015
+ startsWith: "startsWith";
1016
+ endsWith: "endsWith";
1017
+ }>;
1018
+ path: z.ZodString;
1019
+ value: z.ZodString;
1020
+ }, z.core.$strip>, z.ZodObject<{
1021
+ kind: z.ZodLiteral<"toolArg">;
1022
+ type: z.ZodLiteral<"number">;
1023
+ op: z.ZodEnum<{
1024
+ gt: "gt";
1025
+ gte: "gte";
1026
+ lt: "lt";
1027
+ lte: "lte";
1028
+ eq: "eq";
1029
+ neq: "neq";
1030
+ }>;
1031
+ path: z.ZodString;
1032
+ value: z.ZodNumber;
1033
+ }, z.core.$strip>, z.ZodObject<{
1034
+ kind: z.ZodLiteral<"toolArg">;
1035
+ type: z.ZodLiteral<"boolean">;
1036
+ op: z.ZodLiteral<"eq">;
1037
+ path: z.ZodString;
1038
+ value: z.ZodBoolean;
1039
+ }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1040
+ kind: z.ZodLiteral<"enduserTag">;
1041
+ op: z.ZodLiteral<"has">;
1042
+ tag: z.ZodString;
1043
+ }, z.core.$strict>, z.ZodObject<{
1044
+ kind: z.ZodLiteral<"enduserTag">;
1045
+ op: z.ZodLiteral<"hasValue">;
1046
+ tag: z.ZodString;
1047
+ value: z.ZodString;
1048
+ }, z.core.$strict>, z.ZodObject<{
1049
+ kind: z.ZodLiteral<"enduserTag">;
1050
+ op: z.ZodLiteral<"hasValueAny">;
1051
+ tag: z.ZodString;
1052
+ values: z.ZodArray<z.ZodString>;
1053
+ }, z.core.$strict>], "op">, z.ZodObject<{
1054
+ kind: z.ZodLiteral<"executionTime">;
1055
+ scope: z.ZodEnum<{
1056
+ tool: "tool";
1057
+ total: "total";
1058
+ }>;
1059
+ op: z.ZodEnum<{
1060
+ gt: "gt";
1061
+ gte: "gte";
1062
+ lt: "lt";
1063
+ lte: "lte";
1064
+ eq: "eq";
1065
+ neq: "neq";
1066
+ }>;
1067
+ ms: z.ZodNumber;
1068
+ }, z.core.$strict>, z.ZodObject<{
1069
+ kind: z.ZodLiteral<"sequence">;
1070
+ mustHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
1071
+ mustNotHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
1072
+ }, z.core.$strict>, z.ZodObject<{
1073
+ kind: z.ZodLiteral<"maxCalls">;
1074
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
1075
+ by: z.ZodLiteral<"toolName">;
1076
+ patterns: z.ZodArray<z.ZodString>;
1077
+ }, z.core.$strict>, z.ZodObject<{
1078
+ by: z.ZodLiteral<"toolTag">;
1079
+ tags: z.ZodArray<z.ZodString>;
1080
+ }, z.core.$strict>], "by">;
1081
+ max: z.ZodNumber;
1082
+ }, z.core.$strict>, z.ZodObject<{
1083
+ kind: z.ZodLiteral<"custom">;
1084
+ name: z.ZodString;
1085
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
1086
+ }, z.core.$strict>, z.ZodObject<{
1087
+ kind: z.ZodLiteral<"metricWindow">;
1088
+ scope: z.ZodEnum<{
1089
+ agent: "agent";
1090
+ agent_user: "agent_user";
1091
+ }>;
1092
+ metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
1093
+ kind: z.ZodLiteral<"inbuilt">;
1094
+ key: z.ZodEnum<{
1095
+ bytes_in: "bytes_in";
1096
+ bytes_out: "bytes_out";
1097
+ duration_ms: "duration_ms";
1098
+ records_in: "records_in";
1099
+ records_out: "records_out";
1100
+ llm_tokens_in: "llm_tokens_in";
1101
+ llm_tokens_out: "llm_tokens_out";
1102
+ llm_cost_usd: "llm_cost_usd";
1103
+ }>;
1104
+ }, z.core.$strict>, z.ZodObject<{
1105
+ kind: z.ZodLiteral<"custom">;
1106
+ key: z.ZodString;
1107
+ }, z.core.$strict>], "kind">;
1108
+ aggregate: z.ZodEnum<{
1109
+ sum: "sum";
1110
+ avg: "avg";
1111
+ max: "max";
1112
+ min: "min";
1113
+ count: "count";
1114
+ }>;
1115
+ windowSeconds: z.ZodNumber;
1116
+ filter: z.ZodOptional<z.ZodObject<{
1117
+ toolName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1118
+ toolTag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1119
+ }, z.core.$strict>>;
1120
+ op: z.ZodEnum<{
1121
+ gt: "gt";
1122
+ gte: "gte";
1123
+ lt: "lt";
1124
+ lte: "lte";
1125
+ eq: "eq";
1126
+ neq: "neq";
1127
+ }>;
1128
+ value: z.ZodNumber;
1129
+ onMissing: z.ZodOptional<z.ZodEnum<{
1130
+ allow: "allow";
1131
+ block: "block";
1132
+ hitl: "hitl";
1133
+ }>>;
1134
+ }, z.core.$strict>, z.ZodObject<{
1135
+ kind: z.ZodLiteral<"timeGate">;
1136
+ timezone: z.ZodObject<{
1137
+ source: z.ZodLiteral<"enduserTag">;
1138
+ tag: z.ZodString;
1139
+ fallback: z.ZodOptional<z.ZodLiteral<"org">>;
1140
+ }, z.core.$strict>;
1141
+ windows: z.ZodArray<z.ZodObject<{
1142
+ days: z.ZodArray<z.ZodEnum<{
1143
+ mon: "mon";
1144
+ tue: "tue";
1145
+ wed: "wed";
1146
+ thu: "thu";
1147
+ fri: "fri";
1148
+ sat: "sat";
1149
+ sun: "sun";
1150
+ }>>;
1151
+ start: z.ZodString;
1152
+ end: z.ZodString;
1153
+ }, z.core.$strict>>;
1154
+ }, z.core.$strict>, z.ZodObject<{
1155
+ kind: z.ZodLiteral<"requireSubject">;
1156
+ subjectType: z.ZodString;
1157
+ idSystem: z.ZodOptional<z.ZodString>;
1158
+ }, z.core.$strict>, z.ZodObject<{
1159
+ kind: z.ZodLiteral<"signal">;
1160
+ key: z.ZodString;
1161
+ args: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1162
+ from: z.ZodLiteral<"enduserId">;
1163
+ }, z.core.$strict>, z.ZodObject<{
1164
+ from: z.ZodLiteral<"enduserTag">;
1165
+ tag: z.ZodString;
1166
+ }, z.core.$strict>, z.ZodObject<{
1167
+ from: z.ZodLiteral<"toolName">;
1168
+ }, z.core.$strict>, z.ZodObject<{
1169
+ from: z.ZodLiteral<"toolTag">;
1170
+ tag: z.ZodString;
1171
+ }, z.core.$strict>, z.ZodObject<{
1172
+ from: z.ZodLiteral<"toolArg">;
1173
+ path: z.ZodString;
1174
+ }, z.core.$strict>, z.ZodObject<{
1175
+ from: z.ZodLiteral<"subject">;
1176
+ subjectType: z.ZodString;
1177
+ role: z.ZodOptional<z.ZodString>;
1178
+ field: z.ZodOptional<z.ZodEnum<{
1179
+ idSystem: "idSystem";
1180
+ id: "id";
1181
+ }>>;
1182
+ }, z.core.$strict>, z.ZodObject<{
1183
+ from: z.ZodLiteral<"const">;
1184
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1185
+ }, z.core.$strict>], "from">>;
1186
+ op: z.ZodEnum<{
1187
+ in: "in";
1188
+ gt: "gt";
1189
+ gte: "gte";
1190
+ lt: "lt";
1191
+ lte: "lte";
1192
+ eq: "eq";
1193
+ neq: "neq";
1194
+ nin: "nin";
1195
+ }>;
1196
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1197
+ onMissing: z.ZodOptional<z.ZodEnum<{
1198
+ allow: "allow";
1199
+ block: "block";
1200
+ hitl: "hitl";
1201
+ }>>;
1202
+ }, z.core.$strict>]>, z.ZodObject<{
1203
+ kind: z.ZodLiteral<"and">;
1204
+ all: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1205
+ kind: z.ZodLiteral<"toolName">;
1206
+ op: z.ZodEnum<{
1207
+ eq: "eq";
1208
+ neq: "neq";
1209
+ contains: "contains";
1210
+ startsWith: "startsWith";
1211
+ endsWith: "endsWith";
1212
+ glob: "glob";
1213
+ }>;
1214
+ value: z.ZodString;
1215
+ }, z.core.$strict>, z.ZodObject<{
1216
+ kind: z.ZodLiteral<"toolName">;
1217
+ op: z.ZodLiteral<"in">;
1218
+ value: z.ZodArray<z.ZodString>;
1219
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1220
+ kind: z.ZodLiteral<"toolTag">;
1221
+ op: z.ZodLiteral<"has">;
1222
+ tag: z.ZodString;
1223
+ }, z.core.$strict>, z.ZodObject<{
1224
+ kind: z.ZodLiteral<"toolTag">;
1225
+ op: z.ZodLiteral<"anyOf">;
1226
+ tags: z.ZodArray<z.ZodString>;
1227
+ }, z.core.$strict>, z.ZodObject<{
1228
+ kind: z.ZodLiteral<"toolTag">;
1229
+ op: z.ZodLiteral<"allOf">;
1230
+ tags: z.ZodArray<z.ZodString>;
1231
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1232
+ kind: z.ZodLiteral<"toolArg">;
1233
+ type: z.ZodLiteral<"string">;
1234
+ op: z.ZodEnum<{
1235
+ in: "in";
1236
+ eq: "eq";
1237
+ neq: "neq";
1238
+ contains: "contains";
1239
+ startsWith: "startsWith";
1240
+ endsWith: "endsWith";
1241
+ }>;
1242
+ path: z.ZodString;
1243
+ value: z.ZodString;
1244
+ }, z.core.$strip>, z.ZodObject<{
1245
+ kind: z.ZodLiteral<"toolArg">;
1246
+ type: z.ZodLiteral<"number">;
1247
+ op: z.ZodEnum<{
1248
+ gt: "gt";
1249
+ gte: "gte";
1250
+ lt: "lt";
1251
+ lte: "lte";
1252
+ eq: "eq";
1253
+ neq: "neq";
1254
+ }>;
1255
+ path: z.ZodString;
1256
+ value: z.ZodNumber;
1257
+ }, z.core.$strip>, z.ZodObject<{
1258
+ kind: z.ZodLiteral<"toolArg">;
1259
+ type: z.ZodLiteral<"boolean">;
1260
+ op: z.ZodLiteral<"eq">;
1261
+ path: z.ZodString;
1262
+ value: z.ZodBoolean;
1263
+ }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1264
+ kind: z.ZodLiteral<"enduserTag">;
1265
+ op: z.ZodLiteral<"has">;
1266
+ tag: z.ZodString;
1267
+ }, z.core.$strict>, z.ZodObject<{
1268
+ kind: z.ZodLiteral<"enduserTag">;
1269
+ op: z.ZodLiteral<"hasValue">;
1270
+ tag: z.ZodString;
1271
+ value: z.ZodString;
1272
+ }, z.core.$strict>, z.ZodObject<{
1273
+ kind: z.ZodLiteral<"enduserTag">;
1274
+ op: z.ZodLiteral<"hasValueAny">;
1275
+ tag: z.ZodString;
1276
+ values: z.ZodArray<z.ZodString>;
1277
+ }, z.core.$strict>], "op">, z.ZodObject<{
1278
+ kind: z.ZodLiteral<"executionTime">;
1279
+ scope: z.ZodEnum<{
1280
+ tool: "tool";
1281
+ total: "total";
1282
+ }>;
1283
+ op: z.ZodEnum<{
1284
+ gt: "gt";
1285
+ gte: "gte";
1286
+ lt: "lt";
1287
+ lte: "lte";
1288
+ eq: "eq";
1289
+ neq: "neq";
1290
+ }>;
1291
+ ms: z.ZodNumber;
1292
+ }, z.core.$strict>, z.ZodObject<{
1293
+ kind: z.ZodLiteral<"sequence">;
1294
+ mustHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
1295
+ mustNotHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
1296
+ }, z.core.$strict>, z.ZodObject<{
1297
+ kind: z.ZodLiteral<"maxCalls">;
1298
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
1299
+ by: z.ZodLiteral<"toolName">;
1300
+ patterns: z.ZodArray<z.ZodString>;
1301
+ }, z.core.$strict>, z.ZodObject<{
1302
+ by: z.ZodLiteral<"toolTag">;
1303
+ tags: z.ZodArray<z.ZodString>;
1304
+ }, z.core.$strict>], "by">;
1305
+ max: z.ZodNumber;
1306
+ }, z.core.$strict>, z.ZodObject<{
1307
+ kind: z.ZodLiteral<"custom">;
1308
+ name: z.ZodString;
1309
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
1310
+ }, z.core.$strict>, z.ZodObject<{
1311
+ kind: z.ZodLiteral<"metricWindow">;
1312
+ scope: z.ZodEnum<{
1313
+ agent: "agent";
1314
+ agent_user: "agent_user";
1315
+ }>;
1316
+ metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
1317
+ kind: z.ZodLiteral<"inbuilt">;
1318
+ key: z.ZodEnum<{
1319
+ bytes_in: "bytes_in";
1320
+ bytes_out: "bytes_out";
1321
+ duration_ms: "duration_ms";
1322
+ records_in: "records_in";
1323
+ records_out: "records_out";
1324
+ llm_tokens_in: "llm_tokens_in";
1325
+ llm_tokens_out: "llm_tokens_out";
1326
+ llm_cost_usd: "llm_cost_usd";
1327
+ }>;
1328
+ }, z.core.$strict>, z.ZodObject<{
1329
+ kind: z.ZodLiteral<"custom">;
1330
+ key: z.ZodString;
1331
+ }, z.core.$strict>], "kind">;
1332
+ aggregate: z.ZodEnum<{
1333
+ sum: "sum";
1334
+ avg: "avg";
1335
+ max: "max";
1336
+ min: "min";
1337
+ count: "count";
1338
+ }>;
1339
+ windowSeconds: z.ZodNumber;
1340
+ filter: z.ZodOptional<z.ZodObject<{
1341
+ toolName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1342
+ toolTag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1343
+ }, z.core.$strict>>;
1344
+ op: z.ZodEnum<{
1345
+ gt: "gt";
1346
+ gte: "gte";
1347
+ lt: "lt";
1348
+ lte: "lte";
1349
+ eq: "eq";
1350
+ neq: "neq";
1351
+ }>;
1352
+ value: z.ZodNumber;
1353
+ onMissing: z.ZodOptional<z.ZodEnum<{
1354
+ allow: "allow";
1355
+ block: "block";
1356
+ hitl: "hitl";
1357
+ }>>;
1358
+ }, z.core.$strict>, z.ZodObject<{
1359
+ kind: z.ZodLiteral<"timeGate">;
1360
+ timezone: z.ZodObject<{
1361
+ source: z.ZodLiteral<"enduserTag">;
1362
+ tag: z.ZodString;
1363
+ fallback: z.ZodOptional<z.ZodLiteral<"org">>;
1364
+ }, z.core.$strict>;
1365
+ windows: z.ZodArray<z.ZodObject<{
1366
+ days: z.ZodArray<z.ZodEnum<{
1367
+ mon: "mon";
1368
+ tue: "tue";
1369
+ wed: "wed";
1370
+ thu: "thu";
1371
+ fri: "fri";
1372
+ sat: "sat";
1373
+ sun: "sun";
1374
+ }>>;
1375
+ start: z.ZodString;
1376
+ end: z.ZodString;
1377
+ }, z.core.$strict>>;
1378
+ }, z.core.$strict>, z.ZodObject<{
1379
+ kind: z.ZodLiteral<"requireSubject">;
1380
+ subjectType: z.ZodString;
1381
+ idSystem: z.ZodOptional<z.ZodString>;
1382
+ }, z.core.$strict>, z.ZodObject<{
1383
+ kind: z.ZodLiteral<"signal">;
1384
+ key: z.ZodString;
1385
+ args: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1386
+ from: z.ZodLiteral<"enduserId">;
1387
+ }, z.core.$strict>, z.ZodObject<{
1388
+ from: z.ZodLiteral<"enduserTag">;
1389
+ tag: z.ZodString;
1390
+ }, z.core.$strict>, z.ZodObject<{
1391
+ from: z.ZodLiteral<"toolName">;
1392
+ }, z.core.$strict>, z.ZodObject<{
1393
+ from: z.ZodLiteral<"toolTag">;
1394
+ tag: z.ZodString;
1395
+ }, z.core.$strict>, z.ZodObject<{
1396
+ from: z.ZodLiteral<"toolArg">;
1397
+ path: z.ZodString;
1398
+ }, z.core.$strict>, z.ZodObject<{
1399
+ from: z.ZodLiteral<"subject">;
1400
+ subjectType: z.ZodString;
1401
+ role: z.ZodOptional<z.ZodString>;
1402
+ field: z.ZodOptional<z.ZodEnum<{
1403
+ idSystem: "idSystem";
1404
+ id: "id";
1405
+ }>>;
1406
+ }, z.core.$strict>, z.ZodObject<{
1407
+ from: z.ZodLiteral<"const">;
1408
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1409
+ }, z.core.$strict>], "from">>;
1410
+ op: z.ZodEnum<{
1411
+ in: "in";
1412
+ gt: "gt";
1413
+ gte: "gte";
1414
+ lt: "lt";
1415
+ lte: "lte";
1416
+ eq: "eq";
1417
+ neq: "neq";
1418
+ nin: "nin";
1419
+ }>;
1420
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1421
+ onMissing: z.ZodOptional<z.ZodEnum<{
1422
+ allow: "allow";
1423
+ block: "block";
1424
+ hitl: "hitl";
1425
+ }>>;
1426
+ }, z.core.$strict>]>>;
1427
+ }, z.core.$strict>, z.ZodObject<{
1428
+ kind: z.ZodLiteral<"or">;
1429
+ any: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1430
+ kind: z.ZodLiteral<"toolName">;
1431
+ op: z.ZodEnum<{
1432
+ eq: "eq";
1433
+ neq: "neq";
1434
+ contains: "contains";
1435
+ startsWith: "startsWith";
1436
+ endsWith: "endsWith";
1437
+ glob: "glob";
1438
+ }>;
1439
+ value: z.ZodString;
1440
+ }, z.core.$strict>, z.ZodObject<{
1441
+ kind: z.ZodLiteral<"toolName">;
1442
+ op: z.ZodLiteral<"in">;
1443
+ value: z.ZodArray<z.ZodString>;
1444
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1445
+ kind: z.ZodLiteral<"toolTag">;
1446
+ op: z.ZodLiteral<"has">;
1447
+ tag: z.ZodString;
1448
+ }, z.core.$strict>, z.ZodObject<{
1449
+ kind: z.ZodLiteral<"toolTag">;
1450
+ op: z.ZodLiteral<"anyOf">;
1451
+ tags: z.ZodArray<z.ZodString>;
1452
+ }, z.core.$strict>, z.ZodObject<{
1453
+ kind: z.ZodLiteral<"toolTag">;
1454
+ op: z.ZodLiteral<"allOf">;
1455
+ tags: z.ZodArray<z.ZodString>;
1456
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1457
+ kind: z.ZodLiteral<"toolArg">;
1458
+ type: z.ZodLiteral<"string">;
1459
+ op: z.ZodEnum<{
1460
+ in: "in";
1461
+ eq: "eq";
1462
+ neq: "neq";
1463
+ contains: "contains";
1464
+ startsWith: "startsWith";
1465
+ endsWith: "endsWith";
1466
+ }>;
1467
+ path: z.ZodString;
1468
+ value: z.ZodString;
1469
+ }, z.core.$strip>, z.ZodObject<{
1470
+ kind: z.ZodLiteral<"toolArg">;
1471
+ type: z.ZodLiteral<"number">;
1472
+ op: z.ZodEnum<{
1473
+ gt: "gt";
1474
+ gte: "gte";
1475
+ lt: "lt";
1476
+ lte: "lte";
1477
+ eq: "eq";
1478
+ neq: "neq";
1479
+ }>;
1480
+ path: z.ZodString;
1481
+ value: z.ZodNumber;
1482
+ }, z.core.$strip>, z.ZodObject<{
1483
+ kind: z.ZodLiteral<"toolArg">;
1484
+ type: z.ZodLiteral<"boolean">;
1485
+ op: z.ZodLiteral<"eq">;
1486
+ path: z.ZodString;
1487
+ value: z.ZodBoolean;
1488
+ }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1489
+ kind: z.ZodLiteral<"enduserTag">;
1490
+ op: z.ZodLiteral<"has">;
1491
+ tag: z.ZodString;
1492
+ }, z.core.$strict>, z.ZodObject<{
1493
+ kind: z.ZodLiteral<"enduserTag">;
1494
+ op: z.ZodLiteral<"hasValue">;
1495
+ tag: z.ZodString;
1496
+ value: z.ZodString;
1497
+ }, z.core.$strict>, z.ZodObject<{
1498
+ kind: z.ZodLiteral<"enduserTag">;
1499
+ op: z.ZodLiteral<"hasValueAny">;
1500
+ tag: z.ZodString;
1501
+ values: z.ZodArray<z.ZodString>;
1502
+ }, z.core.$strict>], "op">, z.ZodObject<{
1503
+ kind: z.ZodLiteral<"executionTime">;
1504
+ scope: z.ZodEnum<{
1505
+ tool: "tool";
1506
+ total: "total";
1507
+ }>;
1508
+ op: z.ZodEnum<{
1509
+ gt: "gt";
1510
+ gte: "gte";
1511
+ lt: "lt";
1512
+ lte: "lte";
1513
+ eq: "eq";
1514
+ neq: "neq";
1515
+ }>;
1516
+ ms: z.ZodNumber;
1517
+ }, z.core.$strict>, z.ZodObject<{
1518
+ kind: z.ZodLiteral<"sequence">;
1519
+ mustHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
1520
+ mustNotHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
1521
+ }, z.core.$strict>, z.ZodObject<{
1522
+ kind: z.ZodLiteral<"maxCalls">;
1523
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
1524
+ by: z.ZodLiteral<"toolName">;
1525
+ patterns: z.ZodArray<z.ZodString>;
1526
+ }, z.core.$strict>, z.ZodObject<{
1527
+ by: z.ZodLiteral<"toolTag">;
1528
+ tags: z.ZodArray<z.ZodString>;
1529
+ }, z.core.$strict>], "by">;
1530
+ max: z.ZodNumber;
1531
+ }, z.core.$strict>, z.ZodObject<{
1532
+ kind: z.ZodLiteral<"custom">;
1533
+ name: z.ZodString;
1534
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
1535
+ }, z.core.$strict>, z.ZodObject<{
1536
+ kind: z.ZodLiteral<"metricWindow">;
1537
+ scope: z.ZodEnum<{
1538
+ agent: "agent";
1539
+ agent_user: "agent_user";
1540
+ }>;
1541
+ metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
1542
+ kind: z.ZodLiteral<"inbuilt">;
1543
+ key: z.ZodEnum<{
1544
+ bytes_in: "bytes_in";
1545
+ bytes_out: "bytes_out";
1546
+ duration_ms: "duration_ms";
1547
+ records_in: "records_in";
1548
+ records_out: "records_out";
1549
+ llm_tokens_in: "llm_tokens_in";
1550
+ llm_tokens_out: "llm_tokens_out";
1551
+ llm_cost_usd: "llm_cost_usd";
1552
+ }>;
1553
+ }, z.core.$strict>, z.ZodObject<{
1554
+ kind: z.ZodLiteral<"custom">;
1555
+ key: z.ZodString;
1556
+ }, z.core.$strict>], "kind">;
1557
+ aggregate: z.ZodEnum<{
1558
+ sum: "sum";
1559
+ avg: "avg";
1560
+ max: "max";
1561
+ min: "min";
1562
+ count: "count";
1563
+ }>;
1564
+ windowSeconds: z.ZodNumber;
1565
+ filter: z.ZodOptional<z.ZodObject<{
1566
+ toolName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1567
+ toolTag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1568
+ }, z.core.$strict>>;
1569
+ op: z.ZodEnum<{
1570
+ gt: "gt";
1571
+ gte: "gte";
1572
+ lt: "lt";
1573
+ lte: "lte";
1574
+ eq: "eq";
1575
+ neq: "neq";
1576
+ }>;
1577
+ value: z.ZodNumber;
1578
+ onMissing: z.ZodOptional<z.ZodEnum<{
1579
+ allow: "allow";
1580
+ block: "block";
1581
+ hitl: "hitl";
1582
+ }>>;
1583
+ }, z.core.$strict>, z.ZodObject<{
1584
+ kind: z.ZodLiteral<"timeGate">;
1585
+ timezone: z.ZodObject<{
1586
+ source: z.ZodLiteral<"enduserTag">;
1587
+ tag: z.ZodString;
1588
+ fallback: z.ZodOptional<z.ZodLiteral<"org">>;
1589
+ }, z.core.$strict>;
1590
+ windows: z.ZodArray<z.ZodObject<{
1591
+ days: z.ZodArray<z.ZodEnum<{
1592
+ mon: "mon";
1593
+ tue: "tue";
1594
+ wed: "wed";
1595
+ thu: "thu";
1596
+ fri: "fri";
1597
+ sat: "sat";
1598
+ sun: "sun";
1599
+ }>>;
1600
+ start: z.ZodString;
1601
+ end: z.ZodString;
1602
+ }, z.core.$strict>>;
1603
+ }, z.core.$strict>, z.ZodObject<{
1604
+ kind: z.ZodLiteral<"requireSubject">;
1605
+ subjectType: z.ZodString;
1606
+ idSystem: z.ZodOptional<z.ZodString>;
1607
+ }, z.core.$strict>, z.ZodObject<{
1608
+ kind: z.ZodLiteral<"signal">;
1609
+ key: z.ZodString;
1610
+ args: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1611
+ from: z.ZodLiteral<"enduserId">;
1612
+ }, z.core.$strict>, z.ZodObject<{
1613
+ from: z.ZodLiteral<"enduserTag">;
1614
+ tag: z.ZodString;
1615
+ }, z.core.$strict>, z.ZodObject<{
1616
+ from: z.ZodLiteral<"toolName">;
1617
+ }, z.core.$strict>, z.ZodObject<{
1618
+ from: z.ZodLiteral<"toolTag">;
1619
+ tag: z.ZodString;
1620
+ }, z.core.$strict>, z.ZodObject<{
1621
+ from: z.ZodLiteral<"toolArg">;
1622
+ path: z.ZodString;
1623
+ }, z.core.$strict>, z.ZodObject<{
1624
+ from: z.ZodLiteral<"subject">;
1625
+ subjectType: z.ZodString;
1626
+ role: z.ZodOptional<z.ZodString>;
1627
+ field: z.ZodOptional<z.ZodEnum<{
1628
+ idSystem: "idSystem";
1629
+ id: "id";
1630
+ }>>;
1631
+ }, z.core.$strict>, z.ZodObject<{
1632
+ from: z.ZodLiteral<"const">;
1633
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1634
+ }, z.core.$strict>], "from">>;
1635
+ op: z.ZodEnum<{
1636
+ in: "in";
1637
+ gt: "gt";
1638
+ gte: "gte";
1639
+ lt: "lt";
1640
+ lte: "lte";
1641
+ eq: "eq";
1642
+ neq: "neq";
1643
+ nin: "nin";
1644
+ }>;
1645
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1646
+ onMissing: z.ZodOptional<z.ZodEnum<{
1647
+ allow: "allow";
1648
+ block: "block";
1649
+ hitl: "hitl";
1650
+ }>>;
1651
+ }, z.core.$strict>]>>;
1652
+ }, z.core.$strict>, z.ZodObject<{
1653
+ kind: z.ZodLiteral<"not">;
1654
+ not: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1655
+ kind: z.ZodLiteral<"toolName">;
1656
+ op: z.ZodEnum<{
1657
+ eq: "eq";
1658
+ neq: "neq";
1659
+ contains: "contains";
1660
+ startsWith: "startsWith";
1661
+ endsWith: "endsWith";
1662
+ glob: "glob";
1663
+ }>;
1664
+ value: z.ZodString;
1665
+ }, z.core.$strict>, z.ZodObject<{
1666
+ kind: z.ZodLiteral<"toolName">;
1667
+ op: z.ZodLiteral<"in">;
1668
+ value: z.ZodArray<z.ZodString>;
1669
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1670
+ kind: z.ZodLiteral<"toolTag">;
1671
+ op: z.ZodLiteral<"has">;
1672
+ tag: z.ZodString;
1673
+ }, z.core.$strict>, z.ZodObject<{
1674
+ kind: z.ZodLiteral<"toolTag">;
1675
+ op: z.ZodLiteral<"anyOf">;
1676
+ tags: z.ZodArray<z.ZodString>;
1677
+ }, z.core.$strict>, z.ZodObject<{
1678
+ kind: z.ZodLiteral<"toolTag">;
1679
+ op: z.ZodLiteral<"allOf">;
1680
+ tags: z.ZodArray<z.ZodString>;
1681
+ }, z.core.$strict>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1682
+ kind: z.ZodLiteral<"toolArg">;
1683
+ type: z.ZodLiteral<"string">;
1684
+ op: z.ZodEnum<{
1685
+ in: "in";
1686
+ eq: "eq";
1687
+ neq: "neq";
1688
+ contains: "contains";
1689
+ startsWith: "startsWith";
1690
+ endsWith: "endsWith";
1691
+ }>;
1692
+ path: z.ZodString;
1693
+ value: z.ZodString;
1694
+ }, z.core.$strip>, z.ZodObject<{
1695
+ kind: z.ZodLiteral<"toolArg">;
1696
+ type: z.ZodLiteral<"number">;
1697
+ op: z.ZodEnum<{
1698
+ gt: "gt";
1699
+ gte: "gte";
1700
+ lt: "lt";
1701
+ lte: "lte";
1702
+ eq: "eq";
1703
+ neq: "neq";
1704
+ }>;
1705
+ path: z.ZodString;
1706
+ value: z.ZodNumber;
1707
+ }, z.core.$strip>, z.ZodObject<{
1708
+ kind: z.ZodLiteral<"toolArg">;
1709
+ type: z.ZodLiteral<"boolean">;
1710
+ op: z.ZodLiteral<"eq">;
1711
+ path: z.ZodString;
1712
+ value: z.ZodBoolean;
1713
+ }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1714
+ kind: z.ZodLiteral<"enduserTag">;
1715
+ op: z.ZodLiteral<"has">;
1716
+ tag: z.ZodString;
1717
+ }, z.core.$strict>, z.ZodObject<{
1718
+ kind: z.ZodLiteral<"enduserTag">;
1719
+ op: z.ZodLiteral<"hasValue">;
1720
+ tag: z.ZodString;
1721
+ value: z.ZodString;
1722
+ }, z.core.$strict>, z.ZodObject<{
1723
+ kind: z.ZodLiteral<"enduserTag">;
1724
+ op: z.ZodLiteral<"hasValueAny">;
1725
+ tag: z.ZodString;
1726
+ values: z.ZodArray<z.ZodString>;
1727
+ }, z.core.$strict>], "op">, z.ZodObject<{
1728
+ kind: z.ZodLiteral<"executionTime">;
1729
+ scope: z.ZodEnum<{
1730
+ tool: "tool";
1731
+ total: "total";
1732
+ }>;
1733
+ op: z.ZodEnum<{
1734
+ gt: "gt";
1735
+ gte: "gte";
1736
+ lt: "lt";
1737
+ lte: "lte";
1738
+ eq: "eq";
1739
+ neq: "neq";
1740
+ }>;
1741
+ ms: z.ZodNumber;
1742
+ }, z.core.$strict>, z.ZodObject<{
1743
+ kind: z.ZodLiteral<"sequence">;
1744
+ mustHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
1745
+ mustNotHaveCalled: z.ZodOptional<z.ZodArray<z.ZodString>>;
1746
+ }, z.core.$strict>, z.ZodObject<{
1747
+ kind: z.ZodLiteral<"maxCalls">;
1748
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
1749
+ by: z.ZodLiteral<"toolName">;
1750
+ patterns: z.ZodArray<z.ZodString>;
1751
+ }, z.core.$strict>, z.ZodObject<{
1752
+ by: z.ZodLiteral<"toolTag">;
1753
+ tags: z.ZodArray<z.ZodString>;
1754
+ }, z.core.$strict>], "by">;
1755
+ max: z.ZodNumber;
1756
+ }, z.core.$strict>, z.ZodObject<{
1757
+ kind: z.ZodLiteral<"custom">;
1758
+ name: z.ZodString;
1759
+ args: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
1760
+ }, z.core.$strict>, z.ZodObject<{
1761
+ kind: z.ZodLiteral<"metricWindow">;
1762
+ scope: z.ZodEnum<{
1763
+ agent: "agent";
1764
+ agent_user: "agent_user";
1765
+ }>;
1766
+ metric: z.ZodDiscriminatedUnion<[z.ZodObject<{
1767
+ kind: z.ZodLiteral<"inbuilt">;
1768
+ key: z.ZodEnum<{
1769
+ bytes_in: "bytes_in";
1770
+ bytes_out: "bytes_out";
1771
+ duration_ms: "duration_ms";
1772
+ records_in: "records_in";
1773
+ records_out: "records_out";
1774
+ llm_tokens_in: "llm_tokens_in";
1775
+ llm_tokens_out: "llm_tokens_out";
1776
+ llm_cost_usd: "llm_cost_usd";
1777
+ }>;
1778
+ }, z.core.$strict>, z.ZodObject<{
1779
+ kind: z.ZodLiteral<"custom">;
1780
+ key: z.ZodString;
1781
+ }, z.core.$strict>], "kind">;
1782
+ aggregate: z.ZodEnum<{
1783
+ sum: "sum";
1784
+ avg: "avg";
1785
+ max: "max";
1786
+ min: "min";
1787
+ count: "count";
1788
+ }>;
1789
+ windowSeconds: z.ZodNumber;
1790
+ filter: z.ZodOptional<z.ZodObject<{
1791
+ toolName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1792
+ toolTag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1793
+ }, z.core.$strict>>;
1794
+ op: z.ZodEnum<{
1795
+ gt: "gt";
1796
+ gte: "gte";
1797
+ lt: "lt";
1798
+ lte: "lte";
1799
+ eq: "eq";
1800
+ neq: "neq";
1801
+ }>;
1802
+ value: z.ZodNumber;
1803
+ onMissing: z.ZodOptional<z.ZodEnum<{
1804
+ allow: "allow";
1805
+ block: "block";
1806
+ hitl: "hitl";
1807
+ }>>;
1808
+ }, z.core.$strict>, z.ZodObject<{
1809
+ kind: z.ZodLiteral<"timeGate">;
1810
+ timezone: z.ZodObject<{
1811
+ source: z.ZodLiteral<"enduserTag">;
1812
+ tag: z.ZodString;
1813
+ fallback: z.ZodOptional<z.ZodLiteral<"org">>;
1814
+ }, z.core.$strict>;
1815
+ windows: z.ZodArray<z.ZodObject<{
1816
+ days: z.ZodArray<z.ZodEnum<{
1817
+ mon: "mon";
1818
+ tue: "tue";
1819
+ wed: "wed";
1820
+ thu: "thu";
1821
+ fri: "fri";
1822
+ sat: "sat";
1823
+ sun: "sun";
1824
+ }>>;
1825
+ start: z.ZodString;
1826
+ end: z.ZodString;
1827
+ }, z.core.$strict>>;
1828
+ }, z.core.$strict>, z.ZodObject<{
1829
+ kind: z.ZodLiteral<"requireSubject">;
1830
+ subjectType: z.ZodString;
1831
+ idSystem: z.ZodOptional<z.ZodString>;
1832
+ }, z.core.$strict>, z.ZodObject<{
1833
+ kind: z.ZodLiteral<"signal">;
1834
+ key: z.ZodString;
1835
+ args: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1836
+ from: z.ZodLiteral<"enduserId">;
1837
+ }, z.core.$strict>, z.ZodObject<{
1838
+ from: z.ZodLiteral<"enduserTag">;
1839
+ tag: z.ZodString;
1840
+ }, z.core.$strict>, z.ZodObject<{
1841
+ from: z.ZodLiteral<"toolName">;
1842
+ }, z.core.$strict>, z.ZodObject<{
1843
+ from: z.ZodLiteral<"toolTag">;
1844
+ tag: z.ZodString;
1845
+ }, z.core.$strict>, z.ZodObject<{
1846
+ from: z.ZodLiteral<"toolArg">;
1847
+ path: z.ZodString;
1848
+ }, z.core.$strict>, z.ZodObject<{
1849
+ from: z.ZodLiteral<"subject">;
1850
+ subjectType: z.ZodString;
1851
+ role: z.ZodOptional<z.ZodString>;
1852
+ field: z.ZodOptional<z.ZodEnum<{
1853
+ idSystem: "idSystem";
1854
+ id: "id";
1855
+ }>>;
1856
+ }, z.core.$strict>, z.ZodObject<{
1857
+ from: z.ZodLiteral<"const">;
1858
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1859
+ }, z.core.$strict>], "from">>;
1860
+ op: z.ZodEnum<{
1861
+ in: "in";
1862
+ gt: "gt";
1863
+ gte: "gte";
1864
+ lt: "lt";
1865
+ lte: "lte";
1866
+ eq: "eq";
1867
+ neq: "neq";
1868
+ nin: "nin";
1869
+ }>;
1870
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1871
+ onMissing: z.ZodOptional<z.ZodEnum<{
1872
+ allow: "allow";
1873
+ block: "block";
1874
+ hitl: "hitl";
1875
+ }>>;
1876
+ }, z.core.$strict>]>;
1877
+ }, z.core.$strict>]>;
1878
+ priority: z.ZodNumber;
1879
+ }, z.core.$strict>;