@vorim/sdk 3.8.1 → 3.9.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/dist/index.cjs +208 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +133 -3
- package/dist/index.d.ts +133 -3
- package/dist/index.js +208 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/anthropic.d.cts +1 -1
- package/dist/integrations/anthropic.d.ts +1 -1
- package/dist/integrations/ap2.cjs +218 -0
- package/dist/integrations/ap2.cjs.map +1 -0
- package/dist/integrations/ap2.d.cts +95 -0
- package/dist/integrations/ap2.d.ts +95 -0
- package/dist/integrations/ap2.js +192 -0
- package/dist/integrations/ap2.js.map +1 -0
- package/dist/integrations/bank-rails.cjs +173 -0
- package/dist/integrations/bank-rails.cjs.map +1 -0
- package/dist/integrations/bank-rails.d.cts +87 -0
- package/dist/integrations/bank-rails.d.ts +87 -0
- package/dist/integrations/bank-rails.js +147 -0
- package/dist/integrations/bank-rails.js.map +1 -0
- package/dist/integrations/circle.cjs +159 -0
- package/dist/integrations/circle.cjs.map +1 -0
- package/dist/integrations/circle.d.cts +75 -0
- package/dist/integrations/circle.d.ts +75 -0
- package/dist/integrations/circle.js +133 -0
- package/dist/integrations/circle.js.map +1 -0
- package/dist/integrations/crewai.d.cts +1 -1
- package/dist/integrations/crewai.d.ts +1 -1
- package/dist/integrations/hermes.d.cts +1 -1
- package/dist/integrations/hermes.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/llamaindex.d.cts +1 -1
- package/dist/integrations/llamaindex.d.ts +1 -1
- package/dist/integrations/nekuda.cjs +165 -0
- package/dist/integrations/nekuda.cjs.map +1 -0
- package/dist/integrations/nekuda.d.cts +79 -0
- package/dist/integrations/nekuda.d.ts +79 -0
- package/dist/integrations/nekuda.js +139 -0
- package/dist/integrations/nekuda.js.map +1 -0
- package/dist/integrations/openai.d.cts +1 -1
- package/dist/integrations/openai.d.ts +1 -1
- package/dist/integrations/paypal-agent.cjs +215 -0
- package/dist/integrations/paypal-agent.cjs.map +1 -0
- package/dist/integrations/paypal-agent.d.cts +87 -0
- package/dist/integrations/paypal-agent.d.ts +87 -0
- package/dist/integrations/paypal-agent.js +189 -0
- package/dist/integrations/paypal-agent.js.map +1 -0
- package/dist/integrations/siem.d.cts +1 -1
- package/dist/integrations/siem.d.ts +1 -1
- package/dist/integrations/skyfire.cjs +166 -0
- package/dist/integrations/skyfire.cjs.map +1 -0
- package/dist/integrations/skyfire.d.cts +80 -0
- package/dist/integrations/skyfire.d.ts +80 -0
- package/dist/integrations/skyfire.js +140 -0
- package/dist/integrations/skyfire.js.map +1 -0
- package/dist/integrations/stripe-acp.d.cts +1 -1
- package/dist/integrations/stripe-acp.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/x402.cjs +211 -0
- package/dist/integrations/x402.cjs.map +1 -0
- package/dist/integrations/x402.d.cts +87 -0
- package/dist/integrations/x402.d.ts +87 -0
- package/dist/integrations/x402.js +185 -0
- package/dist/integrations/x402.js.map +1 -0
- package/dist/{types-Cb6V-boJ.d.cts → types-zzK9YOoa.d.cts} +86 -1
- package/dist/{types-Cb6V-boJ.d.ts → types-zzK9YOoa.d.ts} +86 -1
- package/package.json +71 -1
|
@@ -154,6 +154,43 @@ interface AgentDelegationRecord {
|
|
|
154
154
|
/** Optional ISO8601 expiry. */
|
|
155
155
|
validUntil: string | null;
|
|
156
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* One governed shared-memory entry as returned by the API.
|
|
159
|
+
*
|
|
160
|
+
* Every entry is attributed to the agent that wrote it and (when signed)
|
|
161
|
+
* carries that agent's Ed25519 signature over the canonical entry, so a
|
|
162
|
+
* poisoned entry is always traceable to its source (OWASP ASI06).
|
|
163
|
+
*/
|
|
164
|
+
interface SharedMemoryEntry {
|
|
165
|
+
namespace: string;
|
|
166
|
+
key: string;
|
|
167
|
+
value: unknown;
|
|
168
|
+
/** Public agent_id (`agid_*`) of the agent that authored the current value. */
|
|
169
|
+
written_by: string;
|
|
170
|
+
/** `sha256:<hex>` of the canonical value, or null. */
|
|
171
|
+
content_hash: string | null;
|
|
172
|
+
/** True iff a (verified) signature is stored for this entry. */
|
|
173
|
+
signed: boolean;
|
|
174
|
+
created_at: string;
|
|
175
|
+
updated_at: string;
|
|
176
|
+
}
|
|
177
|
+
/** Input to {@link VorimSDK.writeMemory} (the entry body; the agent id is a
|
|
178
|
+
* separate positional arg so the SDK can find its signing key). */
|
|
179
|
+
interface SharedMemoryWriteInput {
|
|
180
|
+
namespace: string;
|
|
181
|
+
key: string;
|
|
182
|
+
value: unknown;
|
|
183
|
+
}
|
|
184
|
+
/** Pagination meta returned by {@link VorimSDK.listMemory}. */
|
|
185
|
+
interface SharedMemoryListResult {
|
|
186
|
+
entries: SharedMemoryEntry[];
|
|
187
|
+
meta: {
|
|
188
|
+
page: number;
|
|
189
|
+
per_page: number;
|
|
190
|
+
total: number;
|
|
191
|
+
total_pages: number;
|
|
192
|
+
};
|
|
193
|
+
}
|
|
157
194
|
interface TrustRecord {
|
|
158
195
|
agent_id: string;
|
|
159
196
|
owner: {
|
|
@@ -284,5 +321,53 @@ interface RuntimeDecision {
|
|
|
284
321
|
*/
|
|
285
322
|
escalationResolution: 'approved' | 'denied' | null;
|
|
286
323
|
}
|
|
324
|
+
interface WorkflowGraphNode {
|
|
325
|
+
agent_id: string;
|
|
326
|
+
/** 'root' = the chain's originating agent; 'delegate' = received authority. */
|
|
327
|
+
role: 'root' | 'delegate';
|
|
328
|
+
/** Scopes this agent was delegated (empty for the root). */
|
|
329
|
+
scopes: string[];
|
|
330
|
+
/** Count of audit events attributed to this agent within the workflow. */
|
|
331
|
+
event_count: number;
|
|
332
|
+
}
|
|
333
|
+
interface WorkflowGraphEdge {
|
|
334
|
+
/** Delegator agent_id. */
|
|
335
|
+
from: string;
|
|
336
|
+
/** Delegate agent_id. */
|
|
337
|
+
to: string;
|
|
338
|
+
/** Scopes delegated across this edge. */
|
|
339
|
+
scopes: string[];
|
|
340
|
+
depth: number;
|
|
341
|
+
status: string;
|
|
342
|
+
}
|
|
343
|
+
interface WorkflowGraphEvent {
|
|
344
|
+
event_id: string;
|
|
345
|
+
agent_id: string | null;
|
|
346
|
+
agent_name: string | null;
|
|
347
|
+
action: string;
|
|
348
|
+
event_type: string;
|
|
349
|
+
result: string;
|
|
350
|
+
resource: string | null;
|
|
351
|
+
delegation_depth: number | null;
|
|
352
|
+
decision_id: string | null;
|
|
353
|
+
timestamp: string;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* The reconstructed provenance graph of a multi-agent workflow: agents (nodes),
|
|
357
|
+
* delegations between them (edges), and the audit events each performed.
|
|
358
|
+
*/
|
|
359
|
+
interface WorkflowProvenanceGraph {
|
|
360
|
+
chain_id: string;
|
|
361
|
+
root_agent: string | null;
|
|
362
|
+
nodes: WorkflowGraphNode[];
|
|
363
|
+
edges: WorkflowGraphEdge[];
|
|
364
|
+
events: WorkflowGraphEvent[];
|
|
365
|
+
meta: {
|
|
366
|
+
node_count: number;
|
|
367
|
+
edge_count: number;
|
|
368
|
+
event_count: number;
|
|
369
|
+
events_truncated: boolean;
|
|
370
|
+
};
|
|
371
|
+
}
|
|
287
372
|
|
|
288
|
-
export type { AgentRegistrationResult as A, BeforeActionInput as B, DelegationLinkClaims as D, PermissionScope as P, RuntimeDecision as R, TrustRecord as T, AuditEventInput as a, AgentRegistrationInput as b, Agent as c, PermissionCheckResult as d, AgentDelegationRecord as e,
|
|
373
|
+
export type { AgentRegistrationResult as A, BeforeActionInput as B, DelegationLinkClaims as D, PermissionScope as P, RuntimeDecision as R, SharedMemoryWriteInput as S, TrustRecord as T, WorkflowProvenanceGraph as W, AuditEventInput as a, AgentRegistrationInput as b, Agent as c, PermissionCheckResult as d, AgentDelegationRecord as e, SharedMemoryEntry as f, SharedMemoryListResult as g, TokenBudgetInput as h, TokenBudget as i, BudgetSpend 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 };
|
|
@@ -154,6 +154,43 @@ interface AgentDelegationRecord {
|
|
|
154
154
|
/** Optional ISO8601 expiry. */
|
|
155
155
|
validUntil: string | null;
|
|
156
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* One governed shared-memory entry as returned by the API.
|
|
159
|
+
*
|
|
160
|
+
* Every entry is attributed to the agent that wrote it and (when signed)
|
|
161
|
+
* carries that agent's Ed25519 signature over the canonical entry, so a
|
|
162
|
+
* poisoned entry is always traceable to its source (OWASP ASI06).
|
|
163
|
+
*/
|
|
164
|
+
interface SharedMemoryEntry {
|
|
165
|
+
namespace: string;
|
|
166
|
+
key: string;
|
|
167
|
+
value: unknown;
|
|
168
|
+
/** Public agent_id (`agid_*`) of the agent that authored the current value. */
|
|
169
|
+
written_by: string;
|
|
170
|
+
/** `sha256:<hex>` of the canonical value, or null. */
|
|
171
|
+
content_hash: string | null;
|
|
172
|
+
/** True iff a (verified) signature is stored for this entry. */
|
|
173
|
+
signed: boolean;
|
|
174
|
+
created_at: string;
|
|
175
|
+
updated_at: string;
|
|
176
|
+
}
|
|
177
|
+
/** Input to {@link VorimSDK.writeMemory} (the entry body; the agent id is a
|
|
178
|
+
* separate positional arg so the SDK can find its signing key). */
|
|
179
|
+
interface SharedMemoryWriteInput {
|
|
180
|
+
namespace: string;
|
|
181
|
+
key: string;
|
|
182
|
+
value: unknown;
|
|
183
|
+
}
|
|
184
|
+
/** Pagination meta returned by {@link VorimSDK.listMemory}. */
|
|
185
|
+
interface SharedMemoryListResult {
|
|
186
|
+
entries: SharedMemoryEntry[];
|
|
187
|
+
meta: {
|
|
188
|
+
page: number;
|
|
189
|
+
per_page: number;
|
|
190
|
+
total: number;
|
|
191
|
+
total_pages: number;
|
|
192
|
+
};
|
|
193
|
+
}
|
|
157
194
|
interface TrustRecord {
|
|
158
195
|
agent_id: string;
|
|
159
196
|
owner: {
|
|
@@ -284,5 +321,53 @@ interface RuntimeDecision {
|
|
|
284
321
|
*/
|
|
285
322
|
escalationResolution: 'approved' | 'denied' | null;
|
|
286
323
|
}
|
|
324
|
+
interface WorkflowGraphNode {
|
|
325
|
+
agent_id: string;
|
|
326
|
+
/** 'root' = the chain's originating agent; 'delegate' = received authority. */
|
|
327
|
+
role: 'root' | 'delegate';
|
|
328
|
+
/** Scopes this agent was delegated (empty for the root). */
|
|
329
|
+
scopes: string[];
|
|
330
|
+
/** Count of audit events attributed to this agent within the workflow. */
|
|
331
|
+
event_count: number;
|
|
332
|
+
}
|
|
333
|
+
interface WorkflowGraphEdge {
|
|
334
|
+
/** Delegator agent_id. */
|
|
335
|
+
from: string;
|
|
336
|
+
/** Delegate agent_id. */
|
|
337
|
+
to: string;
|
|
338
|
+
/** Scopes delegated across this edge. */
|
|
339
|
+
scopes: string[];
|
|
340
|
+
depth: number;
|
|
341
|
+
status: string;
|
|
342
|
+
}
|
|
343
|
+
interface WorkflowGraphEvent {
|
|
344
|
+
event_id: string;
|
|
345
|
+
agent_id: string | null;
|
|
346
|
+
agent_name: string | null;
|
|
347
|
+
action: string;
|
|
348
|
+
event_type: string;
|
|
349
|
+
result: string;
|
|
350
|
+
resource: string | null;
|
|
351
|
+
delegation_depth: number | null;
|
|
352
|
+
decision_id: string | null;
|
|
353
|
+
timestamp: string;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* The reconstructed provenance graph of a multi-agent workflow: agents (nodes),
|
|
357
|
+
* delegations between them (edges), and the audit events each performed.
|
|
358
|
+
*/
|
|
359
|
+
interface WorkflowProvenanceGraph {
|
|
360
|
+
chain_id: string;
|
|
361
|
+
root_agent: string | null;
|
|
362
|
+
nodes: WorkflowGraphNode[];
|
|
363
|
+
edges: WorkflowGraphEdge[];
|
|
364
|
+
events: WorkflowGraphEvent[];
|
|
365
|
+
meta: {
|
|
366
|
+
node_count: number;
|
|
367
|
+
edge_count: number;
|
|
368
|
+
event_count: number;
|
|
369
|
+
events_truncated: boolean;
|
|
370
|
+
};
|
|
371
|
+
}
|
|
287
372
|
|
|
288
|
-
export type { AgentRegistrationResult as A, BeforeActionInput as B, DelegationLinkClaims as D, PermissionScope as P, RuntimeDecision as R, TrustRecord as T, AuditEventInput as a, AgentRegistrationInput as b, Agent as c, PermissionCheckResult as d, AgentDelegationRecord as e,
|
|
373
|
+
export type { AgentRegistrationResult as A, BeforeActionInput as B, DelegationLinkClaims as D, PermissionScope as P, RuntimeDecision as R, SharedMemoryWriteInput as S, TrustRecord as T, WorkflowProvenanceGraph as W, AuditEventInput as a, AgentRegistrationInput as b, Agent as c, PermissionCheckResult as d, AgentDelegationRecord as e, SharedMemoryEntry as f, SharedMemoryListResult as g, TokenBudgetInput as h, TokenBudget as i, BudgetSpend 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vorim/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Official TypeScript SDK for Vorim AI — AI Agent Identity, Permissions & Audit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -117,6 +117,76 @@
|
|
|
117
117
|
"default": "./dist/integrations/ucp.cjs"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
+
"./integrations/x402": {
|
|
121
|
+
"import": {
|
|
122
|
+
"types": "./dist/integrations/x402.d.ts",
|
|
123
|
+
"default": "./dist/integrations/x402.js"
|
|
124
|
+
},
|
|
125
|
+
"require": {
|
|
126
|
+
"types": "./dist/integrations/x402.d.cts",
|
|
127
|
+
"default": "./dist/integrations/x402.cjs"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"./integrations/ap2": {
|
|
131
|
+
"import": {
|
|
132
|
+
"types": "./dist/integrations/ap2.d.ts",
|
|
133
|
+
"default": "./dist/integrations/ap2.js"
|
|
134
|
+
},
|
|
135
|
+
"require": {
|
|
136
|
+
"types": "./dist/integrations/ap2.d.cts",
|
|
137
|
+
"default": "./dist/integrations/ap2.cjs"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"./integrations/paypal-agent": {
|
|
141
|
+
"import": {
|
|
142
|
+
"types": "./dist/integrations/paypal-agent.d.ts",
|
|
143
|
+
"default": "./dist/integrations/paypal-agent.js"
|
|
144
|
+
},
|
|
145
|
+
"require": {
|
|
146
|
+
"types": "./dist/integrations/paypal-agent.d.cts",
|
|
147
|
+
"default": "./dist/integrations/paypal-agent.cjs"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"./integrations/circle": {
|
|
151
|
+
"import": {
|
|
152
|
+
"types": "./dist/integrations/circle.d.ts",
|
|
153
|
+
"default": "./dist/integrations/circle.js"
|
|
154
|
+
},
|
|
155
|
+
"require": {
|
|
156
|
+
"types": "./dist/integrations/circle.d.cts",
|
|
157
|
+
"default": "./dist/integrations/circle.cjs"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"./integrations/skyfire": {
|
|
161
|
+
"import": {
|
|
162
|
+
"types": "./dist/integrations/skyfire.d.ts",
|
|
163
|
+
"default": "./dist/integrations/skyfire.js"
|
|
164
|
+
},
|
|
165
|
+
"require": {
|
|
166
|
+
"types": "./dist/integrations/skyfire.d.cts",
|
|
167
|
+
"default": "./dist/integrations/skyfire.cjs"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"./integrations/nekuda": {
|
|
171
|
+
"import": {
|
|
172
|
+
"types": "./dist/integrations/nekuda.d.ts",
|
|
173
|
+
"default": "./dist/integrations/nekuda.js"
|
|
174
|
+
},
|
|
175
|
+
"require": {
|
|
176
|
+
"types": "./dist/integrations/nekuda.d.cts",
|
|
177
|
+
"default": "./dist/integrations/nekuda.cjs"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"./integrations/bank-rails": {
|
|
181
|
+
"import": {
|
|
182
|
+
"types": "./dist/integrations/bank-rails.d.ts",
|
|
183
|
+
"default": "./dist/integrations/bank-rails.js"
|
|
184
|
+
},
|
|
185
|
+
"require": {
|
|
186
|
+
"types": "./dist/integrations/bank-rails.d.cts",
|
|
187
|
+
"default": "./dist/integrations/bank-rails.cjs"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
120
190
|
"./integrations/siem": {
|
|
121
191
|
"import": {
|
|
122
192
|
"types": "./dist/integrations/siem.d.ts",
|