@aws-sdk/client-connectcampaignsv2 3.891.0 → 3.894.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist-cjs/index.js +2731 -10
  2. package/package.json +19 -19
  3. package/dist-cjs/ConnectCampaignsV2.js +0 -81
  4. package/dist-cjs/ConnectCampaignsV2Client.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateCampaignCommand.js +0 -27
  7. package/dist-cjs/commands/DeleteCampaignChannelSubtypeConfigCommand.js +0 -26
  8. package/dist-cjs/commands/DeleteCampaignCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteCampaignCommunicationLimitsCommand.js +0 -26
  10. package/dist-cjs/commands/DeleteCampaignCommunicationTimeCommand.js +0 -26
  11. package/dist-cjs/commands/DeleteConnectInstanceConfigCommand.js +0 -26
  12. package/dist-cjs/commands/DeleteConnectInstanceIntegrationCommand.js +0 -26
  13. package/dist-cjs/commands/DeleteInstanceOnboardingJobCommand.js +0 -26
  14. package/dist-cjs/commands/DescribeCampaignCommand.js +0 -27
  15. package/dist-cjs/commands/GetCampaignStateBatchCommand.js +0 -26
  16. package/dist-cjs/commands/GetCampaignStateCommand.js +0 -26
  17. package/dist-cjs/commands/GetConnectInstanceConfigCommand.js +0 -26
  18. package/dist-cjs/commands/GetInstanceCommunicationLimitsCommand.js +0 -26
  19. package/dist-cjs/commands/GetInstanceOnboardingJobStatusCommand.js +0 -26
  20. package/dist-cjs/commands/ListCampaignsCommand.js +0 -26
  21. package/dist-cjs/commands/ListConnectInstanceIntegrationsCommand.js +0 -26
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  23. package/dist-cjs/commands/PauseCampaignCommand.js +0 -26
  24. package/dist-cjs/commands/PutConnectInstanceIntegrationCommand.js +0 -26
  25. package/dist-cjs/commands/PutInstanceCommunicationLimitsCommand.js +0 -26
  26. package/dist-cjs/commands/PutOutboundRequestBatchCommand.js +0 -27
  27. package/dist-cjs/commands/PutProfileOutboundRequestBatchCommand.js +0 -26
  28. package/dist-cjs/commands/ResumeCampaignCommand.js +0 -26
  29. package/dist-cjs/commands/StartCampaignCommand.js +0 -26
  30. package/dist-cjs/commands/StartInstanceOnboardingJobCommand.js +0 -26
  31. package/dist-cjs/commands/StopCampaignCommand.js +0 -26
  32. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  33. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  34. package/dist-cjs/commands/UpdateCampaignChannelSubtypeConfigCommand.js +0 -27
  35. package/dist-cjs/commands/UpdateCampaignCommunicationLimitsCommand.js +0 -26
  36. package/dist-cjs/commands/UpdateCampaignCommunicationTimeCommand.js +0 -26
  37. package/dist-cjs/commands/UpdateCampaignFlowAssociationCommand.js +0 -26
  38. package/dist-cjs/commands/UpdateCampaignNameCommand.js +0 -26
  39. package/dist-cjs/commands/UpdateCampaignScheduleCommand.js +0 -26
  40. package/dist-cjs/commands/UpdateCampaignSourceCommand.js +0 -26
  41. package/dist-cjs/commands/index.js +0 -38
  42. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  43. package/dist-cjs/extensionConfiguration.js +0 -2
  44. package/dist-cjs/models/ConnectCampaignsV2ServiceException.js +0 -12
  45. package/dist-cjs/models/index.js +0 -4
  46. package/dist-cjs/models/models_0.js +0 -432
  47. package/dist-cjs/pagination/Interfaces.js +0 -2
  48. package/dist-cjs/pagination/ListCampaignsPaginator.js +0 -7
  49. package/dist-cjs/pagination/ListConnectInstanceIntegrationsPaginator.js +0 -7
  50. package/dist-cjs/pagination/index.js +0 -6
  51. package/dist-cjs/protocols/Aws_restJson1.js +0 -1289
  52. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,2732 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConnectCampaignsV2ServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ConnectCampaignsV2Client"), exports);
