Webhook polishing (#2987)
This commit is contained in:
1 parent
c5a40f6c37
commit
6253216484
13 files changed
+149
-11
No files matched your search
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Webhook" ADD COLUMN "secret" TEXT;
|
||||
@@ -397,6 +397,7 @@ model Webhook {
|
||||
eventType EventType? @relation(fields: [eventTypeId], references: [id], onDelete: Cascade)
|
||||
app App? @relation(fields: [appId], references: [slug], onDelete: Cascade)
|
||||
appId String?
|
||||
secret String?
|
||||
}
|
||||
|
||||
model Impersonations {
|
||||
|
||||
@@ -13,6 +13,7 @@ export const _WebhookModel = z.object({
|
||||
active: z.boolean(),
|
||||
eventTriggers: z.nativeEnum(WebhookTriggerEvents).array(),
|
||||
appId: z.string().nullish(),
|
||||
secret: z.string().nullish(),
|
||||
})
|
||||
|
||||
export interface CompleteWebhook extends z.infer<typeof _WebhookModel> {
|
||||
|
||||
Reference in new issue
Block a user