/*
 * 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";
/**
 * The result of the deletion operation.
 */
export const Result = {
    Ok: "ok",
    NotFound: "not found",
};
/** @internal */
export const Result$inboundSchema = z
    .nativeEnum(Result);
/** @internal */
export const Result$outboundSchema = Result$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var Result$;
(function (Result$) {
    /** @deprecated use `Result$inboundSchema` instead. */
    Result$.inboundSchema = Result$inboundSchema;
    /** @deprecated use `Result$outboundSchema` instead. */
    Result$.outboundSchema = Result$outboundSchema;
})(Result$ || (Result$ = {}));
/** @internal */
export const DestroyResponse$inboundSchema = z.object({
    result: Result$inboundSchema,
    asset_folder: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "asset_folder": "assetFolder",
    });
});
/** @internal */
export const DestroyResponse$outboundSchema = z.object({
    result: Result$outboundSchema,
    assetFolder: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        assetFolder: "asset_folder",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DestroyResponse$;
(function (DestroyResponse$) {
    /** @deprecated use `DestroyResponse$inboundSchema` instead. */
    DestroyResponse$.inboundSchema = DestroyResponse$inboundSchema;
    /** @deprecated use `DestroyResponse$outboundSchema` instead. */
    DestroyResponse$.outboundSchema = DestroyResponse$outboundSchema;
})(DestroyResponse$ || (DestroyResponse$ = {}));
export function destroyResponseToJSON(destroyResponse) {
    return JSON.stringify(DestroyResponse$outboundSchema.parse(destroyResponse));
}
export function destroyResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DestroyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestroyResponse' from JSON`);
}
//# sourceMappingURL=destroyresponse.js.map