Webhook (config/webhook.ts)

Argus · web/ui/react-app/src/utils/api/types/config/webhook.ts · typescript · Apache-2.0
integration, tag:configuration, tag:events

Type definitions and helpers for configuring webhook integrations.

// Source: https://github.com/release-argus/Argus | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { Headers } from '@/utils/api/types/config/shared';

export const WEBHOOK_TYPE = {
	GITHUB: { label: 'GitHub', value: 'github' },
	GITLAB: { label: 'GitLab', value: 'gitlab' },
} as const;
export type WebhookType =
	(typeof WEBHOOK_TYPE)[keyof typeof WEBHOOK_TYPE]['value'];
export const webhookTypeOptions = Object.values(WEBHOOK_TYPE);
export const isWebhookType = (value?: string | null): value is WebhookType =>
	value != null && webhookTypeOptions.some((v) => v.value === value);

export type Webhook = {
	name: string;

	type?: WebhookType | null;
	url?: string;
	allow_inv

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key