-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathxep-0000-IoT-Interoperability.xsd
39 lines (34 loc) · 1.25 KB
/
xep-0000-IoT-Interoperability.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:iot:interoperability'
xmlns='urn:xmpp:iot:interoperability'
elementFormDefault='qualified'>
<xs:element name='getInterfaces'>
<xs:complexType>
<xs:attributeGroup ref='nodeReference'/>
<xs:attributeGroup ref='tokens'/>
</xs:complexType>
</xs:element>
<xs:element name='getInterfacesResponse'>
<xs:complexType>
<xs:sequence minOccurs='0' maxOccurs='unbounded'>
<xs:element name='interface'>
<xs:complexType>
<xs:attribute name='name' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:attributeGroup name='nodeReference'>
<xs:attribute name='nodeId' type='xs:string' use='required'/>
<xs:attribute name='sourceId' type='xs:string' use='optional'/>
<xs:attribute name='cacheType' type='xs:string' use='optional'/>
</xs:attributeGroup>
<xs:attributeGroup name='tokens'>
<xs:attribute name='serviceToken' type='xs:string' use='optional'/>
<xs:attribute name='deviceToken' type='xs:string' use='optional'/>
<xs:attribute name='userToken' type='xs:string' use='optional'/>
</xs:attributeGroup>
</xs:schema>