{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-confidential-ledger-enclaves-schema.json",
  "title": "ConfidentialLedgerEnclaves",
  "description": "Information about the enclaves running the Confidential Ledger.",
  "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/ConfidentialLedgerEnclaves",
  "required": [
    "currentNodeId",
    "enclaveQuotes"
  ],
  "properties": {
    "currentNodeId": {
      "description": "Id of the Confidential Ledger node responding to the request.",
      "$ref": "#/$defs/EntityId"
    },
    "enclaveQuotes": {
      "$ref": "#/$defs/EnclaveQuotes"
    }
  },
  "type": "object",
  "$defs": {
    "EnclaveQuote": {
      "description": "Contains the enclave quote.",
      "required": [
        "nodeId",
        "quoteVersion",
        "raw"
      ],
      "properties": {
        "nodeId": {
          "description": "ID assigned to this node.",
          "$ref": "#/$defs/EntityId"
        },
        "mrenclave": {
          "description": "MRENCLAVE value of the code running in the enclave.",
          "type": "string"
        },
        "quoteVersion": {
          "description": "Version of the quote presented.",
          "type": "string"
        },
        "raw": {
          "description": "Raw SGX quote, parsable by tools like Open Enclave's oeverify.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "EnclaveQuotes": {
      "description": "Dictionary of enclave quotes, indexed by node id.",
      "additionalProperties": {
        "$ref": "#/$defs/EnclaveQuote"
      },
      "type": "object"
    },
    "EntityId": {
      "description": "Identifier for an entity.",
      "type": "string"
    }
  }
}