toip.tools

interface · Browser and Node

DelegateOptions

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

Declaration

TypeScriptinterface
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

subjectrequired
string
validUntilrequired
string
statusrequired
StatusEntry
tightenrequired
Partial<Record<string, Constraint>>

Narrower versions of the parent's dimensions.

addoptional
Record<string, Constraint> | undefined

New dimensions.

purposeoptional
string | undefined
maxDepthoptional
number | undefined

Default: the parent's minus one.

escalationoptional
{ approvable: string[]; approvalTtlSeconds: number; } | undefined

Default: the parent's.

revocationoptional
{ maxAgeSeconds: number; } | undefined

Default: the parent's.