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

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

export const ObjectProperty = z.object({
    ...BasePropertySchema.shape,
    ...TPropertyValue(
        z.record(z.string(), z.unknown()),
        PropertyType.OBJECT,
    ).shape,
})

export type ObjectProperty<R extends boolean> = BasePropertySchema &
    TPropertyValue<
        Record<string, unknown>,
        PropertyType.OBJECT,
        R
    >;