2
0
Files
bot/packages/models/src/features/blocks/integrations/pabblyConnect.ts

14 lines
415 B
TypeScript
Raw Normal View History

2022-06-11 07:27:38 +02:00
import { z } from 'zod'
import { blockBaseSchema, IntegrationBlockType } from '../shared'
2022-06-11 07:27:38 +02:00
import { webhookOptionsSchema } from './webhook'
export const pabblyConnectBlockSchema = blockBaseSchema.and(
z.object({
type: z.enum([IntegrationBlockType.PABBLY_CONNECT]),
options: webhookOptionsSchema,
webhookId: z.string(),
})
)
export type PabblyConnectBlock = z.infer<typeof pabblyConnectBlockSchema>