<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="https://rss.iris.a2d.tv/ns/billboards/1.0/"
            xmlns="https://rss.iris.a2d.tv/ns/billboards/1.0/"
            elementFormDefault="qualified">

  <!-- iris:externalId -->
  <xsd:element name="externalId" type="xsd:string"/>

  <!-- iris:version -->
  <xsd:element name="version" type="xsd:positiveInteger"/>

  <!-- iris:createdAt (ISO-8601 UTC) -->
  <xsd:element name="createdAt" type="xsd:dateTime"/>

  <!-- iris:mediaUrl (signed CloudFront URL for the archive mezzanine) -->
  <xsd:element name="mediaUrl" type="xsd:anyURI"/>

  <!-- iris:mediaUrlExpiresAt (ISO-8601 UTC) -->
  <xsd:element name="mediaUrlExpiresAt" type="xsd:dateTime"/>

  <!-- iris:playoutFileUrl (presigned S3 URL for the XDCAMHD MXF) -->
  <xsd:element name="playoutFileUrl" type="xsd:anyURI"/>

  <!-- iris:playoutFileExpiresAt (ISO-8601 UTC) -->
  <xsd:element name="playoutFileExpiresAt" type="xsd:dateTime"/>

  <!-- iris:playoutFileSize (bytes) -->
  <xsd:element name="playoutFileSize" type="xsd:nonNegativeInteger"/>

  <!-- iris:firstCopiedToPlayoutAt (ISO-8601 UTC) -->
  <xsd:element name="firstCopiedToPlayoutAt" type="xsd:dateTime"/>

  <!-- iris:spotID (spot code / filmkod) -->
  <xsd:element name="spotID" type="xsd:string"/>

  <!-- iris:targetCompany -->
  <xsd:element name="targetCompany" type="xsd:string"/>

  <!-- iris:duration - normally an HH:MM:SS:FF timecode, but it is an upstream
       tag that IRIS passes through without validating, so it is typed loosely -->
  <xsd:element name="duration" type="xsd:string"/>

  <!-- iris:channelGroup -->
  <xsd:element name="channelGroup" type="xsd:string"/>

</xsd:schema>
