@aws-sdk/client-ssm-contacts 3.901.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +2221 -2411
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2515 +1,2325 @@
1
- "use strict";
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
- AcceptCodeValidation: () => AcceptCodeValidation,
25
- AcceptPageCommand: () => AcceptPageCommand,
26
- AcceptType: () => AcceptType,
27
- AccessDeniedException: () => AccessDeniedException,
28
- ActivateContactChannelCommand: () => ActivateContactChannelCommand,
29
- ActivationStatus: () => ActivationStatus,
30
- ChannelType: () => ChannelType,
31
- ConflictException: () => ConflictException,
32
- ContactType: () => ContactType,
33
- CreateContactChannelCommand: () => CreateContactChannelCommand,
34
- CreateContactCommand: () => CreateContactCommand,
35
- CreateRotationCommand: () => CreateRotationCommand,
36
- CreateRotationOverrideCommand: () => CreateRotationOverrideCommand,
37
- DataEncryptionException: () => DataEncryptionException,
38
- DayOfWeek: () => DayOfWeek,
39
- DeactivateContactChannelCommand: () => DeactivateContactChannelCommand,
40
- DeleteContactChannelCommand: () => DeleteContactChannelCommand,
41
- DeleteContactCommand: () => DeleteContactCommand,
42
- DeleteRotationCommand: () => DeleteRotationCommand,
43
- DeleteRotationOverrideCommand: () => DeleteRotationOverrideCommand,
44
- DescribeEngagementCommand: () => DescribeEngagementCommand,
45
- DescribePageCommand: () => DescribePageCommand,
46
- GetContactChannelCommand: () => GetContactChannelCommand,
47
- GetContactCommand: () => GetContactCommand,
48
- GetContactPolicyCommand: () => GetContactPolicyCommand,
49
- GetRotationCommand: () => GetRotationCommand,
50
- GetRotationOverrideCommand: () => GetRotationOverrideCommand,
51
- InternalServerException: () => InternalServerException,
52
- ListContactChannelsCommand: () => ListContactChannelsCommand,
53
- ListContactsCommand: () => ListContactsCommand,
54
- ListEngagementsCommand: () => ListEngagementsCommand,
55
- ListPageReceiptsCommand: () => ListPageReceiptsCommand,
56
- ListPageResolutionsCommand: () => ListPageResolutionsCommand,
57
- ListPagesByContactCommand: () => ListPagesByContactCommand,
58
- ListPagesByEngagementCommand: () => ListPagesByEngagementCommand,
59
- ListPreviewRotationShiftsCommand: () => ListPreviewRotationShiftsCommand,
60
- ListRotationOverridesCommand: () => ListRotationOverridesCommand,
61
- ListRotationShiftsCommand: () => ListRotationShiftsCommand,
62
- ListRotationsCommand: () => ListRotationsCommand,
63
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
64
- PutContactPolicyCommand: () => PutContactPolicyCommand,
65
- ReceiptType: () => ReceiptType,
66
- ResourceNotFoundException: () => ResourceNotFoundException,
67
- SSMContacts: () => SSMContacts,
68
- SSMContactsClient: () => SSMContactsClient,
69
- SSMContactsServiceException: () => SSMContactsServiceException,
70
- SendActivationCodeCommand: () => SendActivationCodeCommand,
71
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
72
- ShiftType: () => ShiftType,
73
- StartEngagementCommand: () => StartEngagementCommand,
74
- StopEngagementCommand: () => StopEngagementCommand,
75
- TagResourceCommand: () => TagResourceCommand,
76
- ThrottlingException: () => ThrottlingException,
77
- UntagResourceCommand: () => UntagResourceCommand,
78
- UpdateContactChannelCommand: () => UpdateContactChannelCommand,
79
- UpdateContactCommand: () => UpdateContactCommand,
80
- UpdateRotationCommand: () => UpdateRotationCommand,
81
- ValidationException: () => ValidationException,
82
- ValidationExceptionReason: () => ValidationExceptionReason,
83
- __Client: () => import_smithy_client.Client,
84
- paginateListContactChannels: () => paginateListContactChannels,
85
- paginateListContacts: () => paginateListContacts,
86
- paginateListEngagements: () => paginateListEngagements,
87
- paginateListPageReceipts: () => paginateListPageReceipts,
88
- paginateListPageResolutions: () => paginateListPageResolutions,
89
- paginateListPagesByContact: () => paginateListPagesByContact,
90
- paginateListPagesByEngagement: () => paginateListPagesByEngagement,
91
- paginateListPreviewRotationShifts: () => paginateListPreviewRotationShifts,
92
- paginateListRotationOverrides: () => paginateListRotationOverrides,
93
- paginateListRotationShifts: () => paginateListRotationShifts,
94
- paginateListRotations: () => paginateListRotations
95
- });
96
- module.exports = __toCommonJS(index_exports);
97
-
98
- // src/SSMContactsClient.ts
99
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
100
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
101
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
102
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
103
- var import_config_resolver = require("@smithy/config-resolver");
104
- var import_core = require("@smithy/core");
105
- var import_middleware_content_length = require("@smithy/middleware-content-length");
106
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
107
- var import_middleware_retry = require("@smithy/middleware-retry");
108
-
109
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
110
-
111
- // src/endpoint/EndpointParameters.ts
112
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
113
- return Object.assign(options, {
114
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
115
- useFipsEndpoint: options.useFipsEndpoint ?? false,
116
- defaultSigningName: "ssm-contacts"
117
- });
118
- }, "resolveClientEndpointParameters");
119
- var commonParams = {
120
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
121
- Endpoint: { type: "builtInParams", name: "endpoint" },
122
- Region: { type: "builtInParams", name: "region" },
123
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "ssm-contacts",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
124
33
  };
125
34
 
126
- // src/SSMContactsClient.ts
127
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
128
73
 
129
- // src/runtimeExtensions.ts
130
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
131
- var import_protocol_http = require("@smithy/protocol-http");
132
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
133
79
 
134
- // src/auth/httpAuthExtensionConfiguration.ts
135
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
136
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
137
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
138
- let _credentials = runtimeConfig.credentials;
139
- return {
140
- setHttpAuthScheme(httpAuthScheme) {
141
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
142
- if (index === -1) {
143
- _httpAuthSchemes.push(httpAuthScheme);
144
- } else {
145
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
146
- }
147
- },
148
- httpAuthSchemes() {
149
- return _httpAuthSchemes;
150
- },
151
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
152
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
153
- },
154
- httpAuthSchemeProvider() {
155
- return _httpAuthSchemeProvider;
156
- },
157
- setCredentials(credentials) {
158
- _credentials = credentials;
159
- },
160
- credentials() {
161
- return _credentials;
80
+ class SSMContactsClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSMContactsHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
162
108
  }
163
- };
164
- }, "getHttpAuthExtensionConfiguration");
165
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
166
- return {
167
- httpAuthSchemes: config.httpAuthSchemes(),
168
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
169
- credentials: config.credentials()
170
- };
171
- }, "resolveHttpAuthRuntimeConfig");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
172
113
 
173
- // src/runtimeExtensions.ts
174
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
175
- const extensionConfiguration = Object.assign(
176
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
177
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
178
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
179
- getHttpAuthExtensionConfiguration(runtimeConfig)
180
- );
181
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
182
- return Object.assign(
183
- runtimeConfig,
184
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
185
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
186
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
187
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
188
- );
189
- }, "resolveRuntimeExtensions");
114
+ class SSMContactsServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, SSMContactsServiceException.prototype);
118
+ }
119
+ }
190
120
 
191
- // src/SSMContactsClient.ts
192
- var SSMContactsClient = class extends import_smithy_client.Client {
193
- static {
194
- __name(this, "SSMContactsClient");
195
- }
196
- /**
197
- * The resolved configuration of SSMContactsClient class. This is resolved and normalized from the {@link SSMContactsClientConfig | constructor configuration interface}.
198
- */
199
- config;
200
- constructor(...[configuration]) {
201
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
202
- super(_config_0);
203
- this.initConfig = _config_0;
204
- const _config_1 = resolveClientEndpointParameters(_config_0);
205
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
206
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
207
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
208
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
209
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
210
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
211
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
212
- this.config = _config_8;
213
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
214
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
215
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
216
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
217
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
218
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
219
- this.middlewareStack.use(
220
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
221
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSMContactsHttpAuthSchemeParametersProvider,
222
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
223
- "aws.auth#sigv4": config.credentials
224
- }), "identityProviderConfigProvider")
225
- })
226
- );
227
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
228
- }
229
- /**
230
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
231
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
232
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
233
- */
234
- destroy() {
235
- super.destroy();
236
- }
121
+ const AcceptCodeValidation = {
122
+ ENFORCE: "ENFORCE",
123
+ IGNORE: "IGNORE",
237
124
  };
