Skip to content

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

Variable: NodeUIMetadataSchema

const NodeUIMetadataSchema: 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<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; }>>; }, 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<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; }>>; }, ZodTypeAny, "passthrough">>

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

Schema for node UI metadata

Licensed under BUSL-1.1