@tryvira/sdk 0.1.19 → 0.1.22
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
|
@@ -658,6 +658,11 @@ var ViraClient = class {
|
|
|
658
658
|
required(teachRunId, "SDK_TEACH_RUN_ID_REQUIRED");
|
|
659
659
|
return this.request({ method: "GET", path: `/v1/teach/runs/${encodeURIComponent(teachRunId)}/recommendation` });
|
|
660
660
|
}
|
|
661
|
+
acceptTeachRecommendation(teachRunId, actorId, options = {}) {
|
|
662
|
+
required(teachRunId, "SDK_TEACH_RUN_ID_REQUIRED");
|
|
663
|
+
required(actorId, "SDK_TEACH_RECOMMENDATION_ACTOR_REQUIRED");
|
|
664
|
+
return this.request({ method: "POST", path: `/v1/teach/runs/${encodeURIComponent(teachRunId)}/recommendation/accept`, body: { actorId } }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:recommendation:accept:${teachRunId}` });
|
|
665
|
+
}
|
|
661
666
|
transitionTeachProposal(proposalId, transition, input = {}, options = {}) {
|
|
662
667
|
required(proposalId, "SDK_TEACH_PROPOSAL_ID_REQUIRED");
|
|
663
668
|
return this.request({ method: "POST", path: `/v1/teach/proposals/${encodeURIComponent(proposalId)}/${transition}`, body: input }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:${transition}:${proposalId}` });
|
package/dist/js-client.d.ts
CHANGED
|
@@ -387,6 +387,9 @@ export declare class ViraClient {
|
|
|
387
387
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
388
388
|
getTeachRunBehaviorSet(teachRunId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
389
389
|
getTeachRunRecommendation(teachRunId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
390
|
+
acceptTeachRecommendation(teachRunId: string, actorId: string, options?: {
|
|
391
|
+
idempotencyKey?: string;
|
|
392
|
+
}): Promise<ViraResponse<ClientBody> | null>;
|
|
390
393
|
transitionTeachProposal(proposalId: string, transition: 'review' | 'evaluate' | 'promote', input?: ClientBody, options?: {
|
|
391
394
|
idempotencyKey?: string;
|
|
392
395
|
}): 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.22",
|
|
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"},
|