{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-support-report-request-schema.json",
  "title": "SupportReportRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-support-api-openapi.yml#/components/schemas/SupportReportRequest",
  "type": "object",
  "properties": {
    "site": {
      "type": "string",
      "maxLength": 200
    },
    "kind": {
      "type": "string",
      "enum": [
        "bug",
        "question",
        "idea"
      ],
      "default": "bug"
    },
    "reportedBy": {
      "type": "string",
      "enum": [
        "agent",
        "user"
      ]
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "actual": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "expected": {
      "type": "string",
      "maxLength": 1000
    },
    "steps": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 300
      },
      "maxItems": 10
    },
    "severity": {
      "type": "string",
      "enum": [
        "blocking",
        "major",
        "minor"
      ]
    },
    "tool": {
      "type": "string",
      "maxLength": 64
    },
    "operationId": {
      "type": "string",
      "maxLength": 80
    },
    "requestIds": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 64
      },
      "maxItems": 5
    },
    "page": {
      "type": "string",
      "maxLength": 300
    },
    "url": {
      "type": "string",
      "maxLength": 500
    },
    "model": {
      "type": "string",
      "maxLength": 60
    },
    "source": {
      "type": "string",
      "enum": [
        "editor",
        "dashboard"
      ]
    },
    "includeTechnical": {
      "type": "boolean"
    },
    "reporterEmail": {
      "type": "string",
      "maxLength": 254
    },
    "attachments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          }
        },
        "required": [
          "id"
        ]
      },
      "maxItems": 3
    },
    "context": {
      "type": "object",
      "properties": {
        "console": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "level": {
                "type": "string",
                "maxLength": 20
              },
              "text": {
                "type": "string",
                "maxLength": 2000
              },
              "at": {
                "type": "number"
              }
            },
            "required": [
              "level",
              "text",
              "at"
            ]
          },
          "maxItems": 50
        },
        "fetches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "method": {
                "type": "string",
                "maxLength": 16
              },
              "path": {
                "type": "string",
                "maxLength": 500
              },
              "status": {
                "type": "integer"
              },
              "ms": {
                "type": "number"
              },
              "requestId": {
                "type": "string",
                "maxLength": 64
              }
            },
            "required": [
              "method",
              "path"
            ]
          },
          "maxItems": 30
        },
        "routes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string",
                "maxLength": 500
              },
              "at": {
                "type": "number"
              }
            },
            "required": [
              "path",
              "at"
            ]
          },
          "maxItems": 10
        },
        "viewport": {
          "type": "object",
          "properties": {
            "w": {
              "type": "number"
            },
            "h": {
              "type": "number"
            },
            "dpr": {
              "type": "number"
            },
            "lang": {
              "type": "string",
              "maxLength": 40
            },
            "tz": {
              "type": "string",
              "maxLength": 80
            },
            "ua": {
              "type": "string",
              "maxLength": 400
            },
            "sessionMs": {
              "type": "number"
            }
          },
          "required": [
            "w",
            "h",
            "dpr",
            "lang",
            "tz",
            "ua",
            "sessionMs"
          ]
        },
        "buildSha": {
          "type": "string",
          "maxLength": 80
        }
      }
    }
  },
  "required": [
    "reportedBy",
    "title",
    "actual",
    "severity"
  ]
}