/*
 * 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";
/** @internal */
export const DerivedDestroyRequest$inboundSchema = z.object({
    derived_resource_ids: z.array(z.string()),
    invalidate: z.boolean().optional(),
}).transform((v) => {
    return remap$(v, {
        "derived_resource_ids": "derivedResourceIds",
    });
});
/** @internal */
export const DerivedDestroyRequest$outboundSchema = z.object({
    derivedResourceIds: z.array(z.string()),
    invalidate: z.boolean().optional(),
}).transform((v) => {
    return remap$(v, {
        derivedResourceIds: "derived_resource_ids",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DerivedDestroyRequest$;
(function (DerivedDestroyRequest$) {
    /** @deprecated use `DerivedDestroyRequest$inboundSchema` instead. */
    DerivedDestroyRequest$.inboundSchema = DerivedDestroyRequest$inboundSchema;
    /** @deprecated use `DerivedDestroyRequest$outboundSchema` instead. */
    DerivedDestroyRequest$.outboundSchema = DerivedDestroyRequest$outboundSchema;
})(DerivedDestroyRequest$ || (DerivedDestroyRequest$ = {}));
export function derivedDestroyRequestToJSON(derivedDestroyRequest) {
    return JSON.stringify(DerivedDestroyRequest$outboundSchema.parse(derivedDestroyRequest));
}
export function derivedDestroyRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DerivedDestroyRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DerivedDestroyRequest' from JSON`);
}
//# sourceMappingURL=deriveddestroyrequest.js.map