stentor-models 1.56.92 → 1.56.100

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.
@@ -11,7 +11,7 @@ export interface RequestResponse {
11
11
  request: Request;
12
12
  response: Response;
13
13
  }
14
- export declare type ChannelHooks = Pick<Hooks, "preExecution" | "postRequestTranslation">;
14
+ export declare type ChannelHooks = Pick<Hooks, "preExecution" | "postRequestTranslation" | "preResponseTranslation">;
15
15
  export interface Channel {
16
16
  /**
17
17
  * The name of the channel.
@@ -2,8 +2,10 @@
2
2
  import { CrmResponse, ExternalLead } from "../Crm";
3
3
  export interface CrmService {
4
4
  /**
5
+ * Send the lead to the CRM
5
6
  *
6
- * @param externalLead
7
+ * @param externalLead Lead information
8
+ * @param extras Optional additional metadata to pass to the CRM
7
9
  */
8
- send(externalLead: ExternalLead): Promise<CrmResponse>;
10
+ send(externalLead: ExternalLead, extras?: Record<string, unknown>): Promise<CrmResponse>;
9
11
  }
@@ -1,6 +1,7 @@
1
1
  /*! Copyright (c) 2020, XAPPmedia */
2
2
  import { RelativeDateTime } from "./DateTime";
3
3
  import { RequestSlot, RequestSlotValues } from "./Request";
4
+ import { ActiveContext } from "./Response";
4
5
  /**
5
6
  * Extends a RequestSlot by adding the RelativeDateTime as a possible value.
6
7
  */
@@ -28,6 +29,10 @@ export interface UtteranceTest {
28
29
  * The utterance to be tested
29
30
  */
30
31
  utterance: string;
32
+ /**
33
+ * Optional active context required for the utterance to trigger the expected inent.
34
+ */
35
+ activeContext?: ActiveContext[];
31
36
  /**
32
37
  * The expected result once the utterance is passed in the NLU
33
38
  */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.56.92",
7
+ "version": "1.56.100",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "1.40.297"
35
35
  },
36
- "gitHead": "f2f6d1141c523489aa5b837dd1148b4eb42d6bd6"
36
+ "gitHead": "fe5662aa52cb350e6220f3cf88a9dc156ab31bb2"
37
37
  }