/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/**
 * The delivery type of the asset.
 */
export const DeleteResourcesByPublicIdType = {
    Upload: "upload",
    Private: "private",
    Authenticated: "authenticated",
    Fetch: "fetch",
    Facebook: "facebook",
    Twitter: "twitter",
    Gravatar: "gravatar",
    Youtube: "youtube",
    Hulu: "hulu",
    Vimeo: "vimeo",
    Animoto: "animoto",
    Worldstarhiphop: "worldstarhiphop",
    Dailymotion: "dailymotion",
    List: "list",
};
/** @internal */
export const DeleteResourcesByPublicIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const DeleteResourcesByPublicIdGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        cloudName: "cloud_name",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DeleteResourcesByPublicIdGlobals$;
(function (DeleteResourcesByPublicIdGlobals$) {
    /** @deprecated use `DeleteResourcesByPublicIdGlobals$inboundSchema` instead. */
    DeleteResourcesByPublicIdGlobals$.inboundSchema = DeleteResourcesByPublicIdGlobals$inboundSchema;
    /** @deprecated use `DeleteResourcesByPublicIdGlobals$outboundSchema` instead. */
    DeleteResourcesByPublicIdGlobals$.outboundSchema = DeleteResourcesByPublicIdGlobals$outboundSchema;
})(DeleteResourcesByPublicIdGlobals$ || (DeleteResourcesByPublicIdGlobals$ = {}));
export function deleteResourcesByPublicIdGlobalsToJSON(deleteResourcesByPublicIdGlobals) {
    return JSON.stringify(DeleteResourcesByPublicIdGlobals$outboundSchema.parse(deleteResourcesByPublicIdGlobals));
}
export function deleteResourcesByPublicIdGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteResourcesByPublicIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourcesByPublicIdGlobals' from JSON`);
}
/** @internal */
export const DeleteResourcesByPublicIdType$inboundSchema = z.nativeEnum(DeleteResourcesByPublicIdType);
/** @internal */
export const DeleteResourcesByPublicIdType$outboundSchema = DeleteResourcesByPublicIdType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DeleteResourcesByPublicIdType$;
(function (DeleteResourcesByPublicIdType$) {
    /** @deprecated use `DeleteResourcesByPublicIdType$inboundSchema` instead. */
    DeleteResourcesByPublicIdType$.inboundSchema = DeleteResourcesByPublicIdType$inboundSchema;
    /** @deprecated use `DeleteResourcesByPublicIdType$outboundSchema` instead. */
    DeleteResourcesByPublicIdType$.outboundSchema = DeleteResourcesByPublicIdType$outboundSchema;
})(DeleteResourcesByPublicIdType$ || (DeleteResourcesByPublicIdType$ = {}));
/** @internal */
export const DeleteResourcesByPublicIdRequest$inboundSchema = z.object({
    resource_type: components.ResourceTypeParameter$inboundSchema,
    type: DeleteResourcesByPublicIdType$inboundSchema,
    DeleteResourceByPublicIdsRequest: components.DeleteResourceByPublicIdsRequestUnion$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "resource_type": "resourceType",
        "DeleteResourceByPublicIdsRequest": "deleteResourceByPublicIdsRequest",
    });
});
/** @internal */
export const DeleteResourcesByPublicIdRequest$outboundSchema = z.object({
    resourceType: components.ResourceTypeParameter$outboundSchema,
    type: DeleteResourcesByPublicIdType$outboundSchema,
    deleteResourceByPublicIdsRequest: components.DeleteResourceByPublicIdsRequestUnion$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        resourceType: "resource_type",
        deleteResourceByPublicIdsRequest: "DeleteResourceByPublicIdsRequest",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DeleteResourcesByPublicIdRequest$;
(function (DeleteResourcesByPublicIdRequest$) {
    /** @deprecated use `DeleteResourcesByPublicIdRequest$inboundSchema` instead. */
    DeleteResourcesByPublicIdRequest$.inboundSchema = DeleteResourcesByPublicIdRequest$inboundSchema;
    /** @deprecated use `DeleteResourcesByPublicIdRequest$outboundSchema` instead. */
    DeleteResourcesByPublicIdRequest$.outboundSchema = DeleteResourcesByPublicIdRequest$outboundSchema;
})(DeleteResourcesByPublicIdRequest$ || (DeleteResourcesByPublicIdRequest$ = {}));
export function deleteResourcesByPublicIdRequestToJSON(deleteResourcesByPublicIdRequest) {
    return JSON.stringify(DeleteResourcesByPublicIdRequest$outboundSchema.parse(deleteResourcesByPublicIdRequest));
}
export function deleteResourcesByPublicIdRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteResourcesByPublicIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourcesByPublicIdRequest' from JSON`);
}
/** @internal */
export const DeleteResourcesByPublicIdResponse$inboundSchema = z.object({});
/** @internal */
export const DeleteResourcesByPublicIdResponse$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DeleteResourcesByPublicIdResponse$;
(function (DeleteResourcesByPublicIdResponse$) {
    /** @deprecated use `DeleteResourcesByPublicIdResponse$inboundSchema` instead. */
    DeleteResourcesByPublicIdResponse$.inboundSchema = DeleteResourcesByPublicIdResponse$inboundSchema;
    /** @deprecated use `DeleteResourcesByPublicIdResponse$outboundSchema` instead. */
    DeleteResourcesByPublicIdResponse$.outboundSchema = DeleteResourcesByPublicIdResponse$outboundSchema;
})(DeleteResourcesByPublicIdResponse$ || (DeleteResourcesByPublicIdResponse$ = {}));
export function deleteResourcesByPublicIdResponseToJSON(deleteResourcesByPublicIdResponse) {
    return JSON.stringify(DeleteResourcesByPublicIdResponse$outboundSchema.parse(deleteResourcesByPublicIdResponse));
}
export function deleteResourcesByPublicIdResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteResourcesByPublicIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourcesByPublicIdResponse' from JSON`);
}
//# sourceMappingURL=deleteresourcesbypublicid.js.map