@tryvira/sdk 0.1.27 → 0.1.29

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 CHANGED
@@ -7,7 +7,7 @@ approved behavior, and resolve it at runtime.
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install @tryvira/sdk@0.1.26
10
+ npm install @tryvira/sdk@0.1.29
11
11
  ```
12
12
 
13
13
  Configure the organization, project, and environment for every request. Keep the API
package/dist/index.js CHANGED
@@ -142,6 +142,10 @@ var ViraClient = class {
142
142
  required(systemId, "SDK_SYSTEM_ID_REQUIRED");
143
143
  return this.request({ method: "DELETE", path: `/v1/ai-systems/${encodeURIComponent(systemId)}`, body: { confirm: options.confirm === true } }, { idempotencyKey: options.idempotencyKey ?? `sdk:delete:ai-system:${systemId}` });
144
144
  }
145
+ deleteAISystemCascade(systemId, options = {}) {
146
+ required(systemId, "SDK_SYSTEM_ID_REQUIRED");
147
+ return this.request({ method: "DELETE", path: `/v1/ai-systems/${encodeURIComponent(systemId)}/cleanup`, body: { confirm: options.confirm === true, deleteObservations: options.deleteObservations === true } }, { idempotencyKey: options.idempotencyKey ?? `sdk:delete:ai-system-cascade:${systemId}` });
148
+ }
145
149
  getAISystem(systemId) {
146
150
  required(systemId, "SDK_SYSTEM_ID_REQUIRED");
147
151
  return this.request({ method: "GET", path: `/v1/ai-systems/${encodeURIComponent(systemId)}` });
@@ -253,6 +257,13 @@ var ViraClient = class {
253
257
  path: `/v1/connections/${encodeURIComponent(connectionId)}/health`
254
258
  });
255
259
  }
260
+ listSystemConnections(systemId) {
261
+ required(systemId, "SDK_SYSTEM_ID_REQUIRED");
262
+ return this.request({
263
+ method: "GET",
264
+ path: `/v1/ai-systems/${encodeURIComponent(systemId)}/connections`
265
+ });
266
+ }
256
267
  inventory(systemId) {
257
268
  required(systemId, "SDK_SYSTEM_ID_REQUIRED");
258
269
  return this.request({
@@ -587,6 +598,14 @@ var ViraClient = class {
587
598
  path: `/v1/behavior-programs/${encodeURIComponent(programId)}`
588
599
  });
589
600
  }
601
+ deleteBehaviorProgram(programId, options = {}) {
602
+ required(programId, "SDK_PROGRAM_ID_REQUIRED");
603
+ return this.request({ method: "DELETE", path: `/v1/behavior-programs/${encodeURIComponent(programId)}`, body: { confirm: options.confirm === true } }, { idempotencyKey: options.idempotencyKey ?? `sdk:delete:behavior-program:${programId}` });
604
+ }
605
+ deleteBehaviorProgramCascade(programId, options = {}) {
606
+ required(programId, "SDK_PROGRAM_ID_REQUIRED");
607
+ return this.request({ method: "DELETE", path: `/v1/behavior-programs/${encodeURIComponent(programId)}/cascade`, body: { confirm: options.confirm === true, purgeRuntime: options.purgeRuntime === true } }, { idempotencyKey: options.idempotencyKey ?? `sdk:delete:behavior-program-cascade:${programId}` });
608
+ }
590
609
  createBehaviorProgram(program, options = {}) {
591
610
  if (!program || typeof program !== "object")
592
611
  throw new Error("SDK_PROGRAM_REQUIRED");
@@ -135,6 +135,11 @@ export declare class ViraClient {
135
135
  confirm?: boolean;
136
136
  idempotencyKey?: string;
137
137
  }): Promise<ViraResponse<ClientBody> | null>;
138
+ deleteAISystemCascade(systemId: string, options?: {
139
+ confirm?: boolean;
140
+ deleteObservations?: boolean;
141
+ idempotencyKey?: string;
142
+ }): Promise<ViraResponse<ClientBody> | null>;
138
143
  getAISystem(systemId: string): Promise<ViraResponse<ClientBody> | null>;
139
144
  connectAdapter(systemId: string, input: {
140
145
  adapterType: string;
@@ -219,6 +224,7 @@ export declare class ViraClient {
219
224
  idempotencyKey?: string;
220
225
  }): Promise<ViraResponse<ClientBody> | null>;
221
226
  connectionHealth(connectionId: string): Promise<ViraResponse<ClientBody> | null>;
227
+ listSystemConnections(systemId: string): Promise<ViraResponse<ClientBody> | null>;
222
228
  inventory(systemId: string): Promise<ViraResponse<ClientBody> | null>;
223
229
  listPacks(): Promise<ViraResponse<{
224
230
  packs: readonly ClientBody[];
@@ -357,6 +363,15 @@ export declare class ViraClient {
357
363
  getBehaviorProgram(programId: string): Promise<ViraResponse<{
358
364
  program: ClientBody;
359
365
  }> | null>;
366
+ deleteBehaviorProgram(programId: string, options?: {
367
+ confirm?: boolean;
368
+ idempotencyKey?: string;
369
+ }): Promise<ViraResponse<ClientBody> | null>;
370
+ deleteBehaviorProgramCascade(programId: string, options?: {
371
+ confirm?: boolean;
372
+ purgeRuntime?: boolean;
373
+ idempotencyKey?: string;
374
+ }): Promise<ViraResponse<ClientBody> | null>;
360
375
  createBehaviorProgram(program: ClientBody, options?: {
361
376
  idempotencyKey?: string;
362
377
  }): Promise<ViraResponse<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
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"},