@aws-sdk/client-connect 3.398.0 → 3.405.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 (144) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/Connect.js +18 -0
  3. package/dist-cjs/commands/CreateViewCommand.js +47 -0
  4. package/dist-cjs/commands/CreateViewVersionCommand.js +47 -0
  5. package/dist-cjs/commands/DeleteViewCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteViewVersionCommand.js +46 -0
  7. package/dist-cjs/commands/DescribeViewCommand.js +47 -0
  8. package/dist-cjs/commands/ListViewVersionsCommand.js +47 -0
  9. package/dist-cjs/commands/ListViewsCommand.js +47 -0
  10. package/dist-cjs/commands/UpdateViewContentCommand.js +47 -0
  11. package/dist-cjs/commands/UpdateViewMetadataCommand.js +47 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/models/models_0.js +66 -6
  14. package/dist-cjs/models/models_1.js +25 -1
  15. package/dist-cjs/models/models_2.js +18 -1
  16. package/dist-cjs/pagination/ListViewVersionsPaginator.js +29 -0
  17. package/dist-cjs/pagination/ListViewsPaginator.js +29 -0
  18. package/dist-cjs/pagination/index.js +2 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +713 -20
  20. package/dist-es/Connect.js +18 -0
  21. package/dist-es/commands/CreateViewCommand.js +43 -0
  22. package/dist-es/commands/CreateViewVersionCommand.js +43 -0
  23. package/dist-es/commands/DeleteViewCommand.js +42 -0
  24. package/dist-es/commands/DeleteViewVersionCommand.js +42 -0
  25. package/dist-es/commands/DescribeViewCommand.js +43 -0
  26. package/dist-es/commands/ListViewVersionsCommand.js +43 -0
  27. package/dist-es/commands/ListViewsCommand.js +43 -0
  28. package/dist-es/commands/UpdateViewContentCommand.js +43 -0
  29. package/dist-es/commands/UpdateViewMetadataCommand.js +43 -0
  30. package/dist-es/commands/index.js +9 -0
  31. package/dist-es/models/models_0.js +57 -5
  32. package/dist-es/models/models_1.js +20 -0
  33. package/dist-es/models/models_2.js +14 -0
  34. package/dist-es/pagination/ListViewVersionsPaginator.js +25 -0
  35. package/dist-es/pagination/ListViewsPaginator.js +25 -0
  36. package/dist-es/pagination/index.js +2 -0
  37. package/dist-es/protocols/Aws_restJson1.js +687 -13
  38. package/dist-types/Connect.d.ts +63 -0
  39. package/dist-types/ConnectClient.d.ts +11 -2
  40. package/dist-types/commands/CreateQueueCommand.d.ts +20 -13
  41. package/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +8 -0
  42. package/dist-types/commands/CreateViewCommand.d.ts +140 -0
  43. package/dist-types/commands/CreateViewVersionCommand.d.ts +126 -0
  44. package/dist-types/commands/DeleteViewCommand.d.ts +93 -0
  45. package/dist-types/commands/DeleteViewVersionCommand.d.ts +94 -0
  46. package/dist-types/commands/DescribeViewCommand.d.ts +121 -0
  47. package/dist-types/commands/DescribeVocabularyCommand.d.ts +2 -1
  48. package/dist-types/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
  49. package/dist-types/commands/DisassociateBotCommand.d.ts +1 -1
  50. package/dist-types/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
  51. package/dist-types/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
  52. package/dist-types/commands/DisassociateLexBotCommand.d.ts +1 -1
  53. package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
  54. package/dist-types/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
  55. package/dist-types/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
  56. package/dist-types/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
  57. package/dist-types/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
  58. package/dist-types/commands/DismissUserContactCommand.d.ts +1 -1
  59. package/dist-types/commands/GetContactAttributesCommand.d.ts +1 -2
  60. package/dist-types/commands/ListPhoneNumbersCommand.d.ts +14 -4
  61. package/dist-types/commands/ListViewVersionsCommand.d.ts +106 -0
  62. package/dist-types/commands/ListViewsCommand.d.ts +105 -0
  63. package/dist-types/commands/StopContactCommand.d.ts +5 -3
  64. package/dist-types/commands/UpdatePromptCommand.d.ts +2 -1
  65. package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  66. package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -1
  68. package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +21 -14
  69. package/dist-types/commands/UpdateQueueStatusCommand.d.ts +1 -1
  70. package/dist-types/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
  71. package/dist-types/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
  72. package/dist-types/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
  73. package/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
  74. package/dist-types/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
  75. package/dist-types/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
  76. package/dist-types/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
  77. package/dist-types/commands/UpdateRuleCommand.d.ts +1 -1
  78. package/dist-types/commands/UpdateSecurityProfileCommand.d.ts +1 -1
  79. package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +1 -1
  80. package/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +6 -3
  81. package/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  82. package/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  83. package/dist-types/commands/UpdateViewContentCommand.d.ts +127 -0
  84. package/dist-types/commands/UpdateViewMetadataCommand.d.ts +99 -0
  85. package/dist-types/commands/index.d.ts +9 -0
  86. package/dist-types/models/models_0.d.ts +359 -317
  87. package/dist-types/models/models_1.d.ts +478 -553
  88. package/dist-types/models/models_2.d.ts +632 -2
  89. package/dist-types/pagination/ListViewVersionsPaginator.d.ts +7 -0
  90. package/dist-types/pagination/ListViewsPaginator.d.ts +7 -0
  91. package/dist-types/pagination/index.d.ts +2 -0
  92. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  93. package/dist-types/ts3.4/Connect.d.ts +153 -0
  94. package/dist-types/ts3.4/ConnectClient.d.ts +56 -2
  95. package/dist-types/ts3.4/commands/CreateViewCommand.d.ts +35 -0
  96. package/dist-types/ts3.4/commands/CreateViewVersionCommand.d.ts +39 -0
  97. package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +35 -0
  98. package/dist-types/ts3.4/commands/DeleteViewVersionCommand.d.ts +39 -0
  99. package/dist-types/ts3.4/commands/DescribeViewCommand.d.ts +35 -0
  100. package/dist-types/ts3.4/commands/DescribeVocabularyCommand.d.ts +2 -4
  101. package/dist-types/ts3.4/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
  102. package/dist-types/ts3.4/commands/DisassociateBotCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/DisassociateLexBotCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/DismissUserContactCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/GetContactAttributesCommand.d.ts +4 -2
  113. package/dist-types/ts3.4/commands/ListViewVersionsCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/ListViewsCommand.d.ts +35 -0
  115. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +2 -1
  116. package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/UpdateQueueNameCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/UpdateQueueStatusCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +1 -1
  129. package/dist-types/ts3.4/commands/UpdateSecurityProfileCommand.d.ts +1 -1
  130. package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +1 -1
  131. package/dist-types/ts3.4/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
  132. package/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  133. package/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  134. package/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +39 -0
  135. package/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +39 -0
  136. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  137. package/dist-types/ts3.4/models/models_0.d.ts +117 -90
  138. package/dist-types/ts3.4/models/models_1.d.ts +121 -135
  139. package/dist-types/ts3.4/models/models_2.d.ts +171 -1
  140. package/dist-types/ts3.4/pagination/ListViewVersionsPaginator.d.ts +11 -0
  141. package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +11 -0
  142. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  143. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  144. package/package.json +7 -7
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { ConnectServiceException as __BaseException } from "../models/ConnectServiceException";
5
- import { AccessDeniedException, ContactFlowNotPublishedException, DuplicateResourceException, EvaluationAnswerData, IdempotencyException, InternalServiceException, InvalidContactFlowException, InvalidContactFlowModuleException, InvalidParameterException, InvalidRequestException, LimitExceededException, PropertyValidationException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, } from "../models/models_0";
5
+ import { AccessDeniedException, ContactFlowNotPublishedException, DuplicateResourceException, EvaluationAnswerData, IdempotencyException, InternalServiceException, InvalidContactFlowException, InvalidContactFlowModuleException, InvalidParameterException, InvalidRequestException, LimitExceededException, PropertyValidationException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, TooManyRequestsException, } from "../models/models_0";
6
6
  import { ContactNotFoundException, DestinationNotAllowedException, MaximumResultReturnedException, OutboundContactNotPermittedException, UserNotFoundException, } from "../models/models_1";
