ui/client/features/processes/services/ReviewApi
Cockpit client (features), v0.9. Source: ui/client/features/processes/services/ReviewApi.ts.
Functions#
fetchReview()#
fetchReview(
id):Promise<{ok:true;review:Review; } | {error:string;ok:false; }>
Defined in: ui/client/features/processes/services/ReviewApi.ts:5
The approval gate's read-only review of one process: the exact diff of each artifact, its hash and its refusals.
Parameters#
id
string
Returns#
Promise<{ ok: true; review: Review; } | { error: string; ok: false; }>
sendDecision()#
sendDecision(
id,path,verdict,diffSha256):Promise<DecideResult>
Defined in: ui/client/features/processes/services/ReviewApi.ts:20
ONE decision on ONE file. The body is exactly { path, verdict, diffSha256 }: who is deciding is
decided by the server from the signed session, so it is not, and cannot be, sent from here, and the
hash is the one of the diff that was on screen, never computed here.
Parameters#
id
string
path
string
verdict
"approve" | "reject"
diffSha256
string | null
Returns#
Promise<DecideResult>