238
-
239
- // src/SSMContacts.ts
240
-
241
-
242
- // src/commands/AcceptPageCommand.ts
243
-
244
- var import_middleware_serde = require("@smithy/middleware-serde");
245
-
246
-
247
- // src/protocols/Aws_json1_1.ts
248
- var import_core2 = require("@aws-sdk/core");
249
-
250
-
251
- var import_uuid = require("@smithy/uuid");
252
-
253
- // src/models/SSMContactsServiceException.ts
254
-
255
- var SSMContactsServiceException = class _SSMContactsServiceException extends import_smithy_client.ServiceException {
256
- static {
257
- __name(this, "SSMContactsServiceException");
258
- }
259
- /**
260
- * @internal
261
- */
262
- constructor(options) {
263
- super(options);
264
- Object.setPrototypeOf(this, _SSMContactsServiceException.prototype);
265
- }
125
+ const AcceptType = {
126
+ DELIVERED: "DELIVERED",
127
+ READ: "READ",
128
+ };
129
+ class AccessDeniedException extends SSMContactsServiceException {
130
+ name = "AccessDeniedException";
131
+ $fault = "client";
132
+ Message;
133
+ constructor(opts) {
134
+ super({
135
+ name: "AccessDeniedException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
140
+ this.Message = opts.Message;
141
+ }
142
+ }
143
+ class InternalServerException extends SSMContactsServiceException {
144
+ name = "InternalServerException";
145
+ $fault = "server";
146
+ Message;
147
+ RetryAfterSeconds;
148
+ constructor(opts) {
149
+ super({
150
+ name: "InternalServerException",
151
+ $fault: "server",
152
+ ...opts,
153
+ });
154
+ Object.setPrototypeOf(this, InternalServerException.prototype);
155
+ this.Message = opts.Message;
156
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
157
+ }
158
+ }
159
+ class ResourceNotFoundException extends SSMContactsServiceException {
160
+ name = "ResourceNotFoundException";
161
+ $fault = "client";
162
+ Message;
163
+ ResourceId;
164
+ ResourceType;
165
+ constructor(opts) {
166
+ super({
167
+ name: "ResourceNotFoundException",
168
+ $fault: "client",
169
+ ...opts,
170
+ });
171
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
172
+ this.Message = opts.Message;
173
+ this.ResourceId = opts.ResourceId;
174
+ this.ResourceType = opts.ResourceType;
175
+ }
176
+ }
177
+ class ThrottlingException extends SSMContactsServiceException {
178
+ name = "ThrottlingException";
179
+ $fault = "client";
180
+ Message;
181
+ QuotaCode;
182
+ ServiceCode;
183
+ RetryAfterSeconds;
184
+ constructor(opts) {
185
+ super({
186
+ name: "ThrottlingException",
187
+ $fault: "client",
188
+ ...opts,
189
+ });
190
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
191
+ this.Message = opts.Message;
192
+ this.QuotaCode = opts.QuotaCode;
193
+ this.ServiceCode = opts.ServiceCode;
194
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
195
+ }
196
+ }
197
+ const ValidationExceptionReason = {
198
+ CANNOT_PARSE: "CANNOT_PARSE",
199
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
200
+ OTHER: "OTHER",
201
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
202
+ };
203
+ class ValidationException extends SSMContactsServiceException {
204
+ name = "ValidationException";
205
+ $fault = "client";
206
+ Message;
207
+ Reason;
208
+ Fields;
209
+ constructor(opts) {
210
+ super({
211
+ name: "ValidationException",
212
+ $fault: "client",
213
+ ...opts,
214
+ });
215
+ Object.setPrototypeOf(this, ValidationException.prototype);
216
+ this.Message = opts.Message;
217
+ this.Reason = opts.Reason;
218
+ this.Fields = opts.Fields;
219
+ }
220
+ }
221
+ const ActivationStatus = {
222
+ ACTIVATED: "ACTIVATED",
223
+ NOT_ACTIVATED: "NOT_ACTIVATED",
224
+ };
225
+ const ChannelType = {
226
+ EMAIL: "EMAIL",
227
+ SMS: "SMS",
228
+ VOICE: "VOICE",
229
+ };
230
+ class ConflictException extends SSMContactsServiceException {
231
+ name = "ConflictException";
232
+ $fault = "client";
233
+ Message;
234
+ ResourceId;
235
+ ResourceType;
236
+ DependentEntities;
237
+ constructor(opts) {
238
+ super({
239
+ name: "ConflictException",
240
+ $fault: "client",
241
+ ...opts,
242
+ });
243
+ Object.setPrototypeOf(this, ConflictException.prototype);
244
+ this.Message = opts.Message;
245
+ this.ResourceId = opts.ResourceId;
246
+ this.ResourceType = opts.ResourceType;
247
+ this.DependentEntities = opts.DependentEntities;
248
+ }
249
+ }
250
+ const ContactType = {
251
+ ESCALATION: "ESCALATION",
252
+ ONCALL_SCHEDULE: "ONCALL_SCHEDULE",
253
+ PERSONAL: "PERSONAL",
254
+ };
255
+ class DataEncryptionException extends SSMContactsServiceException {
256
+ name = "DataEncryptionException";
257
+ $fault = "client";
258
+ Message;
259
+ constructor(opts) {
260
+ super({
261
+ name: "DataEncryptionException",
262
+ $fault: "client",
263
+ ...opts,
264
+ });
265
+ Object.setPrototypeOf(this, DataEncryptionException.prototype);
266
+ this.Message = opts.Message;
267
+ }
268
+ }
269
+ class ServiceQuotaExceededException extends SSMContactsServiceException {
270
+ name = "ServiceQuotaExceededException";
271
+ $fault = "client";
272
+ Message;
273
+ ResourceId;
274
+ ResourceType;
275
+ QuotaCode;
276
+ ServiceCode;
277
+ constructor(opts) {
278
+ super({
279
+ name: "ServiceQuotaExceededException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
284
+ this.Message = opts.Message;
285
+ this.ResourceId = opts.ResourceId;
286
+ this.ResourceType = opts.ResourceType;
287
+ this.QuotaCode = opts.QuotaCode;
288
+ this.ServiceCode = opts.ServiceCode;
289
+ }
290
+ }
291
+ const DayOfWeek = {
292
+ FRI: "FRI",
293
+ MON: "MON",
294
+ SAT: "SAT",
295
+ SUN: "SUN",
296
+ THU: "THU",
297
+ TUE: "TUE",
298
+ WED: "WED",
299
+ };
300
+ const ReceiptType = {
301
+ DELIVERED: "DELIVERED",
302
+ ERROR: "ERROR",
303
+ READ: "READ",
304
+ SENT: "SENT",
305
+ STOP: "STOP",
306
+ };
307
+ const ShiftType = {
308
+ OVERRIDDEN: "OVERRIDDEN",
309
+ REGULAR: "REGULAR",
266
310
  };
267
311
 
268
- // src/models/models_0.ts
269
- var AcceptCodeValidation = {
270
- ENFORCE: "ENFORCE",
271
- IGNORE: "IGNORE"
272
- };
273
- var AcceptType = {
274
- DELIVERED: "DELIVERED",
275
- READ: "READ"
276
- };
277
- var AccessDeniedException = class _AccessDeniedException extends SSMContactsServiceException {
278
- static {
279
- __name(this, "AccessDeniedException");
280
- }
281
- name = "AccessDeniedException";
282
- $fault = "client";
283
- Message;
284
- /**
285
- * @internal
286
- */
287
- constructor(opts) {
288
- super({
289
- name: "AccessDeniedException",
290
- $fault: "client",
291
- ...opts
312
+ const se_AcceptPageCommand = async (input, context) => {
313
+ const headers = sharedHeaders("AcceptPage");
314
+ let body;
315
+ body = JSON.stringify(smithyClient._json(input));
316
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
+ };
318
+ const se_ActivateContactChannelCommand = async (input, context) => {
319
+ const headers = sharedHeaders("ActivateContactChannel");
320
+ let body;
321
+ body = JSON.stringify(smithyClient._json(input));
322
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
+ };
324
+ const se_CreateContactCommand = async (input, context) => {
325
+ const headers = sharedHeaders("CreateContact");
326
+ let body;
327
+ body = JSON.stringify(se_CreateContactRequest(input));
328
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
+ };
330
+ const se_CreateContactChannelCommand = async (input, context) => {
331
+ const headers = sharedHeaders("CreateContactChannel");
332
+ let body;
333
+ body = JSON.stringify(se_CreateContactChannelRequest(input));
334
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
+ };
336
+ const se_CreateRotationCommand = async (input, context) => {
337
+ const headers = sharedHeaders("CreateRotation");
338
+ let body;
339
+ body = JSON.stringify(se_CreateRotationRequest(input));
340
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
+ };
342
+ const se_CreateRotationOverrideCommand = async (input, context) => {
343
+ const headers = sharedHeaders("CreateRotationOverride");
344
+ let body;
345
+ body = JSON.stringify(se_CreateRotationOverrideRequest(input));
346
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
+ };
348
+ const se_DeactivateContactChannelCommand = async (input, context) => {
349
+ const headers = sharedHeaders("DeactivateContactChannel");
350
+ let body;
351
+ body = JSON.stringify(smithyClient._json(input));
352
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
+ };
354
+ const se_DeleteContactCommand = async (input, context) => {
355
+ const headers = sharedHeaders("DeleteContact");
356
+ let body;
357
+ body = JSON.stringify(smithyClient._json(input));
358
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
+ };
360
+ const se_DeleteContactChannelCommand = async (input, context) => {
361
+ const headers = sharedHeaders("DeleteContactChannel");
362
+ let body;
363
+ body = JSON.stringify(smithyClient._json(input));
364
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
+ };
366
+ const se_DeleteRotationCommand = async (input, context) => {
367
+ const headers = sharedHeaders("DeleteRotation");
368
+ let body;
369
+ body = JSON.stringify(smithyClient._json(input));
370
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
+ };
372
+ const se_DeleteRotationOverrideCommand = async (input, context) => {
373
+ const headers = sharedHeaders("DeleteRotationOverride");
374
+ let body;
375
+ body = JSON.stringify(smithyClient._json(input));
376
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
+ };
378
+ const se_DescribeEngagementCommand = async (input, context) => {
379
+ const headers = sharedHeaders("DescribeEngagement");
380
+ let body;
381
+ body = JSON.stringify(smithyClient._json(input));
382
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
+ };
384
+ const se_DescribePageCommand = async (input, context) => {
385
+ const headers = sharedHeaders("DescribePage");
386
+ let body;
387
+ body = JSON.stringify(smithyClient._json(input));
388
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
+ };
390
+ const se_GetContactCommand = async (input, context) => {
391
+ const headers = sharedHeaders("GetContact");
392
+ let body;
393
+ body = JSON.stringify(smithyClient._json(input));
394
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
+ };
396
+ const se_GetContactChannelCommand = async (input, context) => {
397
+ const headers = sharedHeaders("GetContactChannel");
398
+ let body;
399
+ body = JSON.stringify(smithyClient._json(input));
400
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
+ };
402
+ const se_GetContactPolicyCommand = async (input, context) => {
403
+ const headers = sharedHeaders("GetContactPolicy");
404
+ let body;
405
+ body = JSON.stringify(smithyClient._json(input));
406
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
+ };
408
+ const se_GetRotationCommand = async (input, context) => {
409
+ const headers = sharedHeaders("GetRotation");
410
+ let body;
411
+ body = JSON.stringify(smithyClient._json(input));
412
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
+ };
414
+ const se_GetRotationOverrideCommand = async (input, context) => {
415
+ const headers = sharedHeaders("GetRotationOverride");
416
+ let body;
417
+ body = JSON.stringify(smithyClient._json(input));
418
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
+ };
420
+ const se_ListContactChannelsCommand = async (input, context) => {
421
+ const headers = sharedHeaders("ListContactChannels");
422
+ let body;
423
+ body = JSON.stringify(smithyClient._json(input));
424
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
+ };
426
+ const se_ListContactsCommand = async (input, context) => {
427
+ const headers = sharedHeaders("ListContacts");
428
+ let body;
429
+ body = JSON.stringify(smithyClient._json(input));
430
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
431
+ };
432
+ const se_ListEngagementsCommand = async (input, context) => {
433
+ const headers = sharedHeaders("ListEngagements");
434
+ let body;
435
+ body = JSON.stringify(se_ListEngagementsRequest(input));
436
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
+ };
438
+ const se_ListPageReceiptsCommand = async (input, context) => {
439
+ const headers = sharedHeaders("ListPageReceipts");
440
+ let body;
441
+ body = JSON.stringify(smithyClient._json(input));
442
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
+ };
444
+ const se_ListPageResolutionsCommand = async (input, context) => {
445
+ const headers = sharedHeaders("ListPageResolutions");
446
+ let body;
447
+ body = JSON.stringify(smithyClient._json(input));
448
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
+ };
450
+ const se_ListPagesByContactCommand = async (input, context) => {
451
+ const headers = sharedHeaders("ListPagesByContact");
452
+ let body;
453
+ body = JSON.stringify(smithyClient._json(input));
454
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
+ };
456
+ const se_ListPagesByEngagementCommand = async (input, context) => {
457
+ const headers = sharedHeaders("ListPagesByEngagement");
458
+ let body;
459
+ body = JSON.stringify(smithyClient._json(input));
460
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
+ };
462
+ const se_ListPreviewRotationShiftsCommand = async (input, context) => {
463
+ const headers = sharedHeaders("ListPreviewRotationShifts");
464
+ let body;
465
+ body = JSON.stringify(se_ListPreviewRotationShiftsRequest(input));
466
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
+ };
468
+ const se_ListRotationOverridesCommand = async (input, context) => {
469
+ const headers = sharedHeaders("ListRotationOverrides");
470
+ let body;
471
+ body = JSON.stringify(se_ListRotationOverridesRequest(input));
472
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
+ };
474
+ const se_ListRotationsCommand = async (input, context) => {
475
+ const headers = sharedHeaders("ListRotations");
476
+ let body;
477
+ body = JSON.stringify(smithyClient._json(input));
478
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
479
+ };
480
+ const se_ListRotationShiftsCommand = async (input, context) => {
481
+ const headers = sharedHeaders("ListRotationShifts");
482
+ let body;
483
+ body = JSON.stringify(se_ListRotationShiftsRequest(input));
484
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
485
+ };
486
+ const se_ListTagsForResourceCommand = async (input, context) => {
487
+ const headers = sharedHeaders("ListTagsForResource");
488
+ let body;
489
+ body = JSON.stringify(smithyClient._json(input));
490
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
491
+ };
492
+ const se_PutContactPolicyCommand = async (input, context) => {
493
+ const headers = sharedHeaders("PutContactPolicy");
494
+ let body;
495
+ body = JSON.stringify(smithyClient._json(input));
496
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
497
+ };
498
+ const se_SendActivationCodeCommand = async (input, context) => {
499
+ const headers = sharedHeaders("SendActivationCode");
500
+ let body;
501
+ body = JSON.stringify(smithyClient._json(input));
502
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
503
+ };
504
+ const se_StartEngagementCommand = async (input, context) => {
505
+ const headers = sharedHeaders("StartEngagement");
506
+ let body;
507
+ body = JSON.stringify(se_StartEngagementRequest(input));
508
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
509
+ };
510
+ const se_StopEngagementCommand = async (input, context) => {
511
+ const headers = sharedHeaders("StopEngagement");
512
+ let body;
513
+ body = JSON.stringify(smithyClient._json(input));
514
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
515
+ };
516
+ const se_TagResourceCommand = async (input, context) => {
517
+ const headers = sharedHeaders("TagResource");
518
+ let body;
519
+ body = JSON.stringify(smithyClient._json(input));
520
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
521
+ };
522
+ const se_UntagResourceCommand = async (input, context) => {
523
+ const headers = sharedHeaders("UntagResource");
524
+ let body;
525
+ body = JSON.stringify(smithyClient._json(input));
526
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
527
+ };
528
+ const se_UpdateContactCommand = async (input, context) => {
529
+ const headers = sharedHeaders("UpdateContact");
530
+ let body;
531
+ body = JSON.stringify(smithyClient._json(input));
532
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
533
+ };
534
+ const se_UpdateContactChannelCommand = async (input, context) => {
535
+ const headers = sharedHeaders("UpdateContactChannel");
536
+ let body;
537
+ body = JSON.stringify(smithyClient._json(input));
538
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
539
+ };
540
+ const se_UpdateRotationCommand = async (input, context) => {
541
+ const headers = sharedHeaders("UpdateRotation");
542
+ let body;
543
+ body = JSON.stringify(se_UpdateRotationRequest(input));
544
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
545
+ };
546
+ const de_AcceptPageCommand = async (output, context) => {
547
+ if (output.statusCode >= 300) {
548
+ return de_CommandError(output, context);
549
+ }
550
+ const data = await core$1.parseJsonBody(output.body, context);
551
+ let contents = {};
552
+ contents = smithyClient._json(data);
553
+ const response = {
554
+ $metadata: deserializeMetadata(output),
555
+ ...contents,
556
+ };
557
+ return response;
558
+ };
559
+ const de_ActivateContactChannelCommand = async (output, context) => {
560
+ if (output.statusCode >= 300) {
561
+ return de_CommandError(output, context);
562
+ }
563
+ const data = await core$1.parseJsonBody(output.body, context);
564
+ let contents = {};
565
+ contents = smithyClient._json(data);
566
+ const response = {
567
+ $metadata: deserializeMetadata(output),
568
+ ...contents,
569
+ };
570
+ return response;
571
+ };
572
+ const de_CreateContactCommand = async (output, context) => {
573
+ if (output.statusCode >= 300) {
574
+ return de_CommandError(output, context);
575
+ }
576
+ const data = await core$1.parseJsonBody(output.body, context);
577
+ let contents = {};
578
+ contents = smithyClient._json(data);
579
+ const response = {
580
+ $metadata: deserializeMetadata(output),
581
+ ...contents,
582
+ };
583
+ return response;
584
+ };
585
+ const de_CreateContactChannelCommand = async (output, context) => {
586
+ if (output.statusCode >= 300) {
587
+ return de_CommandError(output, context);
588
+ }
589
+ const data = await core$1.parseJsonBody(output.body, context);
590
+ let contents = {};
591
+ contents = smithyClient._json(data);
592
+ const response = {
593
+ $metadata: deserializeMetadata(output),
594
+ ...contents,
595
+ };
596
+ return response;
597
+ };
598
+ const de_CreateRotationCommand = async (output, context) => {
599
+ if (output.statusCode >= 300) {
600
+ return de_CommandError(output, context);
601
+ }
602
+ const data = await core$1.parseJsonBody(output.body, context);
603
+ let contents = {};
604
+ contents = smithyClient._json(data);
605
+ const response = {
606
+ $metadata: deserializeMetadata(output),
607
+ ...contents,
608
+ };
609
+ return response;
610
+ };
611
+ const de_CreateRotationOverrideCommand = async (output, context) => {
612
+ if (output.statusCode >= 300) {
613
+ return de_CommandError(output, context);
614
+ }
615
+ const data = await core$1.parseJsonBody(output.body, context);
616
+ let contents = {};
617
+ contents = smithyClient._json(data);
618
+ const response = {
619
+ $metadata: deserializeMetadata(output),
620
+ ...contents,
621
+ };
622
+ return response;
623
+ };
624
+ const de_DeactivateContactChannelCommand = async (output, context) => {
625
+ if (output.statusCode >= 300) {
626
+ return de_CommandError(output, context);
627
+ }
628
+ const data = await core$1.parseJsonBody(output.body, context);
629
+ let contents = {};
630
+ contents = smithyClient._json(data);
631
+ const response = {
632
+ $metadata: deserializeMetadata(output),
633
+ ...contents,
634
+ };
635
+ return response;
636
+ };
637
+ const de_DeleteContactCommand = async (output, context) => {
638
+ if (output.statusCode >= 300) {
639
+ return de_CommandError(output, context);
640
+ }
641
+ const data = await core$1.parseJsonBody(output.body, context);
642
+ let contents = {};
643
+ contents = smithyClient._json(data);
644
+ const response = {
645
+ $metadata: deserializeMetadata(output),
646
+ ...contents,
647
+ };
648
+ return response;
649
+ };
650
+ const de_DeleteContactChannelCommand = async (output, context) => {
651
+ if (output.statusCode >= 300) {
652
+ return de_CommandError(output, context);
653
+ }
654
+ const data = await core$1.parseJsonBody(output.body, context);
655
+ let contents = {};
656
+ contents = smithyClient._json(data);
657
+ const response = {
658
+ $metadata: deserializeMetadata(output),
659
+ ...contents,
660
+ };
661
+ return response;
662
+ };
663
+ const de_DeleteRotationCommand = async (output, context) => {
664
+ if (output.statusCode >= 300) {
665
+ return de_CommandError(output, context);
666
+ }
667
+ const data = await core$1.parseJsonBody(output.body, context);
668
+ let contents = {};
669
+ contents = smithyClient._json(data);
670
+ const response = {
671
+ $metadata: deserializeMetadata(output),
672
+ ...contents,
673
+ };
674
+ return response;
675
+ };
676
+ const de_DeleteRotationOverrideCommand = async (output, context) => {
677
+ if (output.statusCode >= 300) {
678
+ return de_CommandError(output, context);
679
+ }
680
+ const data = await core$1.parseJsonBody(output.body, context);
681
+ let contents = {};
682
+ contents = smithyClient._json(data);
683
+ const response = {
684
+ $metadata: deserializeMetadata(output),
685
+ ...contents,
686
+ };
687
+ return response;
688
+ };
689
+ const de_DescribeEngagementCommand = async (output, context) => {
690
+ if (output.statusCode >= 300) {
691
+ return de_CommandError(output, context);
692
+ }
693
+ const data = await core$1.parseJsonBody(output.body, context);
694
+ let contents = {};
695
+ contents = de_DescribeEngagementResult(data);
696
+ const response = {
697
+ $metadata: deserializeMetadata(output),
698
+ ...contents,
699
+ };
700
+ return response;
701
+ };
702
+ const de_DescribePageCommand = async (output, context) => {
703
+ if (output.statusCode >= 300) {
704
+ return de_CommandError(output, context);
705
+ }
706
+ const data = await core$1.parseJsonBody(output.body, context);
707
+ let contents = {};
708
+ contents = de_DescribePageResult(data);
709
+ const response = {
710
+ $metadata: deserializeMetadata(output),
711
+ ...contents,
712
+ };
713
+ return response;
714
+ };
715
+ const de_GetContactCommand = async (output, context) => {
716
+ if (output.statusCode >= 300) {
717
+ return de_CommandError(output, context);
718
+ }
719
+ const data = await core$1.parseJsonBody(output.body, context);
720
+ let contents = {};
721
+ contents = smithyClient._json(data);
722
+ const response = {
723
+ $metadata: deserializeMetadata(output),
724
+ ...contents,
725
+ };
726
+ return response;
727
+ };
728
+ const de_GetContactChannelCommand = async (output, context) => {
729
+ if (output.statusCode >= 300) {
730
+ return de_CommandError(output, context);
731
+ }
732
+ const data = await core$1.parseJsonBody(output.body, context);
733
+ let contents = {};
734
+ contents = smithyClient._json(data);
735
+ const response = {
736
+ $metadata: deserializeMetadata(output),
737
+ ...contents,
738
+ };
739
+ return response;
740
+ };
741
+ const de_GetContactPolicyCommand = async (output, context) => {
742
+ if (output.statusCode >= 300) {
743
+ return de_CommandError(output, context);
744
+ }
745
+ const data = await core$1.parseJsonBody(output.body, context);
746
+ let contents = {};
747
+ contents = smithyClient._json(data);
748
+ const response = {
749
+ $metadata: deserializeMetadata(output),
750
+ ...contents,
751
+ };
752
+ return response;
753
+ };
754
+ const de_GetRotationCommand = async (output, context) => {
755
+ if (output.statusCode >= 300) {
756
+ return de_CommandError(output, context);
757
+ }
758
+ const data = await core$1.parseJsonBody(output.body, context);
759
+ let contents = {};
760
+ contents = de_GetRotationResult(data);
761
+ const response = {
762
+ $metadata: deserializeMetadata(output),
763
+ ...contents,
764
+ };
765
+ return response;
766
+ };
767
+ const de_GetRotationOverrideCommand = async (output, context) => {
768
+ if (output.statusCode >= 300) {
769
+ return de_CommandError(output, context);
770
+ }
771
+ const data = await core$1.parseJsonBody(output.body, context);
772
+ let contents = {};
773
+ contents = de_GetRotationOverrideResult(data);
774
+ const response = {
775
+ $metadata: deserializeMetadata(output),
776
+ ...contents,
777
+ };
778
+ return response;
779
+ };
780
+ const de_ListContactChannelsCommand = async (output, context) => {
781
+ if (output.statusCode >= 300) {
782
+ return de_CommandError(output, context);
783
+ }
784
+ const data = await core$1.parseJsonBody(output.body, context);
785
+ let contents = {};
786
+ contents = smithyClient._json(data);
787
+ const response = {
788
+ $metadata: deserializeMetadata(output),
789
+ ...contents,
790
+ };
791
+ return response;
792
+ };
793
+ const de_ListContactsCommand = async (output, context) => {
794
+ if (output.statusCode >= 300) {
795
+ return de_CommandError(output, context);
796
+ }
797
+ const data = await core$1.parseJsonBody(output.body, context);
798
+ let contents = {};
799
+ contents = smithyClient._json(data);
800
+ const response = {
801
+ $metadata: deserializeMetadata(output),
802
+ ...contents,
803
+ };
804
+ return response;
805
+ };
806
+ const de_ListEngagementsCommand = async (output, context) => {
807
+ if (output.statusCode >= 300) {
808
+ return de_CommandError(output, context);
809
+ }
810
+ const data = await core$1.parseJsonBody(output.body, context);
811
+ let contents = {};
812
+ contents = de_ListEngagementsResult(data);
813
+ const response = {
814
+ $metadata: deserializeMetadata(output),
815
+ ...contents,
816
+ };
817
+ return response;
818
+ };
819
+ const de_ListPageReceiptsCommand = async (output, context) => {
820
+ if (output.statusCode >= 300) {
821
+ return de_CommandError(output, context);
822
+ }
823
+ const data = await core$1.parseJsonBody(output.body, context);
824
+ let contents = {};
825
+ contents = de_ListPageReceiptsResult(data);
826
+ const response = {
827
+ $metadata: deserializeMetadata(output),
828
+ ...contents,
829
+ };
830
+ return response;
831
+ };
832
+ const de_ListPageResolutionsCommand = async (output, context) => {
833
+ if (output.statusCode >= 300) {
834
+ return de_CommandError(output, context);
835
+ }
836
+ const data = await core$1.parseJsonBody(output.body, context);
837
+ let contents = {};
838
+ contents = smithyClient._json(data);
839
+ const response = {
840
+ $metadata: deserializeMetadata(output),
841
+ ...contents,
842
+ };
843
+ return response;
844
+ };
845
+ const de_ListPagesByContactCommand = async (output, context) => {
846
+ if (output.statusCode >= 300) {
847
+ return de_CommandError(output, context);
848
+ }
849
+ const data = await core$1.parseJsonBody(output.body, context);
850
+ let contents = {};
851
+ contents = de_ListPagesByContactResult(data);
852
+ const response = {
853
+ $metadata: deserializeMetadata(output),
854
+ ...contents,
855
+ };
856
+ return response;
857
+ };
858
+ const de_ListPagesByEngagementCommand = async (output, context) => {
859
+ if (output.statusCode >= 300) {
860
+ return de_CommandError(output, context);
861
+ }
862
+ const data = await core$1.parseJsonBody(output.body, context);
863
+ let contents = {};
864
+ contents = de_ListPagesByEngagementResult(data);
865
+ const response = {
866
+ $metadata: deserializeMetadata(output),
867
+ ...contents,
868
+ };
869
+ return response;
870
+ };
871
+ const de_ListPreviewRotationShiftsCommand = async (output, context) => {
872
+ if (output.statusCode >= 300) {
873
+ return de_CommandError(output, context);
874
+ }
875
+ const data = await core$1.parseJsonBody(output.body, context);
876
+ let contents = {};
877
+ contents = de_ListPreviewRotationShiftsResult(data);
878
+ const response = {
879
+ $metadata: deserializeMetadata(output),
880
+ ...contents,
881
+ };
882
+ return response;
883
+ };
884
+ const de_ListRotationOverridesCommand = async (output, context) => {
885
+ if (output.statusCode >= 300) {
886
+ return de_CommandError(output, context);
887
+ }
888
+ const data = await core$1.parseJsonBody(output.body, context);
889
+ let contents = {};
890
+ contents = de_ListRotationOverridesResult(data);
891
+ const response = {
892
+ $metadata: deserializeMetadata(output),
893
+ ...contents,
894
+ };
895
+ return response;
896
+ };
897
+ const de_ListRotationsCommand = async (output, context) => {
898
+ if (output.statusCode >= 300) {
899
+ return de_CommandError(output, context);
900
+ }
901
+ const data = await core$1.parseJsonBody(output.body, context);
902
+ let contents = {};
903
+ contents = de_ListRotationsResult(data);
904
+ const response = {
905
+ $metadata: deserializeMetadata(output),
906
+ ...contents,
907
+ };
908
+ return response;
909
+ };
910
+ const de_ListRotationShiftsCommand = async (output, context) => {
911
+ if (output.statusCode >= 300) {
912
+ return de_CommandError(output, context);
913
+ }
914
+ const data = await core$1.parseJsonBody(output.body, context);
915
+ let contents = {};
916
+ contents = de_ListRotationShiftsResult(data);
917
+ const response = {
918
+ $metadata: deserializeMetadata(output),
919
+ ...contents,
920
+ };
921
+ return response;
922
+ };
923
+ const de_ListTagsForResourceCommand = async (output, context) => {
924
+ if (output.statusCode >= 300) {
925
+ return de_CommandError(output, context);
926
+ }
927
+ const data = await core$1.parseJsonBody(output.body, context);
928
+ let contents = {};
929
+ contents = smithyClient._json(data);
930
+ const response = {
931
+ $metadata: deserializeMetadata(output),
932
+ ...contents,
933
+ };
934
+ return response;
935
+ };
936
+ const de_PutContactPolicyCommand = async (output, context) => {
937
+ if (output.statusCode >= 300) {
938
+ return de_CommandError(output, context);
939
+ }
940
+ const data = await core$1.parseJsonBody(output.body, context);
941
+ let contents = {};
942
+ contents = smithyClient._json(data);
943
+ const response = {
944
+ $metadata: deserializeMetadata(output),
945
+ ...contents,
946
+ };
947
+ return response;
948
+ };
949
+ const de_SendActivationCodeCommand = async (output, context) => {
950
+ if (output.statusCode >= 300) {
951
+ return de_CommandError(output, context);
952
+ }
953
+ const data = await core$1.parseJsonBody(output.body, context);
954
+ let contents = {};
955
+ contents = smithyClient._json(data);
956
+ const response = {
957
+ $metadata: deserializeMetadata(output),
958
+ ...contents,
959
+ };
960
+ return response;
961
+ };
962
+ const de_StartEngagementCommand = async (output, context) => {
963
+ if (output.statusCode >= 300) {
964
+ return de_CommandError(output, context);
965
+ }
966
+ const data = await core$1.parseJsonBody(output.body, context);
967
+ let contents = {};
968
+ contents = smithyClient._json(data);
969
+ const response = {
970
+ $metadata: deserializeMetadata(output),
971
+ ...contents,
972
+ };
973
+ return response;
974
+ };
975
+ const de_StopEngagementCommand = async (output, context) => {
976
+ if (output.statusCode >= 300) {
977
+ return de_CommandError(output, context);
978
+ }
979
+ const data = await core$1.parseJsonBody(output.body, context);
980
+ let contents = {};
981
+ contents = smithyClient._json(data);
982
+ const response = {
983
+ $metadata: deserializeMetadata(output),
984
+ ...contents,
985
+ };
986
+ return response;
987
+ };
988
+ const de_TagResourceCommand = async (output, context) => {
989
+ if (output.statusCode >= 300) {
990
+ return de_CommandError(output, context);
991
+ }
992
+ const data = await core$1.parseJsonBody(output.body, context);
993
+ let contents = {};
994
+ contents = smithyClient._json(data);
995
+ const response = {
996
+ $metadata: deserializeMetadata(output),
997
+ ...contents,
998
+ };
999
+ return response;
1000
+ };
1001
+ const de_UntagResourceCommand = async (output, context) => {
1002
+ if (output.statusCode >= 300) {
1003
+ return de_CommandError(output, context);
1004
+ }
1005
+ const data = await core$1.parseJsonBody(output.body, context);
1006
+ let contents = {};
1007
+ contents = smithyClient._json(data);
1008
+ const response = {
1009
+ $metadata: deserializeMetadata(output),
1010
+ ...contents,
1011
+ };
1012
+ return response;
1013
+ };
1014
+ const de_UpdateContactCommand = async (output, context) => {
1015
+ if (output.statusCode >= 300) {
1016
+ return de_CommandError(output, context);
1017
+ }
1018
+ const data = await core$1.parseJsonBody(output.body, context);
1019
+ let contents = {};
1020
+ contents = smithyClient._json(data);
1021
+ const response = {
1022
+ $metadata: deserializeMetadata(output),
1023
+ ...contents,
1024
+ };
1025
+ return response;
1026
+ };
1027
+ const de_UpdateContactChannelCommand = async (output, context) => {
1028
+ if (output.statusCode >= 300) {
1029
+ return de_CommandError(output, context);
1030
+ }
1031
+ const data = await core$1.parseJsonBody(output.body, context);
1032
+ let contents = {};
1033
+ contents = smithyClient._json(data);
1034
+ const response = {
1035
+ $metadata: deserializeMetadata(output),
1036
+ ...contents,
1037
+ };
1038
+ return response;
1039
+ };
1040
+ const de_UpdateRotationCommand = async (output, context) => {
1041
+ if (output.statusCode >= 300) {
1042
+ return de_CommandError(output, context);
1043
+ }
1044
+ const data = await core$1.parseJsonBody(output.body, context);
1045
+ let contents = {};
1046
+ contents = smithyClient._json(data);
1047
+ const response = {
1048
+ $metadata: deserializeMetadata(output),
1049
+ ...contents,
1050
+ };
1051
+ return response;
1052
+ };
1053
+ const de_CommandError = async (output, context) => {
1054
+ const parsedOutput = {
1055
+ ...output,
1056
+ body: await core$1.parseJsonErrorBody(output.body, context),
1057
+ };
1058
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1059
+ switch (errorCode) {
1060
+ case "AccessDeniedException":
1061
+ case "com.amazonaws.ssmcontacts#AccessDeniedException":
1062
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1063
+ case "InternalServerException":
1064
+ case "com.amazonaws.ssmcontacts#InternalServerException":
1065
+ throw await de_InternalServerExceptionRes(parsedOutput);
1066
+ case "ResourceNotFoundException":
1067
+ case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
1068
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1069
+ case "ThrottlingException":
1070
+ case "com.amazonaws.ssmcontacts#ThrottlingException":
1071
+ throw await de_ThrottlingExceptionRes(parsedOutput);
1072
+ case "ValidationException":
1073
+ case "com.amazonaws.ssmcontacts#ValidationException":
1074
+ throw await de_ValidationExceptionRes(parsedOutput);
1075
+ case "ConflictException":
1076
+ case "com.amazonaws.ssmcontacts#ConflictException":
1077
+ throw await de_ConflictExceptionRes(parsedOutput);
1078
+ case "DataEncryptionException":
1079
+ case "com.amazonaws.ssmcontacts#DataEncryptionException":
1080
+ throw await de_DataEncryptionExceptionRes(parsedOutput);
1081
+ case "ServiceQuotaExceededException":
1082
+ case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
1083
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1084
+ default:
1085
+ const parsedBody = parsedOutput.body;
1086
+ return throwDefaultError({
1087
+ output,
1088
+ parsedBody,
1089
+ errorCode,
1090
+ });
1091
+ }
1092
+ };
1093
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1094
+ const body = parsedOutput.body;
1095
+ const deserialized = smithyClient._json(body);
1096
+ const exception = new AccessDeniedException({
1097
+ $metadata: deserializeMetadata(parsedOutput),
1098
+ ...deserialized,
292
1099
  });
293
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
294
- this.Message = opts.Message;
295
- }
296
- };
297
- var InternalServerException = class _InternalServerException extends SSMContactsServiceException {
298
- static {
299
- __name(this, "InternalServerException");
300
- }
301
- name = "InternalServerException";
302
- $fault = "server";
303
- Message;
304
- /**
305
- * Advice to clients on when the call can be safely retried
306
- * @public
307
- */
308
- RetryAfterSeconds;
309
- /**
310
- * @internal
311
- */
312
- constructor(opts) {
313
- super({
314
- name: "InternalServerException",
315
- $fault: "server",
316
- ...opts
1100
+ return smithyClient.decorateServiceException(exception, body);
1101
+ };
1102
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1103
+ const body = parsedOutput.body;
1104
+ const deserialized = smithyClient._json(body);
1105
+ const exception = new ConflictException({
1106
+ $metadata: deserializeMetadata(parsedOutput),
1107
+ ...deserialized,
317
1108
  });
318
- Object.setPrototypeOf(this, _InternalServerException.prototype);
319
- this.Message = opts.Message;
320
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
321
- }
322
- };
323
- var ResourceNotFoundException = class _ResourceNotFoundException extends SSMContactsServiceException {
324
- static {
325
- __name(this, "ResourceNotFoundException");
326
- }
327
- name = "ResourceNotFoundException";
328
- $fault = "client";
329
- Message;
330
- /**
331
- * Hypothetical resource identifier that was not found
332
- * @public
333
- */
334
- ResourceId;
335
- /**
336
- * Hypothetical resource type that was not found
337
- * @public
338
- */
339
- ResourceType;
340
- /**
341
- * @internal
342
- */
343
- constructor(opts) {
344
- super({
345
- name: "ResourceNotFoundException",
346
- $fault: "client",
347
- ...opts
1109
+ return smithyClient.decorateServiceException(exception, body);
1110
+ };
1111
+ const de_DataEncryptionExceptionRes = async (parsedOutput, context) => {
1112
+ const body = parsedOutput.body;
1113
+ const deserialized = smithyClient._json(body);
1114
+ const exception = new DataEncryptionException({
1115
+ $metadata: deserializeMetadata(parsedOutput),
1116
+ ...deserialized,
348
1117
  });
349
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
350
- this.Message = opts.Message;
351
- this.ResourceId = opts.ResourceId;
352
- this.ResourceType = opts.ResourceType;
353
- }
354
- };
355
- var ThrottlingException = class _ThrottlingException extends SSMContactsServiceException {
356
- static {
357
- __name(this, "ThrottlingException");
358
- }
359
- name = "ThrottlingException";
360
- $fault = "client";
361
- Message;
362
- /**
363
- * Service Quotas requirement to identify originating service
364
- * @public
365
- */
366
- QuotaCode;
367
- /**
368
- * Service Quotas requirement to identify originating quota
369
- * @public
370
- */
371
- ServiceCode;
372
- /**
373
- * Advice to clients on when the call can be safely retried
374
- * @public
375
- */
376
- RetryAfterSeconds;
377
- /**
378
- * @internal
379
- */
380
- constructor(opts) {
381
- super({
382
- name: "ThrottlingException",
383
- $fault: "client",
384
- ...opts
1118
+ return smithyClient.decorateServiceException(exception, body);
1119
+ };
1120
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1121
+ const body = parsedOutput.body;
1122
+ const deserialized = smithyClient._json(body);
1123
+ const exception = new InternalServerException({
1124
+ $metadata: deserializeMetadata(parsedOutput),
1125
+ ...deserialized,
385
1126
  });
386
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
387
- this.Message = opts.Message;
388
- this.QuotaCode = opts.QuotaCode;
389
- this.ServiceCode = opts.ServiceCode;
390
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
391
- }
392
- };
393
- var ValidationExceptionReason = {
394
- CANNOT_PARSE: "CANNOT_PARSE",
395
- FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
396
- OTHER: "OTHER",
397
- UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
398
- };
399
- var ValidationException = class _ValidationException extends SSMContactsServiceException {
400
- static {
401
- __name(this, "ValidationException");
402
- }
403
- name = "ValidationException";
404
- $fault = "client";
405
- Message;
406
- /**
407
- * Reason the request failed validation
408
- * @public
409
- */
410
- Reason;
411
- /**
412
- * The fields that caused the error
413
- * @public
414
- */
415
- Fields;
416
- /**
417
- * @internal
418
- */
419
- constructor(opts) {
420
- super({
421
- name: "ValidationException",
422
- $fault: "client",
423
- ...opts
1127
+ return smithyClient.decorateServiceException(exception, body);
1128
+ };
1129
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1130
+ const body = parsedOutput.body;
1131
+ const deserialized = smithyClient._json(body);
1132
+ const exception = new ResourceNotFoundException({
1133
+ $metadata: deserializeMetadata(parsedOutput),
1134
+ ...deserialized,
424
1135
  });
425
- Object.setPrototypeOf(this, _ValidationException.prototype);
426
- this.Message = opts.Message;
427
- this.Reason = opts.Reason;
428
- this.Fields = opts.Fields;
429
- }
430
- };
431
- var ActivationStatus = {
432
- ACTIVATED: "ACTIVATED",
433
- NOT_ACTIVATED: "NOT_ACTIVATED"
434
- };
435
- var ChannelType = {
436
- EMAIL: "EMAIL",
437
- SMS: "SMS",
438
- VOICE: "VOICE"
439
- };
440
- var ConflictException = class _ConflictException extends SSMContactsServiceException {
441
- static {
442
- __name(this, "ConflictException");
443
- }
444
- name = "ConflictException";
445
- $fault = "client";
446
- Message;
447
- /**
448
- * Identifier of the resource in use
449
- * @public
450
- */
451
- ResourceId;
452
- /**
453
- * Type of the resource in use
454
- * @public
455
- */
456
- ResourceType;
457
- /**
458
- * List of dependent entities containing information on relation type and resourceArns linked to the resource in use
459
- * @public
460
- */
461
- DependentEntities;
462
- /**
463
- * @internal
464
- */
465
- constructor(opts) {
466
- super({
467
- name: "ConflictException",
468
- $fault: "client",
469
- ...opts
1136
+ return smithyClient.decorateServiceException(exception, body);
1137
+ };
1138
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1139
+ const body = parsedOutput.body;
1140
+ const deserialized = smithyClient._json(body);
1141
+ const exception = new ServiceQuotaExceededException({
1142
+ $metadata: deserializeMetadata(parsedOutput),
1143
+ ...deserialized,
470
1144
  });
471
- Object.setPrototypeOf(this, _ConflictException.prototype);
472
- this.Message = opts.Message;
473
- this.ResourceId = opts.ResourceId;
474
- this.ResourceType = opts.ResourceType;
475
- this.DependentEntities = opts.DependentEntities;
476
- }
477
- };
478
- var ContactType = {
479
- ESCALATION: "ESCALATION",
480
- ONCALL_SCHEDULE: "ONCALL_SCHEDULE",
481
- PERSONAL: "PERSONAL"
482
- };
483
- var DataEncryptionException = class _DataEncryptionException extends SSMContactsServiceException {
484
- static {
485
- __name(this, "DataEncryptionException");
486
- }
487
- name = "DataEncryptionException";
488
- $fault = "client";
489
- Message;
490
- /**
491
- * @internal
492
- */
493
- constructor(opts) {
494
- super({
495
- name: "DataEncryptionException",
496
- $fault: "client",
497
- ...opts
1145
+ return smithyClient.decorateServiceException(exception, body);
1146
+ };
1147
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1148
+ const body = parsedOutput.body;
1149
+ const deserialized = smithyClient._json(body);
1150
+ const exception = new ThrottlingException({
1151
+ $metadata: deserializeMetadata(parsedOutput),
1152
+ ...deserialized,
498
1153
  });
499
- Object.setPrototypeOf(this, _DataEncryptionException.prototype);
500
- this.Message = opts.Message;
501
- }
502
- };
503
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SSMContactsServiceException {
504
- static {
505
- __name(this, "ServiceQuotaExceededException");
506
- }
507
- name = "ServiceQuotaExceededException";
508
- $fault = "client";
509
- Message;
510
- /**
511
- * Identifier of the resource affected
512
- * @public
513
- */
514
- ResourceId;
515
- /**
516
- * Type of the resource affected
517
- * @public
518
- */
519
- ResourceType;
520
- /**
521
- * Service Quotas requirement to identify originating service
522
- * @public
523
- */
524
- QuotaCode;
525
- /**
526
- * Service Quotas requirement to identify originating quota
527
- * @public
528
- */
529
- ServiceCode;
530
- /**
531
- * @internal
532
- */
533
- constructor(opts) {
534
- super({
535
- name: "ServiceQuotaExceededException",
536
- $fault: "client",
537
- ...opts
1154
+ return smithyClient.decorateServiceException(exception, body);
1155
+ };
1156
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1157
+ const body = parsedOutput.body;
1158
+ const deserialized = smithyClient._json(body);
1159
+ const exception = new ValidationException({
1160
+ $metadata: deserializeMetadata(parsedOutput),
1161
+ ...deserialized,
538
1162
  });
539
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
540
- this.Message = opts.Message;
541
- this.ResourceId = opts.ResourceId;
542
- this.ResourceType = opts.ResourceType;
543
- this.QuotaCode = opts.QuotaCode;
544
- this.ServiceCode = opts.ServiceCode;
545
- }
546
- };
547
- var DayOfWeek = {
548
- FRI: "FRI",
549
- MON: "MON",
550
- SAT: "SAT",
551
- SUN: "SUN",
552
- THU: "THU",
553
- TUE: "TUE",
554
- WED: "WED"
555
- };
556
- var ReceiptType = {
557
- DELIVERED: "DELIVERED",
558
- ERROR: "ERROR",
559
- READ: "READ",
560
- SENT: "SENT",
561
- STOP: "STOP"
562
- };
563
- var ShiftType = {
564
- OVERRIDDEN: "OVERRIDDEN",
565
- REGULAR: "REGULAR"
1163
+ return smithyClient.decorateServiceException(exception, body);
566
1164
  };
567
-
568
- // src/protocols/Aws_json1_1.ts
569
- var se_AcceptPageCommand = /* @__PURE__ */ __name(async (input, context) => {
570
- const headers = sharedHeaders("AcceptPage");
571
- let body;
572
- body = JSON.stringify((0, import_smithy_client._json)(input));
573
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
574
- }, "se_AcceptPageCommand");
575
- var se_ActivateContactChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
576
- const headers = sharedHeaders("ActivateContactChannel");
577
- let body;
578
- body = JSON.stringify((0, import_smithy_client._json)(input));
579
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
580
- }, "se_ActivateContactChannelCommand");
581
- var se_CreateContactCommand = /* @__PURE__ */ __name(async (input, context) => {
582
- const headers = sharedHeaders("CreateContact");
583
- let body;
584
- body = JSON.stringify(se_CreateContactRequest(input, context));
585
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
586
- }, "se_CreateContactCommand");
587
- var se_CreateContactChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
588
- const headers = sharedHeaders("CreateContactChannel");
589
- let body;
590
- body = JSON.stringify(se_CreateContactChannelRequest(input, context));
591
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
592
- }, "se_CreateContactChannelCommand");
593
- var se_CreateRotationCommand = /* @__PURE__ */ __name(async (input, context) => {
594
- const headers = sharedHeaders("CreateRotation");
595
- let body;
596
- body = JSON.stringify(se_CreateRotationRequest(input, context));
597
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
598
- }, "se_CreateRotationCommand");
599
- var se_CreateRotationOverrideCommand = /* @__PURE__ */ __name(async (input, context) => {
600
- const headers = sharedHeaders("CreateRotationOverride");
601
- let body;
602
- body = JSON.stringify(se_CreateRotationOverrideRequest(input, context));
603
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
604
- }, "se_CreateRotationOverrideCommand");
605
- var se_DeactivateContactChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
606
- const headers = sharedHeaders("DeactivateContactChannel");
607
- let body;
608
- body = JSON.stringify((0, import_smithy_client._json)(input));
609
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
610
- }, "se_DeactivateContactChannelCommand");
611
- var se_DeleteContactCommand = /* @__PURE__ */ __name(async (input, context) => {
612
- const headers = sharedHeaders("DeleteContact");
613
- let body;
614
- body = JSON.stringify((0, import_smithy_client._json)(input));
615
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
616
- }, "se_DeleteContactCommand");
617
- var se_DeleteContactChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
618
- const headers = sharedHeaders("DeleteContactChannel");
619
- let body;
620
- body = JSON.stringify((0, import_smithy_client._json)(input));
621
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
622
- }, "se_DeleteContactChannelCommand");
623
- var se_DeleteRotationCommand = /* @__PURE__ */ __name(async (input, context) => {
624
- const headers = sharedHeaders("DeleteRotation");
625
- let body;
626
- body = JSON.stringify((0, import_smithy_client._json)(input));
627
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
628
- }, "se_DeleteRotationCommand");
629
- var se_DeleteRotationOverrideCommand = /* @__PURE__ */ __name(async (input, context) => {
630
- const headers = sharedHeaders("DeleteRotationOverride");
631
- let body;
632
- body = JSON.stringify((0, import_smithy_client._json)(input));
633
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
634
- }, "se_DeleteRotationOverrideCommand");
635
- var se_DescribeEngagementCommand = /* @__PURE__ */ __name(async (input, context) => {
636
- const headers = sharedHeaders("DescribeEngagement");
637
- let body;
638
- body = JSON.stringify((0, import_smithy_client._json)(input));
639
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
640
- }, "se_DescribeEngagementCommand");
641
- var se_DescribePageCommand = /* @__PURE__ */ __name(async (input, context) => {
642
- const headers = sharedHeaders("DescribePage");
643
- let body;
644
- body = JSON.stringify((0, import_smithy_client._json)(input));
645
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
646
- }, "se_DescribePageCommand");
647
- var se_GetContactCommand = /* @__PURE__ */ __name(async (input, context) => {
648
- const headers = sharedHeaders("GetContact");
649
- let body;
650
- body = JSON.stringify((0, import_smithy_client._json)(input));
651
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
652
- }, "se_GetContactCommand");
653
- var se_GetContactChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
654
- const headers = sharedHeaders("GetContactChannel");
655
- let body;
656
- body = JSON.stringify((0, import_smithy_client._json)(input));
657
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
658
- }, "se_GetContactChannelCommand");
659
- var se_GetContactPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
660
- const headers = sharedHeaders("GetContactPolicy");
661
- let body;
662
- body = JSON.stringify((0, import_smithy_client._json)(input));
663
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
664
- }, "se_GetContactPolicyCommand");
665
- var se_GetRotationCommand = /* @__PURE__ */ __name(async (input, context) => {
666
- const headers = sharedHeaders("GetRotation");
667
- let body;
668
- body = JSON.stringify((0, import_smithy_client._json)(input));
669
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
670
- }, "se_GetRotationCommand");
671
- var se_GetRotationOverrideCommand = /* @__PURE__ */ __name(async (input, context) => {
672
- const headers = sharedHeaders("GetRotationOverride");
673
- let body;
674
- body = JSON.stringify((0, import_smithy_client._json)(input));
675
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
676
- }, "se_GetRotationOverrideCommand");
677
- var se_ListContactChannelsCommand = /* @__PURE__ */ __name(async (input, context) => {
678
- const headers = sharedHeaders("ListContactChannels");
679
- let body;
680
- body = JSON.stringify((0, import_smithy_client._json)(input));
681
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
682
- }, "se_ListContactChannelsCommand");
683
- var se_ListContactsCommand = /* @__PURE__ */ __name(async (input, context) => {
684
- const headers = sharedHeaders("ListContacts");
685
- let body;
686
- body = JSON.stringify((0, import_smithy_client._json)(input));
687
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
688
- }, "se_ListContactsCommand");
689
- var se_ListEngagementsCommand = /* @__PURE__ */ __name(async (input, context) => {
690
- const headers = sharedHeaders("ListEngagements");
691
- let body;
692
- body = JSON.stringify(se_ListEngagementsRequest(input, context));
693
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
694
- }, "se_ListEngagementsCommand");
695
- var se_ListPageReceiptsCommand = /* @__PURE__ */ __name(async (input, context) => {
696
- const headers = sharedHeaders("ListPageReceipts");
697
- let body;
698
- body = JSON.stringify((0, import_smithy_client._json)(input));
699
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
700
- }, "se_ListPageReceiptsCommand");
701
- var se_ListPageResolutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
702
- const headers = sharedHeaders("ListPageResolutions");
703
- let body;
704
- body = JSON.stringify((0, import_smithy_client._json)(input));
705
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
706
- }, "se_ListPageResolutionsCommand");
707
- var se_ListPagesByContactCommand = /* @__PURE__ */ __name(async (input, context) => {
708
- const headers = sharedHeaders("ListPagesByContact");
709
- let body;
710
- body = JSON.stringify((0, import_smithy_client._json)(input));
711
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
712
- }, "se_ListPagesByContactCommand");
713
- var se_ListPagesByEngagementCommand = /* @__PURE__ */ __name(async (input, context) => {
714
- const headers = sharedHeaders("ListPagesByEngagement");
715
- let body;
716
- body = JSON.stringify((0, import_smithy_client._json)(input));
717
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
718
- }, "se_ListPagesByEngagementCommand");
719
- var se_ListPreviewRotationShiftsCommand = /* @__PURE__ */ __name(async (input, context) => {
720
- const headers = sharedHeaders("ListPreviewRotationShifts");
721
- let body;
722
- body = JSON.stringify(se_ListPreviewRotationShiftsRequest(input, context));
723
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
724
- }, "se_ListPreviewRotationShiftsCommand");
725
- var se_ListRotationOverridesCommand = /* @__PURE__ */ __name(async (input, context) => {
726
- const headers = sharedHeaders("ListRotationOverrides");
727
- let body;
728
- body = JSON.stringify(se_ListRotationOverridesRequest(input, context));
729
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
730
- }, "se_ListRotationOverridesCommand");
731
- var se_ListRotationsCommand = /* @__PURE__ */ __name(async (input, context) => {
732
- const headers = sharedHeaders("ListRotations");
733
- let body;
734
- body = JSON.stringify((0, import_smithy_client._json)(input));
735
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
736
- }, "se_ListRotationsCommand");
737
- var se_ListRotationShiftsCommand = /* @__PURE__ */ __name(async (input, context) => {
738
- const headers = sharedHeaders("ListRotationShifts");
739
- let body;
740
- body = JSON.stringify(se_ListRotationShiftsRequest(input, context));
741
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
742
- }, "se_ListRotationShiftsCommand");
743
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
744
- const headers = sharedHeaders("ListTagsForResource");
745
- let body;
746
- body = JSON.stringify((0, import_smithy_client._json)(input));
747
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
748
- }, "se_ListTagsForResourceCommand");
749
- var se_PutContactPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
750
- const headers = sharedHeaders("PutContactPolicy");
751
- let body;
752
- body = JSON.stringify((0, import_smithy_client._json)(input));
753
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
754
- }, "se_PutContactPolicyCommand");
755
- var se_SendActivationCodeCommand = /* @__PURE__ */ __name(async (input, context) => {
756
- const headers = sharedHeaders("SendActivationCode");
757
- let body;
758
- body = JSON.stringify((0, import_smithy_client._json)(input));
759
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
760
- }, "se_SendActivationCodeCommand");
761
- var se_StartEngagementCommand = /* @__PURE__ */ __name(async (input, context) => {
762
- const headers = sharedHeaders("StartEngagement");
763
- let body;
764
- body = JSON.stringify(se_StartEngagementRequest(input, context));
765
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
766
- }, "se_StartEngagementCommand");
767
- var se_StopEngagementCommand = /* @__PURE__ */ __name(async (input, context) => {
768
- const headers = sharedHeaders("StopEngagement");
769
- let body;
770
- body = JSON.stringify((0, import_smithy_client._json)(input));
771
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
772
- }, "se_StopEngagementCommand");
773
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
774
- const headers = sharedHeaders("TagResource");
775
- let body;
776
- body = JSON.stringify((0, import_smithy_client._json)(input));
777
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
778
- }, "se_TagResourceCommand");
779
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
780
- const headers = sharedHeaders("UntagResource");
781
- let body;
782
- body = JSON.stringify((0, import_smithy_client._json)(input));
783
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
784
- }, "se_UntagResourceCommand");
785
- var se_UpdateContactCommand = /* @__PURE__ */ __name(async (input, context) => {
786
- const headers = sharedHeaders("UpdateContact");
787
- let body;
788
- body = JSON.stringify((0, import_smithy_client._json)(input));
789
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
790
- }, "se_UpdateContactCommand");
791
- var se_UpdateContactChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
792
- const headers = sharedHeaders("UpdateContactChannel");
793
- let body;
794
- body = JSON.stringify((0, import_smithy_client._json)(input));
795
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
796
- }, "se_UpdateContactChannelCommand");
797
- var se_UpdateRotationCommand = /* @__PURE__ */ __name(async (input, context) => {
798
- const headers = sharedHeaders("UpdateRotation");
799
- let body;
800
- body = JSON.stringify(se_UpdateRotationRequest(input, context));
801
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
802
- }, "se_UpdateRotationCommand");
803
- var de_AcceptPageCommand = /* @__PURE__ */ __name(async (output, context) => {
804
- if (output.statusCode >= 300) {
805
- return de_CommandError(output, context);
806
- }
807
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
808
- let contents = {};
809
- contents = (0, import_smithy_client._json)(data);
810
- const response = {
811
- $metadata: deserializeMetadata(output),
812
- ...contents
813
- };
814
- return response;
815
- }, "de_AcceptPageCommand");
816
- var de_ActivateContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
817
- if (output.statusCode >= 300) {
818
- return de_CommandError(output, context);
819
- }
820
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
821
- let contents = {};
822
- contents = (0, import_smithy_client._json)(data);
823
- const response = {
824
- $metadata: deserializeMetadata(output),
825
- ...contents
826
- };
827
- return response;
828
- }, "de_ActivateContactChannelCommand");
829
- var de_CreateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
830
- if (output.statusCode >= 300) {
831
- return de_CommandError(output, context);
832
- }
833
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
834
- let contents = {};
835
- contents = (0, import_smithy_client._json)(data);
836
- const response = {
837
- $metadata: deserializeMetadata(output),
838
- ...contents
839
- };
840
- return response;
841
- }, "de_CreateContactCommand");
842
- var de_CreateContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
843
- if (output.statusCode >= 300) {
844
- return de_CommandError(output, context);
845
- }
846
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
847
- let contents = {};
848
- contents = (0, import_smithy_client._json)(data);
849
- const response = {
850
- $metadata: deserializeMetadata(output),
851
- ...contents
852
- };
853
- return response;
854
- }, "de_CreateContactChannelCommand");
855
- var de_CreateRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
856
- if (output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
860
- let contents = {};
861
- contents = (0, import_smithy_client._json)(data);
862
- const response = {
863
- $metadata: deserializeMetadata(output),
864
- ...contents
865
- };
866
- return response;
867
- }, "de_CreateRotationCommand");
868
- var de_CreateRotationOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
869
- if (output.statusCode >= 300) {
870
- return de_CommandError(output, context);
871
- }
872
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
873
- let contents = {};
874
- contents = (0, import_smithy_client._json)(data);
875
- const response = {
876
- $metadata: deserializeMetadata(output),
877
- ...contents
878
- };
879
- return response;
880
- }, "de_CreateRotationOverrideCommand");
881
- var de_DeactivateContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
882
- if (output.statusCode >= 300) {
883
- return de_CommandError(output, context);
884
- }
885
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
886
- let contents = {};
887
- contents = (0, import_smithy_client._json)(data);
888
- const response = {
889
- $metadata: deserializeMetadata(output),
890
- ...contents
891
- };
892
- return response;
893
- }, "de_DeactivateContactChannelCommand");
894
- var de_DeleteContactCommand = /* @__PURE__ */ __name(async (output, context) => {
895
- if (output.statusCode >= 300) {
896
- return de_CommandError(output, context);
897
- }
898
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
899
- let contents = {};
900
- contents = (0, import_smithy_client._json)(data);
901
- const response = {
902
- $metadata: deserializeMetadata(output),
903
- ...contents
904
- };
905
- return response;
906
- }, "de_DeleteContactCommand");
907
- var de_DeleteContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
908
- if (output.statusCode >= 300) {
909
- return de_CommandError(output, context);
910
- }
911
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
912
- let contents = {};
913
- contents = (0, import_smithy_client._json)(data);
914
- const response = {
915
- $metadata: deserializeMetadata(output),
916
- ...contents
917
- };
918
- return response;
919
- }, "de_DeleteContactChannelCommand");
920
- var de_DeleteRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
921
- if (output.statusCode >= 300) {
922
- return de_CommandError(output, context);
923
- }
924
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
925
- let contents = {};
926
- contents = (0, import_smithy_client._json)(data);
927
- const response = {
928
- $metadata: deserializeMetadata(output),
929
- ...contents
930
- };
931
- return response;
932
- }, "de_DeleteRotationCommand");
933
- var de_DeleteRotationOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
934
- if (output.statusCode >= 300) {
935
- return de_CommandError(output, context);
936
- }
937
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
938
- let contents = {};
939
- contents = (0, import_smithy_client._json)(data);
940
- const response = {
941
- $metadata: deserializeMetadata(output),
942
- ...contents
943
- };
944
- return response;
945
- }, "de_DeleteRotationOverrideCommand");
946
- var de_DescribeEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
947
- if (output.statusCode >= 300) {
948
- return de_CommandError(output, context);
949
- }
950
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
951
- let contents = {};
952
- contents = de_DescribeEngagementResult(data, context);
953
- const response = {
954
- $metadata: deserializeMetadata(output),
955
- ...contents
956
- };
957
- return response;
958
- }, "de_DescribeEngagementCommand");
959
- var de_DescribePageCommand = /* @__PURE__ */ __name(async (output, context) => {
960
- if (output.statusCode >= 300) {
961
- return de_CommandError(output, context);
962
- }
963
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
964
- let contents = {};
965
- contents = de_DescribePageResult(data, context);
966
- const response = {
967
- $metadata: deserializeMetadata(output),
968
- ...contents
969
- };
970
- return response;
971
- }, "de_DescribePageCommand");
972
- var de_GetContactCommand = /* @__PURE__ */ __name(async (output, context) => {
973
- if (output.statusCode >= 300) {
974
- return de_CommandError(output, context);
975
- }
976
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
977
- let contents = {};
978
- contents = (0, import_smithy_client._json)(data);
979
- const response = {
980
- $metadata: deserializeMetadata(output),
981
- ...contents
982
- };
983
- return response;
984
- }, "de_GetContactCommand");
985
- var de_GetContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
986
- if (output.statusCode >= 300) {
987
- return de_CommandError(output, context);
988
- }
989
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
990
- let contents = {};
991
- contents = (0, import_smithy_client._json)(data);
992
- const response = {
993
- $metadata: deserializeMetadata(output),
994
- ...contents
995
- };
996
- return response;
997
- }, "de_GetContactChannelCommand");
998
- var de_GetContactPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
999
- if (output.statusCode >= 300) {
1000
- return de_CommandError(output, context);
1001
- }
1002
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1003
- let contents = {};
1004
- contents = (0, import_smithy_client._json)(data);
1005
- const response = {
1006
- $metadata: deserializeMetadata(output),
1007
- ...contents
1008
- };
1009
- return response;
1010
- }, "de_GetContactPolicyCommand");
1011
- var de_GetRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
1012
- if (output.statusCode >= 300) {
1013
- return de_CommandError(output, context);
1014
- }
1015
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1016
- let contents = {};
1017
- contents = de_GetRotationResult(data, context);
1018
- const response = {
1019
- $metadata: deserializeMetadata(output),
1020
- ...contents
1021
- };
1022
- return response;
1023
- }, "de_GetRotationCommand");
1024
- var de_GetRotationOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
1025
- if (output.statusCode >= 300) {
1026
- return de_CommandError(output, context);
1027
- }
1028
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1029
- let contents = {};
1030
- contents = de_GetRotationOverrideResult(data, context);
1031
- const response = {
1032
- $metadata: deserializeMetadata(output),
1033
- ...contents
1034
- };
1035
- return response;
1036
- }, "de_GetRotationOverrideCommand");
1037
- var de_ListContactChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
1038
- if (output.statusCode >= 300) {
1039
- return de_CommandError(output, context);
1040
- }
1041
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1042
- let contents = {};
1043
- contents = (0, import_smithy_client._json)(data);
1044
- const response = {
1045
- $metadata: deserializeMetadata(output),
1046
- ...contents
1047
- };
1048
- return response;
1049
- }, "de_ListContactChannelsCommand");
1050
- var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
1051
- if (output.statusCode >= 300) {
1052
- return de_CommandError(output, context);
1053
- }
1054
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1055
- let contents = {};
1056
- contents = (0, import_smithy_client._json)(data);
1057
- const response = {
1058
- $metadata: deserializeMetadata(output),
1059
- ...contents
1060
- };
1061
- return response;
1062
- }, "de_ListContactsCommand");
1063
- var de_ListEngagementsCommand = /* @__PURE__ */ __name(async (output, context) => {
1064
- if (output.statusCode >= 300) {
1065
- return de_CommandError(output, context);
1066
- }
1067
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1068
- let contents = {};
1069
- contents = de_ListEngagementsResult(data, context);
1070
- const response = {
1071
- $metadata: deserializeMetadata(output),
1072
- ...contents
1073
- };
1074
- return response;
1075
- }, "de_ListEngagementsCommand");
1076
- var de_ListPageReceiptsCommand = /* @__PURE__ */ __name(async (output, context) => {
1077
- if (output.statusCode >= 300) {
1078
- return de_CommandError(output, context);
1079
- }
1080
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1081
- let contents = {};
1082
- contents = de_ListPageReceiptsResult(data, context);
1083
- const response = {
1084
- $metadata: deserializeMetadata(output),
1085
- ...contents
1086
- };
1087
- return response;
1088
- }, "de_ListPageReceiptsCommand");
1089
- var de_ListPageResolutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1090
- if (output.statusCode >= 300) {
1091
- return de_CommandError(output, context);
1092
- }
1093
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1094
- let contents = {};
1095
- contents = (0, import_smithy_client._json)(data);
1096
- const response = {
1097
- $metadata: deserializeMetadata(output),
1098
- ...contents
1099
- };
1100
- return response;
1101
- }, "de_ListPageResolutionsCommand");
1102
- var de_ListPagesByContactCommand = /* @__PURE__ */ __name(async (output, context) => {
1103
- if (output.statusCode >= 300) {
1104
- return de_CommandError(output, context);
1105
- }
1106
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1107
- let contents = {};
1108
- contents = de_ListPagesByContactResult(data, context);
1109
- const response = {
1110
- $metadata: deserializeMetadata(output),
1111
- ...contents
1112
- };
1113
- return response;
1114
- }, "de_ListPagesByContactCommand");
1115
- var de_ListPagesByEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
1116
- if (output.statusCode >= 300) {
1117
- return de_CommandError(output, context);
1118
- }
1119
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1120
- let contents = {};
1121
- contents = de_ListPagesByEngagementResult(data, context);
1122
- const response = {
1123
- $metadata: deserializeMetadata(output),
1124
- ...contents
1125
- };
1126
- return response;
1127
- }, "de_ListPagesByEngagementCommand");
1128
- var de_ListPreviewRotationShiftsCommand = /* @__PURE__ */ __name(async (output, context) => {
1129
- if (output.statusCode >= 300) {
1130
- return de_CommandError(output, context);
1131
- }
1132
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1133
- let contents = {};
1134
- contents = de_ListPreviewRotationShiftsResult(data, context);
1135
- const response = {
1136
- $metadata: deserializeMetadata(output),
1137
- ...contents
1138
- };
1139
- return response;
1140
- }, "de_ListPreviewRotationShiftsCommand");
1141
- var de_ListRotationOverridesCommand = /* @__PURE__ */ __name(async (output, context) => {
1142
- if (output.statusCode >= 300) {
1143
- return de_CommandError(output, context);
1144
- }
1145
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1146
- let contents = {};
1147
- contents = de_ListRotationOverridesResult(data, context);
1148
- const response = {
1149
- $metadata: deserializeMetadata(output),
1150
- ...contents
1151
- };
1152
- return response;
1153
- }, "de_ListRotationOverridesCommand");
1154
- var de_ListRotationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1155
- if (output.statusCode >= 300) {
1156
- return de_CommandError(output, context);
1157
- }
1158
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1159
- let contents = {};
1160
- contents = de_ListRotationsResult(data, context);
1161
- const response = {
1162
- $metadata: deserializeMetadata(output),
1163
- ...contents
1164
- };
1165
- return response;
1166
- }, "de_ListRotationsCommand");
1167
- var de_ListRotationShiftsCommand = /* @__PURE__ */ __name(async (output, context) => {
1168
- if (output.statusCode >= 300) {
1169
- return de_CommandError(output, context);
1170
- }
1171
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1172
- let contents = {};
1173
- contents = de_ListRotationShiftsResult(data, context);
1174
- const response = {
1175
- $metadata: deserializeMetadata(output),
1176
- ...contents
1177
- };
1178
- return response;
1179
- }, "de_ListRotationShiftsCommand");
1180
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1181
- if (output.statusCode >= 300) {
1182
- return de_CommandError(output, context);
1183
- }
1184
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1185
- let contents = {};
1186
- contents = (0, import_smithy_client._json)(data);
1187
- const response = {
1188
- $metadata: deserializeMetadata(output),
1189
- ...contents
1190
- };
1191
- return response;
1192
- }, "de_ListTagsForResourceCommand");
1193
- var de_PutContactPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1194
- if (output.statusCode >= 300) {
1195
- return de_CommandError(output, context);
1196
- }
1197
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1198
- let contents = {};
1199
- contents = (0, import_smithy_client._json)(data);
1200
- const response = {
1201
- $metadata: deserializeMetadata(output),
1202
- ...contents
1203
- };
1204
- return response;
1205
- }, "de_PutContactPolicyCommand");
1206
- var de_SendActivationCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1207
- if (output.statusCode >= 300) {
1208
- return de_CommandError(output, context);
1209
- }
1210
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1211
- let contents = {};
1212
- contents = (0, import_smithy_client._json)(data);
1213
- const response = {
1214
- $metadata: deserializeMetadata(output),
1215
- ...contents
1216
- };
1217
- return response;
1218
- }, "de_SendActivationCodeCommand");
1219
- var de_StartEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
1220
- if (output.statusCode >= 300) {
1221
- return de_CommandError(output, context);
1222
- }
1223
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1224
- let contents = {};
1225
- contents = (0, import_smithy_client._json)(data);
1226
- const response = {
1227
- $metadata: deserializeMetadata(output),
1228
- ...contents
1229
- };
1230
- return response;
1231
- }, "de_StartEngagementCommand");
1232
- var de_StopEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
1233
- if (output.statusCode >= 300) {
1234
- return de_CommandError(output, context);
1235
- }
1236
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1237
- let contents = {};
1238
- contents = (0, import_smithy_client._json)(data);
1239
- const response = {
1240
- $metadata: deserializeMetadata(output),
1241
- ...contents
1242
- };
1243
- return response;
1244
- }, "de_StopEngagementCommand");
1245
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1246
- if (output.statusCode >= 300) {
1247
- return de_CommandError(output, context);
1248
- }
1249
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1250
- let contents = {};
1251
- contents = (0, import_smithy_client._json)(data);
1252
- const response = {
1253
- $metadata: deserializeMetadata(output),
1254
- ...contents
1255
- };
1256
- return response;
1257
- }, "de_TagResourceCommand");
1258
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1259
- if (output.statusCode >= 300) {
1260
- return de_CommandError(output, context);
1261
- }
1262
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1263
- let contents = {};
1264
- contents = (0, import_smithy_client._json)(data);
1265
- const response = {
1266
- $metadata: deserializeMetadata(output),
1267
- ...contents
1268
- };
1269
- return response;
1270
- }, "de_UntagResourceCommand");
1271
- var de_UpdateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
1272
- if (output.statusCode >= 300) {
1273
- return de_CommandError(output, context);
1274
- }
1275
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1276
- let contents = {};
1277
- contents = (0, import_smithy_client._json)(data);
1278
- const response = {
1279
- $metadata: deserializeMetadata(output),
1280
- ...contents
1281
- };
1282
- return response;
1283
- }, "de_UpdateContactCommand");
1284
- var de_UpdateContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
1285
- if (output.statusCode >= 300) {
1286
- return de_CommandError(output, context);
1287
- }
1288
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1289
- let contents = {};
1290
- contents = (0, import_smithy_client._json)(data);
1291
- const response = {
1292
- $metadata: deserializeMetadata(output),
1293
- ...contents
1294
- };
1295
- return response;
1296
- }, "de_UpdateContactChannelCommand");
1297
- var de_UpdateRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
1298
- if (output.statusCode >= 300) {
1299
- return de_CommandError(output, context);
1300
- }
1301
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1302
- let contents = {};
1303
- contents = (0, import_smithy_client._json)(data);
1304
- const response = {
1305
- $metadata: deserializeMetadata(output),
1306
- ...contents
1307
- };
1308
- return response;
1309
- }, "de_UpdateRotationCommand");
1310
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1311
- const parsedOutput = {
1312
- ...output,
1313
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1314
- };
1315
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1316
- switch (errorCode) {
1317
- case "AccessDeniedException":
1318
- case "com.amazonaws.ssmcontacts#AccessDeniedException":
1319
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1320
- case "InternalServerException":
1321
- case "com.amazonaws.ssmcontacts#InternalServerException":
1322
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1323
- case "ResourceNotFoundException":
1324
- case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
1325
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1326
- case "ThrottlingException":
1327
- case "com.amazonaws.ssmcontacts#ThrottlingException":
1328
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1329
- case "ValidationException":
1330
- case "com.amazonaws.ssmcontacts#ValidationException":
1331
- throw await de_ValidationExceptionRes(parsedOutput, context);
1332
- case "ConflictException":
1333
- case "com.amazonaws.ssmcontacts#ConflictException":
1334
- throw await de_ConflictExceptionRes(parsedOutput, context);
1335
- case "DataEncryptionException":
1336
- case "com.amazonaws.ssmcontacts#DataEncryptionException":
1337
- throw await de_DataEncryptionExceptionRes(parsedOutput, context);
1338
- case "ServiceQuotaExceededException":
1339
- case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
1340
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1341
- default:
1342
- const parsedBody = parsedOutput.body;
1343
- return throwDefaultError({
1344
- output,
1345
- parsedBody,
1346
- errorCode
1347
- });
1348
- }
1349
- }, "de_CommandError");
1350
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1351
- const body = parsedOutput.body;
1352
- const deserialized = (0, import_smithy_client._json)(body);
1353
- const exception = new AccessDeniedException({
1354
- $metadata: deserializeMetadata(parsedOutput),
1355
- ...deserialized
1356
- });
1357
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1358
- }, "de_AccessDeniedExceptionRes");
1359
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1360
- const body = parsedOutput.body;
1361
- const deserialized = (0, import_smithy_client._json)(body);
1362
- const exception = new ConflictException({
1363
- $metadata: deserializeMetadata(parsedOutput),
1364
- ...deserialized
1365
- });
1366
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1367
- }, "de_ConflictExceptionRes");
1368
- var de_DataEncryptionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1369
- const body = parsedOutput.body;
1370
- const deserialized = (0, import_smithy_client._json)(body);
1371
- const exception = new DataEncryptionException({
1372
- $metadata: deserializeMetadata(parsedOutput),
1373
- ...deserialized
1374
- });
1375
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1376
- }, "de_DataEncryptionExceptionRes");
1377
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1378
- const body = parsedOutput.body;
1379
- const deserialized = (0, import_smithy_client._json)(body);
1380
- const exception = new InternalServerException({
1381
- $metadata: deserializeMetadata(parsedOutput),
1382
- ...deserialized
1383
- });
1384
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1385
- }, "de_InternalServerExceptionRes");
1386
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1387
- const body = parsedOutput.body;
1388
- const deserialized = (0, import_smithy_client._json)(body);
1389
- const exception = new ResourceNotFoundException({
1390
- $metadata: deserializeMetadata(parsedOutput),
1391
- ...deserialized
1392
- });
1393
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1394
- }, "de_ResourceNotFoundExceptionRes");
1395
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1396
- const body = parsedOutput.body;
1397
- const deserialized = (0, import_smithy_client._json)(body);
1398
- const exception = new ServiceQuotaExceededException({
1399
- $metadata: deserializeMetadata(parsedOutput),
1400
- ...deserialized
1401
- });
1402
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1403
- }, "de_ServiceQuotaExceededExceptionRes");
1404
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1405
- const body = parsedOutput.body;
1406
- const deserialized = (0, import_smithy_client._json)(body);
1407
- const exception = new ThrottlingException({
1408
- $metadata: deserializeMetadata(parsedOutput),
1409
- ...deserialized
1410
- });
1411
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1412
- }, "de_ThrottlingExceptionRes");
1413
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1414
- const body = parsedOutput.body;
1415
- const deserialized = (0, import_smithy_client._json)(body);
1416
- const exception = new ValidationException({
1417
- $metadata: deserializeMetadata(parsedOutput),
1418
- ...deserialized
1419
- });
1420
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1421
- }, "de_ValidationExceptionRes");
1422
- var se_CreateContactChannelRequest = /* @__PURE__ */ __name((input, context) => {
1423
- return (0, import_smithy_client.take)(input, {
1424
- ContactId: [],
1425
- DeferActivation: [],
1426
- DeliveryAddress: import_smithy_client._json,
1427
- IdempotencyToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1428
- Name: [],
1429
- Type: []
1430
- });
1431
- }, "se_CreateContactChannelRequest");
1432
- var se_CreateContactRequest = /* @__PURE__ */ __name((input, context) => {
1433
- return (0, import_smithy_client.take)(input, {
1434
- Alias: [],
1435
- DisplayName: [],
1436
- IdempotencyToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1437
- Plan: import_smithy_client._json,
1438
- Tags: import_smithy_client._json,
1439
- Type: []
1440
- });
1441
- }, "se_CreateContactRequest");
1442
- var se_CreateRotationOverrideRequest = /* @__PURE__ */ __name((input, context) => {
1443
- return (0, import_smithy_client.take)(input, {
1444
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1445
- IdempotencyToken: [],
1446
- NewContactIds: import_smithy_client._json,
1447
- RotationId: [],
1448
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
1449
- });
1450
- }, "se_CreateRotationOverrideRequest");
1451
- var se_CreateRotationRequest = /* @__PURE__ */ __name((input, context) => {
1452
- return (0, import_smithy_client.take)(input, {
1453
- ContactIds: import_smithy_client._json,
1454
- IdempotencyToken: [],
1455
- Name: [],
1456
- Recurrence: import_smithy_client._json,
1457
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime"),
1458
- Tags: import_smithy_client._json,
1459
- TimeZoneId: []
1460
- });
1461
- }, "se_CreateRotationRequest");
1462
- var se_ListEngagementsRequest = /* @__PURE__ */ __name((input, context) => {
1463
- return (0, import_smithy_client.take)(input, {
1464
- IncidentId: [],
1465
- MaxResults: [],
1466
- NextToken: [],
1467
- TimeRangeValue: /* @__PURE__ */ __name((_) => se_TimeRange(_, context), "TimeRangeValue")
1468
- });
1469
- }, "se_ListEngagementsRequest");
1470
- var se_ListPreviewRotationShiftsRequest = /* @__PURE__ */ __name((input, context) => {
1471
- return (0, import_smithy_client.take)(input, {
1472
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1473
- MaxResults: [],
1474
- Members: import_smithy_client._json,
1475
- NextToken: [],
1476
- Overrides: /* @__PURE__ */ __name((_) => se_OverrideList(_, context), "Overrides"),
1477
- Recurrence: import_smithy_client._json,
1478
- RotationStartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "RotationStartTime"),
1479
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime"),
1480
- TimeZoneId: []
1481
- });
1482
- }, "se_ListPreviewRotationShiftsRequest");
1483
- var se_ListRotationOverridesRequest = /* @__PURE__ */ __name((input, context) => {
1484
- return (0, import_smithy_client.take)(input, {
1485
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1486
- MaxResults: [],
1487
- NextToken: [],
1488
- RotationId: [],
1489
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
1490
- });
1491
- }, "se_ListRotationOverridesRequest");
1492
- var se_ListRotationShiftsRequest = /* @__PURE__ */ __name((input, context) => {
1493
- return (0, import_smithy_client.take)(input, {
1494
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1495
- MaxResults: [],
1496
- NextToken: [],
1497
- RotationId: [],
1498
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
1499
- });
1500
- }, "se_ListRotationShiftsRequest");
1501
- var se_OverrideList = /* @__PURE__ */ __name((input, context) => {
1502
- return input.filter((e) => e != null).map((entry) => {
1503
- return se_PreviewOverride(entry, context);
1504
- });
1505
- }, "se_OverrideList");
1506
- var se_PreviewOverride = /* @__PURE__ */ __name((input, context) => {
1507
- return (0, import_smithy_client.take)(input, {
1508
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1509
- NewMembers: import_smithy_client._json,
1510
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
1511
- });
1512
- }, "se_PreviewOverride");
1513
- var se_StartEngagementRequest = /* @__PURE__ */ __name((input, context) => {
1514
- return (0, import_smithy_client.take)(input, {
1515
- ContactId: [],
1516
- Content: [],
1517
- IdempotencyToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1518
- IncidentId: [],
1519
- PublicContent: [],
1520
- PublicSubject: [],
1521
- Sender: [],
1522
- Subject: []
1523
- });
1524
- }, "se_StartEngagementRequest");
1525
- var se_TimeRange = /* @__PURE__ */ __name((input, context) => {
1526
- return (0, import_smithy_client.take)(input, {
1527
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1528
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
1529
- });
1530
- }, "se_TimeRange");
1531
- var se_UpdateRotationRequest = /* @__PURE__ */ __name((input, context) => {
1532
- return (0, import_smithy_client.take)(input, {
1533
- ContactIds: import_smithy_client._json,
1534
- Recurrence: import_smithy_client._json,
1535
- RotationId: [],
1536
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime"),
1537
- TimeZoneId: []
1538
- });
1539
- }, "se_UpdateRotationRequest");
1540
- var de_DescribeEngagementResult = /* @__PURE__ */ __name((output, context) => {
1541
- return (0, import_smithy_client.take)(output, {
1542
- ContactArn: import_smithy_client.expectString,
1543
- Content: import_smithy_client.expectString,
1544
- EngagementArn: import_smithy_client.expectString,
1545
- IncidentId: import_smithy_client.expectString,
1546
- PublicContent: import_smithy_client.expectString,
1547
- PublicSubject: import_smithy_client.expectString,
1548
- Sender: import_smithy_client.expectString,
1549
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1550
- StopTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StopTime"),
1551
- Subject: import_smithy_client.expectString
1552
- });
1553
- }, "de_DescribeEngagementResult");
1554
- var de_DescribePageResult = /* @__PURE__ */ __name((output, context) => {
1555
- return (0, import_smithy_client.take)(output, {
1556
- ContactArn: import_smithy_client.expectString,
1557
- Content: import_smithy_client.expectString,
1558
- DeliveryTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeliveryTime"),
1559
- EngagementArn: import_smithy_client.expectString,
1560
- IncidentId: import_smithy_client.expectString,
1561
- PageArn: import_smithy_client.expectString,
1562
- PublicContent: import_smithy_client.expectString,
1563
- PublicSubject: import_smithy_client.expectString,
1564
- ReadTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ReadTime"),
1565
- Sender: import_smithy_client.expectString,
1566
- SentTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "SentTime"),
1567
- Subject: import_smithy_client.expectString
1568
- });
1569
- }, "de_DescribePageResult");
1570
- var de_Engagement = /* @__PURE__ */ __name((output, context) => {
1571
- return (0, import_smithy_client.take)(output, {
1572
- ContactArn: import_smithy_client.expectString,
1573
- EngagementArn: import_smithy_client.expectString,
1574
- IncidentId: import_smithy_client.expectString,
1575
- Sender: import_smithy_client.expectString,
1576
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1577
- StopTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StopTime")
1578
- });
1579
- }, "de_Engagement");
1580
- var de_EngagementsList = /* @__PURE__ */ __name((output, context) => {
1581
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1582
- return de_Engagement(entry, context);
1583
- });
1584
- return retVal;
1585
- }, "de_EngagementsList");
1586
- var de_GetRotationOverrideResult = /* @__PURE__ */ __name((output, context) => {
1587
- return (0, import_smithy_client.take)(output, {
1588
- CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
1589
- EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
1590
- NewContactIds: import_smithy_client._json,
1591
- RotationArn: import_smithy_client.expectString,
1592
- RotationOverrideId: import_smithy_client.expectString,
1593
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
1594
- });
1595
- }, "de_GetRotationOverrideResult");
1596
- var de_GetRotationResult = /* @__PURE__ */ __name((output, context) => {
1597
- return (0, import_smithy_client.take)(output, {
1598
- ContactIds: import_smithy_client._json,
1599
- Name: import_smithy_client.expectString,
1600
- Recurrence: import_smithy_client._json,
1601
- RotationArn: import_smithy_client.expectString,
1602
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1603
- TimeZoneId: import_smithy_client.expectString
1604
- });
1605
- }, "de_GetRotationResult");
1606
- var de_ListEngagementsResult = /* @__PURE__ */ __name((output, context) => {
1607
- return (0, import_smithy_client.take)(output, {
1608
- Engagements: /* @__PURE__ */ __name((_) => de_EngagementsList(_, context), "Engagements"),
1609
- NextToken: import_smithy_client.expectString
1610
- });
1611
- }, "de_ListEngagementsResult");
1612
- var de_ListPageReceiptsResult = /* @__PURE__ */ __name((output, context) => {
1613
- return (0, import_smithy_client.take)(output, {
1614
- NextToken: import_smithy_client.expectString,
1615
- Receipts: /* @__PURE__ */ __name((_) => de_ReceiptsList(_, context), "Receipts")
1616
- });
1617
- }, "de_ListPageReceiptsResult");
1618
- var de_ListPagesByContactResult = /* @__PURE__ */ __name((output, context) => {
1619
- return (0, import_smithy_client.take)(output, {
1620
- NextToken: import_smithy_client.expectString,
1621
- Pages: /* @__PURE__ */ __name((_) => de_PagesList(_, context), "Pages")
1622
- });
1623
- }, "de_ListPagesByContactResult");
1624
- var de_ListPagesByEngagementResult = /* @__PURE__ */ __name((output, context) => {
1625
- return (0, import_smithy_client.take)(output, {
1626
- NextToken: import_smithy_client.expectString,
1627
- Pages: /* @__PURE__ */ __name((_) => de_PagesList(_, context), "Pages")
1628
- });
1629
- }, "de_ListPagesByEngagementResult");
1630
- var de_ListPreviewRotationShiftsResult = /* @__PURE__ */ __name((output, context) => {
1631
- return (0, import_smithy_client.take)(output, {
1632
- NextToken: import_smithy_client.expectString,
1633
- RotationShifts: /* @__PURE__ */ __name((_) => de_RotationShifts(_, context), "RotationShifts")
1634
- });
1635
- }, "de_ListPreviewRotationShiftsResult");
1636
- var de_ListRotationOverridesResult = /* @__PURE__ */ __name((output, context) => {
1637
- return (0, import_smithy_client.take)(output, {
1638
- NextToken: import_smithy_client.expectString,
1639
- RotationOverrides: /* @__PURE__ */ __name((_) => de_RotationOverrides(_, context), "RotationOverrides")
1640
- });
1641
- }, "de_ListRotationOverridesResult");
1642
- var de_ListRotationShiftsResult = /* @__PURE__ */ __name((output, context) => {
1643
- return (0, import_smithy_client.take)(output, {
1644
- NextToken: import_smithy_client.expectString,
1645
- RotationShifts: /* @__PURE__ */ __name((_) => de_RotationShifts(_, context), "RotationShifts")
1646
- });
1647
- }, "de_ListRotationShiftsResult");
1648
- var de_ListRotationsResult = /* @__PURE__ */ __name((output, context) => {
1649
- return (0, import_smithy_client.take)(output, {
1650
- NextToken: import_smithy_client.expectString,
1651
- Rotations: /* @__PURE__ */ __name((_) => de_Rotations(_, context), "Rotations")
1652
- });
1653
- }, "de_ListRotationsResult");
1654
- var de_Page = /* @__PURE__ */ __name((output, context) => {
1655
- return (0, import_smithy_client.take)(output, {
1656
- ContactArn: import_smithy_client.expectString,
1657
- DeliveryTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeliveryTime"),
1658
- EngagementArn: import_smithy_client.expectString,
1659
- IncidentId: import_smithy_client.expectString,
1660
- PageArn: import_smithy_client.expectString,
1661
- ReadTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ReadTime"),
1662
- Sender: import_smithy_client.expectString,
1663
- SentTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "SentTime")
1664
- });
1665
- }, "de_Page");
1666
- var de_PagesList = /* @__PURE__ */ __name((output, context) => {
1667
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1668
- return de_Page(entry, context);
1669
- });
1670
- return retVal;
1671
- }, "de_PagesList");
1672
- var de_Receipt = /* @__PURE__ */ __name((output, context) => {
1673
- return (0, import_smithy_client.take)(output, {
1674
- ContactChannelArn: import_smithy_client.expectString,
1675
- ReceiptInfo: import_smithy_client.expectString,
1676
- ReceiptTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ReceiptTime"),
1677
- ReceiptType: import_smithy_client.expectString
1678
- });
1679
- }, "de_Receipt");
1680
- var de_ReceiptsList = /* @__PURE__ */ __name((output, context) => {
1681
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1682
- return de_Receipt(entry, context);
1683
- });
1684
- return retVal;
1685
- }, "de_ReceiptsList");
1686
- var de_Rotation = /* @__PURE__ */ __name((output, context) => {
1687
- return (0, import_smithy_client.take)(output, {
1688
- ContactIds: import_smithy_client._json,
1689
- Name: import_smithy_client.expectString,
1690
- Recurrence: import_smithy_client._json,
1691
- RotationArn: import_smithy_client.expectString,
1692
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1693
- TimeZoneId: import_smithy_client.expectString
1694
- });
1695
- }, "de_Rotation");
1696
- var de_RotationOverride = /* @__PURE__ */ __name((output, context) => {
1697
- return (0, import_smithy_client.take)(output, {
1698
- CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
1699
- EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
1700
- NewContactIds: import_smithy_client._json,
1701
- RotationOverrideId: import_smithy_client.expectString,
1702
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
1703
- });
1704
- }, "de_RotationOverride");
1705
- var de_RotationOverrides = /* @__PURE__ */ __name((output, context) => {
1706
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1707
- return de_RotationOverride(entry, context);
1708
- });
1709
- return retVal;
1710
- }, "de_RotationOverrides");
1711
- var de_Rotations = /* @__PURE__ */ __name((output, context) => {
1712
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1713
- return de_Rotation(entry, context);
1714
- });
1715
- return retVal;
1716
- }, "de_Rotations");
1717
- var de_RotationShift = /* @__PURE__ */ __name((output, context) => {
1718
- return (0, import_smithy_client.take)(output, {
1719
- ContactIds: import_smithy_client._json,
1720
- EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
1721
- ShiftDetails: import_smithy_client._json,
1722
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1723
- Type: import_smithy_client.expectString
1724
- });
1725
- }, "de_RotationShift");
1726
- var de_RotationShifts = /* @__PURE__ */ __name((output, context) => {
1727
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1728
- return de_RotationShift(entry, context);
1729
- });
1730
- return retVal;
1731
- }, "de_RotationShifts");
1732
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1733
- httpStatusCode: output.statusCode,
1734
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1735
- extendedRequestId: output.headers["x-amz-id-2"],
1736
- cfId: output.headers["x-amz-cf-id"]
1737
- }), "deserializeMetadata");
1738
- var throwDefaultError = (0, import_smithy_client.withBaseException)(SSMContactsServiceException);
1739
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1740
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1741
- const contents = {
1742
- protocol,
1743
- hostname,
1744
- port,
1745
- method: "POST",
1746
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1747
- headers
1748
- };
1749
- if (resolvedHostname !== void 0) {
1750
- contents.hostname = resolvedHostname;
1751
- }
1752
- if (body !== void 0) {
1753
- contents.body = body;
1754
- }
1755
- return new import_protocol_http.HttpRequest(contents);
1756
- }, "buildHttpRpcRequest");
1757
- function sharedHeaders(operation) {
1758
- return {
1759
- "content-type": "application/x-amz-json-1.1",
1760
- "x-amz-target": `SSMContacts.${operation}`
1761
- };
1762
- }
1763
- __name(sharedHeaders, "sharedHeaders");
1764
-
1765
- // src/commands/AcceptPageCommand.ts
1766
- var AcceptPageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1767
- return [
1768
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1769
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1770
- ];
1771
- }).s("SSMContacts", "AcceptPage", {}).n("SSMContactsClient", "AcceptPageCommand").f(void 0, void 0).ser(se_AcceptPageCommand).de(de_AcceptPageCommand).build() {
1772
- static {
1773
- __name(this, "AcceptPageCommand");
1774
- }
1165
+ const se_CreateContactChannelRequest = (input, context) => {
1166
+ return smithyClient.take(input, {
1167
+ ContactId: [],
1168
+ DeferActivation: [],
1169
+ DeliveryAddress: smithyClient._json,
1170
+ IdempotencyToken: [true, (_) => _ ?? uuid.v4()],
1171
+ Name: [],
1172
+ Type: [],
1173
+ });
1775
1174
  };
1776
-
1777
- // src/commands/ActivateContactChannelCommand.ts
1778
-
1779
-
1780
-
1781
- var ActivateContactChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1782
- return [
1783
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1784
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1785
- ];
1786
- }).s("SSMContacts", "ActivateContactChannel", {}).n("SSMContactsClient", "ActivateContactChannelCommand").f(void 0, void 0).ser(se_ActivateContactChannelCommand).de(de_ActivateContactChannelCommand).build() {
1787
- static {
1788
- __name(this, "ActivateContactChannelCommand");
1789
- }
1175
+ const se_CreateContactRequest = (input, context) => {
1176
+ return smithyClient.take(input, {
1177
+ Alias: [],
1178
+ DisplayName: [],
1179
+ IdempotencyToken: [true, (_) => _ ?? uuid.v4()],
1180
+ Plan: smithyClient._json,
1181
+ Tags: smithyClient._json,
1182
+ Type: [],
1183
+ });
1790
1184
  };
1791
-
1792
- // src/commands/CreateContactChannelCommand.ts
1793
-
1794
-
1795
-
1796
- var CreateContactChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1797
- return [
1798
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1799
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1800
- ];
1801
- }).s("SSMContacts", "CreateContactChannel", {}).n("SSMContactsClient", "CreateContactChannelCommand").f(void 0, void 0).ser(se_CreateContactChannelCommand).de(de_CreateContactChannelCommand).build() {
1802
- static {
1803
- __name(this, "CreateContactChannelCommand");
1804
- }
1185
+ const se_CreateRotationOverrideRequest = (input, context) => {
1186
+ return smithyClient.take(input, {
1187
+ EndTime: (_) => _.getTime() / 1_000,
1188
+ IdempotencyToken: [],
1189
+ NewContactIds: smithyClient._json,
1190
+ RotationId: [],
1191
+ StartTime: (_) => _.getTime() / 1_000,
1192
+ });
1805
1193
  };
1806
-
1807
- // src/commands/CreateContactCommand.ts
1808
-
1809
-
1810
-
1811
- var CreateContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1812
- return [
1813
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1814
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1815
- ];
1816
- }).s("SSMContacts", "CreateContact", {}).n("SSMContactsClient", "CreateContactCommand").f(void 0, void 0).ser(se_CreateContactCommand).de(de_CreateContactCommand).build() {
1817
- static {
1818
- __name(this, "CreateContactCommand");
1819
- }
1194
+ const se_CreateRotationRequest = (input, context) => {
1195
+ return smithyClient.take(input, {
1196
+ ContactIds: smithyClient._json,
1197
+ IdempotencyToken: [],
1198
+ Name: [],
1199
+ Recurrence: smithyClient._json,
1200
+ StartTime: (_) => _.getTime() / 1_000,
1201
+ Tags: smithyClient._json,
1202
+ TimeZoneId: [],
1203
+ });
1820
1204
  };
1821
-
1822
- // src/commands/CreateRotationCommand.ts
1823
-
1824
-
1825
-
1826
- var CreateRotationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1827
- return [
1828
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1829
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1830
- ];
1831
- }).s("SSMContacts", "CreateRotation", {}).n("SSMContactsClient", "CreateRotationCommand").f(void 0, void 0).ser(se_CreateRotationCommand).de(de_CreateRotationCommand).build() {
1832
- static {
1833
- __name(this, "CreateRotationCommand");
1834
- }
1205
+ const se_ListEngagementsRequest = (input, context) => {
1206
+ return smithyClient.take(input, {
1207
+ IncidentId: [],
1208
+ MaxResults: [],
1209
+ NextToken: [],
1210
+ TimeRangeValue: (_) => se_TimeRange(_),
1211
+ });
1835
1212
  };
1836
-
1837
- // src/commands/CreateRotationOverrideCommand.ts
1838
-
1839
-
1840
-
1841
- var CreateRotationOverrideCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1842
- return [
1843
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1844
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1845
- ];
1846
- }).s("SSMContacts", "CreateRotationOverride", {}).n("SSMContactsClient", "CreateRotationOverrideCommand").f(void 0, void 0).ser(se_CreateRotationOverrideCommand).de(de_CreateRotationOverrideCommand).build() {
1847
- static {
1848
- __name(this, "CreateRotationOverrideCommand");
1849
- }
1213
+ const se_ListPreviewRotationShiftsRequest = (input, context) => {
1214
+ return smithyClient.take(input, {
1215
+ EndTime: (_) => _.getTime() / 1_000,
1216
+ MaxResults: [],
1217
+ Members: smithyClient._json,
1218
+ NextToken: [],
1219
+ Overrides: (_) => se_OverrideList(_),
1220
+ Recurrence: smithyClient._json,
1221
+ RotationStartTime: (_) => _.getTime() / 1_000,
1222
+ StartTime: (_) => _.getTime() / 1_000,
1223
+ TimeZoneId: [],
1224
+ });
1850
1225
  };
1851
-
1852
- // src/commands/DeactivateContactChannelCommand.ts
1853
-
1854
-
1855
-
1856
- var DeactivateContactChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1857
- return [
1858
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1859
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1860
- ];
1861
- }).s("SSMContacts", "DeactivateContactChannel", {}).n("SSMContactsClient", "DeactivateContactChannelCommand").f(void 0, void 0).ser(se_DeactivateContactChannelCommand).de(de_DeactivateContactChannelCommand).build() {
1862
- static {
1863
- __name(this, "DeactivateContactChannelCommand");
1864
- }
1226
+ const se_ListRotationOverridesRequest = (input, context) => {
1227
+ return smithyClient.take(input, {
1228
+ EndTime: (_) => _.getTime() / 1_000,
1229
+ MaxResults: [],
1230
+ NextToken: [],
1231
+ RotationId: [],
1232
+ StartTime: (_) => _.getTime() / 1_000,
1233
+ });
1865
1234
  };
1866
-
1867
- // src/commands/DeleteContactChannelCommand.ts
1868
-
1869
-
1870
-
1871
- var DeleteContactChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1872
- return [
1873
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1874
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1875
- ];
1876
- }).s("SSMContacts", "DeleteContactChannel", {}).n("SSMContactsClient", "DeleteContactChannelCommand").f(void 0, void 0).ser(se_DeleteContactChannelCommand).de(de_DeleteContactChannelCommand).build() {
1877
- static {
1878
- __name(this, "DeleteContactChannelCommand");
1879
- }
1235
+ const se_ListRotationShiftsRequest = (input, context) => {
1236
+ return smithyClient.take(input, {
1237
+ EndTime: (_) => _.getTime() / 1_000,
1238
+ MaxResults: [],
1239
+ NextToken: [],
1240
+ RotationId: [],
1241
+ StartTime: (_) => _.getTime() / 1_000,
1242
+ });
1880
1243
  };
1881
-
1882
- // src/commands/DeleteContactCommand.ts
1883
-
1884
-
1885
-
1886
- var DeleteContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1887
- return [
1888
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1889
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1890
- ];
1891
- }).s("SSMContacts", "DeleteContact", {}).n("SSMContactsClient", "DeleteContactCommand").f(void 0, void 0).ser(se_DeleteContactCommand).de(de_DeleteContactCommand).build() {
1892
- static {
1893
- __name(this, "DeleteContactCommand");
1894
- }
1244
+ const se_OverrideList = (input, context) => {
1245
+ return input
1246
+ .filter((e) => e != null)
1247
+ .map((entry) => {
1248
+ return se_PreviewOverride(entry);
1249
+ });
1895
1250
  };
1896
-
1897
- // src/commands/DeleteRotationCommand.ts
1898
-
1899
-
1900
-
1901
- var DeleteRotationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1902
- return [
1903
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1904
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1905
- ];
1906
- }).s("SSMContacts", "DeleteRotation", {}).n("SSMContactsClient", "DeleteRotationCommand").f(void 0, void 0).ser(se_DeleteRotationCommand).de(de_DeleteRotationCommand).build() {
1907
- static {
1908
- __name(this, "DeleteRotationCommand");
1909
- }
1251
+ const se_PreviewOverride = (input, context) => {
1252
+ return smithyClient.take(input, {
1253
+ EndTime: (_) => _.getTime() / 1_000,
1254
+ NewMembers: smithyClient._json,
1255
+ StartTime: (_) => _.getTime() / 1_000,
1256
+ });
1910
1257
  };
1911
-
1912
- // src/commands/DeleteRotationOverrideCommand.ts
1913
-
1914
-
1915
-
1916
- var DeleteRotationOverrideCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1917
- return [
1918
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1919
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1920
- ];
1921
- }).s("SSMContacts", "DeleteRotationOverride", {}).n("SSMContactsClient", "DeleteRotationOverrideCommand").f(void 0, void 0).ser(se_DeleteRotationOverrideCommand).de(de_DeleteRotationOverrideCommand).build() {
1922
- static {
1923
- __name(this, "DeleteRotationOverrideCommand");
1924
- }
1258
+ const se_StartEngagementRequest = (input, context) => {
1259
+ return smithyClient.take(input, {
1260
+ ContactId: [],
1261
+ Content: [],
1262
+ IdempotencyToken: [true, (_) => _ ?? uuid.v4()],
1263
+ IncidentId: [],
1264
+ PublicContent: [],
1265
+ PublicSubject: [],
1266
+ Sender: [],
1267
+ Subject: [],
1268
+ });
1925
1269
  };
1926
-
1927
- // src/commands/DescribeEngagementCommand.ts
1928
-
1929
-
1930
-
1931
- var DescribeEngagementCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1932
- return [
1933
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1934
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1935
- ];
1936
- }).s("SSMContacts", "DescribeEngagement", {}).n("SSMContactsClient", "DescribeEngagementCommand").f(void 0, void 0).ser(se_DescribeEngagementCommand).de(de_DescribeEngagementCommand).build() {
1937
- static {
1938
- __name(this, "DescribeEngagementCommand");
1939
- }
1270
+ const se_TimeRange = (input, context) => {
1271
+ return smithyClient.take(input, {
1272
+ EndTime: (_) => _.getTime() / 1_000,
1273
+ StartTime: (_) => _.getTime() / 1_000,
1274
+ });
1940
1275
  };
1941
-
1942
- // src/commands/DescribePageCommand.ts
1943
-
1944
-
1945
-
1946
- var DescribePageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1947
- return [
1948
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1949
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1950
- ];
1951
- }).s("SSMContacts", "DescribePage", {}).n("SSMContactsClient", "DescribePageCommand").f(void 0, void 0).ser(se_DescribePageCommand).de(de_DescribePageCommand).build() {
1952
- static {
1953
- __name(this, "DescribePageCommand");
1954
- }
1276
+ const se_UpdateRotationRequest = (input, context) => {
1277
+ return smithyClient.take(input, {
1278
+ ContactIds: smithyClient._json,
1279
+ Recurrence: smithyClient._json,
1280
+ RotationId: [],
1281
+ StartTime: (_) => _.getTime() / 1_000,
1282
+ TimeZoneId: [],
1283
+ });
1955
1284
  };
1956
-
1957
- // src/commands/GetContactChannelCommand.ts
1958
-
1959
-
1960
-
1961
- var GetContactChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1962
- return [
1963
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1964
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1965
- ];
1966
- }).s("SSMContacts", "GetContactChannel", {}).n("SSMContactsClient", "GetContactChannelCommand").f(void 0, void 0).ser(se_GetContactChannelCommand).de(de_GetContactChannelCommand).build() {
1967
- static {
1968
- __name(this, "GetContactChannelCommand");
1969
- }
1285
+ const de_DescribeEngagementResult = (output, context) => {
1286
+ return smithyClient.take(output, {
1287
+ ContactArn: smithyClient.expectString,
1288
+ Content: smithyClient.expectString,
1289
+ EngagementArn: smithyClient.expectString,
1290
+ IncidentId: smithyClient.expectString,
1291
+ PublicContent: smithyClient.expectString,
1292
+ PublicSubject: smithyClient.expectString,
1293
+ Sender: smithyClient.expectString,
1294
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1295
+ StopTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1296
+ Subject: smithyClient.expectString,
1297
+ });
1970
1298
  };
1971
-
1972
- // src/commands/GetContactCommand.ts
1973
-
1974
-
1975
-
1976
- var GetContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1977
- return [
1978
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1979
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1980
- ];
1981
- }).s("SSMContacts", "GetContact", {}).n("SSMContactsClient", "GetContactCommand").f(void 0, void 0).ser(se_GetContactCommand).de(de_GetContactCommand).build() {
1982
- static {
1983
- __name(this, "GetContactCommand");
1984
- }
1299
+ const de_DescribePageResult = (output, context) => {
1300
+ return smithyClient.take(output, {
1301
+ ContactArn: smithyClient.expectString,
1302
+ Content: smithyClient.expectString,
1303
+ DeliveryTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1304
+ EngagementArn: smithyClient.expectString,
1305
+ IncidentId: smithyClient.expectString,
1306
+ PageArn: smithyClient.expectString,
1307
+ PublicContent: smithyClient.expectString,
1308
+ PublicSubject: smithyClient.expectString,
1309
+ ReadTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1310
+ Sender: smithyClient.expectString,
1311
+ SentTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1312
+ Subject: smithyClient.expectString,
1313
+ });
1985
1314
  };
1986
-
1987
- // src/commands/GetContactPolicyCommand.ts
1988
-
1989
-
1990
-
1991
- var GetContactPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1992
- return [
1993
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1994
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1995
- ];
1996
- }).s("SSMContacts", "GetContactPolicy", {}).n("SSMContactsClient", "GetContactPolicyCommand").f(void 0, void 0).ser(se_GetContactPolicyCommand).de(de_GetContactPolicyCommand).build() {
1997
- static {
1998
- __name(this, "GetContactPolicyCommand");
1999
- }
1315
+ const de_Engagement = (output, context) => {
1316
+ return smithyClient.take(output, {
1317
+ ContactArn: smithyClient.expectString,
1318
+ EngagementArn: smithyClient.expectString,
1319
+ IncidentId: smithyClient.expectString,
1320
+ Sender: smithyClient.expectString,
1321
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1322
+ StopTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1323
+ });
2000
1324
  };
2001
-
2002
- // src/commands/GetRotationCommand.ts
2003
-
2004
-
2005
-
2006
- var GetRotationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2007
- return [
2008
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2009
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2010
- ];
2011
- }).s("SSMContacts", "GetRotation", {}).n("SSMContactsClient", "GetRotationCommand").f(void 0, void 0).ser(se_GetRotationCommand).de(de_GetRotationCommand).build() {
2012
- static {
2013
- __name(this, "GetRotationCommand");
2014
- }
1325
+ const de_EngagementsList = (output, context) => {
1326
+ const retVal = (output || [])
1327
+ .filter((e) => e != null)
1328
+ .map((entry) => {
1329
+ return de_Engagement(entry);
1330
+ });
1331
+ return retVal;
2015
1332
  };
2016
-
2017
- // src/commands/GetRotationOverrideCommand.ts
2018
-
2019
-
2020
-
2021
- var GetRotationOverrideCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2022
- return [
2023
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2024
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2025
- ];
2026
- }).s("SSMContacts", "GetRotationOverride", {}).n("SSMContactsClient", "GetRotationOverrideCommand").f(void 0, void 0).ser(se_GetRotationOverrideCommand).de(de_GetRotationOverrideCommand).build() {
2027
- static {
2028
- __name(this, "GetRotationOverrideCommand");
2029
- }
1333
+ const de_GetRotationOverrideResult = (output, context) => {
1334
+ return smithyClient.take(output, {
1335
+ CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1336
+ EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1337
+ NewContactIds: smithyClient._json,
1338
+ RotationArn: smithyClient.expectString,
1339
+ RotationOverrideId: smithyClient.expectString,
1340
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1341
+ });
2030
1342
  };
2031
-
2032
- // src/commands/ListContactChannelsCommand.ts
2033
-
2034
-
2035
-
2036
- var ListContactChannelsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2037
- return [
2038
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2039
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2040
- ];
2041
- }).s("SSMContacts", "ListContactChannels", {}).n("SSMContactsClient", "ListContactChannelsCommand").f(void 0, void 0).ser(se_ListContactChannelsCommand).de(de_ListContactChannelsCommand).build() {
2042
- static {
2043
- __name(this, "ListContactChannelsCommand");
2044
- }
1343
+ const de_GetRotationResult = (output, context) => {
1344
+ return smithyClient.take(output, {
1345
+ ContactIds: smithyClient._json,
1346
+ Name: smithyClient.expectString,
1347
+ Recurrence: smithyClient._json,
1348
+ RotationArn: smithyClient.expectString,
1349
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1350
+ TimeZoneId: smithyClient.expectString,
1351
+ });
2045
1352
  };
2046
-
2047
- // src/commands/ListContactsCommand.ts
2048
-
2049
-
2050
-
2051
- var ListContactsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2052
- return [
2053
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2054
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2055
- ];
2056
- }).s("SSMContacts", "ListContacts", {}).n("SSMContactsClient", "ListContactsCommand").f(void 0, void 0).ser(se_ListContactsCommand).de(de_ListContactsCommand).build() {
2057
- static {
2058
- __name(this, "ListContactsCommand");
2059
- }
1353
+ const de_ListEngagementsResult = (output, context) => {
1354
+ return smithyClient.take(output, {
1355
+ Engagements: (_) => de_EngagementsList(_),
1356
+ NextToken: smithyClient.expectString,
1357
+ });
2060
1358
  };
2061
-
2062
- // src/commands/ListEngagementsCommand.ts
2063
-
2064
-
2065
-
2066
- var ListEngagementsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2067
- return [
2068
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2069
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2070
- ];
2071
- }).s("SSMContacts", "ListEngagements", {}).n("SSMContactsClient", "ListEngagementsCommand").f(void 0, void 0).ser(se_ListEngagementsCommand).de(de_ListEngagementsCommand).build() {
2072
- static {
2073
- __name(this, "ListEngagementsCommand");
2074
- }
1359
+ const de_ListPageReceiptsResult = (output, context) => {
1360
+ return smithyClient.take(output, {
1361
+ NextToken: smithyClient.expectString,
1362
+ Receipts: (_) => de_ReceiptsList(_),
1363
+ });
2075
1364
  };
2076
-
2077
- // src/commands/ListPageReceiptsCommand.ts
2078
-
2079
-
2080
-
2081
- var ListPageReceiptsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2082
- return [
2083
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2084
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2085
- ];
2086
- }).s("SSMContacts", "ListPageReceipts", {}).n("SSMContactsClient", "ListPageReceiptsCommand").f(void 0, void 0).ser(se_ListPageReceiptsCommand).de(de_ListPageReceiptsCommand).build() {
2087
- static {
2088
- __name(this, "ListPageReceiptsCommand");
2089
- }
1365
+ const de_ListPagesByContactResult = (output, context) => {
1366
+ return smithyClient.take(output, {
1367
+ NextToken: smithyClient.expectString,
1368
+ Pages: (_) => de_PagesList(_),
1369
+ });
2090
1370
  };
2091
-
2092
- // src/commands/ListPageResolutionsCommand.ts
2093
-
2094
-
2095
-
2096
- var ListPageResolutionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2097
- return [
2098
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2099
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2100
- ];
2101
- }).s("SSMContacts", "ListPageResolutions", {}).n("SSMContactsClient", "ListPageResolutionsCommand").f(void 0, void 0).ser(se_ListPageResolutionsCommand).de(de_ListPageResolutionsCommand).build() {
2102
- static {
2103
- __name(this, "ListPageResolutionsCommand");
2104
- }
1371
+ const de_ListPagesByEngagementResult = (output, context) => {
1372
+ return smithyClient.take(output, {
1373
+ NextToken: smithyClient.expectString,
1374
+ Pages: (_) => de_PagesList(_),
1375
+ });
2105
1376
  };
2106
-
2107
- // src/commands/ListPagesByContactCommand.ts
2108
-
2109
-
2110
-
2111
- var ListPagesByContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2112
- return [
2113
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2114
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2115
- ];
2116
- }).s("SSMContacts", "ListPagesByContact", {}).n("SSMContactsClient", "ListPagesByContactCommand").f(void 0, void 0).ser(se_ListPagesByContactCommand).de(de_ListPagesByContactCommand).build() {
2117
- static {
2118
- __name(this, "ListPagesByContactCommand");
2119
- }
1377
+ const de_ListPreviewRotationShiftsResult = (output, context) => {
1378
+ return smithyClient.take(output, {
1379
+ NextToken: smithyClient.expectString,
1380
+ RotationShifts: (_) => de_RotationShifts(_),
1381
+ });
2120
1382
  };
2121
-
2122
- // src/commands/ListPagesByEngagementCommand.ts
2123
-
2124
-
2125
-
2126
- var ListPagesByEngagementCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2127
- return [
2128
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2129
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2130
- ];
2131
- }).s("SSMContacts", "ListPagesByEngagement", {}).n("SSMContactsClient", "ListPagesByEngagementCommand").f(void 0, void 0).ser(se_ListPagesByEngagementCommand).de(de_ListPagesByEngagementCommand).build() {
2132
- static {
2133
- __name(this, "ListPagesByEngagementCommand");
2134
- }
1383
+ const de_ListRotationOverridesResult = (output, context) => {
1384
+ return smithyClient.take(output, {
1385
+ NextToken: smithyClient.expectString,
1386
+ RotationOverrides: (_) => de_RotationOverrides(_),
1387
+ });
2135
1388
  };
2136
-
2137
- // src/commands/ListPreviewRotationShiftsCommand.ts
2138
-
2139
-
2140
-
2141
- var ListPreviewRotationShiftsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2142
- return [
2143
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2144
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2145
- ];
2146
- }).s("SSMContacts", "ListPreviewRotationShifts", {}).n("SSMContactsClient", "ListPreviewRotationShiftsCommand").f(void 0, void 0).ser(se_ListPreviewRotationShiftsCommand).de(de_ListPreviewRotationShiftsCommand).build() {
2147
- static {
2148
- __name(this, "ListPreviewRotationShiftsCommand");
2149
- }
1389
+ const de_ListRotationShiftsResult = (output, context) => {
1390
+ return smithyClient.take(output, {
1391
+ NextToken: smithyClient.expectString,
1392
+ RotationShifts: (_) => de_RotationShifts(_),
1393
+ });
2150
1394
  };
2151
-
2152
- // src/commands/ListRotationOverridesCommand.ts
2153
-
2154
-
2155
-
2156
- var ListRotationOverridesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2157
- return [
2158
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2159
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2160
- ];
2161
- }).s("SSMContacts", "ListRotationOverrides", {}).n("SSMContactsClient", "ListRotationOverridesCommand").f(void 0, void 0).ser(se_ListRotationOverridesCommand).de(de_ListRotationOverridesCommand).build() {
2162
- static {
2163
- __name(this, "ListRotationOverridesCommand");
2164
- }
1395
+ const de_ListRotationsResult = (output, context) => {
1396
+ return smithyClient.take(output, {
1397
+ NextToken: smithyClient.expectString,
1398
+ Rotations: (_) => de_Rotations(_),
1399
+ });
2165
1400
  };
2166
-
2167
- // src/commands/ListRotationsCommand.ts
2168
-
2169
-
2170
-
2171
- var ListRotationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2172
- return [
2173
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2174
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2175
- ];
2176
- }).s("SSMContacts", "ListRotations", {}).n("SSMContactsClient", "ListRotationsCommand").f(void 0, void 0).ser(se_ListRotationsCommand).de(de_ListRotationsCommand).build() {
2177
- static {
2178
- __name(this, "ListRotationsCommand");
2179
- }
1401
+ const de_Page = (output, context) => {
1402
+ return smithyClient.take(output, {
1403
+ ContactArn: smithyClient.expectString,
1404
+ DeliveryTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1405
+ EngagementArn: smithyClient.expectString,
1406
+ IncidentId: smithyClient.expectString,
1407
+ PageArn: smithyClient.expectString,
1408
+ ReadTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1409
+ Sender: smithyClient.expectString,
1410
+ SentTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1411
+ });
2180
1412
  };
2181
-
2182
- // src/commands/ListRotationShiftsCommand.ts
2183
-
2184
-
2185
-
2186
- var ListRotationShiftsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2187
- return [
2188
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2189
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2190
- ];
2191
- }).s("SSMContacts", "ListRotationShifts", {}).n("SSMContactsClient", "ListRotationShiftsCommand").f(void 0, void 0).ser(se_ListRotationShiftsCommand).de(de_ListRotationShiftsCommand).build() {
2192
- static {
2193
- __name(this, "ListRotationShiftsCommand");
2194
- }
1413
+ const de_PagesList = (output, context) => {
1414
+ const retVal = (output || [])
1415
+ .filter((e) => e != null)
1416
+ .map((entry) => {
1417
+ return de_Page(entry);
1418
+ });
1419
+ return retVal;
2195
1420
  };
2196
-
2197
- // src/commands/ListTagsForResourceCommand.ts
2198
-
2199
-
2200
-
2201
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2202
- return [
2203
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2204
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2205
- ];
2206
- }).s("SSMContacts", "ListTagsForResource", {}).n("SSMContactsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2207
- static {
2208
- __name(this, "ListTagsForResourceCommand");
2209
- }
1421
+ const de_Receipt = (output, context) => {
1422
+ return smithyClient.take(output, {
1423
+ ContactChannelArn: smithyClient.expectString,
1424
+ ReceiptInfo: smithyClient.expectString,
1425
+ ReceiptTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1426
+ ReceiptType: smithyClient.expectString,
1427
+ });
2210
1428
  };
2211
-
2212
- // src/commands/PutContactPolicyCommand.ts
2213
-
2214
-
2215
-
2216
- var PutContactPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2217
- return [
2218
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2219
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2220
- ];
2221
- }).s("SSMContacts", "PutContactPolicy", {}).n("SSMContactsClient", "PutContactPolicyCommand").f(void 0, void 0).ser(se_PutContactPolicyCommand).de(de_PutContactPolicyCommand).build() {
2222
- static {
2223
- __name(this, "PutContactPolicyCommand");
2224
- }
1429
+ const de_ReceiptsList = (output, context) => {
1430
+ const retVal = (output || [])
1431
+ .filter((e) => e != null)
1432
+ .map((entry) => {
1433
+ return de_Receipt(entry);
1434
+ });
1435
+ return retVal;
2225
1436
  };
2226
-
2227
- // src/commands/SendActivationCodeCommand.ts
2228
-
2229
-
2230
-
2231
- var SendActivationCodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2232
- return [
2233
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2234
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2235
- ];
2236
- }).s("SSMContacts", "SendActivationCode", {}).n("SSMContactsClient", "SendActivationCodeCommand").f(void 0, void 0).ser(se_SendActivationCodeCommand).de(de_SendActivationCodeCommand).build() {
2237
- static {
2238
- __name(this, "SendActivationCodeCommand");
2239
- }
1437
+ const de_Rotation = (output, context) => {
1438
+ return smithyClient.take(output, {
1439
+ ContactIds: smithyClient._json,
1440
+ Name: smithyClient.expectString,
1441
+ Recurrence: smithyClient._json,
1442
+ RotationArn: smithyClient.expectString,
1443
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1444
+ TimeZoneId: smithyClient.expectString,
1445
+ });
1446
+ };
1447
+ const de_RotationOverride = (output, context) => {
1448
+ return smithyClient.take(output, {
1449
+ CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1450
+ EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1451
+ NewContactIds: smithyClient._json,
1452
+ RotationOverrideId: smithyClient.expectString,
1453
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1454
+ });
1455
+ };
1456
+ const de_RotationOverrides = (output, context) => {
1457
+ const retVal = (output || [])
1458
+ .filter((e) => e != null)
1459
+ .map((entry) => {
1460
+ return de_RotationOverride(entry);
1461
+ });
1462
+ return retVal;
2240
1463
  };
1464
+ const de_Rotations = (output, context) => {
1465
+ const retVal = (output || [])
1466
+ .filter((e) => e != null)
1467
+ .map((entry) => {
1468
+ return de_Rotation(entry);
1469
+ });
1470
+ return retVal;
1471
+ };
1472
+ const de_RotationShift = (output, context) => {
1473
+ return smithyClient.take(output, {
1474
+ ContactIds: smithyClient._json,
1475
+ EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1476
+ ShiftDetails: smithyClient._json,
1477
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1478
+ Type: smithyClient.expectString,
1479
+ });
1480
+ };
1481
+ const de_RotationShifts = (output, context) => {
1482
+ const retVal = (output || [])
1483
+ .filter((e) => e != null)
1484
+ .map((entry) => {
1485
+ return de_RotationShift(entry);
1486
+ });
1487
+ return retVal;
1488
+ };
1489
+ const deserializeMetadata = (output) => ({
1490
+ httpStatusCode: output.statusCode,
1491
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1492
+ extendedRequestId: output.headers["x-amz-id-2"],
1493
+ cfId: output.headers["x-amz-cf-id"],
1494
+ });
1495
+ const throwDefaultError = smithyClient.withBaseException(SSMContactsServiceException);
1496
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1497
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1498
+ const contents = {
1499
+ protocol,
1500
+ hostname,
1501
+ port,
1502
+ method: "POST",
1503
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1504
+ headers,
1505
+ };
1506
+ if (body !== undefined) {
1507
+ contents.body = body;
1508
+ }
1509
+ return new protocolHttp.HttpRequest(contents);
1510
+ };
1511
+ function sharedHeaders(operation) {
1512
+ return {
1513
+ "content-type": "application/x-amz-json-1.1",
1514
+ "x-amz-target": `SSMContacts.${operation}`,
1515
+ };
1516
+ }
2241
1517
 
