@aws-sdk/client-chime-sdk-messaging 3.294.0 → 3.296.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 (156) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/ChimeSDKMessaging.js +45 -0
  3. package/dist-cjs/commands/AssociateChannelFlowCommand.js +4 -4
  4. package/dist-cjs/commands/BatchCreateChannelMembershipCommand.js +4 -4
  5. package/dist-cjs/commands/ChannelFlowCallbackCommand.js +4 -4
  6. package/dist-cjs/commands/CreateChannelBanCommand.js +4 -4
  7. package/dist-cjs/commands/CreateChannelCommand.js +4 -4
  8. package/dist-cjs/commands/CreateChannelFlowCommand.js +4 -4
  9. package/dist-cjs/commands/CreateChannelMembershipCommand.js +4 -4
  10. package/dist-cjs/commands/CreateChannelModeratorCommand.js +4 -4
  11. package/dist-cjs/commands/DeleteChannelBanCommand.js +4 -4
  12. package/dist-cjs/commands/DeleteChannelCommand.js +4 -4
  13. package/dist-cjs/commands/DeleteChannelFlowCommand.js +4 -4
  14. package/dist-cjs/commands/DeleteChannelMembershipCommand.js +4 -4
  15. package/dist-cjs/commands/DeleteChannelMessageCommand.js +4 -4
  16. package/dist-cjs/commands/DeleteChannelModeratorCommand.js +4 -4
  17. package/dist-cjs/commands/DeleteMessagingStreamingConfigurationsCommand.js +46 -0
  18. package/dist-cjs/commands/DescribeChannelBanCommand.js +4 -4
  19. package/dist-cjs/commands/DescribeChannelCommand.js +4 -4
  20. package/dist-cjs/commands/DescribeChannelFlowCommand.js +4 -4
  21. package/dist-cjs/commands/DescribeChannelMembershipCommand.js +4 -4
  22. package/dist-cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +4 -4
  23. package/dist-cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +4 -4
  24. package/dist-cjs/commands/DescribeChannelModeratorCommand.js +4 -4
  25. package/dist-cjs/commands/DisassociateChannelFlowCommand.js +4 -4
  26. package/dist-cjs/commands/GetChannelMembershipPreferencesCommand.js +4 -4
  27. package/dist-cjs/commands/GetChannelMessageCommand.js +4 -4
  28. package/dist-cjs/commands/GetChannelMessageStatusCommand.js +4 -4
  29. package/dist-cjs/commands/GetMessagingSessionEndpointCommand.js +4 -4
  30. package/dist-cjs/commands/GetMessagingStreamingConfigurationsCommand.js +46 -0
  31. package/dist-cjs/commands/ListChannelBansCommand.js +4 -4
  32. package/dist-cjs/commands/ListChannelFlowsCommand.js +4 -4
  33. package/dist-cjs/commands/ListChannelMembershipsCommand.js +4 -4
  34. package/dist-cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +4 -4
  35. package/dist-cjs/commands/ListChannelMessagesCommand.js +4 -4
  36. package/dist-cjs/commands/ListChannelModeratorsCommand.js +4 -4
  37. package/dist-cjs/commands/ListChannelsAssociatedWithChannelFlowCommand.js +4 -4
  38. package/dist-cjs/commands/ListChannelsCommand.js +4 -4
  39. package/dist-cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +4 -4
  40. package/dist-cjs/commands/ListSubChannelsCommand.js +4 -4
  41. package/dist-cjs/commands/ListTagsForResourceCommand.js +4 -4
  42. package/dist-cjs/commands/PutChannelMembershipPreferencesCommand.js +4 -4
  43. package/dist-cjs/commands/PutMessagingStreamingConfigurationsCommand.js +46 -0
  44. package/dist-cjs/commands/RedactChannelMessageCommand.js +4 -4
  45. package/dist-cjs/commands/SearchChannelsCommand.js +4 -4
  46. package/dist-cjs/commands/SendChannelMessageCommand.js +4 -4
  47. package/dist-cjs/commands/TagResourceCommand.js +4 -4
  48. package/dist-cjs/commands/UntagResourceCommand.js +4 -4
  49. package/dist-cjs/commands/UpdateChannelCommand.js +4 -4
  50. package/dist-cjs/commands/UpdateChannelFlowCommand.js +4 -4
  51. package/dist-cjs/commands/UpdateChannelMessageCommand.js +4 -4
  52. package/dist-cjs/commands/UpdateChannelReadMarkerCommand.js +4 -4
  53. package/dist-cjs/commands/index.js +3 -0
  54. package/dist-cjs/endpoint/ruleset.js +3 -3
  55. package/dist-cjs/models/models_0.js +32 -3
  56. package/dist-cjs/protocols/Aws_restJson1.js +243 -2
  57. package/dist-es/ChimeSDKMessaging.js +45 -0
  58. package/dist-es/commands/AssociateChannelFlowCommand.js +4 -4
  59. package/dist-es/commands/BatchCreateChannelMembershipCommand.js +4 -4
  60. package/dist-es/commands/ChannelFlowCallbackCommand.js +4 -4
  61. package/dist-es/commands/CreateChannelBanCommand.js +4 -4
  62. package/dist-es/commands/CreateChannelCommand.js +4 -4
  63. package/dist-es/commands/CreateChannelFlowCommand.js +4 -4
  64. package/dist-es/commands/CreateChannelMembershipCommand.js +4 -4
  65. package/dist-es/commands/CreateChannelModeratorCommand.js +4 -4
  66. package/dist-es/commands/DeleteChannelBanCommand.js +4 -4
  67. package/dist-es/commands/DeleteChannelCommand.js +4 -4
  68. package/dist-es/commands/DeleteChannelFlowCommand.js +4 -4
  69. package/dist-es/commands/DeleteChannelMembershipCommand.js +4 -4
  70. package/dist-es/commands/DeleteChannelMessageCommand.js +4 -4
  71. package/dist-es/commands/DeleteChannelModeratorCommand.js +4 -4
  72. package/dist-es/commands/DeleteMessagingStreamingConfigurationsCommand.js +42 -0
  73. package/dist-es/commands/DescribeChannelBanCommand.js +4 -4
  74. package/dist-es/commands/DescribeChannelCommand.js +4 -4
  75. package/dist-es/commands/DescribeChannelFlowCommand.js +4 -4
  76. package/dist-es/commands/DescribeChannelMembershipCommand.js +4 -4
  77. package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +4 -4
  78. package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +4 -4
  79. package/dist-es/commands/DescribeChannelModeratorCommand.js +4 -4
  80. package/dist-es/commands/DisassociateChannelFlowCommand.js +4 -4
  81. package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +4 -4
  82. package/dist-es/commands/GetChannelMessageCommand.js +4 -4
  83. package/dist-es/commands/GetChannelMessageStatusCommand.js +4 -4
  84. package/dist-es/commands/GetMessagingSessionEndpointCommand.js +4 -4
  85. package/dist-es/commands/GetMessagingStreamingConfigurationsCommand.js +42 -0
  86. package/dist-es/commands/ListChannelBansCommand.js +4 -4
  87. package/dist-es/commands/ListChannelFlowsCommand.js +4 -4
  88. package/dist-es/commands/ListChannelMembershipsCommand.js +4 -4
  89. package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +4 -4
  90. package/dist-es/commands/ListChannelMessagesCommand.js +4 -4
  91. package/dist-es/commands/ListChannelModeratorsCommand.js +4 -4
  92. package/dist-es/commands/ListChannelsAssociatedWithChannelFlowCommand.js +4 -4
  93. package/dist-es/commands/ListChannelsCommand.js +4 -4
  94. package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +4 -4
  95. package/dist-es/commands/ListSubChannelsCommand.js +4 -4
  96. package/dist-es/commands/ListTagsForResourceCommand.js +4 -4
  97. package/dist-es/commands/PutChannelMembershipPreferencesCommand.js +4 -4
  98. package/dist-es/commands/PutMessagingStreamingConfigurationsCommand.js +42 -0
  99. package/dist-es/commands/RedactChannelMessageCommand.js +4 -4
  100. package/dist-es/commands/SearchChannelsCommand.js +4 -4
  101. package/dist-es/commands/SendChannelMessageCommand.js +4 -4
  102. package/dist-es/commands/TagResourceCommand.js +4 -4
  103. package/dist-es/commands/UntagResourceCommand.js +4 -4
  104. package/dist-es/commands/UpdateChannelCommand.js +4 -4
  105. package/dist-es/commands/UpdateChannelFlowCommand.js +4 -4
  106. package/dist-es/commands/UpdateChannelMessageCommand.js +4 -4
  107. package/dist-es/commands/UpdateChannelReadMarkerCommand.js +4 -4
  108. package/dist-es/commands/index.js +3 -0
  109. package/dist-es/endpoint/ruleset.js +3 -3
  110. package/dist-es/models/models_0.js +23 -0
  111. package/dist-es/protocols/Aws_restJson1.js +235 -0
  112. package/dist-types/ChimeSDKMessaging.d.ts +25 -40
  113. package/dist-types/ChimeSDKMessagingClient.d.ts +7 -4
  114. package/dist-types/commands/AssociateChannelFlowCommand.d.ts +0 -1
  115. package/dist-types/commands/CreateChannelBanCommand.d.ts +0 -1
  116. package/dist-types/commands/CreateChannelCommand.d.ts +0 -2
  117. package/dist-types/commands/CreateChannelFlowCommand.d.ts +1 -3
  118. package/dist-types/commands/CreateChannelMembershipCommand.d.ts +0 -4
  119. package/dist-types/commands/CreateChannelModeratorCommand.d.ts +0 -2
  120. package/dist-types/commands/DeleteChannelBanCommand.d.ts +0 -1
  121. package/dist-types/commands/DeleteChannelCommand.d.ts +0 -1
  122. package/dist-types/commands/DeleteChannelMembershipCommand.d.ts +0 -1
  123. package/dist-types/commands/DeleteChannelMessageCommand.d.ts +0 -1
  124. package/dist-types/commands/DeleteChannelModeratorCommand.d.ts +0 -1
  125. package/dist-types/commands/DeleteMessagingStreamingConfigurationsCommand.d.ts +60 -0
  126. package/dist-types/commands/DescribeChannelBanCommand.d.ts +0 -2
  127. package/dist-types/commands/DescribeChannelCommand.d.ts +0 -2
  128. package/dist-types/commands/DescribeChannelMembershipForAppInstanceUserCommand.d.ts +0 -1
  129. package/dist-types/commands/DescribeChannelModeratedByAppInstanceUserCommand.d.ts +0 -1
  130. package/dist-types/commands/GetChannelMessageCommand.d.ts +0 -1
  131. package/dist-types/commands/GetChannelMessageStatusCommand.d.ts +0 -3
  132. package/dist-types/commands/GetMessagingStreamingConfigurationsCommand.d.ts +66 -0
  133. package/dist-types/commands/ListChannelBansCommand.d.ts +0 -1
  134. package/dist-types/commands/ListChannelMembershipsCommand.d.ts +0 -2
  135. package/dist-types/commands/ListChannelMembershipsForAppInstanceUserCommand.d.ts +0 -1
  136. package/dist-types/commands/ListChannelsCommand.d.ts +0 -2
  137. package/dist-types/commands/ListChannelsModeratedByAppInstanceUserCommand.d.ts +0 -1
  138. package/dist-types/commands/PutMessagingStreamingConfigurationsCommand.d.ts +70 -0
  139. package/dist-types/commands/RedactChannelMessageCommand.d.ts +0 -1
  140. package/dist-types/commands/SendChannelMessageCommand.d.ts +0 -2
  141. package/dist-types/commands/UpdateChannelMessageCommand.d.ts +0 -1
  142. package/dist-types/commands/UpdateChannelReadMarkerCommand.d.ts +0 -1
  143. package/dist-types/commands/index.d.ts +3 -0
  144. package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
  145. package/dist-types/models/models_0.d.ts +75 -0
  146. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  147. package/dist-types/ts3.4/ChimeSDKMessaging.d.ts +69 -0
  148. package/dist-types/ts3.4/ChimeSDKMessagingClient.d.ts +22 -4
  149. package/dist-types/ts3.4/commands/DeleteMessagingStreamingConfigurationsCommand.d.ts +37 -0
  150. package/dist-types/ts3.4/commands/GetMessagingStreamingConfigurationsCommand.d.ts +41 -0
  151. package/dist-types/ts3.4/commands/PutMessagingStreamingConfigurationsCommand.d.ts +41 -0
  152. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  153. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -5
  154. package/dist-types/ts3.4/models/models_0.d.ts +42 -0
  155. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  156. package/package.json +36 -36
