feat(api): add libredesk webhook adapter (#3488)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-15 03:54:32 +02:00
1 parent 105bd49c9e
commit 1f4f3318dc
16 files changed
+1695 -3

No files matched your search

@@ -26,6 +26,7 @@ import type {WebhookExecuteMessageData, WebhookService} from '@app/api/webhook/W
import type {MessageResponse} from '@fluxer/schema/src/domains/message/MessageResponseSchemas';
import type {GitHubWebhook} from '@fluxer/schema/src/domains/webhook/GitHubWebhookSchemas';
import type {InstatusWebhook} from '@fluxer/schema/src/domains/webhook/InstatusWebhookSchemas';
import type {LibredeskWebhook} from '@fluxer/schema/src/domains/webhook/LibredeskWebhookSchemas';
import type {
SlackWebhookRequest,
WebhookCreateRequest,
@@ -165,6 +166,14 @@ interface WebhookExecuteInstatusParams {
requestCache: RequestCache;
}
interface WebhookExecuteLibredeskParams {
webhookId: WebhookID;
token: WebhookToken;
threadId?: string;
data: LibredeskWebhook;
requestCache: RequestCache;
}
interface LiveKitWebhookParams {
body: string;
authHeader?: string;
@@ -351,6 +360,10 @@ export class WebhookRequestService {
await this.webhookService.executeInstatusWebhook(params);
}
async executeLibredeskWebhook(params: WebhookExecuteLibredeskParams): Promise<void> {
await this.webhookService.executeLibredeskWebhook(params);
}
async executeSlackWebhook(params: WebhookExecuteSlackParams): Promise<void> {
await this.webhookService.executeWebhook({
webhookId: params.webhookId,