/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: e5008f980d4f */ import * as z from "zod"; import { UploadPresetParsedSettings, UploadPresetParsedSettings$zodSchema, } from "./uploadpresetparsedsettings.js"; /** * An upload preset as returned by the GET endpoint. Settings values are parsed into their proper types (e.g., tags become arrays, context becomes an object, booleans become true booleans). */ export type UploadPresetDetail = { name: string; unsigned?: boolean | undefined; settings?: UploadPresetParsedSettings | undefined; external_id: string; }; export const UploadPresetDetail$zodSchema: z.ZodType = z .object({ external_id: z.string().describe( "The unique identifier for the upload preset.", ), name: z.string().describe("The name of the upload preset."), settings: UploadPresetParsedSettings$zodSchema.optional().describe( "Parsed preset configuration settings. Composed from base parameters (stable types) plus parsed serializable fields (arrays/objects instead of strings).", ), unsigned: z.boolean().optional().describe( "Whether the upload preset allows unsigned uploads.", ), }).describe( "An upload preset as returned by the GET endpoint. Settings values are parsed into their proper types (e.g., tags become arrays, context becomes an object, booleans become true booleans).", );