@tryvira/sdk 0.1.55 → 0.1.56

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
@@ -504,7 +504,12 @@ var ViraClient = class {
504
504
  async createHostActionApproval(input) {
505
505
  required(input.sessionId, "SDK_ACTION_SESSION_REQUIRED");
506
506
  required(input.dataVersion, "SDK_ACTION_DATA_VERSION_REQUIRED");
507
- 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
+ required(input.confirmation.proposalId, "SDK_ACTION_CONFIRMATION_PROPOSAL_REQUIRED");
508
+ required(input.confirmation.toolName, "SDK_ACTION_CONFIRMATION_TOOL_REQUIRED");
509
+ required(input.confirmation.argumentsDigest, "SDK_ACTION_CONFIRMATION_ARGUMENTS_REQUIRED");
510
+ required(input.confirmation.requestContextDigest, "SDK_ACTION_CONFIRMATION_CONTEXT_REQUIRED");
511
+ required(input.confirmation.acknowledgedAt, "SDK_ACTION_CONFIRMATION_TIME_REQUIRED");
512
+ return this.request({ method: "POST", path: "/v1/runtime/actions/approvals", body: { sessionId: input.sessionId, dataVersion: input.dataVersion, proposal: input.proposal, confirmation: input.confirmation, ...input.ttlSeconds !== void 0 ? { ttlSeconds: input.ttlSeconds } : {} } });
508
513
  }
509
514
  listBehaviorStrategies() {
510
515
  return this.request({
@@ -387,7 +387,13 @@ export declare class ViraClient {
387
387
  sessionId: string;
388
388
  dataVersion: string;
389
389
  proposal: Record<string, unknown>;
390
- confirmed?: boolean;
390
+ confirmation: {
391
+ proposalId: string;
392
+ toolName: string;
393
+ argumentsDigest: string;
394
+ requestContextDigest: string;
395
+ acknowledgedAt: string;
396
+ };
391
397
  ttlSeconds?: number;
392
398
  }): Promise<ViraResponse<ClientBody> | null>;
393
399
  listBehaviorStrategies(): Promise<ViraResponse<ClientBody> | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
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"},