@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.
Files changed (40) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/commands/CreateIntentCommand.js +3 -3
  3. package/dist-cjs/commands/CreateSlotCommand.js +3 -3
  4. package/dist-cjs/commands/DescribeIntentCommand.js +2 -1
  5. package/dist-cjs/commands/DescribeSlotCommand.js +2 -1
  6. package/dist-cjs/commands/UpdateIntentCommand.js +3 -3
  7. package/dist-cjs/commands/UpdateSlotCommand.js +3 -3
  8. package/dist-cjs/models/index.js +1 -0
  9. package/dist-cjs/models/models_0.js +117 -92
  10. package/dist-cjs/models/models_1.js +51 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +497 -0
  12. package/dist-es/commands/CreateIntentCommand.js +1 -1
  13. package/dist-es/commands/CreateSlotCommand.js +1 -1
  14. package/dist-es/commands/DescribeIntentCommand.js +2 -1
  15. package/dist-es/commands/DescribeSlotCommand.js +2 -1
  16. package/dist-es/commands/UpdateIntentCommand.js +1 -1
  17. package/dist-es/commands/UpdateSlotCommand.js +1 -1
  18. package/dist-es/models/index.js +1 -0
  19. package/dist-es/models/models_0.js +41 -22
  20. package/dist-es/models/models_1.js +13 -0
  21. package/dist-es/protocols/Aws_restJson1.js +416 -8
  22. package/dist-types/commands/CreateIntentCommand.d.ts +1 -1
  23. package/dist-types/commands/CreateSlotCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeIntentCommand.d.ts +2 -1
  25. package/dist-types/commands/DescribeSlotCommand.d.ts +2 -1
  26. package/dist-types/commands/UpdateIntentCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateSlotCommand.d.ts +1 -1
  28. package/dist-types/models/index.d.ts +1 -0
  29. package/dist-types/models/models_0.d.ts +631 -1004
  30. package/dist-types/models/models_1.d.ts +912 -0
  31. package/dist-types/ts3.4/commands/CreateIntentCommand.d.ts +1 -1
  32. package/dist-types/ts3.4/commands/CreateSlotCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/DescribeIntentCommand.d.ts +2 -1
  34. package/dist-types/ts3.4/commands/DescribeSlotCommand.d.ts +2 -1
  35. package/dist-types/ts3.4/commands/UpdateIntentCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/UpdateSlotCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/models/index.d.ts +1 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +261 -408
  39. package/dist-types/ts3.4/models/models_1.d.ts +381 -0
  40. package/package.json +4 -4
@@ -184,10 +184,12 @@ export var serializeAws_restJson1CreateIntentCommand = function (input, context)
184
184
  resolvedPath = __resolvedPath(resolvedPath, input, "botId", function () { return input.botId; }, "{botId}", false);
185
185
  resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", function () { return input.botVersion; }, "{botVersion}", false);
186
186
  resolvedPath = __resolvedPath(resolvedPath, input, "localeId", function () { return input.localeId; }, "{localeId}", false);