2242
- // src/commands/StartEngagementCommand.ts
1518
+ class AcceptPageCommand extends smithyClient.Command
1519
+ .classBuilder()
1520
+ .ep(commonParams)
1521
+ .m(function (Command, cs, config, o) {
1522
+ return [
1523
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1524
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1525
+ ];
1526
+ })
1527
+ .s("SSMContacts", "AcceptPage", {})
1528
+ .n("SSMContactsClient", "AcceptPageCommand")
1529
+ .f(void 0, void 0)
1530
+ .ser(se_AcceptPageCommand)
1531
+ .de(de_AcceptPageCommand)
1532
+ .build() {
1533
+ }
2243
1534
 
1535
+ class ActivateContactChannelCommand extends smithyClient.Command
1536
+ .classBuilder()
1537
+ .ep(commonParams)
1538
+ .m(function (Command, cs, config, o) {
1539
+ return [
1540
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1541
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1542
+ ];
1543
+ })
1544
+ .s("SSMContacts", "ActivateContactChannel", {})
1545
+ .n("SSMContactsClient", "ActivateContactChannelCommand")
1546
+ .f(void 0, void 0)
1547
+ .ser(se_ActivateContactChannelCommand)
1548
+ .de(de_ActivateContactChannelCommand)
1549
+ .build() {
1550
+ }
2244
1551
 
