@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.
Files changed (120) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{_commerce-core-8bZrmg_-.d.cts → _commerce-core-Be_kkFtf.d.cts} +1 -1
  3. package/dist/{_commerce-core-CNEI4Gdg.d.ts → _commerce-core-C496pk4y.d.ts} +1 -1
  4. package/dist/index.cjs +26 -2
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +32 -2
  7. package/dist/index.d.ts +32 -2
  8. package/dist/index.js +26 -2
  9. package/dist/index.js.map +1 -1
  10. package/dist/integrations/amazon.d.cts +2 -2
  11. package/dist/integrations/amazon.d.ts +2 -2
  12. package/dist/integrations/anthropic.d.cts +1 -1
  13. package/dist/integrations/anthropic.d.ts +1 -1
  14. package/dist/integrations/ap2.d.cts +1 -1
  15. package/dist/integrations/ap2.d.ts +1 -1
  16. package/dist/integrations/aws-iam.d.cts +1 -1
  17. package/dist/integrations/aws-iam.d.ts +1 -1
  18. package/dist/integrations/bank-rails.d.cts +1 -1
  19. package/dist/integrations/bank-rails.d.ts +1 -1
  20. package/dist/integrations/circle.d.cts +1 -1
  21. package/dist/integrations/circle.d.ts +1 -1
  22. package/dist/integrations/cloudflare.d.cts +1 -1
  23. package/dist/integrations/cloudflare.d.ts +1 -1
  24. package/dist/integrations/coinbase-cdp.d.cts +1 -1
  25. package/dist/integrations/coinbase-cdp.d.ts +1 -1
  26. package/dist/integrations/commerce-agents.d.cts +1 -1
  27. package/dist/integrations/commerce-agents.d.ts +1 -1
  28. package/dist/integrations/crewai.d.cts +1 -1
  29. package/dist/integrations/crewai.d.ts +1 -1
  30. package/dist/integrations/delivery.d.cts +2 -2
  31. package/dist/integrations/delivery.d.ts +2 -2
  32. package/dist/integrations/ebay.d.cts +2 -2
  33. package/dist/integrations/ebay.d.ts +2 -2
  34. package/dist/integrations/entra.d.cts +1 -1
  35. package/dist/integrations/entra.d.ts +1 -1
  36. package/dist/integrations/etsy.d.cts +2 -2
  37. package/dist/integrations/etsy.d.ts +2 -2
  38. package/dist/integrations/eu-providers.d.cts +1 -1
  39. package/dist/integrations/eu-providers.d.ts +1 -1
  40. package/dist/integrations/fhir.d.cts +1 -1
  41. package/dist/integrations/fhir.d.ts +1 -1
  42. package/dist/integrations/google-merchant.d.cts +2 -2
  43. package/dist/integrations/google-merchant.d.ts +2 -2
  44. package/dist/integrations/grok.d.cts +1 -1
  45. package/dist/integrations/grok.d.ts +1 -1
  46. package/dist/integrations/guidewire.d.cts +1 -1
  47. package/dist/integrations/guidewire.d.ts +1 -1
  48. package/dist/integrations/hermes.d.cts +1 -1
  49. package/dist/integrations/hermes.d.ts +1 -1
  50. package/dist/integrations/jira.d.cts +1 -1
  51. package/dist/integrations/jira.d.ts +1 -1
  52. package/dist/integrations/langchain.d.cts +1 -1
  53. package/dist/integrations/langchain.d.ts +1 -1
  54. package/dist/integrations/langgraph.d.cts +1 -1
  55. package/dist/integrations/langgraph.d.ts +1 -1
  56. package/dist/integrations/legal.d.cts +1 -1
  57. package/dist/integrations/legal.d.ts +1 -1
  58. package/dist/integrations/life-sciences.d.cts +1 -1
  59. package/dist/integrations/life-sciences.d.ts +1 -1
  60. package/dist/integrations/linear.d.cts +1 -1
  61. package/dist/integrations/linear.d.ts +1 -1
  62. package/dist/integrations/lithic.d.cts +1 -1
  63. package/dist/integrations/lithic.d.ts +1 -1
  64. package/dist/integrations/llamaindex.d.cts +1 -1
  65. package/dist/integrations/llamaindex.d.ts +1 -1
  66. package/dist/integrations/marqeta.d.cts +1 -1
  67. package/dist/integrations/marqeta.d.ts +1 -1
  68. package/dist/integrations/meta.d.cts +2 -2
  69. package/dist/integrations/meta.d.ts +2 -2
  70. package/dist/integrations/mistral.d.cts +1 -1
  71. package/dist/integrations/mistral.d.ts +1 -1
  72. package/dist/integrations/modern-treasury.d.cts +1 -1
  73. package/dist/integrations/modern-treasury.d.ts +1 -1
  74. package/dist/integrations/muse.d.cts +1 -1
  75. package/dist/integrations/muse.d.ts +1 -1
  76. package/dist/integrations/nekuda.d.cts +1 -1
  77. package/dist/integrations/nekuda.d.ts +1 -1
  78. package/dist/integrations/okta.d.cts +1 -1
  79. package/dist/integrations/okta.d.ts +1 -1
  80. package/dist/integrations/openai.d.cts +1 -1
  81. package/dist/integrations/openai.d.ts +1 -1
  82. package/dist/integrations/openrouter.d.cts +1 -1
  83. package/dist/integrations/openrouter.d.ts +1 -1
  84. package/dist/integrations/paypal-agent.d.cts +1 -1
  85. package/dist/integrations/paypal-agent.d.ts +1 -1
  86. package/dist/integrations/perplexity.d.cts +1 -1
  87. package/dist/integrations/perplexity.d.ts +1 -1
  88. package/dist/integrations/plaid.d.cts +1 -1
  89. package/dist/integrations/plaid.d.ts +1 -1
  90. package/dist/integrations/ramp.d.cts +1 -1
  91. package/dist/integrations/ramp.d.ts +1 -1
  92. package/dist/integrations/shopify.d.cts +1 -1
  93. package/dist/integrations/shopify.d.ts +1 -1
  94. package/dist/integrations/siem.d.cts +1 -1
  95. package/dist/integrations/siem.d.ts +1 -1
  96. package/dist/integrations/skyfire.d.cts +1 -1
  97. package/dist/integrations/skyfire.d.ts +1 -1
  98. package/dist/integrations/social-ads.d.cts +2 -2
  99. package/dist/integrations/social-ads.d.ts +2 -2
  100. package/dist/integrations/stripe-acp.d.cts +1 -1
  101. package/dist/integrations/stripe-acp.d.ts +1 -1
  102. package/dist/integrations/stripe-issuing.d.cts +1 -1
  103. package/dist/integrations/stripe-issuing.d.ts +1 -1
  104. package/dist/integrations/tiktok-shop.d.cts +2 -2
  105. package/dist/integrations/tiktok-shop.d.ts +2 -2
  106. package/dist/integrations/truanon.d.cts +1 -1
  107. package/dist/integrations/truanon.d.ts +1 -1
  108. package/dist/integrations/typesafe.d.cts +1 -1
  109. package/dist/integrations/typesafe.d.ts +1 -1
  110. package/dist/integrations/ucp.d.cts +1 -1
  111. package/dist/integrations/ucp.d.ts +1 -1
  112. package/dist/integrations/vercel-ai.d.cts +1 -1
  113. package/dist/integrations/vercel-ai.d.ts +1 -1
  114. package/dist/integrations/walmart.d.cts +2 -2
  115. package/dist/integrations/walmart.d.ts +2 -2
  116. package/dist/integrations/x402.d.cts +1 -1
  117. package/dist/integrations/x402.d.ts +1 -1
  118. package/dist/{types-xwj0DQPS.d.cts → types-B0UJBwuB.d.cts} +11 -0
  119. package/dist/{types-xwj0DQPS.d.ts → types-B0UJBwuB.d.ts} +11 -0
  120. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AgentRegistrationResult, R as RuntimeDecision, a as AgentRegistrationInput, T as TrustRecord, b as Agent, S as SuspendPreview, P as PermissionScope, c as PermissionCheckResult, D as DelegationLinkClaims, d as AgentDelegationRecord, W as WorkflowProvenanceGraph, C as CapabilityProfile, e as SharedMemoryWriteInput, f as SharedMemoryEntry, g as SharedMemoryListResult, B as BeforeActionInput, h as TokenBudgetInput, i as TokenBudget, j as BudgetSpend, k as AuditEventInput, l as SwarmView, m as DeclareIntentInput, I as Intent, n as CreateMandateInput, o as CustomerSignature, G as GatewayCheckInput } from './types-xwj0DQPS.cjs';
