orchestrator-client 5.14.3 → 5.15.0
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.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -833,6 +833,7 @@ declare class OrchestratorAsync {
|
|
|
833
833
|
markVSAComplete(taskId: string): Promise<SuccessResponse>;
|
|
834
834
|
markVSAFailed(taskId: string): Promise<SuccessResponse>;
|
|
835
835
|
stopVSA(taskId: string): Promise<SuccessResponse>;
|
|
836
|
+
approveVSAAction(taskId: string, approved?: boolean): Promise<SuccessResponse>;
|
|
836
837
|
deleteVSA(taskId: string): Promise<SuccessResponse>;
|
|
837
838
|
listVSATasks(userId: string, params?: {
|
|
838
839
|
limit?: number;
|
|
@@ -1007,6 +1008,7 @@ declare class Orchestrator {
|
|
|
1007
1008
|
markVSAComplete(taskId: string): SuccessResponse;
|
|
1008
1009
|
markVSAFailed(taskId: string): SuccessResponse;
|
|
1009
1010
|
stopVSA(taskId: string): SuccessResponse;
|
|
1011
|
+
approveVSAAction(taskId: string, approved?: boolean): SuccessResponse;
|
|
1010
1012
|
deleteVSA(taskId: string): SuccessResponse;
|
|
1011
1013
|
listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
|
|
1012
1014
|
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): TaskListResult;
|
package/dist/index.d.ts
CHANGED
|
@@ -833,6 +833,7 @@ declare class OrchestratorAsync {
|
|
|
833
833
|
markVSAComplete(taskId: string): Promise<SuccessResponse>;
|
|
834
834
|
markVSAFailed(taskId: string): Promise<SuccessResponse>;
|
|
835
835
|
stopVSA(taskId: string): Promise<SuccessResponse>;
|
|
836
|
+
approveVSAAction(taskId: string, approved?: boolean): Promise<SuccessResponse>;
|
|
836
837
|
deleteVSA(taskId: string): Promise<SuccessResponse>;
|
|
837
838
|
listVSATasks(userId: string, params?: {
|
|
838
839
|
limit?: number;
|
|
@@ -1007,6 +1008,7 @@ declare class Orchestrator {
|
|
|
1007
1008
|
markVSAComplete(taskId: string): SuccessResponse;
|
|
1008
1009
|
markVSAFailed(taskId: string): SuccessResponse;
|
|
1009
1010
|
stopVSA(taskId: string): SuccessResponse;
|
|
1011
|
+
approveVSAAction(taskId: string, approved?: boolean): SuccessResponse;
|
|
1010
1012
|
deleteVSA(taskId: string): SuccessResponse;
|
|
1011
1013
|
listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
|
|
1012
1014
|
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): TaskListResult;
|
package/dist/index.js
CHANGED
|
@@ -819,6 +819,13 @@ var OrchestratorAsync = class {
|
|
|
819
819
|
});
|
|
820
820
|
return { message: data.message ?? "" };
|
|
821
821
|
}
|
|
822
|
+
async approveVSAAction(taskId, approved = true) {
|
|
823
|
+
const data = await this._post("/task/vsa/action", {
|
|
824
|
+
task_id: taskId,
|
|
825
|
+
approved
|
|
826
|
+
});
|
|
827
|
+
return { message: data.message ?? "" };
|
|
828
|
+
}
|
|
822
829
|
async deleteVSA(taskId) {
|
|
823
830
|
const data = await this._post("/task/vsa/delete", {
|
|
824
831
|
task_id: taskId
|
|
@@ -1660,6 +1667,9 @@ var Orchestrator = class {
|
|
|
1660
1667
|
stopVSA(taskId) {
|
|
1661
1668
|
return runSync(this._async.stopVSA(taskId));
|
|
1662
1669
|
}
|
|
1670
|
+
approveVSAAction(taskId, approved = true) {
|
|
1671
|
+
return runSync(this._async.approveVSAAction(taskId, approved));
|
|
1672
|
+
}
|
|
1663
1673
|
deleteVSA(taskId) {
|
|
1664
1674
|
return runSync(this._async.deleteVSA(taskId));
|
|
1665
1675
|
}
|