1552
+ class CreateContactChannelCommand extends smithyClient.Command
1553
+ .classBuilder()
1554
+ .ep(commonParams)
1555
+ .m(function (Command, cs, config, o) {
1556
+ return [
1557
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1558
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1559
+ ];
1560
+ })
1561
+ .s("SSMContacts", "CreateContactChannel", {})
1562
+ .n("SSMContactsClient", "CreateContactChannelCommand")
1563
+ .f(void 0, void 0)
1564
+ .ser(se_CreateContactChannelCommand)
1565
+ .de(de_CreateContactChannelCommand)
1566
+ .build() {
1567
+ }
2245
1568
 
2246
- var StartEngagementCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2247
- return [
2248
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2249
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2250
- ];
2251
- }).s("SSMContacts", "StartEngagement", {}).n("SSMContactsClient", "StartEngagementCommand").f(void 0, void 0).ser(se_StartEngagementCommand).de(de_StartEngagementCommand).build() {
2252
- static {
2253
- __name(this, "StartEngagementCommand");
2254
- }
2255
- };
1569
+ class CreateContactCommand extends smithyClient.Command
1570
+ .classBuilder()
1571
+ .ep(commonParams)
1572
+ .m(function (Command, cs, config, o) {
1573
+ return [
1574
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1575
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1576
+ ];
1577
+ })
1578
+ .s("SSMContacts", "CreateContact", {})
1579
+ .n("SSMContactsClient", "CreateContactCommand")
1580
+ .f(void 0, void 0)
1581
+ .ser(se_CreateContactCommand)
1582
+ .de(de_CreateContactCommand)
1583
+ .build() {
1584
+ }
2256
1585
 
