/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: b6a6f826fc01 */ import * as z from "zod/v3"; /** * Describes the custom properties of the object. */ export type CustomProperty = { name?: string | undefined; /** * Must be a string, a number (for INT properties), or an array of strings. A boolean is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. */ value?: any | undefined; }; /** @internal */ export type CustomProperty$Outbound = { name?: string | undefined; value?: any | undefined; }; /** @internal */ export const CustomProperty$outboundSchema: z.ZodType< CustomProperty$Outbound, z.ZodTypeDef, CustomProperty > = z.object({ name: z.string().optional(), value: z.any().optional(), }); export function customPropertyToJSON(customProperty: CustomProperty): string { return JSON.stringify(CustomProperty$outboundSchema.parse(customProperty)); }