micro-contracts 0.15.2 → 0.15.3

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.
@@ -7,20 +7,24 @@ import { z } from "zod";
7
7
  export declare const OpenapiAuditRequestSchema: z.ZodObject<{
8
8
  task_id: z.ZodString;
9
9
  context: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- task_id: string;
12
- context: string;
13
- }, {
14
- task_id: string;
15
- context: string;
16
- }>;
10
+ }, z.core.$strip>;
17
11
  export type OpenapiAuditRequest = z.infer<typeof OpenapiAuditRequestSchema>;
18
12
  export declare const OpenapiAuditResultSchema: z.ZodObject<{
19
13
  summary: z.ZodString;
20
- riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
14
+ riskLevel: z.ZodEnum<{
15
+ low: "low";
16
+ medium: "medium";
17
+ high: "high";
18
+ critical: "critical";
19
+ }>;
21
20
  findings: z.ZodArray<z.ZodObject<{
22
21
  id: z.ZodOptional<z.ZodString>;
23
- severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
22
+ severity: z.ZodEnum<{
23
+ critical: "critical";
24
+ warning: "warning";
25
+ error: "error";
26
+ info: "info";
27
+ }>;
24
28
  category: z.ZodString;
25
29
  target: z.ZodOptional<z.ZodString>;
26
30
  location: z.ZodOptional<z.ZodString>;
@@ -28,74 +32,35 @@ export declare const OpenapiAuditResultSchema: z.ZodObject<{
28
32
  recommendation: z.ZodOptional<z.ZodString>;
29
33
  confidence: z.ZodOptional<z.ZodNumber>;
30
34
  evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
- kind: z.ZodOptional<z.ZodEnum<["file", "command", "schema", "diff", "stdout", "stderr", "text"]>>;
35
+ kind: z.ZodOptional<z.ZodEnum<{
36
+ text: "text";
37
+ schema: "schema";
38
+ file: "file";
39
+ command: "command";
40
+ stdout: "stdout";
41
+ stderr: "stderr";
42
+ diff: "diff";
43
+ }>>;
32
44
  target: z.ZodOptional<z.ZodString>;
33
45
  location: z.ZodOptional<z.ZodString>;
34
46
  excerpt: z.ZodOptional<z.ZodString>;
35
- }, "strip", z.ZodTypeAny, {
36
- target?: string | undefined;
37
- location?: string | undefined;
38
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
39
- excerpt?: string | undefined;
40
- }, {
41
- target?: string | undefined;
42
- location?: string | undefined;
43
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
44
- excerpt?: string | undefined;
45
- }>, "many">>;
47
+ }, z.core.$strip>>>;
46
48
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
47
- }, "strip", z.ZodTypeAny, {
48
- message: string;
49
- severity: "critical" | "warning" | "error" | "info";
50
- category: string;
51
- target?: string | undefined;
52
- details?: Record<string, unknown> | undefined;
53
- id?: string | undefined;
54
- location?: string | undefined;
55
- recommendation?: string | undefined;
56
- confidence?: number | undefined;
57
- evidence?: {
58
- target?: string | undefined;
59
- location?: string | undefined;
60
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
61
- excerpt?: string | undefined;
62
- }[] | undefined;
63
- }, {
64
- message: string;
65
- severity: "critical" | "warning" | "error" | "info";
66
- category: string;
67
- target?: string | undefined;
68
- details?: Record<string, unknown> | undefined;
69
- id?: string | undefined;
70
- location?: string | undefined;
71
- recommendation?: string | undefined;
72
- confidence?: number | undefined;
73
- evidence?: {
74
- target?: string | undefined;
75
- location?: string | undefined;
76
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
77
- excerpt?: string | undefined;
78
- }[] | undefined;
79
- }>, "many">;
49
+ }, z.core.$strip>>;
80
50
  recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
- kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
51
+ kind: z.ZodEnum<{
52
+ ignore: "ignore";
53
+ run_command: "run_command";
54
+ edit_file: "edit_file";
55
+ review: "review";
56
+ confirm: "confirm";
57
+ block: "block";
58
+ }>;
82
59
  title: z.ZodString;
83
60
  command: z.ZodOptional<z.ZodString>;
84
61
  target: z.ZodOptional<z.ZodString>;
85
62
  rationale: z.ZodOptional<z.ZodString>;
86
- }, "strip", z.ZodTypeAny, {
87
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
88
- title: string;
89
- target?: string | undefined;
90
- command?: string | undefined;
91
- rationale?: string | undefined;
92
- }, {
93
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
94
- title: string;
95
- target?: string | undefined;
96
- command?: string | undefined;
97
- rationale?: string | undefined;
98
- }>, "many">>;
63
+ }, z.core.$strip>>>;
99
64
  metadata: z.ZodOptional<z.ZodObject<{
100
65
  tool: z.ZodOptional<z.ZodString>;
101
66
  command: z.ZodOptional<z.ZodString>;
@@ -103,157 +68,52 @@ export declare const OpenapiAuditResultSchema: z.ZodObject<{
103
68
  generatedAt: z.ZodOptional<z.ZodString>;
104
69
  adapter: z.ZodOptional<z.ZodString>;
105
70
  model: z.ZodOptional<z.ZodString>;
106
- }, "strip", z.ZodTypeAny, {
107
- adapter?: string | undefined;
108
- model?: string | undefined;
109
- command?: string | undefined;
110
- tool?: string | undefined;
111
- version?: string | undefined;
112
- generatedAt?: string | undefined;
113
- }, {
114
- adapter?: string | undefined;
115
- model?: string | undefined;
116
- command?: string | undefined;
117
- tool?: string | undefined;
118
- version?: string | undefined;
119
- generatedAt?: string | undefined;
120
- }>>;
121
- }, "strip", z.ZodTypeAny, {
122
- summary: string;
123
- riskLevel: "low" | "medium" | "high" | "critical";
124
- findings: {
125
- message: string;
126
- severity: "critical" | "warning" | "error" | "info";
127
- category: string;
128
- target?: string | undefined;
129
- details?: Record<string, unknown> | undefined;
130
- id?: string | undefined;
131
- location?: string | undefined;
132
- recommendation?: string | undefined;
133
- confidence?: number | undefined;
134
- evidence?: {
135
- target?: string | undefined;
136
- location?: string | undefined;
137
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
138
- excerpt?: string | undefined;
139
- }[] | undefined;
140
- }[];
141
- recommendedActions?: {
142
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
143
- title: string;
144
- target?: string | undefined;
145
- command?: string | undefined;
146
- rationale?: string | undefined;
147
- }[] | undefined;
148
- metadata?: {
149
- adapter?: string | undefined;
150
- model?: string | undefined;
151
- command?: string | undefined;
152
- tool?: string | undefined;
153
- version?: string | undefined;
154
- generatedAt?: string | undefined;
155
- } | undefined;
156
- }, {
157
- summary: string;
158
- riskLevel: "low" | "medium" | "high" | "critical";
159
- findings: {
160
- message: string;
161
- severity: "critical" | "warning" | "error" | "info";
162
- category: string;
163
- target?: string | undefined;
164
- details?: Record<string, unknown> | undefined;
165
- id?: string | undefined;
166
- location?: string | undefined;
167
- recommendation?: string | undefined;
168
- confidence?: number | undefined;
169
- evidence?: {
170
- target?: string | undefined;
171
- location?: string | undefined;
172
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
173
- excerpt?: string | undefined;
174
- }[] | undefined;
175
- }[];
176
- recommendedActions?: {
177
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
178
- title: string;
179
- target?: string | undefined;
180
- command?: string | undefined;
181
- rationale?: string | undefined;
182
- }[] | undefined;
183
- metadata?: {
184
- adapter?: string | undefined;
185
- model?: string | undefined;
186
- command?: string | undefined;
187
- tool?: string | undefined;
188
- version?: string | undefined;
189
- generatedAt?: string | undefined;
190
- } | undefined;
191
- }>;
71
+ }, z.core.$strip>>;
72
+ }, z.core.$strip>;
192
73
  export type OpenapiAuditResult = z.infer<typeof OpenapiAuditResultSchema>;
