/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type IncidentUpdatesV2NumberListRequest = { /** * Incident whose updates you want to list */ incidentId?: string | undefined; /** * Integer number of records to return */ pageSize?: number | undefined; /** * An record's ID. This endpoint will return a list of records after this ID in relation to the API response order. */ after?: string | undefined; }; /** @internal */ export const IncidentUpdatesV2NumberListRequest$inboundSchema: z.ZodType< IncidentUpdatesV2NumberListRequest, z.ZodTypeDef, unknown > = z.object({ incident_id: z.string().optional(), page_size: z.number().int().default(25), after: z.string().optional(), }).transform((v) => { return remap$(v, { "incident_id": "incidentId", "page_size": "pageSize", }); }); /** @internal */ export type IncidentUpdatesV2NumberListRequest$Outbound = { incident_id?: string | undefined; page_size: number; after?: string | undefined; }; /** @internal */ export const IncidentUpdatesV2NumberListRequest$outboundSchema: z.ZodType< IncidentUpdatesV2NumberListRequest$Outbound, z.ZodTypeDef, IncidentUpdatesV2NumberListRequest > = z.object({ incidentId: z.string().optional(), pageSize: z.number().int().default(25), after: z.string().optional(), }).transform((v) => { return remap$(v, { incidentId: "incident_id", pageSize: "page_size", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace IncidentUpdatesV2NumberListRequest$ { /** @deprecated use `IncidentUpdatesV2NumberListRequest$inboundSchema` instead. */ export const inboundSchema = IncidentUpdatesV2NumberListRequest$inboundSchema; /** @deprecated use `IncidentUpdatesV2NumberListRequest$outboundSchema` instead. */ export const outboundSchema = IncidentUpdatesV2NumberListRequest$outboundSchema; /** @deprecated use `IncidentUpdatesV2NumberListRequest$Outbound` instead. */ export type Outbound = IncidentUpdatesV2NumberListRequest$Outbound; }