/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 5745af9832c9
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { ConversationUsageInfo$inboundSchema, } from "./conversationusageinfo.js";
/** @internal */
export const ResponseDoneEvent$inboundSchema = z.object({
    type: z.literal("conversation.response.done"),
    created_at: z.iso.datetime({ offset: true }).transform(v => new Date(v))
        .optional(),
    usage: ConversationUsageInfo$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "created_at": "createdAt",
    });
});
export function responseDoneEventFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ResponseDoneEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseDoneEvent' from JSON`);
}
//# sourceMappingURL=responsedoneevent.js.map