@tryvira/sdk 0.1.24 → 0.1.25

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
@@ -651,6 +651,14 @@ var ViraClient = class {
651
651
  { idempotencyKey: options.idempotencyKey }
652
652
  );
653
653
  }
654
+ createTeachAnalysis(evidenceIds, options = {}) {
655
+ if (!Array.isArray(evidenceIds) || evidenceIds.length < 1) throw new Error("SDK_TEACH_ANALYSIS_EVIDENCE_REQUIRED");
656
+ return this.request({ method: "POST", path: "/v1/teach/analyses", body: { evidenceIds: [...evidenceIds] } }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:analysis:${evidenceIds.join(",")}` });
657
+ }
658
+ getTeachAnalysis(analysisId) {
659
+ required(analysisId, "SDK_TEACH_ANALYSIS_ID_REQUIRED");
660
+ return this.request({ method: "GET", path: `/v1/teach/analyses/${encodeURIComponent(analysisId)}` });
661
+ }
654
662
  createTeachProposal(input, options = {}) {
655
663
  return this.request({ method: "POST", path: "/v1/teach/proposals", body: input }, { idempotencyKey: options.idempotencyKey });
656
664
  }
@@ -380,6 +380,10 @@ export declare class ViraClient {
380
380
  submitTeachEvidence(evidence: ClientBody, options?: {
381
381
  idempotencyKey?: string;
382
382
  }): Promise<ViraResponse<ClientBody> | null>;
383
+ createTeachAnalysis(evidenceIds: readonly string[], options?: {
384
+ idempotencyKey?: string;
385
+ }): Promise<ViraResponse<ClientBody> | null>;
386
+ getTeachAnalysis(analysisId: string): Promise<ViraResponse<ClientBody> | null>;
383
387
  createTeachProposal(input: ClientBody, options?: {
384
388
  idempotencyKey?: string;
385
389
  }): Promise<ViraResponse<ClientBody> | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
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"},