Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / NodeMetadataSchema

Variable: NodeMetadataSchema

const NodeMetadataSchema: ZodLazy<ZodObject<{ author: ZodOptional<ZodString>; category: ZodOptional<ZodString>; description: ZodOptional<ZodString>; flowPorts: ZodOptional<ZodObject<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, "passthrough", ZodTypeAny, objectOutputType<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, ZodTypeAny, "passthrough">, objectInputType<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, ZodTypeAny, "passthrough">>>; icon: ZodOptional<ZodString>; id: ZodOptional<ZodString>; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; parentNodeId: ZodOptional<ZodString>; portsConfig: ZodOptional<ZodRecord<ZodString, ZodAny>>; tags: ZodOptional<ZodArray<ZodString, "many">>; title: ZodOptional<ZodString>; type: ZodString; ui: ZodOptional<ZodObject<{ dimensions: ZodOptional<ZodObject<{ height: ZodNumber; width: ZodNumber; }, "strip", ZodTypeAny, { height: number; width: number; }, { height: number; width: number; }>>; position: ZodOptional<ZodObject<{ x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { x: number; y: number; }, { x: number; y: number; }>>; state: ZodOptional<ZodObject<{ isDisabled: ZodOptional<ZodBoolean>; isErrorPortCollapsed: ZodOptional<ZodBoolean>; isHidden: ZodOptional<ZodBoolean>; isHighlighted: ZodOptional<ZodBoolean>; isMovingDisabled: ZodOptional<ZodBoolean>; isSelected: ZodOptional<ZodBoolean>; }, "strip", ZodTypeAny, { isDisabled?: boolean; isErrorPortCollapsed?: boolean; isHidden?: boolean; isHighlighted?: boolean; isMovingDisabled?: boolean; isSelected?: boolean; }, { isDisabled?: boolean; isErrorPortCollapsed?: boolean; isHidden?: boolean; isHighlighted?: boolean; isMovingDisabled?: boolean; isSelected?: boolean; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ZodOptional<ZodString>; borderColor: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { backgroundColor?: string; borderColor?: string; }, { backgroundColor?: string; borderColor?: string; }>>; }, "passthrough", ZodTypeAny, objectOutputType<{ dimensions: ZodOptional<ZodObject<{ height: ZodNumber; width: ZodNumber; }, "strip", ZodTypeAny, { height: number; width: number; }, { height: number; width: number; }>>; position: ZodOptional<ZodObject<{ x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { x: number; y: number; }, { x: number; y: number; }>>; state: ZodOptional<ZodObject<{ isDisabled: ZodOptional<...>; isErrorPortCollapsed: ZodOptional<...>; isHidden: ZodOptional<...>; isHighlighted: ZodOptional<...>; isMovingDisabled: ZodOptional<...>; isSelected: ZodOptional<...>; }, "strip", ZodTypeAny, { isDisabled?: ... | ... | ...; isErrorPortCollapsed?: ... | ... | ...; isHidden?: ... | ... | ...; isHighlighted?: ... | ... | ...; isMovingDisabled?: ... | ... | ...; isSelected?: ... | ... | ...; }, { isDisabled?: ... | ... | ...; isErrorPortCollapsed?: ... | ... | ...; isHidden?: ... | ... | ...; isHighlighted?: ... | ... | ...; isMovingDisabled?: ... | ... | ...; isSelected?: ... | ... | ...; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ZodOptional<...>; borderColor: ZodOptional<...>; }, "strip", ZodTypeAny, { backgroundColor?: ... | ...; borderColor?: ... | ...; }, { backgroundColor?: ... | ...; borderColor?: ... | ...; }>>; }, ZodTypeAny, "passthrough">, objectInputType<{ dimensions: ZodOptional<ZodObject<{ height: ZodNumber; width: ZodNumber; }, "strip", ZodTypeAny, { height: number; width: number; }, { height: number; width: number; }>>; position: ZodOptional<ZodObject<{ x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { x: number; y: number; }, { x: number; y: number; }>>; state: ZodOptional<ZodObject<{ isDisabled: ZodOptional<...>; isErrorPortCollapsed: ZodOptional<...>; isHidden: ZodOptional<...>; isHighlighted: ZodOptional<...>; isMovingDisabled: ZodOptional<...>; isSelected: ZodOptional<...>; }, "strip", ZodTypeAny, { isDisabled?: ... | ... | ...; isErrorPortCollapsed?: ... | ... | ...; isHidden?: ... | ... | ...; isHighlighted?: ... | ... | ...; isMovingDisabled?: ... | ... | ...; isSelected?: ... | ... | ...; }, { isDisabled?: ... | ... | ...; isErrorPortCollapsed?: ... | ... | ...; isHidden?: ... | ... | ...; isHighlighted?: ... | ... | ...; isMovingDisabled?: ... | ... | ...; isSelected?: ... | ... | ...; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ZodOptional<...>; borderColor: ZodOptional<...>; }, "strip", ZodTypeAny, { backgroundColor?: ... | ...; borderColor?: ... | ...; }, { backgroundColor?: ... | ...; borderColor?: ... | ...; }>>; }, ZodTypeAny, "passthrough">>>; version: ZodOptional<ZodNumber>; }, "passthrough", ZodTypeAny, objectOutputType<{ author: ZodOptional<ZodString>; category: ZodOptional<ZodString>; description: ZodOptional<ZodString>; flowPorts: ZodOptional<ZodObject<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, "passthrough", ZodTypeAny, objectOutputType<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, ZodTypeAny, "passthrough">, objectInputType<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, ZodTypeAny, "passthrough">>>; icon: ZodOptional<ZodString>; id: ZodOptional<ZodString>; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; parentNodeId: ZodOptional<ZodString>; portsConfig: ZodOptional<ZodRecord<ZodString, ZodAny>>; tags: ZodOptional<ZodArray<ZodString, "many">>; title: ZodOptional<ZodString>; type: ZodString; ui: ZodOptional<ZodObject<{ dimensions: ZodOptional<ZodObject<{ height: ZodNumber; width: ZodNumber; }, "strip", ZodTypeAny, { height: number; width: number; }, { height: number; width: number; }>>; position: ZodOptional<ZodObject<{ x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { x: number; y: number; }, { x: number; y: number; }>>; state: ZodOptional<ZodObject<{ isDisabled: ZodOptional<...>; isErrorPortCollapsed: ZodOptional<...>; isHidden: ZodOptional<...>; isHighlighted: ZodOptional<...>; isMovingDisabled: ZodOptional<...>; isSelected: ZodOptional<...>; }, "strip", ZodTypeAny, { isDisabled?: ... | ... | ...; isErrorPortCollapsed?: ... | ... | ...; isHidden?: ... | ... | ...; isHighlighted?: ... | ... | ...; isMovingDisabled?: ... | ... | ...; isSelected?: ... | ... | ...; }, { isDisabled?: ... | ... | ...; isErrorPortCollapsed?: ... | ... | ...; isHidden?: ... | ... | ...; isHighlighted?: ... | ... | ...; isMovingDisabled?: ... | ... | ...; isSelected?: ... | ... | ...; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ZodOptional<...>; borderColor: ZodOptional<...>; }, "strip", ZodTypeAny, { backgroundColor?: ... | ...; borderColor?: ... | ...; }, { backgroundColor?: ... | ...; borderColor?: ... | ...; }>>; }, "passthrough", ZodTypeAny, objectOutputType<{ dimensions: ZodOptional<ZodObject<{ height: ...; width: ...; }, "strip", ZodTypeAny, { height: ...; width: ...; }, { height: ...; width: ...; }>>; position: ZodOptional<ZodObject<{ x: ...; y: ...; }, "strip", ZodTypeAny, { x: ...; y: ...; }, { x: ...; y: ...; }>>; state: ZodOptional<ZodObject<{ isDisabled: ...; isErrorPortCollapsed: ...; isHidden: ...; isHighlighted: ...; isMovingDisabled: ...; isSelected: ...; }, "strip", ZodTypeAny, { isDisabled?: ...; isErrorPortCollapsed?: ...; isHidden?: ...; isHighlighted?: ...; isMovingDisabled?: ...; isSelected?: ...; }, { isDisabled?: ...; isErrorPortCollapsed?: ...; isHidden?: ...; isHighlighted?: ...; isMovingDisabled?: ...; isSelected?: ...; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ...; borderColor: ...; }, "strip", ZodTypeAny, { backgroundColor?: ...; borderColor?: ...; }, { backgroundColor?: ...; borderColor?: ...; }>>; }, ZodTypeAny, "passthrough">, objectInputType<{ dimensions: ZodOptional<ZodObject<{ height: ...; width: ...; }, "strip", ZodTypeAny, { height: ...; width: ...; }, { height: ...; width: ...; }>>; position: ZodOptional<ZodObject<{ x: ...; y: ...; }, "strip", ZodTypeAny, { x: ...; y: ...; }, { x: ...; y: ...; }>>; state: ZodOptional<ZodObject<{ isDisabled: ...; isErrorPortCollapsed: ...; isHidden: ...; isHighlighted: ...; isMovingDisabled: ...; isSelected: ...; }, "strip", ZodTypeAny, { isDisabled?: ...; isErrorPortCollapsed?: ...; isHidden?: ...; isHighlighted?: ...; isMovingDisabled?: ...; isSelected?: ...; }, { isDisabled?: ...; isErrorPortCollapsed?: ...; isHidden?: ...; isHighlighted?: ...; isMovingDisabled?: ...; isSelected?: ...; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ...; borderColor: ...; }, "strip", ZodTypeAny, { backgroundColor?: ...; borderColor?: ...; }, { backgroundColor?: ...; borderColor?: ...; }>>; }, ZodTypeAny, "passthrough">>>; version: ZodOptional<ZodNumber>; }, ZodTypeAny, "passthrough">, objectInputType<{ author: ZodOptional<ZodString>; category: ZodOptional<ZodString>; description: ZodOptional<ZodString>; flowPorts: ZodOptional<ZodObject<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, "passthrough", ZodTypeAny, objectOutputType<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, ZodTypeAny, "passthrough">, objectInputType<{ disabledAutoExecution: ZodDefault<ZodOptional<ZodBoolean>>; disabledError: ZodDefault<ZodOptional<ZodBoolean>>; disabledFlowPorts: ZodDefault<ZodOptional<ZodBoolean>>; }, ZodTypeAny, "passthrough">>>; icon: ZodOptional<ZodString>; id: ZodOptional<ZodString>; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; parentNodeId: ZodOptional<ZodString>; portsConfig: ZodOptional<ZodRecord<ZodString, ZodAny>>; tags: ZodOptional<ZodArray<ZodString, "many">>; title: ZodOptional<ZodString>; type: ZodString; ui: ZodOptional<ZodObject<{ dimensions: ZodOptional<ZodObject<{ height: ZodNumber; width: ZodNumber; }, "strip", ZodTypeAny, { height: number; width: number; }, { height: number; width: number; }>>; position: ZodOptional<ZodObject<{ x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { x: number; y: number; }, { x: number; y: number; }>>; state: ZodOptional<ZodObject<{ isDisabled: ZodOptional<...>; isErrorPortCollapsed: ZodOptional<...>; isHidden: ZodOptional<...>; isHighlighted: ZodOptional<...>; isMovingDisabled: ZodOptional<...>; isSelected: ZodOptional<...>; }, "strip", ZodTypeAny, { isDisabled?: ... | ... | ...; isErrorPortCollapsed?: ... | ... | ...; isHidden?: ... | ... | ...; isHighlighted?: ... | ... | ...; isMovingDisabled?: ... | ... | ...; isSelected?: ... | ... | ...; }, { isDisabled?: ... | ... | ...; isErrorPortCollapsed?: ... | ... | ...; isHidden?: ... | ... | ...; isHighlighted?: ... | ... | ...; isMovingDisabled?: ... | ... | ...; isSelected?: ... | ... | ...; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ZodOptional<...>; borderColor: ZodOptional<...>; }, "strip", ZodTypeAny, { backgroundColor?: ... | ...; borderColor?: ... | ...; }, { backgroundColor?: ... | ...; borderColor?: ... | ...; }>>; }, "passthrough", ZodTypeAny, objectOutputType<{ dimensions: ZodOptional<ZodObject<{ height: ...; width: ...; }, "strip", ZodTypeAny, { height: ...; width: ...; }, { height: ...; width: ...; }>>; position: ZodOptional<ZodObject<{ x: ...; y: ...; }, "strip", ZodTypeAny, { x: ...; y: ...; }, { x: ...; y: ...; }>>; state: ZodOptional<ZodObject<{ isDisabled: ...; isErrorPortCollapsed: ...; isHidden: ...; isHighlighted: ...; isMovingDisabled: ...; isSelected: ...; }, "strip", ZodTypeAny, { isDisabled?: ...; isErrorPortCollapsed?: ...; isHidden?: ...; isHighlighted?: ...; isMovingDisabled?: ...; isSelected?: ...; }, { isDisabled?: ...; isErrorPortCollapsed?: ...; isHidden?: ...; isHighlighted?: ...; isMovingDisabled?: ...; isSelected?: ...; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ...; borderColor: ...; }, "strip", ZodTypeAny, { backgroundColor?: ...; borderColor?: ...; }, { backgroundColor?: ...; borderColor?: ...; }>>; }, ZodTypeAny, "passthrough">, objectInputType<{ dimensions: ZodOptional<ZodObject<{ height: ...; width: ...; }, "strip", ZodTypeAny, { height: ...; width: ...; }, { height: ...; width: ...; }>>; position: ZodOptional<ZodObject<{ x: ...; y: ...; }, "strip", ZodTypeAny, { x: ...; y: ...; }, { x: ...; y: ...; }>>; state: ZodOptional<ZodObject<{ isDisabled: ...; isErrorPortCollapsed: ...; isHidden: ...; isHighlighted: ...; isMovingDisabled: ...; isSelected: ...; }, "strip", ZodTypeAny, { isDisabled?: ...; isErrorPortCollapsed?: ...; isHidden?: ...; isHighlighted?: ...; isMovingDisabled?: ...; isSelected?: ...; }, { isDisabled?: ...; isErrorPortCollapsed?: ...; isHidden?: ...; isHighlighted?: ...; isMovingDisabled?: ...; isSelected?: ...; }>>; style: ZodOptional<ZodObject<{ backgroundColor: ...; borderColor: ...; }, "strip", ZodTypeAny, { backgroundColor?: ...; borderColor?: ...; }, { backgroundColor?: ...; borderColor?: ...; }>>; }, ZodTypeAny, "passthrough">>>; version: ZodOptional<ZodNumber>; }, ZodTypeAny, "passthrough">>>

Defined in: packages/chaingraph-types/src/node/types.zod.ts:51

Schema for node metadata

Licensed under BUSL-1.1