@xapp/stentor-lex-connect 1.77.2 → 1.78.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.
@@ -0,0 +1,95 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { ChannelData } from "stentor-models";
3
+ import { LexConnectPlatform } from "./Types";
4
+ /**
5
+ * A Lex Bot that is capable of handling
6
+ * requests from AWS Connect
7
+ *
8
+ * It has information from the BotMetaData
9
+ * {@link https://docs.aws.amazon.com/lex/latest/dg/API_BotMetadata.html}
10
+ */
11
+ export interface LexConnectChannelData extends ChannelData {
12
+ type: LexConnectPlatform;
13
+ /**
14
+ * The AWS ARN URI to the lambda that will be used
15
+ * as fulfillment activity on the intents.
16
+ */
17
+ uri?: string;
18
+ /**
19
+ * A description of the bot
20
+ */
21
+ description?: string;
22
+ /**
23
+ * The Amazon Polly voice ID that you want Polly to use.
24
+ */
25
+ voiceId?: string;
26
+ /**
27
+ * The maximum time in seconds that Amazon Lex retains data
28
+ * gathered in the conversation.
29
+ *
30
+ * Defaults to 300 seconds (5 minutes), minimum value of 60 and
31
+ * maxium value of 86400
32
+ */
33
+ idleSessionTTLInSeconds?: number;
34
+ /**
35
+ * If true, user utterances are sent to Amazon Comprehend for
36
+ * sentiment analysis.
37
+ */
38
+ detectSentiment?: boolean;
39
+ /**
40
+ * The ARN for the Kendra index that will be used when the translated type is the
41
+ * AMAZON.KendraSearchIntent.
42
+ *
43
+ * The format is: "arn:aws:kendra:{AWS_REGION}:{AWS_ACCOUNT_NUMBER}:index/{INDEX_ID}"
44
+ */
45
+ kendraIndexARN?: string;
46
+ /**
47
+ * The ARN for the role that allows Lex to call the Kendra index.
48
+ *
49
+ * The format is: "arn:aws:iam::{AWS_ACCOUNT_NUMBER}:role/aws-service-role/lex.amazonaws.com/{ROLE_NAME}"
50
+ */
51
+ kendraRole?: string;
52
+ /**
53
+ * The data source on the Kendra index that is created and consists of crawled web content.
54
+ */
55
+ kendraDataSourceARN?: string;
56
+ /**
57
+ * The region that the bot is contained in.
58
+ *
59
+ * @type {string}
60
+ * @memberof LexConnectChannelData
61
+ */
62
+ botRegion?: string;
63
+ /**
64
+ * The name of the lex bot.
65
+ *
66
+ * @type {string}
67
+ * @memberof LexConnectChannelData
68
+ */
69
+ botName?: string;
70
+ /**
71
+ * The role that is used to manage Lex on alternate accounts.
72
+ *
73
+ * @type {string}
74
+ * @memberof LexConnectChannelData
75
+ */
76
+ managementRole?: string;
77
+ /**
78
+ * The external ID if applicable that allows external accounts to assume the role.
79
+ *
80
+ * @type {string}
81
+ * @memberof LexConnectChannelData
82
+ */
83
+ managementRoleExternalId?: string;
84
+ /**
85
+ * The ARN of the Lambda that acts as fulfillment for all the intents.
86
+ */
87
+ lexFulfillmentLambdaARN?: string;
88
+ /**
89
+ * URL that accepts Stentor Requests that calls the Lex PostText API
90
+ *
91
+ * @type {string}
92
+ * @memberof LexConnectChannelData
93
+ */
94
+ lexPostTextUrl?: string;
95
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ChannelData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelData.js","sourceRoot":"","sources":["../src/ChannelData.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { LexConnectPlatform } from "./Types";
3
+ export declare const LEX_CONNECT_PLATFORM: LexConnectPlatform;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LEX_CONNECT_PLATFORM = void 0;
4
+ exports.LEX_CONNECT_PLATFORM = "lex-connect";
5
+ //# sourceMappingURL=Constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,oBAAoB,GAAuB,aAAa,CAAC"}
package/lib/Types.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ export declare type LexConnectPlatform = "lex-connect";
package/lib/Types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Types.js","sourceRoot":"","sources":["../src/Types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.77.2",
7
+ "version": "1.78.2",
8
8
  "description": "Stentor Lex Connect channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -21,21 +21,21 @@
21
21
  "chai": "4.5.0",
22
22
  "mocha": "11.7.5",
23
23
  "sinon": "21.0.0",
24
- "stentor-channel": "1.71.0",
25
- "stentor-constants": "1.71.0",
26
- "stentor-interaction-model": "1.71.0",
27
- "stentor-media": "1.71.0",
28
- "stentor-models": "1.71.0",
29
- "stentor-request": "1.71.0",
30
- "stentor-response": "1.71.0",
31
- "stentor-utils": "1.71.0",
24
+ "stentor-channel": "1.72.0",
25
+ "stentor-constants": "1.72.0",
26
+ "stentor-interaction-model": "1.72.0",
27
+ "stentor-media": "1.72.0",
28
+ "stentor-models": "1.72.0",
29
+ "stentor-request": "1.72.0",
30
+ "stentor-response": "1.72.0",
31
+ "stentor-utils": "1.72.0",
32
32
  "ts-node": "10.9.2",
33
33
  "typescript": "5.9.3"
34
34
  },
35
35
  "dependencies": {
36
36
  "@xapp/patterns": "2.0.3",
37
- "@xapp/stentor-alexa-lib": "1.77.2",
38
- "@xapp/stentor-lex-lib": "1.77.2"
37
+ "@xapp/stentor-alexa-lib": "1.78.2",
38
+ "@xapp/stentor-lex-lib": "1.78.2"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "stentor-channel": "1.x",
@@ -52,5 +52,5 @@
52
52
  "clean": "rm -rf ./lib/*",
53
53
  "test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
54
54
  },
55
- "gitHead": "2ad66e5027dcf0a1aae780792cd30c7a5f284c76"
55
+ "gitHead": "aa12717f4c89adc8be07967d8aabe33671d787b1"
56
56
  }