@deliverd/sdk 0.29.0 → 0.31.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/dev.d.ts.map +1 -1
- package/dist/dev.js +10 -0
- package/dist/released.d.ts +1 -1
- package/dist/released.d.ts.map +1 -1
- package/dist/released.js +2930 -0
- package/dist/types.d.ts +31 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/dev.ts +10 -0
- package/src/released.ts +2932 -0
- package/src/types.ts +33 -0
package/src/types.ts
CHANGED
|
@@ -370,6 +370,8 @@ export interface ApprovalData {
|
|
|
370
370
|
questions: ApprovalQuestion[];
|
|
371
371
|
/** Which agent asked, as the request declared it. Null when it said nothing. Not verified. */
|
|
372
372
|
agent: DeclaredAgent | null;
|
|
373
|
+
/** What your model or decision engine recommended, as sent. Null when you sent none. */
|
|
374
|
+
recommendation: ApprovalRecommendation | null;
|
|
373
375
|
/** The model the request said the agent was running on. Not verified. */
|
|
374
376
|
model: string | null;
|
|
375
377
|
createdAt: string;
|
|
@@ -436,6 +438,35 @@ export interface CreateApprovalInput {
|
|
|
436
438
|
* numbers and true/false. Omitted, it is approve or reject only.
|
|
437
439
|
*/
|
|
438
440
|
editableFields?: string[];
|
|
441
|
+
/**
|
|
442
|
+
* What your model or decision engine recommends, shown to the approver as
|
|
443
|
+
* context, never as the decision. Where the organisation has blind review
|
|
444
|
+
* on, a high or critical risk request's recommendation is shown only after
|
|
445
|
+
* the approver records their own view.
|
|
446
|
+
*/
|
|
447
|
+
recommendation?: ApprovalRecommendationInput;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** A recommendation as you send it: a verdict, and as much of the rest as you have. */
|
|
451
|
+
export interface ApprovalRecommendationInput {
|
|
452
|
+
verdict: "approve" | "reject";
|
|
453
|
+
/** The recommendation in a line. */
|
|
454
|
+
summary?: string;
|
|
455
|
+
/** How sure it is, from 0 to 1. */
|
|
456
|
+
confidence?: number;
|
|
457
|
+
/** Why, as your system explains it. */
|
|
458
|
+
rationale?: string;
|
|
459
|
+
/** Which model or engine made it. */
|
|
460
|
+
source?: string;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/** A recommendation as the API returns it. */
|
|
464
|
+
export interface ApprovalRecommendation {
|
|
465
|
+
verdict: "approve" | "reject";
|
|
466
|
+
summary: string | null;
|
|
467
|
+
confidence: number | null;
|
|
468
|
+
rationale: string | null;
|
|
469
|
+
source: string | null;
|
|
439
470
|
}
|
|
440
471
|
|
|
441
472
|
/**
|
|
@@ -810,6 +841,8 @@ export type WebhookEventName =
|
|
|
810
841
|
| "side_task.completed"
|
|
811
842
|
/** An AI risk indicator went red for a month: its figure, limits and owner. */
|
|
812
843
|
| "risk_indicator.breached"
|
|
844
|
+
/** Opt-in: a person confirmed or retired knowledge, or a playbook or prompt went into force or was retired. For a sync. */
|
|
845
|
+
| "context.changed"
|
|
813
846
|
/** Opt-in: one audit log entry, with its chain position and hashes. For a SIEM. */
|
|
814
847
|
| "audit.event";
|
|
815
848
|
|