/* * 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 actions from incidents of the given mode. If not set, only actions from `standard` and `retrospective` incidents are returned */ export const QueryParamIncidentMode = { Standard: "standard", Retrospective: "retrospective", Test: "test", Tutorial: "tutorial", Stream: "stream", } as const; /** * Filter to actions from incidents of the given mode. If not set, only actions from `standard` and `retrospective` incidents are returned */ export type QueryParamIncidentMode = ClosedEnum; export type ActionsV2NumberListRequest = { /** * Find actions related to this incident */ incidentId?: string | undefined; /** * Filter to actions from incidents of the given mode. If not set, only actions from `standard` and `retrospective` incidents are returned */ incidentMode?: QueryParamIncidentMode | undefined; }; /** @internal */ export const QueryParamIncidentMode$inboundSchema: z.ZodNativeEnum< typeof QueryParamIncidentMode > = z.nativeEnum(QueryParamIncidentMode); /** @internal */ export const QueryParamIncidentMode$outboundSchema: z.ZodNativeEnum< typeof QueryParamIncidentMode > = QueryParamIncidentMode$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace QueryParamIncidentMode$ { /** @deprecated use `QueryParamIncidentMode$inboundSchema` instead. */ export const inboundSchema = QueryParamIncidentMode$inboundSchema; /** @deprecated use `QueryParamIncidentMode$outboundSchema` instead. */ export const outboundSchema = QueryParamIncidentMode$outboundSchema; } /** @internal */ export const ActionsV2NumberListRequest$inboundSchema: z.ZodType< ActionsV2NumberListRequest, z.ZodTypeDef, unknown > = z.object({ incident_id: z.string().optional(), incident_mode: QueryParamIncidentMode$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "incident_id": "incidentId", "incident_mode": "incidentMode", }); }); /** @internal */ export type ActionsV2NumberListRequest$Outbound = { incident_id?: string | undefined; incident_mode?: string | undefined; }; /** @internal */ export const ActionsV2NumberListRequest$outboundSchema: z.ZodType< ActionsV2NumberListRequest$Outbound, z.ZodTypeDef, ActionsV2NumberListRequest > = z.object({ incidentId: z.string().optional(), incidentMode: QueryParamIncidentMode$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 ActionsV2NumberListRequest$ { /** @deprecated use `ActionsV2NumberListRequest$inboundSchema` instead. */ export const inboundSchema = ActionsV2NumberListRequest$inboundSchema; /** @deprecated use `ActionsV2NumberListRequest$outboundSchema` instead. */ export const outboundSchema = ActionsV2NumberListRequest$outboundSchema; /** @deprecated use `ActionsV2NumberListRequest$Outbound` instead. */ export type Outbound = ActionsV2NumberListRequest$Outbound; }