/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: f07f6b129302 */ import * as z from "zod/v4"; export type CreateDeploymentTokenRequest = { /** * Optional description for the deployment token */ description: string | null; /** * Optional expiration date for the deployment token */ expiresAt?: Date | null | undefined; }; /** @internal */ export type CreateDeploymentTokenRequest$Outbound = { description: string | null; expiresAt?: string | null | undefined; }; /** @internal */ export const CreateDeploymentTokenRequest$outboundSchema: z.ZodType< CreateDeploymentTokenRequest$Outbound, CreateDeploymentTokenRequest > = z.object({ description: z.nullable(z.string()), expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), }); export function createDeploymentTokenRequestToJSON( createDeploymentTokenRequest: CreateDeploymentTokenRequest, ): string { return JSON.stringify( CreateDeploymentTokenRequest$outboundSchema.parse( createDeploymentTokenRequest, ), ); }