/** * WebhookEndpoint Resource * * REST endpoint for managing per-KB webhook endpoints. * All operations require team role and kbId for tenant scoping. * * Routes: * GET /WebhookEndpoint/?kbId=.. — list endpoints for a KB (team role) * POST /WebhookEndpoint/?kbId=.. — create endpoint, returns URL + secret once (team role) * DELETE /WebhookEndpoint/?kbId=.. — delete an endpoint (team role) */ declare const WebhookEndpointResource_base: any; export declare class WebhookEndpointResource extends WebhookEndpointResource_base { static loadAsInstance: boolean; /** * GET /WebhookEndpoint/?kbId=.. — list all webhook endpoints for a KB. * Default: team role required. Hook can override. */ get(target?: any): Promise; /** * POST /WebhookEndpoint/?kbId=.. — create a new webhook endpoint. * Default: team role required. Hook can override. * * Body: { provider: "github", label?: "owner/repo" } * * Returns the endpoint record plus the plaintext secret and full webhook URL. * The secret is shown only once — it is never stored or retrievable again. */ post(target: any, data: any): Promise<{ status: number; data: { error: string; }; } | { secret: string; webhookUrl: string; id: string; kbId: string; provider: string; label?: string; createdBy?: string; createdAt?: Date; status?: undefined; data?: undefined; }>; /** * DELETE /WebhookEndpoint/?kbId=.. — delete a webhook endpoint. * Default: team role required. Hook can override. */ delete(target?: any): Promise; } export {}; //# sourceMappingURL=WebhookEndpointResource.d.ts.map