{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audioscrape-com/json-schema/audioscrape-com-workspace-list-schema.json",
  "title": "WorkspaceList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audioscrape-com-workspaces-api-openapi.yml#/components/schemas/WorkspaceList",
  "type": "object",
  "required": [
    "workspaces",
    "total"
  ],
  "properties": {
    "total": {
      "type": "integer",
      "format": "int64"
    },
    "workspaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkspaceSummary"
      }
    }
  },
  "$defs": {
    "WorkspaceSummary": {
      "type": "object",
      "required": [
        "id",
        "slug",
        "name",
        "role",
        "member_count",
        "is_current"
      ],
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "is_current": {
          "type": "boolean",
          "description": "Whether this is the workspace the authenticating API key (or session)\nis scoped to — the one searches, uploads, and quotas run against."
        },
        "member_count": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string"
        },
        "role": {
          "type": "string",
          "description": "The calling user's role in this workspace: `owner`, `admin`, or `member`."
        },
        "slug": {
          "type": "string",
          "description": "Stable URL slug, e.g. `audioscrape`."
        }
      }
    }
  }
}