ui/src/pages/namespace/Explorer/Endpoint/EndpointEditor/schema/plugins/target/targetFlowVar.ts
import { targetPluginTypes } from ".";
import { z } from "zod";
export const TargetFlowVarFormSchema = z.object({
type: z.literal(targetPluginTypes.targetFlowVar.name),
configuration: z.object({
namespace: z.string().optional(),
flow: z.string().nonempty(),
variable: z.string().nonempty(),
content_type: z.string().optional(),
}),
});
export type TargetFlowVarFormSchemaType = z.infer<
typeof TargetFlowVarFormSchema
>;