toip.tools

interface · Browser and Node

Decision

@toip-tools/mandatesView source
TypeScriptImport
import { type Decision } from "@toip-tools/mandates";

Declaration

TypeScriptinterface
interface Decision {
  outcome: Outcome;
  reasons: Reason[];
  /** For "escalate": who can approve. */
  approver: string | null;
  actionHash: string;
  /** Mandate ids, root first. */
  chain: string[];
  /** Issuer and subject of each link, root first, so a decision can be explained on its own. */
  parties: { issuer: string; subject: string }[];
  policy: { id: string; hash: string };
  at: string;
}

Properties

outcomerequired
Outcome
reasonsrequired
Reason[]
approverrequired
string | null

For "escalate": who can approve.

actionHashrequired
string
chainrequired
string[]

Mandate ids, root first.

partiesrequired
{ issuer: string; subject: string; }[]

Issuer and subject of each link, root first, so a decision can be explained on its own.

policyrequired
{ id: string; hash: string; }
atrequired
string