@vorim/sdk 4.6.0 → 4.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.
- package/CHANGELOG.md +18 -0
- package/dist/{_commerce-core-QF7IKCKQ.d.cts → _commerce-core-Be_kkFtf.d.cts} +1 -1
- package/dist/{_commerce-core-jih7k4hQ.d.ts → _commerce-core-C496pk4y.d.ts} +1 -1
- package/dist/index.cjs +166 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +190 -3
- package/dist/index.d.ts +190 -3
- package/dist/index.js +164 -4
- 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-3hhqtL0W.d.cts → types-B0UJBwuB.d.cts} +35 -0
- package/dist/{types-3hhqtL0W.d.ts → types-B0UJBwuB.d.ts} +35 -0
- 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-B0UJBwuB.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-B0UJBwuB.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-B0UJBwuB.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-B0UJBwuB.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-B0UJBwuB.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-B0UJBwuB.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-Be_kkFtf.cjs';
|
|
2
2
|
import { VorimSDK } from '../index.cjs';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-B0UJBwuB.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-C496pk4y.js';
|
|
2
2
|
import { VorimSDK } from '../index.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-B0UJBwuB.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-Be_kkFtf.cjs';
|
|
2
2
|
import { VorimSDK } from '../index.cjs';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-B0UJBwuB.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-C496pk4y.js';
|
|
2
2
|
import { VorimSDK } from '../index.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-B0UJBwuB.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-B0UJBwuB.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-B0UJBwuB.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-Be_kkFtf.cjs';
|
|
2
2
|
import { VorimSDK } from '../index.cjs';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-B0UJBwuB.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-C496pk4y.js';
|
|
2
2
|
import { VorimSDK } from '../index.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-B0UJBwuB.js';
|
|
4
4
|
import '../_runtime-gate-DOJUKJBu.js';
|
|
5
5
|
import '@vorim/shared-types';
|
|
6
6
|
import '../httpSignatures.js';
|
|
@@ -315,6 +315,17 @@ interface BeforeActionInput {
|
|
|
315
315
|
* charges an allowed or escalated amount against it.
|
|
316
316
|
*/
|
|
317
317
|
mandateId?: string;
|
|
318
|
+
/**
|
|
319
|
+
* What the agent relied on before acting (4.8): up to 20 of `{ name, kind?, hash? }`,
|
|
320
|
+
* `kind` one of document, tool_result, web, message, data, other; `hash` as
|
|
321
|
+
* `sha256:<hex>` of the content. Vorim keeps names and hashes, never content,
|
|
322
|
+
* and carries them into the payment's consent record and case pack.
|
|
323
|
+
*/
|
|
324
|
+
sources?: Array<{
|
|
325
|
+
name: string;
|
|
326
|
+
kind?: 'document' | 'tool_result' | 'web' | 'message' | 'data' | 'other';
|
|
327
|
+
hash?: string;
|
|
328
|
+
}>;
|
|
318
329
|
/**
|
|
319
330
|
* Workflow this action belongs to (AI cost management). Groups actions so a
|
|
320
331
|
* per-workflow token budget can meter and enforce spend across the whole
|
|
@@ -453,6 +464,12 @@ interface RuntimeDecision {
|
|
|
453
464
|
alignment: 'aligned' | 'off_intent' | 'none';
|
|
454
465
|
reasons: string[];
|
|
455
466
|
} | null;
|
|
467
|
+
/**
|
|
468
|
+
* Under a mandate with a cancel window: until when the customer may cancel
|
|
469
|
+
* this payment. Hold the payment until then (or be able to reverse it) and
|
|
470
|
+
* check the decision for `cancelled_at` before releasing it. (4.7)
|
|
471
|
+
*/
|
|
472
|
+
cancelUntil?: string | null;
|
|
456
473
|
}
|
|
457
474
|
/** Declare what an agent is about to do, before it does it. */
|
|
458
475
|
interface DeclareIntentInput {
|
|
@@ -507,6 +524,24 @@ interface MandateTerms {
|
|
|
507
524
|
readOnly?: boolean;
|
|
508
525
|
/** Payload field the amount is read from (dotted path, default `amount`). */
|
|
509
526
|
amountField?: string;
|
|
527
|
+
/** Caps per period, as a UK VRP consent sets them (4.7). */
|
|
528
|
+
periodicLimits?: Array<{
|
|
529
|
+
period: 'day' | 'week' | 'fortnight' | 'month' | 'half_year' | 'year';
|
|
530
|
+
alignment: 'consent' | 'calendar';
|
|
531
|
+
amount: number;
|
|
532
|
+
}>;
|
|
533
|
+
/** ISO date-time before which the mandate cannot be used (4.7). */
|
|
534
|
+
validFrom?: string;
|
|
535
|
+
/** Above this amount the customer approves the payment themselves with the mandate key (4.7). */
|
|
536
|
+
stepUpAbove?: number;
|
|
537
|
+
/** Caps per payee pattern inside one mandate, e.g. £150 a payment and £300 in all at one shop (4.7). */
|
|
538
|
+
targetLimits?: Array<{
|
|
539
|
+
target: string;
|
|
540
|
+
maxAmount?: number;
|
|
541
|
+
maxTotal?: number;
|
|
542
|
+
}>;
|
|
543
|
+
/** Minutes (1 to 1440) after a payment goes ahead in which the customer may cancel it with the mandate key (4.7). */
|
|
544
|
+
cancelWithinMinutes?: number;
|
|
510
545
|
}
|
|
511
546
|
interface CreateMandateInput {
|
|
512
547
|
agentId: string;
|
|
@@ -315,6 +315,17 @@ interface BeforeActionInput {
|
|
|
315
315
|
* charges an allowed or escalated amount against it.
|
|
316
316
|
*/
|
|
317
317
|
mandateId?: string;
|
|
318
|
+
/**
|
|
319
|
+
* What the agent relied on before acting (4.8): up to 20 of `{ name, kind?, hash? }`,
|
|
320
|
+
* `kind` one of document, tool_result, web, message, data, other; `hash` as
|
|
321
|
+
* `sha256:<hex>` of the content. Vorim keeps names and hashes, never content,
|
|
322
|
+
* and carries them into the payment's consent record and case pack.
|
|
323
|
+
*/
|
|
324
|
+
sources?: Array<{
|
|
325
|
+
name: string;
|
|
326
|
+
kind?: 'document' | 'tool_result' | 'web' | 'message' | 'data' | 'other';
|
|
327
|
+
hash?: string;
|
|
328
|
+
}>;
|
|
318
329
|
/**
|
|
319
330
|
* Workflow this action belongs to (AI cost management). Groups actions so a
|
|
320
331
|
* per-workflow token budget can meter and enforce spend across the whole
|
|
@@ -453,6 +464,12 @@ interface RuntimeDecision {
|
|
|
453
464
|
alignment: 'aligned' | 'off_intent' | 'none';
|
|
454
465
|
reasons: string[];
|
|
455
466
|
} | null;
|
|
467
|
+
/**
|
|
468
|
+
* Under a mandate with a cancel window: until when the customer may cancel
|
|
469
|
+
* this payment. Hold the payment until then (or be able to reverse it) and
|
|
470
|
+
* check the decision for `cancelled_at` before releasing it. (4.7)
|
|
471
|
+
*/
|
|
472
|
+
cancelUntil?: string | null;
|
|
456
473
|
}
|
|
457
474
|
/** Declare what an agent is about to do, before it does it. */
|
|
458
475
|
interface DeclareIntentInput {
|
|
@@ -507,6 +524,24 @@ interface MandateTerms {
|
|
|
507
524
|
readOnly?: boolean;
|
|
508
525
|
/** Payload field the amount is read from (dotted path, default `amount`). */
|
|
509
526
|
amountField?: string;
|
|
527
|
+
/** Caps per period, as a UK VRP consent sets them (4.7). */
|
|
528
|
+
periodicLimits?: Array<{
|
|
529
|
+
period: 'day' | 'week' | 'fortnight' | 'month' | 'half_year' | 'year';
|
|
530
|
+
alignment: 'consent' | 'calendar';
|
|
531
|
+
amount: number;
|
|
532
|
+
}>;
|
|
533
|
+
/** ISO date-time before which the mandate cannot be used (4.7). */
|
|
534
|
+
validFrom?: string;
|
|
535
|
+
/** Above this amount the customer approves the payment themselves with the mandate key (4.7). */
|
|
536
|
+
stepUpAbove?: number;
|
|
537
|
+
/** Caps per payee pattern inside one mandate, e.g. £150 a payment and £300 in all at one shop (4.7). */
|
|
538
|
+
targetLimits?: Array<{
|
|
539
|
+
target: string;
|
|
540
|
+
maxAmount?: number;
|
|
541
|
+
maxTotal?: number;
|
|
542
|
+
}>;
|
|
543
|
+
/** Minutes (1 to 1440) after a payment goes ahead in which the customer may cancel it with the mandate key (4.7). */
|
|
544
|
+
cancelWithinMinutes?: number;
|
|
510
545
|
}
|
|
511
546
|
interface CreateMandateInput {
|
|
512
547
|
agentId: string;
|