File Explorer

/proc/self/root/proc/self/root/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.js16.1 KB · 430 lines
'use strict'; var client$1 = require('@aws-sdk/core/client');var core = require('@smithy/core');var client = require('@smithy/core/client');var config = require('@smithy/core/config');var endpoints = require('@smithy/core/endpoints');var protocols = require('@smithy/core/protocols');var retry = require('@smithy/core/retry');var schema = require('@smithy/core/schema');var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');var runtimeConfig = require('./runtimeConfig');var schemas_0 = require('./schemas/schemas_0');var errors = require('./models/errors');var IvschatServiceException = require('./models/IvschatServiceException'); 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" },}; 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(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));    extensions.forEach((extension) => extension.configure(extensionConfiguration));    return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class IvschatClient extends client.Client {    config;    constructor(...[configuration]) {        const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});        super(_config_0);        this.initConfig = _config_0;        const _config_1 = resolveClientEndpointParameters(_config_0);        const _config_2 = client$1.resolveUserAgentConfig(_config_1);        const _config_3 = retry.resolveRetryConfig(_config_2);        const _config_4 = config.resolveRegionConfig(_config_3);        const _config_5 = client$1.resolveHostHeaderConfig(_config_4);        const _config_6 = endpoints.resolveEndpointConfig(_config_5);        const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);        const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);        this.config = _config_8;        this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));        this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));        this.middlewareStack.use(retry.getRetryPlugin(this.config));        this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));        this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));        this.middlewareStack.use(client$1.getLoggerPlugin(this.config));        this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));        this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {            httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultIvschatHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateChatTokenCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "CreateChatToken", {})    .n("IvschatClient", "CreateChatTokenCommand")    .sc(schemas_0.CreateChatToken$)    .build() {} class CreateLoggingConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "CreateLoggingConfiguration", {})    .n("IvschatClient", "CreateLoggingConfigurationCommand")    .sc(schemas_0.CreateLoggingConfiguration$)    .build() {} class CreateRoomCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "CreateRoom", {})    .n("IvschatClient", "CreateRoomCommand")    .sc(schemas_0.CreateRoom$)    .build() {} class DeleteLoggingConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "DeleteLoggingConfiguration", {})    .n("IvschatClient", "DeleteLoggingConfigurationCommand")    .sc(schemas_0.DeleteLoggingConfiguration$)    .build() {} class DeleteMessageCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "DeleteMessage", {})    .n("IvschatClient", "DeleteMessageCommand")    .sc(schemas_0.DeleteMessage$)    .build() {} class DeleteRoomCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "DeleteRoom", {})    .n("IvschatClient", "DeleteRoomCommand")    .sc(schemas_0.DeleteRoom$)    .build() {} class DisconnectUserCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "DisconnectUser", {})    .n("IvschatClient", "DisconnectUserCommand")    .sc(schemas_0.DisconnectUser$)    .build() {} class GetLoggingConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "GetLoggingConfiguration", {})    .n("IvschatClient", "GetLoggingConfigurationCommand")    .sc(schemas_0.GetLoggingConfiguration$)    .build() {} class GetRoomCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "GetRoom", {})    .n("IvschatClient", "GetRoomCommand")    .sc(schemas_0.GetRoom$)    .build() {} class ListLoggingConfigurationsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "ListLoggingConfigurations", {})    .n("IvschatClient", "ListLoggingConfigurationsCommand")    .sc(schemas_0.ListLoggingConfigurations$)    .build() {} class ListRoomsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "ListRooms", {})    .n("IvschatClient", "ListRoomsCommand")    .sc(schemas_0.ListRooms$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "ListTagsForResource", {})    .n("IvschatClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class SendEventCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "SendEvent", {})    .n("IvschatClient", "SendEventCommand")    .sc(schemas_0.SendEvent$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "TagResource", {})    .n("IvschatClient", "TagResourceCommand")    .sc(schemas_0.TagResource$)    .build() {} class UntagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "UntagResource", {})    .n("IvschatClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateLoggingConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "UpdateLoggingConfiguration", {})    .n("IvschatClient", "UpdateLoggingConfigurationCommand")    .sc(schemas_0.UpdateLoggingConfiguration$)    .build() {} class UpdateRoomCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonInteractiveVideoServiceChat", "UpdateRoom", {})    .n("IvschatClient", "UpdateRoomCommand")    .sc(schemas_0.UpdateRoom$)    .build() {} const paginateListLoggingConfigurations = core.createPaginator(IvschatClient, ListLoggingConfigurationsCommand, "nextToken", "nextToken", "maxResults"); const paginateListRooms = core.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 {}client.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.$Command = client.Command;exports.__Client = client.Client;exports.IvschatServiceException = IvschatServiceException.IvschatServiceException;exports.ChatTokenCapability = ChatTokenCapability;exports.CreateChatTokenCommand = CreateChatTokenCommand;exports.CreateLoggingConfigurationCommand = CreateLoggingConfigurationCommand;exports.CreateLoggingConfigurationState = CreateLoggingConfigurationState;exports.CreateRoomCommand = CreateRoomCommand;exports.DeleteLoggingConfigurationCommand = DeleteLoggingConfigurationCommand;exports.DeleteMessageCommand = DeleteMessageCommand;exports.DeleteRoomCommand = DeleteRoomCommand;exports.DisconnectUserCommand = DisconnectUserCommand;exports.FallbackResult = FallbackResult;exports.GetLoggingConfigurationCommand = GetLoggingConfigurationCommand;exports.GetRoomCommand = GetRoomCommand;exports.Ivschat = Ivschat;exports.IvschatClient = IvschatClient;exports.ListLoggingConfigurationsCommand = ListLoggingConfigurationsCommand;exports.ListRoomsCommand = ListRoomsCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.LoggingConfigurationState = LoggingConfigurationState;exports.ResourceType = ResourceType;exports.SendEventCommand = SendEventCommand;exports.TagResourceCommand = TagResourceCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateLoggingConfigurationCommand = UpdateLoggingConfigurationCommand;exports.UpdateLoggingConfigurationState = UpdateLoggingConfigurationState;exports.UpdateRoomCommand = UpdateRoomCommand;exports.ValidationExceptionReason = ValidationExceptionReason;exports.paginateListLoggingConfigurations = paginateListLoggingConfigurations;exports.paginateListRooms = paginateListRooms;Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&    !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&    Object.defineProperty(exports, '__proto__', {        enumerable: true,        value: schemas_0['__proto__']    }); Object.keys(schemas_0).forEach(function (k) {    if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];});Object.prototype.hasOwnProperty.call(errors, '__proto__') &&    !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&    Object.defineProperty(exports, '__proto__', {        enumerable: true,        value: errors['__proto__']    }); Object.keys(errors).forEach(function (k) {    if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];});