@vorim/sdk 4.3.0 → 4.4.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 +10 -0
- package/dist/{_commerce-core-BQbISpWe.d.cts → _commerce-core-B800cza0.d.cts} +1 -1
- package/dist/{_commerce-core-BIqTJ7Om.d.ts → _commerce-core-Bv_2hfKP.d.ts} +1 -1
- package/dist/index.cjs +21 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +21 -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-DwPEBj7p.d.cts → types-BI7fk5gL.d.cts} +12 -1
- package/dist/{types-DwPEBj7p.d.ts → types-BI7fk5gL.d.ts} +12 -1
- 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 } from './types-
|
|
2
|
-
export { n as AgentStatus, o as ApprovalAttestation, p as AuditEventType, q as AuditResult, r as BudgetEnforcement, s as BudgetScope, t as DecisionVerdict, u as WorkflowGraphEdge, v as WorkflowGraphEvent, w as WorkflowGraphNode } from './types-
|
|
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 } from './types-BI7fk5gL.cjs';
|
|
2
|
+
export { n as AgentStatus, o as ApprovalAttestation, p as AuditEventType, q as AuditResult, r as BudgetEnforcement, s as BudgetScope, t as DecisionVerdict, u as WorkflowGraphEdge, v as WorkflowGraphEvent, w as WorkflowGraphNode } from './types-BI7fk5gL.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';
|
|
@@ -1068,6 +1068,17 @@ declare class VorimSDK {
|
|
|
1068
1068
|
* await vorim.completeIntent(intent.intent_id, 'completed', 'Refunded 79.00');
|
|
1069
1069
|
*/
|
|
1070
1070
|
declareIntent(input: DeclareIntentInput): Promise<Intent>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Record whether an intent achieved what it set out to do. Once only: a
|
|
1073
|
+
* second call is refused with 409 OUTCOME_RECORDED. With an API key it is
|
|
1074
|
+
* recorded as the agent's own assessment; a person reviewing in the
|
|
1075
|
+
* dashboard is recorded as the operator.
|
|
1076
|
+
*/
|
|
1077
|
+
recordIntentOutcome(intentId: string, result: 'met' | 'partly_met' | 'not_met', note?: string): Promise<any>;
|
|
1078
|
+
/** Outcome summary for the last `days` (default 30) plus the reviews that are due. */
|
|
1079
|
+
getIntentOutcomes(params?: {
|
|
1080
|
+
days?: number;
|
|
1081
|
+
}): Promise<any>;
|
|
1071
1082
|
/** A platform-signed ledger of intents over a period, for a counterparty to verify offline. */
|
|
1072
1083
|
getIntentLedger(params?: {
|
|
1073
1084
|
agentId?: 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 } from './types-
|
|
2
|
-
export { n as AgentStatus, o as ApprovalAttestation, p as AuditEventType, q as AuditResult, r as BudgetEnforcement, s as BudgetScope, t as DecisionVerdict, u as WorkflowGraphEdge, v as WorkflowGraphEvent, w as WorkflowGraphNode } from './types-
|
|
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 } from './types-BI7fk5gL.js';
|
|
2
|
+
export { n as AgentStatus, o as ApprovalAttestation, p as AuditEventType, q as AuditResult, r as BudgetEnforcement, s as BudgetScope, t as DecisionVerdict, u as WorkflowGraphEdge, v as WorkflowGraphEvent, w as WorkflowGraphNode } from './types-BI7fk5gL.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';
|
|
@@ -1068,6 +1068,17 @@ declare class VorimSDK {
|
|
|
1068
1068
|
* await vorim.completeIntent(intent.intent_id, 'completed', 'Refunded 79.00');
|
|
1069
1069
|
*/
|
|
1070
1070
|
declareIntent(input: DeclareIntentInput): Promise<Intent>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Record whether an intent achieved what it set out to do. Once only: a
|
|
1073
|
+
* second call is refused with 409 OUTCOME_RECORDED. With an API key it is
|
|
1074
|
+
* recorded as the agent's own assessment; a person reviewing in the
|
|
1075
|
+
* dashboard is recorded as the operator.
|
|
1076
|
+
*/
|
|
1077
|
+
recordIntentOutcome(intentId: string, result: 'met' | 'partly_met' | 'not_met', note?: string): Promise<any>;
|
|
1078
|
+
/** Outcome summary for the last `days` (default 30) plus the reviews that are due. */
|
|
1079
|
+
getIntentOutcomes(params?: {
|
|
1080
|
+
days?: number;
|
|
1081
|
+
}): Promise<any>;
|
|
1071
1082
|
/** A platform-signed ledger of intents over a period, for a counterparty to verify offline. */
|
|
1072
1083
|
getIntentLedger(params?: {
|
|
1073
1084
|
agentId?: 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.
|
|
878
|
+
var SDK_VERSION = true ? "4.4.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));
|
|
@@ -2028,7 +2028,26 @@ var VorimSDK = class _VorimSDK {
|
|
|
2028
2028
|
const signature = await this.sign(canonicalIntent({ type: "vorim-agent-intent", v: 1, ...fields, signed_at }), key);
|
|
2029
2029
|
signed = { signature, signed_at };
|
|
2030
2030
|
}
|
|
2031
|
-
return this.post("/intents", {
|
|
2031
|
+
return this.post("/intents", {
|
|
2032
|
+
...fields,
|
|
2033
|
+
workflow_id: input.workflowId,
|
|
2034
|
+
...signed,
|
|
2035
|
+
expected_outcome: input.expectedOutcome,
|
|
2036
|
+
review_at: input.reviewAt
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* Record whether an intent achieved what it set out to do. Once only: a
|
|
2041
|
+
* second call is refused with 409 OUTCOME_RECORDED. With an API key it is
|
|
2042
|
+
* recorded as the agent's own assessment; a person reviewing in the
|
|
2043
|
+
* dashboard is recorded as the operator.
|
|
2044
|
+
*/
|
|
2045
|
+
async recordIntentOutcome(intentId, result, note) {
|
|
2046
|
+
return this.post(`/intents/${encodeURIComponent(intentId)}/outcome`, { result, note });
|
|
2047
|
+
}
|
|
2048
|
+
/** Outcome summary for the last `days` (default 30) plus the reviews that are due. */
|
|
2049
|
+
async getIntentOutcomes(params = {}) {
|
|
2050
|
+
return this.get(`/intents/outcomes${params.days ? `?days=${encodeURIComponent(String(params.days))}` : ""}`);
|
|
2032
2051
|
}
|
|
2033
2052
|
/** A platform-signed ledger of intents over a period, for a counterparty to verify offline. */
|
|
2034
2053
|
async getIntentLedger(params = {}) {
|