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,30 @@
import type { SuaveplanErrorOptions } from "@suaveplan/error";
import { defineCodes, SuaveplanError } from "@suaveplan/error";
export const CHUNKS_CODES = defineCodes("CHUNKS", [
"VERSION_UNSUPPORTED",
"METADATA_INVALID",
"SIG_INVALID",
"AEAD_TAG_INVALID",
"PAYLOAD_LEN_INVALID",
"FLAGS_RESERVED_NONZERO",
"MANIFEST_INVALID",
"MANIFEST_NOT_FOUND",
"FILE_NOT_FOUND",
"LAYOUT_INCOMPATIBLE",
"INGEST_FAILED",
"INLINE_SIG_INVALID",
] as const);
export type ChunksErrorCode = (typeof CHUNKS_CODES)[keyof typeof CHUNKS_CODES];
export class ChunksError extends SuaveplanError<ChunksErrorCode> {
// biome-ignore lint/complexity/noUselessConstructor: widens protected base constructor to public
public constructor(
code: ChunksErrorCode,
message: string,
options?: SuaveplanErrorOptions
) {
super(code, message, options);
}
}