6
- tslib_1.__exportStar(require("./ConnectCampaignsV2"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var ConnectCampaignsV2ServiceException_1 = require("./models/ConnectCampaignsV2ServiceException");
11
- Object.defineProperty(exports, "ConnectCampaignsV2ServiceException", { enumerable: true, get: function () { return ConnectCampaignsV2ServiceException_1.ConnectCampaignsV2ServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ CampaignDeletionPolicy: () => CampaignDeletionPolicy,
26
+ CampaignFilterSensitiveLog: () => CampaignFilterSensitiveLog,
27
+ CampaignState: () => CampaignState,
28
+ ChannelSubtype: () => ChannelSubtype,
29
+ ChannelSubtypeConfigFilterSensitiveLog: () => ChannelSubtypeConfigFilterSensitiveLog,
30
+ ChannelSubtypeParameters: () => ChannelSubtypeParameters,
31
+ ChannelSubtypeParametersFilterSensitiveLog: () => ChannelSubtypeParametersFilterSensitiveLog,
32
+ CommunicationLimitTimeUnit: () => CommunicationLimitTimeUnit,
33
+ CommunicationLimits: () => CommunicationLimits,
34
+ CommunicationLimitsConfigType: () => CommunicationLimitsConfigType,
35
+ CommunicationTimeConfigType: () => CommunicationTimeConfigType,
36
+ ConflictException: () => ConflictException,
37
+ ConnectCampaignsV2: () => ConnectCampaignsV2,
38
+ ConnectCampaignsV2Client: () => ConnectCampaignsV2Client,
39
+ ConnectCampaignsV2ServiceException: () => ConnectCampaignsV2ServiceException,
40
+ CreateCampaignCommand: () => CreateCampaignCommand,
41
+ CreateCampaignRequestFilterSensitiveLog: () => CreateCampaignRequestFilterSensitiveLog,
42
+ DayOfWeek: () => DayOfWeek,
43
+ DeleteCampaignChannelSubtypeConfigCommand: () => DeleteCampaignChannelSubtypeConfigCommand,
44
+ DeleteCampaignCommand: () => DeleteCampaignCommand,
45
+ DeleteCampaignCommunicationLimitsCommand: () => DeleteCampaignCommunicationLimitsCommand,
46
+ DeleteCampaignCommunicationTimeCommand: () => DeleteCampaignCommunicationTimeCommand,
47
+ DeleteConnectInstanceConfigCommand: () => DeleteConnectInstanceConfigCommand,
48
+ DeleteConnectInstanceIntegrationCommand: () => DeleteConnectInstanceIntegrationCommand,
49
+ DeleteInstanceOnboardingJobCommand: () => DeleteInstanceOnboardingJobCommand,
50
+ DescribeCampaignCommand: () => DescribeCampaignCommand,
51
+ DescribeCampaignResponseFilterSensitiveLog: () => DescribeCampaignResponseFilterSensitiveLog,
52
+ EmailChannelSubtypeConfigFilterSensitiveLog: () => EmailChannelSubtypeConfigFilterSensitiveLog,
53
+ EmailChannelSubtypeParametersFilterSensitiveLog: () => EmailChannelSubtypeParametersFilterSensitiveLog,
54
+ EmailOutboundConfigFilterSensitiveLog: () => EmailOutboundConfigFilterSensitiveLog,
55
+ EmailOutboundMode: () => EmailOutboundMode,
56
+ EncryptionType: () => EncryptionType,
57
+ EventType: () => EventType,
58
+ FailureCode: () => FailureCode,
59
+ GetCampaignStateBatchCommand: () => GetCampaignStateBatchCommand,
60
+ GetCampaignStateBatchFailureCode: () => GetCampaignStateBatchFailureCode,
61
+ GetCampaignStateCommand: () => GetCampaignStateCommand,
62
+ GetConnectInstanceConfigCommand: () => GetConnectInstanceConfigCommand,
63
+ GetInstanceCommunicationLimitsCommand: () => GetInstanceCommunicationLimitsCommand,
64
+ GetInstanceOnboardingJobStatusCommand: () => GetInstanceOnboardingJobStatusCommand,
65
+ InstanceIdFilterOperator: () => InstanceIdFilterOperator,
66
+ InstanceLimitsHandling: () => InstanceLimitsHandling,
67
+ InstanceOnboardingJobFailureCode: () => InstanceOnboardingJobFailureCode,
68
+ InstanceOnboardingJobStatusCode: () => InstanceOnboardingJobStatusCode,
69
+ IntegrationConfig: () => IntegrationConfig,
70
+ IntegrationIdentifier: () => IntegrationIdentifier,
71
+ IntegrationSummary: () => IntegrationSummary,
72
+ InternalServerException: () => InternalServerException,
73
+ InvalidCampaignStateException: () => InvalidCampaignStateException,
74
+ InvalidStateException: () => InvalidStateException,
75
+ ListCampaignsCommand: () => ListCampaignsCommand,
76
+ ListConnectInstanceIntegrationsCommand: () => ListConnectInstanceIntegrationsCommand,
77
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
78
+ LocalTimeZoneDetectionType: () => LocalTimeZoneDetectionType,
79
+ OpenHours: () => OpenHours,
80
+ OutboundRequestFilterSensitiveLog: () => OutboundRequestFilterSensitiveLog,
81
+ PauseCampaignCommand: () => PauseCampaignCommand,
82
+ ProfileOutboundRequestFailureCode: () => ProfileOutboundRequestFailureCode,
83
+ PutConnectInstanceIntegrationCommand: () => PutConnectInstanceIntegrationCommand,
84
+ PutInstanceCommunicationLimitsCommand: () => PutInstanceCommunicationLimitsCommand,
85
+ PutOutboundRequestBatchCommand: () => PutOutboundRequestBatchCommand,
86
+ PutOutboundRequestBatchRequestFilterSensitiveLog: () => PutOutboundRequestBatchRequestFilterSensitiveLog,
87
+ PutProfileOutboundRequestBatchCommand: () => PutProfileOutboundRequestBatchCommand,
88
+ ResourceNotFoundException: () => ResourceNotFoundException,
89
+ RestrictedPeriods: () => RestrictedPeriods,
90
+ ResumeCampaignCommand: () => ResumeCampaignCommand,
91
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
92
+ SmsChannelSubtypeParametersFilterSensitiveLog: () => SmsChannelSubtypeParametersFilterSensitiveLog,
93
+ SmsOutboundMode: () => SmsOutboundMode,
94
+ Source: () => Source,
95
+ StartCampaignCommand: () => StartCampaignCommand,
96
+ StartInstanceOnboardingJobCommand: () => StartInstanceOnboardingJobCommand,
97
+ StopCampaignCommand: () => StopCampaignCommand,
98
+ TagResourceCommand: () => TagResourceCommand,
99
+ TelephonyChannelSubtypeParametersFilterSensitiveLog: () => TelephonyChannelSubtypeParametersFilterSensitiveLog,
100
+ TelephonyOutboundMode: () => TelephonyOutboundMode,
101
+ ThrottlingException: () => ThrottlingException,
102
+ UntagResourceCommand: () => UntagResourceCommand,
103
+ UpdateCampaignChannelSubtypeConfigCommand: () => UpdateCampaignChannelSubtypeConfigCommand,
104
+ UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog: () => UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog,
105
+ UpdateCampaignCommunicationLimitsCommand: () => UpdateCampaignCommunicationLimitsCommand,
106
+ UpdateCampaignCommunicationTimeCommand: () => UpdateCampaignCommunicationTimeCommand,
107
+ UpdateCampaignFlowAssociationCommand: () => UpdateCampaignFlowAssociationCommand,
108
+ UpdateCampaignNameCommand: () => UpdateCampaignNameCommand,
109
+ UpdateCampaignScheduleCommand: () => UpdateCampaignScheduleCommand,
110
+ UpdateCampaignSourceCommand: () => UpdateCampaignSourceCommand,
111
+ ValidationException: () => ValidationException,
112
+ __Client: () => import_smithy_client.Client,
113
+ paginateListCampaigns: () => paginateListCampaigns,
114
+ paginateListConnectInstanceIntegrations: () => paginateListConnectInstanceIntegrations
115
+ });
116
+ module.exports = __toCommonJS(index_exports);
117
+
118
+ // src/ConnectCampaignsV2Client.ts
119
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
120
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
121
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
122
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
123
+ var import_config_resolver = require("@smithy/config-resolver");
124
+ var import_core = require("@smithy/core");
125
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
126
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
127
+ var import_middleware_retry = require("@smithy/middleware-retry");
128
+
129
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
130
+
131
+ // src/endpoint/EndpointParameters.ts
132
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
133
+ return Object.assign(options, {
134
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
135
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
136
+ defaultSigningName: "connect-campaigns"
137
+ });
138
+ }, "resolveClientEndpointParameters");
139
+ var commonParams = {
140
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
141
+ Endpoint: { type: "builtInParams", name: "endpoint" },
142
+ Region: { type: "builtInParams", name: "region" },
143
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
144
+ };
145
+
146
+ // src/ConnectCampaignsV2Client.ts
147
+ var import_runtimeConfig = require("././runtimeConfig");
148
+
149
+ // src/runtimeExtensions.ts
150
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
151
+ var import_protocol_http = require("@smithy/protocol-http");
152
+ var import_smithy_client = require("@smithy/smithy-client");
153
+
154
+ // src/auth/httpAuthExtensionConfiguration.ts
155
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
156
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
157
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
158
+ let _credentials = runtimeConfig.credentials;
159
+ return {
160
+ setHttpAuthScheme(httpAuthScheme) {
161
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
162
+ if (index === -1) {
163
+ _httpAuthSchemes.push(httpAuthScheme);
164
+ } else {
165
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
166
+ }
167
+ },
168
+ httpAuthSchemes() {
169
+ return _httpAuthSchemes;
170
+ },
171
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
172
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
173
+ },
174
+ httpAuthSchemeProvider() {
175
+ return _httpAuthSchemeProvider;
176
+ },
177
+ setCredentials(credentials) {
178
+ _credentials = credentials;
179
+ },
180
+ credentials() {
181
+ return _credentials;
182
+ }
183
+ };
184
+ }, "getHttpAuthExtensionConfiguration");
185
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
186
+ return {
187
+ httpAuthSchemes: config.httpAuthSchemes(),
188
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
189
+ credentials: config.credentials()
190
+ };
191
+ }, "resolveHttpAuthRuntimeConfig");
192
+
193
+ // src/runtimeExtensions.ts
194
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
195
+ const extensionConfiguration = Object.assign(
196
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
197
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
198
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
199
+ getHttpAuthExtensionConfiguration(runtimeConfig)
200
+ );
201
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
202
+ return Object.assign(
203
+ runtimeConfig,
204
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
205
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
206
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
207
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
208
+ );
209
+ }, "resolveRuntimeExtensions");
210
+
211
+ // src/ConnectCampaignsV2Client.ts
212
+ var ConnectCampaignsV2Client = class extends import_smithy_client.Client {
213
+ static {
214
+ __name(this, "ConnectCampaignsV2Client");
215
+ }
216
+ /**
217
+ * The resolved configuration of ConnectCampaignsV2Client class. This is resolved and normalized from the {@link ConnectCampaignsV2ClientConfig | constructor configuration interface}.
218
+ */
219
+ config;
220
+ constructor(...[configuration]) {
221
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
222
+ super(_config_0);
223
+ this.initConfig = _config_0;
224
+ const _config_1 = resolveClientEndpointParameters(_config_0);
225
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
226
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
227
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
228
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
229
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
230
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
231
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
232
+ this.config = _config_8;
233
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
234
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
235
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
236
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
237
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
238
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
239
+ this.middlewareStack.use(
240
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
241
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultConnectCampaignsV2HttpAuthSchemeParametersProvider,
242
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
243
+ "aws.auth#sigv4": config.credentials
244
+ }), "identityProviderConfigProvider")
245
+ })
246
+ );
247
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
248
+ }
249
+ /**
250
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
251
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
252
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
253
+ */
254
+ destroy() {
255
+ super.destroy();
256
+ }
257
+ };
258
+
259
+ // src/ConnectCampaignsV2.ts
260
+
261
+
262
+ // src/commands/CreateCampaignCommand.ts
263
+
264
+ var import_middleware_serde = require("@smithy/middleware-serde");
265
+
266
+
267
+ // src/models/models_0.ts
268
+
269
+
270
+ // src/models/ConnectCampaignsV2ServiceException.ts
271
+
272
+ var ConnectCampaignsV2ServiceException = class _ConnectCampaignsV2ServiceException extends import_smithy_client.ServiceException {
273
+ static {
274
+ __name(this, "ConnectCampaignsV2ServiceException");
275
+ }
276
+ /**
277
+ * @internal
278
+ */
279
+ constructor(options) {
280
+ super(options);
281
+ Object.setPrototypeOf(this, _ConnectCampaignsV2ServiceException.prototype);
282
+ }
283
+ };
284
+
285
+ // src/models/models_0.ts
286
+ var AccessDeniedException = class _AccessDeniedException extends ConnectCampaignsV2ServiceException {
287
+ static {
288
+ __name(this, "AccessDeniedException");
289
+ }
290
+ name = "AccessDeniedException";
291
+ $fault = "client";
292
+ /**
293
+ * A header that defines the error encountered while processing the request.
294
+ * @public
295
+ */
296
+ xAmzErrorType;
297
+ /**
298
+ * @internal
299
+ */
300
+ constructor(opts) {
301
+ super({
302
+ name: "AccessDeniedException",
303
+ $fault: "client",
304
+ ...opts
305
+ });
306
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
307
+ this.xAmzErrorType = opts.xAmzErrorType;
308
+ }
309
+ };
310
+ var ConflictException = class _ConflictException extends ConnectCampaignsV2ServiceException {
311
+ static {
312
+ __name(this, "ConflictException");
313
+ }
314
+ name = "ConflictException";
315
+ $fault = "client";
316
+ /**
317
+ * A header that defines the error encountered while processing the request.
318
+ * @public
319
+ */
320
+ xAmzErrorType;
321
+ /**
322
+ * @internal
323
+ */
324
+ constructor(opts) {
325
+ super({
326
+ name: "ConflictException",
327
+ $fault: "client",
328
+ ...opts
329
+ });
330
+ Object.setPrototypeOf(this, _ConflictException.prototype);
331
+ this.xAmzErrorType = opts.xAmzErrorType;
332
+ }
333
+ };
334
+ var EmailOutboundMode;
335
+ ((EmailOutboundMode3) => {
336
+ EmailOutboundMode3.visit = /* @__PURE__ */ __name((value, visitor) => {
337
+ if (value.agentless !== void 0) return visitor.agentless(value.agentless);
338
+ return visitor._(value.$unknown[0], value.$unknown[1]);
339
+ }, "visit");
340
+ })(EmailOutboundMode || (EmailOutboundMode = {}));
341
+ var SmsOutboundMode;
342
+ ((SmsOutboundMode3) => {
343
+ SmsOutboundMode3.visit = /* @__PURE__ */ __name((value, visitor) => {
344
+ if (value.agentless !== void 0) return visitor.agentless(value.agentless);
345
+ return visitor._(value.$unknown[0], value.$unknown[1]);
346
+ }, "visit");
347
+ })(SmsOutboundMode || (SmsOutboundMode = {}));
348
+ var TelephonyOutboundMode;
349
+ ((TelephonyOutboundMode2) => {
350
+ TelephonyOutboundMode2.visit = /* @__PURE__ */ __name((value, visitor) => {
351
+ if (value.progressive !== void 0) return visitor.progressive(value.progressive);
352
+ if (value.predictive !== void 0) return visitor.predictive(value.predictive);
353
+ if (value.agentless !== void 0) return visitor.agentless(value.agentless);
354
+ return visitor._(value.$unknown[0], value.$unknown[1]);
355
+ }, "visit");
356
+ })(TelephonyOutboundMode || (TelephonyOutboundMode = {}));
357
+ var CommunicationLimitTimeUnit = {
358
+ DAY: "DAY"
359
+ };
360
+ var CommunicationLimits;
361
+ ((CommunicationLimits3) => {
362
+ CommunicationLimits3.visit = /* @__PURE__ */ __name((value, visitor) => {
363
+ if (value.communicationLimitsList !== void 0)
364
+ return visitor.communicationLimitsList(value.communicationLimitsList);
365
+ return visitor._(value.$unknown[0], value.$unknown[1]);
366
+ }, "visit");
367
+ })(CommunicationLimits || (CommunicationLimits = {}));
368
+ var InstanceLimitsHandling = {
369
+ OPT_IN: "OPT_IN",
370
+ OPT_OUT: "OPT_OUT"
371
+ };
372
+ var DayOfWeek = {
373
+ FRIDAY: "FRIDAY",
374
+ MONDAY: "MONDAY",
375
+ SATURDAY: "SATURDAY",
376
+ SUNDAY: "SUNDAY",
377
+ THURSDAY: "THURSDAY",
378
+ TUESDAY: "TUESDAY",
379
+ WEDNESDAY: "WEDNESDAY"
380
+ };
381
+ var OpenHours;
382
+ ((OpenHours3) => {
383
+ OpenHours3.visit = /* @__PURE__ */ __name((value, visitor) => {
384
+ if (value.dailyHours !== void 0) return visitor.dailyHours(value.dailyHours);
385
+ return visitor._(value.$unknown[0], value.$unknown[1]);
386
+ }, "visit");
387
+ })(OpenHours || (OpenHours = {}));
388
+ var RestrictedPeriods;
389
+ ((RestrictedPeriods3) => {
390
+ RestrictedPeriods3.visit = /* @__PURE__ */ __name((value, visitor) => {
391
+ if (value.restrictedPeriodList !== void 0) return visitor.restrictedPeriodList(value.restrictedPeriodList);
392
+ return visitor._(value.$unknown[0], value.$unknown[1]);
393
+ }, "visit");
394
+ })(RestrictedPeriods || (RestrictedPeriods = {}));
395
+ var LocalTimeZoneDetectionType = {
396
+ AREA_CODE: "AREA_CODE",
397
+ ZIP_CODE: "ZIP_CODE"
398
+ };
399
+ var Source;
400
+ ((Source3) => {
401
+ Source3.visit = /* @__PURE__ */ __name((value, visitor) => {
402
+ if (value.customerProfilesSegmentArn !== void 0)
403
+ return visitor.customerProfilesSegmentArn(value.customerProfilesSegmentArn);
404
+ if (value.eventTrigger !== void 0) return visitor.eventTrigger(value.eventTrigger);
405
+ return visitor._(value.$unknown[0], value.$unknown[1]);
406
+ }, "visit");
407
+ })(Source || (Source = {}));
408
+ var InternalServerException = class _InternalServerException extends ConnectCampaignsV2ServiceException {
409
+ static {
410
+ __name(this, "InternalServerException");
411
+ }
412
+ name = "InternalServerException";
413
+ $fault = "server";
414
+ $retryable = {};
415
+ /**
416
+ * A header that defines the error encountered while processing the request.
417
+ * @public
418
+ */
419
+ xAmzErrorType;
420
+ /**
421
+ * @internal
422
+ */
423
+ constructor(opts) {
424
+ super({
425
+ name: "InternalServerException",
426
+ $fault: "server",
427
+ ...opts
428
+ });
429
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
430
+ this.xAmzErrorType = opts.xAmzErrorType;
431
+ }
432
+ };
433
+ var ResourceNotFoundException = class _ResourceNotFoundException extends ConnectCampaignsV2ServiceException {
434
+ static {
435
+ __name(this, "ResourceNotFoundException");
436
+ }
437
+ name = "ResourceNotFoundException";
438
+ $fault = "client";
439
+ /**
440
+ * A header that defines the error encountered while processing the request.
441
+ * @public
442
+ */
443
+ xAmzErrorType;
444
+ /**
445
+ * @internal
446
+ */
447
+ constructor(opts) {
448
+ super({
449
+ name: "ResourceNotFoundException",
450
+ $fault: "client",
451
+ ...opts
452
+ });
453
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
454
+ this.xAmzErrorType = opts.xAmzErrorType;
455
+ }
456
+ };
457
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ConnectCampaignsV2ServiceException {
458
+ static {
459
+ __name(this, "ServiceQuotaExceededException");
460
+ }
461
+ name = "ServiceQuotaExceededException";
462
+ $fault = "client";
463
+ /**
464
+ * A header that defines the error encountered while processing the request.
465
+ * @public
466
+ */
467
+ xAmzErrorType;
468
+ /**
469
+ * @internal
470
+ */
471
+ constructor(opts) {
472
+ super({
473
+ name: "ServiceQuotaExceededException",
474
+ $fault: "client",
475
+ ...opts
476
+ });
477
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
478
+ this.xAmzErrorType = opts.xAmzErrorType;
479
+ }
480
+ };
481
+ var ThrottlingException = class _ThrottlingException extends ConnectCampaignsV2ServiceException {
482
+ static {
483
+ __name(this, "ThrottlingException");
484
+ }
485
+ name = "ThrottlingException";
486
+ $fault = "client";
487
+ $retryable = {};
488
+ /**
489
+ * A header that defines the error encountered while processing the request.
490
+ * @public
491
+ */
492
+ xAmzErrorType;
493
+ /**
494
+ * @internal
495
+ */
496
+ constructor(opts) {
497
+ super({
498
+ name: "ThrottlingException",
499
+ $fault: "client",
500
+ ...opts
501
+ });
502
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
503
+ this.xAmzErrorType = opts.xAmzErrorType;
504
+ }
505
+ };
506
+ var ValidationException = class _ValidationException extends ConnectCampaignsV2ServiceException {
507
+ static {
508
+ __name(this, "ValidationException");
509
+ }
510
+ name = "ValidationException";
511
+ $fault = "client";
512
+ /**
513
+ * A header that defines the error encountered while processing the request.
514
+ * @public
515
+ */
516
+ xAmzErrorType;
517
+ /**
518
+ * @internal
519
+ */
520
+ constructor(opts) {
521
+ super({
522
+ name: "ValidationException",
523
+ $fault: "client",
524
+ ...opts
525
+ });
526
+ Object.setPrototypeOf(this, _ValidationException.prototype);
527
+ this.xAmzErrorType = opts.xAmzErrorType;
528
+ }
529
+ };
530
+ var ChannelSubtype = {
531
+ EMAIL: "EMAIL",
532
+ SMS: "SMS",
533
+ TELEPHONY: "TELEPHONY"
534
+ };
535
+ var CommunicationLimitsConfigType = {
536
+ ALL_CHANNEL_SUBTYPES: "ALL_CHANNEL_SUBTYPES"
537
+ };
538
+ var CampaignState = {
539
+ /**
540
+ * Campaign is in completed state
541
+ */
542
+ COMPLETED: "Completed",
543
+ /**
544
+ * Campaign is in failed state
545
+ */
546
+ FAILED: "Failed",
547
+ /**
548
+ * Campaign is in initialized state
549
+ */
550
+ INITIALIZED: "Initialized",
551
+ /**
552
+ * Campaign is in paused state
553
+ */
554
+ PAUSED: "Paused",
555
+ /**
556
+ * Campaign is in running state
557
+ */
558
+ RUNNING: "Running",
559
+ /**
560
+ * Campaign is in stopped state
561
+ */
562
+ STOPPED: "Stopped"
563
+ };
564
+ var InvalidCampaignStateException = class _InvalidCampaignStateException extends ConnectCampaignsV2ServiceException {
565
+ static {
566
+ __name(this, "InvalidCampaignStateException");
567
+ }
568
+ name = "InvalidCampaignStateException";
569
+ $fault = "client";
570
+ /**
571
+ * State of a campaign
572
+ * @public
573
+ */
574
+ state;
575
+ /**
576
+ * A header that defines the error encountered while processing the request.
577
+ * @public
578
+ */
579
+ xAmzErrorType;
580
+ /**
581
+ * @internal
582
+ */
583
+ constructor(opts) {
584
+ super({
585
+ name: "InvalidCampaignStateException",
586
+ $fault: "client",
587
+ ...opts
588
+ });
589
+ Object.setPrototypeOf(this, _InvalidCampaignStateException.prototype);
590
+ this.state = opts.state;
591
+ this.xAmzErrorType = opts.xAmzErrorType;
592
+ }
593
+ };
594
+ var CommunicationTimeConfigType = {
595
+ EMAIL: "EMAIL",
596
+ SMS: "SMS",
597
+ TELEPHONY: "TELEPHONY"
598
+ };
599
+ var CampaignDeletionPolicy = {
600
+ DELETE_ALL: "DELETE_ALL",
601
+ RETAIN_ALL: "RETAIN_ALL"
602
+ };
603
+ var InvalidStateException = class _InvalidStateException extends ConnectCampaignsV2ServiceException {
604
+ static {
605
+ __name(this, "InvalidStateException");
606
+ }
607
+ name = "InvalidStateException";
608
+ $fault = "client";
609
+ /**
610
+ * A header that defines the error encountered while processing the request.
611
+ * @public
612
+ */
613
+ xAmzErrorType;
614
+ /**
615
+ * @internal
616
+ */
617
+ constructor(opts) {
618
+ super({
619
+ name: "InvalidStateException",
620
+ $fault: "client",
621
+ ...opts
622
+ });
623
+ Object.setPrototypeOf(this, _InvalidStateException.prototype);
624
+ this.xAmzErrorType = opts.xAmzErrorType;
625
+ }
626
+ };
627
+ var IntegrationIdentifier;
628
+ ((IntegrationIdentifier3) => {
629
+ IntegrationIdentifier3.visit = /* @__PURE__ */ __name((value, visitor) => {
630
+ if (value.customerProfiles !== void 0) return visitor.customerProfiles(value.customerProfiles);
631
+ if (value.qConnect !== void 0) return visitor.qConnect(value.qConnect);
632
+ return visitor._(value.$unknown[0], value.$unknown[1]);
633
+ }, "visit");
634
+ })(IntegrationIdentifier || (IntegrationIdentifier = {}));
635
+ var GetCampaignStateBatchFailureCode = {
636
+ /**
637
+ * The specified resource was not found
638
+ */
639
+ RESOURCE_NOT_FOUND: "ResourceNotFound",
640
+ /**
641
+ * Unexpected error during processing of request
642
+ */
643
+ UNKNOWN_ERROR: "UnknownError"
644
+ };
645
+ var EncryptionType = {
646
+ KMS: "KMS"
647
+ };
648
+ var InstanceOnboardingJobFailureCode = {
649
+ EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED",
650
+ EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED",
651
+ IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED",
652
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
653
+ KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
654
+ KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND"
655
+ };
656
+ var InstanceOnboardingJobStatusCode = {
657
+ FAILED: "FAILED",
658
+ IN_PROGRESS: "IN_PROGRESS",
659
+ SUCCEEDED: "SUCCEEDED"
660
+ };
661
+ var InstanceIdFilterOperator = {
662
+ /**
663
+ * Equals operator
664
+ */
665
+ EQ: "Eq"
666
+ };
667
+ var EventType = {
668
+ CAMPAIGN_EMAIL: "Campaign-Email",
669
+ CAMPAIGN_ORCHESTRATION: "Campaign-Orchestration",
670
+ CAMPAIGN_SMS: "Campaign-SMS",
671
+ CAMPAIGN_TELEPHONY: "Campaign-Telephony"
672
+ };
673
+ var IntegrationSummary;
674
+ ((IntegrationSummary2) => {
675
+ IntegrationSummary2.visit = /* @__PURE__ */ __name((value, visitor) => {
676
+ if (value.customerProfiles !== void 0) return visitor.customerProfiles(value.customerProfiles);
677
+ if (value.qConnect !== void 0) return visitor.qConnect(value.qConnect);
678
+ return visitor._(value.$unknown[0], value.$unknown[1]);
679
+ }, "visit");
680
+ })(IntegrationSummary || (IntegrationSummary = {}));
681
+ var IntegrationConfig;
682
+ ((IntegrationConfig3) => {
683
+ IntegrationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
684
+ if (value.customerProfiles !== void 0) return visitor.customerProfiles(value.customerProfiles);
685
+ if (value.qConnect !== void 0) return visitor.qConnect(value.qConnect);
686
+ return visitor._(value.$unknown[0], value.$unknown[1]);
687
+ }, "visit");
688
+ })(IntegrationConfig || (IntegrationConfig = {}));
689
+ var ChannelSubtypeParameters;
690
+ ((ChannelSubtypeParameters3) => {
691
+ ChannelSubtypeParameters3.visit = /* @__PURE__ */ __name((value, visitor) => {
692
+ if (value.telephony !== void 0) return visitor.telephony(value.telephony);
693
+ if (value.sms !== void 0) return visitor.sms(value.sms);
694
+ if (value.email !== void 0) return visitor.email(value.email);
695
+ return visitor._(value.$unknown[0], value.$unknown[1]);
696
+ }, "visit");
697
+ })(ChannelSubtypeParameters || (ChannelSubtypeParameters = {}));
698
+ var FailureCode = {
699
+ /**
700
+ * Request throttled due to large number of pending dial requests
701
+ */
702
+ BUFFER_LIMIT_EXCEEDED: "BufferLimitExceeded",
703
+ /**
704
+ * The request failed to satisfy the constraints specified by the service
705
+ */
706
+ INVALID_INPUT: "InvalidInput",
707
+ /**
708
+ * The request was throttled due to excessive usage
709
+ */
710
+ REQUEST_THROTTLED: "RequestThrottled",
711
+ /**
712
+ * Unexpected error during processing of request
713
+ */
714
+ UNKNOWN_ERROR: "UnknownError"
715
+ };
716
+ var ProfileOutboundRequestFailureCode = {
717
+ /**
718
+ * The specified resource conflicts with another resource
719
+ */
720
+ CONFLICT: "Conflict",
721
+ /**
722
+ * The request failed to satisfy the constraints specified by the service
723
+ */
724
+ INVALID_INPUT: "InvalidInput",
725
+ /**
726
+ * Request throttled due to large number of requests
727
+ */
728
+ REQUEST_THROTTLED: "RequestThrottled",
729
+ /**
730
+ * The specified resource was not found
731
+ */
732
+ RESOURCE_NOT_FOUND: "ResourceNotFound",
733
+ /**
734
+ * Unexpected error during processing of request
735
+ */
736
+ UNKNOWN_ERROR: "UnknownError"
737
+ };
738
+ var EmailOutboundConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
739
+ ...obj,
740
+ ...obj.connectSourceEmailAddress && { connectSourceEmailAddress: import_smithy_client.SENSITIVE_STRING },
741
+ ...obj.sourceEmailAddressDisplayName && { sourceEmailAddressDisplayName: import_smithy_client.SENSITIVE_STRING }
742
+ }), "EmailOutboundConfigFilterSensitiveLog");
743
+ var EmailChannelSubtypeConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
744
+ ...obj,
745
+ ...obj.outboundMode && { outboundMode: obj.outboundMode },
746
+ ...obj.defaultOutboundConfig && {
747
+ defaultOutboundConfig: EmailOutboundConfigFilterSensitiveLog(obj.defaultOutboundConfig)
748
+ }
749
+ }), "EmailChannelSubtypeConfigFilterSensitiveLog");
750
+ var ChannelSubtypeConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
751
+ ...obj,
752
+ ...obj.telephony && { telephony: obj.telephony },
753
+ ...obj.sms && { sms: obj.sms },
754
+ ...obj.email && { email: EmailChannelSubtypeConfigFilterSensitiveLog(obj.email) }
755
+ }), "ChannelSubtypeConfigFilterSensitiveLog");
756
+ var CreateCampaignRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
757
+ ...obj,
758
+ ...obj.channelSubtypeConfig && {
759
+ channelSubtypeConfig: ChannelSubtypeConfigFilterSensitiveLog(obj.channelSubtypeConfig)
760
+ },
761
+ ...obj.source && { source: obj.source },
762
+ ...obj.communicationTimeConfig && { communicationTimeConfig: obj.communicationTimeConfig },
763
+ ...obj.communicationLimitsOverride && { communicationLimitsOverride: obj.communicationLimitsOverride }
764
+ }), "CreateCampaignRequestFilterSensitiveLog");
765
+ var CampaignFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
766
+ ...obj,
767
+ ...obj.channelSubtypeConfig && {
768
+ channelSubtypeConfig: ChannelSubtypeConfigFilterSensitiveLog(obj.channelSubtypeConfig)
769
+ },
770
+ ...obj.source && { source: obj.source },
771
+ ...obj.communicationTimeConfig && { communicationTimeConfig: obj.communicationTimeConfig },
772
+ ...obj.communicationLimitsOverride && { communicationLimitsOverride: obj.communicationLimitsOverride }
773
+ }), "CampaignFilterSensitiveLog");
774
+ var DescribeCampaignResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
775
+ ...obj,
776
+ ...obj.campaign && { campaign: CampaignFilterSensitiveLog(obj.campaign) }
777
+ }), "DescribeCampaignResponseFilterSensitiveLog");
778
+ var EmailChannelSubtypeParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
779
+ ...obj,
780
+ ...obj.destinationEmailAddress && { destinationEmailAddress: import_smithy_client.SENSITIVE_STRING },
781
+ ...obj.connectSourceEmailAddress && { connectSourceEmailAddress: import_smithy_client.SENSITIVE_STRING },
782
+ ...obj.templateParameters && { templateParameters: import_smithy_client.SENSITIVE_STRING }
783
+ }), "EmailChannelSubtypeParametersFilterSensitiveLog");
784
+ var SmsChannelSubtypeParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
785
+ ...obj,
786
+ ...obj.destinationPhoneNumber && { destinationPhoneNumber: import_smithy_client.SENSITIVE_STRING },
787
+ ...obj.templateParameters && { templateParameters: import_smithy_client.SENSITIVE_STRING }
788
+ }), "SmsChannelSubtypeParametersFilterSensitiveLog");
789
+ var TelephonyChannelSubtypeParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
790
+ ...obj,
791
+ ...obj.destinationPhoneNumber && { destinationPhoneNumber: import_smithy_client.SENSITIVE_STRING },
792
+ ...obj.attributes && { attributes: import_smithy_client.SENSITIVE_STRING }
793
+ }), "TelephonyChannelSubtypeParametersFilterSensitiveLog");
794
+ var ChannelSubtypeParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
795
+ if (obj.telephony !== void 0)
796
+ return { telephony: TelephonyChannelSubtypeParametersFilterSensitiveLog(obj.telephony) };
797
+ if (obj.sms !== void 0) return { sms: SmsChannelSubtypeParametersFilterSensitiveLog(obj.sms) };
798
+ if (obj.email !== void 0) return { email: EmailChannelSubtypeParametersFilterSensitiveLog(obj.email) };
799
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
800
+ }, "ChannelSubtypeParametersFilterSensitiveLog");
801
+ var OutboundRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
802
+ ...obj,
803
+ ...obj.channelSubtypeParameters && {
804
+ channelSubtypeParameters: ChannelSubtypeParametersFilterSensitiveLog(obj.channelSubtypeParameters)
805
+ }
806
+ }), "OutboundRequestFilterSensitiveLog");
807
+ var PutOutboundRequestBatchRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
808
+ ...obj,
809
+ ...obj.outboundRequests && {
810
+ outboundRequests: obj.outboundRequests.map((item) => OutboundRequestFilterSensitiveLog(item))
811
+ }
812
+ }), "PutOutboundRequestBatchRequestFilterSensitiveLog");
813
+ var UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
814
+ ...obj,
815
+ ...obj.channelSubtypeConfig && {
816
+ channelSubtypeConfig: ChannelSubtypeConfigFilterSensitiveLog(obj.channelSubtypeConfig)
817
+ }
818
+ }), "UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog");
819
+
820
+ // src/protocols/Aws_restJson1.ts
821
+ var import_core2 = require("@aws-sdk/core");
822
+
823
+
824
+ var se_CreateCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
825
+ const b = (0, import_core.requestBuilder)(input, context);
826
+ const headers = {
827
+ "content-type": "application/json"
828
+ };
829
+ b.bp("/v2/campaigns");
830
+ let body;
831
+ body = JSON.stringify(
832
+ (0, import_smithy_client.take)(input, {
833
+ channelSubtypeConfig: /* @__PURE__ */ __name((_) => se_ChannelSubtypeConfig(_, context), "channelSubtypeConfig"),
834
+ communicationLimitsOverride: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "communicationLimitsOverride"),
835
+ communicationTimeConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "communicationTimeConfig"),
836
+ connectCampaignFlowArn: [],
837
+ connectInstanceId: [],
838
+ name: [],
839
+ schedule: /* @__PURE__ */ __name((_) => se_Schedule(_, context), "schedule"),
840
+ source: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "source"),
841
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
842
+ })
843
+ );
844
+ b.m("PUT").h(headers).b(body);
845
+ return b.build();
846
+ }, "se_CreateCampaignCommand");
847
+ var se_DeleteCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
848
+ const b = (0, import_core.requestBuilder)(input, context);
849
+ const headers = {};
850
+ b.bp("/v2/campaigns/{id}");
851
+ b.p("id", () => input.id, "{id}", false);
852
+ let body;
853
+ b.m("DELETE").h(headers).b(body);
854
+ return b.build();
855
+ }, "se_DeleteCampaignCommand");
856
+ var se_DeleteCampaignChannelSubtypeConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
857
+ const b = (0, import_core.requestBuilder)(input, context);
858
+ const headers = {};
859
+ b.bp("/v2/campaigns/{id}/channel-subtype-config");
860
+ b.p("id", () => input.id, "{id}", false);
861
+ const query = (0, import_smithy_client.map)({
862
+ [_cS]: [, (0, import_smithy_client.expectNonNull)(input[_cS], `channelSubtype`)]
863
+ });
864
+ let body;
865
+ b.m("DELETE").h(headers).q(query).b(body);
866
+ return b.build();
867
+ }, "se_DeleteCampaignChannelSubtypeConfigCommand");
868
+ var se_DeleteCampaignCommunicationLimitsCommand = /* @__PURE__ */ __name(async (input, context) => {
869
+ const b = (0, import_core.requestBuilder)(input, context);
870
+ const headers = {};
871
+ b.bp("/v2/campaigns/{id}/communication-limits");
872
+ b.p("id", () => input.id, "{id}", false);
873
+ const query = (0, import_smithy_client.map)({
874
+ [_c]: [, (0, import_smithy_client.expectNonNull)(input[_c], `config`)]
875
+ });
876
+ let body;
877
+ b.m("DELETE").h(headers).q(query).b(body);
878
+ return b.build();
879
+ }, "se_DeleteCampaignCommunicationLimitsCommand");
880
+ var se_DeleteCampaignCommunicationTimeCommand = /* @__PURE__ */ __name(async (input, context) => {
881
+ const b = (0, import_core.requestBuilder)(input, context);
882
+ const headers = {};
883
+ b.bp("/v2/campaigns/{id}/communication-time");
884
+ b.p("id", () => input.id, "{id}", false);
885
+ const query = (0, import_smithy_client.map)({
886
+ [_c]: [, (0, import_smithy_client.expectNonNull)(input[_c], `config`)]
887
+ });
888
+ let body;
889
+ b.m("DELETE").h(headers).q(query).b(body);
890
+ return b.build();
891
+ }, "se_DeleteCampaignCommunicationTimeCommand");
892
+ var se_DeleteConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
893
+ const b = (0, import_core.requestBuilder)(input, context);
894
+ const headers = {};
895
+ b.bp("/v2/connect-instance/{connectInstanceId}/config");
896
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
897
+ const query = (0, import_smithy_client.map)({
898
+ [_cDP]: [, input[_cDP]]
899
+ });
900
+ let body;
901
+ b.m("DELETE").h(headers).q(query).b(body);
902
+ return b.build();
903
+ }, "se_DeleteConnectInstanceConfigCommand");
904
+ var se_DeleteConnectInstanceIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
905
+ const b = (0, import_core.requestBuilder)(input, context);
906
+ const headers = {
907
+ "content-type": "application/json"
908
+ };
909
+ b.bp("/v2/connect-instance/{connectInstanceId}/integrations/delete");
910
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
911
+ let body;
912
+ body = JSON.stringify(
913
+ (0, import_smithy_client.take)(input, {
914
+ integrationIdentifier: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "integrationIdentifier")
915
+ })
916
+ );
917
+ b.m("POST").h(headers).b(body);
918
+ return b.build();
919
+ }, "se_DeleteConnectInstanceIntegrationCommand");
920
+ var se_DeleteInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (input, context) => {
921
+ const b = (0, import_core.requestBuilder)(input, context);
922
+ const headers = {};
923
+ b.bp("/v2/connect-instance/{connectInstanceId}/onboarding");
924
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
925
+ let body;
926
+ b.m("DELETE").h(headers).b(body);
927
+ return b.build();
928
+ }, "se_DeleteInstanceOnboardingJobCommand");
929
+ var se_DescribeCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
930
+ const b = (0, import_core.requestBuilder)(input, context);
931
+ const headers = {};
932
+ b.bp("/v2/campaigns/{id}");
933
+ b.p("id", () => input.id, "{id}", false);
934
+ let body;
935
+ b.m("GET").h(headers).b(body);
936
+ return b.build();
937
+ }, "se_DescribeCampaignCommand");
938
+ var se_GetCampaignStateCommand = /* @__PURE__ */ __name(async (input, context) => {
939
+ const b = (0, import_core.requestBuilder)(input, context);
940
+ const headers = {};
941
+ b.bp("/v2/campaigns/{id}/state");
942
+ b.p("id", () => input.id, "{id}", false);
943
+ let body;
944
+ b.m("GET").h(headers).b(body);
945
+ return b.build();
946
+ }, "se_GetCampaignStateCommand");
947
+ var se_GetCampaignStateBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
948
+ const b = (0, import_core.requestBuilder)(input, context);
949
+ const headers = {
950
+ "content-type": "application/json"
951
+ };
952
+ b.bp("/v2/campaigns-state");
953
+ let body;
954
+ body = JSON.stringify(
955
+ (0, import_smithy_client.take)(input, {
956
+ campaignIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "campaignIds")
957
+ })
958
+ );
959
+ b.m("POST").h(headers).b(body);
960
+ return b.build();
961
+ }, "se_GetCampaignStateBatchCommand");
962
+ var se_GetConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
963
+ const b = (0, import_core.requestBuilder)(input, context);
964
+ const headers = {};
965
+ b.bp("/v2/connect-instance/{connectInstanceId}/config");
966
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
967
+ let body;
968
+ b.m("GET").h(headers).b(body);
969
+ return b.build();
970
+ }, "se_GetConnectInstanceConfigCommand");
971
+ var se_GetInstanceCommunicationLimitsCommand = /* @__PURE__ */ __name(async (input, context) => {
972
+ const b = (0, import_core.requestBuilder)(input, context);
973
+ const headers = {};
974
+ b.bp("/v2/connect-instance/{connectInstanceId}/communication-limits");
975
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
976
+ let body;
977
+ b.m("GET").h(headers).b(body);
978
+ return b.build();
979
+ }, "se_GetInstanceCommunicationLimitsCommand");
980
+ var se_GetInstanceOnboardingJobStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
981
+ const b = (0, import_core.requestBuilder)(input, context);
982
+ const headers = {};
983
+ b.bp("/v2/connect-instance/{connectInstanceId}/onboarding");
984
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
985
+ let body;
986
+ b.m("GET").h(headers).b(body);
987
+ return b.build();
988
+ }, "se_GetInstanceOnboardingJobStatusCommand");
989
+ var se_ListCampaignsCommand = /* @__PURE__ */ __name(async (input, context) => {
990
+ const b = (0, import_core.requestBuilder)(input, context);
991
+ const headers = {
992
+ "content-type": "application/json"
993
+ };
994
+ b.bp("/v2/campaigns-summary");
995
+ let body;
996
+ body = JSON.stringify(
997
+ (0, import_smithy_client.take)(input, {
998
+ filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filters"),
999
+ maxResults: [],
1000
+ nextToken: []
1001
+ })
1002
+ );
1003
+ b.m("POST").h(headers).b(body);
1004
+ return b.build();
1005
+ }, "se_ListCampaignsCommand");
1006
+ var se_ListConnectInstanceIntegrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1007
+ const b = (0, import_core.requestBuilder)(input, context);
1008
+ const headers = {};
1009
+ b.bp("/v2/connect-instance/{connectInstanceId}/integrations");
1010
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
1011
+ const query = (0, import_smithy_client.map)({
1012
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1013
+ [_nT]: [, input[_nT]]
1014
+ });
1015
+ let body;
1016
+ b.m("GET").h(headers).q(query).b(body);
1017
+ return b.build();
1018
+ }, "se_ListConnectInstanceIntegrationsCommand");
1019
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1020
+ const b = (0, import_core.requestBuilder)(input, context);
1021
+ const headers = {};
1022
+ b.bp("/v2/tags/{arn}");
1023
+ b.p("arn", () => input.arn, "{arn}", false);
1024
+ let body;
1025
+ b.m("GET").h(headers).b(body);
1026
+ return b.build();
1027
+ }, "se_ListTagsForResourceCommand");
1028
+ var se_PauseCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
1029
+ const b = (0, import_core.requestBuilder)(input, context);
1030
+ const headers = {};
1031
+ b.bp("/v2/campaigns/{id}/pause");
1032
+ b.p("id", () => input.id, "{id}", false);
1033
+ let body;
1034
+ b.m("POST").h(headers).b(body);
1035
+ return b.build();
1036
+ }, "se_PauseCampaignCommand");
1037
+ var se_PutConnectInstanceIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
1038
+ const b = (0, import_core.requestBuilder)(input, context);
1039
+ const headers = {
1040
+ "content-type": "application/json"
1041
+ };
1042
+ b.bp("/v2/connect-instance/{connectInstanceId}/integrations");
1043
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
1044
+ let body;
1045
+ body = JSON.stringify(
1046
+ (0, import_smithy_client.take)(input, {
1047
+ integrationConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "integrationConfig")
1048
+ })
1049
+ );
1050
+ b.m("PUT").h(headers).b(body);
1051
+ return b.build();
1052
+ }, "se_PutConnectInstanceIntegrationCommand");
1053
+ var se_PutInstanceCommunicationLimitsCommand = /* @__PURE__ */ __name(async (input, context) => {
1054
+ const b = (0, import_core.requestBuilder)(input, context);
1055
+ const headers = {
1056
+ "content-type": "application/json"
1057
+ };
1058
+ b.bp("/v2/connect-instance/{connectInstanceId}/communication-limits");
1059
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
1060
+ let body;
1061
+ body = JSON.stringify(
1062
+ (0, import_smithy_client.take)(input, {
1063
+ communicationLimitsConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "communicationLimitsConfig")
1064
+ })
1065
+ );
1066
+ b.m("PUT").h(headers).b(body);
1067
+ return b.build();
1068
+ }, "se_PutInstanceCommunicationLimitsCommand");
1069
+ var se_PutOutboundRequestBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
1070
+ const b = (0, import_core.requestBuilder)(input, context);
1071
+ const headers = {
1072
+ "content-type": "application/json"
1073
+ };
1074
+ b.bp("/v2/campaigns/{id}/outbound-requests");
1075
+ b.p("id", () => input.id, "{id}", false);
1076
+ let body;
1077
+ body = JSON.stringify(
1078
+ (0, import_smithy_client.take)(input, {
1079
+ outboundRequests: /* @__PURE__ */ __name((_) => se_OutboundRequestList(_, context), "outboundRequests")
1080
+ })
1081
+ );
1082
+ b.m("PUT").h(headers).b(body);
1083
+ return b.build();
1084
+ }, "se_PutOutboundRequestBatchCommand");
1085
+ var se_PutProfileOutboundRequestBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
1086
+ const b = (0, import_core.requestBuilder)(input, context);
1087
+ const headers = {
1088
+ "content-type": "application/json"
1089
+ };
1090
+ b.bp("/v2/campaigns/{id}/profile-outbound-requests");
1091
+ b.p("id", () => input.id, "{id}", false);
1092
+ let body;
1093
+ body = JSON.stringify(
1094
+ (0, import_smithy_client.take)(input, {
1095
+ profileOutboundRequests: /* @__PURE__ */ __name((_) => se_ProfileOutboundRequestList(_, context), "profileOutboundRequests")
1096
+ })
1097
+ );
1098
+ b.m("PUT").h(headers).b(body);
1099
+ return b.build();
1100
+ }, "se_PutProfileOutboundRequestBatchCommand");
1101
+ var se_ResumeCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
1102
+ const b = (0, import_core.requestBuilder)(input, context);
1103
+ const headers = {};
1104
+ b.bp("/v2/campaigns/{id}/resume");
1105
+ b.p("id", () => input.id, "{id}", false);
1106
+ let body;
1107
+ b.m("POST").h(headers).b(body);
1108
+ return b.build();
1109
+ }, "se_ResumeCampaignCommand");
1110
+ var se_StartCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
1111
+ const b = (0, import_core.requestBuilder)(input, context);
1112
+ const headers = {};
1113
+ b.bp("/v2/campaigns/{id}/start");
1114
+ b.p("id", () => input.id, "{id}", false);
1115
+ let body;
1116
+ b.m("POST").h(headers).b(body);
1117
+ return b.build();
1118
+ }, "se_StartCampaignCommand");
1119
+ var se_StartInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1120
+ const b = (0, import_core.requestBuilder)(input, context);
1121
+ const headers = {
1122
+ "content-type": "application/json"
1123
+ };
1124
+ b.bp("/v2/connect-instance/{connectInstanceId}/onboarding");
1125
+ b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
1126
+ let body;
1127
+ body = JSON.stringify(
1128
+ (0, import_smithy_client.take)(input, {
1129
+ encryptionConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfig")
1130
+ })
1131
+ );
1132
+ b.m("PUT").h(headers).b(body);
1133
+ return b.build();
1134
+ }, "se_StartInstanceOnboardingJobCommand");
1135
+ var se_StopCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
1136
+ const b = (0, import_core.requestBuilder)(input, context);
1137
+ const headers = {};
1138
+ b.bp("/v2/campaigns/{id}/stop");
1139
+ b.p("id", () => input.id, "{id}", false);
1140
+ let body;
1141
+ b.m("POST").h(headers).b(body);
1142
+ return b.build();
1143
+ }, "se_StopCampaignCommand");
1144
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1145
+ const b = (0, import_core.requestBuilder)(input, context);
1146
+ const headers = {
1147
+ "content-type": "application/json"
1148
+ };
1149
+ b.bp("/v2/tags/{arn}");
1150
+ b.p("arn", () => input.arn, "{arn}", false);
1151
+ let body;
1152
+ body = JSON.stringify(
1153
+ (0, import_smithy_client.take)(input, {
1154
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1155
+ })
1156
+ );
1157
+ b.m("POST").h(headers).b(body);
1158
+ return b.build();
1159
+ }, "se_TagResourceCommand");
1160
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1161
+ const b = (0, import_core.requestBuilder)(input, context);
1162
+ const headers = {};
1163
+ b.bp("/v2/tags/{arn}");
1164
+ b.p("arn", () => input.arn, "{arn}", false);
1165
+ const query = (0, import_smithy_client.map)({
1166
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
1167
+ });
1168
+ let body;
1169
+ b.m("DELETE").h(headers).q(query).b(body);
1170
+ return b.build();
1171
+ }, "se_UntagResourceCommand");
1172
+ var se_UpdateCampaignChannelSubtypeConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
1173
+ const b = (0, import_core.requestBuilder)(input, context);
1174
+ const headers = {
1175
+ "content-type": "application/json"
1176
+ };
1177
+ b.bp("/v2/campaigns/{id}/channel-subtype-config");
1178
+ b.p("id", () => input.id, "{id}", false);
1179
+ let body;
1180
+ body = JSON.stringify(
1181
+ (0, import_smithy_client.take)(input, {
1182
+ channelSubtypeConfig: /* @__PURE__ */ __name((_) => se_ChannelSubtypeConfig(_, context), "channelSubtypeConfig")
1183
+ })
1184
+ );
1185
+ b.m("POST").h(headers).b(body);
1186
+ return b.build();
1187
+ }, "se_UpdateCampaignChannelSubtypeConfigCommand");
1188
+ var se_UpdateCampaignCommunicationLimitsCommand = /* @__PURE__ */ __name(async (input, context) => {
1189
+ const b = (0, import_core.requestBuilder)(input, context);
1190
+ const headers = {
1191
+ "content-type": "application/json"
1192
+ };
1193
+ b.bp("/v2/campaigns/{id}/communication-limits");
1194
+ b.p("id", () => input.id, "{id}", false);
1195
+ let body;
1196
+ body = JSON.stringify(
1197
+ (0, import_smithy_client.take)(input, {
1198
+ communicationLimitsOverride: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "communicationLimitsOverride")
1199
+ })
1200
+ );
1201
+ b.m("POST").h(headers).b(body);
1202
+ return b.build();
1203
+ }, "se_UpdateCampaignCommunicationLimitsCommand");
1204
+ var se_UpdateCampaignCommunicationTimeCommand = /* @__PURE__ */ __name(async (input, context) => {
1205
+ const b = (0, import_core.requestBuilder)(input, context);
1206
+ const headers = {
1207
+ "content-type": "application/json"
1208
+ };
1209
+ b.bp("/v2/campaigns/{id}/communication-time");
1210
+ b.p("id", () => input.id, "{id}", false);
1211
+ let body;
1212
+ body = JSON.stringify(
1213
+ (0, import_smithy_client.take)(input, {
1214
+ communicationTimeConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "communicationTimeConfig")
1215
+ })
1216
+ );
1217
+ b.m("POST").h(headers).b(body);
1218
+ return b.build();
1219
+ }, "se_UpdateCampaignCommunicationTimeCommand");
1220
+ var se_UpdateCampaignFlowAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
1221
+ const b = (0, import_core.requestBuilder)(input, context);
1222
+ const headers = {
1223
+ "content-type": "application/json"
1224
+ };
1225
+ b.bp("/v2/campaigns/{id}/flow");
1226
+ b.p("id", () => input.id, "{id}", false);
1227
+ let body;
1228
+ body = JSON.stringify(
1229
+ (0, import_smithy_client.take)(input, {
1230
+ connectCampaignFlowArn: []
1231
+ })
1232
+ );
1233
+ b.m("POST").h(headers).b(body);
1234
+ return b.build();
1235
+ }, "se_UpdateCampaignFlowAssociationCommand");
1236
+ var se_UpdateCampaignNameCommand = /* @__PURE__ */ __name(async (input, context) => {
1237
+ const b = (0, import_core.requestBuilder)(input, context);
1238
+ const headers = {
1239
+ "content-type": "application/json"
1240
+ };
1241
+ b.bp("/v2/campaigns/{id}/name");
1242
+ b.p("id", () => input.id, "{id}", false);
1243
+ let body;
1244
+ body = JSON.stringify(
1245
+ (0, import_smithy_client.take)(input, {
1246
+ name: []
1247
+ })
1248
+ );
1249
+ b.m("POST").h(headers).b(body);
1250
+ return b.build();
1251
+ }, "se_UpdateCampaignNameCommand");
1252
+ var se_UpdateCampaignScheduleCommand = /* @__PURE__ */ __name(async (input, context) => {
1253
+ const b = (0, import_core.requestBuilder)(input, context);
1254
+ const headers = {
1255
+ "content-type": "application/json"
1256
+ };
1257
+ b.bp("/v2/campaigns/{id}/schedule");
1258
+ b.p("id", () => input.id, "{id}", false);
1259
+ let body;
1260
+ body = JSON.stringify(
1261
+ (0, import_smithy_client.take)(input, {
1262
+ schedule: /* @__PURE__ */ __name((_) => se_Schedule(_, context), "schedule")
1263
+ })
1264
+ );
1265
+ b.m("POST").h(headers).b(body);
1266
+ return b.build();
1267
+ }, "se_UpdateCampaignScheduleCommand");
1268
+ var se_UpdateCampaignSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1269
+ const b = (0, import_core.requestBuilder)(input, context);
1270
+ const headers = {
1271
+ "content-type": "application/json"
1272
+ };
1273
+ b.bp("/v2/campaigns/{id}/source");
1274
+ b.p("id", () => input.id, "{id}", false);
1275
+ let body;
1276
+ body = JSON.stringify(
1277
+ (0, import_smithy_client.take)(input, {
1278
+ source: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "source")
1279
+ })
1280
+ );
1281
+ b.m("POST").h(headers).b(body);
1282
+ return b.build();
1283
+ }, "se_UpdateCampaignSourceCommand");
1284
+ var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1285
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1286
+ return de_CommandError(output, context);
1287
+ }
1288
+ const contents = (0, import_smithy_client.map)({
1289
+ $metadata: deserializeMetadata(output)
1290
+ });
1291
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1292
+ const doc = (0, import_smithy_client.take)(data, {
1293
+ arn: import_smithy_client.expectString,
1294
+ id: import_smithy_client.expectString,
1295
+ tags: import_smithy_client._json
1296
+ });
1297
+ Object.assign(contents, doc);
1298
+ return contents;
1299
+ }, "de_CreateCampaignCommand");
1300
+ var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1301
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1302
+ return de_CommandError(output, context);
1303
+ }
1304
+ const contents = (0, import_smithy_client.map)({
1305
+ $metadata: deserializeMetadata(output)
1306
+ });
1307
+ await (0, import_smithy_client.collectBody)(output.body, context);
1308
+ return contents;
1309
+ }, "de_DeleteCampaignCommand");
1310
+ var de_DeleteCampaignChannelSubtypeConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1311
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1312
+ return de_CommandError(output, context);
1313
+ }
1314
+ const contents = (0, import_smithy_client.map)({
1315
+ $metadata: deserializeMetadata(output)
1316
+ });
1317
+ await (0, import_smithy_client.collectBody)(output.body, context);
1318
+ return contents;
1319
+ }, "de_DeleteCampaignChannelSubtypeConfigCommand");
1320
+ var de_DeleteCampaignCommunicationLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
1321
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1322
+ return de_CommandError(output, context);
1323
+ }
1324
+ const contents = (0, import_smithy_client.map)({
1325
+ $metadata: deserializeMetadata(output)
1326
+ });
1327
+ await (0, import_smithy_client.collectBody)(output.body, context);
1328
+ return contents;
1329
+ }, "de_DeleteCampaignCommunicationLimitsCommand");
1330
+ var de_DeleteCampaignCommunicationTimeCommand = /* @__PURE__ */ __name(async (output, context) => {
1331
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1332
+ return de_CommandError(output, context);
1333
+ }
1334
+ const contents = (0, import_smithy_client.map)({
1335
+ $metadata: deserializeMetadata(output)
1336
+ });
1337
+ await (0, import_smithy_client.collectBody)(output.body, context);
1338
+ return contents;
1339
+ }, "de_DeleteCampaignCommunicationTimeCommand");
1340
+ var de_DeleteConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1341
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1342
+ return de_CommandError(output, context);
1343
+ }
1344
+ const contents = (0, import_smithy_client.map)({
1345
+ $metadata: deserializeMetadata(output)
1346
+ });
1347
+ await (0, import_smithy_client.collectBody)(output.body, context);
1348
+ return contents;
1349
+ }, "de_DeleteConnectInstanceConfigCommand");
1350
+ var de_DeleteConnectInstanceIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1351
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
+ return de_CommandError(output, context);
1353
+ }
1354
+ const contents = (0, import_smithy_client.map)({
1355
+ $metadata: deserializeMetadata(output)
1356
+ });
1357
+ await (0, import_smithy_client.collectBody)(output.body, context);
1358
+ return contents;
1359
+ }, "de_DeleteConnectInstanceIntegrationCommand");
1360
+ var de_DeleteInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1361
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1362
+ return de_CommandError(output, context);
1363
+ }
1364
+ const contents = (0, import_smithy_client.map)({
1365
+ $metadata: deserializeMetadata(output)
1366
+ });
1367
+ await (0, import_smithy_client.collectBody)(output.body, context);
1368
+ return contents;
1369
+ }, "de_DeleteInstanceOnboardingJobCommand");
1370
+ var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1371
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1372
+ return de_CommandError(output, context);
1373
+ }
1374
+ const contents = (0, import_smithy_client.map)({
1375
+ $metadata: deserializeMetadata(output)
1376
+ });
1377
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1378
+ const doc = (0, import_smithy_client.take)(data, {
1379
+ campaign: /* @__PURE__ */ __name((_) => de_Campaign(_, context), "campaign")
1380
+ });
1381
+ Object.assign(contents, doc);
1382
+ return contents;
1383
+ }, "de_DescribeCampaignCommand");
1384
+ var de_GetCampaignStateCommand = /* @__PURE__ */ __name(async (output, context) => {
1385
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1386
+ return de_CommandError(output, context);
1387
+ }
1388
+ const contents = (0, import_smithy_client.map)({
1389
+ $metadata: deserializeMetadata(output)
1390
+ });
1391
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1392
+ const doc = (0, import_smithy_client.take)(data, {
1393
+ state: import_smithy_client.expectString
1394
+ });
1395
+ Object.assign(contents, doc);
1396
+ return contents;
1397
+ }, "de_GetCampaignStateCommand");
1398
+ var de_GetCampaignStateBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
1399
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1400
+ return de_CommandError(output, context);
1401
+ }
1402
+ const contents = (0, import_smithy_client.map)({
1403
+ $metadata: deserializeMetadata(output)
1404
+ });
1405
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1406
+ const doc = (0, import_smithy_client.take)(data, {
1407
+ failedRequests: import_smithy_client._json,
1408
+ successfulRequests: import_smithy_client._json
1409
+ });
1410
+ Object.assign(contents, doc);
1411
+ return contents;
1412
+ }, "de_GetCampaignStateBatchCommand");
1413
+ var de_GetConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
+ return de_CommandError(output, context);
1416
+ }
1417
+ const contents = (0, import_smithy_client.map)({
1418
+ $metadata: deserializeMetadata(output)
1419
+ });
1420
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1421
+ const doc = (0, import_smithy_client.take)(data, {
1422
+ connectInstanceConfig: import_smithy_client._json
1423
+ });
1424
+ Object.assign(contents, doc);
1425
+ return contents;
1426
+ }, "de_GetConnectInstanceConfigCommand");
1427
+ var de_GetInstanceCommunicationLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
1428
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1429
+ return de_CommandError(output, context);
1430
+ }
1431
+ const contents = (0, import_smithy_client.map)({
1432
+ $metadata: deserializeMetadata(output)
1433
+ });
1434
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1435
+ const doc = (0, import_smithy_client.take)(data, {
1436
+ communicationLimitsConfig: import_smithy_client._json
1437
+ });
1438
+ Object.assign(contents, doc);
1439
+ return contents;
1440
+ }, "de_GetInstanceCommunicationLimitsCommand");
1441
+ var de_GetInstanceOnboardingJobStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1442
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1443
+ return de_CommandError(output, context);
1444
+ }
1445
+ const contents = (0, import_smithy_client.map)({
1446
+ $metadata: deserializeMetadata(output)
1447
+ });
1448
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1449
+ const doc = (0, import_smithy_client.take)(data, {
1450
+ connectInstanceOnboardingJobStatus: import_smithy_client._json
1451
+ });
1452
+ Object.assign(contents, doc);
1453
+ return contents;
1454
+ }, "de_GetInstanceOnboardingJobStatusCommand");
1455
+ var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) => {
1456
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1457
+ return de_CommandError(output, context);
1458
+ }
1459
+ const contents = (0, import_smithy_client.map)({
1460
+ $metadata: deserializeMetadata(output)
1461
+ });
1462
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1463
+ const doc = (0, import_smithy_client.take)(data, {
1464
+ campaignSummaryList: /* @__PURE__ */ __name((_) => de_CampaignSummaryList(_, context), "campaignSummaryList"),
1465
+ nextToken: import_smithy_client.expectString
1466
+ });
1467
+ Object.assign(contents, doc);
1468
+ return contents;
1469
+ }, "de_ListCampaignsCommand");
1470
+ var de_ListConnectInstanceIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1471
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1472
+ return de_CommandError(output, context);
1473
+ }
1474
+ const contents = (0, import_smithy_client.map)({
1475
+ $metadata: deserializeMetadata(output)
1476
+ });
1477
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1478
+ const doc = (0, import_smithy_client.take)(data, {
1479
+ integrationSummaryList: import_smithy_client._json,
1480
+ nextToken: import_smithy_client.expectString
1481
+ });
1482
+ Object.assign(contents, doc);
1483
+ return contents;
1484
+ }, "de_ListConnectInstanceIntegrationsCommand");
1485
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1486
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1487
+ return de_CommandError(output, context);
1488
+ }
1489
+ const contents = (0, import_smithy_client.map)({
1490
+ $metadata: deserializeMetadata(output)
1491
+ });
1492
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1493
+ const doc = (0, import_smithy_client.take)(data, {
1494
+ tags: import_smithy_client._json
1495
+ });
1496
+ Object.assign(contents, doc);
1497
+ return contents;
1498
+ }, "de_ListTagsForResourceCommand");
1499
+ var de_PauseCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1500
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1501
+ return de_CommandError(output, context);
1502
+ }
1503
+ const contents = (0, import_smithy_client.map)({
1504
+ $metadata: deserializeMetadata(output)
1505
+ });
1506
+ await (0, import_smithy_client.collectBody)(output.body, context);
1507
+ return contents;
1508
+ }, "de_PauseCampaignCommand");
1509
+ var de_PutConnectInstanceIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1510
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1511
+ return de_CommandError(output, context);
1512
+ }
1513
+ const contents = (0, import_smithy_client.map)({
1514
+ $metadata: deserializeMetadata(output)
1515
+ });
1516
+ await (0, import_smithy_client.collectBody)(output.body, context);
1517
+ return contents;
1518
+ }, "de_PutConnectInstanceIntegrationCommand");
1519
+ var de_PutInstanceCommunicationLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
1520
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1521
+ return de_CommandError(output, context);
1522
+ }
1523
+ const contents = (0, import_smithy_client.map)({
1524
+ $metadata: deserializeMetadata(output)
1525
+ });
1526
+ await (0, import_smithy_client.collectBody)(output.body, context);
1527
+ return contents;
1528
+ }, "de_PutInstanceCommunicationLimitsCommand");
1529
+ var de_PutOutboundRequestBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1531
+ return de_CommandError(output, context);
1532
+ }
1533
+ const contents = (0, import_smithy_client.map)({
1534
+ $metadata: deserializeMetadata(output)
1535
+ });
1536
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1537
+ const doc = (0, import_smithy_client.take)(data, {
1538
+ failedRequests: import_smithy_client._json,
1539
+ successfulRequests: import_smithy_client._json
1540
+ });
1541
+ Object.assign(contents, doc);
1542
+ return contents;
1543
+ }, "de_PutOutboundRequestBatchCommand");
1544
+ var de_PutProfileOutboundRequestBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
1545
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1546
+ return de_CommandError(output, context);
1547
+ }
1548
+ const contents = (0, import_smithy_client.map)({
1549
+ $metadata: deserializeMetadata(output)
1550
+ });
1551
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1552
+ const doc = (0, import_smithy_client.take)(data, {
1553
+ failedRequests: import_smithy_client._json,
1554
+ successfulRequests: import_smithy_client._json
1555
+ });
1556
+ Object.assign(contents, doc);
1557
+ return contents;
1558
+ }, "de_PutProfileOutboundRequestBatchCommand");
1559
+ var de_ResumeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1560
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1561
+ return de_CommandError(output, context);
1562
+ }
1563
+ const contents = (0, import_smithy_client.map)({
1564
+ $metadata: deserializeMetadata(output)
1565
+ });
1566
+ await (0, import_smithy_client.collectBody)(output.body, context);
1567
+ return contents;
1568
+ }, "de_ResumeCampaignCommand");
1569
+ var de_StartCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1570
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1571
+ return de_CommandError(output, context);
1572
+ }
1573
+ const contents = (0, import_smithy_client.map)({
1574
+ $metadata: deserializeMetadata(output)
1575
+ });
1576
+ await (0, import_smithy_client.collectBody)(output.body, context);
1577
+ return contents;
1578
+ }, "de_StartCampaignCommand");
1579
+ var de_StartInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1580
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1581
+ return de_CommandError(output, context);
1582
+ }
1583
+ const contents = (0, import_smithy_client.map)({
1584
+ $metadata: deserializeMetadata(output)
1585
+ });
1586
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1587
+ const doc = (0, import_smithy_client.take)(data, {
1588
+ connectInstanceOnboardingJobStatus: import_smithy_client._json
1589
+ });
1590
+ Object.assign(contents, doc);
1591
+ return contents;
1592
+ }, "de_StartInstanceOnboardingJobCommand");
1593
+ var de_StopCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1594
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1595
+ return de_CommandError(output, context);
1596
+ }
1597
+ const contents = (0, import_smithy_client.map)({
1598
+ $metadata: deserializeMetadata(output)
1599
+ });
1600
+ await (0, import_smithy_client.collectBody)(output.body, context);
1601
+ return contents;
1602
+ }, "de_StopCampaignCommand");
1603
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1604
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1605
+ return de_CommandError(output, context);
1606
+ }
1607
+ const contents = (0, import_smithy_client.map)({
1608
+ $metadata: deserializeMetadata(output)
1609
+ });
1610
+ await (0, import_smithy_client.collectBody)(output.body, context);
1611
+ return contents;
1612
+ }, "de_TagResourceCommand");
1613
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1614
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1615
+ return de_CommandError(output, context);
1616
+ }
1617
+ const contents = (0, import_smithy_client.map)({
1618
+ $metadata: deserializeMetadata(output)
1619
+ });
1620
+ await (0, import_smithy_client.collectBody)(output.body, context);
1621
+ return contents;
1622
+ }, "de_UntagResourceCommand");
1623
+ var de_UpdateCampaignChannelSubtypeConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1624
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1625
+ return de_CommandError(output, context);
1626
+ }
1627
+ const contents = (0, import_smithy_client.map)({
1628
+ $metadata: deserializeMetadata(output)
1629
+ });
1630
+ await (0, import_smithy_client.collectBody)(output.body, context);
1631
+ return contents;
1632
+ }, "de_UpdateCampaignChannelSubtypeConfigCommand");
1633
+ var de_UpdateCampaignCommunicationLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
1634
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1635
+ return de_CommandError(output, context);
1636
+ }
1637
+ const contents = (0, import_smithy_client.map)({
1638
+ $metadata: deserializeMetadata(output)
1639
+ });
1640
+ await (0, import_smithy_client.collectBody)(output.body, context);
1641
+ return contents;
1642
+ }, "de_UpdateCampaignCommunicationLimitsCommand");
1643
+ var de_UpdateCampaignCommunicationTimeCommand = /* @__PURE__ */ __name(async (output, context) => {
1644
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1645
+ return de_CommandError(output, context);
1646
+ }
1647
+ const contents = (0, import_smithy_client.map)({
1648
+ $metadata: deserializeMetadata(output)
1649
+ });
1650
+ await (0, import_smithy_client.collectBody)(output.body, context);
1651
+ return contents;
1652
+ }, "de_UpdateCampaignCommunicationTimeCommand");
1653
+ var de_UpdateCampaignFlowAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
1654
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1655
+ return de_CommandError(output, context);
1656
+ }
1657
+ const contents = (0, import_smithy_client.map)({
1658
+ $metadata: deserializeMetadata(output)
1659
+ });
1660
+ await (0, import_smithy_client.collectBody)(output.body, context);
1661
+ return contents;
1662
+ }, "de_UpdateCampaignFlowAssociationCommand");
1663
+ var de_UpdateCampaignNameCommand = /* @__PURE__ */ __name(async (output, context) => {
1664
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1665
+ return de_CommandError(output, context);
1666
+ }
1667
+ const contents = (0, import_smithy_client.map)({
1668
+ $metadata: deserializeMetadata(output)
1669
+ });
1670
+ await (0, import_smithy_client.collectBody)(output.body, context);
1671
+ return contents;
1672
+ }, "de_UpdateCampaignNameCommand");
1673
+ var de_UpdateCampaignScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
1674
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1675
+ return de_CommandError(output, context);
1676
+ }
1677
+ const contents = (0, import_smithy_client.map)({
1678
+ $metadata: deserializeMetadata(output)
1679
+ });
1680
+ await (0, import_smithy_client.collectBody)(output.body, context);
1681
+ return contents;
1682
+ }, "de_UpdateCampaignScheduleCommand");
1683
+ var de_UpdateCampaignSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1684
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1685
+ return de_CommandError(output, context);
1686
+ }
1687
+ const contents = (0, import_smithy_client.map)({
1688
+ $metadata: deserializeMetadata(output)
1689
+ });
1690
+ await (0, import_smithy_client.collectBody)(output.body, context);
1691
+ return contents;
1692
+ }, "de_UpdateCampaignSourceCommand");
1693
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1694
+ const parsedOutput = {
1695
+ ...output,
1696
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1697
+ };
1698
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1699
+ switch (errorCode) {
1700
+ case "AccessDeniedException":
1701
+ case "com.amazonaws.connectcampaignsv2#AccessDeniedException":
1702
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1703
+ case "ConflictException":
1704
+ case "com.amazonaws.connectcampaignsv2#ConflictException":
1705
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1706
+ case "InternalServerException":
1707
+ case "com.amazonaws.connectcampaignsv2#InternalServerException":
1708
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1709
+ case "ResourceNotFoundException":
1710
+ case "com.amazonaws.connectcampaignsv2#ResourceNotFoundException":
1711
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1712
+ case "ServiceQuotaExceededException":
1713
+ case "com.amazonaws.connectcampaignsv2#ServiceQuotaExceededException":
1714
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1715
+ case "ThrottlingException":
1716
+ case "com.amazonaws.connectcampaignsv2#ThrottlingException":
1717
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1718
+ case "ValidationException":
1719
+ case "com.amazonaws.connectcampaignsv2#ValidationException":
1720
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1721
+ case "InvalidCampaignStateException":
1722
+ case "com.amazonaws.connectcampaignsv2#InvalidCampaignStateException":
1723
+ throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
1724
+ case "InvalidStateException":
1725
+ case "com.amazonaws.connectcampaignsv2#InvalidStateException":
1726
+ throw await de_InvalidStateExceptionRes(parsedOutput, context);
1727
+ default:
1728
+ const parsedBody = parsedOutput.body;
1729
+ return throwDefaultError({
1730
+ output,
1731
+ parsedBody,
1732
+ errorCode
1733
+ });
1734
+ }
1735
+ }, "de_CommandError");
1736
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ConnectCampaignsV2ServiceException);
1737
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1738
+ const contents = (0, import_smithy_client.map)({
1739
+ [_xAET]: [, parsedOutput.headers[_xae]]
1740
+ });
1741
+ const data = parsedOutput.body;
1742
+ const doc = (0, import_smithy_client.take)(data, {
1743
+ message: import_smithy_client.expectString
1744
+ });
1745
+ Object.assign(contents, doc);
1746
+ const exception = new AccessDeniedException({
1747
+ $metadata: deserializeMetadata(parsedOutput),
1748
+ ...contents
1749
+ });
1750
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1751
+ }, "de_AccessDeniedExceptionRes");
1752
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1753
+ const contents = (0, import_smithy_client.map)({
1754
+ [_xAET]: [, parsedOutput.headers[_xae]]
1755
+ });
1756
+ const data = parsedOutput.body;
1757
+ const doc = (0, import_smithy_client.take)(data, {
1758
+ message: import_smithy_client.expectString
1759
+ });
1760
+ Object.assign(contents, doc);
1761
+ const exception = new ConflictException({
1762
+ $metadata: deserializeMetadata(parsedOutput),
1763
+ ...contents
1764
+ });
1765
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1766
+ }, "de_ConflictExceptionRes");
1767
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1768
+ const contents = (0, import_smithy_client.map)({
1769
+ [_xAET]: [, parsedOutput.headers[_xae]]
1770
+ });
1771
+ const data = parsedOutput.body;
1772
+ const doc = (0, import_smithy_client.take)(data, {
1773
+ message: import_smithy_client.expectString
1774
+ });
1775
+ Object.assign(contents, doc);
1776
+ const exception = new InternalServerException({
1777
+ $metadata: deserializeMetadata(parsedOutput),
1778
+ ...contents
1779
+ });
1780
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1781
+ }, "de_InternalServerExceptionRes");
1782
+ var de_InvalidCampaignStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1783
+ const contents = (0, import_smithy_client.map)({
1784
+ [_xAET]: [, parsedOutput.headers[_xae]]
1785
+ });
1786
+ const data = parsedOutput.body;
1787
+ const doc = (0, import_smithy_client.take)(data, {
1788
+ message: import_smithy_client.expectString,
1789
+ state: import_smithy_client.expectString
1790
+ });
1791
+ Object.assign(contents, doc);
1792
+ const exception = new InvalidCampaignStateException({
1793
+ $metadata: deserializeMetadata(parsedOutput),
1794
+ ...contents
1795
+ });
1796
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1797
+ }, "de_InvalidCampaignStateExceptionRes");
1798
+ var de_InvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1799
+ const contents = (0, import_smithy_client.map)({
1800
+ [_xAET]: [, parsedOutput.headers[_xae]]
1801
+ });
1802
+ const data = parsedOutput.body;
1803
+ const doc = (0, import_smithy_client.take)(data, {
1804
+ message: import_smithy_client.expectString
1805
+ });
1806
+ Object.assign(contents, doc);
1807
+ const exception = new InvalidStateException({
1808
+ $metadata: deserializeMetadata(parsedOutput),
1809
+ ...contents
1810
+ });
1811
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1812
+ }, "de_InvalidStateExceptionRes");
1813
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1814
+ const contents = (0, import_smithy_client.map)({
1815
+ [_xAET]: [, parsedOutput.headers[_xae]]
1816
+ });
1817
+ const data = parsedOutput.body;
1818
+ const doc = (0, import_smithy_client.take)(data, {
1819
+ message: import_smithy_client.expectString
1820
+ });
1821
+ Object.assign(contents, doc);
1822
+ const exception = new ResourceNotFoundException({
1823
+ $metadata: deserializeMetadata(parsedOutput),
1824
+ ...contents
1825
+ });
1826
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1827
+ }, "de_ResourceNotFoundExceptionRes");
1828
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1829
+ const contents = (0, import_smithy_client.map)({
1830
+ [_xAET]: [, parsedOutput.headers[_xae]]
1831
+ });
1832
+ const data = parsedOutput.body;
1833
+ const doc = (0, import_smithy_client.take)(data, {
1834
+ message: import_smithy_client.expectString
1835
+ });
1836
+ Object.assign(contents, doc);
1837
+ const exception = new ServiceQuotaExceededException({
1838
+ $metadata: deserializeMetadata(parsedOutput),
1839
+ ...contents
1840
+ });
1841
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1842
+ }, "de_ServiceQuotaExceededExceptionRes");
1843
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1844
+ const contents = (0, import_smithy_client.map)({
1845
+ [_xAET]: [, parsedOutput.headers[_xae]]
1846
+ });
1847
+ const data = parsedOutput.body;
1848
+ const doc = (0, import_smithy_client.take)(data, {
1849
+ message: import_smithy_client.expectString
1850
+ });
1851
+ Object.assign(contents, doc);
1852
+ const exception = new ThrottlingException({
1853
+ $metadata: deserializeMetadata(parsedOutput),
1854
+ ...contents
1855
+ });
1856
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1857
+ }, "de_ThrottlingExceptionRes");
1858
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1859
+ const contents = (0, import_smithy_client.map)({
1860
+ [_xAET]: [, parsedOutput.headers[_xae]]
1861
+ });
1862
+ const data = parsedOutput.body;
1863
+ const doc = (0, import_smithy_client.take)(data, {
1864
+ message: import_smithy_client.expectString
1865
+ });
1866
+ Object.assign(contents, doc);
1867
+ const exception = new ValidationException({
1868
+ $metadata: deserializeMetadata(parsedOutput),
1869
+ ...contents
1870
+ });
1871
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1872
+ }, "de_ValidationExceptionRes");
1873
+ var se_ChannelSubtypeConfig = /* @__PURE__ */ __name((input, context) => {
1874
+ return (0, import_smithy_client.take)(input, {
1875
+ email: /* @__PURE__ */ __name((_) => se_EmailChannelSubtypeConfig(_, context), "email"),
1876
+ sms: /* @__PURE__ */ __name((_) => se_SmsChannelSubtypeConfig(_, context), "sms"),
1877
+ telephony: /* @__PURE__ */ __name((_) => se_TelephonyChannelSubtypeConfig(_, context), "telephony")
1878
+ });
1879
+ }, "se_ChannelSubtypeConfig");
1880
+ var se_EmailChannelSubtypeConfig = /* @__PURE__ */ __name((input, context) => {
1881
+ return (0, import_smithy_client.take)(input, {
1882
+ capacity: import_smithy_client.serializeFloat,
1883
+ defaultOutboundConfig: import_smithy_client._json,
1884
+ outboundMode: import_smithy_client._json
1885
+ });
1886
+ }, "se_EmailChannelSubtypeConfig");
1887
+ var se_OutboundRequest = /* @__PURE__ */ __name((input, context) => {
1888
+ return (0, import_smithy_client.take)(input, {
1889
+ channelSubtypeParameters: import_smithy_client._json,
1890
+ clientToken: [],
1891
+ expirationTime: import_smithy_client.serializeDateTime
1892
+ });
1893
+ }, "se_OutboundRequest");
1894
+ var se_OutboundRequestList = /* @__PURE__ */ __name((input, context) => {
1895
+ return input.filter((e) => e != null).map((entry) => {
1896
+ return se_OutboundRequest(entry, context);
1897
+ });
1898
+ }, "se_OutboundRequestList");
1899
+ var se_PredictiveConfig = /* @__PURE__ */ __name((input, context) => {
1900
+ return (0, import_smithy_client.take)(input, {
1901
+ bandwidthAllocation: import_smithy_client.serializeFloat
1902
+ });
1903
+ }, "se_PredictiveConfig");
1904
+ var se_ProfileOutboundRequest = /* @__PURE__ */ __name((input, context) => {
1905
+ return (0, import_smithy_client.take)(input, {
1906
+ clientToken: [],
1907
+ expirationTime: import_smithy_client.serializeDateTime,
1908
+ profileId: []
1909
+ });
1910
+ }, "se_ProfileOutboundRequest");
1911
+ var se_ProfileOutboundRequestList = /* @__PURE__ */ __name((input, context) => {
1912
+ return input.filter((e) => e != null).map((entry) => {
1913
+ return se_ProfileOutboundRequest(entry, context);
1914
+ });
1915
+ }, "se_ProfileOutboundRequestList");
1916
+ var se_ProgressiveConfig = /* @__PURE__ */ __name((input, context) => {
1917
+ return (0, import_smithy_client.take)(input, {
1918
+ bandwidthAllocation: import_smithy_client.serializeFloat
1919
+ });
1920
+ }, "se_ProgressiveConfig");
1921
+ var se_Schedule = /* @__PURE__ */ __name((input, context) => {
1922
+ return (0, import_smithy_client.take)(input, {
1923
+ endTime: import_smithy_client.serializeDateTime,
1924
+ refreshFrequency: [],
1925
+ startTime: import_smithy_client.serializeDateTime
1926
+ });
1927
+ }, "se_Schedule");
1928
+ var se_SmsChannelSubtypeConfig = /* @__PURE__ */ __name((input, context) => {
1929
+ return (0, import_smithy_client.take)(input, {
1930
+ capacity: import_smithy_client.serializeFloat,
1931
+ defaultOutboundConfig: import_smithy_client._json,
1932
+ outboundMode: import_smithy_client._json
1933
+ });
1934
+ }, "se_SmsChannelSubtypeConfig");
1935
+ var se_TelephonyChannelSubtypeConfig = /* @__PURE__ */ __name((input, context) => {
1936
+ return (0, import_smithy_client.take)(input, {
1937
+ capacity: import_smithy_client.serializeFloat,
1938
+ connectQueueId: [],
1939
+ defaultOutboundConfig: import_smithy_client._json,
1940
+ outboundMode: /* @__PURE__ */ __name((_) => se_TelephonyOutboundMode(_, context), "outboundMode")
1941
+ });
1942
+ }, "se_TelephonyChannelSubtypeConfig");
1943
+ var se_TelephonyOutboundMode = /* @__PURE__ */ __name((input, context) => {
1944
+ return TelephonyOutboundMode.visit(input, {
1945
+ agentless: /* @__PURE__ */ __name((value) => ({ agentless: (0, import_smithy_client._json)(value) }), "agentless"),
1946
+ predictive: /* @__PURE__ */ __name((value) => ({ predictive: se_PredictiveConfig(value, context) }), "predictive"),
1947
+ progressive: /* @__PURE__ */ __name((value) => ({ progressive: se_ProgressiveConfig(value, context) }), "progressive"),
1948
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
1949
+ });
1950
+ }, "se_TelephonyOutboundMode");
1951
+ var de_Campaign = /* @__PURE__ */ __name((output, context) => {
1952
+ return (0, import_smithy_client.take)(output, {
1953
+ arn: import_smithy_client.expectString,
1954
+ channelSubtypeConfig: /* @__PURE__ */ __name((_) => de_ChannelSubtypeConfig(_, context), "channelSubtypeConfig"),
1955
+ communicationLimitsOverride: import_smithy_client._json,
1956
+ communicationTimeConfig: import_smithy_client._json,
1957
+ connectCampaignFlowArn: import_smithy_client.expectString,
1958
+ connectInstanceId: import_smithy_client.expectString,
1959
+ id: import_smithy_client.expectString,
1960
+ name: import_smithy_client.expectString,
1961
+ schedule: /* @__PURE__ */ __name((_) => de_Schedule(_, context), "schedule"),
1962
+ source: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "source"),
1963
+ tags: import_smithy_client._json
1964
+ });
1965
+ }, "de_Campaign");
1966
+ var de_CampaignSummary = /* @__PURE__ */ __name((output, context) => {
1967
+ return (0, import_smithy_client.take)(output, {
1968
+ arn: import_smithy_client.expectString,
1969
+ channelSubtypes: import_smithy_client._json,
1970
+ connectCampaignFlowArn: import_smithy_client.expectString,
1971
+ connectInstanceId: import_smithy_client.expectString,
1972
+ id: import_smithy_client.expectString,
1973
+ name: import_smithy_client.expectString,
1974
+ schedule: /* @__PURE__ */ __name((_) => de_Schedule(_, context), "schedule")
1975
+ });
1976
+ }, "de_CampaignSummary");
1977
+ var de_CampaignSummaryList = /* @__PURE__ */ __name((output, context) => {
1978
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1979
+ return de_CampaignSummary(entry, context);
1980
+ });
1981
+ return retVal;
1982
+ }, "de_CampaignSummaryList");
1983
+ var de_ChannelSubtypeConfig = /* @__PURE__ */ __name((output, context) => {
1984
+ return (0, import_smithy_client.take)(output, {
1985
+ email: /* @__PURE__ */ __name((_) => de_EmailChannelSubtypeConfig(_, context), "email"),
1986
+ sms: /* @__PURE__ */ __name((_) => de_SmsChannelSubtypeConfig(_, context), "sms"),
1987
+ telephony: /* @__PURE__ */ __name((_) => de_TelephonyChannelSubtypeConfig(_, context), "telephony")
1988
+ });
1989
+ }, "de_ChannelSubtypeConfig");
1990
+ var de_EmailChannelSubtypeConfig = /* @__PURE__ */ __name((output, context) => {
1991
+ return (0, import_smithy_client.take)(output, {
1992
+ capacity: import_smithy_client.limitedParseDouble,
1993
+ defaultOutboundConfig: import_smithy_client._json,
1994
+ outboundMode: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "outboundMode")
1995
+ });
1996
+ }, "de_EmailChannelSubtypeConfig");
1997
+ var de_PredictiveConfig = /* @__PURE__ */ __name((output, context) => {
1998
+ return (0, import_smithy_client.take)(output, {
1999
+ bandwidthAllocation: import_smithy_client.limitedParseDouble
2000
+ });
2001
+ }, "de_PredictiveConfig");
2002
+ var de_ProgressiveConfig = /* @__PURE__ */ __name((output, context) => {
2003
+ return (0, import_smithy_client.take)(output, {
2004
+ bandwidthAllocation: import_smithy_client.limitedParseDouble
2005
+ });
2006
+ }, "de_ProgressiveConfig");
2007
+ var de_Schedule = /* @__PURE__ */ __name((output, context) => {
2008
+ return (0, import_smithy_client.take)(output, {
2009
+ endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "endTime"),
2010
+ refreshFrequency: import_smithy_client.expectString,
2011
+ startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startTime")
2012
+ });
2013
+ }, "de_Schedule");
2014
+ var de_SmsChannelSubtypeConfig = /* @__PURE__ */ __name((output, context) => {
2015
+ return (0, import_smithy_client.take)(output, {
2016
+ capacity: import_smithy_client.limitedParseDouble,
2017
+ defaultOutboundConfig: import_smithy_client._json,
2018
+ outboundMode: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "outboundMode")
2019
+ });
2020
+ }, "de_SmsChannelSubtypeConfig");
2021
+ var de_TelephonyChannelSubtypeConfig = /* @__PURE__ */ __name((output, context) => {
2022
+ return (0, import_smithy_client.take)(output, {
2023
+ capacity: import_smithy_client.limitedParseDouble,
2024
+ connectQueueId: import_smithy_client.expectString,
2025
+ defaultOutboundConfig: import_smithy_client._json,
2026
+ outboundMode: /* @__PURE__ */ __name((_) => de_TelephonyOutboundMode((0, import_core2.awsExpectUnion)(_), context), "outboundMode")
2027
+ });
2028
+ }, "de_TelephonyChannelSubtypeConfig");
2029
+ var de_TelephonyOutboundMode = /* @__PURE__ */ __name((output, context) => {
2030
+ if (output.agentless != null) {
2031
+ return {
2032
+ agentless: (0, import_smithy_client._json)(output.agentless)
2033
+ };
2034
+ }
2035
+ if (output.predictive != null) {
2036
+ return {
2037
+ predictive: de_PredictiveConfig(output.predictive, context)
2038
+ };
2039
+ }
2040
+ if (output.progressive != null) {
2041
+ return {
2042
+ progressive: de_ProgressiveConfig(output.progressive, context)
2043
+ };
2044
+ }
2045
+ return { $unknown: Object.entries(output)[0] };
2046
+ }, "de_TelephonyOutboundMode");
2047
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2048
+ httpStatusCode: output.statusCode,
2049
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2050
+ extendedRequestId: output.headers["x-amz-id-2"],
2051
+ cfId: output.headers["x-amz-cf-id"]
2052
+ }), "deserializeMetadata");
2053
+ var _c = "config";
2054
+ var _cDP = "campaignDeletionPolicy";
2055
+ var _cS = "channelSubtype";
2056
+ var _mR = "maxResults";
2057
+ var _nT = "nextToken";
2058
+ var _tK = "tagKeys";
2059
+ var _xAET = "xAmzErrorType";
2060
+ var _xae = "x-amzn-errortype";
2061
+
2062
+ // src/commands/CreateCampaignCommand.ts
2063
+ var CreateCampaignCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2064
+ return [
2065
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2066
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2067
+ ];
2068
+ }).s("AmazonConnectCampaignServiceV2", "CreateCampaign", {}).n("ConnectCampaignsV2Client", "CreateCampaignCommand").f(CreateCampaignRequestFilterSensitiveLog, void 0).ser(se_CreateCampaignCommand).de(de_CreateCampaignCommand).build() {
2069
+ static {
2070
+ __name(this, "CreateCampaignCommand");
2071
+ }
2072
+ };
2073
+
2074
+ // src/commands/DeleteCampaignChannelSubtypeConfigCommand.ts
2075
+
2076
+
2077
+
2078
+ var DeleteCampaignChannelSubtypeConfigCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2079
+ return [
2080
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2081
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2082
+ ];
2083
+ }).s("AmazonConnectCampaignServiceV2", "DeleteCampaignChannelSubtypeConfig", {}).n("ConnectCampaignsV2Client", "DeleteCampaignChannelSubtypeConfigCommand").f(void 0, void 0).ser(se_DeleteCampaignChannelSubtypeConfigCommand).de(de_DeleteCampaignChannelSubtypeConfigCommand).build() {
2084
+ static {
2085
+ __name(this, "DeleteCampaignChannelSubtypeConfigCommand");
2086
+ }
2087
+ };
2088
+
2089
+ // src/commands/DeleteCampaignCommand.ts
2090
+
2091
+
2092
+
2093
+ var DeleteCampaignCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2094
+ return [
2095
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2096
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2097
+ ];
2098
+ }).s("AmazonConnectCampaignServiceV2", "DeleteCampaign", {}).n("ConnectCampaignsV2Client", "DeleteCampaignCommand").f(void 0, void 0).ser(se_DeleteCampaignCommand).de(de_DeleteCampaignCommand).build() {
2099
+ static {
2100
+ __name(this, "DeleteCampaignCommand");
2101
+ }
2102
+ };
2103
+
2104
+ // src/commands/DeleteCampaignCommunicationLimitsCommand.ts
2105
+
2106
+
2107
+
2108
+ var DeleteCampaignCommunicationLimitsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2109
+ return [
2110
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2111
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2112
+ ];
2113
+ }).s("AmazonConnectCampaignServiceV2", "DeleteCampaignCommunicationLimits", {}).n("ConnectCampaignsV2Client", "DeleteCampaignCommunicationLimitsCommand").f(void 0, void 0).ser(se_DeleteCampaignCommunicationLimitsCommand).de(de_DeleteCampaignCommunicationLimitsCommand).build() {
2114
+ static {
2115
+ __name(this, "DeleteCampaignCommunicationLimitsCommand");
2116
+ }
2117
+ };
2118
+
2119
+ // src/commands/DeleteCampaignCommunicationTimeCommand.ts
2120
+
2121
+
2122
+
2123
+ var DeleteCampaignCommunicationTimeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2124
+ return [
2125
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2126
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2127
+ ];
2128
+ }).s("AmazonConnectCampaignServiceV2", "DeleteCampaignCommunicationTime", {}).n("ConnectCampaignsV2Client", "DeleteCampaignCommunicationTimeCommand").f(void 0, void 0).ser(se_DeleteCampaignCommunicationTimeCommand).de(de_DeleteCampaignCommunicationTimeCommand).build() {
2129
+ static {
2130
+ __name(this, "DeleteCampaignCommunicationTimeCommand");
2131
+ }
2132
+ };
2133
+
2134
+ // src/commands/DeleteConnectInstanceConfigCommand.ts
2135
+
2136
+
2137
+
2138
+ var DeleteConnectInstanceConfigCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2139
+ return [
2140
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2141
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2142
+ ];
2143
+ }).s("AmazonConnectCampaignServiceV2", "DeleteConnectInstanceConfig", {}).n("ConnectCampaignsV2Client", "DeleteConnectInstanceConfigCommand").f(void 0, void 0).ser(se_DeleteConnectInstanceConfigCommand).de(de_DeleteConnectInstanceConfigCommand).build() {
2144
+ static {
2145
+ __name(this, "DeleteConnectInstanceConfigCommand");
2146
+ }
2147
+ };
2148
+
2149
+ // src/commands/DeleteConnectInstanceIntegrationCommand.ts
2150
+
2151
+
2152
+
2153
+ var DeleteConnectInstanceIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2154
+ return [
2155
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2156
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2157
+ ];
2158
+ }).s("AmazonConnectCampaignServiceV2", "DeleteConnectInstanceIntegration", {}).n("ConnectCampaignsV2Client", "DeleteConnectInstanceIntegrationCommand").f(void 0, void 0).ser(se_DeleteConnectInstanceIntegrationCommand).de(de_DeleteConnectInstanceIntegrationCommand).build() {
2159
+ static {
2160
+ __name(this, "DeleteConnectInstanceIntegrationCommand");
2161
+ }
2162
+ };
2163
+
2164
+ // src/commands/DeleteInstanceOnboardingJobCommand.ts
2165
+
2166
+
2167
+
2168
+ var DeleteInstanceOnboardingJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2169
+ return [
2170
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2171
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2172
+ ];
2173
+ }).s("AmazonConnectCampaignServiceV2", "DeleteInstanceOnboardingJob", {}).n("ConnectCampaignsV2Client", "DeleteInstanceOnboardingJobCommand").f(void 0, void 0).ser(se_DeleteInstanceOnboardingJobCommand).de(de_DeleteInstanceOnboardingJobCommand).build() {
2174
+ static {
2175
+ __name(this, "DeleteInstanceOnboardingJobCommand");
2176
+ }
2177
+ };
2178
+
2179
+ // src/commands/DescribeCampaignCommand.ts
2180
+
2181
+
2182
+
2183
+ var DescribeCampaignCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2184
+ return [
2185
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2186
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2187
+ ];
2188
+ }).s("AmazonConnectCampaignServiceV2", "DescribeCampaign", {}).n("ConnectCampaignsV2Client", "DescribeCampaignCommand").f(void 0, DescribeCampaignResponseFilterSensitiveLog).ser(se_DescribeCampaignCommand).de(de_DescribeCampaignCommand).build() {
2189
+ static {
2190
+ __name(this, "DescribeCampaignCommand");
2191
+ }
2192
+ };
2193
+
2194
+ // src/commands/GetCampaignStateBatchCommand.ts
2195
+
2196
+
2197
+
2198
+ var GetCampaignStateBatchCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2199
+ return [
2200
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2201
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2202
+ ];
2203
+ }).s("AmazonConnectCampaignServiceV2", "GetCampaignStateBatch", {}).n("ConnectCampaignsV2Client", "GetCampaignStateBatchCommand").f(void 0, void 0).ser(se_GetCampaignStateBatchCommand).de(de_GetCampaignStateBatchCommand).build() {
2204
+ static {
2205
+ __name(this, "GetCampaignStateBatchCommand");
2206
+ }
2207
+ };
2208
+
2209
+ // src/commands/GetCampaignStateCommand.ts
2210
+
2211
+
2212
+
2213
+ var GetCampaignStateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2214
+ return [
2215
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2216
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2217
+ ];
2218
+ }).s("AmazonConnectCampaignServiceV2", "GetCampaignState", {}).n("ConnectCampaignsV2Client", "GetCampaignStateCommand").f(void 0, void 0).ser(se_GetCampaignStateCommand).de(de_GetCampaignStateCommand).build() {
2219
+ static {
2220
+ __name(this, "GetCampaignStateCommand");
2221
+ }
2222
+ };
2223
+
2224
+ // src/commands/GetConnectInstanceConfigCommand.ts
2225
+
2226
+
2227
+
2228
+ var GetConnectInstanceConfigCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2229
+ return [
2230
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2231
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2232
+ ];
2233
+ }).s("AmazonConnectCampaignServiceV2", "GetConnectInstanceConfig", {}).n("ConnectCampaignsV2Client", "GetConnectInstanceConfigCommand").f(void 0, void 0).ser(se_GetConnectInstanceConfigCommand).de(de_GetConnectInstanceConfigCommand).build() {
2234
+ static {
2235
+ __name(this, "GetConnectInstanceConfigCommand");
2236
+ }
2237
+ };
2238
+
2239
+ // src/commands/GetInstanceCommunicationLimitsCommand.ts
2240
+
2241
+
2242
+
2243
+ var GetInstanceCommunicationLimitsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2244
+ return [
2245
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2246
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2247
+ ];
2248
+ }).s("AmazonConnectCampaignServiceV2", "GetInstanceCommunicationLimits", {}).n("ConnectCampaignsV2Client", "GetInstanceCommunicationLimitsCommand").f(void 0, void 0).ser(se_GetInstanceCommunicationLimitsCommand).de(de_GetInstanceCommunicationLimitsCommand).build() {
2249
+ static {
2250
+ __name(this, "GetInstanceCommunicationLimitsCommand");
2251
+ }
2252
+ };
2253
+
2254
+ // src/commands/GetInstanceOnboardingJobStatusCommand.ts
2255
+
2256
+
2257
+
2258
+ var GetInstanceOnboardingJobStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2259
+ return [
2260
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2261
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2262
+ ];
2263
+ }).s("AmazonConnectCampaignServiceV2", "GetInstanceOnboardingJobStatus", {}).n("ConnectCampaignsV2Client", "GetInstanceOnboardingJobStatusCommand").f(void 0, void 0).ser(se_GetInstanceOnboardingJobStatusCommand).de(de_GetInstanceOnboardingJobStatusCommand).build() {
2264
+ static {
2265
+ __name(this, "GetInstanceOnboardingJobStatusCommand");
2266
+ }
2267
+ };
2268
+
2269
+ // src/commands/ListCampaignsCommand.ts
2270
+
2271
+
2272
+
2273
+ var ListCampaignsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2274
+ return [
2275
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2276
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2277
+ ];
2278
+ }).s("AmazonConnectCampaignServiceV2", "ListCampaigns", {}).n("ConnectCampaignsV2Client", "ListCampaignsCommand").f(void 0, void 0).ser(se_ListCampaignsCommand).de(de_ListCampaignsCommand).build() {
2279
+ static {
2280
+ __name(this, "ListCampaignsCommand");
2281
+ }
2282
+ };
2283
+
2284
+ // src/commands/ListConnectInstanceIntegrationsCommand.ts
2285
+
2286
+
2287
+
2288
+ var ListConnectInstanceIntegrationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2289
+ return [
2290
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2291
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2292
+ ];
2293
+ }).s("AmazonConnectCampaignServiceV2", "ListConnectInstanceIntegrations", {}).n("ConnectCampaignsV2Client", "ListConnectInstanceIntegrationsCommand").f(void 0, void 0).ser(se_ListConnectInstanceIntegrationsCommand).de(de_ListConnectInstanceIntegrationsCommand).build() {
2294
+ static {
2295
+ __name(this, "ListConnectInstanceIntegrationsCommand");
2296
+ }
2297
+ };
2298
+
2299
+ // src/commands/ListTagsForResourceCommand.ts
2300
+
2301
+
2302
+
2303
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2304
+ return [
2305
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2306
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2307
+ ];
2308
+ }).s("AmazonConnectCampaignServiceV2", "ListTagsForResource", {}).n("ConnectCampaignsV2Client", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2309
+ static {
2310
+ __name(this, "ListTagsForResourceCommand");
2311
+ }
2312
+ };
2313
+
2314
+ // src/commands/PauseCampaignCommand.ts
2315
+
2316
+
2317
+
2318
+ var PauseCampaignCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2319
+ return [
2320
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2321
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2322
+ ];
2323
+ }).s("AmazonConnectCampaignServiceV2", "PauseCampaign", {}).n("ConnectCampaignsV2Client", "PauseCampaignCommand").f(void 0, void 0).ser(se_PauseCampaignCommand).de(de_PauseCampaignCommand).build() {
2324
+ static {
2325
+ __name(this, "PauseCampaignCommand");
2326
+ }
2327
+ };
2328
+
2329
+ // src/commands/PutConnectInstanceIntegrationCommand.ts
2330
+
2331
+
2332
+
2333
+ var PutConnectInstanceIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2334
+ return [
2335
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2336
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2337
+ ];
2338
+ }).s("AmazonConnectCampaignServiceV2", "PutConnectInstanceIntegration", {}).n("ConnectCampaignsV2Client", "PutConnectInstanceIntegrationCommand").f(void 0, void 0).ser(se_PutConnectInstanceIntegrationCommand).de(de_PutConnectInstanceIntegrationCommand).build() {
2339
+ static {
2340
+ __name(this, "PutConnectInstanceIntegrationCommand");
2341
+ }
2342
+ };
2343
+
2344
+ // src/commands/PutInstanceCommunicationLimitsCommand.ts
2345
+
2346
+
2347
+
2348
+ var PutInstanceCommunicationLimitsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2349
+ return [
2350
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2351
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2352
+ ];
2353
+ }).s("AmazonConnectCampaignServiceV2", "PutInstanceCommunicationLimits", {}).n("ConnectCampaignsV2Client", "PutInstanceCommunicationLimitsCommand").f(void 0, void 0).ser(se_PutInstanceCommunicationLimitsCommand).de(de_PutInstanceCommunicationLimitsCommand).build() {
2354
+ static {
2355
+ __name(this, "PutInstanceCommunicationLimitsCommand");
2356
+ }
2357
+ };
2358
+
2359
+ // src/commands/PutOutboundRequestBatchCommand.ts
2360
+
2361
+
2362
+
2363
+ var PutOutboundRequestBatchCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2364
+ return [
2365
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2366
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2367
+ ];
2368
+ }).s("AmazonConnectCampaignServiceV2", "PutOutboundRequestBatch", {}).n("ConnectCampaignsV2Client", "PutOutboundRequestBatchCommand").f(PutOutboundRequestBatchRequestFilterSensitiveLog, void 0).ser(se_PutOutboundRequestBatchCommand).de(de_PutOutboundRequestBatchCommand).build() {
2369
+ static {
2370
+ __name(this, "PutOutboundRequestBatchCommand");
2371
+ }
2372
+ };
2373
+
2374
+ // src/commands/PutProfileOutboundRequestBatchCommand.ts
2375
+
2376
+
2377
+
2378
+ var PutProfileOutboundRequestBatchCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2379
+ return [
2380
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2381
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2382
+ ];
2383
+ }).s("AmazonConnectCampaignServiceV2", "PutProfileOutboundRequestBatch", {}).n("ConnectCampaignsV2Client", "PutProfileOutboundRequestBatchCommand").f(void 0, void 0).ser(se_PutProfileOutboundRequestBatchCommand).de(de_PutProfileOutboundRequestBatchCommand).build() {
2384
+ static {
2385
+ __name(this, "PutProfileOutboundRequestBatchCommand");
2386
+ }
2387
+ };
2388
+
2389
+ // src/commands/ResumeCampaignCommand.ts
2390
+
2391
+
2392
+
2393
+ var ResumeCampaignCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2394
+ return [
2395
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2396
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2397
+ ];
2398
+ }).s("AmazonConnectCampaignServiceV2", "ResumeCampaign", {}).n("ConnectCampaignsV2Client", "ResumeCampaignCommand").f(void 0, void 0).ser(se_ResumeCampaignCommand).de(de_ResumeCampaignCommand).build() {
2399
+ static {
2400
+ __name(this, "ResumeCampaignCommand");
2401
+ }
2402
+ };
2403
+
2404
+ // src/commands/StartCampaignCommand.ts
2405
+
2406
+
2407
+
2408
+ var StartCampaignCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2409
+ return [
2410
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2411
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2412
+ ];
2413
+ }).s("AmazonConnectCampaignServiceV2", "StartCampaign", {}).n("ConnectCampaignsV2Client", "StartCampaignCommand").f(void 0, void 0).ser(se_StartCampaignCommand).de(de_StartCampaignCommand).build() {
2414
+ static {
2415
+ __name(this, "StartCampaignCommand");
2416
+ }
2417
+ };
2418
+
2419
+ // src/commands/StartInstanceOnboardingJobCommand.ts
2420
+
2421
+
2422
+
2423
+ var StartInstanceOnboardingJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2424
+ return [
2425
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2426
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2427
+ ];
2428
+ }).s("AmazonConnectCampaignServiceV2", "StartInstanceOnboardingJob", {}).n("ConnectCampaignsV2Client", "StartInstanceOnboardingJobCommand").f(void 0, void 0).ser(se_StartInstanceOnboardingJobCommand).de(de_StartInstanceOnboardingJobCommand).build() {
2429
+ static {
2430
+ __name(this, "StartInstanceOnboardingJobCommand");
2431
+ }
2432
+ };
2433
+
2434
+ // src/commands/StopCampaignCommand.ts
2435
+
2436
+
2437
+
2438
+ var StopCampaignCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2439
+ return [
2440
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2441
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2442
+ ];
2443
+ }).s("AmazonConnectCampaignServiceV2", "StopCampaign", {}).n("ConnectCampaignsV2Client", "StopCampaignCommand").f(void 0, void 0).ser(se_StopCampaignCommand).de(de_StopCampaignCommand).build() {
2444
+ static {
2445
+ __name(this, "StopCampaignCommand");
2446
+ }
2447
+ };
2448
+
2449
+ // src/commands/TagResourceCommand.ts
2450
+
2451
+
2452
+
2453
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2454
+ return [
2455
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2456
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2457
+ ];
2458
+ }).s("AmazonConnectCampaignServiceV2", "TagResource", {}).n("ConnectCampaignsV2Client", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2459
+ static {
2460
+ __name(this, "TagResourceCommand");
2461
+ }
2462
+ };
2463
+
2464
+ // src/commands/UntagResourceCommand.ts
2465
+
2466
+
2467
+
2468
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2469
+ return [
2470
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2471
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2472
+ ];
2473
+ }).s("AmazonConnectCampaignServiceV2", "UntagResource", {}).n("ConnectCampaignsV2Client", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2474
+ static {
2475
+ __name(this, "UntagResourceCommand");
2476
+ }
2477
+ };
2478
+
2479
+ // src/commands/UpdateCampaignChannelSubtypeConfigCommand.ts
2480
+
2481
+
2482
+
2483
+ var UpdateCampaignChannelSubtypeConfigCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2484
+ return [
2485
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2486
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2487
+ ];
2488
+ }).s("AmazonConnectCampaignServiceV2", "UpdateCampaignChannelSubtypeConfig", {}).n("ConnectCampaignsV2Client", "UpdateCampaignChannelSubtypeConfigCommand").f(UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog, void 0).ser(se_UpdateCampaignChannelSubtypeConfigCommand).de(de_UpdateCampaignChannelSubtypeConfigCommand).build() {
2489
+ static {
2490
+ __name(this, "UpdateCampaignChannelSubtypeConfigCommand");
2491
+ }
2492
+ };
2493
+
2494
+ // src/commands/UpdateCampaignCommunicationLimitsCommand.ts
2495
+
2496
+
2497
+
2498
+ var UpdateCampaignCommunicationLimitsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2499
+ return [
2500
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2501
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2502
+ ];
2503
+ }).s("AmazonConnectCampaignServiceV2", "UpdateCampaignCommunicationLimits", {}).n("ConnectCampaignsV2Client", "UpdateCampaignCommunicationLimitsCommand").f(void 0, void 0).ser(se_UpdateCampaignCommunicationLimitsCommand).de(de_UpdateCampaignCommunicationLimitsCommand).build() {
2504
+ static {
2505
+ __name(this, "UpdateCampaignCommunicationLimitsCommand");
2506
+ }
2507
+ };
2508
+
2509
+ // src/commands/UpdateCampaignCommunicationTimeCommand.ts
2510
+
2511
+
2512
+
2513
+ var UpdateCampaignCommunicationTimeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2514
+ return [
2515
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2516
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2517
+ ];
2518
+ }).s("AmazonConnectCampaignServiceV2", "UpdateCampaignCommunicationTime", {}).n("ConnectCampaignsV2Client", "UpdateCampaignCommunicationTimeCommand").f(void 0, void 0).ser(se_UpdateCampaignCommunicationTimeCommand).de(de_UpdateCampaignCommunicationTimeCommand).build() {
2519
+ static {
2520
+ __name(this, "UpdateCampaignCommunicationTimeCommand");
2521
+ }
2522
+ };
2523
+
2524
+ // src/commands/UpdateCampaignFlowAssociationCommand.ts
2525
+
2526
+
2527
+
2528
+ var UpdateCampaignFlowAssociationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2529
+ return [
2530
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2531
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2532
+ ];
2533
+ }).s("AmazonConnectCampaignServiceV2", "UpdateCampaignFlowAssociation", {}).n("ConnectCampaignsV2Client", "UpdateCampaignFlowAssociationCommand").f(void 0, void 0).ser(se_UpdateCampaignFlowAssociationCommand).de(de_UpdateCampaignFlowAssociationCommand).build() {
2534
+ static {
2535
+ __name(this, "UpdateCampaignFlowAssociationCommand");
2536
+ }
2537
+ };
2538
+
2539
+ // src/commands/UpdateCampaignNameCommand.ts
2540
+
2541
+
2542
+
2543
+ var UpdateCampaignNameCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2544
+ return [
2545
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2546
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2547
+ ];
2548
+ }).s("AmazonConnectCampaignServiceV2", "UpdateCampaignName", {}).n("ConnectCampaignsV2Client", "UpdateCampaignNameCommand").f(void 0, void 0).ser(se_UpdateCampaignNameCommand).de(de_UpdateCampaignNameCommand).build() {
2549
+ static {
2550
+ __name(this, "UpdateCampaignNameCommand");
2551
+ }
2552
+ };
2553
+
2554
+ // src/commands/UpdateCampaignScheduleCommand.ts
2555
+
2556
+
2557
+
2558
+ var UpdateCampaignScheduleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2559
+ return [
2560
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2561
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2562
+ ];
2563
+ }).s("AmazonConnectCampaignServiceV2", "UpdateCampaignSchedule", {}).n("ConnectCampaignsV2Client", "UpdateCampaignScheduleCommand").f(void 0, void 0).ser(se_UpdateCampaignScheduleCommand).de(de_UpdateCampaignScheduleCommand).build() {
2564
+ static {
2565
+ __name(this, "UpdateCampaignScheduleCommand");
2566
+ }
2567
+ };
2568
+
2569
+ // src/commands/UpdateCampaignSourceCommand.ts
2570
+
2571
+
2572
+
2573
+ var UpdateCampaignSourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2574
+ return [
2575
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2576
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2577
+ ];
2578
+ }).s("AmazonConnectCampaignServiceV2", "UpdateCampaignSource", {}).n("ConnectCampaignsV2Client", "UpdateCampaignSourceCommand").f(void 0, void 0).ser(se_UpdateCampaignSourceCommand).de(de_UpdateCampaignSourceCommand).build() {
2579
+ static {
2580
+ __name(this, "UpdateCampaignSourceCommand");
2581
+ }
2582
+ };
2583
+
2584
+ // src/ConnectCampaignsV2.ts
2585
+ var commands = {
2586
+ CreateCampaignCommand,
2587
+ DeleteCampaignCommand,
2588
+ DeleteCampaignChannelSubtypeConfigCommand,
2589
+ DeleteCampaignCommunicationLimitsCommand,
2590
+ DeleteCampaignCommunicationTimeCommand,
2591
+ DeleteConnectInstanceConfigCommand,
2592
+ DeleteConnectInstanceIntegrationCommand,
2593
+ DeleteInstanceOnboardingJobCommand,
2594
+ DescribeCampaignCommand,
2595
+ GetCampaignStateCommand,
2596
+ GetCampaignStateBatchCommand,
2597
+ GetConnectInstanceConfigCommand,
2598
+ GetInstanceCommunicationLimitsCommand,
2599
+ GetInstanceOnboardingJobStatusCommand,
2600
+ ListCampaignsCommand,
2601
+ ListConnectInstanceIntegrationsCommand,
2602
+ ListTagsForResourceCommand,
2603
+ PauseCampaignCommand,
2604
+ PutConnectInstanceIntegrationCommand,
2605
+ PutInstanceCommunicationLimitsCommand,
2606
+ PutOutboundRequestBatchCommand,
2607
+ PutProfileOutboundRequestBatchCommand,
2608
+ ResumeCampaignCommand,
2609
+ StartCampaignCommand,
2610
+ StartInstanceOnboardingJobCommand,
2611
+ StopCampaignCommand,
2612
+ TagResourceCommand,
2613
+ UntagResourceCommand,
2614
+ UpdateCampaignChannelSubtypeConfigCommand,
2615
+ UpdateCampaignCommunicationLimitsCommand,
2616
+ UpdateCampaignCommunicationTimeCommand,
2617
+ UpdateCampaignFlowAssociationCommand,
2618
+ UpdateCampaignNameCommand,
2619
+ UpdateCampaignScheduleCommand,
2620
+ UpdateCampaignSourceCommand
2621
+ };
2622
+ var ConnectCampaignsV2 = class extends ConnectCampaignsV2Client {
2623
+ static {
2624
+ __name(this, "ConnectCampaignsV2");
2625
+ }
2626
+ };
2627
+ (0, import_smithy_client.createAggregatedClient)(commands, ConnectCampaignsV2);
2628
+
2629
+ // src/pagination/ListCampaignsPaginator.ts
2630
+
2631
+ var paginateListCampaigns = (0, import_core.createPaginator)(ConnectCampaignsV2Client, ListCampaignsCommand, "nextToken", "nextToken", "maxResults");
2632
+
2633
+ // src/pagination/ListConnectInstanceIntegrationsPaginator.ts
2634
+
2635
+ var paginateListConnectInstanceIntegrations = (0, import_core.createPaginator)(ConnectCampaignsV2Client, ListConnectInstanceIntegrationsCommand, "nextToken", "nextToken", "maxResults");
2636
+ // Annotate the CommonJS export names for ESM import in node:
2637
+
2638
+ 0 && (module.exports = {
2639
+ ConnectCampaignsV2ServiceException,
2640
+ __Client,
2641
+ ConnectCampaignsV2Client,
2642
+ ConnectCampaignsV2,
2643
+ $Command,
2644
+ CreateCampaignCommand,
2645
+ DeleteCampaignChannelSubtypeConfigCommand,
2646
+ DeleteCampaignCommand,
2647
+ DeleteCampaignCommunicationLimitsCommand,
2648
+ DeleteCampaignCommunicationTimeCommand,
2649
+ DeleteConnectInstanceConfigCommand,
2650
+ DeleteConnectInstanceIntegrationCommand,
2651
+ DeleteInstanceOnboardingJobCommand,
2652
+ DescribeCampaignCommand,
2653
+ GetCampaignStateBatchCommand,
2654
+ GetCampaignStateCommand,
2655
+ GetConnectInstanceConfigCommand,
2656
+ GetInstanceCommunicationLimitsCommand,
2657
+ GetInstanceOnboardingJobStatusCommand,
2658
+ ListCampaignsCommand,
2659
+ ListConnectInstanceIntegrationsCommand,
2660
+ ListTagsForResourceCommand,
2661
+ PauseCampaignCommand,
2662
+ PutConnectInstanceIntegrationCommand,
2663
+ PutInstanceCommunicationLimitsCommand,
2664
+ PutOutboundRequestBatchCommand,
2665
+ PutProfileOutboundRequestBatchCommand,
2666
+ ResumeCampaignCommand,
2667
+ StartCampaignCommand,
2668
+ StartInstanceOnboardingJobCommand,
2669
+ StopCampaignCommand,
2670
+ TagResourceCommand,
2671
+ UntagResourceCommand,
2672
+ UpdateCampaignChannelSubtypeConfigCommand,
2673
+ UpdateCampaignCommunicationLimitsCommand,
2674
+ UpdateCampaignCommunicationTimeCommand,
2675
+ UpdateCampaignFlowAssociationCommand,
2676
+ UpdateCampaignNameCommand,
2677
+ UpdateCampaignScheduleCommand,
2678
+ UpdateCampaignSourceCommand,
2679
+ paginateListCampaigns,
2680
+ paginateListConnectInstanceIntegrations,
2681
+ AccessDeniedException,
2682
+ ConflictException,
2683
+ EmailOutboundMode,
2684
+ SmsOutboundMode,
2685
+ TelephonyOutboundMode,
2686
+ CommunicationLimitTimeUnit,
2687
+ CommunicationLimits,
2688
+ InstanceLimitsHandling,
2689
+ DayOfWeek,
2690
+ OpenHours,
2691
+ RestrictedPeriods,
2692
+ LocalTimeZoneDetectionType,
2693
+ Source,
2694
+ InternalServerException,
2695
+ ResourceNotFoundException,
2696
+ ServiceQuotaExceededException,
2697
+ ThrottlingException,
2698
+ ValidationException,
2699
+ ChannelSubtype,
2700
+ CommunicationLimitsConfigType,
2701
+ CampaignState,
2702
+ InvalidCampaignStateException,
2703
+ CommunicationTimeConfigType,
2704
+ CampaignDeletionPolicy,
2705
+ InvalidStateException,
2706
+ IntegrationIdentifier,
2707
+ GetCampaignStateBatchFailureCode,
2708
+ EncryptionType,
2709
+ InstanceOnboardingJobFailureCode,
2710
+ InstanceOnboardingJobStatusCode,
2711
+ InstanceIdFilterOperator,
2712
+ EventType,
2713
+ IntegrationSummary,
2714
+ IntegrationConfig,
2715
+ ChannelSubtypeParameters,
2716
+ FailureCode,
2717
+ ProfileOutboundRequestFailureCode,
2718
+ EmailOutboundConfigFilterSensitiveLog,
2719
+ EmailChannelSubtypeConfigFilterSensitiveLog,
2720
+ ChannelSubtypeConfigFilterSensitiveLog,
2721
+ CreateCampaignRequestFilterSensitiveLog,
2722
+ CampaignFilterSensitiveLog,
2723
+ DescribeCampaignResponseFilterSensitiveLog,
2724
+ EmailChannelSubtypeParametersFilterSensitiveLog,
2725
+ SmsChannelSubtypeParametersFilterSensitiveLog,
2726
+ TelephonyChannelSubtypeParametersFilterSensitiveLog,
2727
+ ChannelSubtypeParametersFilterSensitiveLog,
2728
+ OutboundRequestFilterSensitiveLog,
2729
+ PutOutboundRequestBatchRequestFilterSensitiveLog,
2730
+ UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog
2731
+ });
2732
+