@aws-sdk/client-support-app 3.303.0 → 3.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist-cjs/commands/CreateSlackChannelConfigurationCommand.js +2 -2
  2. package/dist-cjs/commands/DeleteAccountAliasCommand.js +2 -2
  3. package/dist-cjs/commands/DeleteSlackChannelConfigurationCommand.js +2 -2
  4. package/dist-cjs/commands/DeleteSlackWorkspaceConfigurationCommand.js +2 -2
  5. package/dist-cjs/commands/GetAccountAliasCommand.js +2 -2
  6. package/dist-cjs/commands/ListSlackChannelConfigurationsCommand.js +2 -2
  7. package/dist-cjs/commands/ListSlackWorkspaceConfigurationsCommand.js +2 -2
  8. package/dist-cjs/commands/PutAccountAliasCommand.js +2 -2
  9. package/dist-cjs/commands/RegisterSlackWorkspaceForOrganizationCommand.js +2 -2
  10. package/dist-cjs/commands/UpdateSlackChannelConfigurationCommand.js +2 -2
  11. package/dist-cjs/protocols/Aws_restJson1.js +111 -111
  12. package/dist-es/commands/CreateSlackChannelConfigurationCommand.js +3 -3
  13. package/dist-es/commands/DeleteAccountAliasCommand.js +3 -3
  14. package/dist-es/commands/DeleteSlackChannelConfigurationCommand.js +3 -3
  15. package/dist-es/commands/DeleteSlackWorkspaceConfigurationCommand.js +3 -3
  16. package/dist-es/commands/GetAccountAliasCommand.js +3 -3
  17. package/dist-es/commands/ListSlackChannelConfigurationsCommand.js +3 -3
  18. package/dist-es/commands/ListSlackWorkspaceConfigurationsCommand.js +3 -3
  19. package/dist-es/commands/PutAccountAliasCommand.js +3 -3
  20. package/dist-es/commands/RegisterSlackWorkspaceForOrganizationCommand.js +3 -3
  21. package/dist-es/commands/UpdateSlackChannelConfigurationCommand.js +3 -3
  22. package/dist-es/protocols/Aws_restJson1.js +90 -90
  23. package/dist-types/protocols/Aws_restJson1.d.ts +80 -20
  24. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -20
  25. package/package.json +29 -29
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
4
4
  import { SupportAppServiceException as __BaseException } from "../models/SupportAppServiceException";
5
- export const serializeAws_restJson1CreateSlackChannelConfigurationCommand = async (input, context) => {
5
+ export const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -32,7 +32,7 @@ export const serializeAws_restJson1CreateSlackChannelConfigurationCommand = asyn
32
32
  body,
33
33
  });
34
34
  };
