toip.tools

interface · Browser and Node

MandateSubject

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

Declaration

TypeScriptinterface
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

idrequired
string

The delegate's DID.

mandateVersionrequired
1
profilerequired
string

Which action vocabulary: "settle/1", "capture/1", or one added with registerProfile.

purposeoptional
string | undefined

For people only. Never evaluated.

parentrequired
{ id: string; hash: string; } | null
constraintsrequired
Record<string, Constraint>
delegationrequired
{ maxDepth: number; }
escalationoptional
{ approvable: string[]; approvalTtlSeconds: number; } | undefined
revocationrequired
{ maxAgeSeconds: number; }