@aws-sdk/client-transcribe 3.46.0 → 3.48.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 (36) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/endpoints.js +0 -28
  3. package/dist-cjs/models/models_0.js +18 -33
  4. package/dist-cjs/protocols/Aws_json1_1.js +27 -0
  5. package/dist-cjs/runtimeConfig.browser.js +7 -2
  6. package/dist-cjs/runtimeConfig.js +10 -2
  7. package/dist-es/endpoints.js +0 -28
  8. package/dist-es/models/models_0.js +15 -20
  9. package/dist-es/protocols/Aws_json1_1.js +27 -1
  10. package/dist-es/runtimeConfig.browser.js +12 -3
  11. package/dist-es/runtimeConfig.js +13 -4
  12. package/dist-types/Transcribe.d.ts +37 -28
  13. package/dist-types/TranscribeClient.d.ts +5 -1
  14. package/dist-types/commands/CreateCallAnalyticsCategoryCommand.d.ts +3 -3
  15. package/dist-types/commands/CreateLanguageModelCommand.d.ts +3 -2
  16. package/dist-types/commands/CreateMedicalVocabularyCommand.d.ts +2 -1
  17. package/dist-types/commands/CreateVocabularyFilterCommand.d.ts +2 -2
  18. package/dist-types/commands/ListCallAnalyticsCategoriesCommand.d.ts +2 -1
  19. package/dist-types/commands/ListLanguageModelsCommand.d.ts +4 -3
  20. package/dist-types/commands/ListMedicalTranscriptionJobsCommand.d.ts +2 -1
  21. package/dist-types/commands/ListMedicalVocabulariesCommand.d.ts +2 -2
  22. package/dist-types/commands/ListVocabulariesCommand.d.ts +2 -2
  23. package/dist-types/commands/StartCallAnalyticsJobCommand.d.ts +5 -4
  24. package/dist-types/commands/UpdateCallAnalyticsCategoryCommand.d.ts +3 -2
  25. package/dist-types/commands/UpdateMedicalVocabularyCommand.d.ts +4 -3
  26. package/dist-types/commands/UpdateVocabularyCommand.d.ts +3 -2
  27. package/dist-types/models/models_0.d.ts +855 -694
  28. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  29. package/dist-types/runtimeConfig.d.ts +4 -3
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/dist-types/ts3.4/TranscribeClient.d.ts +3 -1
  32. package/dist-types/ts3.4/models/models_0.d.ts +16 -20
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  36. package/package.json +35 -35
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-transcribe
20
+
21
+
22
+
23
+
24
+
25
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-transcribe
28
+
29
+
30
+
31
+
32
+
33
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
34
+
35
+
36
+ ### Features
37
+
38
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
39
+
40
+
41
+
42
+
43
+
6
44
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
45
 
