@belticlabs/agent-risk-sdk 0.6.0 → 0.8.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.
@@ -13,7 +13,6 @@ import { z } from 'zod';
13
13
  * GAP-08 names the internal kinds it carries.
14
14
  */
15
15
 
16
- declare const WIRE_SOURCES: readonly ["AGENT_TRACE", "INTERNAL_NETWORK"];
17
16
  declare const ALL_SOURCES: readonly ["AGENT_TRACE", "INTERNAL_NETWORK", "PLATFORM"];
18
17
  declare const EvidenceSourceSchema: z.ZodEnum<{
19
18
  AGENT_TRACE: "AGENT_TRACE";
@@ -36,22 +35,50 @@ declare function compareBySourceSeq(a: {
36
35
  source: EvidenceSourceAll;
37
36
  seq: number;
38
37
  }): number;
39
- /** Commitments across sessions: by sessionId, then source. */
40
- declare function compareBySessionSource(a: {
38
+ /** One chain's key wherever heads are reported: `sessionId:source`. */
39
+ declare function chainKey(sessionId: string, source: EvidenceSourceAll): string;
40
+ /**
41
+ * The order a conversation is read in: when it happened, when the platform
42
+ * saw it, then by chain and seq — the one order that interleaves the
43
+ * chains of every session of a conversation (GAP-84).
44
+ */
45
+ declare function compareByArrival(a: {
46
+ ts: string;
47
+ receivedAt: string;
41
48
  sessionId: string;
42
49
  source: EvidenceSourceAll;
50
+ seq: number;
43
51
  }, b: {
52
+ ts: string;
53
+ receivedAt: string;
44
54
  sessionId: string;
45
55
  source: EvidenceSourceAll;
56
+ seq: number;
46
57
  }): number;
58
+ /** The root of a conversation before its members; a store then orders the members its own way. */
59
+ declare function compareRootFirst(conversationId: string): (a: {
60
+ id: string;
61
+ }, b: {
62
+ id: string;
63
+ }) => number;
47
64
  /**
48
- * Kinds are protocol moments, not protocol artifacts. `transport.gap` is
49
- * not in the RFC: it is how an SDK whose buffer overflowed says so without
50
- * leaving a hole in the chain (GAP-38).
65
+ * Whether a row is inside the heads a decision pinned (replay): its chain
66
+ * is among them and its seq is at or below that head. A chain the decision
67
+ * never saw is outside.
51
68
  */
52
- declare const WIRE_KINDS: readonly ["session.open", "session.close", "intent.declared", "llm_call.start", "llm_call.end", "tool_call.start", "tool_call.end", "payment.requested", "payment.presented", "gateway.decision", "transport.gap"];
53
- /** Written only by the platform itself (`observe()`, Collector anomalies). GAP-08. */
54
- declare const PLATFORM_KINDS: readonly ["platform.observation", "platform.anomaly"];
69
+ declare function withinHeads(heads: Readonly<Record<string, number>>): (e: {
70
+ sessionId: string;
71
+ source: EvidenceSourceAll;
72
+ seq: number;
73
+ }) => boolean;
74
+ /** Commitments across sessions: by sessionId, then source. */
75
+ declare function compareBySessionSource(a: {
76
+ sessionId: string;
77
+ source: EvidenceSourceAll;
78
+ }, b: {
79
+ sessionId: string;
80
+ source: EvidenceSourceAll;
81
+ }): number;
55
82
  declare const WireEvidenceKindSchema: z.ZodEnum<{
56
83
  "session.open": "session.open";
57
84
  "session.close": "session.close";
@@ -93,8 +120,15 @@ type Hex64 = z.infer<typeof Hex64Schema>;
93
120
  /** `ed25519:` + base64url (no padding) of a 64-byte signature (GAP-03). */
94
121
  declare const SigSchema: z.ZodString;
95
122
  type Sig = z.infer<typeof SigSchema>;
96
- declare const SessionIdSchema: z.ZodUUID;
97
- declare const SeqSchema: z.ZodNumber;
123
+ /**
124
+ * The public session id: what every event, ack, evaluate and binding
125
+ * names, and the only form the wire accepts. Minted by the platform
126
+ * (`sess_` + 22 base62 chars, 128 bits); the uuid primary key never
127
+ * leaves persistence (GAP-86).
128
+ */
129
+ declare const SESSION_ID_PREFIX = "sess_";
130
+ declare const SESSION_ID_CHARS = 22;
131
+ declare const SessionIdSchema: z.ZodString;
98
132
  declare const TimestampSchema: z.ZodISODateTime;
99
133
  /** JSON value that survives RFC 8785 canonicalization unchanged. */
100
134
  declare const JsonValueSchema: z.ZodType<JsonValue>;
@@ -105,7 +139,7 @@ type JsonObject = {
105
139
  [key: string]: JsonValue;
106
140
  };
107
141
  declare const EvidenceEventSchema: z.ZodObject<{
108
- sessionId: z.ZodUUID;
142
+ sessionId: z.ZodString;
109
143
  source: z.ZodEnum<{
110
144
  AGENT_TRACE: "AGENT_TRACE";
111
145
  INTERNAL_NETWORK: "INTERNAL_NETWORK";
@@ -154,14 +188,12 @@ interface ChainHead {
154
188
  seq: number;
155
189
  digest: Hex64;
156
190
  }
157
- declare function isWireKind(kind: string): kind is WireEvidenceKind;
158
- declare function isPlatformKind(kind: string): kind is PlatformEvidenceKind;
159
191
 
160
- declare const AmountSchema: z.ZodObject<{
161
- value: z.ZodString;
162
- currency: z.ZodString;
163
- }, z.core.$strict>;
164
- type Amount = z.infer<typeof AmountSchema>;
192
+ /**
193
+ * Request / response contracts of the Anti-Fraud API (Fraud Engine RFC › API).
194
+ * Additive fields beyond the RFC are marked with their GAP.
195
+ */
196
+
165
197
  declare const DeclaredIntentSchema: z.ZodObject<{
166
198
  mandate: z.ZodString;
167
199
  maxAmount: z.ZodOptional<z.ZodObject<{
@@ -190,94 +222,41 @@ declare const CreateSessionInputSchema: z.ZodObject<{
190
222
  merchantAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
223
  validUntil: z.ZodISODateTime;
192
224
  }, z.core.$strict>>;
225
+ resume: z.ZodOptional<z.ZodString>;
193
226
  }, z.core.$strict>;
194
227
  type CreateSessionInput = z.infer<typeof CreateSessionInputSchema>;
195
- declare const CreateSessionOutputSchema: z.ZodObject<{
196
- sessionId: z.ZodUUID;
197
- expiresAt: z.ZodISODateTime;
198
- }, z.core.$strict>;
199
- type CreateSessionOutput = z.infer<typeof CreateSessionOutputSchema>;
228
+ /** The conversation's last prompt as a base for deltas: the call it was recorded on, one digest per message (GAP-89). */
229
+ interface PromptBase {
230
+ prior: string;
231
+ digests: Hex64[];
232
+ }
233
+ interface CreateSessionOutput {
234
+ /** This session's public id — the `sessionId` of its events and of the x402 binding (GAP-86). */
235
+ sessionId: string;
236
+ /** The conversation this session belongs to: the root's public id, stable across resumes (GAP-84). */
237
+ conversationId: string;
238
+ expiresAt: string;
239
+ /** On a resume: the base the next `llm_call.start` may ship a delta against (GAP-89). */
240
+ prompt?: PromptBase;
241
+ }
200
242
  declare const MAX_BATCH_EVENTS = 500;
201
- declare const EvidenceBatchInputSchema: z.ZodArray<z.ZodObject<{
202
- sessionId: z.ZodUUID;
203
- source: z.ZodEnum<{
204
- AGENT_TRACE: "AGENT_TRACE";
205
- INTERNAL_NETWORK: "INTERNAL_NETWORK";
206
- }>;
207
- seq: z.ZodNumber;
208
- ts: z.ZodISODateTime;
209
- kind: z.ZodEnum<{
210
- "session.open": "session.open";
211
- "session.close": "session.close";
212
- "intent.declared": "intent.declared";
213
- "llm_call.start": "llm_call.start";
214
- "llm_call.end": "llm_call.end";
215
- "tool_call.start": "tool_call.start";
216
- "tool_call.end": "tool_call.end";
217
- "payment.requested": "payment.requested";
218
- "payment.presented": "payment.presented";
219
- "gateway.decision": "gateway.decision";
220
- "transport.gap": "transport.gap";
221
- }>;
222
- payload: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
223
- prevHash: z.ZodString;
224
- sig: z.ZodOptional<z.ZodString>;
225
- }, z.core.$strict>>;
226
- type EvidenceBatchInput = z.infer<typeof EvidenceBatchInputSchema>;
227
- declare const EventResultStatusSchema: z.ZodEnum<{
228
- ok: "ok";
229
- duplicate: "duplicate";
230
- fork: "fork";
231
- rejected: "rejected";
232
- }>;
233
- type EventResultStatus = z.infer<typeof EventResultStatusSchema>;
243
+ /** The batch as the route takes it; each event is judged on its own by the Collector, with its own result (GAP-17). */
244
+ declare const EvidenceBatchInputSchema: z.ZodArray<z.ZodUnknown>;
234
245
  /** Per-event outcome of a batch (GAP-17). `seq` is null when the event could not be parsed. */
235
- declare const EventResultSchema: z.ZodObject<{
236
- index: z.ZodNumber;
237
- sessionId: z.ZodNullable<z.ZodUUID>;
238
- source: z.ZodNullable<z.ZodEnum<{
239
- AGENT_TRACE: "AGENT_TRACE";
240
- INTERNAL_NETWORK: "INTERNAL_NETWORK";
241
- }>>;
242
- seq: z.ZodNullable<z.ZodNumber>;
243
- status: z.ZodEnum<{
244
- ok: "ok";
245
- duplicate: "duplicate";
246
- fork: "fork";
247
- rejected: "rejected";
248
- }>;
249
- code: z.ZodOptional<z.ZodString>;
250
- eventDigest: z.ZodOptional<z.ZodString>;
251
- }, z.core.$strict>;
252
- type EventResult = z.infer<typeof EventResultSchema>;
253
- declare const ChainHeadSchema: z.ZodObject<{
254
- seq: z.ZodNumber;
255
- digest: z.ZodString;
256
- }, z.core.$strict>;
257
- declare const EvidenceAckSchema: z.ZodObject<{
258
- results: z.ZodArray<z.ZodObject<{
259
- index: z.ZodNumber;
260
- sessionId: z.ZodNullable<z.ZodUUID>;
261
- source: z.ZodNullable<z.ZodEnum<{
262
- AGENT_TRACE: "AGENT_TRACE";
263
- INTERNAL_NETWORK: "INTERNAL_NETWORK";
264
- }>>;
265
- seq: z.ZodNullable<z.ZodNumber>;
266
- status: z.ZodEnum<{
267
- ok: "ok";
268
- duplicate: "duplicate";
269
- fork: "fork";
270
- rejected: "rejected";
271
- }>;
272
- code: z.ZodOptional<z.ZodString>;
273
- eventDigest: z.ZodOptional<z.ZodString>;
274
- }, z.core.$strict>>;
275
- heads: z.ZodRecord<z.ZodString, z.ZodObject<{
276
- seq: z.ZodNumber;
277
- digest: z.ZodString;
278
- }, z.core.$strict>>;
279
- }, z.core.$strict>;
280
- type EvidenceAck = z.infer<typeof EvidenceAckSchema>;
246
+ interface EventResult {
247
+ index: number;
248
+ sessionId: string | null;
249
+ source: EvidenceSource | null;
250
+ seq: number | null;
251
+ status: 'ok' | 'duplicate' | 'fork' | 'rejected';
252
+ code?: string;
253
+ eventDigest?: Hex64;
254
+ }
255
+ interface EvidenceAck {
256
+ results: EventResult[];
257
+ /** Head of every chain touched by the batch, after the batch. Keyed `sessionId:source`. */
258
+ heads: Record<string, ChainHead>;
259
+ }
281
260
  declare const PaymentSummarySchema: z.ZodObject<{
282
261
  protocol: z.ZodString;
283
262
  payee: z.ZodString;
@@ -289,7 +268,7 @@ declare const PaymentSummarySchema: z.ZodObject<{
289
268
  }, z.core.$strict>;
290
269
  type PaymentSummary = z.infer<typeof PaymentSummarySchema>;
291
270
  declare const EvaluateInputSchema: z.ZodObject<{
292
- sessionId: z.ZodUUID;
271
+ sessionId: z.ZodString;
293
272
  payment: z.ZodObject<{
294
273
  protocol: z.ZodString;
295
274
  payee: z.ZodString;
@@ -299,25 +278,17 @@ declare const EvaluateInputSchema: z.ZodObject<{
299
278
  }, z.core.$strict>;
300
279
  payer: z.ZodOptional<z.ZodString>;
301
280
  }, z.core.$strict>;
281
+ callId: z.ZodOptional<z.ZodString>;
302
282
  }, z.core.$strict>;
303
283
  type EvaluateInput = z.infer<typeof EvaluateInputSchema>;
304
- declare const DecisionSchema: z.ZodEnum<{
305
- DENY: "DENY";
306
- REVIEW: "REVIEW";
307
- ALLOW: "ALLOW";
308
- }>;
309
- type Decision = z.infer<typeof DecisionSchema>;
310
- declare const EvaluateOutputSchema: z.ZodObject<{
311
- decision: z.ZodEnum<{
312
- DENY: "DENY";
313
- REVIEW: "REVIEW";
314
- ALLOW: "ALLOW";
315
- }>;
316
- reasonCodes: z.ZodArray<z.ZodString>;
317
- sessionId: z.ZodUUID;
318
- decisionId: z.ZodUUID;
319
- }, z.core.$strict>;
320
- type EvaluateOutput = z.infer<typeof EvaluateOutputSchema>;
284
+ type Decision = 'ALLOW' | 'DENY' | 'REVIEW';
285
+ interface EvaluateOutput {
286
+ decision: Decision;
287
+ reasonCodes: string[];
288
+ sessionId: string;
289
+ /** Additive (GAP-21). */
290
+ decisionId: string;
291
+ }
321
292
  /** Non-RFC admin surface (GAP-53). */
322
293
  declare const CreatePolicyInputSchema: z.ZodObject<{
323
294
  rules: z.ZodObject<{
@@ -343,20 +314,57 @@ declare const CreatePolicyInputSchema: z.ZodObject<{
343
314
  }>>;
344
315
  code: z.ZodString;
345
316
  }, z.core.$strict>>;
346
- scoreThresholds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
347
317
  }, z.core.$strict>;
348
318
  }, z.core.$strict>;
349
- type CreatePolicyInput = z.infer<typeof CreatePolicyInputSchema>;
350
- declare const CreatePolicyOutputSchema: z.ZodObject<{
351
- policyId: z.ZodUUID;
352
- version: z.ZodNumber;
353
- status: z.ZodEnum<{
354
- ACTIVE: "ACTIVE";
355
- SUPERSEDED: "SUPERSEDED";
356
- DRAFT: "DRAFT";
357
- }>;
319
+ interface CreatePolicyOutput {
320
+ policyId: string;
321
+ version: number;
322
+ status: 'ACTIVE' | 'SUPERSEDED' | 'DRAFT';
323
+ }
324
+ /** The most a catalog search answers: the upstream search caps a page at 20 (GAP-90). */
325
+ declare const MAX_CATALOG_RESULTS = 20;
326
+ /** Non-RFC surface (GAP-90): x402-payable APIs matching a query, searched live in public catalogs. */
327
+ declare const CatalogQuerySchema: z.ZodObject<{
328
+ q: z.ZodString;
329
+ network: z.ZodOptional<z.ZodString>;
330
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
358
331
  }, z.core.$strict>;
359
- type CreatePolicyOutput = z.infer<typeof CreatePolicyOutputSchema>;
332
+ type CatalogQuery = z.infer<typeof CatalogQuerySchema>;
333
+ /** One way to pay an endpoint. `amount` is atomic and null when the price depends on the request. */
334
+ interface CatalogOffer {
335
+ network: string;
336
+ asset: string;
337
+ amount: string | null;
338
+ /** Null when the catalog does not name the payee; the endpoint's 402 does. */
339
+ payTo: string | null;
340
+ }
341
+ interface CatalogEndpoint {
342
+ url: string;
343
+ method: string;
344
+ description: string;
345
+ source: string;
346
+ pricing: 'fixed' | 'dynamic';
347
+ accepts: CatalogOffer[];
348
+ /** The request shape the catalog publishes (method, body type, an example), when it does. */
349
+ input?: JsonValue;
350
+ /** The JSON Schema of that input, when the catalog publishes one. */
351
+ inputSchema?: JsonValue;
352
+ }
353
+ interface CatalogVendor {
354
+ vendor: string;
355
+ endpoints: CatalogEndpoint[];
356
+ }
357
+ /** How each catalog answered; one that failed does not fail the search. */
358
+ interface CatalogSourceReport {
359
+ name: string;
360
+ ok: boolean;
361
+ count: number;
362
+ error?: string;
363
+ }
364
+ interface CatalogOutput {
365
+ vendors: CatalogVendor[];
366
+ sources: CatalogSourceReport[];
367
+ }
360
368
  /** Error envelope (GAP-20). */
361
369
  declare const ApiErrorSchema: z.ZodObject<{
362
370
  error: z.ZodObject<{
@@ -377,7 +385,6 @@ declare const SessionOpenPayloadSchema: z.ZodObject<{
377
385
  }, z.core.$loose>;
378
386
  attestations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
379
387
  }, z.core.$loose>;
380
- declare const SESSION_CLOSE_REASONS: readonly ["completed", "settled", "aborted", "expired"];
381
388
  declare const SessionClosePayloadSchema: z.ZodObject<{
382
389
  reason: z.ZodEnum<{
383
390
  completed: "completed";
@@ -396,11 +403,38 @@ declare const IntentDeclaredPayloadSchema: z.ZodObject<{
396
403
  merchantAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
397
404
  validUntil: z.ZodISODateTime;
398
405
  }, z.core.$loose>;
406
+ /**
407
+ * A prompt as the difference from an earlier call's (GAP-89): `prior` is
408
+ * the `callId` of the `llm_call.start` whose *unfolded* prompt this one
409
+ * extends, `shared` how many of its leading messages are equal (JCS +
410
+ * SHA-256 per message), `messages` the rest.
411
+ */
412
+ declare const PromptDeltaSchema: z.ZodObject<{
413
+ prior: z.ZodString;
414
+ shared: z.ZodNumber;
415
+ messages: z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
416
+ }, z.core.$strict>;
417
+ /** The provider-level call options (GAP-57); the prompt whole, or as a delta, never both. */
418
+ declare const LlmCallParamsSchema: z.ZodObject<{
419
+ prompt: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
420
+ promptDelta: z.ZodOptional<z.ZodObject<{
421
+ prior: z.ZodString;
422
+ shared: z.ZodNumber;
423
+ messages: z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
424
+ }, z.core.$strict>>;
425
+ }, z.core.$loose>;
399
426
  declare const LlmCallStartPayloadSchema: z.ZodObject<{
400
427
  callId: z.ZodString;
401
428
  provider: z.ZodString;
402
429
  modelId: z.ZodString;
403
- params: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
430
+ params: z.ZodObject<{
431
+ prompt: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
432
+ promptDelta: z.ZodOptional<z.ZodObject<{
433
+ prior: z.ZodString;
434
+ shared: z.ZodNumber;
435
+ messages: z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
436
+ }, z.core.$strict>>;
437
+ }, z.core.$loose>;
404
438
  }, z.core.$loose>;
405
439
  declare const LlmCallEndPayloadSchema: z.ZodObject<{
406
440
  callId: z.ZodString;
@@ -432,7 +466,6 @@ declare const ToolCallEndPayloadSchema: z.ZodObject<{
432
466
  }, z.core.$loose>>;
433
467
  durationMs: z.ZodNumber;
434
468
  }, z.core.$loose>;
435
- declare const PAYMENT_ARTIFACTS: readonly ["http-402", "mrtr-input-required", "payment-signature", "checkout-url"];
436
469
  /**
437
470
  * A payment moment, normalized across protocols so the engine can compare
438
471
  * the two sides of the same purchase (`EVIDENCE_MISMATCH`, GAP-50). `raw` is
@@ -470,9 +503,14 @@ declare const GatewayDecisionPayloadSchema: z.ZodObject<{
470
503
  reasonCodes: z.ZodArray<z.ZodString>;
471
504
  record: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
472
505
  }, z.core.$loose>;
473
- /** Emitted by the SDK after its transport buffer overflowed (GAP-38). */
506
+ /**
507
+ * Emitted by the SDK after it dropped events pre-sequencing (GAP-38): for
508
+ * lack of room in its buffer, or — `oversized` of them — because the
509
+ * platform would refuse them as too large (GAP-87).
510
+ */
474
511
  declare const TransportGapPayloadSchema: z.ZodObject<{
475
512
  dropped: z.ZodNumber;
513
+ oversized: z.ZodOptional<z.ZodNumber>;
476
514
  firstTs: z.ZodString;
477
515
  lastTs: z.ZodString;
478
516
  }, z.core.$loose>;
@@ -482,7 +520,6 @@ declare const PlatformObservationPayloadSchema: z.ZodObject<{
482
520
  params: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
483
521
  response: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
484
522
  }, z.core.$strict>;
485
- declare const ANOMALY_TYPES: readonly ["fork", "seq_gap", "prev_hash_mismatch", "bad_sig", "clock_skew", "source_conflict"];
486
523
  declare const PlatformAnomalyPayloadSchema: z.ZodObject<{
487
524
  type: z.ZodEnum<{
488
525
  fork: "fork";
@@ -503,6 +540,8 @@ declare const PlatformAnomalyPayloadSchema: z.ZodObject<{
503
540
  type SessionOpenPayload = z.infer<typeof SessionOpenPayloadSchema>;
504
541
  type SessionClosePayload = z.infer<typeof SessionClosePayloadSchema>;
505
542
  type IntentDeclaredPayload = z.infer<typeof IntentDeclaredPayloadSchema>;
543
+ type PromptDelta = z.infer<typeof PromptDeltaSchema>;
544
+ type LlmCallParams = z.infer<typeof LlmCallParamsSchema>;
506
545
  type LlmCallStartPayload = z.infer<typeof LlmCallStartPayloadSchema>;
507
546
  type LlmCallEndPayload = z.infer<typeof LlmCallEndPayloadSchema>;
508
547
  type ToolCallStartPayload = z.infer<typeof ToolCallStartPayloadSchema>;
@@ -529,4 +568,4 @@ interface PayloadByKind {
529
568
  'platform.anomaly': PlatformAnomalyPayload;
530
569
  }
531
570
 
532
- export { type LlmCallStartPayload as $, ALL_SOURCES as A, type EvidenceAck as B, type ChainHead as C, type Decision as D, type EvidenceSourceAll as E, EvidenceAckSchema as F, type EvidenceBatchInput as G, EvidenceBatchInputSchema as H, type EvidenceEnvelope as I, type JsonValue as J, type EvidenceEvent as K, EvidenceEventSchema as L, type EvidenceKind as M, EvidenceKindSchema as N, type EvidenceSource as O, EvidenceSourceAllSchema as P, EvidenceSourceSchema as Q, type GatewayDecisionPayload as R, GatewayDecisionPayloadSchema as S, type Hex64 as T, Hex64Schema as U, type IntentDeclaredPayload as V, IntentDeclaredPayloadSchema as W, type JsonObject as X, JsonValueSchema as Y, type LlmCallEndPayload as Z, LlmCallEndPayloadSchema as _, ANOMALY_TYPES as a, LlmCallStartPayloadSchema as a0, MAX_BATCH_EVENTS as a1, PAYMENT_ARTIFACTS as a2, PLATFORM_KINDS as a3, type PayloadByKind as a4, type PaymentMomentPayload as a5, PaymentMomentPayloadSchema as a6, type PaymentSummary as a7, PaymentSummarySchema as a8, type PlatformAnomalyPayload as a9, compareBySessionSource as aA, compareBySourceSeq as aB, isPlatformKind as aC, isWireKind as aD, payloadSchemaFor as aE, PlatformAnomalyPayloadSchema as aa, type PlatformEvidenceKind as ab, PlatformEvidenceKindSchema as ac, type PlatformObservationPayload as ad, PlatformObservationPayloadSchema as ae, SESSION_CLOSE_REASONS as af, SOURCE_ORDER as ag, SeqSchema as ah, type SessionClosePayload as ai, SessionClosePayloadSchema as aj, SessionIdSchema as ak, type SessionOpenPayload as al, SessionOpenPayloadSchema as am, type Sig as an, SigSchema as ao, TimestampSchema as ap, type ToolCallEndPayload as aq, ToolCallEndPayloadSchema as ar, type ToolCallStartPayload as as, ToolCallStartPayloadSchema as at, type TransportGapPayload as au, TransportGapPayloadSchema as av, WIRE_KINDS as aw, WIRE_SOURCES as ax, type WireEvidenceKind as ay, WireEvidenceKindSchema as az, type Amount as b, AmountSchema as c, type ApiError as d, ApiErrorSchema as e, ChainHeadSchema as f, type CreatePolicyInput as g, CreatePolicyInputSchema as h, type CreatePolicyOutput as i, CreatePolicyOutputSchema as j, type CreateSessionInput as k, CreateSessionInputSchema as l, type CreateSessionOutput as m, CreateSessionOutputSchema as n, DecisionSchema as o, type DeclaredIntent as p, DeclaredIntentSchema as q, type DigestedEnvelope as r, type EvaluateInput as s, EvaluateInputSchema as t, type EvaluateOutput as u, EvaluateOutputSchema as v, type EventResult as w, EventResultSchema as x, type EventResultStatus as y, EventResultStatusSchema as z };
571
+ export { type PromptBase as $, ALL_SOURCES as A, type EvidenceKind as B, type CatalogEndpoint as C, type Decision as D, type EvidenceSourceAll as E, type EvidenceSource as F, EvidenceSourceAllSchema as G, EvidenceSourceSchema as H, type GatewayDecisionPayload as I, type JsonValue as J, type Hex64 as K, Hex64Schema as L, type IntentDeclaredPayload as M, type JsonObject as N, JsonValueSchema as O, type LlmCallEndPayload as P, type LlmCallParams as Q, type LlmCallStartPayload as R, MAX_BATCH_EVENTS as S, MAX_CATALOG_RESULTS as T, type PayloadByKind as U, type PaymentMomentPayload as V, type PaymentSummary as W, PaymentSummarySchema as X, type PlatformAnomalyPayload as Y, type PlatformEvidenceKind as Z, type PlatformObservationPayload as _, type ApiError as a, type PromptDelta as a0, SESSION_ID_CHARS as a1, SESSION_ID_PREFIX as a2, SOURCE_ORDER as a3, type SessionClosePayload as a4, SessionIdSchema as a5, type SessionOpenPayload as a6, type Sig as a7, TimestampSchema as a8, type ToolCallEndPayload as a9, type ToolCallStartPayload as aa, type TransportGapPayload as ab, type WireEvidenceKind as ac, chainKey as ad, compareByArrival as ae, compareBySessionSource as af, compareBySourceSeq as ag, compareRootFirst as ah, payloadSchemaFor as ai, withinHeads as aj, ApiErrorSchema as b, type CatalogOffer as c, type CatalogOutput as d, type CatalogQuery as e, CatalogQuerySchema as f, type CatalogSourceReport as g, type CatalogVendor as h, type ChainHead as i, CreatePolicyInputSchema as j, type CreatePolicyOutput as k, type CreateSessionInput as l, CreateSessionInputSchema as m, type CreateSessionOutput as n, type DeclaredIntent as o, DeclaredIntentSchema as p, type DigestedEnvelope as q, type EvaluateInput as r, EvaluateInputSchema as s, type EvaluateOutput as t, type EventResult as u, type EvidenceAck as v, EvidenceBatchInputSchema as w, type EvidenceEnvelope as x, type EvidenceEvent as y, EvidenceEventSchema as z };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { B as Beltic, a as BelticOptions, S as SDK_VERSION } from './client-CgCjOrRP.js';
2
- export { B as BelticApiError, C as ChainRejectedError, D as DecideOptions, a as Decision, H as HumanDecisionInput, S as Session, b as SessionOptions } from './session-Dcof4UIn.js';
3
- import './index-IfY4XCvJ.js';
1
+ export { A as AcceptsLike, B as Beltic, a as BelticOptions, C as CatalogSearch, S as SDK_VERSION, X as X402, b as X402Challenge, c as X402IntentInput, d as X402Payment, e as X402Quote, f as X402Request, g as X402Requirement, h as X402Settlement, i as X402Signed } from './client-DFZL4Pt3.js';
2
+ export { B as BelticApiError, C as ChainRejectedError, D as DecideOptions, a as Decision, H as HumanDecisionInput, S as Session, b as SessionOptions } from './session-DTIzd1EQ.js';
3
+ import './index-CBUSXzgG.js';
4
4
  import 'zod';
5
5
 
6
6
  /**