Commit a0f1d73e authored by Peter Waher's avatar Peter Waher

Updates to provisioning namespaces related to owner & tokens

parent 2ec995b6
......@@ -28,7 +28,7 @@ Schemas
* [Control.xsd](Schemas/Control.xsd)
* [ProvisioningTokens.xsd](Schemas/ProvisioningTokens.xsd)
* [ProvisioningDevice.xsd](Schemas/ProvisioningDevice.xsd)
* [ProvisioningDevice.xsd](Schemas/ProvisioningOwner.xsd)
* [ProvisioningOwner.xsd](Schemas/ProvisioningOwner.xsd)
Implementations
......
......@@ -353,4 +353,44 @@
</xs:complexType>
</xs:element>
<xs:element name='clearCache'>
<xs:annotation>
<xs:documentation>The owner sends this in a request to the provisioning server, to ask it to clear the caches of one or all of its owned devices.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name='jid' type='xs:string' use='optional'>
<xs:annotation>
<xs:documentation>The bare JID of the device whose cache is to be cleared.</xs:documentation>
<xs:documentation>If this attrribute is omitted, all owned devices will get their caches cleared.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name='getDevices'>
<xs:annotation>
<xs:documentation>This element is sent in a request to the provisioning server, to retrieve a list of all devices the sender owns.</xs:documentation>
<xs:documentation>The response will contain a found element from the XEP-0347 namespace urn:xmpp:iot:discovery.</xs:documentation>
<xs:documentation>The more attribute in the response lets the caller know if there are more devices to fetch.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name='offset' type='xs:nonNegativeInteger' use='optional' default='0'>
<xs:annotation>
<xs:documentation>Starting offset into the list of things to return.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name='maxCount' type='xs:positiveInteger' use='optional'>
<xs:annotation>
<xs:documentation>Maximum number of devices to return in the response.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<!--
TODO:
getCertificate
-->
</xs:schema>
\ No newline at end of file
......@@ -92,4 +92,23 @@
</xs:annotation>
</xs:element>
<xs:element name='getCertificate'>
<xs:annotation>
<xs:documentation>Anyone presented with a token, can send a request with this element to the provisioning server in order to get the public part of the corresponding X.509 certificate.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name='token' type='xs:string' use='required'>
<xs:annotation>
<xs:documentation>Token for which the certificate is related.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name='certificate' type='xs:base64Binary'>
<xs:annotation>
<xs:documentation>Contains an X.509 certificate.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment