/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { ClosedEnum } from "../../types/enums.js"; /** * Filter to follow-ups from incidents of the given mode. If not set, only follow-ups from `standard` and `retrospective` incidents are returned */ export const FollowUpsV2NumberListQueryParamIncidentMode = { Standard: "standard", Retrospective: "retrospective", Test: "test", Tutorial: "tutorial", Stream: "stream", } as const; /** * Filter to follow-ups from incidents of the given mode. If not set, only follow-ups from `standard` and `retrospective` incidents are returned */ export type FollowUpsV2NumberListQueryParamIncidentMode = ClosedEnum< typeof FollowUpsV2NumberListQueryParamIncidentMode >; export type FollowUpsV2NumberListRequest = { /** * Find follow-ups related to this incident */ incidentId?: string | undefined; /** * Filter to follow-ups from incidents of the given mode. If not set, only follow-ups from `standard` and `retrospective` incidents are returned */ incidentMode?: FollowUpsV2NumberListQueryParamIncidentMode | undefined; }; /** @internal */ export const FollowUpsV2NumberListQueryParamIncidentMode$inboundSchema: z.ZodNativeEnum = z .nativeEnum(FollowUpsV2NumberListQueryParamIncidentMode); /** @internal */ export const FollowUpsV2NumberListQueryParamIncidentMode$outboundSchema: z.ZodNativeEnum = FollowUpsV2NumberListQueryParamIncidentMode$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace FollowUpsV2NumberListQueryParamIncidentMode$ { /** @deprecated use `FollowUpsV2NumberListQueryParamIncidentMode$inboundSchema` instead. */ export const inboundSchema = FollowUpsV2NumberListQueryParamIncidentMode$inboundSchema; /** @deprecated use `FollowUpsV2NumberListQueryParamIncidentMode$outboundSchema` instead. */ export const outboundSchema = FollowUpsV2NumberListQueryParamIncidentMode$outboundSchema; } /** @internal */ export const FollowUpsV2NumberListRequest$inboundSchema: z.ZodType< FollowUpsV2NumberListRequest, z.ZodTypeDef, unknown > = z.object({ incident_id: z.string().optional(), incident_mode: FollowUpsV2NumberListQueryParamIncidentMode$inboundSchema .optional(), }).transform((v) => { return remap$(v, { "incident_id": "incidentId", "incident_mode": "incidentMode", }); }); /** @internal */ export type FollowUpsV2NumberListRequest$Outbound = { incident_id?: string | undefined; incident_mode?: string | undefined; }; /** @internal */ export const FollowUpsV2NumberListRequest$outboundSchema: z.ZodType< FollowUpsV2NumberListRequest$Outbound, z.ZodTypeDef, FollowUpsV2NumberListRequest > = z.object({ incidentId: z.string().optional(), incidentMode: FollowUpsV2NumberListQueryParamIncidentMode$outboundSchema .optional(), }).transform((v) => { return remap$(v, { incidentId: "incident_id", incidentMode: "incident_mode", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace FollowUpsV2NumberListRequest$ { /** @deprecated use `FollowUpsV2NumberListRequest$inboundSchema` instead. */ export const inboundSchema = FollowUpsV2NumberListRequest$inboundSchema; /** @deprecated use `FollowUpsV2NumberListRequest$outboundSchema` instead. */ export const outboundSchema = FollowUpsV2NumberListRequest$outboundSchema; /** @deprecated use `FollowUpsV2NumberListRequest$Outbound` instead. */ export type Outbound = FollowUpsV2NumberListRequest$Outbound; }