/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-translate/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 /.
'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 TranslateServiceException = require('./models/TranslateServiceException'); const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "translate", });};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 TranslateClient 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.defaultTranslateHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} class CreateParallelDataCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "CreateParallelData", {}) .n("TranslateClient", "CreateParallelDataCommand") .sc(schemas_0.CreateParallelData$) .build() {} class DeleteParallelDataCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "DeleteParallelData", {}) .n("TranslateClient", "DeleteParallelDataCommand") .sc(schemas_0.DeleteParallelData$) .build() {} class DeleteTerminologyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "DeleteTerminology", {}) .n("TranslateClient", "DeleteTerminologyCommand") .sc(schemas_0.DeleteTerminology$) .build() {} class DescribeTextTranslationJobCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "DescribeTextTranslationJob", {}) .n("TranslateClient", "DescribeTextTranslationJobCommand") .sc(schemas_0.DescribeTextTranslationJob$) .build() {} class GetParallelDataCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "GetParallelData", {}) .n("TranslateClient", "GetParallelDataCommand") .sc(schemas_0.GetParallelData$) .build() {} class GetTerminologyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "GetTerminology", {}) .n("TranslateClient", "GetTerminologyCommand") .sc(schemas_0.GetTerminology$) .build() {} class ImportTerminologyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "ImportTerminology", {}) .n("TranslateClient", "ImportTerminologyCommand") .sc(schemas_0.ImportTerminology$) .build() {} class ListLanguagesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "ListLanguages", {}) .n("TranslateClient", "ListLanguagesCommand") .sc(schemas_0.ListLanguages$) .build() {} class ListParallelDataCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "ListParallelData", {}) .n("TranslateClient", "ListParallelDataCommand") .sc(schemas_0.ListParallelData$) .build() {} class ListTagsForResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "ListTagsForResource", {}) .n("TranslateClient", "ListTagsForResourceCommand") .sc(schemas_0.ListTagsForResource$) .build() {} class ListTerminologiesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "ListTerminologies", {}) .n("TranslateClient", "ListTerminologiesCommand") .sc(schemas_0.ListTerminologies$) .build() {} class ListTextTranslationJobsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "ListTextTranslationJobs", {}) .n("TranslateClient", "ListTextTranslationJobsCommand") .sc(schemas_0.ListTextTranslationJobs$) .build() {} class StartTextTranslationJobCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "StartTextTranslationJob", {}) .n("TranslateClient", "StartTextTranslationJobCommand") .sc(schemas_0.StartTextTranslationJob$) .build() {} class StopTextTranslationJobCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "StopTextTranslationJob", {}) .n("TranslateClient", "StopTextTranslationJobCommand") .sc(schemas_0.StopTextTranslationJob$) .build() {} class TagResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "TagResource", {}) .n("TranslateClient", "TagResourceCommand") .sc(schemas_0.TagResource$) .build() {} class TranslateDocumentCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "TranslateDocument", {}) .n("TranslateClient", "TranslateDocumentCommand") .sc(schemas_0.TranslateDocument$) .build() {} class TranslateTextCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "TranslateText", {}) .n("TranslateClient", "TranslateTextCommand") .sc(schemas_0.TranslateText$) .build() {} class UntagResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "UntagResource", {}) .n("TranslateClient", "UntagResourceCommand") .sc(schemas_0.UntagResource$) .build() {} class UpdateParallelDataCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSShineFrontendService_20170701", "UpdateParallelData", {}) .n("TranslateClient", "UpdateParallelDataCommand") .sc(schemas_0.UpdateParallelData$) .build() {} const paginateListLanguages = core.createPaginator(TranslateClient, ListLanguagesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListParallelData = core.createPaginator(TranslateClient, ListParallelDataCommand, "NextToken", "NextToken", "MaxResults"); const paginateListTerminologies = core.createPaginator(TranslateClient, ListTerminologiesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListTextTranslationJobs = core.createPaginator(TranslateClient, ListTextTranslationJobsCommand, "NextToken", "NextToken", "MaxResults"); const commands = { CreateParallelDataCommand, DeleteParallelDataCommand, DeleteTerminologyCommand, DescribeTextTranslationJobCommand, GetParallelDataCommand, GetTerminologyCommand, ImportTerminologyCommand, ListLanguagesCommand, ListParallelDataCommand, ListTagsForResourceCommand, ListTerminologiesCommand, ListTextTranslationJobsCommand, StartTextTranslationJobCommand, StopTextTranslationJobCommand, TagResourceCommand, TranslateDocumentCommand, TranslateTextCommand, UntagResourceCommand, UpdateParallelDataCommand,};const paginators = { paginateListLanguages, paginateListParallelData, paginateListTerminologies, paginateListTextTranslationJobs,};class Translate extends TranslateClient {}client.createAggregatedClient(commands, Translate, { paginators }); const EncryptionKeyType = { KMS: "KMS",};const ParallelDataFormat = { CSV: "CSV", TMX: "TMX", TSV: "TSV",};const ParallelDataStatus = { ACTIVE: "ACTIVE", CREATING: "CREATING", DELETING: "DELETING", FAILED: "FAILED", UPDATING: "UPDATING",};const JobStatus = { COMPLETED: "COMPLETED", COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR", FAILED: "FAILED", IN_PROGRESS: "IN_PROGRESS", STOPPED: "STOPPED", STOP_REQUESTED: "STOP_REQUESTED", SUBMITTED: "SUBMITTED",};const Brevity = { ON: "ON",};const Formality = { FORMAL: "FORMAL", INFORMAL: "INFORMAL",};const Profanity = { MASK: "MASK",};const TerminologyDataFormat = { CSV: "CSV", TMX: "TMX", TSV: "TSV",};const Directionality = { MULTI: "MULTI", UNI: "UNI",};const MergeStrategy = { OVERWRITE: "OVERWRITE",};const DisplayLanguageCode = { DE: "de", EN: "en", ES: "es", FR: "fr", IT: "it", JA: "ja", KO: "ko", PT: "pt", ZH: "zh", ZH_TW: "zh-TW",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.TranslateServiceException = TranslateServiceException.TranslateServiceException;exports.Brevity = Brevity;exports.CreateParallelDataCommand = CreateParallelDataCommand;exports.DeleteParallelDataCommand = DeleteParallelDataCommand;exports.DeleteTerminologyCommand = DeleteTerminologyCommand;exports.DescribeTextTranslationJobCommand = DescribeTextTranslationJobCommand;exports.Directionality = Directionality;exports.DisplayLanguageCode = DisplayLanguageCode;exports.EncryptionKeyType = EncryptionKeyType;exports.Formality = Formality;exports.GetParallelDataCommand = GetParallelDataCommand;exports.GetTerminologyCommand = GetTerminologyCommand;exports.ImportTerminologyCommand = ImportTerminologyCommand;exports.JobStatus = JobStatus;exports.ListLanguagesCommand = ListLanguagesCommand;exports.ListParallelDataCommand = ListParallelDataCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTerminologiesCommand = ListTerminologiesCommand;exports.ListTextTranslationJobsCommand = ListTextTranslationJobsCommand;exports.MergeStrategy = MergeStrategy;exports.ParallelDataFormat = ParallelDataFormat;exports.ParallelDataStatus = ParallelDataStatus;exports.Profanity = Profanity;exports.StartTextTranslationJobCommand = StartTextTranslationJobCommand;exports.StopTextTranslationJobCommand = StopTextTranslationJobCommand;exports.TagResourceCommand = TagResourceCommand;exports.TerminologyDataFormat = TerminologyDataFormat;exports.Translate = Translate;exports.TranslateClient = TranslateClient;exports.TranslateDocumentCommand = TranslateDocumentCommand;exports.TranslateTextCommand = TranslateTextCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateParallelDataCommand = UpdateParallelDataCommand;exports.paginateListLanguages = paginateListLanguages;exports.paginateListParallelData = paginateListParallelData;exports.paginateListTerminologies = paginateListTerminologies;exports.paginateListTextTranslationJobs = paginateListTextTranslationJobs;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];});