stentor-models 1.59.143 → 1.60.1

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.
@@ -3,8 +3,8 @@
3
3
  * The exact coordinates
4
4
  */
5
5
  export interface LocationGeocode {
6
- latitude: number;
7
- longitude: number;
6
+ latitude?: number;
7
+ longitude?: number;
8
8
  }
9
9
  /**
10
10
  * Description of a physical location
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AddressIntentRequest.js.map
@@ -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 | (string)[];
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.
@@ -1,4 +1,5 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
+ export * from "./AddressIntentRequest";
2
3
  export * from "./AudioPlayerRequest";
3
4
  export * from "./ChannelActionRequest";
4
5
  export * from "./InputUnknownRequest";
@@ -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);
@@ -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.59.143",
7
+ "version": "1.60.1",
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.48.1",
21
- "@rollup/plugin-typescript": "12.1.1",
20
+ "@microsoft/api-extractor": "7.50.1",
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.5.4"
25
+ "typescript": "5.7.3"
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": "c3f8e59ee22b00ae423b96c2a632c027b7c15383"
36
+ "gitHead": "bc5a0a7d9e22f85d95fe3f8e21879839431a29f5"
37
37
  }