@aws-sdk/client-connectcampaigns 3.934.0 → 3.935.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
@@ -231,36 +231,6 @@ let InvalidStateException$1 = class InvalidStateException extends ConnectCampaig
231
231
  this.xAmzErrorType = opts.xAmzErrorType;
232
232
  }
233
233
  };
234
- const CampaignState = {
235
- FAILED: "Failed",
236
- INITIALIZED: "Initialized",
237
- PAUSED: "Paused",
238
- RUNNING: "Running",
239
- STOPPED: "Stopped",
240
- };
241
- const GetCampaignStateBatchFailureCode = {
242
- RESOURCE_NOT_FOUND: "ResourceNotFound",
243
- UNKNOWN_ERROR: "UnknownError",
244
- };
245
- const EncryptionType = {
246
- KMS: "KMS",
247
- };
248
- const InstanceOnboardingJobFailureCode = {
249
- EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED",
250
- EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED",
251
- IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED",
252
- INTERNAL_FAILURE: "INTERNAL_FAILURE",
253
- KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
254
- KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
255
- };
256
- const InstanceOnboardingJobStatusCode = {
257
- FAILED: "FAILED",
258
- IN_PROGRESS: "IN_PROGRESS",
259
- SUCCEEDED: "SUCCEEDED",
260
- };
261
- const InstanceIdFilterOperator = {
262
- EQ: "Eq",
263
- };
264
234
  let InvalidCampaignStateException$1 = class InvalidCampaignStateException extends ConnectCampaignsServiceException$1 {
265
235
  name = "InvalidCampaignStateException";
266
236
  $fault = "client";
@@ -277,11 +247,6 @@ let InvalidCampaignStateException$1 = class InvalidCampaignStateException extend
277
247
  this.xAmzErrorType = opts.xAmzErrorType;
278
248
  }
279
249
  };
280
- const FailureCode = {
281
- INVALID_INPUT: "InvalidInput",
282
- REQUEST_THROTTLED: "RequestThrottled",
283
- UNKNOWN_ERROR: "UnknownError",
284
- };
285
250
 
286
251
  const _A = "Attributes";
287
252
  const _ADC = "AgentlessDialerConfig";
@@ -1339,7 +1304,6 @@ Object.defineProperty(exports, "__Client", {
1339
1304
  get: function () { return smithyClient.Client; }
1340
1305
  });
1341
1306
  exports.AccessDeniedException = AccessDeniedException$1;
1342
- exports.CampaignState = CampaignState;
1343
1307
  exports.ConflictException = ConflictException$1;
1344
1308
  exports.ConnectCampaigns = ConnectCampaigns;
1345
1309
  exports.ConnectCampaignsClient = ConnectCampaignsClient;
@@ -1349,16 +1313,10 @@ exports.DeleteCampaignCommand = DeleteCampaignCommand;
1349
1313
  exports.DeleteConnectInstanceConfigCommand = DeleteConnectInstanceConfigCommand;
1350
1314
  exports.DeleteInstanceOnboardingJobCommand = DeleteInstanceOnboardingJobCommand;
1351
1315
  exports.DescribeCampaignCommand = DescribeCampaignCommand;
1352
- exports.EncryptionType = EncryptionType;
1353
- exports.FailureCode = FailureCode;
1354
1316
  exports.GetCampaignStateBatchCommand = GetCampaignStateBatchCommand;
1355
- exports.GetCampaignStateBatchFailureCode = GetCampaignStateBatchFailureCode;
1356
1317
  exports.GetCampaignStateCommand = GetCampaignStateCommand;
1357
1318
  exports.GetConnectInstanceConfigCommand = GetConnectInstanceConfigCommand;
1358
1319
  exports.GetInstanceOnboardingJobStatusCommand = GetInstanceOnboardingJobStatusCommand;
1359
- exports.InstanceIdFilterOperator = InstanceIdFilterOperator;
1360
- exports.InstanceOnboardingJobFailureCode = InstanceOnboardingJobFailureCode;
1361
- exports.InstanceOnboardingJobStatusCode = InstanceOnboardingJobStatusCode;
1362
1320
  exports.InternalServerException = InternalServerException$1;
1363
1321
  exports.InvalidCampaignStateException = InvalidCampaignStateException$1;
