/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 069e54dccc2c
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const FileChunk$inboundSchema = z.object({
    type: z.literal("file").default("file"),
    file_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "file_id": "fileId",
    });
});
/** @internal */
export const FileChunk$outboundSchema = z.object({
    type: z.literal("file").default("file"),
    fileId: z.string(),
}).transform((v) => {
    return remap$(v, {
        fileId: "file_id",
    });
});
export function fileChunkToJSON(fileChunk) {
    return JSON.stringify(FileChunk$outboundSchema.parse(fileChunk));
}
export function fileChunkFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FileChunk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileChunk' from JSON`);
}
//# sourceMappingURL=filechunk.js.map