@aws-sdk/client-workmailmessageflow 3.33.0 → 3.36.1
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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/WorkMailMessageFlow.js +1 -9
- package/{dist/cjs → dist-cjs}/WorkMailMessageFlowClient.js +8 -21
- package/{dist/cjs → dist-cjs}/commands/GetRawMessageContentCommand.js +2 -27
- package/dist-cjs/commands/PutRawMessageContentCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -31
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/WorkMailMessageFlow.js +2 -10
- package/{dist/es → dist-es}/WorkMailMessageFlowClient.js +2 -15
- package/{dist/es → dist-es}/commands/GetRawMessageContentCommand.js +4 -30
- package/dist-es/commands/PutRawMessageContentCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -31
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +39 -45
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/WorkMailMessageFlow.d.ts +2 -2
- package/{dist/types → dist-types}/WorkMailMessageFlowClient.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetRawMessageContentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutRawMessageContentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/WorkMailMessageFlow.d.ts +15 -0
- package/dist-types/ts3.4/WorkMailMessageFlowClient.d.ts +69 -0
- package/dist-types/ts3.4/commands/GetRawMessageContentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRawMessageContentCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +97 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/WorkMailMessageFlow.ts +0 -98
- package/WorkMailMessageFlowClient.ts +0 -247
- package/commands/GetRawMessageContentCommand.ts +0 -98
- package/commands/PutRawMessageContentCommand.ts +0 -111
- package/dist/cjs/WorkMailMessageFlow.js.map +0 -1
- package/dist/cjs/WorkMailMessageFlowClient.js.map +0 -1
- package/dist/cjs/commands/GetRawMessageContentCommand.js.map +0 -1
- package/dist/cjs/commands/PutRawMessageContentCommand.js +0 -74
- package/dist/cjs/commands/PutRawMessageContentCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/WorkMailMessageFlow.js.map +0 -1
- package/dist/es/WorkMailMessageFlowClient.js.map +0 -1
- package/dist/es/commands/GetRawMessageContentCommand.js.map +0 -1
- package/dist/es/commands/PutRawMessageContentCommand.js +0 -78
- package/dist/es/commands/PutRawMessageContentCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -6
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/WorkMailMessageFlow.d.ts +0 -38
- package/dist/types/ts3.4/WorkMailMessageFlowClient.d.ts +0 -138
- package/dist/types/ts3.4/commands/GetRawMessageContentCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/PutRawMessageContentCommand.d.ts +0 -48
- package/dist/types/ts3.4/models/models_0.d.ts +0 -194
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -235
- package/protocols/Aws_restJson1.ts +0 -368
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
|
|
2
|
+
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
|
+
import { Readable } from "stream";
|
|
4
|
+
export interface GetRawMessageContentRequest {
|
|
5
|
+
|
|
6
|
+
messageId: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace GetRawMessageContentRequest {
|
|
9
|
+
|
|
10
|
+
const filterSensitiveLog: (obj: GetRawMessageContentRequest) => any;
|
|
11
|
+
}
|
|
12
|
+
export interface GetRawMessageContentResponse {
|
|
13
|
+
|
|
14
|
+
messageContent: Readable | ReadableStream | Blob | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace GetRawMessageContentResponse {
|
|
17
|
+
|
|
18
|
+
const filterSensitiveLog: (obj: GetRawMessageContentResponse) => any;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
22
|
+
name: "ResourceNotFoundException";
|
|
23
|
+
$fault: "client";
|
|
24
|
+
message?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace ResourceNotFoundException {
|
|
27
|
+
|
|
28
|
+
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface InvalidContentLocation extends __SmithyException, $MetadataBearer {
|
|
32
|
+
name: "InvalidContentLocation";
|
|
33
|
+
$fault: "client";
|
|
34
|
+
message?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace InvalidContentLocation {
|
|
37
|
+
|
|
38
|
+
const filterSensitiveLog: (obj: InvalidContentLocation) => any;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface MessageFrozen extends __SmithyException, $MetadataBearer {
|
|
42
|
+
name: "MessageFrozen";
|
|
43
|
+
$fault: "client";
|
|
44
|
+
message?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace MessageFrozen {
|
|
47
|
+
|
|
48
|
+
const filterSensitiveLog: (obj: MessageFrozen) => any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface MessageRejected extends __SmithyException, $MetadataBearer {
|
|
52
|
+
name: "MessageRejected";
|
|
53
|
+
$fault: "client";
|
|
54
|
+
message?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace MessageRejected {
|
|
57
|
+
|
|
58
|
+
const filterSensitiveLog: (obj: MessageRejected) => any;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface S3Reference {
|
|
62
|
+
|
|
63
|
+
bucket: string | undefined;
|
|
64
|
+
|
|
65
|
+
key: string | undefined;
|
|
66
|
+
|
|
67
|
+
objectVersion?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare namespace S3Reference {
|
|
70
|
+
|
|
71
|
+
const filterSensitiveLog: (obj: S3Reference) => any;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface RawMessageContent {
|
|
75
|
+
|
|
76
|
+
s3Reference: S3Reference | undefined;
|
|
77
|
+
}
|
|
78
|
+
export declare namespace RawMessageContent {
|
|
79
|
+
|
|
80
|
+
const filterSensitiveLog: (obj: RawMessageContent) => any;
|
|
81
|
+
}
|
|
82
|
+
export interface PutRawMessageContentRequest {
|
|
83
|
+
|
|
84
|
+
messageId: string | undefined;
|
|
85
|
+
|
|
86
|
+
content: RawMessageContent | undefined;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace PutRawMessageContentRequest {
|
|
89
|
+
|
|
90
|
+
const filterSensitiveLog: (obj: PutRawMessageContentRequest) => any;
|
|
91
|
+
}
|
|
92
|
+
export interface PutRawMessageContentResponse {
|
|
93
|
+
}
|
|
94
|
+
export declare namespace PutRawMessageContentResponse {
|
|
95
|
+
|
|
96
|
+
const filterSensitiveLog: (obj: PutRawMessageContentResponse) => any;
|
|
97
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput } from "../commands/GetRawMessageContentCommand";
|
|
2
|
-
import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } from "../commands/PutRawMessageContentCommand";
|
|
3
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
4
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput } from "../commands/GetRawMessageContentCommand";
|
|
4
|
+
import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } from "../commands/PutRawMessageContentCommand";
|
|
5
5
|
export declare const serializeAws_restJson1GetRawMessageContentCommand: (input: GetRawMessageContentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
6
6
|
export declare const serializeAws_restJson1PutRawMessageContentCommand: (input: PutRawMessageContentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
7
7
|
export declare const deserializeAws_restJson1GetRawMessageContentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRawMessageContentCommandOutput>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
7
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
8
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/client-sts/dist
|
|
9
|
+
credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
10
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
11
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
12
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
2
|
import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig) => {
|
|
7
5
|
apiVersion: string;
|
|
8
6
|
disableHostPrefix: boolean;
|
package/package.json
CHANGED
|
@@ -1,64 +1,58 @@
|
|
|
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.36.1",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
8
|
-
"remove-definitions": "rimraf ./types",
|
|
9
|
-
"remove-dist": "rimraf ./dist",
|
|
10
|
-
"remove-documentation": "rimraf ./docs",
|
|
11
|
-
"test": "exit 0",
|
|
6
|
+
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
12
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
+
"build:docs": "yarn clean:docs && typedoc ./",
|
|
13
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
14
|
-
"build": "
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"browser": {
|
|
21
|
-
"./runtimeConfig": "./runtimeConfig.browser"
|
|
22
|
-
},
|
|
23
|
-
"react-native": {
|
|
24
|
-
"./runtimeConfig": "./runtimeConfig.native"
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
+
"clean:dist": "rimraf ./dist",
|
|
13
|
+
"clean:docs": "rimraf ./docs",
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
+
"test": "exit 0"
|
|
25
16
|
},
|
|
17
|
+
"main": "./dist-cjs/index.js",
|
|
18
|
+
"types": "./dist-types/index.d.ts",
|
|
19
|
+
"module": "./dist-es/index.js",
|
|
26
20
|
"sideEffects": false,
|
|
27
21
|
"dependencies": {
|
|
28
22
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
23
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.36.1",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.36.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.36.1",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.36.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.36.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.36.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.36.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.36.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.36.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.36.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.36.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.36.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.36.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.36.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.36.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.36.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.36.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.36.0",
|
|
42
|
+
"@aws-sdk/types": "3.36.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.36.0",
|
|
44
|
+
"@aws-sdk/util-base64-browser": "3.36.0",
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.36.0",
|
|
46
|
+
"@aws-sdk/util-body-length-browser": "3.36.0",
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.36.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.36.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.36.0",
|
|
50
|
+
"@aws-sdk/util-utf8-browser": "3.36.0",
|
|
51
|
+
"@aws-sdk/util-utf8-node": "3.36.0",
|
|
58
52
|
"tslib": "^2.3.0"
|
|
59
53
|
},
|
|
60
54
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/client-documentation-generator": "3.36.0",
|
|
62
56
|
"@types/node": "^12.7.5",
|
|
63
57
|
"downlevel-dts": "0.7.0",
|
|
64
58
|
"jest": "^26.1.0",
|
|
@@ -72,16 +66,25 @@
|
|
|
72
66
|
},
|
|
73
67
|
"typesVersions": {
|
|
74
68
|
"<4.0": {
|
|
75
|
-
"dist
|
|
76
|
-
"dist
|
|
69
|
+
"dist-types/*": [
|
|
70
|
+
"dist-types/ts3.4/*"
|
|
77
71
|
]
|
|
78
72
|
}
|
|
79
73
|
},
|
|
74
|
+
"files": [
|
|
75
|
+
"dist-*"
|
|
76
|
+
],
|
|
80
77
|
"author": {
|
|
81
78
|
"name": "AWS SDK for JavaScript Team",
|
|
82
79
|
"url": "https://aws.amazon.com/javascript/"
|
|
83
80
|
},
|
|
84
81
|
"license": "Apache-2.0",
|
|
82
|
+
"browser": {
|
|
83
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
84
|
+
},
|
|
85
|
+
"react-native": {
|
|
86
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
87
|
+
},
|
|
85
88
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-workmailmessageflow",
|
|
86
89
|
"repository": {
|
|
87
90
|
"type": "git",
|
package/WorkMailMessageFlow.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { WorkMailMessageFlowClient } from "./WorkMailMessageFlowClient";
|
|
2
|
-
import {
|
|
3
|
-
GetRawMessageContentCommand,
|
|
4
|
-
GetRawMessageContentCommandInput,
|
|
5
|
-
GetRawMessageContentCommandOutput,
|
|
6
|
-
} from "./commands/GetRawMessageContentCommand";
|
|
7
|
-
import {
|
|
8
|
-
PutRawMessageContentCommand,
|
|
9
|
-
PutRawMessageContentCommandInput,
|
|
10
|
-
PutRawMessageContentCommandOutput,
|
|
11
|
-
} from "./commands/PutRawMessageContentCommand";
|
|
12
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* <p>The WorkMail Message Flow API provides access to email messages as they are
|
|
16
|
-
* being
|
|
17
|
-
* sent and received by
|
|
18
|
-
* a
|
|
19
|
-
* WorkMail organization.</p>
|
|
20
|
-
*/
|
|
21
|
-
export class WorkMailMessageFlow extends WorkMailMessageFlowClient {
|
|
22
|
-
/**
|
|
23
|
-
* <p>Retrieves the raw content of an in-transit email message, in MIME format.</p>
|
|
24
|
-
*/
|
|
25
|
-
public getRawMessageContent(
|
|
26
|
-
args: GetRawMessageContentCommandInput,
|
|
27
|
-
options?: __HttpHandlerOptions
|
|
28
|
-
): Promise<GetRawMessageContentCommandOutput>;
|
|
29
|
-
public getRawMessageContent(
|
|
30
|
-
args: GetRawMessageContentCommandInput,
|
|
31
|
-
cb: (err: any, data?: GetRawMessageContentCommandOutput) => void
|
|
32
|
-
): void;
|
|
33
|
-
public getRawMessageContent(
|
|
34
|
-
args: GetRawMessageContentCommandInput,
|
|
35
|
-
options: __HttpHandlerOptions,
|
|
36
|
-
cb: (err: any, data?: GetRawMessageContentCommandOutput) => void
|
|
37
|
-
): void;
|
|
38
|
-
public getRawMessageContent(
|
|
39
|
-
args: GetRawMessageContentCommandInput,
|
|
40
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRawMessageContentCommandOutput) => void),
|
|
41
|
-
cb?: (err: any, data?: GetRawMessageContentCommandOutput) => void
|
|
42
|
-
): Promise<GetRawMessageContentCommandOutput> | void {
|
|
43
|
-
const command = new GetRawMessageContentCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
} else if (typeof cb === "function") {
|
|
47
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
-
} else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* <p>Updates the raw content of an in-transit email message, in MIME format.</p>
|
|
56
|
-
* <p>This example describes how to update in-transit email message. For more information and examples for using this API, see
|
|
57
|
-
* <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
|
|
58
|
-
* Updating message content with AWS Lambda</a>.</p>
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* <note>
|
|
62
|
-
* <p>Updates to an in-transit message only appear when you call <code>PutRawMessageContent</code> from an AWS Lambda function
|
|
63
|
-
* configured with a synchronous <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/lambda.html#synchronous-rules">
|
|
64
|
-
* Run Lambda</a> rule. If you call <code>PutRawMessageContent</code> on a delivered or sent message, the message remains unchanged,
|
|
65
|
-
* even though <a href="https://docs.aws.amazon.com/workmail/latest/APIReference/API_messageflow_GetRawMessageContent.html">GetRawMessageContent</a> returns an updated
|
|
66
|
-
* message.
|
|
67
|
-
* </p>
|
|
68
|
-
* </note>
|
|
69
|
-
*/
|
|
70
|
-
public putRawMessageContent(
|
|
71
|
-
args: PutRawMessageContentCommandInput,
|
|
72
|
-
options?: __HttpHandlerOptions
|
|
73
|
-
): Promise<PutRawMessageContentCommandOutput>;
|
|
74
|
-
public putRawMessageContent(
|
|
75
|
-
args: PutRawMessageContentCommandInput,
|
|
76
|
-
cb: (err: any, data?: PutRawMessageContentCommandOutput) => void
|
|
77
|
-
): void;
|
|
78
|
-
public putRawMessageContent(
|
|
79
|
-
args: PutRawMessageContentCommandInput,
|
|
80
|
-
options: __HttpHandlerOptions,
|
|
81
|
-
cb: (err: any, data?: PutRawMessageContentCommandOutput) => void
|
|
82
|
-
): void;
|
|
83
|
-
public putRawMessageContent(
|
|
84
|
-
args: PutRawMessageContentCommandInput,
|
|
85
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutRawMessageContentCommandOutput) => void),
|
|
86
|
-
cb?: (err: any, data?: PutRawMessageContentCommandOutput) => void
|
|
87
|
-
): Promise<PutRawMessageContentCommandOutput> | void {
|
|
88
|
-
const command = new PutRawMessageContentCommand(args);
|
|
89
|
-
if (typeof optionsOrCb === "function") {
|
|
90
|
-
this.send(command, optionsOrCb);
|
|
91
|
-
} else if (typeof cb === "function") {
|
|
92
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
} else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetRawMessageContentCommandInput,
|
|
3
|
-
GetRawMessageContentCommandOutput,
|
|
4
|
-
} from "./commands/GetRawMessageContentCommand";
|
|
5
|
-
import {
|
|
6
|
-
PutRawMessageContentCommandInput,
|
|
7
|
-
PutRawMessageContentCommandOutput,
|
|
8
|
-
} from "./commands/PutRawMessageContentCommand";
|
|
9
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
10
|
-
import {
|
|
11
|
-
EndpointsInputConfig,
|
|
12
|
-
EndpointsResolvedConfig,
|
|
13
|
-
RegionInputConfig,
|
|
14
|
-
RegionResolvedConfig,
|
|
15
|
-
resolveEndpointsConfig,
|
|
16
|
-
resolveRegionConfig,
|
|
17
|
-
} from "@aws-sdk/config-resolver";
|
|
18
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
19
|
-
import {
|
|
20
|
-
HostHeaderInputConfig,
|
|
21
|
-
HostHeaderResolvedConfig,
|
|
22
|
-
getHostHeaderPlugin,
|
|
23
|
-
resolveHostHeaderConfig,
|
|
24
|
-
} from "@aws-sdk/middleware-host-header";
|
|
25
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
26
|
-
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
27
|
-
import {
|
|
28
|
-
AwsAuthInputConfig,
|
|
29
|
-
AwsAuthResolvedConfig,
|
|
30
|
-
getAwsAuthPlugin,
|
|
31
|
-
resolveAwsAuthConfig,
|
|
32
|
-
} from "@aws-sdk/middleware-signing";
|
|
33
|
-
import {
|
|
34
|
-
UserAgentInputConfig,
|
|
35
|
-
UserAgentResolvedConfig,
|
|
36
|
-
getUserAgentPlugin,
|
|
37
|
-
resolveUserAgentConfig,
|
|
38
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
39
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
40
|
-
import {
|
|
41
|
-
Client as __Client,
|
|
42
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
43
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
44
|
-
} from "@aws-sdk/smithy-client";
|
|
45
|
-
import {
|
|
46
|
-
Provider,
|
|
47
|
-
RegionInfoProvider,
|
|
48
|
-
Credentials as __Credentials,
|
|
49
|
-
Decoder as __Decoder,
|
|
50
|
-
Encoder as __Encoder,
|
|
51
|
-
Hash as __Hash,
|
|
52
|
-
HashConstructor as __HashConstructor,
|
|
53
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
54
|
-
Logger as __Logger,
|
|
55
|
-
Provider as __Provider,
|
|
56
|
-
StreamCollector as __StreamCollector,
|
|
57
|
-
UrlParser as __UrlParser,
|
|
58
|
-
UserAgent as __UserAgent,
|
|
59
|
-
} from "@aws-sdk/types";
|
|
60
|
-
|
|
61
|
-
export type ServiceInputTypes = GetRawMessageContentCommandInput | PutRawMessageContentCommandInput;
|
|
62
|
-
|
|
63
|
-
export type ServiceOutputTypes = GetRawMessageContentCommandOutput | PutRawMessageContentCommandOutput;
|
|
64
|
-
|
|
65
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
66
|
-
/**
|
|
67
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
68
|
-
*/
|
|
69
|
-
requestHandler?: __HttpHandler;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
73
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
sha256?: __HashConstructor;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
|
-
urlParser?: __UrlParser;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* A function that can calculate the length of a request body.
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* A function that converts a stream into an array of bytes.
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
|
-
streamCollector?: __StreamCollector;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
100
|
-
base64Decoder?: __Decoder;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
106
|
-
base64Encoder?: __Encoder;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
112
|
-
utf8Decoder?: __Decoder;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
116
|
-
* @internal
|
|
117
|
-
*/
|
|
118
|
-
utf8Encoder?: __Encoder;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* The runtime environment.
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
runtime?: string;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
128
|
-
* trait of an operation.
|
|
129
|
-
*/
|
|
130
|
-
disableHostPrefix?: boolean;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
134
|
-
*/
|
|
135
|
-
maxAttempts?: number | __Provider<number>;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Specifies which retry algorithm to use.
|
|
139
|
-
*/
|
|
140
|
-
retryMode?: string | __Provider<string>;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Optional logger for logging debug/info/warn/error.
|
|
144
|
-
*/
|
|
145
|
-
logger?: __Logger;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Unique service identifier.
|
|
149
|
-
* @internal
|
|
150
|
-
*/
|
|
151
|
-
serviceId?: string;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The AWS region to which this client will send requests
|
|
155
|
-
*/
|
|
156
|
-
region?: string | __Provider<string>;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Default credentials provider; Not available in browser runtime.
|
|
160
|
-
* @internal
|
|
161
|
-
*/
|
|
162
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
166
|
-
* @internal
|
|
167
|
-
*/
|
|
168
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
172
|
-
* @internal
|
|
173
|
-
*/
|
|
174
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
type WorkMailMessageFlowClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
178
|
-
ClientDefaults &
|
|
179
|
-
RegionInputConfig &
|
|
180
|
-
EndpointsInputConfig &
|
|
181
|
-
RetryInputConfig &
|
|
182
|
-
HostHeaderInputConfig &
|
|
183
|
-
AwsAuthInputConfig &
|
|
184
|
-
UserAgentInputConfig;
|
|
185
|
-
/**
|
|
186
|
-
* The configuration interface of WorkMailMessageFlowClient class constructor that set the region, credentials and other options.
|
|
187
|
-
*/
|
|
188
|
-
export interface WorkMailMessageFlowClientConfig extends WorkMailMessageFlowClientConfigType {}
|
|
189
|
-
|
|
190
|
-
type WorkMailMessageFlowClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
191
|
-
Required<ClientDefaults> &
|
|
192
|
-
RegionResolvedConfig &
|
|
193
|
-
EndpointsResolvedConfig &
|
|
194
|
-
RetryResolvedConfig &
|
|
195
|
-
HostHeaderResolvedConfig &
|
|
196
|
-
AwsAuthResolvedConfig &
|
|
197
|
-
UserAgentResolvedConfig;
|
|
198
|
-
/**
|
|
199
|
-
* The resolved configuration interface of WorkMailMessageFlowClient class. This is resolved and normalized from the {@link WorkMailMessageFlowClientConfig | constructor configuration interface}.
|
|
200
|
-
*/
|
|
201
|
-
export interface WorkMailMessageFlowClientResolvedConfig extends WorkMailMessageFlowClientResolvedConfigType {}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* <p>The WorkMail Message Flow API provides access to email messages as they are
|
|
205
|
-
* being
|
|
206
|
-
* sent and received by
|
|
207
|
-
* a
|
|
208
|
-
* WorkMail organization.</p>
|
|
209
|
-
*/
|
|
210
|
-
export class WorkMailMessageFlowClient extends __Client<
|
|
211
|
-
__HttpHandlerOptions,
|
|
212
|
-
ServiceInputTypes,
|
|
213
|
-
ServiceOutputTypes,
|
|
214
|
-
WorkMailMessageFlowClientResolvedConfig
|
|
215
|
-
> {
|
|
216
|
-
/**
|
|
217
|
-
* The resolved configuration of WorkMailMessageFlowClient class. This is resolved and normalized from the {@link WorkMailMessageFlowClientConfig | constructor configuration interface}.
|
|
218
|
-
*/
|
|
219
|
-
readonly config: WorkMailMessageFlowClientResolvedConfig;
|
|
220
|
-
|
|
221
|
-
constructor(configuration: WorkMailMessageFlowClientConfig) {
|
|
222
|
-
let _config_0 = __getRuntimeConfig(configuration);
|
|
223
|
-
let _config_1 = resolveRegionConfig(_config_0);
|
|
224
|
-
let _config_2 = resolveEndpointsConfig(_config_1);
|
|
225
|
-
let _config_3 = resolveRetryConfig(_config_2);
|
|
226
|
-
let _config_4 = resolveHostHeaderConfig(_config_3);
|
|
227
|
-
let _config_5 = resolveAwsAuthConfig(_config_4);
|
|
228
|
-
let _config_6 = resolveUserAgentConfig(_config_5);
|
|
229
|
-
super(_config_6);
|
|
230
|
-
this.config = _config_6;
|
|
231
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
232
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
233
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
234
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
235
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
236
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
241
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
242
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
243
|
-
*/
|
|
244
|
-
destroy(): void {
|
|
245
|
-
super.destroy();
|
|
246
|
-
}
|
|
247
|
-
}
|