193
74
  export declare const PublishedReviewResultSchema: z.ZodObject<{
194
75
  summary: z.ZodString;
195
- riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
76
+ riskLevel: z.ZodEnum<{
77
+ low: "low";
78
+ medium: "medium";
79
+ high: "high";
80
+ critical: "critical";
81
+ }>;
196
82
  findings: z.ZodArray<z.ZodObject<{
197
- severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
83
+ severity: z.ZodEnum<{
84
+ critical: "critical";
85
+ warning: "warning";
86
+ error: "error";
87
+ info: "info";
88
+ }>;
198
89
  category: z.ZodString;
199
90
  message: z.ZodString;
200
91
  recommendation: z.ZodOptional<z.ZodString>;
201
- }, "strip", z.ZodTypeAny, {
202
- message: string;
203
- severity: "critical" | "warning" | "error" | "info";
204
- category: string;
205
- recommendation?: string | undefined;
206
- }, {
207
- message: string;
208
- severity: "critical" | "warning" | "error" | "info";
209
- category: string;
210
- recommendation?: string | undefined;
211
- }>, "many">;
92
+ }, z.core.$strip>>;
212
93
  publishedEndpoints: z.ZodArray<z.ZodObject<{
213
94
  operationId: z.ZodString;
214
95
  path: z.ZodString;
215
96
  method: z.ZodString;
216
- }, "strip", z.ZodTypeAny, {
217
- path: string;
218
- operationId: string;
219
- method: string;
220
- }, {
221
- path: string;
222
- operationId: string;
223
- method: string;
224
- }>, "many">;
97
+ }, z.core.$strip>>;
225
98
  leakedInternalTypes: z.ZodArray<z.ZodObject<{
226
99
  schemaName: z.ZodString;
227
100
  referencedBy: z.ZodString;
228
101
  reason: z.ZodString;
229
- }, "strip", z.ZodTypeAny, {
230
- schemaName: string;
231
- reason: string;
232
- referencedBy: string;
233
- }, {
234
- schemaName: string;
235
- reason: string;
236
- referencedBy: string;
237
- }>, "many">;
102
+ }, z.core.$strip>>;
238
103
  recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
239
- kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
104
+ kind: z.ZodEnum<{
105
+ ignore: "ignore";
106
+ run_command: "run_command";
107
+ edit_file: "edit_file";
108
+ review: "review";
109
+ confirm: "confirm";
110
+ block: "block";
111
+ }>;
240
112
  title: z.ZodString;
241
113
  command: z.ZodOptional<z.ZodString>;
242
114
  target: z.ZodOptional<z.ZodString>;
243
115
  rationale: z.ZodOptional<z.ZodString>;
244
- }, "strip", z.ZodTypeAny, {
245
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
246
- title: string;
247
- target?: string | undefined;
248
- command?: string | undefined;
249
- rationale?: string | undefined;
250
- }, {
251
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
252
- title: string;
253
- target?: string | undefined;
254
- command?: string | undefined;
255
- rationale?: string | undefined;
256
- }>, "many">>;
116
+ }, z.core.$strip>>>;
257
117
  metadata: z.ZodOptional<z.ZodObject<{
258
118
  tool: z.ZodOptional<z.ZodString>;
259
119
  command: z.ZodOptional<z.ZodString>;
@@ -261,145 +121,54 @@ export declare const PublishedReviewResultSchema: z.ZodObject<{
261
121
  generatedAt: z.ZodOptional<z.ZodString>;
262
122
  adapter: z.ZodOptional<z.ZodString>;
263
123
  model: z.ZodOptional<z.ZodString>;
264
- }, "strip", z.ZodTypeAny, {
265
- adapter?: string | undefined;
266
- model?: string | undefined;
267
- command?: string | undefined;
268
- tool?: string | undefined;
269
- version?: string | undefined;
270
- generatedAt?: string | undefined;
271
- }, {
272
- adapter?: string | undefined;
273
- model?: string | undefined;
274
- command?: string | undefined;
275
- tool?: string | undefined;
276
- version?: string | undefined;
277
- generatedAt?: string | undefined;
278
- }>>;
279
- }, "strip", z.ZodTypeAny, {
280
- summary: string;
281
- riskLevel: "low" | "medium" | "high" | "critical";
282
- findings: {
283
- message: string;
284
- severity: "critical" | "warning" | "error" | "info";
285
- category: string;
286
- recommendation?: string | undefined;
287
- }[];
288
- publishedEndpoints: {
289
- path: string;
290
- operationId: string;
291
- method: string;
292
- }[];
293
- leakedInternalTypes: {
294
- schemaName: string;
295
- reason: string;
296
- referencedBy: string;
297
- }[];
298
- recommendedActions?: {
299
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
300
- title: string;
301
- target?: string | undefined;
302
- command?: string | undefined;
303
- rationale?: string | undefined;
304
- }[] | undefined;
305
- metadata?: {
306
- adapter?: string | undefined;
307
- model?: string | undefined;
308
- command?: string | undefined;
309
- tool?: string | undefined;
310
- version?: string | undefined;
311
- generatedAt?: string | undefined;
312
- } | undefined;
313
- }, {
314
- summary: string;
315
- riskLevel: "low" | "medium" | "high" | "critical";
316
- findings: {
317
- message: string;
318
- severity: "critical" | "warning" | "error" | "info";
319
- category: string;
320
- recommendation?: string | undefined;
321
- }[];
322
- publishedEndpoints: {
323
- path: string;
324
- operationId: string;
325
- method: string;
326
- }[];
327
- leakedInternalTypes: {
328
- schemaName: string;
329
- reason: string;
330
- referencedBy: string;
331
- }[];
332
- recommendedActions?: {
333
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
334
- title: string;
335
- target?: string | undefined;
336
- command?: string | undefined;
337
- rationale?: string | undefined;
338
- }[] | undefined;
339
- metadata?: {
340
- adapter?: string | undefined;
341
- model?: string | undefined;
342
- command?: string | undefined;
343
- tool?: string | undefined;
344
- version?: string | undefined;
345
- generatedAt?: string | undefined;
346
- } | undefined;
347
- }>;
124
+ }, z.core.$strip>>;
125
+ }, z.core.$strip>;
348
126
  export type PublishedReviewResult = z.infer<typeof PublishedReviewResultSchema>;
