Initial Commit
This commit is contained in:
@@ -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>;
|
||||
Reference in New Issue
Block a user