/*
 * 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 DestroyRequest$inboundSchema = z.object({
    asset_id: z.string(),
    timestamp: z.number().int(),
    api_key: z.string(),
    signature: z.string(),
    invalidate: z.boolean().optional(),
    notification_url: z.string().optional(),
    callback: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "asset_id": "assetId",
        "api_key": "apiKey",
        "notification_url": "notificationUrl",
    });
});
/** @internal */
export const DestroyRequest$outboundSchema = z.object({
    assetId: z.string(),
    timestamp: z.number().int(),
    apiKey: z.string(),
    signature: z.string(),
    invalidate: z.boolean().optional(),
    notificationUrl: z.string().optional(),
    callback: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        assetId: "asset_id",
        apiKey: "api_key",
        notificationUrl: "notification_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DestroyRequest$;
(function (DestroyRequest$) {
    /** @deprecated use `DestroyRequest$inboundSchema` instead. */
    DestroyRequest$.inboundSchema = DestroyRequest$inboundSchema;
    /** @deprecated use `DestroyRequest$outboundSchema` instead. */
    DestroyRequest$.outboundSchema = DestroyRequest$outboundSchema;
})(DestroyRequest$ || (DestroyRequest$ = {}));
export function destroyRequestToJSON(destroyRequest) {
    return JSON.stringify(DestroyRequest$outboundSchema.parse(destroyRequest));
}
export function destroyRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DestroyRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestroyRequest' from JSON`);
}
//# sourceMappingURL=destroyrequest.js.map