@mavogel/awscdk-rootmail 0.0.176 → 0.0.178
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/.jsii +8 -8
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +7 -7
- package/node_modules/@aws-sdk/client-route-53/package.json +7 -7
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -19
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +41 -41
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
- package/node_modules/@aws-sdk/client-s3/package.json +11 -11
- package/node_modules/@aws-sdk/client-ses/package.json +7 -7
- package/node_modules/@aws-sdk/client-ssm/package.json +7 -7
- package/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +6 -6
- package/node_modules/@aws-sdk/client-sts/package.json +6 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +9 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +5 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/emitWarningIfUnsupportedVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/chunked-blob-reader/dist-cjs/index.js +8 -23
- package/node_modules/@smithy/chunked-blob-reader/dist-es/index.js +8 -22
- package/node_modules/@smithy/chunked-blob-reader/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/chunked-blob-reader/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/chunked-blob-reader/package.json +2 -2
- package/node_modules/@smithy/chunked-blob-reader-native/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/index.js +79 -158
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +1 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +163 -0
- package/node_modules/@smithy/core/dist-es/index.js +4 -3
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +1 -2
- package/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js +1 -2
- package/node_modules/@smithy/core/dist-es/protocols/requestBuilder.js +1 -67
- package/node_modules/@smithy/core/dist-es/setFeature.js +11 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js +11 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +67 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js +19 -0
- package/node_modules/@smithy/core/dist-types/index.d.ts +4 -3
- package/node_modules/@smithy/core/dist-types/protocols/requestBuilder.d.ts +2 -48
- package/node_modules/@smithy/core/dist-types/setFeature.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/collect-stream-body.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/extended-encode-uri-component.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/requestBuilder.d.ts +51 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/resolve-path.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +4 -3
- package/node_modules/@smithy/core/dist-types/ts3.4/protocols/requestBuilder.d.ts +2 -48
- package/node_modules/@smithy/core/dist-types/ts3.4/setFeature.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/collect-stream-body.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/extended-encode-uri-component.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/requestBuilder.d.ts +51 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/resolve-path.d.ts +4 -0
- package/node_modules/@smithy/core/package.json +15 -8
- package/node_modules/@smithy/core/protocols.d.ts +7 -0
- package/node_modules/@smithy/core/protocols.js +6 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
- package/node_modules/@smithy/hash-blob-browser/package.json +4 -4
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/hash-stream-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/md5-js/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +4 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +4 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -7
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +2 -2
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +6 -35
- package/node_modules/@smithy/smithy-client/dist-es/collect-stream-body.js +1 -11
- package/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js +1 -5
- package/node_modules/@smithy/smithy-client/dist-es/resolve-path.js +1 -19
- package/node_modules/@smithy/smithy-client/dist-types/collect-stream-body.d.ts +2 -7
- package/node_modules/@smithy/smithy-client/dist-types/extended-encode-uri-component.d.ts +2 -4
- package/node_modules/@smithy/smithy-client/dist-types/resolve-path.d.ts +2 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/collect-stream-body.d.ts +2 -7
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extended-encode-uri-component.d.ts +2 -4
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/resolve-path.d.ts +2 -1
- package/node_modules/@smithy/smithy-client/package.json +7 -6
- package/node_modules/@smithy/types/dist-cjs/feature-ids.js +1 -0
- package/node_modules/@smithy/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@smithy/types/dist-es/index.js +1 -0
- package/node_modules/@smithy/types/dist-types/feature-ids.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +30 -6
- package/node_modules/@smithy/types/dist-types/ts3.4/feature-ids.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +26 -2
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js +7 -0
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +49 -0
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +40 -0
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +13 -0
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +5 -1
- package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.browser.js +3 -0
- package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +44 -0
- package/node_modules/@smithy/util-stream/dist-es/checksum/createChecksumStream.browser.js +35 -0
- package/node_modules/@smithy/util-stream/dist-es/checksum/createChecksumStream.js +9 -0
- package/node_modules/@smithy/util-stream/dist-es/index.js +2 -0
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.browser.d.ts +37 -0
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +61 -0
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +15 -0
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +12 -0
- package/node_modules/@smithy/util-stream/dist-types/index.d.ts +2 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.browser.d.ts +37 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +60 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +15 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +12 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/LICENSE +201 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/README.md +11 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +1 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +230 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +1 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +1 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +138 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-es/index.js +2 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js +11 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +27 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +33 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +2 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts +1 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +2 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +33 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +1 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/stream-collector.d.ts +2 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/package.json +62 -0
- package/node_modules/@smithy/util-stream/package.json +10 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/cdk-nag/.jsii +2 -2
- package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
- package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
- package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
- package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
- package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
- package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
- package/node_modules/cdk-nag/package.json +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { resolvedPath } from "@smithy/core/protocols";
|
|
2
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
|
3
|
+
export function requestBuilder(input, context) {
|
|
4
|
+
return new RequestBuilder(input, context);
|
|
5
|
+
}
|
|
6
|
+
export class RequestBuilder {
|
|
7
|
+
constructor(input, context) {
|
|
8
|
+
this.input = input;
|
|
9
|
+
this.context = context;
|
|
10
|
+
this.query = {};
|
|
11
|
+
this.method = "";
|
|
12
|
+
this.headers = {};
|
|
13
|
+
this.path = "";
|
|
14
|
+
this.body = null;
|
|
15
|
+
this.hostname = "";
|
|
16
|
+
this.resolvePathStack = [];
|
|
17
|
+
}
|
|
18
|
+
async build() {
|
|
19
|
+
const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint();
|
|
20
|
+
this.path = basePath;
|
|
21
|
+
for (const resolvePath of this.resolvePathStack) {
|
|
22
|
+
resolvePath(this.path);
|
|
23
|
+
}
|
|
24
|
+
return new HttpRequest({
|
|
25
|
+
protocol,
|
|
26
|
+
hostname: this.hostname || hostname,
|
|
27
|
+
port,
|
|
28
|
+
method: this.method,
|
|
29
|
+
path: this.path,
|
|
30
|
+
query: this.query,
|
|
31
|
+
body: this.body,
|
|
32
|
+
headers: this.headers,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
hn(hostname) {
|
|
36
|
+
this.hostname = hostname;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
bp(uriLabel) {
|
|
40
|
+
this.resolvePathStack.push((basePath) => {
|
|
41
|
+
this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
|
|
42
|
+
});
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
|
46
|
+
this.resolvePathStack.push((path) => {
|
|
47
|
+
this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
|
48
|
+
});
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
h(headers) {
|
|
52
|
+
this.headers = headers;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
q(query) {
|
|
56
|
+
this.query = query;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
b(body) {
|
|
60
|
+
this.body = body;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
m(method) {
|
|
64
|
+
this.method = method;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { extendedEncodeURIComponent } from "./extended-encode-uri-component";
|
|
2
|
+
export const resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
|
|
3
|
+
if (input != null && input[memberName] !== undefined) {
|
|
4
|
+
const labelValue = labelValueProvider();
|
|
5
|
+
if (labelValue.length <= 0) {
|
|
6
|
+
throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
|
|
7
|
+
}
|
|
8
|
+
resolvedPath = resolvedPath.replace(uriLabel, isGreedyLabel
|
|
9
|
+
? labelValue
|
|
10
|
+
.split("/")
|
|
11
|
+
.map((segment) => extendedEncodeURIComponent(segment))
|
|
12
|
+
.join("/")
|
|
13
|
+
: extendedEncodeURIComponent(labelValue));
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
throw new Error("No value provided for input HTTP label: " + memberName + ".");
|
|
17
|
+
}
|
|
18
|
+
return resolvedPath;
|
|
19
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
export * from "./getSmithyContext";
|
|
1
2
|
export * from "./middleware-http-auth-scheme";
|
|
2
3
|
export * from "./middleware-http-signing";
|
|
3
|
-
export * from "./util-identity-and-auth";
|
|
4
|
-
export * from "./getSmithyContext";
|
|
5
4
|
export * from "./normalizeProvider";
|
|
6
|
-
export * from "./protocols/requestBuilder";
|
|
7
5
|
export { createPaginator } from "./pagination/createPaginator";
|
|
6
|
+
export * from "./protocols/requestBuilder";
|
|
7
|
+
export * from "./setFeature";
|
|
8
|
+
export * from "./util-identity-and-auth";
|
|
@@ -1,51 +1,5 @@
|
|
|
1
|
-
import { HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import type { SerdeContext } from "@smithy/types";
|
|
3
1
|
/**
|
|
4
2
|
* @internal
|
|
5
|
-
*
|
|
3
|
+
* Backwards compatibility re-export.
|
|
6
4
|
*/
|
|
7
|
-
export
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare class RequestBuilder {
|
|
12
|
-
private input;
|
|
13
|
-
private context;
|
|
14
|
-
private query;
|
|
15
|
-
private method;
|
|
16
|
-
private headers;
|
|
17
|
-
private path;
|
|
18
|
-
private body;
|
|
19
|
-
private hostname;
|
|
20
|
-
private resolvePathStack;
|
|
21
|
-
constructor(input: any, context: SerdeContext);
|
|
22
|
-
build(): Promise<HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* Brevity setter for "hostname".
|
|
25
|
-
*/
|
|
26
|
-
hn(hostname: string): this;
|
|
27
|
-
/**
|
|
28
|
-
* Brevity initial builder for "basepath".
|
|
29
|
-
*/
|
|
30
|
-
bp(uriLabel: string): this;
|
|
31
|
-
/**
|
|
32
|
-
* Brevity incremental builder for "path".
|
|
33
|
-
*/
|
|
34
|
-
p(memberName: string, labelValueProvider: () => string | undefined, uriLabel: string, isGreedyLabel: boolean): this;
|
|
35
|
-
/**
|
|
36
|
-
* Brevity setter for "headers".
|
|
37
|
-
*/
|
|
38
|
-
h(headers: Record<string, string>): this;
|
|
39
|
-
/**
|
|
40
|
-
* Brevity setter for "query".
|
|
41
|
-
*/
|
|
42
|
-
q(query: Record<string, string>): this;
|
|
43
|
-
/**
|
|
44
|
-
* Brevity setter for "body".
|
|
45
|
-
*/
|
|
46
|
-
b(body: any): this;
|
|
47
|
-
/**
|
|
48
|
-
* Brevity setter for "method".
|
|
49
|
-
*/
|
|
50
|
-
m(method: string): this;
|
|
51
|
-
}
|
|
5
|
+
export { requestBuilder } from "@smithy/core/protocols";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HandlerExecutionContext, SmithyFeatures } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Indicates to the request context that a given feature is active.
|
|
5
|
+
*
|
|
6
|
+
* @param context - handler execution context.
|
|
7
|
+
* @param feature - readable name of feature.
|
|
8
|
+
* @param value - encoding value of feature. This is required because the
|
|
9
|
+
* specification asks the library not to include a runtime lookup of all
|
|
10
|
+
* the feature identifiers.
|
|
11
|
+
*/
|
|
12
|
+
export declare function setFeature<F extends keyof SmithyFeatures>(context: HandlerExecutionContext, feature: F, value: SmithyFeatures[F]): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SerdeContext } from "@smithy/types";
|
|
2
|
+
import { Uint8ArrayBlobAdapter } from "@smithy/util-stream";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* Collect low-level response body stream to Uint8Array.
|
|
7
|
+
*/
|
|
8
|
+
export declare const collectBody: (streamBody: any, context: {
|
|
9
|
+
streamCollector: SerdeContext["streamCollector"];
|
|
10
|
+
}) => Promise<Uint8ArrayBlobAdapter>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
|
2
|
+
import type { SerdeContext } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* used in code-generated serde.
|
|
6
|
+
*/
|
|
7
|
+
export declare function requestBuilder(input: any, context: SerdeContext): RequestBuilder;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class RequestBuilder {
|
|
12
|
+
private input;
|
|
13
|
+
private context;
|
|
14
|
+
private query;
|
|
15
|
+
private method;
|
|
16
|
+
private headers;
|
|
17
|
+
private path;
|
|
18
|
+
private body;
|
|
19
|
+
private hostname;
|
|
20
|
+
private resolvePathStack;
|
|
21
|
+
constructor(input: any, context: SerdeContext);
|
|
22
|
+
build(): Promise<HttpRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* Brevity setter for "hostname".
|
|
25
|
+
*/
|
|
26
|
+
hn(hostname: string): this;
|
|
27
|
+
/**
|
|
28
|
+
* Brevity initial builder for "basepath".
|
|
29
|
+
*/
|
|
30
|
+
bp(uriLabel: string): this;
|
|
31
|
+
/**
|
|
32
|
+
* Brevity incremental builder for "path".
|
|
33
|
+
*/
|
|
34
|
+
p(memberName: string, labelValueProvider: () => string | undefined, uriLabel: string, isGreedyLabel: boolean): this;
|
|
35
|
+
/**
|
|
36
|
+
* Brevity setter for "headers".
|
|
37
|
+
*/
|
|
38
|
+
h(headers: Record<string, string>): this;
|
|
39
|
+
/**
|
|
40
|
+
* Brevity setter for "query".
|
|
41
|
+
*/
|
|
42
|
+
q(query: Record<string, string>): this;
|
|
43
|
+
/**
|
|
44
|
+
* Brevity setter for "body".
|
|
45
|
+
*/
|
|
46
|
+
b(body: any): this;
|
|
47
|
+
/**
|
|
48
|
+
* Brevity setter for "method".
|
|
49
|
+
*/
|
|
50
|
+
m(method: string): this;
|
|
51
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
export * from "./getSmithyContext";
|
|
1
2
|
export * from "./middleware-http-auth-scheme";
|
|
2
3
|
export * from "./middleware-http-signing";
|
|
3
|
-
export * from "./util-identity-and-auth";
|
|
4
|
-
export * from "./getSmithyContext";
|
|
5
4
|
export * from "./normalizeProvider";
|
|
6
|
-
export * from "./protocols/requestBuilder";
|
|
7
5
|
export { createPaginator } from "./pagination/createPaginator";
|
|
6
|
+
export * from "./protocols/requestBuilder";
|
|
7
|
+
export * from "./setFeature";
|
|
8
|
+
export * from "./util-identity-and-auth";
|
|
@@ -1,51 +1,5 @@
|
|
|
1
|
-
import { HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext } from "@smithy/types";
|
|
3
1
|
/**
|
|
4
2
|
* @internal
|
|
5
|
-
*
|
|
3
|
+
* Backwards compatibility re-export.
|
|
6
4
|
*/
|
|
7
|
-
export
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare class RequestBuilder {
|
|
12
|
-
private input;
|
|
13
|
-
private context;
|
|
14
|
-
private query;
|
|
15
|
-
private method;
|
|
16
|
-
private headers;
|
|
17
|
-
private path;
|
|
18
|
-
private body;
|
|
19
|
-
private hostname;
|
|
20
|
-
private resolvePathStack;
|
|
21
|
-
constructor(input: any, context: SerdeContext);
|
|
22
|
-
build(): Promise<HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* Brevity setter for "hostname".
|
|
25
|
-
*/
|
|
26
|
-
hn(hostname: string): this;
|
|
27
|
-
/**
|
|
28
|
-
* Brevity initial builder for "basepath".
|
|
29
|
-
*/
|
|
30
|
-
bp(uriLabel: string): this;
|
|
31
|
-
/**
|
|
32
|
-
* Brevity incremental builder for "path".
|
|
33
|
-
*/
|
|
34
|
-
p(memberName: string, labelValueProvider: () => string | undefined, uriLabel: string, isGreedyLabel: boolean): this;
|
|
35
|
-
/**
|
|
36
|
-
* Brevity setter for "headers".
|
|
37
|
-
*/
|
|
38
|
-
h(headers: Record<string, string>): this;
|
|
39
|
-
/**
|
|
40
|
-
* Brevity setter for "query".
|
|
41
|
-
*/
|
|
42
|
-
q(query: Record<string, string>): this;
|
|
43
|
-
/**
|
|
44
|
-
* Brevity setter for "body".
|
|
45
|
-
*/
|
|
46
|
-
b(body: any): this;
|
|
47
|
-
/**
|
|
48
|
-
* Brevity setter for "method".
|
|
49
|
-
*/
|
|
50
|
-
m(method: string): this;
|
|
51
|
-
}
|
|
5
|
+
export { requestBuilder } from "@smithy/core/protocols";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HandlerExecutionContext, SmithyFeatures } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Indicates to the request context that a given feature is active.
|
|
5
|
+
*
|
|
6
|
+
* @param context - handler execution context.
|
|
7
|
+
* @param feature - readable name of feature.
|
|
8
|
+
* @param value - encoding value of feature. This is required because the
|
|
9
|
+
* specification asks the library not to include a runtime lookup of all
|
|
10
|
+
* the feature identifiers.
|
|
11
|
+
*/
|
|
12
|
+
export declare function setFeature<F extends keyof SmithyFeatures>(context: HandlerExecutionContext, feature: F, value: SmithyFeatures[F]): void;
|
package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/collect-stream-body.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SerdeContext } from "@smithy/types";
|
|
2
|
+
import { Uint8ArrayBlobAdapter } from "@smithy/util-stream";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* Collect low-level response body stream to Uint8Array.
|
|
7
|
+
*/
|
|
8
|
+
export declare const collectBody: (streamBody: any, context: {
|
|
9
|
+
streamCollector: SerdeContext["streamCollector"];
|
|
10
|
+
}) => Promise<Uint8ArrayBlobAdapter>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
|
2
|
+
import { SerdeContext } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* used in code-generated serde.
|
|
6
|
+
*/
|
|
7
|
+
export declare function requestBuilder(input: any, context: SerdeContext): RequestBuilder;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class RequestBuilder {
|
|
12
|
+
private input;
|
|
13
|
+
private context;
|
|
14
|
+
private query;
|
|
15
|
+
private method;
|
|
16
|
+
private headers;
|
|
17
|
+
private path;
|
|
18
|
+
private body;
|
|
19
|
+
private hostname;
|
|
20
|
+
private resolvePathStack;
|
|
21
|
+
constructor(input: any, context: SerdeContext);
|
|
22
|
+
build(): Promise<HttpRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* Brevity setter for "hostname".
|
|
25
|
+
*/
|
|
26
|
+
hn(hostname: string): this;
|
|
27
|
+
/**
|
|
28
|
+
* Brevity initial builder for "basepath".
|
|
29
|
+
*/
|
|
30
|
+
bp(uriLabel: string): this;
|
|
31
|
+
/**
|
|
32
|
+
* Brevity incremental builder for "path".
|
|
33
|
+
*/
|
|
34
|
+
p(memberName: string, labelValueProvider: () => string | undefined, uriLabel: string, isGreedyLabel: boolean): this;
|
|
35
|
+
/**
|
|
36
|
+
* Brevity setter for "headers".
|
|
37
|
+
*/
|
|
38
|
+
h(headers: Record<string, string>): this;
|
|
39
|
+
/**
|
|
40
|
+
* Brevity setter for "query".
|
|
41
|
+
*/
|
|
42
|
+
q(query: Record<string, string>): this;
|
|
43
|
+
/**
|
|
44
|
+
* Brevity setter for "body".
|
|
45
|
+
*/
|
|
46
|
+
b(body: any): this;
|
|
47
|
+
/**
|
|
48
|
+
* Brevity setter for "method".
|
|
49
|
+
*/
|
|
50
|
+
m(method: string): this;
|
|
51
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -37,6 +37,13 @@
|
|
|
37
37
|
"import": "./dist-es/submodules/cbor/index.js",
|
|
38
38
|
"require": "./dist-cjs/submodules/cbor/index.js",
|
|
39
39
|
"types": "./dist-types/submodules/cbor/index.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./protocols": {
|
|
42
|
+
"module": "./dist-es/submodules/protocols/index.js",
|
|
43
|
+
"node": "./dist-cjs/submodules/protocols/index.js",
|
|
44
|
+
"import": "./dist-es/submodules/protocols/index.js",
|
|
45
|
+
"require": "./dist-cjs/submodules/protocols/index.js",
|
|
46
|
+
"types": "./dist-types/submodules/protocols/index.d.ts"
|
|
40
47
|
}
|
|
41
48
|
},
|
|
42
49
|
"author": {
|
|
@@ -46,14 +53,12 @@
|
|
|
46
53
|
},
|
|
47
54
|
"license": "Apache-2.0",
|
|
48
55
|
"dependencies": {
|
|
49
|
-
"@smithy/middleware-
|
|
50
|
-
"@smithy/
|
|
51
|
-
"@smithy/
|
|
52
|
-
"@smithy/protocol-http": "^4.1.4",
|
|
53
|
-
"@smithy/smithy-client": "^3.4.0",
|
|
54
|
-
"@smithy/types": "^3.5.0",
|
|
56
|
+
"@smithy/middleware-serde": "^3.0.8",
|
|
57
|
+
"@smithy/protocol-http": "^4.1.5",
|
|
58
|
+
"@smithy/types": "^3.6.0",
|
|
55
59
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
56
|
-
"@smithy/util-middleware": "^3.0.
|
|
60
|
+
"@smithy/util-middleware": "^3.0.8",
|
|
61
|
+
"@smithy/util-stream": "^3.2.1",
|
|
57
62
|
"@smithy/util-utf8": "^3.0.0",
|
|
58
63
|
"tslib": "^2.6.2"
|
|
59
64
|
},
|
|
@@ -70,6 +75,8 @@
|
|
|
70
75
|
"files": [
|
|
71
76
|
"./cbor.d.ts",
|
|
72
77
|
"./cbor.js",
|
|
78
|
+
"./protocols.d.ts",
|
|
79
|
+
"./protocols.js",
|
|
73
80
|
"dist-*/**"
|
|
74
81
|
],
|
|
75
82
|
"homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/core",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/node-config-provider": "^3.1.
|
|
30
|
-
"@smithy/property-provider": "^3.1.
|
|
31
|
-
"@smithy/types": "^3.
|
|
32
|
-
"@smithy/url-parser": "^3.0.
|
|
29
|
+
"@smithy/node-config-provider": "^3.1.9",
|
|
30
|
+
"@smithy/property-provider": "^3.1.8",
|
|
31
|
+
"@smithy/types": "^3.6.0",
|
|
32
|
+
"@smithy/url-parser": "^3.0.8",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-codec",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline eventstream-codec",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@aws-crypto/crc32": "5.2.0",
|
|
26
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/types": "^3.6.0",
|
|
27
27
|
"@smithy/util-hex-encoding": "^3.0.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-browser",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline eventstream-serde-browser",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/eventstream-serde-universal": "^3.0.
|
|
26
|
-
"@smithy/types": "^3.
|
|
25
|
+
"@smithy/eventstream-serde-universal": "^3.0.10",
|
|
26
|
+
"@smithy/types": "^3.6.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-config-resolver",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline eventstream-serde-config-resolver",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/types": "^3.6.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-node",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline eventstream-serde-node",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/eventstream-serde-universal": "^3.0.
|
|
26
|
-
"@smithy/types": "^3.
|
|
25
|
+
"@smithy/eventstream-serde-universal": "^3.0.10",
|
|
26
|
+
"@smithy/types": "^3.6.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-universal",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline eventstream-serde-universal",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/eventstream-codec": "^3.1.
|
|
26
|
-
"@smithy/types": "^3.
|
|
25
|
+
"@smithy/eventstream-codec": "^3.1.7",
|
|
26
|
+
"@smithy/types": "^3.6.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-blob-browser",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline hash-blob-browser",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/chunked-blob-reader": "^
|
|
26
|
-
"@smithy/chunked-blob-reader-native": "^3.0.
|
|
27
|
-
"@smithy/types": "^3.
|
|
25
|
+
"@smithy/chunked-blob-reader": "^4.0.0",
|
|
26
|
+
"@smithy/chunked-blob-reader-native": "^3.0.1",
|
|
27
|
+
"@smithy/types": "^3.6.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-node",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline hash-node",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typedoc": "0.23.23"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@smithy/types": "^3.
|
|
33
|
+
"@smithy/types": "^3.6.0",
|
|
34
34
|
"@smithy/util-buffer-from": "^3.0.0",
|
|
35
35
|
"@smithy/util-utf8": "^3.0.0",
|
|
36
36
|
"tslib": "^2.6.2"
|