File Explorer

/var/runtime/node_modules/@aws-sdk/client-detective/dist-cjs

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

2 dirs
3 files
index.js89.0 KB · 2248 lines
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => {  for (var name in all)    __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => {  if (from && typeof from === "object" || typeof from === "function") {    for (let key of __getOwnPropNames(from))      if (!__hasOwnProp.call(to, key) && key !== except)        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });  }  return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, {  AcceptInvitationCommand: () => AcceptInvitationCommand,  AccessDeniedException: () => AccessDeniedException,  AccountFilterSensitiveLog: () => AccountFilterSensitiveLog,  BatchGetGraphMemberDatasourcesCommand: () => BatchGetGraphMemberDatasourcesCommand,  BatchGetMembershipDatasourcesCommand: () => BatchGetMembershipDatasourcesCommand,  ConflictException: () => ConflictException,  CreateGraphCommand: () => CreateGraphCommand,  CreateMembersCommand: () => CreateMembersCommand,  CreateMembersRequestFilterSensitiveLog: () => CreateMembersRequestFilterSensitiveLog,  CreateMembersResponseFilterSensitiveLog: () => CreateMembersResponseFilterSensitiveLog,  DatasourcePackage: () => DatasourcePackage,  DatasourcePackageIngestState: () => DatasourcePackageIngestState,  DeleteGraphCommand: () => DeleteGraphCommand,  DeleteMembersCommand: () => DeleteMembersCommand,  DescribeOrganizationConfigurationCommand: () => DescribeOrganizationConfigurationCommand,  Detective: () => Detective,  DetectiveClient: () => DetectiveClient,  DetectiveServiceException: () => DetectiveServiceException,  DisableOrganizationAdminAccountCommand: () => DisableOrganizationAdminAccountCommand,  DisassociateMembershipCommand: () => DisassociateMembershipCommand,  EnableOrganizationAdminAccountCommand: () => EnableOrganizationAdminAccountCommand,  EntityType: () => EntityType,  ErrorCode: () => ErrorCode,  Field: () => Field,  GetInvestigationCommand: () => GetInvestigationCommand,  GetMembersCommand: () => GetMembersCommand,  GetMembersResponseFilterSensitiveLog: () => GetMembersResponseFilterSensitiveLog,  IndicatorType: () => IndicatorType,  InternalServerException: () => InternalServerException,  InvitationType: () => InvitationType,  ListDatasourcePackagesCommand: () => ListDatasourcePackagesCommand,  ListGraphsCommand: () => ListGraphsCommand,  ListIndicatorsCommand: () => ListIndicatorsCommand,  ListInvestigationsCommand: () => ListInvestigationsCommand,  ListInvitationsCommand: () => ListInvitationsCommand,  ListInvitationsResponseFilterSensitiveLog: () => ListInvitationsResponseFilterSensitiveLog,  ListMembersCommand: () => ListMembersCommand,  ListMembersResponseFilterSensitiveLog: () => ListMembersResponseFilterSensitiveLog,  ListOrganizationAdminAccountsCommand: () => ListOrganizationAdminAccountsCommand,  ListTagsForResourceCommand: () => ListTagsForResourceCommand,  MemberDetailFilterSensitiveLog: () => MemberDetailFilterSensitiveLog,  MemberDisabledReason: () => MemberDisabledReason,  MemberStatus: () => MemberStatus,  Reason: () => Reason,  RejectInvitationCommand: () => RejectInvitationCommand,  ResourceNotFoundException: () => ResourceNotFoundException,  ServiceQuotaExceededException: () => ServiceQuotaExceededException,  Severity: () => Severity,  SortOrder: () => SortOrder,  StartInvestigationCommand: () => StartInvestigationCommand,  StartMonitoringMemberCommand: () => StartMonitoringMemberCommand,  State: () => State,  Status: () => Status,  TagResourceCommand: () => TagResourceCommand,  TooManyRequestsException: () => TooManyRequestsException,  UntagResourceCommand: () => UntagResourceCommand,  UpdateDatasourcePackagesCommand: () => UpdateDatasourcePackagesCommand,  UpdateInvestigationStateCommand: () => UpdateInvestigationStateCommand,  UpdateOrganizationConfigurationCommand: () => UpdateOrganizationConfigurationCommand,  ValidationException: () => ValidationException,  __Client: () => import_smithy_client.Client,  paginateListDatasourcePackages: () => paginateListDatasourcePackages,  paginateListGraphs: () => paginateListGraphs,  paginateListInvitations: () => paginateListInvitations,  paginateListMembers: () => paginateListMembers,  paginateListOrganizationAdminAccounts: () => paginateListOrganizationAdminAccounts});module.exports = __toCommonJS(index_exports); // src/DetectiveClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {  return Object.assign(options, {    useDualstackEndpoint: options.useDualstackEndpoint ?? false,    useFipsEndpoint: options.useFipsEndpoint ?? false,    defaultSigningName: "detective"  });}, "resolveClientEndpointParameters");var commonParams = {  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },  Endpoint: { type: "builtInParams", name: "endpoint" },  Region: { type: "builtInParams", name: "region" },  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/DetectiveClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;  let _credentials = runtimeConfig.credentials;  return {    setHttpAuthScheme(httpAuthScheme) {      const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);      if (index === -1) {        _httpAuthSchemes.push(httpAuthScheme);      } else {        _httpAuthSchemes.splice(index, 1, httpAuthScheme);      }    },    httpAuthSchemes() {      return _httpAuthSchemes;    },    setHttpAuthSchemeProvider(httpAuthSchemeProvider) {      _httpAuthSchemeProvider = httpAuthSchemeProvider;    },    httpAuthSchemeProvider() {      return _httpAuthSchemeProvider;    },    setCredentials(credentials) {      _credentials = credentials;    },    credentials() {      return _credentials;    }  };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {  return {    httpAuthSchemes: config.httpAuthSchemes(),    httpAuthSchemeProvider: config.httpAuthSchemeProvider(),    credentials: config.credentials()  };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {  const extensionConfiguration = Object.assign(    (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),    (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),    (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),    getHttpAuthExtensionConfiguration(runtimeConfig)  );  extensions.forEach((extension) => extension.configure(extensionConfiguration));  return Object.assign(    runtimeConfig,    (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),    (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),    (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),    resolveHttpAuthRuntimeConfig(extensionConfiguration)  );}, "resolveRuntimeExtensions"); // src/DetectiveClient.tsvar DetectiveClient = class extends import_smithy_client.Client {  static {    __name(this, "DetectiveClient");  }  /**   * The resolved configuration of DetectiveClient class. This is resolved and normalized from the {@link DetectiveClientConfig | constructor configuration interface}.   */  config;  constructor(...[configuration]) {    const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});    super(_config_0);    this.initConfig = _config_0;    const _config_1 = resolveClientEndpointParameters(_config_0);    const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);    const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);    const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);    const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);    const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);    const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);    const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);    this.config = _config_8;    this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));    this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));    this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));    this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));    this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));    this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));    this.middlewareStack.use(      (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {        httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDetectiveHttpAuthSchemeParametersProvider,        identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({          "aws.auth#sigv4": config.credentials        }), "identityProviderConfigProvider")      })    );    this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));  }  /**   * Destroy underlying resources, like sockets. It's usually not necessary to do this.   * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.   * Otherwise, sockets might stay open for quite a long time before the server terminates them.   */  destroy() {    super.destroy();  }}; // src/Detective.ts  // src/commands/AcceptInvitationCommand.ts var import_middleware_serde = require("@smithy/middleware-serde");  // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core");   // src/models/DetectiveServiceException.ts var DetectiveServiceException = class _DetectiveServiceException extends import_smithy_client.ServiceException {  static {    __name(this, "DetectiveServiceException");  }  /**   * @internal   */  constructor(options) {    super(options);    Object.setPrototypeOf(this, _DetectiveServiceException.prototype);  }}; // src/models/models_0.ts var ErrorCode = {  InternalError: "INTERNAL_ERROR",  InvalidGraphArn: "INVALID_GRAPH_ARN",  InvalidRequestBody: "INVALID_REQUEST_BODY"};var AccessDeniedException = class _AccessDeniedException extends DetectiveServiceException {  static {    __name(this, "AccessDeniedException");  }  name = "AccessDeniedException";  $fault = "client";  Message;  /**   * <p>The SDK default error code associated with the access denied exception.</p>   * @public   */  ErrorCode;  /**   * <p>The SDK default explanation of why access was denied.</p>   * @public   */  ErrorCodeReason;  /**   * <p>The error code associated with the access denied exception.</p>   * @public   */  SubErrorCode;  /**   * <p> An explanation of why access was denied.</p>   * @public   */  SubErrorCodeReason;  /**   * @internal   */  constructor(opts) {    super({      name: "AccessDeniedException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _AccessDeniedException.prototype);    this.Message = opts.Message;    this.ErrorCode = opts.ErrorCode;    this.ErrorCodeReason = opts.ErrorCodeReason;    this.SubErrorCode = opts.SubErrorCode;    this.SubErrorCodeReason = opts.SubErrorCodeReason;  }};var ConflictException = class _ConflictException extends DetectiveServiceException {  static {    __name(this, "ConflictException");  }  name = "ConflictException";  $fault = "client";  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "ConflictException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ConflictException.prototype);    this.Message = opts.Message;  }};var InternalServerException = class _InternalServerException extends DetectiveServiceException {  static {    __name(this, "InternalServerException");  }  name = "InternalServerException";  $fault = "server";  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "InternalServerException",      $fault: "server",      ...opts    });    Object.setPrototypeOf(this, _InternalServerException.prototype);    this.Message = opts.Message;  }};var ResourceNotFoundException = class _ResourceNotFoundException extends DetectiveServiceException {  static {    __name(this, "ResourceNotFoundException");  }  name = "ResourceNotFoundException";  $fault = "client";  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "ResourceNotFoundException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);    this.Message = opts.Message;  }};var ValidationException = class _ValidationException extends DetectiveServiceException {  static {    __name(this, "ValidationException");  }  name = "ValidationException";  $fault = "client";  Message;  /**   * <p>The error code associated with the validation failure.</p>   * @public   */  ErrorCode;  /**   * <p> An explanation of why validation failed.</p>   * @public   */  ErrorCodeReason;  /**   * @internal   */  constructor(opts) {    super({      name: "ValidationException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ValidationException.prototype);    this.Message = opts.Message;    this.ErrorCode = opts.ErrorCode;    this.ErrorCodeReason = opts.ErrorCodeReason;  }};var DatasourcePackage = {  ASFF_SECURITYHUB_FINDING: "ASFF_SECURITYHUB_FINDING",  DETECTIVE_CORE: "DETECTIVE_CORE",  EKS_AUDIT: "EKS_AUDIT"};var DatasourcePackageIngestState = {  DISABLED: "DISABLED",  STARTED: "STARTED",  STOPPED: "STOPPED"};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends DetectiveServiceException {  static {    __name(this, "ServiceQuotaExceededException");  }  name = "ServiceQuotaExceededException";  $fault = "client";  Message;  /**   * <p>The type of resource that has exceeded the service quota.</p>   * @public   */  Resources;  /**   * @internal   */  constructor(opts) {    super({      name: "ServiceQuotaExceededException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);    this.Message = opts.Message;    this.Resources = opts.Resources;  }};var MemberDisabledReason = {  VOLUME_TOO_HIGH: "VOLUME_TOO_HIGH",  VOLUME_UNKNOWN: "VOLUME_UNKNOWN"};var InvitationType = {  INVITATION: "INVITATION",  ORGANIZATION: "ORGANIZATION"};var MemberStatus = {  ACCEPTED_BUT_DISABLED: "ACCEPTED_BUT_DISABLED",  ENABLED: "ENABLED",  INVITED: "INVITED",  VERIFICATION_FAILED: "VERIFICATION_FAILED",  VERIFICATION_IN_PROGRESS: "VERIFICATION_IN_PROGRESS"};var TooManyRequestsException = class _TooManyRequestsException extends DetectiveServiceException {  static {    __name(this, "TooManyRequestsException");  }  name = "TooManyRequestsException";  $fault = "client";  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "TooManyRequestsException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _TooManyRequestsException.prototype);    this.Message = opts.Message;  }};var EntityType = {  IAM_ROLE: "IAM_ROLE",  IAM_USER: "IAM_USER"};var Severity = {  CRITICAL: "CRITICAL",  HIGH: "HIGH",  INFORMATIONAL: "INFORMATIONAL",  LOW: "LOW",  MEDIUM: "MEDIUM"};var State = {  ACTIVE: "ACTIVE",  ARCHIVED: "ARCHIVED"};var Status = {  FAILED: "FAILED",  RUNNING: "RUNNING",  SUCCESSFUL: "SUCCESSFUL"};var IndicatorType = {  FLAGGED_IP_ADDRESS: "FLAGGED_IP_ADDRESS",  IMPOSSIBLE_TRAVEL: "IMPOSSIBLE_TRAVEL",  NEW_ASO: "NEW_ASO",  NEW_GEOLOCATION: "NEW_GEOLOCATION",  NEW_USER_AGENT: "NEW_USER_AGENT",  RELATED_FINDING: "RELATED_FINDING",  RELATED_FINDING_GROUP: "RELATED_FINDING_GROUP",  TTP_OBSERVED: "TTP_OBSERVED"};var Reason = {  AWS_THREAT_INTELLIGENCE: "AWS_THREAT_INTELLIGENCE"};var Field = {  CREATED_TIME: "CREATED_TIME",  SEVERITY: "SEVERITY",  STATUS: "STATUS"};var SortOrder = {  ASC: "ASC",  DESC: "DESC"};var AccountFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING }}), "AccountFilterSensitiveLog");var CreateMembersRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.Message && { Message: import_smithy_client.SENSITIVE_STRING },  ...obj.Accounts && { Accounts: obj.Accounts.map((item) => AccountFilterSensitiveLog(item)) }}), "CreateMembersRequestFilterSensitiveLog");var MemberDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING }}), "MemberDetailFilterSensitiveLog");var CreateMembersResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.Members && { Members: obj.Members.map((item) => MemberDetailFilterSensitiveLog(item)) }}), "CreateMembersResponseFilterSensitiveLog");var GetMembersResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.MemberDetails && { MemberDetails: obj.MemberDetails.map((item) => MemberDetailFilterSensitiveLog(item)) }}), "GetMembersResponseFilterSensitiveLog");var ListInvitationsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.Invitations && { Invitations: obj.Invitations.map((item) => MemberDetailFilterSensitiveLog(item)) }}), "ListInvitationsResponseFilterSensitiveLog");var ListMembersResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.MemberDetails && { MemberDetails: obj.MemberDetails.map((item) => MemberDetailFilterSensitiveLog(item)) }}), "ListMembersResponseFilterSensitiveLog"); // src/protocols/Aws_restJson1.tsvar se_AcceptInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/invitation");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_AcceptInvitationCommand");var se_BatchGetGraphMemberDatasourcesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/datasources/get");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      AccountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AccountIds"),      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_BatchGetGraphMemberDatasourcesCommand");var se_BatchGetMembershipDatasourcesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/membership/datasources/get");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArns: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "GraphArns")    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_BatchGetMembershipDatasourcesCommand");var se_CreateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CreateGraphCommand");var se_CreateMembersCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/members");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      Accounts: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Accounts"),      DisableEmailNotification: [],      GraphArn: [],      Message: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CreateMembersCommand");var se_DeleteGraphCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/removal");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_DeleteGraphCommand");var se_DeleteMembersCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/members/removal");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      AccountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AccountIds"),      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_DeleteMembersCommand");var se_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/orgs/describeOrganizationConfiguration");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_DescribeOrganizationConfigurationCommand");var se_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/orgs/disableAdminAccount");  let body;  b.m("POST").h(headers).b(body);  return b.build();}, "se_DisableOrganizationAdminAccountCommand");var se_DisassociateMembershipCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/membership/removal");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_DisassociateMembershipCommand");var se_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/orgs/enableAdminAccount");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      AccountId: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_EnableOrganizationAdminAccountCommand");var se_GetInvestigationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/investigations/getInvestigation");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: [],      InvestigationId: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_GetInvestigationCommand");var se_GetMembersCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/members/get");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      AccountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AccountIds"),      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_GetMembersCommand");var se_ListDatasourcePackagesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/datasources/list");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: [],      MaxResults: [],      NextToken: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListDatasourcePackagesCommand");var se_ListGraphsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graphs/list");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      MaxResults: [],      NextToken: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListGraphsCommand");var se_ListIndicatorsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/investigations/listIndicators");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: [],      IndicatorType: [],      InvestigationId: [],      MaxResults: [],      NextToken: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListIndicatorsCommand");var se_ListInvestigationsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/investigations/listInvestigations");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      FilterCriteria: /* @__PURE__ */ __name((_) => se_FilterCriteria(_, context), "FilterCriteria"),      GraphArn: [],      MaxResults: [],      NextToken: [],      SortCriteria: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "SortCriteria")    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListInvestigationsCommand");var se_ListInvitationsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/invitations/list");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      MaxResults: [],      NextToken: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListInvitationsCommand");var se_ListMembersCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/members/list");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: [],      MaxResults: [],      NextToken: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListMembersCommand");var se_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/orgs/adminAccountslist");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      MaxResults: [],      NextToken: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListOrganizationAdminAccountsCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/tags/{ResourceArn}");  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_ListTagsForResourceCommand");var se_RejectInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/invitation/removal");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_RejectInvitationCommand");var se_StartInvestigationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/investigations/startInvestigation");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      EntityArn: [],      GraphArn: [],      ScopeEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "ScopeEndTime"),      ScopeStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "ScopeStartTime")    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_StartInvestigationCommand");var se_StartMonitoringMemberCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/member/monitoringstate");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      AccountId: [],      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_StartMonitoringMemberCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/tags/{ResourceArn}");  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/tags/{ResourceArn}");  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);  const query = (0, import_smithy_client.map)({    [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]  });  let body;  b.m("DELETE").h(headers).q(query).b(body);  return b.build();}, "se_UntagResourceCommand");var se_UpdateDatasourcePackagesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/graph/datasources/update");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      DatasourcePackages: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "DatasourcePackages"),      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_UpdateDatasourcePackagesCommand");var se_UpdateInvestigationStateCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/investigations/updateInvestigationState");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      GraphArn: [],      InvestigationId: [],      State: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_UpdateInvestigationStateCommand");var se_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/orgs/updateOrganizationConfiguration");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      AutoEnable: [],      GraphArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_UpdateOrganizationConfigurationCommand");var de_AcceptInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_AcceptInvitationCommand");var de_BatchGetGraphMemberDatasourcesCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    MemberDatasources: /* @__PURE__ */ __name((_) => de_MembershipDatasourcesList(_, context), "MemberDatasources"),    UnprocessedAccounts: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_BatchGetGraphMemberDatasourcesCommand");var de_BatchGetMembershipDatasourcesCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    MembershipDatasources: /* @__PURE__ */ __name((_) => de_MembershipDatasourcesList(_, context), "MembershipDatasources"),    UnprocessedGraphs: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_BatchGetMembershipDatasourcesCommand");var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    GraphArn: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_CreateGraphCommand");var de_CreateMembersCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Members: /* @__PURE__ */ __name((_) => de_MemberDetailList(_, context), "Members"),    UnprocessedAccounts: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_CreateMembersCommand");var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DeleteGraphCommand");var de_DeleteMembersCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    AccountIds: import_smithy_client._json,    UnprocessedAccounts: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_DeleteMembersCommand");var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    AutoEnable: import_smithy_client.expectBoolean  });  Object.assign(contents, doc);  return contents;}, "de_DescribeOrganizationConfigurationCommand");var de_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DisableOrganizationAdminAccountCommand");var de_DisassociateMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DisassociateMembershipCommand");var de_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_EnableOrganizationAdminAccountCommand");var de_GetInvestigationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedTime"),    EntityArn: import_smithy_client.expectString,    EntityType: import_smithy_client.expectString,    GraphArn: import_smithy_client.expectString,    InvestigationId: import_smithy_client.expectString,    ScopeEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "ScopeEndTime"),    ScopeStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "ScopeStartTime"),    Severity: import_smithy_client.expectString,    State: import_smithy_client.expectString,    Status: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_GetInvestigationCommand");var de_GetMembersCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    MemberDetails: /* @__PURE__ */ __name((_) => de_MemberDetailList(_, context), "MemberDetails"),    UnprocessedAccounts: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_GetMembersCommand");var de_ListDatasourcePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    DatasourcePackages: /* @__PURE__ */ __name((_) => de_DatasourcePackageIngestDetails(_, context), "DatasourcePackages"),    NextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListDatasourcePackagesCommand");var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    GraphList: /* @__PURE__ */ __name((_) => de_GraphList(_, context), "GraphList"),    NextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListGraphsCommand");var de_ListIndicatorsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    GraphArn: import_smithy_client.expectString,    Indicators: import_smithy_client._json,    InvestigationId: import_smithy_client.expectString,    NextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListIndicatorsCommand");var de_ListInvestigationsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    InvestigationDetails: /* @__PURE__ */ __name((_) => de_InvestigationDetails(_, context), "InvestigationDetails"),    NextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListInvestigationsCommand");var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Invitations: /* @__PURE__ */ __name((_) => de_MemberDetailList(_, context), "Invitations"),    NextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListInvitationsCommand");var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    MemberDetails: /* @__PURE__ */ __name((_) => de_MemberDetailList(_, context), "MemberDetails"),    NextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListMembersCommand");var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Administrators: /* @__PURE__ */ __name((_) => de_AdministratorList(_, context), "Administrators"),    NextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListOrganizationAdminAccountsCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Tags: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_ListTagsForResourceCommand");var de_RejectInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_RejectInvitationCommand");var de_StartInvestigationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    InvestigationId: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_StartInvestigationCommand");var de_StartMonitoringMemberCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_StartMonitoringMemberCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_UntagResourceCommand");var de_UpdateDatasourcePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_UpdateDatasourcePackagesCommand");var de_UpdateInvestigationStateCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_UpdateInvestigationStateCommand");var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_UpdateOrganizationConfigurationCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {  const parsedOutput = {    ...output,    body: await (0, import_core2.parseJsonErrorBody)(output.body, context)  };  const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);  switch (errorCode) {    case "AccessDeniedException":    case "com.amazonaws.detective#AccessDeniedException":      throw await de_AccessDeniedExceptionRes(parsedOutput, context);    case "ConflictException":    case "com.amazonaws.detective#ConflictException":      throw await de_ConflictExceptionRes(parsedOutput, context);    case "InternalServerException":    case "com.amazonaws.detective#InternalServerException":      throw await de_InternalServerExceptionRes(parsedOutput, context);    case "ResourceNotFoundException":    case "com.amazonaws.detective#ResourceNotFoundException":      throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);    case "ValidationException":    case "com.amazonaws.detective#ValidationException":      throw await de_ValidationExceptionRes(parsedOutput, context);    case "ServiceQuotaExceededException":    case "com.amazonaws.detective#ServiceQuotaExceededException":      throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);    case "TooManyRequestsException":    case "com.amazonaws.detective#TooManyRequestsException":      throw await de_TooManyRequestsExceptionRes(parsedOutput, context);    default:      const parsedBody = parsedOutput.body;      return throwDefaultError({        output,        parsedBody,        errorCode      });  }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(DetectiveServiceException);var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    ErrorCode: import_smithy_client.expectString,    ErrorCodeReason: import_smithy_client.expectString,    Message: import_smithy_client.expectString,    SubErrorCode: import_smithy_client.expectString,    SubErrorCodeReason: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new AccessDeniedException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_AccessDeniedExceptionRes");var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ConflictException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ConflictExceptionRes");var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new InternalServerException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ResourceNotFoundException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ResourceNotFoundExceptionRes");var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Message: import_smithy_client.expectString,    Resources: import_smithy_client._json  });  Object.assign(contents, doc);  const exception = new ServiceQuotaExceededException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ServiceQuotaExceededExceptionRes");var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new TooManyRequestsException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_TooManyRequestsExceptionRes");var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    ErrorCode: import_smithy_client.expectString,    ErrorCodeReason: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ValidationException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ValidationExceptionRes");var se_DateFilter = /* @__PURE__ */ __name((input, context) => {  return (0, import_smithy_client.take)(input, {    EndInclusive: import_smithy_client.serializeDateTime,    StartInclusive: import_smithy_client.serializeDateTime  });}, "se_DateFilter");var se_FilterCriteria = /* @__PURE__ */ __name((input, context) => {  return (0, import_smithy_client.take)(input, {    CreatedTime: /* @__PURE__ */ __name((_) => se_DateFilter(_, context), "CreatedTime"),    EntityArn: import_smithy_client._json,    Severity: import_smithy_client._json,    State: import_smithy_client._json,    Status: import_smithy_client._json  });}, "se_FilterCriteria");var de_Administrator = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    AccountId: import_smithy_client.expectString,    DelegationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "DelegationTime"),    GraphArn: import_smithy_client.expectString  });}, "de_Administrator");var de_AdministratorList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_Administrator(entry, context);  });  return retVal;}, "de_AdministratorList");var de_DatasourcePackageIngestDetail = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    DatasourcePackageIngestState: import_smithy_client.expectString,    LastIngestStateChange: /* @__PURE__ */ __name((_) => de_LastIngestStateChangeDates(_, context), "LastIngestStateChange")  });}, "de_DatasourcePackageIngestDetail");var de_DatasourcePackageIngestDetails = /* @__PURE__ */ __name((output, context) => {  return Object.entries(output).reduce(    (acc, [key, value]) => {      if (value === null) {        return acc;      }      acc[key] = de_DatasourcePackageIngestDetail(value, context);      return acc;    },    {}  );}, "de_DatasourcePackageIngestDetails");var de_DatasourcePackageIngestHistory = /* @__PURE__ */ __name((output, context) => {  return Object.entries(output).reduce(    (acc, [key, value]) => {      if (value === null) {        return acc;      }      acc[key] = de_LastIngestStateChangeDates(value, context);      return acc;    },    {}  );}, "de_DatasourcePackageIngestHistory");var de_DatasourcePackageUsageInfo = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    VolumeUsageInBytes: import_smithy_client.expectLong,    VolumeUsageUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "VolumeUsageUpdateTime")  });}, "de_DatasourcePackageUsageInfo");var de_Graph = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    Arn: import_smithy_client.expectString,    CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedTime")  });}, "de_Graph");var de_GraphList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_Graph(entry, context);  });  return retVal;}, "de_GraphList");var de_InvestigationDetail = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedTime"),    EntityArn: import_smithy_client.expectString,    EntityType: import_smithy_client.expectString,    InvestigationId: import_smithy_client.expectString,    Severity: import_smithy_client.expectString,    State: import_smithy_client.expectString,    Status: import_smithy_client.expectString  });}, "de_InvestigationDetail");var de_InvestigationDetails = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_InvestigationDetail(entry, context);  });  return retVal;}, "de_InvestigationDetails");var de_LastIngestStateChangeDates = /* @__PURE__ */ __name((output, context) => {  return Object.entries(output).reduce(    (acc, [key, value]) => {      if (value === null) {        return acc;      }      acc[key] = de_TimestampForCollection(value, context);      return acc;    },    {}  );}, "de_LastIngestStateChangeDates");var de_MemberDetail = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    AccountId: import_smithy_client.expectString,    AdministratorId: import_smithy_client.expectString,    DatasourcePackageIngestStates: import_smithy_client._json,    DisabledReason: import_smithy_client.expectString,    EmailAddress: import_smithy_client.expectString,    GraphArn: import_smithy_client.expectString,    InvitationType: import_smithy_client.expectString,    InvitedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "InvitedTime"),    MasterId: import_smithy_client.expectString,    PercentOfGraphUtilization: import_smithy_client.limitedParseDouble,    PercentOfGraphUtilizationUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "PercentOfGraphUtilizationUpdatedTime"),    Status: import_smithy_client.expectString,    UpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "UpdatedTime"),    VolumeUsageByDatasourcePackage: /* @__PURE__ */ __name((_) => de_VolumeUsageByDatasourcePackage(_, context), "VolumeUsageByDatasourcePackage"),    VolumeUsageInBytes: import_smithy_client.expectLong,    VolumeUsageUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "VolumeUsageUpdatedTime")  });}, "de_MemberDetail");var de_MemberDetailList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_MemberDetail(entry, context);  });  return retVal;}, "de_MemberDetailList");var de_MembershipDatasources = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    AccountId: import_smithy_client.expectString,    DatasourcePackageIngestHistory: /* @__PURE__ */ __name((_) => de_DatasourcePackageIngestHistory(_, context), "DatasourcePackageIngestHistory"),    GraphArn: import_smithy_client.expectString  });}, "de_MembershipDatasources");var de_MembershipDatasourcesList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_MembershipDatasources(entry, context);  });  return retVal;}, "de_MembershipDatasourcesList");var de_TimestampForCollection = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    Timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "Timestamp")  });}, "de_TimestampForCollection");var de_VolumeUsageByDatasourcePackage = /* @__PURE__ */ __name((output, context) => {  return Object.entries(output).reduce(    (acc, [key, value]) => {      if (value === null) {        return acc;      }      acc[key] = de_DatasourcePackageUsageInfo(value, context);      return acc;    },    {}  );}, "de_VolumeUsageByDatasourcePackage");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({  httpStatusCode: output.statusCode,  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],  extendedRequestId: output.headers["x-amz-id-2"],  cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var _TK = "TagKeys";var _tK = "tagKeys"; // src/commands/AcceptInvitationCommand.tsvar AcceptInvitationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "AcceptInvitation", {}).n("DetectiveClient", "AcceptInvitationCommand").f(void 0, void 0).ser(se_AcceptInvitationCommand).de(de_AcceptInvitationCommand).build() {  static {    __name(this, "AcceptInvitationCommand");  }}; // src/commands/BatchGetGraphMemberDatasourcesCommand.ts   var BatchGetGraphMemberDatasourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "BatchGetGraphMemberDatasources", {}).n("DetectiveClient", "BatchGetGraphMemberDatasourcesCommand").f(void 0, void 0).ser(se_BatchGetGraphMemberDatasourcesCommand).de(de_BatchGetGraphMemberDatasourcesCommand).build() {  static {    __name(this, "BatchGetGraphMemberDatasourcesCommand");  }}; // src/commands/BatchGetMembershipDatasourcesCommand.ts   var BatchGetMembershipDatasourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "BatchGetMembershipDatasources", {}).n("DetectiveClient", "BatchGetMembershipDatasourcesCommand").f(void 0, void 0).ser(se_BatchGetMembershipDatasourcesCommand).de(de_BatchGetMembershipDatasourcesCommand).build() {  static {    __name(this, "BatchGetMembershipDatasourcesCommand");  }}; // src/commands/CreateGraphCommand.ts   var CreateGraphCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "CreateGraph", {}).n("DetectiveClient", "CreateGraphCommand").f(void 0, void 0).ser(se_CreateGraphCommand).de(de_CreateGraphCommand).build() {  static {    __name(this, "CreateGraphCommand");  }}; // src/commands/CreateMembersCommand.ts   var CreateMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "CreateMembers", {}).n("DetectiveClient", "CreateMembersCommand").f(CreateMembersRequestFilterSensitiveLog, CreateMembersResponseFilterSensitiveLog).ser(se_CreateMembersCommand).de(de_CreateMembersCommand).build() {  static {    __name(this, "CreateMembersCommand");  }}; // src/commands/DeleteGraphCommand.ts   var DeleteGraphCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "DeleteGraph", {}).n("DetectiveClient", "DeleteGraphCommand").f(void 0, void 0).ser(se_DeleteGraphCommand).de(de_DeleteGraphCommand).build() {  static {    __name(this, "DeleteGraphCommand");  }}; // src/commands/DeleteMembersCommand.ts   var DeleteMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "DeleteMembers", {}).n("DetectiveClient", "DeleteMembersCommand").f(void 0, void 0).ser(se_DeleteMembersCommand).de(de_DeleteMembersCommand).build() {  static {    __name(this, "DeleteMembersCommand");  }}; // src/commands/DescribeOrganizationConfigurationCommand.ts   var DescribeOrganizationConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "DescribeOrganizationConfiguration", {}).n("DetectiveClient", "DescribeOrganizationConfigurationCommand").f(void 0, void 0).ser(se_DescribeOrganizationConfigurationCommand).de(de_DescribeOrganizationConfigurationCommand).build() {  static {    __name(this, "DescribeOrganizationConfigurationCommand");  }}; // src/commands/DisableOrganizationAdminAccountCommand.ts   var DisableOrganizationAdminAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "DisableOrganizationAdminAccount", {}).n("DetectiveClient", "DisableOrganizationAdminAccountCommand").f(void 0, void 0).ser(se_DisableOrganizationAdminAccountCommand).de(de_DisableOrganizationAdminAccountCommand).build() {  static {    __name(this, "DisableOrganizationAdminAccountCommand");  }}; // src/commands/DisassociateMembershipCommand.ts   var DisassociateMembershipCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "DisassociateMembership", {}).n("DetectiveClient", "DisassociateMembershipCommand").f(void 0, void 0).ser(se_DisassociateMembershipCommand).de(de_DisassociateMembershipCommand).build() {  static {    __name(this, "DisassociateMembershipCommand");  }}; // src/commands/EnableOrganizationAdminAccountCommand.ts   var EnableOrganizationAdminAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "EnableOrganizationAdminAccount", {}).n("DetectiveClient", "EnableOrganizationAdminAccountCommand").f(void 0, void 0).ser(se_EnableOrganizationAdminAccountCommand).de(de_EnableOrganizationAdminAccountCommand).build() {  static {    __name(this, "EnableOrganizationAdminAccountCommand");  }}; // src/commands/GetInvestigationCommand.ts   var GetInvestigationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "GetInvestigation", {}).n("DetectiveClient", "GetInvestigationCommand").f(void 0, void 0).ser(se_GetInvestigationCommand).de(de_GetInvestigationCommand).build() {  static {    __name(this, "GetInvestigationCommand");  }}; // src/commands/GetMembersCommand.ts   var GetMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "GetMembers", {}).n("DetectiveClient", "GetMembersCommand").f(void 0, GetMembersResponseFilterSensitiveLog).ser(se_GetMembersCommand).de(de_GetMembersCommand).build() {  static {    __name(this, "GetMembersCommand");  }}; // src/commands/ListDatasourcePackagesCommand.ts   var ListDatasourcePackagesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "ListDatasourcePackages", {}).n("DetectiveClient", "ListDatasourcePackagesCommand").f(void 0, void 0).ser(se_ListDatasourcePackagesCommand).de(de_ListDatasourcePackagesCommand).build() {  static {    __name(this, "ListDatasourcePackagesCommand");  }}; // src/commands/ListGraphsCommand.ts   var ListGraphsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "ListGraphs", {}).n("DetectiveClient", "ListGraphsCommand").f(void 0, void 0).ser(se_ListGraphsCommand).de(de_ListGraphsCommand).build() {  static {    __name(this, "ListGraphsCommand");  }}; // src/commands/ListIndicatorsCommand.ts   var ListIndicatorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "ListIndicators", {}).n("DetectiveClient", "ListIndicatorsCommand").f(void 0, void 0).ser(se_ListIndicatorsCommand).de(de_ListIndicatorsCommand).build() {  static {    __name(this, "ListIndicatorsCommand");  }}; // src/commands/ListInvestigationsCommand.ts   var ListInvestigationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "ListInvestigations", {}).n("DetectiveClient", "ListInvestigationsCommand").f(void 0, void 0).ser(se_ListInvestigationsCommand).de(de_ListInvestigationsCommand).build() {  static {    __name(this, "ListInvestigationsCommand");  }}; // src/commands/ListInvitationsCommand.ts   var ListInvitationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "ListInvitations", {}).n("DetectiveClient", "ListInvitationsCommand").f(void 0, ListInvitationsResponseFilterSensitiveLog).ser(se_ListInvitationsCommand).de(de_ListInvitationsCommand).build() {  static {    __name(this, "ListInvitationsCommand");  }}; // src/commands/ListMembersCommand.ts   var ListMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "ListMembers", {}).n("DetectiveClient", "ListMembersCommand").f(void 0, ListMembersResponseFilterSensitiveLog).ser(se_ListMembersCommand).de(de_ListMembersCommand).build() {  static {    __name(this, "ListMembersCommand");  }}; // src/commands/ListOrganizationAdminAccountsCommand.ts   var ListOrganizationAdminAccountsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "ListOrganizationAdminAccounts", {}).n("DetectiveClient", "ListOrganizationAdminAccountsCommand").f(void 0, void 0).ser(se_ListOrganizationAdminAccountsCommand).de(de_ListOrganizationAdminAccountsCommand).build() {  static {    __name(this, "ListOrganizationAdminAccountsCommand");  }}; // src/commands/ListTagsForResourceCommand.ts   var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "ListTagsForResource", {}).n("DetectiveClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {  static {    __name(this, "ListTagsForResourceCommand");  }}; // src/commands/RejectInvitationCommand.ts   var RejectInvitationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "RejectInvitation", {}).n("DetectiveClient", "RejectInvitationCommand").f(void 0, void 0).ser(se_RejectInvitationCommand).de(de_RejectInvitationCommand).build() {  static {    __name(this, "RejectInvitationCommand");  }}; // src/commands/StartInvestigationCommand.ts   var StartInvestigationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "StartInvestigation", {}).n("DetectiveClient", "StartInvestigationCommand").f(void 0, void 0).ser(se_StartInvestigationCommand).de(de_StartInvestigationCommand).build() {  static {    __name(this, "StartInvestigationCommand");  }}; // src/commands/StartMonitoringMemberCommand.ts   var StartMonitoringMemberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "StartMonitoringMember", {}).n("DetectiveClient", "StartMonitoringMemberCommand").f(void 0, void 0).ser(se_StartMonitoringMemberCommand).de(de_StartMonitoringMemberCommand).build() {  static {    __name(this, "StartMonitoringMemberCommand");  }}; // src/commands/TagResourceCommand.ts   var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "TagResource", {}).n("DetectiveClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {  static {    __name(this, "TagResourceCommand");  }}; // src/commands/UntagResourceCommand.ts   var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "UntagResource", {}).n("DetectiveClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {  static {    __name(this, "UntagResourceCommand");  }}; // src/commands/UpdateDatasourcePackagesCommand.ts   var UpdateDatasourcePackagesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "UpdateDatasourcePackages", {}).n("DetectiveClient", "UpdateDatasourcePackagesCommand").f(void 0, void 0).ser(se_UpdateDatasourcePackagesCommand).de(de_UpdateDatasourcePackagesCommand).build() {  static {    __name(this, "UpdateDatasourcePackagesCommand");  }}; // src/commands/UpdateInvestigationStateCommand.ts   var UpdateInvestigationStateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "UpdateInvestigationState", {}).n("DetectiveClient", "UpdateInvestigationStateCommand").f(void 0, void 0).ser(se_UpdateInvestigationStateCommand).de(de_UpdateInvestigationStateCommand).build() {  static {    __name(this, "UpdateInvestigationStateCommand");  }}; // src/commands/UpdateOrganizationConfigurationCommand.ts   var UpdateOrganizationConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AmazonDetective", "UpdateOrganizationConfiguration", {}).n("DetectiveClient", "UpdateOrganizationConfigurationCommand").f(void 0, void 0).ser(se_UpdateOrganizationConfigurationCommand).de(de_UpdateOrganizationConfigurationCommand).build() {  static {    __name(this, "UpdateOrganizationConfigurationCommand");  }}; // src/Detective.tsvar commands = {  AcceptInvitationCommand,  BatchGetGraphMemberDatasourcesCommand,  BatchGetMembershipDatasourcesCommand,  CreateGraphCommand,  CreateMembersCommand,  DeleteGraphCommand,  DeleteMembersCommand,  DescribeOrganizationConfigurationCommand,  DisableOrganizationAdminAccountCommand,  DisassociateMembershipCommand,  EnableOrganizationAdminAccountCommand,  GetInvestigationCommand,  GetMembersCommand,  ListDatasourcePackagesCommand,  ListGraphsCommand,  ListIndicatorsCommand,  ListInvestigationsCommand,  ListInvitationsCommand,  ListMembersCommand,  ListOrganizationAdminAccountsCommand,  ListTagsForResourceCommand,  RejectInvitationCommand,  StartInvestigationCommand,  StartMonitoringMemberCommand,  TagResourceCommand,  UntagResourceCommand,  UpdateDatasourcePackagesCommand,  UpdateInvestigationStateCommand,  UpdateOrganizationConfigurationCommand};var Detective = class extends DetectiveClient {  static {    __name(this, "Detective");  }};(0, import_smithy_client.createAggregatedClient)(commands, Detective); // src/pagination/ListDatasourcePackagesPaginator.ts var paginateListDatasourcePackages = (0, import_core.createPaginator)(DetectiveClient, ListDatasourcePackagesCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListGraphsPaginator.ts var paginateListGraphs = (0, import_core.createPaginator)(DetectiveClient, ListGraphsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListInvitationsPaginator.ts var paginateListInvitations = (0, import_core.createPaginator)(DetectiveClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListMembersPaginator.ts var paginateListMembers = (0, import_core.createPaginator)(DetectiveClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListOrganizationAdminAccountsPaginator.ts var paginateListOrganizationAdminAccounts = (0, import_core.createPaginator)(DetectiveClient, ListOrganizationAdminAccountsCommand, "NextToken", "NextToken", "MaxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = {  DetectiveServiceException,  __Client,  DetectiveClient,  Detective,  $Command,  AcceptInvitationCommand,  BatchGetGraphMemberDatasourcesCommand,  BatchGetMembershipDatasourcesCommand,  CreateGraphCommand,  CreateMembersCommand,  DeleteGraphCommand,  DeleteMembersCommand,  DescribeOrganizationConfigurationCommand,  DisableOrganizationAdminAccountCommand,  DisassociateMembershipCommand,  EnableOrganizationAdminAccountCommand,  GetInvestigationCommand,  GetMembersCommand,  ListDatasourcePackagesCommand,  ListGraphsCommand,  ListIndicatorsCommand,  ListInvestigationsCommand,  ListInvitationsCommand,  ListMembersCommand,  ListOrganizationAdminAccountsCommand,  ListTagsForResourceCommand,  RejectInvitationCommand,  StartInvestigationCommand,  StartMonitoringMemberCommand,  TagResourceCommand,  UntagResourceCommand,  UpdateDatasourcePackagesCommand,  UpdateInvestigationStateCommand,  UpdateOrganizationConfigurationCommand,  paginateListDatasourcePackages,  paginateListGraphs,  paginateListInvitations,  paginateListMembers,  paginateListOrganizationAdminAccounts,  ErrorCode,  AccessDeniedException,  ConflictException,  InternalServerException,  ResourceNotFoundException,  ValidationException,  DatasourcePackage,  DatasourcePackageIngestState,  ServiceQuotaExceededException,  MemberDisabledReason,  InvitationType,  MemberStatus,  TooManyRequestsException,  EntityType,  Severity,  State,  Status,  IndicatorType,  Reason,  Field,  SortOrder,  AccountFilterSensitiveLog,  CreateMembersRequestFilterSensitiveLog,  MemberDetailFilterSensitiveLog,  CreateMembersResponseFilterSensitiveLog,  GetMembersResponseFilterSensitiveLog,  ListInvitationsResponseFilterSensitiveLog,  ListMembersResponseFilterSensitiveLog});