187
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dialogCodeHook != null && {
187
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dialogCodeHook != null && {
188
188
  dialogCodeHook: serializeAws_restJson1DialogCodeHookSettings(input.dialogCodeHook, context),
189
189
  })), (input.fulfillmentCodeHook != null && {
190
190
  fulfillmentCodeHook: serializeAws_restJson1FulfillmentCodeHookSettings(input.fulfillmentCodeHook, context),
191
+ })), (input.initialResponseSetting != null && {
192
+ initialResponseSetting: serializeAws_restJson1InitialResponseSetting(input.initialResponseSetting, context),
191
193
  })), (input.inputContexts != null && {
192
194
  inputContexts: serializeAws_restJson1InputContextsList(input.inputContexts, context),
193
195
  })), (input.intentClosingSetting != null && {
@@ -1692,10 +1694,12 @@ export var serializeAws_restJson1UpdateIntentCommand = function (input, context)
1692
1694
  resolvedPath = __resolvedPath(resolvedPath, input, "botId", function () { return input.botId; }, "{botId}", false);
1693
1695
  resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", function () { return input.botVersion; }, "{botVersion}", false);
1694
1696
  resolvedPath = __resolvedPath(resolvedPath, input, "localeId", function () { return input.localeId; }, "{localeId}", false);
1695
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dialogCodeHook != null && {
1697
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dialogCodeHook != null && {
1696
1698
  dialogCodeHook: serializeAws_restJson1DialogCodeHookSettings(input.dialogCodeHook, context),
1697
1699
  })), (input.fulfillmentCodeHook != null && {
1698
1700
  fulfillmentCodeHook: serializeAws_restJson1FulfillmentCodeHookSettings(input.fulfillmentCodeHook, context),
1701
+ })), (input.initialResponseSetting != null && {
1702
+ initialResponseSetting: serializeAws_restJson1InitialResponseSetting(input.initialResponseSetting, context),
1699
1703
  })), (input.inputContexts != null && {
1700
1704
  inputContexts: serializeAws_restJson1InputContextsList(input.inputContexts, context),
1701
1705
  })), (input.intentClosingSetting != null && {
@@ -2433,6 +2437,9 @@ export var deserializeAws_restJson1CreateIntentCommand = function (output, conte
2433
2437
  if (data.fulfillmentCodeHook != null) {
2434
2438
  contents.fulfillmentCodeHook = deserializeAws_restJson1FulfillmentCodeHookSettings(data.fulfillmentCodeHook, context);
2435
2439
  }
2440
+ if (data.initialResponseSetting != null) {
2441
+ contents.initialResponseSetting = deserializeAws_restJson1InitialResponseSetting(data.initialResponseSetting, context);
2442
+ }
2436
2443
  if (data.inputContexts != null) {
2437
2444
  contents.inputContexts = deserializeAws_restJson1InputContextsList(data.inputContexts, context);
2438
2445
  }
@@ -4766,6 +4773,9 @@ export var deserializeAws_restJson1DescribeIntentCommand = function (output, con
4766
4773
  if (data.fulfillmentCodeHook != null) {
4767
4774
  contents.fulfillmentCodeHook = deserializeAws_restJson1FulfillmentCodeHookSettings(data.fulfillmentCodeHook, context);
4768
4775
  }
4776
+ if (data.initialResponseSetting != null) {
4777
+ contents.initialResponseSetting = deserializeAws_restJson1InitialResponseSetting(data.initialResponseSetting, context);
4778
+ }
4769
4779
  if (data.inputContexts != null) {
4770
4780
  contents.inputContexts = deserializeAws_restJson1InputContextsList(data.inputContexts, context);
4771
4781
  }
@@ -7256,6 +7266,9 @@ export var deserializeAws_restJson1UpdateIntentCommand = function (output, conte
7256
7266
  if (data.fulfillmentCodeHook != null) {
7257
7267
  contents.fulfillmentCodeHook = deserializeAws_restJson1FulfillmentCodeHookSettings(data.fulfillmentCodeHook, context);
7258
7268
  }
7269
+ if (data.initialResponseSetting != null) {
7270
+ contents.initialResponseSetting = deserializeAws_restJson1InitialResponseSetting(data.initialResponseSetting, context);
7271
+ }
7259
7272
  if (data.inputContexts != null) {
7260
7273
  contents.inputContexts = deserializeAws_restJson1InputContextsList(data.inputContexts, context);
7261
7274
  }
@@ -7879,6 +7892,26 @@ var serializeAws_restJson1CodeHookSpecification = function (input, context) {
7879
7892
  lambdaCodeHook: serializeAws_restJson1LambdaCodeHook(input.lambdaCodeHook, context),
7880
7893
  }));
7881
7894
  };
7895
+ var serializeAws_restJson1Condition = function (input, context) {
7896
+ return __assign({}, (input.expressionString != null && { expressionString: input.expressionString }));
7897
+ };
7898
+ var serializeAws_restJson1ConditionalBranch = function (input, context) {
7899
+ return __assign(__assign(__assign(__assign({}, (input.condition != null && { condition: serializeAws_restJson1Condition(input.condition, context) })), (input.name != null && { name: input.name })), (input.nextStep != null && { nextStep: serializeAws_restJson1DialogState(input.nextStep, context) })), (input.response != null && { response: serializeAws_restJson1ResponseSpecification(input.response, context) }));
7900
+ };
7901
+ var serializeAws_restJson1ConditionalBranches = function (input, context) {
7902
+ return input
7903
+ .filter(function (e) { return e != null; })
7904
+ .map(function (entry) {
7905
+ return serializeAws_restJson1ConditionalBranch(entry, context);
7906
+ });
7907
+ };
7908
+ var serializeAws_restJson1ConditionalSpecification = function (input, context) {
7909
+ return __assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.conditionalBranches != null && {
7910
+ conditionalBranches: serializeAws_restJson1ConditionalBranches(input.conditionalBranches, context),
7911
+ })), (input.defaultBranch != null && {
7912
+ defaultBranch: serializeAws_restJson1DefaultConditionalBranch(input.defaultBranch, context),
7913
+ }));
7914
+ };
7882
7915
  var serializeAws_restJson1ConditionKeyValueMap = function (input, context) {
7883
7916
  return Object.entries(input).reduce(function (acc, _a) {
7884
7917
  var _b;
@@ -7921,9 +7954,30 @@ var serializeAws_restJson1DataPrivacy = function (input, context) {
7921
7954
  var serializeAws_restJson1DateRangeFilter = function (input, context) {
7922
7955
  return __assign(__assign({}, (input.endDateTime != null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) })), (input.startDateTime != null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) }));
7923
7956
  };
7957
+ var serializeAws_restJson1DefaultConditionalBranch = function (input, context) {
7958
+ return __assign(__assign({}, (input.nextStep != null && { nextStep: serializeAws_restJson1DialogState(input.nextStep, context) })), (input.response != null && { response: serializeAws_restJson1ResponseSpecification(input.response, context) }));
7959
+ };
7960
+ var serializeAws_restJson1DialogAction = function (input, context) {
7961
+ return __assign(__assign(__assign({}, (input.slotToElicit != null && { slotToElicit: input.slotToElicit })), (input.suppressNextMessage != null && { suppressNextMessage: input.suppressNextMessage })), (input.type != null && { type: input.type }));
7962
+ };
7963
+ var serializeAws_restJson1DialogCodeHookInvocationSetting = function (input, context) {
7964
+ return __assign(__assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.enableCodeHookInvocation != null && { enableCodeHookInvocation: input.enableCodeHookInvocation })), (input.invocationLabel != null && { invocationLabel: input.invocationLabel })), (input.postCodeHookSpecification != null && {
7965
+ postCodeHookSpecification: serializeAws_restJson1PostDialogCodeHookInvocationSpecification(input.postCodeHookSpecification, context),
7966
+ }));
7967
+ };
7924
7968
  var serializeAws_restJson1DialogCodeHookSettings = function (input, context) {
7925
7969
  return __assign({}, (input.enabled != null && { enabled: input.enabled }));
7926
7970
  };
