@aws-sdk/client-ssm-contacts 3.30.0 → 3.34.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 (187) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +7 -7
  3. package/SSMContacts.ts +9 -10
  4. package/SSMContactsClient.ts +7 -7
  5. package/commands/ActivateContactChannelCommand.ts +1 -2
  6. package/commands/SendActivationCodeCommand.ts +1 -1
  7. package/dist/cjs/SSMContacts.js +7 -7
  8. package/dist/cjs/SSMContacts.js.map +1 -1
  9. package/dist/cjs/SSMContactsClient.js +20 -20
  10. package/dist/cjs/SSMContactsClient.js.map +1 -1
  11. package/dist/cjs/commands/AcceptPageCommand.js +3 -3
  12. package/dist/cjs/commands/AcceptPageCommand.js.map +1 -1
  13. package/dist/cjs/commands/ActivateContactChannelCommand.js +4 -5
  14. package/dist/cjs/commands/ActivateContactChannelCommand.js.map +1 -1
  15. package/dist/cjs/commands/CreateContactChannelCommand.js +3 -3
  16. package/dist/cjs/commands/CreateContactChannelCommand.js.map +1 -1
  17. package/dist/cjs/commands/CreateContactCommand.js +3 -3
  18. package/dist/cjs/commands/CreateContactCommand.js.map +1 -1
  19. package/dist/cjs/commands/DeactivateContactChannelCommand.js +3 -3
  20. package/dist/cjs/commands/DeactivateContactChannelCommand.js.map +1 -1
  21. package/dist/cjs/commands/DeleteContactChannelCommand.js +3 -3
  22. package/dist/cjs/commands/DeleteContactChannelCommand.js.map +1 -1
  23. package/dist/cjs/commands/DeleteContactCommand.js +3 -3
  24. package/dist/cjs/commands/DeleteContactCommand.js.map +1 -1
  25. package/dist/cjs/commands/DescribeEngagementCommand.js +3 -3
  26. package/dist/cjs/commands/DescribeEngagementCommand.js.map +1 -1
  27. package/dist/cjs/commands/DescribePageCommand.js +3 -3
  28. package/dist/cjs/commands/DescribePageCommand.js.map +1 -1
  29. package/dist/cjs/commands/GetContactChannelCommand.js +3 -3
  30. package/dist/cjs/commands/GetContactChannelCommand.js.map +1 -1
  31. package/dist/cjs/commands/GetContactCommand.js +3 -3
  32. package/dist/cjs/commands/GetContactCommand.js.map +1 -1
  33. package/dist/cjs/commands/GetContactPolicyCommand.js +3 -3
  34. package/dist/cjs/commands/GetContactPolicyCommand.js.map +1 -1
  35. package/dist/cjs/commands/ListContactChannelsCommand.js +3 -3
  36. package/dist/cjs/commands/ListContactChannelsCommand.js.map +1 -1
  37. package/dist/cjs/commands/ListContactsCommand.js +3 -3
  38. package/dist/cjs/commands/ListContactsCommand.js.map +1 -1
  39. package/dist/cjs/commands/ListEngagementsCommand.js +3 -3
  40. package/dist/cjs/commands/ListEngagementsCommand.js.map +1 -1
  41. package/dist/cjs/commands/ListPageReceiptsCommand.js +3 -3
  42. package/dist/cjs/commands/ListPageReceiptsCommand.js.map +1 -1
  43. package/dist/cjs/commands/ListPagesByContactCommand.js +3 -3
  44. package/dist/cjs/commands/ListPagesByContactCommand.js.map +1 -1
  45. package/dist/cjs/commands/ListPagesByEngagementCommand.js +3 -3
  46. package/dist/cjs/commands/ListPagesByEngagementCommand.js.map +1 -1
  47. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  48. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  49. package/dist/cjs/commands/PutContactPolicyCommand.js +3 -3
  50. package/dist/cjs/commands/PutContactPolicyCommand.js.map +1 -1
  51. package/dist/cjs/commands/SendActivationCodeCommand.js +4 -4
  52. package/dist/cjs/commands/SendActivationCodeCommand.js.map +1 -1
  53. package/dist/cjs/commands/StartEngagementCommand.js +3 -3
  54. package/dist/cjs/commands/StartEngagementCommand.js.map +1 -1
  55. package/dist/cjs/commands/StopEngagementCommand.js +3 -3
  56. package/dist/cjs/commands/StopEngagementCommand.js.map +1 -1
  57. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  58. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  59. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  60. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  61. package/dist/cjs/commands/UpdateContactChannelCommand.js +3 -3
  62. package/dist/cjs/commands/UpdateContactChannelCommand.js.map +1 -1
  63. package/dist/cjs/commands/UpdateContactCommand.js +3 -3
  64. package/dist/cjs/commands/UpdateContactCommand.js.map +1 -1
  65. package/dist/cjs/endpoints.js +1 -1
  66. package/dist/cjs/endpoints.js.map +1 -1
  67. package/dist/cjs/index.js +37 -37
  68. package/dist/cjs/index.js.map +1 -1
  69. package/dist/cjs/models/index.js +1 -1
  70. package/dist/cjs/models/index.js.map +1 -1
  71. package/dist/cjs/models/models_0.js.map +1 -1
  72. package/dist/cjs/package.json +39 -39
  73. package/dist/cjs/protocols/Aws_json1_1.js +103 -103
  74. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  75. package/dist/cjs/runtimeConfig.browser.js +4 -4
  76. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  77. package/dist/cjs/runtimeConfig.js +8 -8
  78. package/dist/cjs/runtimeConfig.js.map +1 -1
  79. package/dist/cjs/runtimeConfig.native.js +1 -1
  80. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  81. package/dist/es/SSMContacts.js +1 -11
  82. package/dist/es/SSMContacts.js.map +1 -1
  83. package/dist/es/SSMContactsClient.js +1 -16
  84. package/dist/es/SSMContactsClient.js.map +1 -1
  85. package/dist/es/commands/AcceptPageCommand.js +2 -27
  86. package/dist/es/commands/AcceptPageCommand.js.map +1 -1
  87. package/dist/es/commands/ActivateContactChannelCommand.js +2 -29
  88. package/dist/es/commands/ActivateContactChannelCommand.js.map +1 -1
  89. package/dist/es/commands/CreateContactChannelCommand.js +2 -27
  90. package/dist/es/commands/CreateContactChannelCommand.js.map +1 -1
  91. package/dist/es/commands/CreateContactCommand.js +2 -29
  92. package/dist/es/commands/CreateContactCommand.js.map +1 -1
  93. package/dist/es/commands/DeactivateContactChannelCommand.js +2 -28
  94. package/dist/es/commands/DeactivateContactChannelCommand.js.map +1 -1
  95. package/dist/es/commands/DeleteContactChannelCommand.js +2 -30
  96. package/dist/es/commands/DeleteContactChannelCommand.js.map +1 -1
  97. package/dist/es/commands/DeleteContactCommand.js +2 -30
  98. package/dist/es/commands/DeleteContactCommand.js.map +1 -1
  99. package/dist/es/commands/DescribeEngagementCommand.js +2 -28
  100. package/dist/es/commands/DescribeEngagementCommand.js.map +1 -1
  101. package/dist/es/commands/DescribePageCommand.js +2 -27
  102. package/dist/es/commands/DescribePageCommand.js.map +1 -1
  103. package/dist/es/commands/GetContactChannelCommand.js +2 -27
  104. package/dist/es/commands/GetContactChannelCommand.js.map +1 -1
  105. package/dist/es/commands/GetContactCommand.js +2 -27
  106. package/dist/es/commands/GetContactCommand.js.map +1 -1
  107. package/dist/es/commands/GetContactPolicyCommand.js +2 -28
  108. package/dist/es/commands/GetContactPolicyCommand.js.map +1 -1
  109. package/dist/es/commands/ListContactChannelsCommand.js +2 -27
  110. package/dist/es/commands/ListContactChannelsCommand.js.map +1 -1
  111. package/dist/es/commands/ListContactsCommand.js +2 -27
  112. package/dist/es/commands/ListContactsCommand.js.map +1 -1
  113. package/dist/es/commands/ListEngagementsCommand.js +2 -27
  114. package/dist/es/commands/ListEngagementsCommand.js.map +1 -1
  115. package/dist/es/commands/ListPageReceiptsCommand.js +2 -27
  116. package/dist/es/commands/ListPageReceiptsCommand.js.map +1 -1
  117. package/dist/es/commands/ListPagesByContactCommand.js +2 -27
  118. package/dist/es/commands/ListPagesByContactCommand.js.map +1 -1
  119. package/dist/es/commands/ListPagesByEngagementCommand.js +2 -27
  120. package/dist/es/commands/ListPagesByEngagementCommand.js.map +1 -1
  121. package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
  122. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  123. package/dist/es/commands/PutContactPolicyCommand.js +2 -27
  124. package/dist/es/commands/PutContactPolicyCommand.js.map +1 -1
  125. package/dist/es/commands/SendActivationCodeCommand.js +2 -29
  126. package/dist/es/commands/SendActivationCodeCommand.js.map +1 -1
  127. package/dist/es/commands/StartEngagementCommand.js +2 -28
  128. package/dist/es/commands/StartEngagementCommand.js.map +1 -1
  129. package/dist/es/commands/StopEngagementCommand.js +2 -28
  130. package/dist/es/commands/StopEngagementCommand.js.map +1 -1
  131. package/dist/es/commands/TagResourceCommand.js +2 -28
  132. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  133. package/dist/es/commands/UntagResourceCommand.js +2 -27
  134. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  135. package/dist/es/commands/UpdateContactChannelCommand.js +2 -27
  136. package/dist/es/commands/UpdateContactChannelCommand.js.map +1 -1
  137. package/dist/es/commands/UpdateContactCommand.js +2 -27
  138. package/dist/es/commands/UpdateContactCommand.js.map +1 -1
  139. package/dist/es/endpoints.js +1 -1
  140. package/dist/es/endpoints.js.map +1 -1
  141. package/dist/es/models/models_0.js +0 -228
  142. package/dist/es/models/models_0.js.map +1 -1
  143. package/dist/es/package.json +39 -39
  144. package/dist/es/pagination/ListContactChannelsPaginator.js +16 -28
  145. package/dist/es/pagination/ListContactChannelsPaginator.js.map +1 -1
  146. package/dist/es/pagination/ListContactsPaginator.js +16 -28
  147. package/dist/es/pagination/ListContactsPaginator.js.map +1 -1
  148. package/dist/es/pagination/ListEngagementsPaginator.js +16 -28
  149. package/dist/es/pagination/ListEngagementsPaginator.js.map +1 -1
  150. package/dist/es/pagination/ListPageReceiptsPaginator.js +16 -28
  151. package/dist/es/pagination/ListPageReceiptsPaginator.js.map +1 -1
  152. package/dist/es/pagination/ListPagesByContactPaginator.js +16 -28
  153. package/dist/es/pagination/ListPagesByContactPaginator.js.map +1 -1
  154. package/dist/es/pagination/ListPagesByEngagementPaginator.js +16 -28
  155. package/dist/es/pagination/ListPagesByEngagementPaginator.js.map +1 -1
  156. package/dist/es/protocols/Aws_json1_1.js +811 -816
  157. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  158. package/dist/es/runtimeConfig.browser.js +0 -3
  159. package/dist/es/runtimeConfig.browser.js.map +1 -1
  160. package/dist/es/runtimeConfig.js +0 -3
  161. package/dist/es/runtimeConfig.js.map +1 -1
  162. package/dist/es/runtimeConfig.native.js +0 -3
  163. package/dist/es/runtimeConfig.native.js.map +1 -1
  164. package/dist/es/runtimeConfig.shared.js +0 -3
  165. package/dist/es/runtimeConfig.shared.js.map +1 -1
  166. package/dist/types/SSMContacts.d.ts +9 -10
  167. package/dist/types/SSMContactsClient.d.ts +7 -7
  168. package/dist/types/commands/ActivateContactChannelCommand.d.ts +1 -2
  169. package/dist/types/commands/SendActivationCodeCommand.d.ts +1 -1
  170. package/dist/types/models/models_0.d.ts +18 -19
  171. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  172. package/dist/types/runtimeConfig.d.ts +1 -0
  173. package/dist/types/runtimeConfig.native.d.ts +1 -0
  174. package/dist/types/ts3.4/SSMContacts.d.ts +9 -10
  175. package/dist/types/ts3.4/SSMContactsClient.d.ts +7 -7
  176. package/dist/types/ts3.4/commands/ActivateContactChannelCommand.d.ts +1 -2
  177. package/dist/types/ts3.4/commands/SendActivationCodeCommand.d.ts +1 -1
  178. package/dist/types/ts3.4/models/models_0.d.ts +18 -19
  179. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  180. package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
  181. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  182. package/models/models_0.ts +18 -19
  183. package/package.json +39 -39
  184. package/protocols/Aws_json1_1.ts +14 -11
  185. package/tsconfig.es.json +0 -2
  186. package/tsconfig.json +3 -5
  187. package/tsconfig.types.json +8 -0
