@tryvira/sdk 0.1.18 → 0.1.21

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
@@ -650,6 +650,19 @@ var ViraClient = class {
650
650
  createTeachProposal(input, options = {}) {
651
651
  return this.request({ method: "POST", path: "/v1/teach/proposals", body: input }, { idempotencyKey: options.idempotencyKey });
652
652
  }
653
+ getTeachRunBehaviorSet(teachRunId) {
654
+ required(teachRunId, "SDK_TEACH_RUN_ID_REQUIRED");
655
+ return this.request({ method: "GET", path: `/v1/teach/runs/${encodeURIComponent(teachRunId)}/behavior-set` });
656
+ }
657
+ getTeachRunRecommendation(teachRunId) {
658
+ required(teachRunId, "SDK_TEACH_RUN_ID_REQUIRED");
659
+ return this.request({ method: "GET", path: `/v1/teach/runs/${encodeURIComponent(teachRunId)}/recommendation` });
660
+ }
661
+ acceptTeachRecommendation(teachRunId, actorId, options = {}) {
662
+ required(teachRunId, "SDK_TEACH_RUN_ID_REQUIRED");
663
+ required(actorId, "SDK_TEACH_RECOMMENDATION_ACTOR_REQUIRED");
664
+ return this.request({ method: "POST", path: `/v1/teach/runs/${encodeURIComponent(teachRunId)}/recommendation/accept`, body: { actorId } }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:recommendation:accept:${teachRunId}` });
665
+ }
653
666
  transitionTeachProposal(proposalId, transition, input = {}, options = {}) {
654
667
  required(proposalId, "SDK_TEACH_PROPOSAL_ID_REQUIRED");
655
668
  return this.request({ method: "POST", path: `/v1/teach/proposals/${encodeURIComponent(proposalId)}/${transition}`, body: input }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:${transition}:${proposalId}` });
@@ -385,6 +385,11 @@ export declare class ViraClient {
385
385
  createTeachProposal(input: ClientBody, options?: {
386
386
  idempotencyKey?: string;
387
387
  }): Promise<ViraResponse<ClientBody> | null>;
388
+ getTeachRunBehaviorSet(teachRunId: string): Promise<ViraResponse<ClientBody> | null>;
389
+ getTeachRunRecommendation(teachRunId: string): Promise<ViraResponse<ClientBody> | null>;
390
+ acceptTeachRecommendation(teachRunId: string, actorId: string, options?: {
391
+ idempotencyKey?: string;
392
+ }): Promise<ViraResponse<ClientBody> | null>;
388
393
  transitionTeachProposal(proposalId: string, transition: 'review' | 'evaluate' | 'promote', input?: ClientBody, options?: {
389
394
  idempotencyKey?: string;
390
395
  }): Promise<ViraResponse<ClientBody> | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.18",
3
+ "version": "0.1.21",
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"},