Metadata-Version: 2.4
Name: hegemony-notification-webhook-presets
Version: 0.3.4
Summary: Webhook-based notification presets (Webex, Microsoft Teams) for Hegemony
License-Expression: AGPL-3.0-or-later
License-File: LICENSE-AGPL-3.0-or-later.txt
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Systems Administration
Requires-Dist: hegemony-notification-sdk==0.3.4
Requires-Python: >=3.11
Project-URL: Homepage, https://hegemony.sh
Project-URL: Documentation, https://hegemony.sh
Project-URL: Source, https://github.com/hegemony-sh/hegemony-notification-plugins
Project-URL: Issues, https://github.com/hegemony-sh/hegemony-notification-plugins/issues
Project-URL: Changelog, https://github.com/hegemony-sh/hegemony-notification-plugins/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

<!--
SPDX-FileCopyrightText: 2025-2026 Rexonix s.r.o.
SPDX-FileContributor: Jakub Trávník <jakub.travnik@gmail.com>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

# hegemony-notification-webhook-presets

Friendly presets for team-chat services reached via incoming webhooks. Both
rewrite onto the `outgoing_webhook` base transport (a plain HTTP POST) — no
Shoutrrr binary required:

| Destination | Base transport | Fields |
|-------------|----------------|--------|
| `webex_incoming_webhook` | `outgoing_webhook` | incoming webhook token (secret) |
| `teams_power_automate` | `outgoing_webhook` | Power Automate workflow URL (secret) |

Type names pin the *method* so other methods for the same service can coexist as
separate presets later (e.g. a Webex Messages bot-API variant, or a Teams Graph bot).

- **`webex_incoming_webhook`** POSTs `{"markdown": "**<title>**\n\n<body>"}` to
  `https://webexapis.com/v1/webhooks/incoming/<token>`. The token may be a secret
  reference, resolved in the URL at send time. (The Webex Messages bot API — bot
  token + room id — is a different method, not covered here.)
- **`teams_power_automate`** POSTs an Adaptive Card to a Microsoft Teams **Power
  Automate** "When a Teams webhook request is received" workflow — the supported path
  now that Office 365 connectors are retired.

Secret/sensitive values (the Webex token, the Teams URL signature) are entered as
secret references and resolved by the host at send time; this plugin never handles
secret values.

## Install

From 0.3.3 on the package is on PyPI
(`uv pip install hegemony-notification-webhook-presets==X.Y.Z` or `pip install hegemony-notification-webhook-presets==X.Y.Z`); the release
workflow uploads releases after 0.3.3 with trusted publishing and PEP 740
attestations (0.3.3 itself was uploaded by hand, without them). From the first
release after 0.3.3, each GitHub release of this repository carries the same
wheel and sdist, a `SHA256SUMS` file and the SLSA provenance bundle that
`gh attestation verify` checks; earlier releases carry only the wheel and
`SHA256SUMS` (plus the provenance bundle where one was made). Install the release your Hegemony version pins into both the API and
the worker as described in
[Install From A Release](https://github.com/hegemony-sh/hegemony-notification-plugins/blob/main/README.md#install-from-a-release), then restart
both.

The host discovers it via the `hegemony.notification_providers` entry-point group.