7
7
  import { EvaluationFormItem, } from "../models/models_2";
8
8
  export const se_ActivateEvaluationFormCommand = async (input, context) => {
@@ -777,6 +777,55 @@ export const se_CreateUserHierarchyGroupCommand = async (input, context) => {
777
777
  body,
778
778
  });
779
779
  };
780
+ export const se_CreateViewCommand = async (input, context) => {
781
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
782
+ const headers = {
783
+ "content-type": "application/json",
784
+ };
785
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}";
786
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
787
+ let body;
788
+ body = JSON.stringify(take(input, {
789
+ ClientToken: [],
790
+ Content: (_) => _json(_),
791
+ Description: [],
792
+ Name: [],
793
+ Status: [],
794
+ Tags: (_) => _json(_),
795
+ }));
796
+ return new __HttpRequest({
797
+ protocol,
798
+ hostname,
799
+ port,
800
+ method: "PUT",
801
+ headers,
802
+ path: resolvedPath,
803
+ body,
804
+ });
805
+ };
806
+ export const se_CreateViewVersionCommand = async (input, context) => {
807
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
808
+ const headers = {
809
+ "content-type": "application/json",
810
+ };
811
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/versions";
812
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
813
+ resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
814
+ let body;
815
+ body = JSON.stringify(take(input, {
816
+ VersionDescription: [],
817
+ ViewContentSha256: [],
818
+ }));
819
+ return new __HttpRequest({
820
+ protocol,
821
+ hostname,
822
+ port,
823
+ method: "PUT",
824
+ headers,
825
+ path: resolvedPath,
826
+ body,
827
+ });
828
+ };
780
829
  export const se_CreateVocabularyCommand = async (input, context) => {
781
830
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
782
831
  const headers = {
@@ -1147,6 +1196,42 @@ export const se_DeleteUserHierarchyGroupCommand = async (input, context) => {
1147
1196
  body,
1148
1197
  });
1149
1198
  };
