File Explorer

/var/runtime/node_modules/@aws-sdk/client-ivschat/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 /.

index.js39.3 KB · 1077 lines
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");const { Command: $Command } = require("@smithy/core/client");exports.$Command = $Command;exports.__Client = Client;const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");const { defaultProvider } = require("@aws-sdk/credential-provider-node");const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");const { Sha256 } = require("@smithy/core/checksum"); const defaultIvschatHttpAuthSchemeParametersProvider = async (config, context, input) => {    return {        operation: getSmithyContext(context).operation,        region: await normalizeProvider(config.region)() || (() => {            throw new Error("expected `region` to be configured for `aws.auth#sigv4`");        })(),    };};function createAwsAuthSigv4HttpAuthOption(authParameters) {    return {        schemeId: "aws.auth#sigv4",        signingProperties: {            name: "ivschat",            region: authParameters.region,        },        propertiesExtractor: (config, context) => ({            signingProperties: {                config,                context,            },        }),    };}const defaultIvschatHttpAuthSchemeProvider = (authParameters) => {    const options = [];    switch (authParameters.operation) {        default: {            options.push(createAwsAuthSigv4HttpAuthOption(authParameters));        }    }    return options;};const resolveHttpAuthSchemeConfig = (config) => {    const config_0 = resolveAwsSdkSigV4Config(config);    return Object.assign(config_0, {        authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),    });}; const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "ivschat",    });};const commonParams = {    UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },    Endpoint: { type: "builtInParams", name: "endpoint" },    Region: { type: "builtInParams", name: "region" },    UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; var version = "3.1104.0";var packageInfo = {	version: version}; const k = "ref";const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];const _data = {    conditions: [        [c, [g]],        [c, j],        ["aws.partition", j, d],        [e, [{ [k]: "UseFIPS" }, b]],        [e, [{ [k]: "UseDualStack" }, b]],        [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],        [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]    ],    results: [        [a],        [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],        [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],        [g, i],        ["https://ivschat-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],        [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],        ["https://ivschat-fips.{Region}.{PartitionResult#dnsSuffix}", i],        [a, "FIPS is enabled but this partition does not support FIPS"],        ["https://ivschat.{Region}.{PartitionResult#dualStackDnsSuffix}", i],        [a, "DualStack is enabled but this partition does not support DualStack"],        ["https://ivschat.{Region}.{PartitionResult#dnsSuffix}", i],        [a, "Invalid Configuration: Missing Region"]    ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([    -1, 1, -1,    0, 12, 3,    1, 4, r + 11,    2, 5, r + 11,    3, 8, 6,    4, 7, r + 10,    5, r + 8, r + 9,    4, 10, 9,    6, r + 6, r + 7,    5, 11, r + 5,    6, r + 4, r + 5,    3, r + 1, 13,    4, r + 2, r + 3,]);const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); const cache = new EndpointCache({    size: 50,    params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],});const defaultEndpointResolver = (endpointParams, context = {}) => {    return cache.get(endpointParams, () => decideEndpoint(bdd, {        endpointParams: endpointParams,        logger: context.logger,    }));};customEndpointFunctions.aws = awsEndpointFunctions; class IvschatServiceException extends ServiceException {    constructor(options) {        super(options);        Object.setPrototypeOf(this, IvschatServiceException.prototype);    }} class AccessDeniedException extends IvschatServiceException {    name = "AccessDeniedException";    $fault = "client";    constructor(opts) {        super({            name: "AccessDeniedException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, AccessDeniedException.prototype);    }}class PendingVerification extends IvschatServiceException {    name = "PendingVerification";    $fault = "client";    constructor(opts) {        super({            name: "PendingVerification",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, PendingVerification.prototype);    }}class ResourceNotFoundException extends IvschatServiceException {    name = "ResourceNotFoundException";    $fault = "client";    resourceId;    resourceType;    constructor(opts) {        super({            name: "ResourceNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ResourceNotFoundException.prototype);        this.resourceId = opts.resourceId;        this.resourceType = opts.resourceType;    }}class ValidationException extends IvschatServiceException {    name = "ValidationException";    $fault = "client";    reason;    fieldList;    constructor(opts) {        super({            name: "ValidationException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ValidationException.prototype);        this.reason = opts.reason;        this.fieldList = opts.fieldList;    }}class ConflictException extends IvschatServiceException {    name = "ConflictException";    $fault = "client";    resourceId;    resourceType;    constructor(opts) {        super({            name: "ConflictException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ConflictException.prototype);        this.resourceId = opts.resourceId;        this.resourceType = opts.resourceType;    }}class ServiceQuotaExceededException extends IvschatServiceException {    name = "ServiceQuotaExceededException";    $fault = "client";    resourceId;    resourceType;    limit;    constructor(opts) {        super({            name: "ServiceQuotaExceededException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);        this.resourceId = opts.resourceId;        this.resourceType = opts.resourceType;        this.limit = opts.limit;    }}class ThrottlingException extends IvschatServiceException {    name = "ThrottlingException";    $fault = "client";    resourceId;    resourceType;    limit;    constructor(opts) {        super({            name: "ThrottlingException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ThrottlingException.prototype);        this.resourceId = opts.resourceId;        this.resourceType = opts.resourceType;        this.limit = opts.limit;    }}class InternalServerException extends IvschatServiceException {    name = "InternalServerException";    $fault = "server";    constructor(opts) {        super({            name: "InternalServerException",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, InternalServerException.prototype);    }} const _ADE = "AccessDeniedException";const _CCT = "CreateChatToken";const _CCTR = "CreateChatTokenRequest";const _CCTRr = "CreateChatTokenResponse";const _CE = "ConflictException";const _CLC = "CreateLoggingConfiguration";const _CLCR = "CreateLoggingConfigurationRequest";const _CLCRr = "CreateLoggingConfigurationResponse";const _CR = "CreateRoom";const _CRR = "CreateRoomRequest";const _CRRr = "CreateRoomResponse";const _CT = "ChatToken";const _CTA = "ChatTokenAttributes";const _CWLDC = "CloudWatchLogsDestinationConfiguration";const _DC = "DestinationConfiguration";const _DLC = "DeleteLoggingConfiguration";const _DLCR = "DeleteLoggingConfigurationRequest";const _DM = "DeleteMessage";const _DMR = "DeleteMessageRequest";const _DMRe = "DeleteMessageResponse";const _DR = "DeleteRoom";const _DRR = "DeleteRoomRequest";const _DU = "DisconnectUser";const _DUR = "DisconnectUserRequest";const _DURi = "DisconnectUserResponse";const _FDC = "FirehoseDestinationConfiguration";const _GLC = "GetLoggingConfiguration";const _GLCR = "GetLoggingConfigurationRequest";const _GLCRe = "GetLoggingConfigurationResponse";const _GR = "GetRoom";const _GRR = "GetRoomRequest";const _GRRe = "GetRoomResponse";const _ISE = "InternalServerException";const _LCL = "LoggingConfigurationList";const _LCS = "LoggingConfigurationSummary";const _LLC = "ListLoggingConfigurations";const _LLCR = "ListLoggingConfigurationsRequest";const _LLCRi = "ListLoggingConfigurationsResponse";const _LR = "ListRooms";const _LRR = "ListRoomsRequest";const _LRRi = "ListRoomsResponse";const _LTFR = "ListTagsForResource";const _LTFRR = "ListTagsForResourceRequest";const _LTFRRi = "ListTagsForResourceResponse";const _MRH = "MessageReviewHandler";const _PV = "PendingVerification";const _RL = "RoomList";const _RNFE = "ResourceNotFoundException";const _RS = "RoomSummary";const _SDC = "S3DestinationConfiguration";const _SE = "SendEvent";const _SER = "SendEventRequest";const _SERe = "SendEventResponse";const _SQEE = "ServiceQuotaExceededException";const _TE = "ThrottlingException";const _TR = "TagResource";const _TRR = "TagResourceRequest";const _TRRa = "TagResourceResponse";const _UID = "UserID";const _ULC = "UpdateLoggingConfiguration";const _ULCR = "UpdateLoggingConfigurationRequest";const _ULCRp = "UpdateLoggingConfigurationResponse";const _UR = "UntagResource";const _URR = "UntagResourceRequest";const _URRn = "UntagResourceResponse";const _URRp = "UpdateRoomRequest";const _URRpd = "UpdateRoomResponse";const _URp = "UpdateRoom";const _VE = "ValidationException";const _VEF = "ValidationExceptionField";const _VEFL = "ValidationExceptionFieldList";const _a = "attributes";const _ar = "arn";const _bN = "bucketName";const _c = "client";const _cT = "createTime";const _cWL = "cloudWatchLogs";const _ca = "capabilities";const _dC = "destinationConfiguration";const _dSN = "deliveryStreamName";const _e = "error";const _eN = "eventName";const _f = "firehose";const _fL = "fieldList";const _fR = "fallbackResult";const _h = "http";const _hE = "httpError";const _hQ = "httpQuery";const _i = "id";const _id = "identifier";const _l = "limit";const _lC = "loggingConfigurations";const _lCI = "loggingConfigurationIdentifiers";const _lCIo = "loggingConfigurationIdentifier";const _lGN = "logGroupName";const _m = "message";const _mML = "maximumMessageLength";const _mMRPS = "maximumMessageRatePerSecond";const _mR = "maxResults";const _mRH = "messageReviewHandler";const _mRHU = "messageReviewHandlerUri";const _n = "name";const _nT = "nextToken";const _r = "reason";const _rA = "resourceArn";const _rI = "resourceId";const _rIo = "roomIdentifier";const _rT = "resourceType";const _ro = "rooms";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ivschat";const _sDIM = "sessionDurationInMinutes";const _sET = "sessionExpirationTime";const _s_ = "s3";const _se = "server";const _st = "state";const _t = "token";const _tET = "tokenExpirationTime";const _tK = "tagKeys";const _ta = "tags";const _u = "uri";const _uI = "userId";const _uT = "updateTime";const n0 = "com.amazonaws.ivschat";const _s_registry = TypeRegistry.for(_s);var IvschatServiceException$ = [-3, _s, "IvschatServiceException", 0, [], []];_s_registry.registerError(IvschatServiceException$, IvschatServiceException);const n0_registry = TypeRegistry.for(n0);var AccessDeniedException$ = [-3, n0, _ADE,    { [_e]: _c, [_hE]: 403 },    [_m],    [0], 1];n0_registry.registerError(AccessDeniedException$, AccessDeniedException);var ConflictException$ = [-3, n0, _CE,    { [_e]: _c, [_hE]: 409 },    [_m, _rI, _rT],    [0, 0, 0], 3];n0_registry.registerError(ConflictException$, ConflictException);var InternalServerException$ = [-3, n0, _ISE,    { [_e]: _se, [_hE]: 500 },    [_m],    [0], 1];n0_registry.registerError(InternalServerException$, InternalServerException);var PendingVerification$ = [-3, n0, _PV,    { [_e]: _c, [_hE]: 403 },    [_m],    [0], 1];n0_registry.registerError(PendingVerification$, PendingVerification);var ResourceNotFoundException$ = [-3, n0, _RNFE,    { [_e]: _c, [_hE]: 404 },    [_m, _rI, _rT],    [0, 0, 0], 3];n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);var ServiceQuotaExceededException$ = [-3, n0, _SQEE,    { [_e]: _c, [_hE]: 402 },    [_m, _rI, _rT, _l],    [0, 0, 0, 1], 4];n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);var ThrottlingException$ = [-3, n0, _TE,    { [_e]: _c, [_hE]: 429 },    [_m, _rI, _rT, _l],    [0, 0, 0, 1], 4];n0_registry.registerError(ThrottlingException$, ThrottlingException);var ValidationException$ = [-3, n0, _VE,    { [_e]: _c, [_hE]: 400 },    [_m, _r, _fL],    [0, 0, () => ValidationExceptionFieldList], 2];n0_registry.registerError(ValidationException$, ValidationException);const errorTypeRegistries = [    _s_registry,    n0_registry,];var ChatToken = [0, n0, _CT, 8, 0];var UserID = [0, n0, _UID, 8, 0];var CloudWatchLogsDestinationConfiguration$ = [3, n0, _CWLDC,    0,    [_lGN],    [0], 1];var CreateChatTokenRequest$ = [3, n0, _CCTR,    0,    [_rIo, _uI, _ca, _sDIM, _a],    [0, [() => UserID, 0], 64 | 0, 1, [() => ChatTokenAttributes, 0]], 2];var CreateChatTokenResponse$ = [3, n0, _CCTRr,    0,    [_t, _tET, _sET],    [[() => ChatToken, 0], 5, 5]];var CreateLoggingConfigurationRequest$ = [3, n0, _CLCR,    0,    [_dC, _n, _ta],    [() => DestinationConfiguration$, 0, 128 | 0], 1];var CreateLoggingConfigurationResponse$ = [3, n0, _CLCRr,    0,    [_ar, _i, _cT, _uT, _n, _dC, _st, _ta],    [0, 0, 5, 5, 0, () => DestinationConfiguration$, 0, 128 | 0]];var CreateRoomRequest$ = [3, n0, _CRR,    0,    [_n, _mMRPS, _mML, _mRH, _ta, _lCI],    [0, 1, 1, () => MessageReviewHandler$, 128 | 0, 64 | 0]];var CreateRoomResponse$ = [3, n0, _CRRr,    0,    [_ar, _i, _n, _cT, _uT, _mMRPS, _mML, _mRH, _ta, _lCI],    [0, 0, 0, 5, 5, 1, 1, () => MessageReviewHandler$, 128 | 0, 64 | 0]];var DeleteLoggingConfigurationRequest$ = [3, n0, _DLCR,    0,    [_id],    [0], 1];var DeleteMessageRequest$ = [3, n0, _DMR,    0,    [_rIo, _i, _r],    [0, 0, 0], 2];var DeleteMessageResponse$ = [3, n0, _DMRe,    0,    [_i],    [0]];var DeleteRoomRequest$ = [3, n0, _DRR,    0,    [_id],    [0], 1];var DisconnectUserRequest$ = [3, n0, _DUR,    0,    [_rIo, _uI, _r],    [0, [() => UserID, 0], 0], 2];var DisconnectUserResponse$ = [3, n0, _DURi,    0,    [],    []];var FirehoseDestinationConfiguration$ = [3, n0, _FDC,    0,    [_dSN],    [0], 1];var GetLoggingConfigurationRequest$ = [3, n0, _GLCR,    0,    [_id],    [0], 1];var GetLoggingConfigurationResponse$ = [3, n0, _GLCRe,    0,    [_ar, _i, _cT, _uT, _n, _dC, _st, _ta],    [0, 0, 5, 5, 0, () => DestinationConfiguration$, 0, 128 | 0]];var GetRoomRequest$ = [3, n0, _GRR,    0,    [_id],    [0], 1];var GetRoomResponse$ = [3, n0, _GRRe,    0,    [_ar, _i, _n, _cT, _uT, _mMRPS, _mML, _mRH, _ta, _lCI],    [0, 0, 0, 5, 5, 1, 1, () => MessageReviewHandler$, 128 | 0, 64 | 0]];var ListLoggingConfigurationsRequest$ = [3, n0, _LLCR,    0,    [_nT, _mR],    [0, 1]];var ListLoggingConfigurationsResponse$ = [3, n0, _LLCRi,    0,    [_lC, _nT],    [() => LoggingConfigurationList, 0], 1];var ListRoomsRequest$ = [3, n0, _LRR,    0,    [_n, _nT, _mR, _mRHU, _lCIo],    [0, 0, 1, 0, 0]];var ListRoomsResponse$ = [3, n0, _LRRi,    0,    [_ro, _nT],    [() => RoomList, 0], 1];var ListTagsForResourceRequest$ = [3, n0, _LTFRR,    0,    [_rA],    [[0, 1]], 1];var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,    0,    [_ta],    [128 | 0], 1];var LoggingConfigurationSummary$ = [3, n0, _LCS,    0,    [_ar, _i, _cT, _uT, _n, _dC, _st, _ta],    [0, 0, 5, 5, 0, () => DestinationConfiguration$, 0, 128 | 0]];var MessageReviewHandler$ = [3, n0, _MRH,    0,    [_u, _fR],    [0, 0]];var RoomSummary$ = [3, n0, _RS,    0,    [_ar, _i, _n, _mRH, _cT, _uT, _ta, _lCI],    [0, 0, 0, () => MessageReviewHandler$, 5, 5, 128 | 0, 64 | 0]];var S3DestinationConfiguration$ = [3, n0, _SDC,    0,    [_bN],    [0], 1];var SendEventRequest$ = [3, n0, _SER,    0,    [_rIo, _eN, _a],    [0, 0, 128 | 0], 2];var SendEventResponse$ = [3, n0, _SERe,    0,    [_i],    [0]];var TagResourceRequest$ = [3, n0, _TRR,    0,    [_rA, _ta],    [[0, 1], 128 | 0], 2];var TagResourceResponse$ = [3, n0, _TRRa,    0,    [],    []];var UntagResourceRequest$ = [3, n0, _URR,    0,    [_rA, _tK],    [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2];var UntagResourceResponse$ = [3, n0, _URRn,    0,    [],    []];var UpdateLoggingConfigurationRequest$ = [3, n0, _ULCR,    0,    [_id, _n, _dC],    [0, 0, () => DestinationConfiguration$], 1];var UpdateLoggingConfigurationResponse$ = [3, n0, _ULCRp,    0,    [_ar, _i, _cT, _uT, _n, _dC, _st, _ta],    [0, 0, 5, 5, 0, () => DestinationConfiguration$, 0, 128 | 0]];var UpdateRoomRequest$ = [3, n0, _URRp,    0,    [_id, _n, _mMRPS, _mML, _mRH, _lCI],    [0, 0, 1, 1, () => MessageReviewHandler$, 64 | 0], 1];var UpdateRoomResponse$ = [3, n0, _URRpd,    0,    [_ar, _i, _n, _cT, _uT, _mMRPS, _mML, _mRH, _ta, _lCI],    [0, 0, 0, 5, 5, 1, 1, () => MessageReviewHandler$, 128 | 0, 64 | 0]];var ValidationExceptionField$ = [3, n0, _VEF,    0,    [_n, _m],    [0, 0], 2];var __Unit = "unit";var LoggingConfigurationList = [1, n0, _LCL,    0, () => LoggingConfigurationSummary$];var RoomList = [1, n0, _RL,    0, () => RoomSummary$];var ValidationExceptionFieldList = [1, n0, _VEFL,    0, () => ValidationExceptionField$];var ChatTokenAttributes = [2, n0, _CTA,    8, 0, 0];var DestinationConfiguration$ = [4, n0, _DC,    0,    [_s_, _cWL, _f],    [() => S3DestinationConfiguration$, () => CloudWatchLogsDestinationConfiguration$, () => FirehoseDestinationConfiguration$]];var CreateChatToken$ = [9, n0, _CCT,    { [_h]: ["POST", "/CreateChatToken", 200] }, () => CreateChatTokenRequest$, () => CreateChatTokenResponse$];var CreateLoggingConfiguration$ = [9, n0, _CLC,    { [_h]: ["POST", "/CreateLoggingConfiguration", 200] }, () => CreateLoggingConfigurationRequest$, () => CreateLoggingConfigurationResponse$];var CreateRoom$ = [9, n0, _CR,    { [_h]: ["POST", "/CreateRoom", 200] }, () => CreateRoomRequest$, () => CreateRoomResponse$];var DeleteLoggingConfiguration$ = [9, n0, _DLC,    { [_h]: ["POST", "/DeleteLoggingConfiguration", 204] }, () => DeleteLoggingConfigurationRequest$, () => __Unit];var DeleteMessage$ = [9, n0, _DM,    { [_h]: ["POST", "/DeleteMessage", 200] }, () => DeleteMessageRequest$, () => DeleteMessageResponse$];var DeleteRoom$ = [9, n0, _DR,    { [_h]: ["POST", "/DeleteRoom", 204] }, () => DeleteRoomRequest$, () => __Unit];var DisconnectUser$ = [9, n0, _DU,    { [_h]: ["POST", "/DisconnectUser", 200] }, () => DisconnectUserRequest$, () => DisconnectUserResponse$];var GetLoggingConfiguration$ = [9, n0, _GLC,    { [_h]: ["POST", "/GetLoggingConfiguration", 200] }, () => GetLoggingConfigurationRequest$, () => GetLoggingConfigurationResponse$];var GetRoom$ = [9, n0, _GR,    { [_h]: ["POST", "/GetRoom", 200] }, () => GetRoomRequest$, () => GetRoomResponse$];var ListLoggingConfigurations$ = [9, n0, _LLC,    { [_h]: ["POST", "/ListLoggingConfigurations", 200] }, () => ListLoggingConfigurationsRequest$, () => ListLoggingConfigurationsResponse$];var ListRooms$ = [9, n0, _LR,    { [_h]: ["POST", "/ListRooms", 200] }, () => ListRoomsRequest$, () => ListRoomsResponse$];var ListTagsForResource$ = [9, n0, _LTFR,    { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$];var SendEvent$ = [9, n0, _SE,    { [_h]: ["POST", "/SendEvent", 200] }, () => SendEventRequest$, () => SendEventResponse$];var TagResource$ = [9, n0, _TR,    { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$];var UntagResource$ = [9, n0, _UR,    { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$];var UpdateLoggingConfiguration$ = [9, n0, _ULC,    { [_h]: ["POST", "/UpdateLoggingConfiguration", 200] }, () => UpdateLoggingConfigurationRequest$, () => UpdateLoggingConfigurationResponse$];var UpdateRoom$ = [9, n0, _URp,    { [_h]: ["POST", "/UpdateRoom", 200] }, () => UpdateRoomRequest$, () => UpdateRoomResponse$]; const getRuntimeConfig$1 = (config) => {    return {        apiVersion: "2020-07-14",        base64Decoder: config?.base64Decoder ?? fromBase64,        base64Encoder: config?.base64Encoder ?? toBase64,        disableHostPrefix: config?.disableHostPrefix ?? false,        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,        extensions: config?.extensions ?? [],        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultIvschatHttpAuthSchemeProvider,        httpAuthSchemes: config?.httpAuthSchemes ?? [            {                schemeId: "aws.auth#sigv4",                identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),                signer: new AwsSdkSigV4Signer(),            },        ],        logger: config?.logger ?? new NoOpLogger(),        protocol: config?.protocol ?? AwsRestJsonProtocol,        protocolSettings: config?.protocolSettings ?? {            defaultNamespace: "com.amazonaws.ivschat",            errorTypeRegistries,            version: "2020-07-14",            serviceTarget: "AmazonInteractiveVideoServiceChat",        },        serviceId: config?.serviceId ?? "ivschat",        sha256: config?.sha256 ?? Sha256,        urlParser: config?.urlParser ?? parseUrl,        utf8Decoder: config?.utf8Decoder ?? fromUtf8,        utf8Encoder: config?.utf8Encoder ?? toUtf8,    };}; const getRuntimeConfig = (config) => {    emitWarningIfUnsupportedVersion(process.version);    const defaultsMode = resolveDefaultsModeConfig(config);    const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);    const clientSharedValues = getRuntimeConfig$1(config);    emitWarningIfUnsupportedVersion$1(process.version);    const loaderConfig = {        profile: config?.profile,        logger: clientSharedValues.logger,    };    return {        ...clientSharedValues,        ...config,        runtime: "node",        defaultsMode,        authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),        bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,        credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),        maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),        region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),        requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),        retryMode: config?.retryMode ??            loadConfig({                ...NODE_RETRY_MODE_CONFIG_OPTIONS,                default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,            }, config),        streamCollector: config?.streamCollector ?? streamCollector,        useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),        useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),        userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),    };}; const getHttpAuthExtensionConfiguration = (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;        },    };};const resolveHttpAuthRuntimeConfig = (config) => {    return {        httpAuthSchemes: config.httpAuthSchemes(),        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),        credentials: config.credentials(),    };}; const resolveRuntimeExtensions = (runtimeConfig, extensions) => {    const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));    extensions.forEach((extension) => extension.configure(extensionConfiguration));    return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class IvschatClient extends Client {    config;    constructor(...[configuration]) {        const _config_0 = getRuntimeConfig(configuration || {});        super(_config_0);        this.initConfig = _config_0;        const _config_1 = resolveClientEndpointParameters(_config_0);        const _config_2 = resolveUserAgentConfig(_config_1);        const _config_3 = resolveRetryConfig(_config_2);        const _config_4 = resolveRegionConfig(_config_3);        const _config_5 = resolveHostHeaderConfig(_config_4);        const _config_6 = resolveEndpointConfig(_config_5);        const _config_7 = resolveHttpAuthSchemeConfig(_config_6);        const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);        this.config = _config_8;        this.middlewareStack.use(getSchemaSerdePlugin(this.config));        this.middlewareStack.use(getUserAgentPlugin(this.config));        this.middlewareStack.use(getRetryPlugin(this.config));        this.middlewareStack.use(getContentLengthPlugin(this.config));        this.middlewareStack.use(getHostHeaderPlugin(this.config));        this.middlewareStack.use(getLoggerPlugin(this.config));        this.middlewareStack.use(getRecursionDetectionPlugin(this.config));        this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {            httpAuthSchemeParametersProvider: defaultIvschatHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} const command = makeBuilder(commonParams, "AmazonInteractiveVideoServiceChat", "IvschatClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CreateChatTokenCommand extends command(_ep0, _mw0, "CreateChatToken", CreateChatToken$) {} class CreateLoggingConfigurationCommand extends command(_ep0, _mw0, "CreateLoggingConfiguration", CreateLoggingConfiguration$) {} class CreateRoomCommand extends command(_ep0, _mw0, "CreateRoom", CreateRoom$) {} class DeleteLoggingConfigurationCommand extends command(_ep0, _mw0, "DeleteLoggingConfiguration", DeleteLoggingConfiguration$) {} class DeleteMessageCommand extends command(_ep0, _mw0, "DeleteMessage", DeleteMessage$) {} class DeleteRoomCommand extends command(_ep0, _mw0, "DeleteRoom", DeleteRoom$) {} class DisconnectUserCommand extends command(_ep0, _mw0, "DisconnectUser", DisconnectUser$) {} class GetLoggingConfigurationCommand extends command(_ep0, _mw0, "GetLoggingConfiguration", GetLoggingConfiguration$) {} class GetRoomCommand extends command(_ep0, _mw0, "GetRoom", GetRoom$) {} class ListLoggingConfigurationsCommand extends command(_ep0, _mw0, "ListLoggingConfigurations", ListLoggingConfigurations$) {} class ListRoomsCommand extends command(_ep0, _mw0, "ListRooms", ListRooms$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class SendEventCommand extends command(_ep0, _mw0, "SendEvent", SendEvent$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} class UpdateLoggingConfigurationCommand extends command(_ep0, _mw0, "UpdateLoggingConfiguration", UpdateLoggingConfiguration$) {} class UpdateRoomCommand extends command(_ep0, _mw0, "UpdateRoom", UpdateRoom$) {} const paginateListLoggingConfigurations = createPaginator(IvschatClient, ListLoggingConfigurationsCommand, "nextToken", "nextToken", "maxResults"); const paginateListRooms = createPaginator(IvschatClient, ListRoomsCommand, "nextToken", "nextToken", "maxResults"); const commands = {    CreateChatTokenCommand,    CreateLoggingConfigurationCommand,    CreateRoomCommand,    DeleteLoggingConfigurationCommand,    DeleteMessageCommand,    DeleteRoomCommand,    DisconnectUserCommand,    GetLoggingConfigurationCommand,    GetRoomCommand,    ListLoggingConfigurationsCommand,    ListRoomsCommand,    ListTagsForResourceCommand,    SendEventCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateLoggingConfigurationCommand,    UpdateRoomCommand,};const paginators = {    paginateListLoggingConfigurations,    paginateListRooms,};class Ivschat extends IvschatClient {}createAggregatedClient(commands, Ivschat, { paginators }); const ChatTokenCapability = {    DELETE_MESSAGE: "DELETE_MESSAGE",    DISCONNECT_USER: "DISCONNECT_USER",    SEND_MESSAGE: "SEND_MESSAGE",};const ResourceType = {    ROOM: "ROOM",};const ValidationExceptionReason = {    FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",    OTHER: "OTHER",    UNKNOWN_OPERATION: "UNKNOWN_OPERATION",};const CreateLoggingConfigurationState = {    ACTIVE: "ACTIVE",};const FallbackResult = {    ALLOW: "ALLOW",    DENY: "DENY",};const LoggingConfigurationState = {    ACTIVE: "ACTIVE",    CREATE_FAILED: "CREATE_FAILED",    CREATING: "CREATING",    DELETE_FAILED: "DELETE_FAILED",    DELETING: "DELETING",    UPDATE_FAILED: "UPDATE_FAILED",    UPDATING: "UPDATING",};const UpdateLoggingConfigurationState = {    ACTIVE: "ACTIVE",}; exports.AccessDeniedException = AccessDeniedException;exports.AccessDeniedException$ = AccessDeniedException$;exports.ChatTokenCapability = ChatTokenCapability;exports.CloudWatchLogsDestinationConfiguration$ = CloudWatchLogsDestinationConfiguration$;exports.ConflictException = ConflictException;exports.ConflictException$ = ConflictException$;exports.CreateChatToken$ = CreateChatToken$;exports.CreateChatTokenCommand = CreateChatTokenCommand;exports.CreateChatTokenRequest$ = CreateChatTokenRequest$;exports.CreateChatTokenResponse$ = CreateChatTokenResponse$;exports.CreateLoggingConfiguration$ = CreateLoggingConfiguration$;exports.CreateLoggingConfigurationCommand = CreateLoggingConfigurationCommand;exports.CreateLoggingConfigurationRequest$ = CreateLoggingConfigurationRequest$;exports.CreateLoggingConfigurationResponse$ = CreateLoggingConfigurationResponse$;exports.CreateLoggingConfigurationState = CreateLoggingConfigurationState;exports.CreateRoom$ = CreateRoom$;exports.CreateRoomCommand = CreateRoomCommand;exports.CreateRoomRequest$ = CreateRoomRequest$;exports.CreateRoomResponse$ = CreateRoomResponse$;exports.DeleteLoggingConfiguration$ = DeleteLoggingConfiguration$;exports.DeleteLoggingConfigurationCommand = DeleteLoggingConfigurationCommand;exports.DeleteLoggingConfigurationRequest$ = DeleteLoggingConfigurationRequest$;exports.DeleteMessage$ = DeleteMessage$;exports.DeleteMessageCommand = DeleteMessageCommand;exports.DeleteMessageRequest$ = DeleteMessageRequest$;exports.DeleteMessageResponse$ = DeleteMessageResponse$;exports.DeleteRoom$ = DeleteRoom$;exports.DeleteRoomCommand = DeleteRoomCommand;exports.DeleteRoomRequest$ = DeleteRoomRequest$;exports.DestinationConfiguration$ = DestinationConfiguration$;exports.DisconnectUser$ = DisconnectUser$;exports.DisconnectUserCommand = DisconnectUserCommand;exports.DisconnectUserRequest$ = DisconnectUserRequest$;exports.DisconnectUserResponse$ = DisconnectUserResponse$;exports.FallbackResult = FallbackResult;exports.FirehoseDestinationConfiguration$ = FirehoseDestinationConfiguration$;exports.GetLoggingConfiguration$ = GetLoggingConfiguration$;exports.GetLoggingConfigurationCommand = GetLoggingConfigurationCommand;exports.GetLoggingConfigurationRequest$ = GetLoggingConfigurationRequest$;exports.GetLoggingConfigurationResponse$ = GetLoggingConfigurationResponse$;exports.GetRoom$ = GetRoom$;exports.GetRoomCommand = GetRoomCommand;exports.GetRoomRequest$ = GetRoomRequest$;exports.GetRoomResponse$ = GetRoomResponse$;exports.InternalServerException = InternalServerException;exports.InternalServerException$ = InternalServerException$;exports.Ivschat = Ivschat;exports.IvschatClient = IvschatClient;exports.IvschatServiceException = IvschatServiceException;exports.IvschatServiceException$ = IvschatServiceException$;exports.ListLoggingConfigurations$ = ListLoggingConfigurations$;exports.ListLoggingConfigurationsCommand = ListLoggingConfigurationsCommand;exports.ListLoggingConfigurationsRequest$ = ListLoggingConfigurationsRequest$;exports.ListLoggingConfigurationsResponse$ = ListLoggingConfigurationsResponse$;exports.ListRooms$ = ListRooms$;exports.ListRoomsCommand = ListRoomsCommand;exports.ListRoomsRequest$ = ListRoomsRequest$;exports.ListRoomsResponse$ = ListRoomsResponse$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;exports.LoggingConfigurationState = LoggingConfigurationState;exports.LoggingConfigurationSummary$ = LoggingConfigurationSummary$;exports.MessageReviewHandler$ = MessageReviewHandler$;exports.PendingVerification = PendingVerification;exports.PendingVerification$ = PendingVerification$;exports.ResourceNotFoundException = ResourceNotFoundException;exports.ResourceNotFoundException$ = ResourceNotFoundException$;exports.ResourceType = ResourceType;exports.RoomSummary$ = RoomSummary$;exports.S3DestinationConfiguration$ = S3DestinationConfiguration$;exports.SendEvent$ = SendEvent$;exports.SendEventCommand = SendEventCommand;exports.SendEventRequest$ = SendEventRequest$;exports.SendEventResponse$ = SendEventResponse$;exports.ServiceQuotaExceededException = ServiceQuotaExceededException;exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceRequest$ = TagResourceRequest$;exports.TagResourceResponse$ = TagResourceResponse$;exports.ThrottlingException = ThrottlingException;exports.ThrottlingException$ = ThrottlingException$;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceRequest$ = UntagResourceRequest$;exports.UntagResourceResponse$ = UntagResourceResponse$;exports.UpdateLoggingConfiguration$ = UpdateLoggingConfiguration$;exports.UpdateLoggingConfigurationCommand = UpdateLoggingConfigurationCommand;exports.UpdateLoggingConfigurationRequest$ = UpdateLoggingConfigurationRequest$;exports.UpdateLoggingConfigurationResponse$ = UpdateLoggingConfigurationResponse$;exports.UpdateLoggingConfigurationState = UpdateLoggingConfigurationState;exports.UpdateRoom$ = UpdateRoom$;exports.UpdateRoomCommand = UpdateRoomCommand;exports.UpdateRoomRequest$ = UpdateRoomRequest$;exports.UpdateRoomResponse$ = UpdateRoomResponse$;exports.ValidationException = ValidationException;exports.ValidationException$ = ValidationException$;exports.ValidationExceptionField$ = ValidationExceptionField$;exports.ValidationExceptionReason = ValidationExceptionReason;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListLoggingConfigurations = paginateListLoggingConfigurations;exports.paginateListRooms = paginateListRooms;