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

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