/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 7b6234dcdad8 */ import * as z from "zod/v4"; import { DebugSessionState, DebugSessionState$outboundSchema, } from "./debugsessionstate.js"; export type CreateDebugSessionRequest = { /** * Override the generated id. Manager passes the registry session id so logs correlate. */ id?: string | undefined; /** * Unique identifier for the deployment. */ deploymentId: string; owner?: string | null | undefined; expiresAt: Date; state?: DebugSessionState | undefined; }; /** @internal */ export type CreateDebugSessionRequest$Outbound = { id?: string | undefined; deploymentId: string; owner?: string | null | undefined; expiresAt: string; state?: string | undefined; }; /** @internal */ export const CreateDebugSessionRequest$outboundSchema: z.ZodType< CreateDebugSessionRequest$Outbound, CreateDebugSessionRequest > = z.object({ id: z.string().optional(), deploymentId: z.string(), owner: z.nullable(z.string()).optional(), expiresAt: z.date().transform(v => v.toISOString()), state: DebugSessionState$outboundSchema.optional(), }); export function createDebugSessionRequestToJSON( createDebugSessionRequest: CreateDebugSessionRequest, ): string { return JSON.stringify( CreateDebugSessionRequest$outboundSchema.parse(createDebugSessionRequest), ); }