@@ -2665,7 +2665,7 @@ const serializeAws_json1_1CreateContactChannelRequest = (input, context) => {
2665
2665
  input.DeliveryAddress !== null && {
2666
2666
  DeliveryAddress: serializeAws_json1_1ContactChannelAddress(input.DeliveryAddress, context),
2667
2667
  }),
2668
- IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2668
+ IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
2669
2669
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2670
2670
  ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2671
2671
  };
@@ -2675,7 +2675,7 @@ const serializeAws_json1_1CreateContactRequest = (input, context) => {
2675
2675
  return {
2676
2676
  ...(input.Alias !== undefined && input.Alias !== null && { Alias: input.Alias }),
2677
2677
  ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
2678
- IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2678
+ IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
2679
2679
  ...(input.Plan !== undefined && input.Plan !== null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }),
2680
2680
  ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
2681
2681
  ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
@@ -2817,7 +2817,7 @@ const serializeAws_json1_1StartEngagementRequest = (input, context) => {
2817
2817
  return {
2818
2818
  ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
2819
2819
  ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
2820
- IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2820
+ IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
2821
2821
  ...(input.IncidentId !== undefined && input.IncidentId !== null && { IncidentId: input.IncidentId }),
2822
2822
  ...(input.PublicContent !== undefined && input.PublicContent !== null && { PublicContent: input.PublicContent }),
2823
2823
  ...(input.PublicSubject !== undefined && input.PublicSubject !== null && { PublicSubject: input.PublicSubject }),
@@ -2923,7 +2923,7 @@ const deserializeAws_json1_1AcceptPageResult = (output, context) => {
2923
2923
  };
2924
2924
  const deserializeAws_json1_1AccessDeniedException = (output, context) => {
2925
2925
  return {
2926
- Message: (0, smithy_client_1.expectString)(output.Message),
2926
+ Message: smithy_client_1.expectString(output.Message),
2927
2927
  };
2928
2928
  };
2929
2929
  const deserializeAws_json1_1ActivateContactChannelResult = (output, context) => {
@@ -2931,40 +2931,40 @@ const deserializeAws_json1_1ActivateContactChannelResult = (output, context) =>
2931
2931
  };
2932
2932
  const deserializeAws_json1_1ChannelTargetInfo = (output, context) => {
2933
2933
  return {
2934
- ContactChannelId: (0, smithy_client_1.expectString)(output.ContactChannelId),
2935
- RetryIntervalInMinutes: (0, smithy_client_1.expectInt32)(output.RetryIntervalInMinutes),
2934
+ ContactChannelId: smithy_client_1.expectString(output.ContactChannelId),
2935
+ RetryIntervalInMinutes: smithy_client_1.expectInt32(output.RetryIntervalInMinutes),
2936
2936
  };
2937
2937
  };
2938
2938
  const deserializeAws_json1_1ConflictException = (output, context) => {
2939
2939
  return {
2940
- Message: (0, smithy_client_1.expectString)(output.Message),
2941
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
2942
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
2940
+ Message: smithy_client_1.expectString(output.Message),
2941
+ ResourceId: smithy_client_1.expectString(output.ResourceId),
2942
+ ResourceType: smithy_client_1.expectString(output.ResourceType),
2943
2943
  };
2944
2944
  };
2945
2945
  const deserializeAws_json1_1Contact = (output, context) => {
2946
2946
  return {
2947
- Alias: (0, smithy_client_1.expectString)(output.Alias),
2948
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2949
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
2950
- Type: (0, smithy_client_1.expectString)(output.Type),
2947
+ Alias: smithy_client_1.expectString(output.Alias),
2948
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
2949
+ DisplayName: smithy_client_1.expectString(output.DisplayName),
2950
+ Type: smithy_client_1.expectString(output.Type),
2951
2951
  };
2952
2952
  };
2953
2953
  const deserializeAws_json1_1ContactChannel = (output, context) => {
2954
2954
  return {
2955
- ActivationStatus: (0, smithy_client_1.expectString)(output.ActivationStatus),
2956
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2957
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2955
+ ActivationStatus: smithy_client_1.expectString(output.ActivationStatus),
2956
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
2957
+ ContactChannelArn: smithy_client_1.expectString(output.ContactChannelArn),
2958
2958
  DeliveryAddress: output.DeliveryAddress !== undefined && output.DeliveryAddress !== null
2959
2959
  ? deserializeAws_json1_1ContactChannelAddress(output.DeliveryAddress, context)
2960
2960
  : undefined,
2961
- Name: (0, smithy_client_1.expectString)(output.Name),
2962
- Type: (0, smithy_client_1.expectString)(output.Type),
2961
+ Name: smithy_client_1.expectString(output.Name),
2962
+ Type: smithy_client_1.expectString(output.Type),
2963
2963
  };
2964
2964
  };
2965
2965
  const deserializeAws_json1_1ContactChannelAddress = (output, context) => {
2966
2966
  return {
2967
- SimpleAddress: (0, smithy_client_1.expectString)(output.SimpleAddress),
2967
+ SimpleAddress: smithy_client_1.expectString(output.SimpleAddress),
2968
2968
  };
2969
2969
  };
2970
2970
  const deserializeAws_json1_1ContactChannelList = (output, context) => {
@@ -2989,23 +2989,23 @@ const deserializeAws_json1_1ContactsList = (output, context) => {
2989
2989
  };
2990
2990
  const deserializeAws_json1_1ContactTargetInfo = (output, context) => {
2991
2991
  return {
2992
- ContactId: (0, smithy_client_1.expectString)(output.ContactId),
2993
- IsEssential: (0, smithy_client_1.expectBoolean)(output.IsEssential),
2992
+ ContactId: smithy_client_1.expectString(output.ContactId),
2993
+ IsEssential: smithy_client_1.expectBoolean(output.IsEssential),
2994
2994
  };
2995
2995
  };
2996
2996
  const deserializeAws_json1_1CreateContactChannelResult = (output, context) => {
2997
2997
  return {
2998
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2998
+ ContactChannelArn: smithy_client_1.expectString(output.ContactChannelArn),
2999
2999
  };
3000
3000
  };
3001
3001
  const deserializeAws_json1_1CreateContactResult = (output, context) => {
3002
3002
  return {
3003
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3003
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
3004
3004
  };
3005
3005
  };
3006
3006
  const deserializeAws_json1_1DataEncryptionException = (output, context) => {
3007
3007
  return {
3008
- Message: (0, smithy_client_1.expectString)(output.Message),
3008
+ Message: smithy_client_1.expectString(output.Message),
3009
3009
  };
3010
3010
  };
3011
3011
  const deserializeAws_json1_1DeactivateContactChannelResult = (output, context) => {
@@ -3019,55 +3019,55 @@ const deserializeAws_json1_1DeleteContactResult = (output, context) => {
3019
3019
  };
3020
3020
  const deserializeAws_json1_1DescribeEngagementResult = (output, context) => {
3021
3021
  return {
3022
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3023
- Content: (0, smithy_client_1.expectString)(output.Content),
3024
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3025
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
3026
- PublicContent: (0, smithy_client_1.expectString)(output.PublicContent),
3027
- PublicSubject: (0, smithy_client_1.expectString)(output.PublicSubject),
3028
- Sender: (0, smithy_client_1.expectString)(output.Sender),
3022
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
3023
+ Content: smithy_client_1.expectString(output.Content),
3024
+ EngagementArn: smithy_client_1.expectString(output.EngagementArn),
3025
+ IncidentId: smithy_client_1.expectString(output.IncidentId),
3026
+ PublicContent: smithy_client_1.expectString(output.PublicContent),
3027
+ PublicSubject: smithy_client_1.expectString(output.PublicSubject),
3028
+ Sender: smithy_client_1.expectString(output.Sender),
3029
3029
  StartTime: output.StartTime !== undefined && output.StartTime !== null
3030
- ? new Date(Math.round(output.StartTime * 1000))
3030
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
3031
3031
  : undefined,
3032
3032
  StopTime: output.StopTime !== undefined && output.StopTime !== null
3033
- ? new Date(Math.round(output.StopTime * 1000))
3033
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StopTime)))
3034
3034
  : undefined,
3035
- Subject: (0, smithy_client_1.expectString)(output.Subject),
3035
+ Subject: smithy_client_1.expectString(output.Subject),
3036
3036
  };
3037
3037
  };
3038
3038
  const deserializeAws_json1_1DescribePageResult = (output, context) => {
3039
3039
  return {
3040
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3041
- Content: (0, smithy_client_1.expectString)(output.Content),
3040
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
3041
+ Content: smithy_client_1.expectString(output.Content),
3042
3042
  DeliveryTime: output.DeliveryTime !== undefined && output.DeliveryTime !== null
3043
- ? new Date(Math.round(output.DeliveryTime * 1000))
3043
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeliveryTime)))
3044
3044
  : undefined,
3045
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3046
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
3047
- PageArn: (0, smithy_client_1.expectString)(output.PageArn),
3048
- PublicContent: (0, smithy_client_1.expectString)(output.PublicContent),
3049
- PublicSubject: (0, smithy_client_1.expectString)(output.PublicSubject),
3045
+ EngagementArn: smithy_client_1.expectString(output.EngagementArn),
3046
+ IncidentId: smithy_client_1.expectString(output.IncidentId),
3047
+ PageArn: smithy_client_1.expectString(output.PageArn),
3048
+ PublicContent: smithy_client_1.expectString(output.PublicContent),
3049
+ PublicSubject: smithy_client_1.expectString(output.PublicSubject),
3050
3050
  ReadTime: output.ReadTime !== undefined && output.ReadTime !== null
3051
- ? new Date(Math.round(output.ReadTime * 1000))
3051
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ReadTime)))
3052
3052
  : undefined,
