interface · Browser and Node
DelegateOptions
@toip-tools/mandatesView sourceimport { type DelegateOptions } from "@toip-tools/mandates";
Declaration
interface DelegateOptions {
subject: string;
validUntil: string;
status: StatusEntry;
/** Narrower versions of the parent's dimensions. */
tighten: Partial<Record<string, Constraint>>;
/** New dimensions. */
add?: Record<string, Constraint>;
purpose?: string;
/** Default: the parent's minus one. */
maxDepth?: number;
/** Default: the parent's. */
escalation?: MandateSubject["escalation"];
/** Default: the parent's. */
revocation?: MandateSubject["revocation"];
}
Properties
subjectrequiredstringvalidUntilrequiredstringstatusrequiredStatusEntrytightenrequiredPartial<Record<string, Constraint>>Narrower versions of the parent's dimensions.
addoptionalRecord<string, Constraint> | undefinedNew dimensions.
purposeoptionalstring | undefinedmaxDepthoptionalnumber | undefinedDefault: the parent's minus one.
escalationoptional{ approvable: string[]; approvalTtlSeconds: number; } | undefinedDefault: the parent's.
revocationoptional{ maxAgeSeconds: number; } | undefinedDefault: the parent's.