2257
- // src/commands/StopEngagementCommand.ts
1586
+ class CreateRotationCommand extends smithyClient.Command
1587
+ .classBuilder()
1588
+ .ep(commonParams)
1589
+ .m(function (Command, cs, config, o) {
1590
+ return [
1591
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1592
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1593
+ ];
1594
+ })
1595
+ .s("SSMContacts", "CreateRotation", {})
1596
+ .n("SSMContactsClient", "CreateRotationCommand")
1597
+ .f(void 0, void 0)
1598
+ .ser(se_CreateRotationCommand)
1599
+ .de(de_CreateRotationCommand)
1600
+ .build() {
1601
+ }
2258
1602
 
1603
+ class CreateRotationOverrideCommand extends smithyClient.Command
1604
+ .classBuilder()
1605
+ .ep(commonParams)
1606
+ .m(function (Command, cs, config, o) {
1607
+ return [
1608
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1609
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1610
+ ];
1611
+ })
1612
+ .s("SSMContacts", "CreateRotationOverride", {})
1613
+ .n("SSMContactsClient", "CreateRotationOverrideCommand")
1614
+ .f(void 0, void 0)
1615
+ .ser(se_CreateRotationOverrideCommand)
1616
+ .de(de_CreateRotationOverrideCommand)
1617
+ .build() {
1618
+ }
2259
1619
 
