Hierarchy

Constructors

Properties

_agent: Agent
_serviceConf: ServiceConf
capability: {
    space: SpaceClient;
    store: StoreClient;
    upload: UploadClient;
}

Type declaration

Methods

  • Create a new space with an optional name.

    Parameters

    • Optional name: string

    Returns Promise<Space>

  • Register the current space with the service.

    Invokes voucher/redeem for the free tier, waits on the websocket for the voucher/claim and invokes it.

    It also adds a full space delegation to the service in the voucher/claim invocation to allow for recovery.

    Parameters

    • email: string
    • Optional options: {
          signal: undefined | AbortSignal;
      }
      • signal: undefined | AbortSignal

    Returns Promise<void>

  • Use a specific space.

    Parameters

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

    Returns Promise<void>

  • Uploads a directory of files to the service and returns the root data CID for the generated DAG. All files are added to a container directory, with paths in file names preserved.

    Parameters

    Returns Promise<AnyLink>

Generated using TypeDoc