1199
+ export const se_DeleteViewCommand = async (input, context) => {
1200
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1201
+ const headers = {};
1202
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}";
1203
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1204
+ resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
1205
+ let body;
1206
+ return new __HttpRequest({
1207
+ protocol,
1208
+ hostname,
1209
+ port,
1210
+ method: "DELETE",
1211
+ headers,
1212
+ path: resolvedPath,
1213
+ body,
1214
+ });
1215
+ };
1216
+ export const se_DeleteViewVersionCommand = async (input, context) => {
1217
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1218
+ const headers = {};
1219
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1220
+ "/views/{InstanceId}/{ViewId}/versions/{ViewVersion}";
1221
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1222
+ resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
1223
+ resolvedPath = __resolvedPath(resolvedPath, input, "ViewVersion", () => input.ViewVersion.toString(), "{ViewVersion}", false);
1224
+ let body;
1225
+ return new __HttpRequest({
1226
+ protocol,
1227
+ hostname,
1228
+ port,
1229
+ method: "DELETE",
1230
+ headers,
1231
+ path: resolvedPath,
1232
+ body,
1233
+ });
1234
+ };
1150
1235
  export const se_DeleteVocabularyCommand = async (input, context) => {
1151
1236
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1152
1237
  const headers = {};
@@ -1539,6 +1624,23 @@ export const se_DescribeUserHierarchyStructureCommand = async (input, context) =
1539
1624
  body,
1540
1625
  });
1541
1626
  };
1627
+ export const se_DescribeViewCommand = async (input, context) => {
1628
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1629
+ const headers = {};
1630
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}";
1631
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1632
+ resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
1633
+ let body;
1634
+ return new __HttpRequest({
1635
+ protocol,
1636
+ hostname,
1637
+ port,
1638
+ method: "GET",
1639
+ headers,
1640
+ path: resolvedPath,
1641
+ body,
1642
+ });
1643
+ };
1542
1644
  export const se_DescribeVocabularyCommand = async (input, context) => {
1543
1645
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1544
1646
  const headers = {};
@@ -2786,6 +2888,50 @@ export const se_ListUsersCommand = async (input, context) => {
2786
2888
  body,
2787
2889
  });
2788
2890
  };
2891
+ export const se_ListViewsCommand = async (input, context) => {
2892
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2893
+ const headers = {};
2894
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}";
2895
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2896
+ const query = map({
2897
+ type: [, input.Type],
2898
+ nextToken: [, input.NextToken],
2899
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
2900
+ });
2901
+ let body;
2902
+ return new __HttpRequest({
2903
+ protocol,
2904
+ hostname,
2905
+ port,
2906
+ method: "GET",
2907
+ headers,
2908
+ path: resolvedPath,
2909
+ query,
2910
+ body,
2911
+ });
2912
+ };
2913
+ export const se_ListViewVersionsCommand = async (input, context) => {
2914
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2915
+ const headers = {};
2916
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/versions";
2917
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2918
+ resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
2919
+ const query = map({
2920
+ nextToken: [, input.NextToken],
2921
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
2922
+ });
2923
+ let body;
2924
+ return new __HttpRequest({
2925
+ protocol,
2926
+ hostname,
2927
+ port,
2928
+ method: "GET",
2929
+ headers,
2930
+ path: resolvedPath,
2931
+ query,
2932
+ body,
2933
+ });
2934
+ };
2789
2935
  export const se_MonitorContactCommand = async (input, context) => {
2790
2936
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2791
2937
  const headers = {
@@ -4427,6 +4573,52 @@ export const se_UpdateUserSecurityProfilesCommand = async (input, context) => {
4427
4573
  body,
4428
4574
  });
4429
4575
  };