7971
+ var serializeAws_restJson1DialogState = function (input, context) {
7972
+ return __assign(__assign(__assign({}, (input.dialogAction != null && {
7973
+ dialogAction: serializeAws_restJson1DialogAction(input.dialogAction, context),
7974
+ })), (input.intent != null && { intent: serializeAws_restJson1IntentOverride(input.intent, context) })), (input.sessionAttributes != null && {
7975
+ sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context),
7976
+ }));
7977
+ };
7978
+ var serializeAws_restJson1ElicitationCodeHookInvocationSetting = function (input, context) {
7979
+ return __assign(__assign({}, (input.enableCodeHookInvocation != null && { enableCodeHookInvocation: input.enableCodeHookInvocation })), (input.invocationLabel != null && { invocationLabel: input.invocationLabel }));
7980
+ };
7927
7981
  var serializeAws_restJson1EncryptionSetting = function (input, context) {
7928
7982
  return __assign(__assign(__assign({}, (input.associatedTranscriptsPassword != null && {
7929
7983
  associatedTranscriptsPassword: input.associatedTranscriptsPassword,
@@ -7964,7 +8018,7 @@ var serializeAws_restJson1FilterValues = function (input, context) {
7964
8018
  });
7965
8019
  };
7966
8020
  var serializeAws_restJson1FulfillmentCodeHookSettings = function (input, context) {
7967
- return __assign(__assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.fulfillmentUpdatesSpecification != null && {
8021
+ return __assign(__assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.enabled != null && { enabled: input.enabled })), (input.fulfillmentUpdatesSpecification != null && {
7968
8022
  fulfillmentUpdatesSpecification: serializeAws_restJson1FulfillmentUpdatesSpecification(input.fulfillmentUpdatesSpecification, context),
7969
8023
  })), (input.postFulfillmentStatusSpecification != null && {
7970
8024
  postFulfillmentStatusSpecification: serializeAws_restJson1PostFulfillmentStatusSpecification(input.postFulfillmentStatusSpecification, context),
@@ -8018,6 +8072,15 @@ var serializeAws_restJson1ImportResourceSpecification = function (input, context
8018
8072
  var serializeAws_restJson1ImportSortBy = function (input, context) {
8019
8073
  return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
8020
8074
  };
8075
+ var serializeAws_restJson1InitialResponseSetting = function (input, context) {
8076
+ return __assign(__assign(__assign(__assign({}, (input.codeHook != null && {
8077
+ codeHook: serializeAws_restJson1DialogCodeHookInvocationSetting(input.codeHook, context),
8078
+ })), (input.conditional != null && {
8079
+ conditional: serializeAws_restJson1ConditionalSpecification(input.conditional, context),
8080
+ })), (input.initialResponse != null && {
8081
+ initialResponse: serializeAws_restJson1ResponseSpecification(input.initialResponse, context),
8082
+ })), (input.nextStep != null && { nextStep: serializeAws_restJson1DialogState(input.nextStep, context) }));
8083
+ };
8021
8084
  var serializeAws_restJson1InputContext = function (input, context) {
8022
8085
  return __assign({}, (input.name != null && { name: input.name }));
8023
8086
  };
@@ -8029,13 +8092,35 @@ var serializeAws_restJson1InputContextsList = function (input, context) {
8029
8092
  });
8030
8093
  };
8031
8094
  var serializeAws_restJson1IntentClosingSetting = function (input, context) {
8032
- return __assign(__assign({}, (input.active != null && { active: input.active })), (input.closingResponse != null && {
8095
+ return __assign(__assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.closingResponse != null && {
8033
8096
  closingResponse: serializeAws_restJson1ResponseSpecification(input.closingResponse, context),
8034
- }));
8097
+ })), (input.conditional != null && {
8098
+ conditional: serializeAws_restJson1ConditionalSpecification(input.conditional, context),
8099
+ })), (input.nextStep != null && { nextStep: serializeAws_restJson1DialogState(input.nextStep, context) }));
8035
8100
  };
8036
8101
  var serializeAws_restJson1IntentConfirmationSetting = function (input, context) {
8037
- return __assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.declinationResponse != null && {
8102
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.codeHook != null && {
8103
+ codeHook: serializeAws_restJson1DialogCodeHookInvocationSetting(input.codeHook, context),
8104
+ })), (input.confirmationConditional != null && {
8105
+ confirmationConditional: serializeAws_restJson1ConditionalSpecification(input.confirmationConditional, context),
8106
+ })), (input.confirmationNextStep != null && {
8107
+ confirmationNextStep: serializeAws_restJson1DialogState(input.confirmationNextStep, context),
8108
+ })), (input.confirmationResponse != null && {
8109
+ confirmationResponse: serializeAws_restJson1ResponseSpecification(input.confirmationResponse, context),
8110
+ })), (input.declinationConditional != null && {
8111
+ declinationConditional: serializeAws_restJson1ConditionalSpecification(input.declinationConditional, context),
8112
+ })), (input.declinationNextStep != null && {
8113
+ declinationNextStep: serializeAws_restJson1DialogState(input.declinationNextStep, context),
8114
+ })), (input.declinationResponse != null && {
8038
8115
  declinationResponse: serializeAws_restJson1ResponseSpecification(input.declinationResponse, context),
8116
+ })), (input.elicitationCodeHook != null && {
8117
+ elicitationCodeHook: serializeAws_restJson1ElicitationCodeHookInvocationSetting(input.elicitationCodeHook, context),
8118
+ })), (input.failureConditional != null && {
8119
+ failureConditional: serializeAws_restJson1ConditionalSpecification(input.failureConditional, context),
8120
+ })), (input.failureNextStep != null && {
8121
+ failureNextStep: serializeAws_restJson1DialogState(input.failureNextStep, context),
8122
+ })), (input.failureResponse != null && {
8123
+ failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
8039
8124
  })), (input.promptSpecification != null && {
8040
8125
  promptSpecification: serializeAws_restJson1PromptSpecification(input.promptSpecification, context),
8041
8126
  }));
@@ -8050,6 +8135,9 @@ var serializeAws_restJson1IntentFilters = function (input, context) {
8050
8135
  return serializeAws_restJson1IntentFilter(entry, context);
8051
8136
  });
8052
8137
  };
