{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-paged-ledger-entries-schema.json",
  "title": "PagedLedgerEntries",
  "description": "Paginated ledger entries returned in response to a query.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-app-api-openapi.yml#/components/schemas/PagedLedgerEntries",
  "type": "object",
  "required": [
    "state",
    "entries"
  ],
  "properties": {
    "state": {
      "$ref": "#/$defs/LedgerQueryState"
    },
    "nextLink": {
      "description": "Path from which to retrieve the next page of results.",
      "type": "string"
    },
    "entries": {
      "$ref": "#/$defs/LedgerEntries"
    }
  },
  "$defs": {
    "LedgerEntries": {
      "description": "Array of ledger entries.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/LedgerEntry"
      }
    },
    "LedgerEntry": {
      "description": "An entry in the ledger.",
      "required": [
        "contents"
      ],
      "properties": {
        "contents": {
          "type": "string",
          "description": "Contents of the ledger entry."
        },
        "collectionId": {
          "type": "string",
          "readOnly": true
        },
        "transactionId": {
          "$ref": "#/$defs/TransactionId",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "LedgerQueryState": {
      "description": "State of a ledger query.",
      "type": "string",
      "enum": [
        "Loading",
        "Ready"
      ],
      "x-ms-enum": {
        "name": "ConfidentialLedgerQueryState",
        "modelAsString": true
      }
    },
    "TransactionId": {
      "description": "A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read.",
      "type": "string"
    }
  }
}