3053
- Sender: (0, smithy_client_1.expectString)(output.Sender),
3053
+ Sender: smithy_client_1.expectString(output.Sender),
3054
3054
  SentTime: output.SentTime !== undefined && output.SentTime !== null
3055
- ? new Date(Math.round(output.SentTime * 1000))
3055
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SentTime)))
3056
3056
  : undefined,
3057
- Subject: (0, smithy_client_1.expectString)(output.Subject),
3057
+ Subject: smithy_client_1.expectString(output.Subject),
3058
3058
  };
3059
3059
  };
3060
3060
  const deserializeAws_json1_1Engagement = (output, context) => {
3061
3061
  return {
3062
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3063
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3064
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
3065
- Sender: (0, smithy_client_1.expectString)(output.Sender),
3062
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
3063
+ EngagementArn: smithy_client_1.expectString(output.EngagementArn),
3064
+ IncidentId: smithy_client_1.expectString(output.IncidentId),
3065
+ Sender: smithy_client_1.expectString(output.Sender),
3066
3066
  StartTime: output.StartTime !== undefined && output.StartTime !== null
3067
- ? new Date(Math.round(output.StartTime * 1000))
3067
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
3068
3068
  : undefined,
3069
3069
  StopTime: output.StopTime !== undefined && output.StopTime !== null
3070
- ? new Date(Math.round(output.StopTime * 1000))
3070
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StopTime)))
3071
3071
  : undefined,
