Zod schema for the request body of POST /api/analyze.
Accepts only URLs whose hostname is drive.google.com or
drive.usercontent.google.com. Any other scheme (ftp://, data:, ...)
or hostname is rejected at the boundary with HTTP 400.
Example
constparsed = analyzeRequestSchema.safeParse(awaitrequest.json()); if (!parsed.success) returnjsonError(400, 'Please paste a valid Drive URL.');
Zod schema for the request body of
POST /api/analyze.Accepts only URLs whose hostname is
drive.google.comordrive.usercontent.google.com. Any other scheme (ftp://,data:, ...) or hostname is rejected at the boundary with HTTP 400.