@behavproof/core 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +5 -7
  2. package/cjs/dist/assurance.d.ts +2398 -0
  3. package/cjs/dist/assurance.d.ts.map +1 -0
  4. package/cjs/dist/assurance.js +423 -0
  5. package/cjs/dist/assurance.js.map +1 -0
  6. package/cjs/dist/evidence.d.ts +4 -0
  7. package/cjs/dist/evidence.d.ts.map +1 -0
  8. package/cjs/dist/evidence.js +18 -0
  9. package/cjs/dist/evidence.js.map +1 -0
  10. package/cjs/dist/formal.d.ts +412 -0
  11. package/cjs/dist/formal.d.ts.map +1 -0
  12. package/cjs/dist/formal.js +143 -0
  13. package/cjs/dist/formal.js.map +1 -0
  14. package/cjs/dist/index.d.ts +11 -0
  15. package/cjs/dist/index.d.ts.map +1 -0
  16. package/cjs/dist/index.js +28 -0
  17. package/cjs/dist/index.js.map +1 -0
  18. package/cjs/dist/io.d.ts +5 -0
  19. package/cjs/dist/io.d.ts.map +1 -0
  20. package/cjs/dist/io.js +70 -0
  21. package/cjs/dist/io.js.map +1 -0
  22. package/cjs/dist/manifest.d.ts +56 -0
  23. package/cjs/dist/manifest.d.ts.map +1 -0
  24. package/cjs/dist/manifest.js +70 -0
  25. package/cjs/dist/manifest.js.map +1 -0
  26. package/cjs/dist/policy.d.ts +5 -0
  27. package/cjs/dist/policy.d.ts.map +1 -0
  28. package/cjs/dist/policy.js +63 -0
  29. package/cjs/dist/policy.js.map +1 -0
  30. package/cjs/dist/profiles.d.ts +10 -0
  31. package/cjs/dist/profiles.d.ts.map +1 -0
  32. package/cjs/dist/profiles.js +46 -0
  33. package/cjs/dist/profiles.js.map +1 -0
  34. package/cjs/dist/schemas.d.ts +2453 -0
  35. package/cjs/dist/schemas.d.ts.map +1 -0
  36. package/cjs/dist/schemas.js +100 -0
  37. package/cjs/dist/schemas.js.map +1 -0
  38. package/cjs/dist/sdk.d.ts +54 -0
  39. package/cjs/dist/sdk.d.ts.map +1 -0
  40. package/cjs/dist/sdk.js +4 -0
  41. package/cjs/dist/sdk.js.map +1 -0
  42. package/cjs/dist/serialization.d.ts +4 -0
  43. package/cjs/dist/serialization.d.ts.map +1 -0
  44. package/cjs/dist/serialization.js +58 -0
  45. package/cjs/dist/serialization.js.map +1 -0
  46. package/cjs/package.json +1 -0
  47. package/dist/schemas.d.ts +12 -2
  48. package/dist/schemas.d.ts.map +1 -1
  49. package/dist/schemas.js +2 -2
  50. package/dist/schemas.js.map +1 -1
  51. package/package.json +12 -4
