/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 44e25f2b96fb */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import { ClosedEnum } from "../../types/enums.js"; export const Confirmation = { Allow: "allow", Deny: "deny", } as const; export type Confirmation = ClosedEnum; export type ToolCallConfirmation = { toolCallId: string; confirmation: Confirmation; }; /** @internal */ export const Confirmation$outboundSchema: z.ZodEnum = z .enum(Confirmation); /** @internal */ export type ToolCallConfirmation$Outbound = { tool_call_id: string; confirmation: string; }; /** @internal */ export const ToolCallConfirmation$outboundSchema: z.ZodType< ToolCallConfirmation$Outbound, ToolCallConfirmation > = z.object({ toolCallId: z.string(), confirmation: Confirmation$outboundSchema, }).transform((v) => { return remap$(v, { toolCallId: "tool_call_id", }); }); export function toolCallConfirmationToJSON( toolCallConfirmation: ToolCallConfirmation, ): string { return JSON.stringify( ToolCallConfirmation$outboundSchema.parse(toolCallConfirmation), ); }