import * as z from 'zod'; export const SelectDataValuesSchema = z .union([ z.array(z.string()).meta({ title: 'Text Array' }), z.record(z.string(), z.string()).meta({ title: 'Text Object' }), z.array(z.record(z.string(), z.unknown())).meta({ title: 'Object Array' }), z.record(z.string(), z.unknown()).meta({ title: 'Object' }), ]) .meta({ description: 'Data formats for populating select and multiselect input options, supporting arrays and objects.', }); export const SelectDataSchema = z.record(z.string(), SelectDataValuesSchema).meta({ id: 'type._select_data', title: 'Select Data', description: 'Fixed datasets that can be referenced by the _Values_ configuration for _Select_ and _Multiselect_ inputs.', }); export type SelectDataValues = z.infer; export type SelectData = z.infer;