{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quillhub-ai/json-schema/quillhub-ai-workspaces-response-schema.json",
  "title": "WorkspacesResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quillhub-ai-openapi.json#/components/schemas/WorkspacesResponse",
  "type": "object",
  "properties": {
    "workspaces": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "`personal` or `team`."
          },
          "role": {
            "type": "string",
            "description": "Caller's role: `owner`, `admin`, or `member`."
          },
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "recordings_count": {
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "name",
                "description",
                "color",
                "recordings_count"
              ]
            }
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "role",
          "projects"
        ]
      }
    }
  },
  "required": [
    "workspaces"
  ]
}