Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
import "./error-codes.js";
export { encodeChunk, parseChunk, validateChunk } from "./codec/chunk.js";
export {
encodeHeader,
HEADER_SIZE,
METADATA_SIZE,
parseHeader,
SIG_SIZE,
} from "./codec/header.js";
export { CHUNKS_CODES, ChunksError } from "./error-codes.js";
export {
type AnyInlineHint,
type FileLocation,
type InlineHint,
inlineSigningInput,
isLegacyInlineHint,
type LegacyInlineHint,
type StorageHint,
signInlineHint,
upgradeLegacyInlineHint,
type VerifyEd25519Fn,
verifyInlineHint,
} from "./inline/index.js";
export { createAutoLayout } from "./layout/auto.js";
export { createChunkKeysLayout } from "./layout/chunk-keys.js";
export { createSparseFileLayout, preallocate } from "./layout/sparse-file.js";
export { buildManifest, canonicalSerialize } from "./manifest/build.js";
export {
loadManifestAsChunk,
loadManifestFromServer,
parseAndVerifyManifest,
} from "./manifest/load.js";
export { decryptChunk } from "./pipeline/decrypt-chunk.js";
export { deriveNonce, encryptChunks } from "./pipeline/encrypt-stream.js";
export { buildSignedChunk, signChunk } from "./pipeline/sign-chunk.js";
export { verifyChunkSig } from "./pipeline/verify-chunk.js";
export { chunksPlugin } from "./plugin.js";
export { ManifestSchema } from "./schemas/manifest.schema.js";
export type {
Chunk,
ChunkLayout,
ChunkLayoutStrategy,
ChunkMetadata,
ChunkSource,
ChunksPluginOptions,
EncodedChunk,
Manifest,
ManifestChunkEntry,
ManifestEncryption,
ManifestSource,
} from "./types/chunks.types.js";