@vorionsys/contracts 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/aci/aci-string.d.ts +539 -0
  2. package/dist/aci/aci-string.d.ts.map +1 -0
  3. package/dist/aci/aci-string.js +563 -0
  4. package/dist/aci/aci-string.js.map +1 -0
  5. package/dist/aci/attestation.d.ts +648 -0
  6. package/dist/aci/attestation.d.ts.map +1 -0
  7. package/dist/aci/attestation.js +289 -0
  8. package/dist/aci/attestation.js.map +1 -0
  9. package/dist/aci/domains.d.ts +260 -0
  10. package/dist/aci/domains.d.ts.map +1 -0
  11. package/dist/aci/domains.js +322 -0
  12. package/dist/aci/domains.js.map +1 -0
  13. package/dist/aci/effective-permission.d.ts +371 -0
  14. package/dist/aci/effective-permission.d.ts.map +1 -0
  15. package/dist/aci/effective-permission.js +351 -0
  16. package/dist/aci/effective-permission.js.map +1 -0
  17. package/dist/aci/identity.d.ts +1100 -0
  18. package/dist/aci/identity.d.ts.map +1 -0
  19. package/dist/aci/identity.js +328 -0
  20. package/dist/aci/identity.js.map +1 -0
  21. package/dist/aci/index.d.ts +67 -0
  22. package/dist/aci/index.d.ts.map +1 -0
  23. package/dist/aci/index.js +157 -0
  24. package/dist/aci/index.js.map +1 -0
  25. package/dist/aci/jwt-claims.d.ts +756 -0
  26. package/dist/aci/jwt-claims.d.ts.map +1 -0
  27. package/dist/aci/jwt-claims.js +335 -0
  28. package/dist/aci/jwt-claims.js.map +1 -0
  29. package/dist/aci/levels.d.ts +279 -0
  30. package/dist/aci/levels.d.ts.map +1 -0
  31. package/dist/aci/levels.js +467 -0
  32. package/dist/aci/levels.js.map +1 -0
  33. package/dist/aci/mapping.d.ts +291 -0
  34. package/dist/aci/mapping.d.ts.map +1 -0
  35. package/dist/aci/mapping.js +427 -0
  36. package/dist/aci/mapping.js.map +1 -0
  37. package/dist/aci/skills.d.ts +314 -0
  38. package/dist/aci/skills.d.ts.map +1 -0
  39. package/dist/aci/skills.js +404 -0
  40. package/dist/aci/skills.js.map +1 -0
  41. package/dist/aci/tiers.d.ts +403 -0
  42. package/dist/aci/tiers.d.ts.map +1 -0
  43. package/dist/aci/tiers.js +659 -0
  44. package/dist/aci/tiers.js.map +1 -0
  45. package/dist/canonical/agent.d.ts +796 -0
  46. package/dist/canonical/agent.d.ts.map +1 -0
  47. package/dist/canonical/agent.js +527 -0
  48. package/dist/canonical/agent.js.map +1 -0
  49. package/dist/canonical/governance.d.ts +905 -0
  50. package/dist/canonical/governance.d.ts.map +1 -0
  51. package/dist/canonical/governance.js +454 -0
  52. package/dist/canonical/governance.js.map +1 -0
  53. package/dist/canonical/index.d.ts +17 -0
  54. package/dist/canonical/index.d.ts.map +1 -0
  55. package/dist/canonical/index.js +21 -0
  56. package/dist/canonical/index.js.map +1 -0
  57. package/dist/canonical/intent.d.ts +727 -0
  58. package/dist/canonical/intent.d.ts.map +1 -0
  59. package/dist/canonical/intent.js +203 -0
  60. package/dist/canonical/intent.js.map +1 -0
  61. package/dist/canonical/risk-level.d.ts +344 -0
  62. package/dist/canonical/risk-level.d.ts.map +1 -0
  63. package/dist/canonical/risk-level.js +472 -0
  64. package/dist/canonical/risk-level.js.map +1 -0
  65. package/dist/canonical/trust-band.d.ts +239 -0
  66. package/dist/canonical/trust-band.d.ts.map +1 -0
  67. package/dist/canonical/trust-band.js +298 -0
  68. package/dist/canonical/trust-band.js.map +1 -0
  69. package/dist/canonical/trust-score.d.ts +301 -0
  70. package/dist/canonical/trust-score.d.ts.map +1 -0
  71. package/dist/canonical/trust-score.js +390 -0
  72. package/dist/canonical/trust-score.js.map +1 -0
  73. package/dist/canonical/trust-signal.d.ts +617 -0
  74. package/dist/canonical/trust-signal.d.ts.map +1 -0
  75. package/dist/canonical/trust-signal.js +355 -0
  76. package/dist/canonical/trust-signal.js.map +1 -0
  77. package/dist/canonical/validation.d.ts +231 -0
  78. package/dist/canonical/validation.d.ts.map +1 -0
  79. package/dist/canonical/validation.js +558 -0
  80. package/dist/canonical/validation.js.map +1 -0
  81. package/dist/common/index.d.ts +7 -0
  82. package/dist/common/index.d.ts.map +1 -0
  83. package/dist/common/index.js +7 -0
  84. package/dist/common/index.js.map +1 -0
  85. package/dist/common/primitives.d.ts +56 -0
  86. package/dist/common/primitives.d.ts.map +1 -0
  87. package/dist/common/primitives.js +70 -0
  88. package/dist/common/primitives.js.map +1 -0
  89. package/dist/index.d.ts +11 -0
  90. package/dist/index.d.ts.map +1 -0
  91. package/dist/index.js +15 -0
  92. package/dist/index.js.map +1 -0
  93. package/dist/v2/canary-probe.d.ts +201 -0
  94. package/dist/v2/canary-probe.d.ts.map +1 -0
  95. package/dist/v2/canary-probe.js +99 -0
  96. package/dist/v2/canary-probe.js.map +1 -0
  97. package/dist/v2/component.d.ts +132 -0
  98. package/dist/v2/component.d.ts.map +1 -0
  99. package/dist/v2/component.js +5 -0
  100. package/dist/v2/component.js.map +1 -0
  101. package/dist/v2/decision.d.ts +310 -0
  102. package/dist/v2/decision.d.ts.map +1 -0
  103. package/dist/v2/decision.js +21 -0
  104. package/dist/v2/decision.js.map +1 -0
  105. package/dist/v2/enums.d.ts +185 -0
  106. package/dist/v2/enums.d.ts.map +1 -0
  107. package/dist/v2/enums.js +203 -0
  108. package/dist/v2/enums.js.map +1 -0
  109. package/dist/v2/evidence.d.ts +368 -0
  110. package/dist/v2/evidence.d.ts.map +1 -0
  111. package/dist/v2/evidence.js +152 -0
  112. package/dist/v2/evidence.js.map +1 -0
  113. package/dist/v2/execution.d.ts +190 -0
  114. package/dist/v2/execution.d.ts.map +1 -0
  115. package/dist/v2/execution.js +5 -0
  116. package/dist/v2/execution.js.map +1 -0
  117. package/dist/v2/index.d.ts +19 -0
  118. package/dist/v2/index.d.ts.map +1 -0
  119. package/dist/v2/index.js +32 -0
  120. package/dist/v2/index.js.map +1 -0
  121. package/dist/v2/intent.d.ts +89 -0
  122. package/dist/v2/intent.d.ts.map +1 -0
  123. package/dist/v2/intent.js +5 -0
  124. package/dist/v2/intent.js.map +1 -0
  125. package/dist/v2/policy-bundle.d.ts +166 -0
  126. package/dist/v2/policy-bundle.d.ts.map +1 -0
  127. package/dist/v2/policy-bundle.js +20 -0
  128. package/dist/v2/policy-bundle.js.map +1 -0
  129. package/dist/v2/pre-action-gate.d.ts +185 -0
  130. package/dist/v2/pre-action-gate.d.ts.map +1 -0
  131. package/dist/v2/pre-action-gate.js +64 -0
  132. package/dist/v2/pre-action-gate.js.map +1 -0
  133. package/dist/v2/proof-event.d.ts +201 -0
  134. package/dist/v2/proof-event.d.ts.map +1 -0
  135. package/dist/v2/proof-event.js +5 -0
  136. package/dist/v2/proof-event.js.map +1 -0
  137. package/dist/v2/retention.d.ts +329 -0
  138. package/dist/v2/retention.d.ts.map +1 -0
  139. package/dist/v2/retention.js +162 -0
  140. package/dist/v2/retention.js.map +1 -0
  141. package/dist/v2/trust-delta.d.ts +119 -0
  142. package/dist/v2/trust-delta.d.ts.map +1 -0
  143. package/dist/v2/trust-delta.js +28 -0
  144. package/dist/v2/trust-delta.js.map +1 -0
  145. package/dist/v2/trust-profile.d.ts +337 -0
  146. package/dist/v2/trust-profile.d.ts.map +1 -0
  147. package/dist/v2/trust-profile.js +96 -0
  148. package/dist/v2/trust-profile.js.map +1 -0
  149. package/dist/validators/decision.d.ts +430 -0
  150. package/dist/validators/decision.d.ts.map +1 -0
  151. package/dist/validators/decision.js +61 -0
  152. package/dist/validators/decision.js.map +1 -0
  153. package/dist/validators/enums.d.ts +24 -0
  154. package/dist/validators/enums.d.ts.map +1 -0
  155. package/dist/validators/enums.js +24 -0
  156. package/dist/validators/enums.js.map +1 -0
  157. package/dist/validators/index.d.ts +30 -0
  158. package/dist/validators/index.d.ts.map +1 -0
  159. package/dist/validators/index.js +42 -0
  160. package/dist/validators/index.js.map +1 -0
  161. package/dist/validators/intent.d.ts +229 -0
  162. package/dist/validators/intent.d.ts.map +1 -0
  163. package/dist/validators/intent.js +47 -0
  164. package/dist/validators/intent.js.map +1 -0
  165. package/dist/validators/proof-event.d.ts +981 -0
  166. package/dist/validators/proof-event.d.ts.map +1 -0
  167. package/dist/validators/proof-event.js +134 -0
  168. package/dist/validators/proof-event.js.map +1 -0
  169. package/dist/validators/trust-profile.d.ts +350 -0
  170. package/dist/validators/trust-profile.d.ts.map +1 -0
  171. package/dist/validators/trust-profile.js +65 -0
  172. package/dist/validators/trust-profile.js.map +1 -0
  173. package/package.json +65 -0
@@ -0,0 +1,981 @@
1
+ /**
2
+ * Zod schemas for proof event types
3
+ */
4
+ import { z } from 'zod';
5
+ /** Union of all payload types */
6
+ export declare const proofEventPayloadSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7
+ type: z.ZodLiteral<"intent_received">;
8
+ intentId: z.ZodString;
9
+ action: z.ZodString;
10
+ actionType: z.ZodString;
11
+ resourceScope: z.ZodArray<z.ZodString, "many">;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "intent_received";
14
+ intentId: string;
15
+ action: string;
16
+ actionType: string;
17
+ resourceScope: string[];
18
+ }, {
19
+ type: "intent_received";
20
+ intentId: string;
21
+ action: string;
22
+ actionType: string;
23
+ resourceScope: string[];
24
+ }>, z.ZodObject<{
25
+ type: z.ZodLiteral<"decision_made">;
26
+ decisionId: z.ZodString;
27
+ intentId: z.ZodString;
28
+ permitted: z.ZodBoolean;
29
+ trustBand: z.ZodString;
30
+ trustScore: z.ZodNumber;
31
+ reasoning: z.ZodArray<z.ZodString, "many">;
32
+ }, "strip", z.ZodTypeAny, {
33
+ type: "decision_made";
34
+ intentId: string;
35
+ decisionId: string;
36
+ trustScore: number;
37
+ trustBand: string;
38
+ permitted: boolean;
39
+ reasoning: string[];
40
+ }, {
41
+ type: "decision_made";
42
+ intentId: string;
43
+ decisionId: string;
44
+ trustScore: number;
45
+ trustBand: string;
46
+ permitted: boolean;
47
+ reasoning: string[];
48
+ }>, z.ZodObject<{
49
+ type: z.ZodLiteral<"trust_delta">;
50
+ deltaId: z.ZodString;
51
+ previousScore: z.ZodNumber;
52
+ newScore: z.ZodNumber;
53
+ previousBand: z.ZodString;
54
+ newBand: z.ZodString;
55
+ reason: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: "trust_delta";
58
+ deltaId: string;
59
+ reason: string;
60
+ previousScore: number;
61
+ newScore: number;
62
+ previousBand: string;
63
+ newBand: string;
64
+ }, {
65
+ type: "trust_delta";
66
+ deltaId: string;
67
+ reason: string;
68
+ previousScore: number;
69
+ newScore: number;
70
+ previousBand: string;
71
+ newBand: string;
72
+ }>, z.ZodObject<{
73
+ type: z.ZodLiteral<"execution_started">;
74
+ executionId: z.ZodString;
75
+ actionId: z.ZodString;
76
+ decisionId: z.ZodString;
77
+ adapterId: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ type: "execution_started";
80
+ decisionId: string;
81
+ executionId: string;
82
+ actionId: string;
83
+ adapterId: string;
84
+ }, {
85
+ type: "execution_started";
86
+ decisionId: string;
87
+ executionId: string;
88
+ actionId: string;
89
+ adapterId: string;
90
+ }>, z.ZodObject<{
91
+ type: z.ZodLiteral<"execution_completed">;
92
+ executionId: z.ZodString;
93
+ actionId: z.ZodString;
94
+ status: z.ZodEnum<["success", "partial"]>;
95
+ durationMs: z.ZodNumber;
96
+ outputHash: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: "execution_completed";
99
+ status: "success" | "partial";
100
+ executionId: string;
101
+ actionId: string;
102
+ durationMs: number;
103
+ outputHash: string;
104
+ }, {
105
+ type: "execution_completed";
106
+ status: "success" | "partial";
107
+ executionId: string;
108
+ actionId: string;
109
+ durationMs: number;
110
+ outputHash: string;
111
+ }>, z.ZodObject<{
112
+ type: z.ZodLiteral<"execution_failed">;
113
+ executionId: z.ZodString;
114
+ actionId: z.ZodString;
115
+ error: z.ZodString;
116
+ durationMs: z.ZodNumber;
117
+ retryable: z.ZodBoolean;
118
+ }, "strip", z.ZodTypeAny, {
119
+ error: string;
120
+ type: "execution_failed";
121
+ executionId: string;
122
+ actionId: string;
123
+ durationMs: number;
124
+ retryable: boolean;
125
+ }, {
126
+ error: string;
127
+ type: "execution_failed";
128
+ executionId: string;
129
+ actionId: string;
130
+ durationMs: number;
131
+ retryable: boolean;
132
+ }>, z.ZodObject<{
133
+ type: z.ZodLiteral<"incident_detected">;
134
+ incidentId: z.ZodString;
135
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
136
+ description: z.ZodString;
137
+ affectedResources: z.ZodArray<z.ZodString, "many">;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "incident_detected";
140
+ severity: "low" | "medium" | "high" | "critical";
141
+ description: string;
142
+ incidentId: string;
143
+ affectedResources: string[];
144
+ }, {
145
+ type: "incident_detected";
146
+ severity: "low" | "medium" | "high" | "critical";
147
+ description: string;
148
+ incidentId: string;
149
+ affectedResources: string[];
150
+ }>, z.ZodObject<{
151
+ type: z.ZodLiteral<"rollback_initiated">;
152
+ rollbackId: z.ZodString;
153
+ executionId: z.ZodString;
154
+ reason: z.ZodString;
155
+ initiatedBy: z.ZodString;
156
+ }, "strip", z.ZodTypeAny, {
157
+ type: "rollback_initiated";
158
+ executionId: string;
159
+ reason: string;
160
+ rollbackId: string;
161
+ initiatedBy: string;
162
+ }, {
163
+ type: "rollback_initiated";
164
+ executionId: string;
165
+ reason: string;
166
+ rollbackId: string;
167
+ initiatedBy: string;
168
+ }>, z.ZodObject<{
169
+ type: z.ZodLiteral<"component_registered">;
170
+ componentId: z.ZodString;
171
+ componentType: z.ZodString;
172
+ name: z.ZodString;
173
+ version: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: "component_registered";
176
+ name: string;
177
+ componentId: string;
178
+ version: string;
179
+ componentType: string;
180
+ }, {
181
+ type: "component_registered";
182
+ name: string;
183
+ componentId: string;
184
+ version: string;
185
+ componentType: string;
186
+ }>, z.ZodObject<{
187
+ type: z.ZodLiteral<"component_updated">;
188
+ componentId: z.ZodString;
189
+ changes: z.ZodArray<z.ZodString, "many">;
190
+ previousVersion: z.ZodOptional<z.ZodString>;
191
+ newVersion: z.ZodOptional<z.ZodString>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ type: "component_updated";
194
+ componentId: string;
195
+ changes: string[];
196
+ previousVersion?: string | undefined;
197
+ newVersion?: string | undefined;
198
+ }, {
199
+ type: "component_updated";
200
+ componentId: string;
201
+ changes: string[];
202
+ previousVersion?: string | undefined;
203
+ newVersion?: string | undefined;
204
+ }>]>, z.ZodObject<{
205
+ type: z.ZodString;
206
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
207
+ type: z.ZodString;
208
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
209
+ type: z.ZodString;
210
+ }, z.ZodTypeAny, "passthrough">>]>;
211
+ /** Proof event validator */
212
+ export declare const proofEventSchema: z.ZodObject<{
213
+ eventId: z.ZodString;
214
+ eventType: z.ZodNativeEnum<typeof import("../index.js").ProofEventType>;
215
+ correlationId: z.ZodString;
216
+ agentId: z.ZodOptional<z.ZodString>;
217
+ payload: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
218
+ type: z.ZodLiteral<"intent_received">;
219
+ intentId: z.ZodString;
220
+ action: z.ZodString;
221
+ actionType: z.ZodString;
222
+ resourceScope: z.ZodArray<z.ZodString, "many">;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: "intent_received";
225
+ intentId: string;
226
+ action: string;
227
+ actionType: string;
228
+ resourceScope: string[];
229
+ }, {
230
+ type: "intent_received";
231
+ intentId: string;
232
+ action: string;
233
+ actionType: string;
234
+ resourceScope: string[];
235
+ }>, z.ZodObject<{
236
+ type: z.ZodLiteral<"decision_made">;
237
+ decisionId: z.ZodString;
238
+ intentId: z.ZodString;
239
+ permitted: z.ZodBoolean;
240
+ trustBand: z.ZodString;
241
+ trustScore: z.ZodNumber;
242
+ reasoning: z.ZodArray<z.ZodString, "many">;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: "decision_made";
245
+ intentId: string;
246
+ decisionId: string;
247
+ trustScore: number;
248
+ trustBand: string;
249
+ permitted: boolean;
250
+ reasoning: string[];
251
+ }, {
252
+ type: "decision_made";
253
+ intentId: string;
254
+ decisionId: string;
255
+ trustScore: number;
256
+ trustBand: string;
257
+ permitted: boolean;
258
+ reasoning: string[];
259
+ }>, z.ZodObject<{
260
+ type: z.ZodLiteral<"trust_delta">;
261
+ deltaId: z.ZodString;
262
+ previousScore: z.ZodNumber;
263
+ newScore: z.ZodNumber;
264
+ previousBand: z.ZodString;
265
+ newBand: z.ZodString;
266
+ reason: z.ZodString;
267
+ }, "strip", z.ZodTypeAny, {
268
+ type: "trust_delta";
269
+ deltaId: string;
270
+ reason: string;
271
+ previousScore: number;
272
+ newScore: number;
273
+ previousBand: string;
274
+ newBand: string;
275
+ }, {
276
+ type: "trust_delta";
277
+ deltaId: string;
278
+ reason: string;
279
+ previousScore: number;
280
+ newScore: number;
281
+ previousBand: string;
282
+ newBand: string;
283
+ }>, z.ZodObject<{
284
+ type: z.ZodLiteral<"execution_started">;
285
+ executionId: z.ZodString;
286
+ actionId: z.ZodString;
287
+ decisionId: z.ZodString;
288
+ adapterId: z.ZodString;
289
+ }, "strip", z.ZodTypeAny, {
290
+ type: "execution_started";
291
+ decisionId: string;
292
+ executionId: string;
293
+ actionId: string;
294
+ adapterId: string;
295
+ }, {
296
+ type: "execution_started";
297
+ decisionId: string;
298
+ executionId: string;
299
+ actionId: string;
300
+ adapterId: string;
301
+ }>, z.ZodObject<{
302
+ type: z.ZodLiteral<"execution_completed">;
303
+ executionId: z.ZodString;
304
+ actionId: z.ZodString;
305
+ status: z.ZodEnum<["success", "partial"]>;
306
+ durationMs: z.ZodNumber;
307
+ outputHash: z.ZodString;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type: "execution_completed";
310
+ status: "success" | "partial";
311
+ executionId: string;
312
+ actionId: string;
313
+ durationMs: number;
314
+ outputHash: string;
315
+ }, {
316
+ type: "execution_completed";
317
+ status: "success" | "partial";
318
+ executionId: string;
319
+ actionId: string;
320
+ durationMs: number;
321
+ outputHash: string;
322
+ }>, z.ZodObject<{
323
+ type: z.ZodLiteral<"execution_failed">;
324
+ executionId: z.ZodString;
325
+ actionId: z.ZodString;
326
+ error: z.ZodString;
327
+ durationMs: z.ZodNumber;
328
+ retryable: z.ZodBoolean;
329
+ }, "strip", z.ZodTypeAny, {
330
+ error: string;
331
+ type: "execution_failed";
332
+ executionId: string;
333
+ actionId: string;
334
+ durationMs: number;
335
+ retryable: boolean;
336
+ }, {
337
+ error: string;
338
+ type: "execution_failed";
339
+ executionId: string;
340
+ actionId: string;
341
+ durationMs: number;
342
+ retryable: boolean;
343
+ }>, z.ZodObject<{
344
+ type: z.ZodLiteral<"incident_detected">;
345
+ incidentId: z.ZodString;
346
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
347
+ description: z.ZodString;
348
+ affectedResources: z.ZodArray<z.ZodString, "many">;
349
+ }, "strip", z.ZodTypeAny, {
350
+ type: "incident_detected";
351
+ severity: "low" | "medium" | "high" | "critical";
352
+ description: string;
353
+ incidentId: string;
354
+ affectedResources: string[];
355
+ }, {
356
+ type: "incident_detected";
357
+ severity: "low" | "medium" | "high" | "critical";
358
+ description: string;
359
+ incidentId: string;
360
+ affectedResources: string[];
361
+ }>, z.ZodObject<{
362
+ type: z.ZodLiteral<"rollback_initiated">;
363
+ rollbackId: z.ZodString;
364
+ executionId: z.ZodString;
365
+ reason: z.ZodString;
366
+ initiatedBy: z.ZodString;
367
+ }, "strip", z.ZodTypeAny, {
368
+ type: "rollback_initiated";
369
+ executionId: string;
370
+ reason: string;
371
+ rollbackId: string;
372
+ initiatedBy: string;
373
+ }, {
374
+ type: "rollback_initiated";
375
+ executionId: string;
376
+ reason: string;
377
+ rollbackId: string;
378
+ initiatedBy: string;
379
+ }>, z.ZodObject<{
380
+ type: z.ZodLiteral<"component_registered">;
381
+ componentId: z.ZodString;
382
+ componentType: z.ZodString;
383
+ name: z.ZodString;
384
+ version: z.ZodString;
385
+ }, "strip", z.ZodTypeAny, {
386
+ type: "component_registered";
387
+ name: string;
388
+ componentId: string;
389
+ version: string;
390
+ componentType: string;
391
+ }, {
392
+ type: "component_registered";
393
+ name: string;
394
+ componentId: string;
395
+ version: string;
396
+ componentType: string;
397
+ }>, z.ZodObject<{
398
+ type: z.ZodLiteral<"component_updated">;
399
+ componentId: z.ZodString;
400
+ changes: z.ZodArray<z.ZodString, "many">;
401
+ previousVersion: z.ZodOptional<z.ZodString>;
402
+ newVersion: z.ZodOptional<z.ZodString>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ type: "component_updated";
405
+ componentId: string;
406
+ changes: string[];
407
+ previousVersion?: string | undefined;
408
+ newVersion?: string | undefined;
409
+ }, {
410
+ type: "component_updated";
411
+ componentId: string;
412
+ changes: string[];
413
+ previousVersion?: string | undefined;
414
+ newVersion?: string | undefined;
415
+ }>]>, z.ZodObject<{
416
+ type: z.ZodString;
417
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
418
+ type: z.ZodString;
419
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
420
+ type: z.ZodString;
421
+ }, z.ZodTypeAny, "passthrough">>]>;
422
+ previousHash: z.ZodNullable<z.ZodString>;
423
+ eventHash: z.ZodString;
424
+ occurredAt: z.ZodDate;
425
+ recordedAt: z.ZodDate;
426
+ signedBy: z.ZodOptional<z.ZodString>;
427
+ signature: z.ZodOptional<z.ZodString>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ correlationId: string;
430
+ previousHash: string | null;
431
+ eventId: string;
432
+ eventType: import("../index.js").ProofEventType;
433
+ payload: {
434
+ type: "intent_received";
435
+ intentId: string;
436
+ action: string;
437
+ actionType: string;
438
+ resourceScope: string[];
439
+ } | {
440
+ type: "decision_made";
441
+ intentId: string;
442
+ decisionId: string;
443
+ trustScore: number;
444
+ trustBand: string;
445
+ permitted: boolean;
446
+ reasoning: string[];
447
+ } | {
448
+ type: "trust_delta";
449
+ deltaId: string;
450
+ reason: string;
451
+ previousScore: number;
452
+ newScore: number;
453
+ previousBand: string;
454
+ newBand: string;
455
+ } | {
456
+ type: "execution_started";
457
+ decisionId: string;
458
+ executionId: string;
459
+ actionId: string;
460
+ adapterId: string;
461
+ } | {
462
+ type: "execution_completed";
463
+ status: "success" | "partial";
464
+ executionId: string;
465
+ actionId: string;
466
+ durationMs: number;
467
+ outputHash: string;
468
+ } | {
469
+ error: string;
470
+ type: "execution_failed";
471
+ executionId: string;
472
+ actionId: string;
473
+ durationMs: number;
474
+ retryable: boolean;
475
+ } | {
476
+ type: "incident_detected";
477
+ severity: "low" | "medium" | "high" | "critical";
478
+ description: string;
479
+ incidentId: string;
480
+ affectedResources: string[];
481
+ } | {
482
+ type: "rollback_initiated";
483
+ executionId: string;
484
+ reason: string;
485
+ rollbackId: string;
486
+ initiatedBy: string;
487
+ } | {
488
+ type: "component_registered";
489
+ name: string;
490
+ componentId: string;
491
+ version: string;
492
+ componentType: string;
493
+ } | {
494
+ type: "component_updated";
495
+ componentId: string;
496
+ changes: string[];
497
+ previousVersion?: string | undefined;
498
+ newVersion?: string | undefined;
499
+ } | z.objectOutputType<{
500
+ type: z.ZodString;
501
+ }, z.ZodTypeAny, "passthrough">;
502
+ eventHash: string;
503
+ occurredAt: Date;
504
+ recordedAt: Date;
505
+ signature?: string | undefined;
506
+ agentId?: string | undefined;
507
+ signedBy?: string | undefined;
508
+ }, {
509
+ correlationId: string;
510
+ previousHash: string | null;
511
+ eventId: string;
512
+ eventType: import("../index.js").ProofEventType;
513
+ payload: {
514
+ type: "intent_received";
515
+ intentId: string;
516
+ action: string;
517
+ actionType: string;
518
+ resourceScope: string[];
519
+ } | {
520
+ type: "decision_made";
521
+ intentId: string;
522
+ decisionId: string;
523
+ trustScore: number;
524
+ trustBand: string;
525
+ permitted: boolean;
526
+ reasoning: string[];
527
+ } | {
528
+ type: "trust_delta";
529
+ deltaId: string;
530
+ reason: string;
531
+ previousScore: number;
532
+ newScore: number;
533
+ previousBand: string;
534
+ newBand: string;
535
+ } | {
536
+ type: "execution_started";
537
+ decisionId: string;
538
+ executionId: string;
539
+ actionId: string;
540
+ adapterId: string;
541
+ } | {
542
+ type: "execution_completed";
543
+ status: "success" | "partial";
544
+ executionId: string;
545
+ actionId: string;
546
+ durationMs: number;
547
+ outputHash: string;
548
+ } | {
549
+ error: string;
550
+ type: "execution_failed";
551
+ executionId: string;
552
+ actionId: string;
553
+ durationMs: number;
554
+ retryable: boolean;
555
+ } | {
556
+ type: "incident_detected";
557
+ severity: "low" | "medium" | "high" | "critical";
558
+ description: string;
559
+ incidentId: string;
560
+ affectedResources: string[];
561
+ } | {
562
+ type: "rollback_initiated";
563
+ executionId: string;
564
+ reason: string;
565
+ rollbackId: string;
566
+ initiatedBy: string;
567
+ } | {
568
+ type: "component_registered";
569
+ name: string;
570
+ componentId: string;
571
+ version: string;
572
+ componentType: string;
573
+ } | {
574
+ type: "component_updated";
575
+ componentId: string;
576
+ changes: string[];
577
+ previousVersion?: string | undefined;
578
+ newVersion?: string | undefined;
579
+ } | z.objectInputType<{
580
+ type: z.ZodString;
581
+ }, z.ZodTypeAny, "passthrough">;
582
+ eventHash: string;
583
+ occurredAt: Date;
584
+ recordedAt: Date;
585
+ signature?: string | undefined;
586
+ agentId?: string | undefined;
587
+ signedBy?: string | undefined;
588
+ }>;
589
+ /** Proof event filter validator */
590
+ export declare const proofEventFilterSchema: z.ZodObject<{
591
+ correlationId: z.ZodOptional<z.ZodString>;
592
+ agentId: z.ZodOptional<z.ZodString>;
593
+ eventTypes: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../index.js").ProofEventType>, "many">>;
594
+ from: z.ZodOptional<z.ZodDate>;
595
+ to: z.ZodOptional<z.ZodDate>;
596
+ limit: z.ZodOptional<z.ZodNumber>;
597
+ offset: z.ZodOptional<z.ZodNumber>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ correlationId?: string | undefined;
600
+ agentId?: string | undefined;
601
+ limit?: number | undefined;
602
+ eventTypes?: import("../index.js").ProofEventType[] | undefined;
603
+ from?: Date | undefined;
604
+ to?: Date | undefined;
605
+ offset?: number | undefined;
606
+ }, {
607
+ correlationId?: string | undefined;
608
+ agentId?: string | undefined;
609
+ limit?: number | undefined;
610
+ eventTypes?: import("../index.js").ProofEventType[] | undefined;
611
+ from?: Date | undefined;
612
+ to?: Date | undefined;
613
+ offset?: number | undefined;
614
+ }>;
615
+ /** Log proof event request validator */
616
+ export declare const logProofEventRequestSchema: z.ZodObject<{
617
+ eventType: z.ZodNativeEnum<typeof import("../index.js").ProofEventType>;
618
+ correlationId: z.ZodString;
619
+ agentId: z.ZodOptional<z.ZodString>;
620
+ payload: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
621
+ type: z.ZodLiteral<"intent_received">;
622
+ intentId: z.ZodString;
623
+ action: z.ZodString;
624
+ actionType: z.ZodString;
625
+ resourceScope: z.ZodArray<z.ZodString, "many">;
626
+ }, "strip", z.ZodTypeAny, {
627
+ type: "intent_received";
628
+ intentId: string;
629
+ action: string;
630
+ actionType: string;
631
+ resourceScope: string[];
632
+ }, {
633
+ type: "intent_received";
634
+ intentId: string;
635
+ action: string;
636
+ actionType: string;
637
+ resourceScope: string[];
638
+ }>, z.ZodObject<{
639
+ type: z.ZodLiteral<"decision_made">;
640
+ decisionId: z.ZodString;
641
+ intentId: z.ZodString;
642
+ permitted: z.ZodBoolean;
643
+ trustBand: z.ZodString;
644
+ trustScore: z.ZodNumber;
645
+ reasoning: z.ZodArray<z.ZodString, "many">;
646
+ }, "strip", z.ZodTypeAny, {
647
+ type: "decision_made";
648
+ intentId: string;
649
+ decisionId: string;
650
+ trustScore: number;
651
+ trustBand: string;
652
+ permitted: boolean;
653
+ reasoning: string[];
654
+ }, {
655
+ type: "decision_made";
656
+ intentId: string;
657
+ decisionId: string;
658
+ trustScore: number;
659
+ trustBand: string;
660
+ permitted: boolean;
661
+ reasoning: string[];
662
+ }>, z.ZodObject<{
663
+ type: z.ZodLiteral<"trust_delta">;
664
+ deltaId: z.ZodString;
665
+ previousScore: z.ZodNumber;
666
+ newScore: z.ZodNumber;
667
+ previousBand: z.ZodString;
668
+ newBand: z.ZodString;
669
+ reason: z.ZodString;
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: "trust_delta";
672
+ deltaId: string;
673
+ reason: string;
674
+ previousScore: number;
675
+ newScore: number;
676
+ previousBand: string;
677
+ newBand: string;
678
+ }, {
679
+ type: "trust_delta";
680
+ deltaId: string;
681
+ reason: string;
682
+ previousScore: number;
683
+ newScore: number;
684
+ previousBand: string;
685
+ newBand: string;
686
+ }>, z.ZodObject<{
687
+ type: z.ZodLiteral<"execution_started">;
688
+ executionId: z.ZodString;
689
+ actionId: z.ZodString;
690
+ decisionId: z.ZodString;
691
+ adapterId: z.ZodString;
692
+ }, "strip", z.ZodTypeAny, {
693
+ type: "execution_started";
694
+ decisionId: string;
695
+ executionId: string;
696
+ actionId: string;
697
+ adapterId: string;
698
+ }, {
699
+ type: "execution_started";
700
+ decisionId: string;
701
+ executionId: string;
702
+ actionId: string;
703
+ adapterId: string;
704
+ }>, z.ZodObject<{
705
+ type: z.ZodLiteral<"execution_completed">;
706
+ executionId: z.ZodString;
707
+ actionId: z.ZodString;
708
+ status: z.ZodEnum<["success", "partial"]>;
709
+ durationMs: z.ZodNumber;
710
+ outputHash: z.ZodString;
711
+ }, "strip", z.ZodTypeAny, {
712
+ type: "execution_completed";
713
+ status: "success" | "partial";
714
+ executionId: string;
715
+ actionId: string;
716
+ durationMs: number;
717
+ outputHash: string;
718
+ }, {
719
+ type: "execution_completed";
720
+ status: "success" | "partial";
721
+ executionId: string;
722
+ actionId: string;
723
+ durationMs: number;
724
+ outputHash: string;
725
+ }>, z.ZodObject<{
726
+ type: z.ZodLiteral<"execution_failed">;
727
+ executionId: z.ZodString;
728
+ actionId: z.ZodString;
729
+ error: z.ZodString;
730
+ durationMs: z.ZodNumber;
731
+ retryable: z.ZodBoolean;
732
+ }, "strip", z.ZodTypeAny, {
733
+ error: string;
734
+ type: "execution_failed";
735
+ executionId: string;
736
+ actionId: string;
737
+ durationMs: number;
738
+ retryable: boolean;
739
+ }, {
740
+ error: string;
741
+ type: "execution_failed";
742
+ executionId: string;
743
+ actionId: string;
744
+ durationMs: number;
745
+ retryable: boolean;
746
+ }>, z.ZodObject<{
747
+ type: z.ZodLiteral<"incident_detected">;
748
+ incidentId: z.ZodString;
749
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
750
+ description: z.ZodString;
751
+ affectedResources: z.ZodArray<z.ZodString, "many">;
752
+ }, "strip", z.ZodTypeAny, {
753
+ type: "incident_detected";
754
+ severity: "low" | "medium" | "high" | "critical";
755
+ description: string;
756
+ incidentId: string;
757
+ affectedResources: string[];
758
+ }, {
759
+ type: "incident_detected";
760
+ severity: "low" | "medium" | "high" | "critical";
761
+ description: string;
762
+ incidentId: string;
763
+ affectedResources: string[];
764
+ }>, z.ZodObject<{
765
+ type: z.ZodLiteral<"rollback_initiated">;
766
+ rollbackId: z.ZodString;
767
+ executionId: z.ZodString;
768
+ reason: z.ZodString;
769
+ initiatedBy: z.ZodString;
770
+ }, "strip", z.ZodTypeAny, {
771
+ type: "rollback_initiated";
772
+ executionId: string;
773
+ reason: string;
774
+ rollbackId: string;
775
+ initiatedBy: string;
776
+ }, {
777
+ type: "rollback_initiated";
778
+ executionId: string;
779
+ reason: string;
780
+ rollbackId: string;
781
+ initiatedBy: string;
782
+ }>, z.ZodObject<{
783
+ type: z.ZodLiteral<"component_registered">;
784
+ componentId: z.ZodString;
785
+ componentType: z.ZodString;
786
+ name: z.ZodString;
787
+ version: z.ZodString;
788
+ }, "strip", z.ZodTypeAny, {
789
+ type: "component_registered";
790
+ name: string;
791
+ componentId: string;
792
+ version: string;
793
+ componentType: string;
794
+ }, {
795
+ type: "component_registered";
796
+ name: string;
797
+ componentId: string;
798
+ version: string;
799
+ componentType: string;
800
+ }>, z.ZodObject<{
801
+ type: z.ZodLiteral<"component_updated">;
802
+ componentId: z.ZodString;
803
+ changes: z.ZodArray<z.ZodString, "many">;
804
+ previousVersion: z.ZodOptional<z.ZodString>;
805
+ newVersion: z.ZodOptional<z.ZodString>;
806
+ }, "strip", z.ZodTypeAny, {
807
+ type: "component_updated";
808
+ componentId: string;
809
+ changes: string[];
810
+ previousVersion?: string | undefined;
811
+ newVersion?: string | undefined;
812
+ }, {
813
+ type: "component_updated";
814
+ componentId: string;
815
+ changes: string[];
816
+ previousVersion?: string | undefined;
817
+ newVersion?: string | undefined;
818
+ }>]>, z.ZodObject<{
819
+ type: z.ZodString;
820
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
821
+ type: z.ZodString;
822
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
823
+ type: z.ZodString;
824
+ }, z.ZodTypeAny, "passthrough">>]>;
825
+ occurredAt: z.ZodOptional<z.ZodDate>;
826
+ signedBy: z.ZodOptional<z.ZodString>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ correlationId: string;
829
+ eventType: import("../index.js").ProofEventType;
830
+ payload: {
831
+ type: "intent_received";
832
+ intentId: string;
833
+ action: string;
834
+ actionType: string;
835
+ resourceScope: string[];
836
+ } | {
837
+ type: "decision_made";
838
+ intentId: string;
839
+ decisionId: string;
840
+ trustScore: number;
841
+ trustBand: string;
842
+ permitted: boolean;
843
+ reasoning: string[];
844
+ } | {
845
+ type: "trust_delta";
846
+ deltaId: string;
847
+ reason: string;
848
+ previousScore: number;
849
+ newScore: number;
850
+ previousBand: string;
851
+ newBand: string;
852
+ } | {
853
+ type: "execution_started";
854
+ decisionId: string;
855
+ executionId: string;
856
+ actionId: string;
857
+ adapterId: string;
858
+ } | {
859
+ type: "execution_completed";
860
+ status: "success" | "partial";
861
+ executionId: string;
862
+ actionId: string;
863
+ durationMs: number;
864
+ outputHash: string;
865
+ } | {
866
+ error: string;
867
+ type: "execution_failed";
868
+ executionId: string;
869
+ actionId: string;
870
+ durationMs: number;
871
+ retryable: boolean;
872
+ } | {
873
+ type: "incident_detected";
874
+ severity: "low" | "medium" | "high" | "critical";
875
+ description: string;
876
+ incidentId: string;
877
+ affectedResources: string[];
878
+ } | {
879
+ type: "rollback_initiated";
880
+ executionId: string;
881
+ reason: string;
882
+ rollbackId: string;
883
+ initiatedBy: string;
884
+ } | {
885
+ type: "component_registered";
886
+ name: string;
887
+ componentId: string;
888
+ version: string;
889
+ componentType: string;
890
+ } | {
891
+ type: "component_updated";
892
+ componentId: string;
893
+ changes: string[];
894
+ previousVersion?: string | undefined;
895
+ newVersion?: string | undefined;
896
+ } | z.objectOutputType<{
897
+ type: z.ZodString;
898
+ }, z.ZodTypeAny, "passthrough">;
899
+ agentId?: string | undefined;
900
+ occurredAt?: Date | undefined;
901
+ signedBy?: string | undefined;
902
+ }, {
903
+ correlationId: string;
904
+ eventType: import("../index.js").ProofEventType;
905
+ payload: {
906
+ type: "intent_received";
907
+ intentId: string;
908
+ action: string;
909
+ actionType: string;
910
+ resourceScope: string[];
911
+ } | {
912
+ type: "decision_made";
913
+ intentId: string;
914
+ decisionId: string;
915
+ trustScore: number;
916
+ trustBand: string;
917
+ permitted: boolean;
918
+ reasoning: string[];
919
+ } | {
920
+ type: "trust_delta";
921
+ deltaId: string;
922
+ reason: string;
923
+ previousScore: number;
924
+ newScore: number;
925
+ previousBand: string;
926
+ newBand: string;
927
+ } | {
928
+ type: "execution_started";
929
+ decisionId: string;
930
+ executionId: string;
931
+ actionId: string;
932
+ adapterId: string;
933
+ } | {
934
+ type: "execution_completed";
935
+ status: "success" | "partial";
936
+ executionId: string;
937
+ actionId: string;
938
+ durationMs: number;
939
+ outputHash: string;
940
+ } | {
941
+ error: string;
942
+ type: "execution_failed";
943
+ executionId: string;
944
+ actionId: string;
945
+ durationMs: number;
946
+ retryable: boolean;
947
+ } | {
948
+ type: "incident_detected";
949
+ severity: "low" | "medium" | "high" | "critical";
950
+ description: string;
951
+ incidentId: string;
952
+ affectedResources: string[];
953
+ } | {
954
+ type: "rollback_initiated";
955
+ executionId: string;
956
+ reason: string;
957
+ rollbackId: string;
958
+ initiatedBy: string;
959
+ } | {
960
+ type: "component_registered";
961
+ name: string;
962
+ componentId: string;
963
+ version: string;
964
+ componentType: string;
965
+ } | {
966
+ type: "component_updated";
967
+ componentId: string;
968
+ changes: string[];
969
+ previousVersion?: string | undefined;
970
+ newVersion?: string | undefined;
971
+ } | z.objectInputType<{
972
+ type: z.ZodString;
973
+ }, z.ZodTypeAny, "passthrough">;
974
+ agentId?: string | undefined;
975
+ occurredAt?: Date | undefined;
976
+ signedBy?: string | undefined;
977
+ }>;
978
+ export type ValidatedProofEvent = z.infer<typeof proofEventSchema>;
979
+ export type ValidatedProofEventFilter = z.infer<typeof proofEventFilterSchema>;
980
+ export type ValidatedLogProofEventRequest = z.infer<typeof logProofEventRequestSchema>;
981
+ //# sourceMappingURL=proof-event.d.ts.map