35
- export const serializeAws_restJson1DeleteAccountAliasCommand = async (input, context) => {
35
+ export const se_DeleteAccountAliasCommand = async (input, context) => {
36
36
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
37
  const headers = {
38
38
  "content-type": "application/json",
@@ -50,7 +50,7 @@ export const serializeAws_restJson1DeleteAccountAliasCommand = async (input, con
50
50
  body,
51
51
  });
52
52
  };
53
- export const serializeAws_restJson1DeleteSlackChannelConfigurationCommand = async (input, context) => {
53
+ export const se_DeleteSlackChannelConfigurationCommand = async (input, context) => {
54
54
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
55
  const headers = {
56
56
  "content-type": "application/json",
@@ -72,7 +72,7 @@ export const serializeAws_restJson1DeleteSlackChannelConfigurationCommand = asyn
72
72
  body,
73
73
  });
74
74
  };
75
- export const serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = async (input, context) => {
75
+ export const se_DeleteSlackWorkspaceConfigurationCommand = async (input, context) => {
76
76
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
77
  const headers = {
78
78
  "content-type": "application/json",
@@ -93,7 +93,7 @@ export const serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = as
93
93
  body,
94
94
  });
95
95
  };
96
- export const serializeAws_restJson1GetAccountAliasCommand = async (input, context) => {
96
+ export const se_GetAccountAliasCommand = async (input, context) => {
97
97
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
98
  const headers = {
99
99
  "content-type": "application/json",
@@ -111,7 +111,7 @@ export const serializeAws_restJson1GetAccountAliasCommand = async (input, contex
111
111
  body,
112
112
  });
113
113
  };
114
- export const serializeAws_restJson1ListSlackChannelConfigurationsCommand = async (input, context) => {
114
+ export const se_ListSlackChannelConfigurationsCommand = async (input, context) => {
115
115
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
116
116
  const headers = {
117
117
  "content-type": "application/json",
@@ -132,7 +132,7 @@ export const serializeAws_restJson1ListSlackChannelConfigurationsCommand = async
132
132
  body,
133
133
  });
134
134
  };
135
- export const serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = async (input, context) => {
135
+ export const se_ListSlackWorkspaceConfigurationsCommand = async (input, context) => {
136
136
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
137
137
  const headers = {
138
138
  "content-type": "application/json",
@@ -153,7 +153,7 @@ export const serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = asy
153
153
  body,
154
154
  });
155
155
  };
156
- export const serializeAws_restJson1PutAccountAliasCommand = async (input, context) => {
156
+ export const se_PutAccountAliasCommand = async (input, context) => {
157
157
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
158
  const headers = {
159
159
  "content-type": "application/json",
@@ -173,7 +173,7 @@ export const serializeAws_restJson1PutAccountAliasCommand = async (input, contex
173
173
  body,
174
174
  });
175
175
  };
176
- export const serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = async (input, context) => {
176
+ export const se_RegisterSlackWorkspaceForOrganizationCommand = async (input, context) => {
177
177
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
178
  const headers = {
179
179
  "content-type": "application/json",
@@ -194,7 +194,7 @@ export const serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand
194
194
  body,
195
195
  });
196
196
  };
197
- export const serializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (input, context) => {
197
+ export const se_UpdateSlackChannelConfigurationCommand = async (input, context) => {
198
198
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
199
199
  const headers = {
200
200
  "content-type": "application/json",
@@ -224,9 +224,9 @@ export const serializeAws_restJson1UpdateSlackChannelConfigurationCommand = asyn
224
224
  body,
225
225
  });
226
226
  };
227
- export const deserializeAws_restJson1CreateSlackChannelConfigurationCommand = async (output, context) => {
227
+ export const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
228
228
  if (output.statusCode !== 200 && output.statusCode >= 300) {
229
- return deserializeAws_restJson1CreateSlackChannelConfigurationCommandError(output, context);
229
+ return de_CreateSlackChannelConfigurationCommandError(output, context);
230
230
  }
231
231
  const contents = map({
232
232
  $metadata: deserializeMetadata(output),
@@ -234,7 +234,7 @@ export const deserializeAws_restJson1CreateSlackChannelConfigurationCommand = as
234
234
  await collectBody(output.body, context);
235
235
  return contents;
236
236
  };
237
- const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = async (output, context) => {
237
+ const de_CreateSlackChannelConfigurationCommandError = async (output, context) => {
238
238
  const parsedOutput = {
239
239
  ...output,
240
240
  body: await parseErrorBody(output.body, context),
@@ -243,19 +243,19 @@ const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = asyn
243
243
  switch (errorCode) {
244
244
  case "AccessDeniedException":
245
245
  case "com.amazonaws.supportapp#AccessDeniedException":
246
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
246
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
247
247
  case "ConflictException":
248
248
  case "com.amazonaws.supportapp#ConflictException":
249
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
249
+ throw await de_ConflictExceptionRes(parsedOutput, context);
250
250
  case "InternalServerException":
251
251
  case "com.amazonaws.supportapp#InternalServerException":
252
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
252
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
253
253
  case "ServiceQuotaExceededException":
254
254
  case "com.amazonaws.supportapp#ServiceQuotaExceededException":
255
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
255
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
256
256
  case "ValidationException":
257
257
  case "com.amazonaws.supportapp#ValidationException":
258
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
258
+ throw await de_ValidationExceptionRes(parsedOutput, context);
259
259
  default:
260
260
  const parsedBody = parsedOutput.body;
261
261
  throwDefaultError({
@@ -266,9 +266,9 @@ const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = asyn
266
266
  });
267
267
  }
268
268
  };
269
- export const deserializeAws_restJson1DeleteAccountAliasCommand = async (output, context) => {
269
+ export const de_DeleteAccountAliasCommand = async (output, context) => {
270
270
  if (output.statusCode !== 200 && output.statusCode >= 300) {
271
- return deserializeAws_restJson1DeleteAccountAliasCommandError(output, context);
271
+ return de_DeleteAccountAliasCommandError(output, context);
272
272
  }
273
273
  const contents = map({
274
274
  $metadata: deserializeMetadata(output),
@@ -276,7 +276,7 @@ export const deserializeAws_restJson1DeleteAccountAliasCommand = async (output,
276
276
  await collectBody(output.body, context);
277
277
  return contents;
278
278
  };
279
- const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, context) => {
279
+ const de_DeleteAccountAliasCommandError = async (output, context) => {
280
280
  const parsedOutput = {
281
281
  ...output,
282
282
  body: await parseErrorBody(output.body, context),
@@ -285,13 +285,13 @@ const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, co
285
285
  switch (errorCode) {
286
286
  case "AccessDeniedException":
287
287
  case "com.amazonaws.supportapp#AccessDeniedException":
288
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
288
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
289
289
  case "InternalServerException":
290
290
  case "com.amazonaws.supportapp#InternalServerException":
291
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
291
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
292
292
  case "ResourceNotFoundException":
293
293
  case "com.amazonaws.supportapp#ResourceNotFoundException":
294
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
294
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
295
295
  default:
296
296
  const parsedBody = parsedOutput.body;
297
297
  throwDefaultError({
@@ -302,9 +302,9 @@ const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, co
302
302
  });
303
303
  }
304
304
  };
305
- export const deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = async (output, context) => {
305
+ export const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
306
306
  if (output.statusCode !== 200 && output.statusCode >= 300) {
307
- return deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError(output, context);
307
+ return de_DeleteSlackChannelConfigurationCommandError(output, context);
308
308
  }
309
309
  const contents = map({
310
310
  $metadata: deserializeMetadata(output),
@@ -312,7 +312,7 @@ export const deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = as
312
312
  await collectBody(output.body, context);
313
313
  return contents;
314
314
  };
315
- const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = async (output, context) => {
315
+ const de_DeleteSlackChannelConfigurationCommandError = async (output, context) => {
316
316
  const parsedOutput = {
317
317
  ...output,
318
318
  body: await parseErrorBody(output.body, context),
@@ -321,19 +321,19 @@ const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = asyn
321
321
  switch (errorCode) {
322
322
  case "AccessDeniedException":
323
323
  case "com.amazonaws.supportapp#AccessDeniedException":
324
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
324
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
325
325
  case "ConflictException":
326
326
  case "com.amazonaws.supportapp#ConflictException":
327
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
327
+ throw await de_ConflictExceptionRes(parsedOutput, context);
328
328
  case "InternalServerException":
329
329
  case "com.amazonaws.supportapp#InternalServerException":
330
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
330
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
331
331
  case "ResourceNotFoundException":
332
332
  case "com.amazonaws.supportapp#ResourceNotFoundException":
333
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
333
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
334
334
  case "ValidationException":
335
335
  case "com.amazonaws.supportapp#ValidationException":
336
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
336
+ throw await de_ValidationExceptionRes(parsedOutput, context);
337
337
  default:
338
338
  const parsedBody = parsedOutput.body;
339
339
  throwDefaultError({
@@ -344,9 +344,9 @@ const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = asyn
344
344
  });
345
345
  }
346
346
  };
347
- export const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
347
+ export const de_DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
348
348
  if (output.statusCode !== 200 && output.statusCode >= 300) {
349
- return deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError(output, context);
349
+ return de_DeleteSlackWorkspaceConfigurationCommandError(output, context);
350
350
  }
351
351
  const contents = map({
352
352
  $metadata: deserializeMetadata(output),
@@ -354,7 +354,7 @@ export const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand =
354
354
  await collectBody(output.body, context);
355
355
  return contents;
356
356
  };
357
- const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = async (output, context) => {
357
+ const de_DeleteSlackWorkspaceConfigurationCommandError = async (output, context) => {
358
358
  const parsedOutput = {
359
359
  ...output,
360
360
  body: await parseErrorBody(output.body, context),
@@ -363,19 +363,19 @@ const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = as
363
363
  switch (errorCode) {
364
364
  case "AccessDeniedException":
365
365
  case "com.amazonaws.supportapp#AccessDeniedException":
366
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
366
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
367
367
  case "ConflictException":
368
368
  case "com.amazonaws.supportapp#ConflictException":
369
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
369
+ throw await de_ConflictExceptionRes(parsedOutput, context);
370
370
  case "InternalServerException":
371
371
  case "com.amazonaws.supportapp#InternalServerException":
372
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
372
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
373
373
  case "ResourceNotFoundException":
374
374
  case "com.amazonaws.supportapp#ResourceNotFoundException":
375
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
375
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
376
376
  case "ValidationException":
377
377
  case "com.amazonaws.supportapp#ValidationException":
378
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
378
+ throw await de_ValidationExceptionRes(parsedOutput, context);
379
379
  default:
380
380
  const parsedBody = parsedOutput.body;
381
381
  throwDefaultError({
@@ -386,9 +386,9 @@ const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = as
386
386
  });
387
387
  }
388
388
  };
389
- export const deserializeAws_restJson1GetAccountAliasCommand = async (output, context) => {
389
+ export const de_GetAccountAliasCommand = async (output, context) => {
390
390
  if (output.statusCode !== 200 && output.statusCode >= 300) {
391
- return deserializeAws_restJson1GetAccountAliasCommandError(output, context);
391
+ return de_GetAccountAliasCommandError(output, context);
392
392
  }
393
393
  const contents = map({
394
394
  $metadata: deserializeMetadata(output),
@@ -399,7 +399,7 @@ export const deserializeAws_restJson1GetAccountAliasCommand = async (output, con
399
399
  }
400
400
  return contents;
401
401
  };
402
- const deserializeAws_restJson1GetAccountAliasCommandError = async (output, context) => {
402
+ const de_GetAccountAliasCommandError = async (output, context) => {
403
403
  const parsedOutput = {
404
404
  ...output,
405
405
  body: await parseErrorBody(output.body, context),
@@ -408,7 +408,7 @@ const deserializeAws_restJson1GetAccountAliasCommandError = async (output, conte
408
408
  switch (errorCode) {
409
409
  case "InternalServerException":
410
410
  case "com.amazonaws.supportapp#InternalServerException":
411
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
411
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
412
412
  default:
413
413
  const parsedBody = parsedOutput.body;
414
414
  throwDefaultError({
@@ -419,9 +419,9 @@ const deserializeAws_restJson1GetAccountAliasCommandError = async (output, conte
419
419
  });
420
420
  }
421
421
  };
422
- export const deserializeAws_restJson1ListSlackChannelConfigurationsCommand = async (output, context) => {
422
+ export const de_ListSlackChannelConfigurationsCommand = async (output, context) => {
423
423
  if (output.statusCode !== 200 && output.statusCode >= 300) {
424
- return deserializeAws_restJson1ListSlackChannelConfigurationsCommandError(output, context);
424
+ return de_ListSlackChannelConfigurationsCommandError(output, context);
425
425
  }
426
426
  const contents = map({
427
427
  $metadata: deserializeMetadata(output),
@@ -431,11 +431,11 @@ export const deserializeAws_restJson1ListSlackChannelConfigurationsCommand = asy
431
431
  contents.nextToken = __expectString(data.nextToken);
432
432
  }
433
433
  if (data.slackChannelConfigurations != null) {
434
- contents.slackChannelConfigurations = deserializeAws_restJson1slackChannelConfigurationList(data.slackChannelConfigurations, context);
434
+ contents.slackChannelConfigurations = de_slackChannelConfigurationList(data.slackChannelConfigurations, context);
435
435
  }
436
436
  return contents;
437
437
  };
438
- const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async (output, context) => {
438
+ const de_ListSlackChannelConfigurationsCommandError = async (output, context) => {
439
439
  const parsedOutput = {
440
440
  ...output,
441
441
  body: await parseErrorBody(output.body, context),
@@ -444,10 +444,10 @@ const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async
444
444
  switch (errorCode) {
445
445
  case "AccessDeniedException":
446
446
  case "com.amazonaws.supportapp#AccessDeniedException":
447
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
447
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
448
448
  case "InternalServerException":
449
449
  case "com.amazonaws.supportapp#InternalServerException":
450
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
450
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
451
451
  default:
452
452
  const parsedBody = parsedOutput.body;
453
453
  throwDefaultError({
@@ -458,9 +458,9 @@ const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async
458
458
  });
459
459
  }
460
460
  };
461
- export const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
461
+ export const de_ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
462
462
  if (output.statusCode !== 200 && output.statusCode >= 300) {
463
- return deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError(output, context);
463
+ return de_ListSlackWorkspaceConfigurationsCommandError(output, context);
464
464
  }
465
465
  const contents = map({
466
466
  $metadata: deserializeMetadata(output),
@@ -470,11 +470,11 @@ export const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = a
470
470
  contents.nextToken = __expectString(data.nextToken);
471
471
  }
472
472
  if (data.slackWorkspaceConfigurations != null) {
473
- contents.slackWorkspaceConfigurations = deserializeAws_restJson1SlackWorkspaceConfigurationList(data.slackWorkspaceConfigurations, context);
473
+ contents.slackWorkspaceConfigurations = de_SlackWorkspaceConfigurationList(data.slackWorkspaceConfigurations, context);
474
474
  }
475
475
  return contents;
476
476
  };
477
- const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = async (output, context) => {
477
+ const de_ListSlackWorkspaceConfigurationsCommandError = async (output, context) => {
478
478
  const parsedOutput = {
479
479
  ...output,
480
480
  body: await parseErrorBody(output.body, context),
@@ -483,10 +483,10 @@ const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = asy
483
483
  switch (errorCode) {
484
484
  case "AccessDeniedException":
485
485
  case "com.amazonaws.supportapp#AccessDeniedException":
486
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
486
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
487
487
  case "InternalServerException":
488
488
  case "com.amazonaws.supportapp#InternalServerException":
489
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
489
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
490
490
  default:
491
491
  const parsedBody = parsedOutput.body;
492
492
  throwDefaultError({
@@ -497,9 +497,9 @@ const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = asy
497
497
  });
498
498
  }
499
499
  };
500
- export const deserializeAws_restJson1PutAccountAliasCommand = async (output, context) => {
500
+ export const de_PutAccountAliasCommand = async (output, context) => {
501
501
  if (output.statusCode !== 200 && output.statusCode >= 300) {
502
- return deserializeAws_restJson1PutAccountAliasCommandError(output, context);
502
+ return de_PutAccountAliasCommandError(output, context);
503
503
  }
504
504
  const contents = map({
505
505
  $metadata: deserializeMetadata(output),
@@ -507,7 +507,7 @@ export const deserializeAws_restJson1PutAccountAliasCommand = async (output, con
507
507
  await collectBody(output.body, context);
508
508
  return contents;
509
509
  };
510
- const deserializeAws_restJson1PutAccountAliasCommandError = async (output, context) => {
510
+ const de_PutAccountAliasCommandError = async (output, context) => {
511
511
  const parsedOutput = {
512
512
  ...output,
513
513
  body: await parseErrorBody(output.body, context),
@@ -516,13 +516,13 @@ const deserializeAws_restJson1PutAccountAliasCommandError = async (output, conte
516
516
  switch (errorCode) {
517
517
  case "AccessDeniedException":
518
518
  case "com.amazonaws.supportapp#AccessDeniedException":
519
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
519
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
520
520
  case "InternalServerException":
521
521
  case "com.amazonaws.supportapp#InternalServerException":
522
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
522
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
523
523
  case "ValidationException":
524
524
  case "com.amazonaws.supportapp#ValidationException":
525
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
525
+ throw await de_ValidationExceptionRes(parsedOutput, context);
526
526
  default:
527
527
  const parsedBody = parsedOutput.body;
528
528
  throwDefaultError({
@@ -533,9 +533,9 @@ const deserializeAws_restJson1PutAccountAliasCommandError = async (output, conte
533
533
  });
534
534
  }
535
535
  };
536
- export const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
536
+ export const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
537
537
  if (output.statusCode !== 200 && output.statusCode >= 300) {
538
- return deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError(output, context);
538
+ return de_RegisterSlackWorkspaceForOrganizationCommandError(output, context);
539
539
  }
540
540
  const contents = map({
541
541
  $metadata: deserializeMetadata(output),
@@ -552,7 +552,7 @@ export const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationComman
552
552
  }
553
553
  return contents;
554
554
  };
555
- const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError = async (output, context) => {
555
+ const de_RegisterSlackWorkspaceForOrganizationCommandError = async (output, context) => {
556
556
  const parsedOutput = {
557
557
  ...output,
558
558
  body: await parseErrorBody(output.body, context),
@@ -561,19 +561,19 @@ const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError
561
561
  switch (errorCode) {
562
562
  case "AccessDeniedException":
563
563
  case "com.amazonaws.supportapp#AccessDeniedException":
564
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
564
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
565
565
  case "ConflictException":
566
566
  case "com.amazonaws.supportapp#ConflictException":
567
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
567
+ throw await de_ConflictExceptionRes(parsedOutput, context);
568
568
  case "InternalServerException":
569
569
  case "com.amazonaws.supportapp#InternalServerException":
570
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
570
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
571
571
  case "ResourceNotFoundException":
572
572
  case "com.amazonaws.supportapp#ResourceNotFoundException":
573
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
573
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
574
574
  case "ValidationException":
575
575
  case "com.amazonaws.supportapp#ValidationException":
576
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
576
+ throw await de_ValidationExceptionRes(parsedOutput, context);
577
577
  default:
578
578
  const parsedBody = parsedOutput.body;
579
579
  throwDefaultError({
@@ -584,9 +584,9 @@ const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError
584
584
  });
585
585
  }
586
586
  };
587
- export const deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (output, context) => {
587
+ export const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
588
588
  if (output.statusCode !== 200 && output.statusCode >= 300) {
589
- return deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError(output, context);
589
+ return de_UpdateSlackChannelConfigurationCommandError(output, context);
590
590
  }
591
591
  const contents = map({
592
592
  $metadata: deserializeMetadata(output),
@@ -618,7 +618,7 @@ export const deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = as
618
618
  }
619
619
  return contents;
620
620
  };
621
- const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = async (output, context) => {
621
+ const de_UpdateSlackChannelConfigurationCommandError = async (output, context) => {
622
622
  const parsedOutput = {
623
623
  ...output,
624
624
  body: await parseErrorBody(output.body, context),
@@ -627,19 +627,19 @@ const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = asyn
627
627
  switch (errorCode) {
628
628
  case "AccessDeniedException":
629
629
  case "com.amazonaws.supportapp#AccessDeniedException":
630
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
630
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
631
631
  case "ConflictException":
632
632
  case "com.amazonaws.supportapp#ConflictException":
633
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
633
+ throw await de_ConflictExceptionRes(parsedOutput, context);
634
634
  case "InternalServerException":
635
635
  case "com.amazonaws.supportapp#InternalServerException":
636
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
636
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
637
637
  case "ResourceNotFoundException":
638
638
  case "com.amazonaws.supportapp#ResourceNotFoundException":
639
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
639
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
640
640
  case "ValidationException":
641
641
  case "com.amazonaws.supportapp#ValidationException":
642
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
642
+ throw await de_ValidationExceptionRes(parsedOutput, context);
643
643
  default:
644
644
  const parsedBody = parsedOutput.body;
645
645
  throwDefaultError({
@@ -651,7 +651,7 @@ const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = asyn
651
651
  }
652
652
  };
653
653
  const map = __map;
654
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
654
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
655
655
  const contents = map({});
656
656
  const data = parsedOutput.body;
657
657
  if (data.message != null) {
@@ -663,7 +663,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
663
663
  });
664
664
  return __decorateServiceException(exception, parsedOutput.body);
665
665
  };
666
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
666
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
667
667
  const contents = map({});
668
668
  const data = parsedOutput.body;
669
669
  if (data.message != null) {
@@ -675,7 +675,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
675
675
  });
676
676
  return __decorateServiceException(exception, parsedOutput.body);
677
677
  };
678
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
678
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
679
679
  const contents = map({});
680
680
  const data = parsedOutput.body;
681
681
  if (data.message != null) {
@@ -687,7 +687,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
687
687
  });
688
688
  return __decorateServiceException(exception, parsedOutput.body);
689
689
  };
690
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
690
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
691
691
  const contents = map({});
692
692
  const data = parsedOutput.body;
693
693
  if (data.message != null) {
@@ -699,7 +699,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
699
699
  });
700
700
  return __decorateServiceException(exception, parsedOutput.body);
701
701
  };
702
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
702
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
703
703
  const contents = map({});
704
704
  const data = parsedOutput.body;
705
705
  if (data.message != null) {
@@ -711,7 +711,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
711
711
  });
712
712
  return __decorateServiceException(exception, parsedOutput.body);
713
713
  };
714
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
714
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
715
715
  const contents = map({});
716
716
  const data = parsedOutput.body;
717
717
  if (data.message != null) {
@@ -723,7 +723,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
723
723
  });
724
724
  return __decorateServiceException(exception, parsedOutput.body);
725
725
  };
726
- const deserializeAws_restJson1SlackChannelConfiguration = (output, context) => {
726
+ const de_SlackChannelConfiguration = (output, context) => {
727
727
  return {
728
728
  channelId: __expectString(output.channelId),
729
729
  channelName: __expectString(output.channelName),
@@ -735,32 +735,32 @@ const deserializeAws_restJson1SlackChannelConfiguration = (output, context) => {
735
735
  teamId: __expectString(output.teamId),
736
736
  };
737
737
  };
738
- const deserializeAws_restJson1slackChannelConfigurationList = (output, context) => {
738
+ const de_slackChannelConfigurationList = (output, context) => {
739
739
  const retVal = (output || [])
740
740
  .filter((e) => e != null)
741
741
  .map((entry) => {
742
742
  if (entry === null) {
743
743
  return null;
744
744
  }
745
- return deserializeAws_restJson1SlackChannelConfiguration(entry, context);
745
+ return de_SlackChannelConfiguration(entry, context);
746
746
  });
747
747
  return retVal;
748
748
  };
749
- const deserializeAws_restJson1SlackWorkspaceConfiguration = (output, context) => {
749
+ const de_SlackWorkspaceConfiguration = (output, context) => {
750
750
  return {
751
751
  allowOrganizationMemberAccount: __expectBoolean(output.allowOrganizationMemberAccount),
752
752
  teamId: __expectString(output.teamId),
753
753
  teamName: __expectString(output.teamName),
754
754
  };
755
755
  };
756
- const deserializeAws_restJson1SlackWorkspaceConfigurationList = (output, context) => {
756
+ const de_SlackWorkspaceConfigurationList = (output, context) => {
757
757
  const retVal = (output || [])
758
758
  .filter((e) => e != null)
759
759
  .map((entry) => {
760
760
  if (entry === null) {
761
761
  return null;
762
762
  }
763
- return deserializeAws_restJson1SlackWorkspaceConfiguration(entry, context);
763
+ return de_SlackWorkspaceConfiguration(entry, context);
764
764
  });
765
765
  return retVal;
766
766
  };