2
- export { p as AgentStatus, q as ApprovalAttestation, r as AuditEventType, s as AuditResult, t as BudgetEnforcement, u as BudgetScope, v as DecisionVerdict, M as MandateTerms, w as WorkflowGraphEdge, x as WorkflowGraphEvent, y as WorkflowGraphNode } from './types-xwj0DQPS.cjs';
1
+ import { A as AgentRegistrationResult, R as RuntimeDecision, a as AgentRegistrationInput, T as TrustRecord, b as Agent, S as SuspendPreview, P as PermissionScope, c as PermissionCheckResult, D as DelegationLinkClaims, d as AgentDelegationRecord, W as WorkflowProvenanceGraph, C as CapabilityProfile, e as SharedMemoryWriteInput, f as SharedMemoryEntry, g as SharedMemoryListResult, B as BeforeActionInput, h as TokenBudgetInput, i as TokenBudget, j as BudgetSpend, k as AuditEventInput, l as SwarmView, m as DeclareIntentInput, I as Intent, n as CreateMandateInput, o as CustomerSignature, G as GatewayCheckInput } from './types-B0UJBwuB.cjs';
2
+ export { p as AgentStatus, q as ApprovalAttestation, r as AuditEventType, s as AuditResult, t as BudgetEnforcement, u as BudgetScope, v as DecisionVerdict, M as MandateTerms, w as WorkflowGraphEdge, x as WorkflowGraphEvent, y as WorkflowGraphNode } from './types-B0UJBwuB.cjs';
3
3
  import { PortableSignedReceipt } from '@vorim/shared-types';