1364
1322
  exports.InvalidStateException = InvalidStateException$1;
package/dist-es/index.js CHANGED
@@ -2,5 +2,5 @@ export * from "./ConnectCampaignsClient";
2
2
  export * from "./ConnectCampaigns";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/errors";
6
6
  export { ConnectCampaignsServiceException } from "./models/ConnectCampaignsServiceException";
@@ -0,0 +1,131 @@
1
+ import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ xAmzErrorType;
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.xAmzErrorType = opts.xAmzErrorType;
14
+ }
15
+ }
16
+ export class ConflictException extends __BaseException {
17
+ name = "ConflictException";
18
+ $fault = "client";
19
+ xAmzErrorType;
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConflictException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, ConflictException.prototype);
27
+ this.xAmzErrorType = opts.xAmzErrorType;
28
+ }
29
+ }
30
+ export class InternalServerException extends __BaseException {
31
+ name = "InternalServerException";
32
+ $fault = "server";
33
+ $retryable = {};
34
+ xAmzErrorType;
35
+ constructor(opts) {
36
+ super({
37
+ name: "InternalServerException",
38
+ $fault: "server",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, InternalServerException.prototype);
42
+ this.xAmzErrorType = opts.xAmzErrorType;
43
+ }
44
+ }
45
+ export class ResourceNotFoundException extends __BaseException {
46
+ name = "ResourceNotFoundException";
47
+ $fault = "client";
48
+ xAmzErrorType;
49
+ constructor(opts) {
50
+ super({
51
+ name: "ResourceNotFoundException",
52
+ $fault: "client",
53
+ ...opts,
54
+ });
55
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
56
+ this.xAmzErrorType = opts.xAmzErrorType;
57
+ }
58
+ }
59
+ export class ServiceQuotaExceededException extends __BaseException {
60
+ name = "ServiceQuotaExceededException";
61
+ $fault = "client";
62
+ xAmzErrorType;
63
+ constructor(opts) {
64
+ super({
65
+ name: "ServiceQuotaExceededException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
70
+ this.xAmzErrorType = opts.xAmzErrorType;
71
+ }
72
+ }
73
+ export class ThrottlingException extends __BaseException {
74
+ name = "ThrottlingException";
75
+ $fault = "client";
76
+ $retryable = {};
77
+ xAmzErrorType;
78
+ constructor(opts) {
79
+ super({
80
+ name: "ThrottlingException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
85
+ this.xAmzErrorType = opts.xAmzErrorType;
86
+ }
87
+ }
88
+ export class ValidationException extends __BaseException {
89
+ name = "ValidationException";
90
+ $fault = "client";
91
+ xAmzErrorType;
92
+ constructor(opts) {
93
+ super({
94
+ name: "ValidationException",
95
+ $fault: "client",
96
+ ...opts,
97
+ });
98
+ Object.setPrototypeOf(this, ValidationException.prototype);
99
+ this.xAmzErrorType = opts.xAmzErrorType;
100
+ }
101
+ }
102
+ export class InvalidStateException extends __BaseException {
103
+ name = "InvalidStateException";
104
+ $fault = "client";
105
+ xAmzErrorType;
106
+ constructor(opts) {
107
+ super({
108
+ name: "InvalidStateException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ Object.setPrototypeOf(this, InvalidStateException.prototype);
113
+ this.xAmzErrorType = opts.xAmzErrorType;
114
+ }
115
+ }
116
+ export class InvalidCampaignStateException extends __BaseException {
117
+ name = "InvalidCampaignStateException";
118
+ $fault = "client";
119
+ state;
120
+ xAmzErrorType;
121
+ constructor(opts) {
122
+ super({
123
+ name: "InvalidCampaignStateException",
124
+ $fault: "client",
125
+ ...opts,
126
+ });
127
+ Object.setPrototypeOf(this, InvalidCampaignStateException.prototype);
128
+ this.state = opts.state;
129
+ this.xAmzErrorType = opts.xAmzErrorType;
130
+ }
131
+ }
@@ -1,118 +1,3 @@
1
- import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- xAmzErrorType;
6
- constructor(opts) {
7
- super({
8
- name: "AccessDeniedException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
- this.xAmzErrorType = opts.xAmzErrorType;
14
- }
15
- }
16
- export class ConflictException extends __BaseException {
17
- name = "ConflictException";
18
- $fault = "client";
19
- xAmzErrorType;
20
- constructor(opts) {
21
- super({
22
- name: "ConflictException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, ConflictException.prototype);
27
- this.xAmzErrorType = opts.xAmzErrorType;
28
- }
29
- }
30
- export class InternalServerException extends __BaseException {
31
- name = "InternalServerException";
32
- $fault = "server";
33
- $retryable = {};
34
- xAmzErrorType;
35
- constructor(opts) {
36
- super({
37
- name: "InternalServerException",
38
- $fault: "server",
39
- ...opts,
40
- });
41
- Object.setPrototypeOf(this, InternalServerException.prototype);
42
- this.xAmzErrorType = opts.xAmzErrorType;
43
- }
44
- }
45
- export class ResourceNotFoundException extends __BaseException {
46
- name = "ResourceNotFoundException";
47
- $fault = "client";
48
- xAmzErrorType;
49
- constructor(opts) {
50
- super({
51
- name: "ResourceNotFoundException",
52
- $fault: "client",
53
- ...opts,
54
- });
55
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
56
- this.xAmzErrorType = opts.xAmzErrorType;
57
- }
58
- }
59
- export class ServiceQuotaExceededException extends __BaseException {
60
- name = "ServiceQuotaExceededException";
61
- $fault = "client";
62
- xAmzErrorType;
63
- constructor(opts) {
64
- super({
65
- name: "ServiceQuotaExceededException",
66
- $fault: "client",
67
- ...opts,
68
- });
69
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
70
- this.xAmzErrorType = opts.xAmzErrorType;
71
- }
72
- }
73
- export class ThrottlingException extends __BaseException {
74
- name = "ThrottlingException";
75
- $fault = "client";
76
- $retryable = {};
77
- xAmzErrorType;
78
- constructor(opts) {
79
- super({
80
- name: "ThrottlingException",
81
- $fault: "client",
82
- ...opts,
83
- });
84
- Object.setPrototypeOf(this, ThrottlingException.prototype);
85
- this.xAmzErrorType = opts.xAmzErrorType;
86
- }
87
- }
88
- export class ValidationException extends __BaseException {
89
- name = "ValidationException";
90
- $fault = "client";
91
- xAmzErrorType;
92
- constructor(opts) {
93
- super({
94
- name: "ValidationException",
95
- $fault: "client",
96
- ...opts,
97
- });
98
- Object.setPrototypeOf(this, ValidationException.prototype);
99
- this.xAmzErrorType = opts.xAmzErrorType;
100
- }
101
- }
102
- export class InvalidStateException extends __BaseException {
103
- name = "InvalidStateException";
104
- $fault = "client";
105
- xAmzErrorType;
106
- constructor(opts) {
107
- super({
108
- name: "InvalidStateException",
109
- $fault: "client",
110
- ...opts,
111
- });
112
- Object.setPrototypeOf(this, InvalidStateException.prototype);
113
- this.xAmzErrorType = opts.xAmzErrorType;
114
- }
115
- }
116
1
  export const CampaignState = {
117
2
  FAILED: "Failed",
118
3
  INITIALIZED: "Initialized",
@@ -143,22 +28,6 @@ export const InstanceOnboardingJobStatusCode = {
143
28
  export const InstanceIdFilterOperator = {
144
29
  EQ: "Eq",
145
30
  };
146
- export class InvalidCampaignStateException extends __BaseException {
147
- name = "InvalidCampaignStateException";
148
- $fault = "client";
149
- state;
150
- xAmzErrorType;
151
- constructor(opts) {
152
- super({
153
- name: "InvalidCampaignStateException",
154
- $fault: "client",
155
- ...opts,
156
- });
157
- Object.setPrototypeOf(this, InvalidCampaignStateException.prototype);
158
- this.state = opts.state;
159
- this.xAmzErrorType = opts.xAmzErrorType;
160
- }
161
- }
162
31
  export const FailureCode = {
163
32
  INVALID_INPUT: "InvalidInput",
164
33
  REQUEST_THROTTLED: "RequestThrottled",
@@ -147,7 +147,7 @@ const _xaE = "x-amzn-ErrorType";
147
147
  const n0 = "com.amazonaws.connectcampaigns";
148
148
  import { TypeRegistry } from "@smithy/core/schema";
149
149
  import { ConnectCampaignsServiceException as __ConnectCampaignsServiceException } from "../models/ConnectCampaignsServiceException";
150
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidCampaignStateException as __InvalidCampaignStateException, InvalidStateException as __InvalidStateException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
150
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidCampaignStateException as __InvalidCampaignStateException, InvalidStateException as __InvalidStateException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
151
151
  export var DestinationPhoneNumber = [0, n0, _DPN, 8, 0];
152
152
  export var AccessDeniedException = [
153
153
  -3,
@@ -10,5 +10,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { ConnectCampaignsExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
- export * from "./models";
13
+ export * from "./models/errors";
14
+ export type * from "./models/models_0";
14
15
  export { ConnectCampaignsServiceException } from "./models/ConnectCampaignsServiceException";
@@ -0,0 +1,163 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException";
3
+ import { CampaignState } from "./models_0";
4
+ /**
5
+ * You do not have sufficient access to perform this action.
6
+ * @public
7
+ */
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * A header that defines the error encountered while processing the request.
13
+ * @public
14
+ */
15
+ xAmzErrorType?: string | undefined;
16
+ /**
17
+ * @internal
18
+ */
19
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
20
+ }
21
+ /**
22
+ * The request could not be processed because of conflict in the current state of the resource.
23
+ * @public
24
+ */
25
+ export declare class ConflictException extends __BaseException {
26
+ readonly name: "ConflictException";
27
+ readonly $fault: "client";
28
+ /**
29
+ * A header that defines the error encountered while processing the request.
30
+ * @public
31
+ */
32
+ xAmzErrorType?: string | undefined;
33
+ /**
34
+ * @internal
35
+ */
36
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
37
+ }
38
+ /**
39
+ * Request processing failed because of an error or failure with the service.
40
+ * @public
41
+ */
42
+ export declare class InternalServerException extends __BaseException {
43
+ readonly name: "InternalServerException";
44
+ readonly $fault: "server";
45
+ $retryable: {};
46
+ /**
47
+ * A header that defines the error encountered while processing the request.
48
+ * @public
49
+ */
50
+ xAmzErrorType?: string | undefined;
51
+ /**
52
+ * @internal
53
+ */
54
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
55
+ }
56
+ /**
57
+ * The specified resource was not found.
58
+ * @public
59
+ */
60
+ export declare class ResourceNotFoundException extends __BaseException {
61
+ readonly name: "ResourceNotFoundException";
62
+ readonly $fault: "client";
63
+ /**
64
+ * A header that defines the error encountered while processing the request.
65
+ * @public
66
+ */
67
+ xAmzErrorType?: string | undefined;
68
+ /**
69
+ * @internal
70
+ */
71
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
72
+ }
73
+ /**
74
+ * Request would cause a service quota to be exceeded.
75
+ * @public
76
+ */
77
+ export declare class ServiceQuotaExceededException extends __BaseException {
78
+ readonly name: "ServiceQuotaExceededException";
79
+ readonly $fault: "client";
80
+ /**
81
+ * A header that defines the error encountered while processing the request.
82
+ * @public
83
+ */
84
+ xAmzErrorType?: string | undefined;
85
+ /**
86
+ * @internal
87
+ */
88
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
89
+ }
90
+ /**
91
+ * The request was denied due to request throttling.
92
+ * @public
93
+ */
94
+ export declare class ThrottlingException extends __BaseException {
95
+ readonly name: "ThrottlingException";
96
+ readonly $fault: "client";
97
+ $retryable: {};
98
+ /**
99
+ * A header that defines the error encountered while processing the request.
100
+ * @public
101
+ */
102
+ xAmzErrorType?: string | undefined;
103
+ /**
104
+ * @internal
105
+ */
106
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
107
+ }
108
+ /**
109
+ * The input fails to satisfy the constraints specified by an AWS service.
110
+ * @public
111
+ */
112
+ export declare class ValidationException extends __BaseException {
113
+ readonly name: "ValidationException";
114
+ readonly $fault: "client";
115
+ /**
116
+ * A header that defines the error encountered while processing the request.
117
+ * @public
118
+ */
119
+ xAmzErrorType?: string | undefined;
120
+ /**
121
+ * @internal
122
+ */
123
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
124
+ }
125
+ /**
126
+ * The request could not be processed because of conflict in the current state.
127
+ * @public
128
+ */
129
+ export declare class InvalidStateException extends __BaseException {
130
+ readonly name: "InvalidStateException";
131
+ readonly $fault: "client";
132
+ /**
133
+ * A header that defines the error encountered while processing the request.
134
+ * @public
135
+ */
136
+ xAmzErrorType?: string | undefined;
137
+ /**
138
+ * @internal
139
+ */
140
+ constructor(opts: __ExceptionOptionType<InvalidStateException, __BaseException>);
141
+ }
142
+ /**
143
+ * The request could not be processed because of conflict in the current state of the campaign.
144
+ * @public
145
+ */
146
+ export declare class InvalidCampaignStateException extends __BaseException {
147
+ readonly name: "InvalidCampaignStateException";
148
+ readonly $fault: "client";
149
+ /**
150
+ * State of a campaign
151
+ * @public
152
+ */
153
+ state: CampaignState | undefined;
154
+ /**
155
+ * A header that defines the error encountered while processing the request.
156
+ * @public
157
+ */
158
+ xAmzErrorType?: string | undefined;
159
+ /**
160
+ * @internal
161
+ */
162
+ constructor(opts: __ExceptionOptionType<InvalidCampaignStateException, __BaseException>);
163
+ }
@@ -1,22 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException";
3
- /**
4
- * You do not have sufficient access to perform this action.
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * A header that defines the error encountered while processing the request.
12
- * @public
13
- */
14
- xAmzErrorType?: string | undefined;
15
- /**
16
- * @internal
17
- */
18
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
19
- }
20
1
  /**
21
2
  * Agentless Dialer config
22
3
  * @public
@@ -28,23 +9,6 @@ export interface AgentlessDialerConfig {
28
9
  */
29
10
  dialingCapacity?: number | undefined;
30
11
  }
31
- /**
32
- * The request could not be processed because of conflict in the current state of the resource.
33
- * @public
34
- */
35
- export declare class ConflictException extends __BaseException {
36
- readonly name: "ConflictException";
37
- readonly $fault: "client";
38
- /**
39
- * A header that defines the error encountered while processing the request.
40
- * @public
41
- */
42
- xAmzErrorType?: string | undefined;
43
- /**
44
- * @internal
45
- */
46
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
47
- }
48
12
  /**
49
13
  * Predictive Dialer config
50
14
  * @public
@@ -230,93 +194,6 @@ export interface CreateCampaignResponse {
230
194
  */
231
195
  tags?: Record<string, string> | undefined;
232
196
  }
233
- /**
234
- * Request processing failed because of an error or failure with the service.
235
- * @public
236
- */
237
- export declare class InternalServerException extends __BaseException {
238
- readonly name: "InternalServerException";
239
- readonly $fault: "server";
240
- $retryable: {};
241
- /**
242
- * A header that defines the error encountered while processing the request.
243
- * @public
244
- */
245
- xAmzErrorType?: string | undefined;
246
- /**
247
- * @internal
248
- */
249
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
250
- }
251
- /**
252
- * The specified resource was not found.
253
- * @public
254
- */
255
- export declare class ResourceNotFoundException extends __BaseException {
256
- readonly name: "ResourceNotFoundException";
257
- readonly $fault: "client";
258
- /**
259
- * A header that defines the error encountered while processing the request.
260
- * @public
261
- */
262
- xAmzErrorType?: string | undefined;
263
- /**
264
- * @internal
265
- */
266
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
267
- }
268
- /**
269
- * Request would cause a service quota to be exceeded.
270
- * @public
271
- */
272
- export declare class ServiceQuotaExceededException extends __BaseException {
273
- readonly name: "ServiceQuotaExceededException";
274
- readonly $fault: "client";
275
- /**
276
- * A header that defines the error encountered while processing the request.
277
- * @public
278
- */
279
- xAmzErrorType?: string | undefined;
280
- /**
281
- * @internal
282
- */
283
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
284
- }
285
- /**
286
- * The request was denied due to request throttling.
287
- * @public
288
- */
289
- export declare class ThrottlingException extends __BaseException {
290
- readonly name: "ThrottlingException";
291
- readonly $fault: "client";
292
- $retryable: {};
293
- /**
294
- * A header that defines the error encountered while processing the request.
295
- * @public
296
- */
297
- xAmzErrorType?: string | undefined;
298
- /**
299
- * @internal
300
- */
301
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
302
- }
303
- /**
304
- * The input fails to satisfy the constraints specified by an AWS service.
305
- * @public
306
- */
307
- export declare class ValidationException extends __BaseException {
308
- readonly name: "ValidationException";
309
- readonly $fault: "client";
310
- /**
311
- * A header that defines the error encountered while processing the request.
312
- * @public
313
- */
314
- xAmzErrorType?: string | undefined;
315
- /**
316
- * @internal
317
- */
318
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
319
- }
320
197
  /**
321
198
  * DeleteCampaignRequest
322
199
  * @public
@@ -339,23 +216,6 @@ export interface DeleteConnectInstanceConfigRequest {
339
216
  */
340
217
  connectInstanceId: string | undefined;
341
218
  }
342
- /**
343
- * The request could not be processed because of conflict in the current state.
344
- * @public
345
- */
346
- export declare class InvalidStateException extends __BaseException {
347
- readonly name: "InvalidStateException";
348
- readonly $fault: "client";
349
- /**
350
- * A header that defines the error encountered while processing the request.
351
- * @public
352
- */
353
- xAmzErrorType?: string | undefined;
354
- /**
355
- * @internal
356
- */
357
- constructor(opts: __ExceptionOptionType<InvalidStateException, __BaseException>);
358
- }
359
219
  /**
360
220
  * The request for DeleteInstanceOnboardingJob API.
361
221
  * @public
@@ -838,28 +698,6 @@ export interface ListTagsForResourceResponse {
838
698
  */
839
699
  tags?: Record<string, string> | undefined;
840
700
  }
841
- /**
842
- * The request could not be processed because of conflict in the current state of the campaign.
843
- * @public
844
- */
845
- export declare class InvalidCampaignStateException extends __BaseException {
846
- readonly name: "InvalidCampaignStateException";
847
- readonly $fault: "client";
848
- /**
849
- * State of a campaign
850
- * @public
851
- */
852
- state: CampaignState | undefined;
853
- /**
854
- * A header that defines the error encountered while processing the request.
855
- * @public
856
- */
857
- xAmzErrorType?: string | undefined;
858
- /**
859
- * @internal
860
- */
861
- constructor(opts: __ExceptionOptionType<InvalidCampaignStateException, __BaseException>);
862
- }
863
701
  /**
864
702
  * PauseCampaignRequest
865
703
  * @public
@@ -5,5 +5,6 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { ConnectCampaignsExtensionConfiguration } 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 { ConnectCampaignsServiceException } from "./models/ConnectCampaignsServiceException";
@@ -0,0 +1,76 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException";
3
+ import { CampaignState } from "./models_0";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
7
+ xAmzErrorType?: 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
+ xAmzErrorType?: string | undefined;
16
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
17
+ }
18
+ export declare class InternalServerException extends __BaseException {
19
+ readonly name: "InternalServerException";
20
+ readonly $fault: "server";
21
+ $retryable: {};
22
+ xAmzErrorType?: 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
+ xAmzErrorType?: string | undefined;
31
+ constructor(
32
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
33
+ );
34
+ }
35
+ export declare class ServiceQuotaExceededException extends __BaseException {
36
+ readonly name: "ServiceQuotaExceededException";
37
+ readonly $fault: "client";
38
+ xAmzErrorType?: string | undefined;
39
+ constructor(
40
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
41
+ );
42
+ }
43
+ export declare class ThrottlingException extends __BaseException {
44
+ readonly name: "ThrottlingException";
45
+ readonly $fault: "client";
46
+ $retryable: {};
47
+ xAmzErrorType?: 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
+ xAmzErrorType?: string | undefined;
56
+ constructor(
57
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
58
+ );
59
+ }
60
+ export declare class InvalidStateException extends __BaseException {
61
+ readonly name: "InvalidStateException";
62
+ readonly $fault: "client";
63
+ xAmzErrorType?: string | undefined;
64
+ constructor(
65
+ opts: __ExceptionOptionType<InvalidStateException, __BaseException>
66
+ );
67
+ }
68
+ export declare class InvalidCampaignStateException extends __BaseException {
69
+ readonly name: "InvalidCampaignStateException";
70
+ readonly $fault: "client";
71
+ state: CampaignState | undefined;
72
+ xAmzErrorType?: string | undefined;
73
+ constructor(
74
+ opts: __ExceptionOptionType<InvalidCampaignStateException, __BaseException>
75
+ );
76
+ }
@@ -1,22 +1,6 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- xAmzErrorType?: string | undefined;
7
- constructor(
8
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
- );
10
- }
11
1
  export interface AgentlessDialerConfig {
12
2
  dialingCapacity?: number | undefined;
13
3
  }
14
- export declare class ConflictException extends __BaseException {
15
- readonly name: "ConflictException";
16
- readonly $fault: "client";
17
- xAmzErrorType?: string | undefined;
18
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
19
- }
20
4
  export interface PredictiveDialerConfig {
21
5
  bandwidthAllocation: number | undefined;
22
6
  dialingCapacity?: number | undefined;
@@ -84,62 +68,12 @@ export interface CreateCampaignResponse {
84
68
  arn?: string | undefined;
85
69
  tags?: Record<string, string> | undefined;
86
70
  }
87
- export declare class InternalServerException extends __BaseException {
88
- readonly name: "InternalServerException";
89
- readonly $fault: "server";
90
- $retryable: {};
91
- xAmzErrorType?: string | undefined;
92
- constructor(
93
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
94
- );
95
- }
96
- export declare class ResourceNotFoundException extends __BaseException {
97
- readonly name: "ResourceNotFoundException";
98
- readonly $fault: "client";
99
- xAmzErrorType?: string | undefined;
100
- constructor(
101
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
102
- );
103
- }
104
- export declare class ServiceQuotaExceededException extends __BaseException {
105
- readonly name: "ServiceQuotaExceededException";
106
- readonly $fault: "client";
107
- xAmzErrorType?: string | undefined;
108
- constructor(
109
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
110
- );
111
- }
112
- export declare class ThrottlingException extends __BaseException {
113
- readonly name: "ThrottlingException";
114
- readonly $fault: "client";
115
- $retryable: {};
116
- xAmzErrorType?: string | undefined;
117
- constructor(
118
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
119
- );
120
- }
121
- export declare class ValidationException extends __BaseException {
122
- readonly name: "ValidationException";
123
- readonly $fault: "client";
124
- xAmzErrorType?: string | undefined;
125
- constructor(
126
- opts: __ExceptionOptionType<ValidationException, __BaseException>
127
- );
128
- }
129
71
  export interface DeleteCampaignRequest {
130
72
  id: string | undefined;
131
73
  }
132
74
  export interface DeleteConnectInstanceConfigRequest {
133
75
  connectInstanceId: string | undefined;
134
76
  }
135
- export declare class InvalidStateException extends __BaseException {
136
- readonly name: "InvalidStateException";
137
- readonly $fault: "client";
138
- xAmzErrorType?: string | undefined;
139
- constructor(
140
- opts: __ExceptionOptionType<InvalidStateException, __BaseException>
141
- );
142
- }
143
77
  export interface DeleteInstanceOnboardingJobRequest {
144
78
  connectInstanceId: string | undefined;
145
79
  }
@@ -275,15 +209,6 @@ export interface ListTagsForResourceRequest {
275
209
  export interface ListTagsForResourceResponse {
276
210
  tags?: Record<string, string> | undefined;
277
211
  }
278
- export declare class InvalidCampaignStateException extends __BaseException {
279
- readonly name: "InvalidCampaignStateException";
280
- readonly $fault: "client";
281
- state: CampaignState | undefined;
282
- xAmzErrorType?: string | undefined;
283
- constructor(
284
- opts: __ExceptionOptionType<InvalidCampaignStateException, __BaseException>
285
- );
286
- }
287
212
  export interface PauseCampaignRequest {
288
213
  id: string | undefined;
289
214
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connectcampaigns",
3
3
  "description": "AWS SDK for JavaScript Connectcampaigns Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.935.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-connectcampaigns",
@@ -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",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.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";