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 — OneDrive resolver (receipt-backed)
**Audience:** external reviewers + operators
**Reality gate:** demo of a transformation contract, not a deployed OneDrive integration.
---
## Links (HTML-first)
if.trace receipt:
https://infrafabric.io/static/trace/A1g_uV2xyExs7KA6ORRsBg
Pack (HTML view):
https://infrafabric.io/static/pack/A1g_uV2xyExs7KA6ORRsBg
Pack (raw Markdown):
https://infrafabric.io/static/pack/A1g_uV2xyExs7KA6ORRsBg.md
Source bundle (tgz):
https://infrafabric.io/static/source/32adae836e7a0feac411dba457bc58313221ba84a07af3d115d4b6e2e117b4ad.tgz
---
## What this proves (black/white)
This demo proves:
- a known OneDrive request can be transformed deterministically into a normalized resolution envelope
- the output is bound to if.trace receipts (hash checks; signatures only where present and verifiable)
This demo does not prove:
- live Microsoft Graph API calls, OAuth scopes, or sharing rules
- any shipped if.bus runtime or message broker
---
## Demo artifacts
Source bundle sha256 (tgz):
32adae836e7a0feac411dba457bc58313221ba84a07af3d115d4b6e2e117b4ad
Input JSON sha256:
bf955c26578d13433e9df1066e3c7188b976671b04ad4ee8097fc2f41deb11af
Normalized output JSON sha256:
0ddc611ed4470b07d914c93fd63f64f3c5721f067bcfca861d4bb05838aa77f5
---
## How to reproduce (no internal access)
```bash
curl -fsSL -o if-api-onedrive-demo-source.tgz "https://infrafabric.io/static/source/32adae836e7a0feac411dba457bc58313221ba84a07af3d115d4b6e2e117b4ad.tgz"
sha256sum if-api-onedrive-demo-source.tgz
tar -xzf if-api-onedrive-demo-source.tgz
python3 resolve_onedrive_demo.py onedrive_input.json > resolved_event.json
sha256sum resolved_event.json
```
Expected `sha256sum` (source bundle):
32adae836e7a0feac411dba457bc58313221ba84a07af3d115d4b6e2e117b4ad if-api-onedrive-demo-source.tgz
Expected `sha256sum` (normalized output):
0ddc611ed4470b07d914c93fd63f64f3c5721f067bcfca861d4bb05838aa77f5 resolved_event.json
---
## Output (normalized event envelope)
```json
{
"event": "resolve",
"input_sha256": "bf955c26578d13433e9df1066e3c7188b976671b04ad4ee8097fc2f41deb11af",
"integration": "onedrive",
"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": [
{
"item_id": "item-report",
"metadata": {
"modified_at": "2026-01-06T20:10:00Z",
"name": "report.pdf",
"path_display": "/demo/report.pdf",
"size_bytes": 215887
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://graph.microsoft.com/v1.0/drives/drive-demo/items/item-report"
},
{
"item_id": "item-evidence",
"metadata": {
"modified_at": "2026-01-06T20:00:00Z",
"name": "evidence",
"path_display": "/demo/evidence",
"size_bytes": 0
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://graph.microsoft.com/v1.0/drives/drive-demo/items/item-evidence"
}
],
"schema_version": "demo.v1"
}
```