/var/runtime/node_modules/@aws-sdk/client-workmailmessageflow/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 __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, { GetRawMessageContentCommand: () => GetRawMessageContentCommand, GetRawMessageContentResponseFilterSensitiveLog: () => GetRawMessageContentResponseFilterSensitiveLog, InvalidContentLocation: () => InvalidContentLocation, MessageFrozen: () => MessageFrozen, MessageRejected: () => MessageRejected, PutRawMessageContentCommand: () => PutRawMessageContentCommand, ResourceNotFoundException: () => ResourceNotFoundException, WorkMailMessageFlow: () => WorkMailMessageFlow, WorkMailMessageFlowClient: () => WorkMailMessageFlowClient, WorkMailMessageFlowServiceException: () => WorkMailMessageFlowServiceException, __Client: () => import_smithy_client.Client});module.exports = __toCommonJS(index_exports); // src/WorkMailMessageFlowClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "workmailmessageflow" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/WorkMailMessageFlowClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((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; } };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/WorkMailMessageFlowClient.tsvar WorkMailMessageFlowClient = class extends import_smithy_client.Client { static { __name(this, "WorkMailMessageFlowClient"); } /** * The resolved configuration of WorkMailMessageFlowClient class. This is resolved and normalized from the {@link WorkMailMessageFlowClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultWorkMailMessageFlowHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); }}; // src/WorkMailMessageFlow.ts // src/commands/GetRawMessageContentCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/models/WorkMailMessageFlowServiceException.ts var WorkMailMessageFlowServiceException = class _WorkMailMessageFlowServiceException extends import_smithy_client.ServiceException { static { __name(this, "WorkMailMessageFlowServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _WorkMailMessageFlowServiceException.prototype); }}; // src/models/models_0.tsvar ResourceNotFoundException = class _ResourceNotFoundException extends WorkMailMessageFlowServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); }};var InvalidContentLocation = class _InvalidContentLocation extends WorkMailMessageFlowServiceException { static { __name(this, "InvalidContentLocation"); } name = "InvalidContentLocation"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidContentLocation", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidContentLocation.prototype); }};var MessageFrozen = class _MessageFrozen extends WorkMailMessageFlowServiceException { static { __name(this, "MessageFrozen"); } name = "MessageFrozen"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "MessageFrozen", $fault: "client", ...opts }); Object.setPrototypeOf(this, _MessageFrozen.prototype); }};var MessageRejected = class _MessageRejected extends WorkMailMessageFlowServiceException { static { __name(this, "MessageRejected"); } name = "MessageRejected"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "MessageRejected", $fault: "client", ...opts }); Object.setPrototypeOf(this, _MessageRejected.prototype); }};var GetRawMessageContentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj}), "GetRawMessageContentResponseFilterSensitiveLog"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); var se_GetRawMessageContentCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/messages/{messageId}"); b.p("messageId", () => input.messageId, "{messageId}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetRawMessageContentCommand");var se_PutRawMessageContentCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/messages/{messageId}"); b.p("messageId", () => input.messageId, "{messageId}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { content: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "content") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_PutRawMessageContentCommand");var de_GetRawMessageContentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = output.body; context.sdkStreamMixin(data); contents.messageContent = data; return contents;}, "de_GetRawMessageContentCommand");var de_PutRawMessageContentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_PutRawMessageContentCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "ResourceNotFoundException": case "com.amazonaws.workmailmessageflow#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "InvalidContentLocation": case "com.amazonaws.workmailmessageflow#InvalidContentLocation": throw await de_InvalidContentLocationRes(parsedOutput, context); case "MessageFrozen": case "com.amazonaws.workmailmessageflow#MessageFrozen": throw await de_MessageFrozenRes(parsedOutput, context); case "MessageRejected": case "com.amazonaws.workmailmessageflow#MessageRejected": throw await de_MessageRejectedRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkMailMessageFlowServiceException);var de_InvalidContentLocationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InvalidContentLocation({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InvalidContentLocationRes");var de_MessageFrozenRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new MessageFrozen({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_MessageFrozenRes");var de_MessageRejectedRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new MessageRejected({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_MessageRejectedRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ResourceNotFoundExceptionRes");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata"); // src/commands/GetRawMessageContentCommand.tsvar GetRawMessageContentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("GiraffeMessageInTransitService", "GetRawMessageContent", {}).n("WorkMailMessageFlowClient", "GetRawMessageContentCommand").f(void 0, GetRawMessageContentResponseFilterSensitiveLog).ser(se_GetRawMessageContentCommand).de(de_GetRawMessageContentCommand).build() { static { __name(this, "GetRawMessageContentCommand"); }}; // src/commands/PutRawMessageContentCommand.ts var PutRawMessageContentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("GiraffeMessageInTransitService", "PutRawMessageContent", {}).n("WorkMailMessageFlowClient", "PutRawMessageContentCommand").f(void 0, void 0).ser(se_PutRawMessageContentCommand).de(de_PutRawMessageContentCommand).build() { static { __name(this, "PutRawMessageContentCommand"); }}; // src/WorkMailMessageFlow.tsvar commands = { GetRawMessageContentCommand, PutRawMessageContentCommand};var WorkMailMessageFlow = class extends WorkMailMessageFlowClient { static { __name(this, "WorkMailMessageFlow"); }};(0, import_smithy_client.createAggregatedClient)(commands, WorkMailMessageFlow);// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { WorkMailMessageFlowServiceException, __Client, WorkMailMessageFlowClient, WorkMailMessageFlow, $Command, GetRawMessageContentCommand, PutRawMessageContentCommand, ResourceNotFoundException, InvalidContentLocation, MessageFrozen, MessageRejected, GetRawMessageContentResponseFilterSensitiveLog});