@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/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
  }