@tryvira/sdk 0.1.49 → 0.1.50
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 +2 -1
- package/dist/js-client.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -488,10 +488,11 @@ var ViraClient = class {
|
|
|
488
488
|
required(input.scope.projectId, "SDK_ACTION_PROJECT_REQUIRED");
|
|
489
489
|
required(input.scope.environmentId, "SDK_ACTION_ENVIRONMENT_REQUIRED");
|
|
490
490
|
required(input.executionId, "SDK_ACTION_EXECUTION_REQUIRED");
|
|
491
|
+
required(input.sessionId, "SDK_ACTION_SESSION_REQUIRED");
|
|
491
492
|
return this.request({
|
|
492
493
|
method: "POST",
|
|
493
494
|
path: "/v1/runtime/actions/authorize",
|
|
494
|
-
body: { executionId: input.executionId, scope: input.scope, context: input.context, proposal: input.proposal }
|
|
495
|
+
body: { executionId: input.executionId, sessionId: input.sessionId, scope: input.scope, context: input.context, proposal: input.proposal, ...input.approval ? { approval: input.approval } : {} }
|
|
495
496
|
});
|
|
496
497
|
}
|
|
497
498
|
listBehaviorStrategies() {
|
package/dist/js-client.d.ts
CHANGED
|
@@ -368,6 +368,7 @@ export declare class ViraClient {
|
|
|
368
368
|
} | null>;
|
|
369
369
|
authorizeHostAction(input: {
|
|
370
370
|
executionId: string;
|
|
371
|
+
sessionId: string;
|
|
371
372
|
scope: {
|
|
372
373
|
organizationId: string;
|
|
373
374
|
projectId: string;
|
|
@@ -375,6 +376,7 @@ export declare class ViraClient {
|
|
|
375
376
|
};
|
|
376
377
|
context: Record<string, unknown>;
|
|
377
378
|
proposal: Record<string, unknown>;
|
|
379
|
+
approval?: Record<string, unknown>;
|
|
378
380
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
379
381
|
listBehaviorStrategies(): Promise<ViraResponse<ClientBody> | null>;
|
|
380
382
|
deleteBehaviorStrategy(strategyId: string, options?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvira/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.50",
|
|
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"},
|