@aws-sdk/client-voice-id 3.934.0 → 3.936.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.
package/dist-cjs/index.js CHANGED
@@ -131,18 +131,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends VoiceIDService
131
131
  this.Message = opts.Message;
132
132
  }
133
133
  };
134
- const ConflictType = {
135
- ANOTHER_ACTIVE_STREAM: "ANOTHER_ACTIVE_STREAM",
136
- CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT",
137
- CANNOT_DELETE_NON_EMPTY_WATCHLIST: "CANNOT_DELETE_NON_EMPTY_WATCHLIST",
138
- CONCURRENT_CHANGES: "CONCURRENT_CHANGES",
139
- DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES: "DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES",
140
- DOMAIN_NOT_ACTIVE: "DOMAIN_NOT_ACTIVE",
141
- ENROLLMENT_ALREADY_EXISTS: "ENROLLMENT_ALREADY_EXISTS",
142
- FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST: "FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST",
143
- SPEAKER_NOT_SET: "SPEAKER_NOT_SET",
144
- SPEAKER_OPTED_OUT: "SPEAKER_OPTED_OUT",
145
- };
146
134
  let ConflictException$1 = class ConflictException extends VoiceIDServiceException$1 {
147
135
  name = "ConflictException";
148
136
  $fault = "client";
@@ -173,15 +161,6 @@ let InternalServerException$1 = class InternalServerException extends VoiceIDSer
173
161
  this.Message = opts.Message;
174
162
  }
175
163
  };
176
- const ResourceType = {
177
- BATCH_JOB: "BATCH_JOB",
178
- COMPLIANCE_CONSENT: "COMPLIANCE_CONSENT",
179
- DOMAIN: "DOMAIN",
180
- FRAUDSTER: "FRAUDSTER",
181
- SESSION: "SESSION",
182
- SPEAKER: "SPEAKER",
183
- WATCHLIST: "WATCHLIST",
184
- };
185
164
  let ResourceNotFoundException$1 = class ResourceNotFoundException extends VoiceIDServiceException$1 {
186
165
  name = "ResourceNotFoundException";
187
166
  $fault = "client";
@@ -240,71 +219,6 @@ let ValidationException$1 = class ValidationException extends VoiceIDServiceExce
240
219
  this.Message = opts.Message;
241
220
  }
242
221
  };
243
- const AuthenticationDecision = {
244
- ACCEPT: "ACCEPT",
245
- NOT_ENOUGH_SPEECH: "NOT_ENOUGH_SPEECH",
246
- REJECT: "REJECT",
247
- SPEAKER_EXPIRED: "SPEAKER_EXPIRED",
248
- SPEAKER_ID_NOT_PROVIDED: "SPEAKER_ID_NOT_PROVIDED",
249
- SPEAKER_NOT_ENROLLED: "SPEAKER_NOT_ENROLLED",
250
- SPEAKER_OPTED_OUT: "SPEAKER_OPTED_OUT",
251
- };
252
- const DomainStatus = {
253
- ACTIVE: "ACTIVE",
254
- PENDING: "PENDING",
255
- SUSPENDED: "SUSPENDED",
256
- };
257
- const ServerSideEncryptionUpdateStatus = {
258
- COMPLETED: "COMPLETED",
259
- FAILED: "FAILED",
260
- IN_PROGRESS: "IN_PROGRESS",
261
- };
262
- const FraudsterRegistrationJobStatus = {
263
- COMPLETED: "COMPLETED",
264
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
265
- FAILED: "FAILED",
266
- IN_PROGRESS: "IN_PROGRESS",
267
- SUBMITTED: "SUBMITTED",
268
- };
269
- const DuplicateRegistrationAction = {
270
- REGISTER_AS_NEW: "REGISTER_AS_NEW",
271
- SKIP: "SKIP",
272
- };
273
- const SpeakerStatus = {
274
- ENROLLED: "ENROLLED",
275
- EXPIRED: "EXPIRED",
276
- OPTED_OUT: "OPTED_OUT",
277
- PENDING: "PENDING",
278
- };
279
- const ExistingEnrollmentAction = {
280
- OVERWRITE: "OVERWRITE",
281
- SKIP: "SKIP",
282
- };
283
- const FraudDetectionAction = {
284
- FAIL: "FAIL",
285
- IGNORE: "IGNORE",
286
- };
287
- const SpeakerEnrollmentJobStatus = {
288
- COMPLETED: "COMPLETED",
289
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
290
- FAILED: "FAILED",
291
- IN_PROGRESS: "IN_PROGRESS",
292
- SUBMITTED: "SUBMITTED",
293
- };
294
- const FraudDetectionDecision = {
295
- HIGH_RISK: "HIGH_RISK",
296
- LOW_RISK: "LOW_RISK",
297
- NOT_ENOUGH_SPEECH: "NOT_ENOUGH_SPEECH",
298
- };
299
- const FraudDetectionReason = {
300
- KNOWN_FRAUDSTER: "KNOWN_FRAUDSTER",
301
- VOICE_SPOOFING: "VOICE_SPOOFING",
302
- };
303
- const StreamingStatus = {
304
- ENDED: "ENDED",
305
- ONGOING: "ONGOING",
306
- PENDING_CONFIGURATION: "PENDING_CONFIGURATION",
307
- };
308
222
 