349
127
  export declare const OverlayProposalResultSchema: z.ZodObject<{
350
128
  summary: z.ZodString;
351
- riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
129
+ riskLevel: z.ZodEnum<{
130
+ low: "low";
131
+ medium: "medium";
132
+ high: "high";
133
+ critical: "critical";
134
+ }>;
352
135
  findings: z.ZodArray<z.ZodObject<{
353
- severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
136
+ severity: z.ZodEnum<{
137
+ critical: "critical";
138
+ warning: "warning";
139
+ error: "error";
140
+ info: "info";
141
+ }>;
354
142
  category: z.ZodString;
355
143
  message: z.ZodString;
356
144
  recommendation: z.ZodOptional<z.ZodString>;
357
- }, "strip", z.ZodTypeAny, {
358
- message: string;
359
- severity: "critical" | "warning" | "error" | "info";
360
- category: string;
361
- recommendation?: string | undefined;
362
- }, {
363
- message: string;
364
- severity: "critical" | "warning" | "error" | "info";
365
- category: string;
366
- recommendation?: string | undefined;
367
- }>, "many">;
145
+ }, z.core.$strip>>;
368
146
  overlayCandidates: z.ZodArray<z.ZodObject<{
369
147
  endpoint: z.ZodString;
370
- overlayType: z.ZodEnum<["auth", "tenancy", "rateLimit", "auditLog", "custom"]>;
148
+ overlayType: z.ZodEnum<{
149
+ custom: "custom";
150
+ auth: "auth";
151
+ tenancy: "tenancy";
152
+ rateLimit: "rateLimit";
153
+ auditLog: "auditLog";
154
+ }>;
371
155
  rationale: z.ZodString;
372
156
  suggestedConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
373
- }, "strip", z.ZodTypeAny, {
374
- rationale: string;
375
- endpoint: string;
376
- overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
377
- suggestedConfig?: Record<string, unknown> | undefined;
378
- }, {
379
- rationale: string;
380
- endpoint: string;
381
- overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
382
- suggestedConfig?: Record<string, unknown> | undefined;
383
- }>, "many">;
157
+ }, z.core.$strip>>;
384
158
  recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
385
- kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
159
+ kind: z.ZodEnum<{
160
+ ignore: "ignore";
161
+ run_command: "run_command";
162
+ edit_file: "edit_file";
163
+ review: "review";
164
+ confirm: "confirm";
165
+ block: "block";
166
+ }>;
386
167
  title: z.ZodString;
387
168
  command: z.ZodOptional<z.ZodString>;
388
169
  target: z.ZodOptional<z.ZodString>;
389
170
  rationale: z.ZodOptional<z.ZodString>;
390
- }, "strip", z.ZodTypeAny, {
391
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
392
- title: string;
393
- target?: string | undefined;
394
- command?: string | undefined;
395
- rationale?: string | undefined;
396
- }, {
397
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
398
- title: string;
399
- target?: string | undefined;
400
- command?: string | undefined;
401
- rationale?: string | undefined;
402
- }>, "many">>;
171
+ }, z.core.$strip>>>;
403
172
  metadata: z.ZodOptional<z.ZodObject<{
404
173
  tool: z.ZodOptional<z.ZodString>;
405
174
  command: z.ZodOptional<z.ZodString>;
@@ -407,123 +176,44 @@ export declare const OverlayProposalResultSchema: z.ZodObject<{
407
176
  generatedAt: z.ZodOptional<z.ZodString>;
408
177
  adapter: z.ZodOptional<z.ZodString>;
409
178
  model: z.ZodOptional<z.ZodString>;
410
- }, "strip", z.ZodTypeAny, {
411
- adapter?: string | undefined;
412
- model?: string | undefined;
413
- command?: string | undefined;
414
- tool?: string | undefined;
415
- version?: string | undefined;
416
- generatedAt?: string | undefined;
417
- }, {
418
- adapter?: string | undefined;
419
- model?: string | undefined;
420
- command?: string | undefined;
421
- tool?: string | undefined;
422
- version?: string | undefined;
423
- generatedAt?: string | undefined;
424
- }>>;
425
- }, "strip", z.ZodTypeAny, {
426
- summary: string;
427
- riskLevel: "low" | "medium" | "high" | "critical";
428
- findings: {
429
- message: string;
430
- severity: "critical" | "warning" | "error" | "info";
431
- category: string;
432
- recommendation?: string | undefined;
433
- }[];
434
- overlayCandidates: {
435
- rationale: string;
436
- endpoint: string;
437
- overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
438
- suggestedConfig?: Record<string, unknown> | undefined;
439
- }[];
440
- recommendedActions?: {
441
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
442
- title: string;
443
- target?: string | undefined;
444
- command?: string | undefined;
445
- rationale?: string | undefined;
446
- }[] | undefined;
447
- metadata?: {
448
- adapter?: string | undefined;
449
- model?: string | undefined;
450
- command?: string | undefined;
451
- tool?: string | undefined;
452
- version?: string | undefined;
453
- generatedAt?: string | undefined;
454
- } | undefined;
455
- }, {
456
- summary: string;
457
- riskLevel: "low" | "medium" | "high" | "critical";
458
- findings: {
459
- message: string;
460
- severity: "critical" | "warning" | "error" | "info";
461
- category: string;
462
- recommendation?: string | undefined;
463
- }[];
464
- overlayCandidates: {
465
- rationale: string;
466
- endpoint: string;
467
- overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
468
- suggestedConfig?: Record<string, unknown> | undefined;
469
- }[];
470
- recommendedActions?: {
471
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
472
- title: string;
473
- target?: string | undefined;
474
- command?: string | undefined;
475
- rationale?: string | undefined;
476
- }[] | undefined;
477
- metadata?: {
478
- adapter?: string | undefined;
479
- model?: string | undefined;
480
- command?: string | undefined;
481
- tool?: string | undefined;
482
- version?: string | undefined;
483
- generatedAt?: string | undefined;
484
- } | undefined;
485
- }>;
179
+ }, z.core.$strip>>;
180
+ }, z.core.$strip>;
486
181
  export type OverlayProposalResult = z.infer<typeof OverlayProposalResultSchema>;
