@aws-sdk/client-lex-models-v2 3.928.0 → 3.930.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 (129) hide show
  1. package/dist-cjs/index.js +5928 -5721
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/LexModelsV2Client.js +2 -0
  4. package/dist-es/commands/BatchCreateCustomVocabularyItemCommand.js +3 -9
  5. package/dist-es/commands/BatchDeleteCustomVocabularyItemCommand.js +3 -9
  6. package/dist-es/commands/BatchUpdateCustomVocabularyItemCommand.js +3 -9
  7. package/dist-es/commands/BuildBotLocaleCommand.js +3 -9
  8. package/dist-es/commands/CreateBotAliasCommand.js +3 -9
  9. package/dist-es/commands/CreateBotCommand.js +3 -9
  10. package/dist-es/commands/CreateBotLocaleCommand.js +3 -9
  11. package/dist-es/commands/CreateBotReplicaCommand.js +3 -9
  12. package/dist-es/commands/CreateBotVersionCommand.js +3 -9
  13. package/dist-es/commands/CreateExportCommand.js +3 -10
  14. package/dist-es/commands/CreateIntentCommand.js +3 -9
  15. package/dist-es/commands/CreateResourcePolicyCommand.js +3 -9
  16. package/dist-es/commands/CreateResourcePolicyStatementCommand.js +3 -9
  17. package/dist-es/commands/CreateSlotCommand.js +3 -9
  18. package/dist-es/commands/CreateSlotTypeCommand.js +3 -9
  19. package/dist-es/commands/CreateTestSetDiscrepancyReportCommand.js +3 -9
  20. package/dist-es/commands/CreateUploadUrlCommand.js +3 -9
  21. package/dist-es/commands/DeleteBotAliasCommand.js +3 -9
  22. package/dist-es/commands/DeleteBotCommand.js +3 -9
  23. package/dist-es/commands/DeleteBotLocaleCommand.js +3 -9
  24. package/dist-es/commands/DeleteBotReplicaCommand.js +3 -9
  25. package/dist-es/commands/DeleteBotVersionCommand.js +3 -9
  26. package/dist-es/commands/DeleteCustomVocabularyCommand.js +3 -9
  27. package/dist-es/commands/DeleteExportCommand.js +3 -9
  28. package/dist-es/commands/DeleteImportCommand.js +3 -9
  29. package/dist-es/commands/DeleteIntentCommand.js +3 -9
  30. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  31. package/dist-es/commands/DeleteResourcePolicyStatementCommand.js +3 -9
  32. package/dist-es/commands/DeleteSlotCommand.js +3 -9
  33. package/dist-es/commands/DeleteSlotTypeCommand.js +3 -9
  34. package/dist-es/commands/DeleteTestSetCommand.js +3 -9
  35. package/dist-es/commands/DeleteUtterancesCommand.js +3 -9
  36. package/dist-es/commands/DescribeBotAliasCommand.js +3 -9
  37. package/dist-es/commands/DescribeBotCommand.js +3 -9
  38. package/dist-es/commands/DescribeBotLocaleCommand.js +3 -9
  39. package/dist-es/commands/DescribeBotRecommendationCommand.js +3 -10
  40. package/dist-es/commands/DescribeBotReplicaCommand.js +3 -9
  41. package/dist-es/commands/DescribeBotResourceGenerationCommand.js +3 -9
  42. package/dist-es/commands/DescribeBotVersionCommand.js +3 -9
  43. package/dist-es/commands/DescribeCustomVocabularyMetadataCommand.js +3 -9
  44. package/dist-es/commands/DescribeExportCommand.js +3 -9
  45. package/dist-es/commands/DescribeImportCommand.js +3 -9
  46. package/dist-es/commands/DescribeIntentCommand.js +3 -9
  47. package/dist-es/commands/DescribeResourcePolicyCommand.js +3 -9
  48. package/dist-es/commands/DescribeSlotCommand.js +3 -9
  49. package/dist-es/commands/DescribeSlotTypeCommand.js +3 -9
  50. package/dist-es/commands/DescribeTestExecutionCommand.js +3 -9
  51. package/dist-es/commands/DescribeTestSetCommand.js +3 -9
  52. package/dist-es/commands/DescribeTestSetDiscrepancyReportCommand.js +3 -9
  53. package/dist-es/commands/DescribeTestSetGenerationCommand.js +3 -9
  54. package/dist-es/commands/GenerateBotElementCommand.js +3 -9
  55. package/dist-es/commands/GetTestExecutionArtifactsUrlCommand.js +3 -9
  56. package/dist-es/commands/ListAggregatedUtterancesCommand.js +3 -9
  57. package/dist-es/commands/ListBotAliasReplicasCommand.js +3 -9
  58. package/dist-es/commands/ListBotAliasesCommand.js +3 -9
  59. package/dist-es/commands/ListBotLocalesCommand.js +3 -9
  60. package/dist-es/commands/ListBotRecommendationsCommand.js +3 -9
  61. package/dist-es/commands/ListBotReplicasCommand.js +3 -9
  62. package/dist-es/commands/ListBotResourceGenerationsCommand.js +3 -9
  63. package/dist-es/commands/ListBotVersionReplicasCommand.js +3 -9
  64. package/dist-es/commands/ListBotVersionsCommand.js +3 -9
  65. package/dist-es/commands/ListBotsCommand.js +3 -9
  66. package/dist-es/commands/ListBuiltInIntentsCommand.js +3 -9
  67. package/dist-es/commands/ListBuiltInSlotTypesCommand.js +3 -9
  68. package/dist-es/commands/ListCustomVocabularyItemsCommand.js +3 -9
  69. package/dist-es/commands/ListExportsCommand.js +3 -9
  70. package/dist-es/commands/ListImportsCommand.js +3 -9
  71. package/dist-es/commands/ListIntentMetricsCommand.js +3 -9
  72. package/dist-es/commands/ListIntentPathsCommand.js +3 -9
  73. package/dist-es/commands/ListIntentStageMetricsCommand.js +3 -9
  74. package/dist-es/commands/ListIntentsCommand.js +3 -9
  75. package/dist-es/commands/ListRecommendedIntentsCommand.js +3 -9
  76. package/dist-es/commands/ListSessionAnalyticsDataCommand.js +3 -9
  77. package/dist-es/commands/ListSessionMetricsCommand.js +3 -9
  78. package/dist-es/commands/ListSlotTypesCommand.js +3 -9
  79. package/dist-es/commands/ListSlotsCommand.js +3 -9
  80. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  81. package/dist-es/commands/ListTestExecutionResultItemsCommand.js +3 -9
  82. package/dist-es/commands/ListTestExecutionsCommand.js +3 -9
  83. package/dist-es/commands/ListTestSetRecordsCommand.js +3 -9
  84. package/dist-es/commands/ListTestSetsCommand.js +3 -9
  85. package/dist-es/commands/ListUtteranceAnalyticsDataCommand.js +3 -9
  86. package/dist-es/commands/ListUtteranceMetricsCommand.js +3 -9
  87. package/dist-es/commands/SearchAssociatedTranscriptsCommand.js +3 -9
  88. package/dist-es/commands/StartBotRecommendationCommand.js +3 -10
  89. package/dist-es/commands/StartBotResourceGenerationCommand.js +3 -9
  90. package/dist-es/commands/StartImportCommand.js +3 -10
  91. package/dist-es/commands/StartTestExecutionCommand.js +3 -9
  92. package/dist-es/commands/StartTestSetGenerationCommand.js +3 -9
  93. package/dist-es/commands/StopBotRecommendationCommand.js +3 -9
  94. package/dist-es/commands/TagResourceCommand.js +3 -9
  95. package/dist-es/commands/UntagResourceCommand.js +3 -9
  96. package/dist-es/commands/UpdateBotAliasCommand.js +3 -9
  97. package/dist-es/commands/UpdateBotCommand.js +3 -9
  98. package/dist-es/commands/UpdateBotLocaleCommand.js +3 -9
  99. package/dist-es/commands/UpdateBotRecommendationCommand.js +3 -10
  100. package/dist-es/commands/UpdateExportCommand.js +3 -10
  101. package/dist-es/commands/UpdateIntentCommand.js +3 -9
  102. package/dist-es/commands/UpdateResourcePolicyCommand.js +3 -9
  103. package/dist-es/commands/UpdateSlotCommand.js +3 -9
  104. package/dist-es/commands/UpdateSlotTypeCommand.js +3 -9
  105. package/dist-es/commands/UpdateTestSetCommand.js +3 -9
  106. package/dist-es/models/models_0.js +0 -5
  107. package/dist-es/models/models_1.js +0 -34
  108. package/dist-es/runtimeConfig.shared.js +2 -0
  109. package/dist-es/schemas/schemas_0.js +5593 -0
  110. package/dist-types/LexModelsV2Client.d.ts +10 -1
  111. package/dist-types/models/models_0.d.ts +0 -4
  112. package/dist-types/models/models_1.d.ts +0 -32
  113. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  114. package/dist-types/runtimeConfig.d.ts +1 -0
  115. package/dist-types/runtimeConfig.native.d.ts +1 -0
  116. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  117. package/dist-types/schemas/schemas_0.d.ts +697 -0
  118. package/dist-types/ts3.4/LexModelsV2Client.d.ts +4 -0
  119. package/dist-types/ts3.4/models/models_0.d.ts +0 -3
  120. package/dist-types/ts3.4/models/models_1.d.ts +0 -24
  121. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  122. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  123. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  124. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  125. package/dist-types/ts3.4/schemas/schemas_0.d.ts +704 -0
  126. package/package.json +34 -34
  127. package/dist-es/protocols/Aws_restJson1.js +0 -4820
  128. package/dist-types/protocols/Aws_restJson1.d.ts +0 -920
  129. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -1229