@@ -196,6 +196,11 @@ export var ChannelMessageType;
196
196
  ChannelMessageType["CONTROL"] = "CONTROL";
197
197
  ChannelMessageType["STANDARD"] = "STANDARD";
198
198
  })(ChannelMessageType || (ChannelMessageType = {}));
199
+ export var MessagingDataType;
200
+ (function (MessagingDataType) {
201
+ MessagingDataType["Channel"] = "Channel";
202
+ MessagingDataType["ChannelMessage"] = "ChannelMessage";
203
+ })(MessagingDataType || (MessagingDataType = {}));
199
204
  export var SortOrder;
200
205
  (function (SortOrder) {
201
206
  SortOrder["ASCENDING"] = "ASCENDING";
@@ -434,6 +439,9 @@ export const DeleteChannelMessageRequestFilterSensitiveLog = (obj) => ({
434
439
  export const DeleteChannelModeratorRequestFilterSensitiveLog = (obj) => ({
435
440
  ...obj,
436
441
  });
442
+ export const DeleteMessagingStreamingConfigurationsRequestFilterSensitiveLog = (obj) => ({
443
+ ...obj,
444
+ });
437
445
  export const DescribeChannelRequestFilterSensitiveLog = (obj) => ({
438
446
  ...obj,
439
447
  });
@@ -518,6 +526,15 @@ export const MessagingSessionEndpointFilterSensitiveLog = (obj) => ({
518
526
  export const GetMessagingSessionEndpointResponseFilterSensitiveLog = (obj) => ({
519
527
  ...obj,
520
528
  });
529
+ export const GetMessagingStreamingConfigurationsRequestFilterSensitiveLog = (obj) => ({
530
+ ...obj,
531
+ });
532
+ export const StreamingConfigurationFilterSensitiveLog = (obj) => ({
533
+ ...obj,
534
+ });
535
+ export const GetMessagingStreamingConfigurationsResponseFilterSensitiveLog = (obj) => ({
536
+ ...obj,
537
+ });
521
538
  export const ListChannelBansRequestFilterSensitiveLog = (obj) => ({
522
539
  ...obj,
523
540
  ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
@@ -638,6 +655,12 @@ export const PutChannelMembershipPreferencesResponseFilterSensitiveLog = (obj) =
638
655
  ...(obj.Member && { Member: IdentityFilterSensitiveLog(obj.Member) }),
639
656
  ...(obj.Preferences && { Preferences: ChannelMembershipPreferencesFilterSensitiveLog(obj.Preferences) }),
640
657
  });
658
+ export const PutMessagingStreamingConfigurationsRequestFilterSensitiveLog = (obj) => ({
659
+ ...obj,
660
+ });
661
+ export const PutMessagingStreamingConfigurationsResponseFilterSensitiveLog = (obj) => ({
662
+ ...obj,
663
+ });
641
664
  export const RedactChannelMessageRequestFilterSensitiveLog = (obj) => ({
642
665
  ...obj,
643
666
  });
@@ -334,6 +334,23 @@ export const serializeAws_restJson1DeleteChannelModeratorCommand = async (input,
334
334
  body,
335
335
  });
336
336
  };
337
+ export const serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
338
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
+ const headers = {};
340
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
341
+ "/app-instances/{AppInstanceArn}/streaming-configurations";
342
+ resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
343
+ let body;
344
+ return new __HttpRequest({
345
+ protocol,
346
+ hostname,
347
+ port,
348
+ method: "DELETE",
349
+ headers,
350
+ path: resolvedPath,
351
+ body,
352
+ });
353
+ };
337
354
  export const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
338
355
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
356
  const headers = map({}, isSerializableHeaderValue, {
@@ -584,6 +601,23 @@ export const serializeAws_restJson1GetMessagingSessionEndpointCommand = async (i
584
601
  body,
585
602
  });
586
603
  };
604
+ export const serializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (input, context) => {
605
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
606
+ const headers = {};
607
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
608
+ "/app-instances/{AppInstanceArn}/streaming-configurations";
609
+ resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
610
+ let body;
611
+ return new __HttpRequest({
612
+ protocol,
613
+ hostname,
614
+ port,
615
+ method: "GET",
616
+ headers,
617
+ path: resolvedPath,
618
+ body,
619
+ });
620
+ };
587
621
  export const serializeAws_restJson1ListChannelBansCommand = async (input, context) => {
588
622
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
589
623
  const headers = map({}, isSerializableHeaderValue, {
@@ -871,6 +905,30 @@ export const serializeAws_restJson1PutChannelMembershipPreferencesCommand = asyn
871
905
  body,
872
906
  });
873
907
  };
908
+ export const serializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (input, context) => {
909
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
910
+ const headers = {
911
+ "content-type": "application/json",
912
+ };
913
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
914
+ "/app-instances/{AppInstanceArn}/streaming-configurations";
915
+ resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
916
+ let body;
917
+ body = JSON.stringify({
918
+ ...(input.StreamingConfigurations != null && {
919
+ StreamingConfigurations: serializeAws_restJson1StreamingConfigurationList(input.StreamingConfigurations, context),
920
+ }),
921
+ });
922
+ return new __HttpRequest({
923
+ protocol,
924
+ hostname,
925
+ port,
926
+ method: "PUT",
927
+ headers,
928
+ path: resolvedPath,
929
+ body,
930
+ });
931
+ };
874
932
  export const serializeAws_restJson1RedactChannelMessageCommand = async (input, context) => {
875
933
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
876
934
  const headers = map({}, isSerializableHeaderValue, {
@@ -1826,6 +1884,48 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
1826
1884
  });
1827
1885
  }
1828
1886
  };
1887
+ export const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
1888
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1889
+ return deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError(output, context);
1890
+ }
1891
+ const contents = map({
1892
+ $metadata: deserializeMetadata(output),
1893
+ });
1894
+ await collectBody(output.body, context);
1895
+ return contents;
1896
+ };
1897
+ const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError = async (output, context) => {
1898
+ const parsedOutput = {
1899
+ ...output,
1900
+ body: await parseErrorBody(output.body, context),
1901
+ };
1902
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1903
+ switch (errorCode) {
1904
+ case "ForbiddenException":
1905
+ case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1906
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1907
+ case "ServiceFailureException":
1908
+ case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1909
+ throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1910
+ case "ServiceUnavailableException":
1911
+ case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1912
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1913
+ case "ThrottledClientException":
1914
+ case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1915
+ throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1916
+ case "UnauthorizedClientException":
1917
+ case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1918
+ throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1919
+ default:
1920
+ const parsedBody = parsedOutput.body;
1921
+ throwDefaultError({
1922
+ output,
1923
+ parsedBody,
1924
+ exceptionCtor: __BaseException,
1925
+ errorCode,
1926
+ });
1927
+ }
1928
+ };
1829
1929
  export const deserializeAws_restJson1DescribeChannelCommand = async (output, context) => {
1830
1930
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1831
1931
  return deserializeAws_restJson1DescribeChannelCommandError(output, context);
@@ -2420,6 +2520,57 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
2420
2520
  });