487
182
  export declare const GuardrailsAuditResultSchema: z.ZodObject<{
488
183
  summary: z.ZodString;
489
- riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
184
+ riskLevel: z.ZodEnum<{
185
+ low: "low";
186
+ medium: "medium";
187
+ high: "high";
188
+ critical: "critical";
189
+ }>;
490
190
  findings: z.ZodArray<z.ZodObject<{
491
- severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
191
+ severity: z.ZodEnum<{
192
+ critical: "critical";
193
+ warning: "warning";
194
+ error: "error";
195
+ info: "info";
196
+ }>;
492
197
  category: z.ZodString;
493
198
  message: z.ZodString;
494
199
  recommendation: z.ZodOptional<z.ZodString>;
495
- }, "strip", z.ZodTypeAny, {
496
- message: string;
497
- severity: "critical" | "warning" | "error" | "info";
498
- category: string;
499
- recommendation?: string | undefined;
500
- }, {
501
- message: string;
502
- severity: "critical" | "warning" | "error" | "info";
503
- category: string;
504
- recommendation?: string | undefined;
505
- }>, "many">;
506
- coveredPaths: z.ZodArray<z.ZodString, "many">;
507
- uncoveredPaths: z.ZodArray<z.ZodString, "many">;
200
+ }, z.core.$strip>>;
201
+ coveredPaths: z.ZodArray<z.ZodString>;
202
+ uncoveredPaths: z.ZodArray<z.ZodString>;
508
203
  recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
509
- kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
204
+ kind: z.ZodEnum<{
205
+ ignore: "ignore";
206
+ run_command: "run_command";
207
+ edit_file: "edit_file";
208
+ review: "review";
209
+ confirm: "confirm";
210
+ block: "block";
211
+ }>;
510
212
  title: z.ZodString;
511
213
  command: z.ZodOptional<z.ZodString>;
512
214
  target: z.ZodOptional<z.ZodString>;
513
215
  rationale: z.ZodOptional<z.ZodString>;
514
- }, "strip", z.ZodTypeAny, {
515
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
516
- title: string;
517
- target?: string | undefined;
518
- command?: string | undefined;
519
- rationale?: string | undefined;
520
- }, {
521
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
522
- title: string;
523
- target?: string | undefined;
524
- command?: string | undefined;
525
- rationale?: string | undefined;
526
- }>, "many">>;
216
+ }, z.core.$strip>>>;
527
217
  metadata: z.ZodOptional<z.ZodObject<{
528
218
  tool: z.ZodOptional<z.ZodString>;
529
219
  command: z.ZodOptional<z.ZodString>;
@@ -531,92 +221,30 @@ export declare const GuardrailsAuditResultSchema: z.ZodObject<{
531
221
  generatedAt: z.ZodOptional<z.ZodString>;
532
222
  adapter: z.ZodOptional<z.ZodString>;
533
223
  model: z.ZodOptional<z.ZodString>;
534
- }, "strip", z.ZodTypeAny, {
535
- adapter?: string | undefined;
536
- model?: string | undefined;
537
- command?: string | undefined;
538
- tool?: string | undefined;
539
- version?: string | undefined;
540
- generatedAt?: string | undefined;
541
- }, {
542
- adapter?: string | undefined;
543
- model?: string | undefined;
544
- command?: string | undefined;
545
- tool?: string | undefined;
546
- version?: string | undefined;
547
- generatedAt?: string | undefined;
548
- }>>;
549
- }, "strip", z.ZodTypeAny, {
550
- summary: string;
551
- riskLevel: "low" | "medium" | "high" | "critical";
552
- findings: {
553
- message: string;
554
- severity: "critical" | "warning" | "error" | "info";
555
- category: string;
556
- recommendation?: string | undefined;
557
- }[];
558
- coveredPaths: string[];
559
- uncoveredPaths: string[];
560
- recommendedActions?: {
561
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
562
- title: string;
563
- target?: string | undefined;
564
- command?: string | undefined;
565
- rationale?: string | undefined;
566
- }[] | undefined;
567
- metadata?: {
568
- adapter?: string | undefined;
569
- model?: string | undefined;
570
- command?: string | undefined;
571
- tool?: string | undefined;
572
- version?: string | undefined;
573
- generatedAt?: string | undefined;
574
- } | undefined;
575
- }, {
576
- summary: string;
577
- riskLevel: "low" | "medium" | "high" | "critical";
578
- findings: {
579
- message: string;
580
- severity: "critical" | "warning" | "error" | "info";
581
- category: string;
582
- recommendation?: string | undefined;
583
- }[];
584
- coveredPaths: string[];
585
- uncoveredPaths: string[];
586
- recommendedActions?: {
587
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
588
- title: string;
589
- target?: string | undefined;
590
- command?: string | undefined;
591
- rationale?: string | undefined;
592
- }[] | undefined;
593
- metadata?: {
594
- adapter?: string | undefined;
595
- model?: string | undefined;
596
- command?: string | undefined;
597
- tool?: string | undefined;
598
- version?: string | undefined;
599
- generatedAt?: string | undefined;
600
- } | undefined;
601
- }>;
224
+ }, z.core.$strip>>;
225
+ }, z.core.$strip>;
602
226
  export type GuardrailsAuditResult = z.infer<typeof GuardrailsAuditResultSchema>;
