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<
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
| 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<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.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:246 |
_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:245 |
_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:249 |
_appOwner.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>]> | - | packages/common/src/local-first/Schema.ts:248 |
_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:247 |