@aws-sdk/client-lex-runtime-service 3.408.0 → 3.409.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = { [s]: false, "type": "String" }, g = { [s]: true, "default": false, "type": "Boolean" }, h = { [v]: "Endpoint" }, i = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, k = {}, l = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: a }, "supportsFIPS"] }] }, m = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: a }, "supportsDualStack"] }] }, n = { [t]: "getAttr", [u]: [{ [v]: a }, "name"] }, o = { "url": "https://runtime-fips.lex.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, p = [h], q = [i], r = [j];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [t]: "isSet", [u]: p }, { [t]: "parseURL", [u]: p, assign: "url" }], type: b, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://runtime.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: e, [u]: ["aws", n] }], endpoint: o, type: d }, { conditions: [{ [t]: e, [u]: ["aws-us-gov", n] }], endpoint: o, type: d }, { endpoint: { url: "https://runtime.lex-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://runtime.lex.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://runtime.lex.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] };
4
+ const u = "required", v = "fn", w = "argv", x = "ref", y = "properties", z = "headers";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [u]: false, "type": "String" }, g = { [u]: true, "default": false, "type": "Boolean" }, h = { [x]: "Endpoint" }, i = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, j = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, k = {}, l = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsFIPS"] }] }, m = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsDualStack"] }] }, n = { "url": "https://runtime-fips.lex.{Region}.amazonaws.com", [y]: {}, [z]: {} }, o = { "url": "https://runtime.lex.{Region}.amazonaws.com", [y]: {}, [z]: {} }, p = [i], q = [j], r = [{ [x]: "Region" }], s = [{ [v]: "stringEquals", [w]: ["aws", { [v]: "getAttr", [w]: [{ [x]: e }, "name"] }] }], t = [{ [v]: "stringEquals", [w]: ["aws-us-gov", { [v]: "getAttr", [w]: [{ [x]: e }, "name"] }] }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [v]: a, [w]: [h] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, [y]: k, [z]: k }, type: d }] }, { conditions: [{ [v]: a, [w]: r }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: r, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://runtime.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [y]: k, [z]: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [l], type: b, rules: [{ conditions: s, endpoint: n, type: d }, { conditions: t, endpoint: n, type: d }, { endpoint: { url: "https://runtime.lex-fips.{Region}.{PartitionResult#dnsSuffix}", [y]: k, [z]: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://runtime.lex.{Region}.{PartitionResult#dualStackDnsSuffix}", [y]: k, [z]: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { conditions: s, endpoint: o, type: d }, { conditions: t, endpoint: o, type: d }, { endpoint: { url: "https://runtime.lex.{Region}.{PartitionResult#dnsSuffix}", [y]: k, [z]: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -1,4 +1,4 @@
1
- const s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = { [s]: false, "type": "String" }, g = { [s]: true, "default": false, "type": "Boolean" }, h = { [v]: "Endpoint" }, i = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, k = {}, l = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: a }, "supportsFIPS"] }] }, m = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: a }, "supportsDualStack"] }] }, n = { [t]: "getAttr", [u]: [{ [v]: a }, "name"] }, o = { "url": "https://runtime-fips.lex.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, p = [h], q = [i], r = [j];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [t]: "isSet", [u]: p }, { [t]: "parseURL", [u]: p, assign: "url" }], type: b, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://runtime.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: e, [u]: ["aws", n] }], endpoint: o, type: d }, { conditions: [{ [t]: e, [u]: ["aws-us-gov", n] }], endpoint: o, type: d }, { endpoint: { url: "https://runtime.lex-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://runtime.lex.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://runtime.lex.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] };
1
+ const u = "required", v = "fn", w = "argv", x = "ref", y = "properties", z = "headers";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [u]: false, "type": "String" }, g = { [u]: true, "default": false, "type": "Boolean" }, h = { [x]: "Endpoint" }, i = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, j = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, k = {}, l = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsFIPS"] }] }, m = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsDualStack"] }] }, n = { "url": "https://runtime-fips.lex.{Region}.amazonaws.com", [y]: {}, [z]: {} }, o = { "url": "https://runtime.lex.{Region}.amazonaws.com", [y]: {}, [z]: {} }, p = [i], q = [j], r = [{ [x]: "Region" }], s = [{ [v]: "stringEquals", [w]: ["aws", { [v]: "getAttr", [w]: [{ [x]: e }, "name"] }] }], t = [{ [v]: "stringEquals", [w]: ["aws-us-gov", { [v]: "getAttr", [w]: [{ [x]: e }, "name"] }] }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [v]: a, [w]: [h] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, [y]: k, [z]: k }, type: d }] }, { conditions: [{ [v]: a, [w]: r }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: r, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://runtime.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [y]: k, [z]: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [l], type: b, rules: [{ conditions: s, endpoint: n, type: d }, { conditions: t, endpoint: n, type: d }, { endpoint: { url: "https://runtime.lex-fips.{Region}.{PartitionResult#dnsSuffix}", [y]: k, [z]: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://runtime.lex.{Region}.{PartitionResult#dualStackDnsSuffix}", [y]: k, [z]: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { conditions: s, endpoint: o, type: d }, { conditions: t, endpoint: o, type: d }, { endpoint: { url: "https://runtime.lex.{Region}.{PartitionResult#dnsSuffix}", [y]: k, [z]: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -47,9 +47,9 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
47
47
  * // slots: { // StringMap
48
48
  * // "<keys>": "STRING_VALUE",
49
49
  * // },
50
- * // confirmationStatus: "STRING_VALUE",
51
- * // dialogActionType: "STRING_VALUE", // required
52
- * // fulfillmentState: "STRING_VALUE",
50
+ * // confirmationStatus: "None" || "Confirmed" || "Denied",
51
+ * // dialogActionType: "ElicitIntent" || "ConfirmIntent" || "ElicitSlot" || "Close" || "Delegate", // required
52
+ * // fulfillmentState: "Fulfilled" || "Failed" || "ReadyForFulfillment",
53
53
  * // slotToElicit: "STRING_VALUE",
54
54
  * // },
55
55
  * // ],
@@ -58,13 +58,13 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
58
58
  * // },
59
59
  * // sessionId: "STRING_VALUE",
60
60
  * // dialogAction: { // DialogAction
61
- * // type: "STRING_VALUE", // required
61
+ * // type: "ElicitIntent" || "ConfirmIntent" || "ElicitSlot" || "Close" || "Delegate", // required
62
62
  * // intentName: "STRING_VALUE",
63
63
  * // slots: "<StringMap>",
64
64
  * // slotToElicit: "STRING_VALUE",
65
- * // fulfillmentState: "STRING_VALUE",
65
+ * // fulfillmentState: "Fulfilled" || "Failed" || "ReadyForFulfillment",
66
66
  * // message: "STRING_VALUE",
67
- * // messageFormat: "STRING_VALUE",
67
+ * // messageFormat: "PlainText" || "CustomPayload" || "SSML" || "Composite",
68
68
  * // },
69
69
  * // activeContexts: [ // ActiveContextsList
70
70
  * // { // ActiveContext
@@ -131,8 +131,8 @@ export interface PostContentCommandOutput extends Omit<PostContentResponse, "aud
131
131
  * // sentimentResponse: "STRING_VALUE",
132
132
  * // message: "STRING_VALUE",
133
133
  * // encodedMessage: "STRING_VALUE",
134
- * // messageFormat: "STRING_VALUE",
135
- * // dialogState: "STRING_VALUE",
134
+ * // messageFormat: "PlainText" || "CustomPayload" || "SSML" || "Composite",
135
+ * // dialogState: "ElicitIntent" || "ConfirmIntent" || "ElicitSlot" || "Fulfilled" || "ReadyForFulfillment" || "Failed",
136
136
  * // slotToElicit: "STRING_VALUE",
137
137
  * // inputTranscript: "STRING_VALUE",
138
138
  * // encodedInputTranscript: "STRING_VALUE",
@@ -158,12 +158,12 @@ export interface PostTextCommandOutput extends PostTextResponse, __MetadataBeare
158
158
  * // sentimentLabel: "STRING_VALUE",
159
159
  * // sentimentScore: "STRING_VALUE",
160
160
  * // },
161
- * // messageFormat: "STRING_VALUE",
162
- * // dialogState: "STRING_VALUE",
161
+ * // messageFormat: "PlainText" || "CustomPayload" || "SSML" || "Composite",
162
+ * // dialogState: "ElicitIntent" || "ConfirmIntent" || "ElicitSlot" || "Fulfilled" || "ReadyForFulfillment" || "Failed",
163
163
  * // slotToElicit: "STRING_VALUE",
164
164
  * // responseCard: { // ResponseCard
165
165
  * // version: "STRING_VALUE",
166
- * // contentType: "STRING_VALUE",
166
+ * // contentType: "application/vnd.amazonaws.card.generic",
167
167
  * // genericAttachments: [ // genericAttachmentList
168
168
  * // { // GenericAttachment
169
169
  * // title: "STRING_VALUE",
@@ -43,24 +43,24 @@ export interface PutSessionCommandOutput extends Omit<PutSessionResponse, "audio
43
43
  * "<keys>": "STRING_VALUE",
44
44
  * },
45
45
  * dialogAction: { // DialogAction
46
- * type: "STRING_VALUE", // required
46
+ * type: "ElicitIntent" || "ConfirmIntent" || "ElicitSlot" || "Close" || "Delegate", // required
47
47
  * intentName: "STRING_VALUE",
48
48
  * slots: {
49
49
  * "<keys>": "STRING_VALUE",
50
50
  * },
51
51
  * slotToElicit: "STRING_VALUE",
52
- * fulfillmentState: "STRING_VALUE",
52
+ * fulfillmentState: "Fulfilled" || "Failed" || "ReadyForFulfillment",
53
53
  * message: "STRING_VALUE",
54
- * messageFormat: "STRING_VALUE",
54
+ * messageFormat: "PlainText" || "CustomPayload" || "SSML" || "Composite",
55
55
  * },
56
56
  * recentIntentSummaryView: [ // IntentSummaryList
57
57
  * { // IntentSummary
58
58
  * intentName: "STRING_VALUE",
59
59
  * checkpointLabel: "STRING_VALUE",
60
60
  * slots: "<StringMap>",
61
- * confirmationStatus: "STRING_VALUE",
62
- * dialogActionType: "STRING_VALUE", // required
63
- * fulfillmentState: "STRING_VALUE",
61
+ * confirmationStatus: "None" || "Confirmed" || "Denied",
62
+ * dialogActionType: "ElicitIntent" || "ConfirmIntent" || "ElicitSlot" || "Close" || "Delegate", // required
63
+ * fulfillmentState: "Fulfilled" || "Failed" || "ReadyForFulfillment",
64
64
  * slotToElicit: "STRING_VALUE",
65
65
  * },
66
66
  * ],
@@ -87,8 +87,8 @@ export interface PutSessionCommandOutput extends Omit<PutSessionResponse, "audio
87
87
  * // sessionAttributes: "STRING_VALUE",
88
88
  * // message: "STRING_VALUE",
89
89
  * // encodedMessage: "STRING_VALUE",
90
- * // messageFormat: "STRING_VALUE",
91
- * // dialogState: "STRING_VALUE",
90
+ * // messageFormat: "PlainText" || "CustomPayload" || "SSML" || "Composite",
91
+ * // dialogState: "ElicitIntent" || "ConfirmIntent" || "ElicitSlot" || "Fulfilled" || "ReadyForFulfillment" || "Failed",
92
92
  * // slotToElicit: "STRING_VALUE",
93
93
  * // audioStream: "STREAMING_BLOB_VALUE",
94
94
  * // sessionId: "STRING_VALUE",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-runtime-service",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native",
4
- "version": "3.408.0",
4
+ "version": "3.409.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -23,8 +23,8 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "3.0.0",
25
25
  "@aws-crypto/sha256-js": "3.0.0",
26
- "@aws-sdk/client-sts": "3.408.0",
27
- "@aws-sdk/credential-provider-node": "3.408.0",
26
+ "@aws-sdk/client-sts": "3.409.0",
27
+ "@aws-sdk/credential-provider-node": "3.409.0",
28
28
  "@aws-sdk/middleware-host-header": "3.408.0",
29
29
  "@aws-sdk/middleware-logger": "3.408.0",
30
30
  "@aws-sdk/middleware-recursion-detection": "3.408.0",