{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audioscrape-com/json-schema/audioscrape-com-library-detail-schema.json",
  "title": "LibraryDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audioscrape-com-libraries-api-openapi.yml#/components/schemas/LibraryDetail",
  "allOf": [
    {
      "$ref": "#/$defs/Library"
    },
    {
      "type": "object",
      "required": [
        "datasets"
      ],
      "properties": {
        "datasets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DatasetSummary"
          }
        }
      }
    }
  ],
  "$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`."
        }
      }
    },
    "Library": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "subscriber_count",
        "dataset_count",
        "episode_count",
        "is_subscribed"
      ],
      "properties": {
        "curator": {
          "type": [
            "string",
            "null"
          ]
        },
        "dataset_count": {
          "type": "integer",
          "format": "int64"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "episode_count": {
          "type": "integer",
          "format": "int64"
        },
        "is_subscribed": {
          "type": "boolean",
          "description": "Whether the calling user is a member of this library."
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string",
          "description": "Stable URL slug, e.g. `audioscrape`."
        },
        "subscriber_count": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}