2421
2521
  }
2422
2522
  };
2523
+ export const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (output, context) => {
2524
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2525
+ return deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError(output, context);
2526
+ }
2527
+ const contents = map({
2528
+ $metadata: deserializeMetadata(output),
2529
+ });
2530
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2531
+ if (data.StreamingConfigurations != null) {
2532
+ contents.StreamingConfigurations = deserializeAws_restJson1StreamingConfigurationList(data.StreamingConfigurations, context);
2533
+ }
2534
+ return contents;
2535
+ };
2536
+ const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError = async (output, context) => {
2537
+ const parsedOutput = {
2538
+ ...output,
2539
+ body: await parseErrorBody(output.body, context),
2540
+ };
2541
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2542
+ switch (errorCode) {
2543
+ case "BadRequestException":
2544
+ case "com.amazonaws.chimesdkmessaging#BadRequestException":
2545
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2546
+ case "ForbiddenException":
2547
+ case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2548
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2549
+ case "NotFoundException":
2550
+ case "com.amazonaws.chimesdkmessaging#NotFoundException":
2551
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2552
+ case "ServiceFailureException":
2553
+ case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2554
+ throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2555
+ case "ServiceUnavailableException":
2556
+ case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2557
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2558
+ case "ThrottledClientException":
2559
+ case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2560
+ throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2561
+ case "UnauthorizedClientException":
2562
+ case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2563
+ throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2564
+ default:
2565
+ const parsedBody = parsedOutput.body;
2566
+ throwDefaultError({
2567
+ output,
2568
+ parsedBody,
2569
+ exceptionCtor: __BaseException,
2570
+ errorCode,
2571
+ });
2572
+ }
2573
+ };
2423
2574
  export const deserializeAws_restJson1ListChannelBansCommand = async (output, context) => {
2424
2575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2425
2576
  return deserializeAws_restJson1ListChannelBansCommandError(output, context);
@@ -3053,6 +3204,60 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
3053
3204
  });
