@aws-sdk/client-security-ir 3.891.0 → 3.894.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist-cjs/index.js +2114 -10
  2. package/package.json +19 -19
  3. package/dist-cjs/SecurityIR.js +0 -55
  4. package/dist-cjs/SecurityIRClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/BatchGetMemberAccountDetailsCommand.js +0 -26
  7. package/dist-cjs/commands/CancelMembershipCommand.js +0 -26
  8. package/dist-cjs/commands/CloseCaseCommand.js +0 -26
  9. package/dist-cjs/commands/CreateCaseCommand.js +0 -27
  10. package/dist-cjs/commands/CreateCaseCommentCommand.js +0 -27
  11. package/dist-cjs/commands/CreateMembershipCommand.js +0 -27
  12. package/dist-cjs/commands/GetCaseAttachmentDownloadUrlCommand.js +0 -27
  13. package/dist-cjs/commands/GetCaseAttachmentUploadUrlCommand.js +0 -27
  14. package/dist-cjs/commands/GetCaseCommand.js +0 -27
  15. package/dist-cjs/commands/GetMembershipCommand.js +0 -27
  16. package/dist-cjs/commands/ListCaseEditsCommand.js +0 -26
  17. package/dist-cjs/commands/ListCasesCommand.js +0 -27
  18. package/dist-cjs/commands/ListCommentsCommand.js +0 -27
  19. package/dist-cjs/commands/ListMembershipsCommand.js +0 -26
  20. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  21. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  22. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  23. package/dist-cjs/commands/UpdateCaseCommand.js +0 -27
  24. package/dist-cjs/commands/UpdateCaseCommentCommand.js +0 -27
  25. package/dist-cjs/commands/UpdateCaseStatusCommand.js +0 -26
  26. package/dist-cjs/commands/UpdateMembershipCommand.js +0 -27
  27. package/dist-cjs/commands/UpdateResolverTypeCommand.js +0 -26
  28. package/dist-cjs/commands/index.js +0 -25
  29. package/dist-cjs/endpoint/EndpointParameters.js +0 -15
  30. package/dist-cjs/extensionConfiguration.js +0 -2
  31. package/dist-cjs/models/SecurityIRServiceException.js +0 -12
  32. package/dist-cjs/models/index.js +0 -4
  33. package/dist-cjs/models/models_0.js +0 -390
  34. package/dist-cjs/pagination/Interfaces.js +0 -2
  35. package/dist-cjs/pagination/ListCaseEditsPaginator.js +0 -7
  36. package/dist-cjs/pagination/ListCasesPaginator.js +0 -7
  37. package/dist-cjs/pagination/ListCommentsPaginator.js +0 -7
  38. package/dist-cjs/pagination/ListMembershipsPaginator.js +0 -7
  39. package/dist-cjs/pagination/index.js +0 -8
  40. package/dist-cjs/protocols/Aws_restJson1.js +0 -960
  41. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,2115 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SecurityIRServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./SecurityIRClient"), exports);