4
4
  export { PortableSignedReceipt, portableReceiptCanonicalBytes } from '@vorim/shared-types';
5
5
  import { HttpRequestLike, SignHttpRequestOptions, SignHttpRequestResult } from './httpSignatures.cjs';
@@ -1413,7 +1413,37 @@ declare class VorimSDK {
1413
1413
  holdingReplyAt?: string | null;
1414
1414
  finalResponseAt?: string | null;
1415
1415
  exceptional?: boolean;
1416
+ /** 4.8: the customer asked for a person to review, who did, when, and the plain-English answer given. */
1417
+ reviewRequestedAt?: string | null;
1418
+ reviewBy?: string | null;
1419
+ reviewDoneAt?: string | null;
1420
+ reviewAnswer?: string | null;
1416
1421
  }): Promise<any>;
1422
+ /**
1423
+ * A customer's own AI agent has contacted you (4.8). Record it: Vorim checks
1424
+ * the agent (`verify` is `{ method: 'rfc9421', request }`, `{ method: 'tap', url, headers }`,
1425
+ * `{ method: 'kya', document }` or `{ method: 'none', claimed_as? }`) and keeps the result.
1426
+ */
1427
+ openInboundAgentContact(input: {
1428
+ ref: string;
1429
+ channel: 'chat' | 'api' | 'voice' | 'email' | 'other';
1430
+ customerRef?: string;
1431
+ caseRef?: string;
1432
+ firmAgentId?: string;
1433
+ verify: Record<string, unknown>;
1434
+ }): Promise<any>;
1435
+ /** What happened next: asked, answered, action (with its decisionId), person_offered, handed_to_person, closed. */
1436
+ addInboundAgentEvent(ref: string, input: {
1437
+ kind: 'asked' | 'answered' | 'action' | 'person_offered' | 'handed_to_person' | 'closed';
1438
+ summary?: string;
1439
+ decisionId?: string;
1440
+ at?: string;
1441
+ }): Promise<any>;
1442
+ listInboundAgentContacts(params?: {
1443
+ days?: number;
1444
+ }): Promise<any>;
1445
+ /** The sealed record of one contact, with the gaps a complaint handler will ask about. */
1446
+ getInboundAgentRecord(ref: string): Promise<any>;
1417
1447
  /** Three sealed sample documents (made-up facts, real signatures) and the platform key. Public. */