4576
+ export const se_UpdateViewContentCommand = async (input, context) => {
4577
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4578
+ const headers = {
4579
+ "content-type": "application/json",
4580
+ };
4581
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}";
4582
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
4583
+ resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
4584
+ let body;
4585
+ body = JSON.stringify(take(input, {
4586
+ Content: (_) => _json(_),
4587
+ Status: [],
4588
+ }));
4589
+ return new __HttpRequest({
4590
+ protocol,
4591
+ hostname,
4592
+ port,
4593
+ method: "POST",
4594
+ headers,
4595
+ path: resolvedPath,
4596
+ body,
4597
+ });
4598
+ };
4599
+ export const se_UpdateViewMetadataCommand = async (input, context) => {
4600
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4601
+ const headers = {
4602
+ "content-type": "application/json",
4603
+ };
4604
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/metadata";
4605
+ resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
4606
+ resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
4607
+ let body;
4608
+ body = JSON.stringify(take(input, {
4609
+ Description: [],
4610
+ Name: [],
4611
+ }));
4612
+ return new __HttpRequest({
4613
+ protocol,
4614
+ hostname,
4615
+ port,
4616
+ method: "POST",
4617
+ headers,
4618
+ path: resolvedPath,
4619
+ body,
4620
+ });
4621
+ };
4430
4622
  export const de_ActivateEvaluationFormCommand = async (output, context) => {
4431
4623
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4432
4624
  return de_ActivateEvaluationFormCommandError(output, context);
@@ -5991,6 +6183,117 @@ const de_CreateUserHierarchyGroupCommandError = async (output, context) => {
5991
6183
  });
5992
6184
  }
5993
6185
  };
6186
+ export const de_CreateViewCommand = async (output, context) => {
6187
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6188
+ return de_CreateViewCommandError(output, context);
6189
+ }
6190
+ const contents = map({
6191
+ $metadata: deserializeMetadata(output),
6192
+ });
6193
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6194
+ const doc = take(data, {
6195
+ View: (_) => de_View(_, context),
6196
+ });
6197
+ Object.assign(contents, doc);
6198
+ return contents;
6199
+ };
6200
+ const de_CreateViewCommandError = async (output, context) => {
6201
+ const parsedOutput = {
6202
+ ...output,
6203
+ body: await parseErrorBody(output.body, context),
6204
+ };
6205
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6206
+ switch (errorCode) {
6207
+ case "AccessDeniedException":
6208
+ case "com.amazonaws.connect#AccessDeniedException":
6209
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6210
+ case "DuplicateResourceException":
6211
+ case "com.amazonaws.connect#DuplicateResourceException":
6212
+ throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
6213
+ case "InternalServiceException":
6214
+ case "com.amazonaws.connect#InternalServiceException":
6215
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
6216
+ case "InvalidParameterException":
6217
+ case "com.amazonaws.connect#InvalidParameterException":
6218
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
6219
+ case "InvalidRequestException":
6220
+ case "com.amazonaws.connect#InvalidRequestException":
6221
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6222
+ case "ResourceInUseException":
6223
+ case "com.amazonaws.connect#ResourceInUseException":
6224
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
6225
+ case "ResourceNotFoundException":
6226
+ case "com.amazonaws.connect#ResourceNotFoundException":
6227
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6228
+ case "ServiceQuotaExceededException":
6229
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
6230
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
6231
+ case "TooManyRequestsException":
6232
+ case "com.amazonaws.connect#TooManyRequestsException":
6233
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
6234
+ default:
6235
+ const parsedBody = parsedOutput.body;
6236
+ return throwDefaultError({
6237
+ output,
6238
+ parsedBody,
6239
+ errorCode,
6240
+ });
6241
+ }
6242
+ };
6243
+ export const de_CreateViewVersionCommand = async (output, context) => {
6244
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6245
+ return de_CreateViewVersionCommandError(output, context);
6246
+ }
6247
+ const contents = map({
6248
+ $metadata: deserializeMetadata(output),
6249
+ });
6250
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6251
+ const doc = take(data, {
6252
+ View: (_) => de_View(_, context),
6253
+ });
6254
+ Object.assign(contents, doc);
6255
+ return contents;
6256
+ };
6257
+ const de_CreateViewVersionCommandError = async (output, context) => {
6258
+ const parsedOutput = {
6259
+ ...output,
6260
+ body: await parseErrorBody(output.body, context),
6261
+ };
6262
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6263
+ switch (errorCode) {
6264
+ case "AccessDeniedException":
6265
+ case "com.amazonaws.connect#AccessDeniedException":
6266
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6267
+ case "InternalServiceException":
6268
+ case "com.amazonaws.connect#InternalServiceException":
6269
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
6270
+ case "InvalidParameterException":
6271
+ case "com.amazonaws.connect#InvalidParameterException":
6272
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
6273
+ case "InvalidRequestException":
6274
+ case "com.amazonaws.connect#InvalidRequestException":
6275
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6276
+ case "ResourceInUseException":
6277
+ case "com.amazonaws.connect#ResourceInUseException":
6278
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
6279
+ case "ResourceNotFoundException":
6280
+ case "com.amazonaws.connect#ResourceNotFoundException":
6281
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6282
+ case "ServiceQuotaExceededException":
6283
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
6284
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
6285
+ case "TooManyRequestsException":
6286
+ case "com.amazonaws.connect#TooManyRequestsException":
6287
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
6288
+ default:
6289
+ const parsedBody = parsedOutput.body;
6290
+ return throwDefaultError({
6291
+ output,
6292
+ parsedBody,
6293
+ errorCode,
6294
+ });
6295
+ }
6296
+ };
5994
6297
  export const de_CreateVocabularyCommand = async (output, context) => {
5995
6298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5996
6299
  return de_CreateVocabularyCommandError(output, context);
@@ -6753,9 +7056,94 @@ const de_DeleteUseCaseCommandError = async (output, context) => {
6753
7056
  });
