/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const TypeEnum = { Text: "text", Checkbox: "checkbox", KeyValueMap: "key_value_map", Select: "select", } as const; export type TypeEnum = ClosedEnum; export type Option = { label: string; value: string; }; export type DestinationSchemaField = { /** * The config key used to store and retrieve the field value. Matches the key in the destination's config or credentials object. */ key: string; type: TypeEnum; label?: string | undefined; description?: string | undefined; required: boolean; /** * Indicates if the field contains sensitive information. */ sensitive?: boolean | undefined; /** * Default value for the field. */ default?: string | undefined; /** * Minimum length for a text input. */ minlength?: number | undefined; /** * Maximum length for a text input. */ maxlength?: number | undefined; /** * Regex pattern for validation (compatible with HTML5 pattern attribute). */ pattern?: string | undefined; /** * Available options for select fields. */ options?: Array