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 — SharePoint resolver (receipt-backed)

**Audience:** external reviewers + operators  
**Reality gate:** demo of a transformation contract, not a deployed SharePoint integration.

---

## Links (HTML-first)

if.trace receipt:
https://infrafabric.io/static/trace/q2UTiDyUcG06G8k8_-YcmA

Pack (HTML view):
https://infrafabric.io/static/pack/q2UTiDyUcG06G8k8_-YcmA

Pack (raw Markdown):
https://infrafabric.io/static/pack/q2UTiDyUcG06G8k8_-YcmA.md

Source bundle (tgz):
https://infrafabric.io/static/source/827741ec631ae2bbefee4fdf684a1afb1f6f9161306efa64a2f76adea75b8807.tgz

---

## What this proves (black/white)

This demo proves:
- a known SharePoint item 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 SharePoint API calls, tenant auth, or policy enforcement
- any shipped if.bus runtime or message broker

---

## Demo artifacts

Source bundle sha256 (tgz):

    827741ec631ae2bbefee4fdf684a1afb1f6f9161306efa64a2f76adea75b8807

Input JSON sha256:

    b7b9e12d656fbdbbbe1c99d70f437afffa7d9218acddd455a5d67114337a2ae4

Normalized output JSON sha256:

    24f933c7a31a87727b5c1d2600fd64a16553be5f11d8698e06e5ff338d757d6e

---

## How to reproduce (no internal access)

```bash
curl -fsSL -o if-api-sharepoint-demo-source.tgz "https://infrafabric.io/static/source/827741ec631ae2bbefee4fdf684a1afb1f6f9161306efa64a2f76adea75b8807.tgz"
sha256sum if-api-sharepoint-demo-source.tgz

tar -xzf if-api-sharepoint-demo-source.tgz
python3 resolve_sharepoint_demo.py sharepoint_input.json > resolved_event.json
sha256sum resolved_event.json
```

Expected `sha256sum` (source bundle):

    827741ec631ae2bbefee4fdf684a1afb1f6f9161306efa64a2f76adea75b8807  if-api-sharepoint-demo-source.tgz

Expected `sha256sum` (normalized output):

    24f933c7a31a87727b5c1d2600fd64a16553be5f11d8698e06e5ff338d757d6e  resolved_event.json

---

## Output (normalized event envelope)

```json
{
  "event": "resolve",
  "input_sha256": "b7b9e12d656fbdbbbe1c99d70f437afffa7d9218acddd455a5d67114337a2ae4",
  "integration": "sharepoint",
  "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": "01ABCDXYZ123456",
      "metadata": {
        "last_modified": "2026-01-07T00:00:00Z",
        "name": "if-api-sharepoint-demo.md",
        "owner": "demo.owner@example.com",
        "size_bytes": 37200
      },
      "resolution_method": "synthetic-map",
      "status": "resolved",
      "target_url": "https://contoso.sharepoint.com/sites/if-trace/Shared%20Documents/if-api-sharepoint-demo.md"
    },
    {
      "item_id": "01EFGHXYZ987654",
      "metadata": {
        "last_modified": "2026-01-07T00:00:00Z",
        "name": "if-api-sharepoint-demo-source.tgz",
        "owner": "demo.owner@example.com",
        "size_bytes": 19840
      },
      "resolution_method": "synthetic-map",
      "status": "resolved",
      "target_url": "https://contoso.sharepoint.com/sites/if-trace/Shared%20Documents/if-api-sharepoint-demo-source.tgz"
    }
  ],
  "schema_version": "demo.v1"
}
```