<?xml version="1.0" encoding="UTF-8"?>
<!--
XML data type definitions for the RESTful Network API for Network Message Storage (NMS)  
   Version: 1.0 (1.0)
   Date: 28 May 2019
   
FILE INFORMATION 
   
   OMA Permanent Document 
      File: OMA-SUP-XSD_rest_netapi_nms-V1_0-20190528-C
      Type: Text - Schema Description 
   
   Public Reachable Information 
      Path: http://www.openmobilealliance.org/tech/profiles 
      Name: rest_netapi_nms-v1_0.xsd 
   
NORMATIVE INFORMATION
   
   Information about this file can be found in the latest revision of the specification
 
       OMA-TS-REST_NetAPI_NMS-V1_0
       
   This is available at http://www.openmobilealliance.org/
   
   Send comments to technical-comments@mail.openmobilealliance.org
   
CHANGE HISTORY 
29102013 File created, see OMA-ARC-REST-NMS-2013-0052-INP_XSD_baseline
24112013 Added data types according to OMA-ARC-REST-NMS-2013-0060R02-CR_data_types_XSD
09122013 CR OMA-ARC-REST-NMS-2013-0082-CR_xsd_alignment_with_TS implemented
15012014 CR OMA-ARC-REST-NMS-2014-0002R02-CR_xsd_alignment_with_TS implemented
29012014 CR OMA-ARC-REST-NMS-2014-0013R01-CR_XSD_fix implemented
10022014 CR OMA-ARC-REST-NMS-2014-0030-CR_xsd_alignment_with_TS implemented
18032014 CR OMA-ARC-REST-NMS-2014-0035-CR_xsd_alignment_with_TS implemented
12042014 CR OMA-ARC-REST-NMS-2014-0052R01-CR_xsd_alignment_with_TS implemented
29042014 CR OMA-ARC-REST-NMS-2014-0059-CR_xsd_alignment_with_TS implemented
27052014 CR OMA-ARC-REST-NMS-2014-0106-CR_xsd_alignment_with_TS implemented
24062014 CRs OMA-ARC-REST-NMS-2014-0122-CR_xsd_alignment_with_TS implemented, OMA-ARC-REST-NMS-2014-0128R01-CR_xsd_alignment_with_TS implemented, OMA-ARC-REST-NMS-2014-0130-CR_xsd_alignment_with_TS implemented
02072014 Editorial changes to resolve comments received from XML validation
15072014 Status changed to Candidate by TP, TP Ref # OMA-TP-2014-0155-INP_REST_NetAPI_NMS_V1_0_ERP_and_ETR_for_Candidate_Approval
18032015 Incorporated CR OMA-ARC-REST-NetAPI-2015-0026-CR_NMS_XSD_fix_sort_criteria
27042015 Incorporated CRs OMA-ARC-REST-NetAPI-2015-0028R01-CR_NMS_XSD_bulkUpdate_bulkDelete, OMA-ARC-REST-NetAPI-2015-0042-CR_NMS_XSD_update
13112015 Incorporated CR OMA-ARC-REST-NetAPI-2015-0091-CR_NMS_XSD_on_demand_attr_in_Notification
09022016 Status changed to Candidate by TP, TP Ref # OMA-TP-2016-0031-INP_REST_NetAPI_NMS_V1_0_ERP_for_Candidate_re_approval
06052016 Incorporated CR OMA-ARC-REST-NetAPI-2016-0004-CR_NMS_xsd_alignment_with_TS_content_link
16112017 Incorporated CR OMA-ARC-REST-NetAPI-2017-0008-CR_NMS_XSD_BulkResponseList_new_flag
07062018 Incorporated CR OMA-ARC-REST-NetAPI-2018-0007-CR_NMS_object_Search_by_filename_XSD
13062018 Status changed to Candidate by ARC, Doc Ref # OMA-ARC-2018-0022-INP_REST_NetAPI_NMS_V1_0_ERP_for_Candidate_reApproval
11102018 Incorporated CR OMA-ARC-REST-NetAPI-2018-0010R03-CR_NMS_new_IMDN_resource_XSD
09042019 Incorporated CR OMA-ARC-REST-NetAPI-2019-0007R01-CR_NMS_IMDN_related_updates_XSD . Editorial changes.
28052019 Status changed to Candidate by ARC WG, ARC WG Ref # OMA-ARC-2019-0010-INP_REST_NetAPI_NMS_V1_0_ERP_for_Candidate_approval

