import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { AccessControlItem } from "./accesscontrolitem.js"; import { ResponsiveBreakpoint } from "./responsivebreakpoint.js"; import { StructuredMetadataParam } from "./structuredmetadataparam.js"; import { TagsParam } from "./tagsparam.js"; import { UploadDeliveryType } from "./uploaddeliverytype.js"; /** * Deprecated. Use access_control instead. Allows the asset to behave as if it's of the authenticated delivery type while still using the default 'upload' type in delivery URLs. The asset can later be made public by changing its access_mode via the Admin API, without having to update any delivery URLs. * * @remarks * * @deprecated enum: The access_mode parameter is no longer supported. To restrict access to assets, you can use the access_control parameter.. Use access_control instead. */ export declare const UploadPresetInputAccessMode: { readonly Public: "public"; readonly Authenticated: "authenticated"; }; /** * Deprecated. Use access_control instead. Allows the asset to behave as if it's of the authenticated delivery type while still using the default 'upload' type in delivery URLs. The asset can later be made public by changing its access_mode via the Admin API, without having to update any delivery URLs. * * @remarks * * @deprecated enum: The access_mode parameter is no longer supported. To restrict access to assets, you can use the access_control parameter.. Use access_control instead. */ export type UploadPresetInputAccessMode = ClosedEnum; export declare const UploadPresetInputAccessMode$zodSchema: z.ZodEnum<{ authenticated: "authenticated"; public: "public"; }>; export declare const ParameterWhitelistEnum: { readonly None: "none"; }; export type ParameterWhitelistEnum = ClosedEnum; export declare const ParameterWhitelistEnum$zodSchema: z.ZodEnum<{ none: "none"; }>; /** * Configuration object for automatic video transcription with translation options. */ export type UploadPresetInputAutoTranscription = { translate?: Array | undefined; }; export declare const UploadPresetInputAutoTranscription$zodSchema: z.ZodType; export type UploadPresetInputAutoTranscriptionUnion = boolean | UploadPresetInputAutoTranscription; export declare const UploadPresetInputAutoTranscriptionUnion$zodSchema: z.ZodType; /** * Named region coordinate groups for cropping with region gravity. * * @remarks * Can be a JSON-encoded string or an object. Each region name may contain * only letters, numbers, or hyphens, and must have at least two coordinate pairs. */ export type UploadPresetInputRegions = string | { [k: string]: Array>; }; export declare const UploadPresetInputRegions$zodSchema: z.ZodType; /** * Settings to automatically generate breakpoints for responsive images. */ export type UploadPresetInputResponsiveBreakpoints = Array | ResponsiveBreakpoint; export declare const UploadPresetInputResponsiveBreakpoints$zodSchema: z.ZodType; /** * The parameters that are allowed to be used in an upload request utilizing this preset. If not specified or empty array, all parameters are allowed. If "none", no parameters are allowed. * * @remarks */ export type ParameterWhitelist = Array | ParameterWhitelistEnum; export declare const ParameterWhitelist$zodSchema: z.ZodType; /** * Upload preset configuration for create/update. Settings are sent as top-level string-encoded properties. */ export type UploadPresetInput = { accessibility_analysis?: boolean | undefined; asset_folder?: string | undefined; async?: boolean | undefined; auto_chaptering?: boolean | undefined; auto_tagging?: number | undefined; auto_transcription?: boolean | UploadPresetInputAutoTranscription | undefined; access_control?: Array | undefined; access_mode?: UploadPresetInputAccessMode | undefined; backup?: boolean | undefined; background_removal?: string | undefined; callback?: string | undefined; categorization?: string | undefined; cinemagraph_analysis?: boolean | undefined; colors?: boolean | undefined; detection?: string | undefined; discard_original_filename?: boolean | undefined; display_name?: string | undefined; eager_async?: boolean | undefined; eager_notification_url?: string | undefined; eval?: string | undefined; faces?: boolean | undefined; filename_override?: string | undefined; folder?: string | undefined; format?: string | undefined; invalidate?: boolean | undefined; media_metadata?: boolean | undefined; metadata?: StructuredMetadataParam | undefined; clear_invalid?: boolean | undefined; moderation?: string | undefined; notification_url?: string | undefined; ocr?: string | undefined; on_success?: string | undefined; overwrite?: boolean | undefined; phash?: boolean | undefined; proxy?: string | undefined; public_id?: string | undefined; public_id_prefix?: string | undefined; quality_analysis?: boolean | undefined; raw_convert?: string | undefined; regions?: string | { [k: string]: Array>; } | undefined; responsive_breakpoints?: Array | ResponsiveBreakpoint | undefined; return_delete_token?: boolean | undefined; upload_preset?: string | undefined; use_asset_folder_as_public_id_prefix?: boolean | undefined; use_filename?: boolean | undefined; use_filename_as_display_name?: boolean | undefined; unique_display_name?: boolean | undefined; unique_filename?: boolean | undefined; visual_search?: boolean | undefined; tags?: TagsParam | undefined; context?: string | undefined; eager?: string | undefined; transformation?: string | undefined; allowed_formats?: string | undefined; headers?: string | undefined; face_coordinates?: string | undefined; custom_coordinates?: string | undefined; type?: UploadDeliveryType | undefined; name?: string | undefined; disallow_public_id?: boolean | undefined; unsigned?: boolean | undefined; parameter_whitelist?: Array | ParameterWhitelistEnum | undefined; }; export declare const UploadPresetInput$zodSchema: z.ZodType; //# sourceMappingURL=uploadpresetinput.d.ts.map