/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: a1c90f74431b */ import * as z from "zod/v4"; import { DebugSessionState, DebugSessionState$outboundSchema, } from "./debugsessionstate.js"; export type UpdateDebugSessionRequest = { state?: DebugSessionState | undefined; error?: { [k: string]: any | null } | null | undefined; expiresAt?: Date | undefined; }; /** @internal */ export type UpdateDebugSessionRequest$Outbound = { state?: string | undefined; error?: { [k: string]: any | null } | null | undefined; expiresAt?: string | undefined; }; /** @internal */ export const UpdateDebugSessionRequest$outboundSchema: z.ZodType< UpdateDebugSessionRequest$Outbound, UpdateDebugSessionRequest > = z.object({ state: DebugSessionState$outboundSchema.optional(), error: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(), expiresAt: z.date().transform(v => v.toISOString()).optional(), }); export function updateDebugSessionRequestToJSON( updateDebugSessionRequest: UpdateDebugSessionRequest, ): string { return JSON.stringify( UpdateDebugSessionRequest$outboundSchema.parse(updateDebugSessionRequest), ); }