Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / SerializedEdgeSchema

Variable: SerializedEdgeSchema

const SerializedEdgeSchema: ZodObject<{ id: ZodString; metadata: ZodOptional<ZodObject<{ anchors: ZodOptional<ZodArray<ZodObject<{ id: ZodString; index: ZodNumber; parentNodeId: ZodOptional<ZodString>; selected: ZodOptional<ZodBoolean>; x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { id: string; index: number; parentNodeId?: string; selected?: boolean; x: number; y: number; }, { id: string; index: number; parentNodeId?: string; selected?: boolean; x: number; y: number; }>, "many">>; label: ZodOptional<ZodString>; version: ZodOptional<ZodNumber>; }, "passthrough", ZodTypeAny, objectOutputType<{ anchors: ZodOptional<ZodArray<ZodObject<{ id: ZodString; index: ZodNumber; parentNodeId: ZodOptional<...>; selected: ZodOptional<...>; x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { id: string; index: number; parentNodeId?: ... | ...; selected?: ... | ... | ...; x: number; y: number; }, { id: string; index: number; parentNodeId?: ... | ...; selected?: ... | ... | ...; x: number; y: number; }>, "many">>; label: ZodOptional<ZodString>; version: ZodOptional<ZodNumber>; }, ZodTypeAny, "passthrough">, objectInputType<{ anchors: ZodOptional<ZodArray<ZodObject<{ id: ZodString; index: ZodNumber; parentNodeId: ZodOptional<...>; selected: ZodOptional<...>; x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { id: string; index: number; parentNodeId?: ... | ...; selected?: ... | ... | ...; x: number; y: number; }, { id: string; index: number; parentNodeId?: ... | ...; selected?: ... | ... | ...; x: number; y: number; }>, "many">>; label: ZodOptional<ZodString>; version: ZodOptional<ZodNumber>; }, ZodTypeAny, "passthrough">>>; sourceNodeId: ZodString; sourcePortId: ZodString; status: ZodNativeEnum<typeof EdgeStatus>; targetNodeId: ZodString; targetPortId: ZodString; }, "strip", ZodTypeAny, { id: string; metadata?: objectOutputType<{ anchors: ZodOptional<ZodArray<ZodObject<{ id: ZodString; index: ZodNumber; parentNodeId: ZodOptional<ZodString>; selected: ZodOptional<ZodBoolean>; x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { id: string; index: number; parentNodeId?: string; selected?: boolean; x: number; y: number; }, { id: string; index: number; parentNodeId?: string; selected?: boolean; x: number; y: number; }>, "many">>; label: ZodOptional<ZodString>; version: ZodOptional<ZodNumber>; }, ZodTypeAny, "passthrough">; sourceNodeId: string; sourcePortId: string; status: EdgeStatus; targetNodeId: string; targetPortId: string; }, { id: string; metadata?: objectInputType<{ anchors: ZodOptional<ZodArray<ZodObject<{ id: ZodString; index: ZodNumber; parentNodeId: ZodOptional<ZodString>; selected: ZodOptional<ZodBoolean>; x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { id: string; index: number; parentNodeId?: string; selected?: boolean; x: number; y: number; }, { id: string; index: number; parentNodeId?: string; selected?: boolean; x: number; y: number; }>, "many">>; label: ZodOptional<ZodString>; version: ZodOptional<ZodNumber>; }, ZodTypeAny, "passthrough">; sourceNodeId: string; sourcePortId: string; status: EdgeStatus; targetNodeId: string; targetPortId: string; }>

Defined in: packages/fireflow-types/src/edge/types.zod.ts:33

Licensed under BUSL-1.1