1620
+ class DeactivateContactChannelCommand extends smithyClient.Command
1621
+ .classBuilder()
1622
+ .ep(commonParams)
1623
+ .m(function (Command, cs, config, o) {
1624
+ return [
1625
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1626
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1627
+ ];
1628
+ })
1629
+ .s("SSMContacts", "DeactivateContactChannel", {})
1630
+ .n("SSMContactsClient", "DeactivateContactChannelCommand")
1631
+ .f(void 0, void 0)
1632
+ .ser(se_DeactivateContactChannelCommand)
1633
+ .de(de_DeactivateContactChannelCommand)
1634
+ .build() {
1635
+ }
2260
1636
 
2261
- var StopEngagementCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2262
- return [
2263
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2264
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2265
- ];
2266
- }).s("SSMContacts", "StopEngagement", {}).n("SSMContactsClient", "StopEngagementCommand").f(void 0, void 0).ser(se_StopEngagementCommand).de(de_StopEngagementCommand).build() {
2267
- static {
2268
- __name(this, "StopEngagementCommand");
2269
- }
2270
- };
1637
+ class DeleteContactChannelCommand extends smithyClient.Command
1638
+ .classBuilder()
1639
+ .ep(commonParams)
1640
+ .m(function (Command, cs, config, o) {
1641
+ return [
1642
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1643
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1644
+ ];
1645
+ })
1646
+ .s("SSMContacts", "DeleteContactChannel", {})
1647
+ .n("SSMContactsClient", "DeleteContactChannelCommand")
1648
+ .f(void 0, void 0)
1649
+ .ser(se_DeleteContactChannelCommand)
1650
+ .de(de_DeleteContactChannelCommand)
1651
+ .build() {
1652
+ }
2271
1653
 
