signify-ts
    Preparing search index...

    Class Identifier

    Identifier

    Index

    Constructors

    Properties

    Methods

    • Authorize an endpoint provider in a given role for a managed identifier

      Parameters

      • name: string

        Name or alias of the identifier

      • role: string

        Authorized role for eid

      • Optionaleid: string

        Optional qb64 of endpoint provider to be authorized

      • Optionalstamp: string

        Optional date-time-stamp RFC-3339 profile of iso8601 datetime. Now is the default if not provided

      Returns Promise<EventResult>

      A promise to the result of the authorization

      Typically used to authorize the agent to be the endpoint provider for the identifier in the role of agent

    • Parameters

      • name: string
      • Optionaldata: any

      Returns Promise<{ jsondata: any; serder: any; sigs: any }>

    • Get information for a managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      Returns Promise<
          {
              icp_dt: string;
              name: string;
              prefix: string;
              state: {
                  b: string[];
                  bt: string;
                  c: string[];
                  d: string;
                  di: string;
                  dt: string;
                  ee: { ba?: unknown[]; br?: unknown[]; d: string; s: string };
                  et: string;
                  f: string;
                  i: string;
                  k: string[];
                  kt: string;
                  n: string[];
                  nt: string;
                  p: string;
                  s: string;
                  vn?: number[];
              };
              transferable: null
              | boolean;
              windexes: null | string[];
          } & (
              | {
                  salty: {
                      dcode: string;
                      icodes: string[];
                      kidx: number;
                      ncodes: string[];
                      pidx: number;
                      stem: string;
                      sxlt: string;
                      tier: Tier;
                      transferable: boolean;
                  };
              }
              | { randy: { nxts: string[]; prxs: string[] } }
              | {
                  group: {
                      keys: string[];
                      mhab: { name: string; prefix: string; icp_dt: string; state: { vn?: number[] | undefined; i: string; s: string; p: string; d: string; f: string; dt: string; et: string; kt: string; k: string[]; nt: string; n: string[]; bt: string; b: string[]; c: string[]; ee: { ...; }; di: string; }; transferable: boolean | null; windexe...;
                      ndigs: string[];
                  };
              }
              | {
                  extern: { extern_type: string; pidx: number } & {
                      [key: string]: unknown;
                  };
              }
          ),
      >

      A promise to the identifier information

    • Generate an interaction event in a managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • Optionaldata: any

        Option data to be anchored in the interaction event

      Returns Promise<EventResult>

      A promise to the interaction event result

    • List managed identifiers

      Parameters

      • Optionalstart: number = 0

        Start index of list of notifications, defaults to 0

      • Optionalend: number = 24

        End index of list of notifications, defaults to 24

      Returns Promise<any>

      A promise to the list of managed identifiers

    • Get the members of a group identifier

      Parameters

      • name: string

        Name or alias of the identifier

      Returns Promise<
          {
              rotation: {
                  aid: string;
                  ends: {
                      agent: null
                      | { [key: string]: string };
                      controller: null | { [key: string]: string };
                      judge: null | { [key: string]: string };
                      juror: null | { [key: string]: string };
                      mailbox: null | { [key: string]: string };
                      peer: null | { [key: string]: string };
                      registrar: null | { [key: string]: string };
                      watcher: null | { [key: string]: string };
                      witness: null | { [key: string]: string };
                  };
              }[];
              signing: {
                  aid: string;
                  ends: {
                      agent: null
                      | { [key: string]: string };
                      controller: null | { [key: string]: string };
                      judge: null | { [key: string]: string };
                      juror: null | { [key: string]: string };
                      mailbox: null | { [key: string]: string };
                      peer: null | { [key: string]: string };
                      registrar: null | { [key: string]: string };
                      watcher: null | { [key: string]: string };
                      witness: null | { [key: string]: string };
                  };
              }[];
          },
      >

      • A promise to the list of members
    • Update managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • info: IdentifierInfo

        Information to update for the given identifier

      Returns Promise<
          {
              icp_dt: string;
              name: string;
              prefix: string;
              state: {
                  b: string[];
                  bt: string;
                  c: string[];
                  d: string;
                  di: string;
                  dt: string;
                  ee: { ba?: unknown[]; br?: unknown[]; d: string; s: string };
                  et: string;
                  f: string;
                  i: string;
                  k: string[];
                  kt: string;
                  n: string[];
                  nt: string;
                  p: string;
                  s: string;
                  vn?: number[];
              };
              transferable: null
              | boolean;
              windexes: null | string[];
          } & (
              | {
                  salty: {
                      dcode: string;
                      icodes: string[];
                      kidx: number;
                      ncodes: string[];
                      pidx: number;
                      stem: string;
                      sxlt: string;
                      tier: Tier;
                      transferable: boolean;
                  };
              }
              | { randy: { nxts: string[]; prxs: string[] } }
              | {
                  group: {
                      keys: string[];
                      mhab: { name: string; prefix: string; icp_dt: string; state: { vn?: number[] | undefined; i: string; s: string; p: string; d: string; f: string; dt: string; et: string; kt: string; k: string[]; nt: string; n: string[]; bt: string; b: string[]; c: string[]; ee: { ...; }; di: string; }; transferable: boolean | null; windexe...;
                      ndigs: string[];
                  };
              }
              | {
                  extern: { extern_type: string; pidx: number } & {
                      [key: string]: unknown;
                  };
              }
          ),
      >

      A promise to the identifier information after updating