@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,648 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* guardian.request_denial.v1 — the decision artifact for a request denied
|
|
4
|
+
* before the authority kernel produced an ActionDecisionRecord: pre-gate
|
|
5
|
+
* rule denies, budget denies, and request-shape rejects. It is a denied
|
|
6
|
+
* decision, never an execution: no capability was issued and nothing ran.
|
|
7
|
+
*
|
|
8
|
+
* `action`/`actionDigest` are null when the deny preceded canonical action
|
|
9
|
+
* creation (e.g. an adapter the state never allowed); the request is still
|
|
10
|
+
* recorded as denied under its own identity.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RequestDenialRecordCoreSchema: z.ZodObject<{
|
|
13
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
14
|
+
kind: z.ZodLiteral<"guardian.request_denial.v1">;
|
|
15
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
16
|
+
principalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
17
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
18
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
19
|
+
correlationId: z.core.$ZodBranded<z.ZodString, "CorrelationId", "out">;
|
|
20
|
+
actionDigest: z.ZodNullable<z.ZodString>;
|
|
21
|
+
action: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
23
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
24
|
+
correlationId: z.core.$ZodBranded<z.ZodString, "CorrelationId", "out">;
|
|
25
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
26
|
+
principalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
27
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
28
|
+
action: z.core.$ZodBranded<z.ZodString, "ActionType", "out">;
|
|
29
|
+
resource: z.core.$ZodBranded<z.ZodString, "ResourceRef", "out">;
|
|
30
|
+
interface: z.ZodEnum<{
|
|
31
|
+
mcp: "mcp";
|
|
32
|
+
rest: "rest";
|
|
33
|
+
internal: "internal";
|
|
34
|
+
}>;
|
|
35
|
+
valueCents: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
merchantCategory: z.ZodOptional<z.ZodString>;
|
|
38
|
+
recurring: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
taskId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "TaskId", "out">>;
|
|
40
|
+
intentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "IntentId", "out">>;
|
|
41
|
+
planId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "PlanId", "out">>;
|
|
42
|
+
obligations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
type: z.ZodEnum<{
|
|
44
|
+
log: "log";
|
|
45
|
+
retain_receipt: "retain_receipt";
|
|
46
|
+
notify: "notify";
|
|
47
|
+
delay: "delay";
|
|
48
|
+
cooling_period: "cooling_period";
|
|
49
|
+
delete_after_use: "delete_after_use";
|
|
50
|
+
redact: "redact";
|
|
51
|
+
encrypt: "encrypt";
|
|
52
|
+
tokenize: "tokenize";
|
|
53
|
+
minimize: "minimize";
|
|
54
|
+
verify_counterparty: "verify_counterparty";
|
|
55
|
+
verify_resource: "verify_resource";
|
|
56
|
+
verify_effect: "verify_effect";
|
|
57
|
+
attest_runtime: "attest_runtime";
|
|
58
|
+
require_consent: "require_consent";
|
|
59
|
+
require_location: "require_location";
|
|
60
|
+
require_device: "require_device";
|
|
61
|
+
require_network: "require_network";
|
|
62
|
+
require_contract: "require_contract";
|
|
63
|
+
step_up: "step_up";
|
|
64
|
+
second_approver: "second_approver";
|
|
65
|
+
quorum: "quorum";
|
|
66
|
+
authenticate: "authenticate";
|
|
67
|
+
}>;
|
|
68
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
69
|
+
}, z.core.$strict>>>;
|
|
70
|
+
obligationStates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
+
obligationType: z.ZodEnum<{
|
|
72
|
+
log: "log";
|
|
73
|
+
retain_receipt: "retain_receipt";
|
|
74
|
+
notify: "notify";
|
|
75
|
+
delay: "delay";
|
|
76
|
+
cooling_period: "cooling_period";
|
|
77
|
+
delete_after_use: "delete_after_use";
|
|
78
|
+
redact: "redact";
|
|
79
|
+
encrypt: "encrypt";
|
|
80
|
+
tokenize: "tokenize";
|
|
81
|
+
minimize: "minimize";
|
|
82
|
+
verify_counterparty: "verify_counterparty";
|
|
83
|
+
verify_resource: "verify_resource";
|
|
84
|
+
verify_effect: "verify_effect";
|
|
85
|
+
attest_runtime: "attest_runtime";
|
|
86
|
+
require_consent: "require_consent";
|
|
87
|
+
require_location: "require_location";
|
|
88
|
+
require_device: "require_device";
|
|
89
|
+
require_network: "require_network";
|
|
90
|
+
require_contract: "require_contract";
|
|
91
|
+
step_up: "step_up";
|
|
92
|
+
second_approver: "second_approver";
|
|
93
|
+
quorum: "quorum";
|
|
94
|
+
authenticate: "authenticate";
|
|
95
|
+
}>;
|
|
96
|
+
state: z.ZodEnum<{
|
|
97
|
+
satisfied: "satisfied";
|
|
98
|
+
pending: "pending";
|
|
99
|
+
failed: "failed";
|
|
100
|
+
not_applicable: "not_applicable";
|
|
101
|
+
}>;
|
|
102
|
+
rule: z.ZodEnum<{
|
|
103
|
+
OBLIGATION_SATISFIED: "OBLIGATION_SATISFIED";
|
|
104
|
+
PENDING_POST_ACTION: "PENDING_POST_ACTION";
|
|
105
|
+
PENDING_TIME: "PENDING_TIME";
|
|
106
|
+
PENDING_HUMAN: "PENDING_HUMAN";
|
|
107
|
+
OBLIGATION_PARAMS_INVALID: "OBLIGATION_PARAMS_INVALID";
|
|
108
|
+
COUNTERPARTY_UNVERIFIED: "COUNTERPARTY_UNVERIFIED";
|
|
109
|
+
RESOURCE_NOT_COVERED: "RESOURCE_NOT_COVERED";
|
|
110
|
+
OBLIGATION_VERIFIER_UNAVAILABLE: "OBLIGATION_VERIFIER_UNAVAILABLE";
|
|
111
|
+
}>;
|
|
112
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
113
|
+
dueEpochMs: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
}, z.core.$strict>>>;
|
|
115
|
+
prerequisiteResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
prerequisiteType: z.ZodString;
|
|
118
|
+
state: z.ZodEnum<{
|
|
119
|
+
satisfied: "satisfied";
|
|
120
|
+
pending: "pending";
|
|
121
|
+
failed: "failed";
|
|
122
|
+
not_applicable: "not_applicable";
|
|
123
|
+
}>;
|
|
124
|
+
rule: z.ZodEnum<{
|
|
125
|
+
BUDGET_EXCEEDED: "BUDGET_EXCEEDED";
|
|
126
|
+
PENDING_HUMAN: "PENDING_HUMAN";
|
|
127
|
+
PREREQUISITE_SATISFIED: "PREREQUISITE_SATISFIED";
|
|
128
|
+
MERCHANT_UNVERIFIED: "MERCHANT_UNVERIFIED";
|
|
129
|
+
BUDGET_NOT_DECLARED: "BUDGET_NOT_DECLARED";
|
|
130
|
+
CAPABILITY_NOT_COVERED: "CAPABILITY_NOT_COVERED";
|
|
131
|
+
ADDRESS_NOT_AUTHORIZED: "ADDRESS_NOT_AUTHORIZED";
|
|
132
|
+
PREREQUISITE_PARAMS_INVALID: "PREREQUISITE_PARAMS_INVALID";
|
|
133
|
+
PREREQUISITE_VERIFIER_UNAVAILABLE: "PREREQUISITE_VERIFIER_UNAVAILABLE";
|
|
134
|
+
}>;
|
|
135
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strict>>>;
|
|
137
|
+
parentActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RequestId", "out">>;
|
|
138
|
+
sourceEffectId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AttemptId", "out">>;
|
|
139
|
+
sequenceMatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
+
ruleId: z.ZodString;
|
|
141
|
+
effect: z.ZodEnum<{
|
|
142
|
+
deny: "deny";
|
|
143
|
+
require_approval: "require_approval";
|
|
144
|
+
}>;
|
|
145
|
+
matchedActionRefs: z.ZodArray<z.ZodString>;
|
|
146
|
+
}, z.core.$strict>>>;
|
|
147
|
+
lineageMatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
+
dataObjectId: z.core.$ZodBranded<z.ZodString, "DataObjectId", "out">;
|
|
149
|
+
effectiveClassification: z.ZodEnum<{
|
|
150
|
+
financial: "financial";
|
|
151
|
+
internal: "internal";
|
|
152
|
+
public: "public";
|
|
153
|
+
pii: "pii";
|
|
154
|
+
phi: "phi";
|
|
155
|
+
credential: "credential";
|
|
156
|
+
confidential: "confidential";
|
|
157
|
+
}>;
|
|
158
|
+
effect: z.ZodEnum<{
|
|
159
|
+
allowed: "allowed";
|
|
160
|
+
deny: "deny";
|
|
161
|
+
require_approval: "require_approval";
|
|
162
|
+
}>;
|
|
163
|
+
expired: z.ZodBoolean;
|
|
164
|
+
}, z.core.$strict>>>;
|
|
165
|
+
runtimeTrustLevel: z.ZodOptional<z.ZodEnum<{
|
|
166
|
+
T0_UNKNOWN: "T0_UNKNOWN";
|
|
167
|
+
T1_IDENTIFIED: "T1_IDENTIFIED";
|
|
168
|
+
T2_VERIFIED: "T2_VERIFIED";
|
|
169
|
+
T3_ATTESTED: "T3_ATTESTED";
|
|
170
|
+
T4_HARDWARE_BACKED: "T4_HARDWARE_BACKED";
|
|
171
|
+
}>>;
|
|
172
|
+
enforcementAssurance: z.ZodOptional<z.ZodEnum<{
|
|
173
|
+
G2_CREDENTIAL_MEDIATED: "G2_CREDENTIAL_MEDIATED";
|
|
174
|
+
G1_POLICY_MEDIATED: "G1_POLICY_MEDIATED";
|
|
175
|
+
G3_RUNTIME_CONTAINED: "G3_RUNTIME_CONTAINED";
|
|
176
|
+
G0_OBSERVED: "G0_OBSERVED";
|
|
177
|
+
G4_COUNTERPARTY_INTERLOCKED: "G4_COUNTERPARTY_INTERLOCKED";
|
|
178
|
+
}>>;
|
|
179
|
+
approvalStructures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
|
+
schema: z.ZodLiteral<"guardian.multiparty.v1">;
|
|
181
|
+
structureId: z.ZodString;
|
|
182
|
+
members: z.ZodArray<z.ZodObject<{
|
|
183
|
+
memberId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
184
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
}, z.core.$strict>>;
|
|
186
|
+
requirement: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
187
|
+
kind: z.ZodLiteral<"single">;
|
|
188
|
+
memberId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"nOfM">;
|
|
191
|
+
n: z.ZodNumber;
|
|
192
|
+
members: z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>;
|
|
193
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
194
|
+
kind: z.ZodLiteral<"unanimous">;
|
|
195
|
+
members: z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
kind: z.ZodLiteral<"roleQuorum">;
|
|
198
|
+
role: z.ZodString;
|
|
199
|
+
n: z.ZodNumber;
|
|
200
|
+
m: z.ZodNumber;
|
|
201
|
+
}, z.core.$strict>], "kind">;
|
|
202
|
+
specificRequired: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>>;
|
|
203
|
+
veto: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>>;
|
|
204
|
+
separationOfDuties: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
mutuallyExclusive: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
206
|
+
}, z.core.$strict>>;
|
|
207
|
+
temporaryApprovers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
208
|
+
memberId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
209
|
+
expiresAtEpochMs: z.ZodNumber;
|
|
210
|
+
}, z.core.$strict>>>;
|
|
211
|
+
delegatedApprovers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
212
|
+
memberId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
213
|
+
delegatedBy: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
214
|
+
}, z.core.$strict>>>;
|
|
215
|
+
emergencyApprovers: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>>;
|
|
216
|
+
coolingPeriod: z.ZodOptional<z.ZodObject<{
|
|
217
|
+
seconds: z.ZodNumber;
|
|
218
|
+
}, z.core.$strict>>;
|
|
219
|
+
}, z.core.$strict>>>;
|
|
220
|
+
appliedAuthoritySources: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
applied: z.ZodArray<z.ZodString>;
|
|
222
|
+
constraints: z.ZodObject<{
|
|
223
|
+
allowedActions: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ActionType", "out">>>;
|
|
224
|
+
deniedActions: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ActionType", "out">>>;
|
|
225
|
+
allowedResources: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ResourceRef", "out">>>;
|
|
226
|
+
allowedInterfaces: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
227
|
+
mcp: "mcp";
|
|
228
|
+
rest: "rest";
|
|
229
|
+
internal: "internal";
|
|
230
|
+
}>>>;
|
|
231
|
+
maxValueCents: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
minRuntimeLevel: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
T0_UNKNOWN: "T0_UNKNOWN";
|
|
235
|
+
T1_IDENTIFIED: "T1_IDENTIFIED";
|
|
236
|
+
T2_VERIFIED: "T2_VERIFIED";
|
|
237
|
+
T3_ATTESTED: "T3_ATTESTED";
|
|
238
|
+
T4_HARDWARE_BACKED: "T4_HARDWARE_BACKED";
|
|
239
|
+
}>>;
|
|
240
|
+
minAssuranceLevel: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
G2_CREDENTIAL_MEDIATED: "G2_CREDENTIAL_MEDIATED";
|
|
242
|
+
G1_POLICY_MEDIATED: "G1_POLICY_MEDIATED";
|
|
243
|
+
G3_RUNTIME_CONTAINED: "G3_RUNTIME_CONTAINED";
|
|
244
|
+
G0_OBSERVED: "G0_OBSERVED";
|
|
245
|
+
G4_COUNTERPARTY_INTERLOCKED: "G4_COUNTERPARTY_INTERLOCKED";
|
|
246
|
+
}>>;
|
|
247
|
+
requiredApprovals: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
}, z.core.$strict>>;
|
|
250
|
+
transaction: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
schema: z.ZodLiteral<"guardian.transaction.v1">;
|
|
252
|
+
stages: z.ZodArray<z.ZodEnum<{
|
|
253
|
+
PROPOSE: "PROPOSE";
|
|
254
|
+
PREPARE: "PREPARE";
|
|
255
|
+
AUTHORIZE: "AUTHORIZE";
|
|
256
|
+
LOCK: "LOCK";
|
|
257
|
+
COMMIT: "COMMIT";
|
|
258
|
+
VERIFY: "VERIFY";
|
|
259
|
+
SETTLE: "SETTLE";
|
|
260
|
+
}>>;
|
|
261
|
+
deadlineMs: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
compensates: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
transactionId: z.core.$ZodBranded<z.ZodString, "TransactionId", "out">;
|
|
265
|
+
}, z.core.$strict>>;
|
|
266
|
+
physicalFacts: z.ZodOptional<z.ZodObject<{
|
|
267
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
268
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
force: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
payload: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
atEpochMs: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
humanDistance: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
274
|
+
supervised: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
+
}, z.core.$strict>>;
|
|
276
|
+
safetyEnvelopeOutcome: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
envelopeDigest: z.ZodString;
|
|
278
|
+
satisfied: z.ZodBoolean;
|
|
279
|
+
violations: z.ZodArray<z.ZodEnum<{
|
|
280
|
+
OUT_OF_ZONE: "OUT_OF_ZONE";
|
|
281
|
+
FORBIDDEN_ZONE: "FORBIDDEN_ZONE";
|
|
282
|
+
OVER_SPEED: "OVER_SPEED";
|
|
283
|
+
OVER_FORCE: "OVER_FORCE";
|
|
284
|
+
OVER_PAYLOAD: "OVER_PAYLOAD";
|
|
285
|
+
OUTSIDE_TIME_WINDOW: "OUTSIDE_TIME_WINDOW";
|
|
286
|
+
PROXIMITY_VIOLATION: "PROXIMITY_VIOLATION";
|
|
287
|
+
ENVIRONMENT_VIOLATION: "ENVIRONMENT_VIOLATION";
|
|
288
|
+
SUPERVISION_REQUIRED: "SUPERVISION_REQUIRED";
|
|
289
|
+
}>>;
|
|
290
|
+
emergencyStopped: z.ZodBoolean;
|
|
291
|
+
failSafeApplied: z.ZodBoolean;
|
|
292
|
+
}, z.core.$strict>>;
|
|
293
|
+
uses: z.ZodNumber;
|
|
294
|
+
materialParameters: z.ZodPipe<z.ZodUnknown, z.ZodTransform<Readonly<Record<string, import("./canonical-json.js").CanonicalJsonValue>>, unknown>>;
|
|
295
|
+
initiatingContext: z.ZodEnum<{
|
|
296
|
+
agent: "agent";
|
|
297
|
+
user: "user";
|
|
298
|
+
scheduled: "scheduled";
|
|
299
|
+
"external-event": "external-event";
|
|
300
|
+
}>;
|
|
301
|
+
authority: z.ZodObject<{
|
|
302
|
+
policy: z.ZodObject<{
|
|
303
|
+
id: z.core.$ZodBranded<z.ZodString, "PolicyId", "out">;
|
|
304
|
+
version: z.ZodNumber;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
evaluatedGrants: z.ZodArray<z.ZodObject<{
|
|
307
|
+
id: z.core.$ZodBranded<z.ZodString, "GrantId", "out">;
|
|
308
|
+
version: z.ZodNumber;
|
|
309
|
+
}, z.core.$strict>>;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
issuedAtEpochMs: z.ZodNumber;
|
|
312
|
+
expiresAtEpochMs: z.ZodNumber;
|
|
313
|
+
nonce: z.core.$ZodBranded<z.ZodString, "Nonce", "out">;
|
|
314
|
+
requestedAdapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
315
|
+
purpose: z.ZodString;
|
|
316
|
+
materialDigest: z.ZodString;
|
|
317
|
+
}, z.core.$strict>>;
|
|
318
|
+
reasonCode: z.ZodString;
|
|
319
|
+
decidedAtEpochMs: z.ZodNumber;
|
|
320
|
+
}, z.core.$strict>;
|
|
321
|
+
export declare const RequestDenialRecordSchema: z.ZodObject<{
|
|
322
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
323
|
+
kind: z.ZodLiteral<"guardian.request_denial.v1">;
|
|
324
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
325
|
+
principalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
326
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
327
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
328
|
+
correlationId: z.core.$ZodBranded<z.ZodString, "CorrelationId", "out">;
|
|
329
|
+
actionDigest: z.ZodNullable<z.ZodString>;
|
|
330
|
+
action: z.ZodNullable<z.ZodObject<{
|
|
331
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
332
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
333
|
+
correlationId: z.core.$ZodBranded<z.ZodString, "CorrelationId", "out">;
|
|
334
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
335
|
+
principalId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
336
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
337
|
+
action: z.core.$ZodBranded<z.ZodString, "ActionType", "out">;
|
|
338
|
+
resource: z.core.$ZodBranded<z.ZodString, "ResourceRef", "out">;
|
|
339
|
+
interface: z.ZodEnum<{
|
|
340
|
+
mcp: "mcp";
|
|
341
|
+
rest: "rest";
|
|
342
|
+
internal: "internal";
|
|
343
|
+
}>;
|
|
344
|
+
valueCents: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
346
|
+
merchantCategory: z.ZodOptional<z.ZodString>;
|
|
347
|
+
recurring: z.ZodOptional<z.ZodBoolean>;
|
|
348
|
+
taskId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "TaskId", "out">>;
|
|
349
|
+
intentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "IntentId", "out">>;
|
|
350
|
+
planId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "PlanId", "out">>;
|
|
351
|
+
obligations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
352
|
+
type: z.ZodEnum<{
|
|
353
|
+
log: "log";
|
|
354
|
+
retain_receipt: "retain_receipt";
|
|
355
|
+
notify: "notify";
|
|
356
|
+
delay: "delay";
|
|
357
|
+
cooling_period: "cooling_period";
|
|
358
|
+
delete_after_use: "delete_after_use";
|
|
359
|
+
redact: "redact";
|
|
360
|
+
encrypt: "encrypt";
|
|
361
|
+
tokenize: "tokenize";
|
|
362
|
+
minimize: "minimize";
|
|
363
|
+
verify_counterparty: "verify_counterparty";
|
|
364
|
+
verify_resource: "verify_resource";
|
|
365
|
+
verify_effect: "verify_effect";
|
|
366
|
+
attest_runtime: "attest_runtime";
|
|
367
|
+
require_consent: "require_consent";
|
|
368
|
+
require_location: "require_location";
|
|
369
|
+
require_device: "require_device";
|
|
370
|
+
require_network: "require_network";
|
|
371
|
+
require_contract: "require_contract";
|
|
372
|
+
step_up: "step_up";
|
|
373
|
+
second_approver: "second_approver";
|
|
374
|
+
quorum: "quorum";
|
|
375
|
+
authenticate: "authenticate";
|
|
376
|
+
}>;
|
|
377
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
378
|
+
}, z.core.$strict>>>;
|
|
379
|
+
obligationStates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
380
|
+
obligationType: z.ZodEnum<{
|
|
381
|
+
log: "log";
|
|
382
|
+
retain_receipt: "retain_receipt";
|
|
383
|
+
notify: "notify";
|
|
384
|
+
delay: "delay";
|
|
385
|
+
cooling_period: "cooling_period";
|
|
386
|
+
delete_after_use: "delete_after_use";
|
|
387
|
+
redact: "redact";
|
|
388
|
+
encrypt: "encrypt";
|
|
389
|
+
tokenize: "tokenize";
|
|
390
|
+
minimize: "minimize";
|
|
391
|
+
verify_counterparty: "verify_counterparty";
|
|
392
|
+
verify_resource: "verify_resource";
|
|
393
|
+
verify_effect: "verify_effect";
|
|
394
|
+
attest_runtime: "attest_runtime";
|
|
395
|
+
require_consent: "require_consent";
|
|
396
|
+
require_location: "require_location";
|
|
397
|
+
require_device: "require_device";
|
|
398
|
+
require_network: "require_network";
|
|
399
|
+
require_contract: "require_contract";
|
|
400
|
+
step_up: "step_up";
|
|
401
|
+
second_approver: "second_approver";
|
|
402
|
+
quorum: "quorum";
|
|
403
|
+
authenticate: "authenticate";
|
|
404
|
+
}>;
|
|
405
|
+
state: z.ZodEnum<{
|
|
406
|
+
satisfied: "satisfied";
|
|
407
|
+
pending: "pending";
|
|
408
|
+
failed: "failed";
|
|
409
|
+
not_applicable: "not_applicable";
|
|
410
|
+
}>;
|
|
411
|
+
rule: z.ZodEnum<{
|
|
412
|
+
OBLIGATION_SATISFIED: "OBLIGATION_SATISFIED";
|
|
413
|
+
PENDING_POST_ACTION: "PENDING_POST_ACTION";
|
|
414
|
+
PENDING_TIME: "PENDING_TIME";
|
|
415
|
+
PENDING_HUMAN: "PENDING_HUMAN";
|
|
416
|
+
OBLIGATION_PARAMS_INVALID: "OBLIGATION_PARAMS_INVALID";
|
|
417
|
+
COUNTERPARTY_UNVERIFIED: "COUNTERPARTY_UNVERIFIED";
|
|
418
|
+
RESOURCE_NOT_COVERED: "RESOURCE_NOT_COVERED";
|
|
419
|
+
OBLIGATION_VERIFIER_UNAVAILABLE: "OBLIGATION_VERIFIER_UNAVAILABLE";
|
|
420
|
+
}>;
|
|
421
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
422
|
+
dueEpochMs: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
}, z.core.$strict>>>;
|
|
424
|
+
prerequisiteResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
prerequisiteType: z.ZodString;
|
|
427
|
+
state: z.ZodEnum<{
|
|
428
|
+
satisfied: "satisfied";
|
|
429
|
+
pending: "pending";
|
|
430
|
+
failed: "failed";
|
|
431
|
+
not_applicable: "not_applicable";
|
|
432
|
+
}>;
|
|
433
|
+
rule: z.ZodEnum<{
|
|
434
|
+
BUDGET_EXCEEDED: "BUDGET_EXCEEDED";
|
|
435
|
+
PENDING_HUMAN: "PENDING_HUMAN";
|
|
436
|
+
PREREQUISITE_SATISFIED: "PREREQUISITE_SATISFIED";
|
|
437
|
+
MERCHANT_UNVERIFIED: "MERCHANT_UNVERIFIED";
|
|
438
|
+
BUDGET_NOT_DECLARED: "BUDGET_NOT_DECLARED";
|
|
439
|
+
CAPABILITY_NOT_COVERED: "CAPABILITY_NOT_COVERED";
|
|
440
|
+
ADDRESS_NOT_AUTHORIZED: "ADDRESS_NOT_AUTHORIZED";
|
|
441
|
+
PREREQUISITE_PARAMS_INVALID: "PREREQUISITE_PARAMS_INVALID";
|
|
442
|
+
PREREQUISITE_VERIFIER_UNAVAILABLE: "PREREQUISITE_VERIFIER_UNAVAILABLE";
|
|
443
|
+
}>;
|
|
444
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
445
|
+
}, z.core.$strict>>>;
|
|
446
|
+
parentActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RequestId", "out">>;
|
|
447
|
+
sourceEffectId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AttemptId", "out">>;
|
|
448
|
+
sequenceMatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
449
|
+
ruleId: z.ZodString;
|
|
450
|
+
effect: z.ZodEnum<{
|
|
451
|
+
deny: "deny";
|
|
452
|
+
require_approval: "require_approval";
|
|
453
|
+
}>;
|
|
454
|
+
matchedActionRefs: z.ZodArray<z.ZodString>;
|
|
455
|
+
}, z.core.$strict>>>;
|
|
456
|
+
lineageMatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
457
|
+
dataObjectId: z.core.$ZodBranded<z.ZodString, "DataObjectId", "out">;
|
|
458
|
+
effectiveClassification: z.ZodEnum<{
|
|
459
|
+
financial: "financial";
|
|
460
|
+
internal: "internal";
|
|
461
|
+
public: "public";
|
|
462
|
+
pii: "pii";
|
|
463
|
+
phi: "phi";
|
|
464
|
+
credential: "credential";
|
|
465
|
+
confidential: "confidential";
|
|
466
|
+
}>;
|
|
467
|
+
effect: z.ZodEnum<{
|
|
468
|
+
allowed: "allowed";
|
|
469
|
+
deny: "deny";
|
|
470
|
+
require_approval: "require_approval";
|
|
471
|
+
}>;
|
|
472
|
+
expired: z.ZodBoolean;
|
|
473
|
+
}, z.core.$strict>>>;
|
|
474
|
+
runtimeTrustLevel: z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
T0_UNKNOWN: "T0_UNKNOWN";
|
|
476
|
+
T1_IDENTIFIED: "T1_IDENTIFIED";
|
|
477
|
+
T2_VERIFIED: "T2_VERIFIED";
|
|
478
|
+
T3_ATTESTED: "T3_ATTESTED";
|
|
479
|
+
T4_HARDWARE_BACKED: "T4_HARDWARE_BACKED";
|
|
480
|
+
}>>;
|
|
481
|
+
enforcementAssurance: z.ZodOptional<z.ZodEnum<{
|
|
482
|
+
G2_CREDENTIAL_MEDIATED: "G2_CREDENTIAL_MEDIATED";
|
|
483
|
+
G1_POLICY_MEDIATED: "G1_POLICY_MEDIATED";
|
|
484
|
+
G3_RUNTIME_CONTAINED: "G3_RUNTIME_CONTAINED";
|
|
485
|
+
G0_OBSERVED: "G0_OBSERVED";
|
|
486
|
+
G4_COUNTERPARTY_INTERLOCKED: "G4_COUNTERPARTY_INTERLOCKED";
|
|
487
|
+
}>>;
|
|
488
|
+
approvalStructures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
489
|
+
schema: z.ZodLiteral<"guardian.multiparty.v1">;
|
|
490
|
+
structureId: z.ZodString;
|
|
491
|
+
members: z.ZodArray<z.ZodObject<{
|
|
492
|
+
memberId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
493
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
494
|
+
}, z.core.$strict>>;
|
|
495
|
+
requirement: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
496
|
+
kind: z.ZodLiteral<"single">;
|
|
497
|
+
memberId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
498
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
499
|
+
kind: z.ZodLiteral<"nOfM">;
|
|
500
|
+
n: z.ZodNumber;
|
|
501
|
+
members: z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>;
|
|
502
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
503
|
+
kind: z.ZodLiteral<"unanimous">;
|
|
504
|
+
members: z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>;
|
|
505
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
506
|
+
kind: z.ZodLiteral<"roleQuorum">;
|
|
507
|
+
role: z.ZodString;
|
|
508
|
+
n: z.ZodNumber;
|
|
509
|
+
m: z.ZodNumber;
|
|
510
|
+
}, z.core.$strict>], "kind">;
|
|
511
|
+
specificRequired: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>>;
|
|
512
|
+
veto: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>>;
|
|
513
|
+
separationOfDuties: z.ZodOptional<z.ZodObject<{
|
|
514
|
+
mutuallyExclusive: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
515
|
+
}, z.core.$strict>>;
|
|
516
|
+
temporaryApprovers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
517
|
+
memberId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
518
|
+
expiresAtEpochMs: z.ZodNumber;
|
|
519
|
+
}, z.core.$strict>>>;
|
|
520
|
+
delegatedApprovers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
521
|
+
memberId: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
522
|
+
delegatedBy: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
523
|
+
}, z.core.$strict>>>;
|
|
524
|
+
emergencyApprovers: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>>;
|
|
525
|
+
coolingPeriod: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
seconds: z.ZodNumber;
|
|
527
|
+
}, z.core.$strict>>;
|
|
528
|
+
}, z.core.$strict>>>;
|
|
529
|
+
appliedAuthoritySources: z.ZodOptional<z.ZodObject<{
|
|
530
|
+
applied: z.ZodArray<z.ZodString>;
|
|
531
|
+
constraints: z.ZodObject<{
|
|
532
|
+
allowedActions: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ActionType", "out">>>;
|
|
533
|
+
deniedActions: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ActionType", "out">>>;
|
|
534
|
+
allowedResources: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ResourceRef", "out">>>;
|
|
535
|
+
allowedInterfaces: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
536
|
+
mcp: "mcp";
|
|
537
|
+
rest: "rest";
|
|
538
|
+
internal: "internal";
|
|
539
|
+
}>>>;
|
|
540
|
+
maxValueCents: z.ZodOptional<z.ZodNumber>;
|
|
541
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
542
|
+
minRuntimeLevel: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
T0_UNKNOWN: "T0_UNKNOWN";
|
|
544
|
+
T1_IDENTIFIED: "T1_IDENTIFIED";
|
|
545
|
+
T2_VERIFIED: "T2_VERIFIED";
|
|
546
|
+
T3_ATTESTED: "T3_ATTESTED";
|
|
547
|
+
T4_HARDWARE_BACKED: "T4_HARDWARE_BACKED";
|
|
548
|
+
}>>;
|
|
549
|
+
minAssuranceLevel: z.ZodOptional<z.ZodEnum<{
|
|
550
|
+
G2_CREDENTIAL_MEDIATED: "G2_CREDENTIAL_MEDIATED";
|
|
551
|
+
G1_POLICY_MEDIATED: "G1_POLICY_MEDIATED";
|
|
552
|
+
G3_RUNTIME_CONTAINED: "G3_RUNTIME_CONTAINED";
|
|
553
|
+
G0_OBSERVED: "G0_OBSERVED";
|
|
554
|
+
G4_COUNTERPARTY_INTERLOCKED: "G4_COUNTERPARTY_INTERLOCKED";
|
|
555
|
+
}>>;
|
|
556
|
+
requiredApprovals: z.ZodOptional<z.ZodNumber>;
|
|
557
|
+
}, z.core.$strict>;
|
|
558
|
+
}, z.core.$strict>>;
|
|
559
|
+
transaction: z.ZodOptional<z.ZodObject<{
|
|
560
|
+
schema: z.ZodLiteral<"guardian.transaction.v1">;
|
|
561
|
+
stages: z.ZodArray<z.ZodEnum<{
|
|
562
|
+
PROPOSE: "PROPOSE";
|
|
563
|
+
PREPARE: "PREPARE";
|
|
564
|
+
AUTHORIZE: "AUTHORIZE";
|
|
565
|
+
LOCK: "LOCK";
|
|
566
|
+
COMMIT: "COMMIT";
|
|
567
|
+
VERIFY: "VERIFY";
|
|
568
|
+
SETTLE: "SETTLE";
|
|
569
|
+
}>>;
|
|
570
|
+
deadlineMs: z.ZodOptional<z.ZodNumber>;
|
|
571
|
+
}, z.core.$strict>>;
|
|
572
|
+
compensates: z.ZodOptional<z.ZodObject<{
|
|
573
|
+
transactionId: z.core.$ZodBranded<z.ZodString, "TransactionId", "out">;
|
|
574
|
+
}, z.core.$strict>>;
|
|
575
|
+
physicalFacts: z.ZodOptional<z.ZodObject<{
|
|
576
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
577
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
force: z.ZodOptional<z.ZodNumber>;
|
|
579
|
+
payload: z.ZodOptional<z.ZodNumber>;
|
|
580
|
+
atEpochMs: z.ZodOptional<z.ZodNumber>;
|
|
581
|
+
humanDistance: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
583
|
+
supervised: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
+
}, z.core.$strict>>;
|
|
585
|
+
safetyEnvelopeOutcome: z.ZodOptional<z.ZodObject<{
|
|
586
|
+
envelopeDigest: z.ZodString;
|
|
587
|
+
satisfied: z.ZodBoolean;
|
|
588
|
+
violations: z.ZodArray<z.ZodEnum<{
|
|
589
|
+
OUT_OF_ZONE: "OUT_OF_ZONE";
|
|
590
|
+
FORBIDDEN_ZONE: "FORBIDDEN_ZONE";
|
|
591
|
+
OVER_SPEED: "OVER_SPEED";
|
|
592
|
+
OVER_FORCE: "OVER_FORCE";
|
|
593
|
+
OVER_PAYLOAD: "OVER_PAYLOAD";
|
|
594
|
+
OUTSIDE_TIME_WINDOW: "OUTSIDE_TIME_WINDOW";
|
|
595
|
+
PROXIMITY_VIOLATION: "PROXIMITY_VIOLATION";
|
|
596
|
+
ENVIRONMENT_VIOLATION: "ENVIRONMENT_VIOLATION";
|
|
597
|
+
SUPERVISION_REQUIRED: "SUPERVISION_REQUIRED";
|
|
598
|
+
}>>;
|
|
599
|
+
emergencyStopped: z.ZodBoolean;
|
|
600
|
+
failSafeApplied: z.ZodBoolean;
|
|
601
|
+
}, z.core.$strict>>;
|
|
602
|
+
uses: z.ZodNumber;
|
|
603
|
+
materialParameters: z.ZodPipe<z.ZodUnknown, z.ZodTransform<Readonly<Record<string, import("./canonical-json.js").CanonicalJsonValue>>, unknown>>;
|
|
604
|
+
initiatingContext: z.ZodEnum<{
|
|
605
|
+
agent: "agent";
|
|
606
|
+
user: "user";
|
|
607
|
+
scheduled: "scheduled";
|
|
608
|
+
"external-event": "external-event";
|
|
609
|
+
}>;
|
|
610
|
+
authority: z.ZodObject<{
|
|
611
|
+
policy: z.ZodObject<{
|
|
612
|
+
id: z.core.$ZodBranded<z.ZodString, "PolicyId", "out">;
|
|
613
|
+
version: z.ZodNumber;
|
|
614
|
+
}, z.core.$strict>;
|
|
615
|
+
evaluatedGrants: z.ZodArray<z.ZodObject<{
|
|
616
|
+
id: z.core.$ZodBranded<z.ZodString, "GrantId", "out">;
|
|
617
|
+
version: z.ZodNumber;
|
|
618
|
+
}, z.core.$strict>>;
|
|
619
|
+
}, z.core.$strict>;
|
|
620
|
+
issuedAtEpochMs: z.ZodNumber;
|
|
621
|
+
expiresAtEpochMs: z.ZodNumber;
|
|
622
|
+
nonce: z.core.$ZodBranded<z.ZodString, "Nonce", "out">;
|
|
623
|
+
requestedAdapterId: z.core.$ZodBranded<z.ZodString, "AdapterId", "out">;
|
|
624
|
+
purpose: z.ZodString;
|
|
625
|
+
materialDigest: z.ZodString;
|
|
626
|
+
}, z.core.$strict>>;
|
|
627
|
+
reasonCode: z.ZodString;
|
|
628
|
+
decidedAtEpochMs: z.ZodNumber;
|
|
629
|
+
recordDigest: z.ZodString;
|
|
630
|
+
}, z.core.$strict>;
|
|
631
|
+
export type RequestDenialRecord = z.infer<typeof RequestDenialRecordSchema>;
|
|
632
|
+
export type CreateRequestDenialResult = {
|
|
633
|
+
ok: true;
|
|
634
|
+
record: RequestDenialRecord;
|
|
635
|
+
} | {
|
|
636
|
+
ok: false;
|
|
637
|
+
reasonCode: "REQUEST_DENIAL_BINDING_INVALID";
|
|
638
|
+
};
|
|
639
|
+
export declare function createRequestDenialRecord(input: {
|
|
640
|
+
tenantId: unknown;
|
|
641
|
+
principalId: unknown;
|
|
642
|
+
agentId: unknown;
|
|
643
|
+
requestId: unknown;
|
|
644
|
+
correlationId: unknown;
|
|
645
|
+
action: unknown;
|
|
646
|
+
reasonCode: unknown;
|
|
647
|
+
decidedAtEpochMs: unknown;
|
|
648
|
+
}): CreateRequestDenialResult;
|