@@ -0,0 +1,2453 @@
1
+ import { z } from 'zod';
2
+ export declare const EvidenceStatusSchema: z.ZodEnum<{
3
+ fail: "fail";
4
+ not_applicable: "not_applicable";
5
+ pass: "pass";
6
+ unknown: "unknown";
7
+ }>;
8
+ export declare const SeveritySchema: z.ZodEnum<{
9
+ error: "error";
10
+ off: "off";
11
+ warn: "warn";
12
+ }>;
13
+ export declare const RiskSchema: z.ZodEnum<{
14
+ basic: "basic";
15
+ critical: "critical";
16
+ standard: "standard";
17
+ }>;
18
+ export declare const ModeSchema: z.ZodEnum<{
19
+ audit: "audit";
20
+ gate: "gate";
21
+ }>;
22
+ export declare const HashSchema: z.ZodString;
23
+ export declare const CountSchema: z.ZodNumber;
24
+ export declare const RelativePathSchema: z.ZodString;
25
+ export declare const RulePolicySchema: z.ZodObject<{
26
+ severity: z.ZodEnum<{
27
+ error: "error";
28
+ off: "off";
29
+ warn: "warn";
30
+ }>;
31
+ min: z.ZodOptional<z.ZodNumber>;
32
+ minMutants: z.ZodOptional<z.ZodNumber>;
33
+ allowNotApplicable: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
+ }, z.core.$strict>;
35
+ export declare const RuleIdSchema: z.ZodString;
36
+ export declare const RulesSchema: z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
37
+ severity: z.ZodEnum<{
38
+ error: "error";
39
+ off: "off";
40
+ warn: "warn";
41
+ }>;
42
+ min: z.ZodOptional<z.ZodNumber>;
43
+ minMutants: z.ZodOptional<z.ZodNumber>;
44
+ allowNotApplicable: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ }, z.core.$strict>>>;
46
+ export declare const PolicySchema: z.ZodObject<{
47
+ schemaVersion: z.ZodLiteral<1>;
48
+ profileVersion: z.ZodLiteral<"1">;
49
+ rules: z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
50
+ severity: z.ZodEnum<{
51
+ error: "error";
52
+ off: "off";
53
+ warn: "warn";
54
+ }>;
55
+ min: z.ZodOptional<z.ZodNumber>;
56
+ minMutants: z.ZodOptional<z.ZodNumber>;
57
+ allowNotApplicable: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ }, z.core.$strict>>>;
59
+ }, z.core.$strict>;
60
+ export declare const RiskOverrideSchema: z.ZodObject<{
61
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ kind: z.ZodLiteral<"path">;
63
+ value: z.ZodString;
64
+ }, z.core.$strict>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"module">;
66
+ value: z.ZodString;
67
+ }, z.core.$strict>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"contract-kind">;
69
+ value: z.ZodEnum<{
70
+ api_contract: "api_contract";
71
+ examples: "examples";
72
+ external: "external";
73
+ invariant: "invariant";
74
+ state_machine: "state_machine";
75
+ }>;
76
+ }, z.core.$strict>], "kind">;
77
+ profile: z.ZodEnum<{
78
+ basic: "basic";
79
+ critical: "critical";
80
+ standard: "standard";
81
+ }>;
82
+ }, z.core.$strict>;
83
+ export declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
84
+ schemaVersion: z.ZodLiteral<1>;
85
+ testRunner: z.ZodOptional<z.ZodEnum<{
86
+ jest: "jest";
87
+ vitest: "vitest";
88
+ }>>;
89
+ assurance: z.ZodOptional<z.ZodObject<{
90
+ driver: z.ZodString;
91
+ driverSources: z.ZodArray<z.ZodString>;
92
+ implementationSources: z.ZodArray<z.ZodString>;
93
+ report: z.ZodString;
94
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
95
+ }, z.core.$strict>>;
96
+ formal: z.ZodOptional<z.ZodObject<{
97
+ models: z.ZodArray<z.ZodObject<{
98
+ id: z.ZodString;
99
+ contractId: z.ZodString;
100
+ model: z.ZodString;
101
+ modelSources: z.ZodDefault<z.ZodArray<z.ZodString>>;
102
+ quint: z.ZodObject<{
103
+ entry: z.ZodString;
104
+ version: z.ZodString;
105
+ apalacheVersion: z.ZodOptional<z.ZodString>;
106
+ }, z.core.$strict>;
107
+ properties: z.ZodArray<z.ZodString>;
108
+ checks: z.ZodArray<z.ZodEnum<{
109
+ parse: "parse";
110
+ run: "run";
111
+ test: "test";
112
+ typecheck: "typecheck";
113
+ verify: "verify";
114
+ }>>;
115
+ maxSteps: z.ZodNumber;
116
+ maxSamples: z.ZodDefault<z.ZodNumber>;
117
+ seed: z.ZodString;
118
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
119
+ report: z.ZodString;
120
+ driver: z.ZodOptional<z.ZodString>;
121
+ driverSources: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
+ implementation: z.ZodOptional<z.ZodString>;
123
+ implementationSources: z.ZodDefault<z.ZodArray<z.ZodString>>;
124
+ conformanceReport: z.ZodOptional<z.ZodString>;
125
+ traceReceipt: z.ZodOptional<z.ZodString>;
126
+ traceDirectory: z.ZodOptional<z.ZodString>;
127
+ requiredActions: z.ZodDefault<z.ZodArray<z.ZodString>>;
128
+ minTraces: z.ZodDefault<z.ZodNumber>;
129
+ minComparisons: z.ZodDefault<z.ZodNumber>;
130
+ requireCanary: z.ZodDefault<z.ZodBoolean>;
131
+ canary: z.ZodOptional<z.ZodObject<{
132
+ faultId: z.ZodString;
133
+ implementation: z.ZodString;
134
+ targetRef: z.ZodString;
135
+ }, z.core.$strict>>;
136
+ }, z.core.$strict>>;
137
+ }, z.core.$strict>>;
138
+ mode: z.ZodDefault<z.ZodEnum<{
139
+ audit: "audit";
140
+ gate: "gate";
141
+ }>>;
142
+ profile: z.ZodDefault<z.ZodEnum<{
143
+ basic: "basic";
144
+ critical: "critical";
145
+ standard: "standard";
146
+ }>>;
147
+ profileVersion: z.ZodDefault<z.ZodLiteral<"1">>;
148
+ riskOverrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
149
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
150
+ kind: z.ZodLiteral<"path">;
151
+ value: z.ZodString;
152
+ }, z.core.$strict>, z.ZodObject<{
153
+ kind: z.ZodLiteral<"module">;
154
+ value: z.ZodString;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ kind: z.ZodLiteral<"contract-kind">;
157
+ value: z.ZodEnum<{
158
+ api_contract: "api_contract";
159
+ examples: "examples";
160
+ external: "external";
161
+ invariant: "invariant";
162
+ state_machine: "state_machine";
163
+ }>;
164
+ }, z.core.$strict>], "kind">;
165
+ profile: z.ZodEnum<{
166
+ basic: "basic";
167
+ critical: "critical";
168
+ standard: "standard";
169
+ }>;
170
+ }, z.core.$strict>>>;
171
+ git: z.ZodDefault<z.ZodObject<{
172
+ base: z.ZodDefault<z.ZodString>;
173
+ }, z.core.$strict>>;
174
+ reports: z.ZodDefault<z.ZodObject<{
175
+ vitest: z.ZodOptional<z.ZodString>;
176
+ jest: z.ZodOptional<z.ZodString>;
177
+ coverage: z.ZodOptional<z.ZodString>;
178
+ mutation: z.ZodOptional<z.ZodString>;
179
+ }, z.core.$strict>>;
180
+ executionManifests: z.ZodDefault<z.ZodArray<z.ZodString>>;
181
+ rules: z.ZodDefault<z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
182
+ severity: z.ZodEnum<{
183
+ error: "error";
184
+ off: "off";
185
+ warn: "warn";
186
+ }>;
187
+ min: z.ZodOptional<z.ZodNumber>;
188
+ minMutants: z.ZodOptional<z.ZodNumber>;
189
+ allowNotApplicable: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ }, z.core.$strict>>>>;
191
+ contracts: z.ZodDefault<z.ZodObject<{
192
+ enabled: z.ZodDefault<z.ZodBoolean>;
193
+ sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
194
+ type: z.ZodEnum<{
195
+ external: "external";
196
+ gherkin: "gherkin";
197
+ "jest-inline": "jest-inline";
198
+ manifest: "manifest";
199
+ openapi: "openapi";
200
+ "vitest-inline": "vitest-inline";
201
+ }>;
202
+ include: z.ZodArray<z.ZodString>;
203
+ }, z.core.$strict>>>;
204
+ requireExecutionEvidence: z.ZodDefault<z.ZodBoolean>;
205
+ approval: z.ZodDefault<z.ZodObject<{
206
+ provider: z.ZodLiteral<"github-protected-review">;
207
+ requiredForRisk: z.ZodDefault<z.ZodArray<z.ZodEnum<{
208
+ basic: "basic";
209
+ critical: "critical";
210
+ standard: "standard";
211
+ }>>>;
212
+ onUnverifiable: z.ZodDefault<z.ZodLiteral<"unknown">>;
213
+ }, z.core.$strict>>;
214
+ documents: z.ZodDefault<z.ZodObject<{
215
+ output: z.ZodDefault<z.ZodString>;
216
+ commit: z.ZodDefault<z.ZodBoolean>;
217
+ }, z.core.$strict>>;
218
+ }, z.core.$strict>>;
219
+ }, z.core.$strict>, z.ZodTransform<{
220
+ schemaVersion: 1;
221
+ testRunner?: "jest" | "vitest" | undefined;
222
+ assurance?: {
223
+ driver: string;
224
+ driverSources: string[];
225
+ implementationSources: string[];
226
+ report: string;
227
+ timeoutMs?: number | undefined;
228
+ } | undefined;
229
+ formal?: {
230
+ models: {
231
+ id: string;
232
+ contractId: string;
233
+ model: string;
234
+ modelSources: string[];
235
+ quint: {
236
+ entry: string;
237
+ version: string;
238
+ apalacheVersion?: string | undefined;
239
+ };
240
+ properties: string[];
241
+ checks: ("parse" | "run" | "test" | "typecheck" | "verify")[];
242
+ maxSteps: number;
243
+ maxSamples: number;
244
+ seed: string;
245
+ timeoutMs: number;
246
+ report: string;
247
+ driver?: string | undefined;
248
+ driverSources?: string[] | undefined;
249
+ implementation?: string | undefined;
250
+ implementationSources: string[];
251
+ conformanceReport?: string | undefined;
252
+ traceReceipt?: string | undefined;
253
+ traceDirectory?: string | undefined;
254
+ requiredActions: string[];
255
+ minTraces: number;
256
+ minComparisons: number;
257
+ requireCanary: boolean;
258
+ canary?: {
259
+ faultId: string;
260
+ implementation: string;
261
+ targetRef: string;
262
+ } | undefined;
263
+ }[];
264
+ } | undefined;
265
+ mode: "audit" | "gate";
266
+ profile: "basic" | "critical" | "standard";
267
+ profileVersion: "1";
268
+ riskOverrides: {
269
+ selector: {
270
+ kind: "path";
271
+ value: string;
272
+ } | {
273
+ kind: "module";
274
+ value: string;
275
+ } | {
276
+ kind: "contract-kind";
277
+ value: "api_contract" | "examples" | "external" | "invariant" | "state_machine";
278
+ };
279
+ profile: "basic" | "critical" | "standard";
280
+ }[];
281
+ git: {
282
+ base: string;
283
+ };
284
+ reports: {
285
+ vitest?: string | undefined;
286
+ jest?: string | undefined;
287
+ coverage?: string | undefined;
288
+ mutation?: string | undefined;
289
+ };
290
+ executionManifests: string[];
291
+ contracts: {
292
+ enabled: boolean;
293
+ sources: {
294
+ type: "external" | "gherkin" | "jest-inline" | "manifest" | "openapi" | "vitest-inline";
295
+ include: string[];
296
+ }[];
297
+ requireExecutionEvidence: boolean;
298
+ approval: {
299
+ provider: "github-protected-review";
300
+ requiredForRisk: ("basic" | "critical" | "standard")[];
301
+ onUnverifiable: "unknown";
302
+ };
303
+ documents: {
304
+ output: string;
305
+ commit: boolean;
306
+ };
307
+ };
308
+ rules: Record<string, {
309
+ severity: "error" | "off" | "warn";
310
+ min?: number | undefined;
311
+ minMutants?: number | undefined;
312
+ allowNotApplicable?: string[] | undefined;
313
+ }>;
314
+ }, {
315
+ schemaVersion: 1;
316
+ testRunner?: "jest" | "vitest" | undefined;
317
+ assurance?: {
318
+ driver: string;
319
+ driverSources: string[];
320
+ implementationSources: string[];
321
+ report: string;
322
+ timeoutMs?: number | undefined;
323
+ } | undefined;
324
+ formal?: {
325
+ models: {
326
+ id: string;
327
+ contractId: string;
328
+ model: string;
329
+ modelSources: string[];
330
+ quint: {
331
+ entry: string;
332
+ version: string;
333
+ apalacheVersion?: string | undefined;
334
+ };
335
+ properties: string[];
336
+ checks: ("parse" | "run" | "test" | "typecheck" | "verify")[];
337
+ maxSteps: number;
338
+ maxSamples: number;
339
+ seed: string;
340
+ timeoutMs: number;
341
+ report: string;
342
+ driver?: string | undefined;
343
+ driverSources?: string[] | undefined;
344
+ implementation?: string | undefined;
345
+ implementationSources: string[];
346
+ conformanceReport?: string | undefined;
347
+ traceReceipt?: string | undefined;
348
+ traceDirectory?: string | undefined;
349
+ requiredActions: string[];
350
+ minTraces: number;
351
+ minComparisons: number;
352
+ requireCanary: boolean;
353
+ canary?: {
354
+ faultId: string;
355
+ implementation: string;
356
+ targetRef: string;
357
+ } | undefined;
358
+ }[];
359
+ } | undefined;
360
+ mode: "audit" | "gate";
361
+ profile: "basic" | "critical" | "standard";
362
+ profileVersion: "1";
363
+ riskOverrides: {
364
+ selector: {
365
+ kind: "path";
366
+ value: string;
367
+ } | {
368
+ kind: "module";
369
+ value: string;
370
+ } | {
371
+ kind: "contract-kind";
372
+ value: "api_contract" | "examples" | "external" | "invariant" | "state_machine";
373
+ };
374
+ profile: "basic" | "critical" | "standard";
375
+ }[];
376
+ git: {
377
+ base: string;
378
+ };
379
+ reports: {
380
+ vitest?: string | undefined;
381
+ jest?: string | undefined;
382
+ coverage?: string | undefined;
383
+ mutation?: string | undefined;
384
+ };
385
+ executionManifests: string[];
386
+ rules: Record<string, {
387
+ severity: "error" | "off" | "warn";
388
+ min?: number | undefined;
389
+ minMutants?: number | undefined;
390
+ allowNotApplicable?: string[] | undefined;
391
+ }>;
392
+ contracts: {
393
+ enabled: boolean;
394
+ sources: {
395
+ type: "external" | "gherkin" | "jest-inline" | "manifest" | "openapi" | "vitest-inline";
396
+ include: string[];
397
+ }[];
398
+ requireExecutionEvidence: boolean;
399
+ approval: {
400
+ provider: "github-protected-review";
401
+ requiredForRisk: ("basic" | "critical" | "standard")[];
402
+ onUnverifiable: "unknown";
403
+ };
404
+ documents: {
405
+ output: string;
406
+ commit: boolean;
407
+ };
408
+ };
409
+ }>>;
410
+ export declare const EvidenceSubjectSchema: z.ZodObject<{
411
+ repositoryId: z.ZodOptional<z.ZodString>;
412
+ prHeadSha: z.ZodOptional<z.ZodString>;
413
+ testedCommitSha: z.ZodString;
414
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
415
+ sourceTreeHash: z.ZodString;
416
+ dirty: z.ZodBoolean;
417
+ baseSha: z.ZodOptional<z.ZodString>;
418
+ diffBaseSha: z.ZodOptional<z.ZodString>;
419
+ }, z.core.$strict>;
420
+ export declare const ProducerSchema: z.ZodObject<{
421
+ tool: z.ZodString;
422
+ version: z.ZodString;
423
+ collectorVersion: z.ZodString;
424
+ }, z.core.$strict>;
425
+ export declare const CiIdentitySchema: z.ZodObject<{
426
+ repositoryId: z.ZodString;
427
+ workflowRef: z.ZodString;
428
+ runId: z.ZodString;
429
+ runAttempt: z.ZodNumber;
430
+ jobId: z.ZodString;
431
+ eventName: z.ZodString;
432
+ }, z.core.$strict>;
433
+ export declare const ExecutionManifestSchema: z.ZodObject<{
434
+ schemaVersion: z.ZodLiteral<1>;
435
+ executionId: z.ZodString;
436
+ subject: z.ZodObject<{
437
+ repositoryId: z.ZodOptional<z.ZodString>;
438
+ prHeadSha: z.ZodOptional<z.ZodString>;
439
+ testedCommitSha: z.ZodString;
440
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
441
+ sourceTreeHash: z.ZodString;
442
+ dirty: z.ZodBoolean;
443
+ baseSha: z.ZodOptional<z.ZodString>;
444
+ diffBaseSha: z.ZodOptional<z.ZodString>;
445
+ }, z.core.$strict>;
446
+ producer: z.ZodObject<{
447
+ tool: z.ZodString;
448
+ version: z.ZodString;
449
+ collectorVersion: z.ZodString;
450
+ }, z.core.$strict>;
451
+ commandHash: z.ZodString;
452
+ configHashes: z.ZodRecord<z.ZodString, z.ZodString>;
453
+ dependencyLockHash: z.ZodOptional<z.ZodString>;
454
+ environment: z.ZodObject<{
455
+ nodeVersion: z.ZodString;
456
+ platform: z.ZodString;
457
+ }, z.core.$strict>;
458
+ startedAt: z.ZodISODateTime;
459
+ completedAt: z.ZodISODateTime;
460
+ exitCode: z.ZodNumber;
461
+ artifacts: z.ZodArray<z.ZodObject<{
462
+ ref: z.ZodString;
463
+ sha256: z.ZodString;
464
+ kind: z.ZodString;
465
+ scope: z.ZodArray<z.ZodString>;
466
+ }, z.core.$strict>>;
467
+ ci: z.ZodOptional<z.ZodObject<{
468
+ repositoryId: z.ZodString;
469
+ workflowRef: z.ZodString;
470
+ runId: z.ZodString;
471
+ runAttempt: z.ZodNumber;
472
+ jobId: z.ZodString;
473
+ eventName: z.ZodString;
474
+ }, z.core.$strict>>;
475
+ attestationRef: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strict>;
477
+ export declare const IntentSchema: z.ZodObject<{
478
+ id: z.ZodString;
479
+ statement: z.ZodString;
480
+ risk: z.ZodEnum<{
481
+ basic: "basic";
482
+ critical: "critical";
483
+ standard: "standard";
484
+ }>;
485
+ contentHash: z.ZodString;
486
+ origin: z.ZodObject<{
487
+ kind: z.ZodEnum<{
488
+ external: "external";
489
+ inline: "inline";
490
+ manifest: "manifest";
491
+ }>;
492
+ ref: z.ZodString;
493
+ }, z.core.$strict>;
494
+ }, z.core.$strict>;
495
+ export declare const ContractCaseSchema: z.ZodObject<{
496
+ id: z.ZodString;
497
+ input: z.ZodJSONSchema;
498
+ expected: z.ZodJSONSchema;
499
+ negative: z.ZodOptional<z.ZodBoolean>;
500
+ }, z.core.$strict>;
501
+ export declare const ContractSchema: z.ZodObject<{
502
+ id: z.ZodString;
503
+ assurance: z.ZodOptional<z.ZodObject<{
504
+ feature: z.ZodObject<{
505
+ id: z.ZodString;
506
+ entrypoints: z.ZodArray<z.ZodString>;
507
+ }, z.core.$strict>;
508
+ conditions: z.ZodArray<z.ZodObject<{
509
+ id: z.ZodString;
510
+ kind: z.ZodEnum<{
511
+ architecture: "architecture";
512
+ effect: "effect";
513
+ invariant: "invariant";
514
+ journey: "journey";
515
+ postcondition: "postcondition";
516
+ precondition: "precondition";
517
+ property: "property";
518
+ }>;
519
+ statement: z.ZodString;
520
+ checks: z.ZodArray<z.ZodString>;
521
+ requiredFaults: z.ZodArray<z.ZodObject<{
522
+ id: z.ZodString;
523
+ kind: z.ZodString;
524
+ checkId: z.ZodString;
525
+ implementation: z.ZodString;
526
+ detects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
527
+ kind: z.ZodLiteral<"result">;
528
+ id: z.ZodString;
529
+ }, z.core.$strict>, z.ZodObject<{
530
+ kind: z.ZodLiteral<"unchanged">;
531
+ id: z.ZodString;
532
+ scope: z.ZodString;
533
+ field: z.ZodString;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ kind: z.ZodLiteral<"effect">;
536
+ id: z.ZodString;
537
+ scope: z.ZodString;
538
+ effectId: z.ZodString;
539
+ }, z.core.$strict>, z.ZodObject<{
540
+ kind: z.ZodLiteral<"rule">;
541
+ id: z.ZodString;
542
+ }, z.core.$strict>], "kind">>;
543
+ }, z.core.$strict>>;
544
+ }, z.core.$strict>>;
545
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
546
+ id: z.ZodString;
547
+ targetRef: z.ZodString;
548
+ method: z.ZodLiteral<"example">;
549
+ cases: z.ZodArray<z.ZodObject<{
550
+ id: z.ZodString;
551
+ input: z.ZodJSONSchema;
552
+ expected: z.ZodJSONSchema;
553
+ }, z.core.$strict>>;
554
+ }, z.core.$strict>, z.ZodObject<{
555
+ id: z.ZodString;
556
+ targetRef: z.ZodString;
557
+ method: z.ZodLiteral<"effects">;
558
+ cases: z.ZodArray<z.ZodObject<{
559
+ id: z.ZodString;
560
+ input: z.ZodJSONSchema;
561
+ expected: z.ZodJSONSchema;
562
+ }, z.core.$strict>>;
563
+ scope: z.ZodArray<z.ZodString>;
564
+ resources: z.ZodArray<z.ZodObject<{
565
+ scope: z.ZodString;
566
+ adapter: z.ZodString;
567
+ targets: z.ZodArray<z.ZodString>;
568
+ }, z.core.$strict>>;
569
+ allowedChanges: z.ZodArray<z.ZodObject<{
570
+ scope: z.ZodString;
571
+ field: z.ZodString;
572
+ }, z.core.$strict>>;
573
+ unchangedFields: z.ZodArray<z.ZodObject<{
574
+ scope: z.ZodString;
575
+ field: z.ZodString;
576
+ }, z.core.$strict>>;
577
+ effects: z.ZodArray<z.ZodObject<{
578
+ id: z.ZodString;
579
+ scope: z.ZodString;
580
+ min: z.ZodNumber;
581
+ max: z.ZodNumber;
582
+ }, z.core.$strict>>;
583
+ window: z.ZodObject<{
584
+ settledBy: z.ZodString;
585
+ durationMs: z.ZodNumber;
586
+ }, z.core.$strict>;
587
+ }, z.core.$strict>, z.ZodObject<{
588
+ id: z.ZodString;
589
+ targetRef: z.ZodString;
590
+ method: z.ZodLiteral<"property">;
591
+ domain: z.ZodJSONSchema;
592
+ seed: z.ZodString;
593
+ runs: z.ZodNumber;
594
+ minValid: z.ZodNumber;
595
+ maxDiscarded: z.ZodNumber;
596
+ maxDiscardRatio: z.ZodOptional<z.ZodNumber>;
597
+ requiredClasses: z.ZodArray<z.ZodString>;
598
+ classMinimums: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
599
+ generator: z.ZodString;
600
+ predicate: z.ZodString;
601
+ shrinker: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ id: z.ZodString;
604
+ targetRef: z.ZodString;
605
+ method: z.ZodLiteral<"sequence">;
606
+ seed: z.ZodString;
607
+ generator: z.ZodString;
608
+ model: z.ZodString;
609
+ projection: z.ZodString;
610
+ maxSteps: z.ZodNumber;
611
+ minTraces: z.ZodNumber;
612
+ requiredActions: z.ZodArray<z.ZodString>;
613
+ actionMinimums: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ id: z.ZodString;
616
+ targetRef: z.ZodString;
617
+ method: z.ZodLiteral<"architecture">;
618
+ files: z.ZodArray<z.ZodString>;
619
+ rules: z.ZodArray<z.ZodObject<{
620
+ id: z.ZodString;
621
+ from: z.ZodArray<z.ZodString>;
622
+ forbidden: z.ZodArray<z.ZodString>;
623
+ }, z.core.$strict>>;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ id: z.ZodString;
626
+ targetRef: z.ZodString;
627
+ method: z.ZodLiteral<"journey">;
628
+ entrypoint: z.ZodString;
629
+ environment: z.ZodJSONSchema;
630
+ mockBoundaries: z.ZodArray<z.ZodString>;
631
+ layers: z.ZodArray<z.ZodString>;
632
+ layerBindings: z.ZodArray<z.ZodObject<{
633
+ id: z.ZodString;
634
+ adapter: z.ZodString;
635
+ targetRef: z.ZodString;
636
+ }, z.core.$strict>>;
637
+ steps: z.ZodArray<z.ZodObject<{
638
+ id: z.ZodString;
639
+ input: z.ZodJSONSchema;
640
+ expected: z.ZodJSONSchema;
641
+ action: z.ZodString;
642
+ layers: z.ZodArray<z.ZodString>;
643
+ }, z.core.$strict>>;
644
+ requiredMedia: z.ZodOptional<z.ZodArray<z.ZodString>>;
645
+ }, z.core.$strict>], "method">>;
646
+ }, z.core.$strict>>;
647
+ formal: z.ZodOptional<z.ZodObject<{
648
+ modelId: z.ZodString;
649
+ modelHash: z.ZodString;
650
+ driverHash: z.ZodOptional<z.ZodString>;
651
+ propertyIds: z.ZodArray<z.ZodString>;
652
+ }, z.core.$strict>>;
653
+ kind: z.ZodEnum<{
654
+ api_contract: "api_contract";
655
+ examples: "examples";
656
+ external: "external";
657
+ invariant: "invariant";
658
+ state_machine: "state_machine";
659
+ }>;
660
+ intentIds: z.ZodArray<z.ZodString>;
661
+ revisionHash: z.ZodString;
662
+ sourceRef: z.ZodString;
663
+ caseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
664
+ risk: z.ZodOptional<z.ZodEnum<{
665
+ basic: "basic";
666
+ critical: "critical";
667
+ standard: "standard";
668
+ }>>;
669
+ cases: z.ZodOptional<z.ZodArray<z.ZodObject<{
670
+ id: z.ZodString;
671
+ input: z.ZodJSONSchema;
672
+ expected: z.ZodJSONSchema;
673
+ negative: z.ZodOptional<z.ZodBoolean>;
674
+ }, z.core.$strict>>>;
675
+ }, z.core.$strict>;
676
+ export declare const RegistrySnapshotSchema: z.ZodObject<{
677
+ schemaVersion: z.ZodLiteral<1>;
678
+ repositoryId: z.ZodOptional<z.ZodString>;
679
+ commitSha: z.ZodString;
680
+ contracts: z.ZodArray<z.ZodObject<{
681
+ id: z.ZodString;
682
+ assurance: z.ZodOptional<z.ZodObject<{
683
+ feature: z.ZodObject<{
684
+ id: z.ZodString;
685
+ entrypoints: z.ZodArray<z.ZodString>;
686
+ }, z.core.$strict>;
687
+ conditions: z.ZodArray<z.ZodObject<{
688
+ id: z.ZodString;
689
+ kind: z.ZodEnum<{
690
+ architecture: "architecture";
691
+ effect: "effect";
692
+ invariant: "invariant";
693
+ journey: "journey";
694
+ postcondition: "postcondition";
695
+ precondition: "precondition";
696
+ property: "property";
697
+ }>;
698
+ statement: z.ZodString;
699
+ checks: z.ZodArray<z.ZodString>;
700
+ requiredFaults: z.ZodArray<z.ZodObject<{
701
+ id: z.ZodString;
702
+ kind: z.ZodString;
703
+ checkId: z.ZodString;
704
+ implementation: z.ZodString;
705
+ detects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
706
+ kind: z.ZodLiteral<"result">;
707
+ id: z.ZodString;
708
+ }, z.core.$strict>, z.ZodObject<{
709
+ kind: z.ZodLiteral<"unchanged">;
710
+ id: z.ZodString;
711
+ scope: z.ZodString;
712
+ field: z.ZodString;
713
+ }, z.core.$strict>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"effect">;
715
+ id: z.ZodString;
716
+ scope: z.ZodString;
717
+ effectId: z.ZodString;
718
+ }, z.core.$strict>, z.ZodObject<{
719
+ kind: z.ZodLiteral<"rule">;
720
+ id: z.ZodString;
721
+ }, z.core.$strict>], "kind">>;
722
+ }, z.core.$strict>>;
723
+ }, z.core.$strict>>;
724
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
725
+ id: z.ZodString;
726
+ targetRef: z.ZodString;
727
+ method: z.ZodLiteral<"example">;
728
+ cases: z.ZodArray<z.ZodObject<{
729
+ id: z.ZodString;
730
+ input: z.ZodJSONSchema;
731
+ expected: z.ZodJSONSchema;
732
+ }, z.core.$strict>>;
733
+ }, z.core.$strict>, z.ZodObject<{
734
+ id: z.ZodString;
735
+ targetRef: z.ZodString;
736
+ method: z.ZodLiteral<"effects">;
737
+ cases: z.ZodArray<z.ZodObject<{
738
+ id: z.ZodString;
739
+ input: z.ZodJSONSchema;
740
+ expected: z.ZodJSONSchema;
741
+ }, z.core.$strict>>;
742
+ scope: z.ZodArray<z.ZodString>;
743
+ resources: z.ZodArray<z.ZodObject<{
744
+ scope: z.ZodString;
745
+ adapter: z.ZodString;
746
+ targets: z.ZodArray<z.ZodString>;
747
+ }, z.core.$strict>>;
748
+ allowedChanges: z.ZodArray<z.ZodObject<{
749
+ scope: z.ZodString;
750
+ field: z.ZodString;
751
+ }, z.core.$strict>>;
752
+ unchangedFields: z.ZodArray<z.ZodObject<{
753
+ scope: z.ZodString;
754
+ field: z.ZodString;
755
+ }, z.core.$strict>>;
756
+ effects: z.ZodArray<z.ZodObject<{
757
+ id: z.ZodString;
758
+ scope: z.ZodString;
759
+ min: z.ZodNumber;
760
+ max: z.ZodNumber;
761
+ }, z.core.$strict>>;
762
+ window: z.ZodObject<{
763
+ settledBy: z.ZodString;
764
+ durationMs: z.ZodNumber;
765
+ }, z.core.$strict>;
766
+ }, z.core.$strict>, z.ZodObject<{
767
+ id: z.ZodString;
768
+ targetRef: z.ZodString;
769
+ method: z.ZodLiteral<"property">;
770
+ domain: z.ZodJSONSchema;
771
+ seed: z.ZodString;
772
+ runs: z.ZodNumber;
773
+ minValid: z.ZodNumber;
774
+ maxDiscarded: z.ZodNumber;
775
+ maxDiscardRatio: z.ZodOptional<z.ZodNumber>;
776
+ requiredClasses: z.ZodArray<z.ZodString>;
777
+ classMinimums: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
778
+ generator: z.ZodString;
779
+ predicate: z.ZodString;
780
+ shrinker: z.ZodOptional<z.ZodString>;
781
+ }, z.core.$strict>, z.ZodObject<{
782
+ id: z.ZodString;
783
+ targetRef: z.ZodString;
784
+ method: z.ZodLiteral<"sequence">;
785
+ seed: z.ZodString;
786
+ generator: z.ZodString;
787
+ model: z.ZodString;
788
+ projection: z.ZodString;
789
+ maxSteps: z.ZodNumber;
790
+ minTraces: z.ZodNumber;
791
+ requiredActions: z.ZodArray<z.ZodString>;
792
+ actionMinimums: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
793
+ }, z.core.$strict>, z.ZodObject<{
794
+ id: z.ZodString;
795
+ targetRef: z.ZodString;
796
+ method: z.ZodLiteral<"architecture">;
797
+ files: z.ZodArray<z.ZodString>;
798
+ rules: z.ZodArray<z.ZodObject<{
799
+ id: z.ZodString;
800
+ from: z.ZodArray<z.ZodString>;
801
+ forbidden: z.ZodArray<z.ZodString>;
802
+ }, z.core.$strict>>;
803
+ }, z.core.$strict>, z.ZodObject<{
804
+ id: z.ZodString;
805
+ targetRef: z.ZodString;
806
+ method: z.ZodLiteral<"journey">;
807
+ entrypoint: z.ZodString;
808
+ environment: z.ZodJSONSchema;
809
+ mockBoundaries: z.ZodArray<z.ZodString>;
810
+ layers: z.ZodArray<z.ZodString>;
811
+ layerBindings: z.ZodArray<z.ZodObject<{
812
+ id: z.ZodString;
813
+ adapter: z.ZodString;
814
+ targetRef: z.ZodString;
815
+ }, z.core.$strict>>;
816
+ steps: z.ZodArray<z.ZodObject<{
817
+ id: z.ZodString;
818
+ input: z.ZodJSONSchema;
819
+ expected: z.ZodJSONSchema;
820
+ action: z.ZodString;
821
+ layers: z.ZodArray<z.ZodString>;
822
+ }, z.core.$strict>>;
823
+ requiredMedia: z.ZodOptional<z.ZodArray<z.ZodString>>;
824
+ }, z.core.$strict>], "method">>;
825
+ }, z.core.$strict>>;
826
+ formal: z.ZodOptional<z.ZodObject<{
827
+ modelId: z.ZodString;
828
+ modelHash: z.ZodString;
829
+ driverHash: z.ZodOptional<z.ZodString>;
830
+ propertyIds: z.ZodArray<z.ZodString>;
831
+ }, z.core.$strict>>;
832
+ kind: z.ZodEnum<{
833
+ api_contract: "api_contract";
834
+ examples: "examples";
835
+ external: "external";
836
+ invariant: "invariant";
837
+ state_machine: "state_machine";
838
+ }>;
839
+ intentIds: z.ZodArray<z.ZodString>;
840
+ revisionHash: z.ZodString;
841
+ sourceRef: z.ZodString;
842
+ caseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
843
+ risk: z.ZodOptional<z.ZodEnum<{
844
+ basic: "basic";
845
+ critical: "critical";
846
+ standard: "standard";
847
+ }>>;
848
+ cases: z.ZodOptional<z.ZodArray<z.ZodObject<{
849
+ id: z.ZodString;
850
+ input: z.ZodJSONSchema;
851
+ expected: z.ZodJSONSchema;
852
+ negative: z.ZodOptional<z.ZodBoolean>;
853
+ }, z.core.$strict>>>;
854
+ }, z.core.$strict>>;
855
+ intents: z.ZodArray<z.ZodObject<{
856
+ id: z.ZodString;
857
+ statement: z.ZodString;
858
+ risk: z.ZodEnum<{
859
+ basic: "basic";
860
+ critical: "critical";
861
+ standard: "standard";
862
+ }>;
863
+ contentHash: z.ZodString;
864
+ origin: z.ZodObject<{
865
+ kind: z.ZodEnum<{
866
+ external: "external";
867
+ inline: "inline";
868
+ manifest: "manifest";
869
+ }>;
870
+ ref: z.ZodString;
871
+ }, z.core.$strict>;
872
+ }, z.core.$strict>>;
873
+ policyHash: z.ZodOptional<z.ZodString>;
874
+ extractorVersion: z.ZodOptional<z.ZodString>;
875
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
876
+ discoveryDiagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
877
+ code: z.ZodString;
878
+ sourceRef: z.ZodString;
879
+ message: z.ZodString;
880
+ }, z.core.$strict>>>;
881
+ }, z.core.$strict>;
882
+ export declare const ApprovalSchema: z.ZodObject<{
883
+ schemaVersion: z.ZodLiteral<1>;
884
+ id: z.ZodString;
885
+ target: z.ZodObject<{
886
+ kind: z.ZodEnum<{
887
+ contract: "contract";
888
+ intent: "intent";
889
+ policy: "policy";
890
+ registry: "registry";
891
+ }>;
892
+ id: z.ZodString;
893
+ contentHash: z.ZodString;
894
+ }, z.core.$strict>;
895
+ status: z.ZodEnum<{
896
+ fail: "fail";
897
+ not_applicable: "not_applicable";
898
+ pass: "pass";
899
+ unknown: "unknown";
900
+ }>;
901
+ source: z.ZodObject<{
902
+ provider: z.ZodString;
903
+ ref: z.ZodString;
904
+ }, z.core.$strict>;
905
+ approvedBy: z.ZodArray<z.ZodString>;
906
+ subjectCommitSha: z.ZodOptional<z.ZodString>;
907
+ reasons: z.ZodArray<z.ZodString>;
908
+ }, z.core.$strict>;
909
+ export declare const EvaluationSchema: z.ZodObject<{
910
+ ruleId: z.ZodString;
911
+ severity: z.ZodEnum<{
912
+ error: "error";
913
+ off: "off";
914
+ warn: "warn";
915
+ }>;
916
+ status: z.ZodEnum<{
917
+ fail: "fail";
918
+ not_applicable: "not_applicable";
919
+ pass: "pass";
920
+ unknown: "unknown";
921
+ }>;
922
+ evidenceIds: z.ZodArray<z.ZodString>;
923
+ scope: z.ZodArray<z.ZodString>;
924
+ message: z.ZodString;
925
+ remediation: z.ZodOptional<z.ZodString>;
926
+ notApplicable: z.ZodOptional<z.ZodObject<{
927
+ reason: z.ZodString;
928
+ allowedReasons: z.ZodArray<z.ZodString>;
929
+ evidenceIds: z.ZodArray<z.ZodString>;
930
+ }, z.core.$strict>>;
931
+ }, z.core.$strict>;
932
+ export declare const ProvenanceSchema: z.ZodObject<{
933
+ artifactIntegrity: z.ZodEnum<{
934
+ fail: "fail";
935
+ not_applicable: "not_applicable";
936
+ pass: "pass";
937
+ unknown: "unknown";
938
+ }>;
939
+ producerTrust: z.ZodEnum<{
940
+ fail: "fail";
941
+ not_applicable: "not_applicable";
942
+ pass: "pass";
943
+ unknown: "unknown";
944
+ }>;
945
+ subjectMatch: z.ZodEnum<{
946
+ fail: "fail";
947
+ not_applicable: "not_applicable";
948
+ pass: "pass";
949
+ unknown: "unknown";
950
+ }>;
951
+ reasons: z.ZodArray<z.ZodString>;
952
+ }, z.core.$strict>;
953
+ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
954
+ schemaVersion: z.ZodLiteral<1>;
955
+ id: z.ZodString;
956
+ source: z.ZodObject<{
957
+ tool: z.ZodString;
958
+ version: z.ZodOptional<z.ZodString>;
959
+ artifactRef: z.ZodString;
960
+ }, z.core.$strict>;
961
+ context: z.ZodObject<{
962
+ subject: z.ZodOptional<z.ZodObject<{
963
+ repositoryId: z.ZodOptional<z.ZodString>;
964
+ prHeadSha: z.ZodOptional<z.ZodString>;
965
+ testedCommitSha: z.ZodString;
966
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
967
+ sourceTreeHash: z.ZodString;
968
+ dirty: z.ZodBoolean;
969
+ baseSha: z.ZodOptional<z.ZodString>;
970
+ diffBaseSha: z.ZodOptional<z.ZodString>;
971
+ }, z.core.$strict>>;
972
+ manifestRef: z.ZodOptional<z.ZodString>;
973
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
974
+ effectivePolicyHash: z.ZodString;
975
+ contractHash: z.ZodOptional<z.ZodString>;
976
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
977
+ collectedAt: z.ZodISODateTime;
978
+ }, z.core.$strict>;
979
+ provenance: z.ZodObject<{
980
+ artifactIntegrity: z.ZodEnum<{
981
+ fail: "fail";
982
+ not_applicable: "not_applicable";
983
+ pass: "pass";
984
+ unknown: "unknown";
985
+ }>;
986
+ producerTrust: z.ZodEnum<{
987
+ fail: "fail";
988
+ not_applicable: "not_applicable";
989
+ pass: "pass";
990
+ unknown: "unknown";
991
+ }>;
992
+ subjectMatch: z.ZodEnum<{
993
+ fail: "fail";
994
+ not_applicable: "not_applicable";
995
+ pass: "pass";
996
+ unknown: "unknown";
997
+ }>;
998
+ reasons: z.ZodArray<z.ZodString>;
999
+ }, z.core.$strict>;
1000
+ subjectRefs: z.ZodArray<z.ZodString>;
1001
+ kind: z.ZodLiteral<"test">;
1002
+ payload: z.ZodObject<{
1003
+ total: z.ZodNumber;
1004
+ passed: z.ZodNumber;
1005
+ failed: z.ZodNumber;
1006
+ skipped: z.ZodNumber;
1007
+ }, z.core.$strict>;
1008
+ }, z.core.$strict>, z.ZodObject<{
1009
+ schemaVersion: z.ZodLiteral<1>;
1010
+ id: z.ZodString;
1011
+ source: z.ZodObject<{
1012
+ tool: z.ZodString;
1013
+ version: z.ZodOptional<z.ZodString>;
1014
+ artifactRef: z.ZodString;
1015
+ }, z.core.$strict>;
1016
+ context: z.ZodObject<{
1017
+ subject: z.ZodOptional<z.ZodObject<{
1018
+ repositoryId: z.ZodOptional<z.ZodString>;
1019
+ prHeadSha: z.ZodOptional<z.ZodString>;
1020
+ testedCommitSha: z.ZodString;
1021
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1022
+ sourceTreeHash: z.ZodString;
1023
+ dirty: z.ZodBoolean;
1024
+ baseSha: z.ZodOptional<z.ZodString>;
1025
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1026
+ }, z.core.$strict>>;
1027
+ manifestRef: z.ZodOptional<z.ZodString>;
1028
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1029
+ effectivePolicyHash: z.ZodString;
1030
+ contractHash: z.ZodOptional<z.ZodString>;
1031
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1032
+ collectedAt: z.ZodISODateTime;
1033
+ }, z.core.$strict>;
1034
+ provenance: z.ZodObject<{
1035
+ artifactIntegrity: z.ZodEnum<{
1036
+ fail: "fail";
1037
+ not_applicable: "not_applicable";
1038
+ pass: "pass";
1039
+ unknown: "unknown";
1040
+ }>;
1041
+ producerTrust: z.ZodEnum<{
1042
+ fail: "fail";
1043
+ not_applicable: "not_applicable";
1044
+ pass: "pass";
1045
+ unknown: "unknown";
1046
+ }>;
1047
+ subjectMatch: z.ZodEnum<{
1048
+ fail: "fail";
1049
+ not_applicable: "not_applicable";
1050
+ pass: "pass";
1051
+ unknown: "unknown";
1052
+ }>;
1053
+ reasons: z.ZodArray<z.ZodString>;
1054
+ }, z.core.$strict>;
1055
+ subjectRefs: z.ZodArray<z.ZodString>;
1056
+ kind: z.ZodLiteral<"coverage">;
1057
+ payload: z.ZodObject<{
1058
+ covered: z.ZodNumber;
1059
+ total: z.ZodNumber;
1060
+ excluded: z.ZodNumber;
1061
+ unobserved: z.ZodNumber;
1062
+ }, z.core.$strict>;
1063
+ }, z.core.$strict>, z.ZodObject<{
1064
+ schemaVersion: z.ZodLiteral<1>;
1065
+ id: z.ZodString;
1066
+ source: z.ZodObject<{
1067
+ tool: z.ZodString;
1068
+ version: z.ZodOptional<z.ZodString>;
1069
+ artifactRef: z.ZodString;
1070
+ }, z.core.$strict>;
1071
+ context: z.ZodObject<{
1072
+ subject: z.ZodOptional<z.ZodObject<{
1073
+ repositoryId: z.ZodOptional<z.ZodString>;
1074
+ prHeadSha: z.ZodOptional<z.ZodString>;
1075
+ testedCommitSha: z.ZodString;
1076
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1077
+ sourceTreeHash: z.ZodString;
1078
+ dirty: z.ZodBoolean;
1079
+ baseSha: z.ZodOptional<z.ZodString>;
1080
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1081
+ }, z.core.$strict>>;
1082
+ manifestRef: z.ZodOptional<z.ZodString>;
1083
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1084
+ effectivePolicyHash: z.ZodString;
1085
+ contractHash: z.ZodOptional<z.ZodString>;
1086
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1087
+ collectedAt: z.ZodISODateTime;
1088
+ }, z.core.$strict>;
1089
+ provenance: z.ZodObject<{
1090
+ artifactIntegrity: z.ZodEnum<{
1091
+ fail: "fail";
1092
+ not_applicable: "not_applicable";
1093
+ pass: "pass";
1094
+ unknown: "unknown";
1095
+ }>;
1096
+ producerTrust: z.ZodEnum<{
1097
+ fail: "fail";
1098
+ not_applicable: "not_applicable";
1099
+ pass: "pass";
1100
+ unknown: "unknown";
1101
+ }>;
1102
+ subjectMatch: z.ZodEnum<{
1103
+ fail: "fail";
1104
+ not_applicable: "not_applicable";
1105
+ pass: "pass";
1106
+ unknown: "unknown";
1107
+ }>;
1108
+ reasons: z.ZodArray<z.ZodString>;
1109
+ }, z.core.$strict>;
1110
+ subjectRefs: z.ZodArray<z.ZodString>;
1111
+ kind: z.ZodLiteral<"mutation">;
1112
+ payload: z.ZodObject<{
1113
+ killed: z.ZodNumber;
1114
+ survived: z.ZodNumber;
1115
+ noCoverage: z.ZodNumber;
1116
+ timeout: z.ZodNumber;
1117
+ excluded: z.ZodNumber;
1118
+ unobserved: z.ZodNumber;
1119
+ }, z.core.$strict>;
1120
+ }, z.core.$strict>, z.ZodObject<{
1121
+ schemaVersion: z.ZodLiteral<1>;
1122
+ id: z.ZodString;
1123
+ source: z.ZodObject<{
1124
+ tool: z.ZodString;
1125
+ version: z.ZodOptional<z.ZodString>;
1126
+ artifactRef: z.ZodString;
1127
+ }, z.core.$strict>;
1128
+ context: z.ZodObject<{
1129
+ subject: z.ZodOptional<z.ZodObject<{
1130
+ repositoryId: z.ZodOptional<z.ZodString>;
1131
+ prHeadSha: z.ZodOptional<z.ZodString>;
1132
+ testedCommitSha: z.ZodString;
1133
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1134
+ sourceTreeHash: z.ZodString;
1135
+ dirty: z.ZodBoolean;
1136
+ baseSha: z.ZodOptional<z.ZodString>;
1137
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1138
+ }, z.core.$strict>>;
1139
+ manifestRef: z.ZodOptional<z.ZodString>;
1140
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1141
+ effectivePolicyHash: z.ZodString;
1142
+ contractHash: z.ZodOptional<z.ZodString>;
1143
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1144
+ collectedAt: z.ZodISODateTime;
1145
+ }, z.core.$strict>;
1146
+ provenance: z.ZodObject<{
1147
+ artifactIntegrity: z.ZodEnum<{
1148
+ fail: "fail";
1149
+ not_applicable: "not_applicable";
1150
+ pass: "pass";
1151
+ unknown: "unknown";
1152
+ }>;
1153
+ producerTrust: z.ZodEnum<{
1154
+ fail: "fail";
1155
+ not_applicable: "not_applicable";
1156
+ pass: "pass";
1157
+ unknown: "unknown";
1158
+ }>;
1159
+ subjectMatch: z.ZodEnum<{
1160
+ fail: "fail";
1161
+ not_applicable: "not_applicable";
1162
+ pass: "pass";
1163
+ unknown: "unknown";
1164
+ }>;
1165
+ reasons: z.ZodArray<z.ZodString>;
1166
+ }, z.core.$strict>;
1167
+ subjectRefs: z.ZodArray<z.ZodString>;
1168
+ kind: z.ZodLiteral<"pipeline">;
1169
+ payload: z.ZodObject<{
1170
+ status: z.ZodEnum<{
1171
+ fail: "fail";
1172
+ not_applicable: "not_applicable";
1173
+ pass: "pass";
1174
+ unknown: "unknown";
1175
+ }>;
1176
+ checks: z.ZodArray<z.ZodObject<{
1177
+ id: z.ZodString;
1178
+ status: z.ZodEnum<{
1179
+ fail: "fail";
1180
+ not_applicable: "not_applicable";
1181
+ pass: "pass";
1182
+ unknown: "unknown";
1183
+ }>;
1184
+ }, z.core.$strict>>;
1185
+ }, z.core.$strict>;
1186
+ }, z.core.$strict>, z.ZodObject<{
1187
+ schemaVersion: z.ZodLiteral<1>;
1188
+ id: z.ZodString;
1189
+ source: z.ZodObject<{
1190
+ tool: z.ZodString;
1191
+ version: z.ZodOptional<z.ZodString>;
1192
+ artifactRef: z.ZodString;
1193
+ }, z.core.$strict>;
1194
+ context: z.ZodObject<{
1195
+ subject: z.ZodOptional<z.ZodObject<{
1196
+ repositoryId: z.ZodOptional<z.ZodString>;
1197
+ prHeadSha: z.ZodOptional<z.ZodString>;
1198
+ testedCommitSha: z.ZodString;
1199
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1200
+ sourceTreeHash: z.ZodString;
1201
+ dirty: z.ZodBoolean;
1202
+ baseSha: z.ZodOptional<z.ZodString>;
1203
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1204
+ }, z.core.$strict>>;
1205
+ manifestRef: z.ZodOptional<z.ZodString>;
1206
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1207
+ effectivePolicyHash: z.ZodString;
1208
+ contractHash: z.ZodOptional<z.ZodString>;
1209
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1210
+ collectedAt: z.ZodISODateTime;
1211
+ }, z.core.$strict>;
1212
+ provenance: z.ZodObject<{
1213
+ artifactIntegrity: z.ZodEnum<{
1214
+ fail: "fail";
1215
+ not_applicable: "not_applicable";
1216
+ pass: "pass";
1217
+ unknown: "unknown";
1218
+ }>;
1219
+ producerTrust: z.ZodEnum<{
1220
+ fail: "fail";
1221
+ not_applicable: "not_applicable";
1222
+ pass: "pass";
1223
+ unknown: "unknown";
1224
+ }>;
1225
+ subjectMatch: z.ZodEnum<{
1226
+ fail: "fail";
1227
+ not_applicable: "not_applicable";
1228
+ pass: "pass";
1229
+ unknown: "unknown";
1230
+ }>;
1231
+ reasons: z.ZodArray<z.ZodString>;
1232
+ }, z.core.$strict>;
1233
+ subjectRefs: z.ZodArray<z.ZodString>;
1234
+ kind: z.ZodLiteral<"contract_execution">;
1235
+ payload: z.ZodObject<{
1236
+ contractId: z.ZodString;
1237
+ caseId: z.ZodString;
1238
+ revisionHash: z.ZodString;
1239
+ bindingHash: z.ZodString;
1240
+ comparisonCount: z.ZodNumber;
1241
+ status: z.ZodEnum<{
1242
+ fail: "fail";
1243
+ not_applicable: "not_applicable";
1244
+ pass: "pass";
1245
+ unknown: "unknown";
1246
+ }>;
1247
+ }, z.core.$strict>;
1248
+ }, z.core.$strict>, z.ZodObject<{
1249
+ schemaVersion: z.ZodLiteral<1>;
1250
+ id: z.ZodString;
1251
+ source: z.ZodObject<{
1252
+ tool: z.ZodString;
1253
+ version: z.ZodOptional<z.ZodString>;
1254
+ artifactRef: z.ZodString;
1255
+ }, z.core.$strict>;
1256
+ context: z.ZodObject<{
1257
+ subject: z.ZodOptional<z.ZodObject<{
1258
+ repositoryId: z.ZodOptional<z.ZodString>;
1259
+ prHeadSha: z.ZodOptional<z.ZodString>;
1260
+ testedCommitSha: z.ZodString;
1261
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1262
+ sourceTreeHash: z.ZodString;
1263
+ dirty: z.ZodBoolean;
1264
+ baseSha: z.ZodOptional<z.ZodString>;
1265
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1266
+ }, z.core.$strict>>;
1267
+ manifestRef: z.ZodOptional<z.ZodString>;
1268
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1269
+ effectivePolicyHash: z.ZodString;
1270
+ contractHash: z.ZodOptional<z.ZodString>;
1271
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1272
+ collectedAt: z.ZodISODateTime;
1273
+ }, z.core.$strict>;
1274
+ provenance: z.ZodObject<{
1275
+ artifactIntegrity: z.ZodEnum<{
1276
+ fail: "fail";
1277
+ not_applicable: "not_applicable";
1278
+ pass: "pass";
1279
+ unknown: "unknown";
1280
+ }>;
1281
+ producerTrust: z.ZodEnum<{
1282
+ fail: "fail";
1283
+ not_applicable: "not_applicable";
1284
+ pass: "pass";
1285
+ unknown: "unknown";
1286
+ }>;
1287
+ subjectMatch: z.ZodEnum<{
1288
+ fail: "fail";
1289
+ not_applicable: "not_applicable";
1290
+ pass: "pass";
1291
+ unknown: "unknown";
1292
+ }>;
1293
+ reasons: z.ZodArray<z.ZodString>;
1294
+ }, z.core.$strict>;
1295
+ subjectRefs: z.ZodArray<z.ZodString>;
1296
+ kind: z.ZodLiteral<"approval">;
1297
+ payload: z.ZodObject<{
1298
+ schemaVersion: z.ZodLiteral<1>;
1299
+ id: z.ZodString;
1300
+ target: z.ZodObject<{
1301
+ kind: z.ZodEnum<{
1302
+ contract: "contract";
1303
+ intent: "intent";
1304
+ policy: "policy";
1305
+ registry: "registry";
1306
+ }>;
1307
+ id: z.ZodString;
1308
+ contentHash: z.ZodString;
1309
+ }, z.core.$strict>;
1310
+ status: z.ZodEnum<{
1311
+ fail: "fail";
1312
+ not_applicable: "not_applicable";
1313
+ pass: "pass";
1314
+ unknown: "unknown";
1315
+ }>;
1316
+ source: z.ZodObject<{
1317
+ provider: z.ZodString;
1318
+ ref: z.ZodString;
1319
+ }, z.core.$strict>;
1320
+ approvedBy: z.ZodArray<z.ZodString>;
1321
+ subjectCommitSha: z.ZodOptional<z.ZodString>;
1322
+ reasons: z.ZodArray<z.ZodString>;
1323
+ }, z.core.$strict>;
1324
+ }, z.core.$strict>, z.ZodObject<{
1325
+ schemaVersion: z.ZodLiteral<1>;
1326
+ id: z.ZodString;
1327
+ source: z.ZodObject<{
1328
+ tool: z.ZodString;
1329
+ version: z.ZodOptional<z.ZodString>;
1330
+ artifactRef: z.ZodString;
1331
+ }, z.core.$strict>;
1332
+ context: z.ZodObject<{
1333
+ subject: z.ZodOptional<z.ZodObject<{
1334
+ repositoryId: z.ZodOptional<z.ZodString>;
1335
+ prHeadSha: z.ZodOptional<z.ZodString>;
1336
+ testedCommitSha: z.ZodString;
1337
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1338
+ sourceTreeHash: z.ZodString;
1339
+ dirty: z.ZodBoolean;
1340
+ baseSha: z.ZodOptional<z.ZodString>;
1341
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1342
+ }, z.core.$strict>>;
1343
+ manifestRef: z.ZodOptional<z.ZodString>;
1344
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1345
+ effectivePolicyHash: z.ZodString;
1346
+ contractHash: z.ZodOptional<z.ZodString>;
1347
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1348
+ collectedAt: z.ZodISODateTime;
1349
+ }, z.core.$strict>;
1350
+ provenance: z.ZodObject<{
1351
+ artifactIntegrity: z.ZodEnum<{
1352
+ fail: "fail";
1353
+ not_applicable: "not_applicable";
1354
+ pass: "pass";
1355
+ unknown: "unknown";
1356
+ }>;
1357
+ producerTrust: z.ZodEnum<{
1358
+ fail: "fail";
1359
+ not_applicable: "not_applicable";
1360
+ pass: "pass";
1361
+ unknown: "unknown";
1362
+ }>;
1363
+ subjectMatch: z.ZodEnum<{
1364
+ fail: "fail";
1365
+ not_applicable: "not_applicable";
1366
+ pass: "pass";
1367
+ unknown: "unknown";
1368
+ }>;
1369
+ reasons: z.ZodArray<z.ZodString>;
1370
+ }, z.core.$strict>;
1371
+ subjectRefs: z.ZodArray<z.ZodString>;
1372
+ kind: z.ZodLiteral<"execution_manifest">;
1373
+ payload: z.ZodObject<{
1374
+ schemaVersion: z.ZodLiteral<1>;
1375
+ executionId: z.ZodString;
1376
+ subject: z.ZodObject<{
1377
+ repositoryId: z.ZodOptional<z.ZodString>;
1378
+ prHeadSha: z.ZodOptional<z.ZodString>;
1379
+ testedCommitSha: z.ZodString;
1380
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1381
+ sourceTreeHash: z.ZodString;
1382
+ dirty: z.ZodBoolean;
1383
+ baseSha: z.ZodOptional<z.ZodString>;
1384
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1385
+ }, z.core.$strict>;
1386
+ producer: z.ZodObject<{
1387
+ tool: z.ZodString;
1388
+ version: z.ZodString;
1389
+ collectorVersion: z.ZodString;
1390
+ }, z.core.$strict>;
1391
+ commandHash: z.ZodString;
1392
+ configHashes: z.ZodRecord<z.ZodString, z.ZodString>;
1393
+ dependencyLockHash: z.ZodOptional<z.ZodString>;
1394
+ environment: z.ZodObject<{
1395
+ nodeVersion: z.ZodString;
1396
+ platform: z.ZodString;
1397
+ }, z.core.$strict>;
1398
+ startedAt: z.ZodISODateTime;
1399
+ completedAt: z.ZodISODateTime;
1400
+ exitCode: z.ZodNumber;
1401
+ artifacts: z.ZodArray<z.ZodObject<{
1402
+ ref: z.ZodString;
1403
+ sha256: z.ZodString;
1404
+ kind: z.ZodString;
1405
+ scope: z.ZodArray<z.ZodString>;
1406
+ }, z.core.$strict>>;
1407
+ ci: z.ZodOptional<z.ZodObject<{
1408
+ repositoryId: z.ZodString;
1409
+ workflowRef: z.ZodString;
1410
+ runId: z.ZodString;
1411
+ runAttempt: z.ZodNumber;
1412
+ jobId: z.ZodString;
1413
+ eventName: z.ZodString;
1414
+ }, z.core.$strict>>;
1415
+ attestationRef: z.ZodOptional<z.ZodString>;
1416
+ }, z.core.$strict>;
1417
+ }, z.core.$strict>, z.ZodObject<{
1418
+ schemaVersion: z.ZodLiteral<1>;
1419
+ id: z.ZodString;
1420
+ source: z.ZodObject<{
1421
+ tool: z.ZodString;
1422
+ version: z.ZodOptional<z.ZodString>;
1423
+ artifactRef: z.ZodString;
1424
+ }, z.core.$strict>;
1425
+ context: z.ZodObject<{
1426
+ subject: z.ZodOptional<z.ZodObject<{
1427
+ repositoryId: z.ZodOptional<z.ZodString>;
1428
+ prHeadSha: z.ZodOptional<z.ZodString>;
1429
+ testedCommitSha: z.ZodString;
1430
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1431
+ sourceTreeHash: z.ZodString;
1432
+ dirty: z.ZodBoolean;
1433
+ baseSha: z.ZodOptional<z.ZodString>;
1434
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1435
+ }, z.core.$strict>>;
1436
+ manifestRef: z.ZodOptional<z.ZodString>;
1437
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1438
+ effectivePolicyHash: z.ZodString;
1439
+ contractHash: z.ZodOptional<z.ZodString>;
1440
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1441
+ collectedAt: z.ZodISODateTime;
1442
+ }, z.core.$strict>;
1443
+ provenance: z.ZodObject<{
1444
+ artifactIntegrity: z.ZodEnum<{
1445
+ fail: "fail";
1446
+ not_applicable: "not_applicable";
1447
+ pass: "pass";
1448
+ unknown: "unknown";
1449
+ }>;
1450
+ producerTrust: z.ZodEnum<{
1451
+ fail: "fail";
1452
+ not_applicable: "not_applicable";
1453
+ pass: "pass";
1454
+ unknown: "unknown";
1455
+ }>;
1456
+ subjectMatch: z.ZodEnum<{
1457
+ fail: "fail";
1458
+ not_applicable: "not_applicable";
1459
+ pass: "pass";
1460
+ unknown: "unknown";
1461
+ }>;
1462
+ reasons: z.ZodArray<z.ZodString>;
1463
+ }, z.core.$strict>;
1464
+ subjectRefs: z.ZodArray<z.ZodString>;
1465
+ kind: z.ZodLiteral<"target_observation">;
1466
+ payload: z.ZodObject<{
1467
+ contractId: z.ZodString;
1468
+ caseIds: z.ZodArray<z.ZodString>;
1469
+ targetRef: z.ZodString;
1470
+ method: z.ZodString;
1471
+ observations: z.ZodNumber;
1472
+ status: z.ZodEnum<{
1473
+ fail: "fail";
1474
+ not_applicable: "not_applicable";
1475
+ pass: "pass";
1476
+ unknown: "unknown";
1477
+ }>;
1478
+ }, z.core.$strict>;
1479
+ }, z.core.$strict>, z.ZodObject<{
1480
+ schemaVersion: z.ZodLiteral<1>;
1481
+ id: z.ZodString;
1482
+ source: z.ZodObject<{
1483
+ tool: z.ZodString;
1484
+ version: z.ZodOptional<z.ZodString>;
1485
+ artifactRef: z.ZodString;
1486
+ }, z.core.$strict>;
1487
+ context: z.ZodObject<{
1488
+ subject: z.ZodOptional<z.ZodObject<{
1489
+ repositoryId: z.ZodOptional<z.ZodString>;
1490
+ prHeadSha: z.ZodOptional<z.ZodString>;
1491
+ testedCommitSha: z.ZodString;
1492
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1493
+ sourceTreeHash: z.ZodString;
1494
+ dirty: z.ZodBoolean;
1495
+ baseSha: z.ZodOptional<z.ZodString>;
1496
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1497
+ }, z.core.$strict>>;
1498
+ manifestRef: z.ZodOptional<z.ZodString>;
1499
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1500
+ effectivePolicyHash: z.ZodString;
1501
+ contractHash: z.ZodOptional<z.ZodString>;
1502
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1503
+ collectedAt: z.ZodISODateTime;
1504
+ }, z.core.$strict>;
1505
+ provenance: z.ZodObject<{
1506
+ artifactIntegrity: z.ZodEnum<{
1507
+ fail: "fail";
1508
+ not_applicable: "not_applicable";
1509
+ pass: "pass";
1510
+ unknown: "unknown";
1511
+ }>;
1512
+ producerTrust: z.ZodEnum<{
1513
+ fail: "fail";
1514
+ not_applicable: "not_applicable";
1515
+ pass: "pass";
1516
+ unknown: "unknown";
1517
+ }>;
1518
+ subjectMatch: z.ZodEnum<{
1519
+ fail: "fail";
1520
+ not_applicable: "not_applicable";
1521
+ pass: "pass";
1522
+ unknown: "unknown";
1523
+ }>;
1524
+ reasons: z.ZodArray<z.ZodString>;
1525
+ }, z.core.$strict>;
1526
+ subjectRefs: z.ZodArray<z.ZodString>;
1527
+ kind: z.ZodLiteral<"canary">;
1528
+ payload: z.ZodObject<{
1529
+ contractId: z.ZodString;
1530
+ caseIds: z.ZodArray<z.ZodString>;
1531
+ targetRef: z.ZodString;
1532
+ method: z.ZodString;
1533
+ detected: z.ZodNumber;
1534
+ total: z.ZodNumber;
1535
+ status: z.ZodEnum<{
1536
+ fail: "fail";
1537
+ not_applicable: "not_applicable";
1538
+ pass: "pass";
1539
+ unknown: "unknown";
1540
+ }>;
1541
+ }, z.core.$strict>;
1542
+ }, z.core.$strict>, z.ZodObject<{
1543
+ schemaVersion: z.ZodLiteral<1>;
1544
+ id: z.ZodString;
1545
+ source: z.ZodObject<{
1546
+ tool: z.ZodString;
1547
+ version: z.ZodOptional<z.ZodString>;
1548
+ artifactRef: z.ZodString;
1549
+ }, z.core.$strict>;
1550
+ context: z.ZodObject<{
1551
+ subject: z.ZodOptional<z.ZodObject<{
1552
+ repositoryId: z.ZodOptional<z.ZodString>;
1553
+ prHeadSha: z.ZodOptional<z.ZodString>;
1554
+ testedCommitSha: z.ZodString;
1555
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1556
+ sourceTreeHash: z.ZodString;
1557
+ dirty: z.ZodBoolean;
1558
+ baseSha: z.ZodOptional<z.ZodString>;
1559
+ diffBaseSha: z.ZodOptional<z.ZodString>;
1560
+ }, z.core.$strict>>;
1561
+ manifestRef: z.ZodOptional<z.ZodString>;
1562
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
1563
+ effectivePolicyHash: z.ZodString;
1564
+ contractHash: z.ZodOptional<z.ZodString>;
1565
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
1566
+ collectedAt: z.ZodISODateTime;
1567
+ }, z.core.$strict>;
1568
+ provenance: z.ZodObject<{
1569
+ artifactIntegrity: z.ZodEnum<{
1570
+ fail: "fail";
1571
+ not_applicable: "not_applicable";
1572
+ pass: "pass";
1573
+ unknown: "unknown";
1574
+ }>;
1575
+ producerTrust: z.ZodEnum<{
1576
+ fail: "fail";
1577
+ not_applicable: "not_applicable";
1578
+ pass: "pass";
1579
+ unknown: "unknown";
1580
+ }>;
1581
+ subjectMatch: z.ZodEnum<{
1582
+ fail: "fail";
1583
+ not_applicable: "not_applicable";
1584
+ pass: "pass";
1585
+ unknown: "unknown";
1586
+ }>;
1587
+ reasons: z.ZodArray<z.ZodString>;
1588
+ }, z.core.$strict>;
1589
+ subjectRefs: z.ZodArray<z.ZodString>;
1590
+ kind: z.ZodLiteral<"assurance">;
1591
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1592
+ schemaVersion: z.ZodLiteral<1>;
1593
+ contractId: z.ZodString;
1594
+ revisionHash: z.ZodString;
1595
+ subject: z.ZodObject<{
1596
+ testedCommitSha: z.ZodString;
1597
+ sourceTreeHash: z.ZodString;
1598
+ }, z.core.$strict>;
1599
+ inputHashes: z.ZodRecord<z.ZodString, z.ZodString>;
1600
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1601
+ checkId: z.ZodString;
1602
+ checkHash: z.ZodString;
1603
+ complete: z.ZodBoolean;
1604
+ comparisonCount: z.ZodNumber;
1605
+ method: z.ZodLiteral<"example">;
1606
+ samples: z.ZodArray<z.ZodObject<{
1607
+ id: z.ZodString;
1608
+ input: z.ZodJSONSchema;
1609
+ inputHash: z.ZodString;
1610
+ expected: z.ZodJSONSchema;
1611
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1612
+ calls: z.ZodNumber;
1613
+ receipts: z.ZodArray<z.ZodObject<{
1614
+ callId: z.ZodString;
1615
+ targetRef: z.ZodString;
1616
+ implementation: z.ZodString;
1617
+ implementationHash: z.ZodString;
1618
+ variant: z.ZodEnum<{
1619
+ baseline: "baseline";
1620
+ fault: "fault";
1621
+ }>;
1622
+ faultId: z.ZodOptional<z.ZodString>;
1623
+ input: z.ZodJSONSchema;
1624
+ output: z.ZodOptional<z.ZodJSONSchema>;
1625
+ error: z.ZodOptional<z.ZodString>;
1626
+ }, z.core.$strict>>;
1627
+ error: z.ZodOptional<z.ZodString>;
1628
+ }, z.core.$strict>>;
1629
+ }, z.core.$strict>, z.ZodObject<{
1630
+ checkId: z.ZodString;
1631
+ checkHash: z.ZodString;
1632
+ complete: z.ZodBoolean;
1633
+ comparisonCount: z.ZodNumber;
1634
+ method: z.ZodLiteral<"effects">;
1635
+ scope: z.ZodArray<z.ZodString>;
1636
+ window: z.ZodObject<{
1637
+ settledBy: z.ZodString;
1638
+ durationMs: z.ZodNumber;
1639
+ }, z.core.$strict>;
1640
+ samples: z.ZodArray<z.ZodObject<{
1641
+ id: z.ZodString;
1642
+ input: z.ZodJSONSchema;
1643
+ inputHash: z.ZodString;
1644
+ expected: z.ZodJSONSchema;
1645
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1646
+ calls: z.ZodNumber;
1647
+ receipts: z.ZodArray<z.ZodObject<{
1648
+ callId: z.ZodString;
1649
+ targetRef: z.ZodString;
1650
+ implementation: z.ZodString;
1651
+ implementationHash: z.ZodString;
1652
+ variant: z.ZodEnum<{
1653
+ baseline: "baseline";
1654
+ fault: "fault";
1655
+ }>;
1656
+ faultId: z.ZodOptional<z.ZodString>;
1657
+ input: z.ZodJSONSchema;
1658
+ output: z.ZodOptional<z.ZodJSONSchema>;
1659
+ error: z.ZodOptional<z.ZodString>;
1660
+ }, z.core.$strict>>;
1661
+ error: z.ZodOptional<z.ZodString>;
1662
+ before: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1663
+ after: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1664
+ effects: z.ZodArray<z.ZodObject<{
1665
+ eventId: z.ZodString;
1666
+ id: z.ZodString;
1667
+ scope: z.ZodString;
1668
+ operation: z.ZodString;
1669
+ targetRef: z.ZodString;
1670
+ callId: z.ZodString;
1671
+ }, z.core.$strict>>;
1672
+ resourceObservations: z.ZodArray<z.ZodObject<{
1673
+ scope: z.ZodString;
1674
+ adapter: z.ZodString;
1675
+ adapterHash: z.ZodString;
1676
+ targets: z.ZodArray<z.ZodString>;
1677
+ callIds: z.ZodArray<z.ZodString>;
1678
+ elapsedMs: z.ZodNumber;
1679
+ settledBy: z.ZodString;
1680
+ settled: z.ZodBoolean;
1681
+ }, z.core.$strict>>;
1682
+ }, z.core.$strict>>;
1683
+ }, z.core.$strict>, z.ZodObject<{
1684
+ checkId: z.ZodString;
1685
+ checkHash: z.ZodString;
1686
+ complete: z.ZodBoolean;
1687
+ comparisonCount: z.ZodNumber;
1688
+ method: z.ZodLiteral<"property">;
1689
+ domain: z.ZodJSONSchema;
1690
+ seed: z.ZodString;
1691
+ runs: z.ZodNumber;
1692
+ valid: z.ZodNumber;
1693
+ discarded: z.ZodNumber;
1694
+ samples: z.ZodArray<z.ZodObject<{
1695
+ id: z.ZodString;
1696
+ input: z.ZodJSONSchema;
1697
+ inputHash: z.ZodString;
1698
+ expected: z.ZodJSONSchema;
1699
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1700
+ calls: z.ZodNumber;
1701
+ receipts: z.ZodArray<z.ZodObject<{
1702
+ callId: z.ZodString;
1703
+ targetRef: z.ZodString;
1704
+ implementation: z.ZodString;
1705
+ implementationHash: z.ZodString;
1706
+ variant: z.ZodEnum<{
1707
+ baseline: "baseline";
1708
+ fault: "fault";
1709
+ }>;
1710
+ faultId: z.ZodOptional<z.ZodString>;
1711
+ input: z.ZodJSONSchema;
1712
+ output: z.ZodOptional<z.ZodJSONSchema>;
1713
+ error: z.ZodOptional<z.ZodString>;
1714
+ }, z.core.$strict>>;
1715
+ error: z.ZodOptional<z.ZodString>;
1716
+ index: z.ZodNumber;
1717
+ discarded: z.ZodBoolean;
1718
+ classes: z.ZodArray<z.ZodString>;
1719
+ }, z.core.$strict>>;
1720
+ counterexamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1721
+ sampleId: z.ZodString;
1722
+ seed: z.ZodString;
1723
+ originalInput: z.ZodJSONSchema;
1724
+ shrunkInput: z.ZodOptional<z.ZodJSONSchema>;
1725
+ shrunkSampleId: z.ZodOptional<z.ZodString>;
1726
+ replay: z.ZodOptional<z.ZodString>;
1727
+ }, z.core.$strict>>>;
1728
+ }, z.core.$strict>, z.ZodObject<{
1729
+ checkId: z.ZodString;
1730
+ checkHash: z.ZodString;
1731
+ complete: z.ZodBoolean;
1732
+ comparisonCount: z.ZodNumber;
1733
+ method: z.ZodLiteral<"sequence">;
1734
+ seed: z.ZodString;
1735
+ maxSteps: z.ZodNumber;
1736
+ traces: z.ZodArray<z.ZodObject<{
1737
+ id: z.ZodString;
1738
+ initialModel: z.ZodJSONSchema;
1739
+ initialExpected: z.ZodJSONSchema;
1740
+ initialActual: z.ZodJSONSchema;
1741
+ steps: z.ZodArray<z.ZodObject<{
1742
+ id: z.ZodString;
1743
+ input: z.ZodJSONSchema;
1744
+ inputHash: z.ZodString;
1745
+ expected: z.ZodJSONSchema;
1746
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1747
+ calls: z.ZodNumber;
1748
+ receipts: z.ZodArray<z.ZodObject<{
1749
+ callId: z.ZodString;
1750
+ targetRef: z.ZodString;
1751
+ implementation: z.ZodString;
1752
+ implementationHash: z.ZodString;
1753
+ variant: z.ZodEnum<{
1754
+ baseline: "baseline";
1755
+ fault: "fault";
1756
+ }>;
1757
+ faultId: z.ZodOptional<z.ZodString>;
1758
+ input: z.ZodJSONSchema;
1759
+ output: z.ZodOptional<z.ZodJSONSchema>;
1760
+ error: z.ZodOptional<z.ZodString>;
1761
+ }, z.core.$strict>>;
1762
+ error: z.ZodOptional<z.ZodString>;
1763
+ index: z.ZodNumber;
1764
+ action: z.ZodString;
1765
+ modelBefore: z.ZodJSONSchema;
1766
+ modelAfter: z.ZodJSONSchema;
1767
+ }, z.core.$strict>>;
1768
+ }, z.core.$strict>>;
1769
+ }, z.core.$strict>, z.ZodObject<{
1770
+ checkId: z.ZodString;
1771
+ checkHash: z.ZodString;
1772
+ complete: z.ZodBoolean;
1773
+ comparisonCount: z.ZodNumber;
1774
+ method: z.ZodLiteral<"architecture">;
1775
+ files: z.ZodArray<z.ZodObject<{
1776
+ path: z.ZodString;
1777
+ sha256: z.ZodString;
1778
+ imports: z.ZodArray<z.ZodObject<{
1779
+ specifier: z.ZodString;
1780
+ resolved: z.ZodOptional<z.ZodString>;
1781
+ dynamic: z.ZodBoolean;
1782
+ supported: z.ZodBoolean;
1783
+ }, z.core.$strict>>;
1784
+ }, z.core.$strict>>;
1785
+ rules: z.ZodArray<z.ZodString>;
1786
+ violations: z.ZodArray<z.ZodObject<{
1787
+ ruleId: z.ZodString;
1788
+ file: z.ZodString;
1789
+ specifier: z.ZodString;
1790
+ }, z.core.$strict>>;
1791
+ unsupported: z.ZodArray<z.ZodObject<{
1792
+ file: z.ZodString;
1793
+ reason: z.ZodString;
1794
+ }, z.core.$strict>>;
1795
+ }, z.core.$strict>, z.ZodObject<{
1796
+ checkId: z.ZodString;
1797
+ checkHash: z.ZodString;
1798
+ complete: z.ZodBoolean;
1799
+ comparisonCount: z.ZodNumber;
1800
+ method: z.ZodLiteral<"journey">;
1801
+ entrypoint: z.ZodString;
1802
+ environment: z.ZodJSONSchema;
1803
+ mockBoundaries: z.ZodArray<z.ZodString>;
1804
+ steps: z.ZodArray<z.ZodObject<{
1805
+ id: z.ZodString;
1806
+ input: z.ZodJSONSchema;
1807
+ inputHash: z.ZodString;
1808
+ expected: z.ZodJSONSchema;
1809
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1810
+ calls: z.ZodNumber;
1811
+ receipts: z.ZodArray<z.ZodObject<{
1812
+ callId: z.ZodString;
1813
+ targetRef: z.ZodString;
1814
+ implementation: z.ZodString;
1815
+ implementationHash: z.ZodString;
1816
+ variant: z.ZodEnum<{
1817
+ baseline: "baseline";
1818
+ fault: "fault";
1819
+ }>;
1820
+ faultId: z.ZodOptional<z.ZodString>;
1821
+ input: z.ZodJSONSchema;
1822
+ output: z.ZodOptional<z.ZodJSONSchema>;
1823
+ error: z.ZodOptional<z.ZodString>;
1824
+ }, z.core.$strict>>;
1825
+ error: z.ZodOptional<z.ZodString>;
1826
+ action: z.ZodString;
1827
+ layers: z.ZodArray<z.ZodObject<{
1828
+ id: z.ZodString;
1829
+ sourceRef: z.ZodString;
1830
+ observations: z.ZodArray<z.ZodObject<{
1831
+ invocationId: z.ZodString;
1832
+ observationId: z.ZodString;
1833
+ targetRef: z.ZodString;
1834
+ mocked: z.ZodBoolean;
1835
+ input: z.ZodJSONSchema;
1836
+ actual: z.ZodJSONSchema;
1837
+ }, z.core.$strict>>;
1838
+ }, z.core.$strict>>;
1839
+ }, z.core.$strict>>;
1840
+ media: z.ZodArray<z.ZodObject<{
1841
+ ref: z.ZodString;
1842
+ sha256: z.ZodString;
1843
+ stepId: z.ZodString;
1844
+ }, z.core.$strict>>;
1845
+ }, z.core.$strict>], "method">>;
1846
+ faults: z.ZodArray<z.ZodObject<{
1847
+ faultId: z.ZodString;
1848
+ checkId: z.ZodString;
1849
+ implementationHash: z.ZodString;
1850
+ observation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1851
+ checkId: z.ZodString;
1852
+ checkHash: z.ZodString;
1853
+ complete: z.ZodBoolean;
1854
+ comparisonCount: z.ZodNumber;
1855
+ method: z.ZodLiteral<"example">;
1856
+ samples: z.ZodArray<z.ZodObject<{
1857
+ id: z.ZodString;
1858
+ input: z.ZodJSONSchema;
1859
+ inputHash: z.ZodString;
1860
+ expected: z.ZodJSONSchema;
1861
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1862
+ calls: z.ZodNumber;
1863
+ receipts: z.ZodArray<z.ZodObject<{
1864
+ callId: z.ZodString;
1865
+ targetRef: z.ZodString;
1866
+ implementation: z.ZodString;
1867
+ implementationHash: z.ZodString;
1868
+ variant: z.ZodEnum<{
1869
+ baseline: "baseline";
1870
+ fault: "fault";
1871
+ }>;
1872
+ faultId: z.ZodOptional<z.ZodString>;
1873
+ input: z.ZodJSONSchema;
1874
+ output: z.ZodOptional<z.ZodJSONSchema>;
1875
+ error: z.ZodOptional<z.ZodString>;
1876
+ }, z.core.$strict>>;
1877
+ error: z.ZodOptional<z.ZodString>;
1878
+ }, z.core.$strict>>;
1879
+ }, z.core.$strict>, z.ZodObject<{
1880
+ checkId: z.ZodString;
1881
+ checkHash: z.ZodString;
1882
+ complete: z.ZodBoolean;
1883
+ comparisonCount: z.ZodNumber;
1884
+ method: z.ZodLiteral<"effects">;
1885
+ scope: z.ZodArray<z.ZodString>;
1886
+ window: z.ZodObject<{
1887
+ settledBy: z.ZodString;
1888
+ durationMs: z.ZodNumber;
1889
+ }, z.core.$strict>;
1890
+ samples: z.ZodArray<z.ZodObject<{
1891
+ id: z.ZodString;
1892
+ input: z.ZodJSONSchema;
1893
+ inputHash: z.ZodString;
1894
+ expected: z.ZodJSONSchema;
1895
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1896
+ calls: z.ZodNumber;
1897
+ receipts: z.ZodArray<z.ZodObject<{
1898
+ callId: z.ZodString;
1899
+ targetRef: z.ZodString;
1900
+ implementation: z.ZodString;
1901
+ implementationHash: z.ZodString;
1902
+ variant: z.ZodEnum<{
1903
+ baseline: "baseline";
1904
+ fault: "fault";
1905
+ }>;
1906
+ faultId: z.ZodOptional<z.ZodString>;
1907
+ input: z.ZodJSONSchema;
1908
+ output: z.ZodOptional<z.ZodJSONSchema>;
1909
+ error: z.ZodOptional<z.ZodString>;
1910
+ }, z.core.$strict>>;
1911
+ error: z.ZodOptional<z.ZodString>;
1912
+ before: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1913
+ after: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1914
+ effects: z.ZodArray<z.ZodObject<{
1915
+ eventId: z.ZodString;
1916
+ id: z.ZodString;
1917
+ scope: z.ZodString;
1918
+ operation: z.ZodString;
1919
+ targetRef: z.ZodString;
1920
+ callId: z.ZodString;
1921
+ }, z.core.$strict>>;
1922
+ resourceObservations: z.ZodArray<z.ZodObject<{
1923
+ scope: z.ZodString;
1924
+ adapter: z.ZodString;
1925
+ adapterHash: z.ZodString;
1926
+ targets: z.ZodArray<z.ZodString>;
1927
+ callIds: z.ZodArray<z.ZodString>;
1928
+ elapsedMs: z.ZodNumber;
1929
+ settledBy: z.ZodString;
1930
+ settled: z.ZodBoolean;
1931
+ }, z.core.$strict>>;
1932
+ }, z.core.$strict>>;
1933
+ }, z.core.$strict>, z.ZodObject<{
1934
+ checkId: z.ZodString;
1935
+ checkHash: z.ZodString;
1936
+ complete: z.ZodBoolean;
1937
+ comparisonCount: z.ZodNumber;
1938
+ method: z.ZodLiteral<"property">;
1939
+ domain: z.ZodJSONSchema;
1940
+ seed: z.ZodString;
1941
+ runs: z.ZodNumber;
1942
+ valid: z.ZodNumber;
1943
+ discarded: z.ZodNumber;
1944
+ samples: z.ZodArray<z.ZodObject<{
1945
+ id: z.ZodString;
1946
+ input: z.ZodJSONSchema;
1947
+ inputHash: z.ZodString;
1948
+ expected: z.ZodJSONSchema;
1949
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1950
+ calls: z.ZodNumber;
1951
+ receipts: z.ZodArray<z.ZodObject<{
1952
+ callId: z.ZodString;
1953
+ targetRef: z.ZodString;
1954
+ implementation: z.ZodString;
1955
+ implementationHash: z.ZodString;
1956
+ variant: z.ZodEnum<{
1957
+ baseline: "baseline";
1958
+ fault: "fault";
1959
+ }>;
1960
+ faultId: z.ZodOptional<z.ZodString>;
1961
+ input: z.ZodJSONSchema;
1962
+ output: z.ZodOptional<z.ZodJSONSchema>;
1963
+ error: z.ZodOptional<z.ZodString>;
1964
+ }, z.core.$strict>>;
1965
+ error: z.ZodOptional<z.ZodString>;
1966
+ index: z.ZodNumber;
1967
+ discarded: z.ZodBoolean;
1968
+ classes: z.ZodArray<z.ZodString>;
1969
+ }, z.core.$strict>>;
1970
+ counterexamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1971
+ sampleId: z.ZodString;
1972
+ seed: z.ZodString;
1973
+ originalInput: z.ZodJSONSchema;
1974
+ shrunkInput: z.ZodOptional<z.ZodJSONSchema>;
1975
+ shrunkSampleId: z.ZodOptional<z.ZodString>;
1976
+ replay: z.ZodOptional<z.ZodString>;
1977
+ }, z.core.$strict>>>;
1978
+ }, z.core.$strict>, z.ZodObject<{
1979
+ checkId: z.ZodString;
1980
+ checkHash: z.ZodString;
1981
+ complete: z.ZodBoolean;
1982
+ comparisonCount: z.ZodNumber;
1983
+ method: z.ZodLiteral<"sequence">;
1984
+ seed: z.ZodString;
1985
+ maxSteps: z.ZodNumber;
1986
+ traces: z.ZodArray<z.ZodObject<{
1987
+ id: z.ZodString;
1988
+ initialModel: z.ZodJSONSchema;
1989
+ initialExpected: z.ZodJSONSchema;
1990
+ initialActual: z.ZodJSONSchema;
1991
+ steps: z.ZodArray<z.ZodObject<{
1992
+ id: z.ZodString;
1993
+ input: z.ZodJSONSchema;
1994
+ inputHash: z.ZodString;
1995
+ expected: z.ZodJSONSchema;
1996
+ actual: z.ZodOptional<z.ZodJSONSchema>;
1997
+ calls: z.ZodNumber;
1998
+ receipts: z.ZodArray<z.ZodObject<{
1999
+ callId: z.ZodString;
2000
+ targetRef: z.ZodString;
2001
+ implementation: z.ZodString;
2002
+ implementationHash: z.ZodString;
2003
+ variant: z.ZodEnum<{
2004
+ baseline: "baseline";
2005
+ fault: "fault";
2006
+ }>;
2007
+ faultId: z.ZodOptional<z.ZodString>;
2008
+ input: z.ZodJSONSchema;
2009
+ output: z.ZodOptional<z.ZodJSONSchema>;
2010
+ error: z.ZodOptional<z.ZodString>;
2011
+ }, z.core.$strict>>;
2012
+ error: z.ZodOptional<z.ZodString>;
2013
+ index: z.ZodNumber;
2014
+ action: z.ZodString;
2015
+ modelBefore: z.ZodJSONSchema;
2016
+ modelAfter: z.ZodJSONSchema;
2017
+ }, z.core.$strict>>;
2018
+ }, z.core.$strict>>;
2019
+ }, z.core.$strict>, z.ZodObject<{
2020
+ checkId: z.ZodString;
2021
+ checkHash: z.ZodString;
2022
+ complete: z.ZodBoolean;
2023
+ comparisonCount: z.ZodNumber;
2024
+ method: z.ZodLiteral<"architecture">;
2025
+ files: z.ZodArray<z.ZodObject<{
2026
+ path: z.ZodString;
2027
+ sha256: z.ZodString;
2028
+ imports: z.ZodArray<z.ZodObject<{
2029
+ specifier: z.ZodString;
2030
+ resolved: z.ZodOptional<z.ZodString>;
2031
+ dynamic: z.ZodBoolean;
2032
+ supported: z.ZodBoolean;
2033
+ }, z.core.$strict>>;
2034
+ }, z.core.$strict>>;
2035
+ rules: z.ZodArray<z.ZodString>;
2036
+ violations: z.ZodArray<z.ZodObject<{
2037
+ ruleId: z.ZodString;
2038
+ file: z.ZodString;
2039
+ specifier: z.ZodString;
2040
+ }, z.core.$strict>>;
2041
+ unsupported: z.ZodArray<z.ZodObject<{
2042
+ file: z.ZodString;
2043
+ reason: z.ZodString;
2044
+ }, z.core.$strict>>;
2045
+ }, z.core.$strict>, z.ZodObject<{
2046
+ checkId: z.ZodString;
2047
+ checkHash: z.ZodString;
2048
+ complete: z.ZodBoolean;
2049
+ comparisonCount: z.ZodNumber;
2050
+ method: z.ZodLiteral<"journey">;
2051
+ entrypoint: z.ZodString;
2052
+ environment: z.ZodJSONSchema;
2053
+ mockBoundaries: z.ZodArray<z.ZodString>;
2054
+ steps: z.ZodArray<z.ZodObject<{
2055
+ id: z.ZodString;
2056
+ input: z.ZodJSONSchema;
2057
+ inputHash: z.ZodString;
2058
+ expected: z.ZodJSONSchema;
2059
+ actual: z.ZodOptional<z.ZodJSONSchema>;
2060
+ calls: z.ZodNumber;
2061
+ receipts: z.ZodArray<z.ZodObject<{
2062
+ callId: z.ZodString;
2063
+ targetRef: z.ZodString;
2064
+ implementation: z.ZodString;
2065
+ implementationHash: z.ZodString;
2066
+ variant: z.ZodEnum<{
2067
+ baseline: "baseline";
2068
+ fault: "fault";
2069
+ }>;
2070
+ faultId: z.ZodOptional<z.ZodString>;
2071
+ input: z.ZodJSONSchema;
2072
+ output: z.ZodOptional<z.ZodJSONSchema>;
2073
+ error: z.ZodOptional<z.ZodString>;
2074
+ }, z.core.$strict>>;
2075
+ error: z.ZodOptional<z.ZodString>;
2076
+ action: z.ZodString;
2077
+ layers: z.ZodArray<z.ZodObject<{
2078
+ id: z.ZodString;
2079
+ sourceRef: z.ZodString;
2080
+ observations: z.ZodArray<z.ZodObject<{
2081
+ invocationId: z.ZodString;
2082
+ observationId: z.ZodString;
2083
+ targetRef: z.ZodString;
2084
+ mocked: z.ZodBoolean;
2085
+ input: z.ZodJSONSchema;
2086
+ actual: z.ZodJSONSchema;
2087
+ }, z.core.$strict>>;
2088
+ }, z.core.$strict>>;
2089
+ }, z.core.$strict>>;
2090
+ media: z.ZodArray<z.ZodObject<{
2091
+ ref: z.ZodString;
2092
+ sha256: z.ZodString;
2093
+ stepId: z.ZodString;
2094
+ }, z.core.$strict>>;
2095
+ }, z.core.$strict>], "method">;
2096
+ }, z.core.$strict>>;
2097
+ }, z.core.$strict>, z.ZodObject<{
2098
+ status: z.ZodLiteral<"unknown">;
2099
+ reason: z.ZodString;
2100
+ }, z.core.$strict>]>;
2101
+ }, z.core.$strict>, z.ZodObject<{
2102
+ schemaVersion: z.ZodLiteral<1>;
2103
+ id: z.ZodString;
2104
+ source: z.ZodObject<{
2105
+ tool: z.ZodString;
2106
+ version: z.ZodOptional<z.ZodString>;
2107
+ artifactRef: z.ZodString;
2108
+ }, z.core.$strict>;
2109
+ context: z.ZodObject<{
2110
+ subject: z.ZodOptional<z.ZodObject<{
2111
+ repositoryId: z.ZodOptional<z.ZodString>;
2112
+ prHeadSha: z.ZodOptional<z.ZodString>;
2113
+ testedCommitSha: z.ZodString;
2114
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2115
+ sourceTreeHash: z.ZodString;
2116
+ dirty: z.ZodBoolean;
2117
+ baseSha: z.ZodOptional<z.ZodString>;
2118
+ diffBaseSha: z.ZodOptional<z.ZodString>;
2119
+ }, z.core.$strict>>;
2120
+ manifestRef: z.ZodOptional<z.ZodString>;
2121
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
2122
+ effectivePolicyHash: z.ZodString;
2123
+ contractHash: z.ZodOptional<z.ZodString>;
2124
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
2125
+ collectedAt: z.ZodISODateTime;
2126
+ }, z.core.$strict>;
2127
+ provenance: z.ZodObject<{
2128
+ artifactIntegrity: z.ZodEnum<{
2129
+ fail: "fail";
2130
+ not_applicable: "not_applicable";
2131
+ pass: "pass";
2132
+ unknown: "unknown";
2133
+ }>;
2134
+ producerTrust: z.ZodEnum<{
2135
+ fail: "fail";
2136
+ not_applicable: "not_applicable";
2137
+ pass: "pass";
2138
+ unknown: "unknown";
2139
+ }>;
2140
+ subjectMatch: z.ZodEnum<{
2141
+ fail: "fail";
2142
+ not_applicable: "not_applicable";
2143
+ pass: "pass";
2144
+ unknown: "unknown";
2145
+ }>;
2146
+ reasons: z.ZodArray<z.ZodString>;
2147
+ }, z.core.$strict>;
2148
+ subjectRefs: z.ZodArray<z.ZodString>;
2149
+ kind: z.ZodLiteral<"formal_model">;
2150
+ payload: z.ZodUnion<readonly [z.ZodObject<{
2151
+ schemaVersion: z.ZodLiteral<1>;
2152
+ modelId: z.ZodString;
2153
+ identity: z.ZodObject<{
2154
+ modelHash: z.ZodString;
2155
+ configHash: z.ZodString;
2156
+ commandHash: z.ZodString;
2157
+ driverHash: z.ZodOptional<z.ZodString>;
2158
+ implementationHash: z.ZodOptional<z.ZodString>;
2159
+ traceHash: z.ZodOptional<z.ZodString>;
2160
+ }, z.core.$strict>;
2161
+ stages: z.ZodArray<z.ZodObject<{
2162
+ stage: z.ZodEnum<{
2163
+ parse: "parse";
2164
+ run: "run";
2165
+ test: "test";
2166
+ typecheck: "typecheck";
2167
+ verify: "verify";
2168
+ }>;
2169
+ status: z.ZodEnum<{
2170
+ fail: "fail";
2171
+ pass: "pass";
2172
+ unknown: "unknown";
2173
+ }>;
2174
+ complete: z.ZodBoolean;
2175
+ exitCode: z.ZodNullable<z.ZodNumber>;
2176
+ toolVersion: z.ZodString;
2177
+ backend: z.ZodEnum<{
2178
+ apalache: "apalache";
2179
+ quint: "quint";
2180
+ rust: "rust";
2181
+ tlc: "tlc";
2182
+ typescript: "typescript";
2183
+ }>;
2184
+ method: z.ZodEnum<{
2185
+ bounded_model_check: "bounded_model_check";
2186
+ finite_state_check: "finite_state_check";
2187
+ parse: "parse";
2188
+ simulation: "simulation";
2189
+ spec_test: "spec_test";
2190
+ typecheck: "typecheck";
2191
+ }>;
2192
+ properties: z.ZodArray<z.ZodString>;
2193
+ maxSteps: z.ZodOptional<z.ZodNumber>;
2194
+ maxSamples: z.ZodOptional<z.ZodNumber>;
2195
+ seed: z.ZodOptional<z.ZodString>;
2196
+ traceSeed: z.ZodOptional<z.ZodString>;
2197
+ backendVersion: z.ZodOptional<z.ZodString>;
2198
+ diagnostics: z.ZodArray<z.ZodString>;
2199
+ stdoutHash: z.ZodOptional<z.ZodString>;
2200
+ stderrHash: z.ZodOptional<z.ZodString>;
2201
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2202
+ ref: z.ZodString;
2203
+ sha256: z.ZodString;
2204
+ }, z.core.$strict>>>;
2205
+ }, z.core.$strict>>;
2206
+ }, z.core.$strict>, z.ZodObject<{
2207
+ status: z.ZodLiteral<"unknown">;
2208
+ reason: z.ZodString;
2209
+ }, z.core.$strict>]>;
2210
+ }, z.core.$strict>, z.ZodObject<{
2211
+ schemaVersion: z.ZodLiteral<1>;
2212
+ id: z.ZodString;
2213
+ source: z.ZodObject<{
2214
+ tool: z.ZodString;
2215
+ version: z.ZodOptional<z.ZodString>;
2216
+ artifactRef: z.ZodString;
2217
+ }, z.core.$strict>;
2218
+ context: z.ZodObject<{
2219
+ subject: z.ZodOptional<z.ZodObject<{
2220
+ repositoryId: z.ZodOptional<z.ZodString>;
2221
+ prHeadSha: z.ZodOptional<z.ZodString>;
2222
+ testedCommitSha: z.ZodString;
2223
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2224
+ sourceTreeHash: z.ZodString;
2225
+ dirty: z.ZodBoolean;
2226
+ baseSha: z.ZodOptional<z.ZodString>;
2227
+ diffBaseSha: z.ZodOptional<z.ZodString>;
2228
+ }, z.core.$strict>>;
2229
+ manifestRef: z.ZodOptional<z.ZodString>;
2230
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
2231
+ effectivePolicyHash: z.ZodString;
2232
+ contractHash: z.ZodOptional<z.ZodString>;
2233
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
2234
+ collectedAt: z.ZodISODateTime;
2235
+ }, z.core.$strict>;
2236
+ provenance: z.ZodObject<{
2237
+ artifactIntegrity: z.ZodEnum<{
2238
+ fail: "fail";
2239
+ not_applicable: "not_applicable";
2240
+ pass: "pass";
2241
+ unknown: "unknown";
2242
+ }>;
2243
+ producerTrust: z.ZodEnum<{
2244
+ fail: "fail";
2245
+ not_applicable: "not_applicable";
2246
+ pass: "pass";
2247
+ unknown: "unknown";
2248
+ }>;
2249
+ subjectMatch: z.ZodEnum<{
2250
+ fail: "fail";
2251
+ not_applicable: "not_applicable";
2252
+ pass: "pass";
2253
+ unknown: "unknown";
2254
+ }>;
2255
+ reasons: z.ZodArray<z.ZodString>;
2256
+ }, z.core.$strict>;
2257
+ subjectRefs: z.ZodArray<z.ZodString>;
2258
+ kind: z.ZodLiteral<"model_conformance">;
2259
+ payload: z.ZodUnion<readonly [z.ZodObject<{
2260
+ schemaVersion: z.ZodLiteral<1>;
2261
+ modelId: z.ZodString;
2262
+ identity: z.ZodObject<{
2263
+ modelHash: z.ZodString;
2264
+ configHash: z.ZodString;
2265
+ commandHash: z.ZodString;
2266
+ driverHash: z.ZodOptional<z.ZodString>;
2267
+ implementationHash: z.ZodOptional<z.ZodString>;
2268
+ traceHash: z.ZodOptional<z.ZodString>;
2269
+ }, z.core.$strict>;
2270
+ runner: z.ZodString;
2271
+ observation: z.ZodEnum<{
2272
+ "module-functions": "module-functions";
2273
+ unverified: "unverified";
2274
+ }>;
2275
+ complete: z.ZodBoolean;
2276
+ diagnostics: z.ZodArray<z.ZodString>;
2277
+ traces: z.ZodArray<z.ZodObject<{
2278
+ id: z.ZodString;
2279
+ complete: z.ZodBoolean;
2280
+ steps: z.ZodArray<z.ZodObject<{
2281
+ index: z.ZodNumber;
2282
+ action: z.ZodString;
2283
+ status: z.ZodEnum<{
2284
+ fail: "fail";
2285
+ pass: "pass";
2286
+ unknown: "unknown";
2287
+ }>;
2288
+ parameters: z.ZodOptional<z.ZodJSONSchema>;
2289
+ expected: z.ZodJSONSchema;
2290
+ actual: z.ZodOptional<z.ZodJSONSchema>;
2291
+ comparisonCount: z.ZodNumber;
2292
+ implementationCalls: z.ZodNumber;
2293
+ diagnostic: z.ZodOptional<z.ZodString>;
2294
+ }, z.core.$strict>>;
2295
+ }, z.core.$strict>>;
2296
+ canary: z.ZodOptional<z.ZodObject<{
2297
+ faultId: z.ZodString;
2298
+ implementationHash: z.ZodString;
2299
+ originalImplementationHash: z.ZodString;
2300
+ driverHash: z.ZodString;
2301
+ traceHash: z.ZodString;
2302
+ observedCalls: z.ZodNumber;
2303
+ comparedSteps: z.ZodNumber;
2304
+ detectedMismatches: z.ZodNumber;
2305
+ failure: z.ZodOptional<z.ZodObject<{
2306
+ traceId: z.ZodString;
2307
+ index: z.ZodNumber;
2308
+ action: z.ZodString;
2309
+ implementationCalls: z.ZodNumber;
2310
+ expected: z.ZodJSONSchema;
2311
+ actual: z.ZodJSONSchema;
2312
+ }, z.core.$strict>>;
2313
+ }, z.core.$strict>>;
2314
+ }, z.core.$strict>, z.ZodObject<{
2315
+ status: z.ZodLiteral<"unknown">;
2316
+ reason: z.ZodString;
2317
+ }, z.core.$strict>]>;
2318
+ }, z.core.$strict>, z.ZodObject<{
2319
+ schemaVersion: z.ZodLiteral<1>;
2320
+ id: z.ZodString;
2321
+ source: z.ZodObject<{
2322
+ tool: z.ZodString;
2323
+ version: z.ZodOptional<z.ZodString>;
2324
+ artifactRef: z.ZodString;
2325
+ }, z.core.$strict>;
2326
+ context: z.ZodObject<{
2327
+ subject: z.ZodOptional<z.ZodObject<{
2328
+ repositoryId: z.ZodOptional<z.ZodString>;
2329
+ prHeadSha: z.ZodOptional<z.ZodString>;
2330
+ testedCommitSha: z.ZodString;
2331
+ testedCommitParents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2332
+ sourceTreeHash: z.ZodString;
2333
+ dirty: z.ZodBoolean;
2334
+ baseSha: z.ZodOptional<z.ZodString>;
2335
+ diffBaseSha: z.ZodOptional<z.ZodString>;
2336
+ }, z.core.$strict>>;
2337
+ manifestRef: z.ZodOptional<z.ZodString>;
2338
+ protectedPolicySha: z.ZodOptional<z.ZodString>;
2339
+ effectivePolicyHash: z.ZodString;
2340
+ contractHash: z.ZodOptional<z.ZodString>;
2341
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
2342
+ collectedAt: z.ZodISODateTime;
2343
+ }, z.core.$strict>;
2344
+ provenance: z.ZodObject<{
2345
+ artifactIntegrity: z.ZodEnum<{
2346
+ fail: "fail";
2347
+ not_applicable: "not_applicable";
2348
+ pass: "pass";
2349
+ unknown: "unknown";
2350
+ }>;
2351
+ producerTrust: z.ZodEnum<{
2352
+ fail: "fail";
2353
+ not_applicable: "not_applicable";
2354
+ pass: "pass";
2355
+ unknown: "unknown";
2356
+ }>;
2357
+ subjectMatch: z.ZodEnum<{
2358
+ fail: "fail";
2359
+ not_applicable: "not_applicable";
2360
+ pass: "pass";
2361
+ unknown: "unknown";
2362
+ }>;
2363
+ reasons: z.ZodArray<z.ZodString>;
2364
+ }, z.core.$strict>;
2365
+ subjectRefs: z.ZodArray<z.ZodString>;
2366
+ kind: z.ZodLiteral<"trace">;
2367
+ payload: z.ZodUnion<readonly [z.ZodObject<{
2368
+ schemaVersion: z.ZodLiteral<1>;
2369
+ modelId: z.ZodString;
2370
+ identity: z.ZodObject<{
2371
+ modelHash: z.ZodString;
2372
+ configHash: z.ZodString;
2373
+ commandHash: z.ZodString;
2374
+ driverHash: z.ZodOptional<z.ZodString>;
2375
+ implementationHash: z.ZodOptional<z.ZodString>;
2376
+ traceHash: z.ZodOptional<z.ZodString>;
2377
+ }, z.core.$strict>;
2378
+ toolVersion: z.ZodString;
2379
+ backend: z.ZodEnum<{
2380
+ rust: "rust";
2381
+ typescript: "typescript";
2382
+ }>;
2383
+ maxSteps: z.ZodNumber;
2384
+ maxSamples: z.ZodNumber;
2385
+ seed: z.ZodString;
2386
+ traces: z.ZodArray<z.ZodObject<{
2387
+ ref: z.ZodString;
2388
+ sha256: z.ZodString;
2389
+ }, z.core.$strict>>;
2390
+ }, z.core.$strict>, z.ZodObject<{
2391
+ status: z.ZodLiteral<"unknown">;
2392
+ reason: z.ZodString;
2393
+ }, z.core.$strict>]>;
2394
+ }, z.core.$strict>], "kind">;
2395
+ export declare const CheckReportSchema: z.ZodObject<{
2396
+ schemaVersion: z.ZodLiteral<1>;
2397
+ mode: z.ZodEnum<{
2398
+ audit: "audit";
2399
+ gate: "gate";
2400
+ }>;
2401
+ status: z.ZodEnum<{
2402
+ fail: "fail";
2403
+ incomplete: "incomplete";
2404
+ pass: "pass";
2405
+ }>;
2406
+ exitCode: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>;
2407
+ mandatoryCount: z.ZodNumber;
2408
+ evaluations: z.ZodArray<z.ZodObject<{
2409
+ ruleId: z.ZodString;
2410
+ severity: z.ZodEnum<{
2411
+ error: "error";
2412
+ off: "off";
2413
+ warn: "warn";
2414
+ }>;
2415
+ status: z.ZodEnum<{
2416
+ fail: "fail";
2417
+ not_applicable: "not_applicable";
2418
+ pass: "pass";
2419
+ unknown: "unknown";
2420
+ }>;
2421
+ evidenceIds: z.ZodArray<z.ZodString>;
2422
+ scope: z.ZodArray<z.ZodString>;
2423
+ message: z.ZodString;
2424
+ remediation: z.ZodOptional<z.ZodString>;
2425
+ notApplicable: z.ZodOptional<z.ZodObject<{
2426
+ reason: z.ZodString;
2427
+ allowedReasons: z.ZodArray<z.ZodString>;
2428
+ evidenceIds: z.ZodArray<z.ZodString>;
2429
+ }, z.core.$strict>>;
2430
+ }, z.core.$strict>>;
2431
+ reasons: z.ZodArray<z.ZodString>;
2432
+ }, z.core.$strict>;
2433
+ export type EvidenceStatus = z.infer<typeof EvidenceStatusSchema>;
2434
+ export type Severity = z.infer<typeof SeveritySchema>;
2435
+ export type Risk = z.infer<typeof RiskSchema>;
2436
+ export type Mode = z.infer<typeof ModeSchema>;
2437
+ export type RulePolicy = z.infer<typeof RulePolicySchema>;
2438
+ export type Policy = z.infer<typeof PolicySchema>;
2439
+ export type Config = z.infer<typeof ConfigSchema>;
2440
+ export type EvidenceSubject = z.infer<typeof EvidenceSubjectSchema>;
2441
+ export type ExecutionManifest = z.infer<typeof ExecutionManifestSchema>;
2442
+ export type Intent = z.infer<typeof IntentSchema>;
2443
+ export type ContractCase = z.infer<typeof ContractCaseSchema>;
2444
+ export type Contract = z.infer<typeof ContractSchema>;
2445
+ export type RegistrySnapshot = z.infer<typeof RegistrySnapshotSchema>;
2446
+ export type Approval = z.infer<typeof ApprovalSchema>;
2447
+ export type Evaluation = z.infer<typeof EvaluationSchema>;
2448
+ export type Provenance = z.infer<typeof ProvenanceSchema>;
2449
+ export type Evidence = z.infer<typeof EvidenceSchema>;
2450
+ export type CheckReport = z.infer<typeof CheckReportSchema>;
2451
+ export declare function parseConfig(value: unknown): Config;
2452
+ export declare function parseEvidence(value: unknown): Evidence;
2453
+ //# sourceMappingURL=schemas.d.ts.map