6754
7057
  }
6755
7058
  };
6756
- export const de_DeleteUserCommand = async (output, context) => {
7059
+ export const de_DeleteUserCommand = async (output, context) => {
7060
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7061
+ return de_DeleteUserCommandError(output, context);
7062
+ }
7063
+ const contents = map({
7064
+ $metadata: deserializeMetadata(output),
7065
+ });
7066
+ await collectBody(output.body, context);
7067
+ return contents;
7068
+ };
7069
+ const de_DeleteUserCommandError = async (output, context) => {
7070
+ const parsedOutput = {
7071
+ ...output,
7072
+ body: await parseErrorBody(output.body, context),
7073
+ };
7074
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7075
+ switch (errorCode) {
7076
+ case "InternalServiceException":
7077
+ case "com.amazonaws.connect#InternalServiceException":
7078
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
7079
+ case "InvalidParameterException":
7080
+ case "com.amazonaws.connect#InvalidParameterException":
7081
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
7082
+ case "InvalidRequestException":
7083
+ case "com.amazonaws.connect#InvalidRequestException":
7084
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
7085
+ case "ResourceNotFoundException":
7086
+ case "com.amazonaws.connect#ResourceNotFoundException":
7087
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
7088
+ case "ThrottlingException":
7089
+ case "com.amazonaws.connect#ThrottlingException":
7090
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
7091
+ default:
7092
+ const parsedBody = parsedOutput.body;
7093
+ return throwDefaultError({
7094
+ output,
7095
+ parsedBody,
7096
+ errorCode,
7097
+ });
7098
+ }
7099
+ };
7100
+ export const de_DeleteUserHierarchyGroupCommand = async (output, context) => {
7101
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7102
+ return de_DeleteUserHierarchyGroupCommandError(output, context);
7103
+ }
7104
+ const contents = map({
7105
+ $metadata: deserializeMetadata(output),
7106
+ });
7107
+ await collectBody(output.body, context);
7108
+ return contents;
7109
+ };
7110
+ const de_DeleteUserHierarchyGroupCommandError = async (output, context) => {
7111
+ const parsedOutput = {
7112
+ ...output,
7113
+ body: await parseErrorBody(output.body, context),
7114
+ };
7115
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7116
+ switch (errorCode) {
7117
+ case "InternalServiceException":
7118
+ case "com.amazonaws.connect#InternalServiceException":
7119
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
7120
+ case "InvalidParameterException":
7121
+ case "com.amazonaws.connect#InvalidParameterException":
7122
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
7123
+ case "InvalidRequestException":
7124
+ case "com.amazonaws.connect#InvalidRequestException":
7125
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
7126
+ case "ResourceInUseException":
7127
+ case "com.amazonaws.connect#ResourceInUseException":
7128
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
7129
+ case "ResourceNotFoundException":
7130
+ case "com.amazonaws.connect#ResourceNotFoundException":
7131
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
7132
+ case "ThrottlingException":
7133
+ case "com.amazonaws.connect#ThrottlingException":
7134
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
7135
+ default:
7136
+ const parsedBody = parsedOutput.body;
7137
+ return throwDefaultError({
7138
+ output,
7139
+ parsedBody,
7140
+ errorCode,
7141
+ });
7142
+ }
7143
+ };
7144
+ export const de_DeleteViewCommand = async (output, context) => {
6757
7145
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6758
- return de_DeleteUserCommandError(output, context);
7146
+ return de_DeleteViewCommandError(output, context);
6759
7147
  }
