@aws-sdk/client-lex-runtime-v2 3.46.0 → 3.48.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 +38 -0
- package/dist-cjs/models/models_0.js +24 -54
- package/dist-cjs/protocols/Aws_restJson1.js +107 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -1
- package/dist-es/models/models_0.js +20 -40
- package/dist-es/protocols/Aws_restJson1.js +98 -2
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +12 -3
- package/dist-types/LexRuntimeV2Client.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +75 -49
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +2 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +31 -32
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +40 -40
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
45
|
|
|
8
46
|
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.
|
|
4
|
-
exports.StartConversationResponse = exports.StartConversationResponseEventStream = exports.RecognizeTextResponse =
|
|
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;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
-
var AccessDeniedException;
|
|
7
|
-
(function (AccessDeniedException) {
|
|
8
|
-
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
9
|
-
...obj,
|
|
10
|
-
});
|
|
11
|
-
})(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
|
|
12
6
|
var ActiveContextTimeToLive;
|
|
13
7
|
(function (ActiveContextTimeToLive) {
|
|
14
8
|
ActiveContextTimeToLive.filterSensitiveLog = (obj) => ({
|
|
@@ -34,12 +28,6 @@ var AudioResponseEvent;
|
|
|
34
28
|
...obj,
|
|
35
29
|
});
|
|
36
30
|
})(AudioResponseEvent = exports.AudioResponseEvent || (exports.AudioResponseEvent = {}));
|
|
37
|
-
var ConflictException;
|
|
38
|
-
(function (ConflictException) {
|
|
39
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
40
|
-
...obj,
|
|
41
|
-
});
|
|
42
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
43
31
|
var DeleteSessionRequest;
|
|
44
32
|
(function (DeleteSessionRequest) {
|
|
45
33
|
DeleteSessionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -52,30 +40,6 @@ var DeleteSessionResponse;
|
|
|
52
40
|
...obj,
|
|
53
41
|
});
|
|
54
42
|
})(DeleteSessionResponse = exports.DeleteSessionResponse || (exports.DeleteSessionResponse = {}));
|
|
55
|
-
var InternalServerException;
|
|
56
|
-
(function (InternalServerException) {
|
|
57
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
58
|
-
...obj,
|
|
59
|
-
});
|
|
60
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
61
|
-
var ResourceNotFoundException;
|
|
62
|
-
(function (ResourceNotFoundException) {
|
|
63
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
64
|
-
...obj,
|
|
65
|
-
});
|
|
66
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
67
|
-
var ThrottlingException;
|
|
68
|
-
(function (ThrottlingException) {
|
|
69
|
-
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
70
|
-
...obj,
|
|
71
|
-
});
|
|
72
|
-
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
73
|
-
var ValidationException;
|
|
74
|
-
(function (ValidationException) {
|
|
75
|
-
ValidationException.filterSensitiveLog = (obj) => ({
|
|
76
|
-
...obj,
|
|
77
|
-
});
|
|
78
|
-
})(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
|
|
79
43
|
var GetSessionRequest;
|
|
80
44
|
(function (GetSessionRequest) {
|
|
81
45
|
GetSessionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -180,18 +144,24 @@ var DialogAction;
|
|
|
180
144
|
...obj,
|
|
181
145
|
});
|
|
182
146
|
})(DialogAction = exports.DialogAction || (exports.DialogAction = {}));
|
|
183
|
-
var
|
|
184
|
-
(function (
|
|
185
|
-
|
|
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) => ({
|
|
186
156
|
...obj,
|
|
187
157
|
});
|
|
188
|
-
})(
|
|
189
|
-
var
|
|
190
|
-
(function (
|
|
191
|
-
|
|
158
|
+
})(RuntimeHintDetails = exports.RuntimeHintDetails || (exports.RuntimeHintDetails = {}));
|
|
159
|
+
var RuntimeHints;
|
|
160
|
+
(function (RuntimeHints) {
|
|
161
|
+
RuntimeHints.filterSensitiveLog = (obj) => ({
|
|
192
162
|
...obj,
|
|
193
163
|
});
|
|
194
|
-
})(
|
|
164
|
+
})(RuntimeHints = exports.RuntimeHints || (exports.RuntimeHints = {}));
|
|
195
165
|
var PutSessionResponse;
|
|
196
166
|
(function (PutSessionResponse) {
|
|
197
167
|
PutSessionResponse.filterSensitiveLog = (obj) => ({
|
|
@@ -438,21 +408,21 @@ var StartConversationResponseEventStream;
|
|
|
438
408
|
if (obj.HeartbeatEvent !== undefined)
|
|
439
409
|
return { HeartbeatEvent: HeartbeatEvent.filterSensitiveLog(obj.HeartbeatEvent) };
|
|
440
410
|
if (obj.AccessDeniedException !== undefined)
|
|
441
|
-
return { AccessDeniedException:
|
|
411
|
+
return { AccessDeniedException: obj.AccessDeniedException };
|
|
442
412
|
if (obj.ResourceNotFoundException !== undefined)
|
|
443
|
-
return { ResourceNotFoundException:
|
|
413
|
+
return { ResourceNotFoundException: obj.ResourceNotFoundException };
|
|
444
414
|
if (obj.ValidationException !== undefined)
|
|
445
|
-
return { ValidationException:
|
|
415
|
+
return { ValidationException: obj.ValidationException };
|
|
446
416
|
if (obj.ThrottlingException !== undefined)
|
|
447
|
-
return { ThrottlingException:
|
|
417
|
+
return { ThrottlingException: obj.ThrottlingException };
|
|
448
418
|
if (obj.InternalServerException !== undefined)
|
|
449
|
-
return { InternalServerException:
|
|
419
|
+
return { InternalServerException: obj.InternalServerException };
|
|
450
420
|
if (obj.ConflictException !== undefined)
|
|
451
|
-
return { ConflictException:
|
|
421
|
+
return { ConflictException: obj.ConflictException };
|
|
452
422
|
if (obj.DependencyFailedException !== undefined)
|
|
453
|
-
return { DependencyFailedException:
|
|
423
|
+
return { DependencyFailedException: obj.DependencyFailedException };
|
|
454
424
|
if (obj.BadGatewayException !== undefined)
|
|
455
|
-
return { BadGatewayException:
|
|
425
|
+
return { BadGatewayException: obj.BadGatewayException };
|
|
456
426
|
if (obj.$unknown !== undefined)
|
|
457
427
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
458
428
|
};
|
|
@@ -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) {
|
|
@@ -14,13 +14,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
14
14
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
15
15
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
16
16
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
18
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
17
19
|
const getRuntimeConfig = (config) => {
|
|
18
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
21
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
23
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
20
24
|
return {
|
|
21
25
|
...clientSharedValues,
|
|
22
26
|
...config,
|
|
23
27
|
runtime: "browser",
|
|
28
|
+
defaultsMode,
|
|
24
29
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
25
30
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
26
31
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -30,8 +35,8 @@ const getRuntimeConfig = (config) => {
|
|
|
30
35
|
eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
31
36
|
maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
32
37
|
region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
33
|
-
requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new fetch_http_handler_1.FetchHttpHandler(),
|
|
34
|
-
retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (() =>
|
|
38
|
+
requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
39
|
+
retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
35
40
|
sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
|
|
36
41
|
streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : fetch_http_handler_1.streamCollector,
|
|
37
42
|
useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -17,13 +17,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
17
17
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
18
18
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
19
19
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
20
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
21
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
22
|
const getRuntimeConfig = (config) => {
|
|
21
23
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
24
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
25
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
26
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
27
|
return {
|
|
24
28
|
...clientSharedValues,
|
|
25
29
|
...config,
|
|
26
30
|
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
27
32
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
33
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
34
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -34,7 +39,10 @@ const getRuntimeConfig = (config) => {
|
|
|
34
39
|
maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
35
40
|
region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
36
41
|
requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttp2Handler(),
|
|
37
|
-
retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig(
|
|
42
|
+
retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig({
|
|
43
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
44
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
45
|
+
}),
|
|
38
46
|
sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
|
|
39
47
|
streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
|
|
40
48
|
useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
-
export var AccessDeniedException;
|
|
4
|
-
(function (AccessDeniedException) {
|
|
5
|
-
AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
6
|
-
})(AccessDeniedException || (AccessDeniedException = {}));
|
|
7
3
|
export var ActiveContextTimeToLive;
|
|
8
4
|
(function (ActiveContextTimeToLive) {
|
|
9
5
|
ActiveContextTimeToLive.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -20,10 +16,6 @@ export var AudioResponseEvent;
|
|
|
20
16
|
(function (AudioResponseEvent) {
|
|
21
17
|
AudioResponseEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
18
|
})(AudioResponseEvent || (AudioResponseEvent = {}));
|
|
23
|
-
export var ConflictException;
|
|
24
|
-
(function (ConflictException) {
|
|
25
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
26
|
-
})(ConflictException || (ConflictException = {}));
|
|
27
19
|
export var DeleteSessionRequest;
|
|
28
20
|
(function (DeleteSessionRequest) {
|
|
29
21
|
DeleteSessionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -32,22 +24,6 @@ export var DeleteSessionResponse;
|
|
|
32
24
|
(function (DeleteSessionResponse) {
|
|
33
25
|
DeleteSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
34
26
|
})(DeleteSessionResponse || (DeleteSessionResponse = {}));
|
|
35
|
-
export var InternalServerException;
|
|
36
|
-
(function (InternalServerException) {
|
|
37
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
38
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
39
|
-
export var ResourceNotFoundException;
|
|
40
|
-
(function (ResourceNotFoundException) {
|
|
41
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
42
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
43
|
-
export var ThrottlingException;
|
|
44
|
-
(function (ThrottlingException) {
|
|
45
|
-
ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
46
|
-
})(ThrottlingException || (ThrottlingException = {}));
|
|
47
|
-
export var ValidationException;
|
|
48
|
-
(function (ValidationException) {
|
|
49
|
-
ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
|
-
})(ValidationException || (ValidationException = {}));
|
|
51
27
|
export var GetSessionRequest;
|
|
52
28
|
(function (GetSessionRequest) {
|
|
53
29
|
GetSessionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -133,14 +109,18 @@ export var DialogAction;
|
|
|
133
109
|
(function (DialogAction) {
|
|
134
110
|
DialogAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
111
|
})(DialogAction || (DialogAction = {}));
|
|
136
|
-
export var
|
|
137
|
-
(function (
|
|
138
|
-
|
|
139
|
-
})(
|
|
140
|
-
export var
|
|
141
|
-
(function (
|
|
142
|
-
|
|
143
|
-
})(
|
|
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 = {}));
|
|
144
124
|
export var PutSessionResponse;
|
|
145
125
|
(function (PutSessionResponse) {
|
|
146
126
|
PutSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -333,21 +313,21 @@ export var StartConversationResponseEventStream;
|
|
|
333
313
|
if (obj.HeartbeatEvent !== undefined)
|
|
334
314
|
return { HeartbeatEvent: HeartbeatEvent.filterSensitiveLog(obj.HeartbeatEvent) };
|
|
335
315
|
if (obj.AccessDeniedException !== undefined)
|
|
336
|
-
return { AccessDeniedException:
|
|
316
|
+
return { AccessDeniedException: obj.AccessDeniedException };
|
|
337
317
|
if (obj.ResourceNotFoundException !== undefined)
|
|
338
|
-
return { ResourceNotFoundException:
|
|
318
|
+
return { ResourceNotFoundException: obj.ResourceNotFoundException };
|
|
339
319
|
if (obj.ValidationException !== undefined)
|
|
340
|
-
return { ValidationException:
|
|
320
|
+
return { ValidationException: obj.ValidationException };
|
|
341
321
|
if (obj.ThrottlingException !== undefined)
|
|
342
|
-
return { ThrottlingException:
|
|
322
|
+
return { ThrottlingException: obj.ThrottlingException };
|
|
343
323
|
if (obj.InternalServerException !== undefined)
|
|
344
|
-
return { InternalServerException:
|
|
324
|
+
return { InternalServerException: obj.InternalServerException };
|
|
345
325
|
if (obj.ConflictException !== undefined)
|
|
346
|
-
return { ConflictException:
|
|
326
|
+
return { ConflictException: obj.ConflictException };
|
|
347
327
|
if (obj.DependencyFailedException !== undefined)
|
|
348
|
-
return { DependencyFailedException:
|
|
328
|
+
return { DependencyFailedException: obj.DependencyFailedException };
|
|
349
329
|
if (obj.BadGatewayException !== undefined)
|
|
350
|
-
return { BadGatewayException:
|
|
330
|
+
return { BadGatewayException: obj.BadGatewayException };
|
|
351
331
|
if (obj.$unknown !== undefined)
|
|
352
332
|
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
|
|
353
333
|
};
|
|
@@ -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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser";
|
|
6
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
7
7
|
import { invalidFunction, invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
8
8
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
9
9
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -11,8 +11,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
11
11
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
12
12
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
13
13
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
15
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
14
16
|
export var getRuntimeConfig = function (config) {
|
|
15
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
18
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
16
20
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
17
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (function () { return ({ handle: invalidFunction("event stream request is not supported in browser.") }); }), eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : DEFAULT_MAX_ATTEMPTS, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new
|
|
21
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (function () { return ({ handle: invalidFunction("event stream request is not supported in browser.") }); }), eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : DEFAULT_MAX_ATTEMPTS, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new RequestHandler(defaultConfigProvider), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
22
|
+
switch (_a.label) {
|
|
23
|
+
case 0: return [4, defaultConfigProvider()];
|
|
24
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
25
|
+
}
|
|
26
|
+
}); }); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Sha256, streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
|
|
18
27
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
@@ -6,7 +6,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
6
6
|
import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node";
|
|
7
7
|
import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
|
|
8
8
|
import { Hash } from "@aws-sdk/hash-node";
|
|
9
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
9
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
10
10
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
11
11
|
import { NodeHttp2Handler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
12
12
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
@@ -14,8 +14,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
|
14
14
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
15
15
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
16
16
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
17
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
18
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
17
19
|
export var getRuntimeConfig = function (config) {
|
|
18
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
21
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
22
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
23
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(
|
|
24
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
25
|
+
switch (_a.label) {
|
|
26
|
+
case 0: return [4, defaultConfigProvider()];
|
|
27
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
28
|
+
}
|
|
29
|
+
}); }); } })), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Hash.bind(null, "sha256"), streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
|
|
21
30
|
};
|
|
@@ -6,7 +6,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
6
6
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
7
7
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
8
8
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
10
10
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
11
11
|
import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
|
|
12
12
|
import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
@@ -125,6 +125,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
125
125
|
* The function that provides necessary utilities for generating and parsing event stream
|
|
126
126
|
*/
|
|
127
127
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
128
|
+
/**
|
|
129
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
130
|
+
*/
|
|
131
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
128
132
|
}
|
|
129
133
|
declare type LexRuntimeV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
|
|
130
134
|
/**
|
|
@@ -9,12 +9,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
|
|
|
9
9
|
$fault: "client";
|
|
10
10
|
message: string | undefined;
|
|
11
11
|
}
|
|
12
|
-
export declare namespace AccessDeniedException {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
const filterSensitiveLog: (obj: AccessDeniedException) => any;
|
|
17
|
-
}
|
|
18
12
|
/**
|
|
19
13
|
* <p>The time that a context is active. You can specify the time to live
|
|
20
14
|
* in seconds or in conversation turns.</p>
|
|
@@ -151,12 +145,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
|
151
145
|
$fault: "client";
|
|
152
146
|
message: string | undefined;
|
|
153
147
|
}
|
|
154
|
-
export declare namespace ConflictException {
|
|
155
|
-
/**
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
159
|
-
}
|
|
160
148
|
export interface DeleteSessionRequest {
|
|
161
149
|
/**
|
|
162
150
|
* <p>The identifier of the bot that contains the session data.</p>
|
|
@@ -215,12 +203,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
|
|
|
215
203
|
$fault: "server";
|
|
216
204
|
message: string | undefined;
|
|
217
205
|
}
|
|
218
|
-
export declare namespace InternalServerException {
|
|
219
|
-
/**
|
|
220
|
-
* @internal
|
|
221
|
-
*/
|
|
222
|
-
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
223
|
-
}
|
|
224
206
|
/**
|
|
225
207
|
* <p></p>
|
|
226
208
|
*/
|
|
@@ -229,12 +211,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
229
211
|
$fault: "client";
|
|
230
212
|
message: string | undefined;
|
|
231
213
|
}
|
|
232
|
-
export declare namespace ResourceNotFoundException {
|
|
233
|
-
/**
|
|
234
|
-
* @internal
|
|
235
|
-
*/
|
|
236
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
237
|
-
}
|
|
238
214
|
/**
|
|
239
215
|
* <p></p>
|
|
240
216
|
*/
|
|
@@ -243,12 +219,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
|
|
|
243
219
|
$fault: "client";
|
|
244
220
|
message: string | undefined;
|
|
245
221
|
}
|
|
246
|
-
export declare namespace ThrottlingException {
|
|
247
|
-
/**
|
|
248
|
-
* @internal
|
|
249
|
-
*/
|
|
250
|
-
const filterSensitiveLog: (obj: ThrottlingException) => any;
|
|
251
|
-
}
|
|
252
222
|
/**
|
|
253
223
|
* <p></p>
|
|
254
224
|
*/
|
|
@@ -257,12 +227,6 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
|
|
|
257
227
|
$fault: "client";
|
|
258
228
|
message: string | undefined;
|
|
259
229
|
}
|
|
260
|
-
export declare namespace ValidationException {
|
|
261
|
-
/**
|
|
262
|
-
* @internal
|
|
263
|
-
*/
|
|
264
|
-
const filterSensitiveLog: (obj: ValidationException) => any;
|
|
265
|
-
}
|
|
266
230
|
export interface GetSessionRequest {
|
|
267
231
|
/**
|
|
268
232
|
* <p>The identifier of the bot that contains the session data.</p>
|
|
@@ -577,6 +541,74 @@ export declare namespace DialogAction {
|
|
|
577
541
|
*/
|
|
578
542
|
const filterSensitiveLog: (obj: DialogAction) => any;
|
|
579
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
|
+
}
|
|
580
612
|
/**
|
|
581
613
|
* <p></p>
|
|
582
614
|
*/
|
|
@@ -585,12 +617,6 @@ export interface BadGatewayException extends __SmithyException, $MetadataBearer
|
|
|
585
617
|
$fault: "server";
|
|
586
618
|
message: string | undefined;
|
|
587
619
|
}
|
|
588
|
-
export declare namespace BadGatewayException {
|
|
589
|
-
/**
|
|
590
|
-
* @internal
|
|
591
|
-
*/
|
|
592
|
-
const filterSensitiveLog: (obj: BadGatewayException) => any;
|
|
593
|
-
}
|
|
594
620
|
/**
|
|
595
621
|
* <p></p>
|
|
596
622
|
*/
|
|
@@ -599,12 +625,6 @@ export interface DependencyFailedException extends __SmithyException, $MetadataB
|
|
|
599
625
|
$fault: "client";
|
|
600
626
|
message: string | undefined;
|
|
601
627
|
}
|
|
602
|
-
export declare namespace DependencyFailedException {
|
|
603
|
-
/**
|
|
604
|
-
* @internal
|
|
605
|
-
*/
|
|
606
|
-
const filterSensitiveLog: (obj: DependencyFailedException) => any;
|
|
607
|
-
}
|
|
608
628
|
export interface PutSessionResponse {
|
|
609
629
|
/**
|
|
610
630
|
* <p>The type of response. Same as the type specified in the
|
|
@@ -1204,9 +1224,15 @@ export interface SessionState {
|
|
|
1204
1224
|
[key: string]: string;
|
|
1205
1225
|
};
|
|
1206
1226
|
/**
|
|
1207
|
-
* <p
|
|
1227
|
+
* <p>A unique identifier for a specific request.</p>
|
|
1208
1228
|
*/
|
|
1209
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;
|
|
1210
1236
|
}
|
|
1211
1237
|
export declare namespace SessionState {
|
|
1212
1238
|
/**
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -14,7 +15,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
14
15
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
15
16
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
16
17
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
17
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
18
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
18
19
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
19
20
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
20
21
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -5,10 +5,11 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
|
|
14
15
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
27
27
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
28
28
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
29
29
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
30
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
30
31
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
31
32
|
tls?: boolean | undefined;
|
|
32
33
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -6,7 +6,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
6
6
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
7
7
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
8
8
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
10
10
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
11
11
|
import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
|
|
12
12
|
import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
@@ -63,6 +63,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
63
63
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
64
64
|
|
|
65
65
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
66
|
+
|
|
67
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
66
68
|
}
|
|
67
69
|
declare type LexRuntimeV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
|
|
68
70
|
|
|
@@ -7,10 +7,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
|
|
|
7
7
|
$fault: "client";
|
|
8
8
|
message: string | undefined;
|
|
9
9
|
}
|
|
10
|
-
export declare namespace AccessDeniedException {
|
|
11
|
-
|
|
12
|
-
const filterSensitiveLog: (obj: AccessDeniedException) => any;
|
|
13
|
-
}
|
|
14
10
|
|
|
15
11
|
export interface ActiveContextTimeToLive {
|
|
16
12
|
|
|
@@ -71,10 +67,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
|
71
67
|
$fault: "client";
|
|
72
68
|
message: string | undefined;
|
|
73
69
|
}
|
|
74
|
-
export declare namespace ConflictException {
|
|
75
|
-
|
|
76
|
-
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
77
|
-
}
|
|
78
70
|
export interface DeleteSessionRequest {
|
|
79
71
|
|
|
80
72
|
botId: string | undefined;
|
|
@@ -109,40 +101,24 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
|
|
|
109
101
|
$fault: "server";
|
|
110
102
|
message: string | undefined;
|
|
111
103
|
}
|
|
112
|
-
export declare namespace InternalServerException {
|
|
113
|
-
|
|
114
|
-
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
115
|
-
}
|
|
116
104
|
|
|
117
105
|
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
118
106
|
name: "ResourceNotFoundException";
|
|
119
107
|
$fault: "client";
|
|
120
108
|
message: string | undefined;
|
|
121
109
|
}
|
|
122
|
-
export declare namespace ResourceNotFoundException {
|
|
123
|
-
|
|
124
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
125
|
-
}
|
|
126
110
|
|
|
127
111
|
export interface ThrottlingException extends __SmithyException, $MetadataBearer {
|
|
128
112
|
name: "ThrottlingException";
|
|
129
113
|
$fault: "client";
|
|
130
114
|
message: string | undefined;
|
|
131
115
|
}
|
|
132
|
-
export declare namespace ThrottlingException {
|
|
133
|
-
|
|
134
|
-
const filterSensitiveLog: (obj: ThrottlingException) => any;
|
|
135
|
-
}
|
|
136
116
|
|
|
137
117
|
export interface ValidationException extends __SmithyException, $MetadataBearer {
|
|
138
118
|
name: "ValidationException";
|
|
139
119
|
$fault: "client";
|
|
140
120
|
message: string | undefined;
|
|
141
121
|
}
|
|
142
|
-
export declare namespace ValidationException {
|
|
143
|
-
|
|
144
|
-
const filterSensitiveLog: (obj: ValidationException) => any;
|
|
145
|
-
}
|
|
146
122
|
export interface GetSessionRequest {
|
|
147
123
|
|
|
148
124
|
botId: string | undefined;
|
|
@@ -300,25 +276,48 @@ export declare namespace DialogAction {
|
|
|
300
276
|
const filterSensitiveLog: (obj: DialogAction) => any;
|
|
301
277
|
}
|
|
302
278
|
|
|
279
|
+
export interface RuntimeHintValue {
|
|
280
|
+
|
|
281
|
+
phrase: string | undefined;
|
|
282
|
+
}
|
|
283
|
+
export declare namespace RuntimeHintValue {
|
|
284
|
+
|
|
285
|
+
const filterSensitiveLog: (obj: RuntimeHintValue) => any;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface RuntimeHintDetails {
|
|
289
|
+
|
|
290
|
+
runtimeHintValues: RuntimeHintValue[] | undefined;
|
|
291
|
+
}
|
|
292
|
+
export declare namespace RuntimeHintDetails {
|
|
293
|
+
|
|
294
|
+
const filterSensitiveLog: (obj: RuntimeHintDetails) => any;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface RuntimeHints {
|
|
298
|
+
|
|
299
|
+
slotHints?: {
|
|
300
|
+
[key: string]: {
|
|
301
|
+
[key: string]: RuntimeHintDetails;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export declare namespace RuntimeHints {
|
|
306
|
+
|
|
307
|
+
const filterSensitiveLog: (obj: RuntimeHints) => any;
|
|
308
|
+
}
|
|
309
|
+
|
|
303
310
|
export interface BadGatewayException extends __SmithyException, $MetadataBearer {
|
|
304
311
|
name: "BadGatewayException";
|
|
305
312
|
$fault: "server";
|
|
306
313
|
message: string | undefined;
|
|
307
314
|
}
|
|
308
|
-
export declare namespace BadGatewayException {
|
|
309
|
-
|
|
310
|
-
const filterSensitiveLog: (obj: BadGatewayException) => any;
|
|
311
|
-
}
|
|
312
315
|
|
|
313
316
|
export interface DependencyFailedException extends __SmithyException, $MetadataBearer {
|
|
314
317
|
name: "DependencyFailedException";
|
|
315
318
|
$fault: "client";
|
|
316
319
|
message: string | undefined;
|
|
317
320
|
}
|
|
318
|
-
export declare namespace DependencyFailedException {
|
|
319
|
-
|
|
320
|
-
const filterSensitiveLog: (obj: DependencyFailedException) => any;
|
|
321
|
-
}
|
|
322
321
|
export interface PutSessionResponse {
|
|
323
322
|
|
|
324
323
|
contentType?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
12
13
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -3,10 +3,11 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
|
|
12
13
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
25
25
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
26
26
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
27
27
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
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.48.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "yarn
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
8
|
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "
|
|
13
|
-
"clean:dist": "rimraf ./dist-*",
|
|
14
|
-
"clean:docs": "rimraf ./docs"
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
15
13
|
},
|
|
16
14
|
"main": "./dist-cjs/index.js",
|
|
17
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,43 +18,45 @@
|
|
|
20
18
|
"dependencies": {
|
|
21
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
27
|
-
"@aws-sdk/eventstream-serde-browser": "3.
|
|
28
|
-
"@aws-sdk/eventstream-serde-config-resolver": "3.
|
|
29
|
-
"@aws-sdk/eventstream-serde-node": "3.
|
|
30
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
31
|
-
"@aws-sdk/hash-node": "3.
|
|
32
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
33
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
34
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
35
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
36
|
-
"@aws-sdk/middleware-logger": "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-browser": "3.
|
|
49
|
-
"@aws-sdk/util-base64-node": "3.
|
|
50
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
51
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
52
|
-
"@aws-sdk/util-
|
|
53
|
-
"@aws-sdk/util-
|
|
54
|
-
"@aws-sdk/util-
|
|
55
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/client-sts": "3.48.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.47.2",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.48.0",
|
|
24
|
+
"@aws-sdk/eventstream-handler-node": "3.47.2",
|
|
25
|
+
"@aws-sdk/eventstream-serde-browser": "3.47.2",
|
|
26
|
+
"@aws-sdk/eventstream-serde-config-resolver": "3.47.2",
|
|
27
|
+
"@aws-sdk/eventstream-serde-node": "3.47.2",
|
|
28
|
+
"@aws-sdk/fetch-http-handler": "3.47.2",
|
|
29
|
+
"@aws-sdk/hash-node": "3.47.2",
|
|
30
|
+
"@aws-sdk/invalid-dependency": "3.47.2",
|
|
31
|
+
"@aws-sdk/middleware-content-length": "3.47.2",
|
|
32
|
+
"@aws-sdk/middleware-eventstream": "3.47.2",
|
|
33
|
+
"@aws-sdk/middleware-host-header": "3.47.2",
|
|
34
|
+
"@aws-sdk/middleware-logger": "3.47.2",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.47.2",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.47.2",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.47.2",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.47.2",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.47.2",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.47.2",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.47.2",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.47.2",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.47.2",
|
|
44
|
+
"@aws-sdk/types": "3.47.1",
|
|
45
|
+
"@aws-sdk/url-parser": "3.47.2",
|
|
46
|
+
"@aws-sdk/util-base64-browser": "3.47.1",
|
|
47
|
+
"@aws-sdk/util-base64-node": "3.47.2",
|
|
48
|
+
"@aws-sdk/util-body-length-browser": "3.47.1",
|
|
49
|
+
"@aws-sdk/util-body-length-node": "3.47.1",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.2",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.2",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.47.2",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.47.2",
|
|
54
|
+
"@aws-sdk/util-utf8-browser": "3.47.1",
|
|
55
|
+
"@aws-sdk/util-utf8-node": "3.47.2",
|
|
56
56
|
"tslib": "^2.3.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.1",
|
|
60
60
|
"@types/node": "^12.7.5"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|