1418
1448
  getPublicSampleEvidence(): Promise<{
1419
1449
  generated_at: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AgentRegistrationResult, R as RuntimeDecision, a as AgentRegistrationInput, T as TrustRecord, b as Agent, S as SuspendPreview, P as PermissionScope, c as PermissionCheckResult, D as DelegationLinkClaims, d as AgentDelegationRecord, W as WorkflowProvenanceGraph, C as CapabilityProfile, e as SharedMemoryWriteInput, f as SharedMemoryEntry, g as SharedMemoryListResult, B as BeforeActionInput, h as TokenBudgetInput, i as TokenBudget, j as BudgetSpend, k as AuditEventInput, l as SwarmView, m as DeclareIntentInput, I as Intent, n as CreateMandateInput, o as CustomerSignature, G as GatewayCheckInput } from './types-xwj0DQPS.js';
2
- export { p as AgentStatus, q as ApprovalAttestation, r as AuditEventType, s as AuditResult, t as BudgetEnforcement, u as BudgetScope, v as DecisionVerdict, M as MandateTerms, w as WorkflowGraphEdge, x as WorkflowGraphEvent, y as WorkflowGraphNode } from './types-xwj0DQPS.js';
1
+ import { A as AgentRegistrationResult, R as RuntimeDecision, a as AgentRegistrationInput, T as TrustRecord, b as Agent, S as SuspendPreview, P as PermissionScope, c as PermissionCheckResult, D as DelegationLinkClaims, d as AgentDelegationRecord, W as WorkflowProvenanceGraph, C as CapabilityProfile, e as SharedMemoryWriteInput, f as SharedMemoryEntry, g as SharedMemoryListResult, B as BeforeActionInput, h as TokenBudgetInput, i as TokenBudget, j as BudgetSpend, k as AuditEventInput, l as SwarmView, m as DeclareIntentInput, I as Intent, n as CreateMandateInput, o as CustomerSignature, G as GatewayCheckInput } from './types-B0UJBwuB.js';
2
+ export { p as AgentStatus, q as ApprovalAttestation, r as AuditEventType, s as AuditResult, t as BudgetEnforcement, u as BudgetScope, v as DecisionVerdict, M as MandateTerms, w as WorkflowGraphEdge, x as WorkflowGraphEvent, y as WorkflowGraphNode } from './types-B0UJBwuB.js';
3
3
  import { PortableSignedReceipt } from '@vorim/shared-types';
4
4
  export { PortableSignedReceipt, portableReceiptCanonicalBytes } from '@vorim/shared-types';
5
5
  import { HttpRequestLike, SignHttpRequestOptions, SignHttpRequestResult } from './httpSignatures.js';
@@ -1413,7 +1413,37 @@ declare class VorimSDK {
1413
1413
  holdingReplyAt?: string | null;
1414
1414
  finalResponseAt?: string | null;
1415
1415
  exceptional?: boolean;
1416
+ /** 4.8: the customer asked for a person to review, who did, when, and the plain-English answer given. */
1417
+ reviewRequestedAt?: string | null;
1418
+ reviewBy?: string | null;
1419
+ reviewDoneAt?: string | null;
1420
+ reviewAnswer?: string | null;
1416
1421
  }): Promise<any>;
1422
+ /**
1423
+ * A customer's own AI agent has contacted you (4.8). Record it: Vorim checks
1424
+ * the agent (`verify` is `{ method: 'rfc9421', request }`, `{ method: 'tap', url, headers }`,
1425
+ * `{ method: 'kya', document }` or `{ method: 'none', claimed_as? }`) and keeps the result.
1426
+ */
1427
+ openInboundAgentContact(input: {
1428
+ ref: string;
1429
+ channel: 'chat' | 'api' | 'voice' | 'email' | 'other';
1430
+ customerRef?: string;
1431
+ caseRef?: string;
1432
+ firmAgentId?: string;
1433
+ verify: Record<string, unknown>;
1434
+ }): Promise<any>;
1435
+ /** What happened next: asked, answered, action (with its decisionId), person_offered, handed_to_person, closed. */
1436
+ addInboundAgentEvent(ref: string, input: {
1437
+ kind: 'asked' | 'answered' | 'action' | 'person_offered' | 'handed_to_person' | 'closed';
1438
+ summary?: string;
1439
+ decisionId?: string;
1440
+ at?: string;
1441
+ }): Promise<any>;
1442
+ listInboundAgentContacts(params?: {
1443
+ days?: number;
1444
+ }): Promise<any>;
1445
+ /** The sealed record of one contact, with the gaps a complaint handler will ask about. */
1446
+ getInboundAgentRecord(ref: string): Promise<any>;
1417
1447
  /** Three sealed sample documents (made-up facts, real signatures) and the platform key. Public. */
