{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algoum-de/json-schema/algoum-de-envelope-schema.json",
  "title": "Envelope",
  "description": "Uniform response envelope. `data` is specialised per endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algoum-de-common-api-openapi.yml#/components/schemas/Envelope",
  "type": "object",
  "required": [
    "meta"
  ],
  "properties": {
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "description": "Uniform metadata present in every response.",
      "required": [
        "request_id",
        "source"
      ],
      "properties": {
        "request_id": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "data_freshness": {
          "type": "string",
          "format": "date-time",
          "description": "Filing time of the most recently processed filing. Absent as long as no data has been imported – no freshness is claimed in that case."
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the next page; `null` at the end."
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}