<?xml version="1.0" encoding="UTF-8"?>

<!--

XML data type definitions for the RESTful Network API for Chat 
   Version: 1.0 (1.0)
   Date: 07 Jun 2018

FILE INFORMATION

  OMA Permanent Document
    File: OMA-SUP-XSD_rest_netapi_chat-V1_0-20180607-C
    Type: Text - Schema Description

  Public Reachable Information
    Path: http://www.openmobilealliance.org/tech/profiles
    Name: rest_netapi_chat-v1_0.xsd

NORMATIVE INFORMATION

  Information about this file can be found in the latest revision of the specification

    OMA-TS-REST_NetAPI_Chat-V1_0

  This is available at http://www.openmobilealliance.org/

  Send comments to technical-comments@mail.openmobilealliance.org

CHANGE HISTORY
30052011 File created, considering OMA-ARC-REST-NetAPI-2011-0022-INP_XSD_Template_application
22072011 OMA-ARC-REST-NetAPI-2011-0146-CR_XSD_for_Chat implemented
15092011 OMA-ARC-REST-NetAPI-2011-0236-CR_Separating_originator_and_tParticipant_1_1_chat_XSD implemented
11112011 OMA-ARC-REST-NetAPI-2011-0305R01-CR_Chat_XSD_companion_for_284 implemented
26012012 OMA-ARC-REST-NetAPI-2012-0016R01-CR_XSD_Chat_CONR_resolution implemented
02042012 OMA-ARC-REST-NetAPI-2012-0110R02-CR_Chat_XSD_companion_for_106 implemented
16042012 OMA-ARC-REST-NetAPI-2012-0147-CR_Chat_XSD_changes_from_145R01_and_142R01 implemented
24042012 OMA-ARC-REST-NetAPI-2012-0156R01-CR_Chat_XSD_catch_up implemented
09052012 Status changed to Candidate by TP, TP Ref # OMA-TP-2012-0195-INP_REST_NetAPI_Chat_1_0_ERP_and_ETR_for_Candidate_Approval
19072012 Incorporated OMA-ARC-REST-NetAPI-2012-0185-CR_Subject_optional_in_Chat_XSD, OMA-ARC-REST-NetAPI-2012-0196-CR_ClientCorrelator_in_ChatSessionInformation_XSD
22022013 Incorporated OMA-ARC-REST-NetAPI-2013-0006-CR_Addressing_RCSe_Problem_Report_XSD_Chat
30042013 Incorporated OMA-ARC-REST-NetAPI-2013-0032R01-CR_Chat_XSD_updates_INP0028r01
13052013 Status changed to Candidate by TP, TP Ref # OMA-TP-2013-0135-INP_REST_NetAPI_Chat_V1_0_ERP_for_Notification
25112013 Incorporated OMA-ARC-REST-NetAPI-2013-0067R01-CR_Chat_XSD_companion_CR0069
17122014 Incorporated CR OMA-ARC-REST-NetAPI-2014-0091-CR_update_XSD_following_CR0088
25022015 Incorporated CR OMA-ARC-REST-NetAPI-2015-0016-CR_XSD_FT_in_Chat
01122015 Status changed to Candidate by TP, TP Ref # OMA-TP-2015-0188-INP_REST_NetAPI_Chat_V1_0_ERP_for_Candidate_re_approval
20022018 Incorporated CR OMA-ARC-REST-NetAPI-2018-0004-CR_XSD_Chat_MaaP
23022018 Incorporated CR OMA-ARC-REST-NetAPI-2018-0005-CR_XSD_Fixup_Maap
22052018 Incorporated CRs OMA-ARC-REST-NetAPI-2018-0015-CR_XSD_Chat_Add_resourceURL_to_IncomingMultimediaChatMessage,
         OMA-ARC-REST-NetAPI-2018-0016-CR_XSD_Chat_ChatSessionInformation_initialMultimediaMessage_OutgoingMultimediaChatMessage
         OMA-ARC-REST-NetAPI-2018-0029-CR_Chat_XSD_Add_duration_root_element
07062018 Status changed to Candidate by ARC, Doc Ref # OMA-ARC-2018-0020R02-INP_REST_NetAPI_Chat_V1_0_ERP_for_Candidate_Approval


LEGAL DISCLAIMER

  Copyright 2018 Open Mobile Alliance All rights reserved.

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions
  are met:

  1. Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its
  contributors may be used to endorse or promote products derived
  from this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  POSSIBILITY OF SUCH DAMAGE.

  The above license is used as a license under copyright only.  Please
  reference the OMA IPR Policy for patent licensing terms:
  http://www.openmobilealliance.org/ipr.html

