@aws-sdk/client-workmailmessageflow 3.928.0 → 3.930.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.
- package/dist-cjs/index.js +152 -167
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/WorkMailMessageFlowClient.js +2 -0
- package/dist-es/commands/GetRawMessageContentCommand.js +3 -10
- package/dist-es/commands/PutRawMessageContentCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -3
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +134 -0
- package/dist-types/WorkMailMessageFlowClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +15 -0
- package/dist-types/ts3.4/WorkMailMessageFlowClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +20 -0
- package/package.json +34 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -138
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -20
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -32
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class WorkMailMessageFlowClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,14 +110,14 @@ class WorkMailMessageFlowClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class WorkMailMessageFlowServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let WorkMailMessageFlowServiceException$1 = class WorkMailMessageFlowServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, WorkMailMessageFlowServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
|
-
class ResourceNotFoundException extends WorkMailMessageFlowServiceException {
|
|
120
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends WorkMailMessageFlowServiceException$1 {
|
|
121
121
|
name = "ResourceNotFoundException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
constructor(opts) {
|
|
@@ -128,8 +128,8 @@ class ResourceNotFoundException extends WorkMailMessageFlowServiceException {
|
|
|
128
128
|
});
|
|
129
129
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
130
130
|
}
|
|
131
|
-
}
|
|
132
|
-
class InvalidContentLocation extends WorkMailMessageFlowServiceException {
|
|
131
|
+
};
|
|
132
|
+
let InvalidContentLocation$1 = class InvalidContentLocation extends WorkMailMessageFlowServiceException$1 {
|
|
133
133
|
name = "InvalidContentLocation";
|
|
134
134
|
$fault = "client";
|
|
135
135
|
constructor(opts) {
|
|
@@ -140,8 +140,8 @@ class InvalidContentLocation extends WorkMailMessageFlowServiceException {
|
|
|
140
140
|
});
|
|
141
141
|
Object.setPrototypeOf(this, InvalidContentLocation.prototype);
|
|
142
142
|
}
|
|
143
|
-
}
|
|
144
|
-
class MessageFrozen extends WorkMailMessageFlowServiceException {
|
|
143
|
+
};
|
|
144
|
+
let MessageFrozen$1 = class MessageFrozen extends WorkMailMessageFlowServiceException$1 {
|
|
145
145
|
name = "MessageFrozen";
|
|
146
146
|
$fault = "client";
|
|
147
147
|
constructor(opts) {
|
|
@@ -152,8 +152,8 @@ class MessageFrozen extends WorkMailMessageFlowServiceException {
|
|
|
152
152
|
});
|
|
153
153
|
Object.setPrototypeOf(this, MessageFrozen.prototype);
|
|
154
154
|
}
|
|
155
|
-
}
|
|
156
|
-
class MessageRejected extends WorkMailMessageFlowServiceException {
|
|
155
|
+
};
|
|
156
|
+
let MessageRejected$1 = class MessageRejected extends WorkMailMessageFlowServiceException$1 {
|
|
157
157
|
name = "MessageRejected";
|
|
158
158
|
$fault = "client";
|
|
159
159
|
constructor(opts) {
|
|
@@ -164,158 +164,149 @@ class MessageRejected extends WorkMailMessageFlowServiceException {
|
|
|
164
164
|
});
|
|
165
165
|
Object.setPrototypeOf(this, MessageRejected.prototype);
|
|
166
166
|
}
|
|
167
|
-
}
|
|
168
|
-
const GetRawMessageContentResponseFilterSensitiveLog = (obj) => ({
|
|
169
|
-
...obj,
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
const se_GetRawMessageContentCommand = async (input, context) => {
|
|
173
|
-
const b = core.requestBuilder(input, context);
|
|
174
|
-
const headers = {};
|
|
175
|
-
b.bp("/messages/{messageId}");
|
|
176
|
-
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
177
|
-
let body;
|
|
178
|
-
b.m("GET").h(headers).b(body);
|
|
179
|
-
return b.build();
|
|
180
|
-
};
|
|
181
|
-
const se_PutRawMessageContentCommand = async (input, context) => {
|
|
182
|
-
const b = core.requestBuilder(input, context);
|
|
183
|
-
const headers = {
|
|
184
|
-
"content-type": "application/json",
|
|
185
|
-
};
|
|
186
|
-
b.bp("/messages/{messageId}");
|
|
187
|
-
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
190
|
-
content: (_) => smithyClient._json(_),
|
|
191
|
-
}));
|
|
192
|
-
b.m("POST").h(headers).b(body);
|
|
193
|
-
return b.build();
|
|
194
|
-
};
|
|
195
|
-
const de_GetRawMessageContentCommand = async (output, context) => {
|
|
196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
197
|
-
return de_CommandError(output, context);
|
|
198
|
-
}
|
|
199
|
-
const contents = smithyClient.map({
|
|
200
|
-
$metadata: deserializeMetadata(output),
|
|
201
|
-
});
|
|
202
|
-
const data = output.body;
|
|
203
|
-
context.sdkStreamMixin(data);
|
|
204
|
-
contents.messageContent = data;
|
|
205
|
-
return contents;
|
|
206
|
-
};
|
|
207
|
-
const de_PutRawMessageContentCommand = async (output, context) => {
|
|
208
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
209
|
-
return de_CommandError(output, context);
|
|
210
|
-
}
|
|
211
|
-
const contents = smithyClient.map({
|
|
212
|
-
$metadata: deserializeMetadata(output),
|
|
213
|
-
});
|
|
214
|
-
await smithyClient.collectBody(output.body, context);
|
|
215
|
-
return contents;
|
|
216
|
-
};
|
|
217
|
-
const de_CommandError = async (output, context) => {
|
|
218
|
-
const parsedOutput = {
|
|
219
|
-
...output,
|
|
220
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
221
|
-
};
|
|
222
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
223
|
-
switch (errorCode) {
|
|
224
|
-
case "ResourceNotFoundException":
|
|
225
|
-
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
226
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
227
|
-
case "InvalidContentLocation":
|
|
228
|
-
case "com.amazonaws.workmailmessageflow#InvalidContentLocation":
|
|
229
|
-
throw await de_InvalidContentLocationRes(parsedOutput);
|
|
230
|
-
case "MessageFrozen":
|
|
231
|
-
case "com.amazonaws.workmailmessageflow#MessageFrozen":
|
|
232
|
-
throw await de_MessageFrozenRes(parsedOutput);
|
|
233
|
-
case "MessageRejected":
|
|
234
|
-
case "com.amazonaws.workmailmessageflow#MessageRejected":
|
|
235
|
-
throw await de_MessageRejectedRes(parsedOutput);
|
|
236
|
-
default:
|
|
237
|
-
const parsedBody = parsedOutput.body;
|
|
238
|
-
return throwDefaultError({
|
|
239
|
-
output,
|
|
240
|
-
parsedBody,
|
|
241
|
-
errorCode,
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
const throwDefaultError = smithyClient.withBaseException(WorkMailMessageFlowServiceException);
|
|
246
|
-
const de_InvalidContentLocationRes = async (parsedOutput, context) => {
|
|
247
|
-
const contents = smithyClient.map({});
|
|
248
|
-
const data = parsedOutput.body;
|
|
249
|
-
const doc = smithyClient.take(data, {
|
|
250
|
-
message: smithyClient.expectString,
|
|
251
|
-
});
|
|
252
|
-
Object.assign(contents, doc);
|
|
253
|
-
const exception = new InvalidContentLocation({
|
|
254
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
255
|
-
...contents,
|
|
256
|
-
});
|
|
257
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
258
|
-
};
|
|
259
|
-
const de_MessageFrozenRes = async (parsedOutput, context) => {
|
|
260
|
-
const contents = smithyClient.map({});
|
|
261
|
-
const data = parsedOutput.body;
|
|
262
|
-
const doc = smithyClient.take(data, {
|
|
263
|
-
message: smithyClient.expectString,
|
|
264
|
-
});
|
|
265
|
-
Object.assign(contents, doc);
|
|
266
|
-
const exception = new MessageFrozen({
|
|
267
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
268
|
-
...contents,
|
|
269
|
-
});
|
|
270
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
271
167
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
168
|
+
|
|
169
|
+
const _GRMC = "GetRawMessageContent";
|
|
170
|
+
const _GRMCR = "GetRawMessageContentRequest";
|
|
171
|
+
const _GRMCRe = "GetRawMessageContentResponse";
|
|
172
|
+
const _ICL = "InvalidContentLocation";
|
|
173
|
+
const _MF = "MessageFrozen";
|
|
174
|
+
const _MR = "MessageRejected";
|
|
175
|
+
const _PRMC = "PutRawMessageContent";
|
|
176
|
+
const _PRMCR = "PutRawMessageContentRequest";
|
|
177
|
+
const _PRMCRu = "PutRawMessageContentResponse";
|
|
178
|
+
const _RMC = "RawMessageContent";
|
|
179
|
+
const _RNFE = "ResourceNotFoundException";
|
|
180
|
+
const _SR = "S3Reference";
|
|
181
|
+
const _b = "bucket";
|
|
182
|
+
const _c = "client";
|
|
183
|
+
const _co = "content";
|
|
184
|
+
const _e = "error";
|
|
185
|
+
const _h = "http";
|
|
186
|
+
const _hE = "httpError";
|
|
187
|
+
const _k = "key";
|
|
188
|
+
const _m = "message";
|
|
189
|
+
const _mC = "messageContent";
|
|
190
|
+
const _mCB = "messageContentBlob";
|
|
191
|
+
const _mI = "messageId";
|
|
192
|
+
const _oV = "objectVersion";
|
|
193
|
+
const _s = "streaming";
|
|
194
|
+
const _sR = "s3Reference";
|
|
195
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.workmailmessageflow";
|
|
196
|
+
const n0 = "com.amazonaws.workmailmessageflow";
|
|
197
|
+
var messageContentBlob = [
|
|
198
|
+
0,
|
|
199
|
+
n0,
|
|
200
|
+
_mCB,
|
|
201
|
+
{
|
|
202
|
+
[_s]: 1,
|
|
203
|
+
},
|
|
204
|
+
42,
|
|
205
|
+
];
|
|
206
|
+
var GetRawMessageContentRequest = [3, n0, _GRMCR, 0, [_mI], [[0, 1]]];
|
|
207
|
+
var GetRawMessageContentResponse = [
|
|
208
|
+
3,
|
|
209
|
+
n0,
|
|
210
|
+
_GRMCRe,
|
|
211
|
+
0,
|
|
212
|
+
[_mC],
|
|
213
|
+
[[() => messageContentBlob, 16]],
|
|
214
|
+
];
|
|
215
|
+
var InvalidContentLocation = [
|
|
216
|
+
-3,
|
|
217
|
+
n0,
|
|
218
|
+
_ICL,
|
|
219
|
+
{
|
|
220
|
+
[_e]: _c,
|
|
221
|
+
},
|
|
222
|
+
[_m],
|
|
223
|
+
[0],
|
|
224
|
+
];
|
|
225
|
+
schema.TypeRegistry.for(n0).registerError(InvalidContentLocation, InvalidContentLocation$1);
|
|
226
|
+
var MessageFrozen = [
|
|
227
|
+
-3,
|
|
228
|
+
n0,
|
|
229
|
+
_MF,
|
|
230
|
+
{
|
|
231
|
+
[_e]: _c,
|
|
232
|
+
},
|
|
233
|
+
[_m],
|
|
234
|
+
[0],
|
|
235
|
+
];
|
|
236
|
+
schema.TypeRegistry.for(n0).registerError(MessageFrozen, MessageFrozen$1);
|
|
237
|
+
var MessageRejected = [
|
|
238
|
+
-3,
|
|
239
|
+
n0,
|
|
240
|
+
_MR,
|
|
241
|
+
{
|
|
242
|
+
[_e]: _c,
|
|
243
|
+
},
|
|
244
|
+
[_m],
|
|
245
|
+
[0],
|
|
246
|
+
];
|
|
247
|
+
schema.TypeRegistry.for(n0).registerError(MessageRejected, MessageRejected$1);
|
|
248
|
+
var PutRawMessageContentRequest = [
|
|
249
|
+
3,
|
|
250
|
+
n0,
|
|
251
|
+
_PRMCR,
|
|
252
|
+
0,
|
|
253
|
+
[_mI, _co],
|
|
254
|
+
[[0, 1], () => RawMessageContent],
|
|
255
|
+
];
|
|
256
|
+
var PutRawMessageContentResponse = [3, n0, _PRMCRu, 0, [], []];
|
|
257
|
+
var RawMessageContent = [3, n0, _RMC, 0, [_sR], [() => S3Reference]];
|
|
258
|
+
var ResourceNotFoundException = [
|
|
259
|
+
-3,
|
|
260
|
+
n0,
|
|
261
|
+
_RNFE,
|
|
262
|
+
{
|
|
263
|
+
[_e]: _c,
|
|
264
|
+
[_hE]: 404,
|
|
265
|
+
},
|
|
266
|
+
[_m],
|
|
267
|
+
[0],
|
|
268
|
+
];
|
|
269
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
270
|
+
var S3Reference = [3, n0, _SR, 0, [_b, _k, _oV], [0, 0, 0]];
|
|
271
|
+
var WorkMailMessageFlowServiceException = [
|
|
272
|
+
-3,
|
|
273
|
+
_sm,
|
|
274
|
+
"WorkMailMessageFlowServiceException",
|
|
275
|
+
0,
|
|
276
|
+
[],
|
|
277
|
+
[],
|
|
278
|
+
];
|
|
279
|
+
schema.TypeRegistry.for(_sm).registerError(WorkMailMessageFlowServiceException, WorkMailMessageFlowServiceException$1);
|
|
280
|
+
var GetRawMessageContent = [
|
|
281
|
+
9,
|
|
282
|
+
n0,
|
|
283
|
+
_GRMC,
|
|
284
|
+
{
|
|
285
|
+
[_h]: ["GET", "/messages/{messageId}", 200],
|
|
286
|
+
},
|
|
287
|
+
() => GetRawMessageContentRequest,
|
|
288
|
+
() => GetRawMessageContentResponse,
|
|
289
|
+
];
|
|
290
|
+
var PutRawMessageContent = [
|
|
291
|
+
9,
|
|
292
|
+
n0,
|
|
293
|
+
_PRMC,
|
|
294
|
+
{
|
|
295
|
+
[_h]: ["POST", "/messages/{messageId}", 200],
|
|
296
|
+
},
|
|
297
|
+
() => PutRawMessageContentRequest,
|
|
298
|
+
() => PutRawMessageContentResponse,
|
|
299
|
+
];
|
|
304
300
|
|
|
305
301
|
class GetRawMessageContentCommand extends smithyClient.Command
|
|
306
302
|
.classBuilder()
|
|
307
303
|
.ep(commonParams)
|
|
308
304
|
.m(function (Command, cs, config, o) {
|
|
309
|
-
return [
|
|
310
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
311
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
312
|
-
];
|
|
305
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
313
306
|
})
|
|
314
307
|
.s("GiraffeMessageInTransitService", "GetRawMessageContent", {})
|
|
315
308
|
.n("WorkMailMessageFlowClient", "GetRawMessageContentCommand")
|
|
316
|
-
.
|
|
317
|
-
.ser(se_GetRawMessageContentCommand)
|
|
318
|
-
.de(de_GetRawMessageContentCommand)
|
|
309
|
+
.sc(GetRawMessageContent)
|
|
319
310
|
.build() {
|
|
320
311
|
}
|
|
321
312
|
|
|
@@ -323,16 +314,11 @@ class PutRawMessageContentCommand extends smithyClient.Command
|
|
|
323
314
|
.classBuilder()
|
|
324
315
|
.ep(commonParams)
|
|
325
316
|
.m(function (Command, cs, config, o) {
|
|
326
|
-
return [
|
|
327
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
328
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
329
|
-
];
|
|
317
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
330
318
|
})
|
|
331
319
|
.s("GiraffeMessageInTransitService", "PutRawMessageContent", {})
|
|
332
320
|
.n("WorkMailMessageFlowClient", "PutRawMessageContentCommand")
|
|
333
|
-
.
|
|
334
|
-
.ser(se_PutRawMessageContentCommand)
|
|
335
|
-
.de(de_PutRawMessageContentCommand)
|
|
321
|
+
.sc(PutRawMessageContent)
|
|
336
322
|
.build() {
|
|
337
323
|
}
|
|
338
324
|
|
|
@@ -353,12 +339,11 @@ Object.defineProperty(exports, "__Client", {
|
|
|
353
339
|
get: function () { return smithyClient.Client; }
|
|
354
340
|
});
|
|
355
341
|
exports.GetRawMessageContentCommand = GetRawMessageContentCommand;
|
|
356
|
-
exports.
|
|
357
|
-
exports.
|
|
358
|
-
exports.
|
|
359
|
-
exports.MessageRejected = MessageRejected;
|
|
342
|
+
exports.InvalidContentLocation = InvalidContentLocation$1;
|
|
343
|
+
exports.MessageFrozen = MessageFrozen$1;
|
|
344
|
+
exports.MessageRejected = MessageRejected$1;
|
|
360
345
|
exports.PutRawMessageContentCommand = PutRawMessageContentCommand;
|
|
361
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
346
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
362
347
|
exports.WorkMailMessageFlow = WorkMailMessageFlow;
|
|
363
348
|
exports.WorkMailMessageFlowClient = WorkMailMessageFlowClient;
|
|
364
|
-
exports.WorkMailMessageFlowServiceException = WorkMailMessageFlowServiceException;
|
|
349
|
+
exports.WorkMailMessageFlowServiceException = WorkMailMessageFlowServiceException$1;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -26,6 +27,7 @@ const getRuntimeConfig = (config) => {
|
|
|
26
27
|
},
|
|
27
28
|
],
|
|
28
29
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
30
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.workmailmessageflow" }),
|
|
29
31
|
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
|
|
30
32
|
serviceId: config?.serviceId ?? "WorkMailMessageFlow",
|
|
31
33
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class WorkMailMessageFlowClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetRawMessageContentCommand, se_GetRawMessageContentCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetRawMessageContent } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetRawMessageContentCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("GiraffeMessageInTransitService", "GetRawMessageContent", {})
|
|
18
13
|
.n("WorkMailMessageFlowClient", "GetRawMessageContentCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetRawMessageContentCommand)
|
|
21
|
-
.de(de_GetRawMessageContentCommand)
|
|
14
|
+
.sc(GetRawMessageContent)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutRawMessageContent } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutRawMessageContentCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GiraffeMessageInTransitService", "PutRawMessageContent", {})
|
|
17
13
|
.n("WorkMailMessageFlowClient", "PutRawMessageContentCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutRawMessageContentCommand)
|
|
20
|
-
.de(de_PutRawMessageContentCommand)
|
|
14
|
+
.sc(PutRawMessageContent)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -23,6 +24,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
24
|
},
|
|
24
25
|
],
|
|
25
26
|
logger: config?.logger ?? new NoOpLogger(),
|
|
27
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.workmailmessageflow" }),
|
|
26
28
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
27
29
|
serviceId: config?.serviceId ?? "WorkMailMessageFlow",
|
|
28
30
|
urlParser: config?.urlParser ?? parseUrl,
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
const _GRMC = "GetRawMessageContent";
|
|
2
|
+
const _GRMCR = "GetRawMessageContentRequest";
|
|
3
|
+
const _GRMCRe = "GetRawMessageContentResponse";
|
|
4
|
+
const _ICL = "InvalidContentLocation";
|
|
5
|
+
const _MF = "MessageFrozen";
|
|
6
|
+
const _MR = "MessageRejected";
|
|
7
|
+
const _PRMC = "PutRawMessageContent";
|
|
8
|
+
const _PRMCR = "PutRawMessageContentRequest";
|
|
9
|
+
const _PRMCRu = "PutRawMessageContentResponse";
|
|
10
|
+
const _RMC = "RawMessageContent";
|
|
11
|
+
const _RNFE = "ResourceNotFoundException";
|
|
12
|
+
const _SR = "S3Reference";
|
|
13
|
+
const _b = "bucket";
|
|
14
|
+
const _c = "client";
|
|
15
|
+
const _co = "content";
|
|
16
|
+
const _e = "error";
|
|
17
|
+
const _h = "http";
|
|
18
|
+
const _hE = "httpError";
|
|
19
|
+
const _k = "key";
|
|
20
|
+
const _m = "message";
|
|
21
|
+
const _mC = "messageContent";
|
|
22
|
+
const _mCB = "messageContentBlob";
|
|
23
|
+
const _mI = "messageId";
|
|
24
|
+
const _oV = "objectVersion";
|
|
25
|
+
const _s = "streaming";
|
|
26
|
+
const _sR = "s3Reference";
|
|
27
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.workmailmessageflow";
|
|
28
|
+
const n0 = "com.amazonaws.workmailmessageflow";
|
|
29
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
30
|
+
import { InvalidContentLocation as __InvalidContentLocation, MessageFrozen as __MessageFrozen, MessageRejected as __MessageRejected, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/index";
|
|
31
|
+
import { WorkMailMessageFlowServiceException as __WorkMailMessageFlowServiceException } from "../models/WorkMailMessageFlowServiceException";
|
|
32
|
+
export var messageContentBlob = [
|
|
33
|
+
0,
|
|
34
|
+
n0,
|
|
35
|
+
_mCB,
|
|
36
|
+
{
|
|
37
|
+
[_s]: 1,
|
|
38
|
+
},
|
|
39
|
+
42,
|
|
40
|
+
];
|
|
41
|
+
export var GetRawMessageContentRequest = [3, n0, _GRMCR, 0, [_mI], [[0, 1]]];
|
|
42
|
+
export var GetRawMessageContentResponse = [
|
|
43
|
+
3,
|
|
44
|
+
n0,
|
|
45
|
+
_GRMCRe,
|
|
46
|
+
0,
|
|
47
|
+
[_mC],
|
|
48
|
+
[[() => messageContentBlob, 16]],
|
|
49
|
+
];
|
|
50
|
+
export var InvalidContentLocation = [
|
|
51
|
+
-3,
|
|
52
|
+
n0,
|
|
53
|
+
_ICL,
|
|
54
|
+
{
|
|
55
|
+
[_e]: _c,
|
|
56
|
+
},
|
|
57
|
+
[_m],
|
|
58
|
+
[0],
|
|
59
|
+
];
|
|
60
|
+
TypeRegistry.for(n0).registerError(InvalidContentLocation, __InvalidContentLocation);
|
|
61
|
+
export var MessageFrozen = [
|
|
62
|
+
-3,
|
|
63
|
+
n0,
|
|
64
|
+
_MF,
|
|
65
|
+
{
|
|
66
|
+
[_e]: _c,
|
|
67
|
+
},
|
|
68
|
+
[_m],
|
|
69
|
+
[0],
|
|
70
|
+
];
|
|
71
|
+
TypeRegistry.for(n0).registerError(MessageFrozen, __MessageFrozen);
|
|
72
|
+
export var MessageRejected = [
|
|
73
|
+
-3,
|
|
74
|
+
n0,
|
|
75
|
+
_MR,
|
|
76
|
+
{
|
|
77
|
+
[_e]: _c,
|
|
78
|
+
},
|
|
79
|
+
[_m],
|
|
80
|
+
[0],
|
|
81
|
+
];
|
|
82
|
+
TypeRegistry.for(n0).registerError(MessageRejected, __MessageRejected);
|
|
83
|
+
export var PutRawMessageContentRequest = [
|
|
84
|
+
3,
|
|
85
|
+
n0,
|
|
86
|
+
_PRMCR,
|
|
87
|
+
0,
|
|
88
|
+
[_mI, _co],
|
|
89
|
+
[[0, 1], () => RawMessageContent],
|
|
90
|
+
];
|
|
91
|
+
export var PutRawMessageContentResponse = [3, n0, _PRMCRu, 0, [], []];
|
|
92
|
+
export var RawMessageContent = [3, n0, _RMC, 0, [_sR], [() => S3Reference]];
|
|
93
|
+
export var ResourceNotFoundException = [
|
|
94
|
+
-3,
|
|
95
|
+
n0,
|
|
96
|
+
_RNFE,
|
|
97
|
+
{
|
|
98
|
+
[_e]: _c,
|
|
99
|
+
[_hE]: 404,
|
|
100
|
+
},
|
|
101
|
+
[_m],
|
|
102
|
+
[0],
|
|
103
|
+
];
|
|
104
|
+
TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
|
|
105
|
+
export var S3Reference = [3, n0, _SR, 0, [_b, _k, _oV], [0, 0, 0]];
|
|
106
|
+
export var WorkMailMessageFlowServiceException = [
|
|
107
|
+
-3,
|
|
108
|
+
_sm,
|
|
109
|
+
"WorkMailMessageFlowServiceException",
|
|
110
|
+
0,
|
|
111
|
+
[],
|
|
112
|
+
[],
|
|
113
|
+
];
|
|
114
|
+
TypeRegistry.for(_sm).registerError(WorkMailMessageFlowServiceException, __WorkMailMessageFlowServiceException);
|
|
115
|
+
export var GetRawMessageContent = [
|
|
116
|
+
9,
|
|
117
|
+
n0,
|
|
118
|
+
_GRMC,
|
|
119
|
+
{
|
|
120
|
+
[_h]: ["GET", "/messages/{messageId}", 200],
|
|
121
|
+
},
|
|
122
|
+
() => GetRawMessageContentRequest,
|
|
123
|
+
() => GetRawMessageContentResponse,
|
|
124
|
+
];
|
|
125
|
+
export var PutRawMessageContent = [
|
|
126
|
+
9,
|
|
127
|
+
n0,
|
|
128
|
+
_PRMC,
|
|
129
|
+
{
|
|
130
|
+
[_h]: ["POST", "/messages/{messageId}", 200],
|
|
131
|
+
},
|
|
132
|
+
() => PutRawMessageContentRequest,
|
|
133
|
+
() => PutRawMessageContentResponse,
|
|
134
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput } from "./commands/GetRawMessageContentCommand";
|
|
11
11
|
import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } from "./commands/PutRawMessageContentCommand";
|
|
@@ -143,6 +143,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
143
143
|
* Optional extensions
|
|
144
144
|
*/
|
|
145
145
|
extensions?: RuntimeExtension[];
|
|
146
|
+
/**
|
|
147
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
148
|
+
* may be overridden. A default will always be set by the client.
|
|
149
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
150
|
+
* the client.
|
|
151
|
+
* @alpha
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
146
155
|
/**
|
|
147
156
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
148
157
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig)
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
33
34
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
34
35
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig)
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
35
36
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
36
37
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig)
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig)
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").WorkMailMessageFlowHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
18
19
|
serviceId: string;
|
|
19
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var messageContentBlob: StaticSimpleSchema;
|
|
3
|
+
export declare var GetRawMessageContentRequest: StaticStructureSchema;
|
|
4
|
+
export declare var GetRawMessageContentResponse: StaticStructureSchema;
|
|
5
|
+
export declare var InvalidContentLocation: StaticErrorSchema;
|
|
6
|
+
export declare var MessageFrozen: StaticErrorSchema;
|
|
7
|
+
export declare var MessageRejected: StaticErrorSchema;
|
|
8
|
+
export declare var PutRawMessageContentRequest: StaticStructureSchema;
|
|
9
|
+
export declare var PutRawMessageContentResponse: StaticStructureSchema;
|
|
10
|
+
export declare var RawMessageContent: StaticStructureSchema;
|
|
11
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
12
|
+
export declare var S3Reference: StaticStructureSchema;
|
|
13
|
+
export declare var WorkMailMessageFlowServiceException: StaticErrorSchema;
|
|
14
|
+
export declare var GetRawMessageContent: StaticOperationSchema;
|
|
15
|
+
export declare var PutRawMessageContent: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -91,6 +94,7 @@ export interface ClientDefaults
|
|
|
91
94
|
retryMode?: string | __Provider<string>;
|
|
92
95
|
logger?: __Logger;
|
|
93
96
|
extensions?: RuntimeExtension[];
|
|
97
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
94
98
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
95
99
|
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
96
100
|
}
|
|
@@ -44,6 +44,3 @@ export interface PutRawMessageContentRequest {
|
|
|
44
44
|
content: RawMessageContent | undefined;
|
|
45
45
|
}
|
|
46
46
|
export interface PutRawMessageContentResponse {}
|
|
47
|
-
export declare const GetRawMessageContentResponseFilterSensitiveLog: (
|
|
48
|
-
obj: GetRawMessageContentResponse
|
|
49
|
-
) => any;
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
44
48
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
45
49
|
userAgentAppId?:
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
44
48
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
45
49
|
retryStrategy?:
|
|
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
|
|
|
39
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
+
import("@smithy/types").HttpRequest,
|
|
44
|
+
import("@smithy/types").HttpResponse
|
|
45
|
+
>;
|
|
42
46
|
defaultsMode:
|
|
43
47
|
| import("@smithy/smithy-client").DefaultsMode
|
|
44
48
|
| import("@smithy/types").Provider<
|
|
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
|
|
|
16
16
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").WorkMailMessageFlowHttpAuthSchemeProvider;
|
|
17
17
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
18
|
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
20
|
+
import("@smithy/types").HttpRequest,
|
|
21
|
+
import("@smithy/types").HttpResponse
|
|
22
|
+
>;
|
|
19
23
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
20
24
|
serviceId: string;
|
|
21
25
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticOperationSchema,
|
|
4
|
+
StaticSimpleSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var messageContentBlob: StaticSimpleSchema;
|
|
8
|
+
export declare var GetRawMessageContentRequest: StaticStructureSchema;
|
|
9
|
+
export declare var GetRawMessageContentResponse: StaticStructureSchema;
|
|
10
|
+
export declare var InvalidContentLocation: StaticErrorSchema;
|
|
11
|
+
export declare var MessageFrozen: StaticErrorSchema;
|
|
12
|
+
export declare var MessageRejected: StaticErrorSchema;
|
|
13
|
+
export declare var PutRawMessageContentRequest: StaticStructureSchema;
|
|
14
|
+
export declare var PutRawMessageContentResponse: StaticStructureSchema;
|
|
15
|
+
export declare var RawMessageContent: StaticStructureSchema;
|
|
16
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
17
|
+
export declare var S3Reference: StaticStructureSchema;
|
|
18
|
+
export declare var WorkMailMessageFlowServiceException: StaticErrorSchema;
|
|
19
|
+
export declare var GetRawMessageContent: StaticOperationSchema;
|
|
20
|
+
export declare var PutRawMessageContent: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
"version": "3.930.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-workmailmessageflow",
|
|
@@ -20,42 +20,42 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
-
"@smithy/config-resolver": "^4.4.
|
|
35
|
-
"@smithy/core": "^3.
|
|
36
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
37
|
-
"@smithy/hash-node": "^4.2.
|
|
38
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
39
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
43
|
-
"@smithy/middleware-stack": "^4.2.
|
|
44
|
-
"@smithy/node-config-provider": "^4.3.
|
|
45
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
-
"@smithy/protocol-http": "^5.3.
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
48
|
-
"@smithy/types": "^4.
|
|
49
|
-
"@smithy/url-parser": "^4.2.
|
|
23
|
+
"@aws-sdk/core": "3.930.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.930.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.930.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.930.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
|
+
"@aws-sdk/types": "3.930.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.930.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.930.0",
|
|
34
|
+
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
+
"@smithy/core": "^3.18.2",
|
|
36
|
+
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
|
+
"@smithy/hash-node": "^4.2.5",
|
|
38
|
+
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
|
+
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.9",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.9",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.5",
|
|
43
|
+
"@smithy/middleware-stack": "^4.2.5",
|
|
44
|
+
"@smithy/node-config-provider": "^4.3.5",
|
|
45
|
+
"@smithy/node-http-handler": "^4.4.5",
|
|
46
|
+
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
+
"@smithy/smithy-client": "^4.9.5",
|
|
48
|
+
"@smithy/types": "^4.9.0",
|
|
49
|
+
"@smithy/url-parser": "^4.2.5",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
55
|
-
"@smithy/util-endpoints": "^3.2.
|
|
56
|
-
"@smithy/util-middleware": "^4.2.
|
|
57
|
-
"@smithy/util-retry": "^4.2.
|
|
58
|
-
"@smithy/util-stream": "^4.5.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.8",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.11",
|
|
55
|
+
"@smithy/util-endpoints": "^3.2.5",
|
|
56
|
+
"@smithy/util-middleware": "^4.2.5",
|
|
57
|
+
"@smithy/util-retry": "^4.2.5",
|
|
58
|
+
"@smithy/util-stream": "^4.5.6",
|
|
59
59
|
"@smithy/util-utf8": "^4.2.0",
|
|
60
60
|
"tslib": "^2.6.2"
|
|
61
61
|
},
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { InvalidContentLocation, MessageFrozen, MessageRejected, ResourceNotFoundException, } from "../models/models_0";
|
|
5
|
-
import { WorkMailMessageFlowServiceException as __BaseException } from "../models/WorkMailMessageFlowServiceException";
|
|
6
|
-
export const se_GetRawMessageContentCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {};
|
|
9
|
-
b.bp("/messages/{messageId}");
|
|
10
|
-
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
11
|
-
let body;
|
|
12
|
-
b.m("GET").h(headers).b(body);
|
|
13
|
-
return b.build();
|
|
14
|
-
};
|
|
15
|
-
export const se_PutRawMessageContentCommand = async (input, context) => {
|
|
16
|
-
const b = rb(input, context);
|
|
17
|
-
const headers = {
|
|
18
|
-
"content-type": "application/json",
|
|
19
|
-
};
|
|
20
|
-
b.bp("/messages/{messageId}");
|
|
21
|
-
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
22
|
-
let body;
|
|
23
|
-
body = JSON.stringify(take(input, {
|
|
24
|
-
content: (_) => _json(_),
|
|
25
|
-
}));
|
|
26
|
-
b.m("POST").h(headers).b(body);
|
|
27
|
-
return b.build();
|
|
28
|
-
};
|
|
29
|
-
export const de_GetRawMessageContentCommand = async (output, context) => {
|
|
30
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
31
|
-
return de_CommandError(output, context);
|
|
32
|
-
}
|
|
33
|
-
const contents = map({
|
|
34
|
-
$metadata: deserializeMetadata(output),
|
|
35
|
-
});
|
|
36
|
-
const data = output.body;
|
|
37
|
-
context.sdkStreamMixin(data);
|
|
38
|
-
contents.messageContent = data;
|
|
39
|
-
return contents;
|
|
40
|
-
};
|
|
41
|
-
export const de_PutRawMessageContentCommand = async (output, context) => {
|
|
42
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
43
|
-
return de_CommandError(output, context);
|
|
44
|
-
}
|
|
45
|
-
const contents = map({
|
|
46
|
-
$metadata: deserializeMetadata(output),
|
|
47
|
-
});
|
|
48
|
-
await collectBody(output.body, context);
|
|
49
|
-
return contents;
|
|
50
|
-
};
|
|
51
|
-
const de_CommandError = async (output, context) => {
|
|
52
|
-
const parsedOutput = {
|
|
53
|
-
...output,
|
|
54
|
-
body: await parseErrorBody(output.body, context),
|
|
55
|
-
};
|
|
56
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
57
|
-
switch (errorCode) {
|
|
58
|
-
case "ResourceNotFoundException":
|
|
59
|
-
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
60
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
61
|
-
case "InvalidContentLocation":
|
|
62
|
-
case "com.amazonaws.workmailmessageflow#InvalidContentLocation":
|
|
63
|
-
throw await de_InvalidContentLocationRes(parsedOutput, context);
|
|
64
|
-
case "MessageFrozen":
|
|
65
|
-
case "com.amazonaws.workmailmessageflow#MessageFrozen":
|
|
66
|
-
throw await de_MessageFrozenRes(parsedOutput, context);
|
|
67
|
-
case "MessageRejected":
|
|
68
|
-
case "com.amazonaws.workmailmessageflow#MessageRejected":
|
|
69
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
70
|
-
default:
|
|
71
|
-
const parsedBody = parsedOutput.body;
|
|
72
|
-
return throwDefaultError({
|
|
73
|
-
output,
|
|
74
|
-
parsedBody,
|
|
75
|
-
errorCode,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
80
|
-
const de_InvalidContentLocationRes = async (parsedOutput, context) => {
|
|
81
|
-
const contents = map({});
|
|
82
|
-
const data = parsedOutput.body;
|
|
83
|
-
const doc = take(data, {
|
|
84
|
-
message: __expectString,
|
|
85
|
-
});
|
|
86
|
-
Object.assign(contents, doc);
|
|
87
|
-
const exception = new InvalidContentLocation({
|
|
88
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
89
|
-
...contents,
|
|
90
|
-
});
|
|
91
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
92
|
-
};
|
|
93
|
-
const de_MessageFrozenRes = async (parsedOutput, context) => {
|
|
94
|
-
const contents = map({});
|
|
95
|
-
const data = parsedOutput.body;
|
|
96
|
-
const doc = take(data, {
|
|
97
|
-
message: __expectString,
|
|
98
|
-
});
|
|
99
|
-
Object.assign(contents, doc);
|
|
100
|
-
const exception = new MessageFrozen({
|
|
101
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
102
|
-
...contents,
|
|
103
|
-
});
|
|
104
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
105
|
-
};
|
|
106
|
-
const de_MessageRejectedRes = async (parsedOutput, context) => {
|
|
107
|
-
const contents = map({});
|
|
108
|
-
const data = parsedOutput.body;
|
|
109
|
-
const doc = take(data, {
|
|
110
|
-
message: __expectString,
|
|
111
|
-
});
|
|
112
|
-
Object.assign(contents, doc);
|
|
113
|
-
const exception = new MessageRejected({
|
|
114
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
115
|
-
...contents,
|
|
116
|
-
});
|
|
117
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
118
|
-
};
|
|
119
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
120
|
-
const contents = map({});
|
|
121
|
-
const data = parsedOutput.body;
|
|
122
|
-
const doc = take(data, {
|
|
123
|
-
message: __expectString,
|
|
124
|
-
});
|
|
125
|
-
Object.assign(contents, doc);
|
|
126
|
-
const exception = new ResourceNotFoundException({
|
|
127
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
128
|
-
...contents,
|
|
129
|
-
});
|
|
130
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
131
|
-
};
|
|
132
|
-
const deserializeMetadata = (output) => ({
|
|
133
|
-
httpStatusCode: output.statusCode,
|
|
134
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
135
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
136
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
137
|
-
});
|
|
138
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SdkStreamSerdeContext as __SdkStreamSerdeContext, SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput } from "../commands/GetRawMessageContentCommand";
|
|
4
|
-
import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } from "../commands/PutRawMessageContentCommand";
|
|
5
|
-
/**
|
|
6
|
-
* serializeAws_restJson1GetRawMessageContentCommand
|
|
7
|
-
*/
|
|
8
|
-
export declare const se_GetRawMessageContentCommand: (input: GetRawMessageContentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
|
-
/**
|
|
10
|
-
* serializeAws_restJson1PutRawMessageContentCommand
|
|
11
|
-
*/
|
|
12
|
-
export declare const se_PutRawMessageContentCommand: (input: PutRawMessageContentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
-
/**
|
|
14
|
-
* deserializeAws_restJson1GetRawMessageContentCommand
|
|
15
|
-
*/
|
|
16
|
-
export declare const de_GetRawMessageContentCommand: (output: __HttpResponse, context: __SerdeContext & __SdkStreamSerdeContext) => Promise<GetRawMessageContentCommandOutput>;
|
|
17
|
-
/**
|
|
18
|
-
* deserializeAws_restJson1PutRawMessageContentCommand
|
|
19
|
-
*/
|
|
20
|
-
export declare const de_PutRawMessageContentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutRawMessageContentCommandOutput>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import {
|
|
6
|
-
SdkStreamSerdeContext as __SdkStreamSerdeContext,
|
|
7
|
-
SerdeContext as __SerdeContext,
|
|
8
|
-
} from "@smithy/types";
|
|
9
|
-
import {
|
|
10
|
-
GetRawMessageContentCommandInput,
|
|
11
|
-
GetRawMessageContentCommandOutput,
|
|
12
|
-
} from "../commands/GetRawMessageContentCommand";
|
|
13
|
-
import {
|
|
14
|
-
PutRawMessageContentCommandInput,
|
|
15
|
-
PutRawMessageContentCommandOutput,
|
|
16
|
-
} from "../commands/PutRawMessageContentCommand";
|
|
17
|
-
export declare const se_GetRawMessageContentCommand: (
|
|
18
|
-
input: GetRawMessageContentCommandInput,
|
|
19
|
-
context: __SerdeContext
|
|
20
|
-
) => Promise<__HttpRequest>;
|
|
21
|
-
export declare const se_PutRawMessageContentCommand: (
|
|
22
|
-
input: PutRawMessageContentCommandInput,
|
|
23
|
-
context: __SerdeContext
|
|
24
|
-
) => Promise<__HttpRequest>;
|
|
25
|
-
export declare const de_GetRawMessageContentCommand: (
|
|
26
|
-
output: __HttpResponse,
|
|
27
|
-
context: __SerdeContext & __SdkStreamSerdeContext
|
|
28
|
-
) => Promise<GetRawMessageContentCommandOutput>;
|
|
29
|
-
export declare const de_PutRawMessageContentCommand: (
|
|
30
|
-
output: __HttpResponse,
|
|
31
|
-
context: __SerdeContext
|
|
32
|
-
) => Promise<PutRawMessageContentCommandOutput>;
|