Represents an owned space, meaning a space for which we have a private key and consequently have full authority over.

Hierarchy

  • OwnedSpace

Constructors

  • Parameters

    Returns OwnedSpace

Properties

model: Model

Accessors

  • get name(): string
  • Returns string

  • get signer(): EdSigner
  • Returns EdSigner

Methods

  • Creates (UCAN) delegation that gives specified agent an access to specified ability (passed as access.can field) on the this space. Optionally, you can specify access.expiration field to set the

    Parameters

    • agent: Principal<`did:${string}:${string}`>
    • Optional input: {
          access?: Access;
          expiration?: number;
      }
      • Optional access?: Access
      • Optional expiration?: number

    Returns Promise<Delegation<Capabilities>>

  • Creates a (UCAN) delegation that gives full access to the space to the specified account. At the moment we only allow did:mailto principal to be used as an account.

    Parameters

    • account: `did:mailto:${string}`

    Returns Promise<Delegation<Capabilities>>

  • Returns `did:key:${string}`

  • Saves account in the agent store so it can be accessed across sessions.

    Parameters

    Returns Promise<Result<Unit, Error>>

  • Derives BIP39 mnemonic that can be used to recover the space.

    Returns string

  • Creates a renamed version of this space.

    Parameters

    • name: string

    Returns OwnedSpace

Generated using TypeDoc