/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../lib/primitives.js"; export type ResponsesFunctionCallInputItem = { id: string; type: "function_call"; callId: string; name: string; arguments: string; status?: string | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export type ResponsesFunctionCallInputItem$Outbound = { id: string; type: "function_call"; call_id: string; name: string; arguments: string; status?: string | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export const ResponsesFunctionCallInputItem$outboundSchema: z.ZodMiniType< ResponsesFunctionCallInputItem$Outbound, ResponsesFunctionCallInputItem > = z.pipe( z.catchall( z.object({ id: z.string(), type: z.literal("function_call"), callId: z.string(), name: z.string(), arguments: z.string(), status: z.optional(z.string()), }), z.any(), ), z.transform((v) => { return { ...remap$(v, { callId: "call_id", }), }; }), ); export function responsesFunctionCallInputItemToJSON( responsesFunctionCallInputItem: ResponsesFunctionCallInputItem, ): string { return JSON.stringify( ResponsesFunctionCallInputItem$outboundSchema.parse( responsesFunctionCallInputItem, ), ); }