{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frihet-io/json-schema/frihet-io-inventory-opening-run-outcome-schema.json",
  "title": "InventoryOpeningRunOutcome",
  "description": "The opening-run outcome. `runId` is content-addressed over\n`(workspaceUid, sorted items, sorted ledger receipts)` so two runs on\nthe same workspace and same data hash to the same id (the second is a\nno-op).\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frihet-io-inventory-api-openapi.yml#/components/schemas/InventoryOpeningRunOutcome",
  "type": "object",
  "properties": {
    "runId": {
      "type": "string"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "pricedItemCount": {
      "type": "integer"
    },
    "unpricedItemCount": {
      "type": "integer"
    },
    "shortfallItemCount": {
      "type": "integer"
    },
    "noOpItemCount": {
      "type": "integer"
    },
    "totalOpeningValueMinor": {
      "type": "string"
    },
    "pricedItemIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "unpricedItemIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "shortfallItemIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "startedAt": {
      "type": "string",
      "format": "date-time"
    },
    "completedAt": {
      "type": "string",
      "format": "date-time"
    },
    "actorUid": {
      "type": "string"
    }
  }
}