/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { CatalogEntryReferenceV2, CatalogEntryReferenceV2$inboundSchema, CatalogEntryReferenceV2$Outbound, CatalogEntryReferenceV2$outboundSchema, } from "./catalogentryreferencev2.js"; export type CatalogEntryEngineParamBindingValueV2 = { catalogEntry?: CatalogEntryReferenceV2 | undefined; /** * This field is deprecated. It will not be present in any responses, and will be removed in a future version */ helptext?: string | undefined; /** * This field is deprecated. It will not be present in any responses, and will be removed in a future version */ imageUrl?: string | undefined; /** * This field is deprecated. It will not be present in any responses, and will be removed in a future version */ isImageSlackIcon?: boolean | undefined; /** * Human readable label to be displayed for user to select */ label: string; /** * If set, this is the literal value of the step parameter */ literal?: string | undefined; /** * This field is deprecated. It will not be present in any responses, and will be removed in a future version */ reference?: string | undefined; /** * This field is deprecated. It will not be present in any responses, and will be removed in a future version */ sortKey: string; /** * This field is deprecated. It will not be present in any responses, and will be removed in a future version */ unavailable?: boolean | undefined; /** * This field is deprecated. It will not be present in any responses, and will be removed in a future version */ value?: string | undefined; }; /** @internal */ export const CatalogEntryEngineParamBindingValueV2$inboundSchema: z.ZodType< CatalogEntryEngineParamBindingValueV2, z.ZodTypeDef, unknown > = z.object({ catalog_entry: CatalogEntryReferenceV2$inboundSchema.optional(), helptext: z.string().optional(), image_url: z.string().optional(), is_image_slack_icon: z.boolean().optional(), label: z.string(), literal: z.string().optional(), reference: z.string().optional(), sort_key: z.string(), unavailable: z.boolean().optional(), value: z.string().optional(), }).transform((v) => { return remap$(v, { "catalog_entry": "catalogEntry", "image_url": "imageUrl", "is_image_slack_icon": "isImageSlackIcon", "sort_key": "sortKey", }); }); /** @internal */ export type CatalogEntryEngineParamBindingValueV2$Outbound = { catalog_entry?: CatalogEntryReferenceV2$Outbound | undefined; helptext?: string | undefined; image_url?: string | undefined; is_image_slack_icon?: boolean | undefined; label: string; literal?: string | undefined; reference?: string | undefined; sort_key: string; unavailable?: boolean | undefined; value?: string | undefined; }; /** @internal */ export const CatalogEntryEngineParamBindingValueV2$outboundSchema: z.ZodType< CatalogEntryEngineParamBindingValueV2$Outbound, z.ZodTypeDef, CatalogEntryEngineParamBindingValueV2 > = z.object({ catalogEntry: CatalogEntryReferenceV2$outboundSchema.optional(), helptext: z.string().optional(), imageUrl: z.string().optional(), isImageSlackIcon: z.boolean().optional(), label: z.string(), literal: z.string().optional(), reference: z.string().optional(), sortKey: z.string(), unavailable: z.boolean().optional(), value: z.string().optional(), }).transform((v) => { return remap$(v, { catalogEntry: "catalog_entry", imageUrl: "image_url", isImageSlackIcon: "is_image_slack_icon", sortKey: "sort_key", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CatalogEntryEngineParamBindingValueV2$ { /** @deprecated use `CatalogEntryEngineParamBindingValueV2$inboundSchema` instead. */ export const inboundSchema = CatalogEntryEngineParamBindingValueV2$inboundSchema; /** @deprecated use `CatalogEntryEngineParamBindingValueV2$outboundSchema` instead. */ export const outboundSchema = CatalogEntryEngineParamBindingValueV2$outboundSchema; /** @deprecated use `CatalogEntryEngineParamBindingValueV2$Outbound` instead. */ export type Outbound = CatalogEntryEngineParamBindingValueV2$Outbound; }