/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 31df582c9c7a
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const TranscriptionStreamTextDelta$inboundSchema = z.object({
    type: z.literal("transcription.text.delta"),
    text: z.string(),
}).catchall(z.any());
/** @internal */
export const TranscriptionStreamTextDelta$outboundSchema = z.object({
    type: z.literal("transcription.text.delta"),
    text: z.string(),
}).catchall(z.any());
export function transcriptionStreamTextDeltaToJSON(transcriptionStreamTextDelta) {
    return JSON.stringify(TranscriptionStreamTextDelta$outboundSchema.parse(transcriptionStreamTextDelta));
}
export function transcriptionStreamTextDeltaFromJSON(jsonString) {
    return safeParse(jsonString, (x) => TranscriptionStreamTextDelta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TranscriptionStreamTextDelta' from JSON`);
}
//# sourceMappingURL=transcriptionstreamtextdelta.js.map