index.md
HTML wrapper for HTML-only fetchers; content is shown verbatim.
Raw file
Links (extracted)
Clickable list for reviewers; avoids copy/paste line-wrap issues.
# if.api demo — Microsoft Teams webhook resolver (receipt-backed)
**Audience:** external reviewers + operators
**Reality gate:** demo of a transformation contract, not a deployed Microsoft Teams integration.
---
## Links (HTML-first)
if.trace receipt:
https://infrafabric.io/static/trace/B7yj7MyzwIais61G-bgFFA
Pack (HTML view):
https://infrafabric.io/static/pack/B7yj7MyzwIais61G-bgFFA
Pack (raw Markdown):
https://infrafabric.io/static/pack/B7yj7MyzwIais61G-bgFFA.md
Source bundle (tgz):
https://infrafabric.io/static/source/0806a4b726a8b297d8cdf8fc9ebe66612b2bd0b2de2bda02fcb1e96e5b894e4c.tgz
---
## What this proves (black/white)
This demo proves:
- a known Microsoft Teams webhook configuration can be transformed deterministically into a normalized event envelope
- the output is bound to if.trace receipts (hash checks; signatures only where present and verifiable)
This demo does not prove:
- live Microsoft Teams API calls, OAuth scopes, or message delivery
- any shipped if.bus runtime or message broker
---
## Demo artifacts
Source bundle sha256 (tgz):
0806a4b726a8b297d8cdf8fc9ebe66612b2bd0b2de2bda02fcb1e96e5b894e4c
Input JSON sha256:
3a5b525c6d57f0799d461cc02335d2f72e6a2ff3e82d8187e1076cfa042eff5e
Normalized output JSON sha256:
1e9ebaab3fe0dc81d20f4f5b7ec4cf5c6f56080e321a6f25488ce3379ea3449f
---
## How to reproduce (no internal access)
```bash
curl -fsSL -o if-api-teams-demo-source.tgz "https://infrafabric.io/static/source/0806a4b726a8b297d8cdf8fc9ebe66612b2bd0b2de2bda02fcb1e96e5b894e4c.tgz"
sha256sum if-api-teams-demo-source.tgz
tar -xzf if-api-teams-demo-source.tgz
python3 resolve_teams_demo.py teams_input.json > resolved_event.json
sha256sum resolved_event.json
```
Expected `sha256sum` (source bundle):
0806a4b726a8b297d8cdf8fc9ebe66612b2bd0b2de2bda02fcb1e96e5b894e4c if-api-teams-demo-source.tgz
Expected `sha256sum` (normalized output):
1e9ebaab3fe0dc81d20f4f5b7ec4cf5c6f56080e321a6f25488ce3379ea3449f resolved_event.json
---
## Output (normalized event envelope)
```json
{
"event": "resolve",
"input_sha256": "3a5b525c6d57f0799d461cc02335d2f72e6a2ff3e82d8187e1076cfa042eff5e",
"integration": "microsoft.teams.webhook",
"notes": {
"integrity": "see if.trace receipt for output bytes",
"live_lookup": false
},
"requested_at": "2026-01-07T00:00:00Z",
"resolved_at": "2026-01-07T00:00:00Z",
"results": [
{
"metadata": {
"channel": "Evidence",
"channel_id": "19:example_evidence",
"owner": "demo.builder@example.com",
"status": "active",
"team_id": "team_example_01"
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://teams.microsoft.com/l/channel/19%3Aexample_evidence",
"webhook_id": "tm_2001"
},
{
"metadata": {
"channel": "Audit Log",
"channel_id": "19:example_audit",
"owner": "demo.builder@example.com",
"status": "paused",
"team_id": "team_example_01"
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://teams.microsoft.com/l/channel/19%3Aexample_audit",
"webhook_id": "tm_2002"
}
],
"schema_version": "demo.v1"
}
```