8138
+ var serializeAws_restJson1IntentOverride = function (input, context) {
8139
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.slots != null && { slots: serializeAws_restJson1SlotValueOverrideMap(input.slots, context) }));
8140
+ };
8053
8141
  var serializeAws_restJson1IntentSortBy = function (input, context) {
8054
8142
  return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
8055
8143
  };
@@ -8130,11 +8218,44 @@ var serializeAws_restJson1PathFormat = function (input, context) {
8130
8218
  var serializeAws_restJson1PlainTextMessage = function (input, context) {
8131
8219
  return __assign({}, (input.value != null && { value: input.value }));
8132
8220
  };
8221
+ var serializeAws_restJson1PostDialogCodeHookInvocationSpecification = function (input, context) {
8222
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.failureConditional != null && {
8223
+ failureConditional: serializeAws_restJson1ConditionalSpecification(input.failureConditional, context),
8224
+ })), (input.failureNextStep != null && {
8225
+ failureNextStep: serializeAws_restJson1DialogState(input.failureNextStep, context),
8226
+ })), (input.failureResponse != null && {
8227
+ failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
8228
+ })), (input.successConditional != null && {
8229
+ successConditional: serializeAws_restJson1ConditionalSpecification(input.successConditional, context),
8230
+ })), (input.successNextStep != null && {
8231
+ successNextStep: serializeAws_restJson1DialogState(input.successNextStep, context),
8232
+ })), (input.successResponse != null && {
8233
+ successResponse: serializeAws_restJson1ResponseSpecification(input.successResponse, context),
8234
+ })), (input.timeoutConditional != null && {
8235
+ timeoutConditional: serializeAws_restJson1ConditionalSpecification(input.timeoutConditional, context),
8236
+ })), (input.timeoutNextStep != null && {
8237
+ timeoutNextStep: serializeAws_restJson1DialogState(input.timeoutNextStep, context),
8238
+ })), (input.timeoutResponse != null && {
8239
+ timeoutResponse: serializeAws_restJson1ResponseSpecification(input.timeoutResponse, context),
8240
+ }));
8241
+ };
8133
8242
  var serializeAws_restJson1PostFulfillmentStatusSpecification = function (input, context) {
8134
- return __assign(__assign(__assign({}, (input.failureResponse != null && {
8243
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.failureConditional != null && {
8244
+ failureConditional: serializeAws_restJson1ConditionalSpecification(input.failureConditional, context),
8245
+ })), (input.failureNextStep != null && {
8246
+ failureNextStep: serializeAws_restJson1DialogState(input.failureNextStep, context),
8247
+ })), (input.failureResponse != null && {
8135
8248
  failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
8249
+ })), (input.successConditional != null && {
8250
+ successConditional: serializeAws_restJson1ConditionalSpecification(input.successConditional, context),
8251
+ })), (input.successNextStep != null && {
8252
+ successNextStep: serializeAws_restJson1DialogState(input.successNextStep, context),
8136
8253
  })), (input.successResponse != null && {
8137
8254
  successResponse: serializeAws_restJson1ResponseSpecification(input.successResponse, context),
8255
+ })), (input.timeoutConditional != null && {
8256
+ timeoutConditional: serializeAws_restJson1ConditionalSpecification(input.timeoutConditional, context),
8257
+ })), (input.timeoutNextStep != null && {
8258
+ timeoutNextStep: serializeAws_restJson1DialogState(input.timeoutNextStep, context),
8138
8259
  })), (input.timeoutResponse != null && {
8139
8260
  timeoutResponse: serializeAws_restJson1ResponseSpecification(input.timeoutResponse, context),
8140
8261
  }));
@@ -8186,6 +8307,25 @@ var serializeAws_restJson1SampleValue = function (input, context) {
8186
8307
  var serializeAws_restJson1SentimentAnalysisSettings = function (input, context) {
8187
8308
  return __assign({}, (input.detectSentiment != null && { detectSentiment: input.detectSentiment }));
8188
8309
  };
8310
+ var serializeAws_restJson1SlotCaptureSetting = function (input, context) {
8311
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.captureConditional != null && {
8312
+ captureConditional: serializeAws_restJson1ConditionalSpecification(input.captureConditional, context),
8313
+ })), (input.captureNextStep != null && {
8314
+ captureNextStep: serializeAws_restJson1DialogState(input.captureNextStep, context),
8315
+ })), (input.captureResponse != null && {
8316
+ captureResponse: serializeAws_restJson1ResponseSpecification(input.captureResponse, context),
8317
+ })), (input.codeHook != null && {
8318
+ codeHook: serializeAws_restJson1DialogCodeHookInvocationSetting(input.codeHook, context),
8319
+ })), (input.elicitationCodeHook != null && {
8320
+ elicitationCodeHook: serializeAws_restJson1ElicitationCodeHookInvocationSetting(input.elicitationCodeHook, context),
8321
+ })), (input.failureConditional != null && {
8322
+ failureConditional: serializeAws_restJson1ConditionalSpecification(input.failureConditional, context),
8323
+ })), (input.failureNextStep != null && {
8324
+ failureNextStep: serializeAws_restJson1DialogState(input.failureNextStep, context),
8325
+ })), (input.failureResponse != null && {
8326
+ failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
8327
+ }));
8328
+ };
8189
8329
  var serializeAws_restJson1SlotDefaultValue = function (input, context) {
8190
8330
  return __assign({}, (input.defaultValue != null && { defaultValue: input.defaultValue }));
8191
8331
  };
@@ -8247,20 +8387,45 @@ var serializeAws_restJson1SlotTypeValues = function (input, context) {
8247
8387
  return serializeAws_restJson1SlotTypeValue(entry, context);
8248
8388
  });
8249
8389
  };