-->


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   targetNamespace="urn:oma:xml:rest:netapi:chat:1" 
   xmlns:common="urn:oma:xml:rest:netapi:common:1"
   xmlns:capabilitydiscovery="urn:oma:xml:rest:netapi:capabilitydiscovery:1"
   xmlns="urn:oma:xml:rest:netapi:chat:1" version="1.0">
   
   <xsd:annotation>
      <xsd:documentation>This schema defines the XML data types for the RESTful Network API for Chat.</xsd:documentation>
   </xsd:annotation>
   
   <xsd:import namespace="urn:oma:xml:rest:netapi:common:1"
      schemaLocation="http://www.openmobilealliance.org/tech/profiles/rest_netapi_common-v1_0.xsd"/>
   <xsd:import namespace="urn:oma:xml:rest:netapi:capabilitydiscovery:1"
      schemaLocation="http://www.openmobilealliance.org/tech/profiles/rest_netapi_capabilitydiscovery-v1_0.xsd"/>

   <!-- ==================================== -->
   <!-- Subscriptions -->
   <!-- ==================================== -->
   <xsd:element name="chatSubscriptionList" type="ChatSubscriptionList"/>
   
   <xsd:complexType name="ChatSubscriptionList">
      <xsd:sequence>
         <xsd:element name="chatNotificationSubscription" type="ChatNotificationSubscription" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
      </xsd:sequence> 
   </xsd:complexType>
   
   
   <xsd:element name="chatNotificationSubscription" type="ChatNotificationSubscription"/>
   
   <xsd:complexType name="ChatNotificationSubscription">
      <xsd:sequence>
         <xsd:element name="callbackReference" type="common:CallbackReference" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="listId" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="confirmedChatSupported" type="xsd:boolean" minOccurs="0" maxOccurs="1" default="false"/>
         <xsd:element name="adhocChatSupported" type="xsd:boolean" minOccurs="0" maxOccurs="1" default="true"/>
         <xsd:element name="duration" type="xsd:int" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="clientCorrelator" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
    </xsd:complexType>  
   

   <!-- ======================================== -->
   <!-- Notifications, their referenced types and responses -->
   <!-- ======================================== -->

   <xsd:element name="chatEventNotification" type="ChatEventNotification"/>
   
   <xsd:complexType name="ChatEventNotification">
      <xsd:sequence>
         <xsd:element name="callbackData" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="eventType" type="EventType" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="eventDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  


   <xsd:element name="chatSessionInvitationNotification" type="ChatSessionInvitationNotification"/>
   
   <xsd:complexType name="ChatSessionInvitationNotification">
      <xsd:sequence>
         <xsd:element name="callbackData" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="subject" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="originatorAddress" type="xsd:anyURI" minOccurs="1" maxOccurs="2"/>
         <xsd:element name="originatorName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="tParticipantAddress" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="tParticipantName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="serviceCapability" type="capabilitydiscovery:ServiceCapability" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="anonymization" type="AnonymizationFlag" minOccurs="0" maxOccurs="1"/>
         <xsd:choice minOccurs="0" maxOccurs="1">
            <xsd:element name="initialMessage" type="ChatMessage" minOccurs="1" maxOccurs="1"/>
            <xsd:element name="initialMultimediaMessage" type="IncomingMultimediaChatMessage" minOccurs="1" maxOccurs="1"/>
         </xsd:choice>
