@xapp/stentor-lex-connect 1.77.2 → 1.78.0
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/ChannelData.d.ts +95 -0
- package/lib/ChannelData.js +3 -0
- package/lib/ChannelData.js.map +1 -0
- package/lib/Constants.d.ts +3 -0
- package/lib/Constants.js +5 -0
- package/lib/Constants.js.map +1 -0
- package/lib/Types.d.ts +2 -0
- package/lib/Types.js +3 -0
- package/lib/Types.js.map +1 -0
- package/package.json +5 -5
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelData.js","sourceRoot":"","sources":["../src/ChannelData.ts"],"names":[],"mappings":""}
|
package/lib/Constants.js
ADDED
|
@@ -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
package/lib/Types.js
ADDED
package/lib/Types.js.map
ADDED
|
@@ -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.
|
|
7
|
+
"version": "1.78.0",
|
|
8
8
|
"description": "Stentor Lex Connect channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"stentor-constants": "1.71.0",
|
|
26
26
|
"stentor-interaction-model": "1.71.0",
|
|
27
27
|
"stentor-media": "1.71.0",
|
|
28
|
-
"stentor-models": "1.
|
|
28
|
+
"stentor-models": "1.72.0",
|
|
29
29
|
"stentor-request": "1.71.0",
|
|
30
30
|
"stentor-response": "1.71.0",
|
|
31
31
|
"stentor-utils": "1.71.0",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@xapp/patterns": "2.0.3",
|
|
37
|
-
"@xapp/stentor-alexa-lib": "1.
|
|
38
|
-
"@xapp/stentor-lex-lib": "1.
|
|
37
|
+
"@xapp/stentor-alexa-lib": "1.78.0",
|
|
38
|
+
"@xapp/stentor-lex-lib": "1.78.0"
|
|
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": "
|
|
55
|
+
"gitHead": "7ad5a86334ecb7ae383da1aef801375cb9af71af"
|
|
56
56
|
}
|