309
223
  const _A = "Arn";
310
224
  const _AAEA = "AudioAggregationEndedAt";
@@ -1588,9 +1502,7 @@ Object.defineProperty(exports, "__Client", {
1588
1502
  });
1589
1503
  exports.AccessDeniedException = AccessDeniedException$1;
1590
1504
  exports.AssociateFraudsterCommand = AssociateFraudsterCommand;
1591
- exports.AuthenticationDecision = AuthenticationDecision;
1592
1505
  exports.ConflictException = ConflictException$1;
1593
- exports.ConflictType = ConflictType;
1594
1506
  exports.CreateDomainCommand = CreateDomainCommand;
1595
1507
  exports.CreateWatchlistCommand = CreateWatchlistCommand;
1596
1508
  exports.DeleteDomainCommand = DeleteDomainCommand;
@@ -1604,14 +1516,7 @@ exports.DescribeSpeakerCommand = DescribeSpeakerCommand;
1604
1516
  exports.DescribeSpeakerEnrollmentJobCommand = DescribeSpeakerEnrollmentJobCommand;
1605
1517
  exports.DescribeWatchlistCommand = DescribeWatchlistCommand;
1606
1518
  exports.DisassociateFraudsterCommand = DisassociateFraudsterCommand;
1607
- exports.DomainStatus = DomainStatus;
1608
- exports.DuplicateRegistrationAction = DuplicateRegistrationAction;
1609
1519
  exports.EvaluateSessionCommand = EvaluateSessionCommand;
1610
- exports.ExistingEnrollmentAction = ExistingEnrollmentAction;
1611
- exports.FraudDetectionAction = FraudDetectionAction;
1612
- exports.FraudDetectionDecision = FraudDetectionDecision;
1613
- exports.FraudDetectionReason = FraudDetectionReason;
1614
- exports.FraudsterRegistrationJobStatus = FraudsterRegistrationJobStatus;
1615
1520
  exports.InternalServerException = InternalServerException$1;
1616
1521
  exports.ListDomainsCommand = ListDomainsCommand;
1617
1522
  exports.ListFraudsterRegistrationJobsCommand = ListFraudsterRegistrationJobsCommand;
@@ -1622,14 +1527,9 @@ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1622
1527
  exports.ListWatchlistsCommand = ListWatchlistsCommand;
1623
1528
  exports.OptOutSpeakerCommand = OptOutSpeakerCommand;
1624
1529
  exports.ResourceNotFoundException = ResourceNotFoundException$1;