8390
+ var serializeAws_restJson1SlotValue = function (input, context) {
8391
+ return __assign({}, (input.interpretedValue != null && { interpretedValue: input.interpretedValue }));
8392
+ };
8250
8393
  var serializeAws_restJson1SlotValueElicitationSetting = function (input, context) {
8251
- return __assign(__assign(__assign(__assign(__assign({}, (input.defaultValueSpecification != null && {
8394
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.defaultValueSpecification != null && {
8252
8395
  defaultValueSpecification: serializeAws_restJson1SlotDefaultValueSpecification(input.defaultValueSpecification, context),
8253
8396
  })), (input.promptSpecification != null && {
8254
8397
  promptSpecification: serializeAws_restJson1PromptSpecification(input.promptSpecification, context),
8255
8398
  })), (input.sampleUtterances != null && {
8256
8399
  sampleUtterances: serializeAws_restJson1SampleUtterancesList(input.sampleUtterances, context),
8400
+ })), (input.slotCaptureSetting != null && {
8401
+ slotCaptureSetting: serializeAws_restJson1SlotCaptureSetting(input.slotCaptureSetting, context),
8257
8402
  })), (input.slotConstraint != null && { slotConstraint: input.slotConstraint })), (input.waitAndContinueSpecification != null && {
8258
8403
  waitAndContinueSpecification: serializeAws_restJson1WaitAndContinueSpecification(input.waitAndContinueSpecification, context),
8259
8404
  }));
8260
8405
  };
8406
+ var serializeAws_restJson1SlotValueOverride = function (input, context) {
8407
+ return __assign(__assign(__assign({}, (input.shape != null && { shape: input.shape })), (input.value != null && { value: serializeAws_restJson1SlotValue(input.value, context) })), (input.values != null && { values: serializeAws_restJson1SlotValues(input.values, context) }));
8408
+ };
8409
+ var serializeAws_restJson1SlotValueOverrideMap = function (input, context) {
8410
+ return Object.entries(input).reduce(function (acc, _a) {
8411
+ var _b;
8412
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
8413
+ if (value === null) {
8414
+ return acc;
8415
+ }
8416
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1SlotValueOverride(value, context), _b));
8417
+ }, {});
8418
+ };
8261
8419
  var serializeAws_restJson1SlotValueRegexFilter = function (input, context) {
8262
8420
  return __assign({}, (input.pattern != null && { pattern: input.pattern }));
8263
8421
  };
