/* * 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 ResponsesFunctionCallOutputInputItem = { type: "function_call_output"; callId: string; output: any; [additionalProperties: string]: unknown; }; /** @internal */ export type ResponsesFunctionCallOutputInputItem$Outbound = { type: "function_call_output"; call_id: string; output: any; [additionalProperties: string]: unknown; }; /** @internal */ export const ResponsesFunctionCallOutputInputItem$outboundSchema: z.ZodMiniType< ResponsesFunctionCallOutputInputItem$Outbound, ResponsesFunctionCallOutputInputItem > = z.pipe( z.catchall( z.object({ type: z.literal("function_call_output"), callId: z.string(), output: z.any(), }), z.any(), ), z.transform((v) => { return { ...remap$(v, { callId: "call_id", }), }; }), ); export function responsesFunctionCallOutputInputItemToJSON( responsesFunctionCallOutputInputItem: ResponsesFunctionCallOutputInputItem, ): string { return JSON.stringify( ResponsesFunctionCallOutputInputItem$outboundSchema.parse( responsesFunctionCallOutputInputItem, ), ); }