cal.pub0.org/packages/trpc/server/routers/viewer/webhook/testTrigger.schema.ts

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>;