@tryvira/sdk 0.1.27 → 0.1.28
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 +12 -0
- package/dist/js-client.d.ts +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
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)}` });
|
|
@@ -587,6 +591,14 @@ var ViraClient = class {
|
|
|
587
591
|
path: `/v1/behavior-programs/${encodeURIComponent(programId)}`
|
|
588
592
|
});
|
|
589
593
|
}
|
|
594
|
+
deleteBehaviorProgram(programId, options = {}) {
|
|
595
|
+
required(programId, "SDK_PROGRAM_ID_REQUIRED");
|
|
596
|
+
return this.request({ method: "DELETE", path: `/v1/behavior-programs/${encodeURIComponent(programId)}`, body: { confirm: options.confirm === true } }, { idempotencyKey: options.idempotencyKey ?? `sdk:delete:behavior-program:${programId}` });
|
|
597
|
+
}
|
|
598
|
+
deleteBehaviorProgramCascade(programId, options = {}) {
|
|
599
|
+
required(programId, "SDK_PROGRAM_ID_REQUIRED");
|
|
600
|
+
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}` });
|
|
601
|
+
}
|
|
590
602
|
createBehaviorProgram(program, options = {}) {
|
|
591
603
|
if (!program || typeof program !== "object")
|
|
592
604
|
throw new Error("SDK_PROGRAM_REQUIRED");
|
package/dist/js-client.d.ts
CHANGED
|
@@ -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;
|
|
@@ -357,6 +362,15 @@ export declare class ViraClient {
|
|
|
357
362
|
getBehaviorProgram(programId: string): Promise<ViraResponse<{
|
|
358
363
|
program: ClientBody;
|
|
359
364
|
}> | null>;
|
|
365
|
+
deleteBehaviorProgram(programId: string, options?: {
|
|
366
|
+
confirm?: boolean;
|
|
367
|
+
idempotencyKey?: string;
|
|
368
|
+
}): Promise<ViraResponse<ClientBody> | null>;
|
|
369
|
+
deleteBehaviorProgramCascade(programId: string, options?: {
|
|
370
|
+
confirm?: boolean;
|
|
371
|
+
purgeRuntime?: boolean;
|
|
372
|
+
idempotencyKey?: string;
|
|
373
|
+
}): Promise<ViraResponse<ClientBody> | null>;
|
|
360
374
|
createBehaviorProgram(program: ClientBody, options?: {
|
|
361
375
|
idempotencyKey?: string;
|
|
362
376
|
}): Promise<ViraResponse<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvira/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
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"},
|