/* * 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 IncidentsV1NumberListRequest = { /** * 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; /** * Filter for incidents in these statuses */ status?: Array | undefined; }; /** @internal */ export const IncidentsV1NumberListRequest$inboundSchema: z.ZodType< IncidentsV1NumberListRequest, z.ZodTypeDef, unknown > = z.object({ page_size: z.number().int().default(25), after: z.string().optional(), status: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { "page_size": "pageSize", }); }); /** @internal */ export type IncidentsV1NumberListRequest$Outbound = { page_size: number; after?: string | undefined; status?: Array | undefined; }; /** @internal */ export const IncidentsV1NumberListRequest$outboundSchema: z.ZodType< IncidentsV1NumberListRequest$Outbound, z.ZodTypeDef, IncidentsV1NumberListRequest > = z.object({ pageSize: z.number().int().default(25), after: z.string().optional(), status: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { 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 IncidentsV1NumberListRequest$ { /** @deprecated use `IncidentsV1NumberListRequest$inboundSchema` instead. */ export const inboundSchema = IncidentsV1NumberListRequest$inboundSchema; /** @deprecated use `IncidentsV1NumberListRequest$outboundSchema` instead. */ export const outboundSchema = IncidentsV1NumberListRequest$outboundSchema; /** @deprecated use `IncidentsV1NumberListRequest$Outbound` instead. */ export type Outbound = IncidentsV1NumberListRequest$Outbound; }