interface · Browser and Node
MandateSubject
@toip-tools/mandatesView sourceimport { type MandateSubject } from "@toip-tools/mandates";
Declaration
interface MandateSubject {
/** The delegate's DID. */
id: string;
mandateVersion: 1;
/** Which action vocabulary: "settle/1", "capture/1", or one added with registerProfile. */
profile: string;
/** For people only. Never evaluated. */
purpose?: string;
parent: { id: string; hash: string } | null;
constraints: Record<string, Constraint>;
delegation: { maxDepth: number };
escalation?: { approvable: string[]; approvalTtlSeconds: number };
revocation: { maxAgeSeconds: number };
}
Properties
idrequiredstringThe delegate's DID.
mandateVersionrequired1profilerequiredstringWhich action vocabulary: "settle/1", "capture/1", or one added with registerProfile.
purposeoptionalstring | undefinedFor people only. Never evaluated.
parentrequired{ id: string; hash: string; } | nullconstraintsrequiredRecord<string, Constraint>delegationrequired{ maxDepth: number; }escalationoptional{ approvable: string[]; approvalTtlSeconds: number; } | undefinedrevocationrequired{ maxAgeSeconds: number; }