</xsd:sequence>
   </xsd:complexType>  
   
      
   <xsd:element name="groupChatSessionInvitationNotification" type="GroupChatSessionInvitationNotification"/>
   
   <xsd:complexType name="GroupChatSessionInvitationNotification">
      <xsd:sequence>
         <xsd:element name="callbackData" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="subject" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="participant" type="ParticipantInformation" minOccurs="2" maxOccurs="unbounded"/>
         <xsd:element name="isClosed" type="xsd:boolean" minOccurs="0" maxOccurs="1" default="false"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   <xsd:element name="chatMessageNotification" type="ChatMessageNotification"/>
   
   <xsd:complexType name="ChatMessageNotification">
      <xsd:sequence>
         <xsd:element name="callbackData" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="senderAddress" type="xsd:anyURI" minOccurs="1" maxOccurs="2"/>
         <xsd:element name="senderName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="anonymization" type="AnonymizationFlag" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="serviceCapability" type="capabilitydiscovery:ServiceCapability" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:choice> 
            <xsd:element name="chatMessage" type="ChatMessage" minOccurs="1" maxOccurs="1"/>
            <xsd:element name="isComposing" type="IsComposing" minOccurs="1" maxOccurs="1"/>
         </xsd:choice>
         <xsd:element name="dateTime" type="xsd:dateTimeStamp" minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   <xsd:element name="chatParticipantStatusNotification" type="ChatParticipantStatusNotification"/>
   
   <xsd:complexType name="ChatParticipantStatusNotification">
      <xsd:sequence>
         <xsd:element name="callbackData" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="participant" type="ParticipantStatusEntry" minOccurs="1" maxOccurs="unbounded"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   <xsd:complexType name="ParticipantStatusEntry">
      <xsd:sequence>
         <xsd:element name="address" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="status" type="ParticipantStatus" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="yourown" type="xsd:boolean" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   
   <xsd:element name="chatMessageStatusNotification" type="ChatMessageStatusNotification"/>
   
   <xsd:complexType name="ChatMessageStatusNotification">
      <xsd:sequence>
         <xsd:element name="callbackData" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="status" type="MessageStatus" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="errorCode" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   
   <xsd:element name="chatMessage" type="ChatMessage"/>
   
   <xsd:complexType name="ChatMessage">
      <xsd:sequence>
         <xsd:element name="text" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="reportRequest" type="MessageStatus" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="trafficType" type="xsd:string" minOccurs="0" maxOccurs="1"/> 
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   <xsd:element name="outgoingMultimediaChatMessage" type="OutgoingMultimediaChatMessage"/>
   
   <xsd:complexType name="OutgoingMultimediaChatMessage">
      <xsd:sequence>
         <xsd:element name="text" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="reportRequest" type="MessageStatus" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="attachment" type="AttachmentInfo" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="trafficType" type="xsd:string" minOccurs="0" maxOccurs="1"/> 
      </xsd:sequence>
   </xsd:complexType>  


   <xsd:complexType name=" IncomingMultimediaChatMessage">
      <xsd:sequence>
         <xsd:element name="text" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="reportRequest" type="MessageStatus" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="attachment" type="AttachmentInfo" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="trafficType" type="xsd:string" minOccurs="0" maxOccurs="1"/> 
      </xsd:sequence>
   </xsd:complexType>  


   <xsd:element name="multimediaChatMessageNotification" type="MultimediaChatMessageNotification"/>

   <xsd:complexType name="MultimediaChatMessageNotification">
      <xsd:sequence>
         <xsd:element name="callbackData" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="senderAddress" type="xsd:anyURI" minOccurs="1" maxOccurs="2"/>
         <xsd:element name="senderName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="anonymization" type="AnonymizationFlag" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="message" type="IncomingMultimediaChatMessage" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="dateTime" type="xsd:dateTimeStamp" minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  

   <xsd:complexType name="ThumbnailInfo">
      <xsd:sequence>
         <xsd:element name="contentType" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="size" type="xsd:unsignedLong" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="1" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   <xsd:complexType name="AttachmentInfo">
      <xsd:sequence>
         <xsd:element name="contentType" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="size" type="xsd:unsignedLong" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="1" maxOccurs="1"/>
		 <xsd:element name="text" type="xsd:string" minOccurs="0" maxOccurs="1"/>
		 <xsd:element name="thumbnail" type="ThumbnailInfo" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
   </xsd:complexType>  

   <xsd:element name="extensionParameters" type="ExtensionParameters"/>

   <xsd:complexType name="ExtensionParameters">
      <xsd:sequence>
         <xsd:element name="participant" type="ParticipantInformation" minOccurs="1" maxOccurs="unbounded"/>
         <xsd:element name="isClosed" type="xsd:boolean" minOccurs="0" maxOccurs="1" default="false"/>
      </xsd:sequence>
   </xsd:complexType>  

   
   
   <xsd:element name="messageStatusReport" type="MessageStatusReport"/>
   
   <xsd:complexType name="MessageStatusReport">
      <xsd:sequence>
         <xsd:element name="status" type="MessageStatus" minOccurs="1" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   
   <xsd:element name="participantSessionStatus" type="ParticipantSessionStatus"/>
   
   <xsd:complexType name="ParticipantSessionStatus">
      <xsd:sequence>
         <xsd:element name="status" type="ParticipantStatus" minOccurs="1" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  
   

   <xsd:element name="isComposing" type="IsComposing"/>
   
   <xsd:complexType name="IsComposing">
      <xsd:sequence>
         <xsd:element name="state" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="lastactive" type="xsd:dateTimeStamp" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="contenttype" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="refresh" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1"/>
         <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   <xsd:element name="chatSubscriptionCancellationNotification" type="ChatSubscriptionCancellationNotification"/>
   
   <xsd:complexType name="ChatSubscriptionCancellationNotification">
      <xsd:sequence>
         <xsd:element name="callbackData" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="reason" type="common:ServiceError" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="link" type="common:Link" minOccurs="1" maxOccurs="unbounded"/>
      </xsd:sequence>
   </xsd:complexType>  

   <!-- ==================================== -->
   <!-- 1-1 sessions -->
   <!-- ==================================== -->
 
   <xsd:element name="chatSessionInformation" type="ChatSessionInformation"/>
   
   <xsd:complexType name="ChatSessionInformation">
      <xsd:sequence>
         <xsd:element name="subject" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="originatorAddress" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="originatorName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="tParticipantAddress" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="tParticipantName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="anonymization" type="AnonymizationFlag" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="status" type="ParticipantStatus" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="clientCorrelator" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="serviceCapability" type="capabilitydiscovery:ServiceCapability" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:choice minOccurs="0" maxOccurs="1">
            <xsd:element name="initialMessage" type="ChatMessage" minOccurs="1" maxOccurs="1"/>
            <xsd:element name=" initialMultimediaMessage" type="OutgoingMultimediaChatMessage" minOccurs="1" maxOccurs="1"/>
         </xsd:choice>
      </xsd:sequence>
   </xsd:complexType>  
   
   
  
   
   <!-- ==================================== -->
   <!-- Group sessions -->
   <!-- ==================================== -->
   
   <xsd:element name="groupChatSessionInformationList" type="GroupChatSessionInformationList"/>

   <xsd:complexType name="GroupChatSessionInformationList">
  	<xsd:sequence>
 		<xsd:element name="groupChatSessionInformation" type="GroupChatSessionInformation" maxOccurs="unbounded" minOccurs="0"/>
 		<xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="1"/>
 	</xsd:sequence>
   </xsd:complexType>
   




   <xsd:element name="groupChatSessionInformation" type="GroupChatSessionInformation"/>
   
   <xsd:complexType name="GroupChatSessionInformation">
      <xsd:sequence>
         <xsd:element name="subject" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="participant" type="ParticipantInformation" minOccurs="1" maxOccurs="unbounded"/>
         <xsd:element name="clientCorrelator" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="isClosed" type="xsd:boolean" minOccurs="0" maxOccurs="1" default="false"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   
   <xsd:element name="participantList" type="ParticipantList"/>
   
   <xsd:complexType name="ParticipantList">
      <xsd:sequence>
         <xsd:element name="participant" type="ParticipantInformation" minOccurs="1" maxOccurs="unbounded"/>
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   <xsd:element name="participantInformation" type="ParticipantInformation"/>
   
   <xsd:complexType name="ParticipantInformation">
      <xsd:sequence>
         <xsd:element name="address" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
         <xsd:element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="isOriginator" type="xsd:boolean" minOccurs="0" maxOccurs="1" default="false"/>
         <xsd:element name="status" type="ParticipantStatus" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="clientCorrelator" type="xsd:string" minOccurs="0" maxOccurs="1"/>
         <xsd:element name="resourceURL" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>  
   
   
   
   <!-- ==================================== -->
   <!-- Enumerations -->
   <!-- ==================================== -->
   
   <xsd:simpleType name="ParticipantStatus">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="Invited"/>
         <xsd:enumeration value="Connected"/>
         <xsd:enumeration value="Disconnected"/>
         <xsd:enumeration value="Disconnected-Booted"/>
         <xsd:enumeration value="Disconnected-Departed"/>
      </xsd:restriction>
   </xsd:simpleType>
   
   
   <xsd:simpleType name="EventType">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="SessionCancelled"/>
         <xsd:enumeration value="SessionEnded"/>
         <xsd:enumeration value="Declined"/>
         <xsd:enumeration value="Accepted"/>
         <xsd:enumeration value="Timeout"/>
         <xsd:enumeration value="Unreachable"/>
      </xsd:restriction>
   </xsd:simpleType>
   
   
   <xsd:simpleType name="MessageStatus">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="Sent"/>
         <xsd:enumeration value="Delivered"/>
         <xsd:enumeration value="Displayed"/>
         <xsd:enumeration value="Failed"/>
         <xsd:enumeration value="RevokeRequested"/>
         <xsd:enumeration value="Revoked"/>
         <xsd:enumeration value="RevokeFailed"/>
      </xsd:restriction>
   </xsd:simpleType>
   
   <xsd:simpleType name="AnonymizationFlag">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="UseToken"/>
         <xsd:enumeration value="TokenUsed"/>
         <xsd:enumeration value="TokenLink"/>
      </xsd:restriction>
   </xsd:simpleType>
   
   <!-- ==================================================================== -->
   <!-- Elements that can appear as root elements for Light-weight Resources -->
   <!-- ==================================================================== -->

   <xsd:element name="duration" type="xsd:int"/>

</xsd:schema>