3072
3072
  };
3073
3073
  };
@@ -3083,35 +3083,35 @@ const deserializeAws_json1_1EngagementsList = (output, context) => {
3083
3083
  };
3084
3084
  const deserializeAws_json1_1GetContactChannelResult = (output, context) => {
3085
3085
  return {
3086
- ActivationStatus: (0, smithy_client_1.expectString)(output.ActivationStatus),
3087
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3088
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
3086
+ ActivationStatus: smithy_client_1.expectString(output.ActivationStatus),
3087
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
3088
+ ContactChannelArn: smithy_client_1.expectString(output.ContactChannelArn),
3089
3089
  DeliveryAddress: output.DeliveryAddress !== undefined && output.DeliveryAddress !== null
3090
3090
  ? deserializeAws_json1_1ContactChannelAddress(output.DeliveryAddress, context)
3091
3091
  : undefined,
3092
- Name: (0, smithy_client_1.expectString)(output.Name),
3093
- Type: (0, smithy_client_1.expectString)(output.Type),
3092
+ Name: smithy_client_1.expectString(output.Name),
3093
+ Type: smithy_client_1.expectString(output.Type),
3094
3094
  };
3095
3095
  };
3096
3096
  const deserializeAws_json1_1GetContactPolicyResult = (output, context) => {
3097
3097
  return {
3098
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3099
- Policy: (0, smithy_client_1.expectString)(output.Policy),
3098
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
3099
+ Policy: smithy_client_1.expectString(output.Policy),
3100
3100
  };
3101
3101
  };
