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 — Dropbox resolver (receipt-backed)
**Audience:** external reviewers + operators
**Reality gate:** demo of a transformation contract, not a deployed Dropbox integration.
---
## Links (HTML-first)
if.trace receipt:
https://infrafabric.io/static/trace/4L1Lh6FSmQV0Tp3AkaLrag
Pack (HTML view):
https://infrafabric.io/static/pack/4L1Lh6FSmQV0Tp3AkaLrag
Pack (raw Markdown):
https://infrafabric.io/static/pack/4L1Lh6FSmQV0Tp3AkaLrag.md
Source bundle (tgz):
https://infrafabric.io/static/source/dbd7c2dcf0772f04ae3d0873a0bcaa1e36ce3a01f4279a378c27caa934ff8c7a.tgz
---
## What this proves (black/white)
This demo proves:
- a known Dropbox 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 Dropbox API calls, OAuth scopes, or sharing rules
- any shipped if.bus runtime or message broker
---
## Demo artifacts
Source bundle sha256 (tgz):
dbd7c2dcf0772f04ae3d0873a0bcaa1e36ce3a01f4279a378c27caa934ff8c7a
Input JSON sha256:
473ccfa5b324ca58151ffee536cc9685c10421a8ca36085b8a44dec8ab1b5314
Normalized output JSON sha256:
14c929aa5728917df2fe6cbdb89edcf445c24bb256e42c00605f429155fae30a
---
## How to reproduce (no internal access)
```bash
curl -fsSL -o if-api-dropbox-demo-source.tgz "https://infrafabric.io/static/source/dbd7c2dcf0772f04ae3d0873a0bcaa1e36ce3a01f4279a378c27caa934ff8c7a.tgz"
sha256sum if-api-dropbox-demo-source.tgz
tar -xzf if-api-dropbox-demo-source.tgz
python3 resolve_dropbox_demo.py dropbox_input.json > resolved_event.json
sha256sum resolved_event.json
```
Expected `sha256sum` (source bundle):
dbd7c2dcf0772f04ae3d0873a0bcaa1e36ce3a01f4279a378c27caa934ff8c7a if-api-dropbox-demo-source.tgz
Expected `sha256sum` (normalized output):
14c929aa5728917df2fe6cbdb89edcf445c24bb256e42c00605f429155fae30a resolved_event.json
---
## Output (normalized event envelope)
```json
{
"event": "resolve",
"input_sha256": "473ccfa5b324ca58151ffee536cc9685c10421a8ca36085b8a44dec8ab1b5314",
"integration": "dropbox",
"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": [
{
"file_id": "id:dbx-demo-report",
"metadata": {
"modified_at": "2026-01-06T18:30:00Z",
"name": "report.pdf",
"path_display": "/demo/report.pdf",
"size_bytes": 198432
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://www.dropbox.com/s/dbx-demo-report/report.pdf"
},
{
"file_id": "id:dbx-demo-evidence",
"metadata": {
"modified_at": "2026-01-06T18:00:00Z",
"name": "evidence",
"path_display": "/demo/evidence",
"size_bytes": 0
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://www.dropbox.com/home/demo/evidence"
}
],
"schema_version": "demo.v1"
}
```