8422
+ var serializeAws_restJson1SlotValues = function (input, context) {
8423
+ return input
8424
+ .filter(function (e) { return e != null; })
8425
+ .map(function (entry) {
8426
+ return serializeAws_restJson1SlotValueOverride(entry, context);
8427
+ });
8428
+ };
8264
8429
  var serializeAws_restJson1SlotValueSelectionSetting = function (input, context) {
8265
8430
  return __assign(__assign(__assign({}, (input.advancedRecognitionSetting != null && {
8266
8431
  advancedRecognitionSetting: serializeAws_restJson1AdvancedRecognitionSetting(input.advancedRecognitionSetting, context),
@@ -8276,6 +8441,16 @@ var serializeAws_restJson1StillWaitingResponseSpecification = function (input, c
8276
8441
  messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
8277
8442
  })), (input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }));
8278
8443
  };
8444
+ var serializeAws_restJson1StringMap = function (input, context) {
8445
+ return Object.entries(input).reduce(function (acc, _a) {
8446
+ var _b;
8447
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
8448
+ if (value === null) {
8449
+ return acc;
8450
+ }
8451
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
8452
+ }, {});
8453
+ };
8279
8454
  var serializeAws_restJson1SynonymList = function (input, context) {
8280
8455
  return input
8281
8456
  .filter(function (e) { return e != null; })
@@ -8703,6 +8878,41 @@ var deserializeAws_restJson1CodeHookSpecification = function (output, context) {
8703
8878
  : undefined,
8704
8879
  };
8705
8880
  };
8881
+ var deserializeAws_restJson1Condition = function (output, context) {
8882
+ return {
8883
+ expressionString: __expectString(output.expressionString),
8884
+ };
8885
+ };
8886
+ var deserializeAws_restJson1ConditionalBranch = function (output, context) {
8887
+ return {
8888
+ condition: output.condition != null ? deserializeAws_restJson1Condition(output.condition, context) : undefined,
8889
+ name: __expectString(output.name),
8890
+ nextStep: output.nextStep != null ? deserializeAws_restJson1DialogState(output.nextStep, context) : undefined,
8891
+ response: output.response != null ? deserializeAws_restJson1ResponseSpecification(output.response, context) : undefined,
8892
+ };
8893
+ };
8894
+ var deserializeAws_restJson1ConditionalBranches = function (output, context) {
8895
+ var retVal = (output || [])
8896
+ .filter(function (e) { return e != null; })
8897
+ .map(function (entry) {
8898
+ if (entry === null) {
8899
+ return null;
8900
+ }
8901
+ return deserializeAws_restJson1ConditionalBranch(entry, context);
8902
+ });
8903
+ return retVal;
8904
+ };
8905
+ var deserializeAws_restJson1ConditionalSpecification = function (output, context) {
8906
+ return {
8907
+ active: __expectBoolean(output.active),
8908
+ conditionalBranches: output.conditionalBranches != null
8909
+ ? deserializeAws_restJson1ConditionalBranches(output.conditionalBranches, context)
8910
+ : undefined,
8911
+ defaultBranch: output.defaultBranch != null
8912
+ ? deserializeAws_restJson1DefaultConditionalBranch(output.defaultBranch, context)
8913
+ : undefined,
8914
+ };
8915
+ };
8706
8916
  var deserializeAws_restJson1ConversationLogSettings = function (output, context) {
8707
8917
  return {
8708
8918
  audioLogSettings: output.audioLogSettings != null
@@ -8747,11 +8957,49 @@ var deserializeAws_restJson1DateRangeFilter = function (output, context) {
8747
8957
  : undefined,
8748
8958
  };
8749
8959
  };
8960
+ var deserializeAws_restJson1DefaultConditionalBranch = function (output, context) {
8961
+ return {
8962
+ nextStep: output.nextStep != null ? deserializeAws_restJson1DialogState(output.nextStep, context) : undefined,
8963
+ response: output.response != null ? deserializeAws_restJson1ResponseSpecification(output.response, context) : undefined,
8964
+ };
8965
+ };
8966
+ var deserializeAws_restJson1DialogAction = function (output, context) {
8967
+ return {
8968
+ slotToElicit: __expectString(output.slotToElicit),
8969
+ suppressNextMessage: __expectBoolean(output.suppressNextMessage),
8970
+ type: __expectString(output.type),
8971
+ };
8972
+ };
8973
+ var deserializeAws_restJson1DialogCodeHookInvocationSetting = function (output, context) {
8974
+ return {
8975
+ active: __expectBoolean(output.active),
8976
+ enableCodeHookInvocation: __expectBoolean(output.enableCodeHookInvocation),
8977
+ invocationLabel: __expectString(output.invocationLabel),
8978
+ postCodeHookSpecification: output.postCodeHookSpecification != null
8979
+ ? deserializeAws_restJson1PostDialogCodeHookInvocationSpecification(output.postCodeHookSpecification, context)
8980
+ : undefined,
8981
+ };
8982
+ };
8750
8983
  var deserializeAws_restJson1DialogCodeHookSettings = function (output, context) {
8751
8984
  return {
8752
8985
  enabled: __expectBoolean(output.enabled),
8753
8986
  };
8754
8987
  };
8988
+ var deserializeAws_restJson1DialogState = function (output, context) {
8989
+ return {
8990
+ dialogAction: output.dialogAction != null ? deserializeAws_restJson1DialogAction(output.dialogAction, context) : undefined,
8991
+ intent: output.intent != null ? deserializeAws_restJson1IntentOverride(output.intent, context) : undefined,
8992
+ sessionAttributes: output.sessionAttributes != null
8993
+ ? deserializeAws_restJson1StringMap(output.sessionAttributes, context)
8994
+ : undefined,
8995
+ };
8996
+ };
8997
+ var deserializeAws_restJson1ElicitationCodeHookInvocationSetting = function (output, context) {
8998
+ return {
8999
+ enableCodeHookInvocation: __expectBoolean(output.enableCodeHookInvocation),
9000
+ invocationLabel: __expectString(output.invocationLabel),
9001
+ };
9002
+ };
8755
9003
  var deserializeAws_restJson1EncryptionSetting = function (output, context) {
8756
9004
  return {
8757
9005
  associatedTranscriptsPassword: __expectString(output.associatedTranscriptsPassword),
@@ -8819,6 +9067,7 @@ var deserializeAws_restJson1FailureReasons = function (output, context) {
8819
9067
  };
8820
9068
  var deserializeAws_restJson1FulfillmentCodeHookSettings = function (output, context) {
8821
9069
  return {
9070
+ active: __expectBoolean(output.active),
8822
9071
  enabled: __expectBoolean(output.enabled),
8823
9072
  fulfillmentUpdatesSpecification: output.fulfillmentUpdatesSpecification != null
8824
9073
  ? deserializeAws_restJson1FulfillmentUpdatesSpecification(output.fulfillmentUpdatesSpecification, context)
@@ -8918,6 +9167,20 @@ var deserializeAws_restJson1ImportSummaryList = function (output, context) {
8918
9167
  });
8919
9168
  return retVal;
8920
9169
  };
9170
+ var deserializeAws_restJson1InitialResponseSetting = function (output, context) {
9171
+ return {
9172
+ codeHook: output.codeHook != null
9173
+ ? deserializeAws_restJson1DialogCodeHookInvocationSetting(output.codeHook, context)
9174
+ : undefined,
9175
+ conditional: output.conditional != null
9176
+ ? deserializeAws_restJson1ConditionalSpecification(output.conditional, context)
9177
+ : undefined,
9178
+ initialResponse: output.initialResponse != null
9179
+ ? deserializeAws_restJson1ResponseSpecification(output.initialResponse, context)
9180
+ : undefined,
9181
+ nextStep: output.nextStep != null ? deserializeAws_restJson1DialogState(output.nextStep, context) : undefined,
9182
+ };
9183
+ };
8921
9184
  var deserializeAws_restJson1InputContext = function (output, context) {
8922
9185
  return {
8923
9186
  name: __expectString(output.name),
@@ -8940,19 +9203,57 @@ var deserializeAws_restJson1IntentClosingSetting = function (output, context) {
8940
9203
  closingResponse: output.closingResponse != null
8941
9204
  ? deserializeAws_restJson1ResponseSpecification(output.closingResponse, context)
8942
9205
  : undefined,
9206
+ conditional: output.conditional != null
9207
+ ? deserializeAws_restJson1ConditionalSpecification(output.conditional, context)
9208
+ : undefined,
9209
+ nextStep: output.nextStep != null ? deserializeAws_restJson1DialogState(output.nextStep, context) : undefined,
8943
9210
  };
8944
9211
  };
8945
9212
  var deserializeAws_restJson1IntentConfirmationSetting = function (output, context) {
8946
9213
  return {
8947
9214
  active: __expectBoolean(output.active),
9215
+ codeHook: output.codeHook != null
9216
+ ? deserializeAws_restJson1DialogCodeHookInvocationSetting(output.codeHook, context)
9217
+ : undefined,
9218
+ confirmationConditional: output.confirmationConditional != null
9219
+ ? deserializeAws_restJson1ConditionalSpecification(output.confirmationConditional, context)
9220
+ : undefined,
9221
+ confirmationNextStep: output.confirmationNextStep != null
9222
+ ? deserializeAws_restJson1DialogState(output.confirmationNextStep, context)
9223
+ : undefined,
9224
+ confirmationResponse: output.confirmationResponse != null
9225
+ ? deserializeAws_restJson1ResponseSpecification(output.confirmationResponse, context)
9226
+ : undefined,
9227
+ declinationConditional: output.declinationConditional != null
9228
+ ? deserializeAws_restJson1ConditionalSpecification(output.declinationConditional, context)
9229
+ : undefined,
9230
+ declinationNextStep: output.declinationNextStep != null
9231
+ ? deserializeAws_restJson1DialogState(output.declinationNextStep, context)
9232
+ : undefined,
8948
9233
  declinationResponse: output.declinationResponse != null
8949
9234
  ? deserializeAws_restJson1ResponseSpecification(output.declinationResponse, context)
8950
9235
  : undefined,
9236
+ elicitationCodeHook: output.elicitationCodeHook != null
9237
+ ? deserializeAws_restJson1ElicitationCodeHookInvocationSetting(output.elicitationCodeHook, context)
9238
+ : undefined,
9239
+ failureConditional: output.failureConditional != null
9240
+ ? deserializeAws_restJson1ConditionalSpecification(output.failureConditional, context)
9241
+ : undefined,
9242
+ failureNextStep: output.failureNextStep != null ? deserializeAws_restJson1DialogState(output.failureNextStep, context) : undefined,
9243
+ failureResponse: output.failureResponse != null
9244
+ ? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
9245
+ : undefined,
8951
9246
  promptSpecification: output.promptSpecification != null
8952
9247
  ? deserializeAws_restJson1PromptSpecification(output.promptSpecification, context)
8953
9248
  : undefined,
8954
9249
  };
8955
9250
  };
9251
+ var deserializeAws_restJson1IntentOverride = function (output, context) {
9252
+ return {
9253
+ name: __expectString(output.name),
9254
+ slots: output.slots != null ? deserializeAws_restJson1SlotValueOverrideMap(output.slots, context) : undefined,
9255
+ };
9256
+ };
8956
9257
  var deserializeAws_restJson1IntentStatistics = function (output, context) {
8957
9258
  return {
8958
9259
  discoveredIntentCount: __expectInt32(output.discoveredIntentCount),
@@ -9097,14 +9398,51 @@ var deserializeAws_restJson1PlainTextMessage = function (output, context) {
9097
9398
  value: __expectString(output.value),
9098
9399
  };
9099
9400
  };
9401
+ var deserializeAws_restJson1PostDialogCodeHookInvocationSpecification = function (output, context) {
9402
+ return {
9403
+ failureConditional: output.failureConditional != null
9404
+ ? deserializeAws_restJson1ConditionalSpecification(output.failureConditional, context)
9405
+ : undefined,
9406
+ failureNextStep: output.failureNextStep != null ? deserializeAws_restJson1DialogState(output.failureNextStep, context) : undefined,
9407
+ failureResponse: output.failureResponse != null
9408
+ ? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
9409
+ : undefined,
9410
+ successConditional: output.successConditional != null
9411
+ ? deserializeAws_restJson1ConditionalSpecification(output.successConditional, context)
9412
+ : undefined,
9413
+ successNextStep: output.successNextStep != null ? deserializeAws_restJson1DialogState(output.successNextStep, context) : undefined,
9414
+ successResponse: output.successResponse != null
9415
+ ? deserializeAws_restJson1ResponseSpecification(output.successResponse, context)
9416
+ : undefined,
9417
+ timeoutConditional: output.timeoutConditional != null
9418
+ ? deserializeAws_restJson1ConditionalSpecification(output.timeoutConditional, context)
9419
+ : undefined,
9420
+ timeoutNextStep: output.timeoutNextStep != null ? deserializeAws_restJson1DialogState(output.timeoutNextStep, context) : undefined,
9421
+ timeoutResponse: output.timeoutResponse != null
9422
+ ? deserializeAws_restJson1ResponseSpecification(output.timeoutResponse, context)
9423
+ : undefined,
9424
+ };
9425
+ };
9100
9426
  var deserializeAws_restJson1PostFulfillmentStatusSpecification = function (output, context) {
9101
9427
  return {
9428
+ failureConditional: output.failureConditional != null
9429
+ ? deserializeAws_restJson1ConditionalSpecification(output.failureConditional, context)
9430
+ : undefined,
9431
+ failureNextStep: output.failureNextStep != null ? deserializeAws_restJson1DialogState(output.failureNextStep, context) : undefined,
9102
9432
  failureResponse: output.failureResponse != null
9103
9433
  ? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
9104
9434
  : undefined,
9435
+ successConditional: output.successConditional != null
9436
+ ? deserializeAws_restJson1ConditionalSpecification(output.successConditional, context)
9437
+ : undefined,
9438
+ successNextStep: output.successNextStep != null ? deserializeAws_restJson1DialogState(output.successNextStep, context) : undefined,
9105
9439
  successResponse: output.successResponse != null
9106
9440
  ? deserializeAws_restJson1ResponseSpecification(output.successResponse, context)
9107
9441
  : undefined,
9442
+ timeoutConditional: output.timeoutConditional != null
9443
+ ? deserializeAws_restJson1ConditionalSpecification(output.timeoutConditional, context)
9444
+ : undefined,
9445
+ timeoutNextStep: output.timeoutNextStep != null ? deserializeAws_restJson1DialogState(output.timeoutNextStep, context) : undefined,
9108
9446
  timeoutResponse: output.timeoutResponse != null
9109
9447
  ? deserializeAws_restJson1ResponseSpecification(output.timeoutResponse, context)
9110
9448
  : undefined,
@@ -9207,6 +9545,30 @@ var deserializeAws_restJson1SentimentAnalysisSettings = function (output, contex
9207
9545
  detectSentiment: __expectBoolean(output.detectSentiment),
9208
9546
  };
9209
9547
  };
9548
+ var deserializeAws_restJson1SlotCaptureSetting = function (output, context) {
9549
+ return {
9550
+ captureConditional: output.captureConditional != null
9551
+ ? deserializeAws_restJson1ConditionalSpecification(output.captureConditional, context)
9552
+ : undefined,
9553
+ captureNextStep: output.captureNextStep != null ? deserializeAws_restJson1DialogState(output.captureNextStep, context) : undefined,
9554
+ captureResponse: output.captureResponse != null
9555
+ ? deserializeAws_restJson1ResponseSpecification(output.captureResponse, context)
9556
+ : undefined,
9557
+ codeHook: output.codeHook != null
9558
+ ? deserializeAws_restJson1DialogCodeHookInvocationSetting(output.codeHook, context)
9559
+ : undefined,
9560
+ elicitationCodeHook: output.elicitationCodeHook != null
9561
+ ? deserializeAws_restJson1ElicitationCodeHookInvocationSetting(output.elicitationCodeHook, context)
9562
+ : undefined,
9563
+ failureConditional: output.failureConditional != null
9564
+ ? deserializeAws_restJson1ConditionalSpecification(output.failureConditional, context)
9565
+ : undefined,
9566
+ failureNextStep: output.failureNextStep != null ? deserializeAws_restJson1DialogState(output.failureNextStep, context) : undefined,
9567
+ failureResponse: output.failureResponse != null
9568
+ ? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
9569
+ : undefined,
9570
+ };
9571
+ };
9210
9572
  var deserializeAws_restJson1SlotDefaultValue = function (output, context) {
9211
9573
  return {
9212
9574
  defaultValue: __expectString(output.defaultValue),
@@ -9318,6 +9680,11 @@ var deserializeAws_restJson1SlotTypeValues = function (output, context) {
9318
9680
  });
9319
9681
  return retVal;
9320
9682
  };
9683
+ var deserializeAws_restJson1SlotValue = function (output, context) {
9684
+ return {
9685
+ interpretedValue: __expectString(output.interpretedValue),
9686
+ };
9687
+ };
9321
9688
  var deserializeAws_restJson1SlotValueElicitationSetting = function (output, context) {
9322
9689
  return {
9323
9690
  defaultValueSpecification: output.defaultValueSpecification != null
@@ -9329,17 +9696,48 @@ var deserializeAws_restJson1SlotValueElicitationSetting = function (output, cont
9329
9696
  sampleUtterances: output.sampleUtterances != null
9330
9697
  ? deserializeAws_restJson1SampleUtterancesList(output.sampleUtterances, context)
9331
9698
  : undefined,
9699
+ slotCaptureSetting: output.slotCaptureSetting != null
9700
+ ? deserializeAws_restJson1SlotCaptureSetting(output.slotCaptureSetting, context)
9701
+ : undefined,
9332
9702
  slotConstraint: __expectString(output.slotConstraint),
9333
9703
  waitAndContinueSpecification: output.waitAndContinueSpecification != null
9334
9704
  ? deserializeAws_restJson1WaitAndContinueSpecification(output.waitAndContinueSpecification, context)
9335
9705
  : undefined,
9336
9706
  };
9337
9707
  };
9708
+ var deserializeAws_restJson1SlotValueOverride = function (output, context) {
9709
+ return {
9710
+ shape: __expectString(output.shape),
9711
+ value: output.value != null ? deserializeAws_restJson1SlotValue(output.value, context) : undefined,
9712
+ values: output.values != null ? deserializeAws_restJson1SlotValues(output.values, context) : undefined,
9713
+ };
9714
+ };
9715
+ var deserializeAws_restJson1SlotValueOverrideMap = function (output, context) {
9716
+ return Object.entries(output).reduce(function (acc, _a) {
9717
+ var _b;
9718
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
9719
+ if (value === null) {
9720
+ return acc;
9721
+ }
9722
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1SlotValueOverride(value, context), _b));
9723
+ }, {});
9724
+ };
9338
9725
  var deserializeAws_restJson1SlotValueRegexFilter = function (output, context) {
9339
9726
  return {
9340
9727
  pattern: __expectString(output.pattern),
9341
9728
  };
9342
9729
  };
9730
+ var deserializeAws_restJson1SlotValues = function (output, context) {
9731
+ var retVal = (output || [])
9732
+ .filter(function (e) { return e != null; })
9733
+ .map(function (entry) {
9734
+ if (entry === null) {
9735
+ return null;
9736
+ }
9737
+ return deserializeAws_restJson1SlotValueOverride(entry, context);
9738
+ });
9739
+ return retVal;
9740
+ };
9343
9741
  var deserializeAws_restJson1SlotValueSelectionSetting = function (output, context) {
9344
9742
  return {
9345
9743
  advancedRecognitionSetting: output.advancedRecognitionSetting != null
@@ -9366,6 +9764,16 @@ var deserializeAws_restJson1StillWaitingResponseSpecification = function (output
9366
9764
  timeoutInSeconds: __expectInt32(output.timeoutInSeconds),
9367
9765
  };
9368
9766
  };
9767
+ var deserializeAws_restJson1StringMap = function (output, context) {
9768
+ return Object.entries(output).reduce(function (acc, _a) {
9769
+ var _b;
9770
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
9771
+ if (value === null) {
9772
+ return acc;
9773
+ }
9774
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
9775
+ }, {});
9776
+ };
9369
9777
  var deserializeAws_restJson1SynonymList = function (output, context) {
9370
9778
  var retVal = (output || [])
9371
9779
  .filter(function (e) { return e != null; })