@aws-sdk/client-voice-id 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultVoiceIDHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2021-09-27",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_0Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.voiceid",
30
+ errorTypeRegistries,
29
31
  version: "2021-09-27",
30
32
  serviceTarget: "VoiceID",
31
33
  },
@@ -135,8 +135,8 @@ const _RC = "RegistrationConfig";
135
135
  const _RD = "RiskDetails";
136
136
  const _RNFE = "ResourceNotFoundException";
137
137
  const _RS = "RiskScore";
138
- const _RT = "RiskThreshold";
139
- const _RTe = "ResourceType";
138
+ const _RT = "ResourceType";
139
+ const _RTi = "RiskThreshold";
140
140
  const _S = "Score";
141
141
  const _SC = "StatusCode";
142
142
  const _SEJ = "SpeakerEnrollmentJob";
@@ -197,12 +197,62 @@ const _WSa = "WatchlistSummary";
197
197
  const _c = "client";
198
198
  const _e = "error";
199
199
  const _hE = "httpError";
200
- const _s = "server";
201
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.voiceid";
200
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.voiceid";
201
+ const _se = "server";
202
202
  const n0 = "com.amazonaws.voiceid";
203
203
  import { TypeRegistry } from "@smithy/core/schema";
204
204
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
205
205
  import { VoiceIDServiceException } from "../models/VoiceIDServiceException";
206
+ const _s_registry = TypeRegistry.for(_s);
207
+ export var VoiceIDServiceException$ = [-3, _s, "VoiceIDServiceException", 0, [], []];
208
+ _s_registry.registerError(VoiceIDServiceException$, VoiceIDServiceException);
209
+ const n0_registry = TypeRegistry.for(n0);
210
+ export var AccessDeniedException$ = [-3, n0, _ADE,
211
+ { [_e]: _c, [_hE]: 403 },
212
+ [_M],
213
+ [0]
214
+ ];
215
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
216
+ export var ConflictException$ = [-3, n0, _CE,
217
+ { [_e]: _c, [_hE]: 409 },
218
+ [_M, _CT],
219
+ [0, 0]
220
+ ];
221
+ n0_registry.registerError(ConflictException$, ConflictException);
222
+ export var InternalServerException$ = [-3, n0, _ISE,
223
+ { [_e]: _se, [_hE]: 500 },
224
+ [_M],
225
+ [0]
226
+ ];
227
+ n0_registry.registerError(InternalServerException$, InternalServerException);
228
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
229
+ { [_e]: _c, [_hE]: 404 },
230
+ [_M, _RT],
231
+ [0, 0]
232
+ ];
233
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
234
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
235
+ { [_e]: _c, [_hE]: 402 },
236
+ [_M],
237
+ [0]
238
+ ];
239
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
240
+ export var ThrottlingException$ = [-3, n0, _TE,
241
+ { [_e]: _c, [_hE]: 429 },
242
+ [_M],
243
+ [0]
244
+ ];
245
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
246
+ export var ValidationException$ = [-3, n0, _VE,
247
+ { [_e]: _c, [_hE]: 400 },
248
+ [_M],
249
+ [0]
250
+ ];
251
+ n0_registry.registerError(ValidationException$, ValidationException);
252
+ export const errorTypeRegistries = [
253
+ _s_registry,
254
+ n0_registry,
255
+ ];
206
256
  var CustomerSpeakerId = [0, n0, _CSI, 8, 0];
207
257
  var Description = [0, n0, _D, 8, 0];
208
258
  var DomainName = [0, n0, _DN, 8, 0];
@@ -213,12 +263,6 @@ var TagKey = [0, n0, _TK, 8, 0];
213
263
  var TagValue = [0, n0, _TV, 8, 0];
214
264
  var WatchlistDescription = [0, n0, _WD, 8, 0];
215
265
  var WatchlistName = [0, n0, _WN, 8, 0];
