mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
feat: Instatus webhooks (#1349)
Co-authored-by: Hampus <[email protected]>
This commit is contained in:
1 parent
8dd230ea2f
commit
dec7b63d07
14 files changed
+1300
-27
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
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 {
|
||||
SlackWebhookRequest,
|
||||
WebhookCreateRequest,
|
||||
@@ -136,6 +137,13 @@ interface WebhookExecuteSlackParams {
|
||||
requestCache: RequestCache;
|
||||
}
|
||||
|
||||
interface WebhookExecuteInstatusParams {
|
||||
webhookId: WebhookID;
|
||||
token: WebhookToken;
|
||||
data: InstatusWebhook;
|
||||
requestCache: RequestCache;
|
||||
}
|
||||
|
||||
interface LiveKitWebhookParams {
|
||||
body: string;
|
||||
authHeader?: string;
|
||||
@@ -305,6 +313,15 @@ export class WebhookRequestService {
|
||||
});
|
||||
}
|
||||
|
||||
async executeInstatusWebhook(params: WebhookExecuteInstatusParams): Promise<void> {
|
||||
await this.webhookService.executeInstatusWebhook({
|
||||
webhookId: params.webhookId,
|
||||
token: params.token,
|
||||
data: params.data,
|
||||
requestCache: params.requestCache,
|
||||
});
|
||||
}
|
||||
|
||||
async executeSlackWebhook(params: WebhookExecuteSlackParams): Promise<void> {
|
||||
await this.webhookService.executeWebhook({
|
||||
webhookId: params.webhookId,
|
||||
|
||||
Reference in new issue
Block a user