@aws-sdk/client-lex-models-v2 3.474.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +591 -1323
- package/dist-es/protocols/Aws_restJson1.js +592 -1324
- package/package.json +5 -4
|
@@ -4,111 +4,79 @@ exports.se_ListAggregatedUtterancesCommand = exports.se_GetTestExecutionArtifact
|
|
|
4
4
|
exports.de_BuildBotLocaleCommand = exports.de_BatchUpdateCustomVocabularyItemCommand = exports.de_BatchDeleteCustomVocabularyItemCommand = exports.de_BatchCreateCustomVocabularyItemCommand = exports.se_UpdateTestSetCommand = exports.se_UpdateSlotTypeCommand = exports.se_UpdateSlotCommand = exports.se_UpdateResourcePolicyCommand = exports.se_UpdateIntentCommand = exports.se_UpdateExportCommand = exports.se_UpdateBotRecommendationCommand = exports.se_UpdateBotLocaleCommand = exports.se_UpdateBotAliasCommand = exports.se_UpdateBotCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopBotRecommendationCommand = exports.se_StartTestSetGenerationCommand = exports.se_StartTestExecutionCommand = exports.se_StartImportCommand = exports.se_StartBotResourceGenerationCommand = exports.se_StartBotRecommendationCommand = exports.se_SearchAssociatedTranscriptsCommand = exports.se_ListUtteranceMetricsCommand = exports.se_ListUtteranceAnalyticsDataCommand = exports.se_ListTestSetsCommand = exports.se_ListTestSetRecordsCommand = exports.se_ListTestExecutionsCommand = exports.se_ListTestExecutionResultItemsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSlotTypesCommand = exports.se_ListSlotsCommand = exports.se_ListSessionMetricsCommand = exports.se_ListSessionAnalyticsDataCommand = exports.se_ListRecommendedIntentsCommand = exports.se_ListIntentStageMetricsCommand = exports.se_ListIntentsCommand = exports.se_ListIntentPathsCommand = exports.se_ListIntentMetricsCommand = exports.se_ListImportsCommand = exports.se_ListExportsCommand = exports.se_ListCustomVocabularyItemsCommand = exports.se_ListBuiltInSlotTypesCommand = exports.se_ListBuiltInIntentsCommand = exports.se_ListBotVersionsCommand = exports.se_ListBotsCommand = exports.se_ListBotResourceGenerationsCommand = exports.se_ListBotRecommendationsCommand = exports.se_ListBotLocalesCommand = exports.se_ListBotAliasesCommand = void 0;
|
|
5
5
|
exports.de_ListBotResourceGenerationsCommand = exports.de_ListBotRecommendationsCommand = exports.de_ListBotLocalesCommand = exports.de_ListBotAliasesCommand = exports.de_ListAggregatedUtterancesCommand = exports.de_GetTestExecutionArtifactsUrlCommand = exports.de_GenerateBotElementCommand = exports.de_DescribeTestSetGenerationCommand = exports.de_DescribeTestSetDiscrepancyReportCommand = exports.de_DescribeTestSetCommand = exports.de_DescribeTestExecutionCommand = exports.de_DescribeSlotTypeCommand = exports.de_DescribeSlotCommand = exports.de_DescribeResourcePolicyCommand = exports.de_DescribeIntentCommand = exports.de_DescribeImportCommand = exports.de_DescribeExportCommand = exports.de_DescribeCustomVocabularyMetadataCommand = exports.de_DescribeBotVersionCommand = exports.de_DescribeBotResourceGenerationCommand = exports.de_DescribeBotRecommendationCommand = exports.de_DescribeBotLocaleCommand = exports.de_DescribeBotAliasCommand = exports.de_DescribeBotCommand = exports.de_DeleteUtterancesCommand = exports.de_DeleteTestSetCommand = exports.de_DeleteSlotTypeCommand = exports.de_DeleteSlotCommand = exports.de_DeleteResourcePolicyStatementCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteIntentCommand = exports.de_DeleteImportCommand = exports.de_DeleteExportCommand = exports.de_DeleteCustomVocabularyCommand = exports.de_DeleteBotVersionCommand = exports.de_DeleteBotLocaleCommand = exports.de_DeleteBotAliasCommand = exports.de_DeleteBotCommand = exports.de_CreateUploadUrlCommand = exports.de_CreateTestSetDiscrepancyReportCommand = exports.de_CreateSlotTypeCommand = exports.de_CreateSlotCommand = exports.de_CreateResourcePolicyStatementCommand = exports.de_CreateResourcePolicyCommand = exports.de_CreateIntentCommand = exports.de_CreateExportCommand = exports.de_CreateBotVersionCommand = exports.de_CreateBotLocaleCommand = exports.de_CreateBotAliasCommand = exports.de_CreateBotCommand = void 0;
|
|
6
6
|
exports.de_UpdateTestSetCommand = exports.de_UpdateSlotTypeCommand = exports.de_UpdateSlotCommand = exports.de_UpdateResourcePolicyCommand = exports.de_UpdateIntentCommand = exports.de_UpdateExportCommand = exports.de_UpdateBotRecommendationCommand = exports.de_UpdateBotLocaleCommand = exports.de_UpdateBotAliasCommand = exports.de_UpdateBotCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBotRecommendationCommand = exports.de_StartTestSetGenerationCommand = exports.de_StartTestExecutionCommand = exports.de_StartImportCommand = exports.de_StartBotResourceGenerationCommand = exports.de_StartBotRecommendationCommand = exports.de_SearchAssociatedTranscriptsCommand = exports.de_ListUtteranceMetricsCommand = exports.de_ListUtteranceAnalyticsDataCommand = exports.de_ListTestSetsCommand = exports.de_ListTestSetRecordsCommand = exports.de_ListTestExecutionsCommand = exports.de_ListTestExecutionResultItemsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSlotTypesCommand = exports.de_ListSlotsCommand = exports.de_ListSessionMetricsCommand = exports.de_ListSessionAnalyticsDataCommand = exports.de_ListRecommendedIntentsCommand = exports.de_ListIntentStageMetricsCommand = exports.de_ListIntentsCommand = exports.de_ListIntentPathsCommand = exports.de_ListIntentMetricsCommand = exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListCustomVocabularyItemsCommand = exports.de_ListBuiltInSlotTypesCommand = exports.de_ListBuiltInIntentsCommand = exports.de_ListBotVersionsCommand = exports.de_ListBotsCommand = void 0;
|
|
7
|
-
const
|
|
7
|
+
const core_1 = require("@smithy/core");
|
|
8
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
9
|
const LexModelsV2ServiceException_1 = require("../models/LexModelsV2ServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const se_BatchCreateCustomVocabularyItemCommand = async (input, context) => {
|
|
12
|
-
const
|
|
12
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
16
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchcreate");
|
|
17
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
18
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
19
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
21
20
|
let body;
|
|
22
21
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
23
22
|
customVocabularyItemList: (_) => (0, smithy_client_1._json)(_),
|
|
24
23
|
}));
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
hostname,
|
|
28
|
-
port,
|
|
29
|
-
method: "PUT",
|
|
30
|
-
headers,
|
|
31
|
-
path: resolvedPath,
|
|
32
|
-
body,
|
|
33
|
-
});
|
|
24
|
+
b.m("PUT").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
34
26
|
};
|
|
35
27
|
exports.se_BatchCreateCustomVocabularyItemCommand = se_BatchCreateCustomVocabularyItemCommand;
|
|
36
28
|
const se_BatchDeleteCustomVocabularyItemCommand = async (input, context) => {
|
|
37
|
-
const
|
|
29
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
38
30
|
const headers = {
|
|
39
31
|
"content-type": "application/json",
|
|
40
32
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
33
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchdelete");
|
|
34
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
35
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
36
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
46
37
|
let body;
|
|
47
38
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
39
|
customVocabularyItemList: (_) => (0, smithy_client_1._json)(_),
|
|
49
40
|
}));
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
hostname,
|
|
53
|
-
port,
|
|
54
|
-
method: "POST",
|
|
55
|
-
headers,
|
|
56
|
-
path: resolvedPath,
|
|
57
|
-
body,
|
|
58
|
-
});
|
|
41
|
+
b.m("POST").h(headers).b(body);
|
|
42
|
+
return b.build();
|
|
59
43
|
};
|
|
60
44
|
exports.se_BatchDeleteCustomVocabularyItemCommand = se_BatchDeleteCustomVocabularyItemCommand;
|
|
61
45
|
const se_BatchUpdateCustomVocabularyItemCommand = async (input, context) => {
|
|
62
|
-
const
|
|
46
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
63
47
|
const headers = {
|
|
64
48
|
"content-type": "application/json",
|
|
65
49
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
50
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchupdate");
|
|
51
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
52
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
53
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
71
54
|
let body;
|
|
72
55
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
73
56
|
customVocabularyItemList: (_) => (0, smithy_client_1._json)(_),
|
|
74
57
|
}));
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
hostname,
|
|
78
|
-
port,
|
|
79
|
-
method: "PUT",
|
|
80
|
-
headers,
|
|
81
|
-
path: resolvedPath,
|
|
82
|
-
body,
|
|
83
|
-
});
|
|
58
|
+
b.m("PUT").h(headers).b(body);
|
|
59
|
+
return b.build();
|
|
84
60
|
};
|
|
85
61
|
exports.se_BatchUpdateCustomVocabularyItemCommand = se_BatchUpdateCustomVocabularyItemCommand;
|
|
86
62
|
const se_BuildBotLocaleCommand = async (input, context) => {
|
|
87
|
-
const
|
|
63
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
88
64
|
const headers = {};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
65
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}");
|
|
66
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
67
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
68
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
94
69
|
let body;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
hostname,
|
|
98
|
-
port,
|
|
99
|
-
method: "POST",
|
|
100
|
-
headers,
|
|
101
|
-
path: resolvedPath,
|
|
102
|
-
body,
|
|
103
|
-
});
|
|
70
|
+
b.m("POST").h(headers).b(body);
|
|
71
|
+
return b.build();
|
|
104
72
|
};
|
|
105
73
|
exports.se_BuildBotLocaleCommand = se_BuildBotLocaleCommand;
|
|
106
74
|
const se_CreateBotCommand = async (input, context) => {
|
|
107
|
-
const
|
|
75
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
108
76
|
const headers = {
|
|
109
77
|
"content-type": "application/json",
|
|
110
78
|
};
|
|
111
|
-
|
|
79
|
+
b.bp("/bots");
|
|
112
80
|
let body;
|
|
113
81
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
114
82
|
botMembers: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -121,24 +89,17 @@ const se_CreateBotCommand = async (input, context) => {
|
|
|
121
89
|
roleArn: [],
|
|
122
90
|
testBotAliasTags: (_) => (0, smithy_client_1._json)(_),
|
|
123
91
|
}));
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
hostname,
|
|
127
|
-
port,
|
|
128
|
-
method: "PUT",
|
|
129
|
-
headers,
|
|
130
|
-
path: resolvedPath,
|
|
131
|
-
body,
|
|
132
|
-
});
|
|
92
|
+
b.m("PUT").h(headers).b(body);
|
|
93
|
+
return b.build();
|
|
133
94
|
};
|
|
134
95
|
exports.se_CreateBotCommand = se_CreateBotCommand;
|
|
135
96
|
const se_CreateBotAliasCommand = async (input, context) => {
|
|
136
|
-
const
|
|
97
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
137
98
|
const headers = {
|
|
138
99
|
"content-type": "application/json",
|
|
139
100
|
};
|
|
140
|
-
|
|
141
|
-
|
|
101
|
+
b.bp("/bots/{botId}/botaliases");
|
|
102
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
142
103
|
let body;
|
|
143
104
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
144
105
|
botAliasLocaleSettings: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -149,26 +110,18 @@ const se_CreateBotAliasCommand = async (input, context) => {
|
|
|
149
110
|
sentimentAnalysisSettings: (_) => (0, smithy_client_1._json)(_),
|
|
150
111
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
151
112
|
}));
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
hostname,
|
|
155
|
-
port,
|
|
156
|
-
method: "PUT",
|
|
157
|
-
headers,
|
|
158
|
-
path: resolvedPath,
|
|
159
|
-
body,
|
|
160
|
-
});
|
|
113
|
+
b.m("PUT").h(headers).b(body);
|
|
114
|
+
return b.build();
|
|
161
115
|
};
|
|
162
116
|
exports.se_CreateBotAliasCommand = se_CreateBotAliasCommand;
|
|
163
117
|
const se_CreateBotLocaleCommand = async (input, context) => {
|
|
164
|
-
const
|
|
118
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
165
119
|
const headers = {
|
|
166
120
|
"content-type": "application/json",
|
|
167
121
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
|
|
122
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales");
|
|
123
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
124
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
172
125
|
let body;
|
|
173
126
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
174
127
|
description: [],
|
|
@@ -177,73 +130,51 @@ const se_CreateBotLocaleCommand = async (input, context) => {
|
|
|
177
130
|
nluIntentConfidenceThreshold: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
178
131
|
voiceSettings: (_) => (0, smithy_client_1._json)(_),
|
|
179
132
|
}));
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
hostname,
|
|
183
|
-
port,
|
|
184
|
-
method: "PUT",
|
|
185
|
-
headers,
|
|
186
|
-
path: resolvedPath,
|
|
187
|
-
body,
|
|
188
|
-
});
|
|
133
|
+
b.m("PUT").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
189
135
|
};
|
|
190
136
|
exports.se_CreateBotLocaleCommand = se_CreateBotLocaleCommand;
|
|
191
137
|
const se_CreateBotVersionCommand = async (input, context) => {
|
|
192
|
-
const
|
|
138
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
193
139
|
const headers = {
|
|
194
140
|
"content-type": "application/json",
|
|
195
141
|
};
|
|
196
|
-
|
|
197
|
-
|
|
142
|
+
b.bp("/bots/{botId}/botversions");
|
|
143
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
198
144
|
let body;
|
|
199
145
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
200
146
|
botVersionLocaleSpecification: (_) => (0, smithy_client_1._json)(_),
|
|
201
147
|
description: [],
|
|
202
148
|
}));
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
hostname,
|
|
206
|
-
port,
|
|
207
|
-
method: "PUT",
|
|
208
|
-
headers,
|
|
209
|
-
path: resolvedPath,
|
|
210
|
-
body,
|
|
211
|
-
});
|
|
149
|
+
b.m("PUT").h(headers).b(body);
|
|
150
|
+
return b.build();
|
|
212
151
|
};
|
|
213
152
|
exports.se_CreateBotVersionCommand = se_CreateBotVersionCommand;
|
|
214
153
|
const se_CreateExportCommand = async (input, context) => {
|
|
215
|
-
const
|
|
154
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
216
155
|
const headers = {
|
|
217
156
|
"content-type": "application/json",
|
|
218
157
|
};
|
|
219
|
-
|
|
158
|
+
b.bp("/exports");
|
|
220
159
|
let body;
|
|
221
160
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
222
161
|
fileFormat: [],
|
|
223
162
|
filePassword: [],
|
|
224
163
|
resourceSpecification: (_) => (0, smithy_client_1._json)(_),
|
|
225
164
|
}));
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
hostname,
|
|
229
|
-
port,
|
|
230
|
-
method: "PUT",
|
|
231
|
-
headers,
|
|
232
|
-
path: resolvedPath,
|
|
233
|
-
body,
|
|
234
|
-
});
|
|
165
|
+
b.m("PUT").h(headers).b(body);
|
|
166
|
+
return b.build();
|
|
235
167
|
};
|
|
236
168
|
exports.se_CreateExportCommand = se_CreateExportCommand;
|
|
237
169
|
const se_CreateIntentCommand = async (input, context) => {
|
|
238
|
-
const
|
|
170
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
171
|
const headers = {
|
|
240
172
|
"content-type": "application/json",
|
|
241
173
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
174
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents");
|
|
175
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
176
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
177
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
247
178
|
let body;
|
|
248
179
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
249
180
|
description: [],
|
|
@@ -259,48 +190,34 @@ const se_CreateIntentCommand = async (input, context) => {
|
|
|
259
190
|
parentIntentSignature: [],
|
|
260
191
|
sampleUtterances: (_) => (0, smithy_client_1._json)(_),
|
|
261
192
|
}));
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
hostname,
|
|
265
|
-
port,
|
|
266
|
-
method: "PUT",
|
|
267
|
-
headers,
|
|
268
|
-
path: resolvedPath,
|
|
269
|
-
body,
|
|
270
|
-
});
|
|
193
|
+
b.m("PUT").h(headers).b(body);
|
|
194
|
+
return b.build();
|
|
271
195
|
};
|
|
272
196
|
exports.se_CreateIntentCommand = se_CreateIntentCommand;
|
|
273
197
|
const se_CreateResourcePolicyCommand = async (input, context) => {
|
|
274
|
-
const
|
|
198
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
275
199
|
const headers = {
|
|
276
200
|
"content-type": "application/json",
|
|
277
201
|
};
|
|
278
|
-
|
|
279
|
-
|
|
202
|
+
b.bp("/policy/{resourceArn}");
|
|
203
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
280
204
|
let body;
|
|
281
205
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
282
206
|
policy: [],
|
|
283
207
|
}));
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
hostname,
|
|
287
|
-
port,
|
|
288
|
-
method: "POST",
|
|
289
|
-
headers,
|
|
290
|
-
path: resolvedPath,
|
|
291
|
-
body,
|
|
292
|
-
});
|
|
208
|
+
b.m("POST").h(headers).b(body);
|
|
209
|
+
return b.build();
|
|
293
210
|
};
|
|
294
211
|
exports.se_CreateResourcePolicyCommand = se_CreateResourcePolicyCommand;
|
|
295
212
|
const se_CreateResourcePolicyStatementCommand = async (input, context) => {
|
|
296
|
-
const
|
|
213
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
297
214
|
const headers = {
|
|
298
215
|
"content-type": "application/json",
|
|
299
216
|
};
|
|
300
|
-
|
|
301
|
-
|
|
217
|
+
b.bp("/policy/{resourceArn}/statements");
|
|
218
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
302
219
|
const query = (0, smithy_client_1.map)({
|
|
303
|
-
|
|
220
|
+
[_eRI]: [, input[_eRI]],
|
|
304
221
|
});
|
|
305
222
|
let body;
|
|
306
223
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -310,29 +227,20 @@ const se_CreateResourcePolicyStatementCommand = async (input, context) => {
|
|
|
310
227
|
principal: (_) => (0, smithy_client_1._json)(_),
|
|
311
228
|
statementId: [],
|
|
312
229
|
}));
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
hostname,
|
|
316
|
-
port,
|
|
317
|
-
method: "POST",
|
|
318
|
-
headers,
|
|
319
|
-
path: resolvedPath,
|
|
320
|
-
query,
|
|
321
|
-
body,
|
|
322
|
-
});
|
|
230
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
231
|
+
return b.build();
|
|
323
232
|
};
|
|
324
233
|
exports.se_CreateResourcePolicyStatementCommand = se_CreateResourcePolicyStatementCommand;
|
|
325
234
|
const se_CreateSlotCommand = async (input, context) => {
|
|
326
|
-
const
|
|
235
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
327
236
|
const headers = {
|
|
328
237
|
"content-type": "application/json",
|
|
329
238
|
};
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "intentId", () => input.intentId, "{intentId}", false);
|
|
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);
|
|
336
244
|
let body;
|
|
337
245
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
338
246
|
description: [],
|
|
@@ -343,27 +251,19 @@ const se_CreateSlotCommand = async (input, context) => {
|
|
|
343
251
|
subSlotSetting: (_) => se_SubSlotSetting(_, context),
|
|
344
252
|
valueElicitationSetting: (_) => se_SlotValueElicitationSetting(_, context),
|
|
345
253
|
}));
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
hostname,
|
|
349
|
-
port,
|
|
350
|
-
method: "PUT",
|
|
351
|
-
headers,
|
|
352
|
-
path: resolvedPath,
|
|
353
|
-
body,
|
|
354
|
-
});
|
|
254
|
+
b.m("PUT").h(headers).b(body);
|
|
255
|
+
return b.build();
|
|
355
256
|
};
|
|
356
257
|
exports.se_CreateSlotCommand = se_CreateSlotCommand;
|
|
357
258
|
const se_CreateSlotTypeCommand = async (input, context) => {
|
|
358
|
-
const
|
|
259
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
359
260
|
const headers = {
|
|
360
261
|
"content-type": "application/json",
|
|
361
262
|
};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
263
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes");
|
|
264
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
265
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
266
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
367
267
|
let body;
|
|
368
268
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
369
269
|
compositeSlotTypeSetting: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -374,729 +274,442 @@ const se_CreateSlotTypeCommand = async (input, context) => {
|
|
|
374
274
|
slotTypeValues: (_) => (0, smithy_client_1._json)(_),
|
|
375
275
|
valueSelectionSetting: (_) => (0, smithy_client_1._json)(_),
|
|
376
276
|
}));
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
hostname,
|
|
380
|
-
port,
|
|
381
|
-
method: "PUT",
|
|
382
|
-
headers,
|
|
383
|
-
path: resolvedPath,
|
|
384
|
-
body,
|
|
385
|
-
});
|
|
277
|
+
b.m("PUT").h(headers).b(body);
|
|
278
|
+
return b.build();
|
|
386
279
|
};
|
|
387
280
|
exports.se_CreateSlotTypeCommand = se_CreateSlotTypeCommand;
|
|
388
281
|
const se_CreateTestSetDiscrepancyReportCommand = async (input, context) => {
|
|
389
|
-
const
|
|
282
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
390
283
|
const headers = {
|
|
391
284
|
"content-type": "application/json",
|
|
392
285
|
};
|
|
393
|
-
|
|
394
|
-
|
|
286
|
+
b.bp("/testsets/{testSetId}/testsetdiscrepancy");
|
|
287
|
+
b.p("testSetId", () => input.testSetId, "{testSetId}", false);
|
|
395
288
|
let body;
|
|
396
289
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
397
290
|
target: (_) => (0, smithy_client_1._json)(_),
|
|
398
291
|
}));
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
hostname,
|
|
402
|
-
port,
|
|
403
|
-
method: "POST",
|
|
404
|
-
headers,
|
|
405
|
-
path: resolvedPath,
|
|
406
|
-
body,
|
|
407
|
-
});
|
|
292
|
+
b.m("POST").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
408
294
|
};
|
|
409
295
|
exports.se_CreateTestSetDiscrepancyReportCommand = se_CreateTestSetDiscrepancyReportCommand;
|
|
410
296
|
const se_CreateUploadUrlCommand = async (input, context) => {
|
|
411
|
-
const
|
|
297
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
412
298
|
const headers = {
|
|
413
299
|
"content-type": "application/json",
|
|
414
300
|
};
|
|
415
|
-
|
|
301
|
+
b.bp("/createuploadurl");
|
|
416
302
|
let body;
|
|
417
303
|
body = "";
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
hostname,
|
|
421
|
-
port,
|
|
422
|
-
method: "POST",
|
|
423
|
-
headers,
|
|
424
|
-
path: resolvedPath,
|
|
425
|
-
body,
|
|
426
|
-
});
|
|
304
|
+
b.m("POST").h(headers).b(body);
|
|
305
|
+
return b.build();
|
|
427
306
|
};
|
|
428
307
|
exports.se_CreateUploadUrlCommand = se_CreateUploadUrlCommand;
|
|
429
308
|
const se_DeleteBotCommand = async (input, context) => {
|
|
430
|
-
const
|
|
309
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
431
310
|
const headers = {};
|
|
432
|
-
|
|
433
|
-
|
|
311
|
+
b.bp("/bots/{botId}");
|
|
312
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
434
313
|
const query = (0, smithy_client_1.map)({
|
|
435
|
-
|
|
436
|
-
() => input.skipResourceInUseCheck !== void 0,
|
|
437
|
-
() => input.skipResourceInUseCheck.toString(),
|
|
438
|
-
],
|
|
314
|
+
[_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
|
|
439
315
|
});
|
|
440
316
|
let body;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
hostname,
|
|
444
|
-
port,
|
|
445
|
-
method: "DELETE",
|
|
446
|
-
headers,
|
|
447
|
-
path: resolvedPath,
|
|
448
|
-
query,
|
|
449
|
-
body,
|
|
450
|
-
});
|
|
317
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
318
|
+
return b.build();
|
|
451
319
|
};
|
|
452
320
|
exports.se_DeleteBotCommand = se_DeleteBotCommand;
|
|
453
321
|
const se_DeleteBotAliasCommand = async (input, context) => {
|
|
454
|
-
const
|
|
322
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
455
323
|
const headers = {};
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
324
|
+
b.bp("/bots/{botId}/botaliases/{botAliasId}");
|
|
325
|
+
b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
|
|
326
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
459
327
|
const query = (0, smithy_client_1.map)({
|
|
460
|
-
|
|
461
|
-
() => input.skipResourceInUseCheck !== void 0,
|
|
462
|
-
() => input.skipResourceInUseCheck.toString(),
|
|
463
|
-
],
|
|
328
|
+
[_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
|
|
464
329
|
});
|
|
465
330
|
let body;
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
hostname,
|
|
469
|
-
port,
|
|
470
|
-
method: "DELETE",
|
|
471
|
-
headers,
|
|
472
|
-
path: resolvedPath,
|
|
473
|
-
query,
|
|
474
|
-
body,
|
|
475
|
-
});
|
|
331
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
332
|
+
return b.build();
|
|
476
333
|
};
|
|
477
334
|
exports.se_DeleteBotAliasCommand = se_DeleteBotAliasCommand;
|
|
478
335
|
const se_DeleteBotLocaleCommand = async (input, context) => {
|
|
479
|
-
const
|
|
336
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
480
337
|
const headers = {};
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
338
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}");
|
|
339
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
340
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
341
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
486
342
|
let body;
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
hostname,
|
|
490
|
-
port,
|
|
491
|
-
method: "DELETE",
|
|
492
|
-
headers,
|
|
493
|
-
path: resolvedPath,
|
|
494
|
-
body,
|
|
495
|
-
});
|
|
343
|
+
b.m("DELETE").h(headers).b(body);
|
|
344
|
+
return b.build();
|
|
496
345
|
};
|
|
497
346
|
exports.se_DeleteBotLocaleCommand = se_DeleteBotLocaleCommand;
|
|
498
347
|
const se_DeleteBotVersionCommand = async (input, context) => {
|
|
499
|
-
const
|
|
348
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
500
349
|
const headers = {};
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
350
|
+
b.bp("/bots/{botId}/botversions/{botVersion}");
|
|
351
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
352
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
504
353
|
const query = (0, smithy_client_1.map)({
|
|
505
|
-
|
|
506
|
-
() => input.skipResourceInUseCheck !== void 0,
|
|
507
|
-
() => input.skipResourceInUseCheck.toString(),
|
|
508
|
-
],
|
|
354
|
+
[_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
|
|
509
355
|
});
|
|
510
356
|
let body;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
hostname,
|
|
514
|
-
port,
|
|
515
|
-
method: "DELETE",
|
|
516
|
-
headers,
|
|
517
|
-
path: resolvedPath,
|
|
518
|
-
query,
|
|
519
|
-
body,
|
|
520
|
-
});
|
|
357
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
358
|
+
return b.build();
|
|
521
359
|
};
|
|
522
360
|
exports.se_DeleteBotVersionCommand = se_DeleteBotVersionCommand;
|
|
523
361
|
const se_DeleteCustomVocabularyCommand = async (input, context) => {
|
|
524
|
-
const
|
|
362
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
525
363
|
const headers = {};
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
364
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary");
|
|
365
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
366
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
367
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
531
368
|
let body;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
hostname,
|
|
535
|
-
port,
|
|
536
|
-
method: "DELETE",
|
|
537
|
-
headers,
|
|
538
|
-
path: resolvedPath,
|
|
539
|
-
body,
|
|
540
|
-
});
|
|
369
|
+
b.m("DELETE").h(headers).b(body);
|
|
370
|
+
return b.build();
|
|
541
371
|
};
|
|
542
372
|
exports.se_DeleteCustomVocabularyCommand = se_DeleteCustomVocabularyCommand;
|
|
543
373
|
const se_DeleteExportCommand = async (input, context) => {
|
|
544
|
-
const
|
|
374
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
545
375
|
const headers = {};
|
|
546
|
-
|
|
547
|
-
|
|
376
|
+
b.bp("/exports/{exportId}");
|
|
377
|
+
b.p("exportId", () => input.exportId, "{exportId}", false);
|
|
548
378
|
let body;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
hostname,
|
|
552
|
-
port,
|
|
553
|
-
method: "DELETE",
|
|
554
|
-
headers,
|
|
555
|
-
path: resolvedPath,
|
|
556
|
-
body,
|
|
557
|
-
});
|
|
379
|
+
b.m("DELETE").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
558
381
|
};
|
|
559
382
|
exports.se_DeleteExportCommand = se_DeleteExportCommand;
|
|
560
383
|
const se_DeleteImportCommand = async (input, context) => {
|
|
561
|
-
const
|
|
384
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
562
385
|
const headers = {};
|
|
563
|
-
|
|
564
|
-
|
|
386
|
+
b.bp("/imports/{importId}");
|
|
387
|
+
b.p("importId", () => input.importId, "{importId}", false);
|
|
565
388
|
let body;
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
hostname,
|
|
569
|
-
port,
|
|
570
|
-
method: "DELETE",
|
|
571
|
-
headers,
|
|
572
|
-
path: resolvedPath,
|
|
573
|
-
body,
|
|
574
|
-
});
|
|
389
|
+
b.m("DELETE").h(headers).b(body);
|
|
390
|
+
return b.build();
|
|
575
391
|
};
|
|
576
392
|
exports.se_DeleteImportCommand = se_DeleteImportCommand;
|
|
577
393
|
const se_DeleteIntentCommand = async (input, context) => {
|
|
578
|
-
const
|
|
394
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
579
395
|
const headers = {};
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
396
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}");
|
|
397
|
+
b.p("intentId", () => input.intentId, "{intentId}", false);
|
|
398
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
399
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
400
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
586
401
|
let body;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
hostname,
|
|
590
|
-
port,
|
|
591
|
-
method: "DELETE",
|
|
592
|
-
headers,
|
|
593
|
-
path: resolvedPath,
|
|
594
|
-
body,
|
|
595
|
-
});
|
|
402
|
+
b.m("DELETE").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
596
404
|
};
|
|
597
405
|
exports.se_DeleteIntentCommand = se_DeleteIntentCommand;
|
|
598
406
|
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
599
|
-
const
|
|
407
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
600
408
|
const headers = {};
|
|
601
|
-
|
|
602
|
-
|
|
409
|
+
b.bp("/policy/{resourceArn}");
|
|
410
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
603
411
|
const query = (0, smithy_client_1.map)({
|
|
604
|
-
|
|
412
|
+
[_eRI]: [, input[_eRI]],
|
|
605
413
|
});
|
|
606
414
|
let body;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
hostname,
|
|
610
|
-
port,
|
|
611
|
-
method: "DELETE",
|
|
612
|
-
headers,
|
|
613
|
-
path: resolvedPath,
|
|
614
|
-
query,
|
|
615
|
-
body,
|
|
616
|
-
});
|
|
415
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
416
|
+
return b.build();
|
|
617
417
|
};
|
|
618
418
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
619
419
|
const se_DeleteResourcePolicyStatementCommand = async (input, context) => {
|
|
620
|
-
const
|
|
420
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
621
421
|
const headers = {};
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statementId", () => input.statementId, "{statementId}", false);
|
|
422
|
+
b.bp("/policy/{resourceArn}/statements/{statementId}");
|
|
423
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
424
|
+
b.p("statementId", () => input.statementId, "{statementId}", false);
|
|
626
425
|
const query = (0, smithy_client_1.map)({
|
|
627
|
-
|
|
426
|
+
[_eRI]: [, input[_eRI]],
|
|
628
427
|
});
|
|
629
428
|
let body;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
hostname,
|
|
633
|
-
port,
|
|
634
|
-
method: "DELETE",
|
|
635
|
-
headers,
|
|
636
|
-
path: resolvedPath,
|
|
637
|
-
query,
|
|
638
|
-
body,
|
|
639
|
-
});
|
|
429
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
430
|
+
return b.build();
|
|
640
431
|
};
|
|
641
432
|
exports.se_DeleteResourcePolicyStatementCommand = se_DeleteResourcePolicyStatementCommand;
|
|
642
433
|
const se_DeleteSlotCommand = async (input, context) => {
|
|
643
|
-
const
|
|
434
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
644
435
|
const headers = {};
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "intentId", () => input.intentId, "{intentId}", false);
|
|
436
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}");
|
|
437
|
+
b.p("slotId", () => input.slotId, "{slotId}", false);
|
|
438
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
439
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
440
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
441
|
+
b.p("intentId", () => input.intentId, "{intentId}", false);
|
|
652
442
|
let body;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
hostname,
|
|
656
|
-
port,
|
|
657
|
-
method: "DELETE",
|
|
658
|
-
headers,
|
|
659
|
-
path: resolvedPath,
|
|
660
|
-
body,
|
|
661
|
-
});
|
|
443
|
+
b.m("DELETE").h(headers).b(body);
|
|
444
|
+
return b.build();
|
|
662
445
|
};
|
|
663
446
|
exports.se_DeleteSlotCommand = se_DeleteSlotCommand;
|
|
664
447
|
const se_DeleteSlotTypeCommand = async (input, context) => {
|
|
665
|
-
const
|
|
448
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
666
449
|
const headers = {};
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
450
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}");
|
|
451
|
+
b.p("slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
|
|
452
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
453
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
454
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
673
455
|
const query = (0, smithy_client_1.map)({
|
|
674
|
-
|
|
675
|
-
() => input.skipResourceInUseCheck !== void 0,
|
|
676
|
-
() => input.skipResourceInUseCheck.toString(),
|
|
677
|
-
],
|
|
456
|
+
[_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
|
|
678
457
|
});
|
|
679
458
|
let body;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
hostname,
|
|
683
|
-
port,
|
|
684
|
-
method: "DELETE",
|
|
685
|
-
headers,
|
|
686
|
-
path: resolvedPath,
|
|
687
|
-
query,
|
|
688
|
-
body,
|
|
689
|
-
});
|
|
459
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
460
|
+
return b.build();
|
|
690
461
|
};
|
|
691
462
|
exports.se_DeleteSlotTypeCommand = se_DeleteSlotTypeCommand;
|
|
692
463
|
const se_DeleteTestSetCommand = async (input, context) => {
|
|
693
|
-
const
|
|
464
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
694
465
|
const headers = {};
|
|
695
|
-
|
|
696
|
-
|
|
466
|
+
b.bp("/testsets/{testSetId}");
|
|
467
|
+
b.p("testSetId", () => input.testSetId, "{testSetId}", false);
|
|
697
468
|
let body;
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
hostname,
|
|
701
|
-
port,
|
|
702
|
-
method: "DELETE",
|
|
703
|
-
headers,
|
|
704
|
-
path: resolvedPath,
|
|
705
|
-
body,
|
|
706
|
-
});
|
|
469
|
+
b.m("DELETE").h(headers).b(body);
|
|
470
|
+
return b.build();
|
|
707
471
|
};
|
|
708
472
|
exports.se_DeleteTestSetCommand = se_DeleteTestSetCommand;
|
|
709
473
|
const se_DeleteUtterancesCommand = async (input, context) => {
|
|
710
|
-
const
|
|
474
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
711
475
|
const headers = {};
|
|
712
|
-
|
|
713
|
-
|
|
476
|
+
b.bp("/bots/{botId}/utterances");
|
|
477
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
714
478
|
const query = (0, smithy_client_1.map)({
|
|
715
|
-
|
|
716
|
-
|
|
479
|
+
[_lI]: [, input[_lI]],
|
|
480
|
+
[_sI]: [, input[_sI]],
|
|
717
481
|
});
|
|
718
482
|
let body;
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
hostname,
|
|
722
|
-
port,
|
|
723
|
-
method: "DELETE",
|
|
724
|
-
headers,
|
|
725
|
-
path: resolvedPath,
|
|
726
|
-
query,
|
|
727
|
-
body,
|
|
728
|
-
});
|
|
483
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
484
|
+
return b.build();
|
|
729
485
|
};
|
|
730
486
|
exports.se_DeleteUtterancesCommand = se_DeleteUtterancesCommand;
|
|
731
487
|
const se_DescribeBotCommand = async (input, context) => {
|
|
732
|
-
const
|
|
488
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
733
489
|
const headers = {};
|
|
734
|
-
|
|
735
|
-
|
|
490
|
+
b.bp("/bots/{botId}");
|
|
491
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
736
492
|
let body;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
hostname,
|
|
740
|
-
port,
|
|
741
|
-
method: "GET",
|
|
742
|
-
headers,
|
|
743
|
-
path: resolvedPath,
|
|
744
|
-
body,
|
|
745
|
-
});
|
|
493
|
+
b.m("GET").h(headers).b(body);
|
|
494
|
+
return b.build();
|
|
746
495
|
};
|
|
747
496
|
exports.se_DescribeBotCommand = se_DescribeBotCommand;
|
|
748
497
|
const se_DescribeBotAliasCommand = async (input, context) => {
|
|
749
|
-
const
|
|
498
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
750
499
|
const headers = {};
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
500
|
+
b.bp("/bots/{botId}/botaliases/{botAliasId}");
|
|
501
|
+
b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
|
|
502
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
754
503
|
let body;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
hostname,
|
|
758
|
-
port,
|
|
759
|
-
method: "GET",
|
|
760
|
-
headers,
|
|
761
|
-
path: resolvedPath,
|
|
762
|
-
body,
|
|
763
|
-
});
|
|
504
|
+
b.m("GET").h(headers).b(body);
|
|
505
|
+
return b.build();
|
|
764
506
|
};
|
|
765
507
|
exports.se_DescribeBotAliasCommand = se_DescribeBotAliasCommand;
|
|
766
508
|
const se_DescribeBotLocaleCommand = async (input, context) => {
|
|
767
|
-
const
|
|
509
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
768
510
|
const headers = {};
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
511
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}");
|
|
512
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
513
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
514
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
774
515
|
let body;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
hostname,
|
|
778
|
-
port,
|
|
779
|
-
method: "GET",
|
|
780
|
-
headers,
|
|
781
|
-
path: resolvedPath,
|
|
782
|
-
body,
|
|
783
|
-
});
|
|
516
|
+
b.m("GET").h(headers).b(body);
|
|
517
|
+
return b.build();
|
|
784
518
|
};
|
|
785
519
|
exports.se_DescribeBotLocaleCommand = se_DescribeBotLocaleCommand;
|
|
786
520
|
const se_DescribeBotRecommendationCommand = async (input, context) => {
|
|
787
|
-
const
|
|
521
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
788
522
|
const headers = {};
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
523
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}");
|
|
524
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
525
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
526
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
527
|
+
b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
795
528
|
let body;
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
hostname,
|
|
799
|
-
port,
|
|
800
|
-
method: "GET",
|
|
801
|
-
headers,
|
|
802
|
-
path: resolvedPath,
|
|
803
|
-
body,
|
|
804
|
-
});
|
|
529
|
+
b.m("GET").h(headers).b(body);
|
|
530
|
+
return b.build();
|
|
805
531
|
};
|
|
806
532
|
exports.se_DescribeBotRecommendationCommand = se_DescribeBotRecommendationCommand;
|
|
807
533
|
const se_DescribeBotResourceGenerationCommand = async (input, context) => {
|
|
808
|
-
const
|
|
534
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
809
535
|
const headers = {};
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "generationId", () => input.generationId, "{generationId}", false);
|
|
536
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations/{generationId}");
|
|
537
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
538
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
539
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
540
|
+
b.p("generationId", () => input.generationId, "{generationId}", false);
|
|
816
541
|
let body;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
hostname,
|
|
820
|
-
port,
|
|
821
|
-
method: "GET",
|
|
822
|
-
headers,
|
|
823
|
-
path: resolvedPath,
|
|
824
|
-
body,
|
|
825
|
-
});
|
|
542
|
+
b.m("GET").h(headers).b(body);
|
|
543
|
+
return b.build();
|
|
826
544
|
};
|
|
827
545
|
exports.se_DescribeBotResourceGenerationCommand = se_DescribeBotResourceGenerationCommand;
|
|
828
546
|
const se_DescribeBotVersionCommand = async (input, context) => {
|
|
829
|
-
const
|
|
547
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
830
548
|
const headers = {};
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
549
|
+
b.bp("/bots/{botId}/botversions/{botVersion}");
|
|
550
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
551
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
834
552
|
let body;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
hostname,
|
|
838
|
-
port,
|
|
839
|
-
method: "GET",
|
|
840
|
-
headers,
|
|
841
|
-
path: resolvedPath,
|
|
842
|
-
body,
|
|
843
|
-
});
|
|
553
|
+
b.m("GET").h(headers).b(body);
|
|
554
|
+
return b.build();
|
|
844
555
|
};
|
|
845
556
|
exports.se_DescribeBotVersionCommand = se_DescribeBotVersionCommand;
|
|
846
557
|
const se_DescribeCustomVocabularyMetadataCommand = async (input, context) => {
|
|
847
|
-
const
|
|
558
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
848
559
|
const headers = {};
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
560
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata");
|
|
561
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
562
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
563
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
854
564
|
let body;
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
hostname,
|
|
858
|
-
port,
|
|
859
|
-
method: "GET",
|
|
860
|
-
headers,
|
|
861
|
-
path: resolvedPath,
|
|
862
|
-
body,
|
|
863
|
-
});
|
|
565
|
+
b.m("GET").h(headers).b(body);
|
|
566
|
+
return b.build();
|
|
864
567
|
};
|
|
865
568
|
exports.se_DescribeCustomVocabularyMetadataCommand = se_DescribeCustomVocabularyMetadataCommand;
|
|
866
569
|
const se_DescribeExportCommand = async (input, context) => {
|
|
867
|
-
const
|
|
570
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
868
571
|
const headers = {};
|
|
869
|
-
|
|
870
|
-
|
|
572
|
+
b.bp("/exports/{exportId}");
|
|
573
|
+
b.p("exportId", () => input.exportId, "{exportId}", false);
|
|
871
574
|
let body;
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
hostname,
|
|
875
|
-
port,
|
|
876
|
-
method: "GET",
|
|
877
|
-
headers,
|
|
878
|
-
path: resolvedPath,
|
|
879
|
-
body,
|
|
880
|
-
});
|
|
575
|
+
b.m("GET").h(headers).b(body);
|
|
576
|
+
return b.build();
|
|
881
577
|
};
|
|
882
578
|
exports.se_DescribeExportCommand = se_DescribeExportCommand;
|
|
883
579
|
const se_DescribeImportCommand = async (input, context) => {
|
|
884
|
-
const
|
|
580
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
885
581
|
const headers = {};
|
|
886
|
-
|
|
887
|
-
|
|
582
|
+
b.bp("/imports/{importId}");
|
|
583
|
+
b.p("importId", () => input.importId, "{importId}", false);
|
|
888
584
|
let body;
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
hostname,
|
|
892
|
-
port,
|
|
893
|
-
method: "GET",
|
|
894
|
-
headers,
|
|
895
|
-
path: resolvedPath,
|
|
896
|
-
body,
|
|
897
|
-
});
|
|
585
|
+
b.m("GET").h(headers).b(body);
|
|
586
|
+
return b.build();
|
|
898
587
|
};
|
|
899
588
|
exports.se_DescribeImportCommand = se_DescribeImportCommand;
|
|
900
589
|
const se_DescribeIntentCommand = async (input, context) => {
|
|
901
|
-
const
|
|
590
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
902
591
|
const headers = {};
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
592
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}");
|
|
593
|
+
b.p("intentId", () => input.intentId, "{intentId}", false);
|
|
594
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
595
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
596
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
909
597
|
let body;
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
hostname,
|
|
913
|
-
port,
|
|
914
|
-
method: "GET",
|
|
915
|
-
headers,
|
|
916
|
-
path: resolvedPath,
|
|
917
|
-
body,
|
|
918
|
-
});
|
|
598
|
+
b.m("GET").h(headers).b(body);
|
|
599
|
+
return b.build();
|
|
919
600
|
};
|
|
920
601
|
exports.se_DescribeIntentCommand = se_DescribeIntentCommand;
|
|
921
602
|
const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
922
|
-
const
|
|
603
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
923
604
|
const headers = {};
|
|
924
|
-
|
|
925
|
-
|
|
605
|
+
b.bp("/policy/{resourceArn}");
|
|
606
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
926
607
|
let body;
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
hostname,
|
|
930
|
-
port,
|
|
931
|
-
method: "GET",
|
|
932
|
-
headers,
|
|
933
|
-
path: resolvedPath,
|
|
934
|
-
body,
|
|
935
|
-
});
|
|
608
|
+
b.m("GET").h(headers).b(body);
|
|
609
|
+
return b.build();
|
|
936
610
|
};
|
|
937
611
|
exports.se_DescribeResourcePolicyCommand = se_DescribeResourcePolicyCommand;
|
|
938
612
|
const se_DescribeSlotCommand = async (input, context) => {
|
|
939
|
-
const
|
|
613
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
940
614
|
const headers = {};
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "intentId", () => input.intentId, "{intentId}", false);
|
|
615
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}");
|
|
616
|
+
b.p("slotId", () => input.slotId, "{slotId}", false);
|
|
617
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
618
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
619
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
620
|
+
b.p("intentId", () => input.intentId, "{intentId}", false);
|
|
948
621
|
let body;
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
hostname,
|
|
952
|
-
port,
|
|
953
|
-
method: "GET",
|
|
954
|
-
headers,
|
|
955
|
-
path: resolvedPath,
|
|
956
|
-
body,
|
|
957
|
-
});
|
|
622
|
+
b.m("GET").h(headers).b(body);
|
|
623
|
+
return b.build();
|
|
958
624
|
};
|
|
959
625
|
exports.se_DescribeSlotCommand = se_DescribeSlotCommand;
|
|
960
626
|
const se_DescribeSlotTypeCommand = async (input, context) => {
|
|
961
|
-
const
|
|
627
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
962
628
|
const headers = {};
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
629
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}");
|
|
630
|
+
b.p("slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
|
|
631
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
632
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
633
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
969
634
|
let body;
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
hostname,
|
|
973
|
-
port,
|
|
974
|
-
method: "GET",
|
|
975
|
-
headers,
|
|
976
|
-
path: resolvedPath,
|
|
977
|
-
body,
|
|
978
|
-
});
|
|
635
|
+
b.m("GET").h(headers).b(body);
|
|
636
|
+
return b.build();
|
|
979
637
|
};
|
|
980
638
|
exports.se_DescribeSlotTypeCommand = se_DescribeSlotTypeCommand;
|
|
981
639
|
const se_DescribeTestExecutionCommand = async (input, context) => {
|
|
982
|
-
const
|
|
640
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
983
641
|
const headers = {};
|
|
984
|
-
|
|
985
|
-
|
|
642
|
+
b.bp("/testexecutions/{testExecutionId}");
|
|
643
|
+
b.p("testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
|
|
986
644
|
let body;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
hostname,
|
|
990
|
-
port,
|
|
991
|
-
method: "GET",
|
|
992
|
-
headers,
|
|
993
|
-
path: resolvedPath,
|
|
994
|
-
body,
|
|
995
|
-
});
|
|
645
|
+
b.m("GET").h(headers).b(body);
|
|
646
|
+
return b.build();
|
|
996
647
|
};
|
|
997
648
|
exports.se_DescribeTestExecutionCommand = se_DescribeTestExecutionCommand;
|
|
998
649
|
const se_DescribeTestSetCommand = async (input, context) => {
|
|
999
|
-
const
|
|
650
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1000
651
|
const headers = {};
|
|
1001
|
-
|
|
1002
|
-
|
|
652
|
+
b.bp("/testsets/{testSetId}");
|
|
653
|
+
b.p("testSetId", () => input.testSetId, "{testSetId}", false);
|
|
1003
654
|
let body;
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
hostname,
|
|
1007
|
-
port,
|
|
1008
|
-
method: "GET",
|
|
1009
|
-
headers,
|
|
1010
|
-
path: resolvedPath,
|
|
1011
|
-
body,
|
|
1012
|
-
});
|
|
655
|
+
b.m("GET").h(headers).b(body);
|
|
656
|
+
return b.build();
|
|
1013
657
|
};
|
|
1014
658
|
exports.se_DescribeTestSetCommand = se_DescribeTestSetCommand;
|
|
1015
659
|
const se_DescribeTestSetDiscrepancyReportCommand = async (input, context) => {
|
|
1016
|
-
const
|
|
660
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1017
661
|
const headers = {};
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetDiscrepancyReportId", () => input.testSetDiscrepancyReportId, "{testSetDiscrepancyReportId}", false);
|
|
662
|
+
b.bp("/testsetdiscrepancy/{testSetDiscrepancyReportId}");
|
|
663
|
+
b.p("testSetDiscrepancyReportId", () => input.testSetDiscrepancyReportId, "{testSetDiscrepancyReportId}", false);
|
|
1021
664
|
let body;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
hostname,
|
|
1025
|
-
port,
|
|
1026
|
-
method: "GET",
|
|
1027
|
-
headers,
|
|
1028
|
-
path: resolvedPath,
|
|
1029
|
-
body,
|
|
1030
|
-
});
|
|
665
|
+
b.m("GET").h(headers).b(body);
|
|
666
|
+
return b.build();
|
|
1031
667
|
};
|
|
1032
668
|
exports.se_DescribeTestSetDiscrepancyReportCommand = se_DescribeTestSetDiscrepancyReportCommand;
|
|
1033
669
|
const se_DescribeTestSetGenerationCommand = async (input, context) => {
|
|
1034
|
-
const
|
|
670
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1035
671
|
const headers = {};
|
|
1036
|
-
|
|
1037
|
-
|
|
672
|
+
b.bp("/testsetgenerations/{testSetGenerationId}");
|
|
673
|
+
b.p("testSetGenerationId", () => input.testSetGenerationId, "{testSetGenerationId}", false);
|
|
1038
674
|
let body;
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
hostname,
|
|
1042
|
-
port,
|
|
1043
|
-
method: "GET",
|
|
1044
|
-
headers,
|
|
1045
|
-
path: resolvedPath,
|
|
1046
|
-
body,
|
|
1047
|
-
});
|
|
675
|
+
b.m("GET").h(headers).b(body);
|
|
676
|
+
return b.build();
|
|
1048
677
|
};
|
|
1049
678
|
exports.se_DescribeTestSetGenerationCommand = se_DescribeTestSetGenerationCommand;
|
|
1050
679
|
const se_GenerateBotElementCommand = async (input, context) => {
|
|
1051
|
-
const
|
|
680
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1052
681
|
const headers = {
|
|
1053
682
|
"content-type": "application/json",
|
|
1054
683
|
};
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
684
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate");
|
|
685
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
686
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
687
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1060
688
|
let body;
|
|
1061
689
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1062
690
|
intentId: [],
|
|
1063
691
|
}));
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
hostname,
|
|
1067
|
-
port,
|
|
1068
|
-
method: "POST",
|
|
1069
|
-
headers,
|
|
1070
|
-
path: resolvedPath,
|
|
1071
|
-
body,
|
|
1072
|
-
});
|
|
692
|
+
b.m("POST").h(headers).b(body);
|
|
693
|
+
return b.build();
|
|
1073
694
|
};
|
|
1074
695
|
exports.se_GenerateBotElementCommand = se_GenerateBotElementCommand;
|
|
1075
696
|
const se_GetTestExecutionArtifactsUrlCommand = async (input, context) => {
|
|
1076
|
-
const
|
|
697
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1077
698
|
const headers = {};
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
|
|
699
|
+
b.bp("/testexecutions/{testExecutionId}/artifacturl");
|
|
700
|
+
b.p("testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
|
|
1081
701
|
let body;
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
hostname,
|
|
1085
|
-
port,
|
|
1086
|
-
method: "GET",
|
|
1087
|
-
headers,
|
|
1088
|
-
path: resolvedPath,
|
|
1089
|
-
body,
|
|
1090
|
-
});
|
|
702
|
+
b.m("GET").h(headers).b(body);
|
|
703
|
+
return b.build();
|
|
1091
704
|
};
|
|
1092
705
|
exports.se_GetTestExecutionArtifactsUrlCommand = se_GetTestExecutionArtifactsUrlCommand;
|
|
1093
706
|
const se_ListAggregatedUtterancesCommand = async (input, context) => {
|
|
1094
|
-
const
|
|
707
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1095
708
|
const headers = {
|
|
1096
709
|
"content-type": "application/json",
|
|
1097
710
|
};
|
|
1098
|
-
|
|
1099
|
-
|
|
711
|
+
b.bp("/bots/{botId}/aggregatedutterances");
|
|
712
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1100
713
|
let body;
|
|
1101
714
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1102
715
|
aggregationDuration: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1108,49 +721,34 @@ const se_ListAggregatedUtterancesCommand = async (input, context) => {
|
|
|
1108
721
|
nextToken: [],
|
|
1109
722
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1110
723
|
}));
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
hostname,
|
|
1114
|
-
port,
|
|
1115
|
-
method: "POST",
|
|
1116
|
-
headers,
|
|
1117
|
-
path: resolvedPath,
|
|
1118
|
-
body,
|
|
1119
|
-
});
|
|
724
|
+
b.m("POST").h(headers).b(body);
|
|
725
|
+
return b.build();
|
|
1120
726
|
};
|
|
1121
727
|
exports.se_ListAggregatedUtterancesCommand = se_ListAggregatedUtterancesCommand;
|
|
1122
728
|
const se_ListBotAliasesCommand = async (input, context) => {
|
|
1123
|
-
const
|
|
729
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1124
730
|
const headers = {
|
|
1125
731
|
"content-type": "application/json",
|
|
1126
732
|
};
|
|
1127
|
-
|
|
1128
|
-
|
|
733
|
+
b.bp("/bots/{botId}/botaliases");
|
|
734
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1129
735
|
let body;
|
|
1130
736
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1131
737
|
maxResults: [],
|
|
1132
738
|
nextToken: [],
|
|
1133
739
|
}));
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
hostname,
|
|
1137
|
-
port,
|
|
1138
|
-
method: "POST",
|
|
1139
|
-
headers,
|
|
1140
|
-
path: resolvedPath,
|
|
1141
|
-
body,
|
|
1142
|
-
});
|
|
740
|
+
b.m("POST").h(headers).b(body);
|
|
741
|
+
return b.build();
|
|
1143
742
|
};
|
|
1144
743
|
exports.se_ListBotAliasesCommand = se_ListBotAliasesCommand;
|
|
1145
744
|
const se_ListBotLocalesCommand = async (input, context) => {
|
|
1146
|
-
const
|
|
745
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1147
746
|
const headers = {
|
|
1148
747
|
"content-type": "application/json",
|
|
1149
748
|
};
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
|
|
749
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales");
|
|
750
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
751
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1154
752
|
let body;
|
|
1155
753
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1156
754
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1158,76 +756,53 @@ const se_ListBotLocalesCommand = async (input, context) => {
|
|
|
1158
756
|
nextToken: [],
|
|
1159
757
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1160
758
|
}));
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
hostname,
|
|
1164
|
-
port,
|
|
1165
|
-
method: "POST",
|
|
1166
|
-
headers,
|
|
1167
|
-
path: resolvedPath,
|
|
1168
|
-
body,
|
|
1169
|
-
});
|
|
759
|
+
b.m("POST").h(headers).b(body);
|
|
760
|
+
return b.build();
|
|
1170
761
|
};
|
|
1171
762
|
exports.se_ListBotLocalesCommand = se_ListBotLocalesCommand;
|
|
1172
763
|
const se_ListBotRecommendationsCommand = async (input, context) => {
|
|
1173
|
-
const
|
|
764
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1174
765
|
const headers = {
|
|
1175
766
|
"content-type": "application/json",
|
|
1176
767
|
};
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
768
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations");
|
|
769
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
770
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
771
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1182
772
|
let body;
|
|
1183
773
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1184
774
|
maxResults: [],
|
|
1185
775
|
nextToken: [],
|
|
1186
776
|
}));
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
hostname,
|
|
1190
|
-
port,
|
|
1191
|
-
method: "POST",
|
|
1192
|
-
headers,
|
|
1193
|
-
path: resolvedPath,
|
|
1194
|
-
body,
|
|
1195
|
-
});
|
|
777
|
+
b.m("POST").h(headers).b(body);
|
|
778
|
+
return b.build();
|
|
1196
779
|
};
|
|
1197
780
|
exports.se_ListBotRecommendationsCommand = se_ListBotRecommendationsCommand;
|
|
1198
781
|
const se_ListBotResourceGenerationsCommand = async (input, context) => {
|
|
1199
|
-
const
|
|
782
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1200
783
|
const headers = {
|
|
1201
784
|
"content-type": "application/json",
|
|
1202
785
|
};
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
786
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations");
|
|
787
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
788
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
789
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1208
790
|
let body;
|
|
1209
791
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1210
792
|
maxResults: [],
|
|
1211
793
|
nextToken: [],
|
|
1212
794
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1213
795
|
}));
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
hostname,
|
|
1217
|
-
port,
|
|
1218
|
-
method: "POST",
|
|
1219
|
-
headers,
|
|
1220
|
-
path: resolvedPath,
|
|
1221
|
-
body,
|
|
1222
|
-
});
|
|
796
|
+
b.m("POST").h(headers).b(body);
|
|
797
|
+
return b.build();
|
|
1223
798
|
};
|
|
1224
799
|
exports.se_ListBotResourceGenerationsCommand = se_ListBotResourceGenerationsCommand;
|
|
1225
800
|
const se_ListBotsCommand = async (input, context) => {
|
|
1226
|
-
const
|
|
801
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1227
802
|
const headers = {
|
|
1228
803
|
"content-type": "application/json",
|
|
1229
804
|
};
|
|
1230
|
-
|
|
805
|
+
b.bp("/bots");
|
|
1231
806
|
let body;
|
|
1232
807
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1233
808
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1235,121 +810,85 @@ const se_ListBotsCommand = async (input, context) => {
|
|
|
1235
810
|
nextToken: [],
|
|
1236
811
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1237
812
|
}));
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
hostname,
|
|
1241
|
-
port,
|
|
1242
|
-
method: "POST",
|
|
1243
|
-
headers,
|
|
1244
|
-
path: resolvedPath,
|
|
1245
|
-
body,
|
|
1246
|
-
});
|
|
813
|
+
b.m("POST").h(headers).b(body);
|
|
814
|
+
return b.build();
|
|
1247
815
|
};
|
|
1248
816
|
exports.se_ListBotsCommand = se_ListBotsCommand;
|
|
1249
817
|
const se_ListBotVersionsCommand = async (input, context) => {
|
|
1250
|
-
const
|
|
818
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1251
819
|
const headers = {
|
|
1252
820
|
"content-type": "application/json",
|
|
1253
821
|
};
|
|
1254
|
-
|
|
1255
|
-
|
|
822
|
+
b.bp("/bots/{botId}/botversions");
|
|
823
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1256
824
|
let body;
|
|
1257
825
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1258
826
|
maxResults: [],
|
|
1259
827
|
nextToken: [],
|
|
1260
828
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1261
829
|
}));
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
hostname,
|
|
1265
|
-
port,
|
|
1266
|
-
method: "POST",
|
|
1267
|
-
headers,
|
|
1268
|
-
path: resolvedPath,
|
|
1269
|
-
body,
|
|
1270
|
-
});
|
|
830
|
+
b.m("POST").h(headers).b(body);
|
|
831
|
+
return b.build();
|
|
1271
832
|
};
|
|
1272
833
|
exports.se_ListBotVersionsCommand = se_ListBotVersionsCommand;
|
|
1273
834
|
const se_ListBuiltInIntentsCommand = async (input, context) => {
|
|
1274
|
-
const
|
|
835
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1275
836
|
const headers = {
|
|
1276
837
|
"content-type": "application/json",
|
|
1277
838
|
};
|
|
1278
|
-
|
|
1279
|
-
|
|
839
|
+
b.bp("/builtins/locales/{localeId}/intents");
|
|
840
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1280
841
|
let body;
|
|
1281
842
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1282
843
|
maxResults: [],
|
|
1283
844
|
nextToken: [],
|
|
1284
845
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1285
846
|
}));
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
hostname,
|
|
1289
|
-
port,
|
|
1290
|
-
method: "POST",
|
|
1291
|
-
headers,
|
|
1292
|
-
path: resolvedPath,
|
|
1293
|
-
body,
|
|
1294
|
-
});
|
|
847
|
+
b.m("POST").h(headers).b(body);
|
|
848
|
+
return b.build();
|
|
1295
849
|
};
|
|
1296
850
|
exports.se_ListBuiltInIntentsCommand = se_ListBuiltInIntentsCommand;
|
|
1297
851
|
const se_ListBuiltInSlotTypesCommand = async (input, context) => {
|
|
1298
|
-
const
|
|
852
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1299
853
|
const headers = {
|
|
1300
854
|
"content-type": "application/json",
|
|
1301
855
|
};
|
|
1302
|
-
|
|
1303
|
-
|
|
856
|
+
b.bp("/builtins/locales/{localeId}/slottypes");
|
|
857
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1304
858
|
let body;
|
|
1305
859
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1306
860
|
maxResults: [],
|
|
1307
861
|
nextToken: [],
|
|
1308
862
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1309
863
|
}));
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
hostname,
|
|
1313
|
-
port,
|
|
1314
|
-
method: "POST",
|
|
1315
|
-
headers,
|
|
1316
|
-
path: resolvedPath,
|
|
1317
|
-
body,
|
|
1318
|
-
});
|
|
864
|
+
b.m("POST").h(headers).b(body);
|
|
865
|
+
return b.build();
|
|
1319
866
|
};
|
|
1320
867
|
exports.se_ListBuiltInSlotTypesCommand = se_ListBuiltInSlotTypesCommand;
|
|
1321
868
|
const se_ListCustomVocabularyItemsCommand = async (input, context) => {
|
|
1322
|
-
const
|
|
869
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1323
870
|
const headers = {
|
|
1324
871
|
"content-type": "application/json",
|
|
1325
872
|
};
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
873
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/list");
|
|
874
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
875
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
876
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1331
877
|
let body;
|
|
1332
878
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1333
879
|
maxResults: [],
|
|
1334
880
|
nextToken: [],
|
|
1335
881
|
}));
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
hostname,
|
|
1339
|
-
port,
|
|
1340
|
-
method: "POST",
|
|
1341
|
-
headers,
|
|
1342
|
-
path: resolvedPath,
|
|
1343
|
-
body,
|
|
1344
|
-
});
|
|
882
|
+
b.m("POST").h(headers).b(body);
|
|
883
|
+
return b.build();
|
|
1345
884
|
};
|
|
1346
885
|
exports.se_ListCustomVocabularyItemsCommand = se_ListCustomVocabularyItemsCommand;
|
|
1347
886
|
const se_ListExportsCommand = async (input, context) => {
|
|
1348
|
-
const
|
|
887
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1349
888
|
const headers = {
|
|
1350
889
|
"content-type": "application/json",
|
|
1351
890
|
};
|
|
1352
|
-
|
|
891
|
+
b.bp("/exports");
|
|
1353
892
|
let body;
|
|
1354
893
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1355
894
|
botId: [],
|
|
@@ -1360,23 +899,16 @@ const se_ListExportsCommand = async (input, context) => {
|
|
|
1360
899
|
nextToken: [],
|
|
1361
900
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1362
901
|
}));
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
hostname,
|
|
1366
|
-
port,
|
|
1367
|
-
method: "POST",
|
|
1368
|
-
headers,
|
|
1369
|
-
path: resolvedPath,
|
|
1370
|
-
body,
|
|
1371
|
-
});
|
|
902
|
+
b.m("POST").h(headers).b(body);
|
|
903
|
+
return b.build();
|
|
1372
904
|
};
|
|
1373
905
|
exports.se_ListExportsCommand = se_ListExportsCommand;
|
|
1374
906
|
const se_ListImportsCommand = async (input, context) => {
|
|
1375
|
-
const
|
|
907
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1376
908
|
const headers = {
|
|
1377
909
|
"content-type": "application/json",
|
|
1378
910
|
};
|
|
1379
|
-
|
|
911
|
+
b.bp("/imports");
|
|
1380
912
|
let body;
|
|
1381
913
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1382
914
|
botId: [],
|
|
@@ -1387,24 +919,17 @@ const se_ListImportsCommand = async (input, context) => {
|
|
|
1387
919
|
nextToken: [],
|
|
1388
920
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1389
921
|
}));
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
hostname,
|
|
1393
|
-
port,
|
|
1394
|
-
method: "POST",
|
|
1395
|
-
headers,
|
|
1396
|
-
path: resolvedPath,
|
|
1397
|
-
body,
|
|
1398
|
-
});
|
|
922
|
+
b.m("POST").h(headers).b(body);
|
|
923
|
+
return b.build();
|
|
1399
924
|
};
|
|
1400
925
|
exports.se_ListImportsCommand = se_ListImportsCommand;
|
|
1401
926
|
const se_ListIntentMetricsCommand = async (input, context) => {
|
|
1402
|
-
const
|
|
927
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1403
928
|
const headers = {
|
|
1404
929
|
"content-type": "application/json",
|
|
1405
930
|
};
|
|
1406
|
-
|
|
1407
|
-
|
|
931
|
+
b.bp("/bots/{botId}/analytics/intentmetrics");
|
|
932
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1408
933
|
let body;
|
|
1409
934
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1410
935
|
binBy: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1416,24 +941,17 @@ const se_ListIntentMetricsCommand = async (input, context) => {
|
|
|
1416
941
|
nextToken: [],
|
|
1417
942
|
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1418
943
|
}));
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
hostname,
|
|
1422
|
-
port,
|
|
1423
|
-
method: "POST",
|
|
1424
|
-
headers,
|
|
1425
|
-
path: resolvedPath,
|
|
1426
|
-
body,
|
|
1427
|
-
});
|
|
944
|
+
b.m("POST").h(headers).b(body);
|
|
945
|
+
return b.build();
|
|
1428
946
|
};
|
|
1429
947
|
exports.se_ListIntentMetricsCommand = se_ListIntentMetricsCommand;
|
|
1430
948
|
const se_ListIntentPathsCommand = async (input, context) => {
|
|
1431
|
-
const
|
|
949
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1432
950
|
const headers = {
|
|
1433
951
|
"content-type": "application/json",
|
|
1434
952
|
};
|
|
1435
|
-
|
|
1436
|
-
|
|
953
|
+
b.bp("/bots/{botId}/analytics/intentpaths");
|
|
954
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1437
955
|
let body;
|
|
1438
956
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1439
957
|
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -1441,27 +959,19 @@ const se_ListIntentPathsCommand = async (input, context) => {
|
|
|
1441
959
|
intentPath: [],
|
|
1442
960
|
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1443
961
|
}));
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
hostname,
|
|
1447
|
-
port,
|
|
1448
|
-
method: "POST",
|
|
1449
|
-
headers,
|
|
1450
|
-
path: resolvedPath,
|
|
1451
|
-
body,
|
|
1452
|
-
});
|
|
962
|
+
b.m("POST").h(headers).b(body);
|
|
963
|
+
return b.build();
|
|
1453
964
|
};
|
|
1454
965
|
exports.se_ListIntentPathsCommand = se_ListIntentPathsCommand;
|
|
1455
966
|
const se_ListIntentsCommand = async (input, context) => {
|
|
1456
|
-
const
|
|
967
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1457
968
|
const headers = {
|
|
1458
969
|
"content-type": "application/json",
|
|
1459
970
|
};
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
971
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents");
|
|
972
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
973
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
974
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1465
975
|
let body;
|
|
1466
976
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1467
977
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1469,25 +979,17 @@ const se_ListIntentsCommand = async (input, context) => {
|
|
|
1469
979
|
nextToken: [],
|
|
1470
980
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1471
981
|
}));
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
hostname,
|
|
1475
|
-
port,
|
|
1476
|
-
method: "POST",
|
|
1477
|
-
headers,
|
|
1478
|
-
path: resolvedPath,
|
|
1479
|
-
body,
|
|
1480
|
-
});
|
|
982
|
+
b.m("POST").h(headers).b(body);
|
|
983
|
+
return b.build();
|
|
1481
984
|
};
|
|
1482
985
|
exports.se_ListIntentsCommand = se_ListIntentsCommand;
|
|
1483
986
|
const se_ListIntentStageMetricsCommand = async (input, context) => {
|
|
1484
|
-
const
|
|
987
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1485
988
|
const headers = {
|
|
1486
989
|
"content-type": "application/json",
|
|
1487
990
|
};
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
991
|
+
b.bp("/bots/{botId}/analytics/intentstagemetrics");
|
|
992
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1491
993
|
let body;
|
|
1492
994
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1493
995
|
binBy: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1499,51 +1001,36 @@ const se_ListIntentStageMetricsCommand = async (input, context) => {
|
|
|
1499
1001
|
nextToken: [],
|
|
1500
1002
|
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1501
1003
|
}));
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
hostname,
|
|
1505
|
-
port,
|
|
1506
|
-
method: "POST",
|
|
1507
|
-
headers,
|
|
1508
|
-
path: resolvedPath,
|
|
1509
|
-
body,
|
|
1510
|
-
});
|
|
1004
|
+
b.m("POST").h(headers).b(body);
|
|
1005
|
+
return b.build();
|
|
1511
1006
|
};
|
|
1512
1007
|
exports.se_ListIntentStageMetricsCommand = se_ListIntentStageMetricsCommand;
|
|
1513
1008
|
const se_ListRecommendedIntentsCommand = async (input, context) => {
|
|
1514
|
-
const
|
|
1009
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1515
1010
|
const headers = {
|
|
1516
1011
|
"content-type": "application/json",
|
|
1517
1012
|
};
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
1013
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/intents");
|
|
1014
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1015
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1016
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1017
|
+
b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
1524
1018
|
let body;
|
|
1525
1019
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1526
1020
|
maxResults: [],
|
|
1527
1021
|
nextToken: [],
|
|
1528
1022
|
}));
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
hostname,
|
|
1532
|
-
port,
|
|
1533
|
-
method: "POST",
|
|
1534
|
-
headers,
|
|
1535
|
-
path: resolvedPath,
|
|
1536
|
-
body,
|
|
1537
|
-
});
|
|
1023
|
+
b.m("POST").h(headers).b(body);
|
|
1024
|
+
return b.build();
|
|
1538
1025
|
};
|
|
1539
1026
|
exports.se_ListRecommendedIntentsCommand = se_ListRecommendedIntentsCommand;
|
|
1540
1027
|
const se_ListSessionAnalyticsDataCommand = async (input, context) => {
|
|
1541
|
-
const
|
|
1028
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1542
1029
|
const headers = {
|
|
1543
1030
|
"content-type": "application/json",
|
|
1544
1031
|
};
|
|
1545
|
-
|
|
1546
|
-
|
|
1032
|
+
b.bp("/bots/{botId}/analytics/sessions");
|
|
1033
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1547
1034
|
let body;
|
|
1548
1035
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1549
1036
|
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -1553,24 +1040,17 @@ const se_ListSessionAnalyticsDataCommand = async (input, context) => {
|
|
|
1553
1040
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1554
1041
|
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1555
1042
|
}));
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
hostname,
|
|
1559
|
-
port,
|
|
1560
|
-
method: "POST",
|
|
1561
|
-
headers,
|
|
1562
|
-
path: resolvedPath,
|
|
1563
|
-
body,
|
|
1564
|
-
});
|
|
1043
|
+
b.m("POST").h(headers).b(body);
|
|
1044
|
+
return b.build();
|
|
1565
1045
|
};
|
|
1566
1046
|
exports.se_ListSessionAnalyticsDataCommand = se_ListSessionAnalyticsDataCommand;
|
|
1567
1047
|
const se_ListSessionMetricsCommand = async (input, context) => {
|
|
1568
|
-
const
|
|
1048
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1569
1049
|
const headers = {
|
|
1570
1050
|
"content-type": "application/json",
|
|
1571
1051
|
};
|
|
1572
|
-
|
|
1573
|
-
|
|
1052
|
+
b.bp("/bots/{botId}/analytics/sessionmetrics");
|
|
1053
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1574
1054
|
let body;
|
|
1575
1055
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1576
1056
|
binBy: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1582,28 +1062,20 @@ const se_ListSessionMetricsCommand = async (input, context) => {
|
|
|
1582
1062
|
nextToken: [],
|
|
1583
1063
|
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1584
1064
|
}));
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
hostname,
|
|
1588
|
-
port,
|
|
1589
|
-
method: "POST",
|
|
1590
|
-
headers,
|
|
1591
|
-
path: resolvedPath,
|
|
1592
|
-
body,
|
|
1593
|
-
});
|
|
1065
|
+
b.m("POST").h(headers).b(body);
|
|
1066
|
+
return b.build();
|
|
1594
1067
|
};
|
|
1595
1068
|
exports.se_ListSessionMetricsCommand = se_ListSessionMetricsCommand;
|
|
1596
1069
|
const se_ListSlotsCommand = async (input, context) => {
|
|
1597
|
-
const
|
|
1070
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1598
1071
|
const headers = {
|
|
1599
1072
|
"content-type": "application/json",
|
|
1600
1073
|
};
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "intentId", () => input.intentId, "{intentId}", false);
|
|
1074
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots");
|
|
1075
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1076
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1077
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1078
|
+
b.p("intentId", () => input.intentId, "{intentId}", false);
|
|
1607
1079
|
let body;
|
|
1608
1080
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1609
1081
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1611,27 +1083,19 @@ const se_ListSlotsCommand = async (input, context) => {
|
|
|
1611
1083
|
nextToken: [],
|
|
1612
1084
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1613
1085
|
}));
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
hostname,
|
|
1617
|
-
port,
|
|
1618
|
-
method: "POST",
|
|
1619
|
-
headers,
|
|
1620
|
-
path: resolvedPath,
|
|
1621
|
-
body,
|
|
1622
|
-
});
|
|
1086
|
+
b.m("POST").h(headers).b(body);
|
|
1087
|
+
return b.build();
|
|
1623
1088
|
};
|
|
1624
1089
|
exports.se_ListSlotsCommand = se_ListSlotsCommand;
|
|
1625
1090
|
const se_ListSlotTypesCommand = async (input, context) => {
|
|
1626
|
-
const
|
|
1091
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1627
1092
|
const headers = {
|
|
1628
1093
|
"content-type": "application/json",
|
|
1629
1094
|
};
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1095
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes");
|
|
1096
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1097
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1098
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1635
1099
|
let body;
|
|
1636
1100
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1637
1101
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1639,134 +1103,92 @@ const se_ListSlotTypesCommand = async (input, context) => {
|
|
|
1639
1103
|
nextToken: [],
|
|
1640
1104
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1641
1105
|
}));
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
hostname,
|
|
1645
|
-
port,
|
|
1646
|
-
method: "POST",
|
|
1647
|
-
headers,
|
|
1648
|
-
path: resolvedPath,
|
|
1649
|
-
body,
|
|
1650
|
-
});
|
|
1106
|
+
b.m("POST").h(headers).b(body);
|
|
1107
|
+
return b.build();
|
|
1651
1108
|
};
|
|
1652
1109
|
exports.se_ListSlotTypesCommand = se_ListSlotTypesCommand;
|
|
1653
1110
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
1654
|
-
const
|
|
1111
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1655
1112
|
const headers = {};
|
|
1656
|
-
|
|
1657
|
-
|
|
1113
|
+
b.bp("/tags/{resourceARN}");
|
|
1114
|
+
b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
1658
1115
|
let body;
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
hostname,
|
|
1662
|
-
port,
|
|
1663
|
-
method: "GET",
|
|
1664
|
-
headers,
|
|
1665
|
-
path: resolvedPath,
|
|
1666
|
-
body,
|
|
1667
|
-
});
|
|
1116
|
+
b.m("GET").h(headers).b(body);
|
|
1117
|
+
return b.build();
|
|
1668
1118
|
};
|
|
1669
1119
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1670
1120
|
const se_ListTestExecutionResultItemsCommand = async (input, context) => {
|
|
1671
|
-
const
|
|
1121
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1672
1122
|
const headers = {
|
|
1673
1123
|
"content-type": "application/json",
|
|
1674
1124
|
};
|
|
1675
|
-
|
|
1676
|
-
|
|
1125
|
+
b.bp("/testexecutions/{testExecutionId}/results");
|
|
1126
|
+
b.p("testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
|
|
1677
1127
|
let body;
|
|
1678
1128
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1679
1129
|
maxResults: [],
|
|
1680
1130
|
nextToken: [],
|
|
1681
1131
|
resultFilterBy: (_) => (0, smithy_client_1._json)(_),
|
|
1682
1132
|
}));
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
hostname,
|
|
1686
|
-
port,
|
|
1687
|
-
method: "POST",
|
|
1688
|
-
headers,
|
|
1689
|
-
path: resolvedPath,
|
|
1690
|
-
body,
|
|
1691
|
-
});
|
|
1133
|
+
b.m("POST").h(headers).b(body);
|
|
1134
|
+
return b.build();
|
|
1692
1135
|
};
|
|
1693
1136
|
exports.se_ListTestExecutionResultItemsCommand = se_ListTestExecutionResultItemsCommand;
|
|
1694
1137
|
const se_ListTestExecutionsCommand = async (input, context) => {
|
|
1695
|
-
const
|
|
1138
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1696
1139
|
const headers = {
|
|
1697
1140
|
"content-type": "application/json",
|
|
1698
1141
|
};
|
|
1699
|
-
|
|
1142
|
+
b.bp("/testexecutions");
|
|
1700
1143
|
let body;
|
|
1701
1144
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1702
1145
|
maxResults: [],
|
|
1703
1146
|
nextToken: [],
|
|
1704
1147
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1705
1148
|
}));
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
hostname,
|
|
1709
|
-
port,
|
|
1710
|
-
method: "POST",
|
|
1711
|
-
headers,
|
|
1712
|
-
path: resolvedPath,
|
|
1713
|
-
body,
|
|
1714
|
-
});
|
|
1149
|
+
b.m("POST").h(headers).b(body);
|
|
1150
|
+
return b.build();
|
|
1715
1151
|
};
|
|
1716
1152
|
exports.se_ListTestExecutionsCommand = se_ListTestExecutionsCommand;
|
|
1717
1153
|
const se_ListTestSetRecordsCommand = async (input, context) => {
|
|
1718
|
-
const
|
|
1154
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1719
1155
|
const headers = {
|
|
1720
1156
|
"content-type": "application/json",
|
|
1721
1157
|
};
|
|
1722
|
-
|
|
1723
|
-
|
|
1158
|
+
b.bp("/testsets/{testSetId}/records");
|
|
1159
|
+
b.p("testSetId", () => input.testSetId, "{testSetId}", false);
|
|
1724
1160
|
let body;
|
|
1725
1161
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1726
1162
|
maxResults: [],
|
|
1727
1163
|
nextToken: [],
|
|
1728
1164
|
}));
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
hostname,
|
|
1732
|
-
port,
|
|
1733
|
-
method: "POST",
|
|
1734
|
-
headers,
|
|
1735
|
-
path: resolvedPath,
|
|
1736
|
-
body,
|
|
1737
|
-
});
|
|
1165
|
+
b.m("POST").h(headers).b(body);
|
|
1166
|
+
return b.build();
|
|
1738
1167
|
};
|
|
1739
1168
|
exports.se_ListTestSetRecordsCommand = se_ListTestSetRecordsCommand;
|
|
1740
1169
|
const se_ListTestSetsCommand = async (input, context) => {
|
|
1741
|
-
const
|
|
1170
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1742
1171
|
const headers = {
|
|
1743
1172
|
"content-type": "application/json",
|
|
1744
1173
|
};
|
|
1745
|
-
|
|
1174
|
+
b.bp("/testsets");
|
|
1746
1175
|
let body;
|
|
1747
1176
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1748
1177
|
maxResults: [],
|
|
1749
1178
|
nextToken: [],
|
|
1750
1179
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1751
1180
|
}));
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
hostname,
|
|
1755
|
-
port,
|
|
1756
|
-
method: "POST",
|
|
1757
|
-
headers,
|
|
1758
|
-
path: resolvedPath,
|
|
1759
|
-
body,
|
|
1760
|
-
});
|
|
1181
|
+
b.m("POST").h(headers).b(body);
|
|
1182
|
+
return b.build();
|
|
1761
1183
|
};
|
|
1762
1184
|
exports.se_ListTestSetsCommand = se_ListTestSetsCommand;
|
|
1763
1185
|
const se_ListUtteranceAnalyticsDataCommand = async (input, context) => {
|
|
1764
|
-
const
|
|
1186
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1765
1187
|
const headers = {
|
|
1766
1188
|
"content-type": "application/json",
|
|
1767
1189
|
};
|
|
1768
|
-
|
|
1769
|
-
|
|
1190
|
+
b.bp("/bots/{botId}/analytics/utterances");
|
|
1191
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1770
1192
|
let body;
|
|
1771
1193
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1772
1194
|
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -1776,24 +1198,17 @@ const se_ListUtteranceAnalyticsDataCommand = async (input, context) => {
|
|
|
1776
1198
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1777
1199
|
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1778
1200
|
}));
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
hostname,
|
|
1782
|
-
port,
|
|
1783
|
-
method: "POST",
|
|
1784
|
-
headers,
|
|
1785
|
-
path: resolvedPath,
|
|
1786
|
-
body,
|
|
1787
|
-
});
|
|
1201
|
+
b.m("POST").h(headers).b(body);
|
|
1202
|
+
return b.build();
|
|
1788
1203
|
};
|
|
1789
1204
|
exports.se_ListUtteranceAnalyticsDataCommand = se_ListUtteranceAnalyticsDataCommand;
|
|
1790
1205
|
const se_ListUtteranceMetricsCommand = async (input, context) => {
|
|
1791
|
-
const
|
|
1206
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1792
1207
|
const headers = {
|
|
1793
1208
|
"content-type": "application/json",
|
|
1794
1209
|
};
|
|
1795
|
-
|
|
1796
|
-
|
|
1210
|
+
b.bp("/bots/{botId}/analytics/utterancemetrics");
|
|
1211
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1797
1212
|
let body;
|
|
1798
1213
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1799
1214
|
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1806,28 +1221,20 @@ const se_ListUtteranceMetricsCommand = async (input, context) => {
|
|
|
1806
1221
|
nextToken: [],
|
|
1807
1222
|
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1808
1223
|
}));
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
hostname,
|
|
1812
|
-
port,
|
|
1813
|
-
method: "POST",
|
|
1814
|
-
headers,
|
|
1815
|
-
path: resolvedPath,
|
|
1816
|
-
body,
|
|
1817
|
-
});
|
|
1224
|
+
b.m("POST").h(headers).b(body);
|
|
1225
|
+
return b.build();
|
|
1818
1226
|
};
|
|
1819
1227
|
exports.se_ListUtteranceMetricsCommand = se_ListUtteranceMetricsCommand;
|
|
1820
1228
|
const se_SearchAssociatedTranscriptsCommand = async (input, context) => {
|
|
1821
|
-
const
|
|
1229
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1822
1230
|
const headers = {
|
|
1823
1231
|
"content-type": "application/json",
|
|
1824
1232
|
};
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
1233
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/associatedtranscripts");
|
|
1234
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1235
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1236
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1237
|
+
b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
1831
1238
|
let body;
|
|
1832
1239
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1833
1240
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1835,74 +1242,51 @@ const se_SearchAssociatedTranscriptsCommand = async (input, context) => {
|
|
|
1835
1242
|
nextIndex: [],
|
|
1836
1243
|
searchOrder: [],
|
|
1837
1244
|
}));
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
hostname,
|
|
1841
|
-
port,
|
|
1842
|
-
method: "POST",
|
|
1843
|
-
headers,
|
|
1844
|
-
path: resolvedPath,
|
|
1845
|
-
body,
|
|
1846
|
-
});
|
|
1245
|
+
b.m("POST").h(headers).b(body);
|
|
1246
|
+
return b.build();
|
|
1847
1247
|
};
|
|
1848
1248
|
exports.se_SearchAssociatedTranscriptsCommand = se_SearchAssociatedTranscriptsCommand;
|
|
1849
1249
|
const se_StartBotRecommendationCommand = async (input, context) => {
|
|
1850
|
-
const
|
|
1250
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1851
1251
|
const headers = {
|
|
1852
1252
|
"content-type": "application/json",
|
|
1853
1253
|
};
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1254
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations");
|
|
1255
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1256
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1257
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1859
1258
|
let body;
|
|
1860
1259
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1861
1260
|
encryptionSetting: (_) => (0, smithy_client_1._json)(_),
|
|
1862
1261
|
transcriptSourceSetting: (_) => se_TranscriptSourceSetting(_, context),
|
|
1863
1262
|
}));
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
hostname,
|
|
1867
|
-
port,
|
|
1868
|
-
method: "PUT",
|
|
1869
|
-
headers,
|
|
1870
|
-
path: resolvedPath,
|
|
1871
|
-
body,
|
|
1872
|
-
});
|
|
1263
|
+
b.m("PUT").h(headers).b(body);
|
|
1264
|
+
return b.build();
|
|
1873
1265
|
};
|
|
1874
1266
|
exports.se_StartBotRecommendationCommand = se_StartBotRecommendationCommand;
|
|
1875
1267
|
const se_StartBotResourceGenerationCommand = async (input, context) => {
|
|
1876
|
-
const
|
|
1268
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1877
1269
|
const headers = {
|
|
1878
1270
|
"content-type": "application/json",
|
|
1879
1271
|
};
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1272
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/startgeneration");
|
|
1273
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1274
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1275
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1885
1276
|
let body;
|
|
1886
1277
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1887
1278
|
generationInputPrompt: [],
|
|
1888
1279
|
}));
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
hostname,
|
|
1892
|
-
port,
|
|
1893
|
-
method: "PUT",
|
|
1894
|
-
headers,
|
|
1895
|
-
path: resolvedPath,
|
|
1896
|
-
body,
|
|
1897
|
-
});
|
|
1280
|
+
b.m("PUT").h(headers).b(body);
|
|
1281
|
+
return b.build();
|
|
1898
1282
|
};
|
|
1899
1283
|
exports.se_StartBotResourceGenerationCommand = se_StartBotResourceGenerationCommand;
|
|
1900
1284
|
const se_StartImportCommand = async (input, context) => {
|
|
1901
|
-
const
|
|
1285
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1902
1286
|
const headers = {
|
|
1903
1287
|
"content-type": "application/json",
|
|
1904
1288
|
};
|
|
1905
|
-
|
|
1289
|
+
b.bp("/imports");
|
|
1906
1290
|
let body;
|
|
1907
1291
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1908
1292
|
filePassword: [],
|
|
@@ -1910,47 +1294,33 @@ const se_StartImportCommand = async (input, context) => {
|
|
|
1910
1294
|
mergeStrategy: [],
|
|
1911
1295
|
resourceSpecification: (_) => se_ImportResourceSpecification(_, context),
|
|
1912
1296
|
}));
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
hostname,
|
|
1916
|
-
port,
|
|
1917
|
-
method: "PUT",
|
|
1918
|
-
headers,
|
|
1919
|
-
path: resolvedPath,
|
|
1920
|
-
body,
|
|
1921
|
-
});
|
|
1297
|
+
b.m("PUT").h(headers).b(body);
|
|
1298
|
+
return b.build();
|
|
1922
1299
|
};
|
|
1923
1300
|
exports.se_StartImportCommand = se_StartImportCommand;
|
|
1924
1301
|
const se_StartTestExecutionCommand = async (input, context) => {
|
|
1925
|
-
const
|
|
1302
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1926
1303
|
const headers = {
|
|
1927
1304
|
"content-type": "application/json",
|
|
1928
1305
|
};
|
|
1929
|
-
|
|
1930
|
-
|
|
1306
|
+
b.bp("/testsets/{testSetId}/testexecutions");
|
|
1307
|
+
b.p("testSetId", () => input.testSetId, "{testSetId}", false);
|
|
1931
1308
|
let body;
|
|
1932
1309
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1933
1310
|
apiMode: [],
|
|
1934
1311
|
target: (_) => (0, smithy_client_1._json)(_),
|
|
1935
1312
|
testExecutionModality: [],
|
|
1936
1313
|
}));
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
hostname,
|
|
1940
|
-
port,
|
|
1941
|
-
method: "POST",
|
|
1942
|
-
headers,
|
|
1943
|
-
path: resolvedPath,
|
|
1944
|
-
body,
|
|
1945
|
-
});
|
|
1314
|
+
b.m("POST").h(headers).b(body);
|
|
1315
|
+
return b.build();
|
|
1946
1316
|
};
|
|
1947
1317
|
exports.se_StartTestExecutionCommand = se_StartTestExecutionCommand;
|
|
1948
1318
|
const se_StartTestSetGenerationCommand = async (input, context) => {
|
|
1949
|
-
const
|
|
1319
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1950
1320
|
const headers = {
|
|
1951
1321
|
"content-type": "application/json",
|
|
1952
1322
|
};
|
|
1953
|
-
|
|
1323
|
+
b.bp("/testsetgenerations");
|
|
1954
1324
|
let body;
|
|
1955
1325
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1956
1326
|
description: [],
|
|
@@ -1960,91 +1330,61 @@ const se_StartTestSetGenerationCommand = async (input, context) => {
|
|
|
1960
1330
|
testSetName: [],
|
|
1961
1331
|
testSetTags: (_) => (0, smithy_client_1._json)(_),
|
|
1962
1332
|
}));
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
hostname,
|
|
1966
|
-
port,
|
|
1967
|
-
method: "PUT",
|
|
1968
|
-
headers,
|
|
1969
|
-
path: resolvedPath,
|
|
1970
|
-
body,
|
|
1971
|
-
});
|
|
1333
|
+
b.m("PUT").h(headers).b(body);
|
|
1334
|
+
return b.build();
|
|
1972
1335
|
};
|
|
1973
1336
|
exports.se_StartTestSetGenerationCommand = se_StartTestSetGenerationCommand;
|
|
1974
1337
|
const se_StopBotRecommendationCommand = async (input, context) => {
|
|
1975
|
-
const
|
|
1338
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1976
1339
|
const headers = {};
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
1340
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/stopbotrecommendation");
|
|
1341
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1342
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1343
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1344
|
+
b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
1983
1345
|
let body;
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
hostname,
|
|
1987
|
-
port,
|
|
1988
|
-
method: "PUT",
|
|
1989
|
-
headers,
|
|
1990
|
-
path: resolvedPath,
|
|
1991
|
-
body,
|
|
1992
|
-
});
|
|
1346
|
+
b.m("PUT").h(headers).b(body);
|
|
1347
|
+
return b.build();
|
|
1993
1348
|
};
|
|
1994
1349
|
exports.se_StopBotRecommendationCommand = se_StopBotRecommendationCommand;
|
|
1995
1350
|
const se_TagResourceCommand = async (input, context) => {
|
|
1996
|
-
const
|
|
1351
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1997
1352
|
const headers = {
|
|
1998
1353
|
"content-type": "application/json",
|
|
1999
1354
|
};
|
|
2000
|
-
|
|
2001
|
-
|
|
1355
|
+
b.bp("/tags/{resourceARN}");
|
|
1356
|
+
b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
2002
1357
|
let body;
|
|
2003
1358
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2004
1359
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
2005
1360
|
}));
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
hostname,
|
|
2009
|
-
port,
|
|
2010
|
-
method: "POST",
|
|
2011
|
-
headers,
|
|
2012
|
-
path: resolvedPath,
|
|
2013
|
-
body,
|
|
2014
|
-
});
|
|
1361
|
+
b.m("POST").h(headers).b(body);
|
|
1362
|
+
return b.build();
|
|
2015
1363
|
};
|
|
2016
1364
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
2017
1365
|
const se_UntagResourceCommand = async (input, context) => {
|
|
2018
|
-
const
|
|
1366
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2019
1367
|
const headers = {};
|
|
2020
|
-
|
|
2021
|
-
|
|
1368
|
+
b.bp("/tags/{resourceARN}");
|
|
1369
|
+
b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
2022
1370
|
const query = (0, smithy_client_1.map)({
|
|
2023
|
-
|
|
1371
|
+
[_tK]: [
|
|
2024
1372
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
2025
|
-
() => (input
|
|
1373
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
2026
1374
|
],
|
|
2027
1375
|
});
|
|
2028
1376
|
let body;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
hostname,
|
|
2032
|
-
port,
|
|
2033
|
-
method: "DELETE",
|
|
2034
|
-
headers,
|
|
2035
|
-
path: resolvedPath,
|
|
2036
|
-
query,
|
|
2037
|
-
body,
|
|
2038
|
-
});
|
|
1377
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1378
|
+
return b.build();
|
|
2039
1379
|
};
|
|
2040
1380
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
2041
1381
|
const se_UpdateBotCommand = async (input, context) => {
|
|
2042
|
-
const
|
|
1382
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2043
1383
|
const headers = {
|
|
2044
1384
|
"content-type": "application/json",
|
|
2045
1385
|
};
|
|
2046
|
-
|
|
2047
|
-
|
|
1386
|
+
b.bp("/bots/{botId}");
|
|
1387
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
2048
1388
|
let body;
|
|
2049
1389
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2050
1390
|
botMembers: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -2055,25 +1395,18 @@ const se_UpdateBotCommand = async (input, context) => {
|
|
|
2055
1395
|
idleSessionTTLInSeconds: [],
|
|
2056
1396
|
roleArn: [],
|
|
2057
1397
|
}));
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
hostname,
|
|
2061
|
-
port,
|
|
2062
|
-
method: "PUT",
|
|
2063
|
-
headers,
|
|
2064
|
-
path: resolvedPath,
|
|
2065
|
-
body,
|
|
2066
|
-
});
|
|
1398
|
+
b.m("PUT").h(headers).b(body);
|
|
1399
|
+
return b.build();
|
|
2067
1400
|
};
|
|
2068
1401
|
exports.se_UpdateBotCommand = se_UpdateBotCommand;
|
|
2069
1402
|
const se_UpdateBotAliasCommand = async (input, context) => {
|
|
2070
|
-
const
|
|
1403
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2071
1404
|
const headers = {
|
|
2072
1405
|
"content-type": "application/json",
|
|
2073
1406
|
};
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
1407
|
+
b.bp("/bots/{botId}/botaliases/{botAliasId}");
|
|
1408
|
+
b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
|
|
1409
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
2077
1410
|
let body;
|
|
2078
1411
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2079
1412
|
botAliasLocaleSettings: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -2083,27 +1416,19 @@ const se_UpdateBotAliasCommand = async (input, context) => {
|
|
|
2083
1416
|
description: [],
|
|
2084
1417
|
sentimentAnalysisSettings: (_) => (0, smithy_client_1._json)(_),
|
|
2085
1418
|
}));
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
hostname,
|
|
2089
|
-
port,
|
|
2090
|
-
method: "PUT",
|
|
2091
|
-
headers,
|
|
2092
|
-
path: resolvedPath,
|
|
2093
|
-
body,
|
|
2094
|
-
});
|
|
1419
|
+
b.m("PUT").h(headers).b(body);
|
|
1420
|
+
return b.build();
|
|
2095
1421
|
};
|
|
2096
1422
|
exports.se_UpdateBotAliasCommand = se_UpdateBotAliasCommand;
|
|
2097
1423
|
const se_UpdateBotLocaleCommand = async (input, context) => {
|
|
2098
|
-
const
|
|
1424
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2099
1425
|
const headers = {
|
|
2100
1426
|
"content-type": "application/json",
|
|
2101
1427
|
};
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1428
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}");
|
|
1429
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1430
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1431
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
2107
1432
|
let body;
|
|
2108
1433
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2109
1434
|
description: [],
|
|
@@ -2111,76 +1436,53 @@ const se_UpdateBotLocaleCommand = async (input, context) => {
|
|
|
2111
1436
|
nluIntentConfidenceThreshold: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
2112
1437
|
voiceSettings: (_) => (0, smithy_client_1._json)(_),
|
|
2113
1438
|
}));
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
hostname,
|
|
2117
|
-
port,
|
|
2118
|
-
method: "PUT",
|
|
2119
|
-
headers,
|
|
2120
|
-
path: resolvedPath,
|
|
2121
|
-
body,
|
|
2122
|
-
});
|
|
1439
|
+
b.m("PUT").h(headers).b(body);
|
|
1440
|
+
return b.build();
|
|
2123
1441
|
};
|
|
2124
1442
|
exports.se_UpdateBotLocaleCommand = se_UpdateBotLocaleCommand;
|
|
2125
1443
|
const se_UpdateBotRecommendationCommand = async (input, context) => {
|
|
2126
|
-
const
|
|
1444
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2127
1445
|
const headers = {
|
|
2128
1446
|
"content-type": "application/json",
|
|
2129
1447
|
};
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
1448
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}");
|
|
1449
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1450
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1451
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1452
|
+
b.p("botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
2136
1453
|
let body;
|
|
2137
1454
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2138
1455
|
encryptionSetting: (_) => (0, smithy_client_1._json)(_),
|
|
2139
1456
|
}));
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
hostname,
|
|
2143
|
-
port,
|
|
2144
|
-
method: "PUT",
|
|
2145
|
-
headers,
|
|
2146
|
-
path: resolvedPath,
|
|
2147
|
-
body,
|
|
2148
|
-
});
|
|
1457
|
+
b.m("PUT").h(headers).b(body);
|
|
1458
|
+
return b.build();
|
|
2149
1459
|
};
|
|
2150
1460
|
exports.se_UpdateBotRecommendationCommand = se_UpdateBotRecommendationCommand;
|
|
2151
1461
|
const se_UpdateExportCommand = async (input, context) => {
|
|
2152
|
-
const
|
|
1462
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2153
1463
|
const headers = {
|
|
2154
1464
|
"content-type": "application/json",
|
|
2155
1465
|
};
|
|
2156
|
-
|
|
2157
|
-
|
|
1466
|
+
b.bp("/exports/{exportId}");
|
|
1467
|
+
b.p("exportId", () => input.exportId, "{exportId}", false);
|
|
2158
1468
|
let body;
|
|
2159
1469
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2160
1470
|
filePassword: [],
|
|
2161
1471
|
}));
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
hostname,
|
|
2165
|
-
port,
|
|
2166
|
-
method: "PUT",
|
|
2167
|
-
headers,
|
|
2168
|
-
path: resolvedPath,
|
|
2169
|
-
body,
|
|
2170
|
-
});
|
|
1472
|
+
b.m("PUT").h(headers).b(body);
|
|
1473
|
+
return b.build();
|
|
2171
1474
|
};
|
|
2172
1475
|
exports.se_UpdateExportCommand = se_UpdateExportCommand;
|
|
2173
1476
|
const se_UpdateIntentCommand = async (input, context) => {
|
|
2174
|
-
const
|
|
1477
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2175
1478
|
const headers = {
|
|
2176
1479
|
"content-type": "application/json",
|
|
2177
1480
|
};
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1481
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}");
|
|
1482
|
+
b.p("intentId", () => input.intentId, "{intentId}", false);
|
|
1483
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1484
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1485
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
2184
1486
|
let body;
|
|
2185
1487
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2186
1488
|
description: [],
|
|
@@ -2197,55 +1499,39 @@ const se_UpdateIntentCommand = async (input, context) => {
|
|
|
2197
1499
|
sampleUtterances: (_) => (0, smithy_client_1._json)(_),
|
|
2198
1500
|
slotPriorities: (_) => (0, smithy_client_1._json)(_),
|
|
2199
1501
|
}));
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
hostname,
|
|
2203
|
-
port,
|
|
2204
|
-
method: "PUT",
|
|
2205
|
-
headers,
|
|
2206
|
-
path: resolvedPath,
|
|
2207
|
-
body,
|
|
2208
|
-
});
|
|
1502
|
+
b.m("PUT").h(headers).b(body);
|
|
1503
|
+
return b.build();
|
|
2209
1504
|
};
|
|
2210
1505
|
exports.se_UpdateIntentCommand = se_UpdateIntentCommand;
|
|
2211
1506
|
const se_UpdateResourcePolicyCommand = async (input, context) => {
|
|
2212
|
-
const
|
|
1507
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2213
1508
|
const headers = {
|
|
2214
1509
|
"content-type": "application/json",
|
|
2215
1510
|
};
|
|
2216
|
-
|
|
2217
|
-
|
|
1511
|
+
b.bp("/policy/{resourceArn}");
|
|
1512
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
2218
1513
|
const query = (0, smithy_client_1.map)({
|
|
2219
|
-
|
|
1514
|
+
[_eRI]: [, input[_eRI]],
|
|
2220
1515
|
});
|
|
2221
1516
|
let body;
|
|
2222
1517
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2223
1518
|
policy: [],
|
|
2224
1519
|
}));
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
hostname,
|
|
2228
|
-
port,
|
|
2229
|
-
method: "PUT",
|
|
2230
|
-
headers,
|
|
2231
|
-
path: resolvedPath,
|
|
2232
|
-
query,
|
|
2233
|
-
body,
|
|
2234
|
-
});
|
|
1520
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1521
|
+
return b.build();
|
|
2235
1522
|
};
|
|
2236
1523
|
exports.se_UpdateResourcePolicyCommand = se_UpdateResourcePolicyCommand;
|
|
2237
1524
|
const se_UpdateSlotCommand = async (input, context) => {
|
|
2238
|
-
const
|
|
1525
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2239
1526
|
const headers = {
|
|
2240
1527
|
"content-type": "application/json",
|
|
2241
1528
|
};
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "intentId", () => input.intentId, "{intentId}", false);
|
|
1529
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}");
|
|
1530
|
+
b.p("slotId", () => input.slotId, "{slotId}", false);
|
|
1531
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1532
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1533
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
1534
|
+
b.p("intentId", () => input.intentId, "{intentId}", false);
|
|
2249
1535
|
let body;
|
|
2250
1536
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2251
1537
|
description: [],
|
|
@@ -2256,28 +1542,20 @@ const se_UpdateSlotCommand = async (input, context) => {
|
|
|
2256
1542
|
subSlotSetting: (_) => se_SubSlotSetting(_, context),
|
|
2257
1543
|
valueElicitationSetting: (_) => se_SlotValueElicitationSetting(_, context),
|
|
2258
1544
|
}));
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
hostname,
|
|
2262
|
-
port,
|
|
2263
|
-
method: "PUT",
|
|
2264
|
-
headers,
|
|
2265
|
-
path: resolvedPath,
|
|
2266
|
-
body,
|
|
2267
|
-
});
|
|
1545
|
+
b.m("PUT").h(headers).b(body);
|
|
1546
|
+
return b.build();
|
|
2268
1547
|
};
|
|
2269
1548
|
exports.se_UpdateSlotCommand = se_UpdateSlotCommand;
|
|
2270
1549
|
const se_UpdateSlotTypeCommand = async (input, context) => {
|
|
2271
|
-
const
|
|
1550
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2272
1551
|
const headers = {
|
|
2273
1552
|
"content-type": "application/json",
|
|
2274
1553
|
};
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1554
|
+
b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}");
|
|
1555
|
+
b.p("slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
|
|
1556
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
1557
|
+
b.p("botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1558
|
+
b.p("localeId", () => input.localeId, "{localeId}", false);
|
|
2281
1559
|
let body;
|
|
2282
1560
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2283
1561
|
compositeSlotTypeSetting: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -2288,38 +1566,24 @@ const se_UpdateSlotTypeCommand = async (input, context) => {
|
|
|
2288
1566
|
slotTypeValues: (_) => (0, smithy_client_1._json)(_),
|
|
2289
1567
|
valueSelectionSetting: (_) => (0, smithy_client_1._json)(_),
|
|
2290
1568
|
}));
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
hostname,
|
|
2294
|
-
port,
|
|
2295
|
-
method: "PUT",
|
|
2296
|
-
headers,
|
|
2297
|
-
path: resolvedPath,
|
|
2298
|
-
body,
|
|
2299
|
-
});
|
|
1569
|
+
b.m("PUT").h(headers).b(body);
|
|
1570
|
+
return b.build();
|
|
2300
1571
|
};
|
|
2301
1572
|
exports.se_UpdateSlotTypeCommand = se_UpdateSlotTypeCommand;
|
|
2302
1573
|
const se_UpdateTestSetCommand = async (input, context) => {
|
|
2303
|
-
const
|
|
1574
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2304
1575
|
const headers = {
|
|
2305
1576
|
"content-type": "application/json",
|
|
2306
1577
|
};
|
|
2307
|
-
|
|
2308
|
-
|
|
1578
|
+
b.bp("/testsets/{testSetId}");
|
|
1579
|
+
b.p("testSetId", () => input.testSetId, "{testSetId}", false);
|
|
2309
1580
|
let body;
|
|
2310
1581
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2311
1582
|
description: [],
|
|
2312
1583
|
testSetName: [],
|
|
2313
1584
|
}));
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
hostname,
|
|
2317
|
-
port,
|
|
2318
|
-
method: "PUT",
|
|
2319
|
-
headers,
|
|
2320
|
-
path: resolvedPath,
|
|
2321
|
-
body,
|
|
2322
|
-
});
|
|
1585
|
+
b.m("PUT").h(headers).b(body);
|
|
1586
|
+
return b.build();
|
|
2323
1587
|
};
|
|
2324
1588
|
exports.se_UpdateTestSetCommand = se_UpdateTestSetCommand;
|
|
2325
1589
|
const de_BatchCreateCustomVocabularyItemCommand = async (output, context) => {
|
|
@@ -7319,10 +6583,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
7319
6583
|
};
|
|
7320
6584
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
7321
6585
|
const contents = (0, smithy_client_1.map)({
|
|
7322
|
-
|
|
7323
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
7324
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
7325
|
-
],
|
|
6586
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
7326
6587
|
});
|
|
7327
6588
|
const data = parsedOutput.body;
|
|
7328
6589
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -8487,6 +7748,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
8487
7748
|
value !== "" &&
|
|
8488
7749
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
8489
7750
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
7751
|
+
const _eRI = "expectedRevisionId";
|
|
7752
|
+
const _lI = "localeId";
|
|
7753
|
+
const _rAS = "retryAfterSeconds";
|
|
7754
|
+
const _ra = "retry-after";
|
|
7755
|
+
const _sI = "sessionId";
|
|
7756
|
+
const _sRIUC = "skipResourceInUseCheck";
|
|
7757
|
+
const _tK = "tagKeys";
|
|
8490
7758
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
8491
7759
|
if (encoded.length) {
|
|
8492
7760
|
return JSON.parse(encoded);
|