6760
7148
  const contents = map({
6761
7149
  $metadata: deserializeMetadata(output),
@@ -6763,13 +7151,16 @@ export const de_DeleteUserCommand = async (output, context) => {
6763
7151
  await collectBody(output.body, context);
6764
7152
  return contents;
6765
7153
  };
6766
- const de_DeleteUserCommandError = async (output, context) => {
7154
+ const de_DeleteViewCommandError = async (output, context) => {
6767
7155
  const parsedOutput = {
6768
7156
  ...output,
6769
7157
  body: await parseErrorBody(output.body, context),
6770
7158
  };
6771
7159
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6772
7160
  switch (errorCode) {
7161
+ case "AccessDeniedException":
7162
+ case "com.amazonaws.connect#AccessDeniedException":
7163
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6773
7164
  case "InternalServiceException":
6774
7165
  case "com.amazonaws.connect#InternalServiceException":
6775
7166
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
@@ -6779,12 +7170,15 @@ const de_DeleteUserCommandError = async (output, context) => {
6779
7170
  case "InvalidRequestException":
6780
7171
  case "com.amazonaws.connect#InvalidRequestException":
6781
7172
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
7173
+ case "ResourceInUseException":
7174
+ case "com.amazonaws.connect#ResourceInUseException":
7175
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
6782
7176
  case "ResourceNotFoundException":
6783
7177
  case "com.amazonaws.connect#ResourceNotFoundException":
6784
7178
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6785
- case "ThrottlingException":
6786
- case "com.amazonaws.connect#ThrottlingException":
6787
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
7179
+ case "TooManyRequestsException":
7180
+ case "com.amazonaws.connect#TooManyRequestsException":
7181
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
6788
7182
  default:
6789
7183
  const parsedBody = parsedOutput.body;
6790
7184
  return throwDefaultError({
@@ -6794,9 +7188,9 @@ const de_DeleteUserCommandError = async (output, context) => {
6794
7188
  });
6795
7189
  }
6796
7190
  };
6797
- export const de_DeleteUserHierarchyGroupCommand = async (output, context) => {
7191
+ export const de_DeleteViewVersionCommand = async (output, context) => {
6798
7192
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6799
- return de_DeleteUserHierarchyGroupCommandError(output, context);
7193
+ return de_DeleteViewVersionCommandError(output, context);
6800
7194
  }
6801
7195
  const contents = map({
6802
7196
  $metadata: deserializeMetadata(output),
@@ -6804,13 +7198,16 @@ export const de_DeleteUserHierarchyGroupCommand = async (output, context) => {
6804
7198
  await collectBody(output.body, context);
6805
7199
  return contents;
6806
7200
  };
6807
- const de_DeleteUserHierarchyGroupCommandError = async (output, context) => {
7201
+ const de_DeleteViewVersionCommandError = async (output, context) => {
6808
7202
  const parsedOutput = {
6809
7203
  ...output,
6810
7204
  body: await parseErrorBody(output.body, context),
6811
7205
  };
6812
7206
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6813
7207
  switch (errorCode) {
7208
+ case "AccessDeniedException":
7209
+ case "com.amazonaws.connect#AccessDeniedException":
7210
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6814
7211
  case "InternalServiceException":
6815
7212
  case "com.amazonaws.connect#InternalServiceException":
6816
7213
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
@@ -6826,9 +7223,9 @@ const de_DeleteUserHierarchyGroupCommandError = async (output, context) => {
6826
7223
  case "ResourceNotFoundException":
6827
7224
  case "com.amazonaws.connect#ResourceNotFoundException":
6828
7225
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6829
- case "ThrottlingException":
6830
- case "com.amazonaws.connect#ThrottlingException":
6831
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
7226
+ case "TooManyRequestsException":
7227
+ case "com.amazonaws.connect#TooManyRequestsException":
7228
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
6832
7229
  default:
6833
7230
  const parsedBody = parsedOutput.body;
6834
7231
  return throwDefaultError({
@@ -7828,6 +8225,54 @@ const de_DescribeUserHierarchyStructureCommandError = async (output, context) =>
7828
8225
  });
7829
8226
  }
7830
8227
  };
8228
+ export const de_DescribeViewCommand = async (output, context) => {
8229
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8230
+ return de_DescribeViewCommandError(output, context);
8231
+ }
8232
+ const contents = map({
8233
+ $metadata: deserializeMetadata(output),
8234
+ });
8235
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8236
+ const doc = take(data, {
8237
+ View: (_) => de_View(_, context),
8238
+ });
8239
+ Object.assign(contents, doc);
8240
+ return contents;
8241
+ };
8242
+ const de_DescribeViewCommandError = async (output, context) => {
8243
+ const parsedOutput = {
8244
+ ...output,
8245
+ body: await parseErrorBody(output.body, context),
8246
+ };
8247
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8248
+ switch (errorCode) {
8249
+ case "AccessDeniedException":
8250
+ case "com.amazonaws.connect#AccessDeniedException":
8251
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
8252
+ case "InternalServiceException":
8253
+ case "com.amazonaws.connect#InternalServiceException":
8254
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
8255
+ case "InvalidParameterException":
8256
+ case "com.amazonaws.connect#InvalidParameterException":
8257
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
8258
+ case "InvalidRequestException":
8259
+ case "com.amazonaws.connect#InvalidRequestException":
8260
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
8261
+ case "ResourceNotFoundException":
8262
+ case "com.amazonaws.connect#ResourceNotFoundException":
8263
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
8264
+ case "TooManyRequestsException":
8265
+ case "com.amazonaws.connect#TooManyRequestsException":
8266
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
8267
+ default:
8268
+ const parsedBody = parsedOutput.body;
8269
+ return throwDefaultError({
8270
+ output,
8271
+ parsedBody,
8272
+ errorCode,
8273
+ });
8274
+ }
8275
+ };
7831
8276
  export const de_DescribeVocabularyCommand = async (output, context) => {
7832
8277
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7833
8278
  return de_DescribeVocabularyCommandError(output, context);
@@ -10380,6 +10825,104 @@ const de_ListUsersCommandError = async (output, context) => {
10380
10825
  });
10381
10826
  }
10382
10827
  };
10828
+ export const de_ListViewsCommand = async (output, context) => {
10829
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10830
+ return de_ListViewsCommandError(output, context);
10831
+ }
10832
+ const contents = map({
10833
+ $metadata: deserializeMetadata(output),
10834
+ });
10835
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
10836
+ const doc = take(data, {
10837
+ NextToken: __expectString,
10838
+ ViewsSummaryList: _json,
10839
+ });
10840
+ Object.assign(contents, doc);
10841
+ return contents;
10842
+ };
10843
+ const de_ListViewsCommandError = async (output, context) => {
10844
+ const parsedOutput = {
10845
+ ...output,
10846
+ body: await parseErrorBody(output.body, context),
10847
+ };
10848
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10849
+ switch (errorCode) {
10850
+ case "AccessDeniedException":
10851
+ case "com.amazonaws.connect#AccessDeniedException":
10852
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
10853
+ case "InternalServiceException":
10854
+ case "com.amazonaws.connect#InternalServiceException":
10855
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
10856
+ case "InvalidParameterException":
10857
+ case "com.amazonaws.connect#InvalidParameterException":
10858
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
10859
+ case "InvalidRequestException":
10860
+ case "com.amazonaws.connect#InvalidRequestException":
10861
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
10862
+ case "ResourceNotFoundException":
10863
+ case "com.amazonaws.connect#ResourceNotFoundException":
10864
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
10865
+ case "TooManyRequestsException":
10866
+ case "com.amazonaws.connect#TooManyRequestsException":
10867
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
10868
+ default:
10869
+ const parsedBody = parsedOutput.body;
10870
+ return throwDefaultError({
10871
+ output,
10872
+ parsedBody,
10873
+ errorCode,
10874
+ });
10875
+ }
10876
+ };
10877
+ export const de_ListViewVersionsCommand = async (output, context) => {
10878
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10879
+ return de_ListViewVersionsCommandError(output, context);
10880
+ }
10881
+ const contents = map({
10882
+ $metadata: deserializeMetadata(output),
10883
+ });
10884
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
10885
+ const doc = take(data, {
10886
+ NextToken: __expectString,
10887
+ ViewVersionSummaryList: _json,
10888
+ });
10889
+ Object.assign(contents, doc);
10890
+ return contents;
10891
+ };
10892
+ const de_ListViewVersionsCommandError = async (output, context) => {
10893
+ const parsedOutput = {
10894
+ ...output,
10895
+ body: await parseErrorBody(output.body, context),
10896
+ };
10897
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10898
+ switch (errorCode) {
10899
+ case "AccessDeniedException":
10900
+ case "com.amazonaws.connect#AccessDeniedException":
10901
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
10902
+ case "InternalServiceException":
10903
+ case "com.amazonaws.connect#InternalServiceException":
10904
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
10905
+ case "InvalidParameterException":
10906
+ case "com.amazonaws.connect#InvalidParameterException":
10907
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
10908
+ case "InvalidRequestException":
10909
+ case "com.amazonaws.connect#InvalidRequestException":
10910
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
10911
+ case "ResourceNotFoundException":
10912
+ case "com.amazonaws.connect#ResourceNotFoundException":
10913
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
10914
+ case "TooManyRequestsException":
10915
+ case "com.amazonaws.connect#TooManyRequestsException":
10916
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
10917
+ default:
10918
+ const parsedBody = parsedOutput.body;
10919
+ return throwDefaultError({
10920
+ output,
10921
+ parsedBody,
10922
+ errorCode,
10923
+ });
10924
+ }
10925
+ };
10383
10926
  export const de_MonitorContactCommand = async (output, context) => {
10384
10927
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10385
10928
  return de_MonitorContactCommandError(output, context);
@@ -13421,6 +13964,107 @@ const de_UpdateUserSecurityProfilesCommandError = async (output, context) => {
13421
13964
  });
13422
13965
  }
13423
13966
  };
13967
+ export const de_UpdateViewContentCommand = async (output, context) => {
13968
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
13969
+ return de_UpdateViewContentCommandError(output, context);
13970
+ }
13971
+ const contents = map({
13972
+ $metadata: deserializeMetadata(output),
13973
+ });
13974
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
13975
+ const doc = take(data, {
13976
+ View: (_) => de_View(_, context),
13977
+ });
13978
+ Object.assign(contents, doc);
13979
+ return contents;
13980
+ };
13981
+ const de_UpdateViewContentCommandError = async (output, context) => {
13982
+ const parsedOutput = {
13983
+ ...output,
13984
+ body: await parseErrorBody(output.body, context),
13985
+ };
13986
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13987
+ switch (errorCode) {
13988
+ case "AccessDeniedException":
13989
+ case "com.amazonaws.connect#AccessDeniedException":
13990
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
13991
+ case "InternalServiceException":
13992
+ case "com.amazonaws.connect#InternalServiceException":
13993
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
13994
+ case "InvalidParameterException":
13995
+ case "com.amazonaws.connect#InvalidParameterException":
13996
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
13997
+ case "InvalidRequestException":
13998
+ case "com.amazonaws.connect#InvalidRequestException":
13999
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
14000
+ case "ResourceInUseException":
14001
+ case "com.amazonaws.connect#ResourceInUseException":
14002
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
14003
+ case "ResourceNotFoundException":
14004
+ case "com.amazonaws.connect#ResourceNotFoundException":
14005
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
14006
+ case "TooManyRequestsException":
14007
+ case "com.amazonaws.connect#TooManyRequestsException":
14008
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
14009
+ default:
14010
+ const parsedBody = parsedOutput.body;
14011
+ return throwDefaultError({
14012
+ output,
14013
+ parsedBody,
14014
+ errorCode,
14015
+ });
14016
+ }
14017
+ };
14018
+ export const de_UpdateViewMetadataCommand = async (output, context) => {
14019
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
14020
+ return de_UpdateViewMetadataCommandError(output, context);
14021
+ }
14022
+ const contents = map({
14023
+ $metadata: deserializeMetadata(output),
14024
+ });
14025
+ await collectBody(output.body, context);
14026
+ return contents;
14027
+ };
14028
+ const de_UpdateViewMetadataCommandError = async (output, context) => {
14029
+ const parsedOutput = {
14030
+ ...output,
14031
+ body: await parseErrorBody(output.body, context),
14032
+ };
14033
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
14034
+ switch (errorCode) {
14035
+ case "AccessDeniedException":
14036
+ case "com.amazonaws.connect#AccessDeniedException":
14037
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
14038
+ case "DuplicateResourceException":
14039
+ case "com.amazonaws.connect#DuplicateResourceException":
14040
+ throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
14041
+ case "InternalServiceException":
14042
+ case "com.amazonaws.connect#InternalServiceException":
14043
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
14044
+ case "InvalidParameterException":
14045
+ case "com.amazonaws.connect#InvalidParameterException":
14046
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
14047
+ case "InvalidRequestException":
14048
+ case "com.amazonaws.connect#InvalidRequestException":
14049
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
14050
+ case "ResourceInUseException":
14051
+ case "com.amazonaws.connect#ResourceInUseException":
14052
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
14053
+ case "ResourceNotFoundException":
14054
+ case "com.amazonaws.connect#ResourceNotFoundException":
14055
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
14056
+ case "TooManyRequestsException":
14057
+ case "com.amazonaws.connect#TooManyRequestsException":
14058
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
14059
+ default:
14060
+ const parsedBody = parsedOutput.body;
14061
+ return throwDefaultError({
14062
+ output,
14063
+ parsedBody,
14064
+ errorCode,
14065
+ });
14066
+ }
14067
+ };
13424
14068
  const throwDefaultError = withBaseException(__BaseException);
13425
14069
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
13426
14070
  const contents = map({});
@@ -13698,6 +14342,19 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
13698
14342
  });
