AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import * as z from "zod/mini";
import { BasePropertySchema, TPropertyValue } from "../common";
import { DropdownState } from "./common";
import { PropertyType } from "../property-type";
export const StaticDropdownDisplay = z.enum(['cards'])
export type StaticDropdownDisplay = z.infer<typeof StaticDropdownDisplay>
export const StaticDropdownProperty = z.object({
...BasePropertySchema.shape,
options: DropdownState,
display: z.optional(StaticDropdownDisplay),
...TPropertyValue(z.unknown(), PropertyType.STATIC_DROPDOWN).shape,
})
export type StaticDropdownProperty<
T,
R extends boolean
> = BasePropertySchema & {
options: DropdownState<T>;
display?: StaticDropdownDisplay;
} & TPropertyValue<T, PropertyType.STATIC_DROPDOWN, R>;
export const StaticMultiSelectDropdownProperty = z.object({
...BasePropertySchema.shape,
options: DropdownState,
...TPropertyValue(z.array(z.unknown()), PropertyType.STATIC_MULTI_SELECT_DROPDOWN).shape,
})
export type StaticMultiSelectDropdownProperty<
T,
R extends boolean
> = BasePropertySchema & {
options: DropdownState<T>;
} & TPropertyValue<
T[],
PropertyType.STATIC_MULTI_SELECT_DROPDOWN,
R
>;