@wildix/xbees-users-client 1.0.38 → 1.0.39
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/UsersClient.js +4 -5
- package/dist-cjs/models/models_0.js +26 -21
- package/dist-cjs/protocols/Aws_restJson1.js +73 -116
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/UsersClient.js +4 -5
- package/dist-es/models/models_0.js +21 -16
- package/dist-es/protocols/Aws_restJson1.js +6 -49
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +5 -4
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/UsersClient.d.ts +1 -1
- package/dist-types/commands/BatchGetUsersCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +12 -0
- package/dist-types/commands/ChangeUserEmailCommand.d.ts +12 -0
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +14 -1
- package/dist-types/commands/CreateBotCommand.d.ts +17 -3
- package/dist-types/commands/CreateSystemBotCommand.d.ts +12 -0
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +12 -0
- package/dist-types/commands/DeleteBotCommand.d.ts +12 -0
- package/dist-types/commands/GetBotCallbackCommand.d.ts +13 -1
- package/dist-types/commands/GetBotCommand.d.ts +14 -1
- package/dist-types/commands/GetUserCommand.d.ts +12 -0
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +12 -0
- package/dist-types/commands/IntelligenceSearchCommand.d.ts +12 -0
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +12 -0
- package/dist-types/commands/ListBotsCommand.d.ts +14 -1
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/QueryColleaguesCommand.d.ts +12 -0
- package/dist-types/commands/QueryUserCommand.d.ts +12 -0
- package/dist-types/commands/QueryUsersCommand.d.ts +12 -0
- package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +12 -0
- package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +12 -0
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +14 -2
- package/dist-types/commands/UpdateBotCommand.d.ts +17 -3
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/UploadPictureCommand.d.ts +12 -0
- package/dist-types/commands/UploadPictureV1Command.d.ts +12 -0
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +12 -0
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +162 -118
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +3 -2
- package/dist-types/runtimeConfig.native.d.ts +3 -2
- package/package.json +37 -33
|
@@ -4,10 +4,11 @@ exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggesti
|
|
|
4
4
|
exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateUserEmailNotificationsSettingsCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_IntelligenceSearchCommand = void 0;
|
|
5
5
|
const UsersServiceException_1 = require("../models/UsersServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
|
-
const core_1 = require("@
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
8
|
+
const core_2 = require("@smithy/core");
|
|
8
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
10
|
const se_BatchGetUsersCommand = async (input, context) => {
|
|
10
|
-
const b = (0,
|
|
11
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
12
|
const headers = {
|
|
12
13
|
'content-type': 'application/json',
|
|
13
14
|
};
|
|
@@ -23,7 +24,7 @@ const se_BatchGetUsersCommand = async (input, context) => {
|
|
|
23
24
|
};
|
|
24
25
|
exports.se_BatchGetUsersCommand = se_BatchGetUsersCommand;
|
|
25
26
|
const se_BatchGetUsersEmailNotificationsSettingsCommand = async (input, context) => {
|
|
26
|
-
const b = (0,
|
|
27
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
27
28
|
const headers = {
|
|
28
29
|
'content-type': 'application/json',
|
|
29
30
|
};
|
|
@@ -39,7 +40,7 @@ const se_BatchGetUsersEmailNotificationsSettingsCommand = async (input, context)
|
|
|
39
40
|
};
|
|
40
41
|
exports.se_BatchGetUsersEmailNotificationsSettingsCommand = se_BatchGetUsersEmailNotificationsSettingsCommand;
|
|
41
42
|
const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
|
|
42
|
-
const b = (0,
|
|
43
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
43
44
|
const headers = {
|
|
44
45
|
'content-type': 'application/json',
|
|
45
46
|
};
|
|
@@ -55,7 +56,7 @@ const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
|
|
|
55
56
|
};
|
|
56
57
|
exports.se_BatchGetUsersPbxLinkDataCommand = se_BatchGetUsersPbxLinkDataCommand;
|
|
57
58
|
const se_BatchGetUsersPbxLinkDataV1Command = async (input, context) => {
|
|
58
|
-
const b = (0,
|
|
59
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
59
60
|
const headers = {
|
|
60
61
|
'content-type': 'application/json',
|
|
61
62
|
};
|
|
@@ -71,7 +72,7 @@ const se_BatchGetUsersPbxLinkDataV1Command = async (input, context) => {
|
|
|
71
72
|
};
|
|
72
73
|
exports.se_BatchGetUsersPbxLinkDataV1Command = se_BatchGetUsersPbxLinkDataV1Command;
|
|
73
74
|
const se_ChangeUserEmailCommand = async (input, context) => {
|
|
74
|
-
const b = (0,
|
|
75
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
75
76
|
const headers = {
|
|
76
77
|
'content-type': 'application/json',
|
|
77
78
|
};
|
|
@@ -88,7 +89,7 @@ const se_ChangeUserEmailCommand = async (input, context) => {
|
|
|
88
89
|
};
|
|
89
90
|
exports.se_ChangeUserEmailCommand = se_ChangeUserEmailCommand;
|
|
90
91
|
const se_CreateBotCommand = async (input, context) => {
|
|
91
|
-
const b = (0,
|
|
92
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
92
93
|
const headers = {
|
|
93
94
|
'content-type': 'application/json',
|
|
94
95
|
};
|
|
@@ -98,6 +99,7 @@ const se_CreateBotCommand = async (input, context) => {
|
|
|
98
99
|
});
|
|
99
100
|
let body;
|
|
100
101
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
102
|
+
'access': [],
|
|
101
103
|
'callback': _ => se_BotCallback(_, context),
|
|
102
104
|
'name': [],
|
|
103
105
|
'picture': [],
|
|
@@ -111,7 +113,7 @@ const se_CreateBotCommand = async (input, context) => {
|
|
|
111
113
|
};
|
|
112
114
|
exports.se_CreateBotCommand = se_CreateBotCommand;
|
|
113
115
|
const se_CreateBotApiKeyCommand = async (input, context) => {
|
|
114
|
-
const b = (0,
|
|
116
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
115
117
|
const headers = {
|
|
116
118
|
'content-type': 'application/json',
|
|
117
119
|
};
|
|
@@ -132,7 +134,7 @@ const se_CreateBotApiKeyCommand = async (input, context) => {
|
|
|
132
134
|
};
|
|
133
135
|
exports.se_CreateBotApiKeyCommand = se_CreateBotApiKeyCommand;
|
|
134
136
|
const se_CreateSystemBotCommand = async (input, context) => {
|
|
135
|
-
const b = (0,
|
|
137
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
136
138
|
const headers = {
|
|
137
139
|
'content-type': 'application/json',
|
|
138
140
|
};
|
|
@@ -153,7 +155,7 @@ const se_CreateSystemBotCommand = async (input, context) => {
|
|
|
153
155
|
};
|
|
154
156
|
exports.se_CreateSystemBotCommand = se_CreateSystemBotCommand;
|
|
155
157
|
const se_DeleteBotCommand = async (input, context) => {
|
|
156
|
-
const b = (0,
|
|
158
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
157
159
|
const headers = {};
|
|
158
160
|
b.bp("/v2/users/bots/{botId}");
|
|
159
161
|
b.p('botId', () => input.botId, '{botId}', false);
|
|
@@ -169,7 +171,7 @@ const se_DeleteBotCommand = async (input, context) => {
|
|
|
169
171
|
};
|
|
170
172
|
exports.se_DeleteBotCommand = se_DeleteBotCommand;
|
|
171
173
|
const se_DeleteBotApiKeyCommand = async (input, context) => {
|
|
172
|
-
const b = (0,
|
|
174
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
173
175
|
const headers = {};
|
|
174
176
|
b.bp("/v2/users/bots/{botId}/keys/{apiKeySecret}");
|
|
175
177
|
b.p('botId', () => input.botId, '{botId}', false);
|
|
@@ -186,7 +188,7 @@ const se_DeleteBotApiKeyCommand = async (input, context) => {
|
|
|
186
188
|
};
|
|
187
189
|
exports.se_DeleteBotApiKeyCommand = se_DeleteBotApiKeyCommand;
|
|
188
190
|
const se_GetBotCommand = async (input, context) => {
|
|
189
|
-
const b = (0,
|
|
191
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
190
192
|
const headers = {};
|
|
191
193
|
b.bp("/v2/users/bots/{botId}");
|
|
192
194
|
b.p('botId', () => input.botId, '{botId}', false);
|
|
@@ -202,7 +204,7 @@ const se_GetBotCommand = async (input, context) => {
|
|
|
202
204
|
};
|
|
203
205
|
exports.se_GetBotCommand = se_GetBotCommand;
|
|
204
206
|
const se_GetBotCallbackCommand = async (input, context) => {
|
|
205
|
-
const b = (0,
|
|
207
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
206
208
|
const headers = {};
|
|
207
209
|
b.bp("/v2/users/bots/{botId}/callback");
|
|
208
210
|
b.p('botId', () => input.botId, '{botId}', false);
|
|
@@ -218,7 +220,7 @@ const se_GetBotCallbackCommand = async (input, context) => {
|
|
|
218
220
|
};
|
|
219
221
|
exports.se_GetBotCallbackCommand = se_GetBotCallbackCommand;
|
|
220
222
|
const se_GetUserCommand = async (input, context) => {
|
|
221
|
-
const b = (0,
|
|
223
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
222
224
|
const headers = {};
|
|
223
225
|
b.bp("/v2/users/cloud/{userId}");
|
|
224
226
|
b.p('userId', () => input.userId, '{userId}', false);
|
|
@@ -230,7 +232,7 @@ const se_GetUserCommand = async (input, context) => {
|
|
|
230
232
|
};
|
|
231
233
|
exports.se_GetUserCommand = se_GetUserCommand;
|
|
232
234
|
const se_GetUserEmailNotificationsSettingsCommand = async (input, context) => {
|
|
233
|
-
const b = (0,
|
|
235
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
234
236
|
const headers = {};
|
|
235
237
|
b.bp("/v2/users/cloud/{userId}/notifications/email");
|
|
236
238
|
b.p('userId', () => input.userId, '{userId}', false);
|
|
@@ -242,7 +244,7 @@ const se_GetUserEmailNotificationsSettingsCommand = async (input, context) => {
|
|
|
242
244
|
};
|
|
243
245
|
exports.se_GetUserEmailNotificationsSettingsCommand = se_GetUserEmailNotificationsSettingsCommand;
|
|
244
246
|
const se_GetUserPbxLinkDataCommand = async (input, context) => {
|
|
245
|
-
const b = (0,
|
|
247
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
246
248
|
const headers = {};
|
|
247
249
|
b.bp("/v2/users/cloud/{userId}/pbx-link-data");
|
|
248
250
|
b.p('userId', () => input.userId, '{userId}', false);
|
|
@@ -254,7 +256,7 @@ const se_GetUserPbxLinkDataCommand = async (input, context) => {
|
|
|
254
256
|
};
|
|
255
257
|
exports.se_GetUserPbxLinkDataCommand = se_GetUserPbxLinkDataCommand;
|
|
256
258
|
const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
|
|
257
|
-
const b = (0,
|
|
259
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
258
260
|
const headers = {};
|
|
259
261
|
b.bp("/v2/users/get-user-pbx-link-suggestion");
|
|
260
262
|
const query = (0, smithy_client_1.map)({
|
|
@@ -269,7 +271,7 @@ const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
|
|
|
269
271
|
};
|
|
270
272
|
exports.se_GetUserPbxLinkSuggestionCommand = se_GetUserPbxLinkSuggestionCommand;
|
|
271
273
|
const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
|
|
272
|
-
const b = (0,
|
|
274
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
273
275
|
const headers = {};
|
|
274
276
|
b.bp("/v2/users/GetUserPbxLinkSuggestion");
|
|
275
277
|
const query = (0, smithy_client_1.map)({
|
|
@@ -284,7 +286,7 @@ const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
|
|
|
284
286
|
};
|
|
285
287
|
exports.se_GetUserPbxLinkSuggestionV1Command = se_GetUserPbxLinkSuggestionV1Command;
|
|
286
288
|
const se_IntelligenceSearchCommand = async (input, context) => {
|
|
287
|
-
const b = (0,
|
|
289
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
288
290
|
const headers = {};
|
|
289
291
|
b.bp("/v2/users/intelligence-search");
|
|
290
292
|
const query = (0, smithy_client_1.map)({
|
|
@@ -301,7 +303,7 @@ const se_IntelligenceSearchCommand = async (input, context) => {
|
|
|
301
303
|
};
|
|
302
304
|
exports.se_IntelligenceSearchCommand = se_IntelligenceSearchCommand;
|
|
303
305
|
const se_ListBotApiKeysCommand = async (input, context) => {
|
|
304
|
-
const b = (0,
|
|
306
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
305
307
|
const headers = {};
|
|
306
308
|
b.bp("/v2/users/bots/{botId}/keys");
|
|
307
309
|
b.p('botId', () => input.botId, '{botId}', false);
|
|
@@ -317,7 +319,7 @@ const se_ListBotApiKeysCommand = async (input, context) => {
|
|
|
317
319
|
};
|
|
318
320
|
exports.se_ListBotApiKeysCommand = se_ListBotApiKeysCommand;
|
|
319
321
|
const se_ListBotsCommand = async (input, context) => {
|
|
320
|
-
const b = (0,
|
|
322
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
321
323
|
const headers = {};
|
|
322
324
|
b.bp("/v2/users/bots");
|
|
323
325
|
const query = (0, smithy_client_1.map)({
|
|
@@ -332,7 +334,7 @@ const se_ListBotsCommand = async (input, context) => {
|
|
|
332
334
|
};
|
|
333
335
|
exports.se_ListBotsCommand = se_ListBotsCommand;
|
|
334
336
|
const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
|
|
335
|
-
const b = (0,
|
|
337
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
336
338
|
const headers = {
|
|
337
339
|
'content-type': 'application/json',
|
|
338
340
|
};
|
|
@@ -350,7 +352,7 @@ const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, cont
|
|
|
350
352
|
};
|
|
351
353
|
exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = se_PartialUpdateUserEmailNotificationsSettingsCommand;
|
|
352
354
|
const se_QueryColleaguesCommand = async (input, context) => {
|
|
353
|
-
const b = (0,
|
|
355
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
354
356
|
const headers = {
|
|
355
357
|
'content-type': 'application/json',
|
|
356
358
|
};
|
|
@@ -370,7 +372,7 @@ const se_QueryColleaguesCommand = async (input, context) => {
|
|
|
370
372
|
};
|
|
371
373
|
exports.se_QueryColleaguesCommand = se_QueryColleaguesCommand;
|
|
372
374
|
const se_QueryUserCommand = async (input, context) => {
|
|
373
|
-
const b = (0,
|
|
375
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
374
376
|
const headers = {
|
|
375
377
|
'content-type': 'application/json',
|
|
376
378
|
};
|
|
@@ -387,7 +389,7 @@ const se_QueryUserCommand = async (input, context) => {
|
|
|
387
389
|
};
|
|
388
390
|
exports.se_QueryUserCommand = se_QueryUserCommand;
|
|
389
391
|
const se_QueryUsersCommand = async (input, context) => {
|
|
390
|
-
const b = (0,
|
|
392
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
391
393
|
const headers = {
|
|
392
394
|
'content-type': 'application/json',
|
|
393
395
|
};
|
|
@@ -404,7 +406,7 @@ const se_QueryUsersCommand = async (input, context) => {
|
|
|
404
406
|
};
|
|
405
407
|
exports.se_QueryUsersCommand = se_QueryUsersCommand;
|
|
406
408
|
const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
|
|
407
|
-
const b = (0,
|
|
409
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
408
410
|
const headers = {
|
|
409
411
|
'content-type': 'application/json',
|
|
410
412
|
};
|
|
@@ -421,7 +423,7 @@ const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input
|
|
|
421
423
|
};
|
|
422
424
|
exports.se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = se_ToggleTranscriptionEmailNotificationsSubscriptionCommand;
|
|
423
425
|
const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input, context) => {
|
|
424
|
-
const b = (0,
|
|
426
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
425
427
|
const headers = {
|
|
426
428
|
'content-type': 'application/json',
|
|
427
429
|
};
|
|
@@ -438,7 +440,7 @@ const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input, conte
|
|
|
438
440
|
};
|
|
439
441
|
exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = se_ToggleUnreadEmailNotificationsSubscriptionCommand;
|
|
440
442
|
const se_UpdateBotCommand = async (input, context) => {
|
|
441
|
-
const b = (0,
|
|
443
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
442
444
|
const headers = {
|
|
443
445
|
'content-type': 'application/json',
|
|
444
446
|
};
|
|
@@ -449,6 +451,7 @@ const se_UpdateBotCommand = async (input, context) => {
|
|
|
449
451
|
});
|
|
450
452
|
let body;
|
|
451
453
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
454
|
+
'access': [],
|
|
452
455
|
'name': [],
|
|
453
456
|
'picture': [],
|
|
454
457
|
'searchable': [],
|
|
@@ -461,7 +464,7 @@ const se_UpdateBotCommand = async (input, context) => {
|
|
|
461
464
|
};
|
|
462
465
|
exports.se_UpdateBotCommand = se_UpdateBotCommand;
|
|
463
466
|
const se_UpdateBotCallbackCommand = async (input, context) => {
|
|
464
|
-
const b = (0,
|
|
467
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
465
468
|
const headers = {
|
|
466
469
|
'content-type': 'application/json',
|
|
467
470
|
};
|
|
@@ -482,7 +485,7 @@ const se_UpdateBotCallbackCommand = async (input, context) => {
|
|
|
482
485
|
};
|
|
483
486
|
exports.se_UpdateBotCallbackCommand = se_UpdateBotCallbackCommand;
|
|
484
487
|
const se_UpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
|
|
485
|
-
const b = (0,
|
|
488
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
486
489
|
const headers = {
|
|
487
490
|
'content-type': 'application/json',
|
|
488
491
|
};
|
|
@@ -500,7 +503,7 @@ const se_UpdateUserEmailNotificationsSettingsCommand = async (input, context) =>
|
|
|
500
503
|
};
|
|
501
504
|
exports.se_UpdateUserEmailNotificationsSettingsCommand = se_UpdateUserEmailNotificationsSettingsCommand;
|
|
502
505
|
const se_UploadPictureCommand = async (input, context) => {
|
|
503
|
-
const b = (0,
|
|
506
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
504
507
|
const headers = {
|
|
505
508
|
'content-type': 'application/json',
|
|
506
509
|
};
|
|
@@ -516,7 +519,7 @@ const se_UploadPictureCommand = async (input, context) => {
|
|
|
516
519
|
};
|
|
517
520
|
exports.se_UploadPictureCommand = se_UploadPictureCommand;
|
|
518
521
|
const se_UploadPictureV1Command = async (input, context) => {
|
|
519
|
-
const b = (0,
|
|
522
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
520
523
|
const headers = {
|
|
521
524
|
'content-type': 'application/json',
|
|
522
525
|
};
|
|
@@ -532,7 +535,7 @@ const se_UploadPictureV1Command = async (input, context) => {
|
|
|
532
535
|
};
|
|
533
536
|
exports.se_UploadPictureV1Command = se_UploadPictureV1Command;
|
|
534
537
|
const se_VerifyBotSecretKeyCommand = async (input, context) => {
|
|
535
|
-
const b = (0,
|
|
538
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
536
539
|
const headers = {
|
|
537
540
|
'content-type': 'application/json',
|
|
538
541
|
};
|
|
@@ -548,7 +551,7 @@ const se_VerifyBotSecretKeyCommand = async (input, context) => {
|
|
|
548
551
|
};
|
|
549
552
|
exports.se_VerifyBotSecretKeyCommand = se_VerifyBotSecretKeyCommand;
|
|
550
553
|
const se_VerifyBotSecretKeyV1Command = async (input, context) => {
|
|
551
|
-
const b = (0,
|
|
554
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
552
555
|
const headers = {
|
|
553
556
|
'content-type': 'application/json',
|
|
554
557
|
};
|
|
@@ -570,7 +573,7 @@ const de_BatchGetUsersCommand = async (output, context) => {
|
|
|
570
573
|
const contents = (0, smithy_client_1.map)({
|
|
571
574
|
$metadata: deserializeMetadata(output),
|
|
572
575
|
});
|
|
573
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
576
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
574
577
|
const doc = (0, smithy_client_1.take)(data, {
|
|
575
578
|
'users': smithy_client_1._json,
|
|
576
579
|
});
|
|
@@ -585,7 +588,7 @@ const de_BatchGetUsersEmailNotificationsSettingsCommand = async (output, context
|
|
|
585
588
|
const contents = (0, smithy_client_1.map)({
|
|
586
589
|
$metadata: deserializeMetadata(output),
|
|
587
590
|
});
|
|
588
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
591
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
589
592
|
const doc = (0, smithy_client_1.take)(data, {
|
|
590
593
|
'notifications': smithy_client_1._json,
|
|
591
594
|
});
|
|
@@ -600,7 +603,7 @@ const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
|
|
|
600
603
|
const contents = (0, smithy_client_1.map)({
|
|
601
604
|
$metadata: deserializeMetadata(output),
|
|
602
605
|
});
|
|
603
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
606
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
604
607
|
const doc = (0, smithy_client_1.take)(data, {
|
|
605
608
|
'users': smithy_client_1._json,
|
|
606
609
|
});
|
|
@@ -615,7 +618,7 @@ const de_BatchGetUsersPbxLinkDataV1Command = async (output, context) => {
|
|
|
615
618
|
const contents = (0, smithy_client_1.map)({
|
|
616
619
|
$metadata: deserializeMetadata(output),
|
|
617
620
|
});
|
|
618
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
621
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
619
622
|
const doc = (0, smithy_client_1.take)(data, {
|
|
620
623
|
'users': smithy_client_1._json,
|
|
621
624
|
});
|
|
@@ -630,7 +633,7 @@ const de_ChangeUserEmailCommand = async (output, context) => {
|
|
|
630
633
|
const contents = (0, smithy_client_1.map)({
|
|
631
634
|
$metadata: deserializeMetadata(output),
|
|
632
635
|
});
|
|
633
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
636
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
634
637
|
const doc = (0, smithy_client_1.take)(data, {
|
|
635
638
|
'sfnArn': smithy_client_1.expectString,
|
|
636
639
|
});
|
|
@@ -645,7 +648,7 @@ const de_CreateBotCommand = async (output, context) => {
|
|
|
645
648
|
const contents = (0, smithy_client_1.map)({
|
|
646
649
|
$metadata: deserializeMetadata(output),
|
|
647
650
|
});
|
|
648
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
651
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
649
652
|
const doc = (0, smithy_client_1.take)(data, {
|
|
650
653
|
'bot': smithy_client_1._json,
|
|
651
654
|
});
|
|
@@ -660,7 +663,7 @@ const de_CreateBotApiKeyCommand = async (output, context) => {
|
|
|
660
663
|
const contents = (0, smithy_client_1.map)({
|
|
661
664
|
$metadata: deserializeMetadata(output),
|
|
662
665
|
});
|
|
663
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
666
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
664
667
|
const doc = (0, smithy_client_1.take)(data, {
|
|
665
668
|
'bot': smithy_client_1._json,
|
|
666
669
|
'key': smithy_client_1._json,
|
|
@@ -676,7 +679,7 @@ const de_CreateSystemBotCommand = async (output, context) => {
|
|
|
676
679
|
const contents = (0, smithy_client_1.map)({
|
|
677
680
|
$metadata: deserializeMetadata(output),
|
|
678
681
|
});
|
|
679
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
682
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
680
683
|
const doc = (0, smithy_client_1.take)(data, {
|
|
681
684
|
'id': smithy_client_1.expectString,
|
|
682
685
|
});
|
|
@@ -713,7 +716,7 @@ const de_GetBotCommand = async (output, context) => {
|
|
|
713
716
|
const contents = (0, smithy_client_1.map)({
|
|
714
717
|
$metadata: deserializeMetadata(output),
|
|
715
718
|
});
|
|
716
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
719
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
717
720
|
const doc = (0, smithy_client_1.take)(data, {
|
|
718
721
|
'bot': smithy_client_1._json,
|
|
719
722
|
});
|
|
@@ -728,7 +731,7 @@ const de_GetBotCallbackCommand = async (output, context) => {
|
|
|
728
731
|
const contents = (0, smithy_client_1.map)({
|
|
729
732
|
$metadata: deserializeMetadata(output),
|
|
730
733
|
});
|
|
731
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
734
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
732
735
|
const doc = (0, smithy_client_1.take)(data, {
|
|
733
736
|
'callback': _ => de_BotCallback(_, context),
|
|
734
737
|
});
|
|
@@ -743,7 +746,7 @@ const de_GetUserCommand = async (output, context) => {
|
|
|
743
746
|
const contents = (0, smithy_client_1.map)({
|
|
744
747
|
$metadata: deserializeMetadata(output),
|
|
745
748
|
});
|
|
746
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
749
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
747
750
|
const doc = (0, smithy_client_1.take)(data, {
|
|
748
751
|
'user': smithy_client_1._json,
|
|
749
752
|
});
|
|
@@ -758,7 +761,7 @@ const de_GetUserEmailNotificationsSettingsCommand = async (output, context) => {
|
|
|
758
761
|
const contents = (0, smithy_client_1.map)({
|
|
759
762
|
$metadata: deserializeMetadata(output),
|
|
760
763
|
});
|
|
761
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
764
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
762
765
|
const doc = (0, smithy_client_1.take)(data, {
|
|
763
766
|
'notifications': smithy_client_1._json,
|
|
764
767
|
});
|
|
@@ -773,7 +776,7 @@ const de_GetUserPbxLinkDataCommand = async (output, context) => {
|
|
|
773
776
|
const contents = (0, smithy_client_1.map)({
|
|
774
777
|
$metadata: deserializeMetadata(output),
|
|
775
778
|
});
|
|
776
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
779
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
777
780
|
const doc = (0, smithy_client_1.take)(data, {
|
|
778
781
|
'user': smithy_client_1._json,
|
|
779
782
|
});
|
|
@@ -788,7 +791,7 @@ const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
|
|
|
788
791
|
const contents = (0, smithy_client_1.map)({
|
|
789
792
|
$metadata: deserializeMetadata(output),
|
|
790
793
|
});
|
|
791
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
794
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
792
795
|
const doc = (0, smithy_client_1.take)(data, {
|
|
793
796
|
'suggestion': smithy_client_1._json,
|
|
794
797
|
});
|
|
@@ -803,7 +806,7 @@ const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
|
|
|
803
806
|
const contents = (0, smithy_client_1.map)({
|
|
804
807
|
$metadata: deserializeMetadata(output),
|
|
805
808
|
});
|
|
806
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
809
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
807
810
|
const doc = (0, smithy_client_1.take)(data, {
|
|
808
811
|
'suggestion': smithy_client_1._json,
|
|
809
812
|
});
|
|
@@ -818,7 +821,7 @@ const de_IntelligenceSearchCommand = async (output, context) => {
|
|
|
818
821
|
const contents = (0, smithy_client_1.map)({
|
|
819
822
|
$metadata: deserializeMetadata(output),
|
|
820
823
|
});
|
|
821
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
824
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
822
825
|
const doc = (0, smithy_client_1.take)(data, {
|
|
823
826
|
'items': smithy_client_1._json,
|
|
824
827
|
});
|
|
@@ -833,7 +836,7 @@ const de_ListBotApiKeysCommand = async (output, context) => {
|
|
|
833
836
|
const contents = (0, smithy_client_1.map)({
|
|
834
837
|
$metadata: deserializeMetadata(output),
|
|
835
838
|
});
|
|
836
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
839
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
837
840
|
const doc = (0, smithy_client_1.take)(data, {
|
|
838
841
|
'keys': smithy_client_1._json,
|
|
839
842
|
});
|
|
@@ -848,7 +851,7 @@ const de_ListBotsCommand = async (output, context) => {
|
|
|
848
851
|
const contents = (0, smithy_client_1.map)({
|
|
849
852
|
$metadata: deserializeMetadata(output),
|
|
850
853
|
});
|
|
851
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
854
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
852
855
|
const doc = (0, smithy_client_1.take)(data, {
|
|
853
856
|
'bots': smithy_client_1._json,
|
|
854
857
|
});
|
|
@@ -863,7 +866,7 @@ const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, con
|
|
|
863
866
|
const contents = (0, smithy_client_1.map)({
|
|
864
867
|
$metadata: deserializeMetadata(output),
|
|
865
868
|
});
|
|
866
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
869
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
867
870
|
const doc = (0, smithy_client_1.take)(data, {
|
|
868
871
|
'notifications': smithy_client_1._json,
|
|
869
872
|
});
|
|
@@ -878,7 +881,7 @@ const de_QueryColleaguesCommand = async (output, context) => {
|
|
|
878
881
|
const contents = (0, smithy_client_1.map)({
|
|
879
882
|
$metadata: deserializeMetadata(output),
|
|
880
883
|
});
|
|
881
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
884
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
882
885
|
const doc = (0, smithy_client_1.take)(data, {
|
|
883
886
|
'colleagues': smithy_client_1._json,
|
|
884
887
|
});
|
|
@@ -893,7 +896,7 @@ const de_QueryUserCommand = async (output, context) => {
|
|
|
893
896
|
const contents = (0, smithy_client_1.map)({
|
|
894
897
|
$metadata: deserializeMetadata(output),
|
|
895
898
|
});
|
|
896
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
899
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
897
900
|
const doc = (0, smithy_client_1.take)(data, {
|
|
898
901
|
'user': smithy_client_1._json,
|
|
899
902
|
});
|
|
@@ -908,7 +911,7 @@ const de_QueryUsersCommand = async (output, context) => {
|
|
|
908
911
|
const contents = (0, smithy_client_1.map)({
|
|
909
912
|
$metadata: deserializeMetadata(output),
|
|
910
913
|
});
|
|
911
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
914
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
912
915
|
const doc = (0, smithy_client_1.take)(data, {
|
|
913
916
|
'users': smithy_client_1._json,
|
|
914
917
|
});
|
|
@@ -945,7 +948,7 @@ const de_UpdateBotCommand = async (output, context) => {
|
|
|
945
948
|
const contents = (0, smithy_client_1.map)({
|
|
946
949
|
$metadata: deserializeMetadata(output),
|
|
947
950
|
});
|
|
948
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
951
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
949
952
|
const doc = (0, smithy_client_1.take)(data, {
|
|
950
953
|
'bot': smithy_client_1._json,
|
|
951
954
|
});
|
|
@@ -960,7 +963,7 @@ const de_UpdateBotCallbackCommand = async (output, context) => {
|
|
|
960
963
|
const contents = (0, smithy_client_1.map)({
|
|
961
964
|
$metadata: deserializeMetadata(output),
|
|
962
965
|
});
|
|
963
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
966
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
964
967
|
const doc = (0, smithy_client_1.take)(data, {
|
|
965
968
|
'callback': _ => de_BotCallback(_, context),
|
|
966
969
|
});
|
|
@@ -975,7 +978,7 @@ const de_UpdateUserEmailNotificationsSettingsCommand = async (output, context) =
|
|
|
975
978
|
const contents = (0, smithy_client_1.map)({
|
|
976
979
|
$metadata: deserializeMetadata(output),
|
|
977
980
|
});
|
|
978
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
981
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
979
982
|
const doc = (0, smithy_client_1.take)(data, {
|
|
980
983
|
'notifications': smithy_client_1._json,
|
|
981
984
|
});
|
|
@@ -990,7 +993,7 @@ const de_UploadPictureCommand = async (output, context) => {
|
|
|
990
993
|
const contents = (0, smithy_client_1.map)({
|
|
991
994
|
$metadata: deserializeMetadata(output),
|
|
992
995
|
});
|
|
993
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
996
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
994
997
|
const doc = (0, smithy_client_1.take)(data, {
|
|
995
998
|
'url': smithy_client_1.expectString,
|
|
996
999
|
});
|
|
@@ -1005,7 +1008,7 @@ const de_UploadPictureV1Command = async (output, context) => {
|
|
|
1005
1008
|
const contents = (0, smithy_client_1.map)({
|
|
1006
1009
|
$metadata: deserializeMetadata(output),
|
|
1007
1010
|
});
|
|
1008
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1011
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1009
1012
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1010
1013
|
'url': smithy_client_1.expectString,
|
|
1011
1014
|
});
|
|
@@ -1020,7 +1023,7 @@ const de_VerifyBotSecretKeyCommand = async (output, context) => {
|
|
|
1020
1023
|
const contents = (0, smithy_client_1.map)({
|
|
1021
1024
|
$metadata: deserializeMetadata(output),
|
|
1022
1025
|
});
|
|
1023
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1026
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1024
1027
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1025
1028
|
'company': smithy_client_1.expectString,
|
|
1026
1029
|
'id': smithy_client_1.expectString,
|
|
@@ -1037,7 +1040,7 @@ const de_VerifyBotSecretKeyV1Command = async (output, context) => {
|
|
|
1037
1040
|
const contents = (0, smithy_client_1.map)({
|
|
1038
1041
|
$metadata: deserializeMetadata(output),
|
|
1039
1042
|
});
|
|
1040
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1043
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1041
1044
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1042
1045
|
'company': smithy_client_1.expectString,
|
|
1043
1046
|
'id': smithy_client_1.expectString,
|
|
@@ -1050,9 +1053,9 @@ exports.de_VerifyBotSecretKeyV1Command = de_VerifyBotSecretKeyV1Command;
|
|
|
1050
1053
|
const de_CommandError = async (output, context) => {
|
|
1051
1054
|
const parsedOutput = {
|
|
1052
1055
|
...output,
|
|
1053
|
-
body: await
|
|
1056
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context)
|
|
1054
1057
|
};
|
|
1055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1056
1059
|
switch (errorCode) {
|
|
1057
1060
|
case "ForbiddenException":
|
|
1058
1061
|
case "smithy.framework#ForbiddenException":
|
|
@@ -1215,7 +1218,7 @@ const se_BotEndpoint = (input, context) => {
|
|
|
1215
1218
|
openAiAssistant: value => ({ "openAiAssistant": (0, smithy_client_1._json)(value) }),
|
|
1216
1219
|
sqs: value => ({ "sqs": (0, smithy_client_1._json)(value) }),
|
|
1217
1220
|
webhook: value => ({ "webhook": (0, smithy_client_1._json)(value) }),
|
|
1218
|
-
_: (name, value) => ({ name: value })
|
|
1221
|
+
_: (name, value) => ({ [name]: value })
|
|
1219
1222
|
});
|
|
1220
1223
|
};
|
|
1221
1224
|
const se_BotLlmEmbeddedTool = (input, context) => {
|
|
@@ -1248,7 +1251,7 @@ const se_BotLlmFunctionDefinition = (input, context) => {
|
|
|
1248
1251
|
const se_BotLlmFunctionIntegration = (input, context) => {
|
|
1249
1252
|
return models_0_1.BotLlmFunctionIntegration.visit(input, {
|
|
1250
1253
|
webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
|
|
1251
|
-
_: (name, value) => ({ name: value })
|
|
1254
|
+
_: (name, value) => ({ [name]: value })
|
|
1252
1255
|
});
|
|
1253
1256
|
};
|
|
1254
1257
|
const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
|
|
@@ -1277,7 +1280,7 @@ const de_Document = (output, context) => {
|
|
|
1277
1280
|
};
|
|
1278
1281
|
const de_BotCallback = (output, context) => {
|
|
1279
1282
|
return (0, smithy_client_1.take)(output, {
|
|
1280
|
-
'endpoint': (_) => de_BotEndpoint((0,
|
|
1283
|
+
'endpoint': (_) => de_BotEndpoint((0, core_1.awsExpectUnion)(_), context),
|
|
1281
1284
|
});
|
|
1282
1285
|
};
|
|
1283
1286
|
const de_BotDialogflowCxEndpoint = (output, context) => {
|
|
@@ -1339,7 +1342,7 @@ const de_BotLlmEndpoint = (output, context) => {
|
|
|
1339
1342
|
const de_BotLlmFunctionDefinition = (output, context) => {
|
|
1340
1343
|
return (0, smithy_client_1.take)(output, {
|
|
1341
1344
|
'description': smithy_client_1.expectString,
|
|
1342
|
-
'integration': (_) => de_BotLlmFunctionIntegration((0,
|
|
1345
|
+
'integration': (_) => de_BotLlmFunctionIntegration((0, core_1.awsExpectUnion)(_), context),
|
|
1343
1346
|
'name': smithy_client_1.expectString,
|
|
1344
1347
|
'parameters': (_) => de_Document(_, context),
|
|
1345
1348
|
});
|
|
@@ -1355,7 +1358,7 @@ const de_BotLlmFunctionIntegration = (output, context) => {
|
|
|
1355
1358
|
const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
|
|
1356
1359
|
return (0, smithy_client_1.take)(output, {
|
|
1357
1360
|
'async': smithy_client_1.expectBoolean,
|
|
1358
|
-
'authorization': (_) => (0, smithy_client_1._json)((0,
|
|
1361
|
+
'authorization': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1359
1362
|
'headers': smithy_client_1._json,
|
|
1360
1363
|
'method': smithy_client_1.expectString,
|
|
1361
1364
|
'parameters': (_) => de_Document(_, context),
|
|
@@ -1381,53 +1384,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1381
1384
|
cfId: output.headers["x-amz-cf-id"],
|
|
1382
1385
|
});
|
|
1383
1386
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1384
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1385
|
-
value !== null &&
|
|
1386
|
-
value !== "" &&
|
|
1387
|
-
(!Object.getOwnPropertyNames(value).includes("length") ||
|
|
1388
|
-
value.length != 0) &&
|
|
1389
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1390
1387
|
const _c = "company";
|
|
1391
1388
|
const _e = "email";
|
|
1392
1389
|
const _eE = "excludeExtension";
|
|
1393
1390
|
const _s = "search";
|
|
1394
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
1395
|
-
if (encoded.length) {
|
|
1396
|
-
return JSON.parse(encoded);
|
|
1397
|
-
}
|
|
1398
|
-
return {};
|
|
1399
|
-
});
|
|
1400
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1401
|
-
const value = await parseBody(errorBody, context);
|
|
1402
|
-
value.message = value.message ?? value.Message;
|
|
1403
|
-
return value;
|
|
1404
|
-
};
|
|
1405
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1406
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1407
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1408
|
-
let cleanValue = rawValue;
|
|
1409
|
-
if (typeof cleanValue === "number") {
|
|
1410
|
-
cleanValue = cleanValue.toString();
|
|
1411
|
-
}
|
|
1412
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1413
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1414
|
-
}
|
|
1415
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1416
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1417
|
-
}
|
|
1418
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1419
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1420
|
-
}
|
|
1421
|
-
return cleanValue;
|
|
1422
|
-
};
|
|
1423
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1424
|
-
if (headerKey !== undefined) {
|
|
1425
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1426
|
-
}
|
|
1427
|
-
if (data.code !== undefined) {
|
|
1428
|
-
return sanitizeErrorCode(data.code);
|
|
1429
|
-
}
|
|
1430
|
-
if (data["__type"] !== undefined) {
|
|
1431
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1432
|
-
}
|
|
1433
|
-
};
|