{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qeaas-eu/json-schema/qeaas-eu-kem-encapsulate-response-schema.json",
  "title": "KemEncapsulateResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qeaas-eu-openapi.yml#/components/schemas/KemEncapsulateResponse",
  "properties": {
    "request_id": {
      "type": "string",
      "title": "Request Id"
    },
    "algorithm": {
      "type": "string",
      "const": "ML-KEM-768",
      "title": "Algorithm"
    },
    "format": {
      "type": "string",
      "const": "base64",
      "title": "Format"
    },
    "ciphertext": {
      "type": "string",
      "title": "Ciphertext"
    },
    "shared_secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shared Secret"
    },
    "demo_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Demo Key"
    },
    "entropy_epoch": {
      "type": "integer",
      "title": "Entropy Epoch"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "title": "Timestamp"
    },
    "receipt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Receipt"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Note"
    }
  },
  "type": "object",
  "required": [
    "request_id",
    "algorithm",
    "format",
    "ciphertext",
    "entropy_epoch",
    "timestamp"
  ]
}