Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// schema: boundary-only
import z from "zod";
/**
* Successful single-shot upload response. Also reused as the
* `complete` response since both surfaces produce an `UploadRecord`.
*/
export const SingleShotResponseSchema = z.object({
uploadId: z.string().min(1),
size: z.number().int().nonnegative(),
sha256: z.string().length(64),
mimeType: z.string().min(1),
fileName: z.string().min(1),
});
export type SingleShotResponse = z.infer<typeof SingleShotResponseSchema>;