API reference › @evolu/common › local‑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<UnionType<readonly [BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length16", LengthError<16>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length20", LengthError<20>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length24", LengthError<24>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length28", LengthError<28>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, 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:254
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
| Name | Type | Default value | Defined 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<UnionType<readonly [BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length16", LengthError<16>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length20", LengthError<20>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length24", LengthError<24>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length28", LengthError<28>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, 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:255 |
_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> | OwnerEncryptionKey | packages/common/src/local-first/Schema.ts:257 |
_appOwner.id | BrandType<BrandType<Type<"String", string, string, TypeOfError<"String">, null, TypeOfError<"String">, never, string, true>, "Id", IdError>, "OwnerId", never> | OwnerId | packages/common/src/local-first/Schema.ts:256 |
_appOwner.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>]> | - | packages/common/src/local-first/Schema.ts:260 |
_appOwner.secret | UnionType<readonly [BrandType<UnionType<readonly [BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length16", LengthError<16>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length20", LengthError<20>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length24", LengthError<24>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length28", LengthError<28>>, BrandType<BrandType<Type<"Uint8Array", Uint8Array<...>, Uint8Array<...>, ObjectTagError<...>, null, ObjectTagError<...>, never, Uint8Array<...>, true>, "Entropy", never>, "Length32", LengthError<32>>]>, "OwnerSecret", never>, LiteralType<null>]> | - | packages/common/src/local-first/Schema.ts:259 |
_appOwner.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> | OwnerWriteKey | packages/common/src/local-first/Schema.ts:258 |