@tryvira/sdk 0.1.73 → 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 +7 -0
- package/dist/js-client.d.ts +6 -0
- package/package.json +1 -1
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)}`;
|
|
@@ -1053,6 +1057,9 @@ var ViraClient = class {
|
|
|
1053
1057
|
path: `/v1/evaluations/${encodeURIComponent(evaluationId)}`
|
|
1054
1058
|
});
|
|
1055
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
|
+
}
|
|
1056
1063
|
getEvaluationComparison(evaluationId) {
|
|
1057
1064
|
required(evaluationId, "SDK_EVALUATION_ID_REQUIRED");
|
|
1058
1065
|
return this.request({
|
package/dist/js-client.d.ts
CHANGED
|
@@ -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;
|
|
@@ -661,6 +662,11 @@ export declare class ViraClient {
|
|
|
661
662
|
idempotencyKey?: string;
|
|
662
663
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
663
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>;
|
|
664
670
|
getEvaluationComparison(evaluationId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
665
671
|
reviewComparativeFinding(evaluationId: string, findingId: string, input: {
|
|
666
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.
|
|
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"},
|