{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-managed-content-version-collection-schema.json",
  "title": "ManagedContentVersionCollection",
  "description": "Collection of managed content versions",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-managed-content-api-openapi.yml#/components/schemas/ManagedContentVersionCollection",
  "type": "object",
  "properties": {
    "currentPageUrl": {
      "type": "string",
      "format": "uri"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ManagedContentVersion"
      }
    },
    "managedContentTypes": {
      "type": "object",
      "description": "Map of content type developer names to labels",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "developerName": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      }
    },
    "nextPageUrl": {
      "type": "string",
      "format": "uri"
    },
    "total": {
      "type": "integer",
      "description": "Total number of matching items"
    },
    "totalCount": {
      "type": "integer"
    }
  },
  "$defs": {
    "ContentNode": {
      "type": "object",
      "description": "A content node representing a field value in managed content",
      "properties": {
        "altText": {
          "type": "string",
          "description": "Alternative text (for media nodes)"
        },
        "contentKey": {
          "type": "string",
          "description": "Content key for referenced content"
        },
        "fileName": {
          "type": "string",
          "description": "File name (for media nodes)"
        },
        "mediaType": {
          "type": "string",
          "description": "Media type (for media nodes)"
        },
        "mimeType": {
          "type": "string",
          "description": "MIME type (for media nodes)"
        },
        "nodeType": {
          "type": "string",
          "description": "Type of content node",
          "enum": [
            "Media",
            "MediaSource",
            "MultilineText",
            "NameField",
            "RichText",
            "Text",
            "Url",
            "DateTime"
          ]
        },
        "referenceId": {
          "type": "string",
          "description": "Reference ID for the content"
        },
        "title": {
          "type": "string",
          "description": "Title of the node"
        },
        "unauthenticatedUrl": {
          "type": "string",
          "format": "uri",
          "description": "Public URL for unauthenticated access"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL value of the node"
        },
        "value": {
          "type": "string",
          "description": "Text or value content of the node"
        }
      }
    },
    "ManagedContentVersion": {
      "type": "object",
      "description": "A published managed content version",
      "properties": {
        "contentKey": {
          "type": "string",
          "description": "Unique content key"
        },
        "contentNodes": {
          "type": "object",
          "description": "Map of field names to content nodes containing the content field values",
          "additionalProperties": {
            "$ref": "#/$defs/ContentNode"
          }
        },
        "contentUrlName": {
          "type": "string",
          "description": "URL-friendly name for the content"
        },
        "language": {
          "type": "string",
          "description": "Language code of this content version"
        },
        "managedContentId": {
          "type": "string",
          "description": "Salesforce record ID of the managed content"
        },
        "publishedDate": {
          "type": "string",
          "format": "date-time",
          "description": "When this version was published"
        },
        "title": {
          "type": "string",
          "description": "Title of the content"
        },
        "type": {
          "type": "string",
          "description": "Content type developer name"
        },
        "typeLabel": {
          "type": "string",
          "description": "Content type display label"
        },
        "unauthenticatedUrl": {
          "type": "string",
          "format": "uri",
          "description": "Public URL for unauthenticated access"
        }
      }
    }
  }
}