1625
- exports.ResourceType = ResourceType;
1626
- exports.ServerSideEncryptionUpdateStatus = ServerSideEncryptionUpdateStatus;
1627
1530
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1628
- exports.SpeakerEnrollmentJobStatus = SpeakerEnrollmentJobStatus;
1629
- exports.SpeakerStatus = SpeakerStatus;
1630
1531
  exports.StartFraudsterRegistrationJobCommand = StartFraudsterRegistrationJobCommand;
1631
1532
  exports.StartSpeakerEnrollmentJobCommand = StartSpeakerEnrollmentJobCommand;
1632
- exports.StreamingStatus = StreamingStatus;
1633
1533
  exports.TagResourceCommand = TagResourceCommand;
1634
1534
  exports.ThrottlingException = ThrottlingException$1;
1635
1535
  exports.UntagResourceCommand = UntagResourceCommand;
package/dist-es/index.js CHANGED
@@ -2,5 +2,5 @@ export * from "./VoiceIDClient";
2
2
  export * from "./VoiceID";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/errors";
6
6
  export { VoiceIDServiceException } from "./models/VoiceIDServiceException";
@@ -0,0 +1,103 @@
1
+ import { VoiceIDServiceException as __BaseException } from "./VoiceIDServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class ConflictException extends __BaseException {
17
+ name = "ConflictException";
18
+ $fault = "client";
19
+ Message;
20
+ ConflictType;
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ this.Message = opts.Message;
29
+ this.ConflictType = opts.ConflictType;
30
+ }
31
+ }
32
+ export class InternalServerException extends __BaseException {
33
+ name = "InternalServerException";
34
+ $fault = "server";
35
+ Message;
36
+ constructor(opts) {
37
+ super({
38
+ name: "InternalServerException",
39
+ $fault: "server",
40
+ ...opts,
41
+ });
42
+ Object.setPrototypeOf(this, InternalServerException.prototype);
43
+ this.Message = opts.Message;
44
+ }
45
+ }
46
+ export class ResourceNotFoundException extends __BaseException {
47
+ name = "ResourceNotFoundException";
48
+ $fault = "client";
49
+ Message;
50
+ ResourceType;
51
+ constructor(opts) {
52
+ super({
53
+ name: "ResourceNotFoundException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
58
+ this.Message = opts.Message;
59
+ this.ResourceType = opts.ResourceType;
60
+ }
61
+ }
62
+ export class ServiceQuotaExceededException extends __BaseException {
63
+ name = "ServiceQuotaExceededException";
64
+ $fault = "client";
65
+ Message;
66
+ constructor(opts) {
67
+ super({
68
+ name: "ServiceQuotaExceededException",
69
+ $fault: "client",
70
+ ...opts,
71
+ });
72
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
73
+ this.Message = opts.Message;
74
+ }
75
+ }
76
+ export class ThrottlingException extends __BaseException {
77
+ name = "ThrottlingException";
78
+ $fault = "client";
79
+ Message;
80
+ constructor(opts) {
81
+ super({
82
+ name: "ThrottlingException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
87
+ this.Message = opts.Message;
88
+ }
89
+ }
90
+ export class ValidationException extends __BaseException {
91
+ name = "ValidationException";
92
+ $fault = "client";
93
+ Message;
94
+ constructor(opts) {
95
+ super({
96
+ name: "ValidationException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ Object.setPrototypeOf(this, ValidationException.prototype);
101
+ this.Message = opts.Message;
102
+ }
103
+ }
@@ -1,18 +1,3 @@
1
- import { VoiceIDServiceException as __BaseException } from "./VoiceIDServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "AccessDeniedException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- }
16
1
  export const ConflictType = {
17
2
  ANOTHER_ACTIVE_STREAM: "ANOTHER_ACTIVE_STREAM",
18
3
  CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT",
@@ -25,36 +10,6 @@ export const ConflictType = {
25
10
  SPEAKER_NOT_SET: "SPEAKER_NOT_SET",
26
11
  SPEAKER_OPTED_OUT: "SPEAKER_OPTED_OUT",
27
12
  };
28
- export class ConflictException extends __BaseException {
29
- name = "ConflictException";
30
- $fault = "client";
31
- Message;
32
- ConflictType;
33
- constructor(opts) {
34
- super({
35
- name: "ConflictException",
36
- $fault: "client",
37
- ...opts,
38
- });
39
- Object.setPrototypeOf(this, ConflictException.prototype);
40
- this.Message = opts.Message;
41
- this.ConflictType = opts.ConflictType;
42
- }
43
- }
44
- export class InternalServerException extends __BaseException {
45
- name = "InternalServerException";
46
- $fault = "server";
47
- Message;
48
- constructor(opts) {
49
- super({
50
- name: "InternalServerException",
51
- $fault: "server",
52
- ...opts,
53
- });
54
- Object.setPrototypeOf(this, InternalServerException.prototype);
55
- this.Message = opts.Message;
56
- }
57
- }
58
13
  export const ResourceType = {
59
14
  BATCH_JOB: "BATCH_JOB",
60
15
  COMPLIANCE_CONSENT: "COMPLIANCE_CONSENT",
@@ -64,64 +19,6 @@ export const ResourceType = {
64
19
  SPEAKER: "SPEAKER",
65
20
  WATCHLIST: "WATCHLIST",
66
21
  };
67
- export class ResourceNotFoundException extends __BaseException {
68
- name = "ResourceNotFoundException";
69
- $fault = "client";
70
- Message;
71
- ResourceType;
72
- constructor(opts) {
73
- super({
74
- name: "ResourceNotFoundException",
75
- $fault: "client",
76
- ...opts,
77
- });
78
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
79
- this.Message = opts.Message;
80
- this.ResourceType = opts.ResourceType;
81
- }
82
- }
83
- export class ServiceQuotaExceededException extends __BaseException {
84
- name = "ServiceQuotaExceededException";
85
- $fault = "client";
86
- Message;
87
- constructor(opts) {
88
- super({
89
- name: "ServiceQuotaExceededException",
90
- $fault: "client",
91
- ...opts,
92
- });
93
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
94
- this.Message = opts.Message;
95
- }
96
- }
97
- export class ThrottlingException extends __BaseException {
98
- name = "ThrottlingException";
99
- $fault = "client";
100
- Message;
101
- constructor(opts) {
102
- super({
103
- name: "ThrottlingException",
104
- $fault: "client",
105
- ...opts,
106
- });
107
- Object.setPrototypeOf(this, ThrottlingException.prototype);
108
- this.Message = opts.Message;
109
- }
110
- }
111
- export class ValidationException extends __BaseException {
112
- name = "ValidationException";
113
- $fault = "client";
114
- Message;
115
- constructor(opts) {
116
- super({
117
- name: "ValidationException",
118
- $fault: "client",
119
- ...opts,
120
- });
121
- Object.setPrototypeOf(this, ValidationException.prototype);
122
- this.Message = opts.Message;
123
- }
124
- }
125
22
  export const AuthenticationDecision = {
126
23
  ACCEPT: "ACCEPT",
127
24
  NOT_ENOUGH_SPEECH: "NOT_ENOUGH_SPEECH",
@@ -201,7 +201,7 @@ const _s = "server";
201
201
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.voiceid";
202
202
  const n0 = "com.amazonaws.voiceid";
203
203
  import { TypeRegistry } from "@smithy/core/schema";
204
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
204
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
205
205
  import { VoiceIDServiceException as __VoiceIDServiceException } from "../models/VoiceIDServiceException";
206
206
  export var CustomerSpeakerId = [0, n0, _CSI, 8, 0];
207
207
  export var Description = [0, n0, _D, 8, 0];
@@ -11,5 +11,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
11
11
  export type { VoiceIDExtensionConfiguration } from "./extensionConfiguration";
12
12
  export * from "./commands";
13
13
  export * from "./pagination";
14
- export * from "./models";
14
+ export * from "./models/errors";
15
+ export type * from "./models/models_0";
15
16
  export { VoiceIDServiceException } from "./models/VoiceIDServiceException";
@@ -0,0 +1,145 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ConflictType, ResourceType } from "./models_0";
3
+ import { VoiceIDServiceException as __BaseException } from "./VoiceIDServiceException";
4
+ /**
5
+ * <p>You do not have sufficient permissions to perform this action. Check the error message
6
+ * and try again.</p>
7
+ * @public
8
+ */
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
12
+ Message?: string | undefined;
13
+ /**
14
+ * @internal
15
+ */
16
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
17
+ }
18
+ /**
19
+ * <p>The request failed due to a conflict. Check the <code>ConflictType</code> and error
20
+ * message for more details.</p>
21
+ * @public
22
+ */
23
+ export declare class ConflictException extends __BaseException {
24
+ readonly name: "ConflictException";
25
+ readonly $fault: "client";
26
+ Message?: string | undefined;
27
+ /**
28
+ * <p>The type of conflict which caused a ConflictException. Possible types and the
29
+ * corresponding error messages are as follows:</p>
30
+ * <ul>
31
+ * <li>
32
+ * <p>
33
+ * <code>DOMAIN_NOT_ACTIVE</code>: The domain is not active.</p>
34
+ * </li>
35
+ * <li>
36
+ * <p>
37
+ * <code>CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT</code>: You cannot change the
38
+ * speaker ID after an enrollment has been requested.</p>
39
+ * </li>
40
+ * <li>
41
+ * <p>
42
+ * <code>ENROLLMENT_ALREADY_EXISTS</code>: There is already an enrollment for
43
+ * this session.</p>
44
+ * </li>
45
+ * <li>
46
+ * <p>
47
+ * <code>SPEAKER_NOT_SET</code>: You must set the speaker ID before requesting an
48
+ * enrollment.</p>
49
+ * </li>
50
+ * <li>
51
+ * <p>
52
+ * <code>SPEAKER_OPTED_OUT</code>: You cannot request an enrollment for an opted
53
+ * out speaker.</p>
54
+ * </li>
55
+ * <li>
56
+ * <p>
57
+ * <code>CONCURRENT_CHANGES</code>: The request could not be processed as the
58
+ * resource was modified by another request during execution.</p>
59
+ * </li>
60
+ * </ul>
61
+ * @public
62
+ */
63
+ ConflictType?: ConflictType | undefined;
64
+ /**
65
+ * @internal
66
+ */
67
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
68
+ }
69
+ /**
70
+ * <p>The request failed due to an unknown error on the server side.</p>
71
+ * @public
72
+ */
73
+ export declare class InternalServerException extends __BaseException {
74
+ readonly name: "InternalServerException";
75
+ readonly $fault: "server";
76
+ Message?: string | undefined;
77
+ /**
78
+ * @internal
79
+ */
80
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
81
+ }
82
+ /**
83
+ * <p>The specified resource cannot be found. Check the <code>ResourceType</code> and error
84
+ * message for more details.</p>
85
+ * @public
86
+ */
87
+ export declare class ResourceNotFoundException extends __BaseException {
88
+ readonly name: "ResourceNotFoundException";
89
+ readonly $fault: "client";
90
+ Message?: string | undefined;
91
+ /**
92
+ * <p>The type of resource which cannot not be found. Possible types are
93
+ * <code>BATCH_JOB</code>, <code>COMPLIANCE_CONSENT</code>, <code>DOMAIN</code>,
94
+ * <code>FRAUDSTER</code>, <code>SESSION</code> and <code>SPEAKER</code>.</p>
95
+ * @public
96
+ */
97
+ ResourceType?: ResourceType | undefined;
98
+ /**
99
+ * @internal
100
+ */
101
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
102
+ }
103
+ /**
104
+ * <p>The request exceeded the service quota. Refer to <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#voiceid-quotas">Voice ID Service Quotas</a> and try your request again.</p>
105
+ * @public
106
+ */
107
+ export declare class ServiceQuotaExceededException extends __BaseException {
108
+ readonly name: "ServiceQuotaExceededException";
109
+ readonly $fault: "client";
110
+ Message?: string | undefined;
111
+ /**
112
+ * @internal
113
+ */
114
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
115
+ }
116
+ /**
117
+ * <p>The request was denied due to request throttling. Please slow down your request rate.
118
+ * Refer to <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas">
119
+ * Amazon Connect Voice ID Service API throttling quotas </a> and try your
120
+ * request again.</p>
121
+ * @public
122
+ */
123
+ export declare class ThrottlingException extends __BaseException {
124
+ readonly name: "ThrottlingException";
125
+ readonly $fault: "client";
126
+ Message?: string | undefined;
127
+ /**
128
+ * @internal
129
+ */
130
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
131
+ }
132
+ /**
133
+ * <p>The request failed one or more validations; check the error message for more
134
+ * details.</p>
135
+ * @public
136
+ */
137
+ export declare class ValidationException extends __BaseException {
138
+ readonly name: "ValidationException";
139
+ readonly $fault: "client";
140
+ Message?: string | undefined;
141
+ /**
142
+ * @internal
143
+ */
144
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
145
+ }
@@ -1,19 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { VoiceIDServiceException as __BaseException } from "./VoiceIDServiceException";
3
- /**
4
- * <p>You do not have sufficient permissions to perform this action. Check the error message
5
- * and try again.</p>
6
- * @public
7
- */
8
- export declare class AccessDeniedException extends __BaseException {
9
- readonly name: "AccessDeniedException";
10
- readonly $fault: "client";
11
- Message?: string | undefined;
12
- /**
13
- * @internal
14
- */
15
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
- }
17
1
  /**
18
2
  * @public
19
3
  */
@@ -90,70 +74,6 @@ export declare const ConflictType: {
90
74
  * @public
91
75
  */
92
76
  export type ConflictType = (typeof ConflictType)[keyof typeof ConflictType];
93
- /**
94
- * <p>The request failed due to a conflict. Check the <code>ConflictType</code> and error
95
- * message for more details.</p>
96
- * @public
97
- */
98
- export declare class ConflictException extends __BaseException {
99
- readonly name: "ConflictException";
100
- readonly $fault: "client";
101
- Message?: string | undefined;
102
- /**
103
- * <p>The type of conflict which caused a ConflictException. Possible types and the
104
- * corresponding error messages are as follows:</p>
105
- * <ul>
106
- * <li>
107
- * <p>
108
- * <code>DOMAIN_NOT_ACTIVE</code>: The domain is not active.</p>
109
- * </li>
110
- * <li>
111
- * <p>
112
- * <code>CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT</code>: You cannot change the
113
- * speaker ID after an enrollment has been requested.</p>
114
- * </li>
115
- * <li>
116
- * <p>
117
- * <code>ENROLLMENT_ALREADY_EXISTS</code>: There is already an enrollment for
118
- * this session.</p>
119
- * </li>
120
- * <li>
121
- * <p>
122
- * <code>SPEAKER_NOT_SET</code>: You must set the speaker ID before requesting an
123
- * enrollment.</p>
124
- * </li>
125
- * <li>
126
- * <p>
127
- * <code>SPEAKER_OPTED_OUT</code>: You cannot request an enrollment for an opted
128
- * out speaker.</p>
129
- * </li>
130
- * <li>
131
- * <p>
132
- * <code>CONCURRENT_CHANGES</code>: The request could not be processed as the
133
- * resource was modified by another request during execution.</p>
134
- * </li>
135
- * </ul>
136
- * @public
137
- */
138
- ConflictType?: ConflictType | undefined;
139
- /**
140
- * @internal
141
- */
142
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
143
- }
144
- /**
145
- * <p>The request failed due to an unknown error on the server side.</p>
146
- * @public
147
- */
148
- export declare class InternalServerException extends __BaseException {
149
- readonly name: "InternalServerException";
150
- readonly $fault: "server";
151
- Message?: string | undefined;
152
- /**
153
- * @internal
154
- */
155
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
156
- }
157
77
  /**
158
78
  * @public
159
79
  * @enum
@@ -171,70 +91,6 @@ export declare const ResourceType: {
171
91
  * @public
172
92
  */
173
93
  export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
174
- /**
175
- * <p>The specified resource cannot be found. Check the <code>ResourceType</code> and error
176
- * message for more details.</p>
177
- * @public
178
- */
179
- export declare class ResourceNotFoundException extends __BaseException {
180
- readonly name: "ResourceNotFoundException";
181
- readonly $fault: "client";
182
- Message?: string | undefined;
183
- /**
184
- * <p>The type of resource which cannot not be found. Possible types are
185
- * <code>BATCH_JOB</code>, <code>COMPLIANCE_CONSENT</code>, <code>DOMAIN</code>,
186
- * <code>FRAUDSTER</code>, <code>SESSION</code> and <code>SPEAKER</code>.</p>
187
- * @public
188
- */
189
- ResourceType?: ResourceType | undefined;
190
- /**
191
- * @internal
192
- */
193
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
194
- }
195
- /**
196
- * <p>The request exceeded the service quota. Refer to <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#voiceid-quotas">Voice ID Service Quotas</a> and try your request again.</p>
197
- * @public
198
- */
199
- export declare class ServiceQuotaExceededException extends __BaseException {
200
- readonly name: "ServiceQuotaExceededException";
201
- readonly $fault: "client";
202
- Message?: string | undefined;
203
- /**
204
- * @internal
205
- */
206
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
207
- }
208
- /**
209
- * <p>The request was denied due to request throttling. Please slow down your request rate.
210
- * Refer to <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas">
211
- * Amazon Connect Voice ID Service API throttling quotas </a> and try your
212
- * request again.</p>
213
- * @public
214
- */
215
- export declare class ThrottlingException extends __BaseException {
216
- readonly name: "ThrottlingException";
217
- readonly $fault: "client";
218
- Message?: string | undefined;
219
- /**
220
- * @internal
221
- */
222
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
223
- }
224
- /**
225
- * <p>The request failed one or more validations; check the error message for more
226
- * details.</p>
227
- * @public
228
- */
229
- export declare class ValidationException extends __BaseException {
230
- readonly name: "ValidationException";
231
- readonly $fault: "client";
232
- Message?: string | undefined;
233
- /**
234
- * @internal
235
- */
236
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
237
- }
238
94
  /**
239
95
  * <p>The configuration used to authenticate a speaker during a session.</p>
240
96
  * @public
@@ -5,5 +5,6 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { VoiceIDExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
9
10
  export { VoiceIDServiceException } from "./models/VoiceIDServiceException";
@@ -0,0 +1,59 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ConflictType, ResourceType } from "./models_0";
3
+ import { VoiceIDServiceException as __BaseException } from "./VoiceIDServiceException";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
7
+ Message?: string | undefined;
8
+ constructor(
9
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
10
+ );
11
+ }
12
+ export declare class ConflictException extends __BaseException {
13
+ readonly name: "ConflictException";
14
+ readonly $fault: "client";
15
+ Message?: string | undefined;
16
+ ConflictType?: ConflictType | undefined;
17
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
18
+ }
19
+ export declare class InternalServerException extends __BaseException {
20
+ readonly name: "InternalServerException";
21
+ readonly $fault: "server";
22
+ Message?: string | undefined;
23
+ constructor(
24
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
25
+ );
26
+ }
27
+ export declare class ResourceNotFoundException extends __BaseException {
28
+ readonly name: "ResourceNotFoundException";
29
+ readonly $fault: "client";
30
+ Message?: string | undefined;
31
+ ResourceType?: ResourceType | undefined;
32
+ constructor(
33
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
34
+ );
35
+ }
36
+ export declare class ServiceQuotaExceededException extends __BaseException {
37
+ readonly name: "ServiceQuotaExceededException";
38
+ readonly $fault: "client";
39
+ Message?: string | undefined;
40
+ constructor(
41
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
42
+ );
43
+ }
44
+ export declare class ThrottlingException extends __BaseException {
45
+ readonly name: "ThrottlingException";
46
+ readonly $fault: "client";
47
+ Message?: string | undefined;
48
+ constructor(
49
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
50
+ );
51
+ }
52
+ export declare class ValidationException extends __BaseException {
53
+ readonly name: "ValidationException";
54
+ readonly $fault: "client";
55
+ Message?: string | undefined;
56
+ constructor(
57
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
58
+ );
59
+ }
@@ -1,13 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { VoiceIDServiceException as __BaseException } from "./VoiceIDServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- Message?: string | undefined;
7
- constructor(
8
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
- );
10
- }
11
1
  export interface AssociateFraudsterRequest {
12
2
  DomainId: string | undefined;
13
3
  WatchlistId: string | undefined;
@@ -35,21 +25,6 @@ export declare const ConflictType: {
35
25
  readonly SPEAKER_OPTED_OUT: "SPEAKER_OPTED_OUT";
36
26
  };
37
27
  export type ConflictType = (typeof ConflictType)[keyof typeof ConflictType];
38
- export declare class ConflictException extends __BaseException {
39
- readonly name: "ConflictException";
40
- readonly $fault: "client";
41
- Message?: string | undefined;
42
- ConflictType?: ConflictType | undefined;
43
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
44
- }
45
- export declare class InternalServerException extends __BaseException {
46
- readonly name: "InternalServerException";
47
- readonly $fault: "server";
48
- Message?: string | undefined;
49
- constructor(
50
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
51
- );
52
- }
53
28
  export declare const ResourceType: {
54
29
  readonly BATCH_JOB: "BATCH_JOB";
55
30
  readonly COMPLIANCE_CONSENT: "COMPLIANCE_CONSENT";
@@ -60,39 +35,6 @@ export declare const ResourceType: {
60
35
  readonly WATCHLIST: "WATCHLIST";
61
36
  };
62
37
  export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
63
- export declare class ResourceNotFoundException extends __BaseException {
64
- readonly name: "ResourceNotFoundException";
65
- readonly $fault: "client";
66
- Message?: string | undefined;
67
- ResourceType?: ResourceType | undefined;
68
- constructor(
69
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
70
- );
71
- }
72
- export declare class ServiceQuotaExceededException extends __BaseException {
73
- readonly name: "ServiceQuotaExceededException";
74
- readonly $fault: "client";
75
- Message?: string | undefined;
76
- constructor(
77
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
78
- );
79
- }
80
- export declare class ThrottlingException extends __BaseException {
81
- readonly name: "ThrottlingException";
82
- readonly $fault: "client";
83
- Message?: string | undefined;
84
- constructor(
85
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
86
- );
87
- }
88
- export declare class ValidationException extends __BaseException {
89
- readonly name: "ValidationException";
90
- readonly $fault: "client";
91
- Message?: string | undefined;
92
- constructor(
93
- opts: __ExceptionOptionType<ValidationException, __BaseException>
94
- );
95
- }
96
38
  export interface AuthenticationConfiguration {
97
39
  AcceptanceThreshold: number | undefined;
98
40
  }
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.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-voice-id",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";