3102
3102
  const deserializeAws_json1_1GetContactResult = (output, context) => {
3103
3103
  return {
3104
- Alias: (0, smithy_client_1.expectString)(output.Alias),
3105
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3106
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
3104
+ Alias: smithy_client_1.expectString(output.Alias),
3105
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
3106
+ DisplayName: smithy_client_1.expectString(output.DisplayName),
3107
3107
  Plan: output.Plan !== undefined && output.Plan !== null ? deserializeAws_json1_1Plan(output.Plan, context) : undefined,
3108
- Type: (0, smithy_client_1.expectString)(output.Type),
3108
+ Type: smithy_client_1.expectString(output.Type),
3109
3109
  };
3110
3110
  };
3111
3111
  const deserializeAws_json1_1InternalServerException = (output, context) => {
3112
3112
  return {
3113
- Message: (0, smithy_client_1.expectString)(output.Message),
3114
- RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
3113
+ Message: smithy_client_1.expectString(output.Message),
3114
+ RetryAfterSeconds: smithy_client_1.expectInt32(output.RetryAfterSeconds),
3115
3115
  };
3116
3116
  };
3117
3117
  const deserializeAws_json1_1ListContactChannelsResult = (output, context) => {
@@ -3119,7 +3119,7 @@ const deserializeAws_json1_1ListContactChannelsResult = (output, context) => {
3119
3119
  ContactChannels: output.ContactChannels !== undefined && output.ContactChannels !== null
3120
3120
  ? deserializeAws_json1_1ContactChannelList(output.ContactChannels, context)
3121
3121
  : undefined,
3122
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3122
+ NextToken: smithy_client_1.expectString(output.NextToken),
3123
3123
  };
3124
3124
  };
