stentor-models 1.59.144 → 1.60.2
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/Location/Location.d.ts +2 -2
- package/lib/Request/AddressIntentRequest.d.ts +48 -0
- package/lib/Request/AddressIntentRequest.js +3 -0
- package/lib/Request/AddressIntentRequest.js.map +1 -0
- package/lib/Request/IntentRequest.d.ts +2 -2
- package/lib/Request/index.d.ts +1 -0
- package/lib/Request/index.js +1 -0
- package/lib/Request/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*! Copyright (c) 2025, XAPP AI */
|
|
2
|
+
import { IntentRequest, RequestSlotMap, RequestSlot } from "./IntentRequest";
|
|
3
|
+
export interface AddressIntentRequestSlotMap extends RequestSlotMap {
|
|
4
|
+
/**
|
|
5
|
+
* Fully formed address with street number, street name, quadrant, city, state, and zip code.
|
|
6
|
+
*
|
|
7
|
+
* On chat, this can sometimes be derived from the NLU's entity extraction.
|
|
8
|
+
*/
|
|
9
|
+
address?: RequestSlot<string>;
|
|
10
|
+
/**
|
|
11
|
+
* City name.
|
|
12
|
+
*/
|
|
13
|
+
city?: RequestSlot<string>;
|
|
14
|
+
/**
|
|
15
|
+
* State or Province. Can be a two letter abbreviation or full name.
|
|
16
|
+
*/
|
|
17
|
+
state?: RequestSlot<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Zip code.
|
|
20
|
+
*/
|
|
21
|
+
zip?: RequestSlot<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Street name and number.
|
|
24
|
+
*/
|
|
25
|
+
street?: RequestSlot<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Street name.
|
|
28
|
+
*/
|
|
29
|
+
street_name?: RequestSlot<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Street number, only
|
|
32
|
+
*/
|
|
33
|
+
street_number?: RequestSlot<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Quadrant, if applicable.
|
|
36
|
+
*/
|
|
37
|
+
quadrant?: RequestSlot<string>;
|
|
38
|
+
}
|
|
39
|
+
export interface AddressIntentRequest extends IntentRequest {
|
|
40
|
+
/**
|
|
41
|
+
* An intent that can parse an address query
|
|
42
|
+
*/
|
|
43
|
+
intentId: string;
|
|
44
|
+
/**
|
|
45
|
+
* The slots
|
|
46
|
+
*/
|
|
47
|
+
slots: AddressIntentRequestSlotMap;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressIntentRequest.js","sourceRoot":"","sources":["../../src/Request/AddressIntentRequest.ts"],"names":[],"mappings":""}
|
|
@@ -5,7 +5,7 @@ import { BaseRequest, SentimentedRequest } from "./Request";
|
|
|
5
5
|
import { IntentRequestType } from "./Types";
|
|
6
6
|
import { KnowledgeAnswer, KnowledgeBaseResult } from "./KnowledgeBase";
|
|
7
7
|
import { ActiveContext } from "../Response";
|
|
8
|
-
export type RequestSlotValues = string | number | object | DateTimeRange | DateTime | Duration |
|
|
8
|
+
export type RequestSlotValues = string | number | object | DateTimeRange | DateTime | Duration | string[];
|
|
9
9
|
export interface RequestAttachment {
|
|
10
10
|
/**
|
|
11
11
|
* Url to the uploaded file
|
|
@@ -69,7 +69,7 @@ export interface RequestSlotMap {
|
|
|
69
69
|
/**
|
|
70
70
|
* Each key is the slot name and the corresponding value is the slot.
|
|
71
71
|
*/
|
|
72
|
-
[slotName: string]: RequestSlot;
|
|
72
|
+
[slotName: string]: RequestSlot | undefined;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Request for a particular intent.
|
package/lib/Request/index.d.ts
CHANGED
package/lib/Request/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
18
|
+
__exportStar(require("./AddressIntentRequest"), exports);
|
|
18
19
|
__exportStar(require("./AudioPlayerRequest"), exports);
|
|
19
20
|
__exportStar(require("./ChannelActionRequest"), exports);
|
|
20
21
|
__exportStar(require("./InputUnknownRequest"), 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,yDAAuC;AACvC,wDAAsC;AACtC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kEAAgD;AAChD,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,oDAAkC;AAClC,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,yDAAuC;AACvC,uDAAqC;AACrC,yDAAuC;AACvC,wDAAsC;AACtC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kEAAgD;AAChD,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,oDAAkC;AAClC,4CAA0B;AAC1B,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.60.2",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": "^12 || ^14 || ^16 || ^18 || ^20.0.0"
|
|
17
|
+
"node": "^12 || ^14 || ^16 || ^18 || ^20.0.0 || ^22.0.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/api-extractor": "7.
|
|
20
|
+
"@microsoft/api-extractor": "7.50.1",
|
|
21
21
|
"@rollup/plugin-typescript": "12.1.2",
|
|
22
22
|
"@xapp/config": "0.2.3",
|
|
23
23
|
"rollup": "3.29.5",
|
|
24
24
|
"tslib": "2.8.1",
|
|
25
|
-
"typescript": "5.
|
|
25
|
+
"typescript": "5.8.2"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"api": "api-extractor run --local",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "2.0.2"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "f9f7a33c9e000b4f5d18243e8ba9db8d7e7ba493"
|
|
37
37
|
}
|