@aws-sdk/client-connect 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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ConnectServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ConnectServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ConnectServiceException = ConnectServiceException;
@@ -0,0 +1,434 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContactNotFoundException = exports.OutboundContactNotPermittedException = exports.DestinationNotAllowedException = exports.MaximumResultReturnedException = exports.InvalidActiveRegionException = exports.OutputTypeNotFoundException = exports.UserNotFoundException = exports.ContactFlowNotPublishedException = exports.TooManyRequestsException = exports.ResourceInUseException = exports.ResourceNotReadyException = exports.InvalidTestCaseException = exports.PropertyValidationException = exports.InvalidContactFlowModuleException = exports.InvalidContactFlowException = exports.ConflictException = exports.DuplicateResourceException = exports.ConditionalOperationFailedException = exports.IdempotencyException = exports.LimitExceededException = exports.ServiceQuotaExceededException = exports.InvalidRequestException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.InvalidParameterException = exports.InternalServiceException = exports.AccessDeniedException = void 0;
4
+ const ConnectServiceException_1 = require("./ConnectServiceException");
5
+ class AccessDeniedException extends ConnectServiceException_1.ConnectServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class InternalServiceException extends ConnectServiceException_1.ConnectServiceException {
21
+ name = "InternalServiceException";
22
+ $fault = "server";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "InternalServiceException",
27
+ $fault: "server",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.InternalServiceException = InternalServiceException;
35
+ class InvalidParameterException extends ConnectServiceException_1.ConnectServiceException {
36
+ name = "InvalidParameterException";
37
+ $fault = "client";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "InvalidParameterException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.InvalidParameterException = InvalidParameterException;
50
+ class ResourceConflictException extends ConnectServiceException_1.ConnectServiceException {
51
+ name = "ResourceConflictException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceConflictException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ResourceConflictException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.ResourceConflictException = ResourceConflictException;
65
+ class ResourceNotFoundException extends ConnectServiceException_1.ConnectServiceException {
66
+ name = "ResourceNotFoundException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "ResourceNotFoundException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.ResourceNotFoundException = ResourceNotFoundException;
80
+ class ThrottlingException extends ConnectServiceException_1.ConnectServiceException {
81
+ name = "ThrottlingException";
82
+ $fault = "client";
83
+ Message;
84
+ constructor(opts) {
85
+ super({
86
+ name: "ThrottlingException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
91
+ this.Message = opts.Message;
92
+ }
93
+ }
94
+ exports.ThrottlingException = ThrottlingException;
95
+ class InvalidRequestException extends ConnectServiceException_1.ConnectServiceException {
96
+ name = "InvalidRequestException";
97
+ $fault = "client";
98
+ Message;
99
+ Reason;
100
+ constructor(opts) {
101
+ super({
102
+ name: "InvalidRequestException",
103
+ $fault: "client",
104
+ ...opts,
105
+ });
106
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
107
+ this.Message = opts.Message;
108
+ this.Reason = opts.Reason;
109
+ }
110
+ }
111
+ exports.InvalidRequestException = InvalidRequestException;
112
+ class ServiceQuotaExceededException extends ConnectServiceException_1.ConnectServiceException {
113
+ name = "ServiceQuotaExceededException";
114
+ $fault = "client";
115
+ Message;
116
+ Reason;
117
+ constructor(opts) {
118
+ super({
119
+ name: "ServiceQuotaExceededException",
120
+ $fault: "client",
121
+ ...opts,
122
+ });
123
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
124
+ this.Message = opts.Message;
125
+ this.Reason = opts.Reason;
126
+ }
127
+ }
128
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
129
+ class LimitExceededException extends ConnectServiceException_1.ConnectServiceException {
130
+ name = "LimitExceededException";
131
+ $fault = "client";
132
+ Message;
133
+ constructor(opts) {
134
+ super({
135
+ name: "LimitExceededException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
140
+ this.Message = opts.Message;
141
+ }
142
+ }
143
+ exports.LimitExceededException = LimitExceededException;
144
+ class IdempotencyException extends ConnectServiceException_1.ConnectServiceException {
145
+ name = "IdempotencyException";
146
+ $fault = "client";
147
+ Message;
148
+ constructor(opts) {
149
+ super({
150
+ name: "IdempotencyException",
151
+ $fault: "client",
152
+ ...opts,
153
+ });
154
+ Object.setPrototypeOf(this, IdempotencyException.prototype);
155
+ this.Message = opts.Message;
156
+ }
157
+ }
158
+ exports.IdempotencyException = IdempotencyException;
159
+ class ConditionalOperationFailedException extends ConnectServiceException_1.ConnectServiceException {
160
+ name = "ConditionalOperationFailedException";
161
+ $fault = "client";
162
+ Message;
163
+ constructor(opts) {
164
+ super({
165
+ name: "ConditionalOperationFailedException",
166
+ $fault: "client",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, ConditionalOperationFailedException.prototype);
170
+ this.Message = opts.Message;
171
+ }
172
+ }
173
+ exports.ConditionalOperationFailedException = ConditionalOperationFailedException;
174
+ class DuplicateResourceException extends ConnectServiceException_1.ConnectServiceException {
175
+ name = "DuplicateResourceException";
176
+ $fault = "client";
177
+ Message;
178
+ constructor(opts) {
179
+ super({
180
+ name: "DuplicateResourceException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ Object.setPrototypeOf(this, DuplicateResourceException.prototype);
185
+ this.Message = opts.Message;
186
+ }
187
+ }
188
+ exports.DuplicateResourceException = DuplicateResourceException;
189
+ class ConflictException extends ConnectServiceException_1.ConnectServiceException {
190
+ name = "ConflictException";
191
+ $fault = "client";
192
+ Message;
193
+ constructor(opts) {
194
+ super({
195
+ name: "ConflictException",
196
+ $fault: "client",
197
+ ...opts,
198
+ });
199
+ Object.setPrototypeOf(this, ConflictException.prototype);
200
+ this.Message = opts.Message;
201
+ }
202
+ }
203
+ exports.ConflictException = ConflictException;
204
+ class InvalidContactFlowException extends ConnectServiceException_1.ConnectServiceException {
205
+ name = "InvalidContactFlowException";
206
+ $fault = "client";
207
+ problems;
208
+ constructor(opts) {
209
+ super({
210
+ name: "InvalidContactFlowException",
211
+ $fault: "client",
212
+ ...opts,
213
+ });
214
+ Object.setPrototypeOf(this, InvalidContactFlowException.prototype);
215
+ this.problems = opts.problems;
216
+ }
217
+ }
218
+ exports.InvalidContactFlowException = InvalidContactFlowException;
219
+ class InvalidContactFlowModuleException extends ConnectServiceException_1.ConnectServiceException {
220
+ name = "InvalidContactFlowModuleException";
221
+ $fault = "client";
222
+ Problems;
223
+ constructor(opts) {
224
+ super({
225
+ name: "InvalidContactFlowModuleException",
226
+ $fault: "client",
227
+ ...opts,
228
+ });
229
+ Object.setPrototypeOf(this, InvalidContactFlowModuleException.prototype);
230
+ this.Problems = opts.Problems;
231
+ }
232
+ }
233
+ exports.InvalidContactFlowModuleException = InvalidContactFlowModuleException;
234
+ class PropertyValidationException extends ConnectServiceException_1.ConnectServiceException {
235
+ name = "PropertyValidationException";
236
+ $fault = "client";
237
+ Message;
238
+ PropertyList;
239
+ constructor(opts) {
240
+ super({
241
+ name: "PropertyValidationException",
242
+ $fault: "client",
243
+ ...opts,
244
+ });
245
+ Object.setPrototypeOf(this, PropertyValidationException.prototype);
246
+ this.Message = opts.Message;
247
+ this.PropertyList = opts.PropertyList;
248
+ }
249
+ }
250
+ exports.PropertyValidationException = PropertyValidationException;
251
+ class InvalidTestCaseException extends ConnectServiceException_1.ConnectServiceException {
252
+ name = "InvalidTestCaseException";
253
+ $fault = "client";
254
+ Problems;
255
+ constructor(opts) {
256
+ super({
257
+ name: "InvalidTestCaseException",
258
+ $fault: "client",
259
+ ...opts,
260
+ });
261
+ Object.setPrototypeOf(this, InvalidTestCaseException.prototype);
262
+ this.Problems = opts.Problems;
263
+ }
264
+ }
265
+ exports.InvalidTestCaseException = InvalidTestCaseException;
266
+ class ResourceNotReadyException extends ConnectServiceException_1.ConnectServiceException {
267
+ name = "ResourceNotReadyException";
268
+ $fault = "client";
269
+ Message;
270
+ constructor(opts) {
271
+ super({
272
+ name: "ResourceNotReadyException",
273
+ $fault: "client",
274
+ ...opts,
275
+ });
276
+ Object.setPrototypeOf(this, ResourceNotReadyException.prototype);
277
+ this.Message = opts.Message;
278
+ }
279
+ }
280
+ exports.ResourceNotReadyException = ResourceNotReadyException;
281
+ class ResourceInUseException extends ConnectServiceException_1.ConnectServiceException {
282
+ name = "ResourceInUseException";
283
+ $fault = "client";
284
+ Message;
285
+ ResourceType;
286
+ ResourceId;
287
+ constructor(opts) {
288
+ super({
289
+ name: "ResourceInUseException",
290
+ $fault: "client",
291
+ ...opts,
292
+ });
293
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
294
+ this.Message = opts.Message;
295
+ this.ResourceType = opts.ResourceType;
296
+ this.ResourceId = opts.ResourceId;
297
+ }
298
+ }
299
+ exports.ResourceInUseException = ResourceInUseException;
300
+ class TooManyRequestsException extends ConnectServiceException_1.ConnectServiceException {
301
+ name = "TooManyRequestsException";
302
+ $fault = "client";
303
+ Message;
304
+ constructor(opts) {
305
+ super({
306
+ name: "TooManyRequestsException",
307
+ $fault: "client",
308
+ ...opts,
309
+ });
310
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
311
+ this.Message = opts.Message;
312
+ }
313
+ }
314
+ exports.TooManyRequestsException = TooManyRequestsException;
315
+ class ContactFlowNotPublishedException extends ConnectServiceException_1.ConnectServiceException {
316
+ name = "ContactFlowNotPublishedException";
317
+ $fault = "client";
318
+ Message;
319
+ constructor(opts) {
320
+ super({
321
+ name: "ContactFlowNotPublishedException",
322
+ $fault: "client",
323
+ ...opts,
324
+ });
325
+ Object.setPrototypeOf(this, ContactFlowNotPublishedException.prototype);
326
+ this.Message = opts.Message;
327
+ }
328
+ }
329
+ exports.ContactFlowNotPublishedException = ContactFlowNotPublishedException;
330
+ class UserNotFoundException extends ConnectServiceException_1.ConnectServiceException {
331
+ name = "UserNotFoundException";
332
+ $fault = "client";
333
+ Message;
334
+ constructor(opts) {
335
+ super({
336
+ name: "UserNotFoundException",
337
+ $fault: "client",
338
+ ...opts,
339
+ });
340
+ Object.setPrototypeOf(this, UserNotFoundException.prototype);
341
+ this.Message = opts.Message;
342
+ }
343
+ }
344
+ exports.UserNotFoundException = UserNotFoundException;
345
+ class OutputTypeNotFoundException extends ConnectServiceException_1.ConnectServiceException {
346
+ name = "OutputTypeNotFoundException";
347
+ $fault = "client";
348
+ Message;
349
+ constructor(opts) {
350
+ super({
351
+ name: "OutputTypeNotFoundException",
352
+ $fault: "client",
353
+ ...opts,
354
+ });
355
+ Object.setPrototypeOf(this, OutputTypeNotFoundException.prototype);
356
+ this.Message = opts.Message;
357
+ }
358
+ }
359
+ exports.OutputTypeNotFoundException = OutputTypeNotFoundException;
360
+ class InvalidActiveRegionException extends ConnectServiceException_1.ConnectServiceException {
361
+ name = "InvalidActiveRegionException";
362
+ $fault = "client";
363
+ Message;
364
+ constructor(opts) {
365
+ super({
366
+ name: "InvalidActiveRegionException",
367
+ $fault: "client",
368
+ ...opts,
369
+ });
370
+ Object.setPrototypeOf(this, InvalidActiveRegionException.prototype);
371
+ this.Message = opts.Message;
372
+ }
373
+ }
374
+ exports.InvalidActiveRegionException = InvalidActiveRegionException;
375
+ class MaximumResultReturnedException extends ConnectServiceException_1.ConnectServiceException {
376
+ name = "MaximumResultReturnedException";
377
+ $fault = "client";
378
+ Message;
379
+ constructor(opts) {
380
+ super({
381
+ name: "MaximumResultReturnedException",
382
+ $fault: "client",
383
+ ...opts,
384
+ });
385
+ Object.setPrototypeOf(this, MaximumResultReturnedException.prototype);
386
+ this.Message = opts.Message;
387
+ }
388
+ }
389
+ exports.MaximumResultReturnedException = MaximumResultReturnedException;
390
+ class DestinationNotAllowedException extends ConnectServiceException_1.ConnectServiceException {
391
+ name = "DestinationNotAllowedException";
392
+ $fault = "client";
393
+ Message;
394
+ constructor(opts) {
395
+ super({
396
+ name: "DestinationNotAllowedException",
397
+ $fault: "client",
398
+ ...opts,
399
+ });
400
+ Object.setPrototypeOf(this, DestinationNotAllowedException.prototype);
401
+ this.Message = opts.Message;
402
+ }
403
+ }
404
+ exports.DestinationNotAllowedException = DestinationNotAllowedException;
405
+ class OutboundContactNotPermittedException extends ConnectServiceException_1.ConnectServiceException {
406
+ name = "OutboundContactNotPermittedException";
407
+ $fault = "client";
408
+ Message;
409
+ constructor(opts) {
410
+ super({
411
+ name: "OutboundContactNotPermittedException",
412
+ $fault: "client",
413
+ ...opts,
414
+ });
415
+ Object.setPrototypeOf(this, OutboundContactNotPermittedException.prototype);
416
+ this.Message = opts.Message;
417
+ }
418
+ }
419
+ exports.OutboundContactNotPermittedException = OutboundContactNotPermittedException;
420
+ class ContactNotFoundException extends ConnectServiceException_1.ConnectServiceException {
421
+ name = "ContactNotFoundException";
422
+ $fault = "client";
423
+ Message;
424
+ constructor(opts) {
425
+ super({
426
+ name: "ContactNotFoundException",
427
+ $fault: "client",
428
+ ...opts,
429
+ });
430
+ Object.setPrototypeOf(this, ContactNotFoundException.prototype);
431
+ this.Message = opts.Message;
432
+ }
433
+ }
434
+ exports.ContactNotFoundException = ContactNotFoundException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2017-08-08",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.connect",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2017-08-08",
33
35
  serviceTarget: "AmazonConnectService",
34
36
  },