File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/client-managedblockchain/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.js22.4 KB · 640 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 ManagedBlockchainServiceException = require('./models/ManagedBlockchainServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "managedblockchain",    });};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 ManagedBlockchainClient 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.defaultManagedBlockchainHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateAccessorCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "CreateAccessor", {})    .n("ManagedBlockchainClient", "CreateAccessorCommand")    .sc(schemas_0.CreateAccessor$)    .build() {} class CreateMemberCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "CreateMember", {})    .n("ManagedBlockchainClient", "CreateMemberCommand")    .sc(schemas_0.CreateMember$)    .build() {} class CreateNetworkCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "CreateNetwork", {})    .n("ManagedBlockchainClient", "CreateNetworkCommand")    .sc(schemas_0.CreateNetwork$)    .build() {} class CreateNodeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "CreateNode", {})    .n("ManagedBlockchainClient", "CreateNodeCommand")    .sc(schemas_0.CreateNode$)    .build() {} class CreateProposalCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "CreateProposal", {})    .n("ManagedBlockchainClient", "CreateProposalCommand")    .sc(schemas_0.CreateProposal$)    .build() {} class DeleteAccessorCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "DeleteAccessor", {})    .n("ManagedBlockchainClient", "DeleteAccessorCommand")    .sc(schemas_0.DeleteAccessor$)    .build() {} class DeleteMemberCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "DeleteMember", {})    .n("ManagedBlockchainClient", "DeleteMemberCommand")    .sc(schemas_0.DeleteMember$)    .build() {} class DeleteNodeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "DeleteNode", {})    .n("ManagedBlockchainClient", "DeleteNodeCommand")    .sc(schemas_0.DeleteNode$)    .build() {} class GetAccessorCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "GetAccessor", {})    .n("ManagedBlockchainClient", "GetAccessorCommand")    .sc(schemas_0.GetAccessor$)    .build() {} class GetMemberCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "GetMember", {})    .n("ManagedBlockchainClient", "GetMemberCommand")    .sc(schemas_0.GetMember$)    .build() {} class GetNetworkCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "GetNetwork", {})    .n("ManagedBlockchainClient", "GetNetworkCommand")    .sc(schemas_0.GetNetwork$)    .build() {} class GetNodeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "GetNode", {})    .n("ManagedBlockchainClient", "GetNodeCommand")    .sc(schemas_0.GetNode$)    .build() {} class GetProposalCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "GetProposal", {})    .n("ManagedBlockchainClient", "GetProposalCommand")    .sc(schemas_0.GetProposal$)    .build() {} class ListAccessorsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "ListAccessors", {})    .n("ManagedBlockchainClient", "ListAccessorsCommand")    .sc(schemas_0.ListAccessors$)    .build() {} class ListInvitationsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "ListInvitations", {})    .n("ManagedBlockchainClient", "ListInvitationsCommand")    .sc(schemas_0.ListInvitations$)    .build() {} class ListMembersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "ListMembers", {})    .n("ManagedBlockchainClient", "ListMembersCommand")    .sc(schemas_0.ListMembers$)    .build() {} class ListNetworksCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "ListNetworks", {})    .n("ManagedBlockchainClient", "ListNetworksCommand")    .sc(schemas_0.ListNetworks$)    .build() {} class ListNodesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "ListNodes", {})    .n("ManagedBlockchainClient", "ListNodesCommand")    .sc(schemas_0.ListNodes$)    .build() {} class ListProposalsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "ListProposals", {})    .n("ManagedBlockchainClient", "ListProposalsCommand")    .sc(schemas_0.ListProposals$)    .build() {} class ListProposalVotesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "ListProposalVotes", {})    .n("ManagedBlockchainClient", "ListProposalVotesCommand")    .sc(schemas_0.ListProposalVotes$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "ListTagsForResource", {})    .n("ManagedBlockchainClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class RejectInvitationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "RejectInvitation", {})    .n("ManagedBlockchainClient", "RejectInvitationCommand")    .sc(schemas_0.RejectInvitation$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "TagResource", {})    .n("ManagedBlockchainClient", "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("TaigaWebService", "UntagResource", {})    .n("ManagedBlockchainClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateMemberCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "UpdateMember", {})    .n("ManagedBlockchainClient", "UpdateMemberCommand")    .sc(schemas_0.UpdateMember$)    .build() {} class UpdateNodeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "UpdateNode", {})    .n("ManagedBlockchainClient", "UpdateNodeCommand")    .sc(schemas_0.UpdateNode$)    .build() {} class VoteOnProposalCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("TaigaWebService", "VoteOnProposal", {})    .n("ManagedBlockchainClient", "VoteOnProposalCommand")    .sc(schemas_0.VoteOnProposal$)    .build() {} const paginateListAccessors = core.createPaginator(ManagedBlockchainClient, ListAccessorsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListInvitations = core.createPaginator(ManagedBlockchainClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListMembers = core.createPaginator(ManagedBlockchainClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults"); const paginateListNetworks = core.createPaginator(ManagedBlockchainClient, ListNetworksCommand, "NextToken", "NextToken", "MaxResults"); const paginateListNodes = core.createPaginator(ManagedBlockchainClient, ListNodesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListProposals = core.createPaginator(ManagedBlockchainClient, ListProposalsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListProposalVotes = core.createPaginator(ManagedBlockchainClient, ListProposalVotesCommand, "NextToken", "NextToken", "MaxResults"); const commands = {    CreateAccessorCommand,    CreateMemberCommand,    CreateNetworkCommand,    CreateNodeCommand,    CreateProposalCommand,    DeleteAccessorCommand,    DeleteMemberCommand,    DeleteNodeCommand,    GetAccessorCommand,    GetMemberCommand,    GetNetworkCommand,    GetNodeCommand,    GetProposalCommand,    ListAccessorsCommand,    ListInvitationsCommand,    ListMembersCommand,    ListNetworksCommand,    ListNodesCommand,    ListProposalsCommand,    ListProposalVotesCommand,    ListTagsForResourceCommand,    RejectInvitationCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateMemberCommand,    UpdateNodeCommand,    VoteOnProposalCommand,};const paginators = {    paginateListAccessors,    paginateListInvitations,    paginateListMembers,    paginateListNetworks,    paginateListNodes,    paginateListProposals,    paginateListProposalVotes,};class ManagedBlockchain extends ManagedBlockchainClient {}client.createAggregatedClient(commands, ManagedBlockchain, { paginators }); const AccessorNetworkType = {    ETHEREUM_GOERLI: "ETHEREUM_GOERLI",    ETHEREUM_MAINNET: "ETHEREUM_MAINNET",    ETHEREUM_MAINNET_AND_GOERLI: "ETHEREUM_MAINNET_AND_GOERLI",    POLYGON_MAINNET: "POLYGON_MAINNET",    POLYGON_MUMBAI: "POLYGON_MUMBAI",};const AccessorStatus = {    AVAILABLE: "AVAILABLE",    DELETED: "DELETED",    PENDING_DELETION: "PENDING_DELETION",};const AccessorType = {    BILLING_TOKEN: "BILLING_TOKEN",};const ThresholdComparator = {    GREATER_THAN: "GREATER_THAN",    GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO",};const Framework = {    ETHEREUM: "ETHEREUM",    HYPERLEDGER_FABRIC: "HYPERLEDGER_FABRIC",};const Edition = {    STANDARD: "STANDARD",    STARTER: "STARTER",};const StateDBType = {    CouchDB: "CouchDB",    LevelDB: "LevelDB",};const MemberStatus = {    AVAILABLE: "AVAILABLE",    CREATE_FAILED: "CREATE_FAILED",    CREATING: "CREATING",    DELETED: "DELETED",    DELETING: "DELETING",    INACCESSIBLE_ENCRYPTION_KEY: "INACCESSIBLE_ENCRYPTION_KEY",    UPDATING: "UPDATING",};const NetworkStatus = {    AVAILABLE: "AVAILABLE",    CREATE_FAILED: "CREATE_FAILED",    CREATING: "CREATING",    DELETED: "DELETED",    DELETING: "DELETING",};const NodeStatus = {    AVAILABLE: "AVAILABLE",    CREATE_FAILED: "CREATE_FAILED",    CREATING: "CREATING",    DELETED: "DELETED",    DELETING: "DELETING",    FAILED: "FAILED",    INACCESSIBLE_ENCRYPTION_KEY: "INACCESSIBLE_ENCRYPTION_KEY",    UNHEALTHY: "UNHEALTHY",    UPDATING: "UPDATING",};const ProposalStatus = {    ACTION_FAILED: "ACTION_FAILED",    APPROVED: "APPROVED",    EXPIRED: "EXPIRED",    IN_PROGRESS: "IN_PROGRESS",    REJECTED: "REJECTED",};const InvitationStatus = {    ACCEPTED: "ACCEPTED",    ACCEPTING: "ACCEPTING",    EXPIRED: "EXPIRED",    PENDING: "PENDING",    REJECTED: "REJECTED",};const VoteValue = {    NO: "NO",    YES: "YES",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.ManagedBlockchainServiceException = ManagedBlockchainServiceException.ManagedBlockchainServiceException;exports.AccessorNetworkType = AccessorNetworkType;exports.AccessorStatus = AccessorStatus;exports.AccessorType = AccessorType;exports.CreateAccessorCommand = CreateAccessorCommand;exports.CreateMemberCommand = CreateMemberCommand;exports.CreateNetworkCommand = CreateNetworkCommand;exports.CreateNodeCommand = CreateNodeCommand;exports.CreateProposalCommand = CreateProposalCommand;exports.DeleteAccessorCommand = DeleteAccessorCommand;exports.DeleteMemberCommand = DeleteMemberCommand;exports.DeleteNodeCommand = DeleteNodeCommand;exports.Edition = Edition;exports.Framework = Framework;exports.GetAccessorCommand = GetAccessorCommand;exports.GetMemberCommand = GetMemberCommand;exports.GetNetworkCommand = GetNetworkCommand;exports.GetNodeCommand = GetNodeCommand;exports.GetProposalCommand = GetProposalCommand;exports.InvitationStatus = InvitationStatus;exports.ListAccessorsCommand = ListAccessorsCommand;exports.ListInvitationsCommand = ListInvitationsCommand;exports.ListMembersCommand = ListMembersCommand;exports.ListNetworksCommand = ListNetworksCommand;exports.ListNodesCommand = ListNodesCommand;exports.ListProposalVotesCommand = ListProposalVotesCommand;exports.ListProposalsCommand = ListProposalsCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ManagedBlockchain = ManagedBlockchain;exports.ManagedBlockchainClient = ManagedBlockchainClient;exports.MemberStatus = MemberStatus;exports.NetworkStatus = NetworkStatus;exports.NodeStatus = NodeStatus;exports.ProposalStatus = ProposalStatus;exports.RejectInvitationCommand = RejectInvitationCommand;exports.StateDBType = StateDBType;exports.TagResourceCommand = TagResourceCommand;exports.ThresholdComparator = ThresholdComparator;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateMemberCommand = UpdateMemberCommand;exports.UpdateNodeCommand = UpdateNodeCommand;exports.VoteOnProposalCommand = VoteOnProposalCommand;exports.VoteValue = VoteValue;exports.paginateListAccessors = paginateListAccessors;exports.paginateListInvitations = paginateListInvitations;exports.paginateListMembers = paginateListMembers;exports.paginateListNetworks = paginateListNetworks;exports.paginateListNodes = paginateListNodes;exports.paginateListProposalVotes = paginateListProposalVotes;exports.paginateListProposals = paginateListProposals;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];});