8
46
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "ca-central-1": {
7
7
  variants: [
8
- {
9
- hostname: "transcribe.ca-central-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "fips.transcribe.ca-central-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -35,10 +31,6 @@ const regionHash = {
35
31
  },
36
32
  "us-east-1": {
37
33
  variants: [
38
- {
39
- hostname: "transcribe.us-east-1.amazonaws.com",
40
- tags: [],
41
- },
42
34
  {
43
35
  hostname: "fips.transcribe.us-east-1.amazonaws.com",
44
36
  tags: ["fips"],
@@ -47,10 +39,6 @@ const regionHash = {
47
39
  },
48
40
  "us-east-2": {
49
41
  variants: [
50
- {
51
- hostname: "transcribe.us-east-2.amazonaws.com",
52
- tags: [],
53
- },
54
42
  {
55
43
  hostname: "fips.transcribe.us-east-2.amazonaws.com",
56
44
  tags: ["fips"],
@@ -59,10 +47,6 @@ const regionHash = {
59
47
  },
60
48
  "us-gov-east-1": {
61
49
  variants: [
62
- {
63
- hostname: "transcribe.us-gov-east-1.amazonaws.com",
64
- tags: [],
65
- },
66
50
  {
67
51
  hostname: "fips.transcribe.us-gov-east-1.amazonaws.com",
68
52
  tags: ["fips"],
@@ -71,10 +55,6 @@ const regionHash = {
71
55
  },
72
56
  "us-gov-west-1": {
73
57
  variants: [
74
- {
75
- hostname: "transcribe.us-gov-west-1.amazonaws.com",
76
- tags: [],
77
- },
78
58
  {
79
59
  hostname: "fips.transcribe.us-gov-west-1.amazonaws.com",
80
60
  tags: ["fips"],
@@ -83,10 +63,6 @@ const regionHash = {
83
63
  },
84
64
  "us-west-1": {
85
65
  variants: [
86
- {
87
- hostname: "transcribe.us-west-1.amazonaws.com",
88
- tags: [],
89
- },
90
66
  {
91
67
  hostname: "fips.transcribe.us-west-1.amazonaws.com",
92
68
  tags: ["fips"],
@@ -95,10 +71,6 @@ const regionHash = {
95
71
  },
96
72
  "us-west-2": {
97
73
  variants: [
98
- {
99
- hostname: "transcribe.us-west-2.amazonaws.com",
100
- tags: [],
101
- },
102
74
  {
103
75
  hostname: "fips.transcribe.us-west-2.amazonaws.com",
104
76
  tags: ["fips"],
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteCallAnalyticsJobResponse = exports.DeleteCallAnalyticsJobRequest = exports.NotFoundException = exports.DeleteCallAnalyticsCategoryResponse = exports.DeleteCallAnalyticsCategoryRequest = exports.CreateVocabularyFilterResponse = exports.CreateVocabularyFilterRequest = exports.CreateVocabularyResponse = exports.CreateVocabularyRequest = exports.CreateMedicalVocabularyResponse = exports.VocabularyState = exports.CreateMedicalVocabularyRequest = exports.CreateLanguageModelResponse = exports.ModelStatus = exports.CreateLanguageModelRequest = exports.Tag = exports.InputDataConfig = exports.LimitExceededException = exports.InternalFailureException = exports.CreateCallAnalyticsCategoryResponse = exports.CreateCallAnalyticsCategoryRequest = exports.ConflictException = exports.CLMLanguageCode = exports.CategoryProperties = exports.Rule = exports.TranscriptFilter = exports.TranscriptFilterType = exports.SentimentFilter = exports.SentimentValue = exports.NonTalkTimeFilter = exports.InterruptionFilter = exports.RelativeTimeRange = exports.CallAnalyticsJobSummary = exports.CallAnalyticsJob = exports.Transcript = exports.CallAnalyticsJobSettings = exports.VocabularyFilterMethod = exports.LanguageIdSettings = exports.ContentRedaction = exports.RedactionType = exports.RedactionOutput = exports.MediaFormat = exports.Media = exports.LanguageCode = exports.ChannelDefinition = exports.ParticipantRole = exports.CallAnalyticsJobStatus = exports.BaseModelName = exports.BadRequestException = exports.AbsoluteTimeRange = void 0;
4
- exports.ListTagsForResourceRequest = exports.ListMedicalVocabulariesResponse = exports.VocabularyInfo = exports.ListMedicalVocabulariesRequest = exports.ListMedicalTranscriptionJobsResponse = exports.MedicalTranscriptionJobSummary = exports.OutputLocationType = exports.ListMedicalTranscriptionJobsRequest = exports.ListLanguageModelsResponse = exports.ListLanguageModelsRequest = exports.ListCallAnalyticsJobsResponse = exports.ListCallAnalyticsJobsRequest = exports.ListCallAnalyticsCategoriesResponse = exports.ListCallAnalyticsCategoriesRequest = exports.GetVocabularyFilterResponse = exports.GetVocabularyFilterRequest = exports.GetVocabularyResponse = exports.GetVocabularyRequest = exports.GetTranscriptionJobResponse = exports.TranscriptionJob = exports.SubtitlesOutput = exports.SubtitleFormat = exports.Settings = exports.ModelSettings = exports.JobExecutionSettings = exports.GetTranscriptionJobRequest = exports.GetMedicalVocabularyResponse = exports.GetMedicalVocabularyRequest = exports.GetMedicalTranscriptionJobResponse = exports.MedicalTranscriptionJob = exports.Type = exports.TranscriptionJobStatus = exports.MedicalTranscript = exports.Specialty = exports.MedicalTranscriptionSetting = exports.MedicalContentIdentificationType = exports.GetMedicalTranscriptionJobRequest = exports.GetCallAnalyticsJobResponse = exports.GetCallAnalyticsJobRequest = exports.GetCallAnalyticsCategoryResponse = exports.GetCallAnalyticsCategoryRequest = exports.DescribeLanguageModelResponse = exports.LanguageModel = exports.DescribeLanguageModelRequest = exports.DeleteVocabularyFilterRequest = exports.DeleteVocabularyRequest = exports.DeleteTranscriptionJobRequest = exports.DeleteMedicalVocabularyRequest = exports.DeleteMedicalTranscriptionJobRequest = exports.DeleteLanguageModelRequest = void 0;
5
- exports.UpdateVocabularyFilterResponse = exports.UpdateVocabularyFilterRequest = exports.UpdateVocabularyResponse = exports.UpdateVocabularyRequest = exports.UpdateMedicalVocabularyResponse = exports.UpdateMedicalVocabularyRequest = exports.UpdateCallAnalyticsCategoryResponse = exports.UpdateCallAnalyticsCategoryRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartTranscriptionJobResponse = exports.StartTranscriptionJobRequest = exports.Subtitles = exports.StartMedicalTranscriptionJobResponse = exports.StartMedicalTranscriptionJobRequest = exports.StartCallAnalyticsJobResponse = exports.StartCallAnalyticsJobRequest = exports.ListVocabularyFiltersResponse = exports.VocabularyFilterInfo = exports.ListVocabularyFiltersRequest = exports.ListVocabulariesResponse = exports.ListVocabulariesRequest = exports.ListTranscriptionJobsResponse = exports.TranscriptionJobSummary = exports.ListTranscriptionJobsRequest = exports.ListTagsForResourceResponse = void 0;
3
+ exports.DeleteTranscriptionJobRequest = exports.DeleteMedicalVocabularyRequest = exports.DeleteMedicalTranscriptionJobRequest = exports.DeleteLanguageModelRequest = exports.DeleteCallAnalyticsJobResponse = exports.DeleteCallAnalyticsJobRequest = exports.DeleteCallAnalyticsCategoryResponse = exports.DeleteCallAnalyticsCategoryRequest = exports.CreateVocabularyFilterResponse = exports.CreateVocabularyFilterRequest = exports.CreateVocabularyResponse = exports.CreateVocabularyRequest = exports.CreateMedicalVocabularyResponse = exports.VocabularyState = exports.CreateMedicalVocabularyRequest = exports.CreateLanguageModelResponse = exports.ModelStatus = exports.CreateLanguageModelRequest = exports.Tag = exports.InputDataConfig = exports.CreateCallAnalyticsCategoryResponse = exports.CreateCallAnalyticsCategoryRequest = exports.CLMLanguageCode = exports.CategoryProperties = exports.Rule = exports.TranscriptFilter = exports.TranscriptFilterType = exports.SentimentFilter = exports.SentimentValue = exports.NonTalkTimeFilter = exports.InterruptionFilter = exports.RelativeTimeRange = exports.CallAnalyticsJobSummary = exports.CallAnalyticsJob = exports.Transcript = exports.CallAnalyticsJobSettings = exports.VocabularyFilterMethod = exports.LanguageIdSettings = exports.ContentRedaction = exports.RedactionType = exports.RedactionOutput = exports.PiiEntityType = exports.MediaFormat = exports.Media = exports.LanguageCode = exports.ChannelDefinition = exports.ParticipantRole = exports.CallAnalyticsJobStatus = exports.BaseModelName = exports.AbsoluteTimeRange = void 0;
4
+ exports.ListTranscriptionJobsResponse = exports.TranscriptionJobSummary = exports.ListTranscriptionJobsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListMedicalVocabulariesResponse = exports.VocabularyInfo = exports.ListMedicalVocabulariesRequest = exports.ListMedicalTranscriptionJobsResponse = exports.MedicalTranscriptionJobSummary = exports.OutputLocationType = exports.ListMedicalTranscriptionJobsRequest = exports.ListLanguageModelsResponse = exports.ListLanguageModelsRequest = exports.ListCallAnalyticsJobsResponse = exports.ListCallAnalyticsJobsRequest = exports.ListCallAnalyticsCategoriesResponse = exports.ListCallAnalyticsCategoriesRequest = exports.GetVocabularyFilterResponse = exports.GetVocabularyFilterRequest = exports.GetVocabularyResponse = exports.GetVocabularyRequest = exports.GetTranscriptionJobResponse = exports.TranscriptionJob = exports.SubtitlesOutput = exports.SubtitleFormat = exports.Settings = exports.ModelSettings = exports.JobExecutionSettings = exports.GetTranscriptionJobRequest = exports.GetMedicalVocabularyResponse = exports.GetMedicalVocabularyRequest = exports.GetMedicalTranscriptionJobResponse = exports.MedicalTranscriptionJob = exports.Type = exports.TranscriptionJobStatus = exports.MedicalTranscript = exports.Specialty = exports.MedicalTranscriptionSetting = exports.MedicalContentIdentificationType = exports.GetMedicalTranscriptionJobRequest = exports.GetCallAnalyticsJobResponse = exports.GetCallAnalyticsJobRequest = exports.GetCallAnalyticsCategoryResponse = exports.GetCallAnalyticsCategoryRequest = exports.DescribeLanguageModelResponse = exports.LanguageModel = exports.DescribeLanguageModelRequest = exports.DeleteVocabularyFilterRequest = exports.DeleteVocabularyRequest = void 0;
5
+ exports.UpdateVocabularyFilterResponse = exports.UpdateVocabularyFilterRequest = exports.UpdateVocabularyResponse = exports.UpdateVocabularyRequest = exports.UpdateMedicalVocabularyResponse = exports.UpdateMedicalVocabularyRequest = exports.UpdateCallAnalyticsCategoryResponse = exports.UpdateCallAnalyticsCategoryRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartTranscriptionJobResponse = exports.StartTranscriptionJobRequest = exports.Subtitles = exports.StartMedicalTranscriptionJobResponse = exports.StartMedicalTranscriptionJobRequest = exports.StartCallAnalyticsJobResponse = exports.StartCallAnalyticsJobRequest = exports.ListVocabularyFiltersResponse = exports.VocabularyFilterInfo = exports.ListVocabularyFiltersRequest = exports.ListVocabulariesResponse = exports.ListVocabulariesRequest = void 0;
6
6
  var AbsoluteTimeRange;
7
7
  (function (AbsoluteTimeRange) {
8
8
  AbsoluteTimeRange.filterSensitiveLog = (obj) => ({
9
9
  ...obj,
10
10
  });
11
11
  })(AbsoluteTimeRange = exports.AbsoluteTimeRange || (exports.AbsoluteTimeRange = {}));
12
- var BadRequestException;
13
- (function (BadRequestException) {
14
- BadRequestException.filterSensitiveLog = (obj) => ({
15
- ...obj,
16
- });
17
- })(BadRequestException = exports.BadRequestException || (exports.BadRequestException = {}));
18
12
  var BaseModelName;
19
13
  (function (BaseModelName) {
20
14
  BaseModelName["NARROW_BAND"] = "NarrowBand";
@@ -97,6 +91,21 @@ var MediaFormat;
97
91
  MediaFormat["WAV"] = "wav";
98
92
  MediaFormat["WEBM"] = "webm";
99
93
  })(MediaFormat = exports.MediaFormat || (exports.MediaFormat = {}));
94
+ var PiiEntityType;
95
+ (function (PiiEntityType) {
96
+ PiiEntityType["ADDRESS"] = "ADDRESS";
97
+ PiiEntityType["ALL"] = "ALL";
98
+ PiiEntityType["BANK_ACCOUNT_NUMBER"] = "BANK_ACCOUNT_NUMBER";
99
+ PiiEntityType["BANK_ROUTING"] = "BANK_ROUTING";
100
+ PiiEntityType["CREDIT_DEBIT_CVV"] = "CREDIT_DEBIT_CVV";
101
+ PiiEntityType["CREDIT_DEBIT_EXPIRY"] = "CREDIT_DEBIT_EXPIRY";
102
+ PiiEntityType["CREDIT_DEBIT_NUMBER"] = "CREDIT_DEBIT_NUMBER";
103
+ PiiEntityType["EMAIL"] = "EMAIL";
104
+ PiiEntityType["NAME"] = "NAME";
105
+ PiiEntityType["PHONE"] = "PHONE";
106
+ PiiEntityType["PIN"] = "PIN";
107
+ PiiEntityType["SSN"] = "SSN";
108
+ })(PiiEntityType = exports.PiiEntityType || (exports.PiiEntityType = {}));
100
109
  var RedactionOutput;
101
110
  (function (RedactionOutput) {
102
111
  RedactionOutput["REDACTED"] = "redacted";
@@ -230,12 +239,6 @@ var CLMLanguageCode;
230
239
  CLMLanguageCode["ES_US"] = "es-US";
231
240
  CLMLanguageCode["HI_IN"] = "hi-IN";
232
241
  })(CLMLanguageCode = exports.CLMLanguageCode || (exports.CLMLanguageCode = {}));
233
- var ConflictException;
234
- (function (ConflictException) {
235
- ConflictException.filterSensitiveLog = (obj) => ({
236
- ...obj,
237
- });
238
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
239
242
  var CreateCallAnalyticsCategoryRequest;
240
243
  (function (CreateCallAnalyticsCategoryRequest) {
241
244
  CreateCallAnalyticsCategoryRequest.filterSensitiveLog = (obj) => ({
@@ -252,18 +255,6 @@ var CreateCallAnalyticsCategoryResponse;
252
255
  }),
253
256
  });
254
257
  })(CreateCallAnalyticsCategoryResponse = exports.CreateCallAnalyticsCategoryResponse || (exports.CreateCallAnalyticsCategoryResponse = {}));
255
- var InternalFailureException;
256
- (function (InternalFailureException) {
257
- InternalFailureException.filterSensitiveLog = (obj) => ({
258
- ...obj,
259
- });
260
- })(InternalFailureException = exports.InternalFailureException || (exports.InternalFailureException = {}));
261
- var LimitExceededException;
262
- (function (LimitExceededException) {
263
- LimitExceededException.filterSensitiveLog = (obj) => ({
264
- ...obj,
265
- });
266
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
267
258
  var InputDataConfig;
268
259
  (function (InputDataConfig) {
269
260
  InputDataConfig.filterSensitiveLog = (obj) => ({
@@ -348,12 +339,6 @@ var DeleteCallAnalyticsCategoryResponse;
348
339
  ...obj,
349
340
  });
350
341
  })(DeleteCallAnalyticsCategoryResponse = exports.DeleteCallAnalyticsCategoryResponse || (exports.DeleteCallAnalyticsCategoryResponse = {}));
351
- var NotFoundException;
352
- (function (NotFoundException) {
353
- NotFoundException.filterSensitiveLog = (obj) => ({
354
- ...obj,
355
- });
356
- })(NotFoundException = exports.NotFoundException || (exports.NotFoundException = {}));
357
342
  var DeleteCallAnalyticsJobRequest;
358
343
  (function (DeleteCallAnalyticsJobRequest) {
359
344
  DeleteCallAnalyticsJobRequest.filterSensitiveLog = (obj) => ({
@@ -3196,6 +3196,10 @@ const serializeAws_json1_1ChannelDefinitions = (input, context) => {
3196
3196
  };
3197
3197
  const serializeAws_json1_1ContentRedaction = (input, context) => {
3198
3198
  return {
3199
+ ...(input.PiiEntityTypes !== undefined &&
3200
+ input.PiiEntityTypes !== null && {
3201
+ PiiEntityTypes: serializeAws_json1_1PiiEntityTypes(input.PiiEntityTypes, context),
3202
+ }),
3199
3203
  ...(input.RedactionOutput !== undefined &&
3200
3204
  input.RedactionOutput !== null && { RedactionOutput: input.RedactionOutput }),
3201
3205
  ...(input.RedactionType !== undefined && input.RedactionType !== null && { RedactionType: input.RedactionType }),
@@ -3543,6 +3547,16 @@ const serializeAws_json1_1Phrases = (input, context) => {
3543
3547
  return entry;
3544
3548
  });
3545
3549
  };
3550
+ const serializeAws_json1_1PiiEntityTypes = (input, context) => {
3551
+ return input
3552
+ .filter((e) => e != null)
3553
+ .map((entry) => {
3554
+ if (entry === null) {
3555
+ return null;
3556
+ }
3557
+ return entry;
3558
+ });
3559
+ };
3546
3560
  const serializeAws_json1_1RelativeTimeRange = (input, context) => {
3547
3561
  return {
3548
3562
  ...(input.EndPercentage !== undefined && input.EndPercentage !== null && { EndPercentage: input.EndPercentage }),
@@ -3984,6 +3998,9 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
3984
3998
  };
3985
3999
  const deserializeAws_json1_1ContentRedaction = (output, context) => {
3986
4000
  return {
4001
+ PiiEntityTypes: output.PiiEntityTypes !== undefined && output.PiiEntityTypes !== null
4002
+ ? deserializeAws_json1_1PiiEntityTypes(output.PiiEntityTypes, context)
4003
+ : undefined,
3987
4004
  RedactionOutput: smithy_client_1.expectString(output.RedactionOutput),
3988
4005
  RedactionType: smithy_client_1.expectString(output.RedactionType),
3989
4006
  };
@@ -4390,6 +4407,16 @@ const deserializeAws_json1_1NotFoundException = (output, context) => {
4390
4407
  Message: smithy_client_1.expectString(output.Message),
4391
4408
  };
4392
4409
  };
4410
+ const deserializeAws_json1_1PiiEntityTypes = (output, context) => {
4411
+ return (output || [])
4412
+ .filter((e) => e != null)
4413
+ .map((entry) => {
4414
+ if (entry === null) {
4415
+ return null;
4416
+ }
4417
+ return smithy_client_1.expectString(entry);
4418
+ });
4419
+ };
4393
4420
  const deserializeAws_json1_1RelativeTimeRange = (output, context) => {
4394
4421
  return {
4395
4422
  EndPercentage: smithy_client_1.expectInt32(output.EndPercentage),
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "node",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
29
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
31
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
32
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
33
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
34
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
35
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
36
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "ca-central-1": {
5
5
  variants: [
6
- {
7
- hostname: "transcribe.ca-central-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "fips.transcribe.ca-central-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -33,10 +29,6 @@ var regionHash = {
33
29
  },
34
30
  "us-east-1": {
35
31
  variants: [
36
- {
37
- hostname: "transcribe.us-east-1.amazonaws.com",
38
- tags: [],
39
- },
40
32
  {
41
33
  hostname: "fips.transcribe.us-east-1.amazonaws.com",
42
34
  tags: ["fips"],
@@ -45,10 +37,6 @@ var regionHash = {
45
37
  },
46
38
  "us-east-2": {
47
39
  variants: [
48
- {
49
- hostname: "transcribe.us-east-2.amazonaws.com",
50
- tags: [],
51
- },
52
40
  {
53
41
  hostname: "fips.transcribe.us-east-2.amazonaws.com",
54
42
  tags: ["fips"],
@@ -57,10 +45,6 @@ var regionHash = {
57
45
  },
58
46
  "us-gov-east-1": {
59
47
  variants: [
60
- {
61
- hostname: "transcribe.us-gov-east-1.amazonaws.com",
62
- tags: [],
63
- },
64
48
  {
65
49
  hostname: "fips.transcribe.us-gov-east-1.amazonaws.com",
66
50
  tags: ["fips"],
@@ -69,10 +53,6 @@ var regionHash = {
69
53
  },
70
54
  "us-gov-west-1": {
71
55
  variants: [
72
- {
73
- hostname: "transcribe.us-gov-west-1.amazonaws.com",
74
- tags: [],
75
- },
76
56
  {
77
57
  hostname: "fips.transcribe.us-gov-west-1.amazonaws.com",
78
58
  tags: ["fips"],
@@ -81,10 +61,6 @@ var regionHash = {
81
61
  },
82
62
  "us-west-1": {
83
63
  variants: [
84
- {
85
- hostname: "transcribe.us-west-1.amazonaws.com",
86
- tags: [],
87
- },
88
64
  {
89
65
  hostname: "fips.transcribe.us-west-1.amazonaws.com",
90
66
  tags: ["fips"],
@@ -93,10 +69,6 @@ var regionHash = {
93
69
  },
94
70
  "us-west-2": {
95
71
  variants: [
96
- {
97
- hostname: "transcribe.us-west-2.amazonaws.com",
98
- tags: [],
99
- },
100
72
  {
101
73
  hostname: "fips.transcribe.us-west-2.amazonaws.com",
102
74
  tags: ["fips"],
@@ -3,10 +3,6 @@ export var AbsoluteTimeRange;
3
3
  (function (AbsoluteTimeRange) {
4
4
  AbsoluteTimeRange.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
5
  })(AbsoluteTimeRange || (AbsoluteTimeRange = {}));
6
- export var BadRequestException;
7
- (function (BadRequestException) {
8
- BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
- })(BadRequestException || (BadRequestException = {}));
10
6
  export var BaseModelName;
11
7
  (function (BaseModelName) {
12
8
  BaseModelName["NARROW_BAND"] = "NarrowBand";
@@ -85,6 +81,21 @@ export var MediaFormat;
85
81
  MediaFormat["WAV"] = "wav";
86
82
  MediaFormat["WEBM"] = "webm";
87
83
  })(MediaFormat || (MediaFormat = {}));
84
+ export var PiiEntityType;
85
+ (function (PiiEntityType) {
86
+ PiiEntityType["ADDRESS"] = "ADDRESS";
87
+ PiiEntityType["ALL"] = "ALL";
88
+ PiiEntityType["BANK_ACCOUNT_NUMBER"] = "BANK_ACCOUNT_NUMBER";
89
+ PiiEntityType["BANK_ROUTING"] = "BANK_ROUTING";
90
+ PiiEntityType["CREDIT_DEBIT_CVV"] = "CREDIT_DEBIT_CVV";
91
+ PiiEntityType["CREDIT_DEBIT_EXPIRY"] = "CREDIT_DEBIT_EXPIRY";
92
+ PiiEntityType["CREDIT_DEBIT_NUMBER"] = "CREDIT_DEBIT_NUMBER";
93
+ PiiEntityType["EMAIL"] = "EMAIL";
94
+ PiiEntityType["NAME"] = "NAME";
95
+ PiiEntityType["PHONE"] = "PHONE";
96
+ PiiEntityType["PIN"] = "PIN";
97
+ PiiEntityType["SSN"] = "SSN";
98
+ })(PiiEntityType || (PiiEntityType = {}));
88
99
  export var RedactionOutput;
89
100
  (function (RedactionOutput) {
90
101
  RedactionOutput["REDACTED"] = "redacted";
@@ -194,10 +205,6 @@ export var CLMLanguageCode;
194
205
  CLMLanguageCode["ES_US"] = "es-US";
195
206
  CLMLanguageCode["HI_IN"] = "hi-IN";
196
207
  })(CLMLanguageCode || (CLMLanguageCode = {}));
197
- export var ConflictException;
198
- (function (ConflictException) {
199
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
- })(ConflictException || (ConflictException = {}));
201
208
  export var CreateCallAnalyticsCategoryRequest;
202
209
  (function (CreateCallAnalyticsCategoryRequest) {
203
210
  CreateCallAnalyticsCategoryRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Rules && { Rules: obj.Rules.map(function (item) { return Rule.filterSensitiveLog(item); }) }))); };
@@ -208,14 +215,6 @@ export var CreateCallAnalyticsCategoryResponse;
208
215
  CategoryProperties: CategoryProperties.filterSensitiveLog(obj.CategoryProperties),
209
216
  }))); };
210
217
  })(CreateCallAnalyticsCategoryResponse || (CreateCallAnalyticsCategoryResponse = {}));
211
- export var InternalFailureException;
212
- (function (InternalFailureException) {
213
- InternalFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
214
- })(InternalFailureException || (InternalFailureException = {}));
215
- export var LimitExceededException;
216
- (function (LimitExceededException) {
217
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
218
- })(LimitExceededException || (LimitExceededException = {}));
219
218
  export var InputDataConfig;
220
219
  (function (InputDataConfig) {
221
220
  InputDataConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -276,10 +275,6 @@ export var DeleteCallAnalyticsCategoryResponse;
276
275
  (function (DeleteCallAnalyticsCategoryResponse) {
277
276
  DeleteCallAnalyticsCategoryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
277
  })(DeleteCallAnalyticsCategoryResponse || (DeleteCallAnalyticsCategoryResponse = {}));
279
- export var NotFoundException;
280
- (function (NotFoundException) {
281
- NotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
282
- })(NotFoundException || (NotFoundException = {}));
283
278
  export var DeleteCallAnalyticsJobRequest;
284
279
  (function (DeleteCallAnalyticsJobRequest) {
285
280
  DeleteCallAnalyticsJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -3574,7 +3574,10 @@ var serializeAws_json1_1ChannelDefinitions = function (input, context) {
3574
3574
  });
3575
3575
  };
3576
3576
  var serializeAws_json1_1ContentRedaction = function (input, context) {
3577
- return __assign(__assign({}, (input.RedactionOutput !== undefined &&
3577
+ return __assign(__assign(__assign({}, (input.PiiEntityTypes !== undefined &&
3578
+ input.PiiEntityTypes !== null && {
3579
+ PiiEntityTypes: serializeAws_json1_1PiiEntityTypes(input.PiiEntityTypes, context),
3580
+ })), (input.RedactionOutput !== undefined &&
3578
3581
  input.RedactionOutput !== null && { RedactionOutput: input.RedactionOutput })), (input.RedactionType !== undefined && input.RedactionType !== null && { RedactionType: input.RedactionType }));
3579
3582
  };
3580
3583
  var serializeAws_json1_1CreateCallAnalyticsCategoryRequest = function (input, context) {
@@ -3786,6 +3789,16 @@ var serializeAws_json1_1Phrases = function (input, context) {
3786
3789
  return entry;
3787
3790
  });
3788
3791
  };
3792
+ var serializeAws_json1_1PiiEntityTypes = function (input, context) {
3793
+ return input
3794
+ .filter(function (e) { return e != null; })
3795
+ .map(function (entry) {
3796
+ if (entry === null) {
3797
+ return null;
3798
+ }
3799
+ return entry;
3800
+ });
3801
+ };
3789
3802
  var serializeAws_json1_1RelativeTimeRange = function (input, context) {
3790
3803
  return __assign(__assign(__assign(__assign({}, (input.EndPercentage !== undefined && input.EndPercentage !== null && { EndPercentage: input.EndPercentage })), (input.First !== undefined && input.First !== null && { First: input.First })), (input.Last !== undefined && input.Last !== null && { Last: input.Last })), (input.StartPercentage !== undefined &&
3791
3804
  input.StartPercentage !== null && { StartPercentage: input.StartPercentage }));
@@ -4131,6 +4144,9 @@ var deserializeAws_json1_1ConflictException = function (output, context) {
4131
4144
  };
4132
4145
  var deserializeAws_json1_1ContentRedaction = function (output, context) {
4133
4146
  return {
4147
+ PiiEntityTypes: output.PiiEntityTypes !== undefined && output.PiiEntityTypes !== null
4148
+ ? deserializeAws_json1_1PiiEntityTypes(output.PiiEntityTypes, context)
4149
+ : undefined,
4134
4150
  RedactionOutput: __expectString(output.RedactionOutput),
4135
4151
  RedactionType: __expectString(output.RedactionType),
4136
4152
  };
@@ -4536,6 +4552,16 @@ var deserializeAws_json1_1NotFoundException = function (output, context) {
4536
4552
  Message: __expectString(output.Message),
4537
4553
  };
4538
4554
  };
4555
+ var deserializeAws_json1_1PiiEntityTypes = function (output, context) {
4556
+ return (output || [])
4557
+ .filter(function (e) { return e != null; })
4558
+ .map(function (entry) {
4559
+ if (entry === null) {
4560
+ return null;
4561
+ }
4562
+ return __expectString(entry);
4563
+ });
4564
+ };
4539
4565
  var deserializeAws_json1_1RelativeTimeRange = function (output, context) {
4540
4566
  return {
4541
4567
  EndPercentage: __expectInt32(output.EndPercentage),
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,19 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
28
  };