3054
3205
  }
3055
3206
  };
3207
+ export const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (output, context) => {
3208
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3209
+ return deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError(output, context);
3210
+ }
3211
+ const contents = map({
3212
+ $metadata: deserializeMetadata(output),
3213
+ });
3214
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3215
+ if (data.StreamingConfigurations != null) {
3216
+ contents.StreamingConfigurations = deserializeAws_restJson1StreamingConfigurationList(data.StreamingConfigurations, context);
3217
+ }
3218
+ return contents;
3219
+ };
3220
+ const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
3221
+ const parsedOutput = {
3222
+ ...output,
3223
+ body: await parseErrorBody(output.body, context),
3224
+ };
3225
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3226
+ switch (errorCode) {
3227
+ case "BadRequestException":
3228
+ case "com.amazonaws.chimesdkmessaging#BadRequestException":
3229
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3230
+ case "ConflictException":
3231
+ case "com.amazonaws.chimesdkmessaging#ConflictException":
3232
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3233
+ case "ForbiddenException":
3234
+ case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3235
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3236
+ case "NotFoundException":
3237
+ case "com.amazonaws.chimesdkmessaging#NotFoundException":
3238
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
3239
+ case "ServiceFailureException":
3240
+ case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3241
+ throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3242
+ case "ServiceUnavailableException":
3243
+ case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3244
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3245
+ case "ThrottledClientException":
3246
+ case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3247
+ throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3248
+ case "UnauthorizedClientException":
3249
+ case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3250
+ throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3251
+ default:
3252
+ const parsedBody = parsedOutput.body;
3253
+ throwDefaultError({
3254
+ output,
3255
+ parsedBody,
3256
+ exceptionCtor: __BaseException,
3257
+ errorCode,
3258
+ });
3259
+ }
3260
+ };
3056
3261
  export const deserializeAws_restJson1RedactChannelMessageCommand = async (output, context) => {
3057
3262
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3058
3263
  return deserializeAws_restJson1RedactChannelMessageCommandError(output, context);
@@ -3804,6 +4009,19 @@ const serializeAws_restJson1SearchFieldValues = (input, context) => {
3804
4009
  return entry;
3805
4010
  });