603
227
  export declare const handoffSchemas: {
604
228
  readonly "openapi-audit-request": z.ZodObject<{
605
229
  task_id: z.ZodString;
606
230
  context: z.ZodString;
607
- }, "strip", z.ZodTypeAny, {
608
- task_id: string;
609
- context: string;
610
- }, {
611
- task_id: string;
612
- context: string;
613
- }>;
231
+ }, z.core.$strip>;
614
232
  readonly "openapi-audit-result": z.ZodObject<{
615
233
  summary: z.ZodString;
616
- riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
234
+ riskLevel: z.ZodEnum<{
235
+ low: "low";
236
+ medium: "medium";
237
+ high: "high";
238
+ critical: "critical";
239
+ }>;
617
240
  findings: z.ZodArray<z.ZodObject<{
618
241
  id: z.ZodOptional<z.ZodString>;
619
- severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
242
+ severity: z.ZodEnum<{
243
+ critical: "critical";
244
+ warning: "warning";
245
+ error: "error";
246
+ info: "info";
247
+ }>;
620
248
  category: z.ZodString;
621
249
  target: z.ZodOptional<z.ZodString>;
622
250
  location: z.ZodOptional<z.ZodString>;
@@ -624,74 +252,35 @@ export declare const handoffSchemas: {
624
252
  recommendation: z.ZodOptional<z.ZodString>;
625
253
  confidence: z.ZodOptional<z.ZodNumber>;
626
254
  evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
627
- kind: z.ZodOptional<z.ZodEnum<["file", "command", "schema", "diff", "stdout", "stderr", "text"]>>;
255
+ kind: z.ZodOptional<z.ZodEnum<{
256
+ text: "text";
257
+ schema: "schema";
258
+ file: "file";
259
+ command: "command";
260
+ stdout: "stdout";
261
+ stderr: "stderr";
262
+ diff: "diff";
263
+ }>>;
628
264
  target: z.ZodOptional<z.ZodString>;
629
265
  location: z.ZodOptional<z.ZodString>;
630
266
  excerpt: z.ZodOptional<z.ZodString>;
631
- }, "strip", z.ZodTypeAny, {
632
- target?: string | undefined;
633
- location?: string | undefined;
634
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
635
- excerpt?: string | undefined;
636
- }, {
637
- target?: string | undefined;
638
- location?: string | undefined;
639
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
640
- excerpt?: string | undefined;
641
- }>, "many">>;
267
+ }, z.core.$strip>>>;
642
268
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
643
- }, "strip", z.ZodTypeAny, {
644
- message: string;
645
- severity: "critical" | "warning" | "error" | "info";
646
- category: string;
647
- target?: string | undefined;
648
- details?: Record<string, unknown> | undefined;
649
- id?: string | undefined;
650
- location?: string | undefined;
651
- recommendation?: string | undefined;
652
- confidence?: number | undefined;
653
- evidence?: {
654
- target?: string | undefined;
655
- location?: string | undefined;
656
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
657
- excerpt?: string | undefined;
658
- }[] | undefined;
659
- }, {
660
- message: string;
661
- severity: "critical" | "warning" | "error" | "info";
662
- category: string;
663
- target?: string | undefined;
664
- details?: Record<string, unknown> | undefined;
665
- id?: string | undefined;
666
- location?: string | undefined;
667
- recommendation?: string | undefined;
668
- confidence?: number | undefined;
669
- evidence?: {
670
- target?: string | undefined;
671
- location?: string | undefined;
672
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
673
- excerpt?: string | undefined;
674
- }[] | undefined;
675
- }>, "many">;
269
+ }, z.core.$strip>>;
676
270
  recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
677
- kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
271
+ kind: z.ZodEnum<{
272
+ ignore: "ignore";
273
+ run_command: "run_command";
274
+ edit_file: "edit_file";
275
+ review: "review";
276
+ confirm: "confirm";
277
+ block: "block";
278
+ }>;
678
279
  title: z.ZodString;
679
280
  command: z.ZodOptional<z.ZodString>;
680
281
  target: z.ZodOptional<z.ZodString>;
681
282
  rationale: z.ZodOptional<z.ZodString>;
