signify-ts
    Preparing search index...

    Class Contacts

    Contacts

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Methods

    • Add a contact

      Parameters

      • pre: string

        Prefix of the contact

      • info: ContactInfo

        Information about the contact

      Returns Promise<
          {
              alias?: string;
              challenges?: {
                  authenticated?: boolean;
                  dt?: string;
                  said?: string;
                  words: 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 };
              };
              id: string;
              oobi?: string;
              wellKnowns?: { dt: string; url: string }[];
          } & { [key: string]: unknown },
      >

      A promise to the result of the addition

    • Delete a contact

      Parameters

      • pre: string

        Prefix of the contact

      Returns Promise<void>

    • Get a contact

      Parameters

      • pre: string

        Prefix of the contact

      Returns Promise<
          {
              alias?: string;
              challenges?: {
                  authenticated?: boolean;
                  dt?: string;
                  said?: string;
                  words: 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 };
              };
              id: string;
              oobi?: string;
              wellKnowns?: { dt: string; url: string }[];
          } & { [key: string]: unknown },
      >

      A promise to the contact

    • List contacts

      Parameters

      • Optionalgroup: string

        Optional group name to filter contacts

      • OptionalfilterField: string

        Optional field name to filter contacts

      • OptionalfilterValue: string

        Optional field value to filter contacts

      Returns Promise<
          (
              {
                  alias?: string;
                  challenges?: {
                      authenticated?: boolean;
                      dt?: string;
                      said?: string;
                      words: 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 };
                  };
                  id: string;
                  oobi?: string;
                  wellKnowns?: { dt: string; url: string }[];
              } & { [key: string]: unknown }
          )[],
      >

      A promise to the list of contacts

    • Update a contact

      Parameters

      • pre: string

        Prefix of the contact

      • info: ContactInfo

        Updated information about the contact

      Returns Promise<
          {
              alias?: string;
              challenges?: {
                  authenticated?: boolean;
                  dt?: string;
                  said?: string;
                  words: 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 };
              };
              id: string;
              oobi?: string;
              wellKnowns?: { dt: string; url: string }[];
          } & { [key: string]: unknown },
      >

      A promise to the result of the update