/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; /** * Whether the status should be considered 'live' (now renamed to active), 'learning' (now renamed to post-incident) or 'closed'. The triage and declined statuses cannot be created or modified. */ export const CreateRequestBody9Category = { Live: "live", Learning: "learning", Closed: "closed", } as const; /** * Whether the status should be considered 'live' (now renamed to active), 'learning' (now renamed to post-incident) or 'closed'. The triage and declined statuses cannot be created or modified. */ export type CreateRequestBody9Category = ClosedEnum< typeof CreateRequestBody9Category >; export type CreateRequestBody9 = { /** * Whether the status should be considered 'live' (now renamed to active), 'learning' (now renamed to post-incident) or 'closed'. The triage and declined statuses cannot be created or modified. */ category: CreateRequestBody9Category; /** * Rich text description of the incident status */ description: string; /** * Unique name of this status */ name: string; }; /** @internal */ export const CreateRequestBody9Category$inboundSchema: z.ZodNativeEnum< typeof CreateRequestBody9Category > = z.nativeEnum(CreateRequestBody9Category); /** @internal */ export const CreateRequestBody9Category$outboundSchema: z.ZodNativeEnum< typeof CreateRequestBody9Category > = CreateRequestBody9Category$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CreateRequestBody9Category$ { /** @deprecated use `CreateRequestBody9Category$inboundSchema` instead. */ export const inboundSchema = CreateRequestBody9Category$inboundSchema; /** @deprecated use `CreateRequestBody9Category$outboundSchema` instead. */ export const outboundSchema = CreateRequestBody9Category$outboundSchema; } /** @internal */ export const CreateRequestBody9$inboundSchema: z.ZodType< CreateRequestBody9, z.ZodTypeDef, unknown > = z.object({ category: CreateRequestBody9Category$inboundSchema, description: z.string(), name: z.string(), }); /** @internal */ export type CreateRequestBody9$Outbound = { category: string; description: string; name: string; }; /** @internal */ export const CreateRequestBody9$outboundSchema: z.ZodType< CreateRequestBody9$Outbound, z.ZodTypeDef, CreateRequestBody9 > = z.object({ category: CreateRequestBody9Category$outboundSchema, description: z.string(), name: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CreateRequestBody9$ { /** @deprecated use `CreateRequestBody9$inboundSchema` instead. */ export const inboundSchema = CreateRequestBody9$inboundSchema; /** @deprecated use `CreateRequestBody9$outboundSchema` instead. */ export const outboundSchema = CreateRequestBody9$outboundSchema; /** @deprecated use `CreateRequestBody9$Outbound` instead. */ export type Outbound = CreateRequestBody9$Outbound; }