2272
- // src/commands/TagResourceCommand.ts
1654
+ class DeleteContactCommand extends smithyClient.Command
1655
+ .classBuilder()
1656
+ .ep(commonParams)
1657
+ .m(function (Command, cs, config, o) {
1658
+ return [
1659
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1660
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1661
+ ];
1662
+ })
1663
+ .s("SSMContacts", "DeleteContact", {})
1664
+ .n("SSMContactsClient", "DeleteContactCommand")
1665
+ .f(void 0, void 0)
1666
+ .ser(se_DeleteContactCommand)
1667
+ .de(de_DeleteContactCommand)
1668
+ .build() {
1669
+ }
2273
1670
 
1671
+ class DeleteRotationCommand extends smithyClient.Command
1672
+ .classBuilder()
1673
+ .ep(commonParams)
1674
+ .m(function (Command, cs, config, o) {
1675
+ return [
1676
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1677
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1678
+ ];
1679
+ })
1680
+ .s("SSMContacts", "DeleteRotation", {})
1681
+ .n("SSMContactsClient", "DeleteRotationCommand")
1682
+ .f(void 0, void 0)
1683
+ .ser(se_DeleteRotationCommand)
1684
+ .de(de_DeleteRotationCommand)
1685
+ .build() {
1686
+ }
2274
1687
 
1688
+ class DeleteRotationOverrideCommand extends smithyClient.Command
1689
+ .classBuilder()
1690
+ .ep(commonParams)
1691
+ .m(function (Command, cs, config, o) {
1692
+ return [
1693
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1694
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1695
+ ];
1696
+ })
1697
+ .s("SSMContacts", "DeleteRotationOverride", {})
1698
+ .n("SSMContactsClient", "DeleteRotationOverrideCommand")
1699
+ .f(void 0, void 0)
1700
+ .ser(se_DeleteRotationOverrideCommand)
1701
+ .de(de_DeleteRotationOverrideCommand)
1702
+ .build() {
1703
+ }
2275
1704
 
2276
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2277
- return [
2278
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2279
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2280
- ];
2281
- }).s("SSMContacts", "TagResource", {}).n("SSMContactsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2282
- static {
2283
- __name(this, "TagResourceCommand");
2284
- }
2285
- };
1705
+ class DescribeEngagementCommand extends smithyClient.Command
1706
+ .classBuilder()
1707
+ .ep(commonParams)
1708
+ .m(function (Command, cs, config, o) {
1709
+ return [
1710
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1711
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1712
+ ];
1713
+ })
1714
+ .s("SSMContacts", "DescribeEngagement", {})
1715
+ .n("SSMContactsClient", "DescribeEngagementCommand")
1716
+ .f(void 0, void 0)
1717
+ .ser(se_DescribeEngagementCommand)
1718
+ .de(de_DescribeEngagementCommand)
1719
+ .build() {
1720
+ }
2286
1721
 
2287
- // src/commands/UntagResourceCommand.ts
1722
+ class DescribePageCommand extends smithyClient.Command
1723
+ .classBuilder()
1724
+ .ep(commonParams)
1725
+ .m(function (Command, cs, config, o) {
1726
+ return [
1727
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1728
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1729
+ ];
1730
+ })
1731
+ .s("SSMContacts", "DescribePage", {})
1732
+ .n("SSMContactsClient", "DescribePageCommand")
1733
+ .f(void 0, void 0)
1734
+ .ser(se_DescribePageCommand)
1735
+ .de(de_DescribePageCommand)
1736
+ .build() {
1737
+ }
2288
1738
 
1739
+ class GetContactChannelCommand extends smithyClient.Command
1740
+ .classBuilder()
1741
+ .ep(commonParams)
1742
+ .m(function (Command, cs, config, o) {
1743
+ return [
1744
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1745
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1746
+ ];
1747
+ })
1748
+ .s("SSMContacts", "GetContactChannel", {})
1749
+ .n("SSMContactsClient", "GetContactChannelCommand")
1750
+ .f(void 0, void 0)
1751
+ .ser(se_GetContactChannelCommand)
1752
+ .de(de_GetContactChannelCommand)
1753
+ .build() {
1754
+ }
2289
1755
 
1756
+ class GetContactCommand extends smithyClient.Command
1757
+ .classBuilder()
1758
+ .ep(commonParams)
1759
+ .m(function (Command, cs, config, o) {
1760
+ return [
1761
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1762
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1763
+ ];
1764
+ })
1765
+ .s("SSMContacts", "GetContact", {})
1766
+ .n("SSMContactsClient", "GetContactCommand")
1767
+ .f(void 0, void 0)
1768
+ .ser(se_GetContactCommand)
1769
+ .de(de_GetContactCommand)
1770
+ .build() {
1771
+ }
2290
1772
 
2291
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2292
- return [
2293
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2294
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2295
- ];
2296
- }).s("SSMContacts", "UntagResource", {}).n("SSMContactsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2297
- static {
2298
- __name(this, "UntagResourceCommand");
2299
- }
2300
- };
1773
+ class GetContactPolicyCommand extends smithyClient.Command
1774
+ .classBuilder()
1775
+ .ep(commonParams)
1776
+ .m(function (Command, cs, config, o) {
1777
+ return [
1778
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1779
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1780
+ ];
1781
+ })
1782
+ .s("SSMContacts", "GetContactPolicy", {})
1783
+ .n("SSMContactsClient", "GetContactPolicyCommand")
1784
+ .f(void 0, void 0)
1785
+ .ser(se_GetContactPolicyCommand)
1786
+ .de(de_GetContactPolicyCommand)
1787
+ .build() {
1788
+ }
2301
1789
 
2302
- // src/commands/UpdateContactChannelCommand.ts
1790
+ class GetRotationCommand extends smithyClient.Command
1791
+ .classBuilder()
1792
+ .ep(commonParams)
1793
+ .m(function (Command, cs, config, o) {
1794
+ return [
1795
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1796
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1797
+ ];
1798
+ })
1799
+ .s("SSMContacts", "GetRotation", {})
1800
+ .n("SSMContactsClient", "GetRotationCommand")
1801
+ .f(void 0, void 0)
1802
+ .ser(se_GetRotationCommand)
1803
+ .de(de_GetRotationCommand)
1804
+ .build() {
1805
+ }
2303
1806
 
1807
+ class GetRotationOverrideCommand extends smithyClient.Command
1808
+ .classBuilder()
1809
+ .ep(commonParams)
1810
+ .m(function (Command, cs, config, o) {
1811
+ return [
1812
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1813
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1814
+ ];
1815
+ })
1816
+ .s("SSMContacts", "GetRotationOverride", {})
1817
+ .n("SSMContactsClient", "GetRotationOverrideCommand")
1818
+ .f(void 0, void 0)
1819
+ .ser(se_GetRotationOverrideCommand)
1820
+ .de(de_GetRotationOverrideCommand)
1821
+ .build() {
1822
+ }
2304
1823
 
1824
+ class ListContactChannelsCommand extends smithyClient.Command
1825
+ .classBuilder()
1826
+ .ep(commonParams)
1827
+ .m(function (Command, cs, config, o) {
1828
+ return [
1829
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1830
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1831
+ ];
1832
+ })
1833
+ .s("SSMContacts", "ListContactChannels", {})
1834
+ .n("SSMContactsClient", "ListContactChannelsCommand")
1835
+ .f(void 0, void 0)
1836
+ .ser(se_ListContactChannelsCommand)
1837
+ .de(de_ListContactChannelsCommand)
1838
+ .build() {
1839
+ }
2305
1840
 
2306
- var UpdateContactChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2307
- return [
2308
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2309
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2310
- ];
2311
- }).s("SSMContacts", "UpdateContactChannel", {}).n("SSMContactsClient", "UpdateContactChannelCommand").f(void 0, void 0).ser(se_UpdateContactChannelCommand).de(de_UpdateContactChannelCommand).build() {
2312
- static {
2313
- __name(this, "UpdateContactChannelCommand");
2314
- }
2315
- };
1841
+ class ListContactsCommand extends smithyClient.Command
1842
+ .classBuilder()
1843
+ .ep(commonParams)
1844
+ .m(function (Command, cs, config, o) {
1845
+ return [
1846
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1847
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1848
+ ];
1849
+ })
1850
+ .s("SSMContacts", "ListContacts", {})
1851
+ .n("SSMContactsClient", "ListContactsCommand")
1852
+ .f(void 0, void 0)
1853
+ .ser(se_ListContactsCommand)
1854
+ .de(de_ListContactsCommand)
1855
+ .build() {
1856
+ }
2316
1857
 
2317
- // src/commands/UpdateContactCommand.ts
1858
+ class ListEngagementsCommand extends smithyClient.Command
1859
+ .classBuilder()
1860
+ .ep(commonParams)
1861
+ .m(function (Command, cs, config, o) {
1862
+ return [
1863
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1864
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1865
+ ];
1866
+ })
1867
+ .s("SSMContacts", "ListEngagements", {})
1868
+ .n("SSMContactsClient", "ListEngagementsCommand")
1869
+ .f(void 0, void 0)
1870
+ .ser(se_ListEngagementsCommand)
1871
+ .de(de_ListEngagementsCommand)
1872
+ .build() {
1873
+ }
2318
1874
 
1875
+ class ListPageReceiptsCommand extends smithyClient.Command
1876
+ .classBuilder()
1877
+ .ep(commonParams)
1878
+ .m(function (Command, cs, config, o) {
1879
+ return [
1880
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1881
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1882
+ ];
1883
+ })
1884
+ .s("SSMContacts", "ListPageReceipts", {})
1885
+ .n("SSMContactsClient", "ListPageReceiptsCommand")
1886
+ .f(void 0, void 0)
1887
+ .ser(se_ListPageReceiptsCommand)
1888
+ .de(de_ListPageReceiptsCommand)
1889
+ .build() {
1890
+ }
2319
1891
 
1892
+ class ListPageResolutionsCommand extends smithyClient.Command
1893
+ .classBuilder()
1894
+ .ep(commonParams)
1895
+ .m(function (Command, cs, config, o) {
1896
+ return [
1897
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1898
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1899
+ ];
1900
+ })
1901
+ .s("SSMContacts", "ListPageResolutions", {})
1902
+ .n("SSMContactsClient", "ListPageResolutionsCommand")
1903
+ .f(void 0, void 0)
1904
+ .ser(se_ListPageResolutionsCommand)
1905
+ .de(de_ListPageResolutionsCommand)
1906
+ .build() {
1907
+ }
2320
1908
 
2321
- var UpdateContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2322
- return [
2323
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2324
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2325
- ];
2326
- }).s("SSMContacts", "UpdateContact", {}).n("SSMContactsClient", "UpdateContactCommand").f(void 0, void 0).ser(se_UpdateContactCommand).de(de_UpdateContactCommand).build() {
2327
- static {
2328
- __name(this, "UpdateContactCommand");
2329
- }
2330
- };
1909
+ class ListPagesByContactCommand extends smithyClient.Command
1910
+ .classBuilder()
1911
+ .ep(commonParams)
1912
+ .m(function (Command, cs, config, o) {
1913
+ return [
1914
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1915
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1916
+ ];
1917
+ })
1918
+ .s("SSMContacts", "ListPagesByContact", {})
1919
+ .n("SSMContactsClient", "ListPagesByContactCommand")
1920
+ .f(void 0, void 0)
1921
+ .ser(se_ListPagesByContactCommand)
1922
+ .de(de_ListPagesByContactCommand)
1923
+ .build() {
1924
+ }
2331
1925
 
2332
- // src/commands/UpdateRotationCommand.ts
1926
+ class ListPagesByEngagementCommand extends smithyClient.Command
1927
+ .classBuilder()
1928
+ .ep(commonParams)
1929
+ .m(function (Command, cs, config, o) {
1930
+ return [
1931
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1932
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1933
+ ];
1934
+ })
1935
+ .s("SSMContacts", "ListPagesByEngagement", {})
1936
+ .n("SSMContactsClient", "ListPagesByEngagementCommand")
1937
+ .f(void 0, void 0)
1938
+ .ser(se_ListPagesByEngagementCommand)
1939
+ .de(de_ListPagesByEngagementCommand)
1940
+ .build() {
1941
+ }
2333
1942
 
1943
+ class ListPreviewRotationShiftsCommand extends smithyClient.Command
1944
+ .classBuilder()
1945
+ .ep(commonParams)
1946
+ .m(function (Command, cs, config, o) {
1947
+ return [
1948
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1949
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1950
+ ];
1951
+ })
1952
+ .s("SSMContacts", "ListPreviewRotationShifts", {})
1953
+ .n("SSMContactsClient", "ListPreviewRotationShiftsCommand")
1954
+ .f(void 0, void 0)
1955
+ .ser(se_ListPreviewRotationShiftsCommand)
1956
+ .de(de_ListPreviewRotationShiftsCommand)
1957
+ .build() {
1958
+ }
2334
1959
 
1960
+ class ListRotationOverridesCommand extends smithyClient.Command
1961
+ .classBuilder()
1962
+ .ep(commonParams)
1963
+ .m(function (Command, cs, config, o) {
1964
+ return [
1965
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1966
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1967
+ ];
1968
+ })
1969
+ .s("SSMContacts", "ListRotationOverrides", {})
1970
+ .n("SSMContactsClient", "ListRotationOverridesCommand")
1971
+ .f(void 0, void 0)
1972
+ .ser(se_ListRotationOverridesCommand)
1973
+ .de(de_ListRotationOverridesCommand)
1974
+ .build() {
1975
+ }
2335
1976
 
2336
- var UpdateRotationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2337
- return [
2338
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2339
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2340
- ];
2341
- }).s("SSMContacts", "UpdateRotation", {}).n("SSMContactsClient", "UpdateRotationCommand").f(void 0, void 0).ser(se_UpdateRotationCommand).de(de_UpdateRotationCommand).build() {
2342
- static {
2343
- __name(this, "UpdateRotationCommand");
2344
- }
2345
- };
1977
+ class ListRotationsCommand extends smithyClient.Command
1978
+ .classBuilder()
1979
+ .ep(commonParams)
1980
+ .m(function (Command, cs, config, o) {
1981
+ return [
1982
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1983
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1984
+ ];
1985
+ })
1986
+ .s("SSMContacts", "ListRotations", {})
1987
+ .n("SSMContactsClient", "ListRotationsCommand")
1988
+ .f(void 0, void 0)
1989
+ .ser(se_ListRotationsCommand)
1990
+ .de(de_ListRotationsCommand)
1991
+ .build() {
1992
+ }
2346
1993
 
