@aws-sdk/client-lex-runtime-service 3.300.0 → 3.303.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/dist-cjs/models/models_0.js +34 -40
- package/dist-es/models/models_0.js +34 -40
- package/dist-types/commands/DeleteSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetSessionCommand.d.ts +1 -1
- package/dist-types/commands/PostContentCommand.d.ts +1 -1
- package/dist-types/commands/PostTextCommand.d.ts +6 -6
- package/dist-types/commands/PutSessionCommand.d.ts +10 -12
- package/dist-types/models/models_0.d.ts +64 -34
- package/dist-types/ts3.4/models/models_0.d.ts +44 -34
- package/package.json +36 -36
|
@@ -69,33 +69,29 @@ class NotFoundException extends LexRuntimeServiceServiceException_1.LexRuntimeSe
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
exports.NotFoundException = NotFoundException;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
ConfirmationStatus["CONFIRMED"] = "Confirmed";
|
|
96
|
-
ConfirmationStatus["DENIED"] = "Denied";
|
|
97
|
-
ConfirmationStatus["NONE"] = "None";
|
|
98
|
-
})(ConfirmationStatus = exports.ConfirmationStatus || (exports.ConfirmationStatus = {}));
|
|
72
|
+
exports.FulfillmentState = {
|
|
73
|
+
FAILED: "Failed",
|
|
74
|
+
FULFILLED: "Fulfilled",
|
|
75
|
+
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
76
|
+
};
|
|
77
|
+
exports.MessageFormatType = {
|
|
78
|
+
COMPOSITE: "Composite",
|
|
79
|
+
CUSTOM_PAYLOAD: "CustomPayload",
|
|
80
|
+
PLAIN_TEXT: "PlainText",
|
|
81
|
+
SSML: "SSML",
|
|
82
|
+
};
|
|
83
|
+
exports.DialogActionType = {
|
|
84
|
+
CLOSE: "Close",
|
|
85
|
+
CONFIRM_INTENT: "ConfirmIntent",
|
|
86
|
+
DELEGATE: "Delegate",
|
|
87
|
+
ELICIT_INTENT: "ElicitIntent",
|
|
88
|
+
ELICIT_SLOT: "ElicitSlot",
|
|
89
|
+
};
|
|
90
|
+
exports.ConfirmationStatus = {
|
|
91
|
+
CONFIRMED: "Confirmed",
|
|
92
|
+
DENIED: "Denied",
|
|
93
|
+
NONE: "None",
|
|
94
|
+
};
|
|
99
95
|
class BadGatewayException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
|
|
100
96
|
constructor(opts) {
|
|
101
97
|
super({
|
|
@@ -151,15 +147,14 @@ class NotAcceptableException extends LexRuntimeServiceServiceException_1.LexRunt
|
|
|
151
147
|
}
|
|
152
148
|
}
|
|
153
149
|
exports.NotAcceptableException = NotAcceptableException;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
})(DialogState = exports.DialogState || (exports.DialogState = {}));
|
|
150
|
+
exports.DialogState = {
|
|
151
|
+
CONFIRM_INTENT: "ConfirmIntent",
|
|
152
|
+
ELICIT_INTENT: "ElicitIntent",
|
|
153
|
+
ELICIT_SLOT: "ElicitSlot",
|
|
154
|
+
FAILED: "Failed",
|
|
155
|
+
FULFILLED: "Fulfilled",
|
|
156
|
+
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
157
|
+
};
|
|
163
158
|
class RequestTimeoutException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
|
|
164
159
|
constructor(opts) {
|
|
165
160
|
super({
|
|
@@ -186,10 +181,9 @@ class UnsupportedMediaTypeException extends LexRuntimeServiceServiceException_1.
|
|
|
186
181
|
}
|
|
187
182
|
}
|
|
188
183
|
exports.UnsupportedMediaTypeException = UnsupportedMediaTypeException;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
})(ContentType = exports.ContentType || (exports.ContentType = {}));
|
|
184
|
+
exports.ContentType = {
|
|
185
|
+
GENERIC: "application/vnd.amazonaws.card.generic",
|
|
186
|
+
};
|
|
193
187
|
const ActiveContextFilterSensitiveLog = (obj) => ({
|
|
194
188
|
...obj,
|
|
195
189
|
...(obj.parameters && { parameters: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -61,33 +61,29 @@ export class NotFoundException extends __BaseException {
|
|
|
61
61
|
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
ConfirmationStatus["CONFIRMED"] = "Confirmed";
|
|
88
|
-
ConfirmationStatus["DENIED"] = "Denied";
|
|
89
|
-
ConfirmationStatus["NONE"] = "None";
|
|
90
|
-
})(ConfirmationStatus || (ConfirmationStatus = {}));
|
|
64
|
+
export const FulfillmentState = {
|
|
65
|
+
FAILED: "Failed",
|
|
66
|
+
FULFILLED: "Fulfilled",
|
|
67
|
+
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
68
|
+
};
|
|
69
|
+
export const MessageFormatType = {
|
|
70
|
+
COMPOSITE: "Composite",
|
|
71
|
+
CUSTOM_PAYLOAD: "CustomPayload",
|
|
72
|
+
PLAIN_TEXT: "PlainText",
|
|
73
|
+
SSML: "SSML",
|
|
74
|
+
};
|
|
75
|
+
export const DialogActionType = {
|
|
76
|
+
CLOSE: "Close",
|
|
77
|
+
CONFIRM_INTENT: "ConfirmIntent",
|
|
78
|
+
DELEGATE: "Delegate",
|
|
79
|
+
ELICIT_INTENT: "ElicitIntent",
|
|
80
|
+
ELICIT_SLOT: "ElicitSlot",
|
|
81
|
+
};
|
|
82
|
+
export const ConfirmationStatus = {
|
|
83
|
+
CONFIRMED: "Confirmed",
|
|
84
|
+
DENIED: "Denied",
|
|
85
|
+
NONE: "None",
|
|
86
|
+
};
|
|
91
87
|
export class BadGatewayException extends __BaseException {
|
|
92
88
|
constructor(opts) {
|
|
93
89
|
super({
|
|
@@ -139,15 +135,14 @@ export class NotAcceptableException extends __BaseException {
|
|
|
139
135
|
Object.setPrototypeOf(this, NotAcceptableException.prototype);
|
|
140
136
|
}
|
|
141
137
|
}
|
|
142
|
-
export
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
})(DialogState || (DialogState = {}));
|
|
138
|
+
export const DialogState = {
|
|
139
|
+
CONFIRM_INTENT: "ConfirmIntent",
|
|
140
|
+
ELICIT_INTENT: "ElicitIntent",
|
|
141
|
+
ELICIT_SLOT: "ElicitSlot",
|
|
142
|
+
FAILED: "Failed",
|
|
143
|
+
FULFILLED: "Fulfilled",
|
|
144
|
+
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
145
|
+
};
|
|
151
146
|
export class RequestTimeoutException extends __BaseException {
|
|
152
147
|
constructor(opts) {
|
|
153
148
|
super({
|
|
@@ -172,10 +167,9 @@ export class UnsupportedMediaTypeException extends __BaseException {
|
|
|
172
167
|
Object.setPrototypeOf(this, UnsupportedMediaTypeException.prototype);
|
|
173
168
|
}
|
|
174
169
|
}
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
})(ContentType || (ContentType = {}));
|
|
170
|
+
export const ContentType = {
|
|
171
|
+
GENERIC: "application/vnd.amazonaws.card.generic",
|
|
172
|
+
};
|
|
179
173
|
export const ActiveContextFilterSensitiveLog = (obj) => ({
|
|
180
174
|
...obj,
|
|
181
175
|
...(obj.parameters && { parameters: SENSITIVE_STRING }),
|
|
@@ -27,7 +27,7 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
|
|
|
27
27
|
* import { LexRuntimeServiceClient, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
28
28
|
* // const { LexRuntimeServiceClient, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
29
29
|
* const client = new LexRuntimeServiceClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // DeleteSessionRequest
|
|
31
31
|
* botName: "STRING_VALUE", // required
|
|
32
32
|
* botAlias: "STRING_VALUE", // required
|
|
33
33
|
* userId: "STRING_VALUE", // required
|
|
@@ -27,7 +27,7 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
|
|
|
27
27
|
* import { LexRuntimeServiceClient, GetSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
28
28
|
* // const { LexRuntimeServiceClient, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
29
29
|
* const client = new LexRuntimeServiceClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // GetSessionRequest
|
|
31
31
|
* botName: "STRING_VALUE", // required
|
|
32
32
|
* botAlias: "STRING_VALUE", // required
|
|
33
33
|
* userId: "STRING_VALUE", // required
|
|
@@ -112,7 +112,7 @@ export interface PostContentCommandOutput extends __WithSdkStreamMixin<PostConte
|
|
|
112
112
|
* import { LexRuntimeServiceClient, PostContentCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
113
113
|
* // const { LexRuntimeServiceClient, PostContentCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
114
114
|
* const client = new LexRuntimeServiceClient(config);
|
|
115
|
-
* const input = {
|
|
115
|
+
* const input = { // PostContentRequest
|
|
116
116
|
* botName: "STRING_VALUE", // required
|
|
117
117
|
* botAlias: "STRING_VALUE", // required
|
|
118
118
|
* userId: "STRING_VALUE", // required
|
|
@@ -101,25 +101,25 @@ export interface PostTextCommandOutput extends PostTextResponse, __MetadataBeare
|
|
|
101
101
|
* import { LexRuntimeServiceClient, PostTextCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
102
102
|
* // const { LexRuntimeServiceClient, PostTextCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
103
103
|
* const client = new LexRuntimeServiceClient(config);
|
|
104
|
-
* const input = {
|
|
104
|
+
* const input = { // PostTextRequest
|
|
105
105
|
* botName: "STRING_VALUE", // required
|
|
106
106
|
* botAlias: "STRING_VALUE", // required
|
|
107
107
|
* userId: "STRING_VALUE", // required
|
|
108
|
-
* sessionAttributes: {
|
|
108
|
+
* sessionAttributes: { // StringMap
|
|
109
109
|
* "<keys>": "STRING_VALUE",
|
|
110
110
|
* },
|
|
111
111
|
* requestAttributes: {
|
|
112
112
|
* "<keys>": "STRING_VALUE",
|
|
113
113
|
* },
|
|
114
114
|
* inputText: "STRING_VALUE", // required
|
|
115
|
-
* activeContexts: [
|
|
116
|
-
* {
|
|
115
|
+
* activeContexts: [ // ActiveContextsList
|
|
116
|
+
* { // ActiveContext
|
|
117
117
|
* name: "STRING_VALUE", // required
|
|
118
|
-
* timeToLive: {
|
|
118
|
+
* timeToLive: { // ActiveContextTimeToLive
|
|
119
119
|
* timeToLiveInSeconds: Number("int"),
|
|
120
120
|
* turnsToLive: Number("int"),
|
|
121
121
|
* },
|
|
122
|
-
* parameters: { // required
|
|
122
|
+
* parameters: { // ActiveContextParametersMap // required
|
|
123
123
|
* "<keys>": "STRING_VALUE",
|
|
124
124
|
* },
|
|
125
125
|
* },
|
|
@@ -30,14 +30,14 @@ export interface PutSessionCommandOutput extends __WithSdkStreamMixin<PutSession
|
|
|
30
30
|
* import { LexRuntimeServiceClient, PutSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
31
31
|
* // const { LexRuntimeServiceClient, PutSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
32
32
|
* const client = new LexRuntimeServiceClient(config);
|
|
33
|
-
* const input = {
|
|
33
|
+
* const input = { // PutSessionRequest
|
|
34
34
|
* botName: "STRING_VALUE", // required
|
|
35
35
|
* botAlias: "STRING_VALUE", // required
|
|
36
36
|
* userId: "STRING_VALUE", // required
|
|
37
|
-
* sessionAttributes: {
|
|
37
|
+
* sessionAttributes: { // StringMap
|
|
38
38
|
* "<keys>": "STRING_VALUE",
|
|
39
39
|
* },
|
|
40
|
-
* dialogAction: {
|
|
40
|
+
* dialogAction: { // DialogAction
|
|
41
41
|
* type: "STRING_VALUE", // required
|
|
42
42
|
* intentName: "STRING_VALUE",
|
|
43
43
|
* slots: {
|
|
@@ -48,13 +48,11 @@ export interface PutSessionCommandOutput extends __WithSdkStreamMixin<PutSession
|
|
|
48
48
|
* message: "STRING_VALUE",
|
|
49
49
|
* messageFormat: "STRING_VALUE",
|
|
50
50
|
* },
|
|
51
|
-
* recentIntentSummaryView: [
|
|
52
|
-
* {
|
|
51
|
+
* recentIntentSummaryView: [ // IntentSummaryList
|
|
52
|
+
* { // IntentSummary
|
|
53
53
|
* intentName: "STRING_VALUE",
|
|
54
54
|
* checkpointLabel: "STRING_VALUE",
|
|
55
|
-
* slots:
|
|
56
|
-
* "<keys>": "<String>",
|
|
57
|
-
* },
|
|
55
|
+
* slots: "<StringMap>",
|
|
58
56
|
* confirmationStatus: "STRING_VALUE",
|
|
59
57
|
* dialogActionType: "STRING_VALUE", // required
|
|
60
58
|
* fulfillmentState: "STRING_VALUE",
|
|
@@ -62,14 +60,14 @@ export interface PutSessionCommandOutput extends __WithSdkStreamMixin<PutSession
|
|
|
62
60
|
* },
|
|
63
61
|
* ],
|
|
64
62
|
* accept: "STRING_VALUE",
|
|
65
|
-
* activeContexts: [
|
|
66
|
-
* {
|
|
63
|
+
* activeContexts: [ // ActiveContextsList
|
|
64
|
+
* { // ActiveContext
|
|
67
65
|
* name: "STRING_VALUE", // required
|
|
68
|
-
* timeToLive: {
|
|
66
|
+
* timeToLive: { // ActiveContextTimeToLive
|
|
69
67
|
* timeToLiveInSeconds: Number("int"),
|
|
70
68
|
* turnsToLive: Number("int"),
|
|
71
69
|
* },
|
|
72
|
-
* parameters: { // required
|
|
70
|
+
* parameters: { // ActiveContextParametersMap // required
|
|
73
71
|
* "<keys>": "STRING_VALUE",
|
|
74
72
|
* },
|
|
75
73
|
* },
|
|
@@ -177,31 +177,46 @@ export interface GetSessionRequest {
|
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
179
|
* @public
|
|
180
|
+
* @enum
|
|
180
181
|
*/
|
|
181
|
-
export declare
|
|
182
|
-
FAILED
|
|
183
|
-
FULFILLED
|
|
184
|
-
READY_FOR_FULFILLMENT
|
|
185
|
-
}
|
|
182
|
+
export declare const FulfillmentState: {
|
|
183
|
+
readonly FAILED: "Failed";
|
|
184
|
+
readonly FULFILLED: "Fulfilled";
|
|
185
|
+
readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
|
|
186
|
+
};
|
|
186
187
|
/**
|
|
187
188
|
* @public
|
|
188
189
|
*/
|
|
189
|
-
export
|
|
190
|
-
COMPOSITE = "Composite",
|
|
191
|
-
CUSTOM_PAYLOAD = "CustomPayload",
|
|
192
|
-
PLAIN_TEXT = "PlainText",
|
|
193
|
-
SSML = "SSML"
|
|
194
|
-
}
|
|
190
|
+
export type FulfillmentState = (typeof FulfillmentState)[keyof typeof FulfillmentState];
|
|
195
191
|
/**
|
|
196
192
|
* @public
|
|
193
|
+
* @enum
|
|
197
194
|
*/
|
|
198
|
-
export declare
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
195
|
+
export declare const MessageFormatType: {
|
|
196
|
+
readonly COMPOSITE: "Composite";
|
|
197
|
+
readonly CUSTOM_PAYLOAD: "CustomPayload";
|
|
198
|
+
readonly PLAIN_TEXT: "PlainText";
|
|
199
|
+
readonly SSML: "SSML";
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
export type MessageFormatType = (typeof MessageFormatType)[keyof typeof MessageFormatType];
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
* @enum
|
|
208
|
+
*/
|
|
209
|
+
export declare const DialogActionType: {
|
|
210
|
+
readonly CLOSE: "Close";
|
|
211
|
+
readonly CONFIRM_INTENT: "ConfirmIntent";
|
|
212
|
+
readonly DELEGATE: "Delegate";
|
|
213
|
+
readonly ELICIT_INTENT: "ElicitIntent";
|
|
214
|
+
readonly ELICIT_SLOT: "ElicitSlot";
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
export type DialogActionType = (typeof DialogActionType)[keyof typeof DialogActionType];
|
|
205
220
|
/**
|
|
206
221
|
* @public
|
|
207
222
|
* <p>Describes the next action that the bot should take in its interaction
|
|
@@ -313,12 +328,17 @@ export interface DialogAction {
|
|
|
313
328
|
}
|
|
314
329
|
/**
|
|
315
330
|
* @public
|
|
331
|
+
* @enum
|
|
316
332
|
*/
|
|
317
|
-
export declare
|
|
318
|
-
CONFIRMED
|
|
319
|
-
DENIED
|
|
320
|
-
NONE
|
|
321
|
-
}
|
|
333
|
+
export declare const ConfirmationStatus: {
|
|
334
|
+
readonly CONFIRMED: "Confirmed";
|
|
335
|
+
readonly DENIED: "Denied";
|
|
336
|
+
readonly NONE: "None";
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* @public
|
|
340
|
+
*/
|
|
341
|
+
export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
|
|
322
342
|
/**
|
|
323
343
|
* @public
|
|
324
344
|
* <p>Provides information about the state of an intent. You can use this
|
|
@@ -705,15 +725,20 @@ export interface PostContentRequest {
|
|
|
705
725
|
}
|
|
706
726
|
/**
|
|
707
727
|
* @public
|
|
728
|
+
* @enum
|
|
708
729
|
*/
|
|
709
|
-
export declare
|
|
710
|
-
CONFIRM_INTENT
|
|
711
|
-
ELICIT_INTENT
|
|
712
|
-
ELICIT_SLOT
|
|
713
|
-
FAILED
|
|
714
|
-
FULFILLED
|
|
715
|
-
READY_FOR_FULFILLMENT
|
|
716
|
-
}
|
|
730
|
+
export declare const DialogState: {
|
|
731
|
+
readonly CONFIRM_INTENT: "ConfirmIntent";
|
|
732
|
+
readonly ELICIT_INTENT: "ElicitIntent";
|
|
733
|
+
readonly ELICIT_SLOT: "ElicitSlot";
|
|
734
|
+
readonly FAILED: "Failed";
|
|
735
|
+
readonly FULFILLED: "Fulfilled";
|
|
736
|
+
readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
|
|
737
|
+
};
|
|
738
|
+
/**
|
|
739
|
+
* @public
|
|
740
|
+
*/
|
|
741
|
+
export type DialogState = (typeof DialogState)[keyof typeof DialogState];
|
|
717
742
|
/**
|
|
718
743
|
* @public
|
|
719
744
|
*/
|
|
@@ -1099,10 +1124,15 @@ export interface PredictedIntent {
|
|
|
1099
1124
|
}
|
|
1100
1125
|
/**
|
|
1101
1126
|
* @public
|
|
1127
|
+
* @enum
|
|
1102
1128
|
*/
|
|
1103
|
-
export declare
|
|
1104
|
-
GENERIC
|
|
1105
|
-
}
|
|
1129
|
+
export declare const ContentType: {
|
|
1130
|
+
readonly GENERIC: "application/vnd.amazonaws.card.generic";
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* @public
|
|
1134
|
+
*/
|
|
1135
|
+
export type ContentType = (typeof ContentType)[keyof typeof ContentType];
|
|
1106
1136
|
/**
|
|
1107
1137
|
* @public
|
|
1108
1138
|
* <p>Represents an option to be shown on the client platform (Facebook,
|
|
@@ -62,24 +62,30 @@ export interface GetSessionRequest {
|
|
|
62
62
|
userId: string | undefined;
|
|
63
63
|
checkpointLabelFilter?: string;
|
|
64
64
|
}
|
|
65
|
-
export declare
|
|
66
|
-
FAILED
|
|
67
|
-
FULFILLED
|
|
68
|
-
READY_FOR_FULFILLMENT
|
|
69
|
-
}
|
|
70
|
-
export
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
65
|
+
export declare const FulfillmentState: {
|
|
66
|
+
readonly FAILED: "Failed";
|
|
67
|
+
readonly FULFILLED: "Fulfilled";
|
|
68
|
+
readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
|
|
69
|
+
};
|
|
70
|
+
export type FulfillmentState =
|
|
71
|
+
(typeof FulfillmentState)[keyof typeof FulfillmentState];
|
|
72
|
+
export declare const MessageFormatType: {
|
|
73
|
+
readonly COMPOSITE: "Composite";
|
|
74
|
+
readonly CUSTOM_PAYLOAD: "CustomPayload";
|
|
75
|
+
readonly PLAIN_TEXT: "PlainText";
|
|
76
|
+
readonly SSML: "SSML";
|
|
77
|
+
};
|
|
78
|
+
export type MessageFormatType =
|
|
79
|
+
(typeof MessageFormatType)[keyof typeof MessageFormatType];
|
|
80
|
+
export declare const DialogActionType: {
|
|
81
|
+
readonly CLOSE: "Close";
|
|
82
|
+
readonly CONFIRM_INTENT: "ConfirmIntent";
|
|
83
|
+
readonly DELEGATE: "Delegate";
|
|
84
|
+
readonly ELICIT_INTENT: "ElicitIntent";
|
|
85
|
+
readonly ELICIT_SLOT: "ElicitSlot";
|
|
86
|
+
};
|
|
87
|
+
export type DialogActionType =
|
|
88
|
+
(typeof DialogActionType)[keyof typeof DialogActionType];
|
|
83
89
|
export interface DialogAction {
|
|
84
90
|
type: DialogActionType | string | undefined;
|
|
85
91
|
intentName?: string;
|
|
@@ -89,11 +95,13 @@ export interface DialogAction {
|
|
|
89
95
|
message?: string;
|
|
90
96
|
messageFormat?: MessageFormatType | string;
|
|
91
97
|
}
|
|
92
|
-
export declare
|
|
93
|
-
CONFIRMED
|
|
94
|
-
DENIED
|
|
95
|
-
NONE
|
|
96
|
-
}
|
|
98
|
+
export declare const ConfirmationStatus: {
|
|
99
|
+
readonly CONFIRMED: "Confirmed";
|
|
100
|
+
readonly DENIED: "Denied";
|
|
101
|
+
readonly NONE: "None";
|
|
102
|
+
};
|
|
103
|
+
export type ConfirmationStatus =
|
|
104
|
+
(typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
|
|
97
105
|
export interface IntentSummary {
|
|
98
106
|
intentName?: string;
|
|
99
107
|
checkpointLabel?: string;
|
|
@@ -152,14 +160,15 @@ export interface PostContentRequest {
|
|
|
152
160
|
inputStream: Readable | ReadableStream | Blob | undefined;
|
|
153
161
|
activeContexts?: __LazyJsonString | string;
|
|
154
162
|
}
|
|
155
|
-
export declare
|
|
156
|
-
CONFIRM_INTENT
|
|
157
|
-
ELICIT_INTENT
|
|
158
|
-
ELICIT_SLOT
|
|
159
|
-
FAILED
|
|
160
|
-
FULFILLED
|
|
161
|
-
READY_FOR_FULFILLMENT
|
|
162
|
-
}
|
|
163
|
+
export declare const DialogState: {
|
|
164
|
+
readonly CONFIRM_INTENT: "ConfirmIntent";
|
|
165
|
+
readonly ELICIT_INTENT: "ElicitIntent";
|
|
166
|
+
readonly ELICIT_SLOT: "ElicitSlot";
|
|
167
|
+
readonly FAILED: "Failed";
|
|
168
|
+
readonly FULFILLED: "Fulfilled";
|
|
169
|
+
readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
|
|
170
|
+
};
|
|
171
|
+
export type DialogState = (typeof DialogState)[keyof typeof DialogState];
|
|
163
172
|
export interface PostContentResponse {
|
|
164
173
|
contentType?: string;
|
|
165
174
|
intentName?: string;
|
|
@@ -211,9 +220,10 @@ export interface PredictedIntent {
|
|
|
211
220
|
nluIntentConfidence?: IntentConfidence;
|
|
212
221
|
slots?: Record<string, string>;
|
|
213
222
|
}
|
|
214
|
-
export declare
|
|
215
|
-
GENERIC
|
|
216
|
-
}
|
|
223
|
+
export declare const ContentType: {
|
|
224
|
+
readonly GENERIC: "application/vnd.amazonaws.card.generic";
|
|
225
|
+
};
|
|
226
|
+
export type ContentType = (typeof ContentType)[keyof typeof ContentType];
|
|
217
227
|
export interface Button {
|
|
218
228
|
text: string | undefined;
|
|
219
229
|
value: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.303.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -23,44 +23,44 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/config-resolver": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
29
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
30
|
-
"@aws-sdk/hash-node": "3.
|
|
31
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
32
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
33
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
34
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
35
|
-
"@aws-sdk/middleware-logger": "3.
|
|
36
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
37
|
-
"@aws-sdk/middleware-retry": "3.
|
|
38
|
-
"@aws-sdk/middleware-serde": "3.
|
|
39
|
-
"@aws-sdk/middleware-signing": "3.
|
|
40
|
-
"@aws-sdk/middleware-stack": "3.
|
|
41
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
42
|
-
"@aws-sdk/node-config-provider": "3.
|
|
43
|
-
"@aws-sdk/node-http-handler": "3.
|
|
44
|
-
"@aws-sdk/protocol-http": "3.
|
|
45
|
-
"@aws-sdk/smithy-client": "3.
|
|
46
|
-
"@aws-sdk/types": "3.
|
|
47
|
-
"@aws-sdk/url-parser": "3.
|
|
48
|
-
"@aws-sdk/util-base64": "3.
|
|
49
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
50
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
52
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
53
|
-
"@aws-sdk/util-endpoints": "3.
|
|
54
|
-
"@aws-sdk/util-retry": "3.
|
|
55
|
-
"@aws-sdk/util-stream-browser": "3.
|
|
56
|
-
"@aws-sdk/util-stream-node": "3.
|
|
57
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
58
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
59
|
-
"@aws-sdk/util-utf8": "3.
|
|
26
|
+
"@aws-sdk/client-sts": "3.303.0",
|
|
27
|
+
"@aws-sdk/config-resolver": "3.303.0",
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.303.0",
|
|
29
|
+
"@aws-sdk/fetch-http-handler": "3.303.0",
|
|
30
|
+
"@aws-sdk/hash-node": "3.303.0",
|
|
31
|
+
"@aws-sdk/invalid-dependency": "3.303.0",
|
|
32
|
+
"@aws-sdk/middleware-content-length": "3.303.0",
|
|
33
|
+
"@aws-sdk/middleware-endpoint": "3.303.0",
|
|
34
|
+
"@aws-sdk/middleware-host-header": "3.303.0",
|
|
35
|
+
"@aws-sdk/middleware-logger": "3.303.0",
|
|
36
|
+
"@aws-sdk/middleware-recursion-detection": "3.303.0",
|
|
37
|
+
"@aws-sdk/middleware-retry": "3.303.0",
|
|
38
|
+
"@aws-sdk/middleware-serde": "3.303.0",
|
|
39
|
+
"@aws-sdk/middleware-signing": "3.303.0",
|
|
40
|
+
"@aws-sdk/middleware-stack": "3.303.0",
|
|
41
|
+
"@aws-sdk/middleware-user-agent": "3.303.0",
|
|
42
|
+
"@aws-sdk/node-config-provider": "3.303.0",
|
|
43
|
+
"@aws-sdk/node-http-handler": "3.303.0",
|
|
44
|
+
"@aws-sdk/protocol-http": "3.303.0",
|
|
45
|
+
"@aws-sdk/smithy-client": "3.303.0",
|
|
46
|
+
"@aws-sdk/types": "3.303.0",
|
|
47
|
+
"@aws-sdk/url-parser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
50
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-browser": "3.303.0",
|
|
52
|
+
"@aws-sdk/util-defaults-mode-node": "3.303.0",
|
|
53
|
+
"@aws-sdk/util-endpoints": "3.303.0",
|
|
54
|
+
"@aws-sdk/util-retry": "3.303.0",
|
|
55
|
+
"@aws-sdk/util-stream-browser": "3.303.0",
|
|
56
|
+
"@aws-sdk/util-stream-node": "3.303.0",
|
|
57
|
+
"@aws-sdk/util-user-agent-browser": "3.303.0",
|
|
58
|
+
"@aws-sdk/util-user-agent-node": "3.303.0",
|
|
59
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
63
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/chai": "^4.2.11",
|
|
66
66
|
"@types/mocha": "^8.0.4",
|