/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type EmbeddedCatalogEntryV1 = { /** * Optional aliases that can be used to reference this entry */ aliases?: Array | undefined; /** * An optional alternative ID for this entry, which is ensured to be unique for the type */ externalId?: string | undefined; /** * ID of this catalog entry */ id: string; /** * Name is the human readable name of this entry */ name: string; }; /** @internal */ export const EmbeddedCatalogEntryV1$inboundSchema: z.ZodType< EmbeddedCatalogEntryV1, z.ZodTypeDef, unknown > = z.object({ aliases: z.array(z.string()).optional(), external_id: z.string().optional(), id: z.string(), name: z.string(), }).transform((v) => { return remap$(v, { "external_id": "externalId", }); }); /** @internal */ export type EmbeddedCatalogEntryV1$Outbound = { aliases?: Array | undefined; external_id?: string | undefined; id: string; name: string; }; /** @internal */ export const EmbeddedCatalogEntryV1$outboundSchema: z.ZodType< EmbeddedCatalogEntryV1$Outbound, z.ZodTypeDef, EmbeddedCatalogEntryV1 > = z.object({ aliases: z.array(z.string()).optional(), externalId: z.string().optional(), id: z.string(), name: z.string(), }).transform((v) => { return remap$(v, { externalId: "external_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace EmbeddedCatalogEntryV1$ { /** @deprecated use `EmbeddedCatalogEntryV1$inboundSchema` instead. */ export const inboundSchema = EmbeddedCatalogEntryV1$inboundSchema; /** @deprecated use `EmbeddedCatalogEntryV1$outboundSchema` instead. */ export const outboundSchema = EmbeddedCatalogEntryV1$outboundSchema; /** @deprecated use `EmbeddedCatalogEntryV1$Outbound` instead. */ export type Outbound = EmbeddedCatalogEntryV1$Outbound; }