stentor-models 1.54.6 → 1.54.12
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/lib/Knowledgebase/KnowledgeBaseConfig.d.ts +25 -0
- package/lib/Knowledgebase/KnowledgeBaseConfig.js +4 -0
- package/lib/Knowledgebase/KnowledgeBaseConfig.js.map +1 -0
- package/lib/Knowledgebase/index.d.ts +1 -0
- package/lib/Knowledgebase/index.js +1 -0
- package/lib/Knowledgebase/index.js.map +1 -1
- package/lib/NLU/NLUService.d.ts +10 -0
- package/lib/Request/index.d.ts +1 -0
- package/lib/Request/index.js +1 -0
- package/lib/Request/index.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*! Copyright (c) 2022, XAPPmedia */
|
|
2
|
+
import { KnowledgeBaseService } from "../Services";
|
|
3
|
+
export interface KnowledgeBaseConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Either the intentId or regex to determine which requests to call the KnowledgeBaseService. If not provided it defaults to "^.*$", which is a regex
|
|
6
|
+
* that will match on all requests.
|
|
7
|
+
*/
|
|
8
|
+
matchIntentId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* If provided, it will override the intentId on the original request if the knowledgebase results are preferred.
|
|
11
|
+
*
|
|
12
|
+
* It will also update the request type to be that of an Intent Request.
|
|
13
|
+
*/
|
|
14
|
+
setIntentId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* If set to true then when knowledge base results already exist, they will be merged instead of the default behavior of
|
|
17
|
+
* being overwritten.
|
|
18
|
+
*
|
|
19
|
+
* @beta - This field and behavior of the field is subject to change.
|
|
20
|
+
*/
|
|
21
|
+
mergeResults?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface KnowledgeBaseDependency extends KnowledgeBaseConfig {
|
|
24
|
+
service: KnowledgeBaseService;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KnowledgeBaseConfig.js","sourceRoot":"","sources":["../../src/Knowledgebase/KnowledgeBaseConfig.ts"],"names":[],"mappings":";AAAA,oCAAoC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*! Copyright (c) 2022, XAPPmedia */
|
|
18
18
|
__exportStar(require("./KnowledgebaseData"), exports);
|
|
19
|
+
__exportStar(require("./KnowledgeBaseConfig"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Knowledgebase/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Knowledgebase/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,sDAAoC;AACpC,wDAAsC"}
|
package/lib/NLU/NLUService.d.ts
CHANGED
|
@@ -3,8 +3,18 @@ import { InputUnknownRequestType, IntentRequestType, KnowledgeAnswer, RequestSlo
|
|
|
3
3
|
import { ActiveContext } from "../Response";
|
|
4
4
|
export interface NLUQueryResponse {
|
|
5
5
|
type: IntentRequestType | InputUnknownRequestType;
|
|
6
|
+
/**
|
|
7
|
+
* ID for the matched intent.
|
|
8
|
+
*/
|
|
6
9
|
intentId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional slots for the matched intent.
|
|
12
|
+
*/
|
|
7
13
|
slots?: RequestSlotMap;
|
|
14
|
+
/**
|
|
15
|
+
* Confidence level of the intent match. On a scale from 0-1 where 1 is the highest confidence of a match.
|
|
16
|
+
*/
|
|
17
|
+
matchConfidence?: number;
|
|
8
18
|
knowledgeAnswer?: KnowledgeAnswer;
|
|
9
19
|
}
|
|
10
20
|
export interface NLURequestProps {
|
package/lib/Request/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./InputUnknownRequest";
|
|
|
4
4
|
export * from "./IntentRequest";
|
|
5
5
|
export * from "./KnowledgeBase";
|
|
6
6
|
export * from "./LaunchRequest";
|
|
7
|
+
export * from "./NotificationPermissionRequest";
|
|
7
8
|
export * from "./OptionSelectRequest";
|
|
8
9
|
export * from "./PermissionRequest";
|
|
9
10
|
export * from "./PlaybackControlRequest";
|
package/lib/Request/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./InputUnknownRequest"), exports);
|
|
|
20
20
|
__exportStar(require("./IntentRequest"), exports);
|
|
21
21
|
__exportStar(require("./KnowledgeBase"), exports);
|
|
22
22
|
__exportStar(require("./LaunchRequest"), exports);
|
|
23
|
+
__exportStar(require("./NotificationPermissionRequest"), exports);
|
|
23
24
|
__exportStar(require("./OptionSelectRequest"), exports);
|
|
24
25
|
__exportStar(require("./PermissionRequest"), exports);
|
|
25
26
|
__exportStar(require("./PlaybackControlRequest"), exports);
|
package/lib/Request/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,4CAA0B;AAC1B,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kEAAgD;AAChD,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,4CAA0B;AAC1B,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./Handler"), exports);
|
|
|
33
33
|
__exportStar(require("./History"), exports);
|
|
34
34
|
__exportStar(require("./Intent"), exports);
|
|
35
35
|
__exportStar(require("./JSONDependent"), exports);
|
|
36
|
+
__exportStar(require("./Knowledgebase"), exports);
|
|
36
37
|
__exportStar(require("./Locale"), exports);
|
|
37
38
|
__exportStar(require("./Location"), exports);
|
|
38
39
|
__exportStar(require("./Logic"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,2CAAyB;AACzB,wCAAsB;AACtB,4CAA0B;AAC1B,gDAA8B;AAC9B,4CAA0B;AAC1B,+CAA6B;AAC7B,wCAAsB;AACtB,6CAA2B;AAC3B,sDAAoC;AACpC,2CAAyB;AACzB,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,kDAAgC;AAChC,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB;AACtB,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B;AAC3B,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,+CAA6B;AAC7B,6CAA2B;AAC3B,gDAA8B;AAC9B,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,2CAAyB;AACzB,wCAAsB;AACtB,4CAA0B;AAC1B,gDAA8B;AAC9B,4CAA0B;AAC1B,+CAA6B;AAC7B,wCAAsB;AACtB,6CAA2B;AAC3B,sDAAoC;AACpC,2CAAyB;AACzB,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,kDAAgC;AAChC,kDAAgC;AAChC,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB;AACtB,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B;AAC3B,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,+CAA6B;AAC7B,6CAA2B;AAC3B,gDAA8B;AAC9B,kDAAgC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.54.
|
|
7
|
+
"version": "1.54.12",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@xapp/config": "0.2.3",
|
|
23
23
|
"rollup": "2.70.1",
|
|
24
24
|
"tslib": "2.3.1",
|
|
25
|
-
"typescript": "4.6.
|
|
25
|
+
"typescript": "4.6.3"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"api": "api-extractor run --local",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "1.40.83"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "1a3c457eb1ffaafac05991ede1a4b7e0f3146ab0"
|
|
37
37
|
}
|