1418
1448
  getPublicSampleEvidence(): Promise<{
1419
1449
  generated_at: string;
package/dist/index.js CHANGED
@@ -875,7 +875,7 @@ function canonicalIntent(value) {
875
875
  const keys = Object.keys(obj).filter((k) => obj[k] !== void 0).sort();
876
876
  return `{${keys.map((k) => `${JSON.stringify(k)}:${canonicalIntent(obj[k])}`).join(",")}}`;
877
877
  }
878
- var SDK_VERSION = true ? "4.7.0" : "0.0.0";
878
+ var SDK_VERSION = true ? "4.8.0" : "0.0.0";
879
879
  var USER_AGENT = `vorim-sdk/${SDK_VERSION}`;
880
880
  function sleep(ms) {
881
881
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -1499,7 +1499,8 @@ var VorimSDK = class _VorimSDK {
1499
1499
  traceparent: input.traceparent,
1500
1500
  intent_id: input.intentId,
1501
1501
  case_ref: input.caseRef,
1502
- mandate_id: input.mandateId
1502
+ mandate_id: input.mandateId,
1503
+ sources: input.sources
1503
1504
  };
1504
1505
  let raw;
1505
1506
  try {
@@ -2416,12 +2417,35 @@ var VorimSDK = class _VorimSDK {
2416
2417
  /** Record when a person stepped in, any holding reply, and the final response. `null` clears a field. */
2417
2418
  async updateComplaint(ref, input) {
2418
2419
  const body = {};
2420
+ if (input.reviewRequestedAt !== void 0) body.review_requested_at = input.reviewRequestedAt;
2421
+ if (input.reviewBy !== void 0) body.review_by = input.reviewBy;
2422
+ if (input.reviewDoneAt !== void 0) body.review_done_at = input.reviewDoneAt;
2423
+ if (input.reviewAnswer !== void 0) body.review_answer = input.reviewAnswer;
2419
2424
  if (input.toPersonAt !== void 0) body.to_person_at = input.toPersonAt;
2420
2425
  if (input.holdingReplyAt !== void 0) body.holding_reply_at = input.holdingReplyAt;
2421
2426
  if (input.finalResponseAt !== void 0) body.final_response_at = input.finalResponseAt;
2422
2427
  if (input.exceptional !== void 0) body.exceptional = input.exceptional;
2423
2428
  return this.patch(`/evidence/complaints/${encodeURIComponent(ref)}`, body);
2424
2429
  }
2430
+ /**
2431
+ * A customer's own AI agent has contacted you (4.8). Record it: Vorim checks
2432
+ * the agent (`verify` is `{ method: 'rfc9421', request }`, `{ method: 'tap', url, headers }`,
2433
+ * `{ method: 'kya', document }` or `{ method: 'none', claimed_as? }`) and keeps the result.
2434
+ */
2435
+ async openInboundAgentContact(input) {
2436
+ 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 });
2437
+ }
2438
+ /** What happened next: asked, answered, action (with its decisionId), person_offered, handed_to_person, closed. */
2439
+ async addInboundAgentEvent(ref, input) {
2440
+ return this.post(`/evidence/inbound-agents/${encodeURIComponent(ref)}/events`, { kind: input.kind, summary: input.summary, decision_id: input.decisionId, at: input.at });
2441
+ }
2442
+ async listInboundAgentContacts(params = {}) {
2443
+ return this.get(`/evidence/inbound-agents${params.days ? `?days=${encodeURIComponent(String(params.days))}` : ""}`);
2444
+ }
2445
+ /** The sealed record of one contact, with the gaps a complaint handler will ask about. */
2446
+ async getInboundAgentRecord(ref) {
2447
+ return this.get(`/evidence/inbound-agents/${encodeURIComponent(ref)}`);
2448
+ }
2425
2449
  /** Three sealed sample documents (made-up facts, real signatures) and the platform key. Public. */
2426
2450
  async getPublicSampleEvidence() {
2427
2451
  return this.get("/evidence/public-sample");