@vorim/sdk 4.7.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 +9 -0
- package/dist/{_commerce-core-8bZrmg_-.d.cts → _commerce-core-Be_kkFtf.d.cts} +1 -1
- package/dist/{_commerce-core-CNEI4Gdg.d.ts → _commerce-core-C496pk4y.d.ts} +1 -1
- package/dist/index.cjs +26 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -2
- package/dist/index.d.ts +32 -2
- package/dist/index.js +26 -2
- 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-xwj0DQPS.d.cts → types-B0UJBwuB.d.cts} +11 -0
- package/dist/{types-xwj0DQPS.d.ts → types-B0UJBwuB.d.ts} +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog — @vorim/sdk
|
|
2
2
|
|
|
3
|
+
## 4.8.0
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **What the agent relied on.** `beforeAction({ ..., sources })` takes up to 20 of `{ name, kind?, hash? }` (`kind`: document, tool_result, web, message, data, other; `hash`: `sha256:<hex>` of the content). Vorim keeps names and hashes, never content, and the payment's consent record and case pack show them.
|
|
8
|
+
- **Customer agents contacting you.** `openInboundAgentContact({ ref, channel, verify, customerRef?, caseRef?, firmAgentId? })` records a contact from a customer's own AI agent and checks it (`verify` is an RFC 9421 signed request, a Visa TAP signature, a Vorim Know Your Agent document, or nothing). `addInboundAgentEvent(ref, { kind, summary?, decisionId? })` logs what it asked, what your agent did, and when a person was offered or took over; `listInboundAgentContacts` and `getInboundAgentRecord` (sealed, with gaps).
|
|
9
|
+
- **Human review on request.** `updateComplaint` takes `reviewRequestedAt`, `reviewBy`, `reviewDoneAt` and `reviewAnswer`: the customer asked for a person to look again, who did, when, and the plain-English answer given.
|
|
10
|
+
- Consent records now carry `rationale` (why the payment went ahead, waited or was refused, in plain English, from what Vorim checked) and `relied_on`; case packs carry `why` per decision. No code change needed to read them.
|
|
11
|
+
|
|
3
12
|
## 4.7.0
|
|
4
13
|
|
|
5
14
|
### Added
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VorimSDK } 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 } from './_runtime-gate-DOJUKJBu.cjs';
|
|
4
4
|
|
|
5
5
|
/** What a ceiling an operation is measured against. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VorimSDK } 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 } from './_runtime-gate-DOJUKJBu.js';
|
|
4
4
|
|
|
5
5
|
/** What a ceiling an operation is measured against. */
|
package/dist/index.cjs
CHANGED
|
@@ -943,7 +943,7 @@ function canonicalIntent(value) {
|
|
|
943
943
|
const keys = Object.keys(obj).filter((k) => obj[k] !== void 0).sort();
|
|
944
944
|
return `{${keys.map((k) => `${JSON.stringify(k)}:${canonicalIntent(obj[k])}`).join(",")}}`;
|
|
945
945
|
}
|
|
946
|
-
var SDK_VERSION = true ? "4.
|
|
946
|
+
var SDK_VERSION = true ? "4.8.0" : "0.0.0";
|
|
947
947
|
var USER_AGENT = `vorim-sdk/${SDK_VERSION}`;
|
|
948
948
|
function sleep(ms) {
|
|
949
949
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -1567,7 +1567,8 @@ var VorimSDK = class _VorimSDK {
|
|
|
1567
1567
|
traceparent: input.traceparent,
|
|
1568
1568
|
intent_id: input.intentId,
|
|
1569
1569
|
case_ref: input.caseRef,
|
|
1570
|
-
mandate_id: input.mandateId
|
|
1570
|
+
mandate_id: input.mandateId,
|
|
1571
|
+
sources: input.sources
|
|
1571
1572
|
};
|
|
1572
1573
|
let raw;
|
|
1573
1574
|
try {
|
|
@@ -2484,12 +2485,35 @@ var VorimSDK = class _VorimSDK {
|
|
|
2484
2485
|
/** Record when a person stepped in, any holding reply, and the final response. `null` clears a field. */
|
|
2485
2486
|
async updateComplaint(ref, input) {
|
|
2486
2487
|
const body = {};
|
|
2488
|
+
if (input.reviewRequestedAt !== void 0) body.review_requested_at = input.reviewRequestedAt;
|
|
2489
|
+
if (input.reviewBy !== void 0) body.review_by = input.reviewBy;
|
|
2490
|
+
if (input.reviewDoneAt !== void 0) body.review_done_at = input.reviewDoneAt;
|
|
2491
|
+
if (input.reviewAnswer !== void 0) body.review_answer = input.reviewAnswer;
|
|
2487
2492
|
if (input.toPersonAt !== void 0) body.to_person_at = input.toPersonAt;
|
|
2488
2493
|
if (input.holdingReplyAt !== void 0) body.holding_reply_at = input.holdingReplyAt;
|
|
2489
2494
|
if (input.finalResponseAt !== void 0) body.final_response_at = input.finalResponseAt;
|
|
2490
2495
|
if (input.exceptional !== void 0) body.exceptional = input.exceptional;
|
|
2491
2496
|
return this.patch(`/evidence/complaints/${encodeURIComponent(ref)}`, body);
|
|
2492
2497
|
}
|
|
2498
|
+
/**
|
|
2499
|
+
* A customer's own AI agent has contacted you (4.8). Record it: Vorim checks
|
|
2500
|
+
* the agent (`verify` is `{ method: 'rfc9421', request }`, `{ method: 'tap', url, headers }`,
|
|
2501
|
+
* `{ method: 'kya', document }` or `{ method: 'none', claimed_as? }`) and keeps the result.
|
|
2502
|
+
*/
|
|
2503
|
+
async openInboundAgentContact(input) {
|
|
2504
|
+
return this.post("/evidence/inbound-agents", { ref: input.ref, channel: input.channel, customer_ref: input.customerRef, case_ref: input.caseRef, firm_agent_id: input.firmAgentId, verify: input.verify });
|
|
2505
|
+
}
|
|
2506
|
+
/** What happened next: asked, answered, action (with its decisionId), person_offered, handed_to_person, closed. */
|
|
2507
|
+
async addInboundAgentEvent(ref, input) {
|
|
2508
|
+
return this.post(`/evidence/inbound-agents/${encodeURIComponent(ref)}/events`, { kind: input.kind, summary: input.summary, decision_id: input.decisionId, at: input.at });
|
|
2509
|
+
}
|
|
2510
|
+
async listInboundAgentContacts(params = {}) {
|
|
2511
|
+
return this.get(`/evidence/inbound-agents${params.days ? `?days=${encodeURIComponent(String(params.days))}` : ""}`);
|
|
2512
|
+
}
|
|
2513
|
+
/** The sealed record of one contact, with the gaps a complaint handler will ask about. */
|
|
2514
|
+
async getInboundAgentRecord(ref) {
|
|
2515
|
+
return this.get(`/evidence/inbound-agents/${encodeURIComponent(ref)}`);
|
|
2516
|
+
}
|
|
2493
2517
|
/** Three sealed sample documents (made-up facts, real signatures) and the platform key. Public. */
|
|
2494
2518
|
async getPublicSampleEvidence() {
|
|
2495
2519
|
return this.get("/evidence/public-sample");
|