interface · Browser and Node
Decision
@toip-tools/mandatesView sourceimport { type Decision } from "@toip-tools/mandates";
Declaration
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
outcomerequiredOutcomereasonsrequiredReason[]approverrequiredstring | nullFor "escalate": who can approve.
actionHashrequiredstringchainrequiredstring[]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; }atrequiredstring