Skip to content

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

Variable: SerializedEdgeSchema

const SerializedEdgeSchema: ZodObject<{ id: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodAny>>; sourceNodeId: ZodString; sourcePortId: ZodString; status: ZodNativeEnum<typeof EdgeStatus>; targetNodeId: ZodString; targetPortId: ZodString; }, "strip", ZodTypeAny, { id: string; metadata?: Record<string, any>; sourceNodeId: string; sourcePortId: string; status: EdgeStatus; targetNodeId: string; targetPortId: string; }, { id: string; metadata?: Record<string, any>; sourceNodeId: string; sourcePortId: string; status: EdgeStatus; targetNodeId: string; targetPortId: string; }>

Defined in: packages/chaingraph-types/src/edge/types.zod.ts:12

Licensed under BUSL-1.1