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