@deliverd/sdk 0.17.0 → 0.18.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/released.d.ts +1 -1
- package/dist/released.d.ts.map +1 -1
- package/dist/released.js +907 -0
- package/dist/tasks.d.ts +1 -9
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +0 -17
- package/package.json +1 -1
- package/src/released.ts +907 -0
- package/src/tasks.ts +0 -20
package/src/tasks.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type {
|
|
|
6
6
|
ApplySideTaskInput,
|
|
7
7
|
CancelTaskInput,
|
|
8
8
|
CompleteTaskInput,
|
|
9
|
-
ControlThresholds,
|
|
10
9
|
CreateSideTaskInput,
|
|
11
10
|
CreateTaskInput,
|
|
12
11
|
DecisionApproval,
|
|
@@ -219,11 +218,6 @@ export class Task {
|
|
|
219
218
|
checkGovernanceGate(options: { action?: string } = {}, signal?: AbortSignal): Promise<GovernanceGateCheck> {
|
|
220
219
|
return new Tasks(this.http).checkGovernanceGate(this.data.id, options, signal);
|
|
221
220
|
}
|
|
222
|
-
|
|
223
|
-
/** Set what a control's scored evidence must meet, or clear it with `null`. A person's key only. */
|
|
224
|
-
setThresholds(control: string, thresholds: ControlThresholds | null, signal?: AbortSignal): Promise<Governance> {
|
|
225
|
-
return new Tasks(this.http).setThresholds(this.data.id, control, thresholds, signal);
|
|
226
|
-
}
|
|
227
221
|
}
|
|
228
222
|
|
|
229
223
|
export class Tasks {
|
|
@@ -369,18 +363,4 @@ export class Tasks {
|
|
|
369
363
|
signal,
|
|
370
364
|
});
|
|
371
365
|
}
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Set what a control's scored evidence must meet, or clear it with `null`.
|
|
375
|
-
* A person's key only: an agent's is refused (`not_permitted`), because
|
|
376
|
-
* whatever submits the results must not also decide what passes.
|
|
377
|
-
*/
|
|
378
|
-
setThresholds(id: string, control: string, thresholds: ControlThresholds | null, signal?: AbortSignal): Promise<Governance> {
|
|
379
|
-
return this.http.request<Governance>({
|
|
380
|
-
method: "PUT",
|
|
381
|
-
path: `/tasks/${enc(id)}/governance/controls/${enc(control)}/thresholds`,
|
|
382
|
-
body: { thresholds },
|
|
383
|
-
signal,
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
366
|
}
|