@tryvira/sdk 0.1.53 → 0.1.54

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.js CHANGED
@@ -500,6 +500,11 @@ var ViraClient = class {
500
500
  body: { executionId: input.executionId, sessionId: input.sessionId, scope: input.scope, context: input.context, proposal: input.proposal, ...input.approval ? { approval: input.approval } : {} }
501
501
  });
502
502
  }
503
+ async createHostActionApproval(input) {
504
+ required(input.sessionId, "SDK_ACTION_SESSION_REQUIRED");
505
+ required(input.dataVersion, "SDK_ACTION_DATA_VERSION_REQUIRED");
506
+ return this.request({ method: "POST", path: "/v1/runtime/actions/approvals", body: { sessionId: input.sessionId, dataVersion: input.dataVersion, proposal: input.proposal, confirmed: input.confirmed === true, ...input.ttlSeconds !== void 0 ? { ttlSeconds: input.ttlSeconds } : {} } });
507
+ }
503
508
  listBehaviorStrategies() {
504
509
  return this.request({
505
510
  method: "GET",
@@ -382,6 +382,13 @@ export declare class ViraClient {
382
382
  proposal: Record<string, unknown>;
383
383
  approval?: Record<string, unknown>;
384
384
  }): Promise<ViraResponse<ClientBody> | null>;
385
+ createHostActionApproval(input: {
386
+ sessionId: string;
387
+ dataVersion: string;
388
+ proposal: Record<string, unknown>;
389
+ confirmed?: boolean;
390
+ ttlSeconds?: number;
391
+ }): Promise<ViraResponse<ClientBody> | null>;
385
392
  listBehaviorStrategies(): Promise<ViraResponse<ClientBody> | null>;
386
393
  deleteBehaviorStrategy(strategyId: string, options?: {
387
394
  confirm?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "description": "Typed Vira SDK for connect-once, observation and governed runtime execution.",
5
5
  "keywords": ["vira", "ai-governance", "ai-runtime", "semantic-routing"],
6
6
  "engines": {"node": ">=20"},