Interface WebIdStore

Stores and updates WebID to Account links.

Hierarchy

  • WebIdStore

Implemented by

Properties

create: ((webId, accountId) => Promise<string>)

Type declaration

    • (webId, accountId): Promise<string>
    • Creates a new WebID link for the given WebID and account.

      Parameters

      • webId: string

        WebID to link.

      • accountId: string

      Returns Promise<string>

      ID of the link.

delete: ((linkId) => Promise<void>)

Type declaration

    • (linkId): Promise<void>
    • Deletes the link with the given ID

      Parameters

      • linkId: string

        ID of the link.

      Returns Promise<void>

findLinks: ((accountId) => Promise<{
    id: string;
    webId: string;
}[]>)

Type declaration

    • (accountId): Promise<{
          id: string;
          webId: string;
      }[]>
    • Finds all links associated with the given account.

      Parameters

      • accountId: string

        ID of the account.

      Returns Promise<{
          id: string;
          webId: string;
      }[]>

get: ((linkId) => Promise<undefined | {
    accountId: string;
    webId: string;
}>)

Type declaration

    • (linkId): Promise<undefined | {
          accountId: string;
          webId: string;
      }>
    • Finds the account and WebID of the link with the given ID.

      Parameters

      • linkId: string

      Returns Promise<undefined | {
          accountId: string;
          webId: string;
      }>

isLinked: ((webId, accountId) => Promise<boolean>)

Type declaration

    • (webId, accountId): Promise<boolean>
    • Determines if a WebID is linked to an account.

      Parameters

      • webId: string

        WebID to check.

      • accountId: string

        ID of the account.

      Returns Promise<boolean>