{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getmattered/json-schema/getmattered-response-metadata-schema.json",
  "title": "ResponseMetadata",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getmattered-ai-persona-api-openapi.yml#/components/schemas/ResponseMetadata",
  "type": "object",
  "properties": {
    "duration": {
      "type": "number",
      "minimum": 0,
      "description": "Request duration in milliseconds"
    },
    "performance": {
      "type": "object",
      "properties": {
        "dbQueries": {
          "type": "integer",
          "minimum": 0
        },
        "totalDbTime": {
          "type": "number",
          "minimum": 0
        }
      },
      "description": "Performance metrics (preview/local only)"
    },
    "requestId": {
      "type": "string",
      "description": "Unique request identifier"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp"
    },
    "version": {
      "type": "string",
      "description": "API version"
    }
  }
}