{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-media-collection-schema.json",
  "title": "MediaCollection",
  "description": "Collection of CMS media files",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-media-api-openapi.yml#/components/schemas/MediaCollection",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MediaFile"
      }
    },
    "currentPageUrl": {
      "type": "string",
      "format": "uri"
    },
    "nextPageUrl": {
      "type": "string",
      "format": "uri"
    },
    "totalCount": {
      "type": "integer"
    }
  },
  "$defs": {
    "MediaFile": {
      "type": "object",
      "description": "A CMS media file",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the media file"
        },
        "altText": {
          "type": "string",
          "description": "Alternative text for the media"
        },
        "fileName": {
          "type": "string",
          "description": "Original file name"
        },
        "mediaType": {
          "type": "string",
          "description": "Type of media",
          "enum": [
            "Image",
            "Document",
            "Video"
          ]
        },
        "mimeType": {
          "type": "string",
          "description": "MIME type of the file"
        },
        "referenceId": {
          "type": "string",
          "description": "Reference ID for the media"
        },
        "title": {
          "type": "string",
          "description": "Display title of the media"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL to access the media file"
        }
      }
    }
  }
}