iya-sts
    Preparing search index...
    approve: (
        id: string,
        caller: Caller,
        replay: (row: any) => Promise<any>,
    ) => Promise<any> = ...

    Type Declaration

      • (id: string, caller: Caller, replay: (row: any) => Promise<any>): Promise<any>
      • Approves a held act and runs it: the stored operation, through the handler replay calls, as the requester's act. The requester must still hold the authority; the handler re-validates the body against the state as it is now.

        Parameters

        • id: string

          the request

        • caller: Caller

          the approver, as the gate named them

        • replay: (row: any) => Promise<any>

          (request) => Promise<{ status, body }>, the management API's run of the stored operation

        Returns Promise<any>

        { ok, status, body, approval }, or a refusal { ok: false, errors, errorCode, status }