{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shumi-ai/json-schema/shumi-ai-envelope-schema.json",
  "title": "Envelope",
  "description": "Success envelope. `schemaVersion` only changes on a breaking shape change, so a pinned client can detect one.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shumi-ai-openapi.json#/components/schemas/Envelope",
  "type": "object",
  "required": [
    "schemaVersion",
    "data",
    "meta"
  ],
  "properties": {
    "schemaVersion": {
      "type": "integer"
    },
    "data": {
      "description": "Route-specific payload."
    },
    "meta": {
      "type": "object",
      "properties": {
        "ts": {
          "type": "string",
          "format": "date-time",
          "description": "When this response was produced."
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp of the underlying data, when it carries one."
        },
        "data_age_seconds": {
          "type": "integer",
          "description": "Age of the underlying data. Present alongside `as_of`."
        }
      }
    }
  }
}