@tryvira/sdk 0.1.37 → 0.1.38
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 +5 -0
- package/dist/js-client.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -726,6 +726,11 @@ var ViraClient = class {
|
|
|
726
726
|
required(proposalId, "SDK_TEACH_PROPOSAL_ID_REQUIRED");
|
|
727
727
|
return this.request({ method: "POST", path: `/v1/teach/proposals/${encodeURIComponent(proposalId)}/${transition}`, body: input }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:${transition}:${proposalId}` });
|
|
728
728
|
}
|
|
729
|
+
requestTeachProposalChanges(proposalId, feedback, options = {}) {
|
|
730
|
+
required(proposalId, "SDK_TEACH_PROPOSAL_ID_REQUIRED");
|
|
731
|
+
required(feedback, "SDK_TEACH_REQUEST_CHANGES_FEEDBACK_REQUIRED");
|
|
732
|
+
return this.request({ method: "POST", path: `/v1/teach/proposals/${encodeURIComponent(proposalId)}/request-changes`, body: { feedback } }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:request-changes:${proposalId}:${feedback}` });
|
|
733
|
+
}
|
|
729
734
|
startEvaluation(input, options = {}) {
|
|
730
735
|
return this.request(
|
|
731
736
|
{ method: "POST", path: "/v1/evaluations", body: input },
|
package/dist/js-client.d.ts
CHANGED
|
@@ -433,6 +433,9 @@ export declare class ViraClient {
|
|
|
433
433
|
transitionTeachProposal(proposalId: string, transition: 'review' | 'evaluate' | 'promote', input?: ClientBody, options?: {
|
|
434
434
|
idempotencyKey?: string;
|
|
435
435
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
436
|
+
requestTeachProposalChanges(proposalId: string, feedback: string, options?: {
|
|
437
|
+
idempotencyKey?: string;
|
|
438
|
+
}): Promise<ViraResponse<ClientBody> | null>;
|
|
436
439
|
startEvaluation(input: ClientBody, options?: {
|
|
437
440
|
idempotencyKey?: string;
|
|
438
441
|
}): 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.38",
|
|
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"},
|