File Explorer

/var/runtime/node_modules/@aws-sdk/client-repostspace/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.js76.5 KB · 1946 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, {  AccessDeniedException: () => AccessDeniedException,  BatchAddChannelRoleToAccessorsCommand: () => BatchAddChannelRoleToAccessorsCommand,  BatchAddRoleCommand: () => BatchAddRoleCommand,  BatchRemoveChannelRoleFromAccessorsCommand: () => BatchRemoveChannelRoleFromAccessorsCommand,  BatchRemoveRoleCommand: () => BatchRemoveRoleCommand,  ChannelDataFilterSensitiveLog: () => ChannelDataFilterSensitiveLog,  ChannelRole: () => ChannelRole,  ChannelStatus: () => ChannelStatus,  ConfigurationStatus: () => ConfigurationStatus,  ConflictException: () => ConflictException,  CreateChannelCommand: () => CreateChannelCommand,  CreateChannelInputFilterSensitiveLog: () => CreateChannelInputFilterSensitiveLog,  CreateSpaceCommand: () => CreateSpaceCommand,  CreateSpaceInputFilterSensitiveLog: () => CreateSpaceInputFilterSensitiveLog,  DeleteSpaceCommand: () => DeleteSpaceCommand,  DeregisterAdminCommand: () => DeregisterAdminCommand,  FeatureEnableParameter: () => FeatureEnableParameter,  FeatureEnableStatus: () => FeatureEnableStatus,  GetChannelCommand: () => GetChannelCommand,  GetChannelOutputFilterSensitiveLog: () => GetChannelOutputFilterSensitiveLog,  GetSpaceCommand: () => GetSpaceCommand,  GetSpaceOutputFilterSensitiveLog: () => GetSpaceOutputFilterSensitiveLog,  InternalServerException: () => InternalServerException,  ListChannelsCommand: () => ListChannelsCommand,  ListChannelsOutputFilterSensitiveLog: () => ListChannelsOutputFilterSensitiveLog,  ListSpacesCommand: () => ListSpacesCommand,  ListSpacesOutputFilterSensitiveLog: () => ListSpacesOutputFilterSensitiveLog,  ListTagsForResourceCommand: () => ListTagsForResourceCommand,  ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,  RegisterAdminCommand: () => RegisterAdminCommand,  Repostspace: () => Repostspace,  RepostspaceClient: () => RepostspaceClient,  RepostspaceServiceException: () => RepostspaceServiceException,  ResourceNotFoundException: () => ResourceNotFoundException,  Role: () => Role,  SendInvitesCommand: () => SendInvitesCommand,  SendInvitesInputFilterSensitiveLog: () => SendInvitesInputFilterSensitiveLog,  ServiceQuotaExceededException: () => ServiceQuotaExceededException,  SpaceDataFilterSensitiveLog: () => SpaceDataFilterSensitiveLog,  SupportedEmailDomainsParametersFilterSensitiveLog: () => SupportedEmailDomainsParametersFilterSensitiveLog,  SupportedEmailDomainsStatusFilterSensitiveLog: () => SupportedEmailDomainsStatusFilterSensitiveLog,  TagResourceCommand: () => TagResourceCommand,  TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,  ThrottlingException: () => ThrottlingException,  TierLevel: () => TierLevel,  UntagResourceCommand: () => UntagResourceCommand,  UpdateChannelCommand: () => UpdateChannelCommand,  UpdateChannelInputFilterSensitiveLog: () => UpdateChannelInputFilterSensitiveLog,  UpdateSpaceCommand: () => UpdateSpaceCommand,  UpdateSpaceInputFilterSensitiveLog: () => UpdateSpaceInputFilterSensitiveLog,  ValidationException: () => ValidationException,  ValidationExceptionReason: () => ValidationExceptionReason,  VanityDomainStatus: () => VanityDomainStatus,  __Client: () => import_smithy_client.Client,  paginateListChannels: () => paginateListChannels,  paginateListSpaces: () => paginateListSpaces,  waitForChannelCreated: () => waitForChannelCreated,  waitForChannelDeleted: () => waitForChannelDeleted,  waitForSpaceCreated: () => waitForSpaceCreated,  waitForSpaceDeleted: () => waitForSpaceDeleted,  waitUntilChannelCreated: () => waitUntilChannelCreated,  waitUntilChannelDeleted: () => waitUntilChannelDeleted,  waitUntilSpaceCreated: () => waitUntilSpaceCreated,  waitUntilSpaceDeleted: () => waitUntilSpaceDeleted});module.exports = __toCommonJS(index_exports); // src/RepostspaceClient.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: "repostspace"  });}, "resolveClientEndpointParameters");var commonParams = {  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },  Endpoint: { type: "builtInParams", name: "endpoint" },  Region: { type: "builtInParams", name: "region" },  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/RepostspaceClient.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/RepostspaceClient.tsvar RepostspaceClient = class extends import_smithy_client.Client {  static {    __name(this, "RepostspaceClient");  }  /**   * The resolved configuration of RepostspaceClient class. This is resolved and normalized from the {@link RepostspaceClientConfig | 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.defaultRepostspaceHttpAuthSchemeParametersProvider,        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/Repostspace.ts  // src/commands/BatchAddChannelRoleToAccessorsCommand.ts var import_middleware_serde = require("@smithy/middleware-serde");  // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core");   // src/models/models_0.ts  // src/models/RepostspaceServiceException.ts var RepostspaceServiceException = class _RepostspaceServiceException extends import_smithy_client.ServiceException {  static {    __name(this, "RepostspaceServiceException");  }  /**   * @internal   */  constructor(options) {    super(options);    Object.setPrototypeOf(this, _RepostspaceServiceException.prototype);  }}; // src/models/models_0.tsvar AccessDeniedException = class _AccessDeniedException extends RepostspaceServiceException {  static {    __name(this, "AccessDeniedException");  }  name = "AccessDeniedException";  $fault = "client";  /**   * @internal   */  constructor(opts) {    super({      name: "AccessDeniedException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _AccessDeniedException.prototype);  }};var ChannelRole = {  ASKER: "ASKER",  EXPERT: "EXPERT",  MODERATOR: "MODERATOR",  SUPPORTREQUESTOR: "SUPPORTREQUESTOR"};var InternalServerException = class _InternalServerException extends RepostspaceServiceException {  static {    __name(this, "InternalServerException");  }  name = "InternalServerException";  $fault = "server";  $retryable = {};  /**   * <p>Advice to clients on when the call can be safely retried.</p>   * @public   */  retryAfterSeconds;  /**   * @internal   */  constructor(opts) {    super({      name: "InternalServerException",      $fault: "server",      ...opts    });    Object.setPrototypeOf(this, _InternalServerException.prototype);    this.retryAfterSeconds = opts.retryAfterSeconds;  }};var ResourceNotFoundException = class _ResourceNotFoundException extends RepostspaceServiceException {  static {    __name(this, "ResourceNotFoundException");  }  name = "ResourceNotFoundException";  $fault = "client";  /**   * <p>The ID of the resource.</p>   * @public   */  resourceId;  /**   * <p>The type of the resource.</p>   * @public   */  resourceType;  /**   * @internal   */  constructor(opts) {    super({      name: "ResourceNotFoundException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);    this.resourceId = opts.resourceId;    this.resourceType = opts.resourceType;  }};var ThrottlingException = class _ThrottlingException extends RepostspaceServiceException {  static {    __name(this, "ThrottlingException");  }  name = "ThrottlingException";  $fault = "client";  $retryable = {    throttling: true  };  /**   * <p>The code to identify the service.</p>   * @public   */  serviceCode;  /**   * <p>The code to identify the quota.</p>   * @public   */  quotaCode;  /**   * <p> Advice to clients on when the call can be safely retried.</p>   * @public   */  retryAfterSeconds;  /**   * @internal   */  constructor(opts) {    super({      name: "ThrottlingException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ThrottlingException.prototype);    this.serviceCode = opts.serviceCode;    this.quotaCode = opts.quotaCode;    this.retryAfterSeconds = opts.retryAfterSeconds;  }};var ValidationExceptionReason = {  CANNOT_PARSE: "cannotParse",  FIELD_VALIDATION_FAILED: "fieldValidationFailed",  OTHER: "other",  UNKNOWN_OPERATION: "unknownOperation"};var ValidationException = class _ValidationException extends RepostspaceServiceException {  static {    __name(this, "ValidationException");  }  name = "ValidationException";  $fault = "client";  /**   * <p>The reason why the request failed validation.</p>   * @public   */  reason;  /**   * <p>The field that caused the error, if applicable.</p>   * @public   */  fieldList;  /**   * @internal   */  constructor(opts) {    super({      name: "ValidationException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ValidationException.prototype);    this.reason = opts.reason;    this.fieldList = opts.fieldList;  }};var Role = {  ADMINISTRATOR: "ADMINISTRATOR",  EXPERT: "EXPERT",  MODERATOR: "MODERATOR",  SUPPORTREQUESTOR: "SUPPORTREQUESTOR"};var ChannelStatus = {  CREATED: "CREATED",  CREATE_FAILED: "CREATE_FAILED",  CREATING: "CREATING",  DELETED: "DELETED",  DELETE_FAILED: "DELETE_FAILED",  DELETING: "DELETING"};var ConfigurationStatus = {  CONFIGURED: "CONFIGURED",  UNCONFIGURED: "UNCONFIGURED"};var ConflictException = class _ConflictException extends RepostspaceServiceException {  static {    __name(this, "ConflictException");  }  name = "ConflictException";  $fault = "client";  /**   * <p>The ID of the resource.</p>   * @public   */  resourceId;  /**   * <p>The type of the resource.</p>   * @public   */  resourceType;  /**   * @internal   */  constructor(opts) {    super({      name: "ConflictException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ConflictException.prototype);    this.resourceId = opts.resourceId;    this.resourceType = opts.resourceType;  }};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends RepostspaceServiceException {  static {    __name(this, "ServiceQuotaExceededException");  }  name = "ServiceQuotaExceededException";  $fault = "client";  /**   * <p>The id of the resource.</p>   * @public   */  resourceId;  /**   * <p>The type of the resource.</p>   * @public   */  resourceType;  /**   * <p>The code to identify the service.</p>   * @public   */  serviceCode;  /**   * <p>The code to identify the quota.</p>   * @public   */  quotaCode;  /**   * @internal   */  constructor(opts) {    super({      name: "ServiceQuotaExceededException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);    this.resourceId = opts.resourceId;    this.resourceType = opts.resourceType;    this.serviceCode = opts.serviceCode;    this.quotaCode = opts.quotaCode;  }};var FeatureEnableParameter = {  DISABLED: "DISABLED",  ENABLED: "ENABLED"};var TierLevel = {  BASIC: "BASIC",  STANDARD: "STANDARD"};var FeatureEnableStatus = {  DISABLED: "DISABLED",  ENABLED: "ENABLED",  NOT_ALLOWED: "NOT_ALLOWED"};var VanityDomainStatus = {  APPROVED: "APPROVED",  PENDING: "PENDING",  UNAPPROVED: "UNAPPROVED"};var ChannelDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.channelName && { channelName: import_smithy_client.SENSITIVE_STRING },  ...obj.channelDescription && { channelDescription: import_smithy_client.SENSITIVE_STRING }}), "ChannelDataFilterSensitiveLog");var CreateChannelInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.channelName && { channelName: import_smithy_client.SENSITIVE_STRING },  ...obj.channelDescription && { channelDescription: import_smithy_client.SENSITIVE_STRING }}), "CreateChannelInputFilterSensitiveLog");var SupportedEmailDomainsParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.allowedDomains && { allowedDomains: import_smithy_client.SENSITIVE_STRING }}), "SupportedEmailDomainsParametersFilterSensitiveLog");var CreateSpaceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },  ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },  ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING },  ...obj.supportedEmailDomains && {    supportedEmailDomains: SupportedEmailDomainsParametersFilterSensitiveLog(obj.supportedEmailDomains)  }}), "CreateSpaceInputFilterSensitiveLog");var GetChannelOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.channelName && { channelName: import_smithy_client.SENSITIVE_STRING },  ...obj.channelDescription && { channelDescription: import_smithy_client.SENSITIVE_STRING }}), "GetChannelOutputFilterSensitiveLog");var SupportedEmailDomainsStatusFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.allowedDomains && { allowedDomains: import_smithy_client.SENSITIVE_STRING }}), "SupportedEmailDomainsStatusFilterSensitiveLog");var GetSpaceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },  ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },  ...obj.supportedEmailDomains && {    supportedEmailDomains: SupportedEmailDomainsStatusFilterSensitiveLog(obj.supportedEmailDomains)  }}), "GetSpaceOutputFilterSensitiveLog");var ListChannelsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.channels && { channels: obj.channels.map((item) => ChannelDataFilterSensitiveLog(item)) }}), "ListChannelsOutputFilterSensitiveLog");var SpaceDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },  ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },  ...obj.supportedEmailDomains && {    supportedEmailDomains: SupportedEmailDomainsStatusFilterSensitiveLog(obj.supportedEmailDomains)  }}), "SpaceDataFilterSensitiveLog");var ListSpacesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.spaces && { spaces: obj.spaces.map((item) => SpaceDataFilterSensitiveLog(item)) }}), "ListSpacesOutputFilterSensitiveLog");var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }}), "ListTagsForResourceResponseFilterSensitiveLog");var SendInvitesInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.title && { title: import_smithy_client.SENSITIVE_STRING },  ...obj.body && { body: import_smithy_client.SENSITIVE_STRING }}), "SendInvitesInputFilterSensitiveLog");var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }}), "TagResourceRequestFilterSensitiveLog");var UpdateChannelInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.channelName && { channelName: import_smithy_client.SENSITIVE_STRING },  ...obj.channelDescription && { channelDescription: import_smithy_client.SENSITIVE_STRING }}), "UpdateChannelInputFilterSensitiveLog");var UpdateSpaceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },  ...obj.supportedEmailDomains && {    supportedEmailDomains: SupportedEmailDomainsParametersFilterSensitiveLog(obj.supportedEmailDomains)  }}), "UpdateSpaceInputFilterSensitiveLog"); // src/protocols/Aws_restJson1.tsvar se_BatchAddChannelRoleToAccessorsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces/{spaceId}/channels/{channelId}/roles");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  b.p("channelId", () => input.channelId, "{channelId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      accessorIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accessorIds"),      channelRole: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_BatchAddChannelRoleToAccessorsCommand");var se_BatchAddRoleCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces/{spaceId}/roles");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      accessorIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accessorIds"),      role: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_BatchAddRoleCommand");var se_BatchRemoveChannelRoleFromAccessorsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces/{spaceId}/channels/{channelId}/roles");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  b.p("channelId", () => input.channelId, "{channelId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      accessorIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accessorIds"),      channelRole: []    })  );  b.m("PATCH").h(headers).b(body);  return b.build();}, "se_BatchRemoveChannelRoleFromAccessorsCommand");var se_BatchRemoveRoleCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces/{spaceId}/roles");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      accessorIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accessorIds"),      role: []    })  );  b.m("PATCH").h(headers).b(body);  return b.build();}, "se_BatchRemoveRoleCommand");var se_CreateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces/{spaceId}/channels");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      channelDescription: [],      channelName: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CreateChannelCommand");var se_CreateSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      description: [],      name: [],      roleArn: [],      subdomain: [],      supportedEmailDomains: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "supportedEmailDomains"),      tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),      tier: [],      userKMSKey: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CreateSpaceCommand");var se_DeleteSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/spaces/{spaceId}");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  let body;  b.m("DELETE").h(headers).b(body);  return b.build();}, "se_DeleteSpaceCommand");var se_DeregisterAdminCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/spaces/{spaceId}/admins/{adminId}");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  b.p("adminId", () => input.adminId, "{adminId}", false);  let body;  b.m("DELETE").h(headers).b(body);  return b.build();}, "se_DeregisterAdminCommand");var se_GetChannelCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/spaces/{spaceId}/channels/{channelId}");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  b.p("channelId", () => input.channelId, "{channelId}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_GetChannelCommand");var se_GetSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/spaces/{spaceId}");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_GetSpaceCommand");var se_ListChannelsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/spaces/{spaceId}/channels");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  const query = (0, import_smithy_client.map)({    [_nT]: [, input[_nT]],    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListChannelsCommand");var se_ListSpacesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/spaces");  const query = (0, import_smithy_client.map)({    [_nT]: [, input[_nT]],    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListSpacesCommand");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_RegisterAdminCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/spaces/{spaceId}/admins/{adminId}");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  b.p("adminId", () => input.adminId, "{adminId}", false);  let body;  b.m("POST").h(headers).b(body);  return b.build();}, "se_RegisterAdminCommand");var se_SendInvitesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces/{spaceId}/invite");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      accessorIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accessorIds"),      body: [],      title: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_SendInvitesCommand");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_UpdateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces/{spaceId}/channels/{channelId}");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  b.p("channelId", () => input.channelId, "{channelId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      channelDescription: [],      channelName: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_UpdateChannelCommand");var se_UpdateSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/spaces/{spaceId}");  b.p("spaceId", () => input.spaceId, "{spaceId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      description: [],      roleArn: [],      supportedEmailDomains: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "supportedEmailDomains"),      tier: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_UpdateSpaceCommand");var de_BatchAddChannelRoleToAccessorsCommand = /* @__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, {    addedAccessorIds: import_smithy_client._json,    errors: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_BatchAddChannelRoleToAccessorsCommand");var de_BatchAddRoleCommand = /* @__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, {    addedAccessorIds: import_smithy_client._json,    errors: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_BatchAddRoleCommand");var de_BatchRemoveChannelRoleFromAccessorsCommand = /* @__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, {    errors: import_smithy_client._json,    removedAccessorIds: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_BatchRemoveChannelRoleFromAccessorsCommand");var de_BatchRemoveRoleCommand = /* @__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, {    errors: import_smithy_client._json,    removedAccessorIds: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_BatchRemoveRoleCommand");var de_CreateChannelCommand = /* @__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, {    channelId: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_CreateChannelCommand");var de_CreateSpaceCommand = /* @__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, {    spaceId: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_CreateSpaceCommand");var de_DeleteSpaceCommand = /* @__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_DeleteSpaceCommand");var de_DeregisterAdminCommand = /* @__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_DeregisterAdminCommand");var de_GetChannelCommand = /* @__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, {    channelDescription: import_smithy_client.expectString,    channelId: import_smithy_client.expectString,    channelName: import_smithy_client.expectString,    channelRoles: import_smithy_client._json,    channelStatus: import_smithy_client.expectString,    createDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createDateTime"),    deleteDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "deleteDateTime"),    spaceId: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_GetChannelCommand");var de_GetSpaceCommand = /* @__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, {    applicationArn: import_smithy_client.expectString,    arn: import_smithy_client.expectString,    clientId: import_smithy_client.expectString,    configurationStatus: import_smithy_client.expectString,    contentSize: import_smithy_client.expectLong,    createDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createDateTime"),    customerRoleArn: import_smithy_client.expectString,    deleteDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "deleteDateTime"),    description: import_smithy_client.expectString,    groupAdmins: import_smithy_client._json,    identityStoreId: import_smithy_client.expectString,    name: import_smithy_client.expectString,    randomDomain: import_smithy_client.expectString,    roles: import_smithy_client._json,    spaceId: import_smithy_client.expectString,    status: import_smithy_client.expectString,    storageLimit: import_smithy_client.expectLong,    supportedEmailDomains: import_smithy_client._json,    tier: import_smithy_client.expectString,    userAdmins: import_smithy_client._json,    userCount: import_smithy_client.expectInt32,    userKMSKey: import_smithy_client.expectString,    vanityDomain: import_smithy_client.expectString,    vanityDomainStatus: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_GetSpaceCommand");var de_ListChannelsCommand = /* @__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, {    channels: /* @__PURE__ */ __name((_) => de_ChannelsList(_, context), "channels"),    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListChannelsCommand");var de_ListSpacesCommand = /* @__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, {    nextToken: import_smithy_client.expectString,    spaces: /* @__PURE__ */ __name((_) => de_SpacesList(_, context), "spaces")  });  Object.assign(contents, doc);  return contents;}, "de_ListSpacesCommand");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_RegisterAdminCommand = /* @__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_RegisterAdminCommand");var de_SendInvitesCommand = /* @__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_SendInvitesCommand");var de_TagResourceCommand = /* @__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_TagResourceCommand");var de_UntagResourceCommand = /* @__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_UntagResourceCommand");var de_UpdateChannelCommand = /* @__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_UpdateChannelCommand");var de_UpdateSpaceCommand = /* @__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_UpdateSpaceCommand");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.repostspace#AccessDeniedException":      throw await de_AccessDeniedExceptionRes(parsedOutput, context);    case "InternalServerException":    case "com.amazonaws.repostspace#InternalServerException":      throw await de_InternalServerExceptionRes(parsedOutput, context);    case "ResourceNotFoundException":    case "com.amazonaws.repostspace#ResourceNotFoundException":      throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);    case "ThrottlingException":    case "com.amazonaws.repostspace#ThrottlingException":      throw await de_ThrottlingExceptionRes(parsedOutput, context);    case "ValidationException":    case "com.amazonaws.repostspace#ValidationException":      throw await de_ValidationExceptionRes(parsedOutput, context);    case "ConflictException":    case "com.amazonaws.repostspace#ConflictException":      throw await de_ConflictExceptionRes(parsedOutput, context);    case "ServiceQuotaExceededException":    case "com.amazonaws.repostspace#ServiceQuotaExceededException":      throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);    default:      const parsedBody = parsedOutput.body;      return throwDefaultError({        output,        parsedBody,        errorCode      });  }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(RepostspaceServiceException);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, {    message: 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,    resourceId: import_smithy_client.expectString,    resourceType: 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)({    [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]  });  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,    resourceId: import_smithy_client.expectString,    resourceType: 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,    quotaCode: import_smithy_client.expectString,    resourceId: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString,    serviceCode: import_smithy_client.expectString  });  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_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({    [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]  });  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString,    quotaCode: import_smithy_client.expectString,    serviceCode: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ThrottlingException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ThrottlingExceptionRes");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, {    fieldList: import_smithy_client._json,    message: import_smithy_client.expectString,    reason: 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 de_ChannelData = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    channelDescription: import_smithy_client.expectString,    channelId: import_smithy_client.expectString,    channelName: import_smithy_client.expectString,    channelStatus: import_smithy_client.expectString,    createDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createDateTime"),    deleteDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "deleteDateTime"),    groupCount: import_smithy_client.expectInt32,    spaceId: import_smithy_client.expectString,    userCount: import_smithy_client.expectInt32  });}, "de_ChannelData");var de_ChannelsList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_ChannelData(entry, context);  });  return retVal;}, "de_ChannelsList");var de_SpaceData = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    arn: import_smithy_client.expectString,    configurationStatus: import_smithy_client.expectString,    contentSize: import_smithy_client.expectLong,    createDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createDateTime"),    deleteDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "deleteDateTime"),    description: import_smithy_client.expectString,    name: import_smithy_client.expectString,    randomDomain: import_smithy_client.expectString,    spaceId: import_smithy_client.expectString,    status: import_smithy_client.expectString,    storageLimit: import_smithy_client.expectLong,    supportedEmailDomains: import_smithy_client._json,    tier: import_smithy_client.expectString,    userCount: import_smithy_client.expectInt32,    userKMSKey: import_smithy_client.expectString,    vanityDomain: import_smithy_client.expectString,    vanityDomainStatus: import_smithy_client.expectString  });}, "de_SpaceData");var de_SpacesList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_SpaceData(entry, context);  });  return retVal;}, "de_SpacesList");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 _mR = "maxResults";var _nT = "nextToken";var _rAS = "retryAfterSeconds";var _ra = "retry-after";var _tK = "tagKeys"; // src/commands/BatchAddChannelRoleToAccessorsCommand.tsvar BatchAddChannelRoleToAccessorsCommand = 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("RepostSpace", "BatchAddChannelRoleToAccessors", {}).n("RepostspaceClient", "BatchAddChannelRoleToAccessorsCommand").f(void 0, void 0).ser(se_BatchAddChannelRoleToAccessorsCommand).de(de_BatchAddChannelRoleToAccessorsCommand).build() {  static {    __name(this, "BatchAddChannelRoleToAccessorsCommand");  }}; // src/commands/BatchAddRoleCommand.ts   var BatchAddRoleCommand = 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("RepostSpace", "BatchAddRole", {}).n("RepostspaceClient", "BatchAddRoleCommand").f(void 0, void 0).ser(se_BatchAddRoleCommand).de(de_BatchAddRoleCommand).build() {  static {    __name(this, "BatchAddRoleCommand");  }}; // src/commands/BatchRemoveChannelRoleFromAccessorsCommand.ts   var BatchRemoveChannelRoleFromAccessorsCommand = 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("RepostSpace", "BatchRemoveChannelRoleFromAccessors", {}).n("RepostspaceClient", "BatchRemoveChannelRoleFromAccessorsCommand").f(void 0, void 0).ser(se_BatchRemoveChannelRoleFromAccessorsCommand).de(de_BatchRemoveChannelRoleFromAccessorsCommand).build() {  static {    __name(this, "BatchRemoveChannelRoleFromAccessorsCommand");  }}; // src/commands/BatchRemoveRoleCommand.ts   var BatchRemoveRoleCommand = 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("RepostSpace", "BatchRemoveRole", {}).n("RepostspaceClient", "BatchRemoveRoleCommand").f(void 0, void 0).ser(se_BatchRemoveRoleCommand).de(de_BatchRemoveRoleCommand).build() {  static {    __name(this, "BatchRemoveRoleCommand");  }}; // src/commands/CreateChannelCommand.ts   var CreateChannelCommand = 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("RepostSpace", "CreateChannel", {}).n("RepostspaceClient", "CreateChannelCommand").f(CreateChannelInputFilterSensitiveLog, void 0).ser(se_CreateChannelCommand).de(de_CreateChannelCommand).build() {  static {    __name(this, "CreateChannelCommand");  }}; // src/commands/CreateSpaceCommand.ts   var CreateSpaceCommand = 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("RepostSpace", "CreateSpace", {}).n("RepostspaceClient", "CreateSpaceCommand").f(CreateSpaceInputFilterSensitiveLog, void 0).ser(se_CreateSpaceCommand).de(de_CreateSpaceCommand).build() {  static {    __name(this, "CreateSpaceCommand");  }}; // src/commands/DeleteSpaceCommand.ts   var DeleteSpaceCommand = 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("RepostSpace", "DeleteSpace", {}).n("RepostspaceClient", "DeleteSpaceCommand").f(void 0, void 0).ser(se_DeleteSpaceCommand).de(de_DeleteSpaceCommand).build() {  static {    __name(this, "DeleteSpaceCommand");  }}; // src/commands/DeregisterAdminCommand.ts   var DeregisterAdminCommand = 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("RepostSpace", "DeregisterAdmin", {}).n("RepostspaceClient", "DeregisterAdminCommand").f(void 0, void 0).ser(se_DeregisterAdminCommand).de(de_DeregisterAdminCommand).build() {  static {    __name(this, "DeregisterAdminCommand");  }}; // src/commands/GetChannelCommand.ts   var GetChannelCommand = 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("RepostSpace", "GetChannel", {}).n("RepostspaceClient", "GetChannelCommand").f(void 0, GetChannelOutputFilterSensitiveLog).ser(se_GetChannelCommand).de(de_GetChannelCommand).build() {  static {    __name(this, "GetChannelCommand");  }}; // src/commands/GetSpaceCommand.ts   var GetSpaceCommand = 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("RepostSpace", "GetSpace", {}).n("RepostspaceClient", "GetSpaceCommand").f(void 0, GetSpaceOutputFilterSensitiveLog).ser(se_GetSpaceCommand).de(de_GetSpaceCommand).build() {  static {    __name(this, "GetSpaceCommand");  }}; // src/commands/ListChannelsCommand.ts   var ListChannelsCommand = 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("RepostSpace", "ListChannels", {}).n("RepostspaceClient", "ListChannelsCommand").f(void 0, ListChannelsOutputFilterSensitiveLog).ser(se_ListChannelsCommand).de(de_ListChannelsCommand).build() {  static {    __name(this, "ListChannelsCommand");  }}; // src/commands/ListSpacesCommand.ts   var ListSpacesCommand = 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("RepostSpace", "ListSpaces", {}).n("RepostspaceClient", "ListSpacesCommand").f(void 0, ListSpacesOutputFilterSensitiveLog).ser(se_ListSpacesCommand).de(de_ListSpacesCommand).build() {  static {    __name(this, "ListSpacesCommand");  }}; // 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("RepostSpace", "ListTagsForResource", {}).n("RepostspaceClient", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceResponseFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {  static {    __name(this, "ListTagsForResourceCommand");  }}; // src/commands/RegisterAdminCommand.ts   var RegisterAdminCommand = 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("RepostSpace", "RegisterAdmin", {}).n("RepostspaceClient", "RegisterAdminCommand").f(void 0, void 0).ser(se_RegisterAdminCommand).de(de_RegisterAdminCommand).build() {  static {    __name(this, "RegisterAdminCommand");  }}; // src/commands/SendInvitesCommand.ts   var SendInvitesCommand = 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("RepostSpace", "SendInvites", {}).n("RepostspaceClient", "SendInvitesCommand").f(SendInvitesInputFilterSensitiveLog, void 0).ser(se_SendInvitesCommand).de(de_SendInvitesCommand).build() {  static {    __name(this, "SendInvitesCommand");  }}; // 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("RepostSpace", "TagResource", {}).n("RepostspaceClient", "TagResourceCommand").f(TagResourceRequestFilterSensitiveLog, 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("RepostSpace", "UntagResource", {}).n("RepostspaceClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {  static {    __name(this, "UntagResourceCommand");  }}; // src/commands/UpdateChannelCommand.ts   var UpdateChannelCommand = 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("RepostSpace", "UpdateChannel", {}).n("RepostspaceClient", "UpdateChannelCommand").f(UpdateChannelInputFilterSensitiveLog, void 0).ser(se_UpdateChannelCommand).de(de_UpdateChannelCommand).build() {  static {    __name(this, "UpdateChannelCommand");  }}; // src/commands/UpdateSpaceCommand.ts   var UpdateSpaceCommand = 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("RepostSpace", "UpdateSpace", {}).n("RepostspaceClient", "UpdateSpaceCommand").f(UpdateSpaceInputFilterSensitiveLog, void 0).ser(se_UpdateSpaceCommand).de(de_UpdateSpaceCommand).build() {  static {    __name(this, "UpdateSpaceCommand");  }}; // src/Repostspace.tsvar commands = {  BatchAddChannelRoleToAccessorsCommand,  BatchAddRoleCommand,  BatchRemoveChannelRoleFromAccessorsCommand,  BatchRemoveRoleCommand,  CreateChannelCommand,  CreateSpaceCommand,  DeleteSpaceCommand,  DeregisterAdminCommand,  GetChannelCommand,  GetSpaceCommand,  ListChannelsCommand,  ListSpacesCommand,  ListTagsForResourceCommand,  RegisterAdminCommand,  SendInvitesCommand,  TagResourceCommand,  UntagResourceCommand,  UpdateChannelCommand,  UpdateSpaceCommand};var Repostspace = class extends RepostspaceClient {  static {    __name(this, "Repostspace");  }};(0, import_smithy_client.createAggregatedClient)(commands, Repostspace); // src/pagination/ListChannelsPaginator.ts var paginateListChannels = (0, import_core.createPaginator)(RepostspaceClient, ListChannelsCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ListSpacesPaginator.ts var paginateListSpaces = (0, import_core.createPaginator)(RepostspaceClient, ListSpacesCommand, "nextToken", "nextToken", "maxResults"); // src/waiters/waitForChannelCreated.tsvar import_util_waiter = require("@smithy/util-waiter");var checkState = /* @__PURE__ */ __name(async (client, input) => {  let reason;  try {    const result = await client.send(new GetChannelCommand(input));    reason = result;    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.channelStatus;      }, "returnComparator");      if (returnComparator() === "CREATED") {        return { state: import_util_waiter.WaiterState.SUCCESS, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.channelStatus;      }, "returnComparator");      if (returnComparator() === "CREATE_FAILED") {        return { state: import_util_waiter.WaiterState.FAILURE, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.channelStatus;      }, "returnComparator");      if (returnComparator() === "CREATING") {        return { state: import_util_waiter.WaiterState.RETRY, reason };      }    } catch (e) {    }  } catch (exception) {    reason = exception;  }  return { state: import_util_waiter.WaiterState.RETRY, reason };}, "checkState");var waitForChannelCreated = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 2, maxDelay: 120 };  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);}, "waitForChannelCreated");var waitUntilChannelCreated = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 2, maxDelay: 120 };  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);  return (0, import_util_waiter.checkExceptions)(result);}, "waitUntilChannelCreated"); // src/waiters/waitForChannelDeleted.ts var checkState2 = /* @__PURE__ */ __name(async (client, input) => {  let reason;  try {    const result = await client.send(new GetChannelCommand(input));    reason = result;    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.channelStatus;      }, "returnComparator");      if (returnComparator() === "DELETED") {        return { state: import_util_waiter.WaiterState.SUCCESS, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.channelStatus;      }, "returnComparator");      if (returnComparator() === "DELETE_FAILED") {        return { state: import_util_waiter.WaiterState.FAILURE, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.channelStatus;      }, "returnComparator");      if (returnComparator() === "DELETING") {        return { state: import_util_waiter.WaiterState.RETRY, reason };      }    } catch (e) {    }  } catch (exception) {    reason = exception;    if (exception.name && exception.name == "ResourceNotFoundException") {      return { state: import_util_waiter.WaiterState.SUCCESS, reason };    }  }  return { state: import_util_waiter.WaiterState.RETRY, reason };}, "checkState");var waitForChannelDeleted = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 2, maxDelay: 120 };  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);}, "waitForChannelDeleted");var waitUntilChannelDeleted = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 2, maxDelay: 120 };  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);  return (0, import_util_waiter.checkExceptions)(result);}, "waitUntilChannelDeleted"); // src/waiters/waitForSpaceCreated.ts var checkState3 = /* @__PURE__ */ __name(async (client, input) => {  let reason;  try {    const result = await client.send(new GetSpaceCommand(input));    reason = result;    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.status;      }, "returnComparator");      if (returnComparator() === "CREATED") {        return { state: import_util_waiter.WaiterState.SUCCESS, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.status;      }, "returnComparator");      if (returnComparator() === "CREATE_FAILED") {        return { state: import_util_waiter.WaiterState.FAILURE, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.status;      }, "returnComparator");      if (returnComparator() === "CREATING") {        return { state: import_util_waiter.WaiterState.RETRY, reason };      }    } catch (e) {    }  } catch (exception) {    reason = exception;  }  return { state: import_util_waiter.WaiterState.RETRY, reason };}, "checkState");var waitForSpaceCreated = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 300, maxDelay: 7200 };  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);}, "waitForSpaceCreated");var waitUntilSpaceCreated = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 300, maxDelay: 7200 };  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);  return (0, import_util_waiter.checkExceptions)(result);}, "waitUntilSpaceCreated"); // src/waiters/waitForSpaceDeleted.ts var checkState4 = /* @__PURE__ */ __name(async (client, input) => {  let reason;  try {    const result = await client.send(new GetSpaceCommand(input));    reason = result;    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.status;      }, "returnComparator");      if (returnComparator() === "DELETED") {        return { state: import_util_waiter.WaiterState.SUCCESS, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.status;      }, "returnComparator");      if (returnComparator() === "DELETE_FAILED") {        return { state: import_util_waiter.WaiterState.FAILURE, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.status;      }, "returnComparator");      if (returnComparator() === "DELETING") {        return { state: import_util_waiter.WaiterState.RETRY, reason };      }    } catch (e) {    }  } catch (exception) {    reason = exception;    if (exception.name && exception.name == "ResourceNotFoundException") {      return { state: import_util_waiter.WaiterState.SUCCESS, reason };    }  }  return { state: import_util_waiter.WaiterState.RETRY, reason };}, "checkState");var waitForSpaceDeleted = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 300, maxDelay: 7200 };  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);}, "waitForSpaceDeleted");var waitUntilSpaceDeleted = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 300, maxDelay: 7200 };  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);  return (0, import_util_waiter.checkExceptions)(result);}, "waitUntilSpaceDeleted");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = {  RepostspaceServiceException,  __Client,  RepostspaceClient,  Repostspace,  $Command,  BatchAddChannelRoleToAccessorsCommand,  BatchAddRoleCommand,  BatchRemoveChannelRoleFromAccessorsCommand,  BatchRemoveRoleCommand,  CreateChannelCommand,  CreateSpaceCommand,  DeleteSpaceCommand,  DeregisterAdminCommand,  GetChannelCommand,  GetSpaceCommand,  ListChannelsCommand,  ListSpacesCommand,  ListTagsForResourceCommand,  RegisterAdminCommand,  SendInvitesCommand,  TagResourceCommand,  UntagResourceCommand,  UpdateChannelCommand,  UpdateSpaceCommand,  paginateListChannels,  paginateListSpaces,  waitForChannelCreated,  waitUntilChannelCreated,  waitForChannelDeleted,  waitUntilChannelDeleted,  waitForSpaceCreated,  waitUntilSpaceCreated,  waitForSpaceDeleted,  waitUntilSpaceDeleted,  AccessDeniedException,  ChannelRole,  InternalServerException,  ResourceNotFoundException,  ThrottlingException,  ValidationExceptionReason,  ValidationException,  Role,  ChannelStatus,  ConfigurationStatus,  ConflictException,  ServiceQuotaExceededException,  FeatureEnableParameter,  TierLevel,  FeatureEnableStatus,  VanityDomainStatus,  ChannelDataFilterSensitiveLog,  CreateChannelInputFilterSensitiveLog,  SupportedEmailDomainsParametersFilterSensitiveLog,  CreateSpaceInputFilterSensitiveLog,  GetChannelOutputFilterSensitiveLog,  SupportedEmailDomainsStatusFilterSensitiveLog,  GetSpaceOutputFilterSensitiveLog,  ListChannelsOutputFilterSensitiveLog,  SpaceDataFilterSensitiveLog,  ListSpacesOutputFilterSensitiveLog,  ListTagsForResourceResponseFilterSensitiveLog,  SendInvitesInputFilterSensitiveLog,  TagResourceRequestFilterSensitiveLog,  UpdateChannelInputFilterSensitiveLog,  UpdateSpaceInputFilterSensitiveLog});