3125
3125
  const deserializeAws_json1_1ListContactsResult = (output, context) => {
@@ -3127,7 +3127,7 @@ const deserializeAws_json1_1ListContactsResult = (output, context) => {
3127
3127
  Contacts: output.Contacts !== undefined && output.Contacts !== null
3128
3128
  ? deserializeAws_json1_1ContactsList(output.Contacts, context)
3129
3129
  : undefined,
3130
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3130
+ NextToken: smithy_client_1.expectString(output.NextToken),
3131
3131
  };
3132
3132
  };
3133
3133
  const deserializeAws_json1_1ListEngagementsResult = (output, context) => {
@@ -3135,12 +3135,12 @@ const deserializeAws_json1_1ListEngagementsResult = (output, context) => {
3135
3135
  Engagements: output.Engagements !== undefined && output.Engagements !== null
3136
3136
  ? deserializeAws_json1_1EngagementsList(output.Engagements, context)
3137
3137
  : undefined,
3138
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3138
+ NextToken: smithy_client_1.expectString(output.NextToken),
3139
3139
  };
3140
3140
  };
3141
3141
  const deserializeAws_json1_1ListPageReceiptsResult = (output, context) => {
3142
3142
  return {
3143
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3143
+ NextToken: smithy_client_1.expectString(output.NextToken),
3144
3144
  Receipts: output.Receipts !== undefined && output.Receipts !== null
3145
3145
  ? deserializeAws_json1_1ReceiptsList(output.Receipts, context)
3146
3146
  : undefined,
@@ -3148,7 +3148,7 @@ const deserializeAws_json1_1ListPageReceiptsResult = (output, context) => {
3148
3148
  };
3149
3149
  const deserializeAws_json1_1ListPagesByContactResult = (output, context) => {
3150
3150
  return {
3151
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3151
+ NextToken: smithy_client_1.expectString(output.NextToken),
3152
3152
  Pages: output.Pages !== undefined && output.Pages !== null
3153
3153
  ? deserializeAws_json1_1PagesList(output.Pages, context)
3154
3154
  : undefined,
@@ -3156,7 +3156,7 @@ const deserializeAws_json1_1ListPagesByContactResult = (output, context) => {
3156
3156
  };
3157
3157
  const deserializeAws_json1_1ListPagesByEngagementResult = (output, context) => {
3158
3158
  return {
3159
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3159
+ NextToken: smithy_client_1.expectString(output.NextToken),
3160
3160
  Pages: output.Pages !== undefined && output.Pages !== null
3161
3161
  ? deserializeAws_json1_1PagesList(output.Pages, context)
3162
3162
  : undefined,
@@ -3171,19 +3171,19 @@ const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => {
3171
3171
  };
3172
3172
  const deserializeAws_json1_1Page = (output, context) => {
3173
3173
  return {
3174
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3174
+ ContactArn: smithy_client_1.expectString(output.ContactArn),
3175
3175
  DeliveryTime: output.DeliveryTime !== undefined && output.DeliveryTime !== null
3176
- ? new Date(Math.round(output.DeliveryTime * 1000))
3176
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeliveryTime)))
3177
3177
  : undefined,
3178
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3179
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
3180
- PageArn: (0, smithy_client_1.expectString)(output.PageArn),
3178
+ EngagementArn: smithy_client_1.expectString(output.EngagementArn),
3179
+ IncidentId: smithy_client_1.expectString(output.IncidentId),
3180
+ PageArn: smithy_client_1.expectString(output.PageArn),
3181
3181
  ReadTime: output.ReadTime !== undefined && output.ReadTime !== null
3182
- ? new Date(Math.round(output.ReadTime * 1000))
3182
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ReadTime)))
3183
3183
  : undefined,
3184
- Sender: (0, smithy_client_1.expectString)(output.Sender),
3184
+ Sender: smithy_client_1.expectString(output.Sender),
3185
3185
  SentTime: output.SentTime !== undefined && output.SentTime !== null
3186
- ? new Date(Math.round(output.SentTime * 1000))
3186
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SentTime)))
3187
3187
  : undefined,
