@aws-sdk/client-lex-model-building-service 3.476.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 +284 -574
- package/dist-es/protocols/Aws_restJson1.js +285 -575
- package/package.json +5 -4
|
@@ -2,704 +2,450 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_DeleteIntentCommand = exports.de_DeleteBotVersionCommand = exports.de_DeleteBotChannelAssociationCommand = exports.de_DeleteBotAliasCommand = exports.de_DeleteBotCommand = exports.de_CreateSlotTypeVersionCommand = exports.de_CreateIntentVersionCommand = exports.de_CreateBotVersionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartMigrationCommand = exports.se_StartImportCommand = exports.se_PutSlotTypeCommand = exports.se_PutIntentCommand = exports.se_PutBotAliasCommand = exports.se_PutBotCommand = exports.se_ListTagsForResourceCommand = exports.se_GetUtterancesViewCommand = exports.se_GetSlotTypeVersionsCommand = exports.se_GetSlotTypesCommand = exports.se_GetSlotTypeCommand = exports.se_GetMigrationsCommand = exports.se_GetMigrationCommand = exports.se_GetIntentVersionsCommand = exports.se_GetIntentsCommand = exports.se_GetIntentCommand = exports.se_GetImportCommand = exports.se_GetExportCommand = exports.se_GetBuiltinSlotTypesCommand = exports.se_GetBuiltinIntentsCommand = exports.se_GetBuiltinIntentCommand = exports.se_GetBotVersionsCommand = exports.se_GetBotsCommand = exports.se_GetBotChannelAssociationsCommand = exports.se_GetBotChannelAssociationCommand = exports.se_GetBotAliasesCommand = exports.se_GetBotAliasCommand = exports.se_GetBotCommand = exports.se_DeleteUtterancesCommand = exports.se_DeleteSlotTypeVersionCommand = exports.se_DeleteSlotTypeCommand = exports.se_DeleteIntentVersionCommand = exports.se_DeleteIntentCommand = exports.se_DeleteBotVersionCommand = exports.se_DeleteBotChannelAssociationCommand = exports.se_DeleteBotAliasCommand = exports.se_DeleteBotCommand = exports.se_CreateSlotTypeVersionCommand = exports.se_CreateIntentVersionCommand = exports.se_CreateBotVersionCommand = void 0;
|
|
4
4
|
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartMigrationCommand = exports.de_StartImportCommand = exports.de_PutSlotTypeCommand = exports.de_PutIntentCommand = exports.de_PutBotAliasCommand = exports.de_PutBotCommand = exports.de_ListTagsForResourceCommand = exports.de_GetUtterancesViewCommand = exports.de_GetSlotTypeVersionsCommand = exports.de_GetSlotTypesCommand = exports.de_GetSlotTypeCommand = exports.de_GetMigrationsCommand = exports.de_GetMigrationCommand = exports.de_GetIntentVersionsCommand = exports.de_GetIntentsCommand = exports.de_GetIntentCommand = exports.de_GetImportCommand = exports.de_GetExportCommand = exports.de_GetBuiltinSlotTypesCommand = exports.de_GetBuiltinIntentsCommand = exports.de_GetBuiltinIntentCommand = exports.de_GetBotVersionsCommand = exports.de_GetBotsCommand = exports.de_GetBotChannelAssociationsCommand = exports.de_GetBotChannelAssociationCommand = exports.de_GetBotAliasesCommand = exports.de_GetBotAliasCommand = exports.de_GetBotCommand = exports.de_DeleteUtterancesCommand = exports.de_DeleteSlotTypeVersionCommand = exports.de_DeleteSlotTypeCommand = exports.de_DeleteIntentVersionCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const LexModelBuildingServiceServiceException_1 = require("../models/LexModelBuildingServiceServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CreateBotVersionCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
b.bp("/bots/{name}/versions");
|
|
15
|
+
b.p("name", () => input.name, "{name}", false);
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
checksum: [],
|
|
19
19
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
hostname,
|
|
23
|
-
port,
|
|
24
|
-
method: "POST",
|
|
25
|
-
headers,
|
|
26
|
-
path: resolvedPath,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
20
|
+
b.m("POST").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
29
22
|
};
|
|
30
23
|
exports.se_CreateBotVersionCommand = se_CreateBotVersionCommand;
|
|
31
24
|
const se_CreateIntentVersionCommand = async (input, context) => {
|
|
32
|
-
const
|
|
25
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
33
26
|
const headers = {
|
|
34
27
|
"content-type": "application/json",
|
|
35
28
|
};
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
b.bp("/intents/{name}/versions");
|
|
30
|
+
b.p("name", () => input.name, "{name}", false);
|
|
38
31
|
let body;
|
|
39
32
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
33
|
checksum: [],
|
|
41
34
|
}));
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hostname,
|
|
45
|
-
port,
|
|
46
|
-
method: "POST",
|
|
47
|
-
headers,
|
|
48
|
-
path: resolvedPath,
|
|
49
|
-
body,
|
|
50
|
-
});
|
|
35
|
+
b.m("POST").h(headers).b(body);
|
|
36
|
+
return b.build();
|
|
51
37
|
};
|
|
52
38
|
exports.se_CreateIntentVersionCommand = se_CreateIntentVersionCommand;
|
|
53
39
|
const se_CreateSlotTypeVersionCommand = async (input, context) => {
|
|
54
|
-
const
|
|
40
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
55
41
|
const headers = {
|
|
56
42
|
"content-type": "application/json",
|
|
57
43
|
};
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
b.bp("/slottypes/{name}/versions");
|
|
45
|
+
b.p("name", () => input.name, "{name}", false);
|
|
60
46
|
let body;
|
|
61
47
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
48
|
checksum: [],
|
|
63
49
|
}));
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
hostname,
|
|
67
|
-
port,
|
|
68
|
-
method: "POST",
|
|
69
|
-
headers,
|
|
70
|
-
path: resolvedPath,
|
|
71
|
-
body,
|
|
72
|
-
});
|
|
50
|
+
b.m("POST").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
73
52
|
};
|
|
74
53
|
exports.se_CreateSlotTypeVersionCommand = se_CreateSlotTypeVersionCommand;
|
|
75
54
|
const se_DeleteBotCommand = async (input, context) => {
|
|
76
|
-
const
|
|
55
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
77
56
|
const headers = {};
|
|
78
|
-
|
|
79
|
-
|
|
57
|
+
b.bp("/bots/{name}");
|
|
58
|
+
b.p("name", () => input.name, "{name}", false);
|
|
80
59
|
let body;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
hostname,
|
|
84
|
-
port,
|
|
85
|
-
method: "DELETE",
|
|
86
|
-
headers,
|
|
87
|
-
path: resolvedPath,
|
|
88
|
-
body,
|
|
89
|
-
});
|
|
60
|
+
b.m("DELETE").h(headers).b(body);
|
|
61
|
+
return b.build();
|
|
90
62
|
};
|
|
91
63
|
exports.se_DeleteBotCommand = se_DeleteBotCommand;
|
|
92
64
|
const se_DeleteBotAliasCommand = async (input, context) => {
|
|
93
|
-
const
|
|
65
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
66
|
const headers = {};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
67
|
+
b.bp("/bots/{botName}/aliases/{name}");
|
|
68
|
+
b.p("name", () => input.name, "{name}", false);
|
|
69
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
98
70
|
let body;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
hostname,
|
|
102
|
-
port,
|
|
103
|
-
method: "DELETE",
|
|
104
|
-
headers,
|
|
105
|
-
path: resolvedPath,
|
|
106
|
-
body,
|
|
107
|
-
});
|
|
71
|
+
b.m("DELETE").h(headers).b(body);
|
|
72
|
+
return b.build();
|
|
108
73
|
};
|
|
109
74
|
exports.se_DeleteBotAliasCommand = se_DeleteBotAliasCommand;
|
|
110
75
|
const se_DeleteBotChannelAssociationCommand = async (input, context) => {
|
|
111
|
-
const
|
|
76
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
112
77
|
const headers = {};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAlias", () => input.botAlias, "{botAlias}", false);
|
|
78
|
+
b.bp("/bots/{botName}/aliases/{botAlias}/channels/{name}");
|
|
79
|
+
b.p("name", () => input.name, "{name}", false);
|
|
80
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
81
|
+
b.p("botAlias", () => input.botAlias, "{botAlias}", false);
|
|
118
82
|
let body;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
hostname,
|
|
122
|
-
port,
|
|
123
|
-
method: "DELETE",
|
|
124
|
-
headers,
|
|
125
|
-
path: resolvedPath,
|
|
126
|
-
body,
|
|
127
|
-
});
|
|
83
|
+
b.m("DELETE").h(headers).b(body);
|
|
84
|
+
return b.build();
|
|
128
85
|
};
|
|
129
86
|
exports.se_DeleteBotChannelAssociationCommand = se_DeleteBotChannelAssociationCommand;
|
|
130
87
|
const se_DeleteBotVersionCommand = async (input, context) => {
|
|
131
|
-
const
|
|
88
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
132
89
|
const headers = {};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
90
|
+
b.bp("/bots/{name}/versions/{version}");
|
|
91
|
+
b.p("name", () => input.name, "{name}", false);
|
|
92
|
+
b.p("version", () => input.version, "{version}", false);
|
|
136
93
|
let body;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
hostname,
|
|
140
|
-
port,
|
|
141
|
-
method: "DELETE",
|
|
142
|
-
headers,
|
|
143
|
-
path: resolvedPath,
|
|
144
|
-
body,
|
|
145
|
-
});
|
|
94
|
+
b.m("DELETE").h(headers).b(body);
|
|
95
|
+
return b.build();
|
|
146
96
|
};
|
|
147
97
|
exports.se_DeleteBotVersionCommand = se_DeleteBotVersionCommand;
|
|
148
98
|
const se_DeleteIntentCommand = async (input, context) => {
|
|
149
|
-
const
|
|
99
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
150
100
|
const headers = {};
|
|
151
|
-
|
|
152
|
-
|
|
101
|
+
b.bp("/intents/{name}");
|
|
102
|
+
b.p("name", () => input.name, "{name}", false);
|
|
153
103
|
let body;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
hostname,
|
|
157
|
-
port,
|
|
158
|
-
method: "DELETE",
|
|
159
|
-
headers,
|
|
160
|
-
path: resolvedPath,
|
|
161
|
-
body,
|
|
162
|
-
});
|
|
104
|
+
b.m("DELETE").h(headers).b(body);
|
|
105
|
+
return b.build();
|
|
163
106
|
};
|
|
164
107
|
exports.se_DeleteIntentCommand = se_DeleteIntentCommand;
|
|
165
108
|
const se_DeleteIntentVersionCommand = async (input, context) => {
|
|
166
|
-
const
|
|
109
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
167
110
|
const headers = {};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
111
|
+
b.bp("/intents/{name}/versions/{version}");
|
|
112
|
+
b.p("name", () => input.name, "{name}", false);
|
|
113
|
+
b.p("version", () => input.version, "{version}", false);
|
|
171
114
|
let body;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
hostname,
|
|
175
|
-
port,
|
|
176
|
-
method: "DELETE",
|
|
177
|
-
headers,
|
|
178
|
-
path: resolvedPath,
|
|
179
|
-
body,
|
|
180
|
-
});
|
|
115
|
+
b.m("DELETE").h(headers).b(body);
|
|
116
|
+
return b.build();
|
|
181
117
|
};
|
|
182
118
|
exports.se_DeleteIntentVersionCommand = se_DeleteIntentVersionCommand;
|
|
183
119
|
const se_DeleteSlotTypeCommand = async (input, context) => {
|
|
184
|
-
const
|
|
120
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
185
121
|
const headers = {};
|
|
186
|
-
|
|
187
|
-
|
|
122
|
+
b.bp("/slottypes/{name}");
|
|
123
|
+
b.p("name", () => input.name, "{name}", false);
|
|
188
124
|
let body;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
hostname,
|
|
192
|
-
port,
|
|
193
|
-
method: "DELETE",
|
|
194
|
-
headers,
|
|
195
|
-
path: resolvedPath,
|
|
196
|
-
body,
|
|
197
|
-
});
|
|
125
|
+
b.m("DELETE").h(headers).b(body);
|
|
126
|
+
return b.build();
|
|
198
127
|
};
|
|
199
128
|
exports.se_DeleteSlotTypeCommand = se_DeleteSlotTypeCommand;
|
|
200
129
|
const se_DeleteSlotTypeVersionCommand = async (input, context) => {
|
|
201
|
-
const
|
|
130
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
202
131
|
const headers = {};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
132
|
+
b.bp("/slottypes/{name}/version/{version}");
|
|
133
|
+
b.p("name", () => input.name, "{name}", false);
|
|
134
|
+
b.p("version", () => input.version, "{version}", false);
|
|
206
135
|
let body;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
hostname,
|
|
210
|
-
port,
|
|
211
|
-
method: "DELETE",
|
|
212
|
-
headers,
|
|
213
|
-
path: resolvedPath,
|
|
214
|
-
body,
|
|
215
|
-
});
|
|
136
|
+
b.m("DELETE").h(headers).b(body);
|
|
137
|
+
return b.build();
|
|
216
138
|
};
|
|
217
139
|
exports.se_DeleteSlotTypeVersionCommand = se_DeleteSlotTypeVersionCommand;
|
|
218
140
|
const se_DeleteUtterancesCommand = async (input, context) => {
|
|
219
|
-
const
|
|
141
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
220
142
|
const headers = {};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
143
|
+
b.bp("/bots/{botName}/utterances/{userId}");
|
|
144
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
145
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
224
146
|
let body;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
hostname,
|
|
228
|
-
port,
|
|
229
|
-
method: "DELETE",
|
|
230
|
-
headers,
|
|
231
|
-
path: resolvedPath,
|
|
232
|
-
body,
|
|
233
|
-
});
|
|
147
|
+
b.m("DELETE").h(headers).b(body);
|
|
148
|
+
return b.build();
|
|
234
149
|
};
|
|
235
150
|
exports.se_DeleteUtterancesCommand = se_DeleteUtterancesCommand;
|
|
236
151
|
const se_GetBotCommand = async (input, context) => {
|
|
237
|
-
const
|
|
152
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
238
153
|
const headers = {};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
154
|
+
b.bp("/bots/{name}/versions/{versionOrAlias}");
|
|
155
|
+
b.p("name", () => input.name, "{name}", false);
|
|
156
|
+
b.p("versionOrAlias", () => input.versionOrAlias, "{versionOrAlias}", false);
|
|
242
157
|
let body;
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
hostname,
|
|
246
|
-
port,
|
|
247
|
-
method: "GET",
|
|
248
|
-
headers,
|
|
249
|
-
path: resolvedPath,
|
|
250
|
-
body,
|
|
251
|
-
});
|
|
158
|
+
b.m("GET").h(headers).b(body);
|
|
159
|
+
return b.build();
|
|
252
160
|
};
|
|
253
161
|
exports.se_GetBotCommand = se_GetBotCommand;
|
|
254
162
|
const se_GetBotAliasCommand = async (input, context) => {
|
|
255
|
-
const
|
|
163
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
256
164
|
const headers = {};
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
165
|
+
b.bp("/bots/{botName}/aliases/{name}");
|
|
166
|
+
b.p("name", () => input.name, "{name}", false);
|
|
167
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
260
168
|
let body;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
hostname,
|
|
264
|
-
port,
|
|
265
|
-
method: "GET",
|
|
266
|
-
headers,
|
|
267
|
-
path: resolvedPath,
|
|
268
|
-
body,
|
|
269
|
-
});
|
|
169
|
+
b.m("GET").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
270
171
|
};
|
|
271
172
|
exports.se_GetBotAliasCommand = se_GetBotAliasCommand;
|
|
272
173
|
const se_GetBotAliasesCommand = async (input, context) => {
|
|
273
|
-
const
|
|
174
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
274
175
|
const headers = {};
|
|
275
|
-
|
|
276
|
-
|
|
176
|
+
b.bp("/bots/{botName}/aliases");
|
|
177
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
277
178
|
const query = (0, smithy_client_1.map)({
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
179
|
+
[_nT]: [, input[_nT]],
|
|
180
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
181
|
+
[_nC]: [, input[_nC]],
|
|
281
182
|
});
|
|
282
183
|
let body;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
hostname,
|
|
286
|
-
port,
|
|
287
|
-
method: "GET",
|
|
288
|
-
headers,
|
|
289
|
-
path: resolvedPath,
|
|
290
|
-
query,
|
|
291
|
-
body,
|
|
292
|
-
});
|
|
184
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
185
|
+
return b.build();
|
|
293
186
|
};
|
|
294
187
|
exports.se_GetBotAliasesCommand = se_GetBotAliasesCommand;
|
|
295
188
|
const se_GetBotChannelAssociationCommand = async (input, context) => {
|
|
296
|
-
const
|
|
189
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
297
190
|
const headers = {};
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAlias", () => input.botAlias, "{botAlias}", false);
|
|
191
|
+
b.bp("/bots/{botName}/aliases/{botAlias}/channels/{name}");
|
|
192
|
+
b.p("name", () => input.name, "{name}", false);
|
|
193
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
194
|
+
b.p("botAlias", () => input.botAlias, "{botAlias}", false);
|
|
303
195
|
let body;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
hostname,
|
|
307
|
-
port,
|
|
308
|
-
method: "GET",
|
|
309
|
-
headers,
|
|
310
|
-
path: resolvedPath,
|
|
311
|
-
body,
|
|
312
|
-
});
|
|
196
|
+
b.m("GET").h(headers).b(body);
|
|
197
|
+
return b.build();
|
|
313
198
|
};
|
|
314
199
|
exports.se_GetBotChannelAssociationCommand = se_GetBotChannelAssociationCommand;
|
|
315
200
|
const se_GetBotChannelAssociationsCommand = async (input, context) => {
|
|
316
|
-
const
|
|
201
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
317
202
|
const headers = {};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAlias", () => input.botAlias, "{botAlias}", false);
|
|
203
|
+
b.bp("/bots/{botName}/aliases/{botAlias}/channels");
|
|
204
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
205
|
+
b.p("botAlias", () => input.botAlias, "{botAlias}", false);
|
|
322
206
|
const query = (0, smithy_client_1.map)({
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
207
|
+
[_nT]: [, input[_nT]],
|
|
208
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
209
|
+
[_nC]: [, input[_nC]],
|
|
326
210
|
});
|
|
327
211
|
let body;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
hostname,
|
|
331
|
-
port,
|
|
332
|
-
method: "GET",
|
|
333
|
-
headers,
|
|
334
|
-
path: resolvedPath,
|
|
335
|
-
query,
|
|
336
|
-
body,
|
|
337
|
-
});
|
|
212
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
213
|
+
return b.build();
|
|
338
214
|
};
|
|
339
215
|
exports.se_GetBotChannelAssociationsCommand = se_GetBotChannelAssociationsCommand;
|
|
340
216
|
const se_GetBotsCommand = async (input, context) => {
|
|
341
|
-
const
|
|
217
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
342
218
|
const headers = {};
|
|
343
|
-
|
|
219
|
+
b.bp("/bots");
|
|
344
220
|
const query = (0, smithy_client_1.map)({
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
221
|
+
[_nT]: [, input[_nT]],
|
|
222
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
223
|
+
[_nC]: [, input[_nC]],
|
|
348
224
|
});
|
|
349
225
|
let body;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
hostname,
|
|
353
|
-
port,
|
|
354
|
-
method: "GET",
|
|
355
|
-
headers,
|
|
356
|
-
path: resolvedPath,
|
|
357
|
-
query,
|
|
358
|
-
body,
|
|
359
|
-
});
|
|
226
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
227
|
+
return b.build();
|
|
360
228
|
};
|
|
361
229
|
exports.se_GetBotsCommand = se_GetBotsCommand;
|
|
362
230
|
const se_GetBotVersionsCommand = async (input, context) => {
|
|
363
|
-
const
|
|
231
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
364
232
|
const headers = {};
|
|
365
|
-
|
|
366
|
-
|
|
233
|
+
b.bp("/bots/{name}/versions");
|
|
234
|
+
b.p("name", () => input.name, "{name}", false);
|
|
367
235
|
const query = (0, smithy_client_1.map)({
|
|
368
|
-
|
|
369
|
-
|
|
236
|
+
[_nT]: [, input[_nT]],
|
|
237
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
370
238
|
});
|
|
371
239
|
let body;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
hostname,
|
|
375
|
-
port,
|
|
376
|
-
method: "GET",
|
|
377
|
-
headers,
|
|
378
|
-
path: resolvedPath,
|
|
379
|
-
query,
|
|
380
|
-
body,
|
|
381
|
-
});
|
|
240
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
241
|
+
return b.build();
|
|
382
242
|
};
|
|
383
243
|
exports.se_GetBotVersionsCommand = se_GetBotVersionsCommand;
|
|
384
244
|
const se_GetBuiltinIntentCommand = async (input, context) => {
|
|
385
|
-
const
|
|
245
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
386
246
|
const headers = {};
|
|
387
|
-
|
|
388
|
-
|
|
247
|
+
b.bp("/builtins/intents/{signature}");
|
|
248
|
+
b.p("signature", () => input.signature, "{signature}", false);
|
|
389
249
|
let body;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
hostname,
|
|
393
|
-
port,
|
|
394
|
-
method: "GET",
|
|
395
|
-
headers,
|
|
396
|
-
path: resolvedPath,
|
|
397
|
-
body,
|
|
398
|
-
});
|
|
250
|
+
b.m("GET").h(headers).b(body);
|
|
251
|
+
return b.build();
|
|
399
252
|
};
|
|
400
253
|
exports.se_GetBuiltinIntentCommand = se_GetBuiltinIntentCommand;
|
|
401
254
|
const se_GetBuiltinIntentsCommand = async (input, context) => {
|
|
402
|
-
const
|
|
255
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
403
256
|
const headers = {};
|
|
404
|
-
|
|
257
|
+
b.bp("/builtins/intents");
|
|
405
258
|
const query = (0, smithy_client_1.map)({
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
259
|
+
[_l]: [, input[_l]],
|
|
260
|
+
[_sC]: [, input[_sC]],
|
|
261
|
+
[_nT]: [, input[_nT]],
|
|
262
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
410
263
|
});
|
|
411
264
|
let body;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
hostname,
|
|
415
|
-
port,
|
|
416
|
-
method: "GET",
|
|
417
|
-
headers,
|
|
418
|
-
path: resolvedPath,
|
|
419
|
-
query,
|
|
420
|
-
body,
|
|
421
|
-
});
|
|
265
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
266
|
+
return b.build();
|
|
422
267
|
};
|
|
423
268
|
exports.se_GetBuiltinIntentsCommand = se_GetBuiltinIntentsCommand;
|
|
424
269
|
const se_GetBuiltinSlotTypesCommand = async (input, context) => {
|
|
425
|
-
const
|
|
270
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
426
271
|
const headers = {};
|
|
427
|
-
|
|
272
|
+
b.bp("/builtins/slottypes");
|
|
428
273
|
const query = (0, smithy_client_1.map)({
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
274
|
+
[_l]: [, input[_l]],
|
|
275
|
+
[_sC]: [, input[_sC]],
|
|
276
|
+
[_nT]: [, input[_nT]],
|
|
277
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
433
278
|
});
|
|
434
279
|
let body;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
hostname,
|
|
438
|
-
port,
|
|
439
|
-
method: "GET",
|
|
440
|
-
headers,
|
|
441
|
-
path: resolvedPath,
|
|
442
|
-
query,
|
|
443
|
-
body,
|
|
444
|
-
});
|
|
280
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
281
|
+
return b.build();
|
|
445
282
|
};
|
|
446
283
|
exports.se_GetBuiltinSlotTypesCommand = se_GetBuiltinSlotTypesCommand;
|
|
447
284
|
const se_GetExportCommand = async (input, context) => {
|
|
448
|
-
const
|
|
285
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
449
286
|
const headers = {};
|
|
450
|
-
|
|
287
|
+
b.bp("/exports");
|
|
451
288
|
const query = (0, smithy_client_1.map)({
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
289
|
+
[_n]: [, (0, smithy_client_1.expectNonNull)(input[_n], `name`)],
|
|
290
|
+
[_v]: [, (0, smithy_client_1.expectNonNull)(input[_v], `version`)],
|
|
291
|
+
[_rT]: [, (0, smithy_client_1.expectNonNull)(input[_rT], `resourceType`)],
|
|
292
|
+
[_eT]: [, (0, smithy_client_1.expectNonNull)(input[_eT], `exportType`)],
|
|
456
293
|
});
|
|
457
294
|
let body;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
hostname,
|
|
461
|
-
port,
|
|
462
|
-
method: "GET",
|
|
463
|
-
headers,
|
|
464
|
-
path: resolvedPath,
|
|
465
|
-
query,
|
|
466
|
-
body,
|
|
467
|
-
});
|
|
295
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
296
|
+
return b.build();
|
|
468
297
|
};
|
|
469
298
|
exports.se_GetExportCommand = se_GetExportCommand;
|
|
470
299
|
const se_GetImportCommand = async (input, context) => {
|
|
471
|
-
const
|
|
300
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
472
301
|
const headers = {};
|
|
473
|
-
|
|
474
|
-
|
|
302
|
+
b.bp("/imports/{importId}");
|
|
303
|
+
b.p("importId", () => input.importId, "{importId}", false);
|
|
475
304
|
let body;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
hostname,
|
|
479
|
-
port,
|
|
480
|
-
method: "GET",
|
|
481
|
-
headers,
|
|
482
|
-
path: resolvedPath,
|
|
483
|
-
body,
|
|
484
|
-
});
|
|
305
|
+
b.m("GET").h(headers).b(body);
|
|
306
|
+
return b.build();
|
|
485
307
|
};
|
|
486
308
|
exports.se_GetImportCommand = se_GetImportCommand;
|
|
487
309
|
const se_GetIntentCommand = async (input, context) => {
|
|
488
|
-
const
|
|
310
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
489
311
|
const headers = {};
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
312
|
+
b.bp("/intents/{name}/versions/{version}");
|
|
313
|
+
b.p("name", () => input.name, "{name}", false);
|
|
314
|
+
b.p("version", () => input.version, "{version}", false);
|
|
493
315
|
let body;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
hostname,
|
|
497
|
-
port,
|
|
498
|
-
method: "GET",
|
|
499
|
-
headers,
|
|
500
|
-
path: resolvedPath,
|
|
501
|
-
body,
|
|
502
|
-
});
|
|
316
|
+
b.m("GET").h(headers).b(body);
|
|
317
|
+
return b.build();
|
|
503
318
|
};
|
|
504
319
|
exports.se_GetIntentCommand = se_GetIntentCommand;
|
|
505
320
|
const se_GetIntentsCommand = async (input, context) => {
|
|
506
|
-
const
|
|
321
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
507
322
|
const headers = {};
|
|
508
|
-
|
|
323
|
+
b.bp("/intents");
|
|
509
324
|
const query = (0, smithy_client_1.map)({
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
325
|
+
[_nT]: [, input[_nT]],
|
|
326
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
327
|
+
[_nC]: [, input[_nC]],
|
|
513
328
|
});
|
|
514
329
|
let body;
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
hostname,
|
|
518
|
-
port,
|
|
519
|
-
method: "GET",
|
|
520
|
-
headers,
|
|
521
|
-
path: resolvedPath,
|
|
522
|
-
query,
|
|
523
|
-
body,
|
|
524
|
-
});
|
|
330
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
331
|
+
return b.build();
|
|
525
332
|
};
|
|
526
333
|
exports.se_GetIntentsCommand = se_GetIntentsCommand;
|
|
527
334
|
const se_GetIntentVersionsCommand = async (input, context) => {
|
|
528
|
-
const
|
|
335
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
529
336
|
const headers = {};
|
|
530
|
-
|
|
531
|
-
|
|
337
|
+
b.bp("/intents/{name}/versions");
|
|
338
|
+
b.p("name", () => input.name, "{name}", false);
|
|
532
339
|
const query = (0, smithy_client_1.map)({
|
|
533
|
-
|
|
534
|
-
|
|
340
|
+
[_nT]: [, input[_nT]],
|
|
341
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
535
342
|
});
|
|
536
343
|
let body;
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
hostname,
|
|
540
|
-
port,
|
|
541
|
-
method: "GET",
|
|
542
|
-
headers,
|
|
543
|
-
path: resolvedPath,
|
|
544
|
-
query,
|
|
545
|
-
body,
|
|
546
|
-
});
|
|
344
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
345
|
+
return b.build();
|
|
547
346
|
};
|
|
548
347
|
exports.se_GetIntentVersionsCommand = se_GetIntentVersionsCommand;
|
|
549
348
|
const se_GetMigrationCommand = async (input, context) => {
|
|
550
|
-
const
|
|
349
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
551
350
|
const headers = {};
|
|
552
|
-
|
|
553
|
-
|
|
351
|
+
b.bp("/migrations/{migrationId}");
|
|
352
|
+
b.p("migrationId", () => input.migrationId, "{migrationId}", false);
|
|
554
353
|
let body;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
hostname,
|
|
558
|
-
port,
|
|
559
|
-
method: "GET",
|
|
560
|
-
headers,
|
|
561
|
-
path: resolvedPath,
|
|
562
|
-
body,
|
|
563
|
-
});
|
|
354
|
+
b.m("GET").h(headers).b(body);
|
|
355
|
+
return b.build();
|
|
564
356
|
};
|
|
565
357
|
exports.se_GetMigrationCommand = se_GetMigrationCommand;
|
|
566
358
|
const se_GetMigrationsCommand = async (input, context) => {
|
|
567
|
-
const
|
|
359
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
568
360
|
const headers = {};
|
|
569
|
-
|
|
361
|
+
b.bp("/migrations");
|
|
570
362
|
const query = (0, smithy_client_1.map)({
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
363
|
+
[_sBA]: [, input[_sBA]],
|
|
364
|
+
[_sBO]: [, input[_sBO]],
|
|
365
|
+
[_vBNC]: [, input[_vBNC]],
|
|
366
|
+
[_mSE]: [, input[_mSE]],
|
|
367
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
368
|
+
[_nT]: [, input[_nT]],
|
|
577
369
|
});
|
|
578
370
|
let body;
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
hostname,
|
|
582
|
-
port,
|
|
583
|
-
method: "GET",
|
|
584
|
-
headers,
|
|
585
|
-
path: resolvedPath,
|
|
586
|
-
query,
|
|
587
|
-
body,
|
|
588
|
-
});
|
|
371
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
372
|
+
return b.build();
|
|
589
373
|
};
|
|
590
374
|
exports.se_GetMigrationsCommand = se_GetMigrationsCommand;
|
|
591
375
|
const se_GetSlotTypeCommand = async (input, context) => {
|
|
592
|
-
const
|
|
376
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
593
377
|
const headers = {};
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
378
|
+
b.bp("/slottypes/{name}/versions/{version}");
|
|
379
|
+
b.p("name", () => input.name, "{name}", false);
|
|
380
|
+
b.p("version", () => input.version, "{version}", false);
|
|
597
381
|
let body;
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
hostname,
|
|
601
|
-
port,
|
|
602
|
-
method: "GET",
|
|
603
|
-
headers,
|
|
604
|
-
path: resolvedPath,
|
|
605
|
-
body,
|
|
606
|
-
});
|
|
382
|
+
b.m("GET").h(headers).b(body);
|
|
383
|
+
return b.build();
|
|
607
384
|
};
|
|
608
385
|
exports.se_GetSlotTypeCommand = se_GetSlotTypeCommand;
|
|
609
386
|
const se_GetSlotTypesCommand = async (input, context) => {
|
|
610
|
-
const
|
|
387
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
611
388
|
const headers = {};
|
|
612
|
-
|
|
389
|
+
b.bp("/slottypes");
|
|
613
390
|
const query = (0, smithy_client_1.map)({
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
391
|
+
[_nT]: [, input[_nT]],
|
|
392
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
393
|
+
[_nC]: [, input[_nC]],
|
|
617
394
|
});
|
|
618
395
|
let body;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
hostname,
|
|
622
|
-
port,
|
|
623
|
-
method: "GET",
|
|
624
|
-
headers,
|
|
625
|
-
path: resolvedPath,
|
|
626
|
-
query,
|
|
627
|
-
body,
|
|
628
|
-
});
|
|
396
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
397
|
+
return b.build();
|
|
629
398
|
};
|
|
630
399
|
exports.se_GetSlotTypesCommand = se_GetSlotTypesCommand;
|
|
631
400
|
const se_GetSlotTypeVersionsCommand = async (input, context) => {
|
|
632
|
-
const
|
|
401
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
633
402
|
const headers = {};
|
|
634
|
-
|
|
635
|
-
|
|
403
|
+
b.bp("/slottypes/{name}/versions");
|
|
404
|
+
b.p("name", () => input.name, "{name}", false);
|
|
636
405
|
const query = (0, smithy_client_1.map)({
|
|
637
|
-
|
|
638
|
-
|
|
406
|
+
[_nT]: [, input[_nT]],
|
|
407
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
639
408
|
});
|
|
640
409
|
let body;
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
hostname,
|
|
644
|
-
port,
|
|
645
|
-
method: "GET",
|
|
646
|
-
headers,
|
|
647
|
-
path: resolvedPath,
|
|
648
|
-
query,
|
|
649
|
-
body,
|
|
650
|
-
});
|
|
410
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
411
|
+
return b.build();
|
|
651
412
|
};
|
|
652
413
|
exports.se_GetSlotTypeVersionsCommand = se_GetSlotTypeVersionsCommand;
|
|
653
414
|
const se_GetUtterancesViewCommand = async (input, context) => {
|
|
654
|
-
const
|
|
415
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
655
416
|
const headers = {};
|
|
656
|
-
|
|
657
|
-
|
|
417
|
+
b.bp("/bots/{botName}/utterances");
|
|
418
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
658
419
|
const query = (0, smithy_client_1.map)({
|
|
659
|
-
|
|
660
|
-
|
|
420
|
+
[_vi]: [, "aggregation"],
|
|
421
|
+
[_bv]: [
|
|
661
422
|
(0, smithy_client_1.expectNonNull)(input.botVersions, `botVersions`) != null,
|
|
662
|
-
() => (input
|
|
423
|
+
() => (input[_bV] || []).map((_entry) => _entry),
|
|
663
424
|
],
|
|
664
|
-
|
|
425
|
+
[_st]: [, (0, smithy_client_1.expectNonNull)(input[_sT], `statusType`)],
|
|
665
426
|
});
|
|
666
427
|
let body;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
hostname,
|
|
670
|
-
port,
|
|
671
|
-
method: "GET",
|
|
672
|
-
headers,
|
|
673
|
-
path: resolvedPath,
|
|
674
|
-
query,
|
|
675
|
-
body,
|
|
676
|
-
});
|
|
428
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
429
|
+
return b.build();
|
|
677
430
|
};
|
|
678
431
|
exports.se_GetUtterancesViewCommand = se_GetUtterancesViewCommand;
|
|
679
432
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
680
|
-
const
|
|
433
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
681
434
|
const headers = {};
|
|
682
|
-
|
|
683
|
-
|
|
435
|
+
b.bp("/tags/{resourceArn}");
|
|
436
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
684
437
|
let body;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
hostname,
|
|
688
|
-
port,
|
|
689
|
-
method: "GET",
|
|
690
|
-
headers,
|
|
691
|
-
path: resolvedPath,
|
|
692
|
-
body,
|
|
693
|
-
});
|
|
438
|
+
b.m("GET").h(headers).b(body);
|
|
439
|
+
return b.build();
|
|
694
440
|
};
|
|
695
441
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
696
442
|
const se_PutBotCommand = async (input, context) => {
|
|
697
|
-
const
|
|
443
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
698
444
|
const headers = {
|
|
699
445
|
"content-type": "application/json",
|
|
700
446
|
};
|
|
701
|
-
|
|
702
|
-
|
|
447
|
+
b.bp("/bots/{name}/versions/$LATEST");
|
|
448
|
+
b.p("name", () => input.name, "{name}", false);
|
|
703
449
|
let body;
|
|
704
450
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
705
451
|
abortStatement: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -718,25 +464,18 @@ const se_PutBotCommand = async (input, context) => {
|
|
|
718
464
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
719
465
|
voiceId: [],
|
|
720
466
|
}));
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
hostname,
|
|
724
|
-
port,
|
|
725
|
-
method: "PUT",
|
|
726
|
-
headers,
|
|
727
|
-
path: resolvedPath,
|
|
728
|
-
body,
|
|
729
|
-
});
|
|
467
|
+
b.m("PUT").h(headers).b(body);
|
|
468
|
+
return b.build();
|
|
730
469
|
};
|
|
731
470
|
exports.se_PutBotCommand = se_PutBotCommand;
|
|
732
471
|
const se_PutBotAliasCommand = async (input, context) => {
|
|
733
|
-
const
|
|
472
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
734
473
|
const headers = {
|
|
735
474
|
"content-type": "application/json",
|
|
736
475
|
};
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
476
|
+
b.bp("/bots/{botName}/aliases/{name}");
|
|
477
|
+
b.p("name", () => input.name, "{name}", false);
|
|
478
|
+
b.p("botName", () => input.botName, "{botName}", false);
|
|
740
479
|
let body;
|
|
741
480
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
742
481
|
botVersion: [],
|
|
@@ -745,24 +484,17 @@ const se_PutBotAliasCommand = async (input, context) => {
|
|
|
745
484
|
description: [],
|
|
746
485
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
747
486
|
}));
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
hostname,
|
|
751
|
-
port,
|
|
752
|
-
method: "PUT",
|
|
753
|
-
headers,
|
|
754
|
-
path: resolvedPath,
|
|
755
|
-
body,
|
|
756
|
-
});
|
|
487
|
+
b.m("PUT").h(headers).b(body);
|
|
488
|
+
return b.build();
|
|
757
489
|
};
|
|
758
490
|
exports.se_PutBotAliasCommand = se_PutBotAliasCommand;
|
|
759
491
|
const se_PutIntentCommand = async (input, context) => {
|
|
760
|
-
const
|
|
492
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
761
493
|
const headers = {
|
|
762
494
|
"content-type": "application/json",
|
|
763
495
|
};
|
|
764
|
-
|
|
765
|
-
|
|
496
|
+
b.bp("/intents/{name}/versions/$LATEST");
|
|
497
|
+
b.p("name", () => input.name, "{name}", false);
|
|
766
498
|
let body;
|
|
767
499
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
768
500
|
checksum: [],
|
|
@@ -781,24 +513,17 @@ const se_PutIntentCommand = async (input, context) => {
|
|
|
781
513
|
sampleUtterances: (_) => (0, smithy_client_1._json)(_),
|
|
782
514
|
slots: (_) => (0, smithy_client_1._json)(_),
|
|
783
515
|
}));
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
hostname,
|
|
787
|
-
port,
|
|
788
|
-
method: "PUT",
|
|
789
|
-
headers,
|
|
790
|
-
path: resolvedPath,
|
|
791
|
-
body,
|
|
792
|
-
});
|
|
516
|
+
b.m("PUT").h(headers).b(body);
|
|
517
|
+
return b.build();
|
|
793
518
|
};
|
|
794
519
|
exports.se_PutIntentCommand = se_PutIntentCommand;
|
|
795
520
|
const se_PutSlotTypeCommand = async (input, context) => {
|
|
796
|
-
const
|
|
521
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
797
522
|
const headers = {
|
|
798
523
|
"content-type": "application/json",
|
|
799
524
|
};
|
|
800
|
-
|
|
801
|
-
|
|
525
|
+
b.bp("/slottypes/{name}/versions/$LATEST");
|
|
526
|
+
b.p("name", () => input.name, "{name}", false);
|
|
802
527
|
let body;
|
|
803
528
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
804
529
|
checksum: [],
|
|
@@ -809,23 +534,16 @@ const se_PutSlotTypeCommand = async (input, context) => {
|
|
|
809
534
|
slotTypeConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
810
535
|
valueSelectionStrategy: [],
|
|
811
536
|
}));
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
hostname,
|
|
815
|
-
port,
|
|
816
|
-
method: "PUT",
|
|
817
|
-
headers,
|
|
818
|
-
path: resolvedPath,
|
|
819
|
-
body,
|
|
820
|
-
});
|
|
537
|
+
b.m("PUT").h(headers).b(body);
|
|
538
|
+
return b.build();
|
|
821
539
|
};
|
|
822
540
|
exports.se_PutSlotTypeCommand = se_PutSlotTypeCommand;
|
|
823
541
|
const se_StartImportCommand = async (input, context) => {
|
|
824
|
-
const
|
|
542
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
825
543
|
const headers = {
|
|
826
544
|
"content-type": "application/json",
|
|
827
545
|
};
|
|
828
|
-
|
|
546
|
+
b.bp("/imports");
|
|
829
547
|
let body;
|
|
830
548
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
831
549
|
mergeStrategy: [],
|
|
@@ -833,23 +551,16 @@ const se_StartImportCommand = async (input, context) => {
|
|
|
833
551
|
resourceType: [],
|
|
834
552
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
835
553
|
}));
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
hostname,
|
|
839
|
-
port,
|
|
840
|
-
method: "POST",
|
|
841
|
-
headers,
|
|
842
|
-
path: resolvedPath,
|
|
843
|
-
body,
|
|
844
|
-
});
|
|
554
|
+
b.m("POST").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
845
556
|
};
|
|
846
557
|
exports.se_StartImportCommand = se_StartImportCommand;
|
|
847
558
|
const se_StartMigrationCommand = async (input, context) => {
|
|
848
|
-
const
|
|
559
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
849
560
|
const headers = {
|
|
850
561
|
"content-type": "application/json",
|
|
851
562
|
};
|
|
852
|
-
|
|
563
|
+
b.bp("/migrations");
|
|
853
564
|
let body;
|
|
854
565
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
855
566
|
migrationStrategy: [],
|
|
@@ -858,61 +569,39 @@ const se_StartMigrationCommand = async (input, context) => {
|
|
|
858
569
|
v2BotName: [],
|
|
859
570
|
v2BotRole: [],
|
|
860
571
|
}));
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
hostname,
|
|
864
|
-
port,
|
|
865
|
-
method: "POST",
|
|
866
|
-
headers,
|
|
867
|
-
path: resolvedPath,
|
|
868
|
-
body,
|
|
869
|
-
});
|
|
572
|
+
b.m("POST").h(headers).b(body);
|
|
573
|
+
return b.build();
|
|
870
574
|
};
|
|
871
575
|
exports.se_StartMigrationCommand = se_StartMigrationCommand;
|
|
872
576
|
const se_TagResourceCommand = async (input, context) => {
|
|
873
|
-
const
|
|
577
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
874
578
|
const headers = {
|
|
875
579
|
"content-type": "application/json",
|
|
876
580
|
};
|
|
877
|
-
|
|
878
|
-
|
|
581
|
+
b.bp("/tags/{resourceArn}");
|
|
582
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
879
583
|
let body;
|
|
880
584
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
881
585
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
882
586
|
}));
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
hostname,
|
|
886
|
-
port,
|
|
887
|
-
method: "POST",
|
|
888
|
-
headers,
|
|
889
|
-
path: resolvedPath,
|
|
890
|
-
body,
|
|
891
|
-
});
|
|
587
|
+
b.m("POST").h(headers).b(body);
|
|
588
|
+
return b.build();
|
|
892
589
|
};
|
|
893
590
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
894
591
|
const se_UntagResourceCommand = async (input, context) => {
|
|
895
|
-
const
|
|
592
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
896
593
|
const headers = {};
|
|
897
|
-
|
|
898
|
-
|
|
594
|
+
b.bp("/tags/{resourceArn}");
|
|
595
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
899
596
|
const query = (0, smithy_client_1.map)({
|
|
900
|
-
|
|
597
|
+
[_tK]: [
|
|
901
598
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
902
|
-
() => (input
|
|
599
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
903
600
|
],
|
|
904
601
|
});
|
|
905
602
|
let body;
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
hostname,
|
|
909
|
-
port,
|
|
910
|
-
method: "DELETE",
|
|
911
|
-
headers,
|
|
912
|
-
path: resolvedPath,
|
|
913
|
-
query,
|
|
914
|
-
body,
|
|
915
|
-
});
|
|
603
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
604
|
+
return b.build();
|
|
916
605
|
};
|
|
917
606
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
918
607
|
const de_CreateBotVersionCommand = async (output, context) => {
|
|
@@ -2998,7 +2687,7 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
2998
2687
|
};
|
|
2999
2688
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3000
2689
|
const contents = (0, smithy_client_1.map)({
|
|
3001
|
-
|
|
2690
|
+
[_rAS]: [, parsedOutput.headers[_ra]],
|
|
3002
2691
|
});
|
|
3003
2692
|
const data = parsedOutput.body;
|
|
3004
2693
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -3208,6 +2897,27 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
3208
2897
|
value !== "" &&
|
|
3209
2898
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3210
2899
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2900
|
+
const _bV = "botVersions";
|
|
2901
|
+
const _bv = "bot_versions";
|
|
2902
|
+
const _eT = "exportType";
|
|
2903
|
+
const _l = "locale";
|
|
2904
|
+
const _mR = "maxResults";
|
|
2905
|
+
const _mSE = "migrationStatusEquals";
|
|
2906
|
+
const _n = "name";
|
|
2907
|
+
const _nC = "nameContains";
|
|
2908
|
+
const _nT = "nextToken";
|
|
2909
|
+
const _rAS = "retryAfterSeconds";
|
|
2910
|
+
const _rT = "resourceType";
|
|
2911
|
+
const _ra = "retry-after";
|
|
2912
|
+
const _sBA = "sortByAttribute";
|
|
2913
|
+
const _sBO = "sortByOrder";
|
|
2914
|
+
const _sC = "signatureContains";
|
|
2915
|
+
const _sT = "statusType";
|
|
2916
|
+
const _st = "status_type";
|
|
2917
|
+
const _tK = "tagKeys";
|
|
2918
|
+
const _v = "version";
|
|
2919
|
+
const _vBNC = "v1BotNameContains";
|
|
2920
|
+
const _vi = "view";
|
|
3211
2921
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3212
2922
|
if (encoded.length) {
|
|
3213
2923
|
return JSON.parse(encoded);
|