{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audioscrape-com/json-schema/audioscrape-com-workspace-detail-schema.json",
  "title": "WorkspaceDetail",
  "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/WorkspaceDetail",
  "type": "object",
  "required": [
    "id",
    "slug",
    "name",
    "role",
    "member_count",
    "datasets"
  ],
  "properties": {
    "datasets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DatasetSummary"
      },
      "description": "ALL of the workspace's datasets — `public`, `workspace`, and `private`."
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "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"
    }
  },
  "$defs": {
    "DatasetSummary": {
      "type": "object",
      "required": [
        "id",
        "slug",
        "name",
        "visibility",
        "podcast_count",
        "episode_count"
      ],
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "episode_count": {
          "type": "integer",
          "format": "int64"
        },
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string"
        },
        "podcast_count": {
          "type": "integer",
          "format": "int64"
        },
        "slug": {
          "type": "string"
        },
        "visibility": {
          "type": "string",
          "description": "`public`, `workspace`, or `private`."
        }
      }
    }
  }
}