/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export const ConsoleV1DynamicConfigControllerGenListStatus = { FourHundredAndFour: 404, } as const; export type ConsoleV1DynamicConfigControllerGenListStatus = ClosedEnum< typeof ConsoleV1DynamicConfigControllerGenListStatus >; /** * Not Found. The requested resource could not be found. */ export type ConsoleV1DynamicConfigControllerGenListResponseBodyData = { status: ConsoleV1DynamicConfigControllerGenListStatus; message: string; }; /** * Not Found. The requested resource could not be found. */ export class ConsoleV1DynamicConfigControllerGenListResponseBody extends Error { status: ConsoleV1DynamicConfigControllerGenListStatus; /** The original data that was passed to this error instance. */ data$: ConsoleV1DynamicConfigControllerGenListResponseBodyData; constructor(err: ConsoleV1DynamicConfigControllerGenListResponseBodyData) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.status = err.status; this.name = "ConsoleV1DynamicConfigControllerGenListResponseBody"; } } /** @internal */ export const ConsoleV1DynamicConfigControllerGenListStatus$inboundSchema: z.ZodNativeEnum< typeof ConsoleV1DynamicConfigControllerGenListStatus > = z.nativeEnum(ConsoleV1DynamicConfigControllerGenListStatus); /** @internal */ export const ConsoleV1DynamicConfigControllerGenListStatus$outboundSchema: z.ZodNativeEnum< typeof ConsoleV1DynamicConfigControllerGenListStatus > = ConsoleV1DynamicConfigControllerGenListStatus$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1DynamicConfigControllerGenListStatus$ { /** @deprecated use `ConsoleV1DynamicConfigControllerGenListStatus$inboundSchema` instead. */ export const inboundSchema = ConsoleV1DynamicConfigControllerGenListStatus$inboundSchema; /** @deprecated use `ConsoleV1DynamicConfigControllerGenListStatus$outboundSchema` instead. */ export const outboundSchema = ConsoleV1DynamicConfigControllerGenListStatus$outboundSchema; } /** @internal */ export const ConsoleV1DynamicConfigControllerGenListResponseBody$inboundSchema: z.ZodType< ConsoleV1DynamicConfigControllerGenListResponseBody, z.ZodTypeDef, unknown > = z .object({ status: ConsoleV1DynamicConfigControllerGenListStatus$inboundSchema, message: z.string(), }) .transform((v) => { return new ConsoleV1DynamicConfigControllerGenListResponseBody(v); }); /** @internal */ export type ConsoleV1DynamicConfigControllerGenListResponseBody$Outbound = { status: number; message: string; }; /** @internal */ export const ConsoleV1DynamicConfigControllerGenListResponseBody$outboundSchema: z.ZodType< ConsoleV1DynamicConfigControllerGenListResponseBody$Outbound, z.ZodTypeDef, ConsoleV1DynamicConfigControllerGenListResponseBody > = z .instanceof(ConsoleV1DynamicConfigControllerGenListResponseBody) .transform((v) => v.data$) .pipe( z.object({ status: ConsoleV1DynamicConfigControllerGenListStatus$outboundSchema, message: 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 ConsoleV1DynamicConfigControllerGenListResponseBody$ { /** @deprecated use `ConsoleV1DynamicConfigControllerGenListResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1DynamicConfigControllerGenListResponseBody$inboundSchema; /** @deprecated use `ConsoleV1DynamicConfigControllerGenListResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1DynamicConfigControllerGenListResponseBody$outboundSchema; /** @deprecated use `ConsoleV1DynamicConfigControllerGenListResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1DynamicConfigControllerGenListResponseBody$Outbound; }