@aws-sdk/client-workmailmessageflow 3.490.0 → 3.496.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkMailMessageFlow = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const GetRawMessageContentCommand_1 = require("./commands/GetRawMessageContentCommand");
6
- const PutRawMessageContentCommand_1 = require("./commands/PutRawMessageContentCommand");
7
- const WorkMailMessageFlowClient_1 = require("./WorkMailMessageFlowClient");
8
- const commands = {
9
- GetRawMessageContentCommand: GetRawMessageContentCommand_1.GetRawMessageContentCommand,
10
- PutRawMessageContentCommand: PutRawMessageContentCommand_1.PutRawMessageContentCommand,
11
- };
12
- class WorkMailMessageFlow extends WorkMailMessageFlowClient_1.WorkMailMessageFlowClient {
13
- }
14
- exports.WorkMailMessageFlow = WorkMailMessageFlow;
15
- (0, smithy_client_1.createAggregatedClient)(commands, WorkMailMessageFlow);
1
+ module.exports = require("./index.js");
@@ -1,43 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkMailMessageFlowClient = exports.__Client = void 0;
4
- const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
5
- const middleware_logger_1 = require("@aws-sdk/middleware-logger");
6
- const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
7
- const middleware_signing_1 = require("@aws-sdk/middleware-signing");
8
- const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
9
- const config_resolver_1 = require("@smithy/config-resolver");
10
- const middleware_content_length_1 = require("@smithy/middleware-content-length");
11
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
12
- const middleware_retry_1 = require("@smithy/middleware-retry");
13
- const smithy_client_1 = require("@smithy/smithy-client");
14
- Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
15
- const EndpointParameters_1 = require("./endpoint/EndpointParameters");
16
- const runtimeConfig_1 = require("./runtimeConfig");
17
- const runtimeExtensions_1 = require("./runtimeExtensions");
18
- class WorkMailMessageFlowClient extends smithy_client_1.Client {
19
- constructor(...[configuration]) {
20
- const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
21
- const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
22
- const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
23
- const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
24
- const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
25
- const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
26
- const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
27
- const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
28
- const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
29
- super(_config_8);
30
- this.config = _config_8;
31
- this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
32
- this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
33
- this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
34
- this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
35
- this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
36
- this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
37
- this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
38
- }
39
- destroy() {
40
- super.destroy();
41
- }
42
- }
43
- exports.WorkMailMessageFlowClient = WorkMailMessageFlowClient;
1
+ module.exports = require("./index.js");
@@ -1,29 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetRawMessageContentCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class GetRawMessageContentCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep({
14
- ...EndpointParameters_1.commonParams,
15
- })
16
- .m(function (Command, cs, config, o) {
17
- return [
18
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
- ];
21
- })
22
- .s("GiraffeMessageInTransitService", "GetRawMessageContent", {})
23
- .n("WorkMailMessageFlowClient", "GetRawMessageContentCommand")
24
- .f(void 0, models_0_1.GetRawMessageContentResponseFilterSensitiveLog)
25
- .ser(Aws_restJson1_1.se_GetRawMessageContentCommand)
26
- .de(Aws_restJson1_1.de_GetRawMessageContentCommand)
27
- .build() {
28
- }
29
- exports.GetRawMessageContentCommand = GetRawMessageContentCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutRawMessageContentCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class PutRawMessageContentCommand extends smithy_client_1.Command
11
- .classBuilder()
12
- .ep({
13
- ...EndpointParameters_1.commonParams,
14
- })
15
- .m(function (Command, cs, config, o) {
16
- return [
17
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
- ];
20
- })
21
- .s("GiraffeMessageInTransitService", "PutRawMessageContent", {})
22
- .n("WorkMailMessageFlowClient", "PutRawMessageContentCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_restJson1_1.se_PutRawMessageContentCommand)
25
- .de(Aws_restJson1_1.de_PutRawMessageContentCommand)
26
- .build() {
27
- }
28
- exports.PutRawMessageContentCommand = PutRawMessageContentCommand;
1
+ module.exports = require("../index.js");
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./GetRawMessageContentCommand"), exports);
5
- tslib_1.__exportStar(require("./PutRawMessageContentCommand"), exports);
1
+ module.exports = require("../index.js");
@@ -1,18 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
- const resolveClientEndpointParameters = (options) => {
5
- return {
6
- ...options,
7
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
- useFipsEndpoint: options.useFipsEndpoint ?? false,
9
- defaultSigningName: "workmailmessageflow",
10
- };
11
- };
12
- exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
- exports.commonParams = {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
1
+ module.exports = require("../index.js");
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ module.exports = require("./index.js");
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,475 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkMailMessageFlowServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./WorkMailMessageFlowClient"), exports);
6
- tslib_1.__exportStar(require("./WorkMailMessageFlow"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- require("@aws-sdk/util-endpoints");
10
- var WorkMailMessageFlowServiceException_1 = require("./models/WorkMailMessageFlowServiceException");
11
- Object.defineProperty(exports, "WorkMailMessageFlowServiceException", { enumerable: true, get: function () { return WorkMailMessageFlowServiceException_1.WorkMailMessageFlowServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ GetRawMessageContentCommand: () => GetRawMessageContentCommand,
25
+ GetRawMessageContentResponseFilterSensitiveLog: () => GetRawMessageContentResponseFilterSensitiveLog,
26
+ InvalidContentLocation: () => InvalidContentLocation,
27
+ MessageFrozen: () => MessageFrozen,
28
+ MessageRejected: () => MessageRejected,
29
+ PutRawMessageContentCommand: () => PutRawMessageContentCommand,
30
+ ResourceNotFoundException: () => ResourceNotFoundException,
31
+ WorkMailMessageFlow: () => WorkMailMessageFlow,
32
+ WorkMailMessageFlowClient: () => WorkMailMessageFlowClient,
33
+ WorkMailMessageFlowServiceException: () => WorkMailMessageFlowServiceException,
34
+ __Client: () => import_smithy_client.Client
35
+ });
36
+ module.exports = __toCommonJS(src_exports);
37
+
38
+ // src/WorkMailMessageFlowClient.ts
39
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
40
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
41
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
42
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
43
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
44
+ var import_config_resolver = require("@smithy/config-resolver");
45
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
46
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
47
+ var import_middleware_retry = require("@smithy/middleware-retry");
48
+
49
+
50
+ // src/endpoint/EndpointParameters.ts
51
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
52
+ return {
53
+ ...options,
54
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
55
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
56
+ defaultSigningName: "workmailmessageflow"
57
+ };
58
+ }, "resolveClientEndpointParameters");
59
+ var commonParams = {
60
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
61
+ Endpoint: { type: "builtInParams", name: "endpoint" },
62
+ Region: { type: "builtInParams", name: "region" },
63
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
64
+ };
65
+
66
+ // src/WorkMailMessageFlowClient.ts
67
+ var import_runtimeConfig = require("././runtimeConfig");
68
+
69
+ // src/runtimeExtensions.ts
70
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
71
+ var import_protocol_http = require("@smithy/protocol-http");
72
+ var import_smithy_client = require("@smithy/smithy-client");
73
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
74
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
75
+ const extensionConfiguration = {
76
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
77
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
78
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
79
+ };
80
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
81
+ return {
82
+ ...runtimeConfig,
83
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
84
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
85
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
86
+ };
87
+ }, "resolveRuntimeExtensions");
88
+
89
+ // src/WorkMailMessageFlowClient.ts
90
+ var _WorkMailMessageFlowClient = class _WorkMailMessageFlowClient extends import_smithy_client.Client {
91
+ constructor(...[configuration]) {
92
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
93
+ const _config_1 = resolveClientEndpointParameters(_config_0);
94
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
95
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
96
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
97
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
98
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
99
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
100
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
101
+ super(_config_8);
102
+ this.config = _config_8;
103
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
104
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
105
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
106
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
107
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
108
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
109
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
110
+ }
111
+ /**
112
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
113
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
114
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
115
+ */
116
+ destroy() {
117
+ super.destroy();
118
+ }
119
+ };
120
+ __name(_WorkMailMessageFlowClient, "WorkMailMessageFlowClient");
121
+ var WorkMailMessageFlowClient = _WorkMailMessageFlowClient;
122
+
123
+ // src/WorkMailMessageFlow.ts
124
+
125
+
126
+ // src/commands/GetRawMessageContentCommand.ts
127
+
128
+ var import_middleware_serde = require("@smithy/middleware-serde");
129
+
130
+ var import_types = require("@smithy/types");
131
+
132
+ // src/models/WorkMailMessageFlowServiceException.ts
133
+
134
+ var _WorkMailMessageFlowServiceException = class _WorkMailMessageFlowServiceException extends import_smithy_client.ServiceException {
135
+ /**
136
+ * @internal
137
+ */
138
+ constructor(options) {
139
+ super(options);
140
+ Object.setPrototypeOf(this, _WorkMailMessageFlowServiceException.prototype);
141
+ }
142
+ };
143
+ __name(_WorkMailMessageFlowServiceException, "WorkMailMessageFlowServiceException");
144
+ var WorkMailMessageFlowServiceException = _WorkMailMessageFlowServiceException;
145
+
146
+ // src/models/models_0.ts
147
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends WorkMailMessageFlowServiceException {
148
+ /**
149
+ * @internal
150
+ */
151
+ constructor(opts) {
152
+ super({
153
+ name: "ResourceNotFoundException",
154
+ $fault: "client",
155
+ ...opts
156
+ });
157
+ this.name = "ResourceNotFoundException";
158
+ this.$fault = "client";
159
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
160
+ }
161
+ };
162
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
163
+ var ResourceNotFoundException = _ResourceNotFoundException;
164
+ var _InvalidContentLocation = class _InvalidContentLocation extends WorkMailMessageFlowServiceException {
165
+ /**
166
+ * @internal
167
+ */
168
+ constructor(opts) {
169
+ super({
170
+ name: "InvalidContentLocation",
171
+ $fault: "client",
172
+ ...opts
173
+ });
174
+ this.name = "InvalidContentLocation";
175
+ this.$fault = "client";
176
+ Object.setPrototypeOf(this, _InvalidContentLocation.prototype);
177
+ }
178
+ };
179
+ __name(_InvalidContentLocation, "InvalidContentLocation");
180
+ var InvalidContentLocation = _InvalidContentLocation;
181
+ var _MessageFrozen = class _MessageFrozen extends WorkMailMessageFlowServiceException {
182
+ /**
183
+ * @internal
184
+ */
185
+ constructor(opts) {
186
+ super({
187
+ name: "MessageFrozen",
188
+ $fault: "client",
189
+ ...opts
190
+ });
191
+ this.name = "MessageFrozen";
192
+ this.$fault = "client";
193
+ Object.setPrototypeOf(this, _MessageFrozen.prototype);
194
+ }
195
+ };
196
+ __name(_MessageFrozen, "MessageFrozen");
197
+ var MessageFrozen = _MessageFrozen;
198
+ var _MessageRejected = class _MessageRejected extends WorkMailMessageFlowServiceException {
199
+ /**
200
+ * @internal
201
+ */
202
+ constructor(opts) {
203
+ super({
204
+ name: "MessageRejected",
205
+ $fault: "client",
206
+ ...opts
207
+ });
208
+ this.name = "MessageRejected";
209
+ this.$fault = "client";
210
+ Object.setPrototypeOf(this, _MessageRejected.prototype);
211
+ }
212
+ };
213
+ __name(_MessageRejected, "MessageRejected");
214
+ var MessageRejected = _MessageRejected;
215
+ var GetRawMessageContentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
216
+ ...obj
217
+ }), "GetRawMessageContentResponseFilterSensitiveLog");
218
+
219
+ // src/protocols/Aws_restJson1.ts
220
+ var import_core = require("@smithy/core");
221
+
222
+ var se_GetRawMessageContentCommand = /* @__PURE__ */ __name(async (input, context) => {
223
+ const b = (0, import_core.requestBuilder)(input, context);
224
+ const headers = {};
225
+ b.bp("/messages/{messageId}");
226
+ b.p("messageId", () => input.messageId, "{messageId}", false);
227
+ let body;
228
+ b.m("GET").h(headers).b(body);
229
+ return b.build();
230
+ }, "se_GetRawMessageContentCommand");
231
+ var se_PutRawMessageContentCommand = /* @__PURE__ */ __name(async (input, context) => {
232
+ const b = (0, import_core.requestBuilder)(input, context);
233
+ const headers = {
234
+ "content-type": "application/json"
235
+ };
236
+ b.bp("/messages/{messageId}");
237
+ b.p("messageId", () => input.messageId, "{messageId}", false);
238
+ let body;
239
+ body = JSON.stringify(
240
+ (0, import_smithy_client.take)(input, {
241
+ content: (_) => (0, import_smithy_client._json)(_)
242
+ })
243
+ );
244
+ b.m("POST").h(headers).b(body);
245
+ return b.build();
246
+ }, "se_PutRawMessageContentCommand");
247
+ var de_GetRawMessageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
248
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
249
+ return de_GetRawMessageContentCommandError(output, context);
250
+ }
251
+ const contents = (0, import_smithy_client.map)({
252
+ $metadata: deserializeMetadata(output)
253
+ });
254
+ const data = output.body;
255
+ context.sdkStreamMixin(data);
256
+ contents.messageContent = data;
257
+ return contents;
258
+ }, "de_GetRawMessageContentCommand");
259
+ var de_GetRawMessageContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
260
+ const parsedOutput = {
261
+ ...output,
262
+ body: await parseErrorBody(output.body, context)
263
+ };
264
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
265
+ switch (errorCode) {
266
+ case "ResourceNotFoundException":
267
+ case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
268
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
269
+ default:
270
+ const parsedBody = parsedOutput.body;
271
+ return throwDefaultError({
272
+ output,
273
+ parsedBody,
274
+ errorCode
275
+ });
276
+ }
277
+ }, "de_GetRawMessageContentCommandError");
278
+ var de_PutRawMessageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
279
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
280
+ return de_PutRawMessageContentCommandError(output, context);
281
+ }
282
+ const contents = (0, import_smithy_client.map)({
283
+ $metadata: deserializeMetadata(output)
284
+ });
285
+ await (0, import_smithy_client.collectBody)(output.body, context);
286
+ return contents;
287
+ }, "de_PutRawMessageContentCommand");
288
+ var de_PutRawMessageContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
289
+ const parsedOutput = {
290
+ ...output,
291
+ body: await parseErrorBody(output.body, context)
292
+ };
293
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
294
+ switch (errorCode) {
295
+ case "InvalidContentLocation":
296
+ case "com.amazonaws.workmailmessageflow#InvalidContentLocation":
297
+ throw await de_InvalidContentLocationRes(parsedOutput, context);
298
+ case "MessageFrozen":
299
+ case "com.amazonaws.workmailmessageflow#MessageFrozen":
300
+ throw await de_MessageFrozenRes(parsedOutput, context);
301
+ case "MessageRejected":
302
+ case "com.amazonaws.workmailmessageflow#MessageRejected":
303
+ throw await de_MessageRejectedRes(parsedOutput, context);
304
+ case "ResourceNotFoundException":
305
+ case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
306
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
307
+ default:
308
+ const parsedBody = parsedOutput.body;
309
+ return throwDefaultError({
310
+ output,
311
+ parsedBody,
312
+ errorCode
313
+ });
314
+ }
315
+ }, "de_PutRawMessageContentCommandError");
316
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkMailMessageFlowServiceException);
317
+ var de_InvalidContentLocationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
318
+ const contents = (0, import_smithy_client.map)({});
319
+ const data = parsedOutput.body;
320
+ const doc = (0, import_smithy_client.take)(data, {
321
+ message: import_smithy_client.expectString
322
+ });
323
+ Object.assign(contents, doc);
324
+ const exception = new InvalidContentLocation({
325
+ $metadata: deserializeMetadata(parsedOutput),
326
+ ...contents
327
+ });
328
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
329
+ }, "de_InvalidContentLocationRes");
330
+ var de_MessageFrozenRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
331
+ const contents = (0, import_smithy_client.map)({});
332
+ const data = parsedOutput.body;
333
+ const doc = (0, import_smithy_client.take)(data, {
334
+ message: import_smithy_client.expectString
335
+ });
336
+ Object.assign(contents, doc);
337
+ const exception = new MessageFrozen({
338
+ $metadata: deserializeMetadata(parsedOutput),
339
+ ...contents
340
+ });
341
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
342
+ }, "de_MessageFrozenRes");
343
+ var de_MessageRejectedRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
344
+ const contents = (0, import_smithy_client.map)({});
345
+ const data = parsedOutput.body;
346
+ const doc = (0, import_smithy_client.take)(data, {
347
+ message: import_smithy_client.expectString
348
+ });
349
+ Object.assign(contents, doc);
350
+ const exception = new MessageRejected({
351
+ $metadata: deserializeMetadata(parsedOutput),
352
+ ...contents
353
+ });
354
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
355
+ }, "de_MessageRejectedRes");
356
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
357
+ const contents = (0, import_smithy_client.map)({});
358
+ const data = parsedOutput.body;
359
+ const doc = (0, import_smithy_client.take)(data, {
360
+ message: import_smithy_client.expectString
361
+ });
362
+ Object.assign(contents, doc);
363
+ const exception = new ResourceNotFoundException({
364
+ $metadata: deserializeMetadata(parsedOutput),
365
+ ...contents
366
+ });
367
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
368
+ }, "de_ResourceNotFoundExceptionRes");
369
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
370
+ httpStatusCode: output.statusCode,
371
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
372
+ extendedRequestId: output.headers["x-amz-id-2"],
373
+ cfId: output.headers["x-amz-cf-id"]
374
+ }), "deserializeMetadata");
375
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
376
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
377
+ if (encoded.length) {
378
+ return JSON.parse(encoded);
379
+ }
380
+ return {};
381
+ }), "parseBody");
382
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
383
+ const value = await parseBody(errorBody, context);
384
+ value.message = value.message ?? value.Message;
385
+ return value;
386
+ }, "parseErrorBody");
387
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
388
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
389
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
390
+ let cleanValue = rawValue;
391
+ if (typeof cleanValue === "number") {
392
+ cleanValue = cleanValue.toString();
393
+ }
394
+ if (cleanValue.indexOf(",") >= 0) {
395
+ cleanValue = cleanValue.split(",")[0];
396
+ }
397
+ if (cleanValue.indexOf(":") >= 0) {
398
+ cleanValue = cleanValue.split(":")[0];
399
+ }
400
+ if (cleanValue.indexOf("#") >= 0) {
401
+ cleanValue = cleanValue.split("#")[1];
402
+ }
403
+ return cleanValue;
404
+ }, "sanitizeErrorCode");
405
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
406
+ if (headerKey !== void 0) {
407
+ return sanitizeErrorCode(output.headers[headerKey]);
408
+ }
409
+ if (data.code !== void 0) {
410
+ return sanitizeErrorCode(data.code);
411
+ }
412
+ if (data["__type"] !== void 0) {
413
+ return sanitizeErrorCode(data["__type"]);
414
+ }
415
+ }, "loadRestJsonErrorCode");
416
+
417
+ // src/commands/GetRawMessageContentCommand.ts
418
+ var _GetRawMessageContentCommand = class _GetRawMessageContentCommand extends import_smithy_client.Command.classBuilder().ep({
419
+ ...commonParams
420
+ }).m(function(Command, cs, config, o) {
421
+ return [
422
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
423
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
424
+ ];
425
+ }).s("GiraffeMessageInTransitService", "GetRawMessageContent", {}).n("WorkMailMessageFlowClient", "GetRawMessageContentCommand").f(void 0, GetRawMessageContentResponseFilterSensitiveLog).ser(se_GetRawMessageContentCommand).de(de_GetRawMessageContentCommand).build() {
426
+ };
427
+ __name(_GetRawMessageContentCommand, "GetRawMessageContentCommand");
428
+ var GetRawMessageContentCommand = _GetRawMessageContentCommand;
429
+
430
+ // src/commands/PutRawMessageContentCommand.ts
431
+
432
+
433
+
434
+
435
+ var _PutRawMessageContentCommand = class _PutRawMessageContentCommand extends import_smithy_client.Command.classBuilder().ep({
436
+ ...commonParams
437
+ }).m(function(Command, cs, config, o) {
438
+ return [
439
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
440
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
441
+ ];
442
+ }).s("GiraffeMessageInTransitService", "PutRawMessageContent", {}).n("WorkMailMessageFlowClient", "PutRawMessageContentCommand").f(void 0, void 0).ser(se_PutRawMessageContentCommand).de(de_PutRawMessageContentCommand).build() {
443
+ };
444
+ __name(_PutRawMessageContentCommand, "PutRawMessageContentCommand");
445
+ var PutRawMessageContentCommand = _PutRawMessageContentCommand;
446
+
447
+ // src/WorkMailMessageFlow.ts
448
+ var commands = {
449
+ GetRawMessageContentCommand,
450
+ PutRawMessageContentCommand
451
+ };
452
+ var _WorkMailMessageFlow = class _WorkMailMessageFlow extends WorkMailMessageFlowClient {
453
+ };
454
+ __name(_WorkMailMessageFlow, "WorkMailMessageFlow");
455
+ var WorkMailMessageFlow = _WorkMailMessageFlow;
456
+ (0, import_smithy_client.createAggregatedClient)(commands, WorkMailMessageFlow);
457
+
458
+ // src/index.ts
459
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
460
+ // Annotate the CommonJS export names for ESM import in node:
461
+
462
+ 0 && (module.exports = {
463
+ GetRawMessageContentCommand,
464
+ GetRawMessageContentResponseFilterSensitiveLog,
465
+ InvalidContentLocation,
466
+ MessageFrozen,
467
+ MessageRejected,
468
+ PutRawMessageContentCommand,
469
+ ResourceNotFoundException,
470
+ WorkMailMessageFlow,
471
+ WorkMailMessageFlowClient,
472
+ WorkMailMessageFlowServiceException,
473
+ __Client
474
+ });
475
+
@@ -1,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkMailMessageFlowServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class WorkMailMessageFlowServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, WorkMailMessageFlowServiceException.prototype);
10
- }
11
- }
12
- exports.WorkMailMessageFlowServiceException = WorkMailMessageFlowServiceException;
1
+ module.exports = require("../index.js");
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -1,60 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetRawMessageContentResponseFilterSensitiveLog = exports.MessageRejected = exports.MessageFrozen = exports.InvalidContentLocation = exports.ResourceNotFoundException = void 0;
4
- const WorkMailMessageFlowServiceException_1 = require("./WorkMailMessageFlowServiceException");
5
- class ResourceNotFoundException extends WorkMailMessageFlowServiceException_1.WorkMailMessageFlowServiceException {
6
- constructor(opts) {
7
- super({
8
- name: "ResourceNotFoundException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- this.name = "ResourceNotFoundException";
13
- this.$fault = "client";
14
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
15
- }
16
- }
17
- exports.ResourceNotFoundException = ResourceNotFoundException;
18
- class InvalidContentLocation extends WorkMailMessageFlowServiceException_1.WorkMailMessageFlowServiceException {
19
- constructor(opts) {
20
- super({
21
- name: "InvalidContentLocation",
22
- $fault: "client",
23
- ...opts,
24
- });
25
- this.name = "InvalidContentLocation";
26
- this.$fault = "client";
27
- Object.setPrototypeOf(this, InvalidContentLocation.prototype);
28
- }
29
- }
30
- exports.InvalidContentLocation = InvalidContentLocation;
31
- class MessageFrozen extends WorkMailMessageFlowServiceException_1.WorkMailMessageFlowServiceException {
32
- constructor(opts) {
33
- super({
34
- name: "MessageFrozen",
35
- $fault: "client",
36
- ...opts,
37
- });
38
- this.name = "MessageFrozen";
39
- this.$fault = "client";
40
- Object.setPrototypeOf(this, MessageFrozen.prototype);
41
- }
42
- }
43
- exports.MessageFrozen = MessageFrozen;
44
- class MessageRejected extends WorkMailMessageFlowServiceException_1.WorkMailMessageFlowServiceException {
45
- constructor(opts) {
46
- super({
47
- name: "MessageRejected",
48
- $fault: "client",
49
- ...opts,
50
- });
51
- this.name = "MessageRejected";
52
- this.$fault = "client";
53
- Object.setPrototypeOf(this, MessageRejected.prototype);
54
- }
55
- }
56
- exports.MessageRejected = MessageRejected;
57
- const GetRawMessageContentResponseFilterSensitiveLog = (obj) => ({
58
- ...obj,
59
- });
60
- exports.GetRawMessageContentResponseFilterSensitiveLog = GetRawMessageContentResponseFilterSensitiveLog;
1
+ module.exports = require("../index.js");
@@ -1,208 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_PutRawMessageContentCommand = exports.de_GetRawMessageContentCommand = exports.se_PutRawMessageContentCommand = exports.se_GetRawMessageContentCommand = void 0;
4
- const core_1 = require("@smithy/core");
5
- const smithy_client_1 = require("@smithy/smithy-client");
6
- const models_0_1 = require("../models/models_0");
7
- const WorkMailMessageFlowServiceException_1 = require("../models/WorkMailMessageFlowServiceException");
8
- const se_GetRawMessageContentCommand = async (input, context) => {
9
- const b = (0, core_1.requestBuilder)(input, context);
10
- const headers = {};
11
- b.bp("/messages/{messageId}");
12
- b.p("messageId", () => input.messageId, "{messageId}", false);
13
- let body;
14
- b.m("GET").h(headers).b(body);
15
- return b.build();
16
- };
17
- exports.se_GetRawMessageContentCommand = se_GetRawMessageContentCommand;
18
- const se_PutRawMessageContentCommand = async (input, context) => {
19
- const b = (0, core_1.requestBuilder)(input, context);
20
- const headers = {
21
- "content-type": "application/json",
22
- };
23
- b.bp("/messages/{messageId}");
24
- b.p("messageId", () => input.messageId, "{messageId}", false);
25
- let body;
26
- body = JSON.stringify((0, smithy_client_1.take)(input, {
27
- content: (_) => (0, smithy_client_1._json)(_),
28
- }));
29
- b.m("POST").h(headers).b(body);
30
- return b.build();
31
- };
32
- exports.se_PutRawMessageContentCommand = se_PutRawMessageContentCommand;
33
- const de_GetRawMessageContentCommand = async (output, context) => {
34
- if (output.statusCode !== 200 && output.statusCode >= 300) {
35
- return de_GetRawMessageContentCommandError(output, context);
36
- }
37
- const contents = (0, smithy_client_1.map)({
38
- $metadata: deserializeMetadata(output),
39
- });
40
- const data = output.body;
41
- context.sdkStreamMixin(data);
42
- contents.messageContent = data;
43
- return contents;
44
- };
45
- exports.de_GetRawMessageContentCommand = de_GetRawMessageContentCommand;
46
- const de_GetRawMessageContentCommandError = async (output, context) => {
47
- const parsedOutput = {
48
- ...output,
49
- body: await parseErrorBody(output.body, context),
50
- };
51
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
52
- switch (errorCode) {
53
- case "ResourceNotFoundException":
54
- case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
55
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
56
- default:
57
- const parsedBody = parsedOutput.body;
58
- return throwDefaultError({
59
- output,
60
- parsedBody,
61
- errorCode,
62
- });
63
- }
64
- };
65
- const de_PutRawMessageContentCommand = async (output, context) => {
66
- if (output.statusCode !== 200 && output.statusCode >= 300) {
67
- return de_PutRawMessageContentCommandError(output, context);
68
- }
69
- const contents = (0, smithy_client_1.map)({
70
- $metadata: deserializeMetadata(output),
71
- });
72
- await (0, smithy_client_1.collectBody)(output.body, context);
73
- return contents;
74
- };
75
- exports.de_PutRawMessageContentCommand = de_PutRawMessageContentCommand;
76
- const de_PutRawMessageContentCommandError = async (output, context) => {
77
- const parsedOutput = {
78
- ...output,
79
- body: await parseErrorBody(output.body, context),
80
- };
81
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
82
- switch (errorCode) {
83
- case "InvalidContentLocation":
84
- case "com.amazonaws.workmailmessageflow#InvalidContentLocation":
85
- throw await de_InvalidContentLocationRes(parsedOutput, context);
86
- case "MessageFrozen":
87
- case "com.amazonaws.workmailmessageflow#MessageFrozen":
88
- throw await de_MessageFrozenRes(parsedOutput, context);
89
- case "MessageRejected":
90
- case "com.amazonaws.workmailmessageflow#MessageRejected":
91
- throw await de_MessageRejectedRes(parsedOutput, context);
92
- case "ResourceNotFoundException":
93
- case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
94
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
95
- default:
96
- const parsedBody = parsedOutput.body;
97
- return throwDefaultError({
98
- output,
99
- parsedBody,
100
- errorCode,
101
- });
102
- }
103
- };
104
- const throwDefaultError = (0, smithy_client_1.withBaseException)(WorkMailMessageFlowServiceException_1.WorkMailMessageFlowServiceException);
105
- const de_InvalidContentLocationRes = async (parsedOutput, context) => {
106
- const contents = (0, smithy_client_1.map)({});
107
- const data = parsedOutput.body;
108
- const doc = (0, smithy_client_1.take)(data, {
109
- message: smithy_client_1.expectString,
110
- });
111
- Object.assign(contents, doc);
112
- const exception = new models_0_1.InvalidContentLocation({
113
- $metadata: deserializeMetadata(parsedOutput),
114
- ...contents,
115
- });
116
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
117
- };
118
- const de_MessageFrozenRes = async (parsedOutput, context) => {
119
- const contents = (0, smithy_client_1.map)({});
120
- const data = parsedOutput.body;
121
- const doc = (0, smithy_client_1.take)(data, {
122
- message: smithy_client_1.expectString,
123
- });
124
- Object.assign(contents, doc);
125
- const exception = new models_0_1.MessageFrozen({
126
- $metadata: deserializeMetadata(parsedOutput),
127
- ...contents,
128
- });
129
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
130
- };
131
- const de_MessageRejectedRes = async (parsedOutput, context) => {
132
- const contents = (0, smithy_client_1.map)({});
133
- const data = parsedOutput.body;
134
- const doc = (0, smithy_client_1.take)(data, {
135
- message: smithy_client_1.expectString,
136
- });
137
- Object.assign(contents, doc);
138
- const exception = new models_0_1.MessageRejected({
139
- $metadata: deserializeMetadata(parsedOutput),
140
- ...contents,
141
- });
142
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
143
- };
144
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
145
- const contents = (0, smithy_client_1.map)({});
146
- const data = parsedOutput.body;
147
- const doc = (0, smithy_client_1.take)(data, {
148
- message: smithy_client_1.expectString,
149
- });
150
- Object.assign(contents, doc);
151
- const exception = new models_0_1.ResourceNotFoundException({
152
- $metadata: deserializeMetadata(parsedOutput),
153
- ...contents,
154
- });
155
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
156
- };
157
- const deserializeMetadata = (output) => ({
158
- httpStatusCode: output.statusCode,
159
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
160
- extendedRequestId: output.headers["x-amz-id-2"],
161
- cfId: output.headers["x-amz-cf-id"],
162
- });
163
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
164
- const isSerializableHeaderValue = (value) => value !== undefined &&
165
- value !== null &&
166
- value !== "" &&
167
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
168
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
169
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
170
- if (encoded.length) {
171
- return JSON.parse(encoded);
172
- }
173
- return {};
174
- });
175
- const parseErrorBody = async (errorBody, context) => {
176
- const value = await parseBody(errorBody, context);
177
- value.message = value.message ?? value.Message;
178
- return value;
179
- };
180
- const loadRestJsonErrorCode = (output, data) => {
181
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
182
- const sanitizeErrorCode = (rawValue) => {
183
- let cleanValue = rawValue;
184
- if (typeof cleanValue === "number") {
185
- cleanValue = cleanValue.toString();
186
- }
187
- if (cleanValue.indexOf(",") >= 0) {
188
- cleanValue = cleanValue.split(",")[0];
189
- }
190
- if (cleanValue.indexOf(":") >= 0) {
191
- cleanValue = cleanValue.split(":")[0];
192
- }
193
- if (cleanValue.indexOf("#") >= 0) {
194
- cleanValue = cleanValue.split("#")[1];
195
- }
196
- return cleanValue;
197
- };
198
- const headerKey = findKey(output.headers, "x-amzn-errortype");
199
- if (headerKey !== undefined) {
200
- return sanitizeErrorCode(output.headers[headerKey]);
201
- }
202
- if (data.code !== undefined) {
203
- return sanitizeErrorCode(data.code);
204
- }
205
- if (data["__type"] !== undefined) {
206
- return sanitizeErrorCode(data["__type"]);
207
- }
208
- };
1
+ module.exports = require("../index.js");
@@ -1,22 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRuntimeExtensions = void 0;
4
- const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const asPartial = (t) => t;
8
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
- const extensionConfiguration = {
10
- ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
11
- ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
12
- ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
13
- };
14
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
15
- return {
16
- ...runtimeConfig,
17
- ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
18
- ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
19
- ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
20
- };
21
- };
22
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
1
+ module.exports = require("./index.js");
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workmailmessageflow",
3
3
  "description": "AWS SDK for JavaScript Workmailmessageflow Client for Node.js, Browser and React Native",
