@vorim/sdk 4.4.0 → 4.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.
- package/CHANGELOG.md +26 -0
- package/dist/{_commerce-core-B800cza0.d.cts → _commerce-core-QF7IKCKQ.d.cts} +1 -1
- package/dist/{_commerce-core-Bv_2hfKP.d.ts → _commerce-core-jih7k4hQ.d.ts} +1 -1
- package/dist/index.cjs +253 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +219 -3
- package/dist/index.d.ts +219 -3
- package/dist/index.js +252 -3
- package/dist/index.js.map +1 -1
- package/dist/integrations/amazon.d.cts +2 -2
- package/dist/integrations/amazon.d.ts +2 -2
- package/dist/integrations/anthropic.d.cts +1 -1
- package/dist/integrations/anthropic.d.ts +1 -1
- package/dist/integrations/ap2.d.cts +1 -1
- package/dist/integrations/ap2.d.ts +1 -1
- package/dist/integrations/aws-iam.d.cts +1 -1
- package/dist/integrations/aws-iam.d.ts +1 -1
- package/dist/integrations/bank-rails.d.cts +1 -1
- package/dist/integrations/bank-rails.d.ts +1 -1
- package/dist/integrations/circle.d.cts +1 -1
- package/dist/integrations/circle.d.ts +1 -1
- package/dist/integrations/cloudflare.d.cts +1 -1
- package/dist/integrations/cloudflare.d.ts +1 -1
- package/dist/integrations/coinbase-cdp.d.cts +1 -1
- package/dist/integrations/coinbase-cdp.d.ts +1 -1
- package/dist/integrations/commerce-agents.d.cts +1 -1
- package/dist/integrations/commerce-agents.d.ts +1 -1
- package/dist/integrations/crewai.d.cts +1 -1
- package/dist/integrations/crewai.d.ts +1 -1
- package/dist/integrations/delivery.d.cts +2 -2
- package/dist/integrations/delivery.d.ts +2 -2
- package/dist/integrations/ebay.d.cts +2 -2
- package/dist/integrations/ebay.d.ts +2 -2
- package/dist/integrations/entra.d.cts +1 -1
- package/dist/integrations/entra.d.ts +1 -1
- package/dist/integrations/etsy.d.cts +2 -2
- package/dist/integrations/etsy.d.ts +2 -2
- package/dist/integrations/eu-providers.d.cts +1 -1
- package/dist/integrations/eu-providers.d.ts +1 -1
- package/dist/integrations/fhir.d.cts +1 -1
- package/dist/integrations/fhir.d.ts +1 -1
- package/dist/integrations/google-merchant.d.cts +2 -2
- package/dist/integrations/google-merchant.d.ts +2 -2
- package/dist/integrations/grok.d.cts +1 -1
- package/dist/integrations/grok.d.ts +1 -1
- package/dist/integrations/guidewire.d.cts +1 -1
- package/dist/integrations/guidewire.d.ts +1 -1
- package/dist/integrations/hermes.d.cts +1 -1
- package/dist/integrations/hermes.d.ts +1 -1
- package/dist/integrations/jira.d.cts +1 -1
- package/dist/integrations/jira.d.ts +1 -1
- package/dist/integrations/langchain.d.cts +1 -1
- package/dist/integrations/langchain.d.ts +1 -1
- package/dist/integrations/langgraph.d.cts +1 -1
- package/dist/integrations/langgraph.d.ts +1 -1
- package/dist/integrations/legal.d.cts +1 -1
- package/dist/integrations/legal.d.ts +1 -1
- package/dist/integrations/life-sciences.d.cts +1 -1
- package/dist/integrations/life-sciences.d.ts +1 -1
- package/dist/integrations/linear.d.cts +1 -1
- package/dist/integrations/linear.d.ts +1 -1
- package/dist/integrations/lithic.d.cts +1 -1
- package/dist/integrations/lithic.d.ts +1 -1
- package/dist/integrations/llamaindex.d.cts +1 -1
- package/dist/integrations/llamaindex.d.ts +1 -1
- package/dist/integrations/marqeta.d.cts +1 -1
- package/dist/integrations/marqeta.d.ts +1 -1
- package/dist/integrations/meta.d.cts +2 -2
- package/dist/integrations/meta.d.ts +2 -2
- package/dist/integrations/mistral.d.cts +1 -1
- package/dist/integrations/mistral.d.ts +1 -1
- package/dist/integrations/modern-treasury.d.cts +1 -1
- package/dist/integrations/modern-treasury.d.ts +1 -1
- package/dist/integrations/muse.d.cts +1 -1
- package/dist/integrations/muse.d.ts +1 -1
- package/dist/integrations/nekuda.d.cts +1 -1
- package/dist/integrations/nekuda.d.ts +1 -1
- package/dist/integrations/okta.d.cts +1 -1
- package/dist/integrations/okta.d.ts +1 -1
- package/dist/integrations/openai.d.cts +1 -1
- package/dist/integrations/openai.d.ts +1 -1
- package/dist/integrations/openrouter.d.cts +1 -1
- package/dist/integrations/openrouter.d.ts +1 -1
- package/dist/integrations/paypal-agent.d.cts +1 -1
- package/dist/integrations/paypal-agent.d.ts +1 -1
- package/dist/integrations/perplexity.d.cts +1 -1
- package/dist/integrations/perplexity.d.ts +1 -1
- package/dist/integrations/plaid.d.cts +1 -1
- package/dist/integrations/plaid.d.ts +1 -1
- package/dist/integrations/ramp.d.cts +1 -1
- package/dist/integrations/ramp.d.ts +1 -1
- package/dist/integrations/shopify.d.cts +1 -1
- package/dist/integrations/shopify.d.ts +1 -1
- package/dist/integrations/siem.d.cts +1 -1
- package/dist/integrations/siem.d.ts +1 -1
- package/dist/integrations/skyfire.d.cts +1 -1
- package/dist/integrations/skyfire.d.ts +1 -1
- package/dist/integrations/social-ads.d.cts +2 -2
- package/dist/integrations/social-ads.d.ts +2 -2
- package/dist/integrations/stripe-acp.d.cts +1 -1
- package/dist/integrations/stripe-acp.d.ts +1 -1
- package/dist/integrations/stripe-issuing.d.cts +1 -1
- package/dist/integrations/stripe-issuing.d.ts +1 -1
- package/dist/integrations/tiktok-shop.d.cts +2 -2
- package/dist/integrations/tiktok-shop.d.ts +2 -2
- package/dist/integrations/truanon.d.cts +1 -1
- package/dist/integrations/truanon.d.ts +1 -1
- package/dist/integrations/typesafe.d.cts +1 -1
- package/dist/integrations/typesafe.d.ts +1 -1
- package/dist/integrations/ucp.d.cts +1 -1
- package/dist/integrations/ucp.d.ts +1 -1
- package/dist/integrations/vercel-ai.d.cts +1 -1
- package/dist/integrations/vercel-ai.d.ts +1 -1
- package/dist/integrations/walmart.d.cts +2 -2
- package/dist/integrations/walmart.d.ts +2 -2
- package/dist/integrations/x402.d.cts +1 -1
- package/dist/integrations/x402.d.ts +1 -1
- package/dist/{types-BI7fk5gL.d.cts → types-3hhqtL0W.d.cts} +98 -1
- package/dist/{types-BI7fk5gL.d.ts → types-3hhqtL0W.d.ts} +98 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PermissionScope, A as AgentRegistrationResult } from '../types-
|
|
1
|
+
import { P as PermissionScope, A as AgentRegistrationResult } from '../types-3hhqtL0W.cjs';
|
|
2
2
|
import { VorimSDK, ReplayInputs } from '../index.cjs';
|
|
3
3
|
import { E as EscalationPolicy, T as TransportFailurePolicy } from '../_runtime-gate-DOJUKJBu.cjs';
|
|
4
4
|
import '@vorim/shared-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PermissionScope, A as AgentRegistrationResult } from '../types-
|
|
1
|
+
import { P as PermissionScope, A as AgentRegistrationResult } from '../types-3hhqtL0W.js';
|
|
2
2
|
import { VorimSDK, ReplayInputs } from '../index.js';
|
|
3
3
|
import { E as EscalationPolicy, T as TransportFailurePolicy } from '../_runtime-gate-DOJUKJBu.js';
|
|
4
4
|
import '@vorim/shared-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VorimSDK } from '../index.cjs';
|
|
2
2
|
import { VorimToolRegistry } from './openai.cjs';
|
|
3
3
|
export { VorimAgentLoopConfig, VorimOpenAIConfig as VorimOpenRouterConfig, VorimToolDefinition, createVorimOpenAIAgent as createVorimOpenRouterAgent, runAgentLoop } from './openai.cjs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-3hhqtL0W.cjs';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.cjs';
|
|
7
7
|
import '../_runtime-gate-DOJUKJBu.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VorimSDK } from '../index.js';
|
|
2
2
|
import { VorimToolRegistry } from './openai.js';
|
|
3
3
|
export { VorimAgentLoopConfig, VorimOpenAIConfig as VorimOpenRouterConfig, VorimToolDefinition, createVorimOpenAIAgent as createVorimOpenRouterAgent, runAgentLoop } from './openai.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-3hhqtL0W.js';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.js';
|
|
7
7
|
import '../_runtime-gate-DOJUKJBu.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VorimSDK } from '../index.cjs';
|
|
2
2
|
import { VorimToolRegistry } from './openai.cjs';
|
|
3
3
|
export { VorimAgentLoopConfig, VorimOpenAIConfig as VorimPerplexityConfig, VorimToolDefinition, createVorimOpenAIAgent as createVorimPerplexityAgent, runAgentLoop } from './openai.cjs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-3hhqtL0W.cjs';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.cjs';
|
|
7
7
|
import '../_runtime-gate-DOJUKJBu.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VorimSDK } from '../index.js';
|
|
2
2
|
import { VorimToolRegistry } from './openai.js';
|
|
3
3
|
export { VorimAgentLoopConfig, VorimOpenAIConfig as VorimPerplexityConfig, VorimToolDefinition, createVorimOpenAIAgent as createVorimPerplexityAgent, runAgentLoop } from './openai.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-3hhqtL0W.js';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.js';
|
|
7
7
|
import '../_runtime-gate-DOJUKJBu.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CommerceProfile, V as VorimCommerceGuard, b as CommerceReceipt, a as CommerceGuardConfig } from '../_commerce-core-
|
|
1
|
+
import { C as CommerceProfile, V as VorimCommerceGuard, b as CommerceReceipt, a as CommerceGuardConfig } from '../_commerce-core-QF7IKCKQ.cjs';
|
|
2
2
|
import { VorimSDK } from '../index.cjs';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-3hhqtL0W.cjs';
|
|
4
4
|
import '../_runtime-gate-DOJUKJBu.cjs';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CommerceProfile, V as VorimCommerceGuard, b as CommerceReceipt, a as CommerceGuardConfig } from '../_commerce-core-
|
|
1
|
+
import { C as CommerceProfile, V as VorimCommerceGuard, b as CommerceReceipt, a as CommerceGuardConfig } from '../_commerce-core-jih7k4hQ.js';
|
|
2
2
|
import { VorimSDK } from '../index.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-3hhqtL0W.js';
|
|
4
4
|
import '../_runtime-gate-DOJUKJBu.js';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CommerceProfile, a as CommerceGuardConfig, V as VorimCommerceGuard, b as CommerceReceipt } from '../_commerce-core-
|
|
1
|
+
import { C as CommerceProfile, a as CommerceGuardConfig, V as VorimCommerceGuard, b as CommerceReceipt } from '../_commerce-core-QF7IKCKQ.cjs';
|
|
2
2
|
import { VorimSDK } from '../index.cjs';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-3hhqtL0W.cjs';
|
|
4
4
|
import '../_runtime-gate-DOJUKJBu.cjs';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CommerceProfile, a as CommerceGuardConfig, V as VorimCommerceGuard, b as CommerceReceipt } from '../_commerce-core-
|
|
1
|
+
import { C as CommerceProfile, a as CommerceGuardConfig, V as VorimCommerceGuard, b as CommerceReceipt } from '../_commerce-core-jih7k4hQ.js';
|
|
2
2
|
import { VorimSDK } from '../index.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-3hhqtL0W.js';
|
|
4
4
|
import '../_runtime-gate-DOJUKJBu.js';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VorimSDK, ReplayInputs } from '../index.cjs';
|
|
2
|
-
import { P as PermissionScope } from '../types-
|
|
2
|
+
import { P as PermissionScope } from '../types-3hhqtL0W.cjs';
|
|
3
3
|
import { E as EscalationPolicy, T as TransportFailurePolicy } from '../_runtime-gate-DOJUKJBu.cjs';
|
|
4
4
|
import '@vorim/shared-types';
|
|
5
5
|
import '../httpSignatures.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VorimSDK, ReplayInputs } from '../index.js';
|
|
2
|
-
import { P as PermissionScope } from '../types-
|
|
2
|
+
import { P as PermissionScope } from '../types-3hhqtL0W.js';
|
|
3
3
|
import { E as EscalationPolicy, T as TransportFailurePolicy } from '../_runtime-gate-DOJUKJBu.js';
|
|
4
4
|
import '@vorim/shared-types';
|
|
5
5
|
import '../httpSignatures.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { V as VorimCommerceGuard, a as CommerceGuardConfig, b as CommerceReceipt, C as CommerceProfile } from '../_commerce-core-
|
|
1
|
+
import { V as VorimCommerceGuard, a as CommerceGuardConfig, b as CommerceReceipt, C as CommerceProfile } from '../_commerce-core-QF7IKCKQ.cjs';
|
|
2
2
|
import { VorimSDK } from '../index.cjs';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-3hhqtL0W.cjs';
|
|
4
4
|
import '../_runtime-gate-DOJUKJBu.cjs';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { V as VorimCommerceGuard, a as CommerceGuardConfig, b as CommerceReceipt, C as CommerceProfile } from '../_commerce-core-
|
|
1
|
+
import { V as VorimCommerceGuard, a as CommerceGuardConfig, b as CommerceReceipt, C as CommerceProfile } from '../_commerce-core-jih7k4hQ.js';
|
|
2
2
|
import { VorimSDK } from '../index.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-3hhqtL0W.js';
|
|
4
4
|
import '../_runtime-gate-DOJUKJBu.js';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.js';
|
|
@@ -303,6 +303,18 @@ interface BeforeActionInput {
|
|
|
303
303
|
* decision; rules can hold or block off-intent or undeclared work.
|
|
304
304
|
*/
|
|
305
305
|
intentId?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Your case or customer reference for this action (opaque: letters, digits,
|
|
308
|
+
* `. _ : @ -`, up to 128; never a name). A case pack gathers every decision,
|
|
309
|
+
* intent and mandate carrying it into one signed timeline.
|
|
310
|
+
*/
|
|
311
|
+
caseRef?: string;
|
|
312
|
+
/**
|
|
313
|
+
* The customer mandate this action is taken under (`mdt_...`). Vorim
|
|
314
|
+
* refuses the action unless it sits inside the mandate's limits, and
|
|
315
|
+
* charges an allowed or escalated amount against it.
|
|
316
|
+
*/
|
|
317
|
+
mandateId?: string;
|
|
306
318
|
/**
|
|
307
319
|
* Workflow this action belongs to (AI cost management). Groups actions so a
|
|
308
320
|
* per-workflow token budget can meter and enforce spend across the whole
|
|
@@ -471,6 +483,91 @@ interface DeclareIntentInput {
|
|
|
471
483
|
expectedOutcome?: string;
|
|
472
484
|
/** ISO date-time to check the outcome (from now up to a year ahead). Needs `expectedOutcome`. */
|
|
473
485
|
reviewAt?: string;
|
|
486
|
+
/** Your case or customer reference (opaque, never a name). Not part of the signed bytes. */
|
|
487
|
+
caseRef?: string;
|
|
488
|
+
/** Product line, for the Consumer Duty report (up to 64 characters). Not part of the signed bytes. */
|
|
489
|
+
product?: string;
|
|
490
|
+
/** Whether the customer has characteristics of vulnerability. Not part of the signed bytes. */
|
|
491
|
+
vulnerableCustomer?: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* FCA FG21/1 drivers of vulnerability. Naming one marks the customer
|
|
494
|
+
* vulnerable. Not part of the signed bytes.
|
|
495
|
+
*/
|
|
496
|
+
vulnerabilityDrivers?: Array<'health' | 'life_events' | 'resilience' | 'capability'>;
|
|
497
|
+
}
|
|
498
|
+
/** What a customer allows an agent to do. Amounts in minor units (pence). */
|
|
499
|
+
interface MandateTerms {
|
|
500
|
+
actionTypes: string[];
|
|
501
|
+
/** `*` wildcard patterns; empty or absent = any target. */
|
|
502
|
+
targets?: string[];
|
|
503
|
+
maxAmount?: number | null;
|
|
504
|
+
currency?: string | null;
|
|
505
|
+
maxTotal?: number | null;
|
|
506
|
+
maxUses?: number | null;
|
|
507
|
+
readOnly?: boolean;
|
|
508
|
+
/** Payload field the amount is read from (dotted path, default `amount`). */
|
|
509
|
+
amountField?: string;
|
|
510
|
+
}
|
|
511
|
+
interface CreateMandateInput {
|
|
512
|
+
agentId: string;
|
|
513
|
+
/** Opaque customer reference, never a name. */
|
|
514
|
+
customerRef: string;
|
|
515
|
+
/** `ES256` for a phone's secure hardware (P-256), or `EdDSA` (Ed25519). */
|
|
516
|
+
alg: 'ES256' | 'EdDSA';
|
|
517
|
+
/** The customer's PUBLIC key as a JWK. Never send the private key. */
|
|
518
|
+
publicKeyJwk: Record<string, unknown>;
|
|
519
|
+
terms: MandateTerms;
|
|
520
|
+
/** ISO date-time, at most 400 days ahead. */
|
|
521
|
+
expiresAt: string;
|
|
522
|
+
/**
|
|
523
|
+
* Optional proof the key is in secure hardware. `challenge` comes from
|
|
524
|
+
* `getAttestationChallenge()`; the device uses its UTF-8 bytes as the
|
|
525
|
+
* Android attestation challenge, or as App Attest client data.
|
|
526
|
+
*/
|
|
527
|
+
keyAttestation?: {
|
|
528
|
+
format: 'android-key';
|
|
529
|
+
certificateChain: string[];
|
|
530
|
+
challenge: string;
|
|
531
|
+
} | {
|
|
532
|
+
format: 'apple-app-attest';
|
|
533
|
+
attestationObject: string;
|
|
534
|
+
keyId: string;
|
|
535
|
+
appId: string;
|
|
536
|
+
environment: 'production' | 'development';
|
|
537
|
+
challenge: string;
|
|
538
|
+
};
|
|
539
|
+
/** The customer signs with a passkey: the relying party id and the origin it is used on. */
|
|
540
|
+
webauthn?: {
|
|
541
|
+
rpId: string;
|
|
542
|
+
origin: string;
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
/** A customer signature: a plain base64url signature, a passkey assertion, or an App Attest assertion. */
|
|
546
|
+
type CustomerSignature = string | {
|
|
547
|
+
format: 'webauthn';
|
|
548
|
+
authenticator_data: string;
|
|
549
|
+
client_data_json: string;
|
|
550
|
+
signature: string;
|
|
551
|
+
} | {
|
|
552
|
+
format: 'app-attest';
|
|
553
|
+
assertion: string;
|
|
554
|
+
};
|
|
555
|
+
interface GatewayCheckInput {
|
|
556
|
+
/** The agent's request as the bank received it, with its RFC 9421 headers. */
|
|
557
|
+
request: {
|
|
558
|
+
method: string;
|
|
559
|
+
url: string;
|
|
560
|
+
headers: Record<string, string | string[]>;
|
|
561
|
+
body?: string;
|
|
562
|
+
};
|
|
563
|
+
mandateId: string;
|
|
564
|
+
/** The bank's own reference for the customer; compared, never returned. */
|
|
565
|
+
customerRef?: string;
|
|
566
|
+
actionType: string;
|
|
567
|
+
/** Minor units. */
|
|
568
|
+
amount?: number;
|
|
569
|
+
currency?: string;
|
|
570
|
+
maxAgeSeconds?: number;
|
|
474
571
|
}
|
|
475
572
|
interface Intent {
|
|
476
573
|
intent_id: string;
|
|
@@ -560,4 +657,4 @@ interface CapabilityProfile {
|
|
|
560
657
|
alreadyLeastPrivilege: boolean;
|
|
561
658
|
}
|
|
562
659
|
|
|
563
|
-
export type { AgentRegistrationResult as A, BeforeActionInput as B, CapabilityProfile as C, DelegationLinkClaims as D, Intent as I, PermissionScope as P, RuntimeDecision as R, SuspendPreview as S, TrustRecord as T, WorkflowProvenanceGraph as W, AgentRegistrationInput as a, Agent as b, PermissionCheckResult as c, AgentDelegationRecord as d, SharedMemoryWriteInput as e, SharedMemoryEntry as f, SharedMemoryListResult as g, TokenBudgetInput as h, TokenBudget as i, BudgetSpend as j, AuditEventInput as k, SwarmView as l, DeclareIntentInput as m,
|
|
660
|
+
export type { AgentRegistrationResult as A, BeforeActionInput as B, CapabilityProfile as C, DelegationLinkClaims as D, GatewayCheckInput as G, Intent as I, MandateTerms as M, PermissionScope as P, RuntimeDecision as R, SuspendPreview as S, TrustRecord as T, WorkflowProvenanceGraph as W, AgentRegistrationInput as a, Agent as b, PermissionCheckResult as c, AgentDelegationRecord as d, SharedMemoryWriteInput as e, SharedMemoryEntry as f, SharedMemoryListResult as g, TokenBudgetInput as h, TokenBudget as i, BudgetSpend as j, AuditEventInput as k, SwarmView as l, DeclareIntentInput as m, CreateMandateInput as n, CustomerSignature as o, AgentStatus as p, ApprovalAttestation as q, AuditEventType as r, AuditResult as s, BudgetEnforcement as t, BudgetScope as u, DecisionVerdict as v, WorkflowGraphEdge as w, WorkflowGraphEvent as x, WorkflowGraphNode as y };
|
|
@@ -303,6 +303,18 @@ interface BeforeActionInput {
|
|
|
303
303
|
* decision; rules can hold or block off-intent or undeclared work.
|
|
304
304
|
*/
|
|
305
305
|
intentId?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Your case or customer reference for this action (opaque: letters, digits,
|
|
308
|
+
* `. _ : @ -`, up to 128; never a name). A case pack gathers every decision,
|
|
309
|
+
* intent and mandate carrying it into one signed timeline.
|
|
310
|
+
*/
|
|
311
|
+
caseRef?: string;
|
|
312
|
+
/**
|
|
313
|
+
* The customer mandate this action is taken under (`mdt_...`). Vorim
|
|
314
|
+
* refuses the action unless it sits inside the mandate's limits, and
|
|
315
|
+
* charges an allowed or escalated amount against it.
|
|
316
|
+
*/
|
|
317
|
+
mandateId?: string;
|
|
306
318
|
/**
|
|
307
319
|
* Workflow this action belongs to (AI cost management). Groups actions so a
|
|
308
320
|
* per-workflow token budget can meter and enforce spend across the whole
|
|
@@ -471,6 +483,91 @@ interface DeclareIntentInput {
|
|
|
471
483
|
expectedOutcome?: string;
|
|
472
484
|
/** ISO date-time to check the outcome (from now up to a year ahead). Needs `expectedOutcome`. */
|
|
473
485
|
reviewAt?: string;
|
|
486
|
+
/** Your case or customer reference (opaque, never a name). Not part of the signed bytes. */
|
|
487
|
+
caseRef?: string;
|
|
488
|
+
/** Product line, for the Consumer Duty report (up to 64 characters). Not part of the signed bytes. */
|
|
489
|
+
product?: string;
|
|
490
|
+
/** Whether the customer has characteristics of vulnerability. Not part of the signed bytes. */
|
|
491
|
+
vulnerableCustomer?: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* FCA FG21/1 drivers of vulnerability. Naming one marks the customer
|
|
494
|
+
* vulnerable. Not part of the signed bytes.
|
|
495
|
+
*/
|
|
496
|
+
vulnerabilityDrivers?: Array<'health' | 'life_events' | 'resilience' | 'capability'>;
|
|
497
|
+
}
|
|
498
|
+
/** What a customer allows an agent to do. Amounts in minor units (pence). */
|
|
499
|
+
interface MandateTerms {
|
|
500
|
+
actionTypes: string[];
|
|
501
|
+
/** `*` wildcard patterns; empty or absent = any target. */
|
|
502
|
+
targets?: string[];
|
|
503
|
+
maxAmount?: number | null;
|
|
504
|
+
currency?: string | null;
|
|
505
|
+
maxTotal?: number | null;
|
|
506
|
+
maxUses?: number | null;
|
|
507
|
+
readOnly?: boolean;
|
|
508
|
+
/** Payload field the amount is read from (dotted path, default `amount`). */
|
|
509
|
+
amountField?: string;
|
|
510
|
+
}
|
|
511
|
+
interface CreateMandateInput {
|
|
512
|
+
agentId: string;
|
|
513
|
+
/** Opaque customer reference, never a name. */
|
|
514
|
+
customerRef: string;
|
|
515
|
+
/** `ES256` for a phone's secure hardware (P-256), or `EdDSA` (Ed25519). */
|
|
516
|
+
alg: 'ES256' | 'EdDSA';
|
|
517
|
+
/** The customer's PUBLIC key as a JWK. Never send the private key. */
|
|
518
|
+
publicKeyJwk: Record<string, unknown>;
|
|
519
|
+
terms: MandateTerms;
|
|
520
|
+
/** ISO date-time, at most 400 days ahead. */
|
|
521
|
+
expiresAt: string;
|
|
522
|
+
/**
|
|
523
|
+
* Optional proof the key is in secure hardware. `challenge` comes from
|
|
524
|
+
* `getAttestationChallenge()`; the device uses its UTF-8 bytes as the
|
|
525
|
+
* Android attestation challenge, or as App Attest client data.
|
|
526
|
+
*/
|
|
527
|
+
keyAttestation?: {
|
|
528
|
+
format: 'android-key';
|
|
529
|
+
certificateChain: string[];
|
|
530
|
+
challenge: string;
|
|
531
|
+
} | {
|
|
532
|
+
format: 'apple-app-attest';
|
|
533
|
+
attestationObject: string;
|
|
534
|
+
keyId: string;
|
|
535
|
+
appId: string;
|
|
536
|
+
environment: 'production' | 'development';
|
|
537
|
+
challenge: string;
|
|
538
|
+
};
|
|
539
|
+
/** The customer signs with a passkey: the relying party id and the origin it is used on. */
|
|
540
|
+
webauthn?: {
|
|
541
|
+
rpId: string;
|
|
542
|
+
origin: string;
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
/** A customer signature: a plain base64url signature, a passkey assertion, or an App Attest assertion. */
|
|
546
|
+
type CustomerSignature = string | {
|
|
547
|
+
format: 'webauthn';
|
|
548
|
+
authenticator_data: string;
|
|
549
|
+
client_data_json: string;
|
|
550
|
+
signature: string;
|
|
551
|
+
} | {
|
|
552
|
+
format: 'app-attest';
|
|
553
|
+
assertion: string;
|
|
554
|
+
};
|
|
555
|
+
interface GatewayCheckInput {
|
|
556
|
+
/** The agent's request as the bank received it, with its RFC 9421 headers. */
|
|
557
|
+
request: {
|
|
558
|
+
method: string;
|
|
559
|
+
url: string;
|
|
560
|
+
headers: Record<string, string | string[]>;
|
|
561
|
+
body?: string;
|
|
562
|
+
};
|
|
563
|
+
mandateId: string;
|
|
564
|
+
/** The bank's own reference for the customer; compared, never returned. */
|
|
565
|
+
customerRef?: string;
|
|
566
|
+
actionType: string;
|
|
567
|
+
/** Minor units. */
|
|
568
|
+
amount?: number;
|
|
569
|
+
currency?: string;
|
|
570
|
+
maxAgeSeconds?: number;
|
|
474
571
|
}
|
|
475
572
|
interface Intent {
|
|
476
573
|
intent_id: string;
|
|
@@ -560,4 +657,4 @@ interface CapabilityProfile {
|
|
|
560
657
|
alreadyLeastPrivilege: boolean;
|
|
561
658
|
}
|
|
562
659
|
|
|
563
|
-
export type { AgentRegistrationResult as A, BeforeActionInput as B, CapabilityProfile as C, DelegationLinkClaims as D, Intent as I, PermissionScope as P, RuntimeDecision as R, SuspendPreview as S, TrustRecord as T, WorkflowProvenanceGraph as W, AgentRegistrationInput as a, Agent as b, PermissionCheckResult as c, AgentDelegationRecord as d, SharedMemoryWriteInput as e, SharedMemoryEntry as f, SharedMemoryListResult as g, TokenBudgetInput as h, TokenBudget as i, BudgetSpend as j, AuditEventInput as k, SwarmView as l, DeclareIntentInput as m,
|
|
660
|
+
export type { AgentRegistrationResult as A, BeforeActionInput as B, CapabilityProfile as C, DelegationLinkClaims as D, GatewayCheckInput as G, Intent as I, MandateTerms as M, PermissionScope as P, RuntimeDecision as R, SuspendPreview as S, TrustRecord as T, WorkflowProvenanceGraph as W, AgentRegistrationInput as a, Agent as b, PermissionCheckResult as c, AgentDelegationRecord as d, SharedMemoryWriteInput as e, SharedMemoryEntry as f, SharedMemoryListResult as g, TokenBudgetInput as h, TokenBudget as i, BudgetSpend as j, AuditEventInput as k, SwarmView as l, DeclareIntentInput as m, CreateMandateInput as n, CustomerSignature as o, AgentStatus as p, ApprovalAttestation as q, AuditEventType as r, AuditResult as s, BudgetEnforcement as t, BudgetScope as u, DecisionVerdict as v, WorkflowGraphEdge as w, WorkflowGraphEvent as x, WorkflowGraphNode as y };
|