216
- export var AccessDeniedException$ = [-3, n0, _ADE,
217
- { [_e]: _c, [_hE]: 403 },
218
- [_M],
219
- [0]
220
- ];
221
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
222
266
  export var AssociateFraudsterRequest$ = [3, n0, _AFR,
223
267
  0,
224
268
  [_DI, _WI, _FI],
@@ -239,12 +283,6 @@ export var AuthenticationResult$ = [3, n0, _AR,
239
283
  [_ARI, _AASA, _AAEA, _CSI, _GSI, _De, _S, _C],
240
284
  [0, 4, 4, [() => CustomerSpeakerId, 0], 0, 0, 1, () => AuthenticationConfiguration$]
241
285
  ];
242
- export var ConflictException$ = [-3, n0, _CE,
243
- { [_e]: _c, [_hE]: 409 },
244
- [_M, _CT],
245
- [0, 0]
246
- ];
247
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
248
286
  export var CreateDomainRequest$ = [3, n0, _CDR,
249
287
  0,
250
288
  [_N, _SSEC, _D, _CTl, _T],
@@ -372,7 +410,7 @@ export var EnrollmentConfig$ = [3, n0, _EC,
372
410
  ];
373
411
  export var EnrollmentJobFraudDetectionConfig$ = [3, n0, _EJFDC,
374
412
  0,
375
- [_FDA, _RT, _WIa],
413
+ [_FDA, _RTi, _WIa],
376
414
  [0, 1, 64 | 0]
377
415
  ];
378
416
  export var EvaluateSessionRequest$ = [3, n0, _ESR,
@@ -392,7 +430,7 @@ export var FailureDetails$ = [3, n0, _FD,
392
430
  ];
393
431
  export var FraudDetectionConfiguration$ = [3, n0, _FDCr,
394
432
  0,
395
- [_RT, _WI],
433
+ [_RTi, _WI],
396
434
  [1, 0]
397
435
  ];
398
436
  export var FraudDetectionResult$ = [3, n0, _FDR,
@@ -430,12 +468,6 @@ export var InputDataConfig$ = [3, n0, _IDC,
430
468
  [_SU],
431
469
  [0], 1
432
470
  ];
433
- export var InternalServerException$ = [-3, n0, _ISE,
434
- { [_e]: _s, [_hE]: 500 },
435
- [_M],
436
- [0]
437
- ];
438
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
439
471
  export var JobProgress$ = [3, n0, _JP,
440
472
  0,
441
473
  [_PC],
@@ -536,12 +568,6 @@ export var RegistrationConfig$ = [3, n0, _RC,
536
568
  [_DRA, _FST, _WIa],
537
569
  [0, 1, 64 | 0]
538
570
  ];
539
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
540
- { [_e]: _c, [_hE]: 404 },
541
- [_M, _RTe],
542
- [0, 0]
543
- ];
544
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
545
571
  export var ServerSideEncryptionConfiguration$ = [3, n0, _SSEC,
546
572
  0,
547
573
  [_KKI],
@@ -552,12 +578,6 @@ export var ServerSideEncryptionUpdateDetails$ = [3, n0, _SSEUD,
552
578
  [_OKKI, _US, _M],
553
579
  [0, 0, 0]
554
580
  ];
555
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
556
- { [_e]: _c, [_hE]: 402 },
557
- [_M],
558
- [0]
559
- ];
560
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
561
581
  export var Speaker$ = [3, n0, _Sp,
562
582
  0,
563
583
  [_DI, _CSI, _GSI, _St, _CA, _UA, _LAA],
@@ -613,12 +633,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
613
633
  [],
614
634
  []
615
635
  ];
616
- export var ThrottlingException$ = [-3, n0, _TE,
617
- { [_e]: _c, [_hE]: 429 },
618
- [_M],
619
- [0]
620
- ];
621
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
622
636
  export var UntagResourceRequest$ = [3, n0, _URR,
623
637
  0,
624
638
  [_RA, _TKa],
@@ -649,12 +663,6 @@ export var UpdateWatchlistResponse$ = [3, n0, _UWRp,
649
663
  [_W],
650
664
  [[() => Watchlist$, 0]]
651
665
  ];
652
- export var ValidationException$ = [-3, n0, _VE,
653
- { [_e]: _c, [_hE]: 400 },
654
- [_M],
655
- [0]
656
- ];
657
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
658
666
  export var VoiceSpoofingRisk$ = [3, n0, _VSR,
659
667
  0,
660
668
  [_RS],
@@ -676,8 +684,6 @@ export var WatchlistSummary$ = [3, n0, _WSa,
676
684
  [0, 0, [() => WatchlistName, 0], [() => WatchlistDescription, 0], 2, 4, 4]
677
685
  ];
678
686
  var __Unit = "unit";
679
- export var VoiceIDServiceException$ = [-3, _sm, "VoiceIDServiceException", 0, [], []];
680
- TypeRegistry.for(_sm).registerError(VoiceIDServiceException$, VoiceIDServiceException);
681
687
  var DomainSummaries = [1, n0, _DSom,
682
688
  0, [() => DomainSummary$,
683
689
  0]
@@ -1,10 +1,23 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var VoiceIDServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
3
17
  export declare var AssociateFraudsterRequest$: StaticStructureSchema;
4
18
  export declare var AssociateFraudsterResponse$: StaticStructureSchema;
5
19
  export declare var AuthenticationConfiguration$: StaticStructureSchema;
6
20
  export declare var AuthenticationResult$: StaticStructureSchema;
7
- export declare var ConflictException$: StaticErrorSchema;
8
21
  export declare var CreateDomainRequest$: StaticStructureSchema;
9
22
  export declare var CreateDomainResponse$: StaticStructureSchema;
10
23
  export declare var CreateWatchlistRequest$: StaticStructureSchema;
@@ -42,7 +55,6 @@ export declare var FraudsterRegistrationJob$: StaticStructureSchema;
42
55
  export declare var FraudsterRegistrationJobSummary$: StaticStructureSchema;
43
56
  export declare var FraudsterSummary$: StaticStructureSchema;
44
57
  export declare var InputDataConfig$: StaticStructureSchema;
45
- export declare var InternalServerException$: StaticErrorSchema;
46
58
  export declare var JobProgress$: StaticStructureSchema;
47
59
  export declare var KnownFraudsterRisk$: StaticStructureSchema;
48
60
  export declare var ListDomainsRequest$: StaticStructureSchema;
@@ -63,10 +75,8 @@ export declare var OptOutSpeakerRequest$: StaticStructureSchema;
63
75
  export declare var OptOutSpeakerResponse$: StaticStructureSchema;
64
76
  export declare var OutputDataConfig$: StaticStructureSchema;
65
77
  export declare var RegistrationConfig$: StaticStructureSchema;
66
- export declare var ResourceNotFoundException$: StaticErrorSchema;
67
78
  export declare var ServerSideEncryptionConfiguration$: StaticStructureSchema;
68
79
  export declare var ServerSideEncryptionUpdateDetails$: StaticStructureSchema;
69
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
70
80
  export declare var Speaker$: StaticStructureSchema;
71
81
  export declare var SpeakerEnrollmentJob$: StaticStructureSchema;
72
82
  export declare var SpeakerEnrollmentJobSummary$: StaticStructureSchema;
@@ -78,19 +88,16 @@ export declare var StartSpeakerEnrollmentJobResponse$: StaticStructureSchema;
78
88
  export declare var Tag$: StaticStructureSchema;
79
89
  export declare var TagResourceRequest$: StaticStructureSchema;
80
90
  export declare var TagResourceResponse$: StaticStructureSchema;
81
- export declare var ThrottlingException$: StaticErrorSchema;
82
91
  export declare var UntagResourceRequest$: StaticStructureSchema;
83
92
  export declare var UntagResourceResponse$: StaticStructureSchema;
84
93
  export declare var UpdateDomainRequest$: StaticStructureSchema;
85
94
  export declare var UpdateDomainResponse$: StaticStructureSchema;
86
95
  export declare var UpdateWatchlistRequest$: StaticStructureSchema;
87
96
  export declare var UpdateWatchlistResponse$: StaticStructureSchema;
88
- export declare var ValidationException$: StaticErrorSchema;
89
97
  export declare var VoiceSpoofingRisk$: StaticStructureSchema;
90
98
  export declare var Watchlist$: StaticStructureSchema;
91
99
  export declare var WatchlistDetails$: StaticStructureSchema;
92
100
  export declare var WatchlistSummary$: StaticStructureSchema;
93
- export declare var VoiceIDServiceException$: StaticErrorSchema;
94
101
  export declare var AssociateFraudster$: StaticOperationSchema;
95
102
  export declare var CreateDomain$: StaticOperationSchema;
96
103
  export declare var CreateWatchlist$: StaticOperationSchema;
@@ -1,14 +1,22 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var VoiceIDServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
7
16
  export declare var AssociateFraudsterRequest$: StaticStructureSchema;
8
17
  export declare var AssociateFraudsterResponse$: StaticStructureSchema;
9
18
  export declare var AuthenticationConfiguration$: StaticStructureSchema;
10
19
  export declare var AuthenticationResult$: StaticStructureSchema;
11
- export declare var ConflictException$: StaticErrorSchema;
12
20
  export declare var CreateDomainRequest$: StaticStructureSchema;
13
21
  export declare var CreateDomainResponse$: StaticStructureSchema;
14
22
  export declare var CreateWatchlistRequest$: StaticStructureSchema;
@@ -46,7 +54,6 @@ export declare var FraudsterRegistrationJob$: StaticStructureSchema;
46
54
  export declare var FraudsterRegistrationJobSummary$: StaticStructureSchema;
47
55
  export declare var FraudsterSummary$: StaticStructureSchema;
48
56
  export declare var InputDataConfig$: StaticStructureSchema;
49
- export declare var InternalServerException$: StaticErrorSchema;
50
57
  export declare var JobProgress$: StaticStructureSchema;
51
58
  export declare var KnownFraudsterRisk$: StaticStructureSchema;
52
59
  export declare var ListDomainsRequest$: StaticStructureSchema;
@@ -67,10 +74,8 @@ export declare var OptOutSpeakerRequest$: StaticStructureSchema;
67
74
  export declare var OptOutSpeakerResponse$: StaticStructureSchema;
68
75
  export declare var OutputDataConfig$: StaticStructureSchema;
69
76
  export declare var RegistrationConfig$: StaticStructureSchema;
70
- export declare var ResourceNotFoundException$: StaticErrorSchema;
71
77
  export declare var ServerSideEncryptionConfiguration$: StaticStructureSchema;
72
78
  export declare var ServerSideEncryptionUpdateDetails$: StaticStructureSchema;
73
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
74
79
  export declare var Speaker$: StaticStructureSchema;
75
80
  export declare var SpeakerEnrollmentJob$: StaticStructureSchema;
76
81
  export declare var SpeakerEnrollmentJobSummary$: StaticStructureSchema;
@@ -82,19 +87,16 @@ export declare var StartSpeakerEnrollmentJobResponse$: StaticStructureSchema;
82
87
  export declare var Tag$: StaticStructureSchema;
83
88
  export declare var TagResourceRequest$: StaticStructureSchema;
84
89
  export declare var TagResourceResponse$: StaticStructureSchema;
85
- export declare var ThrottlingException$: StaticErrorSchema;
86
90
  export declare var UntagResourceRequest$: StaticStructureSchema;
87
91
  export declare var UntagResourceResponse$: StaticStructureSchema;
88
92
  export declare var UpdateDomainRequest$: StaticStructureSchema;
89
93
  export declare var UpdateDomainResponse$: StaticStructureSchema;
90
94
  export declare var UpdateWatchlistRequest$: StaticStructureSchema;
91
95
  export declare var UpdateWatchlistResponse$: StaticStructureSchema;
92
- export declare var ValidationException$: StaticErrorSchema;
93
96
  export declare var VoiceSpoofingRisk$: StaticStructureSchema;
94
97
  export declare var Watchlist$: StaticStructureSchema;
95
98
  export declare var WatchlistDetails$: StaticStructureSchema;
96
99
  export declare var WatchlistSummary$: StaticStructureSchema;
97
- export declare var VoiceIDServiceException$: StaticErrorSchema;
98
100
  export declare var AssociateFraudster$: StaticOperationSchema;
99
101
  export declare var CreateDomain$: StaticOperationSchema;
100
102
  export declare var CreateWatchlist$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-voice-id",
3
3
  "description": "AWS SDK for JavaScript Voice Id Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-voice-id",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",