@aws-sdk/client-transcribe 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 (225) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/cjs/TranscribeClient.js +13 -13
  3. package/dist/cjs/TranscribeClient.js.map +1 -1
  4. package/dist/cjs/commands/CreateCallAnalyticsCategoryCommand.js +3 -3
  5. package/dist/cjs/commands/CreateCallAnalyticsCategoryCommand.js.map +1 -1
  6. package/dist/cjs/commands/CreateLanguageModelCommand.js +3 -3
  7. package/dist/cjs/commands/CreateLanguageModelCommand.js.map +1 -1
  8. package/dist/cjs/commands/CreateMedicalVocabularyCommand.js +3 -3
  9. package/dist/cjs/commands/CreateMedicalVocabularyCommand.js.map +1 -1
  10. package/dist/cjs/commands/CreateVocabularyCommand.js +3 -3
  11. package/dist/cjs/commands/CreateVocabularyCommand.js.map +1 -1
  12. package/dist/cjs/commands/CreateVocabularyFilterCommand.js +3 -3
  13. package/dist/cjs/commands/CreateVocabularyFilterCommand.js.map +1 -1
  14. package/dist/cjs/commands/DeleteCallAnalyticsCategoryCommand.js +3 -3
  15. package/dist/cjs/commands/DeleteCallAnalyticsCategoryCommand.js.map +1 -1
  16. package/dist/cjs/commands/DeleteCallAnalyticsJobCommand.js +3 -3
  17. package/dist/cjs/commands/DeleteCallAnalyticsJobCommand.js.map +1 -1
  18. package/dist/cjs/commands/DeleteLanguageModelCommand.js +3 -3
  19. package/dist/cjs/commands/DeleteLanguageModelCommand.js.map +1 -1
  20. package/dist/cjs/commands/DeleteMedicalTranscriptionJobCommand.js +3 -3
  21. package/dist/cjs/commands/DeleteMedicalTranscriptionJobCommand.js.map +1 -1
  22. package/dist/cjs/commands/DeleteMedicalVocabularyCommand.js +3 -3
  23. package/dist/cjs/commands/DeleteMedicalVocabularyCommand.js.map +1 -1
  24. package/dist/cjs/commands/DeleteTranscriptionJobCommand.js +3 -3
  25. package/dist/cjs/commands/DeleteTranscriptionJobCommand.js.map +1 -1
  26. package/dist/cjs/commands/DeleteVocabularyCommand.js +3 -3
  27. package/dist/cjs/commands/DeleteVocabularyCommand.js.map +1 -1
  28. package/dist/cjs/commands/DeleteVocabularyFilterCommand.js +3 -3
  29. package/dist/cjs/commands/DeleteVocabularyFilterCommand.js.map +1 -1
  30. package/dist/cjs/commands/DescribeLanguageModelCommand.js +3 -3
  31. package/dist/cjs/commands/DescribeLanguageModelCommand.js.map +1 -1
  32. package/dist/cjs/commands/GetCallAnalyticsCategoryCommand.js +3 -3
  33. package/dist/cjs/commands/GetCallAnalyticsCategoryCommand.js.map +1 -1
  34. package/dist/cjs/commands/GetCallAnalyticsJobCommand.js +3 -3
  35. package/dist/cjs/commands/GetCallAnalyticsJobCommand.js.map +1 -1
  36. package/dist/cjs/commands/GetMedicalTranscriptionJobCommand.js +3 -3
  37. package/dist/cjs/commands/GetMedicalTranscriptionJobCommand.js.map +1 -1
  38. package/dist/cjs/commands/GetMedicalVocabularyCommand.js +3 -3
  39. package/dist/cjs/commands/GetMedicalVocabularyCommand.js.map +1 -1
  40. package/dist/cjs/commands/GetTranscriptionJobCommand.js +3 -3
  41. package/dist/cjs/commands/GetTranscriptionJobCommand.js.map +1 -1
  42. package/dist/cjs/commands/GetVocabularyCommand.js +3 -3
  43. package/dist/cjs/commands/GetVocabularyCommand.js.map +1 -1
  44. package/dist/cjs/commands/GetVocabularyFilterCommand.js +3 -3
  45. package/dist/cjs/commands/GetVocabularyFilterCommand.js.map +1 -1
  46. package/dist/cjs/commands/ListCallAnalyticsCategoriesCommand.js +3 -3
  47. package/dist/cjs/commands/ListCallAnalyticsCategoriesCommand.js.map +1 -1
  48. package/dist/cjs/commands/ListCallAnalyticsJobsCommand.js +3 -3
  49. package/dist/cjs/commands/ListCallAnalyticsJobsCommand.js.map +1 -1
  50. package/dist/cjs/commands/ListLanguageModelsCommand.js +3 -3
  51. package/dist/cjs/commands/ListLanguageModelsCommand.js.map +1 -1
  52. package/dist/cjs/commands/ListMedicalTranscriptionJobsCommand.js +3 -3
  53. package/dist/cjs/commands/ListMedicalTranscriptionJobsCommand.js.map +1 -1
  54. package/dist/cjs/commands/ListMedicalVocabulariesCommand.js +3 -3
  55. package/dist/cjs/commands/ListMedicalVocabulariesCommand.js.map +1 -1
  56. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  57. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  58. package/dist/cjs/commands/ListTranscriptionJobsCommand.js +3 -3
  59. package/dist/cjs/commands/ListTranscriptionJobsCommand.js.map +1 -1
  60. package/dist/cjs/commands/ListVocabulariesCommand.js +3 -3
  61. package/dist/cjs/commands/ListVocabulariesCommand.js.map +1 -1
  62. package/dist/cjs/commands/ListVocabularyFiltersCommand.js +3 -3
  63. package/dist/cjs/commands/ListVocabularyFiltersCommand.js.map +1 -1
  64. package/dist/cjs/commands/StartCallAnalyticsJobCommand.js +3 -3
  65. package/dist/cjs/commands/StartCallAnalyticsJobCommand.js.map +1 -1
  66. package/dist/cjs/commands/StartMedicalTranscriptionJobCommand.js +3 -3
  67. package/dist/cjs/commands/StartMedicalTranscriptionJobCommand.js.map +1 -1
  68. package/dist/cjs/commands/StartTranscriptionJobCommand.js +3 -3
  69. package/dist/cjs/commands/StartTranscriptionJobCommand.js.map +1 -1
  70. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  71. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  72. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  73. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  74. package/dist/cjs/commands/UpdateCallAnalyticsCategoryCommand.js +3 -3
  75. package/dist/cjs/commands/UpdateCallAnalyticsCategoryCommand.js.map +1 -1
  76. package/dist/cjs/commands/UpdateMedicalVocabularyCommand.js +3 -3
  77. package/dist/cjs/commands/UpdateMedicalVocabularyCommand.js.map +1 -1
  78. package/dist/cjs/commands/UpdateVocabularyCommand.js +3 -3
  79. package/dist/cjs/commands/UpdateVocabularyCommand.js.map +1 -1
  80. package/dist/cjs/commands/UpdateVocabularyFilterCommand.js +3 -3
  81. package/dist/cjs/commands/UpdateVocabularyFilterCommand.js.map +1 -1
  82. package/dist/cjs/endpoints.js +1 -1
  83. package/dist/cjs/endpoints.js.map +1 -1
  84. package/dist/cjs/index.js +51 -51
  85. package/dist/cjs/index.js.map +1 -1
  86. package/dist/cjs/models/index.js +1 -1
  87. package/dist/cjs/models/index.js.map +1 -1
  88. package/dist/cjs/models/models_0.js +25 -2
  89. package/dist/cjs/models/models_0.js.map +1 -1
  90. package/dist/cjs/package.json +39 -39
  91. package/dist/cjs/protocols/Aws_json1_1.js +270 -200
  92. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  93. package/dist/cjs/runtimeConfig.browser.js +4 -4
  94. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  95. package/dist/cjs/runtimeConfig.js +8 -8
  96. package/dist/cjs/runtimeConfig.js.map +1 -1
  97. package/dist/cjs/runtimeConfig.native.js +1 -1
  98. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  99. package/dist/es/Transcribe.js +1 -4
  100. package/dist/es/Transcribe.js.map +1 -1
  101. package/dist/es/TranscribeClient.js +1 -9
  102. package/dist/es/TranscribeClient.js.map +1 -1
  103. package/dist/es/commands/CreateCallAnalyticsCategoryCommand.js +2 -31
  104. package/dist/es/commands/CreateCallAnalyticsCategoryCommand.js.map +1 -1
  105. package/dist/es/commands/CreateLanguageModelCommand.js +2 -28
  106. package/dist/es/commands/CreateLanguageModelCommand.js.map +1 -1
  107. package/dist/es/commands/CreateMedicalVocabularyCommand.js +2 -27
  108. package/dist/es/commands/CreateMedicalVocabularyCommand.js.map +1 -1
  109. package/dist/es/commands/CreateVocabularyCommand.js +2 -28
  110. package/dist/es/commands/CreateVocabularyCommand.js.map +1 -1
  111. package/dist/es/commands/CreateVocabularyFilterCommand.js +2 -28
  112. package/dist/es/commands/CreateVocabularyFilterCommand.js.map +1 -1
  113. package/dist/es/commands/DeleteCallAnalyticsCategoryCommand.js +2 -27
  114. package/dist/es/commands/DeleteCallAnalyticsCategoryCommand.js.map +1 -1
  115. package/dist/es/commands/DeleteCallAnalyticsJobCommand.js +2 -27
  116. package/dist/es/commands/DeleteCallAnalyticsJobCommand.js.map +1 -1
  117. package/dist/es/commands/DeleteLanguageModelCommand.js +2 -27
  118. package/dist/es/commands/DeleteLanguageModelCommand.js.map +1 -1
  119. package/dist/es/commands/DeleteMedicalTranscriptionJobCommand.js +2 -27
  120. package/dist/es/commands/DeleteMedicalTranscriptionJobCommand.js.map +1 -1
  121. package/dist/es/commands/DeleteMedicalVocabularyCommand.js +2 -27
  122. package/dist/es/commands/DeleteMedicalVocabularyCommand.js.map +1 -1
  123. package/dist/es/commands/DeleteTranscriptionJobCommand.js +2 -28
  124. package/dist/es/commands/DeleteTranscriptionJobCommand.js.map +1 -1
  125. package/dist/es/commands/DeleteVocabularyCommand.js +2 -27
  126. package/dist/es/commands/DeleteVocabularyCommand.js.map +1 -1
  127. package/dist/es/commands/DeleteVocabularyFilterCommand.js +2 -27
  128. package/dist/es/commands/DeleteVocabularyFilterCommand.js.map +1 -1
  129. package/dist/es/commands/DescribeLanguageModelCommand.js +2 -31
  130. package/dist/es/commands/DescribeLanguageModelCommand.js.map +1 -1
  131. package/dist/es/commands/GetCallAnalyticsCategoryCommand.js +2 -27
  132. package/dist/es/commands/GetCallAnalyticsCategoryCommand.js.map +1 -1
  133. package/dist/es/commands/GetCallAnalyticsJobCommand.js +2 -31
  134. package/dist/es/commands/GetCallAnalyticsJobCommand.js.map +1 -1
  135. package/dist/es/commands/GetMedicalTranscriptionJobCommand.js +2 -29
  136. package/dist/es/commands/GetMedicalTranscriptionJobCommand.js.map +1 -1
  137. package/dist/es/commands/GetMedicalVocabularyCommand.js +2 -27
  138. package/dist/es/commands/GetMedicalVocabularyCommand.js.map +1 -1
  139. package/dist/es/commands/GetTranscriptionJobCommand.js +2 -30
  140. package/dist/es/commands/GetTranscriptionJobCommand.js.map +1 -1
  141. package/dist/es/commands/GetVocabularyCommand.js +2 -27
  142. package/dist/es/commands/GetVocabularyCommand.js.map +1 -1
  143. package/dist/es/commands/GetVocabularyFilterCommand.js +2 -27
  144. package/dist/es/commands/GetVocabularyFilterCommand.js.map +1 -1
  145. package/dist/es/commands/ListCallAnalyticsCategoriesCommand.js +2 -29
  146. package/dist/es/commands/ListCallAnalyticsCategoriesCommand.js.map +1 -1
  147. package/dist/es/commands/ListCallAnalyticsJobsCommand.js +2 -27
  148. package/dist/es/commands/ListCallAnalyticsJobsCommand.js.map +1 -1
  149. package/dist/es/commands/ListLanguageModelsCommand.js +2 -29
  150. package/dist/es/commands/ListLanguageModelsCommand.js.map +1 -1
  151. package/dist/es/commands/ListMedicalTranscriptionJobsCommand.js +2 -27
  152. package/dist/es/commands/ListMedicalTranscriptionJobsCommand.js.map +1 -1
  153. package/dist/es/commands/ListMedicalVocabulariesCommand.js +2 -28
  154. package/dist/es/commands/ListMedicalVocabulariesCommand.js.map +1 -1
  155. package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
  156. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  157. package/dist/es/commands/ListTranscriptionJobsCommand.js +2 -27
  158. package/dist/es/commands/ListTranscriptionJobsCommand.js.map +1 -1
  159. package/dist/es/commands/ListVocabulariesCommand.js +2 -28
  160. package/dist/es/commands/ListVocabulariesCommand.js.map +1 -1
  161. package/dist/es/commands/ListVocabularyFiltersCommand.js +2 -27
  162. package/dist/es/commands/ListVocabularyFiltersCommand.js.map +1 -1
  163. package/dist/es/commands/StartCallAnalyticsJobCommand.js +2 -31
  164. package/dist/es/commands/StartCallAnalyticsJobCommand.js.map +1 -1
  165. package/dist/es/commands/StartMedicalTranscriptionJobCommand.js +2 -27
  166. package/dist/es/commands/StartMedicalTranscriptionJobCommand.js.map +1 -1
  167. package/dist/es/commands/StartTranscriptionJobCommand.js +2 -27
  168. package/dist/es/commands/StartTranscriptionJobCommand.js.map +1 -1
  169. package/dist/es/commands/TagResourceCommand.js +2 -27
  170. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  171. package/dist/es/commands/UntagResourceCommand.js +2 -27
  172. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  173. package/dist/es/commands/UpdateCallAnalyticsCategoryCommand.js +2 -28
  174. package/dist/es/commands/UpdateCallAnalyticsCategoryCommand.js.map +1 -1
  175. package/dist/es/commands/UpdateMedicalVocabularyCommand.js +2 -29
  176. package/dist/es/commands/UpdateMedicalVocabularyCommand.js.map +1 -1
  177. package/dist/es/commands/UpdateVocabularyCommand.js +2 -28
  178. package/dist/es/commands/UpdateVocabularyCommand.js.map +1 -1
  179. package/dist/es/commands/UpdateVocabularyFilterCommand.js +2 -27
  180. package/dist/es/commands/UpdateVocabularyFilterCommand.js.map +1 -1
  181. package/dist/es/endpoints.js +1 -1
  182. package/dist/es/endpoints.js.map +1 -1
  183. package/dist/es/models/models_0.js +13 -318
  184. package/dist/es/models/models_0.js.map +1 -1
  185. package/dist/es/package.json +39 -39
  186. package/dist/es/pagination/ListCallAnalyticsCategoriesPaginator.js +16 -28
  187. package/dist/es/pagination/ListCallAnalyticsCategoriesPaginator.js.map +1 -1
  188. package/dist/es/pagination/ListCallAnalyticsJobsPaginator.js +16 -28
  189. package/dist/es/pagination/ListCallAnalyticsJobsPaginator.js.map +1 -1
  190. package/dist/es/pagination/ListLanguageModelsPaginator.js +16 -28
  191. package/dist/es/pagination/ListLanguageModelsPaginator.js.map +1 -1
  192. package/dist/es/pagination/ListMedicalTranscriptionJobsPaginator.js +16 -28
  193. package/dist/es/pagination/ListMedicalTranscriptionJobsPaginator.js.map +1 -1
  194. package/dist/es/pagination/ListMedicalVocabulariesPaginator.js +16 -28
  195. package/dist/es/pagination/ListMedicalVocabulariesPaginator.js.map +1 -1
  196. package/dist/es/pagination/ListTranscriptionJobsPaginator.js +16 -28
  197. package/dist/es/pagination/ListTranscriptionJobsPaginator.js.map +1 -1
  198. package/dist/es/pagination/ListVocabulariesPaginator.js +16 -28
  199. package/dist/es/pagination/ListVocabulariesPaginator.js.map +1 -1
  200. package/dist/es/pagination/ListVocabularyFiltersPaginator.js +16 -28
  201. package/dist/es/pagination/ListVocabularyFiltersPaginator.js.map +1 -1
  202. package/dist/es/protocols/Aws_json1_1.js +980 -921
  203. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  204. package/dist/es/runtimeConfig.browser.js +0 -3
  205. package/dist/es/runtimeConfig.browser.js.map +1 -1
  206. package/dist/es/runtimeConfig.js +0 -3
  207. package/dist/es/runtimeConfig.js.map +1 -1
  208. package/dist/es/runtimeConfig.native.js +0 -3
  209. package/dist/es/runtimeConfig.native.js.map +1 -1
  210. package/dist/es/runtimeConfig.shared.js +0 -3
  211. package/dist/es/runtimeConfig.shared.js.map +1 -1
  212. package/dist/types/models/models_0.d.ts +63 -2
  213. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  214. package/dist/types/runtimeConfig.d.ts +1 -0
  215. package/dist/types/runtimeConfig.native.d.ts +1 -0
  216. package/dist/types/ts3.4/models/models_0.d.ts +63 -2
  217. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  218. package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
  219. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  220. package/models/models_0.ts +73 -2
  221. package/package.json +39 -39
  222. package/protocols/Aws_json1_1.ts +123 -34
  223. package/tsconfig.es.json +0 -2
  224. package/tsconfig.json +3 -5
  225. package/tsconfig.types.json +8 -0