3188
3188
  };
3189
3189
  };
@@ -3209,12 +3209,12 @@ const deserializeAws_json1_1PutContactPolicyResult = (output, context) => {
3209
3209
  };
3210
3210
  const deserializeAws_json1_1Receipt = (output, context) => {
3211
3211
  return {
3212
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
3213
- ReceiptInfo: (0, smithy_client_1.expectString)(output.ReceiptInfo),
3212
+ ContactChannelArn: smithy_client_1.expectString(output.ContactChannelArn),
3213
+ ReceiptInfo: smithy_client_1.expectString(output.ReceiptInfo),
3214
3214
  ReceiptTime: output.ReceiptTime !== undefined && output.ReceiptTime !== null
3215
- ? new Date(Math.round(output.ReceiptTime * 1000))
3215
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ReceiptTime)))
3216
3216
  : undefined,
3217
- ReceiptType: (0, smithy_client_1.expectString)(output.ReceiptType),
3217
+ ReceiptType: smithy_client_1.expectString(output.ReceiptType),
3218
3218
  };
3219
3219
  };
3220
3220
  const deserializeAws_json1_1ReceiptsList = (output, context) => {
@@ -3229,9 +3229,9 @@ const deserializeAws_json1_1ReceiptsList = (output, context) => {
3229
3229
  };
3230
3230
  const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
3231
3231
  return {
3232
- Message: (0, smithy_client_1.expectString)(output.Message),
3233
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3234
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3232
+ Message: smithy_client_1.expectString(output.Message),
3233
+ ResourceId: smithy_client_1.expectString(output.ResourceId),
3234
+ ResourceType: smithy_client_1.expectString(output.ResourceType),
3235
3235
  };
3236
3236
  };