LEGAL DISCLAIMER

  Copyright 2019 Open Mobile Alliance.

  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:
  https://www.omaspecworks.org/about/intellectual-property-rights/

-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   targetNamespace="urn:oma:xml:rest:netapi:nms:1"
   xmlns:common="urn:oma:xml:rest:netapi:common:1"
   xmlns="urn:oma:xml:rest:netapi:nms:1" version="1.0">

   <xsd:annotation>
      <xsd:documentation>This schema defines the XML data types for the RESTful Network API for Network Message Storage.</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" />

   <!-- ============================================ -->
   <!--    Object & Folder Data type definitions     -->
   <!-- ============================================ -->

   <xsd:element name="objectList" type="ObjectList" />

   <xsd:complexType name="ObjectList">
      <xsd:sequence>
         <xsd:element name="object" type="Object" maxOccurs="unbounded" minOccurs="0" />
         <xsd:element name="cursor" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="creationCursor" type="xsd:string" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="object" type="Object" />

   <xsd:complexType name="Object">
      <xsd:sequence>
         <xsd:choice maxOccurs="1" minOccurs="0">
            <xsd:element name="parentFolder" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
            <xsd:element name="parentFolderPath" type="xsd:string" maxOccurs="1" minOccurs="1" />
         </xsd:choice>
         <xsd:element name="attributes" type="AttributeList" maxOccurs="1" minOccurs="1" />
         <xsd:element name="flags" type="FlagList" maxOccurs="1" minOccurs="1" />
         <xsd:element name="imdns" type="ImdnList" maxOccurs="1" minOccurs="0" />
         <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="0" />
         <xsd:element name="path" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="payloadURL" type="xsd:anyURI" maxOccurs="1" minOccurs="0" />
         <xsd:element name="payloadPart" type="PayloadPartInfo" maxOccurs="unbounded" minOccurs="0" />
         <xsd:element name="lastModSeq" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
         <xsd:element name="correlationId" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="correlationTag" type="xsd:string" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:complexType name="AttributeList">
      <xsd:sequence>
         <xsd:element name="attribute" type="Attribute" maxOccurs="unbounded" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="Attribute">
      <xsd:sequence>
         <xsd:element name="name" type="xsd:string" maxOccurs="1" minOccurs="1" />
         <xsd:element name="value" type="xsd:string" maxOccurs="unbounded" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

 
  <xsd:element name="flagList" type="FlagList"/>

  <xsd:complexType name="FlagList">
     <xsd:sequence>
        <xsd:element name="flag" type="Flag" maxOccurs="unbounded" minOccurs="0" />
        <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="0" />
     </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="flag" type="Flag"/>

   <xsd:simpleType name="Flag">
      <xsd:restriction base="xsd:string"></xsd:restriction>
   </xsd:simpleType>

  <xsd:complexType name="ImdnInfo">
     <xsd:sequence>
        <xsd:element name="type" type="xsd:string" maxOccurs="1" minOccurs="1" />
        <xsd:element name="date" type="xsd:dateTimeStamp" maxOccurs="1" minOccurs="1" />
     </xsd:sequence>
   </xsd:complexType>


  <xsd:complexType name="Imdn">
     <xsd:sequence>
        <xsd:element name="originalTo" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
        <xsd:element name="imdnInfo" type="ImdnInfo" maxOccurs="unbounded" minOccurs="1" />
     </xsd:sequence>
   </xsd:complexType>


  <xsd:element name="imdnList" type="ImdnList"/>

  <xsd:complexType name="ImdnList">
     <xsd:sequence>
        <xsd:element name="imdn" type="Imdn" maxOccurs="unbounded" minOccurs="0" />
         <xsd:element name="lastModSeq" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
        <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="0" />
     </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="PayloadPartInfo">
      <xsd:sequence>
         <xsd:element name="contentType" type="xsd:string" maxOccurs="1" minOccurs="1" />
         <xsd:element name="contentId" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="contentLocation" type="xsd:anyURI" maxOccurs="1" minOccurs="0" />
         <xsd:element name="contentDisposition" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="size" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
         <xsd:element name="href" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
         <xsd:element name="hrefExpiry" type="xsd:dateTimeStamp" maxOccurs="1" minOccurs="0" />
         <xsd:element name="fileIcon" type="xsd:anyURI" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="folderList" type="FolderList" />

      <xsd:complexType name="FolderList">
         <xsd:sequence>
            <xsd:element name="folder" type="Folder" maxOccurs="unbounded" minOccurs="0" />
            <xsd:element name="cursor" type="xsd:string" maxOccurs="1" minOccurs="0" />
         </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="folder" type="Folder" />

   <xsd:complexType name="Folder">
      <xsd:sequence>
         <xsd:choice maxOccurs="1" minOccurs="0">
            <xsd:element name="parentFolder" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
            <xsd:element name="parentFolderPath" type="xsd:string" maxOccurs="1" minOccurs="1" />
         </xsd:choice>
         <xsd:element name="attributes" type="AttributeList" maxOccurs="1" minOccurs="1" />
         <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="0" />
         <xsd:element name="path" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="name" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="lastModSeq" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
         <xsd:element name="cursor" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="subFolders" type="FolderReferenceList" maxOccurs="1" minOccurs="0" />
         <xsd:element name="objects" type="ObjectReferenceList" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="folderReferenceList" type="FolderReferenceList" />

   <xsd:complexType name="FolderReferenceList">
      <xsd:sequence>
         <xsd:element name="folderReference" type="Reference" maxOccurs="unbounded" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="objectReferenceList" type="ObjectReferenceList" />

   <xsd:complexType name="ObjectReferenceList">
      <xsd:sequence>
         <xsd:element name="objectReference" type="Reference" maxOccurs="unbounded" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="reference" type="Reference" />

   <xsd:complexType name="Reference">
      <xsd:sequence>
         <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
         <xsd:element name="path" type="xsd:string" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:complexType name="ReferenceList">
      <xsd:sequence>
         <xsd:element name="folders" type="FolderReferenceList" maxOccurs="1" minOccurs="1" />
         <xsd:element name="objects" type="ObjectReferenceList" maxOccurs="1" minOccurs="1" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="bulkUpdate" type="BulkUpdate" />

   <xsd:complexType name="BulkUpdate">
      <xsd:sequence>
         <xsd:choice maxOccurs="1" minOccurs="0">
            <xsd:element name="objects" type="ObjectReferenceList" maxOccurs="1" minOccurs="1" />
            <xsd:element name="selectionCriteria" type="SelectionCriteria" maxOccurs="1" minOccurs="1" />
         </xsd:choice>
         <xsd:element name="operation" type="OperationEnum" maxOccurs="1" minOccurs="1" />
         <xsd:element name="flags" type="FlagList" maxOccurs="1" minOccurs="0" />
         <xsd:element name="imdns" type="ImdnInfo" maxOccurs="unbounded" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="bulkDelete" type="BulkDelete" />
   
      <xsd:complexType name="BulkDelete">
      <xsd:sequence>
         <xsd:choice maxOccurs="1" minOccurs="0">
            <xsd:element name="objects" type="ObjectReferenceList" maxOccurs="1" minOccurs="1" />
            <xsd:element name="selectionCriteria" type="SelectionCriteria" maxOccurs="1" minOccurs="1" />
         </xsd:choice>
      </xsd:sequence>
   </xsd:complexType>
   

   <xsd:element name="targetSourceRef" type="TargetSourceRef" />

   <xsd:complexType name="TargetSourceRef">
      <xsd:sequence>
         <xsd:element name="targetRef" type="Reference" maxOccurs="1" minOccurs="1" />
         <xsd:element name="sourceRefs" type="ReferenceList" maxOccurs="1" minOccurs="1" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="pathList" type="PathList"/>
    
   <xsd:complexType name="PathList">
      <xsd:sequence>
         <xsd:element name="path" type="xsd:string" maxOccurs="unbounded" minOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="bulkResponseList" type="BulkResponseList" />

   <xsd:complexType name="BulkResponseList">
      <xsd:sequence>
       <xsd:element name="allSuccess" type="xsd:boolean" maxOccurs="1" minOccurs="0" />
       <xsd:element name="response" type="Response" maxOccurs="unbounded" minOccurs="1" />
       <xsd:element name="cursor" type="xsd:string" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="Response">
     <xsd:sequence>
      <xsd:element name="code" type="xsd:unsignedShort" maxOccurs="1" minOccurs="1" />
      <xsd:element name="reason" type="xsd:string" maxOccurs="1" minOccurs="1" />
      <xsd:choice>
        <xsd:element name="success" type="Reference" />
         <xsd:element name="failure" type="common:RequestError" />
      </xsd:choice>
     </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="empty" type="Empty"/>

   <!-- An empty (dummy) complex type -->
   <xsd:complexType name="Empty"/>


   <!-- ==================================== -->
   <!--      Search Data type definitions    -->
   <!-- ==================================== -->


   <xsd:element name="selectionCriteria" type="SelectionCriteria" />

   <xsd:complexType name="SelectionCriteria">
      <xsd:sequence>
          <xsd:element name="fromCursor" type="xsd:string" maxOccurs="1" minOccurs="0" />
          <xsd:element name="maxEntries" type="xsd:unsignedInt" maxOccurs="1" minOccurs="1" />
          <xsd:element name="searchCriteria" type="SearchCriteria" maxOccurs="1" minOccurs="0" />
          <xsd:element name="searchScope" type="Reference" maxOccurs="1" minOccurs="0" />
          <xsd:element name="nonRecursiveScope" type="xsd:boolean" maxOccurs="1" minOccurs="0" />
          <xsd:element name="sortCriteria" type="SortCriteria" maxOccurs="1" minOccurs="0" />
          <xsd:element name="inlineImdn" type="xsd:boolean" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="SearchCriteria">
      <xsd:sequence>
         <xsd:element name="criterion" type="SearchCriterion" maxOccurs="unbounded" minOccurs="1" />
         <xsd:element name="operator" type="LogicalOperatorEnum" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="SearchCriterion">
      <xsd:sequence>
         <xsd:element name="type" type="SearchTypeEnum" maxOccurs="1" minOccurs="1" />
         <xsd:element name="name" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="value" type="xsd:string" maxOccurs="1" minOccurs="1" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="SortCriteria">
      <xsd:sequence>
         <xsd:element name="criterion" type="SortCriterion" maxOccurs="unbounded" minOccurs="1" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="SortCriterion">
      <xsd:sequence>
         <xsd:element name="type" type="SortTypeEnum" maxOccurs="1" minOccurs="1" />
         <xsd:element name="name" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="order" type="SortOrderEnum" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <!-- =================================================== -->
   <!--  Subscription & Notification Data type definitions  -->
   <!-- =================================================== -->


   <xsd:element name="nmsSubscriptionList" type="NmsSubscriptionList" />

   <xsd:complexType name="NmsSubscriptionList">
      <xsd:sequence>
       <xsd:element name="subscription" type="NmsSubscription" maxOccurs="unbounded" minOccurs="0" />
       <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="1"/>
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="nmsSubscription" type="NmsSubscription" />

   <xsd:complexType name="NmsSubscription">
      <xsd:sequence>
          <xsd:element name="callbackReference" type="common:CallbackReference" maxOccurs="1" minOccurs="1" />
          <xsd:element name="duration" type="xsd:unsignedInt" maxOccurs="1" minOccurs="0" />
          <xsd:element name="filter" type="SearchCriteria" maxOccurs="1" minOccurs="0" />
          <xsd:element name="clientCorrelator" type="xsd:string" maxOccurs="1" minOccurs="0" />
          <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="0" />
          <xsd:element name="index" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
          <xsd:element name="restartToken" type="xsd:string" maxOccurs="1" minOccurs="0" />
          <xsd:element name="maxEvents" type="xsd:unsignedInt" maxOccurs="1" minOccurs="0" />
          <xsd:element name="objectAttributeNames" type="xsd:string" maxOccurs="unbounded" minOccurs="0"/>
          <xsd:element name="inlineImdn" type="xsd:boolean" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="nmsEventList" type="NmsEventList" />
    
   <xsd:complexType name="NmsEventList">
      <xsd:sequence>
          <xsd:element name="nmsEvent" type="NmsEvent" maxOccurs="unbounded" minOccurs="0" />
          <xsd:element name="callbackData" type="xsd:string" maxOccurs="1" minOccurs="0" />
          <xsd:element name="index" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
          <xsd:element name="restartToken" type="xsd:string" maxOccurs="1" minOccurs="0" />
         <xsd:element name="link" type="common:Link" maxOccurs="unbounded" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="NmsEvent">
     <xsd:sequence>
      <xsd:choice maxOccurs="1" minOccurs="1">
         <xsd:element name="deletedObject" type="DeletedObject" maxOccurs="1" minOccurs="1" />
         <xsd:element name="deletedFolder" type="DeletedFolder" maxOccurs="1" minOccurs="1" />
         <xsd:element name="expiredObject" type="DeletedObject" maxOccurs="1" minOccurs="1" />
         <xsd:element name="expiredFolder" type="DeletedFolder" maxOccurs="1" minOccurs="1" />
         <xsd:element name="changedObject" type="ChangedObject" maxOccurs="1" minOccurs="1" />
         <xsd:element name="changedFolder" type="ChangedFolder" maxOccurs="1" minOccurs="1" />
      <xsd:element name="resetBox" type="ResetBox" maxOccurs="1" minOccurs="1" />
      </xsd:choice>

     </xsd:sequence>
   </xsd:complexType>


   <xsd:element name="nmsSubscriptionUpdate" type="NmsSubscriptionUpdate" />

   <xsd:complexType name="NmsSubscriptionUpdate">
      <xsd:sequence>
       <xsd:element name="duration" type="xsd:unsignedInt" maxOccurs="1" minOccurs="0" />
       <xsd:element name="restartToken" type="xsd:string" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="DeletedObject">
      <xsd:sequence>
       <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
       <xsd:element name="attributes" type="AttributeList" maxOccurs="1" minOccurs="0" />
       <xsd:element name="lastModSeq" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
       <xsd:element name="correlationId" type="xsd:string" maxOccurs="1" minOccurs="0" />
       <xsd:element name="correlationTag" type="xsd:string" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="DeletedFolder">
      <xsd:sequence>
       <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
       <xsd:element name="lastModSeq" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="ChangedObject">
      <xsd:sequence>
       <xsd:element name="parentFolder" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
       <xsd:element name="flags" type="FlagList" maxOccurs="1" minOccurs="1" />
       <xsd:element name="imdns" type="ImdnList" maxOccurs="1" minOccurs="0" />
       <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
       <xsd:element name="attributes" type="AttributeList" maxOccurs="1" minOccurs="0" />
       <xsd:element name="lastModSeq" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
       <xsd:element name="correlationId" type="xsd:string" maxOccurs="1" minOccurs="0" />
       <xsd:element name="correlationTag" type="xsd:string" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="ChangedFolder">
      <xsd:sequence>
       <xsd:element name="parentFolder" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
         <xsd:element name="resourceURL" type="xsd:anyURI" maxOccurs="1" minOccurs="1" />
       <xsd:element name="name" type="xsd:string" maxOccurs="1" minOccurs="1" />
       <xsd:element name="lastModSeq" type="xsd:unsignedLong" maxOccurs="1" minOccurs="0" />
      </xsd:sequence>
   </xsd:complexType>

   <!-- in this version, just an empty complex type -->
   <xsd:complexType name="ResetBox"/>


   <!-- ==================================== -->
   <!--            Enumerations              -->
   <!-- ==================================== -->


   <xsd:simpleType name="SearchTypeEnum">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="Date" />
         <xsd:enumeration value="Attribute" />
         <xsd:enumeration value="AllTextAttributes" />
         <xsd:enumeration value="Flag" />
         <xsd:enumeration value="WholeWord" />
         <xsd:enumeration value="VanishedObjects" />
         <xsd:enumeration value="CreatedObjects" />
         <xsd:enumeration value="PresetSearch" />
         <xsd:enumeration value="FileName" />
      </xsd:restriction>
   </xsd:simpleType>

   <xsd:simpleType name="LogicalOperatorEnum">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="And" />
         <xsd:enumeration value="Or" />
         <xsd:enumeration value="Not" />
      </xsd:restriction>
   </xsd:simpleType>

   <xsd:simpleType name="SortOrderEnum">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="Ascending" />
         <xsd:enumeration value="Descending" />
      </xsd:restriction>
   </xsd:simpleType>

   <xsd:simpleType name="SortTypeEnum">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="Date" />
         <xsd:enumeration value="Attribute" />
      </xsd:restriction>
   </xsd:simpleType>

   <xsd:simpleType name="OperationEnum">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="AddFlag" />
         <xsd:enumeration value="RemoveFlag" />
      </xsd:restriction>
   </xsd:simpleType>

  
   <!-- ==================================================================== -->
   <!-- Elements that can appear as root elements for Light-weight Resources -->
   <!-- ==================================================================== -->

   
   <xsd:element name="name" type="xsd:string"/>
   

</xsd:schema>