13699
14343
  return __decorateServiceException(exception, parsedOutput.body);
13700
14344
  };
14345
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
14346
+ const contents = map({});
14347
+ const data = parsedOutput.body;
14348
+ const doc = take(data, {
14349
+ Message: __expectString,
14350
+ });
14351
+ Object.assign(contents, doc);
14352
+ const exception = new TooManyRequestsException({
14353
+ $metadata: deserializeMetadata(parsedOutput),
14354
+ ...contents,
14355
+ });
14356
+ return __decorateServiceException(exception, parsedOutput.body);
14357
+ };
13701
14358
  const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
13702
14359
  const contents = map({});
13703
14360
  const data = parsedOutput.body;
@@ -14427,6 +15084,23 @@ const de_UserDataList = (output, context) => {
14427
15084
  });
14428
15085
  return retVal;
14429
15086
  };
15087
+ const de_View = (output, context) => {
15088
+ return take(output, {
15089
+ Arn: __expectString,
15090
+ Content: _json,
15091
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
15092
+ Description: __expectString,
15093
+ Id: __expectString,
15094
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
15095
+ Name: __expectString,
15096
+ Status: __expectString,
15097
+ Tags: _json,
15098
+ Type: __expectString,
15099
+ Version: __expectInt32,
15100
+ VersionDescription: __expectString,
15101
+ ViewContentSha256: __expectString,
15102
+ });
15103
+ };
14430
15104
  const de_Vocabulary = (output, context) => {
14431
15105
  return take(output, {
14432
15106
  Arn: __expectString,