682
- }, "strip", z.ZodTypeAny, {
683
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
684
- title: string;
685
- target?: string | undefined;
686
- command?: string | undefined;
687
- rationale?: string | undefined;
688
- }, {
689
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
690
- title: string;
691
- target?: string | undefined;
692
- command?: string | undefined;
693
- rationale?: string | undefined;
694
- }>, "many">>;
283
+ }, z.core.$strip>>>;
695
284
  metadata: z.ZodOptional<z.ZodObject<{
696
285
  tool: z.ZodOptional<z.ZodString>;
697
286
  command: z.ZodOptional<z.ZodString>;
@@ -699,156 +288,51 @@ export declare const handoffSchemas: {
699
288
  generatedAt: z.ZodOptional<z.ZodString>;
700
289
  adapter: z.ZodOptional<z.ZodString>;
701
290
  model: z.ZodOptional<z.ZodString>;
702
- }, "strip", z.ZodTypeAny, {
703
- adapter?: string | undefined;
704
- model?: string | undefined;
705
- command?: string | undefined;
706
- tool?: string | undefined;
707
- version?: string | undefined;
708
- generatedAt?: string | undefined;
709
- }, {
710
- adapter?: string | undefined;
711
- model?: string | undefined;
712
- command?: string | undefined;
713
- tool?: string | undefined;
714
- version?: string | undefined;
715
- generatedAt?: string | undefined;
716
- }>>;
717
- }, "strip", z.ZodTypeAny, {
718
- summary: string;
719
- riskLevel: "low" | "medium" | "high" | "critical";
720
- findings: {
721
- message: string;
722
- severity: "critical" | "warning" | "error" | "info";
723
- category: string;
724
- target?: string | undefined;
725
- details?: Record<string, unknown> | undefined;
726
- id?: string | undefined;
727
- location?: string | undefined;
728
- recommendation?: string | undefined;
729
- confidence?: number | undefined;
730
- evidence?: {
731
- target?: string | undefined;
732
- location?: string | undefined;
733
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
734
- excerpt?: string | undefined;
735
- }[] | undefined;
736
- }[];
737
- recommendedActions?: {
738
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
739
- title: string;
740
- target?: string | undefined;
741
- command?: string | undefined;
742
- rationale?: string | undefined;
743
- }[] | undefined;
744
- metadata?: {
745
- adapter?: string | undefined;
746
- model?: string | undefined;
747
- command?: string | undefined;
748
- tool?: string | undefined;
749
- version?: string | undefined;
750
- generatedAt?: string | undefined;
751
- } | undefined;
752
- }, {
753
- summary: string;
754
- riskLevel: "low" | "medium" | "high" | "critical";
755
- findings: {
756
- message: string;
757
- severity: "critical" | "warning" | "error" | "info";
758
- category: string;
759
- target?: string | undefined;
760
- details?: Record<string, unknown> | undefined;
761
- id?: string | undefined;
762
- location?: string | undefined;
763
- recommendation?: string | undefined;
764
- confidence?: number | undefined;
765
- evidence?: {
766
- target?: string | undefined;
767
- location?: string | undefined;
768
- kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
769
- excerpt?: string | undefined;
770
- }[] | undefined;
771
- }[];
772
- recommendedActions?: {
773
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
774
- title: string;
775
- target?: string | undefined;
776
- command?: string | undefined;
777
- rationale?: string | undefined;
778
- }[] | undefined;
779
- metadata?: {
780
- adapter?: string | undefined;
781
- model?: string | undefined;
782
- command?: string | undefined;
783
- tool?: string | undefined;
784
- version?: string | undefined;
785
- generatedAt?: string | undefined;
786
- } | undefined;
787
- }>;
291
+ }, z.core.$strip>>;
292
+ }, z.core.$strip>;
788
293
  readonly "published-review-result": z.ZodObject<{
789
294
  summary: z.ZodString;
790
- riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
295
+ riskLevel: z.ZodEnum<{
296
+ low: "low";
297
+ medium: "medium";
298
+ high: "high";
299
+ critical: "critical";
300
+ }>;
791
301
  findings: z.ZodArray<z.ZodObject<{
792
- severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
302
+ severity: z.ZodEnum<{
303
+ critical: "critical";
304
+ warning: "warning";
305
+ error: "error";
306
+ info: "info";
307
+ }>;
793
308
  category: z.ZodString;
794
309
  message: z.ZodString;
795
310
  recommendation: z.ZodOptional<z.ZodString>;
796
- }, "strip", z.ZodTypeAny, {
797
- message: string;
798
- severity: "critical" | "warning" | "error" | "info";
799
- category: string;
800
- recommendation?: string | undefined;
801
- }, {
802
- message: string;
803
- severity: "critical" | "warning" | "error" | "info";
804
- category: string;
805
- recommendation?: string | undefined;
806
- }>, "many">;
311
+ }, z.core.$strip>>;
807
312
  publishedEndpoints: z.ZodArray<z.ZodObject<{
808
313
  operationId: z.ZodString;
809
314
  path: z.ZodString;
810
315
  method: z.ZodString;
811
- }, "strip", z.ZodTypeAny, {
812
- path: string;
813
- operationId: string;
814
- method: string;
815
- }, {
816
- path: string;
817
- operationId: string;
818
- method: string;
819
- }>, "many">;
316
+ }, z.core.$strip>>;
820
317
  leakedInternalTypes: z.ZodArray<z.ZodObject<{
821
318
  schemaName: z.ZodString;
822
319
  referencedBy: z.ZodString;
823
320
  reason: z.ZodString;
824
- }, "strip", z.ZodTypeAny, {
825
- schemaName: string;
826
- reason: string;
827
- referencedBy: string;
828
- }, {
829
- schemaName: string;
830
- reason: string;
831
- referencedBy: string;
832
- }>, "many">;
321
+ }, z.core.$strip>>;
833
322
  recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
834
- kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
323
+ kind: z.ZodEnum<{
324
+ ignore: "ignore";
325
+ run_command: "run_command";
326
+ edit_file: "edit_file";
327
+ review: "review";
328
+ confirm: "confirm";
329
+ block: "block";
330
+ }>;
835
331
  title: z.ZodString;
836
332
  command: z.ZodOptional<z.ZodString>;
837
333
  target: z.ZodOptional<z.ZodString>;
838
334
  rationale: z.ZodOptional<z.ZodString>;
