@vorim/sdk 3.20.0 → 3.22.1

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 (105) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +12 -6
  3. package/dist/index.cjs +117 -3
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +43 -2
  6. package/dist/index.d.ts +43 -2
  7. package/dist/index.js +116 -3
  8. package/dist/index.js.map +1 -1
  9. package/dist/integrations/anthropic.d.cts +2 -1
  10. package/dist/integrations/anthropic.d.ts +2 -1
  11. package/dist/integrations/ap2.d.cts +2 -1
  12. package/dist/integrations/ap2.d.ts +2 -1
  13. package/dist/integrations/aws-iam.d.cts +2 -1
  14. package/dist/integrations/aws-iam.d.ts +2 -1
  15. package/dist/integrations/bank-rails.d.cts +2 -1
  16. package/dist/integrations/bank-rails.d.ts +2 -1
  17. package/dist/integrations/circle.d.cts +2 -1
  18. package/dist/integrations/circle.d.ts +2 -1
  19. package/dist/integrations/cloudflare.d.cts +2 -1
  20. package/dist/integrations/cloudflare.d.ts +2 -1
  21. package/dist/integrations/coinbase-cdp.d.cts +2 -1
  22. package/dist/integrations/coinbase-cdp.d.ts +2 -1
  23. package/dist/integrations/commerce-agents.d.cts +2 -1
  24. package/dist/integrations/commerce-agents.d.ts +2 -1
  25. package/dist/integrations/crewai.d.cts +2 -1
  26. package/dist/integrations/crewai.d.ts +2 -1
  27. package/dist/integrations/entra.d.cts +2 -1
  28. package/dist/integrations/entra.d.ts +2 -1
  29. package/dist/integrations/fhir.d.cts +2 -1
  30. package/dist/integrations/fhir.d.ts +2 -1
  31. package/dist/integrations/grok.d.cts +2 -1
  32. package/dist/integrations/grok.d.ts +2 -1
  33. package/dist/integrations/guidewire.d.cts +2 -1
  34. package/dist/integrations/guidewire.d.ts +2 -1
  35. package/dist/integrations/hermes.d.cts +2 -1
  36. package/dist/integrations/hermes.d.ts +2 -1
  37. package/dist/integrations/jira.d.cts +2 -1
  38. package/dist/integrations/jira.d.ts +2 -1
  39. package/dist/integrations/langchain.d.cts +2 -1
  40. package/dist/integrations/langchain.d.ts +2 -1
  41. package/dist/integrations/langgraph.d.cts +2 -1
  42. package/dist/integrations/langgraph.d.ts +2 -1
  43. package/dist/integrations/legal.d.cts +2 -1
  44. package/dist/integrations/legal.d.ts +2 -1
  45. package/dist/integrations/life-sciences.d.cts +2 -1
  46. package/dist/integrations/life-sciences.d.ts +2 -1
  47. package/dist/integrations/linear.d.cts +2 -1
  48. package/dist/integrations/linear.d.ts +2 -1
  49. package/dist/integrations/lithic.d.cts +2 -1
  50. package/dist/integrations/lithic.d.ts +2 -1
  51. package/dist/integrations/llamaindex.d.cts +2 -1
  52. package/dist/integrations/llamaindex.d.ts +2 -1
  53. package/dist/integrations/marqeta.d.cts +2 -1
  54. package/dist/integrations/marqeta.d.ts +2 -1
  55. package/dist/integrations/modern-treasury.d.cts +2 -1
  56. package/dist/integrations/modern-treasury.d.ts +2 -1
  57. package/dist/integrations/muse.cjs +437 -0
  58. package/dist/integrations/muse.cjs.map +1 -0
  59. package/dist/integrations/muse.d.cts +72 -0
  60. package/dist/integrations/muse.d.ts +72 -0
  61. package/dist/integrations/muse.js +394 -0
  62. package/dist/integrations/muse.js.map +1 -0
  63. package/dist/integrations/nekuda.d.cts +2 -1
  64. package/dist/integrations/nekuda.d.ts +2 -1
  65. package/dist/integrations/okta.d.cts +2 -1
  66. package/dist/integrations/okta.d.ts +2 -1
  67. package/dist/integrations/openai.d.cts +2 -1
  68. package/dist/integrations/openai.d.ts +2 -1
  69. package/dist/integrations/openrouter.d.cts +2 -1
  70. package/dist/integrations/openrouter.d.ts +2 -1
  71. package/dist/integrations/paypal-agent.d.cts +2 -1
  72. package/dist/integrations/paypal-agent.d.ts +2 -1
  73. package/dist/integrations/perplexity.d.cts +2 -1
  74. package/dist/integrations/perplexity.d.ts +2 -1
  75. package/dist/integrations/plaid.d.cts +2 -1
  76. package/dist/integrations/plaid.d.ts +2 -1
  77. package/dist/integrations/ramp.d.cts +2 -1
  78. package/dist/integrations/ramp.d.ts +2 -1
  79. package/dist/integrations/shopify.d.cts +2 -1
  80. package/dist/integrations/shopify.d.ts +2 -1
  81. package/dist/integrations/siem.d.cts +1 -1
  82. package/dist/integrations/siem.d.ts +1 -1
  83. package/dist/integrations/skyfire.d.cts +2 -1
  84. package/dist/integrations/skyfire.d.ts +2 -1
  85. package/dist/integrations/stripe-acp.d.cts +2 -1
  86. package/dist/integrations/stripe-acp.d.ts +2 -1
  87. package/dist/integrations/stripe-issuing.d.cts +2 -1
  88. package/dist/integrations/stripe-issuing.d.ts +2 -1
  89. package/dist/integrations/truanon.d.cts +2 -1
  90. package/dist/integrations/truanon.d.ts +2 -1
  91. package/dist/integrations/typesafe.cjs +268 -0
  92. package/dist/integrations/typesafe.cjs.map +1 -0
  93. package/dist/integrations/typesafe.d.cts +145 -0
  94. package/dist/integrations/typesafe.d.ts +145 -0
  95. package/dist/integrations/typesafe.js +221 -0
  96. package/dist/integrations/typesafe.js.map +1 -0
  97. package/dist/integrations/ucp.d.cts +2 -1
  98. package/dist/integrations/ucp.d.ts +2 -1
  99. package/dist/integrations/vercel-ai.d.cts +2 -1
  100. package/dist/integrations/vercel-ai.d.ts +2 -1
  101. package/dist/integrations/x402.d.cts +2 -1
  102. package/dist/integrations/x402.d.ts +2 -1
  103. package/dist/{types-BmeluKHI.d.cts → types-BrDQAJdl.d.cts} +36 -1
  104. package/dist/{types-BmeluKHI.d.ts → types-BrDQAJdl.d.ts} +36 -1
  105. package/package.json +21 -1