4
- "version": "3.490.0",
4
+ "version": "3.496.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
- "build:cjs": "tsc -p tsconfig.cjs.json",
7
+ "build:cjs": "node ../../scripts/compilation/inline client-workmailmessageflow",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
10
10
  "build:types": "tsc -p tsconfig.types.json",
@@ -20,48 +20,48 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.490.0",
24
- "@aws-sdk/core": "3.490.0",
25
- "@aws-sdk/credential-provider-node": "3.490.0",
26
- "@aws-sdk/middleware-host-header": "3.489.0",
27
- "@aws-sdk/middleware-logger": "3.489.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.489.0",
29
- "@aws-sdk/middleware-signing": "3.489.0",
30
- "@aws-sdk/middleware-user-agent": "3.489.0",
31
- "@aws-sdk/region-config-resolver": "3.489.0",
32
- "@aws-sdk/types": "3.489.0",
33
- "@aws-sdk/util-endpoints": "3.489.0",
34
- "@aws-sdk/util-user-agent-browser": "3.489.0",
35
- "@aws-sdk/util-user-agent-node": "3.489.0",
36
- "@smithy/config-resolver": "^2.0.23",
37
- "@smithy/core": "^1.2.2",
38
- "@smithy/fetch-http-handler": "^2.3.2",
39
- "@smithy/hash-node": "^2.0.18",
40
- "@smithy/invalid-dependency": "^2.0.16",
41
- "@smithy/middleware-content-length": "^2.0.18",
42
- "@smithy/middleware-endpoint": "^2.3.0",
43
- "@smithy/middleware-retry": "^2.0.26",
44
- "@smithy/middleware-serde": "^2.0.16",
45
- "@smithy/middleware-stack": "^2.0.10",
46
- "@smithy/node-config-provider": "^2.1.9",
47
- "@smithy/node-http-handler": "^2.2.2",
48
- "@smithy/protocol-http": "^3.0.12",
49
- "@smithy/smithy-client": "^2.2.1",
50
- "@smithy/types": "^2.8.0",
51
- "@smithy/url-parser": "^2.0.16",
52
- "@smithy/util-base64": "^2.0.1",
53
- "@smithy/util-body-length-browser": "^2.0.1",
54
- "@smithy/util-body-length-node": "^2.1.0",
55
- "@smithy/util-defaults-mode-browser": "^2.0.24",
56
- "@smithy/util-defaults-mode-node": "^2.0.32",
57
- "@smithy/util-endpoints": "^1.0.8",
58
- "@smithy/util-retry": "^2.0.9",
59
- "@smithy/util-stream": "^2.0.24",
60
- "@smithy/util-utf8": "^2.0.2",
23
+ "@aws-sdk/client-sts": "3.496.0",
24
+ "@aws-sdk/core": "3.496.0",
25
+ "@aws-sdk/credential-provider-node": "3.496.0",
26
+ "@aws-sdk/middleware-host-header": "3.496.0",
27
+ "@aws-sdk/middleware-logger": "3.496.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.496.0",
29
+ "@aws-sdk/middleware-signing": "3.496.0",
30
+ "@aws-sdk/middleware-user-agent": "3.496.0",
31
+ "@aws-sdk/region-config-resolver": "3.496.0",
32
+ "@aws-sdk/types": "3.496.0",
33
+ "@aws-sdk/util-endpoints": "3.496.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.496.0",
35
+ "@aws-sdk/util-user-agent-node": "3.496.0",
36
+ "@smithy/config-resolver": "^2.1.1",
37
+ "@smithy/core": "^1.3.1",
38
+ "@smithy/fetch-http-handler": "^2.4.1",
39
+ "@smithy/hash-node": "^2.1.1",
40
+ "@smithy/invalid-dependency": "^2.1.1",
41
+ "@smithy/middleware-content-length": "^2.1.1",
42
+ "@smithy/middleware-endpoint": "^2.4.1",
43
+ "@smithy/middleware-retry": "^2.1.1",
44
+ "@smithy/middleware-serde": "^2.1.1",
45
+ "@smithy/middleware-stack": "^2.1.1",
46
+ "@smithy/node-config-provider": "^2.2.1",
47
+ "@smithy/node-http-handler": "^2.3.1",
48
+ "@smithy/protocol-http": "^3.1.1",
49
+ "@smithy/smithy-client": "^2.3.1",
50
+ "@smithy/types": "^2.9.1",
51
+ "@smithy/url-parser": "^2.1.1",
52
+ "@smithy/util-base64": "^2.1.1",
53
+ "@smithy/util-body-length-browser": "^2.1.1",
54
+ "@smithy/util-body-length-node": "^2.2.1",
55
+ "@smithy/util-defaults-mode-browser": "^2.1.1",
56
+ "@smithy/util-defaults-mode-node": "^2.1.1",
57
+ "@smithy/util-endpoints": "^1.1.1",
58
+ "@smithy/util-retry": "^2.1.1",
59
+ "@smithy/util-stream": "^2.1.1",
60
+ "@smithy/util-utf8": "^2.1.1",
61
61
  "tslib": "^2.5.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@smithy/service-client-documentation-generator": "^2.0.0",
64
+ "@smithy/service-client-documentation-generator": "^2.1.1",
65
65
  "@tsconfig/node14": "1.0.3",
66
66
  "@types/node": "^14.14.31",
67
67
  "concurrently": "7.0.0",