@deliverd/sdk 0.17.0 → 0.19.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 +1813 -0
- package/dist/tasks.d.ts +1 -9
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +0 -17
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/released.ts +1813 -0
- package/src/tasks.ts +0 -20
- package/src/types.ts +6 -0
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
|
}
|
package/src/types.ts
CHANGED
|
@@ -1508,6 +1508,12 @@ export interface GovernanceProfileInput {
|
|
|
1508
1508
|
sensitiveData?: boolean;
|
|
1509
1509
|
customerFacing?: boolean;
|
|
1510
1510
|
productionUse?: boolean;
|
|
1511
|
+
/**
|
|
1512
|
+
* Supports a critical or important function (DORA Art. 3(22)). `null` until
|
|
1513
|
+
* classified, when production use stands in. An agent may raise it to
|
|
1514
|
+
* `true`; only a person lowers or clears it.
|
|
1515
|
+
*/
|
|
1516
|
+
criticalFunction?: boolean | null;
|
|
1511
1517
|
autonomy?: "assist" | "recommend" | "act_with_approval" | "act_autonomously" | null;
|
|
1512
1518
|
decisionImpact?: "none" | "informs" | "supports_decision" | "automated_decision" | null;
|
|
1513
1519
|
oversight?:
|