@belticlabs/agent-risk-sdk 0.4.0 → 0.6.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.
@@ -1,558 +0,0 @@
1
- // ../protocol/src/evidence.ts
2
- import { z } from "zod";
3
- var WIRE_SOURCES = ["AGENT_TRACE", "INTERNAL_NETWORK"];
4
- var ALL_SOURCES = ["AGENT_TRACE", "INTERNAL_NETWORK", "PLATFORM"];
5
- var EvidenceSourceSchema = z.enum(WIRE_SOURCES);
6
- var EvidenceSourceAllSchema = z.enum(ALL_SOURCES);
7
- var SOURCE_ORDER = {
8
- AGENT_TRACE: 0,
9
- INTERNAL_NETWORK: 1,
10
- PLATFORM: 2
11
- };
12
- function compareBySourceSeq(a, b) {
13
- return SOURCE_ORDER[a.source] - SOURCE_ORDER[b.source] || a.seq - b.seq;
14
- }
15
- function compareBySessionSource(a, b) {
16
- return a.sessionId < b.sessionId ? -1 : a.sessionId > b.sessionId ? 1 : SOURCE_ORDER[a.source] - SOURCE_ORDER[b.source];
17
- }
18
- var WIRE_KINDS = [
19
- "session.open",
20
- "session.close",
21
- "intent.declared",
22
- "llm_call.start",
23
- "llm_call.end",
24
- "tool_call.start",
25
- "tool_call.end",
26
- "payment.requested",
27
- "payment.presented",
28
- "gateway.decision",
29
- "transport.gap"
30
- ];
31
- var PLATFORM_KINDS = ["platform.observation", "platform.anomaly"];
32
- var WireEvidenceKindSchema = z.enum(WIRE_KINDS);
33
- var PlatformEvidenceKindSchema = z.enum(PLATFORM_KINDS);
34
- var EvidenceKindSchema = z.enum([...WIRE_KINDS, ...PLATFORM_KINDS]);
35
- var Hex64Schema = z.string().regex(/^[0-9a-f]{64}$/, "expected 64 lowercase hex chars");
36
- var SigSchema = z.string().regex(/^ed25519:[A-Za-z0-9_-]{86}$/, "expected ed25519:<base64url>");
37
- var SessionIdSchema = z.uuid();
38
- var SeqSchema = z.number().int().min(0);
39
- var TimestampSchema = z.iso.datetime({ offset: false });
40
- var JsonValueSchema = z.lazy(
41
- () => z.union([
42
- z.null(),
43
- z.boolean(),
44
- z.number().finite(),
45
- z.string(),
46
- z.array(JsonValueSchema),
47
- z.record(z.string(), JsonValueSchema)
48
- ])
49
- );
50
- var EvidenceEventSchema = z.strictObject({
51
- sessionId: SessionIdSchema,
52
- source: EvidenceSourceSchema,
53
- seq: SeqSchema,
54
- ts: TimestampSchema,
55
- kind: WireEvidenceKindSchema,
56
- payload: z.record(z.string(), JsonValueSchema),
57
- prevHash: Hex64Schema,
58
- sig: SigSchema.optional()
59
- });
60
- function isWireKind(kind) {
61
- return WIRE_KINDS.includes(kind);
62
- }
63
- function isPlatformKind(kind) {
64
- return PLATFORM_KINDS.includes(kind);
65
- }
66
-
67
- // ../protocol/src/reason-codes.ts
68
- var INDICATOR_CODES = [
69
- "CHAIN_BROKEN",
70
- "EVIDENCE_MISMATCH",
71
- "CREDENTIAL_REVOKED",
72
- "SESSION_INVALID",
73
- "PRINCIPAL_FLAGGED"
74
- ];
75
- var ANNOTATION_CODES = ["NO_AGENT_TRACE", "NO_POLICY"];
76
- var COLLECTOR_CODES = [
77
- "SCHEMA_INVALID",
78
- "SESSION_UNKNOWN",
79
- "SESSION_CLOSED",
80
- "SESSION_EXPIRED",
81
- "SOURCE_FORBIDDEN",
82
- "KIND_FORBIDDEN",
83
- "SEQ_GAP",
84
- "PREV_HASH_MISMATCH",
85
- "SIG_MISSING",
86
- "SIG_INVALID",
87
- "PAYLOAD_INVALID",
88
- "EVENT_TOO_LARGE"
89
- ];
90
- var DEFAULT_RULE_CODES = [
91
- "CAP_EXCEEDED",
92
- "PAYEE_NOT_ALLOWED",
93
- "NO_INTENT",
94
- "INTENT_EXPIRED"
95
- ];
96
- var REASON_CODE_PATTERN = /^[A-Z][A-Z0-9_]{1,63}$/;
97
-
98
- // ../protocol/src/selector.ts
99
- import { z as z2 } from "zod";
100
- var SelectorSyntaxError = class extends Error {
101
- constructor(input, at, detail) {
102
- super(`invalid selector "${input}" at ${at}: ${detail}`);
103
- this.input = input;
104
- this.at = at;
105
- this.name = "SelectorSyntaxError";
106
- }
107
- code = "SELECTOR_SYNTAX";
108
- };
109
- var IDENT = /^[A-Za-z_][A-Za-z0-9_-]*/;
110
- var NAME = /^[A-Za-z_][A-Za-z0-9_.-]*/;
111
- function parsePath(input, from) {
112
- const path = [];
113
- let i = from;
114
- while (i < input.length) {
115
- const ch = input[i];
116
- if (ch === ".") {
117
- const m = IDENT.exec(input.slice(i + 1));
118
- if (!m) throw new SelectorSyntaxError(input, i + 1, 'expected identifier after "."');
119
- path.push({ key: m[0] });
120
- i += 1 + m[0].length;
121
- } else if (ch === "[") {
122
- const close = input.indexOf("]", i);
123
- if (close < 0) throw new SelectorSyntaxError(input, i, 'unterminated "["');
124
- const body = input.slice(i + 1, close);
125
- if (!/^\d+$/.test(body))
126
- throw new SelectorSyntaxError(input, i + 1, "expected integer index");
127
- path.push({ index: Number(body) });
128
- i = close + 1;
129
- } else {
130
- throw new SelectorSyntaxError(input, i, `unexpected "${ch}"`);
131
- }
132
- }
133
- return { path, end: i };
134
- }
135
- function parseSelector(input) {
136
- if (typeof input !== "string" || input.length === 0) {
137
- throw new SelectorSyntaxError(String(input), 0, "empty selector");
138
- }
139
- if (input.length > 512)
140
- throw new SelectorSyntaxError(input.slice(0, 32), 512, "selector too long");
141
- for (const root of ["payment", "intent", "session"]) {
142
- if (input === root || input.startsWith(`${root}.`) || input.startsWith(`${root}[`)) {
143
- return { root, path: parsePath(input, root.length).path };
144
- }
145
- }
146
- if (input.startsWith("signal[name=")) {
147
- const rest = input.slice("signal[name=".length);
148
- const m = NAME.exec(rest);
149
- if (!m) throw new SelectorSyntaxError(input, "signal[name=".length, "expected signal name");
150
- const after = "signal[name=".length + m[0].length;
151
- if (input[after] !== "]") throw new SelectorSyntaxError(input, after, 'expected "]"');
152
- return { root: "signal", name: m[0], path: parsePath(input, after + 1).path };
153
- }
154
- if (input === "evidence[*]" || input.startsWith("evidence[*]")) {
155
- return {
156
- root: "evidence",
157
- kind: "*",
158
- all: true,
159
- path: parsePath(input, "evidence[*]".length).path
160
- };
161
- }
162
- if (input.startsWith("evidence[kind=")) {
163
- let i = "evidence[kind=".length;
164
- const km = NAME.exec(input.slice(i));
165
- if (!km) throw new SelectorSyntaxError(input, i, "expected evidence kind");
166
- const kind = km[0];
167
- i += kind.length;
168
- let source;
169
- if (input.startsWith(",source=", i)) {
170
- i += ",source=".length;
171
- const sm = /^[A-Z_]+/.exec(input.slice(i));
172
- if (!sm || !ALL_SOURCES.includes(sm[0])) {
173
- throw new SelectorSyntaxError(input, i, `expected one of ${ALL_SOURCES.join("|")}`);
174
- }
175
- source = sm[0];
176
- i += sm[0].length;
177
- }
178
- if (input[i] !== "]") throw new SelectorSyntaxError(input, i, 'expected "]"');
179
- i += 1;
180
- let all = false;
181
- if (input.startsWith("[*]", i)) {
182
- all = true;
183
- i += 3;
184
- }
185
- const sel = { root: "evidence", kind, all, path: parsePath(input, i).path };
186
- if (source) sel.source = source;
187
- return sel;
188
- }
189
- throw new SelectorSyntaxError(
190
- input,
191
- 0,
192
- "unknown root (payment | intent | session | signal[name=\u2026] | evidence[\u2026])"
193
- );
194
- }
195
- function formatSelector(sel) {
196
- const path = sel.path.map((p) => "key" in p ? `.${p.key}` : `[${p.index}]`).join("");
197
- switch (sel.root) {
198
- case "payment":
199
- case "intent":
200
- case "session":
201
- return `${sel.root}${path}`;
202
- case "signal":
203
- return `signal[name=${sel.name}]${path}`;
204
- case "evidence":
205
- if (sel.kind === "*") return `evidence[*]${path}`;
206
- return `evidence[kind=${sel.kind}${sel.source ? `,source=${sel.source}` : ""}]${sel.all ? "[*]" : ""}${path}`;
207
- }
208
- }
209
- function isSelectorRef(value) {
210
- return typeof value === "string" && value.startsWith("@") && value.length > 1;
211
- }
212
- function parseSelectorRef(ref) {
213
- return parseSelector(ref.slice(1));
214
- }
215
- function walkPath(value, path) {
216
- let cur = value;
217
- for (const seg of path) {
218
- if (cur === null || cur === void 0) return void 0;
219
- if ("key" in seg) {
220
- if (typeof cur !== "object" || Array.isArray(cur)) return void 0;
221
- cur = cur[seg.key];
222
- } else {
223
- if (!Array.isArray(cur)) return void 0;
224
- cur = cur[seg.index];
225
- }
226
- }
227
- return cur;
228
- }
229
- var SelectorStringSchema = z2.string().refine(
230
- (s) => {
231
- try {
232
- parseSelector(s);
233
- return true;
234
- } catch {
235
- return false;
236
- }
237
- },
238
- { message: "invalid selector" }
239
- );
240
-
241
- // ../protocol/src/policy.ts
242
- import { z as z3 } from "zod";
243
- var PRIMITIVES = ["THRESHOLD", "MEMBERSHIP", "MATCH", "PRESENCE", "FRESHNESS"];
244
- var PrimitiveSchema = z3.enum(PRIMITIVES);
245
- var RuleVerdictSchema = z3.enum(["DENY", "REVIEW"]);
246
- var RuleSchema = z3.strictObject({
247
- id: z3.string().min(1).max(64),
248
- primitive: PrimitiveSchema,
249
- selector: SelectorStringSchema,
250
- params: z3.record(z3.string(), JsonValueSchema),
251
- onFail: RuleVerdictSchema,
252
- /** What to do when the selector (or a `@ref`) resolves to nothing. Default: skip (GAP-44). */
253
- onMissing: z3.enum(["skip", "DENY", "REVIEW"]).optional(),
254
- /** Reason code surfaced to the caller when the rule fails (GAP-44). */
255
- code: z3.string().regex(REASON_CODE_PATTERN)
256
- });
257
- var PolicyRulesSchema = z3.strictObject({
258
- rules: z3.array(RuleSchema).max(200).refine((rules) => new Set(rules.map((r) => r.id)).size === rules.length, {
259
- message: "rule ids must be unique"
260
- }),
261
- /** Domain-score thresholds — the only configurable part of the scores layer. */
262
- scoreThresholds: z3.record(z3.string(), z3.number().min(0).max(1)).optional()
263
- });
264
-
265
- // ../protocol/src/api.ts
266
- import { z as z4 } from "zod";
267
- var AmountSchema = z4.strictObject({
268
- /** Decimal string — never a float. For x402 this is the atomic amount (GAP-49). */
269
- value: z4.string().regex(/^\d+(\.\d+)?$/, "expected a decimal string"),
270
- /** ISO code, or `<network>/<asset>` for on-chain rails (GAP-49). */
271
- currency: z4.string().min(1).max(128)
272
- });
273
- var DeclaredIntentSchema = z4.strictObject({
274
- mandate: z4.string().min(1).max(4e3),
275
- maxAmount: AmountSchema.optional(),
276
- merchantAllowlist: z4.array(z4.string().min(1)).optional(),
277
- validUntil: TimestampSchema
278
- });
279
- var CreateSessionInputSchema = z4.strictObject({
280
- source: EvidenceSourceSchema,
281
- /** Buyer-born sessions. `credential` is opaque this phase (GAP-11). */
282
- agent: z4.strictObject({ did: z4.string().min(1), credential: z4.string().min(1) }).optional(),
283
- intent: DeclaredIntentSchema.optional()
284
- });
285
- var CreateSessionOutputSchema = z4.strictObject({
286
- sessionId: SessionIdSchema,
287
- expiresAt: TimestampSchema
288
- });
289
- var MAX_BATCH_EVENTS = 500;
290
- var EvidenceBatchInputSchema = z4.array(EvidenceEventSchema).min(1).max(MAX_BATCH_EVENTS);
291
- var EventResultStatusSchema = z4.enum(["ok", "duplicate", "fork", "rejected"]);
292
- var EventResultSchema = z4.strictObject({
293
- index: z4.number().int().min(0),
294
- sessionId: SessionIdSchema.nullable(),
295
- source: EvidenceSourceSchema.nullable(),
296
- seq: z4.number().int().min(0).nullable(),
297
- status: EventResultStatusSchema,
298
- code: z4.string().optional(),
299
- eventDigest: Hex64Schema.optional()
300
- });
301
- var ChainHeadSchema = z4.strictObject({
302
- seq: z4.number().int().min(0),
303
- digest: Hex64Schema
304
- });
305
- var EvidenceAckSchema = z4.strictObject({
306
- results: z4.array(EventResultSchema),
307
- /** Head of every chain touched by the batch, after the batch. Keyed `sessionId:source`. */
308
- heads: z4.record(z4.string(), ChainHeadSchema)
309
- });
310
- var PaymentSummarySchema = z4.strictObject({
311
- protocol: z4.string().min(1),
312
- payee: z4.string().min(1),
313
- amount: AmountSchema,
314
- /** Not in the RFC; needed by `principal-links` and `EVIDENCE_MISMATCH` (GAP-06). */
315
- payer: z4.string().min(1).optional()
316
- });
317
- var EvaluateInputSchema = z4.strictObject({
318
- sessionId: SessionIdSchema,
319
- payment: PaymentSummarySchema
320
- });
321
- var DecisionSchema = z4.enum(["ALLOW", "DENY", "REVIEW"]);
322
- var EvaluateOutputSchema = z4.strictObject({
323
- decision: DecisionSchema,
324
- reasonCodes: z4.array(z4.string().regex(REASON_CODE_PATTERN)),
325
- sessionId: SessionIdSchema,
326
- /** Additive (GAP-21). */
327
- decisionId: z4.uuid()
328
- });
329
- var CreatePolicyInputSchema = z4.strictObject({ rules: PolicyRulesSchema });
330
- var CreatePolicyOutputSchema = z4.strictObject({
331
- policyId: z4.uuid(),
332
- version: z4.number().int().min(1),
333
- status: z4.enum(["ACTIVE", "SUPERSEDED", "DRAFT"])
334
- });
335
- var ApiErrorSchema = z4.strictObject({
336
- error: z4.strictObject({
337
- code: z4.string().min(1),
338
- message: z4.string().min(1),
339
- details: JsonValueSchema.optional(),
340
- request_id: z4.string().optional()
341
- })
342
- });
343
-
344
- // ../protocol/src/payloads/index.ts
345
- import { z as z5 } from "zod";
346
- var Json = JsonValueSchema;
347
- var JsonRecord = z5.record(z5.string(), Json);
348
- var SessionOpenPayloadSchema = z5.looseObject({
349
- runtime: z5.looseObject({
350
- sdk: z5.string().min(1),
351
- version: z5.string().min(1),
352
- framework: z5.string().optional(),
353
- model: z5.string().optional()
354
- }),
355
- /** Runtime / repo attestations read by the (staged) Attestation Assurance score. */
356
- attestations: JsonRecord.optional()
357
- });
358
- var SESSION_CLOSE_REASONS = ["completed", "settled", "aborted", "expired"];
359
- var SessionClosePayloadSchema = z5.looseObject({
360
- reason: z5.enum(SESSION_CLOSE_REASONS),
361
- transaction: z5.string().optional()
362
- });
363
- var IntentDeclaredPayloadSchema = DeclaredIntentSchema.loose();
364
- var LlmCallStartPayloadSchema = z5.looseObject({
365
- callId: z5.string().min(1),
366
- // GAP-07
367
- provider: z5.string().min(1),
368
- modelId: z5.string().min(1),
369
- params: JsonRecord
370
- });
371
- var LlmCallEndPayloadSchema = z5.looseObject({
372
- callId: z5.string().min(1),
373
- content: Json.optional(),
374
- finishReason: z5.string().optional(),
375
- usage: JsonRecord.optional(),
376
- durationMs: z5.number().int().min(0),
377
- error: z5.looseObject({ name: z5.string(), message: z5.string() }).optional()
378
- });
379
- var ToolCallStartPayloadSchema = z5.looseObject({
380
- callId: z5.string().min(1),
381
- // GAP-07
382
- toolName: z5.string().min(1),
383
- input: Json,
384
- transport: z5.enum(["local", "mcp"]).optional(),
385
- server: z5.string().optional()
386
- });
387
- var ToolCallEndPayloadSchema = z5.looseObject({
388
- callId: z5.string().min(1),
389
- output: Json.optional(),
390
- error: z5.looseObject({ name: z5.string(), message: z5.string() }).optional(),
391
- durationMs: z5.number().int().min(0)
392
- });
393
- var PAYMENT_ARTIFACTS = [
394
- "http-402",
395
- "mrtr-input-required",
396
- "payment-signature",
397
- "checkout-url"
398
- ];
399
- var PaymentMomentPayloadSchema = z5.looseObject({
400
- protocol: z5.string().min(1),
401
- payee: z5.string().min(1),
402
- amount: z5.looseObject({ value: z5.string().min(1), currency: z5.string().min(1) }),
403
- payer: z5.string().optional(),
404
- artifact: z5.enum(PAYMENT_ARTIFACTS),
405
- raw: JsonRecord
406
- });
407
- var GatewayDecisionPayloadSchema = z5.looseObject({
408
- gateway: z5.string().min(1),
409
- call: z5.looseObject({ tool: z5.string().min(1), args: Json.optional() }),
410
- decision: z5.enum(["ALLOW", "DENY", "REVIEW", "CHALLENGE"]),
411
- reasonCodes: z5.array(z5.string()),
412
- /** The gateway's own record of what it decided on — a black box to the platform. */
413
- record: JsonRecord
414
- });
415
- var TransportGapPayloadSchema = z5.looseObject({
416
- dropped: z5.number().int().min(1),
417
- firstTs: z5.string(),
418
- lastTs: z5.string()
419
- });
420
- var PlatformObservationPayloadSchema = z5.strictObject({
421
- origin: z5.string().min(1),
422
- params: Json,
423
- response: Json
424
- });
425
- var ANOMALY_TYPES = [
426
- "fork",
427
- "seq_gap",
428
- "prev_hash_mismatch",
429
- "bad_sig",
430
- "clock_skew",
431
- "source_conflict"
432
- ];
433
- var PlatformAnomalyPayloadSchema = z5.looseObject({
434
- type: z5.enum(ANOMALY_TYPES),
435
- source: EvidenceSourceAllSchema,
436
- seq: z5.number().int().min(0).nullable(),
437
- detail: JsonRecord
438
- });
439
- var REGISTRY = {
440
- "session.open": SessionOpenPayloadSchema,
441
- "session.close": SessionClosePayloadSchema,
442
- "intent.declared": IntentDeclaredPayloadSchema,
443
- "llm_call.start": LlmCallStartPayloadSchema,
444
- "llm_call.end": LlmCallEndPayloadSchema,
445
- "tool_call.start": ToolCallStartPayloadSchema,
446
- "tool_call.end": ToolCallEndPayloadSchema,
447
- "payment.requested": PaymentMomentPayloadSchema,
448
- "payment.presented": PaymentMomentPayloadSchema,
449
- "gateway.decision": GatewayDecisionPayloadSchema,
450
- "transport.gap": TransportGapPayloadSchema,
451
- "platform.observation": PlatformObservationPayloadSchema,
452
- "platform.anomaly": PlatformAnomalyPayloadSchema
453
- };
454
- function payloadSchemaFor(kind) {
455
- return REGISTRY[kind];
456
- }
457
-
458
- // ../protocol/src/verdict.ts
459
- var SEVERITY = { ALLOW: 0, REVIEW: 1, DENY: 2 };
460
- var Verdict = class _Verdict {
461
- constructor(value) {
462
- this.value = value;
463
- }
464
- static ALLOW = new _Verdict("ALLOW");
465
- static REVIEW = new _Verdict("REVIEW");
466
- static DENY = new _Verdict("DENY");
467
- static of(value) {
468
- return value === "DENY" ? _Verdict.DENY : value === "REVIEW" ? _Verdict.REVIEW : _Verdict.ALLOW;
469
- }
470
- /** The more severe of the two. */
471
- atLeast(other) {
472
- const o = typeof other === "string" ? _Verdict.of(other) : other;
473
- return SEVERITY[o.value] > SEVERITY[this.value] ? o : this;
474
- }
475
- /** Whether a synchronous gate must stop the call (GAP-52). */
476
- blocks(onReview) {
477
- return this.value === "DENY" || this.value === "REVIEW" && onReview === "abort";
478
- }
479
- /** What the gate effectively did: DENY when it blocked, else the verdict itself. */
480
- effective(onReview) {
481
- return this.blocks(onReview) ? "DENY" : this.value;
482
- }
483
- };
484
-
485
- export {
486
- WIRE_SOURCES,
487
- ALL_SOURCES,
488
- EvidenceSourceSchema,
489
- EvidenceSourceAllSchema,
490
- SOURCE_ORDER,
491
- compareBySourceSeq,
492
- compareBySessionSource,
493
- WIRE_KINDS,
494
- PLATFORM_KINDS,
495
- WireEvidenceKindSchema,
496
- PlatformEvidenceKindSchema,
497
- EvidenceKindSchema,
498
- Hex64Schema,
499
- SigSchema,
500
- SessionIdSchema,
501
- SeqSchema,
502
- TimestampSchema,
503
- JsonValueSchema,
504
- EvidenceEventSchema,
505
- isWireKind,
506
- isPlatformKind,
507
- INDICATOR_CODES,
508
- ANNOTATION_CODES,
509
- COLLECTOR_CODES,
510
- DEFAULT_RULE_CODES,
511
- REASON_CODE_PATTERN,
512
- SelectorSyntaxError,
513
- parseSelector,
514
- formatSelector,
515
- isSelectorRef,
516
- parseSelectorRef,
517
- walkPath,
518
- SelectorStringSchema,
519
- PRIMITIVES,
520
- PrimitiveSchema,
521
- RuleVerdictSchema,
522
- RuleSchema,
523
- PolicyRulesSchema,
524
- AmountSchema,
525
- DeclaredIntentSchema,
526
- CreateSessionInputSchema,
527
- CreateSessionOutputSchema,
528
- MAX_BATCH_EVENTS,
529
- EvidenceBatchInputSchema,
530
- EventResultStatusSchema,
531
- EventResultSchema,
532
- ChainHeadSchema,
533
- EvidenceAckSchema,
534
- PaymentSummarySchema,
535
- EvaluateInputSchema,
536
- DecisionSchema,
537
- EvaluateOutputSchema,
538
- CreatePolicyInputSchema,
539
- CreatePolicyOutputSchema,
540
- ApiErrorSchema,
541
- SessionOpenPayloadSchema,
542
- SESSION_CLOSE_REASONS,
543
- SessionClosePayloadSchema,
544
- IntentDeclaredPayloadSchema,
545
- LlmCallStartPayloadSchema,
546
- LlmCallEndPayloadSchema,
547
- ToolCallStartPayloadSchema,
548
- ToolCallEndPayloadSchema,
549
- PAYMENT_ARTIFACTS,
550
- PaymentMomentPayloadSchema,
551
- GatewayDecisionPayloadSchema,
552
- TransportGapPayloadSchema,
553
- PlatformObservationPayloadSchema,
554
- ANOMALY_TYPES,
555
- PlatformAnomalyPayloadSchema,
556
- payloadSchemaFor,
557
- Verdict
558
- };