12 lines
344 B
TypeScript
12 lines
344 B
TypeScript
import { z } from "zod";
|
|
|
|
import { webhookIdAndEventTypeIdSchema } from "./types";
|
|
|
|
export const ZTestTriggerInputSchema = webhookIdAndEventTypeIdSchema.extend({
|
|
url: z.string().url(),
|
|
type: z.string(),
|
|
payloadTemplate: z.string().optional().nullable(),
|
|
});
|
|
|
|
export type TTestTriggerInputSchema = z.infer<typeof ZTestTriggerInputSchema>;
|