/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 905a70dfea53
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { Annotations$inboundSchema } from "./annotations.js";
/** @internal */
export const AudioContent$inboundSchema = z
    .object({
    type: z.literal("audio"),
    data: z.string(),
    mimeType: z.string(),
    annotations: z.nullable(Annotations$inboundSchema).optional(),
    _meta: z.nullable(z.record(z.string(), z.any())).optional(),
}).catchall(z.any()).transform((v) => {
    return remap$(v, {
        "_meta": "meta",
    });
});
export function audioContentFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AudioContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AudioContent' from JSON`);
}
//# sourceMappingURL=audiocontent.js.map