{
  "schema_version": "switch-export-v1",
  "generated_at": "2026-08-30T18:00:00Z",
  "organisation": {
    "organisation_id": "org_example",
    "name": "Example Customer AB",
    "created_at": "2026-01-15T09:00:00Z"
  },
  "users": [
    {
      "user_id": "user_example",
      "email": "admin@example.invalid",
      "display_name": "Example Administrator",
      "status": "active",
      "roles": [
        "org_admin"
      ],
      "created_at": "2026-01-15T09:00:00Z"
    }
  ],
  "seats": [
    {
      "seat_id": "seat_example",
      "user_id": "user_example",
      "product": "gateway",
      "status": "active",
      "created_at": "2026-01-15T09:00:00Z"
    }
  ],
  "entitlements": [
    {
      "entitlement_id": "entitlement_example",
      "code": "gateway.team",
      "tier": "team",
      "quantity": 1,
      "status": "active",
      "starts_at": "2026-01-15T09:00:00Z",
      "ends_at": null
    }
  ],
  "subscriptions": [
    {
      "subscription_id": "subscription_example",
      "product": "gateway",
      "tier": "team",
      "status": "active",
      "starts_at": "2026-01-15T09:00:00Z",
      "ends_at": null,
      "committed_until": null
    }
  ],
  "billing_records": [
    {
      "record_id": "invoice_example",
      "kind": "invoice",
      "status": "paid",
      "currency": "EUR",
      "amount_minor": 10000,
      "issued_at": "2026-08-01T00:00:00Z",
      "period_start": "2026-08-01T00:00:00Z",
      "period_end": "2026-09-01T00:00:00Z",
      "invoice_path": "files/invoices/invoice_example.pdf"
    }
  ],
  "usage_records": [
    {
      "metric": "tool_calls",
      "period_start": "2026-08-01T00:00:00Z",
      "period_end": "2026-09-01T00:00:00Z",
      "quantity": 42,
      "unit": "request"
    }
  ],
  "documents": [
    {
      "document_id": "document_example",
      "filename": "policy.txt",
      "mime_type": "text/plain",
      "size_bytes": 12,
      "sha256": "0000000000000000000000000000000000000000000000000000000000000000",
      "status": "ready",
      "created_at": "2026-08-10T10:00:00Z",
      "ready_at": "2026-08-10T10:00:01Z",
      "original_path": "files/documents/document_example/policy.txt",
      "inline_text": null,
      "extracted_text": "Example text",
      "segments": [
        {
          "segment_id": "segment_example",
          "ordinal": 0,
          "text": "Example text",
          "source_start": 0,
          "source_end": 12,
          "citations": [
            {
              "citation_id": "citation_example",
              "source_ref": "document_example",
              "locator": "characters 0-12",
              "text": "Example text"
            }
          ]
        }
      ]
    }
  ],
  "workflows": [
    {
      "workflow_id": "workflow_example",
      "workflow_type": "gap-analysis",
      "status": "completed",
      "created_at": "2026-08-11T10:00:00Z",
      "updated_at": "2026-08-11T11:00:00Z",
      "scope": [
        {
          "path": "subject.name",
          "value_json": "\"Example system\""
        }
      ],
      "responses": [
        {
          "step_id": "scope",
          "submitted_at": "2026-08-11T10:05:00Z",
          "fields": [
            {
              "path": "answers.system_type",
              "value_json": "\"SaaS\""
            }
          ]
        }
      ],
      "evidence_bindings": [
        {
          "binding_id": "binding_example",
          "source_ref": "document_example",
          "citation": "citation_example"
        }
      ],
      "findings": [
        {
          "finding_id": "finding_example",
          "title": "Example finding",
          "description": "Example description",
          "severity": "medium",
          "status": "open",
          "evidence_binding_ids": [
            "binding_example"
          ],
          "fields": [
            {
              "path": "score",
              "value_json": "5"
            }
          ]
        }
      ],
      "report_ids": [
        "report_example"
      ]
    }
  ],
  "reports": [
    {
      "report_id": "report_example",
      "workflow_id": "workflow_example",
      "format": "json",
      "path": "files/reports/report_example.json",
      "sha256": "0000000000000000000000000000000000000000000000000000000000000000",
      "created_at": "2026-08-11T11:00:00Z"
    }
  ],
  "audit_records": [
    {
      "record_id": "audit_example",
      "interaction_id": "interaction_example",
      "created_at": "2026-08-11T10:00:00Z",
      "tool_name": "search",
      "receipt_json": "{\"receipt_id\":\"receipt_example\"}",
      "anchor_json": "{\"root\":\"example\"}",
      "timestamp_json": null,
      "signature_json": "{\"algorithm\":\"example\"}",
      "retained_content_json": null
    }
  ],
  "tenant_configuration": {
    "settings": [
      {
        "key": "locale",
        "value_json": "\"en\""
      }
    ],
    "access_assignments": [
      {
        "principal_id": "user_example",
        "principal_type": "user",
        "roles": [
          "org_admin"
        ]
      }
    ],
    "connectors": [
      {
        "record_id": "connector_example",
        "type": "mcp",
        "name": "Example connector",
        "status": "active",
        "configuration_fields": [
          {
            "path": "server_url",
            "value_json": "\"https://example.invalid/mcp\""
          }
        ]
      }
    ],
    "sources": [
      {
        "record_id": "source_example",
        "type": "document",
        "name": "Example source",
        "status": "active",
        "configuration_fields": []
      }
    ]
  },
  "manifest": {
    "bundle_id": "bundle_example",
    "files": [
      {
        "path": "files/documents/document_example/policy.txt",
        "media_type": "text/plain",
        "sha256": "0000000000000000000000000000000000000000000000000000000000000000",
        "size_bytes": 12
      },
      {
        "path": "files/reports/report_example.json",
        "media_type": "application/json",
        "sha256": "0000000000000000000000000000000000000000000000000000000000000000",
        "size_bytes": 2
      }
    ]
  }
}