6
- tslib_1.__exportStar(require("./SecurityIR"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var SecurityIRServiceException_1 = require("./models/SecurityIRServiceException");
11
- Object.defineProperty(exports, "SecurityIRServiceException", { enumerable: true, get: function () { return SecurityIRServiceException_1.SecurityIRServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AwsRegion: () => AwsRegion,
26
+ BatchGetMemberAccountDetailsCommand: () => BatchGetMemberAccountDetailsCommand,
27
+ CancelMembershipCommand: () => CancelMembershipCommand,
28
+ CaseAttachmentAttributesFilterSensitiveLog: () => CaseAttachmentAttributesFilterSensitiveLog,
29
+ CaseAttachmentStatus: () => CaseAttachmentStatus,
30
+ CaseStatus: () => CaseStatus,
31
+ CloseCaseCommand: () => CloseCaseCommand,
32
+ ClosureCode: () => ClosureCode,
33
+ ConflictException: () => ConflictException,
34
+ CreateCaseCommand: () => CreateCaseCommand,
35
+ CreateCaseCommentCommand: () => CreateCaseCommentCommand,
36
+ CreateCaseCommentRequestFilterSensitiveLog: () => CreateCaseCommentRequestFilterSensitiveLog,
37
+ CreateCaseRequestFilterSensitiveLog: () => CreateCaseRequestFilterSensitiveLog,
38
+ CreateMembershipCommand: () => CreateMembershipCommand,
39
+ CreateMembershipRequestFilterSensitiveLog: () => CreateMembershipRequestFilterSensitiveLog,
40
+ CustomerType: () => CustomerType,
41
+ EngagementType: () => EngagementType,
42
+ GetCaseAttachmentDownloadUrlCommand: () => GetCaseAttachmentDownloadUrlCommand,
43
+ GetCaseAttachmentDownloadUrlResponseFilterSensitiveLog: () => GetCaseAttachmentDownloadUrlResponseFilterSensitiveLog,
44
+ GetCaseAttachmentUploadUrlCommand: () => GetCaseAttachmentUploadUrlCommand,
45
+ GetCaseAttachmentUploadUrlRequestFilterSensitiveLog: () => GetCaseAttachmentUploadUrlRequestFilterSensitiveLog,
46
+ GetCaseAttachmentUploadUrlResponseFilterSensitiveLog: () => GetCaseAttachmentUploadUrlResponseFilterSensitiveLog,
47
+ GetCaseCommand: () => GetCaseCommand,
48
+ GetCaseResponseFilterSensitiveLog: () => GetCaseResponseFilterSensitiveLog,
49
+ GetMembershipCommand: () => GetMembershipCommand,
50
+ GetMembershipResponseFilterSensitiveLog: () => GetMembershipResponseFilterSensitiveLog,
51
+ IncidentResponderFilterSensitiveLog: () => IncidentResponderFilterSensitiveLog,
52
+ InternalServerException: () => InternalServerException,
53
+ InvalidTokenException: () => InvalidTokenException,
54
+ ListCaseEditsCommand: () => ListCaseEditsCommand,
55
+ ListCasesCommand: () => ListCasesCommand,
56
+ ListCasesItemFilterSensitiveLog: () => ListCasesItemFilterSensitiveLog,
57
+ ListCasesResponseFilterSensitiveLog: () => ListCasesResponseFilterSensitiveLog,
58
+ ListCommentsCommand: () => ListCommentsCommand,
59
+ ListCommentsItemFilterSensitiveLog: () => ListCommentsItemFilterSensitiveLog,
60
+ ListCommentsResponseFilterSensitiveLog: () => ListCommentsResponseFilterSensitiveLog,
61
+ ListMembershipsCommand: () => ListMembershipsCommand,
62
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
63
+ MembershipAccountRelationshipStatus: () => MembershipAccountRelationshipStatus,
64
+ MembershipAccountRelationshipType: () => MembershipAccountRelationshipType,
65
+ MembershipStatus: () => MembershipStatus,
66
+ OptInFeatureName: () => OptInFeatureName,
67
+ PendingAction: () => PendingAction,
68
+ ResolverType: () => ResolverType,
69
+ ResourceNotFoundException: () => ResourceNotFoundException,
70
+ SecurityIR: () => SecurityIR,
71
+ SecurityIRClient: () => SecurityIRClient,
72
+ SecurityIRServiceException: () => SecurityIRServiceException,
73
+ SecurityIncidentResponseNotActiveException: () => SecurityIncidentResponseNotActiveException,
74
+ SelfManagedCaseStatus: () => SelfManagedCaseStatus,
75
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
76
+ TagResourceCommand: () => TagResourceCommand,
77
+ ThreatActorIpFilterSensitiveLog: () => ThreatActorIpFilterSensitiveLog,
78
+ ThrottlingException: () => ThrottlingException,
79
+ UntagResourceCommand: () => UntagResourceCommand,
80
+ UpdateCaseCommand: () => UpdateCaseCommand,
81
+ UpdateCaseCommentCommand: () => UpdateCaseCommentCommand,
82
+ UpdateCaseCommentRequestFilterSensitiveLog: () => UpdateCaseCommentRequestFilterSensitiveLog,
83
+ UpdateCaseCommentResponseFilterSensitiveLog: () => UpdateCaseCommentResponseFilterSensitiveLog,
84
+ UpdateCaseRequestFilterSensitiveLog: () => UpdateCaseRequestFilterSensitiveLog,
85
+ UpdateCaseStatusCommand: () => UpdateCaseStatusCommand,
86
+ UpdateMembershipCommand: () => UpdateMembershipCommand,
87
+ UpdateMembershipRequestFilterSensitiveLog: () => UpdateMembershipRequestFilterSensitiveLog,
88
+ UpdateResolverTypeCommand: () => UpdateResolverTypeCommand,
89
+ ValidationException: () => ValidationException,
90
+ ValidationExceptionReason: () => ValidationExceptionReason,
91
+ WatcherFilterSensitiveLog: () => WatcherFilterSensitiveLog,
92
+ __Client: () => import_smithy_client.Client,
93
+ paginateListCaseEdits: () => paginateListCaseEdits,
94
+ paginateListCases: () => paginateListCases,
95
+ paginateListComments: () => paginateListComments,
96
+ paginateListMemberships: () => paginateListMemberships
97
+ });
98
+ module.exports = __toCommonJS(index_exports);
99
+
100
+ // src/SecurityIRClient.ts
101
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
102
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
103
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
104
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
105
+ var import_config_resolver = require("@smithy/config-resolver");
106
+ var import_core = require("@smithy/core");
107
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
108
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
109
+ var import_middleware_retry = require("@smithy/middleware-retry");
110
+
111
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
112
+
113
+ // src/endpoint/EndpointParameters.ts
114
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
115
+ return Object.assign(options, {
116
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
117
+ defaultSigningName: "security-ir"
118
+ });
119
+ }, "resolveClientEndpointParameters");
120
+ var commonParams = {
121
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
122
+ Endpoint: { type: "builtInParams", name: "endpoint" },
123
+ Region: { type: "builtInParams", name: "region" }
124
+ };
125
+
126
+ // src/SecurityIRClient.ts
127
+ var import_runtimeConfig = require("././runtimeConfig");
128
+
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");
133
+
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;
162
+ }
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");
172
+
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");
190
+
191
+ // src/SecurityIRClient.ts
192
+ var SecurityIRClient = class extends import_smithy_client.Client {
193
+ static {
194
+ __name(this, "SecurityIRClient");
195
+ }
196
+ /**
197
+ * The resolved configuration of SecurityIRClient class. This is resolved and normalized from the {@link SecurityIRClientConfig | 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.defaultSecurityIRHttpAuthSchemeParametersProvider,
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
+ }
237
+ };
238
+
239
+ // src/SecurityIR.ts
240
+
241
+
242
+ // src/commands/BatchGetMemberAccountDetailsCommand.ts
243
+
244
+ var import_middleware_serde = require("@smithy/middleware-serde");
245
+
246
+
247
+ // src/protocols/Aws_restJson1.ts
248
+ var import_core2 = require("@aws-sdk/core");
249
+
250
+
251
+ var import_uuid = require("uuid");
252
+
253
+ // src/models/models_0.ts
254
+
255
+
256
+ // src/models/SecurityIRServiceException.ts
257
+
258
+ var SecurityIRServiceException = class _SecurityIRServiceException extends import_smithy_client.ServiceException {
259
+ static {
260
+ __name(this, "SecurityIRServiceException");
261
+ }
262
+ /**
263
+ * @internal
264
+ */
265
+ constructor(options) {
266
+ super(options);
267
+ Object.setPrototypeOf(this, _SecurityIRServiceException.prototype);
268
+ }
269
+ };
270
+
271
+ // src/models/models_0.ts
272
+ var AccessDeniedException = class _AccessDeniedException extends SecurityIRServiceException {
273
+ static {
274
+ __name(this, "AccessDeniedException");
275
+ }
276
+ name = "AccessDeniedException";
277
+ $fault = "client";
278
+ /**
279
+ * @internal
280
+ */
281
+ constructor(opts) {
282
+ super({
283
+ name: "AccessDeniedException",
284
+ $fault: "client",
285
+ ...opts
286
+ });
287
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
288
+ }
289
+ };
290
+ var AwsRegion = {
291
+ AF_SOUTH_1: "af-south-1",
292
+ AP_EAST_1: "ap-east-1",
293
+ AP_EAST_2: "ap-east-2",
294
+ AP_NORTHEAST_1: "ap-northeast-1",
295
+ AP_NORTHEAST_2: "ap-northeast-2",
296
+ AP_NORTHEAST_3: "ap-northeast-3",
297
+ AP_SOUTHEAST_1: "ap-southeast-1",
298
+ AP_SOUTHEAST_2: "ap-southeast-2",
299
+ AP_SOUTHEAST_3: "ap-southeast-3",
300
+ AP_SOUTHEAST_4: "ap-southeast-4",
301
+ AP_SOUTHEAST_5: "ap-southeast-5",
302
+ AP_SOUTHEAST_7: "ap-southeast-7",
303
+ AP_SOUTH_1: "ap-south-1",
304
+ AP_SOUTH_2: "ap-south-2",
305
+ CA_CENTRAL_1: "ca-central-1",
306
+ CA_WEST_1: "ca-west-1",
307
+ CN_NORTHWEST_1: "cn-northwest-1",
308
+ CN_NORTH_1: "cn-north-1",
309
+ EU_CENTRAL_1: "eu-central-1",
310
+ EU_CENTRAL_2: "eu-central-2",
311
+ EU_NORTH_1: "eu-north-1",
312
+ EU_SOUTH_1: "eu-south-1",
313
+ EU_SOUTH_2: "eu-south-2",
314
+ EU_WEST_1: "eu-west-1",
315
+ EU_WEST_2: "eu-west-2",
316
+ EU_WEST_3: "eu-west-3",
317
+ IL_CENTRAL_1: "il-central-1",
318
+ ME_CENTRAL_1: "me-central-1",
319
+ ME_SOUTH_1: "me-south-1",
320
+ MX_CENTRAL_1: "mx-central-1",
321
+ SA_EAST_1: "sa-east-1",
322
+ US_EAST_1: "us-east-1",
323
+ US_EAST_2: "us-east-2",
324
+ US_WEST_1: "us-west-1",
325
+ US_WEST_2: "us-west-2"
326
+ };
327
+ var MembershipAccountRelationshipStatus = {
328
+ ASSOCIATED: "Associated",
329
+ DISASSOCIATED: "Disassociated",
330
+ UNASSOCIATED: "Unassociated"
331
+ };
332
+ var MembershipAccountRelationshipType = {
333
+ ORGANIZATION: "Organization",
334
+ UNRELATED: "Unrelated"
335
+ };
336
+ var ConflictException = class _ConflictException extends SecurityIRServiceException {
337
+ static {
338
+ __name(this, "ConflictException");
339
+ }
340
+ name = "ConflictException";
341
+ $fault = "client";
342
+ /**
343
+ * <p>The ID of the conflicting resource.</p>
344
+ * @public
345
+ */
346
+ resourceId;
347
+ /**
348
+ * <p>The type of the conflicting resource.</p>
349
+ * @public
350
+ */
351
+ resourceType;
352
+ /**
353
+ * @internal
354
+ */
355
+ constructor(opts) {
356
+ super({
357
+ name: "ConflictException",
358
+ $fault: "client",
359
+ ...opts
360
+ });
361
+ Object.setPrototypeOf(this, _ConflictException.prototype);
362
+ this.resourceId = opts.resourceId;
363
+ this.resourceType = opts.resourceType;
364
+ }
365
+ };
366
+ var InternalServerException = class _InternalServerException extends SecurityIRServiceException {
367
+ static {
368
+ __name(this, "InternalServerException");
369
+ }
370
+ name = "InternalServerException";
371
+ $fault = "server";
372
+ $retryable = {};
373
+ /**
374
+ * <p>The number of seconds after which to retry the request.</p>
375
+ * @public
376
+ */
377
+ retryAfterSeconds;
378
+ /**
379
+ * @internal
380
+ */
381
+ constructor(opts) {
382
+ super({
383
+ name: "InternalServerException",
384
+ $fault: "server",
385
+ ...opts
386
+ });
387
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
388
+ this.retryAfterSeconds = opts.retryAfterSeconds;
389
+ }
390
+ };
391
+ var InvalidTokenException = class _InvalidTokenException extends SecurityIRServiceException {
392
+ static {
393
+ __name(this, "InvalidTokenException");
394
+ }
395
+ name = "InvalidTokenException";
396
+ $fault = "client";
397
+ $retryable = {};
398
+ /**
399
+ * @internal
400
+ */
401
+ constructor(opts) {
402
+ super({
403
+ name: "InvalidTokenException",
404
+ $fault: "client",
405
+ ...opts
406
+ });
407
+ Object.setPrototypeOf(this, _InvalidTokenException.prototype);
408
+ }
409
+ };
410
+ var ResourceNotFoundException = class _ResourceNotFoundException extends SecurityIRServiceException {
411
+ static {
412
+ __name(this, "ResourceNotFoundException");
413
+ }
414
+ name = "ResourceNotFoundException";
415
+ $fault = "client";
416
+ /**
417
+ * @internal
418
+ */
419
+ constructor(opts) {
420
+ super({
421
+ name: "ResourceNotFoundException",
422
+ $fault: "client",
423
+ ...opts
424
+ });
425
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
426
+ }
427
+ };
428
+ var SecurityIncidentResponseNotActiveException = class _SecurityIncidentResponseNotActiveException extends SecurityIRServiceException {
429
+ static {
430
+ __name(this, "SecurityIncidentResponseNotActiveException");
431
+ }
432
+ name = "SecurityIncidentResponseNotActiveException";
433
+ $fault = "client";
434
+ /**
435
+ * @internal
436
+ */
437
+ constructor(opts) {
438
+ super({
439
+ name: "SecurityIncidentResponseNotActiveException",
440
+ $fault: "client",
441
+ ...opts
442
+ });
443
+ Object.setPrototypeOf(this, _SecurityIncidentResponseNotActiveException.prototype);
444
+ }
445
+ };
446
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SecurityIRServiceException {
447
+ static {
448
+ __name(this, "ServiceQuotaExceededException");
449
+ }
450
+ name = "ServiceQuotaExceededException";
451
+ $fault = "client";
452
+ /**
453
+ * <p>The ID of the requested resource which lead to the service quota exception.</p>
454
+ * @public
455
+ */
456
+ resourceId;
457
+ /**
458
+ * <p>The type of the requested resource which lead to the service quota exception.</p>
459
+ * @public
460
+ */
461
+ resourceType;
462
+ /**
463
+ * <p>The service code of the quota.</p>
464
+ * @public
465
+ */
466
+ serviceCode;
467
+ /**
468
+ * <p>The code of the quota.</p>
469
+ * @public
470
+ */
471
+ quotaCode;
472
+ /**
473
+ * @internal
474
+ */
475
+ constructor(opts) {
476
+ super({
477
+ name: "ServiceQuotaExceededException",
478
+ $fault: "client",
479
+ ...opts
480
+ });
481
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
482
+ this.resourceId = opts.resourceId;
483
+ this.resourceType = opts.resourceType;
484
+ this.serviceCode = opts.serviceCode;
485
+ this.quotaCode = opts.quotaCode;
486
+ }
487
+ };
488
+ var ThrottlingException = class _ThrottlingException extends SecurityIRServiceException {
489
+ static {
490
+ __name(this, "ThrottlingException");
491
+ }
492
+ name = "ThrottlingException";
493
+ $fault = "client";
494
+ $retryable = {
495
+ throttling: true
496
+ };
497
+ /**
498
+ * <p>The service code of the exception.</p>
499
+ * @public
500
+ */
501
+ serviceCode;
502
+ /**
503
+ * <p>The quota code of the exception.</p>
504
+ * @public
505
+ */
506
+ quotaCode;
507
+ /**
508
+ * <p>The number of seconds after which to retry the request.</p>
509
+ * @public
510
+ */
511
+ retryAfterSeconds;
512
+ /**
513
+ * @internal
514
+ */
515
+ constructor(opts) {
516
+ super({
517
+ name: "ThrottlingException",
518
+ $fault: "client",
519
+ ...opts
520
+ });
521
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
522
+ this.serviceCode = opts.serviceCode;
523
+ this.quotaCode = opts.quotaCode;
524
+ this.retryAfterSeconds = opts.retryAfterSeconds;
525
+ }
526
+ };
527
+ var ValidationExceptionReason = {
528
+ CANNOT_PARSE: "CANNOT_PARSE",
529
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
530
+ OTHER: "OTHER",
531
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
532
+ };
533
+ var ValidationException = class _ValidationException extends SecurityIRServiceException {
534
+ static {
535
+ __name(this, "ValidationException");
536
+ }
537
+ name = "ValidationException";
538
+ $fault = "client";
539
+ /**
540
+ * <p>The reason for the exception.</p>
541
+ * @public
542
+ */
543
+ reason;
544
+ /**
545
+ * <p>The fields which lead to the exception.</p>
546
+ * @public
547
+ */
548
+ fieldList;
549
+ /**
550
+ * @internal
551
+ */
552
+ constructor(opts) {
553
+ super({
554
+ name: "ValidationException",
555
+ $fault: "client",
556
+ ...opts
557
+ });
558
+ Object.setPrototypeOf(this, _ValidationException.prototype);
559
+ this.reason = opts.reason;
560
+ this.fieldList = opts.fieldList;
561
+ }
562
+ };
563
+ var CaseStatus = {
564
+ ACKNOWLEDGED: "Acknowledged",
565
+ CLOSED: "Closed",
566
+ CONTAINMENT_ERADICATION_AND_RECOVERY: "Containment, Eradication and Recovery",
567
+ DETECTION_AND_ANALYSIS: "Detection and Analysis",
568
+ POST_INCIDENT_ACTIVITIES: "Post-incident Activities",
569
+ READY_TO_CLOSE: "Ready to Close",
570
+ SUBMITTED: "Submitted"
571
+ };
572
+ var EngagementType = {
573
+ INVESTIGATION: "Investigation",
574
+ SECURITY_INCIDENT: "Security Incident"
575
+ };
576
+ var ResolverType = {
577
+ AWS: "AWS",
578
+ SELF: "Self"
579
+ };
580
+ var CaseAttachmentStatus = {
581
+ FAILED: "Failed",
582
+ PENDING: "Pending",
583
+ VERIFIED: "Verified"
584
+ };
585
+ var ClosureCode = {
586
+ DUPLICATE: "Duplicate",
587
+ FALSE_POSITIVE: "False Positive",
588
+ INVESTIGATION_COMPLETED: "Investigation Completed",
589
+ NOT_RESOLVED: "Not Resolved"
590
+ };
591
+ var PendingAction = {
592
+ CUSTOMER: "Customer",
593
+ NONE: "None"
594
+ };
595
+ var SelfManagedCaseStatus = {
596
+ CONTAINMENT_ERADICATION_AND_RECOVERY: "Containment, Eradication and Recovery",
597
+ DETECTION_AND_ANALYSIS: "Detection and Analysis",
598
+ POST_INCIDENT_ACTIVITIES: "Post-incident Activities",
599
+ SUBMITTED: "Submitted"
600
+ };
601
+ var OptInFeatureName = {
602
+ TRIAGE: "Triage"
603
+ };
604
+ var CustomerType = {
605
+ ORGANIZATION: "Organization",
606
+ STANDALONE: "Standalone"
607
+ };
608
+ var MembershipStatus = {
609
+ ACTIVE: "Active",
610
+ CANCELLED: "Cancelled",
611
+ TERMINATED: "Terminated"
612
+ };
613
+ var ThreatActorIpFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
614
+ ...obj,
615
+ ...obj.ipAddress && { ipAddress: import_smithy_client.SENSITIVE_STRING }
616
+ }), "ThreatActorIpFilterSensitiveLog");
617
+ var WatcherFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
618
+ ...obj,
619
+ ...obj.email && { email: import_smithy_client.SENSITIVE_STRING },
620
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
621
+ ...obj.jobTitle && { jobTitle: import_smithy_client.SENSITIVE_STRING }
622
+ }), "WatcherFilterSensitiveLog");
623
+ var CreateCaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
624
+ ...obj,
625
+ ...obj.title && { title: import_smithy_client.SENSITIVE_STRING },
626
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
627
+ ...obj.watchers && { watchers: obj.watchers.map((item) => WatcherFilterSensitiveLog(item)) },
628
+ ...obj.threatActorIpAddresses && {
629
+ threatActorIpAddresses: obj.threatActorIpAddresses.map((item) => ThreatActorIpFilterSensitiveLog(item))
630
+ }
631
+ }), "CreateCaseRequestFilterSensitiveLog");
632
+ var CreateCaseCommentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
633
+ ...obj,
634
+ ...obj.body && { body: import_smithy_client.SENSITIVE_STRING }
635
+ }), "CreateCaseCommentRequestFilterSensitiveLog");
636
+ var CaseAttachmentAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
637
+ ...obj,
638
+ ...obj.fileName && { fileName: import_smithy_client.SENSITIVE_STRING }
639
+ }), "CaseAttachmentAttributesFilterSensitiveLog");
640
+ var GetCaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
641
+ ...obj,
642
+ ...obj.title && { title: import_smithy_client.SENSITIVE_STRING },
643
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
644
+ ...obj.threatActorIpAddresses && {
645
+ threatActorIpAddresses: obj.threatActorIpAddresses.map((item) => ThreatActorIpFilterSensitiveLog(item))
646
+ },
647
+ ...obj.watchers && { watchers: obj.watchers.map((item) => WatcherFilterSensitiveLog(item)) },
648
+ ...obj.caseAttachments && {
649
+ caseAttachments: obj.caseAttachments.map((item) => CaseAttachmentAttributesFilterSensitiveLog(item))
650
+ }
651
+ }), "GetCaseResponseFilterSensitiveLog");
652
+ var GetCaseAttachmentDownloadUrlResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
653
+ ...obj,
654
+ ...obj.attachmentPresignedUrl && { attachmentPresignedUrl: import_smithy_client.SENSITIVE_STRING }
655
+ }), "GetCaseAttachmentDownloadUrlResponseFilterSensitiveLog");
656
+ var GetCaseAttachmentUploadUrlRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
657
+ ...obj,
658
+ ...obj.fileName && { fileName: import_smithy_client.SENSITIVE_STRING }
659
+ }), "GetCaseAttachmentUploadUrlRequestFilterSensitiveLog");
660
+ var GetCaseAttachmentUploadUrlResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
661
+ ...obj,
662
+ ...obj.attachmentPresignedUrl && { attachmentPresignedUrl: import_smithy_client.SENSITIVE_STRING }
663
+ }), "GetCaseAttachmentUploadUrlResponseFilterSensitiveLog");
664
+ var ListCasesItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
665
+ ...obj,
666
+ ...obj.title && { title: import_smithy_client.SENSITIVE_STRING }
667
+ }), "ListCasesItemFilterSensitiveLog");
668
+ var ListCasesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
669
+ ...obj,
670
+ ...obj.items && { items: obj.items.map((item) => ListCasesItemFilterSensitiveLog(item)) }
671
+ }), "ListCasesResponseFilterSensitiveLog");
672
+ var ListCommentsItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
673
+ ...obj,
674
+ ...obj.body && { body: import_smithy_client.SENSITIVE_STRING }
675
+ }), "ListCommentsItemFilterSensitiveLog");
676
+ var ListCommentsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
677
+ ...obj,
678
+ ...obj.items && { items: obj.items.map((item) => ListCommentsItemFilterSensitiveLog(item)) }
679
+ }), "ListCommentsResponseFilterSensitiveLog");
680
+ var UpdateCaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
681
+ ...obj,
682
+ ...obj.title && { title: import_smithy_client.SENSITIVE_STRING },
683
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
684
+ ...obj.watchersToAdd && { watchersToAdd: obj.watchersToAdd.map((item) => WatcherFilterSensitiveLog(item)) },
685
+ ...obj.watchersToDelete && {
686
+ watchersToDelete: obj.watchersToDelete.map((item) => WatcherFilterSensitiveLog(item))
687
+ },
688
+ ...obj.threatActorIpAddressesToAdd && {
689
+ threatActorIpAddressesToAdd: obj.threatActorIpAddressesToAdd.map((item) => ThreatActorIpFilterSensitiveLog(item))
690
+ },
691
+ ...obj.threatActorIpAddressesToDelete && {
692
+ threatActorIpAddressesToDelete: obj.threatActorIpAddressesToDelete.map(
693
+ (item) => ThreatActorIpFilterSensitiveLog(item)
694
+ )
695
+ }
696
+ }), "UpdateCaseRequestFilterSensitiveLog");
697
+ var UpdateCaseCommentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
698
+ ...obj,
699
+ ...obj.body && { body: import_smithy_client.SENSITIVE_STRING }
700
+ }), "UpdateCaseCommentRequestFilterSensitiveLog");
701
+ var UpdateCaseCommentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
702
+ ...obj,
703
+ ...obj.body && { body: import_smithy_client.SENSITIVE_STRING }
704
+ }), "UpdateCaseCommentResponseFilterSensitiveLog");
705
+ var IncidentResponderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
706
+ ...obj,
707
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
708
+ ...obj.jobTitle && { jobTitle: import_smithy_client.SENSITIVE_STRING },
709
+ ...obj.email && { email: import_smithy_client.SENSITIVE_STRING }
710
+ }), "IncidentResponderFilterSensitiveLog");
711
+ var CreateMembershipRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
712
+ ...obj,
713
+ ...obj.membershipName && { membershipName: import_smithy_client.SENSITIVE_STRING },
714
+ ...obj.incidentResponseTeam && {
715
+ incidentResponseTeam: obj.incidentResponseTeam.map((item) => IncidentResponderFilterSensitiveLog(item))
716
+ }
717
+ }), "CreateMembershipRequestFilterSensitiveLog");
718
+ var GetMembershipResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
719
+ ...obj,
720
+ ...obj.membershipName && { membershipName: import_smithy_client.SENSITIVE_STRING },
721
+ ...obj.incidentResponseTeam && {
722
+ incidentResponseTeam: obj.incidentResponseTeam.map((item) => IncidentResponderFilterSensitiveLog(item))
723
+ }
724
+ }), "GetMembershipResponseFilterSensitiveLog");
725
+ var UpdateMembershipRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
726
+ ...obj,
727
+ ...obj.membershipName && { membershipName: import_smithy_client.SENSITIVE_STRING },
728
+ ...obj.incidentResponseTeam && {
729
+ incidentResponseTeam: obj.incidentResponseTeam.map((item) => IncidentResponderFilterSensitiveLog(item))
730
+ }
731
+ }), "UpdateMembershipRequestFilterSensitiveLog");
732
+
733
+ // src/protocols/Aws_restJson1.ts
734
+ var se_BatchGetMemberAccountDetailsCommand = /* @__PURE__ */ __name(async (input, context) => {
735
+ const b = (0, import_core.requestBuilder)(input, context);
736
+ const headers = {
737
+ "content-type": "application/json"
738
+ };
739
+ b.bp("/v1/membership/{membershipId}/batch-member-details");
740
+ b.p("membershipId", () => input.membershipId, "{membershipId}", false);
741
+ let body;
742
+ body = JSON.stringify(
743
+ (0, import_smithy_client.take)(input, {
744
+ accountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accountIds")
745
+ })
746
+ );
747
+ b.m("POST").h(headers).b(body);
748
+ return b.build();
749
+ }, "se_BatchGetMemberAccountDetailsCommand");
750
+ var se_CancelMembershipCommand = /* @__PURE__ */ __name(async (input, context) => {
751
+ const b = (0, import_core.requestBuilder)(input, context);
752
+ const headers = {};
753
+ b.bp("/v1/membership/{membershipId}");
754
+ b.p("membershipId", () => input.membershipId, "{membershipId}", false);
755
+ let body;
756
+ b.m("PUT").h(headers).b(body);
757
+ return b.build();
758
+ }, "se_CancelMembershipCommand");
759
+ var se_CloseCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
760
+ const b = (0, import_core.requestBuilder)(input, context);
761
+ const headers = {};
762
+ b.bp("/v1/cases/{caseId}/close-case");
763
+ b.p("caseId", () => input.caseId, "{caseId}", false);
764
+ let body;
765
+ b.m("POST").h(headers).b(body);
766
+ return b.build();
767
+ }, "se_CloseCaseCommand");
768
+ var se_CreateCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
769
+ const b = (0, import_core.requestBuilder)(input, context);
770
+ const headers = {
771
+ "content-type": "application/json"
772
+ };
773
+ b.bp("/v1/create-case");
774
+ let body;
775
+ body = JSON.stringify(
776
+ (0, import_smithy_client.take)(input, {
777
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
778
+ description: [],
779
+ engagementType: [],
780
+ impactedAccounts: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedAccounts"),
781
+ impactedAwsRegions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedAwsRegions"),
782
+ impactedServices: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedServices"),
783
+ reportedIncidentStartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "reportedIncidentStartDate"),
784
+ resolverType: [],
785
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
786
+ threatActorIpAddresses: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "threatActorIpAddresses"),
787
+ title: [],
788
+ watchers: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "watchers")
789
+ })
790
+ );
791
+ b.m("POST").h(headers).b(body);
792
+ return b.build();
793
+ }, "se_CreateCaseCommand");
794
+ var se_CreateCaseCommentCommand = /* @__PURE__ */ __name(async (input, context) => {
795
+ const b = (0, import_core.requestBuilder)(input, context);
796
+ const headers = {
797
+ "content-type": "application/json"
798
+ };
799
+ b.bp("/v1/cases/{caseId}/create-comment");
800
+ b.p("caseId", () => input.caseId, "{caseId}", false);
801
+ let body;
802
+ body = JSON.stringify(
803
+ (0, import_smithy_client.take)(input, {
804
+ body: [],
805
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
806
+ })
807
+ );
808
+ b.m("POST").h(headers).b(body);
809
+ return b.build();
810
+ }, "se_CreateCaseCommentCommand");
811
+ var se_CreateMembershipCommand = /* @__PURE__ */ __name(async (input, context) => {
812
+ const b = (0, import_core.requestBuilder)(input, context);
813
+ const headers = {
814
+ "content-type": "application/json"
815
+ };
816
+ b.bp("/v1/membership");
817
+ let body;
818
+ body = JSON.stringify(
819
+ (0, import_smithy_client.take)(input, {
820
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
821
+ coverEntireOrganization: [],
822
+ incidentResponseTeam: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "incidentResponseTeam"),
823
+ membershipName: [],
824
+ optInFeatures: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "optInFeatures"),
825
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
826
+ })
827
+ );
828
+ b.m("POST").h(headers).b(body);
829
+ return b.build();
830
+ }, "se_CreateMembershipCommand");
831
+ var se_GetCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
832
+ const b = (0, import_core.requestBuilder)(input, context);
833
+ const headers = {};
834
+ b.bp("/v1/cases/{caseId}/get-case");
835
+ b.p("caseId", () => input.caseId, "{caseId}", false);
836
+ let body;
837
+ b.m("GET").h(headers).b(body);
838
+ return b.build();
839
+ }, "se_GetCaseCommand");
840
+ var se_GetCaseAttachmentDownloadUrlCommand = /* @__PURE__ */ __name(async (input, context) => {
841
+ const b = (0, import_core.requestBuilder)(input, context);
842
+ const headers = {};
843
+ b.bp("/v1/cases/{caseId}/get-presigned-url/{attachmentId}");
844
+ b.p("caseId", () => input.caseId, "{caseId}", false);
845
+ b.p("attachmentId", () => input.attachmentId, "{attachmentId}", false);
846
+ let body;
847
+ b.m("GET").h(headers).b(body);
848
+ return b.build();
849
+ }, "se_GetCaseAttachmentDownloadUrlCommand");
850
+ var se_GetCaseAttachmentUploadUrlCommand = /* @__PURE__ */ __name(async (input, context) => {
851
+ const b = (0, import_core.requestBuilder)(input, context);
852
+ const headers = {
853
+ "content-type": "application/json"
854
+ };
855
+ b.bp("/v1/cases/{caseId}/get-presigned-url");
856
+ b.p("caseId", () => input.caseId, "{caseId}", false);
857
+ let body;
858
+ body = JSON.stringify(
859
+ (0, import_smithy_client.take)(input, {
860
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
861
+ contentLength: [],
862
+ fileName: []
863
+ })
864
+ );
865
+ b.m("POST").h(headers).b(body);
866
+ return b.build();
867
+ }, "se_GetCaseAttachmentUploadUrlCommand");
868
+ var se_GetMembershipCommand = /* @__PURE__ */ __name(async (input, context) => {
869
+ const b = (0, import_core.requestBuilder)(input, context);
870
+ const headers = {};
871
+ b.bp("/v1/membership/{membershipId}");
872
+ b.p("membershipId", () => input.membershipId, "{membershipId}", false);
873
+ let body;
874
+ b.m("GET").h(headers).b(body);
875
+ return b.build();
876
+ }, "se_GetMembershipCommand");
877
+ var se_ListCaseEditsCommand = /* @__PURE__ */ __name(async (input, context) => {
878
+ const b = (0, import_core.requestBuilder)(input, context);
879
+ const headers = {
880
+ "content-type": "application/json"
881
+ };
882
+ b.bp("/v1/cases/{caseId}/list-case-edits");
883
+ b.p("caseId", () => input.caseId, "{caseId}", false);
884
+ let body;
885
+ body = JSON.stringify(
886
+ (0, import_smithy_client.take)(input, {
887
+ maxResults: [],
888
+ nextToken: []
889
+ })
890
+ );
891
+ b.m("POST").h(headers).b(body);
892
+ return b.build();
893
+ }, "se_ListCaseEditsCommand");
894
+ var se_ListCasesCommand = /* @__PURE__ */ __name(async (input, context) => {
895
+ const b = (0, import_core.requestBuilder)(input, context);
896
+ const headers = {
897
+ "content-type": "application/json"
898
+ };
899
+ b.bp("/v1/list-cases");
900
+ let body;
901
+ body = JSON.stringify(
902
+ (0, import_smithy_client.take)(input, {
903
+ maxResults: [],
904
+ nextToken: []
905
+ })
906
+ );
907
+ b.m("POST").h(headers).b(body);
908
+ return b.build();
909
+ }, "se_ListCasesCommand");
910
+ var se_ListCommentsCommand = /* @__PURE__ */ __name(async (input, context) => {
911
+ const b = (0, import_core.requestBuilder)(input, context);
912
+ const headers = {
913
+ "content-type": "application/json"
914
+ };
915
+ b.bp("/v1/cases/{caseId}/list-comments");
916
+ b.p("caseId", () => input.caseId, "{caseId}", false);
917
+ let body;
918
+ body = JSON.stringify(
919
+ (0, import_smithy_client.take)(input, {
920
+ maxResults: [],
921
+ nextToken: []
922
+ })
923
+ );
924
+ b.m("POST").h(headers).b(body);
925
+ return b.build();
926
+ }, "se_ListCommentsCommand");
927
+ var se_ListMembershipsCommand = /* @__PURE__ */ __name(async (input, context) => {
928
+ const b = (0, import_core.requestBuilder)(input, context);
929
+ const headers = {
930
+ "content-type": "application/json"
931
+ };
932
+ b.bp("/v1/memberships");
933
+ let body;
934
+ body = JSON.stringify(
935
+ (0, import_smithy_client.take)(input, {
936
+ maxResults: [],
937
+ nextToken: []
938
+ })
939
+ );
940
+ b.m("POST").h(headers).b(body);
941
+ return b.build();
942
+ }, "se_ListMembershipsCommand");
943
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
944
+ const b = (0, import_core.requestBuilder)(input, context);
945
+ const headers = {};
946
+ b.bp("/v1/tags/{resourceArn}");
947
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
948
+ let body;
949
+ b.m("GET").h(headers).b(body);
950
+ return b.build();
951
+ }, "se_ListTagsForResourceCommand");
952
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
953
+ const b = (0, import_core.requestBuilder)(input, context);
954
+ const headers = {
955
+ "content-type": "application/json"
956
+ };
957
+ b.bp("/v1/tags/{resourceArn}");
958
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
959
+ let body;
960
+ body = JSON.stringify(
961
+ (0, import_smithy_client.take)(input, {
962
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
963
+ })
964
+ );
965
+ b.m("POST").h(headers).b(body);
966
+ return b.build();
967
+ }, "se_TagResourceCommand");
968
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
969
+ const b = (0, import_core.requestBuilder)(input, context);
970
+ const headers = {};
971
+ b.bp("/v1/tags/{resourceArn}");
972
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
973
+ const query = (0, import_smithy_client.map)({
974
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
975
+ });
976
+ let body;
977
+ b.m("DELETE").h(headers).q(query).b(body);
978
+ return b.build();
979
+ }, "se_UntagResourceCommand");
980
+ var se_UpdateCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
981
+ const b = (0, import_core.requestBuilder)(input, context);
982
+ const headers = {
983
+ "content-type": "application/json"
984
+ };
985
+ b.bp("/v1/cases/{caseId}/update-case");
986
+ b.p("caseId", () => input.caseId, "{caseId}", false);
987
+ let body;
988
+ body = JSON.stringify(
989
+ (0, import_smithy_client.take)(input, {
990
+ actualIncidentStartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "actualIncidentStartDate"),
991
+ description: [],
992
+ engagementType: [],
993
+ impactedAccountsToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedAccountsToAdd"),
994
+ impactedAccountsToDelete: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedAccountsToDelete"),
995
+ impactedAwsRegionsToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedAwsRegionsToAdd"),
996
+ impactedAwsRegionsToDelete: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedAwsRegionsToDelete"),
997
+ impactedServicesToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedServicesToAdd"),
998
+ impactedServicesToDelete: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "impactedServicesToDelete"),
999
+ reportedIncidentStartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "reportedIncidentStartDate"),
1000
+ threatActorIpAddressesToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "threatActorIpAddressesToAdd"),
1001
+ threatActorIpAddressesToDelete: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "threatActorIpAddressesToDelete"),
1002
+ title: [],
1003
+ watchersToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "watchersToAdd"),
1004
+ watchersToDelete: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "watchersToDelete")
1005
+ })
1006
+ );
1007
+ b.m("POST").h(headers).b(body);
1008
+ return b.build();
1009
+ }, "se_UpdateCaseCommand");
1010
+ var se_UpdateCaseCommentCommand = /* @__PURE__ */ __name(async (input, context) => {
1011
+ const b = (0, import_core.requestBuilder)(input, context);
1012
+ const headers = {
1013
+ "content-type": "application/json"
1014
+ };
1015
+ b.bp("/v1/cases/{caseId}/update-case-comment/{commentId}");
1016
+ b.p("caseId", () => input.caseId, "{caseId}", false);
1017
+ b.p("commentId", () => input.commentId, "{commentId}", false);
1018
+ let body;
1019
+ body = JSON.stringify(
1020
+ (0, import_smithy_client.take)(input, {
1021
+ body: []
1022
+ })
1023
+ );
1024
+ b.m("PUT").h(headers).b(body);
1025
+ return b.build();
1026
+ }, "se_UpdateCaseCommentCommand");
1027
+ var se_UpdateCaseStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
1028
+ const b = (0, import_core.requestBuilder)(input, context);
1029
+ const headers = {
1030
+ "content-type": "application/json"
1031
+ };
1032
+ b.bp("/v1/cases/{caseId}/update-case-status");
1033
+ b.p("caseId", () => input.caseId, "{caseId}", false);
1034
+ let body;
1035
+ body = JSON.stringify(
1036
+ (0, import_smithy_client.take)(input, {
1037
+ caseStatus: []
1038
+ })
1039
+ );
1040
+ b.m("POST").h(headers).b(body);
1041
+ return b.build();
1042
+ }, "se_UpdateCaseStatusCommand");
1043
+ var se_UpdateMembershipCommand = /* @__PURE__ */ __name(async (input, context) => {
1044
+ const b = (0, import_core.requestBuilder)(input, context);
1045
+ const headers = {
1046
+ "content-type": "application/json"
1047
+ };
1048
+ b.bp("/v1/membership/{membershipId}/update-membership");
1049
+ b.p("membershipId", () => input.membershipId, "{membershipId}", false);
1050
+ let body;
1051
+ body = JSON.stringify(
1052
+ (0, import_smithy_client.take)(input, {
1053
+ incidentResponseTeam: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "incidentResponseTeam"),
1054
+ membershipAccountsConfigurationsUpdate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "membershipAccountsConfigurationsUpdate"),
1055
+ membershipName: [],
1056
+ optInFeatures: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "optInFeatures"),
1057
+ undoMembershipCancellation: []
1058
+ })
1059
+ );
1060
+ b.m("PUT").h(headers).b(body);
1061
+ return b.build();
1062
+ }, "se_UpdateMembershipCommand");
1063
+ var se_UpdateResolverTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
1064
+ const b = (0, import_core.requestBuilder)(input, context);
1065
+ const headers = {
1066
+ "content-type": "application/json"
1067
+ };
1068
+ b.bp("/v1/cases/{caseId}/update-resolver-type");
1069
+ b.p("caseId", () => input.caseId, "{caseId}", false);
1070
+ let body;
1071
+ body = JSON.stringify(
1072
+ (0, import_smithy_client.take)(input, {
1073
+ resolverType: []
1074
+ })
1075
+ );
1076
+ b.m("POST").h(headers).b(body);
1077
+ return b.build();
1078
+ }, "se_UpdateResolverTypeCommand");
1079
+ var de_BatchGetMemberAccountDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
1080
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1081
+ return de_CommandError(output, context);
1082
+ }
1083
+ const contents = (0, import_smithy_client.map)({
1084
+ $metadata: deserializeMetadata(output)
1085
+ });
1086
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1087
+ const doc = (0, import_smithy_client.take)(data, {
1088
+ errors: import_smithy_client._json,
1089
+ items: import_smithy_client._json
1090
+ });
1091
+ Object.assign(contents, doc);
1092
+ return contents;
1093
+ }, "de_BatchGetMemberAccountDetailsCommand");
1094
+ var de_CancelMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
1095
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1096
+ return de_CommandError(output, context);
1097
+ }
1098
+ const contents = (0, import_smithy_client.map)({
1099
+ $metadata: deserializeMetadata(output)
1100
+ });
1101
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1102
+ const doc = (0, import_smithy_client.take)(data, {
1103
+ membershipId: import_smithy_client.expectString
1104
+ });
1105
+ Object.assign(contents, doc);
1106
+ return contents;
1107
+ }, "de_CancelMembershipCommand");
1108
+ var de_CloseCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1109
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1110
+ return de_CommandError(output, context);
1111
+ }
1112
+ const contents = (0, import_smithy_client.map)({
1113
+ $metadata: deserializeMetadata(output)
1114
+ });
1115
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1116
+ const doc = (0, import_smithy_client.take)(data, {
1117
+ caseStatus: import_smithy_client.expectString,
1118
+ closedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "closedDate")
1119
+ });
1120
+ Object.assign(contents, doc);
1121
+ return contents;
1122
+ }, "de_CloseCaseCommand");
1123
+ var de_CreateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1124
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1125
+ return de_CommandError(output, context);
1126
+ }
1127
+ const contents = (0, import_smithy_client.map)({
1128
+ $metadata: deserializeMetadata(output)
1129
+ });
1130
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1131
+ const doc = (0, import_smithy_client.take)(data, {
1132
+ caseId: import_smithy_client.expectString
1133
+ });
1134
+ Object.assign(contents, doc);
1135
+ return contents;
1136
+ }, "de_CreateCaseCommand");
1137
+ var de_CreateCaseCommentCommand = /* @__PURE__ */ __name(async (output, context) => {
1138
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1139
+ return de_CommandError(output, context);
1140
+ }
1141
+ const contents = (0, import_smithy_client.map)({
1142
+ $metadata: deserializeMetadata(output)
1143
+ });
1144
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1145
+ const doc = (0, import_smithy_client.take)(data, {
1146
+ commentId: import_smithy_client.expectString
1147
+ });
1148
+ Object.assign(contents, doc);
1149
+ return contents;
1150
+ }, "de_CreateCaseCommentCommand");
1151
+ var de_CreateMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
1152
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1153
+ return de_CommandError(output, context);
1154
+ }
1155
+ const contents = (0, import_smithy_client.map)({
1156
+ $metadata: deserializeMetadata(output)
1157
+ });
1158
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1159
+ const doc = (0, import_smithy_client.take)(data, {
1160
+ membershipId: import_smithy_client.expectString
1161
+ });
1162
+ Object.assign(contents, doc);
1163
+ return contents;
1164
+ }, "de_CreateMembershipCommand");
1165
+ var de_GetCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1166
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1167
+ return de_CommandError(output, context);
1168
+ }
1169
+ const contents = (0, import_smithy_client.map)({
1170
+ $metadata: deserializeMetadata(output)
1171
+ });
1172
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1173
+ const doc = (0, import_smithy_client.take)(data, {
1174
+ actualIncidentStartDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "actualIncidentStartDate"),
1175
+ caseArn: import_smithy_client.expectString,
1176
+ caseAttachments: /* @__PURE__ */ __name((_) => de_CaseAttachmentsList(_, context), "caseAttachments"),
1177
+ caseStatus: import_smithy_client.expectString,
1178
+ closedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "closedDate"),
1179
+ closureCode: import_smithy_client.expectString,
1180
+ createdDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdDate"),
1181
+ description: import_smithy_client.expectString,
1182
+ engagementType: import_smithy_client.expectString,
1183
+ impactedAccounts: import_smithy_client._json,
1184
+ impactedAwsRegions: import_smithy_client._json,
1185
+ impactedServices: import_smithy_client._json,
1186
+ lastUpdatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedDate"),
1187
+ pendingAction: import_smithy_client.expectString,
1188
+ reportedIncidentStartDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "reportedIncidentStartDate"),
1189
+ resolverType: import_smithy_client.expectString,
1190
+ threatActorIpAddresses: import_smithy_client._json,
1191
+ title: import_smithy_client.expectString,
1192
+ watchers: import_smithy_client._json
1193
+ });
1194
+ Object.assign(contents, doc);
1195
+ return contents;
1196
+ }, "de_GetCaseCommand");
1197
+ var de_GetCaseAttachmentDownloadUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1198
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1199
+ return de_CommandError(output, context);
1200
+ }
1201
+ const contents = (0, import_smithy_client.map)({
1202
+ $metadata: deserializeMetadata(output)
1203
+ });
1204
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1205
+ const doc = (0, import_smithy_client.take)(data, {
1206
+ attachmentPresignedUrl: import_smithy_client.expectString
1207
+ });
1208
+ Object.assign(contents, doc);
1209
+ return contents;
1210
+ }, "de_GetCaseAttachmentDownloadUrlCommand");
1211
+ var de_GetCaseAttachmentUploadUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1212
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1213
+ return de_CommandError(output, context);
1214
+ }
1215
+ const contents = (0, import_smithy_client.map)({
1216
+ $metadata: deserializeMetadata(output)
1217
+ });
1218
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1219
+ const doc = (0, import_smithy_client.take)(data, {
1220
+ attachmentPresignedUrl: import_smithy_client.expectString
1221
+ });
1222
+ Object.assign(contents, doc);
1223
+ return contents;
1224
+ }, "de_GetCaseAttachmentUploadUrlCommand");
1225
+ var de_GetMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
1226
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1227
+ return de_CommandError(output, context);
1228
+ }
1229
+ const contents = (0, import_smithy_client.map)({
1230
+ $metadata: deserializeMetadata(output)
1231
+ });
1232
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1233
+ const doc = (0, import_smithy_client.take)(data, {
1234
+ accountId: import_smithy_client.expectString,
1235
+ customerType: import_smithy_client.expectString,
1236
+ incidentResponseTeam: import_smithy_client._json,
1237
+ membershipAccountsConfigurations: import_smithy_client._json,
1238
+ membershipActivationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "membershipActivationTimestamp"),
1239
+ membershipArn: import_smithy_client.expectString,
1240
+ membershipDeactivationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "membershipDeactivationTimestamp"),
1241
+ membershipId: import_smithy_client.expectString,
1242
+ membershipName: import_smithy_client.expectString,
1243
+ membershipStatus: import_smithy_client.expectString,
1244
+ numberOfAccountsCovered: import_smithy_client.expectLong,
1245
+ optInFeatures: import_smithy_client._json,
1246
+ region: import_smithy_client.expectString
1247
+ });
1248
+ Object.assign(contents, doc);
1249
+ return contents;
1250
+ }, "de_GetMembershipCommand");
1251
+ var de_ListCaseEditsCommand = /* @__PURE__ */ __name(async (output, context) => {
1252
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1253
+ return de_CommandError(output, context);
1254
+ }
1255
+ const contents = (0, import_smithy_client.map)({
1256
+ $metadata: deserializeMetadata(output)
1257
+ });
1258
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1259
+ const doc = (0, import_smithy_client.take)(data, {
1260
+ items: /* @__PURE__ */ __name((_) => de_CaseEditItems(_, context), "items"),
1261
+ nextToken: import_smithy_client.expectString,
1262
+ total: import_smithy_client.expectInt32
1263
+ });
1264
+ Object.assign(contents, doc);
1265
+ return contents;
1266
+ }, "de_ListCaseEditsCommand");
1267
+ var de_ListCasesCommand = /* @__PURE__ */ __name(async (output, context) => {
1268
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1269
+ return de_CommandError(output, context);
1270
+ }
1271
+ const contents = (0, import_smithy_client.map)({
1272
+ $metadata: deserializeMetadata(output)
1273
+ });
1274
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1275
+ const doc = (0, import_smithy_client.take)(data, {
1276
+ items: /* @__PURE__ */ __name((_) => de_ListCasesItems(_, context), "items"),
1277
+ nextToken: import_smithy_client.expectString,
1278
+ total: import_smithy_client.expectLong
1279
+ });
1280
+ Object.assign(contents, doc);
1281
+ return contents;
1282
+ }, "de_ListCasesCommand");
1283
+ var de_ListCommentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1284
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1285
+ return de_CommandError(output, context);
1286
+ }
1287
+ const contents = (0, import_smithy_client.map)({
1288
+ $metadata: deserializeMetadata(output)
1289
+ });
1290
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1291
+ const doc = (0, import_smithy_client.take)(data, {
1292
+ items: /* @__PURE__ */ __name((_) => de_ListCommentsItems(_, context), "items"),
1293
+ nextToken: import_smithy_client.expectString,
1294
+ total: import_smithy_client.expectInt32
1295
+ });
1296
+ Object.assign(contents, doc);
1297
+ return contents;
1298
+ }, "de_ListCommentsCommand");
1299
+ var de_ListMembershipsCommand = /* @__PURE__ */ __name(async (output, context) => {
1300
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1301
+ return de_CommandError(output, context);
1302
+ }
1303
+ const contents = (0, import_smithy_client.map)({
1304
+ $metadata: deserializeMetadata(output)
1305
+ });
1306
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1307
+ const doc = (0, import_smithy_client.take)(data, {
1308
+ items: import_smithy_client._json,
1309
+ nextToken: import_smithy_client.expectString
1310
+ });
1311
+ Object.assign(contents, doc);
1312
+ return contents;
1313
+ }, "de_ListMembershipsCommand");
1314
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1315
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1316
+ return de_CommandError(output, context);
1317
+ }
1318
+ const contents = (0, import_smithy_client.map)({
1319
+ $metadata: deserializeMetadata(output)
1320
+ });
1321
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1322
+ const doc = (0, import_smithy_client.take)(data, {
1323
+ tags: import_smithy_client._json
1324
+ });
1325
+ Object.assign(contents, doc);
1326
+ return contents;
1327
+ }, "de_ListTagsForResourceCommand");
1328
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1329
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1330
+ return de_CommandError(output, context);
1331
+ }
1332
+ const contents = (0, import_smithy_client.map)({
1333
+ $metadata: deserializeMetadata(output)
1334
+ });
1335
+ await (0, import_smithy_client.collectBody)(output.body, context);
1336
+ return contents;
1337
+ }, "de_TagResourceCommand");
1338
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1339
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1340
+ return de_CommandError(output, context);
1341
+ }
1342
+ const contents = (0, import_smithy_client.map)({
1343
+ $metadata: deserializeMetadata(output)
1344
+ });
1345
+ await (0, import_smithy_client.collectBody)(output.body, context);
1346
+ return contents;
1347
+ }, "de_UntagResourceCommand");
1348
+ var de_UpdateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1349
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1350
+ return de_CommandError(output, context);
1351
+ }
1352
+ const contents = (0, import_smithy_client.map)({
1353
+ $metadata: deserializeMetadata(output)
1354
+ });
1355
+ await (0, import_smithy_client.collectBody)(output.body, context);
1356
+ return contents;
1357
+ }, "de_UpdateCaseCommand");
1358
+ var de_UpdateCaseCommentCommand = /* @__PURE__ */ __name(async (output, context) => {
1359
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1360
+ return de_CommandError(output, context);
1361
+ }
1362
+ const contents = (0, import_smithy_client.map)({
1363
+ $metadata: deserializeMetadata(output)
1364
+ });
1365
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1366
+ const doc = (0, import_smithy_client.take)(data, {
1367
+ body: import_smithy_client.expectString,
1368
+ commentId: import_smithy_client.expectString
1369
+ });
1370
+ Object.assign(contents, doc);
1371
+ return contents;
1372
+ }, "de_UpdateCaseCommentCommand");
1373
+ var de_UpdateCaseStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1374
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1375
+ return de_CommandError(output, context);
1376
+ }
1377
+ const contents = (0, import_smithy_client.map)({
1378
+ $metadata: deserializeMetadata(output)
1379
+ });
1380
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1381
+ const doc = (0, import_smithy_client.take)(data, {
1382
+ caseStatus: import_smithy_client.expectString
1383
+ });
1384
+ Object.assign(contents, doc);
1385
+ return contents;
1386
+ }, "de_UpdateCaseStatusCommand");
1387
+ var de_UpdateMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
1388
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1389
+ return de_CommandError(output, context);
1390
+ }
1391
+ const contents = (0, import_smithy_client.map)({
1392
+ $metadata: deserializeMetadata(output)
1393
+ });
1394
+ await (0, import_smithy_client.collectBody)(output.body, context);
1395
+ return contents;
1396
+ }, "de_UpdateMembershipCommand");
1397
+ var de_UpdateResolverTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1398
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1399
+ return de_CommandError(output, context);
1400
+ }
1401
+ const contents = (0, import_smithy_client.map)({
1402
+ $metadata: deserializeMetadata(output)
1403
+ });
1404
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1405
+ const doc = (0, import_smithy_client.take)(data, {
1406
+ caseId: import_smithy_client.expectString,
1407
+ caseStatus: import_smithy_client.expectString,
1408
+ resolverType: import_smithy_client.expectString
1409
+ });
1410
+ Object.assign(contents, doc);
1411
+ return contents;
1412
+ }, "de_UpdateResolverTypeCommand");
1413
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1414
+ const parsedOutput = {
1415
+ ...output,
1416
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1417
+ };
1418
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1419
+ switch (errorCode) {
1420
+ case "AccessDeniedException":
1421
+ case "com.amazonaws.securityir#AccessDeniedException":
1422
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1423
+ case "ConflictException":
1424
+ case "com.amazonaws.securityir#ConflictException":
1425
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1426
+ case "InternalServerException":
1427
+ case "com.amazonaws.securityir#InternalServerException":
1428
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1429
+ case "InvalidTokenException":
1430
+ case "com.amazonaws.securityir#InvalidTokenException":
1431
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
1432
+ case "ResourceNotFoundException":
1433
+ case "com.amazonaws.securityir#ResourceNotFoundException":
1434
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1435
+ case "SecurityIncidentResponseNotActiveException":
1436
+ case "com.amazonaws.securityir#SecurityIncidentResponseNotActiveException":
1437
+ throw await de_SecurityIncidentResponseNotActiveExceptionRes(parsedOutput, context);
1438
+ case "ServiceQuotaExceededException":
1439
+ case "com.amazonaws.securityir#ServiceQuotaExceededException":
1440
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1441
+ case "ThrottlingException":
1442
+ case "com.amazonaws.securityir#ThrottlingException":
1443
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1444
+ case "ValidationException":
1445
+ case "com.amazonaws.securityir#ValidationException":
1446
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1447
+ default:
1448
+ const parsedBody = parsedOutput.body;
1449
+ return throwDefaultError({
1450
+ output,
1451
+ parsedBody,
1452
+ errorCode
1453
+ });
1454
+ }
1455
+ }, "de_CommandError");
1456
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(SecurityIRServiceException);
1457
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1458
+ const contents = (0, import_smithy_client.map)({});
1459
+ const data = parsedOutput.body;
1460
+ const doc = (0, import_smithy_client.take)(data, {
1461
+ message: import_smithy_client.expectString
1462
+ });
1463
+ Object.assign(contents, doc);
1464
+ const exception = new AccessDeniedException({
1465
+ $metadata: deserializeMetadata(parsedOutput),
1466
+ ...contents
1467
+ });
1468
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1469
+ }, "de_AccessDeniedExceptionRes");
1470
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1471
+ const contents = (0, import_smithy_client.map)({});
1472
+ const data = parsedOutput.body;
1473
+ const doc = (0, import_smithy_client.take)(data, {
1474
+ message: import_smithy_client.expectString,
1475
+ resourceId: import_smithy_client.expectString,
1476
+ resourceType: import_smithy_client.expectString
1477
+ });
1478
+ Object.assign(contents, doc);
1479
+ const exception = new ConflictException({
1480
+ $metadata: deserializeMetadata(parsedOutput),
1481
+ ...contents
1482
+ });
1483
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1484
+ }, "de_ConflictExceptionRes");
1485
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1486
+ const contents = (0, import_smithy_client.map)({
1487
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1488
+ });
1489
+ const data = parsedOutput.body;
1490
+ const doc = (0, import_smithy_client.take)(data, {
1491
+ message: import_smithy_client.expectString
1492
+ });
1493
+ Object.assign(contents, doc);
1494
+ const exception = new InternalServerException({
1495
+ $metadata: deserializeMetadata(parsedOutput),
1496
+ ...contents
1497
+ });
1498
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1499
+ }, "de_InternalServerExceptionRes");
1500
+ var de_InvalidTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1501
+ const contents = (0, import_smithy_client.map)({});
1502
+ const data = parsedOutput.body;
1503
+ const doc = (0, import_smithy_client.take)(data, {
1504
+ message: import_smithy_client.expectString
1505
+ });
1506
+ Object.assign(contents, doc);
1507
+ const exception = new InvalidTokenException({
1508
+ $metadata: deserializeMetadata(parsedOutput),
1509
+ ...contents
1510
+ });
1511
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1512
+ }, "de_InvalidTokenExceptionRes");
1513
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1514
+ const contents = (0, import_smithy_client.map)({});
1515
+ const data = parsedOutput.body;
1516
+ const doc = (0, import_smithy_client.take)(data, {
1517
+ message: import_smithy_client.expectString
1518
+ });
1519
+ Object.assign(contents, doc);
1520
+ const exception = new ResourceNotFoundException({
1521
+ $metadata: deserializeMetadata(parsedOutput),
1522
+ ...contents
1523
+ });
1524
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1525
+ }, "de_ResourceNotFoundExceptionRes");
1526
+ var de_SecurityIncidentResponseNotActiveExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1527
+ const contents = (0, import_smithy_client.map)({});
1528
+ const data = parsedOutput.body;
1529
+ const doc = (0, import_smithy_client.take)(data, {
1530
+ message: import_smithy_client.expectString
1531
+ });
1532
+ Object.assign(contents, doc);
1533
+ const exception = new SecurityIncidentResponseNotActiveException({
1534
+ $metadata: deserializeMetadata(parsedOutput),
1535
+ ...contents
1536
+ });
1537
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1538
+ }, "de_SecurityIncidentResponseNotActiveExceptionRes");
1539
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1540
+ const contents = (0, import_smithy_client.map)({});
1541
+ const data = parsedOutput.body;
1542
+ const doc = (0, import_smithy_client.take)(data, {
1543
+ message: import_smithy_client.expectString,
1544
+ quotaCode: import_smithy_client.expectString,
1545
+ resourceId: import_smithy_client.expectString,
1546
+ resourceType: import_smithy_client.expectString,
1547
+ serviceCode: import_smithy_client.expectString
1548
+ });
1549
+ Object.assign(contents, doc);
1550
+ const exception = new ServiceQuotaExceededException({
1551
+ $metadata: deserializeMetadata(parsedOutput),
1552
+ ...contents
1553
+ });
1554
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1555
+ }, "de_ServiceQuotaExceededExceptionRes");
1556
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1557
+ const contents = (0, import_smithy_client.map)({
1558
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1559
+ });
1560
+ const data = parsedOutput.body;
1561
+ const doc = (0, import_smithy_client.take)(data, {
1562
+ message: import_smithy_client.expectString,
1563
+ quotaCode: import_smithy_client.expectString,
1564
+ serviceCode: import_smithy_client.expectString
1565
+ });
1566
+ Object.assign(contents, doc);
1567
+ const exception = new ThrottlingException({
1568
+ $metadata: deserializeMetadata(parsedOutput),
1569
+ ...contents
1570
+ });
1571
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1572
+ }, "de_ThrottlingExceptionRes");
1573
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1574
+ const contents = (0, import_smithy_client.map)({});
1575
+ const data = parsedOutput.body;
1576
+ const doc = (0, import_smithy_client.take)(data, {
1577
+ fieldList: import_smithy_client._json,
1578
+ message: import_smithy_client.expectString,
1579
+ reason: import_smithy_client.expectString
1580
+ });
1581
+ Object.assign(contents, doc);
1582
+ const exception = new ValidationException({
1583
+ $metadata: deserializeMetadata(parsedOutput),
1584
+ ...contents
1585
+ });
1586
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1587
+ }, "de_ValidationExceptionRes");
1588
+ var de_CaseAttachmentAttributes = /* @__PURE__ */ __name((output, context) => {
1589
+ return (0, import_smithy_client.take)(output, {
1590
+ attachmentId: import_smithy_client.expectString,
1591
+ attachmentStatus: import_smithy_client.expectString,
1592
+ createdDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdDate"),
1593
+ creator: import_smithy_client.expectString,
1594
+ fileName: import_smithy_client.expectString
1595
+ });
1596
+ }, "de_CaseAttachmentAttributes");
1597
+ var de_CaseAttachmentsList = /* @__PURE__ */ __name((output, context) => {
1598
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1599
+ return de_CaseAttachmentAttributes(entry, context);
1600
+ });
1601
+ return retVal;
1602
+ }, "de_CaseAttachmentsList");
1603
+ var de_CaseEditItem = /* @__PURE__ */ __name((output, context) => {
1604
+ return (0, import_smithy_client.take)(output, {
1605
+ action: import_smithy_client.expectString,
1606
+ eventTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "eventTimestamp"),
1607
+ message: import_smithy_client.expectString,
1608
+ principal: import_smithy_client.expectString
1609
+ });
1610
+ }, "de_CaseEditItem");
1611
+ var de_CaseEditItems = /* @__PURE__ */ __name((output, context) => {
1612
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1613
+ return de_CaseEditItem(entry, context);
1614
+ });
1615
+ return retVal;
1616
+ }, "de_CaseEditItems");
1617
+ var de_ListCasesItem = /* @__PURE__ */ __name((output, context) => {
1618
+ return (0, import_smithy_client.take)(output, {
1619
+ caseArn: import_smithy_client.expectString,
1620
+ caseId: import_smithy_client.expectString,
1621
+ caseStatus: import_smithy_client.expectString,
1622
+ closedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "closedDate"),
1623
+ createdDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdDate"),
1624
+ engagementType: import_smithy_client.expectString,
1625
+ lastUpdatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedDate"),
1626
+ pendingAction: import_smithy_client.expectString,
1627
+ resolverType: import_smithy_client.expectString,
1628
+ title: import_smithy_client.expectString
1629
+ });
1630
+ }, "de_ListCasesItem");
1631
+ var de_ListCasesItems = /* @__PURE__ */ __name((output, context) => {
1632
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1633
+ return de_ListCasesItem(entry, context);
1634
+ });
1635
+ return retVal;
1636
+ }, "de_ListCasesItems");
1637
+ var de_ListCommentsItem = /* @__PURE__ */ __name((output, context) => {
1638
+ return (0, import_smithy_client.take)(output, {
1639
+ body: import_smithy_client.expectString,
1640
+ commentId: import_smithy_client.expectString,
1641
+ createdDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdDate"),
1642
+ creator: import_smithy_client.expectString,
1643
+ lastUpdatedBy: import_smithy_client.expectString,
1644
+ lastUpdatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedDate")
1645
+ });
1646
+ }, "de_ListCommentsItem");
1647
+ var de_ListCommentsItems = /* @__PURE__ */ __name((output, context) => {
1648
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1649
+ return de_ListCommentsItem(entry, context);
1650
+ });
1651
+ return retVal;
1652
+ }, "de_ListCommentsItems");
1653
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1654
+ httpStatusCode: output.statusCode,
1655
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1656
+ extendedRequestId: output.headers["x-amz-id-2"],
1657
+ cfId: output.headers["x-amz-cf-id"]
1658
+ }), "deserializeMetadata");
1659
+ var _rAS = "retryAfterSeconds";
1660
+ var _ra = "retry-after";
1661
+ var _tK = "tagKeys";
1662
+
1663
+ // src/commands/BatchGetMemberAccountDetailsCommand.ts
1664
+ var BatchGetMemberAccountDetailsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1665
+ return [
1666
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1667
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1668
+ ];
1669
+ }).s("SecurityIncidentResponse", "BatchGetMemberAccountDetails", {}).n("SecurityIRClient", "BatchGetMemberAccountDetailsCommand").f(void 0, void 0).ser(se_BatchGetMemberAccountDetailsCommand).de(de_BatchGetMemberAccountDetailsCommand).build() {
1670
+ static {
1671
+ __name(this, "BatchGetMemberAccountDetailsCommand");
1672
+ }
1673
+ };
1674
+
1675
+ // src/commands/CancelMembershipCommand.ts
1676
+
1677
+
1678
+
1679
+ var CancelMembershipCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1680
+ return [
1681
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1682
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1683
+ ];
1684
+ }).s("SecurityIncidentResponse", "CancelMembership", {}).n("SecurityIRClient", "CancelMembershipCommand").f(void 0, void 0).ser(se_CancelMembershipCommand).de(de_CancelMembershipCommand).build() {
1685
+ static {
1686
+ __name(this, "CancelMembershipCommand");
1687
+ }
1688
+ };
1689
+
1690
+ // src/commands/CloseCaseCommand.ts
1691
+
1692
+
1693
+
1694
+ var CloseCaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1695
+ return [
1696
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1697
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1698
+ ];
1699
+ }).s("SecurityIncidentResponse", "CloseCase", {}).n("SecurityIRClient", "CloseCaseCommand").f(void 0, void 0).ser(se_CloseCaseCommand).de(de_CloseCaseCommand).build() {
1700
+ static {
1701
+ __name(this, "CloseCaseCommand");
1702
+ }
1703
+ };
1704
+
1705
+ // src/commands/CreateCaseCommand.ts
1706
+
1707
+
1708
+
1709
+ var CreateCaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1710
+ return [
1711
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1712
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1713
+ ];
1714
+ }).s("SecurityIncidentResponse", "CreateCase", {}).n("SecurityIRClient", "CreateCaseCommand").f(CreateCaseRequestFilterSensitiveLog, void 0).ser(se_CreateCaseCommand).de(de_CreateCaseCommand).build() {
1715
+ static {
1716
+ __name(this, "CreateCaseCommand");
1717
+ }
1718
+ };
1719
+
1720
+ // src/commands/CreateCaseCommentCommand.ts
1721
+
1722
+
1723
+
1724
+ var CreateCaseCommentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1725
+ return [
1726
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1727
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1728
+ ];
1729
+ }).s("SecurityIncidentResponse", "CreateCaseComment", {}).n("SecurityIRClient", "CreateCaseCommentCommand").f(CreateCaseCommentRequestFilterSensitiveLog, void 0).ser(se_CreateCaseCommentCommand).de(de_CreateCaseCommentCommand).build() {
1730
+ static {
1731
+ __name(this, "CreateCaseCommentCommand");
1732
+ }
1733
+ };
1734
+
1735
+ // src/commands/CreateMembershipCommand.ts
1736
+
1737
+
1738
+
1739
+ var CreateMembershipCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1740
+ return [
1741
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1742
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1743
+ ];
1744
+ }).s("SecurityIncidentResponse", "CreateMembership", {}).n("SecurityIRClient", "CreateMembershipCommand").f(CreateMembershipRequestFilterSensitiveLog, void 0).ser(se_CreateMembershipCommand).de(de_CreateMembershipCommand).build() {
1745
+ static {
1746
+ __name(this, "CreateMembershipCommand");
1747
+ }
1748
+ };
1749
+
1750
+ // src/commands/GetCaseAttachmentDownloadUrlCommand.ts
1751
+
1752
+
1753
+
1754
+ var GetCaseAttachmentDownloadUrlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1755
+ return [
1756
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1757
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1758
+ ];
1759
+ }).s("SecurityIncidentResponse", "GetCaseAttachmentDownloadUrl", {}).n("SecurityIRClient", "GetCaseAttachmentDownloadUrlCommand").f(void 0, GetCaseAttachmentDownloadUrlResponseFilterSensitiveLog).ser(se_GetCaseAttachmentDownloadUrlCommand).de(de_GetCaseAttachmentDownloadUrlCommand).build() {
1760
+ static {
1761
+ __name(this, "GetCaseAttachmentDownloadUrlCommand");
1762
+ }
1763
+ };
1764
+
1765
+ // src/commands/GetCaseAttachmentUploadUrlCommand.ts
1766
+
1767
+
1768
+
1769
+ var GetCaseAttachmentUploadUrlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1770
+ return [
1771
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1772
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1773
+ ];
1774
+ }).s("SecurityIncidentResponse", "GetCaseAttachmentUploadUrl", {}).n("SecurityIRClient", "GetCaseAttachmentUploadUrlCommand").f(GetCaseAttachmentUploadUrlRequestFilterSensitiveLog, GetCaseAttachmentUploadUrlResponseFilterSensitiveLog).ser(se_GetCaseAttachmentUploadUrlCommand).de(de_GetCaseAttachmentUploadUrlCommand).build() {
1775
+ static {
1776
+ __name(this, "GetCaseAttachmentUploadUrlCommand");
1777
+ }
1778
+ };
1779
+
1780
+ // src/commands/GetCaseCommand.ts
1781
+
1782
+
1783
+
1784
+ var GetCaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1785
+ return [
1786
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1787
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1788
+ ];
1789
+ }).s("SecurityIncidentResponse", "GetCase", {}).n("SecurityIRClient", "GetCaseCommand").f(void 0, GetCaseResponseFilterSensitiveLog).ser(se_GetCaseCommand).de(de_GetCaseCommand).build() {
1790
+ static {
1791
+ __name(this, "GetCaseCommand");
1792
+ }
1793
+ };
1794
+
1795
+ // src/commands/GetMembershipCommand.ts
1796
+
1797
+
1798
+
1799
+ var GetMembershipCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1800
+ return [
1801
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1802
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1803
+ ];
1804
+ }).s("SecurityIncidentResponse", "GetMembership", {}).n("SecurityIRClient", "GetMembershipCommand").f(void 0, GetMembershipResponseFilterSensitiveLog).ser(se_GetMembershipCommand).de(de_GetMembershipCommand).build() {
1805
+ static {
1806
+ __name(this, "GetMembershipCommand");
1807
+ }
1808
+ };
1809
+
1810
+ // src/commands/ListCaseEditsCommand.ts
1811
+
1812
+
1813
+
1814
+ var ListCaseEditsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1815
+ return [
1816
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1817
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1818
+ ];
1819
+ }).s("SecurityIncidentResponse", "ListCaseEdits", {}).n("SecurityIRClient", "ListCaseEditsCommand").f(void 0, void 0).ser(se_ListCaseEditsCommand).de(de_ListCaseEditsCommand).build() {
1820
+ static {
1821
+ __name(this, "ListCaseEditsCommand");
1822
+ }
1823
+ };
1824
+
1825
+ // src/commands/ListCasesCommand.ts
1826
+
1827
+
1828
+
1829
+ var ListCasesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1830
+ return [
1831
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1832
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1833
+ ];
1834
+ }).s("SecurityIncidentResponse", "ListCases", {}).n("SecurityIRClient", "ListCasesCommand").f(void 0, ListCasesResponseFilterSensitiveLog).ser(se_ListCasesCommand).de(de_ListCasesCommand).build() {
1835
+ static {
1836
+ __name(this, "ListCasesCommand");
1837
+ }
1838
+ };
1839
+
1840
+ // src/commands/ListCommentsCommand.ts
1841
+
1842
+
1843
+
1844
+ var ListCommentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1845
+ return [
1846
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1847
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1848
+ ];
1849
+ }).s("SecurityIncidentResponse", "ListComments", {}).n("SecurityIRClient", "ListCommentsCommand").f(void 0, ListCommentsResponseFilterSensitiveLog).ser(se_ListCommentsCommand).de(de_ListCommentsCommand).build() {
1850
+ static {
1851
+ __name(this, "ListCommentsCommand");
1852
+ }
1853
+ };
1854
+
1855
+ // src/commands/ListMembershipsCommand.ts
1856
+
1857
+
1858
+
1859
+ var ListMembershipsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1860
+ return [
1861
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1862
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1863
+ ];
1864
+ }).s("SecurityIncidentResponse", "ListMemberships", {}).n("SecurityIRClient", "ListMembershipsCommand").f(void 0, void 0).ser(se_ListMembershipsCommand).de(de_ListMembershipsCommand).build() {
1865
+ static {
1866
+ __name(this, "ListMembershipsCommand");
1867
+ }
1868
+ };
1869
+
1870
+ // src/commands/ListTagsForResourceCommand.ts
1871
+
1872
+
1873
+
1874
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1875
+ return [
1876
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1877
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1878
+ ];
1879
+ }).s("SecurityIncidentResponse", "ListTagsForResource", {}).n("SecurityIRClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1880
+ static {
1881
+ __name(this, "ListTagsForResourceCommand");
1882
+ }
1883
+ };
1884
+
1885
+ // src/commands/TagResourceCommand.ts
1886
+
1887
+
1888
+
1889
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1890
+ return [
1891
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1892
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1893
+ ];
1894
+ }).s("SecurityIncidentResponse", "TagResource", {}).n("SecurityIRClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1895
+ static {
1896
+ __name(this, "TagResourceCommand");
1897
+ }
1898
+ };
1899
+
1900
+ // src/commands/UntagResourceCommand.ts
1901
+
1902
+
1903
+
1904
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1905
+ return [
1906
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1907
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1908
+ ];
1909
+ }).s("SecurityIncidentResponse", "UntagResource", {}).n("SecurityIRClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1910
+ static {
1911
+ __name(this, "UntagResourceCommand");
1912
+ }
1913
+ };
1914
+
1915
+ // src/commands/UpdateCaseCommand.ts
1916
+
1917
+
1918
+
1919
+ var UpdateCaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1920
+ return [
1921
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1922
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1923
+ ];
1924
+ }).s("SecurityIncidentResponse", "UpdateCase", {}).n("SecurityIRClient", "UpdateCaseCommand").f(UpdateCaseRequestFilterSensitiveLog, void 0).ser(se_UpdateCaseCommand).de(de_UpdateCaseCommand).build() {
1925
+ static {
1926
+ __name(this, "UpdateCaseCommand");
1927
+ }
1928
+ };
1929
+
1930
+ // src/commands/UpdateCaseCommentCommand.ts
1931
+
1932
+
1933
+
1934
+ var UpdateCaseCommentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1935
+ return [
1936
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1937
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1938
+ ];
1939
+ }).s("SecurityIncidentResponse", "UpdateCaseComment", {}).n("SecurityIRClient", "UpdateCaseCommentCommand").f(UpdateCaseCommentRequestFilterSensitiveLog, UpdateCaseCommentResponseFilterSensitiveLog).ser(se_UpdateCaseCommentCommand).de(de_UpdateCaseCommentCommand).build() {
1940
+ static {
1941
+ __name(this, "UpdateCaseCommentCommand");
1942
+ }
1943
+ };
1944
+
1945
+ // src/commands/UpdateCaseStatusCommand.ts
1946
+
1947
+
1948
+
1949
+ var UpdateCaseStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1950
+ return [
1951
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1952
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1953
+ ];
1954
+ }).s("SecurityIncidentResponse", "UpdateCaseStatus", {}).n("SecurityIRClient", "UpdateCaseStatusCommand").f(void 0, void 0).ser(se_UpdateCaseStatusCommand).de(de_UpdateCaseStatusCommand).build() {
1955
+ static {
1956
+ __name(this, "UpdateCaseStatusCommand");
1957
+ }
1958
+ };
1959
+
1960
+ // src/commands/UpdateMembershipCommand.ts
1961
+
1962
+
1963
+
1964
+ var UpdateMembershipCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1965
+ return [
1966
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1967
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1968
+ ];
1969
+ }).s("SecurityIncidentResponse", "UpdateMembership", {}).n("SecurityIRClient", "UpdateMembershipCommand").f(UpdateMembershipRequestFilterSensitiveLog, void 0).ser(se_UpdateMembershipCommand).de(de_UpdateMembershipCommand).build() {
1970
+ static {
1971
+ __name(this, "UpdateMembershipCommand");
1972
+ }
1973
+ };
1974
+
1975
+ // src/commands/UpdateResolverTypeCommand.ts
1976
+
1977
+
1978
+
1979
+ var UpdateResolverTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1980
+ return [
1981
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1982
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1983
+ ];
1984
+ }).s("SecurityIncidentResponse", "UpdateResolverType", {}).n("SecurityIRClient", "UpdateResolverTypeCommand").f(void 0, void 0).ser(se_UpdateResolverTypeCommand).de(de_UpdateResolverTypeCommand).build() {
1985
+ static {
1986
+ __name(this, "UpdateResolverTypeCommand");
1987
+ }
1988
+ };
1989
+
1990
+ // src/SecurityIR.ts
1991
+ var commands = {
1992
+ BatchGetMemberAccountDetailsCommand,
1993
+ CancelMembershipCommand,
1994
+ CloseCaseCommand,
1995
+ CreateCaseCommand,
1996
+ CreateCaseCommentCommand,
1997
+ CreateMembershipCommand,
1998
+ GetCaseCommand,
1999
+ GetCaseAttachmentDownloadUrlCommand,
2000
+ GetCaseAttachmentUploadUrlCommand,
2001
+ GetMembershipCommand,
2002
+ ListCaseEditsCommand,
2003
+ ListCasesCommand,
2004
+ ListCommentsCommand,
2005
+ ListMembershipsCommand,
2006
+ ListTagsForResourceCommand,
2007
+ TagResourceCommand,
2008
+ UntagResourceCommand,
2009
+ UpdateCaseCommand,
2010
+ UpdateCaseCommentCommand,
2011
+ UpdateCaseStatusCommand,
2012
+ UpdateMembershipCommand,
2013
+ UpdateResolverTypeCommand
2014
+ };
2015
+ var SecurityIR = class extends SecurityIRClient {
2016
+ static {
2017
+ __name(this, "SecurityIR");
2018
+ }
2019
+ };
2020
+ (0, import_smithy_client.createAggregatedClient)(commands, SecurityIR);
2021
+
2022
+ // src/pagination/ListCaseEditsPaginator.ts
2023
+
2024
+ var paginateListCaseEdits = (0, import_core.createPaginator)(SecurityIRClient, ListCaseEditsCommand, "nextToken", "nextToken", "maxResults");
2025
+
2026
+ // src/pagination/ListCasesPaginator.ts
2027
+
2028
+ var paginateListCases = (0, import_core.createPaginator)(SecurityIRClient, ListCasesCommand, "nextToken", "nextToken", "maxResults");
2029
+
2030
+ // src/pagination/ListCommentsPaginator.ts
2031
+
2032
+ var paginateListComments = (0, import_core.createPaginator)(SecurityIRClient, ListCommentsCommand, "nextToken", "nextToken", "maxResults");
2033
+
2034
+ // src/pagination/ListMembershipsPaginator.ts
2035
+
2036
+ var paginateListMemberships = (0, import_core.createPaginator)(SecurityIRClient, ListMembershipsCommand, "nextToken", "nextToken", "maxResults");
2037
+ // Annotate the CommonJS export names for ESM import in node:
2038
+
2039
+ 0 && (module.exports = {
2040
+ SecurityIRServiceException,
2041
+ __Client,
2042
+ SecurityIRClient,
2043
+ SecurityIR,
2044
+ $Command,
2045
+ BatchGetMemberAccountDetailsCommand,
2046
+ CancelMembershipCommand,
2047
+ CloseCaseCommand,
2048
+ CreateCaseCommand,
2049
+ CreateCaseCommentCommand,
2050
+ CreateMembershipCommand,
2051
+ GetCaseAttachmentDownloadUrlCommand,
2052
+ GetCaseAttachmentUploadUrlCommand,
2053
+ GetCaseCommand,
2054
+ GetMembershipCommand,
2055
+ ListCaseEditsCommand,
2056
+ ListCasesCommand,
2057
+ ListCommentsCommand,
2058
+ ListMembershipsCommand,
2059
+ ListTagsForResourceCommand,
2060
+ TagResourceCommand,
2061
+ UntagResourceCommand,
2062
+ UpdateCaseCommand,
2063
+ UpdateCaseCommentCommand,
2064
+ UpdateCaseStatusCommand,
2065
+ UpdateMembershipCommand,
2066
+ UpdateResolverTypeCommand,
2067
+ paginateListCaseEdits,
2068
+ paginateListCases,
2069
+ paginateListComments,
2070
+ paginateListMemberships,
2071
+ AccessDeniedException,
2072
+ AwsRegion,
2073
+ MembershipAccountRelationshipStatus,
2074
+ MembershipAccountRelationshipType,
2075
+ ConflictException,
2076
+ InternalServerException,
2077
+ InvalidTokenException,
2078
+ ResourceNotFoundException,
2079
+ SecurityIncidentResponseNotActiveException,
2080
+ ServiceQuotaExceededException,
2081
+ ThrottlingException,
2082
+ ValidationExceptionReason,
2083
+ ValidationException,
2084
+ CaseStatus,
2085
+ EngagementType,
2086
+ ResolverType,
2087
+ CaseAttachmentStatus,
2088
+ ClosureCode,
2089
+ PendingAction,
2090
+ SelfManagedCaseStatus,
2091
+ OptInFeatureName,
2092
+ CustomerType,
2093
+ MembershipStatus,
2094
+ ThreatActorIpFilterSensitiveLog,
2095
+ WatcherFilterSensitiveLog,
2096
+ CreateCaseRequestFilterSensitiveLog,
2097
+ CreateCaseCommentRequestFilterSensitiveLog,
2098
+ CaseAttachmentAttributesFilterSensitiveLog,
2099
+ GetCaseResponseFilterSensitiveLog,
2100
+ GetCaseAttachmentDownloadUrlResponseFilterSensitiveLog,
2101
+ GetCaseAttachmentUploadUrlRequestFilterSensitiveLog,
2102
+ GetCaseAttachmentUploadUrlResponseFilterSensitiveLog,
2103
+ ListCasesItemFilterSensitiveLog,
2104
+ ListCasesResponseFilterSensitiveLog,
2105
+ ListCommentsItemFilterSensitiveLog,
2106
+ ListCommentsResponseFilterSensitiveLog,
2107
+ UpdateCaseRequestFilterSensitiveLog,
2108
+ UpdateCaseCommentRequestFilterSensitiveLog,
2109
+ UpdateCaseCommentResponseFilterSensitiveLog,
2110
+ IncidentResponderFilterSensitiveLog,
2111
+ CreateMembershipRequestFilterSensitiveLog,
2112
+ GetMembershipResponseFilterSensitiveLog,
2113
+ UpdateMembershipRequestFilterSensitiveLog
2114
+ });
2115
+