839
- }, "strip", z.ZodTypeAny, {
840
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
841
- title: string;
842
- target?: string | undefined;
843
- command?: string | undefined;
844
- rationale?: string | undefined;
845
- }, {
846
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
847
- title: string;
848
- target?: string | undefined;
849
- command?: string | undefined;
850
- rationale?: string | undefined;
851
- }>, "many">>;
335
+ }, z.core.$strip>>>;
852
336
  metadata: z.ZodOptional<z.ZodObject<{
853
337
  tool: z.ZodOptional<z.ZodString>;
854
338
  command: z.ZodOptional<z.ZodString>;
@@ -856,144 +340,53 @@ export declare const handoffSchemas: {
856
340
  generatedAt: z.ZodOptional<z.ZodString>;
857
341
  adapter: z.ZodOptional<z.ZodString>;
858
342
  model: z.ZodOptional<z.ZodString>;
859
- }, "strip", z.ZodTypeAny, {
860
- adapter?: string | undefined;
861
- model?: string | undefined;
862
- command?: string | undefined;
863
- tool?: string | undefined;
864
- version?: string | undefined;
865
- generatedAt?: string | undefined;
866
- }, {
867
- adapter?: string | undefined;
868
- model?: string | undefined;
869
- command?: string | undefined;
870
- tool?: string | undefined;
871
- version?: string | undefined;
872
- generatedAt?: string | undefined;
873
- }>>;
874
- }, "strip", z.ZodTypeAny, {
875
- summary: string;
876
- riskLevel: "low" | "medium" | "high" | "critical";
877
- findings: {
878
- message: string;
879
- severity: "critical" | "warning" | "error" | "info";
880
- category: string;
881
- recommendation?: string | undefined;
882
- }[];
883
- publishedEndpoints: {
884
- path: string;
885
- operationId: string;
886
- method: string;
887
- }[];
888
- leakedInternalTypes: {
889
- schemaName: string;
890
- reason: string;
891
- referencedBy: string;
892
- }[];
893
- recommendedActions?: {
894
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
895
- title: string;
896
- target?: string | undefined;
897
- command?: string | undefined;
898
- rationale?: string | undefined;
899
- }[] | undefined;
900
- metadata?: {
901
- adapter?: string | undefined;
902
- model?: string | undefined;
903
- command?: string | undefined;
904
- tool?: string | undefined;
905
- version?: string | undefined;
906
- generatedAt?: string | undefined;
907
- } | undefined;
908
- }, {
909
- summary: string;
910
- riskLevel: "low" | "medium" | "high" | "critical";
911
- findings: {
912
- message: string;
913
- severity: "critical" | "warning" | "error" | "info";
914
- category: string;
915
- recommendation?: string | undefined;
916
- }[];
917
- publishedEndpoints: {
918
- path: string;
919
- operationId: string;
920
- method: string;
921
- }[];
922
- leakedInternalTypes: {
923
- schemaName: string;
924
- reason: string;
925
- referencedBy: string;
926
- }[];
927
- recommendedActions?: {
928
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
929
- title: string;
930
- target?: string | undefined;
931
- command?: string | undefined;
932
- rationale?: string | undefined;
933
- }[] | undefined;
934
- metadata?: {
935
- adapter?: string | undefined;
936
- model?: string | undefined;
937
- command?: string | undefined;
938
- tool?: string | undefined;
939
- version?: string | undefined;
940
- generatedAt?: string | undefined;
941
- } | undefined;
942
- }>;
343
+ }, z.core.$strip>>;
344
+ }, z.core.$strip>;
943
345
  readonly "overlay-proposal-result": z.ZodObject<{
944
346
  summary: z.ZodString;
945
- riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
347
+ riskLevel: z.ZodEnum<{
348
+ low: "low";
349
+ medium: "medium";
350
+ high: "high";
351
+ critical: "critical";
352
+ }>;
946
353
  findings: z.ZodArray<z.ZodObject<{
947
- severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
354
+ severity: z.ZodEnum<{
355
+ critical: "critical";
356
+ warning: "warning";
357
+ error: "error";
358
+ info: "info";
359
+ }>;
948
360
  category: z.ZodString;
949
361
  message: z.ZodString;
950
362
  recommendation: z.ZodOptional<z.ZodString>;
951
- }, "strip", z.ZodTypeAny, {
952
- message: string;
953
- severity: "critical" | "warning" | "error" | "info";
954
- category: string;
955
- recommendation?: string | undefined;
956
- }, {
957
- message: string;
958
- severity: "critical" | "warning" | "error" | "info";
959
- category: string;
960
- recommendation?: string | undefined;
961
- }>, "many">;
363
+ }, z.core.$strip>>;
962
364
  overlayCandidates: z.ZodArray<z.ZodObject<{
963
365
  endpoint: z.ZodString;
964
- overlayType: z.ZodEnum<["auth", "tenancy", "rateLimit", "auditLog", "custom"]>;
366
+ overlayType: z.ZodEnum<{
367
+ custom: "custom";
368
+ auth: "auth";
369
+ tenancy: "tenancy";
370
+ rateLimit: "rateLimit";
371
+ auditLog: "auditLog";
372
+ }>;
965
373
  rationale: z.ZodString;
966
374
  suggestedConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
967
- }, "strip", z.ZodTypeAny, {
968
- rationale: string;
969
- endpoint: string;
970
- overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
971
- suggestedConfig?: Record<string, unknown> | undefined;
972
- }, {
973
- rationale: string;
974
- endpoint: string;
975
- overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
976
- suggestedConfig?: Record<string, unknown> | undefined;
977
- }>, "many">;
375
+ }, z.core.$strip>>;
978
376
  recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
979
- kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
377
+ kind: z.ZodEnum<{
378
+ ignore: "ignore";
379
+ run_command: "run_command";
380
+ edit_file: "edit_file";
381
+ review: "review";
382
+ confirm: "confirm";
383
+ block: "block";
384
+ }>;
980
385
  title: z.ZodString;
981
386
  command: z.ZodOptional<z.ZodString>;
982
387
  target: z.ZodOptional<z.ZodString>;
983
388
  rationale: z.ZodOptional<z.ZodString>;
984
- }, "strip", z.ZodTypeAny, {
985
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
986
- title: string;
987
- target?: string | undefined;
988
- command?: string | undefined;
989
- rationale?: string | undefined;
990
- }, {
991
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
992
- title: string;
993
- target?: string | undefined;
994
- command?: string | undefined;
995
- rationale?: string | undefined;
996
- }>, "many">>;
389
+ }, z.core.$strip>>>;
997
390
  metadata: z.ZodOptional<z.ZodObject<{
998
391
  tool: z.ZodOptional<z.ZodString>;
999
392
  command: z.ZodOptional<z.ZodString>;
@@ -1001,122 +394,43 @@ export declare const handoffSchemas: {
1001
394
  generatedAt: z.ZodOptional<z.ZodString>;
1002
395
  adapter: z.ZodOptional<z.ZodString>;
1003
396
  model: z.ZodOptional<z.ZodString>;
1004
- }, "strip", z.ZodTypeAny, {
1005
- adapter?: string | undefined;
1006
- model?: string | undefined;
1007
- command?: string | undefined;
1008
- tool?: string | undefined;
1009
- version?: string | undefined;
1010
- generatedAt?: string | undefined;
1011
- }, {
1012
- adapter?: string | undefined;
1013
- model?: string | undefined;
1014
- command?: string | undefined;
1015
- tool?: string | undefined;
1016
- version?: string | undefined;
1017
- generatedAt?: string | undefined;
1018
- }>>;
1019
- }, "strip", z.ZodTypeAny, {
1020
- summary: string;
1021
- riskLevel: "low" | "medium" | "high" | "critical";
1022
- findings: {
1023
- message: string;
1024
- severity: "critical" | "warning" | "error" | "info";
1025
- category: string;
1026
- recommendation?: string | undefined;
1027
- }[];
1028
- overlayCandidates: {
1029
- rationale: string;
1030
- endpoint: string;
1031
- overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
1032
- suggestedConfig?: Record<string, unknown> | undefined;
1033
- }[];
1034
- recommendedActions?: {
1035
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1036
- title: string;
1037
- target?: string | undefined;
1038
- command?: string | undefined;
1039
- rationale?: string | undefined;
1040
- }[] | undefined;
1041
- metadata?: {
1042
- adapter?: string | undefined;
1043
- model?: string | undefined;
1044
- command?: string | undefined;
1045
- tool?: string | undefined;
1046
- version?: string | undefined;
1047
- generatedAt?: string | undefined;
1048
- } | undefined;
1049
- }, {
1050
- summary: string;
1051
- riskLevel: "low" | "medium" | "high" | "critical";
1052
- findings: {
1053
- message: string;
1054
- severity: "critical" | "warning" | "error" | "info";
1055
- category: string;
1056
- recommendation?: string | undefined;
1057
- }[];
1058
- overlayCandidates: {
1059
- rationale: string;
1060
- endpoint: string;
1061
- overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
1062
- suggestedConfig?: Record<string, unknown> | undefined;
1063
- }[];
1064
- recommendedActions?: {
1065
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1066
- title: string;
1067
- target?: string | undefined;
1068
- command?: string | undefined;
1069
- rationale?: string | undefined;
1070
- }[] | undefined;
1071
- metadata?: {
1072
- adapter?: string | undefined;
1073
- model?: string | undefined;
1074
- command?: string | undefined;
1075
- tool?: string | undefined;
1076
- version?: string | undefined;
1077
- generatedAt?: string | undefined;
1078
- } | undefined;
1079
- }>;
397
+ }, z.core.$strip>>;
398
+ }, z.core.$strip>;
1080
399
  readonly "guardrails-audit-result": z.ZodObject<{
1081
400
  summary: z.ZodString;
1082
- riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
401
+ riskLevel: z.ZodEnum<{
402
+ low: "low";
403
+ medium: "medium";
404
+ high: "high";
405
+ critical: "critical";
406
+ }>;
1083
407
  findings: z.ZodArray<z.ZodObject<{
1084
- severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
408
+ severity: z.ZodEnum<{
409
+ critical: "critical";
410
+ warning: "warning";
411
+ error: "error";
412
+ info: "info";
413
+ }>;
1085
414
  category: z.ZodString;
1086
415
  message: z.ZodString;
1087
416
  recommendation: z.ZodOptional<z.ZodString>;
1088
- }, "strip", z.ZodTypeAny, {
1089
- message: string;
1090
- severity: "critical" | "warning" | "error" | "info";
1091
- category: string;
1092
- recommendation?: string | undefined;
1093
- }, {
1094
- message: string;
1095
- severity: "critical" | "warning" | "error" | "info";
1096
- category: string;
1097
- recommendation?: string | undefined;
1098
- }>, "many">;
1099
- coveredPaths: z.ZodArray<z.ZodString, "many">;
1100
- uncoveredPaths: z.ZodArray<z.ZodString, "many">;
417
+ }, z.core.$strip>>;
418
+ coveredPaths: z.ZodArray<z.ZodString>;
419
+ uncoveredPaths: z.ZodArray<z.ZodString>;
1101
420
  recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1102
- kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
421
+ kind: z.ZodEnum<{
422
+ ignore: "ignore";
423
+ run_command: "run_command";
424
+ edit_file: "edit_file";
425
+ review: "review";
426
+ confirm: "confirm";
427
+ block: "block";
428
+ }>;
1103
429
  title: z.ZodString;
1104
430
  command: z.ZodOptional<z.ZodString>;
1105
431
  target: z.ZodOptional<z.ZodString>;
1106
432
  rationale: z.ZodOptional<z.ZodString>;
1107
- }, "strip", z.ZodTypeAny, {
1108
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1109
- title: string;
1110
- target?: string | undefined;
1111
- command?: string | undefined;
1112
- rationale?: string | undefined;
1113
- }, {
1114
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1115
- title: string;
1116
- target?: string | undefined;
1117
- command?: string | undefined;
1118
- rationale?: string | undefined;
1119
- }>, "many">>;
433
+ }, z.core.$strip>>>;
1120
434
  metadata: z.ZodOptional<z.ZodObject<{
1121
435
  tool: z.ZodOptional<z.ZodString>;
1122
436
  command: z.ZodOptional<z.ZodString>;
@@ -1124,74 +438,8 @@ export declare const handoffSchemas: {
1124
438
  generatedAt: z.ZodOptional<z.ZodString>;
1125
439
  adapter: z.ZodOptional<z.ZodString>;
1126
440
  model: z.ZodOptional<z.ZodString>;
1127
- }, "strip", z.ZodTypeAny, {
1128
- adapter?: string | undefined;
1129
- model?: string | undefined;
1130
- command?: string | undefined;
1131
- tool?: string | undefined;
1132
- version?: string | undefined;
1133
- generatedAt?: string | undefined;
1134
- }, {
1135
- adapter?: string | undefined;
1136
- model?: string | undefined;
1137
- command?: string | undefined;
1138
- tool?: string | undefined;
1139
- version?: string | undefined;
1140
- generatedAt?: string | undefined;
1141
- }>>;
1142
- }, "strip", z.ZodTypeAny, {
1143
- summary: string;
1144
- riskLevel: "low" | "medium" | "high" | "critical";
1145
- findings: {
1146
- message: string;
1147
- severity: "critical" | "warning" | "error" | "info";
1148
- category: string;
1149
- recommendation?: string | undefined;
1150
- }[];
1151
- coveredPaths: string[];
1152
- uncoveredPaths: string[];
1153
- recommendedActions?: {
1154
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1155
- title: string;
1156
- target?: string | undefined;
1157
- command?: string | undefined;
1158
- rationale?: string | undefined;
1159
- }[] | undefined;
1160
- metadata?: {
1161
- adapter?: string | undefined;
1162
- model?: string | undefined;
1163
- command?: string | undefined;
1164
- tool?: string | undefined;
1165
- version?: string | undefined;
1166
- generatedAt?: string | undefined;
1167
- } | undefined;
1168
- }, {
1169
- summary: string;
1170
- riskLevel: "low" | "medium" | "high" | "critical";
1171
- findings: {
1172
- message: string;
1173
- severity: "critical" | "warning" | "error" | "info";
1174
- category: string;
1175
- recommendation?: string | undefined;
1176
- }[];
1177
- coveredPaths: string[];
1178
- uncoveredPaths: string[];
1179
- recommendedActions?: {
1180
- kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1181
- title: string;
1182
- target?: string | undefined;
1183
- command?: string | undefined;
1184
- rationale?: string | undefined;
1185
- }[] | undefined;
1186
- metadata?: {
1187
- adapter?: string | undefined;
1188
- model?: string | undefined;
1189
- command?: string | undefined;
1190
- tool?: string | undefined;
1191
- version?: string | undefined;
1192
- generatedAt?: string | undefined;
1193
- } | undefined;
1194
- }>;
441
+ }, z.core.$strip>>;
442
+ }, z.core.$strip>;
1195
443
  };
1196
444
  export type HandoffTypeId = keyof typeof handoffSchemas;
1197
445
  export interface HandoffEnvelope<T extends HandoffTypeId = HandoffTypeId> {