@tryvira/sdk 0.1.28 → 0.1.30
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/README.md +1 -1
- package/dist/index.js +14 -0
- package/dist/js-client.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -257,6 +257,20 @@ var ViraClient = class {
|
|
|
257
257
|
path: `/v1/connections/${encodeURIComponent(connectionId)}/health`
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
+
getConnection(connectionId) {
|
|
261
|
+
required(connectionId, "SDK_CONNECTION_ID_REQUIRED");
|
|
262
|
+
return this.request({
|
|
263
|
+
method: "GET",
|
|
264
|
+
path: `/v1/connections/${encodeURIComponent(connectionId)}`
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
listSystemConnections(systemId) {
|
|
268
|
+
required(systemId, "SDK_SYSTEM_ID_REQUIRED");
|
|
269
|
+
return this.request({
|
|
270
|
+
method: "GET",
|
|
271
|
+
path: `/v1/ai-systems/${encodeURIComponent(systemId)}/connections`
|
|
272
|
+
});
|
|
273
|
+
}
|
|
260
274
|
inventory(systemId) {
|
|
261
275
|
required(systemId, "SDK_SYSTEM_ID_REQUIRED");
|
|
262
276
|
return this.request({
|
package/dist/js-client.d.ts
CHANGED
|
@@ -224,6 +224,8 @@ export declare class ViraClient {
|
|
|
224
224
|
idempotencyKey?: string;
|
|
225
225
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
226
226
|
connectionHealth(connectionId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
227
|
+
getConnection(connectionId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
228
|
+
listSystemConnections(systemId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
227
229
|
inventory(systemId: string): Promise<ViraResponse<ClientBody> | null>;
|
|
228
230
|
listPacks(): Promise<ViraResponse<{
|
|
229
231
|
packs: readonly ClientBody[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvira/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
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"},
|