UNPKG

better-auth-webhooks

Version:

Webhooks plugin for Better Auth - Send real-time event notifications

16 lines (13 loc) 546 B
import { BetterAuthClientPlugin } from 'better-auth/client'; interface WebhooksClient { webhooks: { list: () => Promise<any[]>; create: (webhook: any) => Promise<any>; update: (id: string, webhook: any) => Promise<any>; delete: (id: string) => Promise<void>; test: (id: string) => Promise<any>; getDeliveries: (webhookId: string) => Promise<any[]>; }; } declare function webhooksClient(): BetterAuthClientPlugin; export { type WebhooksClient, webhooksClient as default, webhooksClient };