@tryvira/sdk 0.1.72 → 0.1.74

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
@@ -455,6 +455,10 @@ var ViraClient = class {
455
455
  query: listQuery(options)
456
456
  });
457
457
  }
458
+ getPack(packId) {
459
+ required(packId, "SDK_PACK_ID_REQUIRED");
460
+ return this.request({ method: "GET", path: `/v1/packs/${encodeURIComponent(packId)}` });
461
+ }
458
462
  async deletePack(packId, options = {}) {
459
463
  required(packId, "SDK_PACK_ID_REQUIRED");
460
464
  const path = `/v1/packs/${encodeURIComponent(packId)}`;
@@ -579,6 +583,7 @@ var ViraClient = class {
579
583
  idempotencyKey: input.idempotencyKey
580
584
  });
581
585
  }
586
+ /** Classify input only; use resolveRuntime for one BehaviorPoint or resolveTaskRun/startTaskRun for TaskRun routing and execution. */
582
587
  resolveSemantic(input) {
583
588
  required(input.input, "SDK_SEMANTIC_INPUT_REQUIRED");
584
589
  const { idempotencyKey, requestId, ...body } = input;
@@ -1024,6 +1029,7 @@ var ViraClient = class {
1024
1029
  required(feedback, "SDK_TEACH_REQUEST_CHANGES_FEEDBACK_REQUIRED");
1025
1030
  return this.request({ method: "POST", path: `/v1/teach/proposals/${encodeURIComponent(proposalId)}/request-changes`, body: { feedback } }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:request-changes:${proposalId}:${feedback}` });
1026
1031
  }
1032
+ /** Start a standalone or comparative evaluation; use evaluatePack for Pack lifecycle evaluation. */
1027
1033
  startEvaluation(input, options = {}) {
1028
1034
  return this.request(
1029
1035
  { method: "POST", path: "/v1/evaluations", body: input },
@@ -1051,6 +1057,9 @@ var ViraClient = class {
1051
1057
  path: `/v1/evaluations/${encodeURIComponent(evaluationId)}`
1052
1058
  });
1053
1059
  }
1060
+ listEvaluations(input = {}) {
1061
+ return this.request({ method: "GET", path: "/v1/evaluations", query: { ...input.limit === void 0 ? {} : { limit: String(input.limit) }, ...input.cursor ? { cursor: input.cursor } : {}, ...input.status ? { status: input.status } : {} } });
1062
+ }
1054
1063
  getEvaluationComparison(evaluationId) {
1055
1064
  required(evaluationId, "SDK_EVALUATION_ID_REQUIRED");
1056
1065
  return this.request({
@@ -354,6 +354,7 @@ export declare class ViraClient {
354
354
  listPacks(options?: ScopedListOptions): Promise<ViraResponse<{
355
355
  packs: readonly ClientBody[];
356
356
  }> | null>;
357
+ getPack(packId: string): Promise<ViraResponse<ClientBody> | null>;
357
358
  deletePack(packId: string, options?: {
358
359
  confirm?: boolean;
359
360
  idempotencyKey?: string;
@@ -397,6 +398,7 @@ export declare class ViraClient {
397
398
  semanticContext?: Record<string, unknown>;
398
399
  idempotencyKey?: string;
399
400
  }): Promise<ViraResponse<RuntimeResolution> | null>;
401
+ /** Classify input only; use resolveRuntime for one BehaviorPoint or resolveTaskRun/startTaskRun for TaskRun routing and execution. */
400
402
  resolveSemantic(input: {
401
403
  input: string;
402
404
  profile?: Record<string, unknown>;
@@ -644,6 +646,7 @@ export declare class ViraClient {
644
646
  requestTeachProposalChanges(proposalId: string, feedback: string, options?: {
645
647
  idempotencyKey?: string;
646
648
  }): Promise<ViraResponse<ClientBody> | null>;
649
+ /** Start a standalone or comparative evaluation; use evaluatePack for Pack lifecycle evaluation. */
647
650
  startEvaluation(input: ClientBody, options?: {
648
651
  idempotencyKey?: string;
649
652
  }): Promise<ViraResponse<ClientBody> | null>;
@@ -659,6 +662,11 @@ export declare class ViraClient {
659
662
  idempotencyKey?: string;
660
663
  }): Promise<ViraResponse<ClientBody> | null>;
661
664
  getEvaluation(evaluationId: string): Promise<ViraResponse<ClientBody> | null>;
665
+ listEvaluations(input?: {
666
+ limit?: number;
667
+ cursor?: string;
668
+ status?: string;
669
+ }): Promise<ViraResponse<ClientBody> | null>;
662
670
  getEvaluationComparison(evaluationId: string): Promise<ViraResponse<ClientBody> | null>;
663
671
  reviewComparativeFinding(evaluationId: string, findingId: string, input: {
664
672
  decision: 'ACCEPT' | 'REJECT' | 'EDIT' | 'MORE_EVIDENCE';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.72",
3
+ "version": "0.1.74",
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"},