@aws-sdk/client-lex-runtime-v2 3.47.1 → 3.50.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/CHANGELOG.md +35 -0
- package/dist-cjs/models/models_0.js +20 -1
- package/dist-cjs/protocols/Aws_restJson1.js +107 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +98 -2
- package/dist-types/models/models_0.d.ts +75 -1
- package/package.json +44 -38
- package/dist-types/ts3.4/LexRuntimeV2.d.ts +0 -35
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +0 -85
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +0 -24
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/index.d.ts +0 -6
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/index.d.ts +0 -4
- package/dist-types/ts3.4/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -323
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -20
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -40
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -40
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -39
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IntentResultEvent = exports.GetSessionResponse = exports.StartConversationRequest = exports.StartConversationRequestEventStream = exports.RecognizeTextRequest = exports.PutSessionRequest = exports.ConfigurationEvent = exports.SessionState = exports.Interpretation = exports.Intent = exports.Slot = exports.TranscriptEvent = exports.TextResponseEvent = exports.PlaybackInterruptionEvent = exports.PlaybackInterruptionReason = exports.InputMode = exports.HeartbeatEvent = exports.TextInputEvent = exports.PlaybackCompletionEvent = exports.DTMFInputEvent = exports.DisconnectionEvent = exports.ConversationMode = exports.RecognizeUtteranceResponse = exports.RecognizeUtteranceRequest = exports.PutSessionResponse = exports.RuntimeHints = exports.RuntimeHintDetails = exports.RuntimeHintValue = exports.DialogAction = exports.DialogActionType = exports.StyleType = exports.Message = exports.ImageResponseCard = exports.Button = exports.MessageContentType = exports.SentimentResponse = exports.SentimentScore = exports.SentimentType = exports.ConfidenceScore = exports.IntentState = exports.Value = exports.Shape = exports.ConfirmationState = exports.GetSessionRequest = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.AudioResponseEvent = exports.AudioInputEvent = exports.ActiveContext = exports.ActiveContextTimeToLive = void 0;
|
|
4
|
+
exports.StartConversationResponse = exports.StartConversationResponseEventStream = exports.RecognizeTextResponse = void 0;
|
|
4
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
6
|
var ActiveContextTimeToLive;
|
|
6
7
|
(function (ActiveContextTimeToLive) {
|
|
@@ -143,6 +144,24 @@ var DialogAction;
|
|
|
143
144
|
...obj,
|
|
144
145
|
});
|
|
145
146
|
})(DialogAction = exports.DialogAction || (exports.DialogAction = {}));
|
|
147
|
+
var RuntimeHintValue;
|
|
148
|
+
(function (RuntimeHintValue) {
|
|
149
|
+
RuntimeHintValue.filterSensitiveLog = (obj) => ({
|
|
150
|
+
...obj,
|
|
151
|
+
});
|
|
152
|
+
})(RuntimeHintValue = exports.RuntimeHintValue || (exports.RuntimeHintValue = {}));
|
|
153
|
+
var RuntimeHintDetails;
|
|
154
|
+
(function (RuntimeHintDetails) {
|
|
155
|
+
RuntimeHintDetails.filterSensitiveLog = (obj) => ({
|
|
156
|
+
...obj,
|
|
157
|
+
});
|
|
158
|
+
})(RuntimeHintDetails = exports.RuntimeHintDetails || (exports.RuntimeHintDetails = {}));
|
|
159
|
+
var RuntimeHints;
|
|
160
|
+
(function (RuntimeHints) {
|
|
161
|
+
RuntimeHints.filterSensitiveLog = (obj) => ({
|
|
162
|
+
...obj,
|
|
163
|
+
});
|
|
164
|
+
})(RuntimeHints = exports.RuntimeHints || (exports.RuntimeHints = {}));
|
|
146
165
|
var PutSessionResponse;
|
|
147
166
|
(function (PutSessionResponse) {
|
|
148
167
|
PutSessionResponse.filterSensitiveLog = (obj) => ({
|
|
@@ -1565,6 +1565,35 @@ const serializeAws_restJson1PlaybackCompletionEvent = (input, context) => {
|
|
|
1565
1565
|
...(input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId }),
|
|
1566
1566
|
};
|
|
1567
1567
|
};
|
|
1568
|
+
const serializeAws_restJson1RuntimeHintDetails = (input, context) => {
|
|
1569
|
+
return {
|
|
1570
|
+
...(input.runtimeHintValues !== undefined &&
|
|
1571
|
+
input.runtimeHintValues !== null && {
|
|
1572
|
+
runtimeHintValues: serializeAws_restJson1RuntimeHintValuesList(input.runtimeHintValues, context),
|
|
1573
|
+
}),
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
const serializeAws_restJson1RuntimeHints = (input, context) => {
|
|
1577
|
+
return {
|
|
1578
|
+
...(input.slotHints !== undefined &&
|
|
1579
|
+
input.slotHints !== null && { slotHints: serializeAws_restJson1SlotHintsIntentMap(input.slotHints, context) }),
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1582
|
+
const serializeAws_restJson1RuntimeHintValue = (input, context) => {
|
|
1583
|
+
return {
|
|
1584
|
+
...(input.phrase !== undefined && input.phrase !== null && { phrase: input.phrase }),
|
|
1585
|
+
};
|
|
1586
|
+
};
|
|
1587
|
+
const serializeAws_restJson1RuntimeHintValuesList = (input, context) => {
|
|
1588
|
+
return input
|
|
1589
|
+
.filter((e) => e != null)
|
|
1590
|
+
.map((entry) => {
|
|
1591
|
+
if (entry === null) {
|
|
1592
|
+
return null;
|
|
1593
|
+
}
|
|
1594
|
+
return serializeAws_restJson1RuntimeHintValue(entry, context);
|
|
1595
|
+
});
|
|
1596
|
+
};
|
|
1568
1597
|
const serializeAws_restJson1SessionState = (input, context) => {
|
|
1569
1598
|
return {
|
|
1570
1599
|
...(input.activeContexts !== undefined &&
|
|
@@ -1577,6 +1606,8 @@ const serializeAws_restJson1SessionState = (input, context) => {
|
|
|
1577
1606
|
input.intent !== null && { intent: serializeAws_restJson1Intent(input.intent, context) }),
|
|
1578
1607
|
...(input.originatingRequestId !== undefined &&
|
|
1579
1608
|
input.originatingRequestId !== null && { originatingRequestId: input.originatingRequestId }),
|
|
1609
|
+
...(input.runtimeHints !== undefined &&
|
|
1610
|
+
input.runtimeHints !== null && { runtimeHints: serializeAws_restJson1RuntimeHints(input.runtimeHints, context) }),
|
|
1580
1611
|
...(input.sessionAttributes !== undefined &&
|
|
1581
1612
|
input.sessionAttributes !== null && {
|
|
1582
1613
|
sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context),
|
|
@@ -1592,6 +1623,28 @@ const serializeAws_restJson1Slot = (input, context) => {
|
|
|
1592
1623
|
input.values !== null && { values: serializeAws_restJson1Values(input.values, context) }),
|
|
1593
1624
|
};
|
|
1594
1625
|
};
|
|
1626
|
+
const serializeAws_restJson1SlotHintsIntentMap = (input, context) => {
|
|
1627
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1628
|
+
if (value === null) {
|
|
1629
|
+
return acc;
|
|
1630
|
+
}
|
|
1631
|
+
return {
|
|
1632
|
+
...acc,
|
|
1633
|
+
[key]: serializeAws_restJson1SlotHintsSlotMap(value, context),
|
|
1634
|
+
};
|
|
1635
|
+
}, {});
|
|
1636
|
+
};
|
|
1637
|
+
const serializeAws_restJson1SlotHintsSlotMap = (input, context) => {
|
|
1638
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1639
|
+
if (value === null) {
|
|
1640
|
+
return acc;
|
|
1641
|
+
}
|
|
1642
|
+
return {
|
|
1643
|
+
...acc,
|
|
1644
|
+
[key]: serializeAws_restJson1RuntimeHintDetails(value, context),
|
|
1645
|
+
};
|
|
1646
|
+
}, {});
|
|
1647
|
+
};
|
|
1595
1648
|
const serializeAws_restJson1Slots = (input, context) => {
|
|
1596
1649
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1597
1650
|
if (value === null) {
|
|
@@ -1861,6 +1914,35 @@ const deserializeAws_restJson1ResourceNotFoundException = (output, context) => {
|
|
|
1861
1914
|
message: smithy_client_1.expectString(output.message),
|
|
1862
1915
|
};
|
|
1863
1916
|
};
|
|
1917
|
+
const deserializeAws_restJson1RuntimeHintDetails = (output, context) => {
|
|
1918
|
+
return {
|
|
1919
|
+
runtimeHintValues: output.runtimeHintValues !== undefined && output.runtimeHintValues !== null
|
|
1920
|
+
? deserializeAws_restJson1RuntimeHintValuesList(output.runtimeHintValues, context)
|
|
1921
|
+
: undefined,
|
|
1922
|
+
};
|
|
1923
|
+
};
|
|
1924
|
+
const deserializeAws_restJson1RuntimeHints = (output, context) => {
|
|
1925
|
+
return {
|
|
1926
|
+
slotHints: output.slotHints !== undefined && output.slotHints !== null
|
|
1927
|
+
? deserializeAws_restJson1SlotHintsIntentMap(output.slotHints, context)
|
|
1928
|
+
: undefined,
|
|
1929
|
+
};
|
|
1930
|
+
};
|
|
1931
|
+
const deserializeAws_restJson1RuntimeHintValue = (output, context) => {
|
|
1932
|
+
return {
|
|
1933
|
+
phrase: smithy_client_1.expectString(output.phrase),
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1936
|
+
const deserializeAws_restJson1RuntimeHintValuesList = (output, context) => {
|
|
1937
|
+
return (output || [])
|
|
1938
|
+
.filter((e) => e != null)
|
|
1939
|
+
.map((entry) => {
|
|
1940
|
+
if (entry === null) {
|
|
1941
|
+
return null;
|
|
1942
|
+
}
|
|
1943
|
+
return deserializeAws_restJson1RuntimeHintValue(entry, context);
|
|
1944
|
+
});
|
|
1945
|
+
};
|
|
1864
1946
|
const deserializeAws_restJson1SentimentResponse = (output, context) => {
|
|
1865
1947
|
return {
|
|
1866
1948
|
sentiment: smithy_client_1.expectString(output.sentiment),
|
|
@@ -1889,6 +1971,9 @@ const deserializeAws_restJson1SessionState = (output, context) => {
|
|
|
1889
1971
|
? deserializeAws_restJson1Intent(output.intent, context)
|
|
1890
1972
|
: undefined,
|
|
1891
1973
|
originatingRequestId: smithy_client_1.expectString(output.originatingRequestId),
|
|
1974
|
+
runtimeHints: output.runtimeHints !== undefined && output.runtimeHints !== null
|
|
1975
|
+
? deserializeAws_restJson1RuntimeHints(output.runtimeHints, context)
|
|
1976
|
+
: undefined,
|
|
1892
1977
|
sessionAttributes: output.sessionAttributes !== undefined && output.sessionAttributes !== null
|
|
1893
1978
|
? deserializeAws_restJson1StringMap(output.sessionAttributes, context)
|
|
1894
1979
|
: undefined,
|
|
@@ -1905,6 +1990,28 @@ const deserializeAws_restJson1Slot = (output, context) => {
|
|
|
1905
1990
|
: undefined,
|
|
1906
1991
|
};
|
|
1907
1992
|
};
|
|
1993
|
+
const deserializeAws_restJson1SlotHintsIntentMap = (output, context) => {
|
|
1994
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1995
|
+
if (value === null) {
|
|
1996
|
+
return acc;
|
|
1997
|
+
}
|
|
1998
|
+
return {
|
|
1999
|
+
...acc,
|
|
2000
|
+
[key]: deserializeAws_restJson1SlotHintsSlotMap(value, context),
|
|
2001
|
+
};
|
|
2002
|
+
}, {});
|
|
2003
|
+
};
|
|
2004
|
+
const deserializeAws_restJson1SlotHintsSlotMap = (output, context) => {
|
|
2005
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2006
|
+
if (value === null) {
|
|
2007
|
+
return acc;
|
|
2008
|
+
}
|
|
2009
|
+
return {
|
|
2010
|
+
...acc,
|
|
2011
|
+
[key]: deserializeAws_restJson1RuntimeHintDetails(value, context),
|
|
2012
|
+
};
|
|
2013
|
+
}, {});
|
|
2014
|
+
};
|
|
1908
2015
|
const deserializeAws_restJson1Slots = (output, context) => {
|
|
1909
2016
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1910
2017
|
if (value === null) {
|
|
@@ -109,6 +109,18 @@ export var DialogAction;
|
|
|
109
109
|
(function (DialogAction) {
|
|
110
110
|
DialogAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
111
|
})(DialogAction || (DialogAction = {}));
|
|
112
|
+
export var RuntimeHintValue;
|
|
113
|
+
(function (RuntimeHintValue) {
|
|
114
|
+
RuntimeHintValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
115
|
+
})(RuntimeHintValue || (RuntimeHintValue = {}));
|
|
116
|
+
export var RuntimeHintDetails;
|
|
117
|
+
(function (RuntimeHintDetails) {
|
|
118
|
+
RuntimeHintDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
})(RuntimeHintDetails || (RuntimeHintDetails = {}));
|
|
120
|
+
export var RuntimeHints;
|
|
121
|
+
(function (RuntimeHints) {
|
|
122
|
+
RuntimeHints.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
|
+
})(RuntimeHints || (RuntimeHints = {}));
|
|
112
124
|
export var PutSessionResponse;
|
|
113
125
|
(function (PutSessionResponse) {
|
|
114
126
|
PutSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1731,14 +1731,38 @@ var serializeAws_restJson1PlaybackCompletionEvent = function (input, context) {
|
|
|
1731
1731
|
return __assign(__assign({}, (input.clientTimestampMillis !== undefined &&
|
|
1732
1732
|
input.clientTimestampMillis !== null && { clientTimestampMillis: input.clientTimestampMillis })), (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId }));
|
|
1733
1733
|
};
|
|
1734
|
+
var serializeAws_restJson1RuntimeHintDetails = function (input, context) {
|
|
1735
|
+
return __assign({}, (input.runtimeHintValues !== undefined &&
|
|
1736
|
+
input.runtimeHintValues !== null && {
|
|
1737
|
+
runtimeHintValues: serializeAws_restJson1RuntimeHintValuesList(input.runtimeHintValues, context),
|
|
1738
|
+
}));
|
|
1739
|
+
};
|
|
1740
|
+
var serializeAws_restJson1RuntimeHints = function (input, context) {
|
|
1741
|
+
return __assign({}, (input.slotHints !== undefined &&
|
|
1742
|
+
input.slotHints !== null && { slotHints: serializeAws_restJson1SlotHintsIntentMap(input.slotHints, context) }));
|
|
1743
|
+
};
|
|
1744
|
+
var serializeAws_restJson1RuntimeHintValue = function (input, context) {
|
|
1745
|
+
return __assign({}, (input.phrase !== undefined && input.phrase !== null && { phrase: input.phrase }));
|
|
1746
|
+
};
|
|
1747
|
+
var serializeAws_restJson1RuntimeHintValuesList = function (input, context) {
|
|
1748
|
+
return input
|
|
1749
|
+
.filter(function (e) { return e != null; })
|
|
1750
|
+
.map(function (entry) {
|
|
1751
|
+
if (entry === null) {
|
|
1752
|
+
return null;
|
|
1753
|
+
}
|
|
1754
|
+
return serializeAws_restJson1RuntimeHintValue(entry, context);
|
|
1755
|
+
});
|
|
1756
|
+
};
|
|
1734
1757
|
var serializeAws_restJson1SessionState = function (input, context) {
|
|
1735
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.activeContexts !== undefined &&
|
|
1758
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.activeContexts !== undefined &&
|
|
1736
1759
|
input.activeContexts !== null && {
|
|
1737
1760
|
activeContexts: serializeAws_restJson1ActiveContextsList(input.activeContexts, context),
|
|
1738
1761
|
})), (input.dialogAction !== undefined &&
|
|
1739
1762
|
input.dialogAction !== null && { dialogAction: serializeAws_restJson1DialogAction(input.dialogAction, context) })), (input.intent !== undefined &&
|
|
1740
1763
|
input.intent !== null && { intent: serializeAws_restJson1Intent(input.intent, context) })), (input.originatingRequestId !== undefined &&
|
|
1741
|
-
input.originatingRequestId !== null && { originatingRequestId: input.originatingRequestId })), (input.
|
|
1764
|
+
input.originatingRequestId !== null && { originatingRequestId: input.originatingRequestId })), (input.runtimeHints !== undefined &&
|
|
1765
|
+
input.runtimeHints !== null && { runtimeHints: serializeAws_restJson1RuntimeHints(input.runtimeHints, context) })), (input.sessionAttributes !== undefined &&
|
|
1742
1766
|
input.sessionAttributes !== null && {
|
|
1743
1767
|
sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context),
|
|
1744
1768
|
}));
|
|
@@ -1748,6 +1772,26 @@ var serializeAws_restJson1Slot = function (input, context) {
|
|
|
1748
1772
|
input.value !== null && { value: serializeAws_restJson1Value(input.value, context) })), (input.values !== undefined &&
|
|
1749
1773
|
input.values !== null && { values: serializeAws_restJson1Values(input.values, context) }));
|
|
1750
1774
|
};
|
|
1775
|
+
var serializeAws_restJson1SlotHintsIntentMap = function (input, context) {
|
|
1776
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
1777
|
+
var _b;
|
|
1778
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1779
|
+
if (value === null) {
|
|
1780
|
+
return acc;
|
|
1781
|
+
}
|
|
1782
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1SlotHintsSlotMap(value, context), _b));
|
|
1783
|
+
}, {});
|
|
1784
|
+
};
|
|
1785
|
+
var serializeAws_restJson1SlotHintsSlotMap = function (input, context) {
|
|
1786
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
1787
|
+
var _b;
|
|
1788
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1789
|
+
if (value === null) {
|
|
1790
|
+
return acc;
|
|
1791
|
+
}
|
|
1792
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1RuntimeHintDetails(value, context), _b));
|
|
1793
|
+
}, {});
|
|
1794
|
+
};
|
|
1751
1795
|
var serializeAws_restJson1Slots = function (input, context) {
|
|
1752
1796
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
1753
1797
|
var _b;
|
|
@@ -2006,6 +2050,35 @@ var deserializeAws_restJson1ResourceNotFoundException = function (output, contex
|
|
|
2006
2050
|
message: __expectString(output.message),
|
|
2007
2051
|
};
|
|
2008
2052
|
};
|
|
2053
|
+
var deserializeAws_restJson1RuntimeHintDetails = function (output, context) {
|
|
2054
|
+
return {
|
|
2055
|
+
runtimeHintValues: output.runtimeHintValues !== undefined && output.runtimeHintValues !== null
|
|
2056
|
+
? deserializeAws_restJson1RuntimeHintValuesList(output.runtimeHintValues, context)
|
|
2057
|
+
: undefined,
|
|
2058
|
+
};
|
|
2059
|
+
};
|
|
2060
|
+
var deserializeAws_restJson1RuntimeHints = function (output, context) {
|
|
2061
|
+
return {
|
|
2062
|
+
slotHints: output.slotHints !== undefined && output.slotHints !== null
|
|
2063
|
+
? deserializeAws_restJson1SlotHintsIntentMap(output.slotHints, context)
|
|
2064
|
+
: undefined,
|
|
2065
|
+
};
|
|
2066
|
+
};
|
|
2067
|
+
var deserializeAws_restJson1RuntimeHintValue = function (output, context) {
|
|
2068
|
+
return {
|
|
2069
|
+
phrase: __expectString(output.phrase),
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
var deserializeAws_restJson1RuntimeHintValuesList = function (output, context) {
|
|
2073
|
+
return (output || [])
|
|
2074
|
+
.filter(function (e) { return e != null; })
|
|
2075
|
+
.map(function (entry) {
|
|
2076
|
+
if (entry === null) {
|
|
2077
|
+
return null;
|
|
2078
|
+
}
|
|
2079
|
+
return deserializeAws_restJson1RuntimeHintValue(entry, context);
|
|
2080
|
+
});
|
|
2081
|
+
};
|
|
2009
2082
|
var deserializeAws_restJson1SentimentResponse = function (output, context) {
|
|
2010
2083
|
return {
|
|
2011
2084
|
sentiment: __expectString(output.sentiment),
|
|
@@ -2034,6 +2107,9 @@ var deserializeAws_restJson1SessionState = function (output, context) {
|
|
|
2034
2107
|
? deserializeAws_restJson1Intent(output.intent, context)
|
|
2035
2108
|
: undefined,
|
|
2036
2109
|
originatingRequestId: __expectString(output.originatingRequestId),
|
|
2110
|
+
runtimeHints: output.runtimeHints !== undefined && output.runtimeHints !== null
|
|
2111
|
+
? deserializeAws_restJson1RuntimeHints(output.runtimeHints, context)
|
|
2112
|
+
: undefined,
|
|
2037
2113
|
sessionAttributes: output.sessionAttributes !== undefined && output.sessionAttributes !== null
|
|
2038
2114
|
? deserializeAws_restJson1StringMap(output.sessionAttributes, context)
|
|
2039
2115
|
: undefined,
|
|
@@ -2050,6 +2126,26 @@ var deserializeAws_restJson1Slot = function (output, context) {
|
|
|
2050
2126
|
: undefined,
|
|
2051
2127
|
};
|
|
2052
2128
|
};
|
|
2129
|
+
var deserializeAws_restJson1SlotHintsIntentMap = function (output, context) {
|
|
2130
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2131
|
+
var _b;
|
|
2132
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2133
|
+
if (value === null) {
|
|
2134
|
+
return acc;
|
|
2135
|
+
}
|
|
2136
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1SlotHintsSlotMap(value, context), _b));
|
|
2137
|
+
}, {});
|
|
2138
|
+
};
|
|
2139
|
+
var deserializeAws_restJson1SlotHintsSlotMap = function (output, context) {
|
|
2140
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2141
|
+
var _b;
|
|
2142
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2143
|
+
if (value === null) {
|
|
2144
|
+
return acc;
|
|
2145
|
+
}
|
|
2146
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1RuntimeHintDetails(value, context), _b));
|
|
2147
|
+
}, {});
|
|
2148
|
+
};
|
|
2053
2149
|
var deserializeAws_restJson1Slots = function (output, context) {
|
|
2054
2150
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
2055
2151
|
var _b;
|
|
@@ -541,6 +541,74 @@ export declare namespace DialogAction {
|
|
|
541
541
|
*/
|
|
542
542
|
const filterSensitiveLog: (obj: DialogAction) => any;
|
|
543
543
|
}
|
|
544
|
+
/**
|
|
545
|
+
* <p>Provides the phrase that Amazon Lex V2 should look for in the user's input
|
|
546
|
+
* to the bot.</p>
|
|
547
|
+
*/
|
|
548
|
+
export interface RuntimeHintValue {
|
|
549
|
+
/**
|
|
550
|
+
* <p>The phrase that Amazon Lex V2 should look for in the user's input to the
|
|
551
|
+
* bot.</p>
|
|
552
|
+
*/
|
|
553
|
+
phrase: string | undefined;
|
|
554
|
+
}
|
|
555
|
+
export declare namespace RuntimeHintValue {
|
|
556
|
+
/**
|
|
557
|
+
* @internal
|
|
558
|
+
*/
|
|
559
|
+
const filterSensitiveLog: (obj: RuntimeHintValue) => any;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* <p>Provides an array of phrases that should be given preference when
|
|
563
|
+
* resolving values for a slot.</p>
|
|
564
|
+
*/
|
|
565
|
+
export interface RuntimeHintDetails {
|
|
566
|
+
/**
|
|
567
|
+
* <p>One or more strings that Amazon Lex V2 should look for in the input to the
|
|
568
|
+
* bot. Each phrase is given preference when deciding on slot
|
|
569
|
+
* values.</p>
|
|
570
|
+
*/
|
|
571
|
+
runtimeHintValues: RuntimeHintValue[] | undefined;
|
|
572
|
+
}
|
|
573
|
+
export declare namespace RuntimeHintDetails {
|
|
574
|
+
/**
|
|
575
|
+
* @internal
|
|
576
|
+
*/
|
|
577
|
+
const filterSensitiveLog: (obj: RuntimeHintDetails) => any;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* <p>You can provide Amazon Lex V2 with hints to the phrases that a customer is
|
|
581
|
+
* likely to use for a slot. When a slot with hints is resolved, the
|
|
582
|
+
* phrases in the runtime hints are preferred in the resolution. You can
|
|
583
|
+
* provide hints for a maximum of 100 intents. You can provide a maximum
|
|
584
|
+
* of 100 slots.</p>
|
|
585
|
+
* <p>Before you can use runtime hints with an existing bot, you must
|
|
586
|
+
* first rebuild the bot.</p>
|
|
587
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.xml">Using hints to improve
|
|
588
|
+
* accuracy</a>.</p>
|
|
589
|
+
*/
|
|
590
|
+
export interface RuntimeHints {
|
|
591
|
+
/**
|
|
592
|
+
* <p>A list of the slots in the intent that should have runtime hints
|
|
593
|
+
* added, and the phrases that should be added for each slot.</p>
|
|
594
|
+
* <p>The first level of the <code>slotHints</code> map is the name of the
|
|
595
|
+
* intent. The second level is the name of the slot within the intent. For
|
|
596
|
+
* more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.xml">Using hints to improve
|
|
597
|
+
* accuracy</a>.</p>
|
|
598
|
+
* <p>The intent name and slot name must exist.</p>
|
|
599
|
+
*/
|
|
600
|
+
slotHints?: {
|
|
601
|
+
[key: string]: {
|
|
602
|
+
[key: string]: RuntimeHintDetails;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
export declare namespace RuntimeHints {
|
|
607
|
+
/**
|
|
608
|
+
* @internal
|
|
609
|
+
*/
|
|
610
|
+
const filterSensitiveLog: (obj: RuntimeHints) => any;
|
|
611
|
+
}
|
|
544
612
|
/**
|
|
545
613
|
* <p></p>
|
|
546
614
|
*/
|
|
@@ -1156,9 +1224,15 @@ export interface SessionState {
|
|
|
1156
1224
|
[key: string]: string;
|
|
1157
1225
|
};
|
|
1158
1226
|
/**
|
|
1159
|
-
* <p
|
|
1227
|
+
* <p>A unique identifier for a specific request.</p>
|
|
1160
1228
|
*/
|
|
1161
1229
|
originatingRequestId?: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* <p>Hints for phrases that a customer is likely to use
|
|
1232
|
+
* for a slot. Amazon Lex V2 uses the hints to help determine the correct
|
|
1233
|
+
* value of a slot.</p>
|
|
1234
|
+
*/
|
|
1235
|
+
runtimeHints?: RuntimeHints;
|
|
1162
1236
|
}
|
|
1163
1237
|
export declare namespace SessionState {
|
|
1164
1238
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.50.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",
|
|
@@ -18,46 +18,52 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
25
|
-
"@aws-sdk/eventstream-serde-browser": "3.
|
|
26
|
-
"@aws-sdk/eventstream-serde-config-resolver": "3.
|
|
27
|
-
"@aws-sdk/eventstream-serde-node": "3.
|
|
28
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
29
|
-
"@aws-sdk/hash-node": "3.
|
|
30
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
31
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
32
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
33
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
34
|
-
"@aws-sdk/middleware-logger": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
47
|
-
"@aws-sdk/util-base64-node": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
49
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
54
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
55
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.50.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.50.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.50.0",
|
|
24
|
+
"@aws-sdk/eventstream-handler-node": "3.50.0",
|
|
25
|
+
"@aws-sdk/eventstream-serde-browser": "3.50.0",
|
|
26
|
+
"@aws-sdk/eventstream-serde-config-resolver": "3.50.0",
|
|
27
|
+
"@aws-sdk/eventstream-serde-node": "3.50.0",
|
|
28
|
+
"@aws-sdk/fetch-http-handler": "3.50.0",
|
|
29
|
+
"@aws-sdk/hash-node": "3.50.0",
|
|
30
|
+
"@aws-sdk/invalid-dependency": "3.50.0",
|
|
31
|
+
"@aws-sdk/middleware-content-length": "3.50.0",
|
|
32
|
+
"@aws-sdk/middleware-eventstream": "3.50.0",
|
|
33
|
+
"@aws-sdk/middleware-host-header": "3.50.0",
|
|
34
|
+
"@aws-sdk/middleware-logger": "3.50.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.50.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.50.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.50.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.50.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.50.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.50.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.50.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.50.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.50.0",
|
|
44
|
+
"@aws-sdk/types": "3.50.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.50.0",
|
|
46
|
+
"@aws-sdk/util-base64-browser": "3.49.0",
|
|
47
|
+
"@aws-sdk/util-base64-node": "3.49.0",
|
|
48
|
+
"@aws-sdk/util-body-length-browser": "3.49.0",
|
|
49
|
+
"@aws-sdk/util-body-length-node": "3.49.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.50.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.50.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.50.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.50.0",
|
|
54
|
+
"@aws-sdk/util-utf8-browser": "3.49.0",
|
|
55
|
+
"@aws-sdk/util-utf8-node": "3.49.0",
|
|
56
56
|
"tslib": "^2.3.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
60
|
-
"@
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.49.0",
|
|
60
|
+
"@tsconfig/recommended": "1.0.1",
|
|
61
|
+
"@types/node": "^12.7.5",
|
|
62
|
+
"concurrently": "7.0.0",
|
|
63
|
+
"downlevel-dts": "0.7.0",
|
|
64
|
+
"rimraf": "3.0.2",
|
|
65
|
+
"typedoc": "0.19.2",
|
|
66
|
+
"typescript": "~4.3.5"
|
|
61
67
|
},
|
|
62
68
|
"engines": {
|
|
63
69
|
"node": ">=12.0.0"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
-
import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
|
|
3
|
-
import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
4
|
-
import { PutSessionCommandInput, PutSessionCommandOutput } from "./commands/PutSessionCommand";
|
|
5
|
-
import { RecognizeTextCommandInput, RecognizeTextCommandOutput } from "./commands/RecognizeTextCommand";
|
|
6
|
-
import { RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput } from "./commands/RecognizeUtteranceCommand";
|
|
7
|
-
import { StartConversationCommandInput, StartConversationCommandOutput } from "./commands/StartConversationCommand";
|
|
8
|
-
import { LexRuntimeV2Client } from "./LexRuntimeV2Client";
|
|
9
|
-
|
|
10
|
-
export declare class LexRuntimeV2 extends LexRuntimeV2Client {
|
|
11
|
-
|
|
12
|
-
deleteSession(args: DeleteSessionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSessionCommandOutput>;
|
|
13
|
-
deleteSession(args: DeleteSessionCommandInput, cb: (err: any, data?: DeleteSessionCommandOutput) => void): void;
|
|
14
|
-
deleteSession(args: DeleteSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSessionCommandOutput) => void): void;
|
|
15
|
-
|
|
16
|
-
getSession(args: GetSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionCommandOutput>;
|
|
17
|
-
getSession(args: GetSessionCommandInput, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
|
|
18
|
-
getSession(args: GetSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
|
|
19
|
-
|
|
20
|
-
putSession(args: PutSessionCommandInput, options?: __HttpHandlerOptions): Promise<PutSessionCommandOutput>;
|
|
21
|
-
putSession(args: PutSessionCommandInput, cb: (err: any, data?: PutSessionCommandOutput) => void): void;
|
|
22
|
-
putSession(args: PutSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSessionCommandOutput) => void): void;
|
|
23
|
-
|
|
24
|
-
recognizeText(args: RecognizeTextCommandInput, options?: __HttpHandlerOptions): Promise<RecognizeTextCommandOutput>;
|
|
25
|
-
recognizeText(args: RecognizeTextCommandInput, cb: (err: any, data?: RecognizeTextCommandOutput) => void): void;
|
|
26
|
-
recognizeText(args: RecognizeTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RecognizeTextCommandOutput) => void): void;
|
|
27
|
-
|
|
28
|
-
recognizeUtterance(args: RecognizeUtteranceCommandInput, options?: __HttpHandlerOptions): Promise<RecognizeUtteranceCommandOutput>;
|
|
29
|
-
recognizeUtterance(args: RecognizeUtteranceCommandInput, cb: (err: any, data?: RecognizeUtteranceCommandOutput) => void): void;
|
|
30
|
-
recognizeUtterance(args: RecognizeUtteranceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RecognizeUtteranceCommandOutput) => void): void;
|
|
31
|
-
|
|
32
|
-
startConversation(args: StartConversationCommandInput, options?: __HttpHandlerOptions): Promise<StartConversationCommandOutput>;
|
|
33
|
-
startConversation(args: StartConversationCommandInput, cb: (err: any, data?: StartConversationCommandOutput) => void): void;
|
|
34
|
-
startConversation(args: StartConversationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartConversationCommandOutput) => void): void;
|
|
35
|
-
}
|