isChatProvider (lib/chat-notify-rules.ts)

OnTrak · ontrak-tix/src/lib/chat-notify-rules.ts · typescript · MIT
integration, Integration / API

Provides logic for formatting and validating chat notifications for Slack and Microsoft Teams, ensuring safe text escaping and provider-specific rendering.

// Source: https://github.com/innotelinc/OnTrak | License: MIT | Copyright 2026 OnTrak IT Support Training contributors (Innotel Labs)
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Chat notification rules (M6): telling a room what the desk just did, safely.
 *
 * The webhook half of M6 is a *contract*: register an endpoint, get signed JSON,
 * reconcile the delivery log. That is what an integration needs and it is not what
 * an MSP's service desk needs at nine in the morning, which is a message in the
 * channel where the on-call rota already lives. This module is that: the same
 * delivery discipline, pointed at Slack and Teams.
 *
 * Four choices worth stating out loud:
 *
 *  1. **The URL is the provider's, and only the provider's.** A generic webhook may
 *  

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

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

Get a free API key