/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; export type IncidentTimestampValueV2 = { /** * The current value of this timestamp, for this incident */ value?: Date | undefined; }; /** @internal */ export const IncidentTimestampValueV2$inboundSchema: z.ZodType< IncidentTimestampValueV2, z.ZodTypeDef, unknown > = z.object({ value: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), }); /** @internal */ export type IncidentTimestampValueV2$Outbound = { value?: string | undefined; }; /** @internal */ export const IncidentTimestampValueV2$outboundSchema: z.ZodType< IncidentTimestampValueV2$Outbound, z.ZodTypeDef, IncidentTimestampValueV2 > = z.object({ value: z.date().transform(v => v.toISOString()).optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace IncidentTimestampValueV2$ { /** @deprecated use `IncidentTimestampValueV2$inboundSchema` instead. */ export const inboundSchema = IncidentTimestampValueV2$inboundSchema; /** @deprecated use `IncidentTimestampValueV2$outboundSchema` instead. */ export const outboundSchema = IncidentTimestampValueV2$outboundSchema; /** @deprecated use `IncidentTimestampValueV2$Outbound` instead. */ export type Outbound = IncidentTimestampValueV2$Outbound; }