@tryvira/sdk 0.1.35 → 0.1.36
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 +3 -0
- package/dist/js-client.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -710,6 +710,9 @@ var ViraClient = class {
|
|
|
710
710
|
required(teachRunId, "SDK_TEACH_RUN_ID_REQUIRED");
|
|
711
711
|
return this.request({ method: "GET", path: `/v1/teach/runs/${encodeURIComponent(teachRunId)}/behavior-set` });
|
|
712
712
|
}
|
|
713
|
+
listTeachRuns(input = {}) {
|
|
714
|
+
return this.request({ method: "GET", path: "/v1/teach/runs", query: { ...input.limit === void 0 ? {} : { limit: String(input.limit) }, ...input.cursor ? { cursor: input.cursor } : {}, ...input.status ? { status: input.status } : {} } });
|
|
715
|
+
}
|
|
713
716
|
getTeachRunRecommendation(teachRunId) {
|
|
714
717
|
required(teachRunId, "SDK_TEACH_RUN_ID_REQUIRED");
|
|
715
718
|
return this.request({ method: "GET", path: `/v1/teach/runs/${encodeURIComponent(teachRunId)}/recommendation` });
|
package/dist/js-client.d.ts
CHANGED
|
@@ -421,6 +421,11 @@ export declare class ViraClient {
|
|
|
421
421
|
idempotencyKey?: string;
|
|
422
422
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
423
423
|
getTeachRunBehaviorSet(teachRunId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
424
|
+
listTeachRuns(input?: {
|
|
425
|
+
limit?: number;
|
|
426
|
+
cursor?: string;
|
|
427
|
+
status?: string;
|
|
428
|
+
}): Promise<ViraResponse<ClientBody> | null>;
|
|
424
429
|
getTeachRunRecommendation(teachRunId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
425
430
|
acceptTeachRecommendation(teachRunId: string, actorId: string, options?: {
|
|
426
431
|
idempotencyKey?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvira/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
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"},
|