Skip to content

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

693 B
Raw Blame
import * as z from "zod/mini";
import { BasePropertySchema, TPropertyValue } from "./common";
import { PropertyType } from "./property-type";


export const ShortTextProperty = z.object({
    ...BasePropertySchema.shape,
    ...TPropertyValue(z.string(), PropertyType.SHORT_TEXT).shape,
})


export type ShortTextProperty<R extends boolean> = BasePropertySchema &
    TPropertyValue<string, PropertyType.SHORT_TEXT, R>;


export const LongTextProperty = z.object({
    ...BasePropertySchema.shape,
    ...TPropertyValue(z.string(), PropertyType.LONG_TEXT).shape,
})

export type LongTextProperty<R extends boolean> = BasePropertySchema &
    TPropertyValue<string, PropertyType.LONG_TEXT, R>;