@nlxai/core 1.2.4-alpha.1 → 1.2.4-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -757,11 +757,13 @@ The URL comming from the Application response `metadata.feedbackURL` field.
757
757
 
758
758
  Either a numerical rating or a textual comment.
759
759
 
760
- \{
761
- `rating`: `number`;
762
- \} | \{
763
- `comment`: `string`;
764
- \}
760
+ ###### rating?
761
+
762
+ `number`
763
+
764
+ ###### comment?
765
+
766
+ `string`
765
767
 
766
768
  ###### Returns
767
769
 
@@ -934,11 +936,11 @@ Add a listener to one of the handler's custom events
934
936
 
935
937
  ###### event
936
938
 
937
- `"voicePlusCommand"`
939
+ [`ConversationHandlerEvent`](#conversationhandlerevent)
938
940
 
939
941
  ###### handler
940
942
 
941
- (`payload`) => `void`
943
+ [`VoicePlusCommandListener`](#voicepluscommandlistener) | [`InterimMessageListener`](#interimmessagelistener)
942
944
 
943
945
  ###### Returns
944
946
 
@@ -956,11 +958,11 @@ Remove a listener to one of the handler's custom events
956
958
 
957
959
  ###### event
958
960
 
959
- `"voicePlusCommand"`
961
+ [`ConversationHandlerEvent`](#conversationhandlerevent)
960
962
 
961
963
  ###### handler
962
964
 
963
- (`payload`) => `void`
965
+ [`VoicePlusCommandListener`](#voicepluscommandlistener) | [`InterimMessageListener`](#interimmessagelistener)
964
966
 
965
967
  ###### Returns
966
968
 
@@ -1542,6 +1544,14 @@ optional negative: string;
1542
1544
 
1543
1545
  Label for negative feedback
1544
1546
 
1547
+ ###### comment?
1548
+
1549
+ ```ts
1550
+ optional comment: string;
1551
+ ```
1552
+
1553
+ Label for comment
1554
+
1545
1555
  ---
1546
1556
 
1547
1557
  ### StructuredRequest
@@ -1795,23 +1805,21 @@ Dictionary of handler methods per event
1795
1805
 
1796
1806
  #### Properties
1797
1807
 
1798
- ##### voicePlusCommand()
1808
+ ##### voicePlusCommand
1799
1809
 
1800
1810
  ```ts
1801
- voicePlusCommand: (payload) => void;
1811
+ voicePlusCommand: VoicePlusCommandListener;
1802
1812
  ```
1803
1813
 
1804
1814
  Voice+ command event handler
1805
1815
 
1806
- ###### Parameters
1807
-
1808
- ###### payload
1816
+ ##### interimMessage
1809
1817
 
1810
- `any`
1811
-
1812
- ###### Returns
1818
+ ```ts
1819
+ interimMessage: InterimMessageListener;
1820
+ ```
1813
1821
 
1814
- `void`
1822
+ Interim message event handler
1815
1823
 
1816
1824
  ## Enumerations
1817
1825
 
@@ -1850,7 +1858,7 @@ Generic failure (cannot be attributed to the application)
1850
1858
  ### ConversationHandlerEvent
1851
1859
 
1852
1860
  ```ts
1853
- type ConversationHandlerEvent = "voicePlusCommand";
1861
+ type ConversationHandlerEvent = "voicePlusCommand" | "interimMessage";
1854
1862
  ```
1855
1863
 
1856
1864
  Handler events
@@ -2085,6 +2093,46 @@ Voice+ context, type to be defined
2085
2093
 
2086
2094
  ---
2087
2095
 
2096
+ ### VoicePlusCommandListener()
2097
+
2098
+ ```ts
2099
+ type VoicePlusCommandListener = (payload) => void;
2100
+ ```
2101
+
2102
+ Voice+ command listener
2103
+
2104
+ #### Parameters
2105
+
2106
+ ##### payload
2107
+
2108
+ `any`
2109
+
2110
+ #### Returns
2111
+
2112
+ `void`
2113
+
2114
+ ---
2115
+
2116
+ ### InterimMessageListener()
2117
+
2118
+ ```ts
2119
+ type InterimMessageListener = (message?) => void;
2120
+ ```
2121
+
2122
+ Interim message listener
2123
+
2124
+ #### Parameters
2125
+
2126
+ ##### message?
2127
+
2128
+ `string`
2129
+
2130
+ #### Returns
2131
+
2132
+ `void`
2133
+
2134
+ ---
2135
+
2088
2136
  ### Subscriber()
2089
2137
 
2090
2138
  ```ts