@tryvira/sdk 0.1.52 → 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
@@ -360,6 +360,11 @@ var ViraClient = class {
360
360
  { idempotencyKey: await contentIdempotencyKey(`sdk:pack:install:${packId}`, body) }
361
361
  );
362
362
  }
363
+ async diagnosePack(packId, input = {}) {
364
+ required(packId, "SDK_PACK_ID_REQUIRED");
365
+ const body = { runtimeBindings: [...input.runtimeBindings ?? []], knownVerifiers: [...input.knownVerifiers ?? []] };
366
+ return this.request({ method: "POST", path: `/v1/packs/${encodeURIComponent(packId)}/doctor`, body }, { idempotencyKey: await contentIdempotencyKey(`sdk:pack:doctor:${packId}`, body) });
367
+ }
363
368
  async evaluatePack(packId, input) {
364
369
  required(packId, "SDK_PACK_ID_REQUIRED");
365
370
  required(input?.evaluationId, "SDK_EVALUATION_ID_REQUIRED");
@@ -495,6 +500,11 @@ var ViraClient = class {
495
500
  body: { executionId: input.executionId, sessionId: input.sessionId, scope: input.scope, context: input.context, proposal: input.proposal, ...input.approval ? { approval: input.approval } : {} }
496
501
  });
497
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
+ }
498
508
  listBehaviorStrategies() {
499
509
  return this.request({
500
510
  method: "GET",
@@ -321,6 +321,10 @@ export declare class ViraClient {
321
321
  idempotencyKey?: string;
322
322
  }): Promise<ViraResponse<ClientBody> | null>;
323
323
  installPack(packId: string, variables?: Record<string, unknown>): Promise<ViraResponse<ClientBody> | null>;
324
+ diagnosePack(packId: string, input?: {
325
+ runtimeBindings?: readonly string[];
326
+ knownVerifiers?: readonly string[];
327
+ }): Promise<ViraResponse<ClientBody> | null>;
324
328
  evaluatePack(packId: string, input: {
325
329
  evaluationId: string;
326
330
  }): Promise<ViraResponse<ClientBody> | null>;
@@ -378,6 +382,13 @@ export declare class ViraClient {
378
382
  proposal: Record<string, unknown>;
379
383
  approval?: Record<string, unknown>;
380
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>;
381
392
  listBehaviorStrategies(): Promise<ViraResponse<ClientBody> | null>;
382
393
  deleteBehaviorStrategy(strategyId: string, options?: {
383
394
  confirm?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.52",
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"},