/* * 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"; /** * Which category of resource */ export const CatalogResourceV2Category = { Primitive: "primitive", Custom: "custom", External: "external", } as const; /** * Which category of resource */ export type CatalogResourceV2Category = ClosedEnum< typeof CatalogResourceV2Category >; export type CatalogResourceV2 = { /** * Which category of resource */ category: CatalogResourceV2Category; /** * Human readable description for this resource */ description: string; /** * Label for this catalog resource type */ label: string; /** * Catalog type name for this resource */ type: string; /** * Documentation for the literal string value of this resource */ valueDocstring: string; }; /** @internal */ export const CatalogResourceV2Category$inboundSchema: z.ZodNativeEnum< typeof CatalogResourceV2Category > = z.nativeEnum(CatalogResourceV2Category); /** @internal */ export const CatalogResourceV2Category$outboundSchema: z.ZodNativeEnum< typeof CatalogResourceV2Category > = CatalogResourceV2Category$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CatalogResourceV2Category$ { /** @deprecated use `CatalogResourceV2Category$inboundSchema` instead. */ export const inboundSchema = CatalogResourceV2Category$inboundSchema; /** @deprecated use `CatalogResourceV2Category$outboundSchema` instead. */ export const outboundSchema = CatalogResourceV2Category$outboundSchema; } /** @internal */ export const CatalogResourceV2$inboundSchema: z.ZodType< CatalogResourceV2, z.ZodTypeDef, unknown > = z.object({ category: CatalogResourceV2Category$inboundSchema, description: z.string(), label: z.string(), type: z.string(), value_docstring: z.string(), }).transform((v) => { return remap$(v, { "value_docstring": "valueDocstring", }); }); /** @internal */ export type CatalogResourceV2$Outbound = { category: string; description: string; label: string; type: string; value_docstring: string; }; /** @internal */ export const CatalogResourceV2$outboundSchema: z.ZodType< CatalogResourceV2$Outbound, z.ZodTypeDef, CatalogResourceV2 > = z.object({ category: CatalogResourceV2Category$outboundSchema, description: z.string(), label: z.string(), type: z.string(), valueDocstring: z.string(), }).transform((v) => { return remap$(v, { valueDocstring: "value_docstring", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CatalogResourceV2$ { /** @deprecated use `CatalogResourceV2$inboundSchema` instead. */ export const inboundSchema = CatalogResourceV2$inboundSchema; /** @deprecated use `CatalogResourceV2$outboundSchema` instead. */ export const outboundSchema = CatalogResourceV2$outboundSchema; /** @deprecated use `CatalogResourceV2$Outbound` instead. */ export type Outbound = CatalogResourceV2$Outbound; }