3806
4011
  };
4012
+ const serializeAws_restJson1StreamingConfiguration = (input, context) => {
4013
+ return {
4014
+ ...(input.DataType != null && { DataType: input.DataType }),
4015
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4016
+ };
4017
+ };
4018
+ const serializeAws_restJson1StreamingConfigurationList = (input, context) => {
4019
+ return input
4020
+ .filter((e) => e != null)
4021
+ .map((entry) => {
4022
+ return serializeAws_restJson1StreamingConfiguration(entry, context);
4023
+ });
4024
+ };
3807
4025
  const serializeAws_restJson1Tag = (input, context) => {
3808
4026
  return {
3809
4027
  ...(input.Key != null && { Key: input.Key }),
@@ -4246,6 +4464,23 @@ const deserializeAws_restJson1PushNotificationPreferences = (output, context) =>
4246
4464
  FilterRule: __expectString(output.FilterRule),
4247
4465
  };
4248
4466
  };
4467
+ const deserializeAws_restJson1StreamingConfiguration = (output, context) => {
4468
+ return {
4469
+ DataType: __expectString(output.DataType),
4470
+ ResourceArn: __expectString(output.ResourceArn),
4471
+ };
4472
+ };
4473
+ const deserializeAws_restJson1StreamingConfigurationList = (output, context) => {
4474
+ const retVal = (output || [])
4475
+ .filter((e) => e != null)
4476
+ .map((entry) => {
4477
+ if (entry === null) {
4478
+ return null;
4479
+ }
4480
+ return deserializeAws_restJson1StreamingConfiguration(entry, context);
4481
+ });
4482
+ return retVal;
4483
+ };
4249
4484
  const deserializeAws_restJson1SubChannelSummary = (output, context) => {
4250
4485
  return {
4251
4486
  MembershipCount: __expectInt32(output.MembershipCount),