3237
3237
  const deserializeAws_json1_1SendActivationCodeResult = (output, context) => {
@@ -3239,16 +3239,16 @@ const deserializeAws_json1_1SendActivationCodeResult = (output, context) => {
3239
3239
  };
3240
3240
  const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) => {
3241
3241
  return {
3242
- Message: (0, smithy_client_1.expectString)(output.Message),
3243
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
3244
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3245
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3246
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
3242
+ Message: smithy_client_1.expectString(output.Message),
3243
+ QuotaCode: smithy_client_1.expectString(output.QuotaCode),
3244
+ ResourceId: smithy_client_1.expectString(output.ResourceId),
3245
+ ResourceType: smithy_client_1.expectString(output.ResourceType),
3246
+ ServiceCode: smithy_client_1.expectString(output.ServiceCode),
3247
3247
  };
3248
3248
  };
3249
3249
  const deserializeAws_json1_1Stage = (output, context) => {
3250
3250
  return {
3251
- DurationInMinutes: (0, smithy_client_1.expectInt32)(output.DurationInMinutes),
3251
+ DurationInMinutes: smithy_client_1.expectInt32(output.DurationInMinutes),
3252
3252
  Targets: output.Targets !== undefined && output.Targets !== null
3253
3253
  ? deserializeAws_json1_1TargetsList(output.Targets, context)
3254
3254
  : undefined,
@@ -3266,7 +3266,7 @@ const deserializeAws_json1_1StagesList = (output, context) => {
3266
3266
  };
3267
3267
  const deserializeAws_json1_1StartEngagementResult = (output, context) => {
3268
3268
  return {
3269
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3269
+ EngagementArn: smithy_client_1.expectString(output.EngagementArn),
3270
3270
  };
3271
3271
  };
3272
3272
  const deserializeAws_json1_1StopEngagementResult = (output, context) => {
@@ -3274,8 +3274,8 @@ const deserializeAws_json1_1StopEngagementResult = (output, context) => {
3274
3274
  };
3275
3275
  const deserializeAws_json1_1Tag = (output, context) => {
3276
3276
  return {
3277
- Key: (0, smithy_client_1.expectString)(output.Key),
3278
- Value: (0, smithy_client_1.expectString)(output.Value),
3277
+ Key: smithy_client_1.expectString(output.Key),
3278
+ Value: smithy_client_1.expectString(output.Value),
3279
3279
  };
3280
3280
  };
3281
3281
  const deserializeAws_json1_1TagResourceResult = (output, context) => {
@@ -3313,10 +3313,10 @@ const deserializeAws_json1_1TargetsList = (output, context) => {
3313
3313
  };
3314
3314
  const deserializeAws_json1_1ThrottlingException = (output, context) => {
3315
3315
  return {
3316
- Message: (0, smithy_client_1.expectString)(output.Message),
3317
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
3318
- RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
3319
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
3316
+ Message: smithy_client_1.expectString(output.Message),
3317
+ QuotaCode: smithy_client_1.expectString(output.QuotaCode),
3318
+ RetryAfterSeconds: smithy_client_1.expectInt32(output.RetryAfterSeconds),
3319
+ ServiceCode: smithy_client_1.expectString(output.ServiceCode),
3320
3320
  };
3321
3321
  };
3322
3322
  const deserializeAws_json1_1UntagResourceResult = (output, context) => {
@@ -3333,14 +3333,14 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
3333
3333
  Fields: output.Fields !== undefined && output.Fields !== null
3334
3334
  ? deserializeAws_json1_1ValidationExceptionFieldList(output.Fields, context)
3335
3335
  : undefined,
3336
- Message: (0, smithy_client_1.expectString)(output.Message),
3337
- Reason: (0, smithy_client_1.expectString)(output.Reason),
3336
+ Message: smithy_client_1.expectString(output.Message),
3337
+ Reason: smithy_client_1.expectString(output.Reason),
3338
3338
  };
3339
3339
  };
3340
3340
  const deserializeAws_json1_1ValidationExceptionField = (output, context) => {
3341
3341
  return {
3342
- Message: (0, smithy_client_1.expectString)(output.Message),
3343
- Name: (0, smithy_client_1.expectString)(output.Name),
3342
+ Message: smithy_client_1.expectString(output.Message),
3343
+ Name: smithy_client_1.expectString(output.Name),
3344
3344
  };
3345
3345
  };
3346
3346
  const deserializeAws_json1_1ValidationExceptionFieldList = (output, context) => {