@@ -296,6 +296,32 @@ interface BudgetSpend {
296
296
  month_used: number;
297
297
  }
298
298
  /** A runtime decision, as returned by {@link VorimSDK.beforeAction}. */
299
+ /**
300
+ * A platform-signed attestation that a human approved an escalation.
301
+ *
302
+ * Vorim signs this at resolve time with the platform key; verify it against
303
+ * the public key from `GET /trust/keys`, with Vorim outside the trust path.
304
+ * Present only on an escalation that resolved to APPROVED — a denial and an
305
+ * unsigned resolution both surface as `null`.
306
+ */
307
+ interface ApprovalAttestation {
308
+ resolution: 'approved';
309
+ /** ISO8601 — when the operator resolved it. */
310
+ resolvedAt: string;
311
+ /**
312
+ * Opaque reference to the approver: a role name (`role:payments-approver`)
313
+ * or a per-org commitment (`apr_…`). Never a raw user id — this object is
314
+ * designed to travel into portable receipts and external anchors, where a
315
+ * stable user identifier would be both a correlation handle and personal
316
+ * data. The signature still binds the true resolver.
317
+ */
318
+ approverRef: string | null;
319
+ alg: 'Ed25519';
320
+ /** Key id, resolvable via `GET /trust/keys`. */
321
+ kid: string;
322
+ /** `ed25519:<base64>` over the canonical attestation body. */
323
+ signature: string;
324
+ }
299
325
  interface RuntimeDecision {
300
326
  /** Server-assigned id. Carry into {@link AuditEventInput.decision_id}. */
301
327
  decisionId: string;
@@ -320,6 +346,15 @@ interface RuntimeDecision {
320
346
  * checks work — this field is the raw resolution for callers who want it.
321
347
  */
322
348
  escalationResolution: 'approved' | 'denied' | null;
349
+ /**
350
+ * The signed approval, when this decision is an escalation a human
351
+ * APPROVED. `null` on everything else — including a denial, and including
352
+ * an approval that predates attestation signing.
353
+ *
354
+ * Treat its absence as "no proof of human authority", not as a formality:
355
+ * an integration settling a consequential action should refuse without it.
356
+ */
357
+ approval: ApprovalAttestation | null;
323
358
  }
324
359
  interface WorkflowGraphNode {
325
360
  agent_id: string;
@@ -390,4 +425,4 @@ interface CapabilityProfile {
390
425
  alreadyLeastPrivilege: boolean;
391
426
  }
392
427
 
393
- export type { AgentRegistrationResult as A, BeforeActionInput as B, CapabilityProfile as C, DelegationLinkClaims as D, PermissionScope as P, RuntimeDecision as R, SharedMemoryWriteInput as S, TrustRecord as T, WorkflowProvenanceGraph as W, AgentRegistrationInput as a, Agent as b, PermissionCheckResult as c, AgentDelegationRecord as d, SharedMemoryEntry as e, SharedMemoryListResult as f, TokenBudgetInput as g, TokenBudget as h, BudgetSpend as i, AuditEventInput as j, AgentStatus as k, AuditEventType as l, AuditResult as m, BudgetEnforcement as n, BudgetScope as o, DecisionVerdict as p, WorkflowGraphEdge as q, WorkflowGraphEvent as r, WorkflowGraphNode as s };
428
+ export type { AgentRegistrationResult as A, BeforeActionInput as B, CapabilityProfile as C, DelegationLinkClaims as D, PermissionScope as P, RuntimeDecision as R, SharedMemoryWriteInput as S, TrustRecord as T, WorkflowProvenanceGraph as W, AgentRegistrationInput as a, Agent as b, PermissionCheckResult as c, AgentDelegationRecord as d, SharedMemoryEntry as e, SharedMemoryListResult as f, TokenBudgetInput as g, TokenBudget as h, BudgetSpend as i, AuditEventInput as j, AgentStatus as k, ApprovalAttestation as l, AuditEventType as m, AuditResult as n, BudgetEnforcement as o, BudgetScope as p, DecisionVerdict as q, WorkflowGraphEdge as r, WorkflowGraphEvent as s, WorkflowGraphNode as t };
@@ -296,6 +296,32 @@ interface BudgetSpend {
296
296
  month_used: number;
297
297
  }
298
298
  /** A runtime decision, as returned by {@link VorimSDK.beforeAction}. */
299
+ /**
300
+ * A platform-signed attestation that a human approved an escalation.
301
+ *
302
+ * Vorim signs this at resolve time with the platform key; verify it against
303
+ * the public key from `GET /trust/keys`, with Vorim outside the trust path.
304
+ * Present only on an escalation that resolved to APPROVED — a denial and an
305
+ * unsigned resolution both surface as `null`.
306
+ */
307
+ interface ApprovalAttestation {
308
+ resolution: 'approved';
309
+ /** ISO8601 — when the operator resolved it. */
310
+ resolvedAt: string;
311
+ /**
312
+ * Opaque reference to the approver: a role name (`role:payments-approver`)
313
+ * or a per-org commitment (`apr_…`). Never a raw user id — this object is
314
+ * designed to travel into portable receipts and external anchors, where a
315
+ * stable user identifier would be both a correlation handle and personal
316
+ * data. The signature still binds the true resolver.
317
+ */
318
+ approverRef: string | null;
319
+ alg: 'Ed25519';
320
+ /** Key id, resolvable via `GET /trust/keys`. */
321
+ kid: string;
322
+ /** `ed25519:<base64>` over the canonical attestation body. */
323
+ signature: string;
324
+ }
299
325
  interface RuntimeDecision {
300
326
  /** Server-assigned id. Carry into {@link AuditEventInput.decision_id}. */
301
327
  decisionId: string;
@@ -320,6 +346,15 @@ interface RuntimeDecision {
320
346
  * checks work — this field is the raw resolution for callers who want it.
321
347
  */
322
348
  escalationResolution: 'approved' | 'denied' | null;
349
+ /**
350
+ * The signed approval, when this decision is an escalation a human
351
+ * APPROVED. `null` on everything else — including a denial, and including
352
+ * an approval that predates attestation signing.
353
+ *
354
+ * Treat its absence as "no proof of human authority", not as a formality:
355
+ * an integration settling a consequential action should refuse without it.
356
+ */
357
+ approval: ApprovalAttestation | null;
323
358
  }
324
359
  interface WorkflowGraphNode {
325
360
  agent_id: string;
@@ -390,4 +425,4 @@ interface CapabilityProfile {
390
425
  alreadyLeastPrivilege: boolean;
391
426
  }
392
427
 
393
- export type { AgentRegistrationResult as A, BeforeActionInput as B, CapabilityProfile as C, DelegationLinkClaims as D, PermissionScope as P, RuntimeDecision as R, SharedMemoryWriteInput as S, TrustRecord as T, WorkflowProvenanceGraph as W, AgentRegistrationInput as a, Agent as b, PermissionCheckResult as c, AgentDelegationRecord as d, SharedMemoryEntry as e, SharedMemoryListResult as f, TokenBudgetInput as g, TokenBudget as h, BudgetSpend as i, AuditEventInput as j, AgentStatus as k, AuditEventType as l, AuditResult as m, BudgetEnforcement as n, BudgetScope as o, DecisionVerdict as p, WorkflowGraphEdge as q, WorkflowGraphEvent as r, WorkflowGraphNode as s };
428
+ export type { AgentRegistrationResult as A, BeforeActionInput as B, CapabilityProfile as C, DelegationLinkClaims as D, PermissionScope as P, RuntimeDecision as R, SharedMemoryWriteInput as S, TrustRecord as T, WorkflowProvenanceGraph as W, AgentRegistrationInput as a, Agent as b, PermissionCheckResult as c, AgentDelegationRecord as d, SharedMemoryEntry as e, SharedMemoryListResult as f, TokenBudgetInput as g, TokenBudget as h, BudgetSpend as i, AuditEventInput as j, AgentStatus as k, ApprovalAttestation as l, AuditEventType as m, AuditResult as n, BudgetEnforcement as o, BudgetScope as p, DecisionVerdict as q, WorkflowGraphEdge as r, WorkflowGraphEvent as s, WorkflowGraphNode as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vorim/sdk",
3
- "version": "3.20.0",
3
+ "version": "3.22.1",
4
4
  "description": "Official TypeScript SDK for Vorim AI — AI Agent Identity, Permissions & Audit",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -57,6 +57,26 @@
57
57
  "default": "./dist/integrations/openrouter.cjs"
58
58
  }
59
59
  },
60
+ "./integrations/muse": {
61
+ "import": {
62
+ "types": "./dist/integrations/muse.d.ts",
63
+ "default": "./dist/integrations/muse.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/integrations/muse.d.cts",
67
+ "default": "./dist/integrations/muse.cjs"
68
+ }
69
+ },
70
+ "./integrations/typesafe": {
71
+ "import": {
72
+ "types": "./dist/integrations/typesafe.d.ts",
73
+ "default": "./dist/integrations/typesafe.js"
74
+ },
75
+ "require": {
76
+ "types": "./dist/integrations/typesafe.d.cts",
77
+ "default": "./dist/integrations/typesafe.cjs"
78
+ }
79
+ },
60
80
  "./integrations/perplexity": {
61
81
  "import": {
62
82
  "types": "./dist/integrations/perplexity.d.ts",