@crediolabs/policy-synth 0.2.0 → 0.3.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/README.md +4 -4
- package/dist/adapters/interpreter/adapter.d.ts +19 -25
- package/dist/adapters/interpreter/adapter.js +54 -487
- package/dist/adapters/interpreter/index.d.ts +1 -1
- package/dist/adapters/interpreter/index.js +1 -1
- package/dist/adapters/oz/adapter.js +1 -15
- package/dist/errors.d.ts +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -4
- package/dist/install/build-add-context-rule.d.ts +3 -19
- package/dist/install/build-add-context-rule.js +3 -98
- package/dist/install/build-install-policy.d.ts +4 -53
- package/dist/install/build-install-policy.js +44 -123
- package/dist/install/index.d.ts +0 -2
- package/dist/install/index.js +0 -7
- package/dist/ir/index.d.ts +1 -1
- package/dist/ir/types.d.ts +7 -76
- package/dist/ir/types.js +0 -2
- package/dist/predicate/decode.d.ts +1 -1
- package/dist/predicate/decode.js +2 -70
- package/dist/predicate/encode.js +45 -229
- package/dist/predicate/from-json.js +1 -42
- package/dist/record/decode.js +3 -8
- package/dist/review-card/builder.d.ts +4 -3
- package/dist/review-card/builder.js +18 -162
- package/dist/review-card/cross-check.js +2 -105
- package/dist/review-card/render-leaf.d.ts +4 -0
- package/dist/review-card/render-leaf.js +47 -0
- package/dist/run/index.d.ts +36 -139
- package/dist/run/index.js +125 -437
- package/dist/run/schemas.d.ts +168 -1929
- package/dist/run/schemas.js +40 -269
- package/dist/seams/types.d.ts +0 -2
- package/dist/simulate/deny-cases.d.ts +26 -0
- package/dist/simulate/deny-cases.js +282 -0
- package/dist/simulate/evaluate.d.ts +18 -0
- package/dist/simulate/evaluate.js +271 -0
- package/dist/simulate/index.d.ts +4 -0
- package/dist/simulate/index.js +8 -0
- package/dist/synth/compose-from-recording.d.ts +24 -51
- package/dist/synth/compose-from-recording.js +120 -282
- package/dist/synth/deny-cases.d.ts +5 -7
- package/dist/synth/deny-cases.js +23 -373
- package/dist/synth/evaluate.d.ts +0 -21
- package/dist/synth/evaluate.js +56 -336
- package/dist/synth/index.d.ts +0 -5
- package/dist/synth/index.js +0 -5
- package/dist/synth/permit-context.d.ts +2 -9
- package/dist/synth/permit-context.js +1 -82
- package/dist/synth/synthesize-from-recording.d.ts +1 -29
- package/dist/synth/synthesize-from-recording.js +41 -356
- package/dist/types.d.ts +8 -60
- package/dist/types.js +5 -2
- package/dist/verify/simulate.d.ts +1 -14
- package/dist/verify/simulate.js +2 -88
- package/dist/verify/verify.d.ts +1 -7
- package/dist/verify/verify.js +0 -8
- package/dist-cjs/adapters/interpreter/adapter.d.ts +19 -25
- package/dist-cjs/adapters/interpreter/adapter.js +56 -489
- package/dist-cjs/adapters/interpreter/index.d.ts +1 -1
- package/dist-cjs/adapters/interpreter/index.js +1 -2
- package/dist-cjs/adapters/oz/adapter.js +1 -15
- package/dist-cjs/errors.d.ts +1 -1
- package/dist-cjs/index.d.ts +1 -4
- package/dist-cjs/index.js +1 -4
- package/dist-cjs/install/build-add-context-rule.d.ts +3 -19
- package/dist-cjs/install/build-add-context-rule.js +1 -97
- package/dist-cjs/install/build-install-policy.d.ts +4 -53
- package/dist-cjs/install/build-install-policy.js +44 -122
- package/dist-cjs/install/index.d.ts +0 -2
- package/dist-cjs/install/index.js +2 -23
- package/dist-cjs/ir/index.d.ts +1 -1
- package/dist-cjs/ir/types.d.ts +7 -76
- package/dist-cjs/ir/types.js +0 -2
- package/dist-cjs/predicate/decode.d.ts +1 -1
- package/dist-cjs/predicate/decode.js +2 -70
- package/dist-cjs/predicate/encode.js +45 -229
- package/dist-cjs/predicate/from-json.js +1 -42
- package/dist-cjs/record/decode.js +3 -8
- package/dist-cjs/review-card/builder.d.ts +4 -3
- package/dist-cjs/review-card/builder.js +23 -167
- package/dist-cjs/review-card/cross-check.js +7 -110
- package/dist-cjs/review-card/render-leaf.d.ts +4 -0
- package/dist-cjs/review-card/render-leaf.js +52 -0
- package/dist-cjs/run/index.d.ts +36 -139
- package/dist-cjs/run/index.js +125 -444
- package/dist-cjs/run/schemas.d.ts +168 -1929
- package/dist-cjs/run/schemas.js +41 -270
- package/dist-cjs/seams/types.d.ts +0 -2
- package/dist-cjs/simulate/deny-cases.d.ts +26 -0
- package/dist-cjs/simulate/deny-cases.js +286 -0
- package/dist-cjs/simulate/evaluate.d.ts +18 -0
- package/dist-cjs/simulate/evaluate.js +274 -0
- package/dist-cjs/simulate/index.d.ts +4 -0
- package/dist-cjs/simulate/index.js +13 -0
- package/dist-cjs/synth/compose-from-recording.d.ts +24 -51
- package/dist-cjs/synth/compose-from-recording.js +120 -282
- package/dist-cjs/synth/deny-cases.d.ts +5 -7
- package/dist-cjs/synth/deny-cases.js +23 -374
- package/dist-cjs/synth/evaluate.d.ts +0 -21
- package/dist-cjs/synth/evaluate.js +57 -337
- package/dist-cjs/synth/index.d.ts +0 -5
- package/dist-cjs/synth/index.js +1 -11
- package/dist-cjs/synth/permit-context.d.ts +2 -9
- package/dist-cjs/synth/permit-context.js +1 -82
- package/dist-cjs/synth/synthesize-from-recording.d.ts +1 -29
- package/dist-cjs/synth/synthesize-from-recording.js +39 -354
- package/dist-cjs/types.d.ts +8 -60
- package/dist-cjs/types.js +6 -3
- package/dist-cjs/verify/simulate.d.ts +1 -14
- package/dist-cjs/verify/simulate.js +2 -88
- package/dist-cjs/verify/verify.d.ts +1 -7
- package/dist-cjs/verify/verify.js +0 -8
- package/package.json +4 -4
- package/src/adapters/interpreter/adapter.ts +76 -572
- package/src/errors.ts +0 -19
- package/src/index.ts +1 -4
- package/src/install/build-add-context-rule.ts +5 -139
- package/src/install/build-install-policy.ts +93 -214
- package/src/install/index.ts +0 -34
- package/src/predicate/decode.ts +2 -70
- package/src/predicate/encode.ts +49 -261
- package/src/predicate/from-json.ts +1 -43
- package/src/record/decode.ts +3 -8
- package/src/review-card/builder.ts +19 -168
- package/src/review-card/cross-check.ts +3 -105
- package/src/review-card/render-leaf.ts +48 -0
- package/src/run/index.ts +144 -572
- package/src/run/schemas.ts +42 -291
- package/src/simulate/deny-cases.ts +334 -0
- package/src/simulate/evaluate.ts +284 -0
- package/src/simulate/index.ts +11 -0
- package/src/synth/compose-from-recording.ts +148 -347
- package/src/synth/index.ts +0 -13
- package/src/synth/synthesize-from-recording.ts +43 -456
- package/src/types.ts +13 -49
- package/dist/install/authority-overlap.d.ts +0 -134
- package/dist/install/authority-overlap.js +0 -0
- package/dist/install/build-install-predicate.d.ts +0 -96
- package/dist/install/build-install-predicate.js +0 -444
- package/dist/install/build-merge-policy.d.ts +0 -70
- package/dist/install/build-merge-policy.js +0 -130
- package/dist/install/plan-merge-policy.d.ts +0 -49
- package/dist/install/plan-merge-policy.js +0 -86
- package/dist/install/read-account-rules.d.ts +0 -100
- package/dist/install/read-account-rules.js +0 -283
- package/dist-cjs/install/authority-overlap.d.ts +0 -134
- package/dist-cjs/install/authority-overlap.js +0 -0
- package/dist-cjs/install/build-install-predicate.d.ts +0 -96
- package/dist-cjs/install/build-install-predicate.js +0 -479
- package/dist-cjs/install/build-merge-policy.d.ts +0 -70
- package/dist-cjs/install/build-merge-policy.js +0 -134
- package/dist-cjs/install/plan-merge-policy.d.ts +0 -49
- package/dist-cjs/install/plan-merge-policy.js +0 -90
- package/dist-cjs/install/read-account-rules.d.ts +0 -100
- package/dist-cjs/install/read-account-rules.js +0 -296
- package/src/adapters/interpreter/index.ts +0 -8
- package/src/adapters/oz/adapter.ts +0 -376
- package/src/adapters/oz/index.ts +0 -9
- package/src/codegen/compile-gate.ts +0 -167
- package/src/codegen/index.ts +0 -17
- package/src/codegen/template.ts +0 -165
- package/src/install/authority-overlap.ts +0 -0
- package/src/install/build-merge-policy.ts +0 -219
- package/src/install/plan-merge-policy.ts +0 -133
- package/src/install/read-account-rules.ts +0 -376
- package/src/ir/index.ts +0 -13
- package/src/ir/types.ts +0 -132
- package/src/mandate/index.ts +0 -4
- package/src/mandate/to-ir.ts +0 -71
- package/src/mandate/types.ts +0 -21
- package/src/seams/index.ts +0 -11
- package/src/seams/types.ts +0 -81
- package/src/synth/deny-cases.ts +0 -663
- package/src/synth/evaluate.ts +0 -613
- package/src/synth/harness.ts +0 -68
- package/src/synth/minimize.ts +0 -48
- package/src/synth/permit-context.ts +0 -136
- package/src/synth/predicate-literals.ts +0 -27
- package/src/synth/synthesize-from-mandate.ts +0 -82
- package/src/verify/envelope.ts +0 -28
- package/src/verify/index.ts +0 -5
- package/src/verify/simulate.ts +0 -311
- package/src/verify/verify.ts +0 -243
package/src/verify/verify.ts
DELETED
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
// src/verify/verify.ts - the static minimality check for `verify_policy`.
|
|
2
|
-
//
|
|
3
|
-
// `verifyPolicy` proves the policy is MINIMAL: no top-level conjunct is
|
|
4
|
-
// load-bearing-free. It is the static sibling of `simulatePolicy` and emits
|
|
5
|
-
// `VERIFICATION_FAILED` (not `SIMULATION_ERROR`) on failure. The boundary is
|
|
6
|
-
// pinned:
|
|
7
|
-
//
|
|
8
|
-
// - `VERIFICATION_FAILED` = STATIC minimality check failed. The policy is
|
|
9
|
-
// structurally over-broad: a constraint could be dropped without losing
|
|
10
|
-
// a deny-case. Surfaced by `verifyPolicy`. Runtime evaluation is not
|
|
11
|
-
// part of this check; the policy may evaluate to a permit/deny just
|
|
12
|
-
// fine, the failure is shape-only.
|
|
13
|
-
//
|
|
14
|
-
// - `SIMULATION_ERROR` = RUNTIME evaluation failed (see simulate.ts).
|
|
15
|
-
// This module never emits SIMULATION_ERROR. A minimality failure is
|
|
16
|
-
// never a simulation error and vice-versa.
|
|
17
|
-
//
|
|
18
|
-
// Algorithm:
|
|
19
|
-
// 1. Build the permit EvalContext from `permitTx` (mirror of the
|
|
20
|
-
// orchestrator's helper so verify is self-contained).
|
|
21
|
-
// 2. Run `minimize(predicate, permitCtx)` to strip load-bearing-free
|
|
22
|
-
// top-level conjuncts (only `and` predicates are minimisable; other
|
|
23
|
-
// shapes are returned unchanged by `minimize`).
|
|
24
|
-
// 3. If the minimised tree has fewer top-level conjuncts than the input,
|
|
25
|
-
// return `VERIFICATION_FAILED` listing the dropped conjuncts by their
|
|
26
|
-
// structural fingerprint.
|
|
27
|
-
// 4. Otherwise `{ ok: true }`.
|
|
28
|
-
//
|
|
29
|
-
// Determinism: same `(predicate, permitTx)` -> byte-identical verdict.
|
|
30
|
-
|
|
31
|
-
import type { ToolError, ToolResponse } from '../errors.ts'
|
|
32
|
-
import type { EvalContext } from '../synth/evaluate.ts'
|
|
33
|
-
import { minimize } from '../synth/minimize.ts'
|
|
34
|
-
import type { ContractInvocation, PredicateNode, RecordedTransaction, ScVal } from '../types.ts'
|
|
35
|
-
import { MAX_SCVAL_CLONE_DEPTH } from '../types.ts'
|
|
36
|
-
|
|
37
|
-
/** Options for `verifyPolicy`. Mirrors the orchestrator's permit-context
|
|
38
|
-
* knobs (expiry; oracle fixture) so verify sees the same shape
|
|
39
|
-
* `simulatePolicy` sees. */
|
|
40
|
-
export interface VerifyOptions {
|
|
41
|
-
validUntilLedger?: number
|
|
42
|
-
oraclePricesByAsset?: Record<
|
|
43
|
-
string,
|
|
44
|
-
| { price: string; timestampSeconds: number }
|
|
45
|
-
| {
|
|
46
|
-
error: 'stale' | 'missing' | 'deviation' | 'paused' | 'decimals' | 'fingerprint'
|
|
47
|
-
}
|
|
48
|
-
>
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/** Run the static minimality check on a proposed predicate + recorded tx.
|
|
52
|
-
* Returns `{ ok: true }` when the predicate is minimal (every top-level
|
|
53
|
-
* conjunct carries load) and `VERIFICATION_FAILED` when a conjunct could
|
|
54
|
-
* be dropped without losing a deny-case. The dropped conjuncts are
|
|
55
|
-
* reported in `details.droppedConstraints` so the caller can render a
|
|
56
|
-
* review-card warning. */
|
|
57
|
-
export function verifyPolicy(
|
|
58
|
-
predicate: PredicateNode,
|
|
59
|
-
permitTx: RecordedTransaction,
|
|
60
|
-
opts: VerifyOptions = {}
|
|
61
|
-
): ToolResponse<true> {
|
|
62
|
-
const topLevel = permitTx.invocations[0]
|
|
63
|
-
if (!topLevel) {
|
|
64
|
-
return {
|
|
65
|
-
ok: false,
|
|
66
|
-
error: verificationFailed(
|
|
67
|
-
'recorded transaction has no top-level invocation to verify against',
|
|
68
|
-
{ droppedConstraints: [] }
|
|
69
|
-
),
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
let permitCtx: EvalContext
|
|
74
|
-
try {
|
|
75
|
-
permitCtx = buildPermitContextForVerify(permitTx, topLevel, opts)
|
|
76
|
-
} catch (e) {
|
|
77
|
-
return {
|
|
78
|
-
ok: false,
|
|
79
|
-
error: verificationFailed(
|
|
80
|
-
`could not build permit evaluation context: ${(e as Error).message}`,
|
|
81
|
-
{ droppedConstraints: [] }
|
|
82
|
-
),
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// `minimize` only reduces `and` predicates; other shapes are returned
|
|
87
|
-
// unchanged. A non-`and` predicate therefore trivially passes the static
|
|
88
|
-
// minimality check (its top-level structure carries no removable
|
|
89
|
-
// conjuncts). The runtime harness in `simulatePolicy` covers the
|
|
90
|
-
// OR / NOT / comparison shapes.
|
|
91
|
-
const minimised = minimize(predicate, permitCtx)
|
|
92
|
-
|
|
93
|
-
// Drop count: only meaningful for `and`. For other shapes we already
|
|
94
|
-
// returned the input unchanged; report ok.
|
|
95
|
-
if (predicate.op !== 'and' || minimised.op !== 'and') {
|
|
96
|
-
if (!structuralEqual(predicate, minimised)) {
|
|
97
|
-
return {
|
|
98
|
-
ok: false,
|
|
99
|
-
error: verificationFailed(
|
|
100
|
-
'minimizer returned a structurally different tree for a non-and predicate',
|
|
101
|
-
{ droppedConstraints: [fingerprint(minimised)] }
|
|
102
|
-
),
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return { ok: true, data: true }
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const inputChildren = predicate.children
|
|
109
|
-
const minimisedChildren = minimised.children
|
|
110
|
-
if (minimisedChildren.length >= inputChildren.length) {
|
|
111
|
-
return { ok: true, data: true }
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Over-broad: identify the dropped conjuncts by structural fingerprint
|
|
115
|
-
// (so the review card can quote exactly which constraint was redundant).
|
|
116
|
-
// We use a multiset comparison because two structurally identical
|
|
117
|
-
// conjuncts (e.g. a duplicate `call_fn == transfer`) collapse to the
|
|
118
|
-
// same fingerprint - the dropped item is the one whose fingerprint
|
|
119
|
-
// count drops between input and minimised.
|
|
120
|
-
const inputCounts = fingerprintCounts(inputChildren)
|
|
121
|
-
const minimisedCounts = fingerprintCounts(minimisedChildren)
|
|
122
|
-
const dropped: string[] = []
|
|
123
|
-
for (const [fp, count] of inputCounts) {
|
|
124
|
-
const kept = minimisedCounts.get(fp) ?? 0
|
|
125
|
-
for (let i = 0; i < count - kept; i++) dropped.push(fp)
|
|
126
|
-
}
|
|
127
|
-
return {
|
|
128
|
-
ok: false,
|
|
129
|
-
error: verificationFailed(
|
|
130
|
-
`policy is structurally over-broad: ${dropped.length} redundant conjunct(s) can be dropped without losing a deny case`,
|
|
131
|
-
{ droppedConstraints: dropped }
|
|
132
|
-
),
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function buildPermitContextForVerify(
|
|
137
|
-
tx: RecordedTransaction,
|
|
138
|
-
topLevel: ContractInvocation,
|
|
139
|
-
opts: VerifyOptions
|
|
140
|
-
): EvalContext {
|
|
141
|
-
const amountByToken: Record<string, string> = {}
|
|
142
|
-
const totals = new Map<string, bigint>()
|
|
143
|
-
for (const m of tx.tokenMovements) {
|
|
144
|
-
const current = totals.get(m.token) ?? 0n
|
|
145
|
-
totals.set(m.token, current + BigInt(m.amount))
|
|
146
|
-
}
|
|
147
|
-
for (const [token, total] of totals) {
|
|
148
|
-
amountByToken[token] = total.toString()
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
const oraclePriceByAsset: EvalContext['oraclePriceByAsset'] = {}
|
|
152
|
-
if (opts.oraclePricesByAsset) {
|
|
153
|
-
for (const [asset, entry] of Object.entries(opts.oraclePricesByAsset)) {
|
|
154
|
-
oraclePriceByAsset[asset] = entry
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
const ctx: EvalContext = {
|
|
159
|
-
contract: topLevel.contract,
|
|
160
|
-
fn: topLevel.fn,
|
|
161
|
-
args: topLevel.args.map(cloneScVal),
|
|
162
|
-
atLedger: tx.ledgerSequence,
|
|
163
|
-
nowSeconds: tx.fetchedAt,
|
|
164
|
-
amountByToken,
|
|
165
|
-
windowSpentByToken: {},
|
|
166
|
-
invocationCountByWindow: {},
|
|
167
|
-
oraclePriceByAsset,
|
|
168
|
-
}
|
|
169
|
-
if (opts.validUntilLedger !== undefined) {
|
|
170
|
-
ctx.validUntilLedger = opts.validUntilLedger
|
|
171
|
-
}
|
|
172
|
-
return ctx
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function cloneScVal(value: ScVal, depth = 0): ScVal {
|
|
176
|
-
// Recursion is bounded by MAX_SCVAL_CLONE_DEPTH so a hand-crafted nested-vec
|
|
177
|
-
// payload cannot RangeError the JS stack during context building. Over-depth
|
|
178
|
-
// throws a ToolError-shaped error that the verifier's existing try/catch
|
|
179
|
-
// converts to a structured `{ok:false, error}` (not a thrown RangeError).
|
|
180
|
-
if (value.type === 'vec') {
|
|
181
|
-
if (depth >= MAX_SCVAL_CLONE_DEPTH) {
|
|
182
|
-
throw cloneDepthError(value)
|
|
183
|
-
}
|
|
184
|
-
return { type: 'vec', value: value.value.map((v) => cloneScVal(v, depth + 1)) }
|
|
185
|
-
}
|
|
186
|
-
return { ...value }
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
function cloneDepthError(value: ScVal): never {
|
|
190
|
-
const err = new Error(
|
|
191
|
-
`ScVal clone depth exceeds MAX_SCVAL_CLONE_DEPTH (${MAX_SCVAL_CLONE_DEPTH})`
|
|
192
|
-
) as Error & { code: string; severity: string; retryable: boolean; depthContext: unknown }
|
|
193
|
-
err.code = 'VERIFICATION_FAILED'
|
|
194
|
-
err.severity = 'error'
|
|
195
|
-
err.retryable = false
|
|
196
|
-
err.depthContext = value.type
|
|
197
|
-
throw err
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
function fingerprint(node: PredicateNode): string {
|
|
201
|
-
return JSON.stringify(node, replacer)
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/** Multiset fingerprint counts for a list of conjuncts. Two structurally
|
|
205
|
-
* identical conjuncts (e.g. a duplicate `call_fn == transfer`) each
|
|
206
|
-
* contribute their own count. The minimiser may drop one of them; we
|
|
207
|
-
* surface exactly the surplus via the count difference. */
|
|
208
|
-
function fingerprintCounts(children: PredicateNode[]): Map<string, number> {
|
|
209
|
-
const counts = new Map<string, number>()
|
|
210
|
-
for (const child of children) {
|
|
211
|
-
const fp = fingerprint(child)
|
|
212
|
-
counts.set(fp, (counts.get(fp) ?? 0) + 1)
|
|
213
|
-
}
|
|
214
|
-
return counts
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/** Deterministic JSON key order for fingerprinting. Object keys are sorted
|
|
218
|
-
* recursively so the same shape produces the same string. */
|
|
219
|
-
function replacer(_key: string, value: unknown): unknown {
|
|
220
|
-
if (value && typeof value === 'object' && !Array.isArray(value)) {
|
|
221
|
-
const obj = value as Record<string, unknown>
|
|
222
|
-
const sorted: Record<string, unknown> = {}
|
|
223
|
-
for (const k of Object.keys(obj).sort()) {
|
|
224
|
-
sorted[k] = obj[k]
|
|
225
|
-
}
|
|
226
|
-
return sorted
|
|
227
|
-
}
|
|
228
|
-
return value
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
function structuralEqual(a: PredicateNode, b: PredicateNode): boolean {
|
|
232
|
-
return fingerprint(a) === fingerprint(b)
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
function verificationFailed(message: string, details: unknown): ToolError {
|
|
236
|
-
return {
|
|
237
|
-
code: 'VERIFICATION_FAILED',
|
|
238
|
-
message,
|
|
239
|
-
severity: 'error',
|
|
240
|
-
retryable: false,
|
|
241
|
-
details,
|
|
242
|
-
}
|
|
243
|
-
}
|