diff --git a/index.html b/index.html index 0365920..0a77091 100644 --- a/index.html +++ b/index.html @@ -552,15 +552,22 @@

The WOT namespace

     [SecureContext, Exposed=(Window,Worker)]
     namespace WOT {
-      // methods defined in UA conformance classes
+      // WoT Consumer conformance class
+      Promise<ConsumedThing> consume(ThingDescription td);
+	  
+      // WoT Producer conformance class
+      Promise<ExposedThing> produce(ExposedThingInit init);
+	  
+      // WoT Discovery conformance class
+      Promise<ThingDiscoveryProcess> discover(optional ThingFilter filter = {});
+      Promise<ThingDiscoveryProcess> exploreDirectory(USVString url,
+        optional ThingFilter filter = {});
+      Promise<ThingDescription> requestThingDescription(USVString url);
     };
+	
+    typedef object ExposedThingInit;
   

The consume() method

-
-      partial namespace WOT {
-        Promise<ConsumedThing> consume(ThingDescription td);
-      };
-    
Belongs to the WoT Consumer conformance class. Expects an |td:ThingDescription| argument and returns a {{Promise}} that resolves with a {{ConsumedThing}} object that represents a client interface to operate with the Thing. The method MUST run the following steps:
    @@ -595,13 +602,6 @@

    The WOT namespace

The produce() method

-
-      typedef object ExposedThingInit;
-
-      partial namespace WOT {
-        Promise<ExposedThing> produce(ExposedThingInit init);
-      };
-    
Belongs to the WoT Producer conformance class. Expects a |init:ExposedThingInit| argument and returns a {{Promise}} that resolves with an {{ExposedThing}} object that extends {{ConsumedThing}} with a server interface, @@ -718,11 +718,6 @@

Validating an ExposedThingInit

The discover() method

-
-      partial namespace WOT {
-        Promise<ThingDiscoveryProcess> discover(optional ThingFilter filter = {});
-      };
-    
Belongs to the WoT Discovery conformance class. Starts the discovery process that will provide {{ThingDescription}} objects for Thing Descriptions that match an optional |filter:ThingFilter| argument of type {{ThingFilter}}. The method MUST run the following steps:
    @@ -767,12 +762,6 @@

    Validating an ExposedThingInit

The exploreDirectory() method

-
-      partial namespace WOT {
-        Promise<ThingDiscoveryProcess> exploreDirectory(USVString url,
-            optional ThingFilter filter = {});
-      };
-    
Belongs to the WoT Discovery conformance class. Starts the discovery process that given a TD Directory URL, will provide {{ThingDescription}} objects for Thing Descriptions that match an optional |filter:ThingFilter| argument of type {{ThingFilter}}. The method MUST run the following steps:
    @@ -832,11 +821,6 @@

    Validating an ExposedThingInit

The requestThingDescription() method

-
-      partial namespace WOT {
-        Promise<ThingDescription> requestThingDescription(USVString url);
-      };
-    
Belongs to the WoT Discovery conformance class. Requests a Thing Description from the given URL. @@ -885,10 +869,6 @@

Validating an ExposedThingInit

The InteractionInput type

-
-      typedef any DataSchemaValue;
-      typedef (ReadableStream or DataSchemaValue) InteractionInput;
-    

Belongs to the WoT Consumer conformance class and represents the WoT Interaction data provided by application scripts to the UA.