@odingard/guardian-sdk 0.0.0-stage → 0.2.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.
- package/LICENSE +201 -0
- package/README.md +302 -2
- package/dist/contracts.js +9865 -0
- package/dist/index.js +14437 -0
- package/dist/public-catalog.v1.json +6915 -0
- package/dist-dts/catalog.d.ts +14 -0
- package/dist-dts/client.d.ts +130 -0
- package/dist-dts/contracts/action-pack.d.ts +464 -0
- package/dist-dts/contracts/action-parameters.d.ts +34 -0
- package/dist-dts/contracts/action-registry.d.ts +287 -0
- package/dist-dts/contracts/action.d.ts +2358 -0
- package/dist-dts/contracts/agent-state.d.ts +386 -0
- package/dist-dts/contracts/api.d.ts +78 -0
- package/dist-dts/contracts/approval.d.ts +425 -0
- package/dist-dts/contracts/assurance.d.ts +60 -0
- package/dist-dts/contracts/authority-graph.d.ts +294 -0
- package/dist-dts/contracts/authority-state.d.ts +108 -0
- package/dist-dts/contracts/authority.d.ts +339 -0
- package/dist-dts/contracts/billing.d.ts +32 -0
- package/dist-dts/contracts/calendar.d.ts +146 -0
- package/dist-dts/contracts/canonical-json.d.ts +4 -0
- package/dist-dts/contracts/capability.d.ts +28 -0
- package/dist-dts/contracts/commerce.d.ts +133 -0
- package/dist-dts/contracts/denial.d.ts +648 -0
- package/dist-dts/contracts/digest.d.ts +2 -0
- package/dist-dts/contracts/email.d.ts +45 -0
- package/dist-dts/contracts/evidence.d.ts +1087 -0
- package/dist-dts/contracts/execution.d.ts +1732 -0
- package/dist-dts/contracts/files.d.ts +61 -0
- package/dist-dts/contracts/identifiers.d.ts +49 -0
- package/dist-dts/contracts/index.d.ts +41 -0
- package/dist-dts/contracts/intent.d.ts +335 -0
- package/dist-dts/contracts/lineage.d.ts +218 -0
- package/dist-dts/contracts/local.d.ts +101 -0
- package/dist-dts/contracts/multi-principal.d.ts +292 -0
- package/dist-dts/contracts/multiparty.d.ts +169 -0
- package/dist-dts/contracts/obligation.d.ts +196 -0
- package/dist-dts/contracts/plan.d.ts +67 -0
- package/dist-dts/contracts/policy-simulation.d.ts +681 -0
- package/dist-dts/contracts/prerequisite.d.ts +147 -0
- package/dist-dts/contracts/protected-data.d.ts +160 -0
- package/dist-dts/contracts/receipt.d.ts +3126 -0
- package/dist-dts/contracts/resource-claims.d.ts +146 -0
- package/dist-dts/contracts/runtime.d.ts +111 -0
- package/dist-dts/contracts/safety-envelope.d.ts +287 -0
- package/dist-dts/contracts/sequence.d.ts +132 -0
- package/dist-dts/contracts/sources.d.ts +191 -0
- package/dist-dts/contracts/tools.d.ts +232 -0
- package/dist-dts/contracts/transaction.d.ts +360 -0
- package/dist-dts/contracts-entry.d.ts +1 -0
- package/dist-dts/embedded.d.ts +58 -0
- package/dist-dts/evidence/evidence.d.ts +25 -0
- package/dist-dts/evidence/receipt.d.ts +61 -0
- package/dist-dts/index.d.ts +5 -0
- package/dist-dts/lifecycle.d.ts +25 -0
- package/dist-dts/proposal.d.ts +41 -0
- package/dist-dts/receipts.d.ts +37 -0
- package/package.json +56 -4
|
@@ -0,0 +1,1087 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const Sha256DigestSchema: z.ZodString;
|
|
3
|
+
export declare const FailureCodeSchema: z.ZodString;
|
|
4
|
+
export declare const EvidenceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
+
eventType: z.ZodLiteral<"AUTHENTICATION_RECORDED">;
|
|
6
|
+
payload: z.ZodObject<{
|
|
7
|
+
interface: z.ZodEnum<{
|
|
8
|
+
mcp: "mcp";
|
|
9
|
+
rest: "rest";
|
|
10
|
+
internal: "internal";
|
|
11
|
+
}>;
|
|
12
|
+
outcome: z.ZodEnum<{
|
|
13
|
+
rejected: "rejected";
|
|
14
|
+
authenticated: "authenticated";
|
|
15
|
+
}>;
|
|
16
|
+
credentialReference: z.ZodString;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
19
|
+
eventType: z.ZodLiteral<"ADAPTER_AUTHENTICATION_RECORDED">;
|
|
20
|
+
payload: z.ZodObject<{
|
|
21
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
22
|
+
outcome: z.ZodLiteral<"authenticated">;
|
|
23
|
+
credentialReference: z.ZodString;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
26
|
+
eventType: z.ZodLiteral<"REQUEST_RECEIVED">;
|
|
27
|
+
payload: z.ZodObject<{
|
|
28
|
+
actionDigest: z.ZodString;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31
|
+
eventType: z.ZodLiteral<"ACTION_NORMALIZED">;
|
|
32
|
+
payload: z.ZodObject<{
|
|
33
|
+
actionDigest: z.ZodString;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
+
eventType: z.ZodLiteral<"DECISION_RECORDED">;
|
|
37
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
+
actionDigest: z.ZodString;
|
|
39
|
+
actionDecisionDigest: z.ZodString;
|
|
40
|
+
decision: z.ZodLiteral<"ALLOW">;
|
|
41
|
+
reasonCode: z.ZodLiteral<"AUTHORIZED">;
|
|
42
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
43
|
+
actionDigest: z.ZodString;
|
|
44
|
+
actionDecisionDigest: z.ZodString;
|
|
45
|
+
decision: z.ZodLiteral<"ASK">;
|
|
46
|
+
reasonCode: z.ZodLiteral<"APPROVAL_REQUIRED">;
|
|
47
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
48
|
+
actionDigest: z.ZodString;
|
|
49
|
+
actionDecisionDigest: z.ZodString;
|
|
50
|
+
decision: z.ZodLiteral<"DENY">;
|
|
51
|
+
reasonCode: z.ZodEnum<{
|
|
52
|
+
MALFORMED_INPUT: "MALFORMED_INPUT";
|
|
53
|
+
TENANT_MISMATCH: "TENANT_MISMATCH";
|
|
54
|
+
PRINCIPAL_MISMATCH: "PRINCIPAL_MISMATCH";
|
|
55
|
+
PRINCIPAL_NOT_ACTIVE: "PRINCIPAL_NOT_ACTIVE";
|
|
56
|
+
AGENT_TENANT_MISMATCH: "AGENT_TENANT_MISMATCH";
|
|
57
|
+
AGENT_OWNER_MISMATCH: "AGENT_OWNER_MISMATCH";
|
|
58
|
+
AGENT_MISMATCH: "AGENT_MISMATCH";
|
|
59
|
+
AGENT_NOT_ACTIVE: "AGENT_NOT_ACTIVE";
|
|
60
|
+
INTERFACE_NOT_ALLOWED: "INTERFACE_NOT_ALLOWED";
|
|
61
|
+
AUTHORITY_PAUSED: "AUTHORITY_PAUSED";
|
|
62
|
+
AUTHORITY_CHAIN_MISSING: "AUTHORITY_CHAIN_MISSING";
|
|
63
|
+
DUPLICATE_GRANT_ID: "DUPLICATE_GRANT_ID";
|
|
64
|
+
GRANT_TENANT_MISMATCH: "GRANT_TENANT_MISMATCH";
|
|
65
|
+
GRANT_PRINCIPAL_MISMATCH: "GRANT_PRINCIPAL_MISMATCH";
|
|
66
|
+
GRANT_AGENT_MISMATCH: "GRANT_AGENT_MISMATCH";
|
|
67
|
+
GRANT_NOT_ACTIVE: "GRANT_NOT_ACTIVE";
|
|
68
|
+
GRANT_REVOKED: "GRANT_REVOKED";
|
|
69
|
+
GRANT_NOT_YET_VALID: "GRANT_NOT_YET_VALID";
|
|
70
|
+
GRANT_EXPIRED: "GRANT_EXPIRED";
|
|
71
|
+
INVALID_PARENT_LINK: "INVALID_PARENT_LINK";
|
|
72
|
+
DELEGATION_NOT_ALLOWED: "DELEGATION_NOT_ALLOWED";
|
|
73
|
+
AUTHORITY_AMPLIFICATION: "AUTHORITY_AMPLIFICATION";
|
|
74
|
+
ACTION_NOT_ALLOWED: "ACTION_NOT_ALLOWED";
|
|
75
|
+
RESOURCE_NOT_ALLOWED: "RESOURCE_NOT_ALLOWED";
|
|
76
|
+
ADAPTER_NOT_ALLOWED: "ADAPTER_NOT_ALLOWED";
|
|
77
|
+
VALUE_LIMIT_EXCEEDED: "VALUE_LIMIT_EXCEEDED";
|
|
78
|
+
USE_LIMIT_EXCEEDED: "USE_LIMIT_EXCEEDED";
|
|
79
|
+
MERCHANT_NOT_ALLOWED: "MERCHANT_NOT_ALLOWED";
|
|
80
|
+
CATEGORY_NOT_ALLOWED: "CATEGORY_NOT_ALLOWED";
|
|
81
|
+
RECURRENCE_NOT_ALLOWED: "RECURRENCE_NOT_ALLOWED";
|
|
82
|
+
BUDGET_NOT_FOUND: "BUDGET_NOT_FOUND";
|
|
83
|
+
BUDGET_SCOPE_MISMATCH: "BUDGET_SCOPE_MISMATCH";
|
|
84
|
+
BUDGET_NOT_ACTIVE: "BUDGET_NOT_ACTIVE";
|
|
85
|
+
BUDGET_EXPIRED: "BUDGET_EXPIRED";
|
|
86
|
+
BUDGET_EXCEEDED: "BUDGET_EXCEEDED";
|
|
87
|
+
TRANSACTION_LIMIT_EXCEEDED: "TRANSACTION_LIMIT_EXCEEDED";
|
|
88
|
+
}>;
|
|
89
|
+
}, z.core.$strict>], "decision">;
|
|
90
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
91
|
+
eventType: z.ZodLiteral<"REQUEST_DENIED">;
|
|
92
|
+
payload: z.ZodObject<{
|
|
93
|
+
decision: z.ZodLiteral<"DENY">;
|
|
94
|
+
actionDigest: z.ZodNullable<z.ZodString>;
|
|
95
|
+
requestDeniedDigest: z.ZodString;
|
|
96
|
+
reasonCode: z.ZodString;
|
|
97
|
+
decidedAtEpochMs: z.ZodNumber;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
100
|
+
eventType: z.ZodLiteral<"APPROVAL_STATE_REFERENCED">;
|
|
101
|
+
payload: z.ZodObject<{
|
|
102
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
103
|
+
version: z.ZodNumber;
|
|
104
|
+
state: z.ZodEnum<{
|
|
105
|
+
revoked: "revoked";
|
|
106
|
+
pending: "pending";
|
|
107
|
+
expired: "expired";
|
|
108
|
+
approved: "approved";
|
|
109
|
+
denied: "denied";
|
|
110
|
+
superseded: "superseded";
|
|
111
|
+
consumed: "consumed";
|
|
112
|
+
}>;
|
|
113
|
+
approvalDigest: z.ZodString;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
+
eventType: z.ZodLiteral<"APPROVAL_PRESENTED">;
|
|
117
|
+
payload: z.ZodObject<{
|
|
118
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
119
|
+
presentationDigest: z.ZodString;
|
|
120
|
+
viewerReference: z.ZodString;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
123
|
+
eventType: z.ZodLiteral<"APPROVAL_DECISION_RECORDED">;
|
|
124
|
+
payload: z.ZodObject<{
|
|
125
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
126
|
+
version: z.ZodNumber;
|
|
127
|
+
decision: z.ZodEnum<{
|
|
128
|
+
veto: "veto";
|
|
129
|
+
approve: "approve";
|
|
130
|
+
deny: "deny";
|
|
131
|
+
revoke: "revoke";
|
|
132
|
+
endorse: "endorse";
|
|
133
|
+
dissent: "dissent";
|
|
134
|
+
mature: "mature";
|
|
135
|
+
}>;
|
|
136
|
+
actorPrincipalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
137
|
+
actorReference: z.ZodString;
|
|
138
|
+
presentationDigest: z.ZodString;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
141
|
+
eventType: z.ZodLiteral<"APPROVAL_REJECTED">;
|
|
142
|
+
payload: z.ZodObject<{
|
|
143
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
144
|
+
reasonCode: z.ZodString;
|
|
145
|
+
}, z.core.$strict>;
|
|
146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
147
|
+
eventType: z.ZodLiteral<"CAPABILITY_STATE_REFERENCED">;
|
|
148
|
+
payload: z.ZodObject<{
|
|
149
|
+
actionDigest: z.ZodString;
|
|
150
|
+
capabilityId: z.core.$ZodBranded<z.ZodString, "CapabilityId", "out">;
|
|
151
|
+
state: z.ZodEnum<{
|
|
152
|
+
revoked: "revoked";
|
|
153
|
+
expired: "expired";
|
|
154
|
+
issued: "issued";
|
|
155
|
+
used: "used";
|
|
156
|
+
}>;
|
|
157
|
+
capabilityDigest: z.ZodString;
|
|
158
|
+
}, z.core.$strict>;
|
|
159
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
160
|
+
eventType: z.ZodLiteral<"CAPABILITY_REJECTED">;
|
|
161
|
+
payload: z.ZodObject<{
|
|
162
|
+
actionDigest: z.ZodString;
|
|
163
|
+
reasonCode: z.ZodString;
|
|
164
|
+
}, z.core.$strict>;
|
|
165
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
166
|
+
eventType: z.ZodLiteral<"EXECUTION_ATTEMPTED">;
|
|
167
|
+
payload: z.ZodObject<{
|
|
168
|
+
actionDigest: z.ZodString;
|
|
169
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
170
|
+
attemptReference: z.ZodString;
|
|
171
|
+
idempotencyDigest: z.ZodString;
|
|
172
|
+
}, z.core.$strict>;
|
|
173
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
174
|
+
eventType: z.ZodLiteral<"EXECUTION_ABORTED">;
|
|
175
|
+
payload: z.ZodObject<{
|
|
176
|
+
actionDigest: z.ZodString;
|
|
177
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
178
|
+
attemptReference: z.ZodString;
|
|
179
|
+
reasonCode: z.ZodString;
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
182
|
+
eventType: z.ZodLiteral<"EFFECT_PREPARED">;
|
|
183
|
+
payload: z.ZodObject<{
|
|
184
|
+
actionDigest: z.ZodString;
|
|
185
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
186
|
+
attemptReference: z.ZodString;
|
|
187
|
+
preparedDigest: z.ZodString;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
190
|
+
eventType: z.ZodLiteral<"EFFECT_COMMIT_AUTHORIZED">;
|
|
191
|
+
payload: z.ZodObject<{
|
|
192
|
+
actionDigest: z.ZodString;
|
|
193
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
194
|
+
attemptReference: z.ZodString;
|
|
195
|
+
actionDecisionDigest: z.ZodString;
|
|
196
|
+
}, z.core.$strict>;
|
|
197
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
198
|
+
eventType: z.ZodLiteral<"EFFECT_OUTCOME_UNKNOWN">;
|
|
199
|
+
payload: z.ZodObject<{
|
|
200
|
+
actionDigest: z.ZodString;
|
|
201
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
202
|
+
attemptReference: z.ZodString;
|
|
203
|
+
reasonCode: z.ZodString;
|
|
204
|
+
}, z.core.$strict>;
|
|
205
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
206
|
+
eventType: z.ZodLiteral<"EFFECT_UNRESOLVED">;
|
|
207
|
+
payload: z.ZodObject<{
|
|
208
|
+
actionDigest: z.ZodString;
|
|
209
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
210
|
+
attemptReference: z.ZodString;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
213
|
+
eventType: z.ZodLiteral<"EFFECT_VERIFIED">;
|
|
214
|
+
payload: z.ZodObject<{
|
|
215
|
+
actionDigest: z.ZodString;
|
|
216
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
217
|
+
attemptReference: z.ZodString;
|
|
218
|
+
effectDigest: z.ZodString;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
221
|
+
eventType: z.ZodLiteral<"EXECUTION_FAILED">;
|
|
222
|
+
payload: z.ZodObject<{
|
|
223
|
+
actionDigest: z.ZodString;
|
|
224
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
225
|
+
attemptReference: z.ZodString;
|
|
226
|
+
failureCode: z.ZodString;
|
|
227
|
+
failureDigest: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
230
|
+
eventType: z.ZodLiteral<"AUTHORITY_REVOKED">;
|
|
231
|
+
payload: z.ZodObject<{
|
|
232
|
+
grantId: z.core.$ZodBranded<z.ZodString, "GrantId", "out">;
|
|
233
|
+
grantVersion: z.ZodNumber;
|
|
234
|
+
revocationDigest: z.ZodString;
|
|
235
|
+
}, z.core.$strict>;
|
|
236
|
+
}, z.core.$strict>], "eventType">;
|
|
237
|
+
export declare const EvidenceChainContextSchema: z.ZodObject<{
|
|
238
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
239
|
+
principalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
240
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
241
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
242
|
+
correlationId: z.core.$ZodBranded<z.ZodString, "CorrelationId", "out">;
|
|
243
|
+
}, z.core.$strict>;
|
|
244
|
+
export declare const EvidenceEventDraftSchema: z.ZodObject<{
|
|
245
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
246
|
+
eventType: z.ZodLiteral<"AUTHENTICATION_RECORDED">;
|
|
247
|
+
payload: z.ZodObject<{
|
|
248
|
+
interface: z.ZodEnum<{
|
|
249
|
+
mcp: "mcp";
|
|
250
|
+
rest: "rest";
|
|
251
|
+
internal: "internal";
|
|
252
|
+
}>;
|
|
253
|
+
outcome: z.ZodEnum<{
|
|
254
|
+
rejected: "rejected";
|
|
255
|
+
authenticated: "authenticated";
|
|
256
|
+
}>;
|
|
257
|
+
credentialReference: z.ZodString;
|
|
258
|
+
}, z.core.$strict>;
|
|
259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
260
|
+
eventType: z.ZodLiteral<"ADAPTER_AUTHENTICATION_RECORDED">;
|
|
261
|
+
payload: z.ZodObject<{
|
|
262
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
263
|
+
outcome: z.ZodLiteral<"authenticated">;
|
|
264
|
+
credentialReference: z.ZodString;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
267
|
+
eventType: z.ZodLiteral<"REQUEST_RECEIVED">;
|
|
268
|
+
payload: z.ZodObject<{
|
|
269
|
+
actionDigest: z.ZodString;
|
|
270
|
+
}, z.core.$strict>;
|
|
271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
272
|
+
eventType: z.ZodLiteral<"ACTION_NORMALIZED">;
|
|
273
|
+
payload: z.ZodObject<{
|
|
274
|
+
actionDigest: z.ZodString;
|
|
275
|
+
}, z.core.$strict>;
|
|
276
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
277
|
+
eventType: z.ZodLiteral<"DECISION_RECORDED">;
|
|
278
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
279
|
+
actionDigest: z.ZodString;
|
|
280
|
+
actionDecisionDigest: z.ZodString;
|
|
281
|
+
decision: z.ZodLiteral<"ALLOW">;
|
|
282
|
+
reasonCode: z.ZodLiteral<"AUTHORIZED">;
|
|
283
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
284
|
+
actionDigest: z.ZodString;
|
|
285
|
+
actionDecisionDigest: z.ZodString;
|
|
286
|
+
decision: z.ZodLiteral<"ASK">;
|
|
287
|
+
reasonCode: z.ZodLiteral<"APPROVAL_REQUIRED">;
|
|
288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
289
|
+
actionDigest: z.ZodString;
|
|
290
|
+
actionDecisionDigest: z.ZodString;
|
|
291
|
+
decision: z.ZodLiteral<"DENY">;
|
|
292
|
+
reasonCode: z.ZodEnum<{
|
|
293
|
+
MALFORMED_INPUT: "MALFORMED_INPUT";
|
|
294
|
+
TENANT_MISMATCH: "TENANT_MISMATCH";
|
|
295
|
+
PRINCIPAL_MISMATCH: "PRINCIPAL_MISMATCH";
|
|
296
|
+
PRINCIPAL_NOT_ACTIVE: "PRINCIPAL_NOT_ACTIVE";
|
|
297
|
+
AGENT_TENANT_MISMATCH: "AGENT_TENANT_MISMATCH";
|
|
298
|
+
AGENT_OWNER_MISMATCH: "AGENT_OWNER_MISMATCH";
|
|
299
|
+
AGENT_MISMATCH: "AGENT_MISMATCH";
|
|
300
|
+
AGENT_NOT_ACTIVE: "AGENT_NOT_ACTIVE";
|
|
301
|
+
INTERFACE_NOT_ALLOWED: "INTERFACE_NOT_ALLOWED";
|
|
302
|
+
AUTHORITY_PAUSED: "AUTHORITY_PAUSED";
|
|
303
|
+
AUTHORITY_CHAIN_MISSING: "AUTHORITY_CHAIN_MISSING";
|
|
304
|
+
DUPLICATE_GRANT_ID: "DUPLICATE_GRANT_ID";
|
|
305
|
+
GRANT_TENANT_MISMATCH: "GRANT_TENANT_MISMATCH";
|
|
306
|
+
GRANT_PRINCIPAL_MISMATCH: "GRANT_PRINCIPAL_MISMATCH";
|
|
307
|
+
GRANT_AGENT_MISMATCH: "GRANT_AGENT_MISMATCH";
|
|
308
|
+
GRANT_NOT_ACTIVE: "GRANT_NOT_ACTIVE";
|
|
309
|
+
GRANT_REVOKED: "GRANT_REVOKED";
|
|
310
|
+
GRANT_NOT_YET_VALID: "GRANT_NOT_YET_VALID";
|
|
311
|
+
GRANT_EXPIRED: "GRANT_EXPIRED";
|
|
312
|
+
INVALID_PARENT_LINK: "INVALID_PARENT_LINK";
|
|
313
|
+
DELEGATION_NOT_ALLOWED: "DELEGATION_NOT_ALLOWED";
|
|
314
|
+
AUTHORITY_AMPLIFICATION: "AUTHORITY_AMPLIFICATION";
|
|
315
|
+
ACTION_NOT_ALLOWED: "ACTION_NOT_ALLOWED";
|
|
316
|
+
RESOURCE_NOT_ALLOWED: "RESOURCE_NOT_ALLOWED";
|
|
317
|
+
ADAPTER_NOT_ALLOWED: "ADAPTER_NOT_ALLOWED";
|
|
318
|
+
VALUE_LIMIT_EXCEEDED: "VALUE_LIMIT_EXCEEDED";
|
|
319
|
+
USE_LIMIT_EXCEEDED: "USE_LIMIT_EXCEEDED";
|
|
320
|
+
MERCHANT_NOT_ALLOWED: "MERCHANT_NOT_ALLOWED";
|
|
321
|
+
CATEGORY_NOT_ALLOWED: "CATEGORY_NOT_ALLOWED";
|
|
322
|
+
RECURRENCE_NOT_ALLOWED: "RECURRENCE_NOT_ALLOWED";
|
|
323
|
+
BUDGET_NOT_FOUND: "BUDGET_NOT_FOUND";
|
|
324
|
+
BUDGET_SCOPE_MISMATCH: "BUDGET_SCOPE_MISMATCH";
|
|
325
|
+
BUDGET_NOT_ACTIVE: "BUDGET_NOT_ACTIVE";
|
|
326
|
+
BUDGET_EXPIRED: "BUDGET_EXPIRED";
|
|
327
|
+
BUDGET_EXCEEDED: "BUDGET_EXCEEDED";
|
|
328
|
+
TRANSACTION_LIMIT_EXCEEDED: "TRANSACTION_LIMIT_EXCEEDED";
|
|
329
|
+
}>;
|
|
330
|
+
}, z.core.$strict>], "decision">;
|
|
331
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
332
|
+
eventType: z.ZodLiteral<"REQUEST_DENIED">;
|
|
333
|
+
payload: z.ZodObject<{
|
|
334
|
+
decision: z.ZodLiteral<"DENY">;
|
|
335
|
+
actionDigest: z.ZodNullable<z.ZodString>;
|
|
336
|
+
requestDeniedDigest: z.ZodString;
|
|
337
|
+
reasonCode: z.ZodString;
|
|
338
|
+
decidedAtEpochMs: z.ZodNumber;
|
|
339
|
+
}, z.core.$strict>;
|
|
340
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
341
|
+
eventType: z.ZodLiteral<"APPROVAL_STATE_REFERENCED">;
|
|
342
|
+
payload: z.ZodObject<{
|
|
343
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
344
|
+
version: z.ZodNumber;
|
|
345
|
+
state: z.ZodEnum<{
|
|
346
|
+
revoked: "revoked";
|
|
347
|
+
pending: "pending";
|
|
348
|
+
expired: "expired";
|
|
349
|
+
approved: "approved";
|
|
350
|
+
denied: "denied";
|
|
351
|
+
superseded: "superseded";
|
|
352
|
+
consumed: "consumed";
|
|
353
|
+
}>;
|
|
354
|
+
approvalDigest: z.ZodString;
|
|
355
|
+
}, z.core.$strict>;
|
|
356
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
357
|
+
eventType: z.ZodLiteral<"APPROVAL_PRESENTED">;
|
|
358
|
+
payload: z.ZodObject<{
|
|
359
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
360
|
+
presentationDigest: z.ZodString;
|
|
361
|
+
viewerReference: z.ZodString;
|
|
362
|
+
}, z.core.$strict>;
|
|
363
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
364
|
+
eventType: z.ZodLiteral<"APPROVAL_DECISION_RECORDED">;
|
|
365
|
+
payload: z.ZodObject<{
|
|
366
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
367
|
+
version: z.ZodNumber;
|
|
368
|
+
decision: z.ZodEnum<{
|
|
369
|
+
veto: "veto";
|
|
370
|
+
approve: "approve";
|
|
371
|
+
deny: "deny";
|
|
372
|
+
revoke: "revoke";
|
|
373
|
+
endorse: "endorse";
|
|
374
|
+
dissent: "dissent";
|
|
375
|
+
mature: "mature";
|
|
376
|
+
}>;
|
|
377
|
+
actorPrincipalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
378
|
+
actorReference: z.ZodString;
|
|
379
|
+
presentationDigest: z.ZodString;
|
|
380
|
+
}, z.core.$strict>;
|
|
381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
382
|
+
eventType: z.ZodLiteral<"APPROVAL_REJECTED">;
|
|
383
|
+
payload: z.ZodObject<{
|
|
384
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
385
|
+
reasonCode: z.ZodString;
|
|
386
|
+
}, z.core.$strict>;
|
|
387
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
388
|
+
eventType: z.ZodLiteral<"CAPABILITY_STATE_REFERENCED">;
|
|
389
|
+
payload: z.ZodObject<{
|
|
390
|
+
actionDigest: z.ZodString;
|
|
391
|
+
capabilityId: z.core.$ZodBranded<z.ZodString, "CapabilityId", "out">;
|
|
392
|
+
state: z.ZodEnum<{
|
|
393
|
+
revoked: "revoked";
|
|
394
|
+
expired: "expired";
|
|
395
|
+
issued: "issued";
|
|
396
|
+
used: "used";
|
|
397
|
+
}>;
|
|
398
|
+
capabilityDigest: z.ZodString;
|
|
399
|
+
}, z.core.$strict>;
|
|
400
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
401
|
+
eventType: z.ZodLiteral<"CAPABILITY_REJECTED">;
|
|
402
|
+
payload: z.ZodObject<{
|
|
403
|
+
actionDigest: z.ZodString;
|
|
404
|
+
reasonCode: z.ZodString;
|
|
405
|
+
}, z.core.$strict>;
|
|
406
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
407
|
+
eventType: z.ZodLiteral<"EXECUTION_ATTEMPTED">;
|
|
408
|
+
payload: z.ZodObject<{
|
|
409
|
+
actionDigest: z.ZodString;
|
|
410
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
411
|
+
attemptReference: z.ZodString;
|
|
412
|
+
idempotencyDigest: z.ZodString;
|
|
413
|
+
}, z.core.$strict>;
|
|
414
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
415
|
+
eventType: z.ZodLiteral<"EXECUTION_ABORTED">;
|
|
416
|
+
payload: z.ZodObject<{
|
|
417
|
+
actionDigest: z.ZodString;
|
|
418
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
419
|
+
attemptReference: z.ZodString;
|
|
420
|
+
reasonCode: z.ZodString;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
423
|
+
eventType: z.ZodLiteral<"EFFECT_PREPARED">;
|
|
424
|
+
payload: z.ZodObject<{
|
|
425
|
+
actionDigest: z.ZodString;
|
|
426
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
427
|
+
attemptReference: z.ZodString;
|
|
428
|
+
preparedDigest: z.ZodString;
|
|
429
|
+
}, z.core.$strict>;
|
|
430
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
431
|
+
eventType: z.ZodLiteral<"EFFECT_COMMIT_AUTHORIZED">;
|
|
432
|
+
payload: z.ZodObject<{
|
|
433
|
+
actionDigest: z.ZodString;
|
|
434
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
435
|
+
attemptReference: z.ZodString;
|
|
436
|
+
actionDecisionDigest: z.ZodString;
|
|
437
|
+
}, z.core.$strict>;
|
|
438
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
439
|
+
eventType: z.ZodLiteral<"EFFECT_OUTCOME_UNKNOWN">;
|
|
440
|
+
payload: z.ZodObject<{
|
|
441
|
+
actionDigest: z.ZodString;
|
|
442
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
443
|
+
attemptReference: z.ZodString;
|
|
444
|
+
reasonCode: z.ZodString;
|
|
445
|
+
}, z.core.$strict>;
|
|
446
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
447
|
+
eventType: z.ZodLiteral<"EFFECT_UNRESOLVED">;
|
|
448
|
+
payload: z.ZodObject<{
|
|
449
|
+
actionDigest: z.ZodString;
|
|
450
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
451
|
+
attemptReference: z.ZodString;
|
|
452
|
+
}, z.core.$strict>;
|
|
453
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
454
|
+
eventType: z.ZodLiteral<"EFFECT_VERIFIED">;
|
|
455
|
+
payload: z.ZodObject<{
|
|
456
|
+
actionDigest: z.ZodString;
|
|
457
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
458
|
+
attemptReference: z.ZodString;
|
|
459
|
+
effectDigest: z.ZodString;
|
|
460
|
+
}, z.core.$strict>;
|
|
461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
462
|
+
eventType: z.ZodLiteral<"EXECUTION_FAILED">;
|
|
463
|
+
payload: z.ZodObject<{
|
|
464
|
+
actionDigest: z.ZodString;
|
|
465
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
466
|
+
attemptReference: z.ZodString;
|
|
467
|
+
failureCode: z.ZodString;
|
|
468
|
+
failureDigest: z.ZodOptional<z.ZodString>;
|
|
469
|
+
}, z.core.$strict>;
|
|
470
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
471
|
+
eventType: z.ZodLiteral<"AUTHORITY_REVOKED">;
|
|
472
|
+
payload: z.ZodObject<{
|
|
473
|
+
grantId: z.core.$ZodBranded<z.ZodString, "GrantId", "out">;
|
|
474
|
+
grantVersion: z.ZodNumber;
|
|
475
|
+
revocationDigest: z.ZodString;
|
|
476
|
+
}, z.core.$strict>;
|
|
477
|
+
}, z.core.$strict>], "eventType">;
|
|
478
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
479
|
+
id: z.core.$ZodBranded<z.ZodString, "EvidenceId", "out">;
|
|
480
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
481
|
+
principalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
482
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
483
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
484
|
+
correlationId: z.core.$ZodBranded<z.ZodString, "CorrelationId", "out">;
|
|
485
|
+
eventTimeEpochMs: z.ZodNumber;
|
|
486
|
+
}, z.core.$strict>;
|
|
487
|
+
export declare const EvidenceRecordCoreSchema: z.ZodObject<{
|
|
488
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
489
|
+
eventType: z.ZodLiteral<"AUTHENTICATION_RECORDED">;
|
|
490
|
+
payload: z.ZodObject<{
|
|
491
|
+
interface: z.ZodEnum<{
|
|
492
|
+
mcp: "mcp";
|
|
493
|
+
rest: "rest";
|
|
494
|
+
internal: "internal";
|
|
495
|
+
}>;
|
|
496
|
+
outcome: z.ZodEnum<{
|
|
497
|
+
rejected: "rejected";
|
|
498
|
+
authenticated: "authenticated";
|
|
499
|
+
}>;
|
|
500
|
+
credentialReference: z.ZodString;
|
|
501
|
+
}, z.core.$strict>;
|
|
502
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
503
|
+
eventType: z.ZodLiteral<"ADAPTER_AUTHENTICATION_RECORDED">;
|
|
504
|
+
payload: z.ZodObject<{
|
|
505
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
506
|
+
outcome: z.ZodLiteral<"authenticated">;
|
|
507
|
+
credentialReference: z.ZodString;
|
|
508
|
+
}, z.core.$strict>;
|
|
509
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
510
|
+
eventType: z.ZodLiteral<"REQUEST_RECEIVED">;
|
|
511
|
+
payload: z.ZodObject<{
|
|
512
|
+
actionDigest: z.ZodString;
|
|
513
|
+
}, z.core.$strict>;
|
|
514
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
515
|
+
eventType: z.ZodLiteral<"ACTION_NORMALIZED">;
|
|
516
|
+
payload: z.ZodObject<{
|
|
517
|
+
actionDigest: z.ZodString;
|
|
518
|
+
}, z.core.$strict>;
|
|
519
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
520
|
+
eventType: z.ZodLiteral<"DECISION_RECORDED">;
|
|
521
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
522
|
+
actionDigest: z.ZodString;
|
|
523
|
+
actionDecisionDigest: z.ZodString;
|
|
524
|
+
decision: z.ZodLiteral<"ALLOW">;
|
|
525
|
+
reasonCode: z.ZodLiteral<"AUTHORIZED">;
|
|
526
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
527
|
+
actionDigest: z.ZodString;
|
|
528
|
+
actionDecisionDigest: z.ZodString;
|
|
529
|
+
decision: z.ZodLiteral<"ASK">;
|
|
530
|
+
reasonCode: z.ZodLiteral<"APPROVAL_REQUIRED">;
|
|
531
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
532
|
+
actionDigest: z.ZodString;
|
|
533
|
+
actionDecisionDigest: z.ZodString;
|
|
534
|
+
decision: z.ZodLiteral<"DENY">;
|
|
535
|
+
reasonCode: z.ZodEnum<{
|
|
536
|
+
MALFORMED_INPUT: "MALFORMED_INPUT";
|
|
537
|
+
TENANT_MISMATCH: "TENANT_MISMATCH";
|
|
538
|
+
PRINCIPAL_MISMATCH: "PRINCIPAL_MISMATCH";
|
|
539
|
+
PRINCIPAL_NOT_ACTIVE: "PRINCIPAL_NOT_ACTIVE";
|
|
540
|
+
AGENT_TENANT_MISMATCH: "AGENT_TENANT_MISMATCH";
|
|
541
|
+
AGENT_OWNER_MISMATCH: "AGENT_OWNER_MISMATCH";
|
|
542
|
+
AGENT_MISMATCH: "AGENT_MISMATCH";
|
|
543
|
+
AGENT_NOT_ACTIVE: "AGENT_NOT_ACTIVE";
|
|
544
|
+
INTERFACE_NOT_ALLOWED: "INTERFACE_NOT_ALLOWED";
|
|
545
|
+
AUTHORITY_PAUSED: "AUTHORITY_PAUSED";
|
|
546
|
+
AUTHORITY_CHAIN_MISSING: "AUTHORITY_CHAIN_MISSING";
|
|
547
|
+
DUPLICATE_GRANT_ID: "DUPLICATE_GRANT_ID";
|
|
548
|
+
GRANT_TENANT_MISMATCH: "GRANT_TENANT_MISMATCH";
|
|
549
|
+
GRANT_PRINCIPAL_MISMATCH: "GRANT_PRINCIPAL_MISMATCH";
|
|
550
|
+
GRANT_AGENT_MISMATCH: "GRANT_AGENT_MISMATCH";
|
|
551
|
+
GRANT_NOT_ACTIVE: "GRANT_NOT_ACTIVE";
|
|
552
|
+
GRANT_REVOKED: "GRANT_REVOKED";
|
|
553
|
+
GRANT_NOT_YET_VALID: "GRANT_NOT_YET_VALID";
|
|
554
|
+
GRANT_EXPIRED: "GRANT_EXPIRED";
|
|
555
|
+
INVALID_PARENT_LINK: "INVALID_PARENT_LINK";
|
|
556
|
+
DELEGATION_NOT_ALLOWED: "DELEGATION_NOT_ALLOWED";
|
|
557
|
+
AUTHORITY_AMPLIFICATION: "AUTHORITY_AMPLIFICATION";
|
|
558
|
+
ACTION_NOT_ALLOWED: "ACTION_NOT_ALLOWED";
|
|
559
|
+
RESOURCE_NOT_ALLOWED: "RESOURCE_NOT_ALLOWED";
|
|
560
|
+
ADAPTER_NOT_ALLOWED: "ADAPTER_NOT_ALLOWED";
|
|
561
|
+
VALUE_LIMIT_EXCEEDED: "VALUE_LIMIT_EXCEEDED";
|
|
562
|
+
USE_LIMIT_EXCEEDED: "USE_LIMIT_EXCEEDED";
|
|
563
|
+
MERCHANT_NOT_ALLOWED: "MERCHANT_NOT_ALLOWED";
|
|
564
|
+
CATEGORY_NOT_ALLOWED: "CATEGORY_NOT_ALLOWED";
|
|
565
|
+
RECURRENCE_NOT_ALLOWED: "RECURRENCE_NOT_ALLOWED";
|
|
566
|
+
BUDGET_NOT_FOUND: "BUDGET_NOT_FOUND";
|
|
567
|
+
BUDGET_SCOPE_MISMATCH: "BUDGET_SCOPE_MISMATCH";
|
|
568
|
+
BUDGET_NOT_ACTIVE: "BUDGET_NOT_ACTIVE";
|
|
569
|
+
BUDGET_EXPIRED: "BUDGET_EXPIRED";
|
|
570
|
+
BUDGET_EXCEEDED: "BUDGET_EXCEEDED";
|
|
571
|
+
TRANSACTION_LIMIT_EXCEEDED: "TRANSACTION_LIMIT_EXCEEDED";
|
|
572
|
+
}>;
|
|
573
|
+
}, z.core.$strict>], "decision">;
|
|
574
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
575
|
+
eventType: z.ZodLiteral<"REQUEST_DENIED">;
|
|
576
|
+
payload: z.ZodObject<{
|
|
577
|
+
decision: z.ZodLiteral<"DENY">;
|
|
578
|
+
actionDigest: z.ZodNullable<z.ZodString>;
|
|
579
|
+
requestDeniedDigest: z.ZodString;
|
|
580
|
+
reasonCode: z.ZodString;
|
|
581
|
+
decidedAtEpochMs: z.ZodNumber;
|
|
582
|
+
}, z.core.$strict>;
|
|
583
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
584
|
+
eventType: z.ZodLiteral<"APPROVAL_STATE_REFERENCED">;
|
|
585
|
+
payload: z.ZodObject<{
|
|
586
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
587
|
+
version: z.ZodNumber;
|
|
588
|
+
state: z.ZodEnum<{
|
|
589
|
+
revoked: "revoked";
|
|
590
|
+
pending: "pending";
|
|
591
|
+
expired: "expired";
|
|
592
|
+
approved: "approved";
|
|
593
|
+
denied: "denied";
|
|
594
|
+
superseded: "superseded";
|
|
595
|
+
consumed: "consumed";
|
|
596
|
+
}>;
|
|
597
|
+
approvalDigest: z.ZodString;
|
|
598
|
+
}, z.core.$strict>;
|
|
599
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
600
|
+
eventType: z.ZodLiteral<"APPROVAL_PRESENTED">;
|
|
601
|
+
payload: z.ZodObject<{
|
|
602
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
603
|
+
presentationDigest: z.ZodString;
|
|
604
|
+
viewerReference: z.ZodString;
|
|
605
|
+
}, z.core.$strict>;
|
|
606
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
607
|
+
eventType: z.ZodLiteral<"APPROVAL_DECISION_RECORDED">;
|
|
608
|
+
payload: z.ZodObject<{
|
|
609
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
610
|
+
version: z.ZodNumber;
|
|
611
|
+
decision: z.ZodEnum<{
|
|
612
|
+
veto: "veto";
|
|
613
|
+
approve: "approve";
|
|
614
|
+
deny: "deny";
|
|
615
|
+
revoke: "revoke";
|
|
616
|
+
endorse: "endorse";
|
|
617
|
+
dissent: "dissent";
|
|
618
|
+
mature: "mature";
|
|
619
|
+
}>;
|
|
620
|
+
actorPrincipalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
621
|
+
actorReference: z.ZodString;
|
|
622
|
+
presentationDigest: z.ZodString;
|
|
623
|
+
}, z.core.$strict>;
|
|
624
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
625
|
+
eventType: z.ZodLiteral<"APPROVAL_REJECTED">;
|
|
626
|
+
payload: z.ZodObject<{
|
|
627
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
628
|
+
reasonCode: z.ZodString;
|
|
629
|
+
}, z.core.$strict>;
|
|
630
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
631
|
+
eventType: z.ZodLiteral<"CAPABILITY_STATE_REFERENCED">;
|
|
632
|
+
payload: z.ZodObject<{
|
|
633
|
+
actionDigest: z.ZodString;
|
|
634
|
+
capabilityId: z.core.$ZodBranded<z.ZodString, "CapabilityId", "out">;
|
|
635
|
+
state: z.ZodEnum<{
|
|
636
|
+
revoked: "revoked";
|
|
637
|
+
expired: "expired";
|
|
638
|
+
issued: "issued";
|
|
639
|
+
used: "used";
|
|
640
|
+
}>;
|
|
641
|
+
capabilityDigest: z.ZodString;
|
|
642
|
+
}, z.core.$strict>;
|
|
643
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
644
|
+
eventType: z.ZodLiteral<"CAPABILITY_REJECTED">;
|
|
645
|
+
payload: z.ZodObject<{
|
|
646
|
+
actionDigest: z.ZodString;
|
|
647
|
+
reasonCode: z.ZodString;
|
|
648
|
+
}, z.core.$strict>;
|
|
649
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
650
|
+
eventType: z.ZodLiteral<"EXECUTION_ATTEMPTED">;
|
|
651
|
+
payload: z.ZodObject<{
|
|
652
|
+
actionDigest: z.ZodString;
|
|
653
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
654
|
+
attemptReference: z.ZodString;
|
|
655
|
+
idempotencyDigest: z.ZodString;
|
|
656
|
+
}, z.core.$strict>;
|
|
657
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
658
|
+
eventType: z.ZodLiteral<"EXECUTION_ABORTED">;
|
|
659
|
+
payload: z.ZodObject<{
|
|
660
|
+
actionDigest: z.ZodString;
|
|
661
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
662
|
+
attemptReference: z.ZodString;
|
|
663
|
+
reasonCode: z.ZodString;
|
|
664
|
+
}, z.core.$strict>;
|
|
665
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
666
|
+
eventType: z.ZodLiteral<"EFFECT_PREPARED">;
|
|
667
|
+
payload: z.ZodObject<{
|
|
668
|
+
actionDigest: z.ZodString;
|
|
669
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
670
|
+
attemptReference: z.ZodString;
|
|
671
|
+
preparedDigest: z.ZodString;
|
|
672
|
+
}, z.core.$strict>;
|
|
673
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
674
|
+
eventType: z.ZodLiteral<"EFFECT_COMMIT_AUTHORIZED">;
|
|
675
|
+
payload: z.ZodObject<{
|
|
676
|
+
actionDigest: z.ZodString;
|
|
677
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
678
|
+
attemptReference: z.ZodString;
|
|
679
|
+
actionDecisionDigest: z.ZodString;
|
|
680
|
+
}, z.core.$strict>;
|
|
681
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
682
|
+
eventType: z.ZodLiteral<"EFFECT_OUTCOME_UNKNOWN">;
|
|
683
|
+
payload: z.ZodObject<{
|
|
684
|
+
actionDigest: z.ZodString;
|
|
685
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
686
|
+
attemptReference: z.ZodString;
|
|
687
|
+
reasonCode: z.ZodString;
|
|
688
|
+
}, z.core.$strict>;
|
|
689
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
690
|
+
eventType: z.ZodLiteral<"EFFECT_UNRESOLVED">;
|
|
691
|
+
payload: z.ZodObject<{
|
|
692
|
+
actionDigest: z.ZodString;
|
|
693
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
694
|
+
attemptReference: z.ZodString;
|
|
695
|
+
}, z.core.$strict>;
|
|
696
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
697
|
+
eventType: z.ZodLiteral<"EFFECT_VERIFIED">;
|
|
698
|
+
payload: z.ZodObject<{
|
|
699
|
+
actionDigest: z.ZodString;
|
|
700
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
701
|
+
attemptReference: z.ZodString;
|
|
702
|
+
effectDigest: z.ZodString;
|
|
703
|
+
}, z.core.$strict>;
|
|
704
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
705
|
+
eventType: z.ZodLiteral<"EXECUTION_FAILED">;
|
|
706
|
+
payload: z.ZodObject<{
|
|
707
|
+
actionDigest: z.ZodString;
|
|
708
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
709
|
+
attemptReference: z.ZodString;
|
|
710
|
+
failureCode: z.ZodString;
|
|
711
|
+
failureDigest: z.ZodOptional<z.ZodString>;
|
|
712
|
+
}, z.core.$strict>;
|
|
713
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
714
|
+
eventType: z.ZodLiteral<"AUTHORITY_REVOKED">;
|
|
715
|
+
payload: z.ZodObject<{
|
|
716
|
+
grantId: z.core.$ZodBranded<z.ZodString, "GrantId", "out">;
|
|
717
|
+
grantVersion: z.ZodNumber;
|
|
718
|
+
revocationDigest: z.ZodString;
|
|
719
|
+
}, z.core.$strict>;
|
|
720
|
+
}, z.core.$strict>], "eventType">;
|
|
721
|
+
sequence: z.ZodNumber;
|
|
722
|
+
previousRecordHash: z.ZodNullable<z.ZodString>;
|
|
723
|
+
payloadDigest: z.ZodString;
|
|
724
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
725
|
+
id: z.core.$ZodBranded<z.ZodString, "EvidenceId", "out">;
|
|
726
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
727
|
+
principalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
728
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
729
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
730
|
+
correlationId: z.core.$ZodBranded<z.ZodString, "CorrelationId", "out">;
|
|
731
|
+
eventTimeEpochMs: z.ZodNumber;
|
|
732
|
+
}, z.core.$strict>;
|
|
733
|
+
export declare const EvidenceRecordSchema: z.ZodObject<{
|
|
734
|
+
recordHash: z.ZodString;
|
|
735
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
736
|
+
eventType: z.ZodLiteral<"AUTHENTICATION_RECORDED">;
|
|
737
|
+
payload: z.ZodObject<{
|
|
738
|
+
interface: z.ZodEnum<{
|
|
739
|
+
mcp: "mcp";
|
|
740
|
+
rest: "rest";
|
|
741
|
+
internal: "internal";
|
|
742
|
+
}>;
|
|
743
|
+
outcome: z.ZodEnum<{
|
|
744
|
+
rejected: "rejected";
|
|
745
|
+
authenticated: "authenticated";
|
|
746
|
+
}>;
|
|
747
|
+
credentialReference: z.ZodString;
|
|
748
|
+
}, z.core.$strict>;
|
|
749
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
750
|
+
eventType: z.ZodLiteral<"ADAPTER_AUTHENTICATION_RECORDED">;
|
|
751
|
+
payload: z.ZodObject<{
|
|
752
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
753
|
+
outcome: z.ZodLiteral<"authenticated">;
|
|
754
|
+
credentialReference: z.ZodString;
|
|
755
|
+
}, z.core.$strict>;
|
|
756
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
757
|
+
eventType: z.ZodLiteral<"REQUEST_RECEIVED">;
|
|
758
|
+
payload: z.ZodObject<{
|
|
759
|
+
actionDigest: z.ZodString;
|
|
760
|
+
}, z.core.$strict>;
|
|
761
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
762
|
+
eventType: z.ZodLiteral<"ACTION_NORMALIZED">;
|
|
763
|
+
payload: z.ZodObject<{
|
|
764
|
+
actionDigest: z.ZodString;
|
|
765
|
+
}, z.core.$strict>;
|
|
766
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
767
|
+
eventType: z.ZodLiteral<"DECISION_RECORDED">;
|
|
768
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
769
|
+
actionDigest: z.ZodString;
|
|
770
|
+
actionDecisionDigest: z.ZodString;
|
|
771
|
+
decision: z.ZodLiteral<"ALLOW">;
|
|
772
|
+
reasonCode: z.ZodLiteral<"AUTHORIZED">;
|
|
773
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
774
|
+
actionDigest: z.ZodString;
|
|
775
|
+
actionDecisionDigest: z.ZodString;
|
|
776
|
+
decision: z.ZodLiteral<"ASK">;
|
|
777
|
+
reasonCode: z.ZodLiteral<"APPROVAL_REQUIRED">;
|
|
778
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
779
|
+
actionDigest: z.ZodString;
|
|
780
|
+
actionDecisionDigest: z.ZodString;
|
|
781
|
+
decision: z.ZodLiteral<"DENY">;
|
|
782
|
+
reasonCode: z.ZodEnum<{
|
|
783
|
+
MALFORMED_INPUT: "MALFORMED_INPUT";
|
|
784
|
+
TENANT_MISMATCH: "TENANT_MISMATCH";
|
|
785
|
+
PRINCIPAL_MISMATCH: "PRINCIPAL_MISMATCH";
|
|
786
|
+
PRINCIPAL_NOT_ACTIVE: "PRINCIPAL_NOT_ACTIVE";
|
|
787
|
+
AGENT_TENANT_MISMATCH: "AGENT_TENANT_MISMATCH";
|
|
788
|
+
AGENT_OWNER_MISMATCH: "AGENT_OWNER_MISMATCH";
|
|
789
|
+
AGENT_MISMATCH: "AGENT_MISMATCH";
|
|
790
|
+
AGENT_NOT_ACTIVE: "AGENT_NOT_ACTIVE";
|
|
791
|
+
INTERFACE_NOT_ALLOWED: "INTERFACE_NOT_ALLOWED";
|
|
792
|
+
AUTHORITY_PAUSED: "AUTHORITY_PAUSED";
|
|
793
|
+
AUTHORITY_CHAIN_MISSING: "AUTHORITY_CHAIN_MISSING";
|
|
794
|
+
DUPLICATE_GRANT_ID: "DUPLICATE_GRANT_ID";
|
|
795
|
+
GRANT_TENANT_MISMATCH: "GRANT_TENANT_MISMATCH";
|
|
796
|
+
GRANT_PRINCIPAL_MISMATCH: "GRANT_PRINCIPAL_MISMATCH";
|
|
797
|
+
GRANT_AGENT_MISMATCH: "GRANT_AGENT_MISMATCH";
|
|
798
|
+
GRANT_NOT_ACTIVE: "GRANT_NOT_ACTIVE";
|
|
799
|
+
GRANT_REVOKED: "GRANT_REVOKED";
|
|
800
|
+
GRANT_NOT_YET_VALID: "GRANT_NOT_YET_VALID";
|
|
801
|
+
GRANT_EXPIRED: "GRANT_EXPIRED";
|
|
802
|
+
INVALID_PARENT_LINK: "INVALID_PARENT_LINK";
|
|
803
|
+
DELEGATION_NOT_ALLOWED: "DELEGATION_NOT_ALLOWED";
|
|
804
|
+
AUTHORITY_AMPLIFICATION: "AUTHORITY_AMPLIFICATION";
|
|
805
|
+
ACTION_NOT_ALLOWED: "ACTION_NOT_ALLOWED";
|
|
806
|
+
RESOURCE_NOT_ALLOWED: "RESOURCE_NOT_ALLOWED";
|
|
807
|
+
ADAPTER_NOT_ALLOWED: "ADAPTER_NOT_ALLOWED";
|
|
808
|
+
VALUE_LIMIT_EXCEEDED: "VALUE_LIMIT_EXCEEDED";
|
|
809
|
+
USE_LIMIT_EXCEEDED: "USE_LIMIT_EXCEEDED";
|
|
810
|
+
MERCHANT_NOT_ALLOWED: "MERCHANT_NOT_ALLOWED";
|
|
811
|
+
CATEGORY_NOT_ALLOWED: "CATEGORY_NOT_ALLOWED";
|
|
812
|
+
RECURRENCE_NOT_ALLOWED: "RECURRENCE_NOT_ALLOWED";
|
|
813
|
+
BUDGET_NOT_FOUND: "BUDGET_NOT_FOUND";
|
|
814
|
+
BUDGET_SCOPE_MISMATCH: "BUDGET_SCOPE_MISMATCH";
|
|
815
|
+
BUDGET_NOT_ACTIVE: "BUDGET_NOT_ACTIVE";
|
|
816
|
+
BUDGET_EXPIRED: "BUDGET_EXPIRED";
|
|
817
|
+
BUDGET_EXCEEDED: "BUDGET_EXCEEDED";
|
|
818
|
+
TRANSACTION_LIMIT_EXCEEDED: "TRANSACTION_LIMIT_EXCEEDED";
|
|
819
|
+
}>;
|
|
820
|
+
}, z.core.$strict>], "decision">;
|
|
821
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
822
|
+
eventType: z.ZodLiteral<"REQUEST_DENIED">;
|
|
823
|
+
payload: z.ZodObject<{
|
|
824
|
+
decision: z.ZodLiteral<"DENY">;
|
|
825
|
+
actionDigest: z.ZodNullable<z.ZodString>;
|
|
826
|
+
requestDeniedDigest: z.ZodString;
|
|
827
|
+
reasonCode: z.ZodString;
|
|
828
|
+
decidedAtEpochMs: z.ZodNumber;
|
|
829
|
+
}, z.core.$strict>;
|
|
830
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
831
|
+
eventType: z.ZodLiteral<"APPROVAL_STATE_REFERENCED">;
|
|
832
|
+
payload: z.ZodObject<{
|
|
833
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
834
|
+
version: z.ZodNumber;
|
|
835
|
+
state: z.ZodEnum<{
|
|
836
|
+
revoked: "revoked";
|
|
837
|
+
pending: "pending";
|
|
838
|
+
expired: "expired";
|
|
839
|
+
approved: "approved";
|
|
840
|
+
denied: "denied";
|
|
841
|
+
superseded: "superseded";
|
|
842
|
+
consumed: "consumed";
|
|
843
|
+
}>;
|
|
844
|
+
approvalDigest: z.ZodString;
|
|
845
|
+
}, z.core.$strict>;
|
|
846
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
847
|
+
eventType: z.ZodLiteral<"APPROVAL_PRESENTED">;
|
|
848
|
+
payload: z.ZodObject<{
|
|
849
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
850
|
+
presentationDigest: z.ZodString;
|
|
851
|
+
viewerReference: z.ZodString;
|
|
852
|
+
}, z.core.$strict>;
|
|
853
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
854
|
+
eventType: z.ZodLiteral<"APPROVAL_DECISION_RECORDED">;
|
|
855
|
+
payload: z.ZodObject<{
|
|
856
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
857
|
+
version: z.ZodNumber;
|
|
858
|
+
decision: z.ZodEnum<{
|
|
859
|
+
veto: "veto";
|
|
860
|
+
approve: "approve";
|
|
861
|
+
deny: "deny";
|
|
862
|
+
revoke: "revoke";
|
|
863
|
+
endorse: "endorse";
|
|
864
|
+
dissent: "dissent";
|
|
865
|
+
mature: "mature";
|
|
866
|
+
}>;
|
|
867
|
+
actorPrincipalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
868
|
+
actorReference: z.ZodString;
|
|
869
|
+
presentationDigest: z.ZodString;
|
|
870
|
+
}, z.core.$strict>;
|
|
871
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
872
|
+
eventType: z.ZodLiteral<"APPROVAL_REJECTED">;
|
|
873
|
+
payload: z.ZodObject<{
|
|
874
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
875
|
+
reasonCode: z.ZodString;
|
|
876
|
+
}, z.core.$strict>;
|
|
877
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
878
|
+
eventType: z.ZodLiteral<"CAPABILITY_STATE_REFERENCED">;
|
|
879
|
+
payload: z.ZodObject<{
|
|
880
|
+
actionDigest: z.ZodString;
|
|
881
|
+
capabilityId: z.core.$ZodBranded<z.ZodString, "CapabilityId", "out">;
|
|
882
|
+
state: z.ZodEnum<{
|
|
883
|
+
revoked: "revoked";
|
|
884
|
+
expired: "expired";
|
|
885
|
+
issued: "issued";
|
|
886
|
+
used: "used";
|
|
887
|
+
}>;
|
|
888
|
+
capabilityDigest: z.ZodString;
|
|
889
|
+
}, z.core.$strict>;
|
|
890
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
891
|
+
eventType: z.ZodLiteral<"CAPABILITY_REJECTED">;
|
|
892
|
+
payload: z.ZodObject<{
|
|
893
|
+
actionDigest: z.ZodString;
|
|
894
|
+
reasonCode: z.ZodString;
|
|
895
|
+
}, z.core.$strict>;
|
|
896
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
897
|
+
eventType: z.ZodLiteral<"EXECUTION_ATTEMPTED">;
|
|
898
|
+
payload: z.ZodObject<{
|
|
899
|
+
actionDigest: z.ZodString;
|
|
900
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
901
|
+
attemptReference: z.ZodString;
|
|
902
|
+
idempotencyDigest: z.ZodString;
|
|
903
|
+
}, z.core.$strict>;
|
|
904
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
905
|
+
eventType: z.ZodLiteral<"EXECUTION_ABORTED">;
|
|
906
|
+
payload: z.ZodObject<{
|
|
907
|
+
actionDigest: z.ZodString;
|
|
908
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
909
|
+
attemptReference: z.ZodString;
|
|
910
|
+
reasonCode: z.ZodString;
|
|
911
|
+
}, z.core.$strict>;
|
|
912
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
913
|
+
eventType: z.ZodLiteral<"EFFECT_PREPARED">;
|
|
914
|
+
payload: z.ZodObject<{
|
|
915
|
+
actionDigest: z.ZodString;
|
|
916
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
917
|
+
attemptReference: z.ZodString;
|
|
918
|
+
preparedDigest: z.ZodString;
|
|
919
|
+
}, z.core.$strict>;
|
|
920
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
921
|
+
eventType: z.ZodLiteral<"EFFECT_COMMIT_AUTHORIZED">;
|
|
922
|
+
payload: z.ZodObject<{
|
|
923
|
+
actionDigest: z.ZodString;
|
|
924
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
925
|
+
attemptReference: z.ZodString;
|
|
926
|
+
actionDecisionDigest: z.ZodString;
|
|
927
|
+
}, z.core.$strict>;
|
|
928
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
929
|
+
eventType: z.ZodLiteral<"EFFECT_OUTCOME_UNKNOWN">;
|
|
930
|
+
payload: z.ZodObject<{
|
|
931
|
+
actionDigest: z.ZodString;
|
|
932
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
933
|
+
attemptReference: z.ZodString;
|
|
934
|
+
reasonCode: z.ZodString;
|
|
935
|
+
}, z.core.$strict>;
|
|
936
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
937
|
+
eventType: z.ZodLiteral<"EFFECT_UNRESOLVED">;
|
|
938
|
+
payload: z.ZodObject<{
|
|
939
|
+
actionDigest: z.ZodString;
|
|
940
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
941
|
+
attemptReference: z.ZodString;
|
|
942
|
+
}, z.core.$strict>;
|
|
943
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
944
|
+
eventType: z.ZodLiteral<"EFFECT_VERIFIED">;
|
|
945
|
+
payload: z.ZodObject<{
|
|
946
|
+
actionDigest: z.ZodString;
|
|
947
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
948
|
+
attemptReference: z.ZodString;
|
|
949
|
+
effectDigest: z.ZodString;
|
|
950
|
+
}, z.core.$strict>;
|
|
951
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
952
|
+
eventType: z.ZodLiteral<"EXECUTION_FAILED">;
|
|
953
|
+
payload: z.ZodObject<{
|
|
954
|
+
actionDigest: z.ZodString;
|
|
955
|
+
adapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
956
|
+
attemptReference: z.ZodString;
|
|
957
|
+
failureCode: z.ZodString;
|
|
958
|
+
failureDigest: z.ZodOptional<z.ZodString>;
|
|
959
|
+
}, z.core.$strict>;
|
|
960
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
961
|
+
eventType: z.ZodLiteral<"AUTHORITY_REVOKED">;
|
|
962
|
+
payload: z.ZodObject<{
|
|
963
|
+
grantId: z.core.$ZodBranded<z.ZodString, "GrantId", "out">;
|
|
964
|
+
grantVersion: z.ZodNumber;
|
|
965
|
+
revocationDigest: z.ZodString;
|
|
966
|
+
}, z.core.$strict>;
|
|
967
|
+
}, z.core.$strict>], "eventType">;
|
|
968
|
+
sequence: z.ZodNumber;
|
|
969
|
+
previousRecordHash: z.ZodNullable<z.ZodString>;
|
|
970
|
+
payloadDigest: z.ZodString;
|
|
971
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
972
|
+
id: z.core.$ZodBranded<z.ZodString, "EvidenceId", "out">;
|
|
973
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
974
|
+
principalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
975
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
976
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
977
|
+
correlationId: z.core.$ZodBranded<z.ZodString, "CorrelationId", "out">;
|
|
978
|
+
eventTimeEpochMs: z.ZodNumber;
|
|
979
|
+
}, z.core.$strict>;
|
|
980
|
+
/** Why a presented human approval session was refused before any approval operation. */
|
|
981
|
+
export declare const HumanSessionRejectionSchema: z.ZodEnum<{
|
|
982
|
+
UNAUTHENTICATED: "UNAUTHENTICATED";
|
|
983
|
+
NOT_HUMAN: "NOT_HUMAN";
|
|
984
|
+
UNSAFE_SESSION_REFERENCE: "UNSAFE_SESSION_REFERENCE";
|
|
985
|
+
}>;
|
|
986
|
+
/**
|
|
987
|
+
* Security events recorded before any identity is trusted. They never carry a
|
|
988
|
+
* tenant, principal, agent, credential, or session reference.
|
|
989
|
+
*/
|
|
990
|
+
export declare const PreIdentitySecurityEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
991
|
+
eventType: z.ZodLiteral<"AUTHENTICATION_REJECTED">;
|
|
992
|
+
payload: z.ZodObject<{
|
|
993
|
+
interface: z.ZodEnum<{
|
|
994
|
+
mcp: "mcp";
|
|
995
|
+
rest: "rest";
|
|
996
|
+
}>;
|
|
997
|
+
reasonCode: z.ZodLiteral<"UNAUTHENTICATED">;
|
|
998
|
+
}, z.core.$strict>;
|
|
999
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1000
|
+
eventType: z.ZodLiteral<"HUMAN_AUTHENTICATION_REJECTED">;
|
|
1001
|
+
payload: z.ZodObject<{
|
|
1002
|
+
surface: z.ZodLiteral<"approval-service">;
|
|
1003
|
+
reasonCode: z.ZodEnum<{
|
|
1004
|
+
UNAUTHENTICATED: "UNAUTHENTICATED";
|
|
1005
|
+
NOT_HUMAN: "NOT_HUMAN";
|
|
1006
|
+
UNSAFE_SESSION_REFERENCE: "UNSAFE_SESSION_REFERENCE";
|
|
1007
|
+
}>;
|
|
1008
|
+
}, z.core.$strict>;
|
|
1009
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1010
|
+
eventType: z.ZodLiteral<"ADAPTER_AUTHENTICATION_REJECTED">;
|
|
1011
|
+
payload: z.ZodObject<{
|
|
1012
|
+
surface: z.ZodLiteral<"redemption">;
|
|
1013
|
+
reasonCode: z.ZodLiteral<"UNAUTHENTICATED">;
|
|
1014
|
+
}, z.core.$strict>;
|
|
1015
|
+
}, z.core.$strict>], "eventType">;
|
|
1016
|
+
export declare const PreIdentitySecurityRecordCoreSchema: z.ZodObject<{
|
|
1017
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1018
|
+
id: z.core.$ZodBranded<z.ZodString, "EvidenceId", "out">;
|
|
1019
|
+
eventTimeEpochMs: z.ZodNumber;
|
|
1020
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1021
|
+
eventType: z.ZodLiteral<"AUTHENTICATION_REJECTED">;
|
|
1022
|
+
payload: z.ZodObject<{
|
|
1023
|
+
interface: z.ZodEnum<{
|
|
1024
|
+
mcp: "mcp";
|
|
1025
|
+
rest: "rest";
|
|
1026
|
+
}>;
|
|
1027
|
+
reasonCode: z.ZodLiteral<"UNAUTHENTICATED">;
|
|
1028
|
+
}, z.core.$strict>;
|
|
1029
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1030
|
+
eventType: z.ZodLiteral<"HUMAN_AUTHENTICATION_REJECTED">;
|
|
1031
|
+
payload: z.ZodObject<{
|
|
1032
|
+
surface: z.ZodLiteral<"approval-service">;
|
|
1033
|
+
reasonCode: z.ZodEnum<{
|
|
1034
|
+
UNAUTHENTICATED: "UNAUTHENTICATED";
|
|
1035
|
+
NOT_HUMAN: "NOT_HUMAN";
|
|
1036
|
+
UNSAFE_SESSION_REFERENCE: "UNSAFE_SESSION_REFERENCE";
|
|
1037
|
+
}>;
|
|
1038
|
+
}, z.core.$strict>;
|
|
1039
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1040
|
+
eventType: z.ZodLiteral<"ADAPTER_AUTHENTICATION_REJECTED">;
|
|
1041
|
+
payload: z.ZodObject<{
|
|
1042
|
+
surface: z.ZodLiteral<"redemption">;
|
|
1043
|
+
reasonCode: z.ZodLiteral<"UNAUTHENTICATED">;
|
|
1044
|
+
}, z.core.$strict>;
|
|
1045
|
+
}, z.core.$strict>], "eventType">;
|
|
1046
|
+
}, z.core.$strict>;
|
|
1047
|
+
export declare const PreIdentitySecurityRecordSchema: z.ZodObject<{
|
|
1048
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1049
|
+
id: z.core.$ZodBranded<z.ZodString, "EvidenceId", "out">;
|
|
1050
|
+
eventTimeEpochMs: z.ZodNumber;
|
|
1051
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1052
|
+
eventType: z.ZodLiteral<"AUTHENTICATION_REJECTED">;
|
|
1053
|
+
payload: z.ZodObject<{
|
|
1054
|
+
interface: z.ZodEnum<{
|
|
1055
|
+
mcp: "mcp";
|
|
1056
|
+
rest: "rest";
|
|
1057
|
+
}>;
|
|
1058
|
+
reasonCode: z.ZodLiteral<"UNAUTHENTICATED">;
|
|
1059
|
+
}, z.core.$strict>;
|
|
1060
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1061
|
+
eventType: z.ZodLiteral<"HUMAN_AUTHENTICATION_REJECTED">;
|
|
1062
|
+
payload: z.ZodObject<{
|
|
1063
|
+
surface: z.ZodLiteral<"approval-service">;
|
|
1064
|
+
reasonCode: z.ZodEnum<{
|
|
1065
|
+
UNAUTHENTICATED: "UNAUTHENTICATED";
|
|
1066
|
+
NOT_HUMAN: "NOT_HUMAN";
|
|
1067
|
+
UNSAFE_SESSION_REFERENCE: "UNSAFE_SESSION_REFERENCE";
|
|
1068
|
+
}>;
|
|
1069
|
+
}, z.core.$strict>;
|
|
1070
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1071
|
+
eventType: z.ZodLiteral<"ADAPTER_AUTHENTICATION_REJECTED">;
|
|
1072
|
+
payload: z.ZodObject<{
|
|
1073
|
+
surface: z.ZodLiteral<"redemption">;
|
|
1074
|
+
reasonCode: z.ZodLiteral<"UNAUTHENTICATED">;
|
|
1075
|
+
}, z.core.$strict>;
|
|
1076
|
+
}, z.core.$strict>], "eventType">;
|
|
1077
|
+
recordHash: z.ZodString;
|
|
1078
|
+
}, z.core.$strict>;
|
|
1079
|
+
export type EvidenceEvent = z.infer<typeof EvidenceEventSchema>;
|
|
1080
|
+
export type EvidenceEventType = EvidenceEvent["eventType"];
|
|
1081
|
+
export type EvidenceEventDraft = z.infer<typeof EvidenceEventDraftSchema>;
|
|
1082
|
+
export type EvidenceChainContext = z.infer<typeof EvidenceChainContextSchema>;
|
|
1083
|
+
export type EvidenceRecordCore = z.infer<typeof EvidenceRecordCoreSchema>;
|
|
1084
|
+
export type EvidenceRecord = z.infer<typeof EvidenceRecordSchema>;
|
|
1085
|
+
export type HumanSessionRejection = z.infer<typeof HumanSessionRejectionSchema>;
|
|
1086
|
+
export type PreIdentitySecurityEvent = z.infer<typeof PreIdentitySecurityEventSchema>;
|
|
1087
|
+
export type PreIdentitySecurityRecord = z.infer<typeof PreIdentitySecurityRecordSchema>;
|