/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type InitiateAuditorFileUploadInput = { /** * Email of the auditor to credit as the uploader. They must be an active user * * @remarks * in your audit firm with access to the audit, including when you finalize. */ email: string; /** * Filename to display on the attachment. Must be 1–255 characters after trimming surrounding whitespace. */ filename: string; /** * The file's declared MIME type. Accepted values: * * @remarks * - `application/json` * - `application/pdf` * - `application/postscript` * - `application/vnd.openxmlformats-officedocument.wordprocessingml.document` * - `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` * - `application/x-zip-compressed` * - `application/zip` * - `image/jpeg` * - `image/png` * - `image/webp` * - `text/csv` * - `text/plain` * * Matching ignores case and MIME parameters, so `TEXT/CSV` and * `text/csv; charset=utf-8` are also accepted. Unsupported file types return * `422` during finalization. */ contentType: string; }; /** @internal */ export type InitiateAuditorFileUploadInput$Outbound = { email: string; filename: string; contentType: string; }; /** @internal */ export const InitiateAuditorFileUploadInput$outboundSchema: z.ZodType< InitiateAuditorFileUploadInput$Outbound, z.ZodTypeDef, InitiateAuditorFileUploadInput > = z.object({ email: z.string(), filename: z.string(), contentType: z.string(), }); export function initiateAuditorFileUploadInputToJSON( initiateAuditorFileUploadInput: InitiateAuditorFileUploadInput, ): string { return JSON.stringify( InitiateAuditorFileUploadInput$outboundSchema.parse( initiateAuditorFileUploadInput, ), ); }