@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Variable setupIdentitySpacesConst

    setupIdentitySpaces: (
        ...args: [client: Client],
    ) => Effect<{ defaultSpace: Space; settingsSpace: Space }, never, never> = ...

    Create the two spaces every profile starts with, and designate the second as the default.

    Shared by the app's identity-created module and the story/test harnesses so the shape of a new profile is defined once. It lives here rather than in plugin-space because plugin-client (CLI, test harness) cannot depend on plugin-space.

    Both are locked at genesis: the settings space holds configuration that must never be shared, and the first space is private until the user decides otherwise. Both replicate through EDGE so they follow the identity across devices.

    The content space is created first so it, not the internal settings space, is the first entry returned by client.spaces.get().

    Type declaration

      • (
            ...args: [client: Client],
        ): Effect<{ defaultSpace: Space; settingsSpace: Space }, never, never>
      • Parameters

        • ...args: [client: Client]

        Returns Effect<{ defaultSpace: Space; settingsSpace: Space }, never, never>