ui/src/pages/namespace/Explorer/Endpoint/EndpointEditor/schema/plugins/target/instantResponse.ts
import { targetPluginTypes } from ".";
import { z } from "zod";
export const InstantResponseFormSchema = z.object({
type: z.literal(targetPluginTypes.instantResponse.name),
configuration: z.object({
content_type: z.string().optional(),
status_code: z.number().int().positive(),
status_message: z.string().optional(),
}),
});
export type InstantResponseFormSchemaType = z.infer<
typeof InstantResponseFormSchema
>;