@@ -1,4820 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
- import { LexModelsV2ServiceException as __BaseException } from "../models/LexModelsV2ServiceException";
5
- import { ConflictException, InternalServerException, PreconditionFailedException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const se_BatchCreateCustomVocabularyItemCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchcreate");
12
- b.p("botId", () => input.botId, "{botId}", false);
13
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
14
- b.p("localeId", () => input.localeId, "{localeId}", false);
15
- let body;
16
- body = JSON.stringify(take(input, {
17
- customVocabularyItemList: (_) => _json(_),
18
- }));
19
- b.m("PUT").h(headers).b(body);
20
- return b.build();
21
- };
22
- export const se_BatchDeleteCustomVocabularyItemCommand = async (input, context) => {
23
- const b = rb(input, context);
24
- const headers = {
25
- "content-type": "application/json",
26
- };
27
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchdelete");
28
- b.p("botId", () => input.botId, "{botId}", false);
29
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
30
- b.p("localeId", () => input.localeId, "{localeId}", false);
31
- let body;
32
- body = JSON.stringify(take(input, {
33
- customVocabularyItemList: (_) => _json(_),
34
- }));
35
- b.m("POST").h(headers).b(body);
36
- return b.build();
37
- };
38
- export const se_BatchUpdateCustomVocabularyItemCommand = async (input, context) => {
39
- const b = rb(input, context);
40
- const headers = {
41
- "content-type": "application/json",
42
- };
43
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchupdate");
44
- b.p("botId", () => input.botId, "{botId}", false);
45
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
46
- b.p("localeId", () => input.localeId, "{localeId}", false);
47
- let body;
48
- body = JSON.stringify(take(input, {
49
- customVocabularyItemList: (_) => _json(_),
50
- }));
51
- b.m("PUT").h(headers).b(body);
52
- return b.build();
53
- };
54
- export const se_BuildBotLocaleCommand = async (input, context) => {
55
- const b = rb(input, context);
56
- const headers = {};
57
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}");
58
- b.p("botId", () => input.botId, "{botId}", false);
59
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
60
- b.p("localeId", () => input.localeId, "{localeId}", false);
61
- let body;
62
- b.m("POST").h(headers).b(body);
63
- return b.build();
64
- };
65
- export const se_CreateBotCommand = async (input, context) => {
66
- const b = rb(input, context);
67
- const headers = {
68
- "content-type": "application/json",
69
- };
70
- b.bp("/bots");
71
- let body;
72
- body = JSON.stringify(take(input, {
73
- botMembers: (_) => _json(_),
74
- botName: [],
75
- botTags: (_) => _json(_),
76
- botType: [],
77
- dataPrivacy: (_) => _json(_),
78
- description: [],
79
- errorLogSettings: (_) => _json(_),
80
- idleSessionTTLInSeconds: [],
81
- roleArn: [],
82
- testBotAliasTags: (_) => _json(_),
83
- }));
84
- b.m("PUT").h(headers).b(body);
85
- return b.build();
86
- };
87
- export const se_CreateBotAliasCommand = async (input, context) => {
88
- const b = rb(input, context);
89
- const headers = {
90
- "content-type": "application/json",
91
- };
92
- b.bp("/bots/{botId}/botaliases");
93
- b.p("botId", () => input.botId, "{botId}", false);
94
- let body;
95
- body = JSON.stringify(take(input, {
96
- botAliasLocaleSettings: (_) => _json(_),
97
- botAliasName: [],
98
- botVersion: [],
99
- conversationLogSettings: (_) => _json(_),
100
- description: [],
101
- sentimentAnalysisSettings: (_) => _json(_),
102
- tags: (_) => _json(_),
103
- }));
104
- b.m("PUT").h(headers).b(body);
105
- return b.build();
106
- };
107
- export const se_CreateBotLocaleCommand = async (input, context) => {
108
- const b = rb(input, context);
109
- const headers = {
110
- "content-type": "application/json",
111
- };
112
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales");
113
- b.p("botId", () => input.botId, "{botId}", false);
114
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
115
- let body;
116
- body = JSON.stringify(take(input, {
117
- description: [],
118
- generativeAISettings: (_) => _json(_),
119
- localeId: [],
120
- nluIntentConfidenceThreshold: (_) => __serializeFloat(_),
121
- voiceSettings: (_) => _json(_),
122
- }));
123
- b.m("PUT").h(headers).b(body);
124
- return b.build();
125
- };
126
- export const se_CreateBotReplicaCommand = async (input, context) => {
127
- const b = rb(input, context);
128
- const headers = {
129
- "content-type": "application/json",
130
- };
131
- b.bp("/bots/{botId}/replicas");
132
- b.p("botId", () => input.botId, "{botId}", false);
133
- let body;
134
- body = JSON.stringify(take(input, {
135
- replicaRegion: [],
136
- }));
137
- b.m("PUT").h(headers).b(body);
138
- return b.build();
139
- };
140
- export const se_CreateBotVersionCommand = async (input, context) => {
141
- const b = rb(input, context);
142
- const headers = {
143
- "content-type": "application/json",
144
- };
145
- b.bp("/bots/{botId}/botversions");
146
- b.p("botId", () => input.botId, "{botId}", false);
147
- let body;
148
- body = JSON.stringify(take(input, {
149
- botVersionLocaleSpecification: (_) => _json(_),
150
- description: [],
151
- }));
152
- b.m("PUT").h(headers).b(body);
153
- return b.build();
154
- };
155
- export const se_CreateExportCommand = async (input, context) => {
156
- const b = rb(input, context);
157
- const headers = {
158
- "content-type": "application/json",
159
- };
160
- b.bp("/exports");
161
- let body;
162
- body = JSON.stringify(take(input, {
163
- fileFormat: [],
164
- filePassword: [],
165
- resourceSpecification: (_) => _json(_),
166
- }));
167
- b.m("PUT").h(headers).b(body);
168
- return b.build();
169
- };
170
- export const se_CreateIntentCommand = async (input, context) => {
171
- const b = rb(input, context);
172
- const headers = {
173
- "content-type": "application/json",
174
- };
175
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents");
176
- b.p("botId", () => input.botId, "{botId}", false);
177
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
178
- b.p("localeId", () => input.localeId, "{localeId}", false);
179
- let body;
180
- body = JSON.stringify(take(input, {
181
- description: [],
182
- dialogCodeHook: (_) => _json(_),
183
- fulfillmentCodeHook: (_) => se_FulfillmentCodeHookSettings(_, context),
184
- initialResponseSetting: (_) => se_InitialResponseSetting(_, context),
185
- inputContexts: (_) => _json(_),
186
- intentClosingSetting: (_) => se_IntentClosingSetting(_, context),
187
- intentConfirmationSetting: (_) => se_IntentConfirmationSetting(_, context),
188
- intentName: [],
189
- kendraConfiguration: (_) => _json(_),
190
- outputContexts: (_) => _json(_),
191
- parentIntentSignature: [],
192
- qInConnectIntentConfiguration: (_) => _json(_),
193
- qnAIntentConfiguration: (_) => _json(_),
194
- sampleUtterances: (_) => _json(_),
195
- }));
196
- b.m("PUT").h(headers).b(body);
197
- return b.build();
198
- };
199
- export const se_CreateResourcePolicyCommand = async (input, context) => {
200
- const b = rb(input, context);
201
- const headers = {
202
- "content-type": "application/json",
203
- };
204
- b.bp("/policy/{resourceArn}");
205
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
206
- let body;
207
- body = JSON.stringify(take(input, {
208
- policy: [],
209
- }));
210
- b.m("POST").h(headers).b(body);
211
- return b.build();
212
- };
213
- export const se_CreateResourcePolicyStatementCommand = async (input, context) => {
214
- const b = rb(input, context);
215
- const headers = {
216
- "content-type": "application/json",
217
- };
218
- b.bp("/policy/{resourceArn}/statements");
219
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
220
- const query = map({
221
- [_eRI]: [, input[_eRI]],
222
- });
223
- let body;
224
- body = JSON.stringify(take(input, {
225
- action: (_) => _json(_),
226
- condition: (_) => _json(_),
227
- effect: [],
228
- principal: (_) => _json(_),
229
- statementId: [],
230
- }));
231
- b.m("POST").h(headers).q(query).b(body);
232
- return b.build();
233
- };
234
- export const se_CreateSlotCommand = async (input, context) => {
235
- const b = rb(input, context);
236
- const headers = {
237
- "content-type": "application/json",
238
- };
239
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots");
240
- b.p("botId", () => input.botId, "{botId}", false);
241
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
242
- b.p("localeId", () => input.localeId, "{localeId}", false);
243
- b.p("intentId", () => input.intentId, "{intentId}", false);
244
- let body;
245
- body = JSON.stringify(take(input, {
246
- description: [],
247
- multipleValuesSetting: (_) => _json(_),
248
- obfuscationSetting: (_) => _json(_),
249
- slotName: [],
250
- slotTypeId: [],
251
- subSlotSetting: (_) => se_SubSlotSetting(_, context),
252
- valueElicitationSetting: (_) => se_SlotValueElicitationSetting(_, context),
253
- }));
254
- b.m("PUT").h(headers).b(body);
255
- return b.build();
256
- };
257
- export const se_CreateSlotTypeCommand = async (input, context) => {
258
- const b = rb(input, context);
259
- const headers = {
260
- "content-type": "application/json",
261
- };
262
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes");
263
- b.p("botId", () => input.botId, "{botId}", false);
264
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
265
- b.p("localeId", () => input.localeId, "{localeId}", false);
266
- let body;
267
- body = JSON.stringify(take(input, {
268
- compositeSlotTypeSetting: (_) => _json(_),
269
- description: [],
270
- externalSourceSetting: (_) => _json(_),
271
- parentSlotTypeSignature: [],
272
- slotTypeName: [],
273
- slotTypeValues: (_) => _json(_),
274
- valueSelectionSetting: (_) => _json(_),
275
- }));
276
- b.m("PUT").h(headers).b(body);
277
- return b.build();
278
- };
279
- export const se_CreateTestSetDiscrepancyReportCommand = async (input, context) => {
280
- const b = rb(input, context);
281
- const headers = {
282
- "content-type": "application/json",
283
- };
284
- b.bp("/testsets/{testSetId}/testsetdiscrepancy");
285
- b.p("testSetId", () => input.testSetId, "{testSetId}", false);
286
- let body;
287
- body = JSON.stringify(take(input, {
288
- target: (_) => _json(_),
289
- }));
290
- b.m("POST").h(headers).b(body);
291
- return b.build();
292
- };
293
- export const se_CreateUploadUrlCommand = async (input, context) => {
294
- const b = rb(input, context);
295
- const headers = {};
296
- b.bp("/createuploadurl");
297
- let body;
298
- b.m("POST").h(headers).b(body);
299
- return b.build();
300
- };
301
- export const se_DeleteBotCommand = async (input, context) => {
302
- const b = rb(input, context);
303
- const headers = {};
304
- b.bp("/bots/{botId}");
305
- b.p("botId", () => input.botId, "{botId}", false);
306
- const query = map({
307
- [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
308
- });
309
- let body;
310
- b.m("DELETE").h(headers).q(query).b(body);
311
- return b.build();
312
- };
313
- export const se_DeleteBotAliasCommand = async (input, context) => {
314
- const b = rb(input, context);
315
- const headers = {};
316
- b.bp("/bots/{botId}/botaliases/{botAliasId}");
317
- b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
318
- b.p("botId", () => input.botId, "{botId}", false);
319
- const query = map({
320
- [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
321
- });
322
- let body;
323
- b.m("DELETE").h(headers).q(query).b(body);
324
- return b.build();
325
- };
326
- export const se_DeleteBotLocaleCommand = async (input, context) => {
327
- const b = rb(input, context);
328
- const headers = {};
329
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}");
330
- b.p("botId", () => input.botId, "{botId}", false);
331
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
332
- b.p("localeId", () => input.localeId, "{localeId}", false);
333
- let body;
334
- b.m("DELETE").h(headers).b(body);
335
- return b.build();
336
- };
337
- export const se_DeleteBotReplicaCommand = async (input, context) => {
338
- const b = rb(input, context);
339
- const headers = {};
340
- b.bp("/bots/{botId}/replicas/{replicaRegion}");
341
- b.p("botId", () => input.botId, "{botId}", false);
342
- b.p("replicaRegion", () => input.replicaRegion, "{replicaRegion}", false);
343
- let body;
344
- b.m("DELETE").h(headers).b(body);
345
- return b.build();
346
- };
347
- export const se_DeleteBotVersionCommand = async (input, context) => {
348
- const b = rb(input, context);
349
- const headers = {};
350
- b.bp("/bots/{botId}/botversions/{botVersion}");
351
- b.p("botId", () => input.botId, "{botId}", false);
352
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
353
- const query = map({
354
- [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
355
- });
356
- let body;
357
- b.m("DELETE").h(headers).q(query).b(body);
358
- return b.build();
359
- };
360
- export const se_DeleteCustomVocabularyCommand = async (input, context) => {
361
- const b = rb(input, context);
362
- const headers = {};
363
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary");
364
- b.p("botId", () => input.botId, "{botId}", false);
365
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
366
- b.p("localeId", () => input.localeId, "{localeId}", false);
367
- let body;
368
- b.m("DELETE").h(headers).b(body);
369
- return b.build();
370
- };
371
- export const se_DeleteExportCommand = async (input, context) => {
372
- const b = rb(input, context);
373
- const headers = {};
374
- b.bp("/exports/{exportId}");
375
- b.p("exportId", () => input.exportId, "{exportId}", false);
376
- let body;
377
- b.m("DELETE").h(headers).b(body);
378
- return b.build();
379
- };
380
- export const se_DeleteImportCommand = async (input, context) => {
381
- const b = rb(input, context);
382
- const headers = {};
383
- b.bp("/imports/{importId}");
384
- b.p("importId", () => input.importId, "{importId}", false);
385
- let body;
386
- b.m("DELETE").h(headers).b(body);
387
- return b.build();
388
- };
389
- export const se_DeleteIntentCommand = async (input, context) => {
390
- const b = rb(input, context);
391
- const headers = {};
392
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}");
393
- b.p("intentId", () => input.intentId, "{intentId}", false);
394
- b.p("botId", () => input.botId, "{botId}", false);
395
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
396
- b.p("localeId", () => input.localeId, "{localeId}", false);
397
- let body;
398
- b.m("DELETE").h(headers).b(body);
399
- return b.build();
400
- };
401
- export const se_DeleteResourcePolicyCommand = async (input, context) => {
402
- const b = rb(input, context);
403
- const headers = {};
404
- b.bp("/policy/{resourceArn}");
405
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
406
- const query = map({
407
- [_eRI]: [, input[_eRI]],
408
- });
409
- let body;
410
- b.m("DELETE").h(headers).q(query).b(body);
411
- return b.build();
412
- };
413
- export const se_DeleteResourcePolicyStatementCommand = async (input, context) => {
414
- const b = rb(input, context);
415
- const headers = {};
416
- b.bp("/policy/{resourceArn}/statements/{statementId}");
417
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
418
- b.p("statementId", () => input.statementId, "{statementId}", false);
419
- const query = map({
420
- [_eRI]: [, input[_eRI]],
421
- });
422
- let body;
423
- b.m("DELETE").h(headers).q(query).b(body);
424
- return b.build();
425
- };
426
- export const se_DeleteSlotCommand = async (input, context) => {
427
- const b = rb(input, context);
428
- const headers = {};
429
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}");
430
- b.p("slotId", () => input.slotId, "{slotId}", false);
431
- b.p("botId", () => input.botId, "{botId}", false);
432
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
433
- b.p("localeId", () => input.localeId, "{localeId}", false);
434
- b.p("intentId", () => input.intentId, "{intentId}", false);
435
- let body;
436
- b.m("DELETE").h(headers).b(body);
437
- return b.build();
438
- };
439
- export const se_DeleteSlotTypeCommand = async (input, context) => {
440
- const b = rb(input, context);
441
- const headers = {};
442
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}");
443
- b.p("slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
444
- b.p("botId", () => input.botId, "{botId}", false);
445
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
446
- b.p("localeId", () => input.localeId, "{localeId}", false);
447
- const query = map({
448
- [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
449
- });
450
- let body;
451
- b.m("DELETE").h(headers).q(query).b(body);
452
- return b.build();
453
- };
454
- export const se_DeleteTestSetCommand = async (input, context) => {
455
- const b = rb(input, context);
456
- const headers = {};
457
- b.bp("/testsets/{testSetId}");
458
- b.p("testSetId", () => input.testSetId, "{testSetId}", false);
459
- let body;
460
- b.m("DELETE").h(headers).b(body);
461
- return b.build();
462
- };
463
- export const se_DeleteUtterancesCommand = async (input, context) => {
464
- const b = rb(input, context);
465
- const headers = {};
466
- b.bp("/bots/{botId}/utterances");
467
- b.p("botId", () => input.botId, "{botId}", false);
468
- const query = map({
469
- [_lI]: [, input[_lI]],
470
- [_sI]: [, input[_sI]],
471
- });
472
- let body;
473
- b.m("DELETE").h(headers).q(query).b(body);
474
- return b.build();
475
- };
476
- export const se_DescribeBotCommand = async (input, context) => {
477
- const b = rb(input, context);
478
- const headers = {};
479
- b.bp("/bots/{botId}");
480
- b.p("botId", () => input.botId, "{botId}", false);
481
- let body;
482
- b.m("GET").h(headers).b(body);
483
- return b.build();
484
- };
485
- export const se_DescribeBotAliasCommand = async (input, context) => {
486
- const b = rb(input, context);
487
- const headers = {};
488
- b.bp("/bots/{botId}/botaliases/{botAliasId}");
489
- b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
490
- b.p("botId", () => input.botId, "{botId}", false);
491
- let body;
492
- b.m("GET").h(headers).b(body);
493
- return b.build();
494
- };
495
- export const se_DescribeBotLocaleCommand = async (input, context) => {
496
- const b = rb(input, context);
497
- const headers = {};
498
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}");
499
- b.p("botId", () => input.botId, "{botId}", false);
500
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
501
- b.p("localeId", () => input.localeId, "{localeId}", false);
502
- let body;
503
- b.m("GET").h(headers).b(body);
504
- return b.build();
505
- };
506
- export const se_DescribeBotRecommendationCommand = async (input, context) => {
507
- const b = rb(input, context);
508
- const headers = {};
509
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}");
510
- b.p("botId", () => input.botId, "{botId}", false);
511
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
512
- b.p("localeId", () => input.localeId, "{localeId}", false);
513
- b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
514
- let body;
515
- b.m("GET").h(headers).b(body);
516
- return b.build();
517
- };
518
- export const se_DescribeBotReplicaCommand = async (input, context) => {
519
- const b = rb(input, context);
520
- const headers = {};
521
- b.bp("/bots/{botId}/replicas/{replicaRegion}");
522
- b.p("botId", () => input.botId, "{botId}", false);
523
- b.p("replicaRegion", () => input.replicaRegion, "{replicaRegion}", false);
524
- let body;
525
- b.m("GET").h(headers).b(body);
526
- return b.build();
527
- };
528
- export const se_DescribeBotResourceGenerationCommand = async (input, context) => {
529
- const b = rb(input, context);
530
- const headers = {};
531
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations/{generationId}");
532
- b.p("botId", () => input.botId, "{botId}", false);
533
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
534
- b.p("localeId", () => input.localeId, "{localeId}", false);
535
- b.p("generationId", () => input.generationId, "{generationId}", false);
536
- let body;
537
- b.m("GET").h(headers).b(body);
538
- return b.build();
539
- };
540
- export const se_DescribeBotVersionCommand = async (input, context) => {
541
- const b = rb(input, context);
542
- const headers = {};
543
- b.bp("/bots/{botId}/botversions/{botVersion}");
544
- b.p("botId", () => input.botId, "{botId}", false);
545
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
546
- let body;
547
- b.m("GET").h(headers).b(body);
548
- return b.build();
549
- };
550
- export const se_DescribeCustomVocabularyMetadataCommand = async (input, context) => {
551
- const b = rb(input, context);
552
- const headers = {};
553
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata");
554
- b.p("botId", () => input.botId, "{botId}", false);
555
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
556
- b.p("localeId", () => input.localeId, "{localeId}", false);
557
- let body;
558
- b.m("GET").h(headers).b(body);
559
- return b.build();
560
- };
561
- export const se_DescribeExportCommand = async (input, context) => {
562
- const b = rb(input, context);
563
- const headers = {};
564
- b.bp("/exports/{exportId}");
565
- b.p("exportId", () => input.exportId, "{exportId}", false);
566
- let body;
567
- b.m("GET").h(headers).b(body);
568
- return b.build();
569
- };
570
- export const se_DescribeImportCommand = async (input, context) => {
571
- const b = rb(input, context);
572
- const headers = {};
573
- b.bp("/imports/{importId}");
574
- b.p("importId", () => input.importId, "{importId}", false);
575
- let body;
576
- b.m("GET").h(headers).b(body);
577
- return b.build();
578
- };
579
- export const se_DescribeIntentCommand = async (input, context) => {
580
- const b = rb(input, context);
581
- const headers = {};
582
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}");
583
- b.p("intentId", () => input.intentId, "{intentId}", false);
584
- b.p("botId", () => input.botId, "{botId}", false);
585
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
586
- b.p("localeId", () => input.localeId, "{localeId}", false);
587
- let body;
588
- b.m("GET").h(headers).b(body);
589
- return b.build();
590
- };
591
- export const se_DescribeResourcePolicyCommand = async (input, context) => {
592
- const b = rb(input, context);
593
- const headers = {};
594
- b.bp("/policy/{resourceArn}");
595
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
596
- let body;
597
- b.m("GET").h(headers).b(body);
598
- return b.build();
599
- };
600
- export const se_DescribeSlotCommand = async (input, context) => {
601
- const b = rb(input, context);
602
- const headers = {};
603
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}");
604
- b.p("slotId", () => input.slotId, "{slotId}", false);
605
- b.p("botId", () => input.botId, "{botId}", false);
606
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
607
- b.p("localeId", () => input.localeId, "{localeId}", false);
608
- b.p("intentId", () => input.intentId, "{intentId}", false);
609
- let body;
610
- b.m("GET").h(headers).b(body);
611
- return b.build();
612
- };
613
- export const se_DescribeSlotTypeCommand = async (input, context) => {
614
- const b = rb(input, context);
615
- const headers = {};
616
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}");
617
- b.p("slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
618
- b.p("botId", () => input.botId, "{botId}", false);
619
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
620
- b.p("localeId", () => input.localeId, "{localeId}", false);
621
- let body;
622
- b.m("GET").h(headers).b(body);
623
- return b.build();
624
- };
625
- export const se_DescribeTestExecutionCommand = async (input, context) => {
626
- const b = rb(input, context);
627
- const headers = {};
628
- b.bp("/testexecutions/{testExecutionId}");
629
- b.p("testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
630
- let body;
631
- b.m("GET").h(headers).b(body);
632
- return b.build();
633
- };
634
- export const se_DescribeTestSetCommand = async (input, context) => {
635
- const b = rb(input, context);
636
- const headers = {};
637
- b.bp("/testsets/{testSetId}");
638
- b.p("testSetId", () => input.testSetId, "{testSetId}", false);
639
- let body;
640
- b.m("GET").h(headers).b(body);
641
- return b.build();
642
- };
643
- export const se_DescribeTestSetDiscrepancyReportCommand = async (input, context) => {
644
- const b = rb(input, context);
645
- const headers = {};
646
- b.bp("/testsetdiscrepancy/{testSetDiscrepancyReportId}");
647
- b.p("testSetDiscrepancyReportId", () => input.testSetDiscrepancyReportId, "{testSetDiscrepancyReportId}", false);
648
- let body;
649
- b.m("GET").h(headers).b(body);
650
- return b.build();
651
- };
652
- export const se_DescribeTestSetGenerationCommand = async (input, context) => {
653
- const b = rb(input, context);
654
- const headers = {};
655
- b.bp("/testsetgenerations/{testSetGenerationId}");
656
- b.p("testSetGenerationId", () => input.testSetGenerationId, "{testSetGenerationId}", false);
657
- let body;
658
- b.m("GET").h(headers).b(body);
659
- return b.build();
660
- };
661
- export const se_GenerateBotElementCommand = async (input, context) => {
662
- const b = rb(input, context);
663
- const headers = {
664
- "content-type": "application/json",
665
- };
666
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate");
667
- b.p("botId", () => input.botId, "{botId}", false);
668
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
669
- b.p("localeId", () => input.localeId, "{localeId}", false);
670
- let body;
671
- body = JSON.stringify(take(input, {
672
- intentId: [],
673
- }));
674
- b.m("POST").h(headers).b(body);
675
- return b.build();
676
- };
677
- export const se_GetTestExecutionArtifactsUrlCommand = async (input, context) => {
678
- const b = rb(input, context);
679
- const headers = {};
680
- b.bp("/testexecutions/{testExecutionId}/artifacturl");
681
- b.p("testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
682
- let body;
683
- b.m("GET").h(headers).b(body);
684
- return b.build();
685
- };
686
- export const se_ListAggregatedUtterancesCommand = async (input, context) => {
687
- const b = rb(input, context);
688
- const headers = {
689
- "content-type": "application/json",
690
- };
691
- b.bp("/bots/{botId}/aggregatedutterances");
692
- b.p("botId", () => input.botId, "{botId}", false);
693
- let body;
694
- body = JSON.stringify(take(input, {
695
- aggregationDuration: (_) => _json(_),
696
- botAliasId: [],
697
- botVersion: [],
698
- filters: (_) => _json(_),
699
- localeId: [],
700
- maxResults: [],
701
- nextToken: [],
702
- sortBy: (_) => _json(_),
703
- }));
704
- b.m("POST").h(headers).b(body);
705
- return b.build();
706
- };
707
- export const se_ListBotAliasesCommand = async (input, context) => {
708
- const b = rb(input, context);
709
- const headers = {
710
- "content-type": "application/json",
711
- };
712
- b.bp("/bots/{botId}/botaliases");
713
- b.p("botId", () => input.botId, "{botId}", false);
714
- let body;
715
- body = JSON.stringify(take(input, {
716
- maxResults: [],
717
- nextToken: [],
718
- }));
719
- b.m("POST").h(headers).b(body);
720
- return b.build();
721
- };
722
- export const se_ListBotAliasReplicasCommand = async (input, context) => {
723
- const b = rb(input, context);
724
- const headers = {
725
- "content-type": "application/json",
726
- };
727
- b.bp("/bots/{botId}/replicas/{replicaRegion}/botaliases");
728
- b.p("botId", () => input.botId, "{botId}", false);
729
- b.p("replicaRegion", () => input.replicaRegion, "{replicaRegion}", false);
730
- let body;
731
- body = JSON.stringify(take(input, {
732
- maxResults: [],
733
- nextToken: [],
734
- }));
735
- b.m("POST").h(headers).b(body);
736
- return b.build();
737
- };
738
- export const se_ListBotLocalesCommand = async (input, context) => {
739
- const b = rb(input, context);
740
- const headers = {
741
- "content-type": "application/json",
742
- };
743
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales");
744
- b.p("botId", () => input.botId, "{botId}", false);
745
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
746
- let body;
747
- body = JSON.stringify(take(input, {
748
- filters: (_) => _json(_),
749
- maxResults: [],
750
- nextToken: [],
751
- sortBy: (_) => _json(_),
752
- }));
753
- b.m("POST").h(headers).b(body);
754
- return b.build();
755
- };
756
- export const se_ListBotRecommendationsCommand = async (input, context) => {
757
- const b = rb(input, context);
758
- const headers = {
759
- "content-type": "application/json",
760
- };
761
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations");
762
- b.p("botId", () => input.botId, "{botId}", false);
763
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
764
- b.p("localeId", () => input.localeId, "{localeId}", false);
765
- let body;
766
- body = JSON.stringify(take(input, {
767
- maxResults: [],
768
- nextToken: [],
769
- }));
770
- b.m("POST").h(headers).b(body);
771
- return b.build();
772
- };
773
- export const se_ListBotReplicasCommand = async (input, context) => {
774
- const b = rb(input, context);
775
- const headers = {};
776
- b.bp("/bots/{botId}/replicas");
777
- b.p("botId", () => input.botId, "{botId}", false);
778
- let body;
779
- b.m("POST").h(headers).b(body);
780
- return b.build();
781
- };
782
- export const se_ListBotResourceGenerationsCommand = async (input, context) => {
783
- const b = rb(input, context);
784
- const headers = {
785
- "content-type": "application/json",
786
- };
787
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations");
788
- b.p("botId", () => input.botId, "{botId}", false);
789
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
790
- b.p("localeId", () => input.localeId, "{localeId}", false);
791
- let body;
792
- body = JSON.stringify(take(input, {
793
- maxResults: [],
794
- nextToken: [],
795
- sortBy: (_) => _json(_),
796
- }));
797
- b.m("POST").h(headers).b(body);
798
- return b.build();
799
- };
800
- export const se_ListBotsCommand = async (input, context) => {
801
- const b = rb(input, context);
802
- const headers = {
803
- "content-type": "application/json",
804
- };
805
- b.bp("/bots");
806
- let body;
807
- body = JSON.stringify(take(input, {
808
- filters: (_) => _json(_),
809
- maxResults: [],
810
- nextToken: [],
811
- sortBy: (_) => _json(_),
812
- }));
813
- b.m("POST").h(headers).b(body);
814
- return b.build();
815
- };
816
- export const se_ListBotVersionReplicasCommand = async (input, context) => {
817
- const b = rb(input, context);
818
- const headers = {
819
- "content-type": "application/json",
820
- };
821
- b.bp("/bots/{botId}/replicas/{replicaRegion}/botversions");
822
- b.p("botId", () => input.botId, "{botId}", false);
823
- b.p("replicaRegion", () => input.replicaRegion, "{replicaRegion}", false);
824
- let body;
825
- body = JSON.stringify(take(input, {
826
- maxResults: [],
827
- nextToken: [],
828
- sortBy: (_) => _json(_),
829
- }));
830
- b.m("POST").h(headers).b(body);
831
- return b.build();
832
- };
833
- export const se_ListBotVersionsCommand = async (input, context) => {
834
- const b = rb(input, context);
835
- const headers = {
836
- "content-type": "application/json",
837
- };
838
- b.bp("/bots/{botId}/botversions");
839
- b.p("botId", () => input.botId, "{botId}", false);
840
- let body;
841
- body = JSON.stringify(take(input, {
842
- maxResults: [],
843
- nextToken: [],
844
- sortBy: (_) => _json(_),
845
- }));
846
- b.m("POST").h(headers).b(body);
847
- return b.build();
848
- };
849
- export const se_ListBuiltInIntentsCommand = async (input, context) => {
850
- const b = rb(input, context);
851
- const headers = {
852
- "content-type": "application/json",
853
- };
854
- b.bp("/builtins/locales/{localeId}/intents");
855
- b.p("localeId", () => input.localeId, "{localeId}", false);
856
- let body;
857
- body = JSON.stringify(take(input, {
858
- maxResults: [],
859
- nextToken: [],
860
- sortBy: (_) => _json(_),
861
- }));
862
- b.m("POST").h(headers).b(body);
863
- return b.build();
864
- };
865
- export const se_ListBuiltInSlotTypesCommand = async (input, context) => {
866
- const b = rb(input, context);
867
- const headers = {
868
- "content-type": "application/json",
869
- };
870
- b.bp("/builtins/locales/{localeId}/slottypes");
871
- b.p("localeId", () => input.localeId, "{localeId}", false);
872
- let body;
873
- body = JSON.stringify(take(input, {
874
- maxResults: [],
875
- nextToken: [],
876
- sortBy: (_) => _json(_),
877
- }));
878
- b.m("POST").h(headers).b(body);
879
- return b.build();
880
- };
881
- export const se_ListCustomVocabularyItemsCommand = async (input, context) => {
882
- const b = rb(input, context);
883
- const headers = {
884
- "content-type": "application/json",
885
- };
886
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/list");
887
- b.p("botId", () => input.botId, "{botId}", false);
888
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
889
- b.p("localeId", () => input.localeId, "{localeId}", false);
890
- let body;
891
- body = JSON.stringify(take(input, {
892
- maxResults: [],
893
- nextToken: [],
894
- }));
895
- b.m("POST").h(headers).b(body);
896
- return b.build();
897
- };
898
- export const se_ListExportsCommand = async (input, context) => {
899
- const b = rb(input, context);
900
- const headers = {
901
- "content-type": "application/json",
902
- };
903
- b.bp("/exports");
904
- let body;
905
- body = JSON.stringify(take(input, {
906
- botId: [],
907
- botVersion: [],
908
- filters: (_) => _json(_),
909
- localeId: [],
910
- maxResults: [],
911
- nextToken: [],
912
- sortBy: (_) => _json(_),
913
- }));
914
- b.m("POST").h(headers).b(body);
915
- return b.build();
916
- };
917
- export const se_ListImportsCommand = async (input, context) => {
918
- const b = rb(input, context);
919
- const headers = {
920
- "content-type": "application/json",
921
- };
922
- b.bp("/imports");
923
- let body;
924
- body = JSON.stringify(take(input, {
925
- botId: [],
926
- botVersion: [],
927
- filters: (_) => _json(_),
928
- localeId: [],
929
- maxResults: [],
930
- nextToken: [],
931
- sortBy: (_) => _json(_),
932
- }));
933
- b.m("POST").h(headers).b(body);
934
- return b.build();
935
- };
936
- export const se_ListIntentMetricsCommand = async (input, context) => {
937
- const b = rb(input, context);
938
- const headers = {
939
- "content-type": "application/json",
940
- };
941
- b.bp("/bots/{botId}/analytics/intentmetrics");
942
- b.p("botId", () => input.botId, "{botId}", false);
943
- let body;
944
- body = JSON.stringify(take(input, {
945
- binBy: (_) => _json(_),
946
- endDateTime: (_) => _.getTime() / 1_000,
947
- filters: (_) => _json(_),
948
- groupBy: (_) => _json(_),
949
- maxResults: [],
950
- metrics: (_) => _json(_),
951
- nextToken: [],
952
- startDateTime: (_) => _.getTime() / 1_000,
953
- }));
954
- b.m("POST").h(headers).b(body);
955
- return b.build();
956
- };
957
- export const se_ListIntentPathsCommand = async (input, context) => {
958
- const b = rb(input, context);
959
- const headers = {
960
- "content-type": "application/json",
961
- };
962
- b.bp("/bots/{botId}/analytics/intentpaths");
963
- b.p("botId", () => input.botId, "{botId}", false);
964
- let body;
965
- body = JSON.stringify(take(input, {
966
- endDateTime: (_) => _.getTime() / 1_000,
967
- filters: (_) => _json(_),
968
- intentPath: [],
969
- startDateTime: (_) => _.getTime() / 1_000,
970
- }));
971
- b.m("POST").h(headers).b(body);
972
- return b.build();
973
- };
974
- export const se_ListIntentsCommand = async (input, context) => {
975
- const b = rb(input, context);
976
- const headers = {
977
- "content-type": "application/json",
978
- };
979
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents");
980
- b.p("botId", () => input.botId, "{botId}", false);
981
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
982
- b.p("localeId", () => input.localeId, "{localeId}", false);
983
- let body;
984
- body = JSON.stringify(take(input, {
985
- filters: (_) => _json(_),
986
- maxResults: [],
987
- nextToken: [],
988
- sortBy: (_) => _json(_),
989
- }));
990
- b.m("POST").h(headers).b(body);
991
- return b.build();
992
- };
993
- export const se_ListIntentStageMetricsCommand = async (input, context) => {
994
- const b = rb(input, context);
995
- const headers = {
996
- "content-type": "application/json",
997
- };
998
- b.bp("/bots/{botId}/analytics/intentstagemetrics");
999
- b.p("botId", () => input.botId, "{botId}", false);
1000
- let body;
1001
- body = JSON.stringify(take(input, {
1002
- binBy: (_) => _json(_),
1003
- endDateTime: (_) => _.getTime() / 1_000,
1004
- filters: (_) => _json(_),
1005
- groupBy: (_) => _json(_),
1006
- maxResults: [],
1007
- metrics: (_) => _json(_),
1008
- nextToken: [],
1009
- startDateTime: (_) => _.getTime() / 1_000,
1010
- }));
1011
- b.m("POST").h(headers).b(body);
1012
- return b.build();
1013
- };
1014
- export const se_ListRecommendedIntentsCommand = async (input, context) => {
1015
- const b = rb(input, context);
1016
- const headers = {
1017
- "content-type": "application/json",
1018
- };
1019
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/intents");
1020
- b.p("botId", () => input.botId, "{botId}", false);
1021
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1022
- b.p("localeId", () => input.localeId, "{localeId}", false);
1023
- b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
1024
- let body;
1025
- body = JSON.stringify(take(input, {
1026
- maxResults: [],
1027
- nextToken: [],
1028
- }));
1029
- b.m("POST").h(headers).b(body);
1030
- return b.build();
1031
- };
1032
- export const se_ListSessionAnalyticsDataCommand = async (input, context) => {
1033
- const b = rb(input, context);
1034
- const headers = {
1035
- "content-type": "application/json",
1036
- };
1037
- b.bp("/bots/{botId}/analytics/sessions");
1038
- b.p("botId", () => input.botId, "{botId}", false);
1039
- let body;
1040
- body = JSON.stringify(take(input, {
1041
- endDateTime: (_) => _.getTime() / 1_000,
1042
- filters: (_) => _json(_),
1043
- maxResults: [],
1044
- nextToken: [],
1045
- sortBy: (_) => _json(_),
1046
- startDateTime: (_) => _.getTime() / 1_000,
1047
- }));
1048
- b.m("POST").h(headers).b(body);
1049
- return b.build();
1050
- };
1051
- export const se_ListSessionMetricsCommand = async (input, context) => {
1052
- const b = rb(input, context);
1053
- const headers = {
1054
- "content-type": "application/json",
1055
- };
1056
- b.bp("/bots/{botId}/analytics/sessionmetrics");
1057
- b.p("botId", () => input.botId, "{botId}", false);
1058
- let body;
1059
- body = JSON.stringify(take(input, {
1060
- binBy: (_) => _json(_),
1061
- endDateTime: (_) => _.getTime() / 1_000,
1062
- filters: (_) => _json(_),
1063
- groupBy: (_) => _json(_),
1064
- maxResults: [],
1065
- metrics: (_) => _json(_),
1066
- nextToken: [],
1067
- startDateTime: (_) => _.getTime() / 1_000,
1068
- }));
1069
- b.m("POST").h(headers).b(body);
1070
- return b.build();
1071
- };
1072
- export const se_ListSlotsCommand = async (input, context) => {
1073
- const b = rb(input, context);
1074
- const headers = {
1075
- "content-type": "application/json",
1076
- };
1077
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots");
1078
- b.p("botId", () => input.botId, "{botId}", false);
1079
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1080
- b.p("localeId", () => input.localeId, "{localeId}", false);
1081
- b.p("intentId", () => input.intentId, "{intentId}", false);
1082
- let body;
1083
- body = JSON.stringify(take(input, {
1084
- filters: (_) => _json(_),
1085
- maxResults: [],
1086
- nextToken: [],
1087
- sortBy: (_) => _json(_),
1088
- }));
1089
- b.m("POST").h(headers).b(body);
1090
- return b.build();
1091
- };
1092
- export const se_ListSlotTypesCommand = async (input, context) => {
1093
- const b = rb(input, context);
1094
- const headers = {
1095
- "content-type": "application/json",
1096
- };
1097
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes");
1098
- b.p("botId", () => input.botId, "{botId}", false);
1099
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1100
- b.p("localeId", () => input.localeId, "{localeId}", false);
1101
- let body;
1102
- body = JSON.stringify(take(input, {
1103
- filters: (_) => _json(_),
1104
- maxResults: [],
1105
- nextToken: [],
1106
- sortBy: (_) => _json(_),
1107
- }));
1108
- b.m("POST").h(headers).b(body);
1109
- return b.build();
1110
- };
1111
- export const se_ListTagsForResourceCommand = async (input, context) => {
1112
- const b = rb(input, context);
1113
- const headers = {};
1114
- b.bp("/tags/{resourceARN}");
1115
- b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
1116
- let body;
1117
- b.m("GET").h(headers).b(body);
1118
- return b.build();
1119
- };
1120
- export const se_ListTestExecutionResultItemsCommand = async (input, context) => {
1121
- const b = rb(input, context);
1122
- const headers = {
1123
- "content-type": "application/json",
1124
- };
1125
- b.bp("/testexecutions/{testExecutionId}/results");
1126
- b.p("testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
1127
- let body;
1128
- body = JSON.stringify(take(input, {
1129
- maxResults: [],
1130
- nextToken: [],
1131
- resultFilterBy: (_) => _json(_),
1132
- }));
1133
- b.m("POST").h(headers).b(body);
1134
- return b.build();
1135
- };
1136
- export const se_ListTestExecutionsCommand = async (input, context) => {
1137
- const b = rb(input, context);
1138
- const headers = {
1139
- "content-type": "application/json",
1140
- };
1141
- b.bp("/testexecutions");
1142
- let body;
1143
- body = JSON.stringify(take(input, {
1144
- maxResults: [],
1145
- nextToken: [],
1146
- sortBy: (_) => _json(_),
1147
- }));
1148
- b.m("POST").h(headers).b(body);
1149
- return b.build();
1150
- };
1151
- export const se_ListTestSetRecordsCommand = async (input, context) => {
1152
- const b = rb(input, context);
1153
- const headers = {
1154
- "content-type": "application/json",
1155
- };
1156
- b.bp("/testsets/{testSetId}/records");
1157
- b.p("testSetId", () => input.testSetId, "{testSetId}", false);
1158
- let body;
1159
- body = JSON.stringify(take(input, {
1160
- maxResults: [],
1161
- nextToken: [],
1162
- }));
1163
- b.m("POST").h(headers).b(body);
1164
- return b.build();
1165
- };
1166
- export const se_ListTestSetsCommand = async (input, context) => {
1167
- const b = rb(input, context);
1168
- const headers = {
1169
- "content-type": "application/json",
1170
- };
1171
- b.bp("/testsets");
1172
- let body;
1173
- body = JSON.stringify(take(input, {
1174
- maxResults: [],
1175
- nextToken: [],
1176
- sortBy: (_) => _json(_),
1177
- }));
1178
- b.m("POST").h(headers).b(body);
1179
- return b.build();
1180
- };
1181
- export const se_ListUtteranceAnalyticsDataCommand = async (input, context) => {
1182
- const b = rb(input, context);
1183
- const headers = {
1184
- "content-type": "application/json",
1185
- };
1186
- b.bp("/bots/{botId}/analytics/utterances");
1187
- b.p("botId", () => input.botId, "{botId}", false);
1188
- let body;
1189
- body = JSON.stringify(take(input, {
1190
- endDateTime: (_) => _.getTime() / 1_000,
1191
- filters: (_) => _json(_),
1192
- maxResults: [],
1193
- nextToken: [],
1194
- sortBy: (_) => _json(_),
1195
- startDateTime: (_) => _.getTime() / 1_000,
1196
- }));
1197
- b.m("POST").h(headers).b(body);
1198
- return b.build();
1199
- };
1200
- export const se_ListUtteranceMetricsCommand = async (input, context) => {
1201
- const b = rb(input, context);
1202
- const headers = {
1203
- "content-type": "application/json",
1204
- };
1205
- b.bp("/bots/{botId}/analytics/utterancemetrics");
1206
- b.p("botId", () => input.botId, "{botId}", false);
1207
- let body;
1208
- body = JSON.stringify(take(input, {
1209
- attributes: (_) => _json(_),
1210
- binBy: (_) => _json(_),
1211
- endDateTime: (_) => _.getTime() / 1_000,
1212
- filters: (_) => _json(_),
1213
- groupBy: (_) => _json(_),
1214
- maxResults: [],
1215
- metrics: (_) => _json(_),
1216
- nextToken: [],
1217
- startDateTime: (_) => _.getTime() / 1_000,
1218
- }));
1219
- b.m("POST").h(headers).b(body);
1220
- return b.build();
1221
- };
1222
- export const se_SearchAssociatedTranscriptsCommand = async (input, context) => {
1223
- const b = rb(input, context);
1224
- const headers = {
1225
- "content-type": "application/json",
1226
- };
1227
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/associatedtranscripts");
1228
- b.p("botId", () => input.botId, "{botId}", false);
1229
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1230
- b.p("localeId", () => input.localeId, "{localeId}", false);
1231
- b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
1232
- let body;
1233
- body = JSON.stringify(take(input, {
1234
- filters: (_) => _json(_),
1235
- maxResults: [],
1236
- nextIndex: [],
1237
- searchOrder: [],
1238
- }));
1239
- b.m("POST").h(headers).b(body);
1240
- return b.build();
1241
- };
1242
- export const se_StartBotRecommendationCommand = async (input, context) => {
1243
- const b = rb(input, context);
1244
- const headers = {
1245
- "content-type": "application/json",
1246
- };
1247
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations");
1248
- b.p("botId", () => input.botId, "{botId}", false);
1249
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1250
- b.p("localeId", () => input.localeId, "{localeId}", false);
1251
- let body;
1252
- body = JSON.stringify(take(input, {
1253
- encryptionSetting: (_) => _json(_),
1254
- transcriptSourceSetting: (_) => se_TranscriptSourceSetting(_, context),
1255
- }));
1256
- b.m("PUT").h(headers).b(body);
1257
- return b.build();
1258
- };
1259
- export const se_StartBotResourceGenerationCommand = async (input, context) => {
1260
- const b = rb(input, context);
1261
- const headers = {
1262
- "content-type": "application/json",
1263
- };
1264
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/startgeneration");
1265
- b.p("botId", () => input.botId, "{botId}", false);
1266
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1267
- b.p("localeId", () => input.localeId, "{localeId}", false);
1268
- let body;
1269
- body = JSON.stringify(take(input, {
1270
- generationInputPrompt: [],
1271
- }));
1272
- b.m("PUT").h(headers).b(body);
1273
- return b.build();
1274
- };
1275
- export const se_StartImportCommand = async (input, context) => {
1276
- const b = rb(input, context);
1277
- const headers = {
1278
- "content-type": "application/json",
1279
- };
1280
- b.bp("/imports");
1281
- let body;
1282
- body = JSON.stringify(take(input, {
1283
- filePassword: [],
1284
- importId: [],
1285
- mergeStrategy: [],
1286
- resourceSpecification: (_) => se_ImportResourceSpecification(_, context),
1287
- }));
1288
- b.m("PUT").h(headers).b(body);
1289
- return b.build();
1290
- };
1291
- export const se_StartTestExecutionCommand = async (input, context) => {
1292
- const b = rb(input, context);
1293
- const headers = {
1294
- "content-type": "application/json",
1295
- };
1296
- b.bp("/testsets/{testSetId}/testexecutions");
1297
- b.p("testSetId", () => input.testSetId, "{testSetId}", false);
1298
- let body;
1299
- body = JSON.stringify(take(input, {
1300
- apiMode: [],
1301
- target: (_) => _json(_),
1302
- testExecutionModality: [],
1303
- }));
1304
- b.m("POST").h(headers).b(body);
1305
- return b.build();
1306
- };
1307
- export const se_StartTestSetGenerationCommand = async (input, context) => {
1308
- const b = rb(input, context);
1309
- const headers = {
1310
- "content-type": "application/json",
1311
- };
1312
- b.bp("/testsetgenerations");
1313
- let body;
1314
- body = JSON.stringify(take(input, {
1315
- description: [],
1316
- generationDataSource: (_) => se_TestSetGenerationDataSource(_, context),
1317
- roleArn: [],
1318
- storageLocation: (_) => _json(_),
1319
- testSetName: [],
1320
- testSetTags: (_) => _json(_),
1321
- }));
1322
- b.m("PUT").h(headers).b(body);
1323
- return b.build();
1324
- };
1325
- export const se_StopBotRecommendationCommand = async (input, context) => {
1326
- const b = rb(input, context);
1327
- const headers = {};
1328
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/stopbotrecommendation");
1329
- b.p("botId", () => input.botId, "{botId}", false);
1330
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1331
- b.p("localeId", () => input.localeId, "{localeId}", false);
1332
- b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
1333
- let body;
1334
- b.m("PUT").h(headers).b(body);
1335
- return b.build();
1336
- };
1337
- export const se_TagResourceCommand = async (input, context) => {
1338
- const b = rb(input, context);
1339
- const headers = {
1340
- "content-type": "application/json",
1341
- };
1342
- b.bp("/tags/{resourceARN}");
1343
- b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
1344
- let body;
1345
- body = JSON.stringify(take(input, {
1346
- tags: (_) => _json(_),
1347
- }));
1348
- b.m("POST").h(headers).b(body);
1349
- return b.build();
1350
- };
1351
- export const se_UntagResourceCommand = async (input, context) => {
1352
- const b = rb(input, context);
1353
- const headers = {};
1354
- b.bp("/tags/{resourceARN}");
1355
- b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
1356
- const query = map({
1357
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
1358
- });
1359
- let body;
1360
- b.m("DELETE").h(headers).q(query).b(body);
1361
- return b.build();
1362
- };
1363
- export const se_UpdateBotCommand = async (input, context) => {
1364
- const b = rb(input, context);
1365
- const headers = {
1366
- "content-type": "application/json",
1367
- };
1368
- b.bp("/bots/{botId}");
1369
- b.p("botId", () => input.botId, "{botId}", false);
1370
- let body;
1371
- body = JSON.stringify(take(input, {
1372
- botMembers: (_) => _json(_),
1373
- botName: [],
1374
- botType: [],
1375
- dataPrivacy: (_) => _json(_),
1376
- description: [],
1377
- errorLogSettings: (_) => _json(_),
1378
- idleSessionTTLInSeconds: [],
1379
- roleArn: [],
1380
- }));
1381
- b.m("PUT").h(headers).b(body);
1382
- return b.build();
1383
- };
1384
- export const se_UpdateBotAliasCommand = async (input, context) => {
1385
- const b = rb(input, context);
1386
- const headers = {
1387
- "content-type": "application/json",
1388
- };
1389
- b.bp("/bots/{botId}/botaliases/{botAliasId}");
1390
- b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
1391
- b.p("botId", () => input.botId, "{botId}", false);
1392
- let body;
1393
- body = JSON.stringify(take(input, {
1394
- botAliasLocaleSettings: (_) => _json(_),
1395
- botAliasName: [],
1396
- botVersion: [],
1397
- conversationLogSettings: (_) => _json(_),
1398
- description: [],
1399
- sentimentAnalysisSettings: (_) => _json(_),
1400
- }));
1401
- b.m("PUT").h(headers).b(body);
1402
- return b.build();
1403
- };
1404
- export const se_UpdateBotLocaleCommand = async (input, context) => {
1405
- const b = rb(input, context);
1406
- const headers = {
1407
- "content-type": "application/json",
1408
- };
1409
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}");
1410
- b.p("botId", () => input.botId, "{botId}", false);
1411
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1412
- b.p("localeId", () => input.localeId, "{localeId}", false);
1413
- let body;
1414
- body = JSON.stringify(take(input, {
1415
- description: [],
1416
- generativeAISettings: (_) => _json(_),
1417
- nluIntentConfidenceThreshold: (_) => __serializeFloat(_),
1418
- voiceSettings: (_) => _json(_),
1419
- }));
1420
- b.m("PUT").h(headers).b(body);
1421
- return b.build();
1422
- };
1423
- export const se_UpdateBotRecommendationCommand = async (input, context) => {
1424
- const b = rb(input, context);
1425
- const headers = {
1426
- "content-type": "application/json",
1427
- };
1428
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}");
1429
- b.p("botId", () => input.botId, "{botId}", false);
1430
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1431
- b.p("localeId", () => input.localeId, "{localeId}", false);
1432
- b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
1433
- let body;
1434
- body = JSON.stringify(take(input, {
1435
- encryptionSetting: (_) => _json(_),
1436
- }));
1437
- b.m("PUT").h(headers).b(body);
1438
- return b.build();
1439
- };
1440
- export const se_UpdateExportCommand = async (input, context) => {
1441
- const b = rb(input, context);
1442
- const headers = {
1443
- "content-type": "application/json",
1444
- };
1445
- b.bp("/exports/{exportId}");
1446
- b.p("exportId", () => input.exportId, "{exportId}", false);
1447
- let body;
1448
- body = JSON.stringify(take(input, {
1449
- filePassword: [],
1450
- }));
1451
- b.m("PUT").h(headers).b(body);
1452
- return b.build();
1453
- };
1454
- export const se_UpdateIntentCommand = async (input, context) => {
1455
- const b = rb(input, context);
1456
- const headers = {
1457
- "content-type": "application/json",
1458
- };
1459
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}");
1460
- b.p("intentId", () => input.intentId, "{intentId}", false);
1461
- b.p("botId", () => input.botId, "{botId}", false);
1462
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1463
- b.p("localeId", () => input.localeId, "{localeId}", false);
1464
- let body;
1465
- body = JSON.stringify(take(input, {
1466
- description: [],
1467
- dialogCodeHook: (_) => _json(_),
1468
- fulfillmentCodeHook: (_) => se_FulfillmentCodeHookSettings(_, context),
1469
- initialResponseSetting: (_) => se_InitialResponseSetting(_, context),
1470
- inputContexts: (_) => _json(_),
1471
- intentClosingSetting: (_) => se_IntentClosingSetting(_, context),
1472
- intentConfirmationSetting: (_) => se_IntentConfirmationSetting(_, context),
1473
- intentName: [],
1474
- kendraConfiguration: (_) => _json(_),
1475
- outputContexts: (_) => _json(_),
1476
- parentIntentSignature: [],
1477
- qInConnectIntentConfiguration: (_) => _json(_),
1478
- qnAIntentConfiguration: (_) => _json(_),
1479
- sampleUtterances: (_) => _json(_),
1480
- slotPriorities: (_) => _json(_),
1481
- }));
1482
- b.m("PUT").h(headers).b(body);
1483
- return b.build();
1484
- };
1485
- export const se_UpdateResourcePolicyCommand = async (input, context) => {
1486
- const b = rb(input, context);
1487
- const headers = {
1488
- "content-type": "application/json",
1489
- };
1490
- b.bp("/policy/{resourceArn}");
1491
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1492
- const query = map({
1493
- [_eRI]: [, input[_eRI]],
1494
- });
1495
- let body;
1496
- body = JSON.stringify(take(input, {
1497
- policy: [],
1498
- }));
1499
- b.m("PUT").h(headers).q(query).b(body);
1500
- return b.build();
1501
- };
1502
- export const se_UpdateSlotCommand = async (input, context) => {
1503
- const b = rb(input, context);
1504
- const headers = {
1505
- "content-type": "application/json",
1506
- };
1507
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}");
1508
- b.p("slotId", () => input.slotId, "{slotId}", false);
1509
- b.p("botId", () => input.botId, "{botId}", false);
1510
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1511
- b.p("localeId", () => input.localeId, "{localeId}", false);
1512
- b.p("intentId", () => input.intentId, "{intentId}", false);
1513
- let body;
1514
- body = JSON.stringify(take(input, {
1515
- description: [],
1516
- multipleValuesSetting: (_) => _json(_),
1517
- obfuscationSetting: (_) => _json(_),
1518
- slotName: [],
1519
- slotTypeId: [],
1520
- subSlotSetting: (_) => se_SubSlotSetting(_, context),
1521
- valueElicitationSetting: (_) => se_SlotValueElicitationSetting(_, context),
1522
- }));
1523
- b.m("PUT").h(headers).b(body);
1524
- return b.build();
1525
- };
1526
- export const se_UpdateSlotTypeCommand = async (input, context) => {
1527
- const b = rb(input, context);
1528
- const headers = {
1529
- "content-type": "application/json",
1530
- };
1531
- b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}");
1532
- b.p("slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
1533
- b.p("botId", () => input.botId, "{botId}", false);
1534
- b.p("botVersion", () => input.botVersion, "{botVersion}", false);
1535
- b.p("localeId", () => input.localeId, "{localeId}", false);
1536
- let body;
1537
- body = JSON.stringify(take(input, {
1538
- compositeSlotTypeSetting: (_) => _json(_),
1539
- description: [],
1540
- externalSourceSetting: (_) => _json(_),
1541
- parentSlotTypeSignature: [],
1542
- slotTypeName: [],
1543
- slotTypeValues: (_) => _json(_),
1544
- valueSelectionSetting: (_) => _json(_),
1545
- }));
1546
- b.m("PUT").h(headers).b(body);
1547
- return b.build();
1548
- };
1549
- export const se_UpdateTestSetCommand = async (input, context) => {
1550
- const b = rb(input, context);
1551
- const headers = {
1552
- "content-type": "application/json",
1553
- };
1554
- b.bp("/testsets/{testSetId}");
1555
- b.p("testSetId", () => input.testSetId, "{testSetId}", false);
1556
- let body;
1557
- body = JSON.stringify(take(input, {
1558
- description: [],
1559
- testSetName: [],
1560
- }));
1561
- b.m("PUT").h(headers).b(body);
1562
- return b.build();
1563
- };
1564
- export const de_BatchCreateCustomVocabularyItemCommand = async (output, context) => {
1565
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1566
- return de_CommandError(output, context);
1567
- }
1568
- const contents = map({
1569
- $metadata: deserializeMetadata(output),
1570
- });
1571
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1572
- const doc = take(data, {
1573
- botId: __expectString,
1574
- botVersion: __expectString,
1575
- errors: _json,
1576
- localeId: __expectString,
1577
- resources: _json,
1578
- });
1579
- Object.assign(contents, doc);
1580
- return contents;
1581
- };
1582
- export const de_BatchDeleteCustomVocabularyItemCommand = async (output, context) => {
1583
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1584
- return de_CommandError(output, context);
1585
- }
1586
- const contents = map({
1587
- $metadata: deserializeMetadata(output),
1588
- });
1589
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1590
- const doc = take(data, {
1591
- botId: __expectString,
1592
- botVersion: __expectString,
1593
- errors: _json,
1594
- localeId: __expectString,
1595
- resources: _json,
1596
- });
1597
- Object.assign(contents, doc);
1598
- return contents;
1599
- };
1600
- export const de_BatchUpdateCustomVocabularyItemCommand = async (output, context) => {
1601
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1602
- return de_CommandError(output, context);
1603
- }
1604
- const contents = map({
1605
- $metadata: deserializeMetadata(output),
1606
- });
1607
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1608
- const doc = take(data, {
1609
- botId: __expectString,
1610
- botVersion: __expectString,
1611
- errors: _json,
1612
- localeId: __expectString,
1613
- resources: _json,
1614
- });
1615
- Object.assign(contents, doc);
1616
- return contents;
1617
- };
1618
- export const de_BuildBotLocaleCommand = async (output, context) => {
1619
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1620
- return de_CommandError(output, context);
1621
- }
1622
- const contents = map({
1623
- $metadata: deserializeMetadata(output),
1624
- });
1625
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1626
- const doc = take(data, {
1627
- botId: __expectString,
1628
- botLocaleStatus: __expectString,
1629
- botVersion: __expectString,
1630
- lastBuildSubmittedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1631
- localeId: __expectString,
1632
- });
1633
- Object.assign(contents, doc);
1634
- return contents;
1635
- };
1636
- export const de_CreateBotCommand = async (output, context) => {
1637
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1638
- return de_CommandError(output, context);
1639
- }
1640
- const contents = map({
1641
- $metadata: deserializeMetadata(output),
1642
- });
1643
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1644
- const doc = take(data, {
1645
- botId: __expectString,
1646
- botMembers: _json,
1647
- botName: __expectString,
1648
- botStatus: __expectString,
1649
- botTags: _json,
1650
- botType: __expectString,
1651
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1652
- dataPrivacy: _json,
1653
- description: __expectString,
1654
- errorLogSettings: _json,
1655
- idleSessionTTLInSeconds: __expectInt32,
1656
- roleArn: __expectString,
1657
- testBotAliasTags: _json,
1658
- });
1659
- Object.assign(contents, doc);
1660
- return contents;
1661
- };
1662
- export const de_CreateBotAliasCommand = async (output, context) => {
1663
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1664
- return de_CommandError(output, context);
1665
- }
1666
- const contents = map({
1667
- $metadata: deserializeMetadata(output),
1668
- });
1669
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1670
- const doc = take(data, {
1671
- botAliasId: __expectString,
1672
- botAliasLocaleSettings: _json,
1673
- botAliasName: __expectString,
1674
- botAliasStatus: __expectString,
1675
- botId: __expectString,
1676
- botVersion: __expectString,
1677
- conversationLogSettings: _json,
1678
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1679
- description: __expectString,
1680
- sentimentAnalysisSettings: _json,
1681
- tags: _json,
1682
- });
1683
- Object.assign(contents, doc);
1684
- return contents;
1685
- };
1686
- export const de_CreateBotLocaleCommand = async (output, context) => {
1687
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1688
- return de_CommandError(output, context);
1689
- }
1690
- const contents = map({
1691
- $metadata: deserializeMetadata(output),
1692
- });
1693
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1694
- const doc = take(data, {
1695
- botId: __expectString,
1696
- botLocaleStatus: __expectString,
1697
- botVersion: __expectString,
1698
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1699
- description: __expectString,
1700
- generativeAISettings: _json,
1701
- localeId: __expectString,
1702
- localeName: __expectString,
1703
- nluIntentConfidenceThreshold: __limitedParseDouble,
1704
- voiceSettings: _json,
1705
- });
1706
- Object.assign(contents, doc);
1707
- return contents;
1708
- };
1709
- export const de_CreateBotReplicaCommand = async (output, context) => {
1710
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1711
- return de_CommandError(output, context);
1712
- }
1713
- const contents = map({
1714
- $metadata: deserializeMetadata(output),
1715
- });
1716
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1717
- const doc = take(data, {
1718
- botId: __expectString,
1719
- botReplicaStatus: __expectString,
1720
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1721
- replicaRegion: __expectString,
1722
- sourceRegion: __expectString,
1723
- });
1724
- Object.assign(contents, doc);
1725
- return contents;
1726
- };
1727
- export const de_CreateBotVersionCommand = async (output, context) => {
1728
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1729
- return de_CommandError(output, context);
1730
- }
1731
- const contents = map({
1732
- $metadata: deserializeMetadata(output),
1733
- });
1734
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1735
- const doc = take(data, {
1736
- botId: __expectString,
1737
- botStatus: __expectString,
1738
- botVersion: __expectString,
1739
- botVersionLocaleSpecification: _json,
1740
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1741
- description: __expectString,
1742
- });
1743
- Object.assign(contents, doc);
1744
- return contents;
1745
- };
1746
- export const de_CreateExportCommand = async (output, context) => {
1747
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1748
- return de_CommandError(output, context);
1749
- }
1750
- const contents = map({
1751
- $metadata: deserializeMetadata(output),
1752
- });
1753
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1754
- const doc = take(data, {
1755
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1756
- exportId: __expectString,
1757
- exportStatus: __expectString,
1758
- fileFormat: __expectString,
1759
- resourceSpecification: _json,
1760
- });
1761
- Object.assign(contents, doc);
1762
- return contents;
1763
- };
1764
- export const de_CreateIntentCommand = async (output, context) => {
1765
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1766
- return de_CommandError(output, context);
1767
- }
1768
- const contents = map({
1769
- $metadata: deserializeMetadata(output),
1770
- });
1771
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1772
- const doc = take(data, {
1773
- botId: __expectString,
1774
- botVersion: __expectString,
1775
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1776
- description: __expectString,
1777
- dialogCodeHook: _json,
1778
- fulfillmentCodeHook: (_) => de_FulfillmentCodeHookSettings(_, context),
1779
- initialResponseSetting: (_) => de_InitialResponseSetting(_, context),
1780
- inputContexts: _json,
1781
- intentClosingSetting: (_) => de_IntentClosingSetting(_, context),
1782
- intentConfirmationSetting: (_) => de_IntentConfirmationSetting(_, context),
1783
- intentId: __expectString,
1784
- intentName: __expectString,
1785
- kendraConfiguration: _json,
1786
- localeId: __expectString,
1787
- outputContexts: _json,
1788
- parentIntentSignature: __expectString,
1789
- qInConnectIntentConfiguration: _json,
1790
- qnAIntentConfiguration: _json,
1791
- sampleUtterances: _json,
1792
- });
1793
- Object.assign(contents, doc);
1794
- return contents;
1795
- };
1796
- export const de_CreateResourcePolicyCommand = async (output, context) => {
1797
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1798
- return de_CommandError(output, context);
1799
- }
1800
- const contents = map({
1801
- $metadata: deserializeMetadata(output),
1802
- });
1803
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1804
- const doc = take(data, {
1805
- resourceArn: __expectString,
1806
- revisionId: __expectString,
1807
- });
1808
- Object.assign(contents, doc);
1809
- return contents;
1810
- };
1811
- export const de_CreateResourcePolicyStatementCommand = async (output, context) => {
1812
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1813
- return de_CommandError(output, context);
1814
- }
1815
- const contents = map({
1816
- $metadata: deserializeMetadata(output),
1817
- });
1818
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1819
- const doc = take(data, {
1820
- resourceArn: __expectString,
1821
- revisionId: __expectString,
1822
- });
1823
- Object.assign(contents, doc);
1824
- return contents;
1825
- };
1826
- export const de_CreateSlotCommand = async (output, context) => {
1827
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1828
- return de_CommandError(output, context);
1829
- }
1830
- const contents = map({
1831
- $metadata: deserializeMetadata(output),
1832
- });
1833
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1834
- const doc = take(data, {
1835
- botId: __expectString,
1836
- botVersion: __expectString,
1837
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1838
- description: __expectString,
1839
- intentId: __expectString,
1840
- localeId: __expectString,
1841
- multipleValuesSetting: _json,
1842
- obfuscationSetting: _json,
1843
- slotId: __expectString,
1844
- slotName: __expectString,
1845
- slotTypeId: __expectString,
1846
- subSlotSetting: (_) => de_SubSlotSetting(_, context),
1847
- valueElicitationSetting: (_) => de_SlotValueElicitationSetting(_, context),
1848
- });
1849
- Object.assign(contents, doc);
1850
- return contents;
1851
- };
1852
- export const de_CreateSlotTypeCommand = async (output, context) => {
1853
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1854
- return de_CommandError(output, context);
1855
- }
1856
- const contents = map({
1857
- $metadata: deserializeMetadata(output),
1858
- });
1859
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1860
- const doc = take(data, {
1861
- botId: __expectString,
1862
- botVersion: __expectString,
1863
- compositeSlotTypeSetting: _json,
1864
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1865
- description: __expectString,
1866
- externalSourceSetting: _json,
1867
- localeId: __expectString,
1868
- parentSlotTypeSignature: __expectString,
1869
- slotTypeId: __expectString,
1870
- slotTypeName: __expectString,
1871
- slotTypeValues: _json,
1872
- valueSelectionSetting: _json,
1873
- });
1874
- Object.assign(contents, doc);
1875
- return contents;
1876
- };
1877
- export const de_CreateTestSetDiscrepancyReportCommand = async (output, context) => {
1878
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1879
- return de_CommandError(output, context);
1880
- }
1881
- const contents = map({
1882
- $metadata: deserializeMetadata(output),
1883
- });
1884
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1885
- const doc = take(data, {
1886
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1887
- target: _json,
1888
- testSetDiscrepancyReportId: __expectString,
1889
- testSetId: __expectString,
1890
- });
1891
- Object.assign(contents, doc);
1892
- return contents;
1893
- };
1894
- export const de_CreateUploadUrlCommand = async (output, context) => {
1895
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1896
- return de_CommandError(output, context);
1897
- }
1898
- const contents = map({
1899
- $metadata: deserializeMetadata(output),
1900
- });
1901
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1902
- const doc = take(data, {
1903
- importId: __expectString,
1904
- uploadUrl: __expectString,
1905
- });
1906
- Object.assign(contents, doc);
1907
- return contents;
1908
- };
1909
- export const de_DeleteBotCommand = async (output, context) => {
1910
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1911
- return de_CommandError(output, context);
1912
- }
1913
- const contents = map({
1914
- $metadata: deserializeMetadata(output),
1915
- });
1916
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1917
- const doc = take(data, {
1918
- botId: __expectString,
1919
- botStatus: __expectString,
1920
- });
1921
- Object.assign(contents, doc);
1922
- return contents;
1923
- };
1924
- export const de_DeleteBotAliasCommand = async (output, context) => {
1925
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1926
- return de_CommandError(output, context);
1927
- }
1928
- const contents = map({
1929
- $metadata: deserializeMetadata(output),
1930
- });
1931
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1932
- const doc = take(data, {
1933
- botAliasId: __expectString,
1934
- botAliasStatus: __expectString,
1935
- botId: __expectString,
1936
- });
1937
- Object.assign(contents, doc);
1938
- return contents;
1939
- };
1940
- export const de_DeleteBotLocaleCommand = async (output, context) => {
1941
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1942
- return de_CommandError(output, context);
1943
- }
1944
- const contents = map({
1945
- $metadata: deserializeMetadata(output),
1946
- });
1947
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1948
- const doc = take(data, {
1949
- botId: __expectString,
1950
- botLocaleStatus: __expectString,
1951
- botVersion: __expectString,
1952
- localeId: __expectString,
1953
- });
1954
- Object.assign(contents, doc);
1955
- return contents;
1956
- };
1957
- export const de_DeleteBotReplicaCommand = async (output, context) => {
1958
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1959
- return de_CommandError(output, context);
1960
- }
1961
- const contents = map({
1962
- $metadata: deserializeMetadata(output),
1963
- });
1964
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1965
- const doc = take(data, {
1966
- botId: __expectString,
1967
- botReplicaStatus: __expectString,
1968
- replicaRegion: __expectString,
1969
- });
1970
- Object.assign(contents, doc);
1971
- return contents;
1972
- };
1973
- export const de_DeleteBotVersionCommand = async (output, context) => {
1974
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1975
- return de_CommandError(output, context);
1976
- }
1977
- const contents = map({
1978
- $metadata: deserializeMetadata(output),
1979
- });
1980
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1981
- const doc = take(data, {
1982
- botId: __expectString,
1983
- botStatus: __expectString,
1984
- botVersion: __expectString,
1985
- });
1986
- Object.assign(contents, doc);
1987
- return contents;
1988
- };
1989
- export const de_DeleteCustomVocabularyCommand = async (output, context) => {
1990
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1991
- return de_CommandError(output, context);
1992
- }
1993
- const contents = map({
1994
- $metadata: deserializeMetadata(output),
1995
- });
1996
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1997
- const doc = take(data, {
1998
- botId: __expectString,
1999
- botVersion: __expectString,
2000
- customVocabularyStatus: __expectString,
2001
- localeId: __expectString,
2002
- });
2003
- Object.assign(contents, doc);
2004
- return contents;
2005
- };
2006
- export const de_DeleteExportCommand = async (output, context) => {
2007
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2008
- return de_CommandError(output, context);
2009
- }
2010
- const contents = map({
2011
- $metadata: deserializeMetadata(output),
2012
- });
2013
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2014
- const doc = take(data, {
2015
- exportId: __expectString,
2016
- exportStatus: __expectString,
2017
- });
2018
- Object.assign(contents, doc);
2019
- return contents;
2020
- };
2021
- export const de_DeleteImportCommand = async (output, context) => {
2022
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2023
- return de_CommandError(output, context);
2024
- }
2025
- const contents = map({
2026
- $metadata: deserializeMetadata(output),
2027
- });
2028
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2029
- const doc = take(data, {
2030
- importId: __expectString,
2031
- importStatus: __expectString,
2032
- });
2033
- Object.assign(contents, doc);
2034
- return contents;
2035
- };
2036
- export const de_DeleteIntentCommand = async (output, context) => {
2037
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2038
- return de_CommandError(output, context);
2039
- }
2040
- const contents = map({
2041
- $metadata: deserializeMetadata(output),
2042
- });
2043
- await collectBody(output.body, context);
2044
- return contents;
2045
- };
2046
- export const de_DeleteResourcePolicyCommand = async (output, context) => {
2047
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2048
- return de_CommandError(output, context);
2049
- }
2050
- const contents = map({
2051
- $metadata: deserializeMetadata(output),
2052
- });
2053
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2054
- const doc = take(data, {
2055
- resourceArn: __expectString,
2056
- revisionId: __expectString,
2057
- });
2058
- Object.assign(contents, doc);
2059
- return contents;
2060
- };
2061
- export const de_DeleteResourcePolicyStatementCommand = async (output, context) => {
2062
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2063
- return de_CommandError(output, context);
2064
- }
2065
- const contents = map({
2066
- $metadata: deserializeMetadata(output),
2067
- });
2068
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2069
- const doc = take(data, {
2070
- resourceArn: __expectString,
2071
- revisionId: __expectString,
2072
- });
2073
- Object.assign(contents, doc);
2074
- return contents;
2075
- };
2076
- export const de_DeleteSlotCommand = async (output, context) => {
2077
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2078
- return de_CommandError(output, context);
2079
- }
2080
- const contents = map({
2081
- $metadata: deserializeMetadata(output),
2082
- });
2083
- await collectBody(output.body, context);
2084
- return contents;
2085
- };
2086
- export const de_DeleteSlotTypeCommand = async (output, context) => {
2087
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2088
- return de_CommandError(output, context);
2089
- }
2090
- const contents = map({
2091
- $metadata: deserializeMetadata(output),
2092
- });
2093
- await collectBody(output.body, context);
2094
- return contents;
2095
- };
2096
- export const de_DeleteTestSetCommand = async (output, context) => {
2097
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2098
- return de_CommandError(output, context);
2099
- }
2100
- const contents = map({
2101
- $metadata: deserializeMetadata(output),
2102
- });
2103
- await collectBody(output.body, context);
2104
- return contents;
2105
- };
2106
- export const de_DeleteUtterancesCommand = async (output, context) => {
2107
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2108
- return de_CommandError(output, context);
2109
- }
2110
- const contents = map({
2111
- $metadata: deserializeMetadata(output),
2112
- });
2113
- await collectBody(output.body, context);
2114
- return contents;
2115
- };
2116
- export const de_DescribeBotCommand = async (output, context) => {
2117
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2118
- return de_CommandError(output, context);
2119
- }
2120
- const contents = map({
2121
- $metadata: deserializeMetadata(output),
2122
- });
2123
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2124
- const doc = take(data, {
2125
- botId: __expectString,
2126
- botMembers: _json,
2127
- botName: __expectString,
2128
- botStatus: __expectString,
2129
- botType: __expectString,
2130
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2131
- dataPrivacy: _json,
2132
- description: __expectString,
2133
- errorLogSettings: _json,
2134
- failureReasons: _json,
2135
- idleSessionTTLInSeconds: __expectInt32,
2136
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2137
- roleArn: __expectString,
2138
- });
2139
- Object.assign(contents, doc);
2140
- return contents;
2141
- };
2142
- export const de_DescribeBotAliasCommand = async (output, context) => {
2143
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2144
- return de_CommandError(output, context);
2145
- }
2146
- const contents = map({
2147
- $metadata: deserializeMetadata(output),
2148
- });
2149
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2150
- const doc = take(data, {
2151
- botAliasHistoryEvents: (_) => de_BotAliasHistoryEventsList(_, context),
2152
- botAliasId: __expectString,
2153
- botAliasLocaleSettings: _json,
2154
- botAliasName: __expectString,
2155
- botAliasStatus: __expectString,
2156
- botId: __expectString,
2157
- botVersion: __expectString,
2158
- conversationLogSettings: _json,
2159
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2160
- description: __expectString,
2161
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2162
- parentBotNetworks: _json,
2163
- sentimentAnalysisSettings: _json,
2164
- });
2165
- Object.assign(contents, doc);
2166
- return contents;
2167
- };
2168
- export const de_DescribeBotLocaleCommand = async (output, context) => {
2169
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2170
- return de_CommandError(output, context);
2171
- }
2172
- const contents = map({
2173
- $metadata: deserializeMetadata(output),
2174
- });
2175
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2176
- const doc = take(data, {
2177
- botId: __expectString,
2178
- botLocaleHistoryEvents: (_) => de_BotLocaleHistoryEventsList(_, context),
2179
- botLocaleStatus: __expectString,
2180
- botVersion: __expectString,
2181
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2182
- description: __expectString,
2183
- failureReasons: _json,
2184
- generativeAISettings: _json,
2185
- intentsCount: __expectInt32,
2186
- lastBuildSubmittedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2187
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2188
- localeId: __expectString,
2189
- localeName: __expectString,
2190
- nluIntentConfidenceThreshold: __limitedParseDouble,
2191
- recommendedActions: _json,
2192
- slotTypesCount: __expectInt32,
2193
- voiceSettings: _json,
2194
- });
2195
- Object.assign(contents, doc);
2196
- return contents;
2197
- };
2198
- export const de_DescribeBotRecommendationCommand = async (output, context) => {
2199
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2200
- return de_CommandError(output, context);
2201
- }
2202
- const contents = map({
2203
- $metadata: deserializeMetadata(output),
2204
- });
2205
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2206
- const doc = take(data, {
2207
- botId: __expectString,
2208
- botRecommendationId: __expectString,
2209
- botRecommendationResults: _json,
2210
- botRecommendationStatus: __expectString,
2211
- botVersion: __expectString,
2212
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2213
- encryptionSetting: _json,
2214
- failureReasons: _json,
2215
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2216
- localeId: __expectString,
2217
- transcriptSourceSetting: (_) => de_TranscriptSourceSetting(_, context),
2218
- });
2219
- Object.assign(contents, doc);
2220
- return contents;
2221
- };
2222
- export const de_DescribeBotReplicaCommand = async (output, context) => {
2223
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2224
- return de_CommandError(output, context);
2225
- }
2226
- const contents = map({
2227
- $metadata: deserializeMetadata(output),
2228
- });
2229
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2230
- const doc = take(data, {
2231
- botId: __expectString,
2232
- botReplicaStatus: __expectString,
2233
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2234
- failureReasons: _json,
2235
- replicaRegion: __expectString,
2236
- sourceRegion: __expectString,
2237
- });
2238
- Object.assign(contents, doc);
2239
- return contents;
2240
- };
2241
- export const de_DescribeBotResourceGenerationCommand = async (output, context) => {
2242
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2243
- return de_CommandError(output, context);
2244
- }
2245
- const contents = map({
2246
- $metadata: deserializeMetadata(output),
2247
- });
2248
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2249
- const doc = take(data, {
2250
- botId: __expectString,
2251
- botVersion: __expectString,
2252
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2253
- failureReasons: _json,
2254
- generatedBotLocaleUrl: __expectString,
2255
- generationId: __expectString,
2256
- generationInputPrompt: __expectString,
2257
- generationStatus: __expectString,
2258
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2259
- localeId: __expectString,
2260
- modelArn: __expectString,
2261
- });
2262
- Object.assign(contents, doc);
2263
- return contents;
2264
- };
2265
- export const de_DescribeBotVersionCommand = async (output, context) => {
2266
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2267
- return de_CommandError(output, context);
2268
- }
2269
- const contents = map({
2270
- $metadata: deserializeMetadata(output),
2271
- });
2272
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2273
- const doc = take(data, {
2274
- botId: __expectString,
2275
- botMembers: _json,
2276
- botName: __expectString,
2277
- botStatus: __expectString,
2278
- botType: __expectString,
2279
- botVersion: __expectString,
2280
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2281
- dataPrivacy: _json,
2282
- description: __expectString,
2283
- failureReasons: _json,
2284
- idleSessionTTLInSeconds: __expectInt32,
2285
- parentBotNetworks: _json,
2286
- roleArn: __expectString,
2287
- });
2288
- Object.assign(contents, doc);
2289
- return contents;
2290
- };
2291
- export const de_DescribeCustomVocabularyMetadataCommand = async (output, context) => {
2292
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2293
- return de_CommandError(output, context);
2294
- }
2295
- const contents = map({
2296
- $metadata: deserializeMetadata(output),
2297
- });
2298
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2299
- const doc = take(data, {
2300
- botId: __expectString,
2301
- botVersion: __expectString,
2302
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2303
- customVocabularyStatus: __expectString,
2304
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2305
- localeId: __expectString,
2306
- });
2307
- Object.assign(contents, doc);
2308
- return contents;
2309
- };
2310
- export const de_DescribeExportCommand = async (output, context) => {
2311
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2312
- return de_CommandError(output, context);
2313
- }
2314
- const contents = map({
2315
- $metadata: deserializeMetadata(output),
2316
- });
2317
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2318
- const doc = take(data, {
2319
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2320
- downloadUrl: __expectString,
2321
- exportId: __expectString,
2322
- exportStatus: __expectString,
2323
- failureReasons: _json,
2324
- fileFormat: __expectString,
2325
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2326
- resourceSpecification: _json,
2327
- });
2328
- Object.assign(contents, doc);
2329
- return contents;
2330
- };
2331
- export const de_DescribeImportCommand = async (output, context) => {
2332
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2333
- return de_CommandError(output, context);
2334
- }
2335
- const contents = map({
2336
- $metadata: deserializeMetadata(output),
2337
- });
2338
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2339
- const doc = take(data, {
2340
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2341
- failureReasons: _json,
2342
- importId: __expectString,
2343
- importStatus: __expectString,
2344
- importedResourceId: __expectString,
2345
- importedResourceName: __expectString,
2346
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2347
- mergeStrategy: __expectString,
2348
- resourceSpecification: (_) => de_ImportResourceSpecification(_, context),
2349
- });
2350
- Object.assign(contents, doc);
2351
- return contents;
2352
- };
2353
- export const de_DescribeIntentCommand = async (output, context) => {
2354
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2355
- return de_CommandError(output, context);
2356
- }
2357
- const contents = map({
2358
- $metadata: deserializeMetadata(output),
2359
- });
2360
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2361
- const doc = take(data, {
2362
- botId: __expectString,
2363
- botVersion: __expectString,
2364
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2365
- description: __expectString,
2366
- dialogCodeHook: _json,
2367
- fulfillmentCodeHook: (_) => de_FulfillmentCodeHookSettings(_, context),
2368
- initialResponseSetting: (_) => de_InitialResponseSetting(_, context),
2369
- inputContexts: _json,
2370
- intentClosingSetting: (_) => de_IntentClosingSetting(_, context),
2371
- intentConfirmationSetting: (_) => de_IntentConfirmationSetting(_, context),
2372
- intentId: __expectString,
2373
- intentName: __expectString,
2374
- kendraConfiguration: _json,
2375
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2376
- localeId: __expectString,
2377
- outputContexts: _json,
2378
- parentIntentSignature: __expectString,
2379
- qInConnectIntentConfiguration: _json,
2380
- qnAIntentConfiguration: _json,
2381
- sampleUtterances: _json,
2382
- slotPriorities: _json,
2383
- });
2384
- Object.assign(contents, doc);
2385
- return contents;
2386
- };
2387
- export const de_DescribeResourcePolicyCommand = async (output, context) => {
2388
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2389
- return de_CommandError(output, context);
2390
- }
2391
- const contents = map({
2392
- $metadata: deserializeMetadata(output),
2393
- });
2394
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2395
- const doc = take(data, {
2396
- policy: __expectString,
2397
- resourceArn: __expectString,
2398
- revisionId: __expectString,
2399
- });
2400
- Object.assign(contents, doc);
2401
- return contents;
2402
- };
2403
- export const de_DescribeSlotCommand = async (output, context) => {
2404
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2405
- return de_CommandError(output, context);
2406
- }
2407
- const contents = map({
2408
- $metadata: deserializeMetadata(output),
2409
- });
2410
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2411
- const doc = take(data, {
2412
- botId: __expectString,
2413
- botVersion: __expectString,
2414
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2415
- description: __expectString,
2416
- intentId: __expectString,
2417
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2418
- localeId: __expectString,
2419
- multipleValuesSetting: _json,
2420
- obfuscationSetting: _json,
2421
- slotId: __expectString,
2422
- slotName: __expectString,
2423
- slotTypeId: __expectString,
2424
- subSlotSetting: (_) => de_SubSlotSetting(_, context),
2425
- valueElicitationSetting: (_) => de_SlotValueElicitationSetting(_, context),
2426
- });
2427
- Object.assign(contents, doc);
2428
- return contents;
2429
- };
2430
- export const de_DescribeSlotTypeCommand = async (output, context) => {
2431
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2432
- return de_CommandError(output, context);
2433
- }
2434
- const contents = map({
2435
- $metadata: deserializeMetadata(output),
2436
- });
2437
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2438
- const doc = take(data, {
2439
- botId: __expectString,
2440
- botVersion: __expectString,
2441
- compositeSlotTypeSetting: _json,
2442
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2443
- description: __expectString,
2444
- externalSourceSetting: _json,
2445
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2446
- localeId: __expectString,
2447
- parentSlotTypeSignature: __expectString,
2448
- slotTypeId: __expectString,
2449
- slotTypeName: __expectString,
2450
- slotTypeValues: _json,
2451
- valueSelectionSetting: _json,
2452
- });
2453
- Object.assign(contents, doc);
2454
- return contents;
2455
- };
2456
- export const de_DescribeTestExecutionCommand = async (output, context) => {
2457
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2458
- return de_CommandError(output, context);
2459
- }
2460
- const contents = map({
2461
- $metadata: deserializeMetadata(output),
2462
- });
2463
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2464
- const doc = take(data, {
2465
- apiMode: __expectString,
2466
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2467
- failureReasons: _json,
2468
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2469
- target: _json,
2470
- testExecutionId: __expectString,
2471
- testExecutionModality: __expectString,
2472
- testExecutionStatus: __expectString,
2473
- testSetId: __expectString,
2474
- testSetName: __expectString,
2475
- });
2476
- Object.assign(contents, doc);
2477
- return contents;
2478
- };
2479
- export const de_DescribeTestSetCommand = async (output, context) => {
2480
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2481
- return de_CommandError(output, context);
2482
- }
2483
- const contents = map({
2484
- $metadata: deserializeMetadata(output),
2485
- });
2486
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2487
- const doc = take(data, {
2488
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2489
- description: __expectString,
2490
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2491
- modality: __expectString,
2492
- numTurns: __expectInt32,
2493
- roleArn: __expectString,
2494
- status: __expectString,
2495
- storageLocation: _json,
2496
- testSetId: __expectString,
2497
- testSetName: __expectString,
2498
- });
2499
- Object.assign(contents, doc);
2500
- return contents;
2501
- };
2502
- export const de_DescribeTestSetDiscrepancyReportCommand = async (output, context) => {
2503
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2504
- return de_CommandError(output, context);
2505
- }
2506
- const contents = map({
2507
- $metadata: deserializeMetadata(output),
2508
- });
2509
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2510
- const doc = take(data, {
2511
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2512
- failureReasons: _json,
2513
- lastUpdatedDataTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2514
- target: _json,
2515
- testSetDiscrepancyRawOutputUrl: __expectString,
2516
- testSetDiscrepancyReportId: __expectString,
2517
- testSetDiscrepancyReportStatus: __expectString,
2518
- testSetDiscrepancyTopErrors: _json,
2519
- testSetId: __expectString,
2520
- });
2521
- Object.assign(contents, doc);
2522
- return contents;
2523
- };
2524
- export const de_DescribeTestSetGenerationCommand = async (output, context) => {
2525
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2526
- return de_CommandError(output, context);
2527
- }
2528
- const contents = map({
2529
- $metadata: deserializeMetadata(output),
2530
- });
2531
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2532
- const doc = take(data, {
2533
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2534
- description: __expectString,
2535
- failureReasons: _json,
2536
- generationDataSource: (_) => de_TestSetGenerationDataSource(_, context),
2537
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2538
- roleArn: __expectString,
2539
- storageLocation: _json,
2540
- testSetGenerationId: __expectString,
2541
- testSetGenerationStatus: __expectString,
2542
- testSetId: __expectString,
2543
- testSetName: __expectString,
2544
- });
2545
- Object.assign(contents, doc);
2546
- return contents;
2547
- };
2548
- export const de_GenerateBotElementCommand = async (output, context) => {
2549
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2550
- return de_CommandError(output, context);
2551
- }
2552
- const contents = map({
2553
- $metadata: deserializeMetadata(output),
2554
- });
2555
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2556
- const doc = take(data, {
2557
- botId: __expectString,
2558
- botVersion: __expectString,
2559
- intentId: __expectString,
2560
- localeId: __expectString,
2561
- sampleUtterances: _json,
2562
- });
2563
- Object.assign(contents, doc);
2564
- return contents;
2565
- };
2566
- export const de_GetTestExecutionArtifactsUrlCommand = async (output, context) => {
2567
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2568
- return de_CommandError(output, context);
2569
- }
2570
- const contents = map({
2571
- $metadata: deserializeMetadata(output),
2572
- });
2573
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2574
- const doc = take(data, {
2575
- downloadArtifactsUrl: __expectString,
2576
- testExecutionId: __expectString,
2577
- });
2578
- Object.assign(contents, doc);
2579
- return contents;
2580
- };
2581
- export const de_ListAggregatedUtterancesCommand = async (output, context) => {
2582
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2583
- return de_CommandError(output, context);
2584
- }
2585
- const contents = map({
2586
- $metadata: deserializeMetadata(output),
2587
- });
2588
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2589
- const doc = take(data, {
2590
- aggregatedUtterancesSummaries: (_) => de_AggregatedUtterancesSummaryList(_, context),
2591
- aggregationDuration: _json,
2592
- aggregationLastRefreshedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2593
- aggregationWindowEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2594
- aggregationWindowStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2595
- botAliasId: __expectString,
2596
- botId: __expectString,
2597
- botVersion: __expectString,
2598
- localeId: __expectString,
2599
- nextToken: __expectString,
2600
- });
2601
- Object.assign(contents, doc);
2602
- return contents;
2603
- };
2604
- export const de_ListBotAliasesCommand = async (output, context) => {
2605
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2606
- return de_CommandError(output, context);
2607
- }
2608
- const contents = map({
2609
- $metadata: deserializeMetadata(output),
2610
- });
2611
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2612
- const doc = take(data, {
2613
- botAliasSummaries: (_) => de_BotAliasSummaryList(_, context),
2614
- botId: __expectString,
2615
- nextToken: __expectString,
2616
- });
2617
- Object.assign(contents, doc);
2618
- return contents;
2619
- };
2620
- export const de_ListBotAliasReplicasCommand = async (output, context) => {
2621
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2622
- return de_CommandError(output, context);
2623
- }
2624
- const contents = map({
2625
- $metadata: deserializeMetadata(output),
2626
- });
2627
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2628
- const doc = take(data, {
2629
- botAliasReplicaSummaries: (_) => de_BotAliasReplicaSummaryList(_, context),
2630
- botId: __expectString,
2631
- nextToken: __expectString,
2632
- replicaRegion: __expectString,
2633
- sourceRegion: __expectString,
2634
- });
2635
- Object.assign(contents, doc);
2636
- return contents;
2637
- };
2638
- export const de_ListBotLocalesCommand = async (output, context) => {
2639
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2640
- return de_CommandError(output, context);
2641
- }
2642
- const contents = map({
2643
- $metadata: deserializeMetadata(output),
2644
- });
2645
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2646
- const doc = take(data, {
2647
- botId: __expectString,
2648
- botLocaleSummaries: (_) => de_BotLocaleSummaryList(_, context),
2649
- botVersion: __expectString,
2650
- nextToken: __expectString,
2651
- });
2652
- Object.assign(contents, doc);
2653
- return contents;
2654
- };
2655
- export const de_ListBotRecommendationsCommand = async (output, context) => {
2656
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2657
- return de_CommandError(output, context);
2658
- }
2659
- const contents = map({
2660
- $metadata: deserializeMetadata(output),
2661
- });
2662
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2663
- const doc = take(data, {
2664
- botId: __expectString,
2665
- botRecommendationSummaries: (_) => de_BotRecommendationSummaryList(_, context),
2666
- botVersion: __expectString,
2667
- localeId: __expectString,
2668
- nextToken: __expectString,
2669
- });
2670
- Object.assign(contents, doc);
2671
- return contents;
2672
- };
2673
- export const de_ListBotReplicasCommand = async (output, context) => {
2674
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2675
- return de_CommandError(output, context);
2676
- }
2677
- const contents = map({
2678
- $metadata: deserializeMetadata(output),
2679
- });
2680
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2681
- const doc = take(data, {
2682
- botId: __expectString,
2683
- botReplicaSummaries: (_) => de_BotReplicaSummaryList(_, context),
2684
- sourceRegion: __expectString,
2685
- });
2686
- Object.assign(contents, doc);
2687
- return contents;
2688
- };
2689
- export const de_ListBotResourceGenerationsCommand = async (output, context) => {
2690
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2691
- return de_CommandError(output, context);
2692
- }
2693
- const contents = map({
2694
- $metadata: deserializeMetadata(output),
2695
- });
2696
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2697
- const doc = take(data, {
2698
- botId: __expectString,
2699
- botVersion: __expectString,
2700
- generationSummaries: (_) => de_GenerationSummaryList(_, context),
2701
- localeId: __expectString,
2702
- nextToken: __expectString,
2703
- });
2704
- Object.assign(contents, doc);
2705
- return contents;
2706
- };
2707
- export const de_ListBotsCommand = async (output, context) => {
2708
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2709
- return de_CommandError(output, context);
2710
- }
2711
- const contents = map({
2712
- $metadata: deserializeMetadata(output),
2713
- });
2714
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2715
- const doc = take(data, {
2716
- botSummaries: (_) => de_BotSummaryList(_, context),
2717
- nextToken: __expectString,
2718
- });
2719
- Object.assign(contents, doc);
2720
- return contents;
2721
- };
2722
- export const de_ListBotVersionReplicasCommand = async (output, context) => {
2723
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2724
- return de_CommandError(output, context);
2725
- }
2726
- const contents = map({
2727
- $metadata: deserializeMetadata(output),
2728
- });
2729
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2730
- const doc = take(data, {
2731
- botId: __expectString,
2732
- botVersionReplicaSummaries: (_) => de_BotVersionReplicaSummaryList(_, context),
2733
- nextToken: __expectString,
2734
- replicaRegion: __expectString,
2735
- sourceRegion: __expectString,
2736
- });
2737
- Object.assign(contents, doc);
2738
- return contents;
2739
- };
2740
- export const de_ListBotVersionsCommand = async (output, context) => {
2741
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2742
- return de_CommandError(output, context);
2743
- }
2744
- const contents = map({
2745
- $metadata: deserializeMetadata(output),
2746
- });
2747
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2748
- const doc = take(data, {
2749
- botId: __expectString,
2750
- botVersionSummaries: (_) => de_BotVersionSummaryList(_, context),
2751
- nextToken: __expectString,
2752
- });
2753
- Object.assign(contents, doc);
2754
- return contents;
2755
- };
2756
- export const de_ListBuiltInIntentsCommand = async (output, context) => {
2757
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2758
- return de_CommandError(output, context);
2759
- }
2760
- const contents = map({
2761
- $metadata: deserializeMetadata(output),
2762
- });
2763
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2764
- const doc = take(data, {
2765
- builtInIntentSummaries: _json,
2766
- localeId: __expectString,
2767
- nextToken: __expectString,
2768
- });
2769
- Object.assign(contents, doc);
2770
- return contents;
2771
- };
2772
- export const de_ListBuiltInSlotTypesCommand = async (output, context) => {
2773
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2774
- return de_CommandError(output, context);
2775
- }
2776
- const contents = map({
2777
- $metadata: deserializeMetadata(output),
2778
- });
2779
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2780
- const doc = take(data, {
2781
- builtInSlotTypeSummaries: _json,
2782
- localeId: __expectString,
2783
- nextToken: __expectString,
2784
- });
2785
- Object.assign(contents, doc);
2786
- return contents;
2787
- };
2788
- export const de_ListCustomVocabularyItemsCommand = async (output, context) => {
2789
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2790
- return de_CommandError(output, context);
2791
- }
2792
- const contents = map({
2793
- $metadata: deserializeMetadata(output),
2794
- });
2795
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2796
- const doc = take(data, {
2797
- botId: __expectString,
2798
- botVersion: __expectString,
2799
- customVocabularyItems: _json,
2800
- localeId: __expectString,
2801
- nextToken: __expectString,
2802
- });
2803
- Object.assign(contents, doc);
2804
- return contents;
2805
- };
2806
- export const de_ListExportsCommand = async (output, context) => {
2807
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2808
- return de_CommandError(output, context);
2809
- }
2810
- const contents = map({
2811
- $metadata: deserializeMetadata(output),
2812
- });
2813
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2814
- const doc = take(data, {
2815
- botId: __expectString,
2816
- botVersion: __expectString,
2817
- exportSummaries: (_) => de_ExportSummaryList(_, context),
2818
- localeId: __expectString,
2819
- nextToken: __expectString,
2820
- });
2821
- Object.assign(contents, doc);
2822
- return contents;
2823
- };
2824
- export const de_ListImportsCommand = async (output, context) => {
2825
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2826
- return de_CommandError(output, context);
2827
- }
2828
- const contents = map({
2829
- $metadata: deserializeMetadata(output),
2830
- });
2831
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2832
- const doc = take(data, {
2833
- botId: __expectString,
2834
- botVersion: __expectString,
2835
- importSummaries: (_) => de_ImportSummaryList(_, context),
2836
- localeId: __expectString,
2837
- nextToken: __expectString,
2838
- });
2839
- Object.assign(contents, doc);
2840
- return contents;
2841
- };
2842
- export const de_ListIntentMetricsCommand = async (output, context) => {
2843
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2844
- return de_CommandError(output, context);
2845
- }
2846
- const contents = map({
2847
- $metadata: deserializeMetadata(output),
2848
- });
2849
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2850
- const doc = take(data, {
2851
- botId: __expectString,
2852
- nextToken: __expectString,
2853
- results: (_) => de_AnalyticsIntentResults(_, context),
2854
- });
2855
- Object.assign(contents, doc);
2856
- return contents;
2857
- };
2858
- export const de_ListIntentPathsCommand = async (output, context) => {
2859
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2860
- return de_CommandError(output, context);
2861
- }
2862
- const contents = map({
2863
- $metadata: deserializeMetadata(output),
2864
- });
2865
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2866
- const doc = take(data, {
2867
- nodeSummaries: _json,
2868
- });
2869
- Object.assign(contents, doc);
2870
- return contents;
2871
- };
2872
- export const de_ListIntentsCommand = async (output, context) => {
2873
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2874
- return de_CommandError(output, context);
2875
- }
2876
- const contents = map({
2877
- $metadata: deserializeMetadata(output),
2878
- });
2879
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2880
- const doc = take(data, {
2881
- botId: __expectString,
2882
- botVersion: __expectString,
2883
- intentSummaries: (_) => de_IntentSummaryList(_, context),
2884
- localeId: __expectString,
2885
- nextToken: __expectString,
2886
- });
2887
- Object.assign(contents, doc);
2888
- return contents;
2889
- };
2890
- export const de_ListIntentStageMetricsCommand = async (output, context) => {
2891
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2892
- return de_CommandError(output, context);
2893
- }
2894
- const contents = map({
2895
- $metadata: deserializeMetadata(output),
2896
- });
2897
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2898
- const doc = take(data, {
2899
- botId: __expectString,
2900
- nextToken: __expectString,
2901
- results: (_) => de_AnalyticsIntentStageResults(_, context),
2902
- });
2903
- Object.assign(contents, doc);
2904
- return contents;
2905
- };
2906
- export const de_ListRecommendedIntentsCommand = async (output, context) => {
2907
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2908
- return de_CommandError(output, context);
2909
- }
2910
- const contents = map({
2911
- $metadata: deserializeMetadata(output),
2912
- });
2913
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2914
- const doc = take(data, {
2915
- botId: __expectString,
2916
- botRecommendationId: __expectString,
2917
- botVersion: __expectString,
2918
- localeId: __expectString,
2919
- nextToken: __expectString,
2920
- summaryList: _json,
2921
- });
2922
- Object.assign(contents, doc);
2923
- return contents;
2924
- };
2925
- export const de_ListSessionAnalyticsDataCommand = async (output, context) => {
2926
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2927
- return de_CommandError(output, context);
2928
- }
2929
- const contents = map({
2930
- $metadata: deserializeMetadata(output),
2931
- });
2932
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2933
- const doc = take(data, {
2934
- botId: __expectString,
2935
- nextToken: __expectString,
2936
- sessions: (_) => de_SessionSpecifications(_, context),
2937
- });
2938
- Object.assign(contents, doc);
2939
- return contents;
2940
- };
2941
- export const de_ListSessionMetricsCommand = async (output, context) => {
2942
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2943
- return de_CommandError(output, context);
2944
- }
2945
- const contents = map({
2946
- $metadata: deserializeMetadata(output),
2947
- });
2948
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2949
- const doc = take(data, {
2950
- botId: __expectString,
2951
- nextToken: __expectString,
2952
- results: (_) => de_AnalyticsSessionResults(_, context),
2953
- });
2954
- Object.assign(contents, doc);
2955
- return contents;
2956
- };
2957
- export const de_ListSlotsCommand = async (output, context) => {
2958
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2959
- return de_CommandError(output, context);
2960
- }
2961
- const contents = map({
2962
- $metadata: deserializeMetadata(output),
2963
- });
2964
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2965
- const doc = take(data, {
2966
- botId: __expectString,
2967
- botVersion: __expectString,
2968
- intentId: __expectString,
2969
- localeId: __expectString,
2970
- nextToken: __expectString,
2971
- slotSummaries: (_) => de_SlotSummaryList(_, context),
2972
- });
2973
- Object.assign(contents, doc);
2974
- return contents;
2975
- };
2976
- export const de_ListSlotTypesCommand = async (output, context) => {
2977
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2978
- return de_CommandError(output, context);
2979
- }
2980
- const contents = map({
2981
- $metadata: deserializeMetadata(output),
2982
- });
2983
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2984
- const doc = take(data, {
2985
- botId: __expectString,
2986
- botVersion: __expectString,
2987
- localeId: __expectString,
2988
- nextToken: __expectString,
2989
- slotTypeSummaries: (_) => de_SlotTypeSummaryList(_, context),
2990
- });
2991
- Object.assign(contents, doc);
2992
- return contents;
2993
- };
2994
- export const de_ListTagsForResourceCommand = async (output, context) => {
2995
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2996
- return de_CommandError(output, context);
2997
- }
2998
- const contents = map({
2999
- $metadata: deserializeMetadata(output),
3000
- });
3001
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3002
- const doc = take(data, {
3003
- tags: _json,
3004
- });
3005
- Object.assign(contents, doc);
3006
- return contents;
3007
- };
3008
- export const de_ListTestExecutionResultItemsCommand = async (output, context) => {
3009
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3010
- return de_CommandError(output, context);
3011
- }
3012
- const contents = map({
3013
- $metadata: deserializeMetadata(output),
3014
- });
3015
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3016
- const doc = take(data, {
3017
- nextToken: __expectString,
3018
- testExecutionResults: (_) => de_TestExecutionResultItems(_, context),
3019
- });
3020
- Object.assign(contents, doc);
3021
- return contents;
3022
- };
3023
- export const de_ListTestExecutionsCommand = async (output, context) => {
3024
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3025
- return de_CommandError(output, context);
3026
- }
3027
- const contents = map({
3028
- $metadata: deserializeMetadata(output),
3029
- });
3030
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3031
- const doc = take(data, {
3032
- nextToken: __expectString,
3033
- testExecutions: (_) => de_TestExecutionSummaryList(_, context),
3034
- });
3035
- Object.assign(contents, doc);
3036
- return contents;
3037
- };
3038
- export const de_ListTestSetRecordsCommand = async (output, context) => {
3039
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3040
- return de_CommandError(output, context);
3041
- }
3042
- const contents = map({
3043
- $metadata: deserializeMetadata(output),
3044
- });
3045
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3046
- const doc = take(data, {
3047
- nextToken: __expectString,
3048
- testSetRecords: (_) => de_TestSetTurnRecordList(_, context),
3049
- });
3050
- Object.assign(contents, doc);
3051
- return contents;
3052
- };
3053
- export const de_ListTestSetsCommand = async (output, context) => {
3054
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3055
- return de_CommandError(output, context);
3056
- }
3057
- const contents = map({
3058
- $metadata: deserializeMetadata(output),
3059
- });
3060
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3061
- const doc = take(data, {
3062
- nextToken: __expectString,
3063
- testSets: (_) => de_TestSetSummaryList(_, context),
3064
- });
3065
- Object.assign(contents, doc);
3066
- return contents;
3067
- };
3068
- export const de_ListUtteranceAnalyticsDataCommand = async (output, context) => {
3069
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3070
- return de_CommandError(output, context);
3071
- }
3072
- const contents = map({
3073
- $metadata: deserializeMetadata(output),
3074
- });
3075
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3076
- const doc = take(data, {
3077
- botId: __expectString,
3078
- nextToken: __expectString,
3079
- utterances: (_) => de_UtteranceSpecifications(_, context),
3080
- });
3081
- Object.assign(contents, doc);
3082
- return contents;
3083
- };
3084
- export const de_ListUtteranceMetricsCommand = async (output, context) => {
3085
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3086
- return de_CommandError(output, context);
3087
- }
3088
- const contents = map({
3089
- $metadata: deserializeMetadata(output),
3090
- });
3091
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3092
- const doc = take(data, {
3093
- botId: __expectString,
3094
- nextToken: __expectString,
3095
- results: (_) => de_AnalyticsUtteranceResults(_, context),
3096
- });
3097
- Object.assign(contents, doc);
3098
- return contents;
3099
- };
3100
- export const de_SearchAssociatedTranscriptsCommand = async (output, context) => {
3101
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3102
- return de_CommandError(output, context);
3103
- }
3104
- const contents = map({
3105
- $metadata: deserializeMetadata(output),
3106
- });
3107
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3108
- const doc = take(data, {
3109
- associatedTranscripts: _json,
3110
- botId: __expectString,
3111
- botRecommendationId: __expectString,
3112
- botVersion: __expectString,
3113
- localeId: __expectString,
3114
- nextIndex: __expectInt32,
3115
- totalResults: __expectInt32,
3116
- });
3117
- Object.assign(contents, doc);
3118
- return contents;
3119
- };
3120
- export const de_StartBotRecommendationCommand = async (output, context) => {
3121
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3122
- return de_CommandError(output, context);
3123
- }
3124
- const contents = map({
3125
- $metadata: deserializeMetadata(output),
3126
- });
3127
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3128
- const doc = take(data, {
3129
- botId: __expectString,
3130
- botRecommendationId: __expectString,
3131
- botRecommendationStatus: __expectString,
3132
- botVersion: __expectString,
3133
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3134
- encryptionSetting: _json,
3135
- localeId: __expectString,
3136
- transcriptSourceSetting: (_) => de_TranscriptSourceSetting(_, context),
3137
- });
3138
- Object.assign(contents, doc);
3139
- return contents;
3140
- };
3141
- export const de_StartBotResourceGenerationCommand = async (output, context) => {
3142
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3143
- return de_CommandError(output, context);
3144
- }
3145
- const contents = map({
3146
- $metadata: deserializeMetadata(output),
3147
- });
3148
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3149
- const doc = take(data, {
3150
- botId: __expectString,
3151
- botVersion: __expectString,
3152
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3153
- generationId: __expectString,
3154
- generationInputPrompt: __expectString,
3155
- generationStatus: __expectString,
3156
- localeId: __expectString,
3157
- });
3158
- Object.assign(contents, doc);
3159
- return contents;
3160
- };
3161
- export const de_StartImportCommand = async (output, context) => {
3162
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3163
- return de_CommandError(output, context);
3164
- }
3165
- const contents = map({
3166
- $metadata: deserializeMetadata(output),
3167
- });
3168
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3169
- const doc = take(data, {
3170
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3171
- importId: __expectString,
3172
- importStatus: __expectString,
3173
- mergeStrategy: __expectString,
3174
- resourceSpecification: (_) => de_ImportResourceSpecification(_, context),
3175
- });
3176
- Object.assign(contents, doc);
3177
- return contents;
3178
- };
3179
- export const de_StartTestExecutionCommand = async (output, context) => {
3180
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3181
- return de_CommandError(output, context);
3182
- }
3183
- const contents = map({
3184
- $metadata: deserializeMetadata(output),
3185
- });
3186
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3187
- const doc = take(data, {
3188
- apiMode: __expectString,
3189
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3190
- target: _json,
3191
- testExecutionId: __expectString,
3192
- testExecutionModality: __expectString,
3193
- testSetId: __expectString,
3194
- });
3195
- Object.assign(contents, doc);
3196
- return contents;
3197
- };
3198
- export const de_StartTestSetGenerationCommand = async (output, context) => {
3199
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3200
- return de_CommandError(output, context);
3201
- }
3202
- const contents = map({
3203
- $metadata: deserializeMetadata(output),
3204
- });
3205
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3206
- const doc = take(data, {
3207
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3208
- description: __expectString,
3209
- generationDataSource: (_) => de_TestSetGenerationDataSource(_, context),
3210
- roleArn: __expectString,
3211
- storageLocation: _json,
3212
- testSetGenerationId: __expectString,
3213
- testSetGenerationStatus: __expectString,
3214
- testSetName: __expectString,
3215
- testSetTags: _json,
3216
- });
3217
- Object.assign(contents, doc);
3218
- return contents;
3219
- };
3220
- export const de_StopBotRecommendationCommand = async (output, context) => {
3221
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3222
- return de_CommandError(output, context);
3223
- }
3224
- const contents = map({
3225
- $metadata: deserializeMetadata(output),
3226
- });
3227
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3228
- const doc = take(data, {
3229
- botId: __expectString,
3230
- botRecommendationId: __expectString,
3231
- botRecommendationStatus: __expectString,
3232
- botVersion: __expectString,
3233
- localeId: __expectString,
3234
- });
3235
- Object.assign(contents, doc);
3236
- return contents;
3237
- };
3238
- export const de_TagResourceCommand = async (output, context) => {
3239
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3240
- return de_CommandError(output, context);
3241
- }
3242
- const contents = map({
3243
- $metadata: deserializeMetadata(output),
3244
- });
3245
- await collectBody(output.body, context);
3246
- return contents;
3247
- };
3248
- export const de_UntagResourceCommand = async (output, context) => {
3249
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3250
- return de_CommandError(output, context);
3251
- }
3252
- const contents = map({
3253
- $metadata: deserializeMetadata(output),
3254
- });
3255
- await collectBody(output.body, context);
3256
- return contents;
3257
- };
3258
- export const de_UpdateBotCommand = async (output, context) => {
3259
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3260
- return de_CommandError(output, context);
3261
- }
3262
- const contents = map({
3263
- $metadata: deserializeMetadata(output),
3264
- });
3265
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3266
- const doc = take(data, {
3267
- botId: __expectString,
3268
- botMembers: _json,
3269
- botName: __expectString,
3270
- botStatus: __expectString,
3271
- botType: __expectString,
3272
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3273
- dataPrivacy: _json,
3274
- description: __expectString,
3275
- errorLogSettings: _json,
3276
- idleSessionTTLInSeconds: __expectInt32,
3277
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3278
- roleArn: __expectString,
3279
- });
3280
- Object.assign(contents, doc);
3281
- return contents;
3282
- };
3283
- export const de_UpdateBotAliasCommand = async (output, context) => {
3284
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3285
- return de_CommandError(output, context);
3286
- }
3287
- const contents = map({
3288
- $metadata: deserializeMetadata(output),
3289
- });
3290
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3291
- const doc = take(data, {
3292
- botAliasId: __expectString,
3293
- botAliasLocaleSettings: _json,
3294
- botAliasName: __expectString,
3295
- botAliasStatus: __expectString,
3296
- botId: __expectString,
3297
- botVersion: __expectString,
3298
- conversationLogSettings: _json,
3299
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3300
- description: __expectString,
3301
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3302
- sentimentAnalysisSettings: _json,
3303
- });
3304
- Object.assign(contents, doc);
3305
- return contents;
3306
- };
3307
- export const de_UpdateBotLocaleCommand = async (output, context) => {
3308
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3309
- return de_CommandError(output, context);
3310
- }
3311
- const contents = map({
3312
- $metadata: deserializeMetadata(output),
3313
- });
3314
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3315
- const doc = take(data, {
3316
- botId: __expectString,
3317
- botLocaleStatus: __expectString,
3318
- botVersion: __expectString,
3319
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3320
- description: __expectString,
3321
- failureReasons: _json,
3322
- generativeAISettings: _json,
3323
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3324
- localeId: __expectString,
3325
- localeName: __expectString,
3326
- nluIntentConfidenceThreshold: __limitedParseDouble,
3327
- recommendedActions: _json,
3328
- voiceSettings: _json,
3329
- });
3330
- Object.assign(contents, doc);
3331
- return contents;
3332
- };
3333
- export const de_UpdateBotRecommendationCommand = async (output, context) => {
3334
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3335
- return de_CommandError(output, context);
3336
- }
3337
- const contents = map({
3338
- $metadata: deserializeMetadata(output),
3339
- });
3340
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3341
- const doc = take(data, {
3342
- botId: __expectString,
3343
- botRecommendationId: __expectString,
3344
- botRecommendationStatus: __expectString,
3345
- botVersion: __expectString,
3346
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3347
- encryptionSetting: _json,
3348
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3349
- localeId: __expectString,
3350
- transcriptSourceSetting: (_) => de_TranscriptSourceSetting(_, context),
3351
- });
3352
- Object.assign(contents, doc);
3353
- return contents;
3354
- };
3355
- export const de_UpdateExportCommand = async (output, context) => {
3356
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3357
- return de_CommandError(output, context);
3358
- }
3359
- const contents = map({
3360
- $metadata: deserializeMetadata(output),
3361
- });
3362
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3363
- const doc = take(data, {
3364
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3365
- exportId: __expectString,
3366
- exportStatus: __expectString,
3367
- fileFormat: __expectString,
3368
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3369
- resourceSpecification: _json,
3370
- });
3371
- Object.assign(contents, doc);
3372
- return contents;
3373
- };
3374
- export const de_UpdateIntentCommand = async (output, context) => {
3375
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3376
- return de_CommandError(output, context);
3377
- }
3378
- const contents = map({
3379
- $metadata: deserializeMetadata(output),
3380
- });
3381
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3382
- const doc = take(data, {
3383
- botId: __expectString,
3384
- botVersion: __expectString,
3385
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3386
- description: __expectString,
3387
- dialogCodeHook: _json,
3388
- fulfillmentCodeHook: (_) => de_FulfillmentCodeHookSettings(_, context),
3389
- initialResponseSetting: (_) => de_InitialResponseSetting(_, context),
3390
- inputContexts: _json,
3391
- intentClosingSetting: (_) => de_IntentClosingSetting(_, context),
3392
- intentConfirmationSetting: (_) => de_IntentConfirmationSetting(_, context),
3393
- intentId: __expectString,
3394
- intentName: __expectString,
3395
- kendraConfiguration: _json,
3396
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3397
- localeId: __expectString,
3398
- outputContexts: _json,
3399
- parentIntentSignature: __expectString,
3400
- qInConnectIntentConfiguration: _json,
3401
- qnAIntentConfiguration: _json,
3402
- sampleUtterances: _json,
3403
- slotPriorities: _json,
3404
- });
3405
- Object.assign(contents, doc);
3406
- return contents;
3407
- };
3408
- export const de_UpdateResourcePolicyCommand = async (output, context) => {
3409
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3410
- return de_CommandError(output, context);
3411
- }
3412
- const contents = map({
3413
- $metadata: deserializeMetadata(output),
3414
- });
3415
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3416
- const doc = take(data, {
3417
- resourceArn: __expectString,
3418
- revisionId: __expectString,
3419
- });
3420
- Object.assign(contents, doc);
3421
- return contents;
3422
- };
3423
- export const de_UpdateSlotCommand = async (output, context) => {
3424
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3425
- return de_CommandError(output, context);
3426
- }
3427
- const contents = map({
3428
- $metadata: deserializeMetadata(output),
3429
- });
3430
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3431
- const doc = take(data, {
3432
- botId: __expectString,
3433
- botVersion: __expectString,
3434
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3435
- description: __expectString,
3436
- intentId: __expectString,
3437
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3438
- localeId: __expectString,
3439
- multipleValuesSetting: _json,
3440
- obfuscationSetting: _json,
3441
- slotId: __expectString,
3442
- slotName: __expectString,
3443
- slotTypeId: __expectString,
3444
- subSlotSetting: (_) => de_SubSlotSetting(_, context),
3445
- valueElicitationSetting: (_) => de_SlotValueElicitationSetting(_, context),
3446
- });
3447
- Object.assign(contents, doc);
3448
- return contents;
3449
- };
3450
- export const de_UpdateSlotTypeCommand = async (output, context) => {
3451
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3452
- return de_CommandError(output, context);
3453
- }
3454
- const contents = map({
3455
- $metadata: deserializeMetadata(output),
3456
- });
3457
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3458
- const doc = take(data, {
3459
- botId: __expectString,
3460
- botVersion: __expectString,
3461
- compositeSlotTypeSetting: _json,
3462
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3463
- description: __expectString,
3464
- externalSourceSetting: _json,
3465
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3466
- localeId: __expectString,
3467
- parentSlotTypeSignature: __expectString,
3468
- slotTypeId: __expectString,
3469
- slotTypeName: __expectString,
3470
- slotTypeValues: _json,
3471
- valueSelectionSetting: _json,
3472
- });
3473
- Object.assign(contents, doc);
3474
- return contents;
3475
- };
3476
- export const de_UpdateTestSetCommand = async (output, context) => {
3477
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3478
- return de_CommandError(output, context);
3479
- }
3480
- const contents = map({
3481
- $metadata: deserializeMetadata(output),
3482
- });
3483
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3484
- const doc = take(data, {
3485
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3486
- description: __expectString,
3487
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3488
- modality: __expectString,
3489
- numTurns: __expectInt32,
3490
- roleArn: __expectString,
3491
- status: __expectString,
3492
- storageLocation: _json,
3493
- testSetId: __expectString,
3494
- testSetName: __expectString,
3495
- });
3496
- Object.assign(contents, doc);
3497
- return contents;
3498
- };
3499
- const de_CommandError = async (output, context) => {
3500
- const parsedOutput = {
3501
- ...output,
3502
- body: await parseErrorBody(output.body, context),
3503
- };
3504
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3505
- switch (errorCode) {
3506
- case "InternalServerException":
3507
- case "com.amazonaws.lexmodelsv2#InternalServerException":
3508
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3509
- case "ResourceNotFoundException":
3510
- case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
3511
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3512
- case "ServiceQuotaExceededException":
3513
- case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
3514
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3515
- case "ThrottlingException":
3516
- case "com.amazonaws.lexmodelsv2#ThrottlingException":
3517
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3518
- case "ValidationException":
3519
- case "com.amazonaws.lexmodelsv2#ValidationException":
3520
- throw await de_ValidationExceptionRes(parsedOutput, context);
3521
- case "ConflictException":
3522
- case "com.amazonaws.lexmodelsv2#ConflictException":
3523
- throw await de_ConflictExceptionRes(parsedOutput, context);
3524
- case "PreconditionFailedException":
3525
- case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
3526
- throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
3527
- default:
3528
- const parsedBody = parsedOutput.body;
3529
- return throwDefaultError({
3530
- output,
3531
- parsedBody,
3532
- errorCode,
3533
- });
3534
- }
3535
- };
3536
- const throwDefaultError = withBaseException(__BaseException);
3537
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
3538
- const contents = map({});
3539
- const data = parsedOutput.body;
3540
- const doc = take(data, {
3541
- message: __expectString,
3542
- });
3543
- Object.assign(contents, doc);
3544
- const exception = new ConflictException({
3545
- $metadata: deserializeMetadata(parsedOutput),
3546
- ...contents,
3547
- });
3548
- return __decorateServiceException(exception, parsedOutput.body);
3549
- };
3550
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
3551
- const contents = map({});
3552
- const data = parsedOutput.body;
3553
- const doc = take(data, {
3554
- message: __expectString,
3555
- });
3556
- Object.assign(contents, doc);
3557
- const exception = new InternalServerException({
3558
- $metadata: deserializeMetadata(parsedOutput),
3559
- ...contents,
3560
- });
3561
- return __decorateServiceException(exception, parsedOutput.body);
3562
- };
3563
- const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
3564
- const contents = map({});
3565
- const data = parsedOutput.body;
3566
- const doc = take(data, {
3567
- message: __expectString,
3568
- });
3569
- Object.assign(contents, doc);
3570
- const exception = new PreconditionFailedException({
3571
- $metadata: deserializeMetadata(parsedOutput),
3572
- ...contents,
3573
- });
3574
- return __decorateServiceException(exception, parsedOutput.body);
3575
- };
3576
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3577
- const contents = map({});
3578
- const data = parsedOutput.body;
3579
- const doc = take(data, {
3580
- message: __expectString,
3581
- });
3582
- Object.assign(contents, doc);
3583
- const exception = new ResourceNotFoundException({
3584
- $metadata: deserializeMetadata(parsedOutput),
3585
- ...contents,
3586
- });
3587
- return __decorateServiceException(exception, parsedOutput.body);
3588
- };
3589
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
3590
- const contents = map({});
3591
- const data = parsedOutput.body;
3592
- const doc = take(data, {
3593
- message: __expectString,
3594
- });
3595
- Object.assign(contents, doc);
3596
- const exception = new ServiceQuotaExceededException({
3597
- $metadata: deserializeMetadata(parsedOutput),
3598
- ...contents,
3599
- });
3600
- return __decorateServiceException(exception, parsedOutput.body);
3601
- };
3602
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3603
- const contents = map({
3604
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
3605
- });
3606
- const data = parsedOutput.body;
3607
- const doc = take(data, {
3608
- message: __expectString,
3609
- });
3610
- Object.assign(contents, doc);
3611
- const exception = new ThrottlingException({
3612
- $metadata: deserializeMetadata(parsedOutput),
3613
- ...contents,
3614
- });
3615
- return __decorateServiceException(exception, parsedOutput.body);
3616
- };
3617
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
3618
- const contents = map({});
3619
- const data = parsedOutput.body;
3620
- const doc = take(data, {
3621
- message: __expectString,
3622
- });
3623
- Object.assign(contents, doc);
3624
- const exception = new ValidationException({
3625
- $metadata: deserializeMetadata(parsedOutput),
3626
- ...contents,
3627
- });
3628
- return __decorateServiceException(exception, parsedOutput.body);
3629
- };
3630
- const se_BotLocaleImportSpecification = (input, context) => {
3631
- return take(input, {
3632
- botId: [],
3633
- botVersion: [],
3634
- localeId: [],
3635
- nluIntentConfidenceThreshold: __serializeFloat,
3636
- voiceSettings: _json,
3637
- });
3638
- };
3639
- const se_ConditionalBranch = (input, context) => {
3640
- return take(input, {
3641
- condition: _json,
3642
- name: [],
3643
- nextStep: (_) => se_DialogState(_, context),
3644
- response: _json,
3645
- });
3646
- };
3647
- const se_ConditionalBranches = (input, context) => {
3648
- return input
3649
- .filter((e) => e != null)
3650
- .map((entry) => {
3651
- return se_ConditionalBranch(entry, context);
3652
- });
3653
- };
3654
- const se_ConditionalSpecification = (input, context) => {
3655
- return take(input, {
3656
- active: [],
3657
- conditionalBranches: (_) => se_ConditionalBranches(_, context),
3658
- defaultBranch: (_) => se_DefaultConditionalBranch(_, context),
3659
- });
3660
- };
3661
- const se_ConversationLogsDataSource = (input, context) => {
3662
- return take(input, {
3663
- botAliasId: [],
3664
- botId: [],
3665
- filter: (_) => se_ConversationLogsDataSourceFilterBy(_, context),
3666
- localeId: [],
3667
- });
3668
- };
3669
- const se_ConversationLogsDataSourceFilterBy = (input, context) => {
3670
- return take(input, {
3671
- endTime: (_) => _.getTime() / 1_000,
3672
- inputMode: [],
3673
- startTime: (_) => _.getTime() / 1_000,
3674
- });
3675
- };
3676
- const se_DateRangeFilter = (input, context) => {
3677
- return take(input, {
3678
- endDateTime: (_) => _.getTime() / 1_000,
3679
- startDateTime: (_) => _.getTime() / 1_000,
3680
- });
3681
- };
3682
- const se_DefaultConditionalBranch = (input, context) => {
3683
- return take(input, {
3684
- nextStep: (_) => se_DialogState(_, context),
3685
- response: _json,
3686
- });
3687
- };
3688
- const se_DialogCodeHookInvocationSetting = (input, context) => {
3689
- return take(input, {
3690
- active: [],
3691
- enableCodeHookInvocation: [],
3692
- invocationLabel: [],
3693
- postCodeHookSpecification: (_) => se_PostDialogCodeHookInvocationSpecification(_, context),
3694
- });
3695
- };
3696
- const se_DialogState = (input, context) => {
3697
- return take(input, {
3698
- dialogAction: _json,
3699
- intent: (_) => se_IntentOverride(_, context),
3700
- sessionAttributes: _json,
3701
- });
3702
- };
3703
- const se_FulfillmentCodeHookSettings = (input, context) => {
3704
- return take(input, {
3705
- active: [],
3706
- enabled: [],
3707
- fulfillmentUpdatesSpecification: _json,
3708
- postFulfillmentStatusSpecification: (_) => se_PostFulfillmentStatusSpecification(_, context),
3709
- });
3710
- };
3711
- const se_ImportResourceSpecification = (input, context) => {
3712
- return take(input, {
3713
- botImportSpecification: _json,
3714
- botLocaleImportSpecification: (_) => se_BotLocaleImportSpecification(_, context),
3715
- customVocabularyImportSpecification: _json,
3716
- testSetImportResourceSpecification: _json,
3717
- });
3718
- };
3719
- const se_InitialResponseSetting = (input, context) => {
3720
- return take(input, {
3721
- codeHook: (_) => se_DialogCodeHookInvocationSetting(_, context),
3722
- conditional: (_) => se_ConditionalSpecification(_, context),
3723
- initialResponse: _json,
3724
- nextStep: (_) => se_DialogState(_, context),
3725
- });
3726
- };
3727
- const se_IntentClosingSetting = (input, context) => {
3728
- return take(input, {
3729
- active: [],
3730
- closingResponse: _json,
3731
- conditional: (_) => se_ConditionalSpecification(_, context),
3732
- nextStep: (_) => se_DialogState(_, context),
3733
- });
3734
- };
3735
- const se_IntentConfirmationSetting = (input, context) => {
3736
- return take(input, {
3737
- active: [],
3738
- codeHook: (_) => se_DialogCodeHookInvocationSetting(_, context),
3739
- confirmationConditional: (_) => se_ConditionalSpecification(_, context),
3740
- confirmationNextStep: (_) => se_DialogState(_, context),
3741
- confirmationResponse: _json,
3742
- declinationConditional: (_) => se_ConditionalSpecification(_, context),
3743
- declinationNextStep: (_) => se_DialogState(_, context),
3744
- declinationResponse: _json,
3745
- elicitationCodeHook: _json,
3746
- failureConditional: (_) => se_ConditionalSpecification(_, context),
3747
- failureNextStep: (_) => se_DialogState(_, context),
3748
- failureResponse: _json,
3749
- promptSpecification: _json,
3750
- });
3751
- };
3752
- const se_IntentOverride = (input, context) => {
3753
- return take(input, {
3754
- name: [],
3755
- slots: (_) => se_SlotValueOverrideMap(_, context),
3756
- });
3757
- };
3758
- const se_LexTranscriptFilter = (input, context) => {
3759
- return take(input, {
3760
- dateRangeFilter: (_) => se_DateRangeFilter(_, context),
3761
- });
3762
- };
3763
- const se_PostDialogCodeHookInvocationSpecification = (input, context) => {
3764
- return take(input, {
3765
- failureConditional: (_) => se_ConditionalSpecification(_, context),
3766
- failureNextStep: (_) => se_DialogState(_, context),
3767
- failureResponse: _json,
3768
- successConditional: (_) => se_ConditionalSpecification(_, context),
3769
- successNextStep: (_) => se_DialogState(_, context),
3770
- successResponse: _json,
3771
- timeoutConditional: (_) => se_ConditionalSpecification(_, context),
3772
- timeoutNextStep: (_) => se_DialogState(_, context),
3773
- timeoutResponse: _json,
3774
- });
3775
- };
3776
- const se_PostFulfillmentStatusSpecification = (input, context) => {
3777
- return take(input, {
3778
- failureConditional: (_) => se_ConditionalSpecification(_, context),
3779
- failureNextStep: (_) => se_DialogState(_, context),
3780
- failureResponse: _json,
3781
- successConditional: (_) => se_ConditionalSpecification(_, context),
3782
- successNextStep: (_) => se_DialogState(_, context),
3783
- successResponse: _json,
3784
- timeoutConditional: (_) => se_ConditionalSpecification(_, context),
3785
- timeoutNextStep: (_) => se_DialogState(_, context),
3786
- timeoutResponse: _json,
3787
- });
3788
- };
3789
- const se_S3BucketTranscriptSource = (input, context) => {
3790
- return take(input, {
3791
- kmsKeyArn: [],
3792
- pathFormat: _json,
3793
- s3BucketName: [],
3794
- transcriptFilter: (_) => se_TranscriptFilter(_, context),
3795
- transcriptFormat: [],
3796
- });
3797
- };
3798
- const se_SlotCaptureSetting = (input, context) => {
3799
- return take(input, {
3800
- captureConditional: (_) => se_ConditionalSpecification(_, context),
3801
- captureNextStep: (_) => se_DialogState(_, context),
3802
- captureResponse: _json,
3803
- codeHook: (_) => se_DialogCodeHookInvocationSetting(_, context),
3804
- elicitationCodeHook: _json,
3805
- failureConditional: (_) => se_ConditionalSpecification(_, context),
3806
- failureNextStep: (_) => se_DialogState(_, context),
3807
- failureResponse: _json,
3808
- });
3809
- };
3810
- const se_SlotValueElicitationSetting = (input, context) => {
3811
- return take(input, {
3812
- defaultValueSpecification: _json,
3813
- promptSpecification: _json,
3814
- sampleUtterances: _json,
3815
- slotCaptureSetting: (_) => se_SlotCaptureSetting(_, context),
3816
- slotConstraint: [],
3817
- slotResolutionSetting: _json,
3818
- waitAndContinueSpecification: _json,
3819
- });
3820
- };
3821
- const se_SlotValueOverride = (input, context) => {
3822
- return take(input, {
3823
- shape: [],
3824
- value: _json,
3825
- values: (_) => se_SlotValues(_, context),
3826
- });
3827
- };
3828
- const se_SlotValueOverrideMap = (input, context) => {
3829
- return Object.entries(input).reduce((acc, [key, value]) => {
3830
- if (value === null) {
3831
- return acc;
3832
- }
3833
- acc[key] = se_SlotValueOverride(value, context);
3834
- return acc;
3835
- }, {});
3836
- };
3837
- const se_SlotValues = (input, context) => {
3838
- return input
3839
- .filter((e) => e != null)
3840
- .map((entry) => {
3841
- return se_SlotValueOverride(entry, context);
3842
- });
3843
- };
3844
- const se_Specifications = (input, context) => {
3845
- return take(input, {
3846
- slotTypeId: [],
3847
- valueElicitationSetting: _json,
3848
- });
3849
- };
3850
- const se_SubSlotSetting = (input, context) => {
3851
- return take(input, {
3852
- expression: [],
3853
- slotSpecifications: (_) => se_SubSlotSpecificationMap(_, context),
3854
- });
3855
- };
3856
- const se_SubSlotSpecificationMap = (input, context) => {
3857
- return Object.entries(input).reduce((acc, [key, value]) => {
3858
- if (value === null) {
3859
- return acc;
3860
- }
3861
- acc[key] = se_Specifications(value, context);
3862
- return acc;
3863
- }, {});
3864
- };
3865
- const se_TestSetGenerationDataSource = (input, context) => {
3866
- return take(input, {
3867
- conversationLogsDataSource: (_) => se_ConversationLogsDataSource(_, context),
3868
- });
3869
- };
3870
- const se_TranscriptFilter = (input, context) => {
3871
- return take(input, {
3872
- lexTranscriptFilter: (_) => se_LexTranscriptFilter(_, context),
3873
- });
3874
- };
3875
- const se_TranscriptSourceSetting = (input, context) => {
3876
- return take(input, {
3877
- s3BucketTranscriptSource: (_) => se_S3BucketTranscriptSource(_, context),
3878
- });
3879
- };
3880
- const de_AggregatedUtterancesSummary = (output, context) => {
3881
- return take(output, {
3882
- containsDataFromDeletedResources: __expectBoolean,
3883
- hitCount: __expectInt32,
3884
- missedCount: __expectInt32,
3885
- utterance: __expectString,
3886
- utteranceFirstRecordedInAggregationDuration: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3887
- utteranceLastRecordedInAggregationDuration: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3888
- });
3889
- };
3890
- const de_AggregatedUtterancesSummaryList = (output, context) => {
3891
- const retVal = (output || [])
3892
- .filter((e) => e != null)
3893
- .map((entry) => {
3894
- return de_AggregatedUtterancesSummary(entry, context);
3895
- });
3896
- return retVal;
3897
- };
3898
- const de_AnalyticsIntentMetricResult = (output, context) => {
3899
- return take(output, {
3900
- name: __expectString,
3901
- statistic: __expectString,
3902
- value: __limitedParseDouble,
3903
- });
3904
- };
3905
- const de_AnalyticsIntentMetricResults = (output, context) => {
3906
- const retVal = (output || [])
3907
- .filter((e) => e != null)
3908
- .map((entry) => {
3909
- return de_AnalyticsIntentMetricResult(entry, context);
3910
- });
3911
- return retVal;
3912
- };
3913
- const de_AnalyticsIntentResult = (output, context) => {
3914
- return take(output, {
3915
- binKeys: _json,
3916
- groupByKeys: _json,
3917
- metricsResults: (_) => de_AnalyticsIntentMetricResults(_, context),
3918
- });
3919
- };
3920
- const de_AnalyticsIntentResults = (output, context) => {
3921
- const retVal = (output || [])
3922
- .filter((e) => e != null)
3923
- .map((entry) => {
3924
- return de_AnalyticsIntentResult(entry, context);
3925
- });
3926
- return retVal;
3927
- };
3928
- const de_AnalyticsIntentStageMetricResult = (output, context) => {
3929
- return take(output, {
3930
- name: __expectString,
3931
- statistic: __expectString,
3932
- value: __limitedParseDouble,
3933
- });
3934
- };
3935
- const de_AnalyticsIntentStageMetricResults = (output, context) => {
3936
- const retVal = (output || [])
3937
- .filter((e) => e != null)
3938
- .map((entry) => {
3939
- return de_AnalyticsIntentStageMetricResult(entry, context);
3940
- });
3941
- return retVal;
3942
- };
3943
- const de_AnalyticsIntentStageResult = (output, context) => {
3944
- return take(output, {
3945
- binKeys: _json,
3946
- groupByKeys: _json,
3947
- metricsResults: (_) => de_AnalyticsIntentStageMetricResults(_, context),
3948
- });
3949
- };
3950
- const de_AnalyticsIntentStageResults = (output, context) => {
3951
- const retVal = (output || [])
3952
- .filter((e) => e != null)
3953
- .map((entry) => {
3954
- return de_AnalyticsIntentStageResult(entry, context);
3955
- });
3956
- return retVal;
3957
- };
3958
- const de_AnalyticsSessionMetricResult = (output, context) => {
3959
- return take(output, {
3960
- name: __expectString,
3961
- statistic: __expectString,
3962
- value: __limitedParseDouble,
3963
- });
3964
- };
3965
- const de_AnalyticsSessionMetricResults = (output, context) => {
3966
- const retVal = (output || [])
3967
- .filter((e) => e != null)
3968
- .map((entry) => {
3969
- return de_AnalyticsSessionMetricResult(entry, context);
3970
- });
3971
- return retVal;
3972
- };
3973
- const de_AnalyticsSessionResult = (output, context) => {
3974
- return take(output, {
3975
- binKeys: _json,
3976
- groupByKeys: _json,
3977
- metricsResults: (_) => de_AnalyticsSessionMetricResults(_, context),
3978
- });
3979
- };
3980
- const de_AnalyticsSessionResults = (output, context) => {
3981
- const retVal = (output || [])
3982
- .filter((e) => e != null)
3983
- .map((entry) => {
3984
- return de_AnalyticsSessionResult(entry, context);
3985
- });
3986
- return retVal;
3987
- };
3988
- const de_AnalyticsUtteranceMetricResult = (output, context) => {
3989
- return take(output, {
3990
- name: __expectString,
3991
- statistic: __expectString,
3992
- value: __limitedParseDouble,
3993
- });
3994
- };
3995
- const de_AnalyticsUtteranceMetricResults = (output, context) => {
3996
- const retVal = (output || [])
3997
- .filter((e) => e != null)
3998
- .map((entry) => {
3999
- return de_AnalyticsUtteranceMetricResult(entry, context);
4000
- });
4001
- return retVal;
4002
- };
4003
- const de_AnalyticsUtteranceResult = (output, context) => {
4004
- return take(output, {
4005
- attributeResults: _json,
4006
- binKeys: _json,
4007
- groupByKeys: _json,
4008
- metricsResults: (_) => de_AnalyticsUtteranceMetricResults(_, context),
4009
- });
4010
- };
4011
- const de_AnalyticsUtteranceResults = (output, context) => {
4012
- const retVal = (output || [])
4013
- .filter((e) => e != null)
4014
- .map((entry) => {
4015
- return de_AnalyticsUtteranceResult(entry, context);
4016
- });
4017
- return retVal;
4018
- };
4019
- const de_BotAliasHistoryEvent = (output, context) => {
4020
- return take(output, {
4021
- botVersion: __expectString,
4022
- endDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4023
- startDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4024
- });
4025
- };
4026
- const de_BotAliasHistoryEventsList = (output, context) => {
4027
- const retVal = (output || [])
4028
- .filter((e) => e != null)
4029
- .map((entry) => {
4030
- return de_BotAliasHistoryEvent(entry, context);
4031
- });
4032
- return retVal;
4033
- };
4034
- const de_BotAliasReplicaSummary = (output, context) => {
4035
- return take(output, {
4036
- botAliasId: __expectString,
4037
- botAliasReplicationStatus: __expectString,
4038
- botVersion: __expectString,
4039
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4040
- failureReasons: _json,
4041
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4042
- });
4043
- };
4044
- const de_BotAliasReplicaSummaryList = (output, context) => {
4045
- const retVal = (output || [])
4046
- .filter((e) => e != null)
4047
- .map((entry) => {
4048
- return de_BotAliasReplicaSummary(entry, context);
4049
- });
4050
- return retVal;
4051
- };
4052
- const de_BotAliasSummary = (output, context) => {
4053
- return take(output, {
4054
- botAliasId: __expectString,
4055
- botAliasName: __expectString,
4056
- botAliasStatus: __expectString,
4057
- botVersion: __expectString,
4058
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4059
- description: __expectString,
4060
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4061
- });
4062
- };
4063
- const de_BotAliasSummaryList = (output, context) => {
4064
- const retVal = (output || [])
4065
- .filter((e) => e != null)
4066
- .map((entry) => {
4067
- return de_BotAliasSummary(entry, context);
4068
- });
4069
- return retVal;
4070
- };
4071
- const de_BotLocaleHistoryEvent = (output, context) => {
4072
- return take(output, {
4073
- event: __expectString,
4074
- eventDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4075
- });
4076
- };
4077
- const de_BotLocaleHistoryEventsList = (output, context) => {
4078
- const retVal = (output || [])
4079
- .filter((e) => e != null)
4080
- .map((entry) => {
4081
- return de_BotLocaleHistoryEvent(entry, context);
4082
- });
4083
- return retVal;
4084
- };
4085
- const de_BotLocaleImportSpecification = (output, context) => {
4086
- return take(output, {
4087
- botId: __expectString,
4088
- botVersion: __expectString,
4089
- localeId: __expectString,
4090
- nluIntentConfidenceThreshold: __limitedParseDouble,
4091
- voiceSettings: _json,
4092
- });
4093
- };
4094
- const de_BotLocaleSummary = (output, context) => {
4095
- return take(output, {
4096
- botLocaleStatus: __expectString,
4097
- description: __expectString,
4098
- lastBuildSubmittedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4099
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4100
- localeId: __expectString,
4101
- localeName: __expectString,
4102
- });
4103
- };
4104
- const de_BotLocaleSummaryList = (output, context) => {
4105
- const retVal = (output || [])
4106
- .filter((e) => e != null)
4107
- .map((entry) => {
4108
- return de_BotLocaleSummary(entry, context);
4109
- });
4110
- return retVal;
4111
- };
4112
- const de_BotRecommendationSummary = (output, context) => {
4113
- return take(output, {
4114
- botRecommendationId: __expectString,
4115
- botRecommendationStatus: __expectString,
4116
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4117
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4118
- });
4119
- };
4120
- const de_BotRecommendationSummaryList = (output, context) => {
4121
- const retVal = (output || [])
4122
- .filter((e) => e != null)
4123
- .map((entry) => {
4124
- return de_BotRecommendationSummary(entry, context);
4125
- });
4126
- return retVal;
4127
- };
4128
- const de_BotReplicaSummary = (output, context) => {
4129
- return take(output, {
4130
- botReplicaStatus: __expectString,
4131
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4132
- failureReasons: _json,
4133
- replicaRegion: __expectString,
4134
- });
4135
- };
4136
- const de_BotReplicaSummaryList = (output, context) => {
4137
- const retVal = (output || [])
4138
- .filter((e) => e != null)
4139
- .map((entry) => {
4140
- return de_BotReplicaSummary(entry, context);
4141
- });
4142
- return retVal;
4143
- };
4144
- const de_BotSummary = (output, context) => {
4145
- return take(output, {
4146
- botId: __expectString,
4147
- botName: __expectString,
4148
- botStatus: __expectString,
4149
- botType: __expectString,
4150
- description: __expectString,
4151
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4152
- latestBotVersion: __expectString,
4153
- });
4154
- };
4155
- const de_BotSummaryList = (output, context) => {
4156
- const retVal = (output || [])
4157
- .filter((e) => e != null)
4158
- .map((entry) => {
4159
- return de_BotSummary(entry, context);
4160
- });
4161
- return retVal;
4162
- };
4163
- const de_BotVersionReplicaSummary = (output, context) => {
4164
- return take(output, {
4165
- botVersion: __expectString,
4166
- botVersionReplicationStatus: __expectString,
4167
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4168
- failureReasons: _json,
4169
- });
4170
- };
4171
- const de_BotVersionReplicaSummaryList = (output, context) => {
4172
- const retVal = (output || [])
4173
- .filter((e) => e != null)
4174
- .map((entry) => {
4175
- return de_BotVersionReplicaSummary(entry, context);
4176
- });
4177
- return retVal;
4178
- };
4179
- const de_BotVersionSummary = (output, context) => {
4180
- return take(output, {
4181
- botName: __expectString,
4182
- botStatus: __expectString,
4183
- botVersion: __expectString,
4184
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4185
- description: __expectString,
4186
- });
4187
- };
4188
- const de_BotVersionSummaryList = (output, context) => {
4189
- const retVal = (output || [])
4190
- .filter((e) => e != null)
4191
- .map((entry) => {
4192
- return de_BotVersionSummary(entry, context);
4193
- });
4194
- return retVal;
4195
- };
4196
- const de_ConditionalBranch = (output, context) => {
4197
- return take(output, {
4198
- condition: _json,
4199
- name: __expectString,
4200
- nextStep: (_) => de_DialogState(_, context),
4201
- response: _json,
4202
- });
4203
- };
4204
- const de_ConditionalBranches = (output, context) => {
4205
- const retVal = (output || [])
4206
- .filter((e) => e != null)
4207
- .map((entry) => {
4208
- return de_ConditionalBranch(entry, context);
4209
- });
4210
- return retVal;
4211
- };
4212
- const de_ConditionalSpecification = (output, context) => {
4213
- return take(output, {
4214
- active: __expectBoolean,
4215
- conditionalBranches: (_) => de_ConditionalBranches(_, context),
4216
- defaultBranch: (_) => de_DefaultConditionalBranch(_, context),
4217
- });
4218
- };
4219
- const de_ConversationLogsDataSource = (output, context) => {
4220
- return take(output, {
4221
- botAliasId: __expectString,
4222
- botId: __expectString,
4223
- filter: (_) => de_ConversationLogsDataSourceFilterBy(_, context),
4224
- localeId: __expectString,
4225
- });
4226
- };
4227
- const de_ConversationLogsDataSourceFilterBy = (output, context) => {
4228
- return take(output, {
4229
- endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4230
- inputMode: __expectString,
4231
- startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4232
- });
4233
- };
4234
- const de_DateRangeFilter = (output, context) => {
4235
- return take(output, {
4236
- endDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4237
- startDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4238
- });
4239
- };
4240
- const de_DefaultConditionalBranch = (output, context) => {
4241
- return take(output, {
4242
- nextStep: (_) => de_DialogState(_, context),
4243
- response: _json,
4244
- });
4245
- };
4246
- const de_DialogCodeHookInvocationSetting = (output, context) => {
4247
- return take(output, {
4248
- active: __expectBoolean,
4249
- enableCodeHookInvocation: __expectBoolean,
4250
- invocationLabel: __expectString,
4251
- postCodeHookSpecification: (_) => de_PostDialogCodeHookInvocationSpecification(_, context),
4252
- });
4253
- };
4254
- const de_DialogState = (output, context) => {
4255
- return take(output, {
4256
- dialogAction: _json,
4257
- intent: (_) => de_IntentOverride(_, context),
4258
- sessionAttributes: _json,
4259
- });
4260
- };
4261
- const de_ExportSummary = (output, context) => {
4262
- return take(output, {
4263
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4264
- exportId: __expectString,
4265
- exportStatus: __expectString,
4266
- fileFormat: __expectString,
4267
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4268
- resourceSpecification: _json,
4269
- });
4270
- };
4271
- const de_ExportSummaryList = (output, context) => {
4272
- const retVal = (output || [])
4273
- .filter((e) => e != null)
4274
- .map((entry) => {
4275
- return de_ExportSummary(entry, context);
4276
- });
4277
- return retVal;
4278
- };
4279
- const de_FulfillmentCodeHookSettings = (output, context) => {
4280
- return take(output, {
4281
- active: __expectBoolean,
4282
- enabled: __expectBoolean,
4283
- fulfillmentUpdatesSpecification: _json,
4284
- postFulfillmentStatusSpecification: (_) => de_PostFulfillmentStatusSpecification(_, context),
4285
- });
4286
- };
4287
- const de_GenerationSummary = (output, context) => {
4288
- return take(output, {
4289
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4290
- generationId: __expectString,
4291
- generationStatus: __expectString,
4292
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4293
- });
4294
- };
4295
- const de_GenerationSummaryList = (output, context) => {
4296
- const retVal = (output || [])
4297
- .filter((e) => e != null)
4298
- .map((entry) => {
4299
- return de_GenerationSummary(entry, context);
4300
- });
4301
- return retVal;
4302
- };
4303
- const de_ImportResourceSpecification = (output, context) => {
4304
- return take(output, {
4305
- botImportSpecification: _json,
4306
- botLocaleImportSpecification: (_) => de_BotLocaleImportSpecification(_, context),
4307
- customVocabularyImportSpecification: _json,
4308
- testSetImportResourceSpecification: _json,
4309
- });
4310
- };
4311
- const de_ImportSummary = (output, context) => {
4312
- return take(output, {
4313
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4314
- importId: __expectString,
4315
- importStatus: __expectString,
4316
- importedResourceId: __expectString,
4317
- importedResourceName: __expectString,
4318
- importedResourceType: __expectString,
4319
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4320
- mergeStrategy: __expectString,
4321
- });
4322
- };
4323
- const de_ImportSummaryList = (output, context) => {
4324
- const retVal = (output || [])
4325
- .filter((e) => e != null)
4326
- .map((entry) => {
4327
- return de_ImportSummary(entry, context);
4328
- });
4329
- return retVal;
4330
- };
4331
- const de_InitialResponseSetting = (output, context) => {
4332
- return take(output, {
4333
- codeHook: (_) => de_DialogCodeHookInvocationSetting(_, context),
4334
- conditional: (_) => de_ConditionalSpecification(_, context),
4335
- initialResponse: _json,
4336
- nextStep: (_) => de_DialogState(_, context),
4337
- });
4338
- };
4339
- const de_InputSessionStateSpecification = (output, context) => {
4340
- return take(output, {
4341
- activeContexts: _json,
4342
- runtimeHints: (_) => de_RuntimeHints(_, context),
4343
- sessionAttributes: _json,
4344
- });
4345
- };
4346
- const de_IntentClosingSetting = (output, context) => {
4347
- return take(output, {
4348
- active: __expectBoolean,
4349
- closingResponse: _json,
4350
- conditional: (_) => de_ConditionalSpecification(_, context),
4351
- nextStep: (_) => de_DialogState(_, context),
4352
- });
4353
- };
4354
- const de_IntentConfirmationSetting = (output, context) => {
4355
- return take(output, {
4356
- active: __expectBoolean,
4357
- codeHook: (_) => de_DialogCodeHookInvocationSetting(_, context),
4358
- confirmationConditional: (_) => de_ConditionalSpecification(_, context),
4359
- confirmationNextStep: (_) => de_DialogState(_, context),
4360
- confirmationResponse: _json,
4361
- declinationConditional: (_) => de_ConditionalSpecification(_, context),
4362
- declinationNextStep: (_) => de_DialogState(_, context),
4363
- declinationResponse: _json,
4364
- elicitationCodeHook: _json,
4365
- failureConditional: (_) => de_ConditionalSpecification(_, context),
4366
- failureNextStep: (_) => de_DialogState(_, context),
4367
- failureResponse: _json,
4368
- promptSpecification: _json,
4369
- });
4370
- };
4371
- const de_IntentOverride = (output, context) => {
4372
- return take(output, {
4373
- name: __expectString,
4374
- slots: (_) => de_SlotValueOverrideMap(_, context),
4375
- });
4376
- };
4377
- const de_IntentSummary = (output, context) => {
4378
- return take(output, {
4379
- description: __expectString,
4380
- inputContexts: _json,
4381
- intentId: __expectString,
4382
- intentName: __expectString,
4383
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4384
- outputContexts: _json,
4385
- parentIntentSignature: __expectString,
4386
- });
4387
- };
4388
- const de_IntentSummaryList = (output, context) => {
4389
- const retVal = (output || [])
4390
- .filter((e) => e != null)
4391
- .map((entry) => {
4392
- return de_IntentSummary(entry, context);
4393
- });
4394
- return retVal;
4395
- };
4396
- const de_LexTranscriptFilter = (output, context) => {
4397
- return take(output, {
4398
- dateRangeFilter: (_) => de_DateRangeFilter(_, context),
4399
- });
4400
- };
4401
- const de_PostDialogCodeHookInvocationSpecification = (output, context) => {
4402
- return take(output, {
4403
- failureConditional: (_) => de_ConditionalSpecification(_, context),
4404
- failureNextStep: (_) => de_DialogState(_, context),
4405
- failureResponse: _json,
4406
- successConditional: (_) => de_ConditionalSpecification(_, context),
4407
- successNextStep: (_) => de_DialogState(_, context),
4408
- successResponse: _json,
4409
- timeoutConditional: (_) => de_ConditionalSpecification(_, context),
4410
- timeoutNextStep: (_) => de_DialogState(_, context),
4411
- timeoutResponse: _json,
4412
- });
4413
- };
4414
- const de_PostFulfillmentStatusSpecification = (output, context) => {
4415
- return take(output, {
4416
- failureConditional: (_) => de_ConditionalSpecification(_, context),
4417
- failureNextStep: (_) => de_DialogState(_, context),
4418
- failureResponse: _json,
4419
- successConditional: (_) => de_ConditionalSpecification(_, context),
4420
- successNextStep: (_) => de_DialogState(_, context),
4421
- successResponse: _json,
4422
- timeoutConditional: (_) => de_ConditionalSpecification(_, context),
4423
- timeoutNextStep: (_) => de_DialogState(_, context),
4424
- timeoutResponse: _json,
4425
- });
4426
- };
4427
- const de_RuntimeHintDetails = (output, context) => {
4428
- return take(output, {
4429
- runtimeHintValues: _json,
4430
- subSlotHints: (_) => de_SlotHintsSlotMap(_, context),
4431
- });
4432
- };
4433
- const de_RuntimeHints = (output, context) => {
4434
- return take(output, {
4435
- slotHints: (_) => de_SlotHintsIntentMap(_, context),
4436
- });
4437
- };
4438
- const de_S3BucketTranscriptSource = (output, context) => {
4439
- return take(output, {
4440
- kmsKeyArn: __expectString,
4441
- pathFormat: _json,
4442
- s3BucketName: __expectString,
4443
- transcriptFilter: (_) => de_TranscriptFilter(_, context),
4444
- transcriptFormat: __expectString,
4445
- });
4446
- };
4447
- const de_SessionSpecification = (output, context) => {
4448
- return take(output, {
4449
- botAliasId: __expectString,
4450
- botVersion: __expectString,
4451
- channel: __expectString,
4452
- conversationDurationSeconds: __expectLong,
4453
- conversationEndState: __expectString,
4454
- conversationEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4455
- conversationStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4456
- invokedIntentSamples: _json,
4457
- localeId: __expectString,
4458
- mode: __expectString,
4459
- numberOfTurns: __expectLong,
4460
- originatingRequestId: __expectString,
4461
- sessionId: __expectString,
4462
- });
4463
- };
4464
- const de_SessionSpecifications = (output, context) => {
4465
- const retVal = (output || [])
4466
- .filter((e) => e != null)
4467
- .map((entry) => {
4468
- return de_SessionSpecification(entry, context);
4469
- });
4470
- return retVal;
4471
- };
4472
- const de_SlotCaptureSetting = (output, context) => {
4473
- return take(output, {
4474
- captureConditional: (_) => de_ConditionalSpecification(_, context),
4475
- captureNextStep: (_) => de_DialogState(_, context),
4476
- captureResponse: _json,
4477
- codeHook: (_) => de_DialogCodeHookInvocationSetting(_, context),
4478
- elicitationCodeHook: _json,
4479
- failureConditional: (_) => de_ConditionalSpecification(_, context),
4480
- failureNextStep: (_) => de_DialogState(_, context),
4481
- failureResponse: _json,
4482
- });
4483
- };
4484
- const de_SlotHintsIntentMap = (output, context) => {
4485
- return Object.entries(output).reduce((acc, [key, value]) => {
4486
- if (value === null) {
4487
- return acc;
4488
- }
4489
- acc[key] = de_SlotHintsSlotMap(value, context);
4490
- return acc;
4491
- }, {});
4492
- };
4493
- const de_SlotHintsSlotMap = (output, context) => {
4494
- return Object.entries(output).reduce((acc, [key, value]) => {
4495
- if (value === null) {
4496
- return acc;
4497
- }
4498
- acc[key] = de_RuntimeHintDetails(value, context);
4499
- return acc;
4500
- }, {});
4501
- };
4502
- const de_SlotSummary = (output, context) => {
4503
- return take(output, {
4504
- description: __expectString,
4505
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4506
- slotConstraint: __expectString,
4507
- slotId: __expectString,
4508
- slotName: __expectString,
4509
- slotTypeId: __expectString,
4510
- valueElicitationPromptSpecification: _json,
4511
- });
4512
- };
4513
- const de_SlotSummaryList = (output, context) => {
4514
- const retVal = (output || [])
4515
- .filter((e) => e != null)
4516
- .map((entry) => {
4517
- return de_SlotSummary(entry, context);
4518
- });
4519
- return retVal;
4520
- };
4521
- const de_SlotTypeSummary = (output, context) => {
4522
- return take(output, {
4523
- description: __expectString,
4524
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4525
- parentSlotTypeSignature: __expectString,
4526
- slotTypeCategory: __expectString,
4527
- slotTypeId: __expectString,
4528
- slotTypeName: __expectString,
4529
- });
4530
- };
4531
- const de_SlotTypeSummaryList = (output, context) => {
4532
- const retVal = (output || [])
4533
- .filter((e) => e != null)
4534
- .map((entry) => {
4535
- return de_SlotTypeSummary(entry, context);
4536
- });
4537
- return retVal;
4538
- };
4539
- const de_SlotValueElicitationSetting = (output, context) => {
4540
- return take(output, {
4541
- defaultValueSpecification: _json,
4542
- promptSpecification: _json,
4543
- sampleUtterances: _json,
4544
- slotCaptureSetting: (_) => de_SlotCaptureSetting(_, context),
4545
- slotConstraint: __expectString,
4546
- slotResolutionSetting: _json,
4547
- waitAndContinueSpecification: _json,
4548
- });
4549
- };
4550
- const de_SlotValueOverride = (output, context) => {
4551
- return take(output, {
4552
- shape: __expectString,
4553
- value: _json,
4554
- values: (_) => de_SlotValues(_, context),
4555
- });
4556
- };
4557
- const de_SlotValueOverrideMap = (output, context) => {
4558
- return Object.entries(output).reduce((acc, [key, value]) => {
4559
- if (value === null) {
4560
- return acc;
4561
- }
4562
- acc[key] = de_SlotValueOverride(value, context);
4563
- return acc;
4564
- }, {});
4565
- };
4566
- const de_SlotValues = (output, context) => {
4567
- const retVal = (output || [])
4568
- .filter((e) => e != null)
4569
- .map((entry) => {
4570
- return de_SlotValueOverride(entry, context);
4571
- });
4572
- return retVal;
4573
- };
4574
- const de_Specifications = (output, context) => {
4575
- return take(output, {
4576
- slotTypeId: __expectString,
4577
- valueElicitationSetting: _json,
4578
- });
4579
- };
4580
- const de_SubSlotSetting = (output, context) => {
4581
- return take(output, {
4582
- expression: __expectString,
4583
- slotSpecifications: (_) => de_SubSlotSpecificationMap(_, context),
4584
- });
4585
- };
4586
- const de_SubSlotSpecificationMap = (output, context) => {
4587
- return Object.entries(output).reduce((acc, [key, value]) => {
4588
- if (value === null) {
4589
- return acc;
4590
- }
4591
- acc[key] = de_Specifications(value, context);
4592
- return acc;
4593
- }, {});
4594
- };
4595
- const de_TestExecutionResultItems = (output, context) => {
4596
- return take(output, {
4597
- conversationLevelTestResults: _json,
4598
- intentClassificationTestResults: _json,
4599
- intentLevelSlotResolutionTestResults: _json,
4600
- overallTestResults: _json,
4601
- utteranceLevelTestResults: (_) => de_UtteranceLevelTestResults(_, context),
4602
- });
4603
- };
4604
- const de_TestExecutionSummary = (output, context) => {
4605
- return take(output, {
4606
- apiMode: __expectString,
4607
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4608
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4609
- target: _json,
4610
- testExecutionId: __expectString,
4611
- testExecutionModality: __expectString,
4612
- testExecutionStatus: __expectString,
4613
- testSetId: __expectString,
4614
- testSetName: __expectString,
4615
- });
4616
- };
4617
- const de_TestExecutionSummaryList = (output, context) => {
4618
- const retVal = (output || [])
4619
- .filter((e) => e != null)
4620
- .map((entry) => {
4621
- return de_TestExecutionSummary(entry, context);
4622
- });
4623
- return retVal;
4624
- };
4625
- const de_TestSetGenerationDataSource = (output, context) => {
4626
- return take(output, {
4627
- conversationLogsDataSource: (_) => de_ConversationLogsDataSource(_, context),
4628
- });
4629
- };
4630
- const de_TestSetSummary = (output, context) => {
4631
- return take(output, {
4632
- creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4633
- description: __expectString,
4634
- lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4635
- modality: __expectString,
4636
- numTurns: __expectInt32,
4637
- roleArn: __expectString,
4638
- status: __expectString,
4639
- storageLocation: _json,
4640
- testSetId: __expectString,
4641
- testSetName: __expectString,
4642
- });
4643
- };
4644
- const de_TestSetSummaryList = (output, context) => {
4645
- const retVal = (output || [])
4646
- .filter((e) => e != null)
4647
- .map((entry) => {
4648
- return de_TestSetSummary(entry, context);
4649
- });
4650
- return retVal;
4651
- };
4652
- const de_TestSetTurnRecord = (output, context) => {
4653
- return take(output, {
4654
- conversationId: __expectString,
4655
- recordNumber: __expectLong,
4656
- turnNumber: __expectInt32,
4657
- turnSpecification: (_) => de_TurnSpecification(_, context),
4658
- });
4659
- };
4660
- const de_TestSetTurnRecordList = (output, context) => {
4661
- const retVal = (output || [])
4662
- .filter((e) => e != null)
4663
- .map((entry) => {
4664
- return de_TestSetTurnRecord(entry, context);
4665
- });
4666
- return retVal;
4667
- };
4668
- const de_TestSetTurnResult = (output, context) => {
4669
- return take(output, {
4670
- agent: _json,
4671
- user: (_) => de_UserTurnResult(_, context),
4672
- });
4673
- };
4674
- const de_TranscriptFilter = (output, context) => {
4675
- return take(output, {
4676
- lexTranscriptFilter: (_) => de_LexTranscriptFilter(_, context),
4677
- });
4678
- };
4679
- const de_TranscriptSourceSetting = (output, context) => {
4680
- return take(output, {
4681
- s3BucketTranscriptSource: (_) => de_S3BucketTranscriptSource(_, context),
4682
- });
4683
- };
4684
- const de_TurnSpecification = (output, context) => {
4685
- return take(output, {
4686
- agentTurn: _json,
4687
- userTurn: (_) => de_UserTurnSpecification(_, context),
4688
- });
4689
- };
4690
- const de_UserTurnInputSpecification = (output, context) => {
4691
- return take(output, {
4692
- requestAttributes: _json,
4693
- sessionState: (_) => de_InputSessionStateSpecification(_, context),
4694
- utteranceInput: _json,
4695
- });
4696
- };
4697
- const de_UserTurnIntentOutput = (output, context) => {
4698
- return take(output, {
4699
- name: __expectString,
4700
- slots: (_) => de_UserTurnSlotOutputMap(_, context),
4701
- });
4702
- };
4703
- const de_UserTurnOutputSpecification = (output, context) => {
4704
- return take(output, {
4705
- activeContexts: _json,
4706
- intent: (_) => de_UserTurnIntentOutput(_, context),
4707
- transcript: __expectString,
4708
- });
4709
- };
4710
- const de_UserTurnResult = (output, context) => {
4711
- return take(output, {
4712
- actualOutput: (_) => de_UserTurnOutputSpecification(_, context),
4713
- conversationLevelResult: _json,
4714
- endToEndResult: __expectString,
4715
- errorDetails: _json,
4716
- expectedOutput: (_) => de_UserTurnOutputSpecification(_, context),
4717
- input: (_) => de_UserTurnInputSpecification(_, context),
4718
- intentMatchResult: __expectString,
4719
- slotMatchResult: __expectString,
4720
- speechTranscriptionResult: __expectString,
4721
- });
4722
- };
4723
- const de_UserTurnSlotOutput = (output, context) => {
4724
- return take(output, {
4725
- subSlots: (_) => de_UserTurnSlotOutputMap(_, context),
4726
- value: __expectString,
4727
- values: (_) => de_UserTurnSlotOutputList(_, context),
4728
- });
4729
- };
4730
- const de_UserTurnSlotOutputList = (output, context) => {
4731
- const retVal = (output || [])
4732
- .filter((e) => e != null)
4733
- .map((entry) => {
4734
- return de_UserTurnSlotOutput(entry, context);
4735
- });
4736
- return retVal;
4737
- };
4738
- const de_UserTurnSlotOutputMap = (output, context) => {
4739
- return Object.entries(output).reduce((acc, [key, value]) => {
4740
- if (value === null) {
4741
- return acc;
4742
- }
4743
- acc[key] = de_UserTurnSlotOutput(value, context);
4744
- return acc;
4745
- }, {});
4746
- };
4747
- const de_UserTurnSpecification = (output, context) => {
4748
- return take(output, {
4749
- expected: (_) => de_UserTurnOutputSpecification(_, context),
4750
- input: (_) => de_UserTurnInputSpecification(_, context),
4751
- });
4752
- };
4753
- const de_UtteranceLevelTestResultItem = (output, context) => {
4754
- return take(output, {
4755
- conversationId: __expectString,
4756
- recordNumber: __expectLong,
4757
- turnResult: (_) => de_TestSetTurnResult(_, context),
4758
- });
4759
- };
4760
- const de_UtteranceLevelTestResultItemList = (output, context) => {
4761
- const retVal = (output || [])
4762
- .filter((e) => e != null)
4763
- .map((entry) => {
4764
- return de_UtteranceLevelTestResultItem(entry, context);
4765
- });
4766
- return retVal;
4767
- };
4768
- const de_UtteranceLevelTestResults = (output, context) => {
4769
- return take(output, {
4770
- items: (_) => de_UtteranceLevelTestResultItemList(_, context),
4771
- });
4772
- };
4773
- const de_UtteranceSpecification = (output, context) => {
4774
- return take(output, {
4775
- associatedIntentName: __expectString,
4776
- associatedSlotName: __expectString,
4777
- audioVoiceDurationMillis: __expectLong,
4778
- botAliasId: __expectString,
4779
- botResponseAudioVoiceId: __expectString,
4780
- botResponses: _json,
4781
- botVersion: __expectString,
4782
- channel: __expectString,
4783
- conversationEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4784
- conversationStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4785
- dialogActionType: __expectString,
4786
- inputType: __expectString,
4787
- intentState: __expectString,
4788
- localeId: __expectString,
4789
- mode: __expectString,
4790
- outputType: __expectString,
4791
- sessionId: __expectString,
4792
- slotsFilledInSession: __expectString,
4793
- utterance: __expectString,
4794
- utteranceRequestId: __expectString,
4795
- utteranceTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4796
- utteranceUnderstood: __expectBoolean,
4797
- });
4798
- };
4799
- const de_UtteranceSpecifications = (output, context) => {
4800
- const retVal = (output || [])
4801
- .filter((e) => e != null)
4802
- .map((entry) => {
4803
- return de_UtteranceSpecification(entry, context);
4804
- });
4805
- return retVal;
4806
- };
4807
- const deserializeMetadata = (output) => ({
4808
- httpStatusCode: output.statusCode,
4809
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4810
- extendedRequestId: output.headers["x-amz-id-2"],
4811
- cfId: output.headers["x-amz-cf-id"],
4812
- });
4813
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4814
- const _eRI = "expectedRevisionId";
4815
- const _lI = "localeId";
4816
- const _rAS = "retryAfterSeconds";
4817
- const _ra = "retry-after";
4818
- const _sI = "sessionId";
4819
- const _sRIUC = "skipResourceInUseCheck";
4820
- const _tK = "tagKeys";