๐ src/models/binary.ts
D-OPEN SOVEREIGN
Documentation & Insights
Patch codec facade.
`binary.ts` is a thin re-export over `@the_library/db_schemas` โ it does not
reimplement any codec. All serialization logic (LSB-first BigInt packing with
the 43-bit base header) lives in db_schema_v2 and is layout-driven via
`versions.json`. See `refactoring/step2/SPEC.md` ยง2.1.1/*
2 * Copyright (c) 2026 DataPond D-Library Pty Ltd. ("The Sanctuary")
3 * Non-Profit Public Library โ The World Library
4 *
5 * D-SAFE Certification issued by POND Enterprise.
6 * Published under the D-Open Code Sovereign Licence v1.0 framework
7 * DataPond D-Library All exclusive Right reserved on modifiying the code - CC Attribution to data pond, Non modifiable, Non Commercial.
8 * https://registry.world.bibliotech.com/licence
9 * Source code donated to DataPond D-Library by it's author: data pond.
10 *
11 * Technical Guardian ("The Shield"): Pond Enterprise Pty Ltd. (ACN 694 747 987)
12 * All liability claims about D-SAFE certification issues coming from the published D-Safe direction must be addressed with Pond Enterprise Pty Ltd.
13 * Code Modification automatically voids the certified liability protection provided by Pond Enterprise.
14 */
15/**
16 * Patch codec facade.
17 *
18 * `binary.ts` is a thin re-export over `@the_library/db_schemas` โ it does not
19 * reimplement any codec. All serialization logic (LSB-first BigInt packing with
20 * the 43-bit base header) lives in db_schema_v2 and is layout-driven via
21 * `versions.json`. See `refactoring/step2/SPEC.md` ยง2.1.
22 */
23export {
24 PatchOperation, PatchAction,
25 packPatch, unpackPatch, resolveLayout,
26 patchToEvm, evmToPatch,
27 LANG_ID_ENCODE, LANG_ID_DECODE,
28 type AnyPatch, type BasePatch,
29 type EditPropertyStringObj, type EditPropertyNumberObj,
30 type EditInstanceFieldStringObj, type EditInstanceFieldNumberObj,
31 type EditRelationObj, type SetAliasObj,
32 type CreateRecordObj, type AddInstanceObj,
33 type EvmPayload,
34 type VersionLayout, type VersionsFile, type VersionEntry,
35 type EnumLayout, type PropLayout,
36} from '@the_library/db_schemas';
37