2347
- // src/SSMContacts.ts
2348
- var commands = {
2349
- AcceptPageCommand,
2350
- ActivateContactChannelCommand,
2351
- CreateContactCommand,
2352
- CreateContactChannelCommand,
2353
- CreateRotationCommand,
2354
- CreateRotationOverrideCommand,
2355
- DeactivateContactChannelCommand,
2356
- DeleteContactCommand,
2357
- DeleteContactChannelCommand,
2358
- DeleteRotationCommand,
2359
- DeleteRotationOverrideCommand,
2360
- DescribeEngagementCommand,
2361
- DescribePageCommand,
2362
- GetContactCommand,
2363
- GetContactChannelCommand,
2364
- GetContactPolicyCommand,
2365
- GetRotationCommand,
2366
- GetRotationOverrideCommand,
2367
- ListContactChannelsCommand,
2368
- ListContactsCommand,
2369
- ListEngagementsCommand,
2370
- ListPageReceiptsCommand,
2371
- ListPageResolutionsCommand,
2372
- ListPagesByContactCommand,
2373
- ListPagesByEngagementCommand,
2374
- ListPreviewRotationShiftsCommand,
2375
- ListRotationOverridesCommand,
2376
- ListRotationsCommand,
2377
- ListRotationShiftsCommand,
2378
- ListTagsForResourceCommand,
2379
- PutContactPolicyCommand,
2380
- SendActivationCodeCommand,
2381
- StartEngagementCommand,
2382
- StopEngagementCommand,
2383
- TagResourceCommand,
2384
- UntagResourceCommand,
2385
- UpdateContactCommand,
2386
- UpdateContactChannelCommand,
2387
- UpdateRotationCommand
2388
- };
2389
- var SSMContacts = class extends SSMContactsClient {
2390
- static {
2391
- __name(this, "SSMContacts");
2392
- }
2393
- };
2394
- (0, import_smithy_client.createAggregatedClient)(commands, SSMContacts);
1994
+ class ListRotationShiftsCommand extends smithyClient.Command
1995
+ .classBuilder()
1996
+ .ep(commonParams)
1997
+ .m(function (Command, cs, config, o) {
1998
+ return [
1999
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2000
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2001
+ ];
2002
+ })
2003
+ .s("SSMContacts", "ListRotationShifts", {})
2004
+ .n("SSMContactsClient", "ListRotationShiftsCommand")
2005
+ .f(void 0, void 0)
2006
+ .ser(se_ListRotationShiftsCommand)
2007
+ .de(de_ListRotationShiftsCommand)
2008
+ .build() {
2009
+ }
2395
2010
 
2396
- // src/pagination/ListContactChannelsPaginator.ts
2011
+ class ListTagsForResourceCommand extends smithyClient.Command
2012
+ .classBuilder()
2013
+ .ep(commonParams)
2014
+ .m(function (Command, cs, config, o) {
2015
+ return [
2016
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2017
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2018
+ ];
2019
+ })
2020
+ .s("SSMContacts", "ListTagsForResource", {})
2021
+ .n("SSMContactsClient", "ListTagsForResourceCommand")
2022
+ .f(void 0, void 0)
2023
+ .ser(se_ListTagsForResourceCommand)
2024
+ .de(de_ListTagsForResourceCommand)
2025
+ .build() {
2026
+ }
2397
2027
 
2398
- var paginateListContactChannels = (0, import_core.createPaginator)(SSMContactsClient, ListContactChannelsCommand, "NextToken", "NextToken", "MaxResults");
2028
+ class PutContactPolicyCommand extends smithyClient.Command
2029
+ .classBuilder()
2030
+ .ep(commonParams)
2031
+ .m(function (Command, cs, config, o) {
2032
+ return [
2033
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2034
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2035
+ ];
2036
+ })
2037
+ .s("SSMContacts", "PutContactPolicy", {})
2038
+ .n("SSMContactsClient", "PutContactPolicyCommand")
2039
+ .f(void 0, void 0)
2040
+ .ser(se_PutContactPolicyCommand)
2041
+ .de(de_PutContactPolicyCommand)
2042
+ .build() {
2043
+ }
2399
2044
 
2400
- // src/pagination/ListContactsPaginator.ts
2045
+ class SendActivationCodeCommand extends smithyClient.Command
2046
+ .classBuilder()
2047
+ .ep(commonParams)
2048
+ .m(function (Command, cs, config, o) {
2049
+ return [
2050
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2051
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2052
+ ];
2053
+ })
2054
+ .s("SSMContacts", "SendActivationCode", {})
2055
+ .n("SSMContactsClient", "SendActivationCodeCommand")
2056
+ .f(void 0, void 0)
2057
+ .ser(se_SendActivationCodeCommand)
2058
+ .de(de_SendActivationCodeCommand)
2059
+ .build() {
2060
+ }
2401
2061
 
2402
- var paginateListContacts = (0, import_core.createPaginator)(SSMContactsClient, ListContactsCommand, "NextToken", "NextToken", "MaxResults");
2062
+ class StartEngagementCommand extends smithyClient.Command
2063
+ .classBuilder()
2064
+ .ep(commonParams)
2065
+ .m(function (Command, cs, config, o) {
2066
+ return [
2067
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2068
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2069
+ ];
2070
+ })
2071
+ .s("SSMContacts", "StartEngagement", {})
2072
+ .n("SSMContactsClient", "StartEngagementCommand")
2073
+ .f(void 0, void 0)
2074
+ .ser(se_StartEngagementCommand)
2075
+ .de(de_StartEngagementCommand)
2076
+ .build() {
2077
+ }
2403
2078
 
2404
- // src/pagination/ListEngagementsPaginator.ts
2079
+ class StopEngagementCommand extends smithyClient.Command
2080
+ .classBuilder()
2081
+ .ep(commonParams)
2082
+ .m(function (Command, cs, config, o) {
2083
+ return [
2084
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2085
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2086
+ ];
2087
+ })
2088
+ .s("SSMContacts", "StopEngagement", {})
2089
+ .n("SSMContactsClient", "StopEngagementCommand")
2090
+ .f(void 0, void 0)
2091
+ .ser(se_StopEngagementCommand)
2092
+ .de(de_StopEngagementCommand)
2093
+ .build() {
2094
+ }
2405
2095
 
2406
- var paginateListEngagements = (0, import_core.createPaginator)(SSMContactsClient, ListEngagementsCommand, "NextToken", "NextToken", "MaxResults");
2096
+ class TagResourceCommand extends smithyClient.Command
2097
+ .classBuilder()
2098
+ .ep(commonParams)
2099
+ .m(function (Command, cs, config, o) {
2100
+ return [
2101
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2102
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2103
+ ];
2104
+ })
2105
+ .s("SSMContacts", "TagResource", {})
2106
+ .n("SSMContactsClient", "TagResourceCommand")
2107
+ .f(void 0, void 0)
2108
+ .ser(se_TagResourceCommand)
2109
+ .de(de_TagResourceCommand)
2110
+ .build() {
2111
+ }
2407
2112
 
2408
- // src/pagination/ListPageReceiptsPaginator.ts
2113
+ class UntagResourceCommand extends smithyClient.Command
2114
+ .classBuilder()
2115
+ .ep(commonParams)
2116
+ .m(function (Command, cs, config, o) {
2117
+ return [
2118
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2119
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2120
+ ];
2121
+ })
2122
+ .s("SSMContacts", "UntagResource", {})
2123
+ .n("SSMContactsClient", "UntagResourceCommand")
2124
+ .f(void 0, void 0)
2125
+ .ser(se_UntagResourceCommand)
2126
+ .de(de_UntagResourceCommand)
2127
+ .build() {
2128
+ }
2409
2129
 
2410
- var paginateListPageReceipts = (0, import_core.createPaginator)(SSMContactsClient, ListPageReceiptsCommand, "NextToken", "NextToken", "MaxResults");
2130
+ class UpdateContactChannelCommand extends smithyClient.Command
2131
+ .classBuilder()
2132
+ .ep(commonParams)
2133
+ .m(function (Command, cs, config, o) {
2134
+ return [
2135
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2136
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2137
+ ];
2138
+ })
2139
+ .s("SSMContacts", "UpdateContactChannel", {})
2140
+ .n("SSMContactsClient", "UpdateContactChannelCommand")
2141
+ .f(void 0, void 0)
2142
+ .ser(se_UpdateContactChannelCommand)
2143
+ .de(de_UpdateContactChannelCommand)
2144
+ .build() {
2145
+ }
2411
2146
 
2412
- // src/pagination/ListPageResolutionsPaginator.ts
2147
+ class UpdateContactCommand extends smithyClient.Command
2148
+ .classBuilder()
2149
+ .ep(commonParams)
2150
+ .m(function (Command, cs, config, o) {
2151
+ return [
2152
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2153
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2154
+ ];
2155
+ })
2156
+ .s("SSMContacts", "UpdateContact", {})
2157
+ .n("SSMContactsClient", "UpdateContactCommand")
2158
+ .f(void 0, void 0)
2159
+ .ser(se_UpdateContactCommand)
2160
+ .de(de_UpdateContactCommand)
2161
+ .build() {
2162
+ }
2413
2163
 
2414
- var paginateListPageResolutions = (0, import_core.createPaginator)(SSMContactsClient, ListPageResolutionsCommand, "NextToken", "NextToken", "");
2164
+ class UpdateRotationCommand extends smithyClient.Command
2165
+ .classBuilder()
2166
+ .ep(commonParams)
2167
+ .m(function (Command, cs, config, o) {
2168
+ return [
2169
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2170
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2171
+ ];
2172
+ })
2173
+ .s("SSMContacts", "UpdateRotation", {})
2174
+ .n("SSMContactsClient", "UpdateRotationCommand")
2175
+ .f(void 0, void 0)
2176
+ .ser(se_UpdateRotationCommand)
2177
+ .de(de_UpdateRotationCommand)
2178
+ .build() {
2179
+ }
2415
2180
 
2416
- // src/pagination/ListPagesByContactPaginator.ts
2181
+ const commands = {
2182
+ AcceptPageCommand,
2183
+ ActivateContactChannelCommand,
2184
+ CreateContactCommand,
2185
+ CreateContactChannelCommand,
2186
+ CreateRotationCommand,
2187
+ CreateRotationOverrideCommand,
2188
+ DeactivateContactChannelCommand,
2189
+ DeleteContactCommand,
2190
+ DeleteContactChannelCommand,
2191
+ DeleteRotationCommand,
2192
+ DeleteRotationOverrideCommand,
2193
+ DescribeEngagementCommand,
2194
+ DescribePageCommand,
2195
+ GetContactCommand,
2196
+ GetContactChannelCommand,
2197
+ GetContactPolicyCommand,
2198
+ GetRotationCommand,
2199
+ GetRotationOverrideCommand,
2200
+ ListContactChannelsCommand,
2201
+ ListContactsCommand,
2202
+ ListEngagementsCommand,
2203
+ ListPageReceiptsCommand,
2204
+ ListPageResolutionsCommand,
2205
+ ListPagesByContactCommand,
2206
+ ListPagesByEngagementCommand,
2207
+ ListPreviewRotationShiftsCommand,
2208
+ ListRotationOverridesCommand,
2209
+ ListRotationsCommand,
2210
+ ListRotationShiftsCommand,
2211
+ ListTagsForResourceCommand,
2212
+ PutContactPolicyCommand,
2213
+ SendActivationCodeCommand,
2214
+ StartEngagementCommand,
2215
+ StopEngagementCommand,
2216
+ TagResourceCommand,
2217
+ UntagResourceCommand,
2218
+ UpdateContactCommand,
2219
+ UpdateContactChannelCommand,
2220
+ UpdateRotationCommand,
2221
+ };
2222
+ class SSMContacts extends SSMContactsClient {
2223
+ }
2224
+ smithyClient.createAggregatedClient(commands, SSMContacts);
2417
2225
 
2418
- var paginateListPagesByContact = (0, import_core.createPaginator)(SSMContactsClient, ListPagesByContactCommand, "NextToken", "NextToken", "MaxResults");
2226
+ const paginateListContactChannels = core.createPaginator(SSMContactsClient, ListContactChannelsCommand, "NextToken", "NextToken", "MaxResults");
2419
2227
 
2420
- // src/pagination/ListPagesByEngagementPaginator.ts
2228
+ const paginateListContacts = core.createPaginator(SSMContactsClient, ListContactsCommand, "NextToken", "NextToken", "MaxResults");
2421
2229
 
2422
- var paginateListPagesByEngagement = (0, import_core.createPaginator)(SSMContactsClient, ListPagesByEngagementCommand, "NextToken", "NextToken", "MaxResults");
2230
+ const paginateListEngagements = core.createPaginator(SSMContactsClient, ListEngagementsCommand, "NextToken", "NextToken", "MaxResults");
2423
2231
 
2424
- // src/pagination/ListPreviewRotationShiftsPaginator.ts
2232
+ const paginateListPageReceipts = core.createPaginator(SSMContactsClient, ListPageReceiptsCommand, "NextToken", "NextToken", "MaxResults");
2425
2233
 
2426
- var paginateListPreviewRotationShifts = (0, import_core.createPaginator)(SSMContactsClient, ListPreviewRotationShiftsCommand, "NextToken", "NextToken", "MaxResults");
2234
+ const paginateListPageResolutions = core.createPaginator(SSMContactsClient, ListPageResolutionsCommand, "NextToken", "NextToken", "");
2427
2235
 
2428
- // src/pagination/ListRotationOverridesPaginator.ts
2236
+ const paginateListPagesByContact = core.createPaginator(SSMContactsClient, ListPagesByContactCommand, "NextToken", "NextToken", "MaxResults");
2429
2237
 
2430
- var paginateListRotationOverrides = (0, import_core.createPaginator)(SSMContactsClient, ListRotationOverridesCommand, "NextToken", "NextToken", "MaxResults");
2238
+ const paginateListPagesByEngagement = core.createPaginator(SSMContactsClient, ListPagesByEngagementCommand, "NextToken", "NextToken", "MaxResults");
2431
2239
 
2432
- // src/pagination/ListRotationShiftsPaginator.ts
2240
+ const paginateListPreviewRotationShifts = core.createPaginator(SSMContactsClient, ListPreviewRotationShiftsCommand, "NextToken", "NextToken", "MaxResults");
2433
2241
 
2434
- var paginateListRotationShifts = (0, import_core.createPaginator)(SSMContactsClient, ListRotationShiftsCommand, "NextToken", "NextToken", "MaxResults");
2242
+ const paginateListRotationOverrides = core.createPaginator(SSMContactsClient, ListRotationOverridesCommand, "NextToken", "NextToken", "MaxResults");
2435
2243
 
2436
- // src/pagination/ListRotationsPaginator.ts
2244
+ const paginateListRotationShifts = core.createPaginator(SSMContactsClient, ListRotationShiftsCommand, "NextToken", "NextToken", "MaxResults");
2437
2245
 
2438
- var paginateListRotations = (0, import_core.createPaginator)(SSMContactsClient, ListRotationsCommand, "NextToken", "NextToken", "MaxResults");
2439
- // Annotate the CommonJS export names for ESM import in node:
2246
+ const paginateListRotations = core.createPaginator(SSMContactsClient, ListRotationsCommand, "NextToken", "NextToken", "MaxResults");
2440
2247
 
2441
- 0 && (module.exports = {
2442
- SSMContactsServiceException,
2443
- __Client,
2444
- SSMContactsClient,
2445
- SSMContacts,
2446
- $Command,
2447
- AcceptPageCommand,
2448
- ActivateContactChannelCommand,
2449
- CreateContactChannelCommand,
2450
- CreateContactCommand,
2451
- CreateRotationCommand,
2452
- CreateRotationOverrideCommand,
2453
- DeactivateContactChannelCommand,
2454
- DeleteContactChannelCommand,
2455
- DeleteContactCommand,
2456
- DeleteRotationCommand,
2457
- DeleteRotationOverrideCommand,
2458
- DescribeEngagementCommand,
2459
- DescribePageCommand,
2460
- GetContactChannelCommand,
2461
- GetContactCommand,
2462
- GetContactPolicyCommand,
2463
- GetRotationCommand,
2464
- GetRotationOverrideCommand,
2465
- ListContactChannelsCommand,
2466
- ListContactsCommand,
2467
- ListEngagementsCommand,
2468
- ListPageReceiptsCommand,
2469
- ListPageResolutionsCommand,
2470
- ListPagesByContactCommand,
2471
- ListPagesByEngagementCommand,
2472
- ListPreviewRotationShiftsCommand,
2473
- ListRotationOverridesCommand,
2474
- ListRotationShiftsCommand,
2475
- ListRotationsCommand,
2476
- ListTagsForResourceCommand,
2477
- PutContactPolicyCommand,
2478
- SendActivationCodeCommand,
2479
- StartEngagementCommand,
2480
- StopEngagementCommand,
2481
- TagResourceCommand,
2482
- UntagResourceCommand,
2483
- UpdateContactChannelCommand,
2484
- UpdateContactCommand,
2485
- UpdateRotationCommand,
2486
- paginateListContactChannels,
2487
- paginateListContacts,
2488
- paginateListEngagements,
2489
- paginateListPageReceipts,
2490
- paginateListPageResolutions,
2491
- paginateListPagesByContact,
2492
- paginateListPagesByEngagement,
2493
- paginateListPreviewRotationShifts,
2494
- paginateListRotationOverrides,
2495
- paginateListRotationShifts,
2496
- paginateListRotations,
2497
- AcceptCodeValidation,
2498
- AcceptType,
2499
- AccessDeniedException,
2500
- InternalServerException,
2501
- ResourceNotFoundException,
2502
- ThrottlingException,
2503
- ValidationExceptionReason,
2504
- ValidationException,
2505
- ActivationStatus,
2506
- ChannelType,
2507
- ConflictException,
2508
- ContactType,
2509
- DataEncryptionException,
2510
- ServiceQuotaExceededException,
2511
- DayOfWeek,
2512
- ReceiptType,
2513
- ShiftType
2248
+ Object.defineProperty(exports, "$Command", {
2249
+ enumerable: true,
2250
+ get: function () { return smithyClient.Command; }
2514
2251
  });
2515
-
2252
+ Object.defineProperty(exports, "__Client", {
2253
+ enumerable: true,
2254
+ get: function () { return smithyClient.Client; }
2255
+ });
2256
+ exports.AcceptCodeValidation = AcceptCodeValidation;
2257
+ exports.AcceptPageCommand = AcceptPageCommand;
2258
+ exports.AcceptType = AcceptType;
2259
+ exports.AccessDeniedException = AccessDeniedException;
2260
+ exports.ActivateContactChannelCommand = ActivateContactChannelCommand;
2261
+ exports.ActivationStatus = ActivationStatus;
2262
+ exports.ChannelType = ChannelType;
2263
+ exports.ConflictException = ConflictException;
2264
+ exports.ContactType = ContactType;
2265
+ exports.CreateContactChannelCommand = CreateContactChannelCommand;
2266
+ exports.CreateContactCommand = CreateContactCommand;
2267
+ exports.CreateRotationCommand = CreateRotationCommand;
2268
+ exports.CreateRotationOverrideCommand = CreateRotationOverrideCommand;
2269
+ exports.DataEncryptionException = DataEncryptionException;
2270
+ exports.DayOfWeek = DayOfWeek;
2271
+ exports.DeactivateContactChannelCommand = DeactivateContactChannelCommand;
2272
+ exports.DeleteContactChannelCommand = DeleteContactChannelCommand;
2273
+ exports.DeleteContactCommand = DeleteContactCommand;
2274
+ exports.DeleteRotationCommand = DeleteRotationCommand;
2275
+ exports.DeleteRotationOverrideCommand = DeleteRotationOverrideCommand;
2276
+ exports.DescribeEngagementCommand = DescribeEngagementCommand;
2277
+ exports.DescribePageCommand = DescribePageCommand;
2278
+ exports.GetContactChannelCommand = GetContactChannelCommand;
2279
+ exports.GetContactCommand = GetContactCommand;
2280
+ exports.GetContactPolicyCommand = GetContactPolicyCommand;
2281
+ exports.GetRotationCommand = GetRotationCommand;
2282
+ exports.GetRotationOverrideCommand = GetRotationOverrideCommand;
2283
+ exports.InternalServerException = InternalServerException;
2284
+ exports.ListContactChannelsCommand = ListContactChannelsCommand;
2285
+ exports.ListContactsCommand = ListContactsCommand;
2286
+ exports.ListEngagementsCommand = ListEngagementsCommand;
2287
+ exports.ListPageReceiptsCommand = ListPageReceiptsCommand;
2288
+ exports.ListPageResolutionsCommand = ListPageResolutionsCommand;
2289
+ exports.ListPagesByContactCommand = ListPagesByContactCommand;
2290
+ exports.ListPagesByEngagementCommand = ListPagesByEngagementCommand;
2291
+ exports.ListPreviewRotationShiftsCommand = ListPreviewRotationShiftsCommand;
2292
+ exports.ListRotationOverridesCommand = ListRotationOverridesCommand;
2293
+ exports.ListRotationShiftsCommand = ListRotationShiftsCommand;
2294
+ exports.ListRotationsCommand = ListRotationsCommand;
2295
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2296
+ exports.PutContactPolicyCommand = PutContactPolicyCommand;
2297
+ exports.ReceiptType = ReceiptType;
2298
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2299
+ exports.SSMContacts = SSMContacts;
2300
+ exports.SSMContactsClient = SSMContactsClient;
2301
+ exports.SSMContactsServiceException = SSMContactsServiceException;
2302
+ exports.SendActivationCodeCommand = SendActivationCodeCommand;
2303
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
2304
+ exports.ShiftType = ShiftType;
2305
+ exports.StartEngagementCommand = StartEngagementCommand;
2306
+ exports.StopEngagementCommand = StopEngagementCommand;
2307
+ exports.TagResourceCommand = TagResourceCommand;
2308
+ exports.ThrottlingException = ThrottlingException;
2309
+ exports.UntagResourceCommand = UntagResourceCommand;
2310
+ exports.UpdateContactChannelCommand = UpdateContactChannelCommand;
2311
+ exports.UpdateContactCommand = UpdateContactCommand;
2312
+ exports.UpdateRotationCommand = UpdateRotationCommand;
2313
+ exports.ValidationException = ValidationException;
2314
+ exports.ValidationExceptionReason = ValidationExceptionReason;
2315
+ exports.paginateListContactChannels = paginateListContactChannels;
2316
+ exports.paginateListContacts = paginateListContacts;
2317
+ exports.paginateListEngagements = paginateListEngagements;
2318
+ exports.paginateListPageReceipts = paginateListPageReceipts;
2319
+ exports.paginateListPageResolutions = paginateListPageResolutions;
2320
+ exports.paginateListPagesByContact = paginateListPagesByContact;
2321
+ exports.paginateListPagesByEngagement = paginateListPagesByEngagement;
2322
+ exports.paginateListPreviewRotationShifts = paginateListPreviewRotationShifts;
2323
+ exports.paginateListRotationOverrides = paginateListRotationOverrides;
2324
+ exports.paginateListRotationShifts = paginateListRotationShifts;
2325
+ exports.paginateListRotations = paginateListRotations;