@tryvira/sdk 0.1.13 → 0.1.14
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 +6 -1
- package/dist/js-client.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// sdks/js-client.ts
|
|
2
2
|
var ViraApiError = class extends Error {
|
|
3
3
|
status;
|
|
4
4
|
body;
|
|
@@ -662,6 +662,11 @@ var ViraClient = class {
|
|
|
662
662
|
if (!input || typeof input !== "object" || !input.manualApproval) throw new Error("SDK_MANUAL_RELEASE_APPROVAL_REQUIRED");
|
|
663
663
|
return this.createRelease(input, { idempotencyKey: options.idempotencyKey });
|
|
664
664
|
}
|
|
665
|
+
releaseProgramManually(input, options = {}) {
|
|
666
|
+
required(input?.programId, "SDK_MANUAL_RELEASE_PROGRAM_REQUIRED");
|
|
667
|
+
required(input?.reason, "SDK_MANUAL_RELEASE_REASON_REQUIRED");
|
|
668
|
+
return this.request({ method: "POST", path: "/v1/releases/manual-program", body: { programId: input.programId, reason: input.reason } }, { idempotencyKey: options.idempotencyKey ?? `sdk:manual-release:${input.programId}` });
|
|
669
|
+
}
|
|
665
670
|
recordDeploymentComparison(deploymentId, comparison, options = {}) {
|
|
666
671
|
required(deploymentId, "SDK_DEPLOYMENT_ID_REQUIRED");
|
|
667
672
|
return this.request(
|
package/dist/js-client.d.ts
CHANGED
|
@@ -362,6 +362,12 @@ export declare class ViraClient {
|
|
|
362
362
|
createManualRelease(input: ClientBody, options?: {
|
|
363
363
|
idempotencyKey?: string;
|
|
364
364
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
365
|
+
releaseProgramManually(input: {
|
|
366
|
+
programId: string;
|
|
367
|
+
reason: string;
|
|
368
|
+
}, options?: {
|
|
369
|
+
idempotencyKey?: string;
|
|
370
|
+
}): Promise<ViraResponse<ClientBody> | null>;
|
|
365
371
|
recordDeploymentComparison(deploymentId: string, comparison: ClientBody, options?: {
|
|
366
372
|
idempotencyKey?: string;
|
|
367
373
|
}): Promise<ViraResponse<ClientBody> | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvira/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
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"},
|