File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/client-codeartifact/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.js36.9 KB · 966 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 CodeartifactServiceException = require('./models/CodeartifactServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "codeartifact",    });};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 CodeartifactClient 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.defaultCodeartifactHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class AssociateExternalConnectionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "AssociateExternalConnection", {})    .n("CodeartifactClient", "AssociateExternalConnectionCommand")    .sc(schemas_0.AssociateExternalConnection$)    .build() {} class CopyPackageVersionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "CopyPackageVersions", {})    .n("CodeartifactClient", "CopyPackageVersionsCommand")    .sc(schemas_0.CopyPackageVersions$)    .build() {} class CreateDomainCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "CreateDomain", {})    .n("CodeartifactClient", "CreateDomainCommand")    .sc(schemas_0.CreateDomain$)    .build() {} class CreatePackageGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "CreatePackageGroup", {})    .n("CodeartifactClient", "CreatePackageGroupCommand")    .sc(schemas_0.CreatePackageGroup$)    .build() {} class CreateRepositoryCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "CreateRepository", {})    .n("CodeartifactClient", "CreateRepositoryCommand")    .sc(schemas_0.CreateRepository$)    .build() {} class DeleteDomainCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DeleteDomain", {})    .n("CodeartifactClient", "DeleteDomainCommand")    .sc(schemas_0.DeleteDomain$)    .build() {} class DeleteDomainPermissionsPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DeleteDomainPermissionsPolicy", {})    .n("CodeartifactClient", "DeleteDomainPermissionsPolicyCommand")    .sc(schemas_0.DeleteDomainPermissionsPolicy$)    .build() {} class DeletePackageCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DeletePackage", {})    .n("CodeartifactClient", "DeletePackageCommand")    .sc(schemas_0.DeletePackage$)    .build() {} class DeletePackageGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DeletePackageGroup", {})    .n("CodeartifactClient", "DeletePackageGroupCommand")    .sc(schemas_0.DeletePackageGroup$)    .build() {} class DeletePackageVersionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DeletePackageVersions", {})    .n("CodeartifactClient", "DeletePackageVersionsCommand")    .sc(schemas_0.DeletePackageVersions$)    .build() {} class DeleteRepositoryCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DeleteRepository", {})    .n("CodeartifactClient", "DeleteRepositoryCommand")    .sc(schemas_0.DeleteRepository$)    .build() {} class DeleteRepositoryPermissionsPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DeleteRepositoryPermissionsPolicy", {})    .n("CodeartifactClient", "DeleteRepositoryPermissionsPolicyCommand")    .sc(schemas_0.DeleteRepositoryPermissionsPolicy$)    .build() {} class DescribeDomainCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DescribeDomain", {})    .n("CodeartifactClient", "DescribeDomainCommand")    .sc(schemas_0.DescribeDomain$)    .build() {} class DescribePackageCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DescribePackage", {})    .n("CodeartifactClient", "DescribePackageCommand")    .sc(schemas_0.DescribePackage$)    .build() {} class DescribePackageGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DescribePackageGroup", {})    .n("CodeartifactClient", "DescribePackageGroupCommand")    .sc(schemas_0.DescribePackageGroup$)    .build() {} class DescribePackageVersionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DescribePackageVersion", {})    .n("CodeartifactClient", "DescribePackageVersionCommand")    .sc(schemas_0.DescribePackageVersion$)    .build() {} class DescribeRepositoryCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DescribeRepository", {})    .n("CodeartifactClient", "DescribeRepositoryCommand")    .sc(schemas_0.DescribeRepository$)    .build() {} class DisassociateExternalConnectionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DisassociateExternalConnection", {})    .n("CodeartifactClient", "DisassociateExternalConnectionCommand")    .sc(schemas_0.DisassociateExternalConnection$)    .build() {} class DisposePackageVersionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "DisposePackageVersions", {})    .n("CodeartifactClient", "DisposePackageVersionsCommand")    .sc(schemas_0.DisposePackageVersions$)    .build() {} class GetAssociatedPackageGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "GetAssociatedPackageGroup", {})    .n("CodeartifactClient", "GetAssociatedPackageGroupCommand")    .sc(schemas_0.GetAssociatedPackageGroup$)    .build() {} class GetAuthorizationTokenCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "GetAuthorizationToken", {})    .n("CodeartifactClient", "GetAuthorizationTokenCommand")    .sc(schemas_0.GetAuthorizationToken$)    .build() {} class GetDomainPermissionsPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "GetDomainPermissionsPolicy", {})    .n("CodeartifactClient", "GetDomainPermissionsPolicyCommand")    .sc(schemas_0.GetDomainPermissionsPolicy$)    .build() {} class GetPackageVersionAssetCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "GetPackageVersionAsset", {})    .n("CodeartifactClient", "GetPackageVersionAssetCommand")    .sc(schemas_0.GetPackageVersionAsset$)    .build() {} class GetPackageVersionReadmeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "GetPackageVersionReadme", {})    .n("CodeartifactClient", "GetPackageVersionReadmeCommand")    .sc(schemas_0.GetPackageVersionReadme$)    .build() {} class GetRepositoryEndpointCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "GetRepositoryEndpoint", {})    .n("CodeartifactClient", "GetRepositoryEndpointCommand")    .sc(schemas_0.GetRepositoryEndpoint$)    .build() {} class GetRepositoryPermissionsPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "GetRepositoryPermissionsPolicy", {})    .n("CodeartifactClient", "GetRepositoryPermissionsPolicyCommand")    .sc(schemas_0.GetRepositoryPermissionsPolicy$)    .build() {} class ListAllowedRepositoriesForGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListAllowedRepositoriesForGroup", {})    .n("CodeartifactClient", "ListAllowedRepositoriesForGroupCommand")    .sc(schemas_0.ListAllowedRepositoriesForGroup$)    .build() {} class ListAssociatedPackagesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListAssociatedPackages", {})    .n("CodeartifactClient", "ListAssociatedPackagesCommand")    .sc(schemas_0.ListAssociatedPackages$)    .build() {} class ListDomainsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListDomains", {})    .n("CodeartifactClient", "ListDomainsCommand")    .sc(schemas_0.ListDomains$)    .build() {} class ListPackageGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListPackageGroups", {})    .n("CodeartifactClient", "ListPackageGroupsCommand")    .sc(schemas_0.ListPackageGroups$)    .build() {} class ListPackagesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListPackages", {})    .n("CodeartifactClient", "ListPackagesCommand")    .sc(schemas_0.ListPackages$)    .build() {} class ListPackageVersionAssetsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListPackageVersionAssets", {})    .n("CodeartifactClient", "ListPackageVersionAssetsCommand")    .sc(schemas_0.ListPackageVersionAssets$)    .build() {} class ListPackageVersionDependenciesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListPackageVersionDependencies", {})    .n("CodeartifactClient", "ListPackageVersionDependenciesCommand")    .sc(schemas_0.ListPackageVersionDependencies$)    .build() {} class ListPackageVersionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListPackageVersions", {})    .n("CodeartifactClient", "ListPackageVersionsCommand")    .sc(schemas_0.ListPackageVersions$)    .build() {} class ListRepositoriesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListRepositories", {})    .n("CodeartifactClient", "ListRepositoriesCommand")    .sc(schemas_0.ListRepositories$)    .build() {} class ListRepositoriesInDomainCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListRepositoriesInDomain", {})    .n("CodeartifactClient", "ListRepositoriesInDomainCommand")    .sc(schemas_0.ListRepositoriesInDomain$)    .build() {} class ListSubPackageGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListSubPackageGroups", {})    .n("CodeartifactClient", "ListSubPackageGroupsCommand")    .sc(schemas_0.ListSubPackageGroups$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "ListTagsForResource", {})    .n("CodeartifactClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class PublishPackageVersionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "PublishPackageVersion", {})    .n("CodeartifactClient", "PublishPackageVersionCommand")    .sc(schemas_0.PublishPackageVersion$)    .build() {} class PutDomainPermissionsPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "PutDomainPermissionsPolicy", {})    .n("CodeartifactClient", "PutDomainPermissionsPolicyCommand")    .sc(schemas_0.PutDomainPermissionsPolicy$)    .build() {} class PutPackageOriginConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "PutPackageOriginConfiguration", {})    .n("CodeartifactClient", "PutPackageOriginConfigurationCommand")    .sc(schemas_0.PutPackageOriginConfiguration$)    .build() {} class PutRepositoryPermissionsPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "PutRepositoryPermissionsPolicy", {})    .n("CodeartifactClient", "PutRepositoryPermissionsPolicyCommand")    .sc(schemas_0.PutRepositoryPermissionsPolicy$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "TagResource", {})    .n("CodeartifactClient", "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("CodeArtifactControlPlaneService", "UntagResource", {})    .n("CodeartifactClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdatePackageGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "UpdatePackageGroup", {})    .n("CodeartifactClient", "UpdatePackageGroupCommand")    .sc(schemas_0.UpdatePackageGroup$)    .build() {} class UpdatePackageGroupOriginConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "UpdatePackageGroupOriginConfiguration", {})    .n("CodeartifactClient", "UpdatePackageGroupOriginConfigurationCommand")    .sc(schemas_0.UpdatePackageGroupOriginConfiguration$)    .build() {} class UpdatePackageVersionsStatusCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "UpdatePackageVersionsStatus", {})    .n("CodeartifactClient", "UpdatePackageVersionsStatusCommand")    .sc(schemas_0.UpdatePackageVersionsStatus$)    .build() {} class UpdateRepositoryCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CodeArtifactControlPlaneService", "UpdateRepository", {})    .n("CodeartifactClient", "UpdateRepositoryCommand")    .sc(schemas_0.UpdateRepository$)    .build() {} const paginateListAllowedRepositoriesForGroup = core.createPaginator(CodeartifactClient, ListAllowedRepositoriesForGroupCommand, "nextToken", "nextToken", "maxResults"); const paginateListAssociatedPackages = core.createPaginator(CodeartifactClient, ListAssociatedPackagesCommand, "nextToken", "nextToken", "maxResults"); const paginateListDomains = core.createPaginator(CodeartifactClient, ListDomainsCommand, "nextToken", "nextToken", "maxResults"); const paginateListPackageGroups = core.createPaginator(CodeartifactClient, ListPackageGroupsCommand, "nextToken", "nextToken", "maxResults"); const paginateListPackages = core.createPaginator(CodeartifactClient, ListPackagesCommand, "nextToken", "nextToken", "maxResults"); const paginateListPackageVersionAssets = core.createPaginator(CodeartifactClient, ListPackageVersionAssetsCommand, "nextToken", "nextToken", "maxResults"); const paginateListPackageVersions = core.createPaginator(CodeartifactClient, ListPackageVersionsCommand, "nextToken", "nextToken", "maxResults"); const paginateListRepositoriesInDomain = core.createPaginator(CodeartifactClient, ListRepositoriesInDomainCommand, "nextToken", "nextToken", "maxResults"); const paginateListRepositories = core.createPaginator(CodeartifactClient, ListRepositoriesCommand, "nextToken", "nextToken", "maxResults"); const paginateListSubPackageGroups = core.createPaginator(CodeartifactClient, ListSubPackageGroupsCommand, "nextToken", "nextToken", "maxResults"); const commands = {    AssociateExternalConnectionCommand,    CopyPackageVersionsCommand,    CreateDomainCommand,    CreatePackageGroupCommand,    CreateRepositoryCommand,    DeleteDomainCommand,    DeleteDomainPermissionsPolicyCommand,    DeletePackageCommand,    DeletePackageGroupCommand,    DeletePackageVersionsCommand,    DeleteRepositoryCommand,    DeleteRepositoryPermissionsPolicyCommand,    DescribeDomainCommand,    DescribePackageCommand,    DescribePackageGroupCommand,    DescribePackageVersionCommand,    DescribeRepositoryCommand,    DisassociateExternalConnectionCommand,    DisposePackageVersionsCommand,    GetAssociatedPackageGroupCommand,    GetAuthorizationTokenCommand,    GetDomainPermissionsPolicyCommand,    GetPackageVersionAssetCommand,    GetPackageVersionReadmeCommand,    GetRepositoryEndpointCommand,    GetRepositoryPermissionsPolicyCommand,    ListAllowedRepositoriesForGroupCommand,    ListAssociatedPackagesCommand,    ListDomainsCommand,    ListPackageGroupsCommand,    ListPackagesCommand,    ListPackageVersionAssetsCommand,    ListPackageVersionDependenciesCommand,    ListPackageVersionsCommand,    ListRepositoriesCommand,    ListRepositoriesInDomainCommand,    ListSubPackageGroupsCommand,    ListTagsForResourceCommand,    PublishPackageVersionCommand,    PutDomainPermissionsPolicyCommand,    PutPackageOriginConfigurationCommand,    PutRepositoryPermissionsPolicyCommand,    TagResourceCommand,    UntagResourceCommand,    UpdatePackageGroupCommand,    UpdatePackageGroupOriginConfigurationCommand,    UpdatePackageVersionsStatusCommand,    UpdateRepositoryCommand,};const paginators = {    paginateListAllowedRepositoriesForGroup,    paginateListAssociatedPackages,    paginateListDomains,    paginateListPackageGroups,    paginateListPackages,    paginateListPackageVersionAssets,    paginateListPackageVersions,    paginateListRepositories,    paginateListRepositoriesInDomain,    paginateListSubPackageGroups,};class Codeartifact extends CodeartifactClient {}client.createAggregatedClient(commands, Codeartifact, { paginators }); const AllowPublish = {    ALLOW: "ALLOW",    BLOCK: "BLOCK",};const AllowUpstream = {    ALLOW: "ALLOW",    BLOCK: "BLOCK",};const HashAlgorithm = {    MD5: "MD5",    SHA1: "SHA-1",    SHA256: "SHA-256",    SHA512: "SHA-512",};const PackageGroupAssociationType = {    STRONG: "STRONG",    WEAK: "WEAK",};const PackageFormat = {    CARGO: "cargo",    GENERIC: "generic",    MAVEN: "maven",    NPM: "npm",    NUGET: "nuget",    PYPI: "pypi",    RUBY: "ruby",    SWIFT: "swift",};const ExternalConnectionStatus = {    AVAILABLE: "Available",};const ResourceType = {    ASSET: "asset",    DOMAIN: "domain",    PACKAGE: "package",    PACKAGE_VERSION: "package-version",    REPOSITORY: "repository",};const ValidationExceptionReason = {    CANNOT_PARSE: "CANNOT_PARSE",    ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR",    FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",    OTHER: "OTHER",    UNKNOWN_OPERATION: "UNKNOWN_OPERATION",};const PackageVersionErrorCode = {    ALREADY_EXISTS: "ALREADY_EXISTS",    MISMATCHED_REVISION: "MISMATCHED_REVISION",    MISMATCHED_STATUS: "MISMATCHED_STATUS",    NOT_ALLOWED: "NOT_ALLOWED",    NOT_FOUND: "NOT_FOUND",    SKIPPED: "SKIPPED",};const PackageVersionStatus = {    ARCHIVED: "Archived",    DELETED: "Deleted",    DISPOSED: "Disposed",    PUBLISHED: "Published",    UNFINISHED: "Unfinished",    UNLISTED: "Unlisted",};const DomainStatus = {    ACTIVE: "Active",    DELETED: "Deleted",};const PackageGroupOriginRestrictionType = {    EXTERNAL_UPSTREAM: "EXTERNAL_UPSTREAM",    INTERNAL_UPSTREAM: "INTERNAL_UPSTREAM",    PUBLISH: "PUBLISH",};const PackageGroupOriginRestrictionMode = {    ALLOW: "ALLOW",    ALLOW_SPECIFIC_REPOSITORIES: "ALLOW_SPECIFIC_REPOSITORIES",    BLOCK: "BLOCK",    INHERIT: "INHERIT",};const PackageVersionOriginType = {    EXTERNAL: "EXTERNAL",    INTERNAL: "INTERNAL",    UNKNOWN: "UNKNOWN",};const EndpointType = {    DUALSTACK: "dualstack",    IPV4: "ipv4",};const PackageVersionSortType = {    PUBLISHED_TIME: "PUBLISHED_TIME",};const PackageGroupAllowedRepositoryUpdateType = {    ADDED: "ADDED",    REMOVED: "REMOVED",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.CodeartifactServiceException = CodeartifactServiceException.CodeartifactServiceException;exports.AllowPublish = AllowPublish;exports.AllowUpstream = AllowUpstream;exports.AssociateExternalConnectionCommand = AssociateExternalConnectionCommand;exports.Codeartifact = Codeartifact;exports.CodeartifactClient = CodeartifactClient;exports.CopyPackageVersionsCommand = CopyPackageVersionsCommand;exports.CreateDomainCommand = CreateDomainCommand;exports.CreatePackageGroupCommand = CreatePackageGroupCommand;exports.CreateRepositoryCommand = CreateRepositoryCommand;exports.DeleteDomainCommand = DeleteDomainCommand;exports.DeleteDomainPermissionsPolicyCommand = DeleteDomainPermissionsPolicyCommand;exports.DeletePackageCommand = DeletePackageCommand;exports.DeletePackageGroupCommand = DeletePackageGroupCommand;exports.DeletePackageVersionsCommand = DeletePackageVersionsCommand;exports.DeleteRepositoryCommand = DeleteRepositoryCommand;exports.DeleteRepositoryPermissionsPolicyCommand = DeleteRepositoryPermissionsPolicyCommand;exports.DescribeDomainCommand = DescribeDomainCommand;exports.DescribePackageCommand = DescribePackageCommand;exports.DescribePackageGroupCommand = DescribePackageGroupCommand;exports.DescribePackageVersionCommand = DescribePackageVersionCommand;exports.DescribeRepositoryCommand = DescribeRepositoryCommand;exports.DisassociateExternalConnectionCommand = DisassociateExternalConnectionCommand;exports.DisposePackageVersionsCommand = DisposePackageVersionsCommand;exports.DomainStatus = DomainStatus;exports.EndpointType = EndpointType;exports.ExternalConnectionStatus = ExternalConnectionStatus;exports.GetAssociatedPackageGroupCommand = GetAssociatedPackageGroupCommand;exports.GetAuthorizationTokenCommand = GetAuthorizationTokenCommand;exports.GetDomainPermissionsPolicyCommand = GetDomainPermissionsPolicyCommand;exports.GetPackageVersionAssetCommand = GetPackageVersionAssetCommand;exports.GetPackageVersionReadmeCommand = GetPackageVersionReadmeCommand;exports.GetRepositoryEndpointCommand = GetRepositoryEndpointCommand;exports.GetRepositoryPermissionsPolicyCommand = GetRepositoryPermissionsPolicyCommand;exports.HashAlgorithm = HashAlgorithm;exports.ListAllowedRepositoriesForGroupCommand = ListAllowedRepositoriesForGroupCommand;exports.ListAssociatedPackagesCommand = ListAssociatedPackagesCommand;exports.ListDomainsCommand = ListDomainsCommand;exports.ListPackageGroupsCommand = ListPackageGroupsCommand;exports.ListPackageVersionAssetsCommand = ListPackageVersionAssetsCommand;exports.ListPackageVersionDependenciesCommand = ListPackageVersionDependenciesCommand;exports.ListPackageVersionsCommand = ListPackageVersionsCommand;exports.ListPackagesCommand = ListPackagesCommand;exports.ListRepositoriesCommand = ListRepositoriesCommand;exports.ListRepositoriesInDomainCommand = ListRepositoriesInDomainCommand;exports.ListSubPackageGroupsCommand = ListSubPackageGroupsCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.PackageFormat = PackageFormat;exports.PackageGroupAllowedRepositoryUpdateType = PackageGroupAllowedRepositoryUpdateType;exports.PackageGroupAssociationType = PackageGroupAssociationType;exports.PackageGroupOriginRestrictionMode = PackageGroupOriginRestrictionMode;exports.PackageGroupOriginRestrictionType = PackageGroupOriginRestrictionType;exports.PackageVersionErrorCode = PackageVersionErrorCode;exports.PackageVersionOriginType = PackageVersionOriginType;exports.PackageVersionSortType = PackageVersionSortType;exports.PackageVersionStatus = PackageVersionStatus;exports.PublishPackageVersionCommand = PublishPackageVersionCommand;exports.PutDomainPermissionsPolicyCommand = PutDomainPermissionsPolicyCommand;exports.PutPackageOriginConfigurationCommand = PutPackageOriginConfigurationCommand;exports.PutRepositoryPermissionsPolicyCommand = PutRepositoryPermissionsPolicyCommand;exports.ResourceType = ResourceType;exports.TagResourceCommand = TagResourceCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdatePackageGroupCommand = UpdatePackageGroupCommand;exports.UpdatePackageGroupOriginConfigurationCommand = UpdatePackageGroupOriginConfigurationCommand;exports.UpdatePackageVersionsStatusCommand = UpdatePackageVersionsStatusCommand;exports.UpdateRepositoryCommand = UpdateRepositoryCommand;exports.ValidationExceptionReason = ValidationExceptionReason;exports.paginateListAllowedRepositoriesForGroup = paginateListAllowedRepositoriesForGroup;exports.paginateListAssociatedPackages = paginateListAssociatedPackages;exports.paginateListDomains = paginateListDomains;exports.paginateListPackageGroups = paginateListPackageGroups;exports.paginateListPackageVersionAssets = paginateListPackageVersionAssets;exports.paginateListPackageVersions = paginateListPackageVersions;exports.paginateListPackages = paginateListPackages;exports.paginateListRepositories = paginateListRepositories;exports.paginateListRepositoriesInDomain = paginateListRepositoriesInDomain;exports.paginateListSubPackageGroups = paginateListSubPackageGroups;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];});