interface · Browser and Node
DecideInput
@toip-tools/mandatesView sourceimport { type DecideInput } from "@toip-tools/mandates";
Declaration
interface DecideInput {
chain: Mandate[];
/** The DID that is acting. For a counterparty, the TSP sender of the presentation. */
presenter: string;
action: Action;
/** What the leaf has spent per period. Required when the leaf has a budget that applies. */
state?: SpendStatement;
approvals?: Approval[];
usedApprovals?: (id: string) => boolean;
status: StatusResolver;
requirements?: Requirements;
facts?: { rootCredentials?: Credential[]; passport?: Credential };
clock: Clock;
}
Properties
chainrequiredMandate[]presenterrequiredstringThe DID that is acting. For a counterparty, the TSP sender of the presentation.
actionrequiredActionstateoptionalSpendStatement | undefinedWhat the leaf has spent per period. Required when the leaf has a budget that applies.
approvalsoptionalApproval[] | undefinedusedApprovalsoptional((id: string) => boolean) | undefinedstatusrequiredStatusResolverrequirementsoptionalRequirements | undefinedfactsoptional{ rootCredentials?: Credential[]; passport?: Credential; } | undefinedclockrequiredClock