@@ -220,6 +220,9 @@ import {
220
220
  StartMedicalTranscriptionJobResponse,
221
221
  StartTranscriptionJobRequest,
222
222
  StartTranscriptionJobResponse,
223
+ SubtitleFormat,
224
+ Subtitles,
225
+ SubtitlesOutput,
223
226
  Tag,
224
227
  TagResourceRequest,
225
228
  TagResourceResponse,
@@ -245,8 +248,12 @@ import {
245
248
  expectBoolean as __expectBoolean,
246
249
  expectInt32 as __expectInt32,
247
250
  expectLong as __expectLong,
251
+ expectNonNull as __expectNonNull,
252
+ expectNumber as __expectNumber,
248
253
  expectString as __expectString,
254
+ expectUnion as __expectUnion,
249
255
  limitedParseFloat32 as __limitedParseFloat32,
256
+ parseEpochTimestamp as __parseEpochTimestamp,
250
257
  } from "@aws-sdk/smithy-client";
251
258
  import {
252
259
  Endpoint as __Endpoint,
@@ -4123,6 +4130,21 @@ const serializeAws_json1_1JobExecutionSettings = (input: JobExecutionSettings, c
4123
4130
  };
4124
4131
  };
4125
4132
 
4133
+ const serializeAws_json1_1KMSEncryptionContextMap = (
4134
+ input: { [key: string]: string },
4135
+ context: __SerdeContext
4136
+ ): any => {
4137
+ return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
4138
+ if (value === null) {
4139
+ return acc;
4140
+ }
4141
+ return {
4142
+ ...acc,
4143
+ [key]: value,
4144
+ };
4145
+ }, {});
4146
+ };
4147
+
4126
4148
  const serializeAws_json1_1LanguageOptions = (input: (LanguageCode | string)[], context: __SerdeContext): any => {
4127
4149
  return input
4128
4150
  .filter((e: any) => e != null)
@@ -4409,6 +4431,10 @@ const serializeAws_json1_1StartMedicalTranscriptionJobRequest = (
4409
4431
  return {
4410
4432
  ...(input.ContentIdentificationType !== undefined &&
4411
4433
  input.ContentIdentificationType !== null && { ContentIdentificationType: input.ContentIdentificationType }),
4434
+ ...(input.KMSEncryptionContext !== undefined &&
4435
+ input.KMSEncryptionContext !== null && {
4436
+ KMSEncryptionContext: serializeAws_json1_1KMSEncryptionContextMap(input.KMSEncryptionContext, context),
4437
+ }),
4412
4438
  ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
4413
4439
  ...(input.Media !== undefined &&
4414
4440
  input.Media !== null && { Media: serializeAws_json1_1Media(input.Media, context) }),
@@ -4447,6 +4473,10 @@ const serializeAws_json1_1StartTranscriptionJobRequest = (
4447
4473
  input.JobExecutionSettings !== null && {
4448
4474
  JobExecutionSettings: serializeAws_json1_1JobExecutionSettings(input.JobExecutionSettings, context),
4449
4475
  }),
4476
+ ...(input.KMSEncryptionContext !== undefined &&
4477
+ input.KMSEncryptionContext !== null && {
4478
+ KMSEncryptionContext: serializeAws_json1_1KMSEncryptionContextMap(input.KMSEncryptionContext, context),
4479
+ }),
4450
4480
  ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
4451
4481
  ...(input.LanguageOptions !== undefined &&
4452
4482
  input.LanguageOptions !== null && {
@@ -4468,6 +4498,8 @@ const serializeAws_json1_1StartTranscriptionJobRequest = (
4468
4498
  ...(input.OutputKey !== undefined && input.OutputKey !== null && { OutputKey: input.OutputKey }),
4469
4499
  ...(input.Settings !== undefined &&
4470
4500
  input.Settings !== null && { Settings: serializeAws_json1_1Settings(input.Settings, context) }),
4501
+ ...(input.Subtitles !== undefined &&
4502
+ input.Subtitles !== null && { Subtitles: serializeAws_json1_1Subtitles(input.Subtitles, context) }),
4471
4503
  ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
4472
4504
  ...(input.TranscriptionJobName !== undefined &&
4473
4505
  input.TranscriptionJobName !== null && { TranscriptionJobName: input.TranscriptionJobName }),
@@ -4485,6 +4517,24 @@ const serializeAws_json1_1StringTargetList = (input: string[], context: __SerdeC
4485
4517
  });
4486
4518
  };
4487
4519
 
4520
+ const serializeAws_json1_1SubtitleFormats = (input: (SubtitleFormat | string)[], context: __SerdeContext): any => {
4521
+ return input
4522
+ .filter((e: any) => e != null)
4523
+ .map((entry) => {
4524
+ if (entry === null) {
4525
+ return null as any;
4526
+ }
4527
+ return entry;
4528
+ });
4529
+ };
4530
+
4531
+ const serializeAws_json1_1Subtitles = (input: Subtitles, context: __SerdeContext): any => {
4532
+ return {
4533
+ ...(input.Formats !== undefined &&
4534
+ input.Formats !== null && { Formats: serializeAws_json1_1SubtitleFormats(input.Formats, context) }),
4535
+ };
4536
+ };
4537
+
4488
4538
  const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
4489
4539
  return {
4490
4540
  ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
@@ -4635,11 +4685,11 @@ const deserializeAws_json1_1CallAnalyticsJob = (output: any, context: __SerdeCon
4635
4685
  : undefined,
4636
4686
  CompletionTime:
4637
4687
  output.CompletionTime !== undefined && output.CompletionTime !== null
4638
- ? new Date(Math.round(output.CompletionTime * 1000))
4688
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
4639
4689
  : undefined,
4640
4690
  CreationTime:
4641
4691
  output.CreationTime !== undefined && output.CreationTime !== null
4642
- ? new Date(Math.round(output.CreationTime * 1000))
4692
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4643
4693
  : undefined,
4644
4694
  DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
4645
4695
  FailureReason: __expectString(output.FailureReason),
@@ -4657,7 +4707,7 @@ const deserializeAws_json1_1CallAnalyticsJob = (output: any, context: __SerdeCon
4657
4707
  : undefined,
4658
4708
  StartTime:
4659
4709
  output.StartTime !== undefined && output.StartTime !== null
4660
- ? new Date(Math.round(output.StartTime * 1000))
4710
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
4661
4711
  : undefined,
4662
4712
  Transcript:
4663
4713
  output.Transcript !== undefined && output.Transcript !== null
@@ -4709,17 +4759,17 @@ const deserializeAws_json1_1CallAnalyticsJobSummary = (
4709
4759
  CallAnalyticsJobStatus: __expectString(output.CallAnalyticsJobStatus),
4710
4760
  CompletionTime:
4711
4761
  output.CompletionTime !== undefined && output.CompletionTime !== null
4712
- ? new Date(Math.round(output.CompletionTime * 1000))
4762
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
4713
4763
  : undefined,
4714
4764
  CreationTime:
4715
4765
  output.CreationTime !== undefined && output.CreationTime !== null
4716
- ? new Date(Math.round(output.CreationTime * 1000))
4766
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4717
4767
  : undefined,
4718
4768
  FailureReason: __expectString(output.FailureReason),
4719
4769
  LanguageCode: __expectString(output.LanguageCode),
4720
4770
  StartTime:
4721
4771
  output.StartTime !== undefined && output.StartTime !== null
4722
- ? new Date(Math.round(output.StartTime * 1000))
4772
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
4723
4773
  : undefined,
4724
4774
  } as any;
4725
4775
  };
@@ -4729,11 +4779,11 @@ const deserializeAws_json1_1CategoryProperties = (output: any, context: __SerdeC
4729
4779
  CategoryName: __expectString(output.CategoryName),
4730
4780
  CreateTime:
4731
4781
  output.CreateTime !== undefined && output.CreateTime !== null
4732
- ? new Date(Math.round(output.CreateTime * 1000))
4782
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTime)))
4733
4783
  : undefined,
4734
4784
  LastUpdateTime:
4735
4785
  output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
4736
- ? new Date(Math.round(output.LastUpdateTime * 1000))
4786
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
4737
4787
  : undefined,
4738
4788
  Rules:
4739
4789
  output.Rules !== undefined && output.Rules !== null
@@ -4821,7 +4871,7 @@ const deserializeAws_json1_1CreateMedicalVocabularyResponse = (
4821
4871
  LanguageCode: __expectString(output.LanguageCode),
4822
4872
  LastModifiedTime:
4823
4873
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4824
- ? new Date(Math.round(output.LastModifiedTime * 1000))
4874
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4825
4875
  : undefined,
4826
4876
  VocabularyName: __expectString(output.VocabularyName),
4827
4877
  VocabularyState: __expectString(output.VocabularyState),
@@ -4836,7 +4886,7 @@ const deserializeAws_json1_1CreateVocabularyFilterResponse = (
4836
4886
  LanguageCode: __expectString(output.LanguageCode),
4837
4887
  LastModifiedTime:
4838
4888
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4839
- ? new Date(Math.round(output.LastModifiedTime * 1000))
4889
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4840
4890
  : undefined,
4841
4891
  VocabularyFilterName: __expectString(output.VocabularyFilterName),
4842
4892
  } as any;
@@ -4851,7 +4901,7 @@ const deserializeAws_json1_1CreateVocabularyResponse = (
4851
4901
  LanguageCode: __expectString(output.LanguageCode),
4852
4902
  LastModifiedTime:
4853
4903
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4854
- ? new Date(Math.round(output.LastModifiedTime * 1000))
4904
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4855
4905
  : undefined,
4856
4906
  VocabularyName: __expectString(output.VocabularyName),
4857
4907
  VocabularyState: __expectString(output.VocabularyState),
@@ -4930,7 +4980,7 @@ const deserializeAws_json1_1GetMedicalVocabularyResponse = (
4930
4980
  LanguageCode: __expectString(output.LanguageCode),
4931
4981
  LastModifiedTime:
4932
4982
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4933
- ? new Date(Math.round(output.LastModifiedTime * 1000))
4983
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4934
4984
  : undefined,
4935
4985
  VocabularyName: __expectString(output.VocabularyName),
4936
4986
  VocabularyState: __expectString(output.VocabularyState),
@@ -4958,7 +5008,7 @@ const deserializeAws_json1_1GetVocabularyFilterResponse = (
4958
5008
  LanguageCode: __expectString(output.LanguageCode),
4959
5009
  LastModifiedTime:
4960
5010
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4961
- ? new Date(Math.round(output.LastModifiedTime * 1000))
5011
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4962
5012
  : undefined,
4963
5013
  VocabularyFilterName: __expectString(output.VocabularyFilterName),
4964
5014
  } as any;
@@ -4971,7 +5021,7 @@ const deserializeAws_json1_1GetVocabularyResponse = (output: any, context: __Ser
4971
5021
  LanguageCode: __expectString(output.LanguageCode),
4972
5022
  LastModifiedTime:
4973
5023
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4974
- ? new Date(Math.round(output.LastModifiedTime * 1000))
5024
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4975
5025
  : undefined,
4976
5026
  VocabularyName: __expectString(output.VocabularyName),
4977
5027
  VocabularyState: __expectString(output.VocabularyState),
@@ -5023,7 +5073,7 @@ const deserializeAws_json1_1LanguageModel = (output: any, context: __SerdeContex
5023
5073
  BaseModelName: __expectString(output.BaseModelName),
5024
5074
  CreateTime:
5025
5075
  output.CreateTime !== undefined && output.CreateTime !== null
5026
- ? new Date(Math.round(output.CreateTime * 1000))
5076
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTime)))
5027
5077
  : undefined,
5028
5078
  FailureReason: __expectString(output.FailureReason),
5029
5079
  InputDataConfig:
@@ -5033,7 +5083,7 @@ const deserializeAws_json1_1LanguageModel = (output: any, context: __SerdeContex
5033
5083
  LanguageCode: __expectString(output.LanguageCode),
5034
5084
  LastModifiedTime:
5035
5085
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5036
- ? new Date(Math.round(output.LastModifiedTime * 1000))
5086
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
5037
5087
  : undefined,
5038
5088
  ModelName: __expectString(output.ModelName),
5039
5089
  ModelStatus: __expectString(output.ModelStatus),
@@ -5200,12 +5250,12 @@ const deserializeAws_json1_1MedicalTranscriptionJob = (
5200
5250
  return {
5201
5251
  CompletionTime:
5202
5252
  output.CompletionTime !== undefined && output.CompletionTime !== null
5203
- ? new Date(Math.round(output.CompletionTime * 1000))
5253
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
5204
5254
  : undefined,
5205
5255
  ContentIdentificationType: __expectString(output.ContentIdentificationType),
5206
5256
  CreationTime:
5207
5257
  output.CreationTime !== undefined && output.CreationTime !== null
5208
- ? new Date(Math.round(output.CreationTime * 1000))
5258
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5209
5259
  : undefined,
5210
5260
  FailureReason: __expectString(output.FailureReason),
5211
5261
  LanguageCode: __expectString(output.LanguageCode),
@@ -5223,7 +5273,7 @@ const deserializeAws_json1_1MedicalTranscriptionJob = (
5223
5273
  Specialty: __expectString(output.Specialty),
5224
5274
  StartTime:
5225
5275
  output.StartTime !== undefined && output.StartTime !== null
5226
- ? new Date(Math.round(output.StartTime * 1000))
5276
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
5227
5277
  : undefined,
5228
5278
  Tags:
5229
5279
  output.Tags !== undefined && output.Tags !== null
@@ -5259,12 +5309,12 @@ const deserializeAws_json1_1MedicalTranscriptionJobSummary = (
5259
5309
  return {
5260
5310
  CompletionTime:
5261
5311
  output.CompletionTime !== undefined && output.CompletionTime !== null
5262
- ? new Date(Math.round(output.CompletionTime * 1000))
5312
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
5263
5313
  : undefined,
5264
5314
  ContentIdentificationType: __expectString(output.ContentIdentificationType),
5265
5315
  CreationTime:
5266
5316
  output.CreationTime !== undefined && output.CreationTime !== null
5267
- ? new Date(Math.round(output.CreationTime * 1000))
5317
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5268
5318
  : undefined,
5269
5319
  FailureReason: __expectString(output.FailureReason),
5270
5320
  LanguageCode: __expectString(output.LanguageCode),
@@ -5273,7 +5323,7 @@ const deserializeAws_json1_1MedicalTranscriptionJobSummary = (
5273
5323
  Specialty: __expectString(output.Specialty),
5274
5324
  StartTime:
5275
5325
  output.StartTime !== undefined && output.StartTime !== null
5276
- ? new Date(Math.round(output.StartTime * 1000))
5326
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
5277
5327
  : undefined,
5278
5328
  TranscriptionJobStatus: __expectString(output.TranscriptionJobStatus),
5279
5329
  Type: __expectString(output.Type),
@@ -5372,7 +5422,7 @@ const deserializeAws_json1_1RuleList = (output: any, context: __SerdeContext): R
5372
5422
  if (entry === null) {
5373
5423
  return null as any;
5374
5424
  }
5375
- return deserializeAws_json1_1Rule(entry, context);
5425
+ return deserializeAws_json1_1Rule(__expectUnion(entry), context);
5376
5426
  });
5377
5427
  };
5378
5428
 
@@ -5469,6 +5519,41 @@ const deserializeAws_json1_1StringTargetList = (output: any, context: __SerdeCon
5469
5519
  });
5470
5520
  };
5471
5521
 
5522
+ const deserializeAws_json1_1SubtitleFileUris = (output: any, context: __SerdeContext): string[] => {
5523
+ return (output || [])
5524
+ .filter((e: any) => e != null)
5525
+ .map((entry: any) => {
5526
+ if (entry === null) {
5527
+ return null as any;
5528
+ }
5529
+ return __expectString(entry) as any;
5530
+ });
5531
+ };
5532
+
5533
+ const deserializeAws_json1_1SubtitleFormats = (output: any, context: __SerdeContext): (SubtitleFormat | string)[] => {
5534
+ return (output || [])
5535
+ .filter((e: any) => e != null)
5536
+ .map((entry: any) => {
5537
+ if (entry === null) {
5538
+ return null as any;
5539
+ }
5540
+ return __expectString(entry) as any;
5541
+ });
5542
+ };
5543
+
5544
+ const deserializeAws_json1_1SubtitlesOutput = (output: any, context: __SerdeContext): SubtitlesOutput => {
5545
+ return {
5546
+ Formats:
5547
+ output.Formats !== undefined && output.Formats !== null
5548
+ ? deserializeAws_json1_1SubtitleFormats(output.Formats, context)
5549
+ : undefined,
5550
+ SubtitleFileUris:
5551
+ output.SubtitleFileUris !== undefined && output.SubtitleFileUris !== null
5552
+ ? deserializeAws_json1_1SubtitleFileUris(output.SubtitleFileUris, context)
5553
+ : undefined,
5554
+ } as any;
5555
+ };
5556
+
5472
5557
  const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
5473
5558
  return {
5474
5559
  Key: __expectString(output.Key),
@@ -5522,7 +5607,7 @@ const deserializeAws_json1_1TranscriptionJob = (output: any, context: __SerdeCon
5522
5607
  return {
5523
5608
  CompletionTime:
5524
5609
  output.CompletionTime !== undefined && output.CompletionTime !== null
5525
- ? new Date(Math.round(output.CompletionTime * 1000))
5610
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
5526
5611
  : undefined,
5527
5612
  ContentRedaction:
5528
5613
  output.ContentRedaction !== undefined && output.ContentRedaction !== null
@@ -5530,7 +5615,7 @@ const deserializeAws_json1_1TranscriptionJob = (output: any, context: __SerdeCon
5530
5615
  : undefined,
5531
5616
  CreationTime:
5532
5617
  output.CreationTime !== undefined && output.CreationTime !== null
5533
- ? new Date(Math.round(output.CreationTime * 1000))
5618
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5534
5619
  : undefined,
5535
5620
  FailureReason: __expectString(output.FailureReason),
5536
5621
  IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore),
@@ -5560,7 +5645,11 @@ const deserializeAws_json1_1TranscriptionJob = (output: any, context: __SerdeCon
5560
5645
  : undefined,
5561
5646
  StartTime:
5562
5647
  output.StartTime !== undefined && output.StartTime !== null
5563
- ? new Date(Math.round(output.StartTime * 1000))
5648
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
5649
+ : undefined,
5650
+ Subtitles:
5651
+ output.Subtitles !== undefined && output.Subtitles !== null
5652
+ ? deserializeAws_json1_1SubtitlesOutput(output.Subtitles, context)
5564
5653
  : undefined,
5565
5654
  Tags:
5566
5655
  output.Tags !== undefined && output.Tags !== null
@@ -5596,7 +5685,7 @@ const deserializeAws_json1_1TranscriptionJobSummary = (
5596
5685
  return {
5597
5686
  CompletionTime:
5598
5687
  output.CompletionTime !== undefined && output.CompletionTime !== null
5599
- ? new Date(Math.round(output.CompletionTime * 1000))
5688
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
5600
5689
  : undefined,
5601
5690
  ContentRedaction:
5602
5691
  output.ContentRedaction !== undefined && output.ContentRedaction !== null
@@ -5604,7 +5693,7 @@ const deserializeAws_json1_1TranscriptionJobSummary = (
5604
5693
  : undefined,
5605
5694
  CreationTime:
5606
5695
  output.CreationTime !== undefined && output.CreationTime !== null
5607
- ? new Date(Math.round(output.CreationTime * 1000))
5696
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5608
5697
  : undefined,
5609
5698
  FailureReason: __expectString(output.FailureReason),
5610
5699
  IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore),
@@ -5617,7 +5706,7 @@ const deserializeAws_json1_1TranscriptionJobSummary = (
5617
5706
  OutputLocationType: __expectString(output.OutputLocationType),
5618
5707
  StartTime:
5619
5708
  output.StartTime !== undefined && output.StartTime !== null
5620
- ? new Date(Math.round(output.StartTime * 1000))
5709
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
5621
5710
  : undefined,
5622
5711
  TranscriptionJobName: __expectString(output.TranscriptionJobName),
5623
5712
  TranscriptionJobStatus: __expectString(output.TranscriptionJobStatus),
@@ -5648,7 +5737,7 @@ const deserializeAws_json1_1UpdateMedicalVocabularyResponse = (
5648
5737
  LanguageCode: __expectString(output.LanguageCode),
5649
5738
  LastModifiedTime:
5650
5739
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5651
- ? new Date(Math.round(output.LastModifiedTime * 1000))
5740
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
5652
5741
  : undefined,
5653
5742
  VocabularyName: __expectString(output.VocabularyName),
5654
5743
  VocabularyState: __expectString(output.VocabularyState),
@@ -5663,7 +5752,7 @@ const deserializeAws_json1_1UpdateVocabularyFilterResponse = (
5663
5752
  LanguageCode: __expectString(output.LanguageCode),
5664
5753
  LastModifiedTime:
5665
5754
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5666
- ? new Date(Math.round(output.LastModifiedTime * 1000))
5755
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
5667
5756
  : undefined,
5668
5757
  VocabularyFilterName: __expectString(output.VocabularyFilterName),
5669
5758
  } as any;
@@ -5677,7 +5766,7 @@ const deserializeAws_json1_1UpdateVocabularyResponse = (
5677
5766
  LanguageCode: __expectString(output.LanguageCode),
5678
5767
  LastModifiedTime:
5679
5768
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5680
- ? new Date(Math.round(output.LastModifiedTime * 1000))
5769
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
5681
5770
  : undefined,
5682
5771
  VocabularyName: __expectString(output.VocabularyName),
5683
5772
  VocabularyState: __expectString(output.VocabularyState),
@@ -5700,7 +5789,7 @@ const deserializeAws_json1_1VocabularyFilterInfo = (output: any, context: __Serd
5700
5789
  LanguageCode: __expectString(output.LanguageCode),
5701
5790
  LastModifiedTime:
5702
5791
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5703
- ? new Date(Math.round(output.LastModifiedTime * 1000))
5792
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
5704
5793
  : undefined,
5705
5794
  VocabularyFilterName: __expectString(output.VocabularyFilterName),
5706
5795
  } as any;
@@ -5722,7 +5811,7 @@ const deserializeAws_json1_1VocabularyInfo = (output: any, context: __SerdeConte
5722
5811
  LanguageCode: __expectString(output.LanguageCode),
5723
5812
  LastModifiedTime:
5724
5813
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5725
- ? new Date(Math.round(output.LastModifiedTime * 1000))
5814
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
5726
5815
  : undefined,
5727
5816
  VocabularyName: __expectString(output.VocabularyName),
5728
5817
  VocabularyState: __expectString(output.VocabularyState),
package/tsconfig.es.json CHANGED
@@ -4,8 +4,6 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
8
  "outDir": "dist/es"
11
9
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "alwaysStrict": true,
4
4
  "target": "ES2018",
5
5
  "module": "commonjs",
6
- "declaration": true,
7
6
  "strict": true,
8
7
  "sourceMap": true,
9
8
  "downlevelIteration": true,
@@ -12,9 +11,8 @@
12
11
  "incremental": true,
13
12
  "resolveJsonModule": true,
14
13
  "esModuleInterop": true,
15
- "declarationDir": "./dist/types",
16
14
  "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
15
+ "removeComments": true
18
16
  },
19
17
  "typedocOptions": {
20
18
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
@@ -24,9 +22,9 @@
24
22
  "ignoreCompilerErrors": true,
25
23
  "includeDeclarations": true,
26
24
  "stripInternal": true,
27
- "readme": "./README.md",
25
+ "readme": "README.md",
28
26
  "mode": "file",
29
- "out": "./docs",
27
+ "out": "docs",
30
28
  "theme": "minimal",
31
29
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
30
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist/types"
7
+ }
8
+ }