@aws-sdk/client-lex-models-v2 3.145.0 → 3.154.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 +27 -0
- package/dist-cjs/commands/CreateIntentCommand.js +3 -3
- package/dist-cjs/commands/CreateSlotCommand.js +3 -3
- package/dist-cjs/commands/DescribeIntentCommand.js +2 -1
- package/dist-cjs/commands/DescribeSlotCommand.js +2 -1
- package/dist-cjs/commands/UpdateIntentCommand.js +3 -3
- package/dist-cjs/commands/UpdateSlotCommand.js +3 -3
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +117 -92
- package/dist-cjs/models/models_1.js +51 -0
- package/dist-cjs/protocols/Aws_restJson1.js +497 -0
- package/dist-es/commands/CreateIntentCommand.js +1 -1
- package/dist-es/commands/CreateSlotCommand.js +1 -1
- package/dist-es/commands/DescribeIntentCommand.js +2 -1
- package/dist-es/commands/DescribeSlotCommand.js +2 -1
- package/dist-es/commands/UpdateIntentCommand.js +1 -1
- package/dist-es/commands/UpdateSlotCommand.js +1 -1
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +41 -22
- package/dist-es/models/models_1.js +13 -0
- package/dist-es/protocols/Aws_restJson1.js +416 -8
- package/dist-types/commands/CreateIntentCommand.d.ts +1 -1
- package/dist-types/commands/CreateSlotCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIntentCommand.d.ts +2 -1
- package/dist-types/commands/DescribeSlotCommand.d.ts +2 -1
- package/dist-types/commands/UpdateIntentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSlotCommand.d.ts +1 -1
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +631 -1004
- package/dist-types/models/models_1.d.ts +912 -0
- package/dist-types/ts3.4/commands/CreateIntentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateSlotCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeIntentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DescribeSlotCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateIntentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSlotCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +261 -408
- package/dist-types/ts3.4/models/models_1.d.ts +381 -0
- package/package.json +4 -4
|
@@ -190,6 +190,9 @@ const serializeAws_restJson1CreateIntentCommand = async (input, context) => {
|
|
|
190
190
|
...(input.fulfillmentCodeHook != null && {
|
|
191
191
|
fulfillmentCodeHook: serializeAws_restJson1FulfillmentCodeHookSettings(input.fulfillmentCodeHook, context),
|
|
192
192
|
}),
|
|
193
|
+
...(input.initialResponseSetting != null && {
|
|
194
|
+
initialResponseSetting: serializeAws_restJson1InitialResponseSetting(input.initialResponseSetting, context),
|
|
195
|
+
}),
|
|
193
196
|
...(input.inputContexts != null && {
|
|
194
197
|
inputContexts: serializeAws_restJson1InputContextsList(input.inputContexts, context),
|
|
195
198
|
}),
|
|
@@ -1559,6 +1562,9 @@ const serializeAws_restJson1UpdateIntentCommand = async (input, context) => {
|
|
|
1559
1562
|
...(input.fulfillmentCodeHook != null && {
|
|
1560
1563
|
fulfillmentCodeHook: serializeAws_restJson1FulfillmentCodeHookSettings(input.fulfillmentCodeHook, context),
|
|
1561
1564
|
}),
|
|
1565
|
+
...(input.initialResponseSetting != null && {
|
|
1566
|
+
initialResponseSetting: serializeAws_restJson1InitialResponseSetting(input.initialResponseSetting, context),
|
|
1567
|
+
}),
|
|
1562
1568
|
...(input.inputContexts != null && {
|
|
1563
1569
|
inputContexts: serializeAws_restJson1InputContextsList(input.inputContexts, context),
|
|
1564
1570
|
}),
|
|
@@ -2135,6 +2141,9 @@ const deserializeAws_restJson1CreateIntentCommand = async (output, context) => {
|
|
|
2135
2141
|
if (data.fulfillmentCodeHook != null) {
|
|
2136
2142
|
contents.fulfillmentCodeHook = deserializeAws_restJson1FulfillmentCodeHookSettings(data.fulfillmentCodeHook, context);
|
|
2137
2143
|
}
|
|
2144
|
+
if (data.initialResponseSetting != null) {
|
|
2145
|
+
contents.initialResponseSetting = deserializeAws_restJson1InitialResponseSetting(data.initialResponseSetting, context);
|
|
2146
|
+
}
|
|
2138
2147
|
if (data.inputContexts != null) {
|
|
2139
2148
|
contents.inputContexts = deserializeAws_restJson1InputContextsList(data.inputContexts, context);
|
|
2140
2149
|
}
|
|
@@ -3767,6 +3776,9 @@ const deserializeAws_restJson1DescribeIntentCommand = async (output, context) =>
|
|
|
3767
3776
|
if (data.fulfillmentCodeHook != null) {
|
|
3768
3777
|
contents.fulfillmentCodeHook = deserializeAws_restJson1FulfillmentCodeHookSettings(data.fulfillmentCodeHook, context);
|
|
3769
3778
|
}
|
|
3779
|
+
if (data.initialResponseSetting != null) {
|
|
3780
|
+
contents.initialResponseSetting = deserializeAws_restJson1InitialResponseSetting(data.initialResponseSetting, context);
|
|
3781
|
+
}
|
|
3770
3782
|
if (data.inputContexts != null) {
|
|
3771
3783
|
contents.inputContexts = deserializeAws_restJson1InputContextsList(data.inputContexts, context);
|
|
3772
3784
|
}
|
|
@@ -5518,6 +5530,9 @@ const deserializeAws_restJson1UpdateIntentCommand = async (output, context) => {
|
|
|
5518
5530
|
if (data.fulfillmentCodeHook != null) {
|
|
5519
5531
|
contents.fulfillmentCodeHook = deserializeAws_restJson1FulfillmentCodeHookSettings(data.fulfillmentCodeHook, context);
|
|
5520
5532
|
}
|
|
5533
|
+
if (data.initialResponseSetting != null) {
|
|
5534
|
+
contents.initialResponseSetting = deserializeAws_restJson1InitialResponseSetting(data.initialResponseSetting, context);
|
|
5535
|
+
}
|
|
5521
5536
|
if (data.inputContexts != null) {
|
|
5522
5537
|
contents.inputContexts = deserializeAws_restJson1InputContextsList(data.inputContexts, context);
|
|
5523
5538
|
}
|
|
@@ -6116,6 +6131,37 @@ const serializeAws_restJson1CodeHookSpecification = (input, context) => {
|
|
|
6116
6131
|
}),
|
|
6117
6132
|
};
|
|
6118
6133
|
};
|
|
6134
|
+
const serializeAws_restJson1Condition = (input, context) => {
|
|
6135
|
+
return {
|
|
6136
|
+
...(input.expressionString != null && { expressionString: input.expressionString }),
|
|
6137
|
+
};
|
|
6138
|
+
};
|
|
6139
|
+
const serializeAws_restJson1ConditionalBranch = (input, context) => {
|
|
6140
|
+
return {
|
|
6141
|
+
...(input.condition != null && { condition: serializeAws_restJson1Condition(input.condition, context) }),
|
|
6142
|
+
...(input.name != null && { name: input.name }),
|
|
6143
|
+
...(input.nextStep != null && { nextStep: serializeAws_restJson1DialogState(input.nextStep, context) }),
|
|
6144
|
+
...(input.response != null && { response: serializeAws_restJson1ResponseSpecification(input.response, context) }),
|
|
6145
|
+
};
|
|
6146
|
+
};
|
|
6147
|
+
const serializeAws_restJson1ConditionalBranches = (input, context) => {
|
|
6148
|
+
return input
|
|
6149
|
+
.filter((e) => e != null)
|
|
6150
|
+
.map((entry) => {
|
|
6151
|
+
return serializeAws_restJson1ConditionalBranch(entry, context);
|
|
6152
|
+
});
|
|
6153
|
+
};
|
|
6154
|
+
const serializeAws_restJson1ConditionalSpecification = (input, context) => {
|
|
6155
|
+
return {
|
|
6156
|
+
...(input.active != null && { active: input.active }),
|
|
6157
|
+
...(input.conditionalBranches != null && {
|
|
6158
|
+
conditionalBranches: serializeAws_restJson1ConditionalBranches(input.conditionalBranches, context),
|
|
6159
|
+
}),
|
|
6160
|
+
...(input.defaultBranch != null && {
|
|
6161
|
+
defaultBranch: serializeAws_restJson1DefaultConditionalBranch(input.defaultBranch, context),
|
|
6162
|
+
}),
|
|
6163
|
+
};
|
|
6164
|
+
};
|
|
6119
6165
|
const serializeAws_restJson1ConditionKeyValueMap = (input, context) => {
|
|
6120
6166
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
6121
6167
|
if (value === null) {
|
|
@@ -6178,11 +6224,51 @@ const serializeAws_restJson1DateRangeFilter = (input, context) => {
|
|
|
6178
6224
|
...(input.startDateTime != null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) }),
|
|
6179
6225
|
};
|
|
6180
6226
|
};
|
|
6227
|
+
const serializeAws_restJson1DefaultConditionalBranch = (input, context) => {
|
|
6228
|
+
return {
|
|
6229
|
+
...(input.nextStep != null && { nextStep: serializeAws_restJson1DialogState(input.nextStep, context) }),
|
|
6230
|
+
...(input.response != null && { response: serializeAws_restJson1ResponseSpecification(input.response, context) }),
|
|
6231
|
+
};
|
|
6232
|
+
};
|
|
6233
|
+
const serializeAws_restJson1DialogAction = (input, context) => {
|
|
6234
|
+
return {
|
|
6235
|
+
...(input.slotToElicit != null && { slotToElicit: input.slotToElicit }),
|
|
6236
|
+
...(input.suppressNextMessage != null && { suppressNextMessage: input.suppressNextMessage }),
|
|
6237
|
+
...(input.type != null && { type: input.type }),
|
|
6238
|
+
};
|
|
6239
|
+
};
|
|
6240
|
+
const serializeAws_restJson1DialogCodeHookInvocationSetting = (input, context) => {
|
|
6241
|
+
return {
|
|
6242
|
+
...(input.active != null && { active: input.active }),
|
|
6243
|
+
...(input.enableCodeHookInvocation != null && { enableCodeHookInvocation: input.enableCodeHookInvocation }),
|
|
6244
|
+
...(input.invocationLabel != null && { invocationLabel: input.invocationLabel }),
|
|
6245
|
+
...(input.postCodeHookSpecification != null && {
|
|
6246
|
+
postCodeHookSpecification: serializeAws_restJson1PostDialogCodeHookInvocationSpecification(input.postCodeHookSpecification, context),
|
|
6247
|
+
}),
|
|
6248
|
+
};
|
|
6249
|
+
};
|
|
6181
6250
|
const serializeAws_restJson1DialogCodeHookSettings = (input, context) => {
|
|
6182
6251
|
return {
|
|
6183
6252
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
6184
6253
|
};
|
|
6185
6254
|
};
|
|
6255
|
+
const serializeAws_restJson1DialogState = (input, context) => {
|
|
6256
|
+
return {
|
|
6257
|
+
...(input.dialogAction != null && {
|
|
6258
|
+
dialogAction: serializeAws_restJson1DialogAction(input.dialogAction, context),
|
|
6259
|
+
}),
|
|
6260
|
+
...(input.intent != null && { intent: serializeAws_restJson1IntentOverride(input.intent, context) }),
|
|
6261
|
+
...(input.sessionAttributes != null && {
|
|
6262
|
+
sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context),
|
|
6263
|
+
}),
|
|
6264
|
+
};
|
|
6265
|
+
};
|
|
6266
|
+
const serializeAws_restJson1ElicitationCodeHookInvocationSetting = (input, context) => {
|
|
6267
|
+
return {
|
|
6268
|
+
...(input.enableCodeHookInvocation != null && { enableCodeHookInvocation: input.enableCodeHookInvocation }),
|
|
6269
|
+
...(input.invocationLabel != null && { invocationLabel: input.invocationLabel }),
|
|
6270
|
+
};
|
|
6271
|
+
};
|
|
6186
6272
|
const serializeAws_restJson1EncryptionSetting = (input, context) => {
|
|
6187
6273
|
return {
|
|
6188
6274
|
...(input.associatedTranscriptsPassword != null && {
|
|
@@ -6241,6 +6327,7 @@ const serializeAws_restJson1FilterValues = (input, context) => {
|
|
|
6241
6327
|
};
|
|
6242
6328
|
const serializeAws_restJson1FulfillmentCodeHookSettings = (input, context) => {
|
|
6243
6329
|
return {
|
|
6330
|
+
...(input.active != null && { active: input.active }),
|
|
6244
6331
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
6245
6332
|
...(input.fulfillmentUpdatesSpecification != null && {
|
|
6246
6333
|
fulfillmentUpdatesSpecification: serializeAws_restJson1FulfillmentUpdatesSpecification(input.fulfillmentUpdatesSpecification, context),
|
|
@@ -6333,6 +6420,20 @@ const serializeAws_restJson1ImportSortBy = (input, context) => {
|
|
|
6333
6420
|
...(input.order != null && { order: input.order }),
|
|
6334
6421
|
};
|
|
6335
6422
|
};
|
|
6423
|
+
const serializeAws_restJson1InitialResponseSetting = (input, context) => {
|
|
6424
|
+
return {
|
|
6425
|
+
...(input.codeHook != null && {
|
|
6426
|
+
codeHook: serializeAws_restJson1DialogCodeHookInvocationSetting(input.codeHook, context),
|
|
6427
|
+
}),
|
|
6428
|
+
...(input.conditional != null && {
|
|
6429
|
+
conditional: serializeAws_restJson1ConditionalSpecification(input.conditional, context),
|
|
6430
|
+
}),
|
|
6431
|
+
...(input.initialResponse != null && {
|
|
6432
|
+
initialResponse: serializeAws_restJson1ResponseSpecification(input.initialResponse, context),
|
|
6433
|
+
}),
|
|
6434
|
+
...(input.nextStep != null && { nextStep: serializeAws_restJson1DialogState(input.nextStep, context) }),
|
|
6435
|
+
};
|
|
6436
|
+
};
|
|
6336
6437
|
const serializeAws_restJson1InputContext = (input, context) => {
|
|
6337
6438
|
return {
|
|
6338
6439
|
...(input.name != null && { name: input.name }),
|
|
@@ -6351,14 +6452,48 @@ const serializeAws_restJson1IntentClosingSetting = (input, context) => {
|
|
|
6351
6452
|
...(input.closingResponse != null && {
|
|
6352
6453
|
closingResponse: serializeAws_restJson1ResponseSpecification(input.closingResponse, context),
|
|
6353
6454
|
}),
|
|
6455
|
+
...(input.conditional != null && {
|
|
6456
|
+
conditional: serializeAws_restJson1ConditionalSpecification(input.conditional, context),
|
|
6457
|
+
}),
|
|
6458
|
+
...(input.nextStep != null && { nextStep: serializeAws_restJson1DialogState(input.nextStep, context) }),
|
|
6354
6459
|
};
|
|
6355
6460
|
};
|
|
6356
6461
|
const serializeAws_restJson1IntentConfirmationSetting = (input, context) => {
|
|
6357
6462
|
return {
|
|
6358
6463
|
...(input.active != null && { active: input.active }),
|
|
6464
|
+
...(input.codeHook != null && {
|
|
6465
|
+
codeHook: serializeAws_restJson1DialogCodeHookInvocationSetting(input.codeHook, context),
|
|
6466
|
+
}),
|
|
6467
|
+
...(input.confirmationConditional != null && {
|
|
6468
|
+
confirmationConditional: serializeAws_restJson1ConditionalSpecification(input.confirmationConditional, context),
|
|
6469
|
+
}),
|
|
6470
|
+
...(input.confirmationNextStep != null && {
|
|
6471
|
+
confirmationNextStep: serializeAws_restJson1DialogState(input.confirmationNextStep, context),
|
|
6472
|
+
}),
|
|
6473
|
+
...(input.confirmationResponse != null && {
|
|
6474
|
+
confirmationResponse: serializeAws_restJson1ResponseSpecification(input.confirmationResponse, context),
|
|
6475
|
+
}),
|
|
6476
|
+
...(input.declinationConditional != null && {
|
|
6477
|
+
declinationConditional: serializeAws_restJson1ConditionalSpecification(input.declinationConditional, context),
|
|
6478
|
+
}),
|
|
6479
|
+
...(input.declinationNextStep != null && {
|
|
6480
|
+
declinationNextStep: serializeAws_restJson1DialogState(input.declinationNextStep, context),
|
|
6481
|
+
}),
|
|
6359
6482
|
...(input.declinationResponse != null && {
|
|
6360
6483
|
declinationResponse: serializeAws_restJson1ResponseSpecification(input.declinationResponse, context),
|
|
6361
6484
|
}),
|
|
6485
|
+
...(input.elicitationCodeHook != null && {
|
|
6486
|
+
elicitationCodeHook: serializeAws_restJson1ElicitationCodeHookInvocationSetting(input.elicitationCodeHook, context),
|
|
6487
|
+
}),
|
|
6488
|
+
...(input.failureConditional != null && {
|
|
6489
|
+
failureConditional: serializeAws_restJson1ConditionalSpecification(input.failureConditional, context),
|
|
6490
|
+
}),
|
|
6491
|
+
...(input.failureNextStep != null && {
|
|
6492
|
+
failureNextStep: serializeAws_restJson1DialogState(input.failureNextStep, context),
|
|
6493
|
+
}),
|
|
6494
|
+
...(input.failureResponse != null && {
|
|
6495
|
+
failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
|
|
6496
|
+
}),
|
|
6362
6497
|
...(input.promptSpecification != null && {
|
|
6363
6498
|
promptSpecification: serializeAws_restJson1PromptSpecification(input.promptSpecification, context),
|
|
6364
6499
|
}),
|
|
@@ -6378,6 +6513,12 @@ const serializeAws_restJson1IntentFilters = (input, context) => {
|
|
|
6378
6513
|
return serializeAws_restJson1IntentFilter(entry, context);
|
|
6379
6514
|
});
|
|
6380
6515
|
};
|
|
6516
|
+
const serializeAws_restJson1IntentOverride = (input, context) => {
|
|
6517
|
+
return {
|
|
6518
|
+
...(input.name != null && { name: input.name }),
|
|
6519
|
+
...(input.slots != null && { slots: serializeAws_restJson1SlotValueOverrideMap(input.slots, context) }),
|
|
6520
|
+
};
|
|
6521
|
+
};
|
|
6381
6522
|
const serializeAws_restJson1IntentSortBy = (input, context) => {
|
|
6382
6523
|
return {
|
|
6383
6524
|
...(input.attribute != null && { attribute: input.attribute }),
|
|
@@ -6490,14 +6631,63 @@ const serializeAws_restJson1PlainTextMessage = (input, context) => {
|
|
|
6490
6631
|
...(input.value != null && { value: input.value }),
|
|
6491
6632
|
};
|
|
6492
6633
|
};
|
|
6634
|
+
const serializeAws_restJson1PostDialogCodeHookInvocationSpecification = (input, context) => {
|
|
6635
|
+
return {
|
|
6636
|
+
...(input.failureConditional != null && {
|
|
6637
|
+
failureConditional: serializeAws_restJson1ConditionalSpecification(input.failureConditional, context),
|
|
6638
|
+
}),
|
|
6639
|
+
...(input.failureNextStep != null && {
|
|
6640
|
+
failureNextStep: serializeAws_restJson1DialogState(input.failureNextStep, context),
|
|
6641
|
+
}),
|
|
6642
|
+
...(input.failureResponse != null && {
|
|
6643
|
+
failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
|
|
6644
|
+
}),
|
|
6645
|
+
...(input.successConditional != null && {
|
|
6646
|
+
successConditional: serializeAws_restJson1ConditionalSpecification(input.successConditional, context),
|
|
6647
|
+
}),
|
|
6648
|
+
...(input.successNextStep != null && {
|
|
6649
|
+
successNextStep: serializeAws_restJson1DialogState(input.successNextStep, context),
|
|
6650
|
+
}),
|
|
6651
|
+
...(input.successResponse != null && {
|
|
6652
|
+
successResponse: serializeAws_restJson1ResponseSpecification(input.successResponse, context),
|
|
6653
|
+
}),
|
|
6654
|
+
...(input.timeoutConditional != null && {
|
|
6655
|
+
timeoutConditional: serializeAws_restJson1ConditionalSpecification(input.timeoutConditional, context),
|
|
6656
|
+
}),
|
|
6657
|
+
...(input.timeoutNextStep != null && {
|
|
6658
|
+
timeoutNextStep: serializeAws_restJson1DialogState(input.timeoutNextStep, context),
|
|
6659
|
+
}),
|
|
6660
|
+
...(input.timeoutResponse != null && {
|
|
6661
|
+
timeoutResponse: serializeAws_restJson1ResponseSpecification(input.timeoutResponse, context),
|
|
6662
|
+
}),
|
|
6663
|
+
};
|
|
6664
|
+
};
|
|
6493
6665
|
const serializeAws_restJson1PostFulfillmentStatusSpecification = (input, context) => {
|
|
6494
6666
|
return {
|
|
6667
|
+
...(input.failureConditional != null && {
|
|
6668
|
+
failureConditional: serializeAws_restJson1ConditionalSpecification(input.failureConditional, context),
|
|
6669
|
+
}),
|
|
6670
|
+
...(input.failureNextStep != null && {
|
|
6671
|
+
failureNextStep: serializeAws_restJson1DialogState(input.failureNextStep, context),
|
|
6672
|
+
}),
|
|
6495
6673
|
...(input.failureResponse != null && {
|
|
6496
6674
|
failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
|
|
6497
6675
|
}),
|
|
6676
|
+
...(input.successConditional != null && {
|
|
6677
|
+
successConditional: serializeAws_restJson1ConditionalSpecification(input.successConditional, context),
|
|
6678
|
+
}),
|
|
6679
|
+
...(input.successNextStep != null && {
|
|
6680
|
+
successNextStep: serializeAws_restJson1DialogState(input.successNextStep, context),
|
|
6681
|
+
}),
|
|
6498
6682
|
...(input.successResponse != null && {
|
|
6499
6683
|
successResponse: serializeAws_restJson1ResponseSpecification(input.successResponse, context),
|
|
6500
6684
|
}),
|
|
6685
|
+
...(input.timeoutConditional != null && {
|
|
6686
|
+
timeoutConditional: serializeAws_restJson1ConditionalSpecification(input.timeoutConditional, context),
|
|
6687
|
+
}),
|
|
6688
|
+
...(input.timeoutNextStep != null && {
|
|
6689
|
+
timeoutNextStep: serializeAws_restJson1DialogState(input.timeoutNextStep, context),
|
|
6690
|
+
}),
|
|
6501
6691
|
...(input.timeoutResponse != null && {
|
|
6502
6692
|
timeoutResponse: serializeAws_restJson1ResponseSpecification(input.timeoutResponse, context),
|
|
6503
6693
|
}),
|
|
@@ -6580,6 +6770,34 @@ const serializeAws_restJson1SentimentAnalysisSettings = (input, context) => {
|
|
|
6580
6770
|
...(input.detectSentiment != null && { detectSentiment: input.detectSentiment }),
|
|
6581
6771
|
};
|
|
6582
6772
|
};
|
|
6773
|
+
const serializeAws_restJson1SlotCaptureSetting = (input, context) => {
|
|
6774
|
+
return {
|
|
6775
|
+
...(input.captureConditional != null && {
|
|
6776
|
+
captureConditional: serializeAws_restJson1ConditionalSpecification(input.captureConditional, context),
|
|
6777
|
+
}),
|
|
6778
|
+
...(input.captureNextStep != null && {
|
|
6779
|
+
captureNextStep: serializeAws_restJson1DialogState(input.captureNextStep, context),
|
|
6780
|
+
}),
|
|
6781
|
+
...(input.captureResponse != null && {
|
|
6782
|
+
captureResponse: serializeAws_restJson1ResponseSpecification(input.captureResponse, context),
|
|
6783
|
+
}),
|
|
6784
|
+
...(input.codeHook != null && {
|
|
6785
|
+
codeHook: serializeAws_restJson1DialogCodeHookInvocationSetting(input.codeHook, context),
|
|
6786
|
+
}),
|
|
6787
|
+
...(input.elicitationCodeHook != null && {
|
|
6788
|
+
elicitationCodeHook: serializeAws_restJson1ElicitationCodeHookInvocationSetting(input.elicitationCodeHook, context),
|
|
6789
|
+
}),
|
|
6790
|
+
...(input.failureConditional != null && {
|
|
6791
|
+
failureConditional: serializeAws_restJson1ConditionalSpecification(input.failureConditional, context),
|
|
6792
|
+
}),
|
|
6793
|
+
...(input.failureNextStep != null && {
|
|
6794
|
+
failureNextStep: serializeAws_restJson1DialogState(input.failureNextStep, context),
|
|
6795
|
+
}),
|
|
6796
|
+
...(input.failureResponse != null && {
|
|
6797
|
+
failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
|
|
6798
|
+
}),
|
|
6799
|
+
};
|
|
6800
|
+
};
|
|
6583
6801
|
const serializeAws_restJson1SlotDefaultValue = (input, context) => {
|
|
6584
6802
|
return {
|
|
6585
6803
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
@@ -6665,6 +6883,11 @@ const serializeAws_restJson1SlotTypeValues = (input, context) => {
|
|
|
6665
6883
|
return serializeAws_restJson1SlotTypeValue(entry, context);
|
|
6666
6884
|
});
|
|
6667
6885
|
};
|
|
6886
|
+
const serializeAws_restJson1SlotValue = (input, context) => {
|
|
6887
|
+
return {
|
|
6888
|
+
...(input.interpretedValue != null && { interpretedValue: input.interpretedValue }),
|
|
6889
|
+
};
|
|
6890
|
+
};
|
|
6668
6891
|
const serializeAws_restJson1SlotValueElicitationSetting = (input, context) => {
|
|
6669
6892
|
return {
|
|
6670
6893
|
...(input.defaultValueSpecification != null && {
|
|
@@ -6676,17 +6899,45 @@ const serializeAws_restJson1SlotValueElicitationSetting = (input, context) => {
|
|
|
6676
6899
|
...(input.sampleUtterances != null && {
|
|
6677
6900
|
sampleUtterances: serializeAws_restJson1SampleUtterancesList(input.sampleUtterances, context),
|
|
6678
6901
|
}),
|
|
6902
|
+
...(input.slotCaptureSetting != null && {
|
|
6903
|
+
slotCaptureSetting: serializeAws_restJson1SlotCaptureSetting(input.slotCaptureSetting, context),
|
|
6904
|
+
}),
|
|
6679
6905
|
...(input.slotConstraint != null && { slotConstraint: input.slotConstraint }),
|
|
6680
6906
|
...(input.waitAndContinueSpecification != null && {
|
|
6681
6907
|
waitAndContinueSpecification: serializeAws_restJson1WaitAndContinueSpecification(input.waitAndContinueSpecification, context),
|
|
6682
6908
|
}),
|
|
6683
6909
|
};
|
|
6684
6910
|
};
|
|
6911
|
+
const serializeAws_restJson1SlotValueOverride = (input, context) => {
|
|
6912
|
+
return {
|
|
6913
|
+
...(input.shape != null && { shape: input.shape }),
|
|
6914
|
+
...(input.value != null && { value: serializeAws_restJson1SlotValue(input.value, context) }),
|
|
6915
|
+
...(input.values != null && { values: serializeAws_restJson1SlotValues(input.values, context) }),
|
|
6916
|
+
};
|
|
6917
|
+
};
|
|
6918
|
+
const serializeAws_restJson1SlotValueOverrideMap = (input, context) => {
|
|
6919
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
6920
|
+
if (value === null) {
|
|
6921
|
+
return acc;
|
|
6922
|
+
}
|
|
6923
|
+
return {
|
|
6924
|
+
...acc,
|
|
6925
|
+
[key]: serializeAws_restJson1SlotValueOverride(value, context),
|
|
6926
|
+
};
|
|
6927
|
+
}, {});
|
|
6928
|
+
};
|
|
6685
6929
|
const serializeAws_restJson1SlotValueRegexFilter = (input, context) => {
|
|
6686
6930
|
return {
|
|
6687
6931
|
...(input.pattern != null && { pattern: input.pattern }),
|
|
6688
6932
|
};
|
|
6689
6933
|
};
|
|
6934
|
+
const serializeAws_restJson1SlotValues = (input, context) => {
|
|
6935
|
+
return input
|
|
6936
|
+
.filter((e) => e != null)
|
|
6937
|
+
.map((entry) => {
|
|
6938
|
+
return serializeAws_restJson1SlotValueOverride(entry, context);
|
|
6939
|
+
});
|
|
6940
|
+
};
|
|
6690
6941
|
const serializeAws_restJson1SlotValueSelectionSetting = (input, context) => {
|
|
6691
6942
|
return {
|
|
6692
6943
|
...(input.advancedRecognitionSetting != null && {
|
|
@@ -6713,6 +6964,17 @@ const serializeAws_restJson1StillWaitingResponseSpecification = (input, context)
|
|
|
6713
6964
|
...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
|
|
6714
6965
|
};
|
|
6715
6966
|
};
|
|
6967
|
+
const serializeAws_restJson1StringMap = (input, context) => {
|
|
6968
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
6969
|
+
if (value === null) {
|
|
6970
|
+
return acc;
|
|
6971
|
+
}
|
|
6972
|
+
return {
|
|
6973
|
+
...acc,
|
|
6974
|
+
[key]: value,
|
|
6975
|
+
};
|
|
6976
|
+
}, {});
|
|
6977
|
+
};
|
|
6716
6978
|
const serializeAws_restJson1SynonymList = (input, context) => {
|
|
6717
6979
|
return input
|
|
6718
6980
|
.filter((e) => e != null)
|
|
@@ -7162,6 +7424,41 @@ const deserializeAws_restJson1CodeHookSpecification = (output, context) => {
|
|
|
7162
7424
|
: undefined,
|
|
7163
7425
|
};
|
|
7164
7426
|
};
|
|
7427
|
+
const deserializeAws_restJson1Condition = (output, context) => {
|
|
7428
|
+
return {
|
|
7429
|
+
expressionString: (0, smithy_client_1.expectString)(output.expressionString),
|
|
7430
|
+
};
|
|
7431
|
+
};
|
|
7432
|
+
const deserializeAws_restJson1ConditionalBranch = (output, context) => {
|
|
7433
|
+
return {
|
|
7434
|
+
condition: output.condition != null ? deserializeAws_restJson1Condition(output.condition, context) : undefined,
|
|
7435
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7436
|
+
nextStep: output.nextStep != null ? deserializeAws_restJson1DialogState(output.nextStep, context) : undefined,
|
|
7437
|
+
response: output.response != null ? deserializeAws_restJson1ResponseSpecification(output.response, context) : undefined,
|
|
7438
|
+
};
|
|
7439
|
+
};
|
|
7440
|
+
const deserializeAws_restJson1ConditionalBranches = (output, context) => {
|
|
7441
|
+
const retVal = (output || [])
|
|
7442
|
+
.filter((e) => e != null)
|
|
7443
|
+
.map((entry) => {
|
|
7444
|
+
if (entry === null) {
|
|
7445
|
+
return null;
|
|
7446
|
+
}
|
|
7447
|
+
return deserializeAws_restJson1ConditionalBranch(entry, context);
|
|
7448
|
+
});
|
|
7449
|
+
return retVal;
|
|
7450
|
+
};
|
|
7451
|
+
const deserializeAws_restJson1ConditionalSpecification = (output, context) => {
|
|
7452
|
+
return {
|
|
7453
|
+
active: (0, smithy_client_1.expectBoolean)(output.active),
|
|
7454
|
+
conditionalBranches: output.conditionalBranches != null
|
|
7455
|
+
? deserializeAws_restJson1ConditionalBranches(output.conditionalBranches, context)
|
|
7456
|
+
: undefined,
|
|
7457
|
+
defaultBranch: output.defaultBranch != null
|
|
7458
|
+
? deserializeAws_restJson1DefaultConditionalBranch(output.defaultBranch, context)
|
|
7459
|
+
: undefined,
|
|
7460
|
+
};
|
|
7461
|
+
};
|
|
7165
7462
|
const deserializeAws_restJson1ConversationLogSettings = (output, context) => {
|
|
7166
7463
|
return {
|
|
7167
7464
|
audioLogSettings: output.audioLogSettings != null
|
|
@@ -7206,11 +7503,49 @@ const deserializeAws_restJson1DateRangeFilter = (output, context) => {
|
|
|
7206
7503
|
: undefined,
|
|
7207
7504
|
};
|
|
7208
7505
|
};
|
|
7506
|
+
const deserializeAws_restJson1DefaultConditionalBranch = (output, context) => {
|
|
7507
|
+
return {
|
|
7508
|
+
nextStep: output.nextStep != null ? deserializeAws_restJson1DialogState(output.nextStep, context) : undefined,
|
|
7509
|
+
response: output.response != null ? deserializeAws_restJson1ResponseSpecification(output.response, context) : undefined,
|
|
7510
|
+
};
|
|
7511
|
+
};
|
|
7512
|
+
const deserializeAws_restJson1DialogAction = (output, context) => {
|
|
7513
|
+
return {
|
|
7514
|
+
slotToElicit: (0, smithy_client_1.expectString)(output.slotToElicit),
|
|
7515
|
+
suppressNextMessage: (0, smithy_client_1.expectBoolean)(output.suppressNextMessage),
|
|
7516
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
7517
|
+
};
|
|
7518
|
+
};
|
|
7519
|
+
const deserializeAws_restJson1DialogCodeHookInvocationSetting = (output, context) => {
|
|
7520
|
+
return {
|
|
7521
|
+
active: (0, smithy_client_1.expectBoolean)(output.active),
|
|
7522
|
+
enableCodeHookInvocation: (0, smithy_client_1.expectBoolean)(output.enableCodeHookInvocation),
|
|
7523
|
+
invocationLabel: (0, smithy_client_1.expectString)(output.invocationLabel),
|
|
7524
|
+
postCodeHookSpecification: output.postCodeHookSpecification != null
|
|
7525
|
+
? deserializeAws_restJson1PostDialogCodeHookInvocationSpecification(output.postCodeHookSpecification, context)
|
|
7526
|
+
: undefined,
|
|
7527
|
+
};
|
|
7528
|
+
};
|
|
7209
7529
|
const deserializeAws_restJson1DialogCodeHookSettings = (output, context) => {
|
|
7210
7530
|
return {
|
|
7211
7531
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
7212
7532
|
};
|
|
7213
7533
|
};
|
|
7534
|
+
const deserializeAws_restJson1DialogState = (output, context) => {
|
|
7535
|
+
return {
|
|
7536
|
+
dialogAction: output.dialogAction != null ? deserializeAws_restJson1DialogAction(output.dialogAction, context) : undefined,
|
|
7537
|
+
intent: output.intent != null ? deserializeAws_restJson1IntentOverride(output.intent, context) : undefined,
|
|
7538
|
+
sessionAttributes: output.sessionAttributes != null
|
|
7539
|
+
? deserializeAws_restJson1StringMap(output.sessionAttributes, context)
|
|
7540
|
+
: undefined,
|
|
7541
|
+
};
|
|
7542
|
+
};
|
|
7543
|
+
const deserializeAws_restJson1ElicitationCodeHookInvocationSetting = (output, context) => {
|
|
7544
|
+
return {
|
|
7545
|
+
enableCodeHookInvocation: (0, smithy_client_1.expectBoolean)(output.enableCodeHookInvocation),
|
|
7546
|
+
invocationLabel: (0, smithy_client_1.expectString)(output.invocationLabel),
|
|
7547
|
+
};
|
|
7548
|
+
};
|
|
7214
7549
|
const deserializeAws_restJson1EncryptionSetting = (output, context) => {
|
|
7215
7550
|
return {
|
|
7216
7551
|
associatedTranscriptsPassword: (0, smithy_client_1.expectString)(output.associatedTranscriptsPassword),
|
|
@@ -7278,6 +7613,7 @@ const deserializeAws_restJson1FailureReasons = (output, context) => {
|
|
|
7278
7613
|
};
|
|
7279
7614
|
const deserializeAws_restJson1FulfillmentCodeHookSettings = (output, context) => {
|
|
7280
7615
|
return {
|
|
7616
|
+
active: (0, smithy_client_1.expectBoolean)(output.active),
|
|
7281
7617
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
7282
7618
|
fulfillmentUpdatesSpecification: output.fulfillmentUpdatesSpecification != null
|
|
7283
7619
|
? deserializeAws_restJson1FulfillmentUpdatesSpecification(output.fulfillmentUpdatesSpecification, context)
|
|
@@ -7377,6 +7713,20 @@ const deserializeAws_restJson1ImportSummaryList = (output, context) => {
|
|
|
7377
7713
|
});
|
|
7378
7714
|
return retVal;
|
|
7379
7715
|
};
|
|
7716
|
+
const deserializeAws_restJson1InitialResponseSetting = (output, context) => {
|
|
7717
|
+
return {
|
|
7718
|
+
codeHook: output.codeHook != null
|
|
7719
|
+
? deserializeAws_restJson1DialogCodeHookInvocationSetting(output.codeHook, context)
|
|
7720
|
+
: undefined,
|
|
7721
|
+
conditional: output.conditional != null
|
|
7722
|
+
? deserializeAws_restJson1ConditionalSpecification(output.conditional, context)
|
|
7723
|
+
: undefined,
|
|
7724
|
+
initialResponse: output.initialResponse != null
|
|
7725
|
+
? deserializeAws_restJson1ResponseSpecification(output.initialResponse, context)
|
|
7726
|
+
: undefined,
|
|
7727
|
+
nextStep: output.nextStep != null ? deserializeAws_restJson1DialogState(output.nextStep, context) : undefined,
|
|
7728
|
+
};
|
|
7729
|
+
};
|
|
7380
7730
|
const deserializeAws_restJson1InputContext = (output, context) => {
|
|
7381
7731
|
return {
|
|
7382
7732
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -7399,19 +7749,57 @@ const deserializeAws_restJson1IntentClosingSetting = (output, context) => {
|
|
|
7399
7749
|
closingResponse: output.closingResponse != null
|
|
7400
7750
|
? deserializeAws_restJson1ResponseSpecification(output.closingResponse, context)
|
|
7401
7751
|
: undefined,
|
|
7752
|
+
conditional: output.conditional != null
|
|
7753
|
+
? deserializeAws_restJson1ConditionalSpecification(output.conditional, context)
|
|
7754
|
+
: undefined,
|
|
7755
|
+
nextStep: output.nextStep != null ? deserializeAws_restJson1DialogState(output.nextStep, context) : undefined,
|
|
7402
7756
|
};
|
|
7403
7757
|
};
|
|
7404
7758
|
const deserializeAws_restJson1IntentConfirmationSetting = (output, context) => {
|
|
7405
7759
|
return {
|
|
7406
7760
|
active: (0, smithy_client_1.expectBoolean)(output.active),
|
|
7761
|
+
codeHook: output.codeHook != null
|
|
7762
|
+
? deserializeAws_restJson1DialogCodeHookInvocationSetting(output.codeHook, context)
|
|
7763
|
+
: undefined,
|
|
7764
|
+
confirmationConditional: output.confirmationConditional != null
|
|
7765
|
+
? deserializeAws_restJson1ConditionalSpecification(output.confirmationConditional, context)
|
|
7766
|
+
: undefined,
|
|
7767
|
+
confirmationNextStep: output.confirmationNextStep != null
|
|
7768
|
+
? deserializeAws_restJson1DialogState(output.confirmationNextStep, context)
|
|
7769
|
+
: undefined,
|
|
7770
|
+
confirmationResponse: output.confirmationResponse != null
|
|
7771
|
+
? deserializeAws_restJson1ResponseSpecification(output.confirmationResponse, context)
|
|
7772
|
+
: undefined,
|
|
7773
|
+
declinationConditional: output.declinationConditional != null
|
|
7774
|
+
? deserializeAws_restJson1ConditionalSpecification(output.declinationConditional, context)
|
|
7775
|
+
: undefined,
|
|
7776
|
+
declinationNextStep: output.declinationNextStep != null
|
|
7777
|
+
? deserializeAws_restJson1DialogState(output.declinationNextStep, context)
|
|
7778
|
+
: undefined,
|
|
7407
7779
|
declinationResponse: output.declinationResponse != null
|
|
7408
7780
|
? deserializeAws_restJson1ResponseSpecification(output.declinationResponse, context)
|
|
7409
7781
|
: undefined,
|
|
7782
|
+
elicitationCodeHook: output.elicitationCodeHook != null
|
|
7783
|
+
? deserializeAws_restJson1ElicitationCodeHookInvocationSetting(output.elicitationCodeHook, context)
|
|
7784
|
+
: undefined,
|
|
7785
|
+
failureConditional: output.failureConditional != null
|
|
7786
|
+
? deserializeAws_restJson1ConditionalSpecification(output.failureConditional, context)
|
|
7787
|
+
: undefined,
|
|
7788
|
+
failureNextStep: output.failureNextStep != null ? deserializeAws_restJson1DialogState(output.failureNextStep, context) : undefined,
|
|
7789
|
+
failureResponse: output.failureResponse != null
|
|
7790
|
+
? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
|
|
7791
|
+
: undefined,
|
|
7410
7792
|
promptSpecification: output.promptSpecification != null
|
|
7411
7793
|
? deserializeAws_restJson1PromptSpecification(output.promptSpecification, context)
|
|
7412
7794
|
: undefined,
|
|
7413
7795
|
};
|
|
7414
7796
|
};
|
|
7797
|
+
const deserializeAws_restJson1IntentOverride = (output, context) => {
|
|
7798
|
+
return {
|
|
7799
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7800
|
+
slots: output.slots != null ? deserializeAws_restJson1SlotValueOverrideMap(output.slots, context) : undefined,
|
|
7801
|
+
};
|
|
7802
|
+
};
|
|
7415
7803
|
const deserializeAws_restJson1IntentStatistics = (output, context) => {
|
|
7416
7804
|
return {
|
|
7417
7805
|
discoveredIntentCount: (0, smithy_client_1.expectInt32)(output.discoveredIntentCount),
|
|
@@ -7556,14 +7944,51 @@ const deserializeAws_restJson1PlainTextMessage = (output, context) => {
|
|
|
7556
7944
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
7557
7945
|
};
|
|
7558
7946
|
};
|
|
7947
|
+
const deserializeAws_restJson1PostDialogCodeHookInvocationSpecification = (output, context) => {
|
|
7948
|
+
return {
|
|
7949
|
+
failureConditional: output.failureConditional != null
|
|
7950
|
+
? deserializeAws_restJson1ConditionalSpecification(output.failureConditional, context)
|
|
7951
|
+
: undefined,
|
|
7952
|
+
failureNextStep: output.failureNextStep != null ? deserializeAws_restJson1DialogState(output.failureNextStep, context) : undefined,
|
|
7953
|
+
failureResponse: output.failureResponse != null
|
|
7954
|
+
? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
|
|
7955
|
+
: undefined,
|
|
7956
|
+
successConditional: output.successConditional != null
|
|
7957
|
+
? deserializeAws_restJson1ConditionalSpecification(output.successConditional, context)
|
|
7958
|
+
: undefined,
|
|
7959
|
+
successNextStep: output.successNextStep != null ? deserializeAws_restJson1DialogState(output.successNextStep, context) : undefined,
|
|
7960
|
+
successResponse: output.successResponse != null
|
|
7961
|
+
? deserializeAws_restJson1ResponseSpecification(output.successResponse, context)
|
|
7962
|
+
: undefined,
|
|
7963
|
+
timeoutConditional: output.timeoutConditional != null
|
|
7964
|
+
? deserializeAws_restJson1ConditionalSpecification(output.timeoutConditional, context)
|
|
7965
|
+
: undefined,
|
|
7966
|
+
timeoutNextStep: output.timeoutNextStep != null ? deserializeAws_restJson1DialogState(output.timeoutNextStep, context) : undefined,
|
|
7967
|
+
timeoutResponse: output.timeoutResponse != null
|
|
7968
|
+
? deserializeAws_restJson1ResponseSpecification(output.timeoutResponse, context)
|
|
7969
|
+
: undefined,
|
|
7970
|
+
};
|
|
7971
|
+
};
|
|
7559
7972
|
const deserializeAws_restJson1PostFulfillmentStatusSpecification = (output, context) => {
|
|
7560
7973
|
return {
|
|
7974
|
+
failureConditional: output.failureConditional != null
|
|
7975
|
+
? deserializeAws_restJson1ConditionalSpecification(output.failureConditional, context)
|
|
7976
|
+
: undefined,
|
|
7977
|
+
failureNextStep: output.failureNextStep != null ? deserializeAws_restJson1DialogState(output.failureNextStep, context) : undefined,
|
|
7561
7978
|
failureResponse: output.failureResponse != null
|
|
7562
7979
|
? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
|
|
7563
7980
|
: undefined,
|
|
7981
|
+
successConditional: output.successConditional != null
|
|
7982
|
+
? deserializeAws_restJson1ConditionalSpecification(output.successConditional, context)
|
|
7983
|
+
: undefined,
|
|
7984
|
+
successNextStep: output.successNextStep != null ? deserializeAws_restJson1DialogState(output.successNextStep, context) : undefined,
|
|
7564
7985
|
successResponse: output.successResponse != null
|
|
7565
7986
|
? deserializeAws_restJson1ResponseSpecification(output.successResponse, context)
|
|
7566
7987
|
: undefined,
|
|
7988
|
+
timeoutConditional: output.timeoutConditional != null
|
|
7989
|
+
? deserializeAws_restJson1ConditionalSpecification(output.timeoutConditional, context)
|
|
7990
|
+
: undefined,
|
|
7991
|
+
timeoutNextStep: output.timeoutNextStep != null ? deserializeAws_restJson1DialogState(output.timeoutNextStep, context) : undefined,
|
|
7567
7992
|
timeoutResponse: output.timeoutResponse != null
|
|
7568
7993
|
? deserializeAws_restJson1ResponseSpecification(output.timeoutResponse, context)
|
|
7569
7994
|
: undefined,
|
|
@@ -7666,6 +8091,30 @@ const deserializeAws_restJson1SentimentAnalysisSettings = (output, context) => {
|
|
|
7666
8091
|
detectSentiment: (0, smithy_client_1.expectBoolean)(output.detectSentiment),
|
|
7667
8092
|
};
|
|
7668
8093
|
};
|
|
8094
|
+
const deserializeAws_restJson1SlotCaptureSetting = (output, context) => {
|
|
8095
|
+
return {
|
|
8096
|
+
captureConditional: output.captureConditional != null
|
|
8097
|
+
? deserializeAws_restJson1ConditionalSpecification(output.captureConditional, context)
|
|
8098
|
+
: undefined,
|
|
8099
|
+
captureNextStep: output.captureNextStep != null ? deserializeAws_restJson1DialogState(output.captureNextStep, context) : undefined,
|
|
8100
|
+
captureResponse: output.captureResponse != null
|
|
8101
|
+
? deserializeAws_restJson1ResponseSpecification(output.captureResponse, context)
|
|
8102
|
+
: undefined,
|
|
8103
|
+
codeHook: output.codeHook != null
|
|
8104
|
+
? deserializeAws_restJson1DialogCodeHookInvocationSetting(output.codeHook, context)
|
|
8105
|
+
: undefined,
|
|
8106
|
+
elicitationCodeHook: output.elicitationCodeHook != null
|
|
8107
|
+
? deserializeAws_restJson1ElicitationCodeHookInvocationSetting(output.elicitationCodeHook, context)
|
|
8108
|
+
: undefined,
|
|
8109
|
+
failureConditional: output.failureConditional != null
|
|
8110
|
+
? deserializeAws_restJson1ConditionalSpecification(output.failureConditional, context)
|
|
8111
|
+
: undefined,
|
|
8112
|
+
failureNextStep: output.failureNextStep != null ? deserializeAws_restJson1DialogState(output.failureNextStep, context) : undefined,
|
|
8113
|
+
failureResponse: output.failureResponse != null
|
|
8114
|
+
? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
|
|
8115
|
+
: undefined,
|
|
8116
|
+
};
|
|
8117
|
+
};
|
|
7669
8118
|
const deserializeAws_restJson1SlotDefaultValue = (output, context) => {
|
|
7670
8119
|
return {
|
|
7671
8120
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
@@ -7777,6 +8226,11 @@ const deserializeAws_restJson1SlotTypeValues = (output, context) => {
|
|
|
7777
8226
|
});
|
|
7778
8227
|
return retVal;
|
|
7779
8228
|
};
|
|
8229
|
+
const deserializeAws_restJson1SlotValue = (output, context) => {
|
|
8230
|
+
return {
|
|
8231
|
+
interpretedValue: (0, smithy_client_1.expectString)(output.interpretedValue),
|
|
8232
|
+
};
|
|
8233
|
+
};
|
|
7780
8234
|
const deserializeAws_restJson1SlotValueElicitationSetting = (output, context) => {
|
|
7781
8235
|
return {
|
|
7782
8236
|
defaultValueSpecification: output.defaultValueSpecification != null
|
|
@@ -7788,17 +8242,49 @@ const deserializeAws_restJson1SlotValueElicitationSetting = (output, context) =>
|
|
|
7788
8242
|
sampleUtterances: output.sampleUtterances != null
|
|
7789
8243
|
? deserializeAws_restJson1SampleUtterancesList(output.sampleUtterances, context)
|
|
7790
8244
|
: undefined,
|
|
8245
|
+
slotCaptureSetting: output.slotCaptureSetting != null
|
|
8246
|
+
? deserializeAws_restJson1SlotCaptureSetting(output.slotCaptureSetting, context)
|
|
8247
|
+
: undefined,
|
|
7791
8248
|
slotConstraint: (0, smithy_client_1.expectString)(output.slotConstraint),
|
|
7792
8249
|
waitAndContinueSpecification: output.waitAndContinueSpecification != null
|
|
7793
8250
|
? deserializeAws_restJson1WaitAndContinueSpecification(output.waitAndContinueSpecification, context)
|
|
7794
8251
|
: undefined,
|
|
7795
8252
|
};
|
|
7796
8253
|
};
|
|
8254
|
+
const deserializeAws_restJson1SlotValueOverride = (output, context) => {
|
|
8255
|
+
return {
|
|
8256
|
+
shape: (0, smithy_client_1.expectString)(output.shape),
|
|
8257
|
+
value: output.value != null ? deserializeAws_restJson1SlotValue(output.value, context) : undefined,
|
|
8258
|
+
values: output.values != null ? deserializeAws_restJson1SlotValues(output.values, context) : undefined,
|
|
8259
|
+
};
|
|
8260
|
+
};
|
|
8261
|
+
const deserializeAws_restJson1SlotValueOverrideMap = (output, context) => {
|
|
8262
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
8263
|
+
if (value === null) {
|
|
8264
|
+
return acc;
|
|
8265
|
+
}
|
|
8266
|
+
return {
|
|
8267
|
+
...acc,
|
|
8268
|
+
[key]: deserializeAws_restJson1SlotValueOverride(value, context),
|
|
8269
|
+
};
|
|
8270
|
+
}, {});
|
|
8271
|
+
};
|
|
7797
8272
|
const deserializeAws_restJson1SlotValueRegexFilter = (output, context) => {
|
|
7798
8273
|
return {
|
|
7799
8274
|
pattern: (0, smithy_client_1.expectString)(output.pattern),
|
|
7800
8275
|
};
|
|
7801
8276
|
};
|
|
8277
|
+
const deserializeAws_restJson1SlotValues = (output, context) => {
|
|
8278
|
+
const retVal = (output || [])
|
|
8279
|
+
.filter((e) => e != null)
|
|
8280
|
+
.map((entry) => {
|
|
8281
|
+
if (entry === null) {
|
|
8282
|
+
return null;
|
|
8283
|
+
}
|
|
8284
|
+
return deserializeAws_restJson1SlotValueOverride(entry, context);
|
|
8285
|
+
});
|
|
8286
|
+
return retVal;
|
|
8287
|
+
};
|
|
7802
8288
|
const deserializeAws_restJson1SlotValueSelectionSetting = (output, context) => {
|
|
7803
8289
|
return {
|
|
7804
8290
|
advancedRecognitionSetting: output.advancedRecognitionSetting != null
|
|
@@ -7825,6 +8311,17 @@ const deserializeAws_restJson1StillWaitingResponseSpecification = (output, conte
|
|
|
7825
8311
|
timeoutInSeconds: (0, smithy_client_1.expectInt32)(output.timeoutInSeconds),
|
|
7826
8312
|
};
|
|
7827
8313
|
};
|
|
8314
|
+
const deserializeAws_restJson1StringMap = (output, context) => {
|
|
8315
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
8316
|
+
if (value === null) {
|
|
8317
|
+
return acc;
|
|
8318
|
+
}
|
|
8319
|
+
return {
|
|
8320
|
+
...acc,
|
|
8321
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
8322
|
+
};
|
|
8323
|
+
}, {});
|
|
8324
|
+
};
|
|
7828
8325
|
const deserializeAws_restJson1SynonymList = (output, context) => {
|
|
7829
8326
|
const retVal = (output || [])
|
|
7830
8327
|
.filter((e) => e != null)
|