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