toip.tools

interface · Browser and Node

Requirements

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

Declaration

TypeScriptinterface
interface Requirements {
  /** Default 3. */
  maxLinks?: number;
  /** "<type>@<issuer DID>" of credentials the root must hold, e.g. "VerifiedBusiness@did:key:…". */
  rootMustHold?: string[];
  /** Default "optional" (see the README). */
  passport?: "required" | "optional";
  passportIssuerMustBeRoot?: boolean;
  /** Default 3600. */
  maxStatusAgeSeconds?: number;
}

Properties

maxLinksoptional
number | undefined

Default 3.

rootMustHoldoptional
string[] | undefined

"@" of credentials the root must hold, e.g. "VerifiedBusiness@did:key:…".

passportoptional
"optional" | "required" | undefined

Default "optional" (see the README).

passportIssuerMustBeRootoptional
boolean | undefined
maxStatusAgeSecondsoptional
number | undefined

Default 3600.