API reference@evolu/commonlocal‑first/Schema › testLocalOnlyEvoluSchema

const testLocalOnlyEvoluSchema: {
  _appOwner: {
    encryptionKey: BrandType<
      BrandType<
        BrandType<
          BrandType<
            Type<
              "Uint8Array",
              Uint8Array<ArrayBufferLike>,
              Uint8Array<ArrayBufferLike>,
              ObjectTagError<"Uint8Array">,
              null,
              ObjectTagError<"Uint8Array">,
              never,
              Uint8Array<ArrayBufferLike>,
              true
            >,
            "Entropy",
            never
          >,
          "Length32",
          LengthError<32>
        >,
        "EncryptionKey",
        never
      >,
      "OwnerEncryptionKey",
      never
    >;
    id: BrandType<
      BrandType<
        Type<
          "String",
          string,
          string,
          TypeOfError<"String">,
          null,
          TypeOfError<"String">,
          never,
          string,
          true
        >,
        "Id",
        IdError
      >,
      "OwnerId",
      never
    >;
    name: UnionType<
      readonly [
        BrandType<
          BrandType<
            BrandType<
              Type<
                "String",
                string,
                string,
                TypeOfError<"String">,
                null,
                TypeOfError<"String">,
                never,
                string,
                true
              >,
              "Trimmed",
              TrimmedError
            >,
            "MinLength1",
            MinLengthError<1>
          >,
          "MaxLength100",
          MaxLengthError<100>
        >,
        LiteralType<null>,
      ]
    >;
    secret: UnionType<
      readonly [
        BrandType<
          BrandType<
            BrandType<
              Type<
                "Uint8Array",
                Uint8Array<ArrayBufferLike>,
                Uint8Array<ArrayBufferLike>,
                ObjectTagError<"Uint8Array">,
                null,
                ObjectTagError<"Uint8Array">,
                never,
                Uint8Array<ArrayBufferLike>,
                true
              >,
              "Entropy",
              never
            >,
            "Length32",
            LengthError<32>
          >,
          "OwnerSecret",
          never
        >,
        LiteralType<null>,
      ]
    >;
    writeKey: BrandType<
      BrandType<
        BrandType<
          Type<
            "Uint8Array",
            Uint8Array<ArrayBufferLike>,
            Uint8Array<ArrayBufferLike>,
            ObjectTagError<"Uint8Array">,
            null,
            ObjectTagError<"Uint8Array">,
            never,
            Uint8Array<ArrayBufferLike>,
            true
          >,
          "Entropy",
          never
        >,
        "Length16",
        LengthError<16>
      >,
      "OwnerWriteKey",
      never
    >;
  };
};

Defined in: packages/common/src/local-first/Schema.ts:243

App-owner registry schema with local tables for tests and examples.

Stores operational keys separately from optional recovery material. A null secret represents an owner whose recovery material is managed elsewhere or unavailable. Names are optional device-local labels; identicons can be derived from the owner identity without an additional column.

This fixture does not define the production registry's persistence contract.

Type Declaration

NameTypeDefault valueDefined in
_appOwner{ encryptionKey: BrandType<BrandType<BrandType<BrandType<Type<"Uint8Array", Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, ObjectTagError<"Uint8Array">, null, ObjectTagError<"Uint8Array">, never, Uint8Array<ArrayBufferLike>, true>, "Entropy", never>, "Length32", LengthError<32>>, "EncryptionKey", never>, "OwnerEncryptionKey", never>; id: BrandType<BrandType<Type<"String", string, string, TypeOfError<"String">, null, TypeOfError<"String">, never, string, true>, "Id", IdError>, "OwnerId", never>; name: UnionType<readonly [BrandType<BrandType<BrandType<Type<"String", string, string, TypeOfError<"String">, null, TypeOfError<"String">, never, string, true>, "Trimmed", TrimmedError>, "MinLength1", MinLengthError<1>>, "MaxLength100", MaxLengthError<100>>, LiteralType<null>]>; secret: UnionType<readonly [BrandType<BrandType<BrandType<Type<"Uint8Array", Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, ObjectTagError<"Uint8Array">, null, ObjectTagError<"Uint8Array">, never, Uint8Array<ArrayBufferLike>, true>, "Entropy", never>, "Length32", LengthError<32>>, "OwnerSecret", never>, LiteralType<null>]>; writeKey: BrandType<BrandType<BrandType<Type<"Uint8Array", Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, ObjectTagError<"Uint8Array">, null, ObjectTagError<"Uint8Array">, never, Uint8Array<ArrayBufferLike>, true>, "Entropy", never>, "Length16", LengthError<16>>, "OwnerWriteKey", never>; }-packages/common/src/local-first/Schema.ts:244
_appOwner.encryptionKeyBrandType<BrandType<BrandType<BrandType<Type<"Uint8Array", Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, ObjectTagError<"Uint8Array">, null, ObjectTagError<"Uint8Array">, never, Uint8Array<ArrayBufferLike>, true>, "Entropy", never>, "Length32", LengthError<32>>, "EncryptionKey", never>, "OwnerEncryptionKey", never>OwnerEncryptionKeypackages/common/src/local-first/Schema.ts:246
_appOwner.idBrandType<BrandType<Type<"String", string, string, TypeOfError<"String">, null, TypeOfError<"String">, never, string, true>, "Id", IdError>, "OwnerId", never>OwnerIdpackages/common/src/local-first/Schema.ts:245
_appOwner.nameUnionType<readonly [BrandType<BrandType<BrandType<Type<"String", string, string, TypeOfError<"String">, null, TypeOfError<"String">, never, string, true>, "Trimmed", TrimmedError>, "MinLength1", MinLengthError<1>>, "MaxLength100", MaxLengthError<100>>, LiteralType<null>]>-packages/common/src/local-first/Schema.ts:249
_appOwner.secretUnionType<readonly [BrandType<BrandType<BrandType<Type<"Uint8Array", Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, ObjectTagError<"Uint8Array">, null, ObjectTagError<"Uint8Array">, never, Uint8Array<ArrayBufferLike>, true>, "Entropy", never>, "Length32", LengthError<32>>, "OwnerSecret", never>, LiteralType<null>]>-packages/common/src/local-first/Schema.ts:248
_appOwner.writeKeyBrandType<BrandType<BrandType<Type<"Uint8Array", Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, ObjectTagError<"Uint8Array">, null, ObjectTagError<"Uint8Array">, never, Uint8Array<ArrayBufferLike>, true>, "Entropy", never>, "Length16", LengthError<16>>, "OwnerWriteKey", never>OwnerWriteKeypackages/common/src/local-first/Schema.ts:247