@jjrawlins/cdk-iam-policy-builder-helper 0.0.56 → 0.0.57
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 +2 -2
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -14
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +161 -138
- package/node_modules/@smithy/core/dist-es/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -15
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +3 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +3 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +24 -6
- package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -10
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +4 -4
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +22 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -10
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +4 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +22 -1
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- 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/dist-cjs/index.js +30 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -3
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- 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 +5 -4
- package/node_modules/@smithy/smithy-client/dist-es/command.js +5 -4
- package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-es/index.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
- 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/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +2 -2
- /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
- /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
|
|
2
|
+
import { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext, StaticOperationSchema } from "@smithy/types";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
export declare abstract class Command<Input extends ClientInput, Output extends ClientOutput, ResolvedClientConfiguration, ClientInput extends object = any, ClientOutput extends MetadataBearer = any> implements ICommand<ClientInput, Input, ClientOutput, Output, ResolvedClientConfiguration> {
|
|
7
7
|
abstract input: Input;
|
|
8
8
|
readonly middlewareStack: IMiddlewareStack<Input, Output>;
|
|
9
|
-
readonly schema?: OperationSchema;
|
|
9
|
+
readonly schema?: OperationSchema | StaticOperationSchema;
|
|
10
10
|
/**
|
|
11
11
|
* Factory for Command ClassBuilder.
|
|
12
12
|
* @internal
|
|
@@ -95,7 +95,7 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
|
|
|
95
95
|
/**
|
|
96
96
|
* Sets input/output schema for the operation.
|
|
97
97
|
*/
|
|
98
|
-
sc(operation: OperationSchema): ClassBuilder<I, O, C, SI, SO>;
|
|
98
|
+
sc(operation: OperationSchema | StaticOperationSchema): ClassBuilder<I, O, C, SI, SO>;
|
|
99
99
|
/**
|
|
100
100
|
* @returns a Command class with the classBuilder properties.
|
|
101
101
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
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 smithy-client",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.
|
|
29
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
30
|
-
"@smithy/middleware-stack": "^4.2.
|
|
31
|
-
"@smithy/protocol-http": "^5.3.
|
|
32
|
-
"@smithy/types": "^4.
|
|
33
|
-
"@smithy/util-stream": "^4.5.
|
|
28
|
+
"@smithy/core": "^3.16.0",
|
|
29
|
+
"@smithy/middleware-endpoint": "^4.3.2",
|
|
30
|
+
"@smithy/middleware-stack": "^4.2.1",
|
|
31
|
+
"@smithy/protocol-http": "^5.3.1",
|
|
32
|
+
"@smithy/types": "^4.7.0",
|
|
33
|
+
"@smithy/util-stream": "^4.5.1",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
@@ -23,6 +23,7 @@ export * from "./response";
|
|
|
23
23
|
export * from "./retry";
|
|
24
24
|
export * from "./schema/schema";
|
|
25
25
|
export * from "./schema/sentinels";
|
|
26
|
+
export * from "./schema/static-schemas";
|
|
26
27
|
export * from "./serde";
|
|
27
28
|
export * from "./shapes";
|
|
28
29
|
export * from "./signature";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -23,15 +23,30 @@ export interface NodeHttpHandlerOptions {
|
|
|
23
23
|
/**
|
|
24
24
|
* The maximum time in milliseconds that the connection phase of a request
|
|
25
25
|
* may take before the connection attempt is abandoned.
|
|
26
|
-
*
|
|
27
26
|
* Defaults to 0, which disables the timeout.
|
|
28
27
|
*/
|
|
29
28
|
connectionTimeout?: number;
|
|
30
29
|
/**
|
|
31
|
-
* The number of milliseconds
|
|
30
|
+
* The maximum number of milliseconds request & response should take.
|
|
32
31
|
* Defaults to 0, which disables the timeout.
|
|
32
|
+
*
|
|
33
|
+
* If exceeded, a warning will be emitted unless throwOnRequestTimeout=true,
|
|
34
|
+
* in which case a TimeoutError will be thrown.
|
|
33
35
|
*/
|
|
34
36
|
requestTimeout?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Because requestTimeout was for a long time incorrectly being set as a socket idle timeout,
|
|
39
|
+
* users must also opt-in for request timeout thrown errors.
|
|
40
|
+
* Without this setting, a breach of the request timeout will be logged as a warning.
|
|
41
|
+
*/
|
|
42
|
+
throwOnRequestTimeout?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The maximum time in milliseconds that a socket may remain idle before it
|
|
45
|
+
* is closed. Defaults to 0, which means no maximum.
|
|
46
|
+
*
|
|
47
|
+
* This does not affect the server, which may still close the connection due to an idle socket.
|
|
48
|
+
*/
|
|
49
|
+
socketTimeout?: number;
|
|
35
50
|
/**
|
|
36
51
|
* Delay before the NodeHttpHandler checks for socket exhaustion,
|
|
37
52
|
* and emits a warning if the active sockets and enqueued request count is greater than
|
|
@@ -40,14 +55,6 @@ export interface NodeHttpHandlerOptions {
|
|
|
40
55
|
* Defaults to connectionTimeout + requestTimeout or 3000ms if those are not set.
|
|
41
56
|
*/
|
|
42
57
|
socketAcquisitionWarningTimeout?: number;
|
|
43
|
-
/**
|
|
44
|
-
* This field is deprecated, and requestTimeout should be used instead.
|
|
45
|
-
* The maximum time in milliseconds that a socket may remain idle before it
|
|
46
|
-
* is closed.
|
|
47
|
-
*
|
|
48
|
-
* @deprecated Use {@link requestTimeout}
|
|
49
|
-
*/
|
|
50
|
-
socketTimeout?: number;
|
|
51
58
|
/**
|
|
52
59
|
* You can pass http.Agent or its constructor options.
|
|
53
60
|
*/
|
|
@@ -23,6 +23,7 @@ export * from "./response";
|
|
|
23
23
|
export * from "./retry";
|
|
24
24
|
export * from "./schema/schema";
|
|
25
25
|
export * from "./schema/sentinels";
|
|
26
|
+
export * from "./schema/static-schemas";
|
|
26
27
|
export * from "./serde";
|
|
27
28
|
export * from "./shapes";
|
|
28
29
|
export * from "./signature";
|
|
@@ -3,12 +3,13 @@ import type { HandlerExecutionContext } from "../middleware";
|
|
|
3
3
|
import type { MetadataBearer } from "../response";
|
|
4
4
|
import type { EndpointBearer, SerdeFunctions } from "../serde";
|
|
5
5
|
import type { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "./sentinels";
|
|
6
|
+
import type { StaticSchema } from "./static-schemas";
|
|
6
7
|
import type { TraitBitVector } from "./traits";
|
|
7
8
|
/**
|
|
8
9
|
* A schema is an object or value that describes how to serialize/deserialize data.
|
|
9
10
|
* @public
|
|
10
11
|
*/
|
|
11
|
-
export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | NormalizedSchema;
|
|
12
|
+
export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | StaticSchema | NormalizedSchema;
|
|
12
13
|
/**
|
|
13
14
|
* Traits attached to schema objects.
|
|
14
15
|
*
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { SchemaRef, SchemaTraits } from "../schema/schema";
|
|
2
|
+
/**
|
|
3
|
+
* @alpha
|
|
4
|
+
*/
|
|
5
|
+
export type StaticSchemaIdSimple = 0;
|
|
6
|
+
/**
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export type StaticSchemaIdList = 1;
|
|
10
|
+
/**
|
|
11
|
+
* @alpha
|
|
12
|
+
*/
|
|
13
|
+
export type StaticSchemaIdMap = 2;
|
|
14
|
+
/**
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export type StaticSchemaIdStruct = 3;
|
|
18
|
+
/**
|
|
19
|
+
* @alpha
|
|
20
|
+
*/
|
|
21
|
+
export type StaticSchemaIdError = -3;
|
|
22
|
+
/**
|
|
23
|
+
* @alpha
|
|
24
|
+
*/
|
|
25
|
+
export type StaticSchemaIdOperation = 9;
|
|
26
|
+
/**
|
|
27
|
+
* @alpha
|
|
28
|
+
*/
|
|
29
|
+
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticErrorSchema | StaticOperationSchema;
|
|
30
|
+
/**
|
|
31
|
+
* @alpha
|
|
32
|
+
*/
|
|
33
|
+
export type ShapeName = string;
|
|
34
|
+
/**
|
|
35
|
+
* @alpha
|
|
36
|
+
*/
|
|
37
|
+
export type ShapeNamespace = string;
|
|
38
|
+
/**
|
|
39
|
+
* @alpha
|
|
40
|
+
*/
|
|
41
|
+
export type StaticSimpleSchema = [StaticSchemaIdSimple, ShapeNamespace, ShapeName, SchemaRef, SchemaTraits];
|
|
42
|
+
/**
|
|
43
|
+
* @alpha
|
|
44
|
+
*/
|
|
45
|
+
export type StaticListSchema = [StaticSchemaIdList, ShapeNamespace, ShapeName, SchemaTraits, SchemaRef];
|
|
46
|
+
/**
|
|
47
|
+
* @alpha
|
|
48
|
+
*/
|
|
49
|
+
export type StaticMapSchema = [StaticSchemaIdMap, ShapeNamespace, ShapeName, SchemaTraits, SchemaRef, SchemaRef];
|
|
50
|
+
/**
|
|
51
|
+
* @alpha
|
|
52
|
+
*/
|
|
53
|
+
export type StaticStructureSchema = [
|
|
54
|
+
StaticSchemaIdStruct,
|
|
55
|
+
ShapeNamespace,
|
|
56
|
+
ShapeName,
|
|
57
|
+
SchemaTraits,
|
|
58
|
+
string[],
|
|
59
|
+
SchemaRef[]
|
|
60
|
+
];
|
|
61
|
+
/**
|
|
62
|
+
* @alpha
|
|
63
|
+
*/
|
|
64
|
+
export type StaticErrorSchema = [
|
|
65
|
+
StaticSchemaIdError,
|
|
66
|
+
ShapeNamespace,
|
|
67
|
+
ShapeName,
|
|
68
|
+
SchemaTraits,
|
|
69
|
+
string[],
|
|
70
|
+
SchemaRef[]
|
|
71
|
+
];
|
|
72
|
+
/**
|
|
73
|
+
* @alpha
|
|
74
|
+
*/
|
|
75
|
+
export type StaticOperationSchema = [
|
|
76
|
+
StaticSchemaIdOperation,
|
|
77
|
+
ShapeNamespace,
|
|
78
|
+
ShapeName,
|
|
79
|
+
SchemaTraits,
|
|
80
|
+
SchemaRef,
|
|
81
|
+
SchemaRef
|
|
82
|
+
];
|
|
@@ -23,15 +23,30 @@ export interface NodeHttpHandlerOptions {
|
|
|
23
23
|
/**
|
|
24
24
|
* The maximum time in milliseconds that the connection phase of a request
|
|
25
25
|
* may take before the connection attempt is abandoned.
|
|
26
|
-
*
|
|
27
26
|
* Defaults to 0, which disables the timeout.
|
|
28
27
|
*/
|
|
29
28
|
connectionTimeout?: number;
|
|
30
29
|
/**
|
|
31
|
-
* The number of milliseconds
|
|
30
|
+
* The maximum number of milliseconds request & response should take.
|
|
32
31
|
* Defaults to 0, which disables the timeout.
|
|
32
|
+
*
|
|
33
|
+
* If exceeded, a warning will be emitted unless throwOnRequestTimeout=true,
|
|
34
|
+
* in which case a TimeoutError will be thrown.
|
|
33
35
|
*/
|
|
34
36
|
requestTimeout?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Because requestTimeout was for a long time incorrectly being set as a socket idle timeout,
|
|
39
|
+
* users must also opt-in for request timeout thrown errors.
|
|
40
|
+
* Without this setting, a breach of the request timeout will be logged as a warning.
|
|
41
|
+
*/
|
|
42
|
+
throwOnRequestTimeout?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The maximum time in milliseconds that a socket may remain idle before it
|
|
45
|
+
* is closed. Defaults to 0, which means no maximum.
|
|
46
|
+
*
|
|
47
|
+
* This does not affect the server, which may still close the connection due to an idle socket.
|
|
48
|
+
*/
|
|
49
|
+
socketTimeout?: number;
|
|
35
50
|
/**
|
|
36
51
|
* Delay before the NodeHttpHandler checks for socket exhaustion,
|
|
37
52
|
* and emits a warning if the active sockets and enqueued request count is greater than
|
|
@@ -40,14 +55,6 @@ export interface NodeHttpHandlerOptions {
|
|
|
40
55
|
* Defaults to connectionTimeout + requestTimeout or 3000ms if those are not set.
|
|
41
56
|
*/
|
|
42
57
|
socketAcquisitionWarningTimeout?: number;
|
|
43
|
-
/**
|
|
44
|
-
* This field is deprecated, and requestTimeout should be used instead.
|
|
45
|
-
* The maximum time in milliseconds that a socket may remain idle before it
|
|
46
|
-
* is closed.
|
|
47
|
-
*
|
|
48
|
-
* @deprecated Use {@link requestTimeout}
|
|
49
|
-
*/
|
|
50
|
-
socketTimeout?: number;
|
|
51
58
|
/**
|
|
52
59
|
* You can pass http.Agent or its constructor options.
|
|
53
60
|
*/
|
|
@@ -23,6 +23,7 @@ export * from "./response";
|
|
|
23
23
|
export * from "./retry";
|
|
24
24
|
export * from "./schema/schema";
|
|
25
25
|
export * from "./schema/sentinels";
|
|
26
|
+
export * from "./schema/static-schemas";
|
|
26
27
|
export * from "./serde";
|
|
27
28
|
export * from "./shapes";
|
|
28
29
|
export * from "./signature";
|
|
@@ -3,12 +3,13 @@ import { HandlerExecutionContext } from "../middleware";
|
|
|
3
3
|
import { MetadataBearer } from "../response";
|
|
4
4
|
import { EndpointBearer, SerdeFunctions } from "../serde";
|
|
5
5
|
import { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "./sentinels";
|
|
6
|
+
import { StaticSchema } from "./static-schemas";
|
|
6
7
|
import { TraitBitVector } from "./traits";
|
|
7
8
|
/**
|
|
8
9
|
* A schema is an object or value that describes how to serialize/deserialize data.
|
|
9
10
|
* @public
|
|
10
11
|
*/
|
|
11
|
-
export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | NormalizedSchema;
|
|
12
|
+
export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | StaticSchema | NormalizedSchema;
|
|
12
13
|
/**
|
|
13
14
|
* Traits attached to schema objects.
|
|
14
15
|
*
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { SchemaRef, SchemaTraits } from "../schema/schema";
|
|
2
|
+
/**
|
|
3
|
+
* @alpha
|
|
4
|
+
*/
|
|
5
|
+
export type StaticSchemaIdSimple = 0;
|
|
6
|
+
/**
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export type StaticSchemaIdList = 1;
|
|
10
|
+
/**
|
|
11
|
+
* @alpha
|
|
12
|
+
*/
|
|
13
|
+
export type StaticSchemaIdMap = 2;
|
|
14
|
+
/**
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export type StaticSchemaIdStruct = 3;
|
|
18
|
+
/**
|
|
19
|
+
* @alpha
|
|
20
|
+
*/
|
|
21
|
+
export type StaticSchemaIdError = -3;
|
|
22
|
+
/**
|
|
23
|
+
* @alpha
|
|
24
|
+
*/
|
|
25
|
+
export type StaticSchemaIdOperation = 9;
|
|
26
|
+
/**
|
|
27
|
+
* @alpha
|
|
28
|
+
*/
|
|
29
|
+
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticErrorSchema | StaticOperationSchema;
|
|
30
|
+
/**
|
|
31
|
+
* @alpha
|
|
32
|
+
*/
|
|
33
|
+
export type ShapeName = string;
|
|
34
|
+
/**
|
|
35
|
+
* @alpha
|
|
36
|
+
*/
|
|
37
|
+
export type ShapeNamespace = string;
|
|
38
|
+
/**
|
|
39
|
+
* @alpha
|
|
40
|
+
*/
|
|
41
|
+
export type StaticSimpleSchema = [
|
|
42
|
+
StaticSchemaIdSimple,
|
|
43
|
+
ShapeNamespace,
|
|
44
|
+
ShapeName,
|
|
45
|
+
SchemaRef,
|
|
46
|
+
SchemaTraits
|
|
47
|
+
];
|
|
48
|
+
/**
|
|
49
|
+
* @alpha
|
|
50
|
+
*/
|
|
51
|
+
export type StaticListSchema = [
|
|
52
|
+
StaticSchemaIdList,
|
|
53
|
+
ShapeNamespace,
|
|
54
|
+
ShapeName,
|
|
55
|
+
SchemaTraits,
|
|
56
|
+
SchemaRef
|
|
57
|
+
];
|
|
58
|
+
/**
|
|
59
|
+
* @alpha
|
|
60
|
+
*/
|
|
61
|
+
export type StaticMapSchema = [
|
|
62
|
+
StaticSchemaIdMap,
|
|
63
|
+
ShapeNamespace,
|
|
64
|
+
ShapeName,
|
|
65
|
+
SchemaTraits,
|
|
66
|
+
SchemaRef,
|
|
67
|
+
SchemaRef
|
|
68
|
+
];
|
|
69
|
+
/**
|
|
70
|
+
* @alpha
|
|
71
|
+
*/
|
|
72
|
+
export type StaticStructureSchema = [
|
|
73
|
+
StaticSchemaIdStruct,
|
|
74
|
+
ShapeNamespace,
|
|
75
|
+
ShapeName,
|
|
76
|
+
SchemaTraits,
|
|
77
|
+
string[],
|
|
78
|
+
SchemaRef[]
|
|
79
|
+
];
|
|
80
|
+
/**
|
|
81
|
+
* @alpha
|
|
82
|
+
*/
|
|
83
|
+
export type StaticErrorSchema = [
|
|
84
|
+
StaticSchemaIdError,
|
|
85
|
+
ShapeNamespace,
|
|
86
|
+
ShapeName,
|
|
87
|
+
SchemaTraits,
|
|
88
|
+
string[],
|
|
89
|
+
SchemaRef[]
|
|
90
|
+
];
|
|
91
|
+
/**
|
|
92
|
+
* @alpha
|
|
93
|
+
*/
|
|
94
|
+
export type StaticOperationSchema = [
|
|
95
|
+
StaticSchemaIdOperation,
|
|
96
|
+
ShapeNamespace,
|
|
97
|
+
ShapeName,
|
|
98
|
+
SchemaTraits,
|
|
99
|
+
SchemaRef,
|
|
100
|
+
SchemaRef
|
|
101
|
+
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/url-parser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
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 url-parser",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/querystring-parser": "^4.2.
|
|
28
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/querystring-parser": "^4.2.1",
|
|
28
|
+
"@smithy/types": "^4.7.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
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 util-defaults-mode-browser",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/property-provider": "^4.2.
|
|
28
|
-
"@smithy/smithy-client": "^4.
|
|
29
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/property-provider": "^4.2.1",
|
|
28
|
+
"@smithy/smithy-client": "^4.8.0",
|
|
29
|
+
"@smithy/types": "^4.7.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
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 util-defaults-mode-node",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/config-resolver": "^4.3.
|
|
28
|
-
"@smithy/credential-provider-imds": "^4.2.
|
|
29
|
-
"@smithy/node-config-provider": "^4.3.
|
|
30
|
-
"@smithy/property-provider": "^4.2.
|
|
31
|
-
"@smithy/smithy-client": "^4.
|
|
32
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/config-resolver": "^4.3.1",
|
|
28
|
+
"@smithy/credential-provider-imds": "^4.2.1",
|
|
29
|
+
"@smithy/node-config-provider": "^4.3.1",
|
|
30
|
+
"@smithy/property-provider": "^4.2.1",
|
|
31
|
+
"@smithy/smithy-client": "^4.8.0",
|
|
32
|
+
"@smithy/types": "^4.7.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-endpoints",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@smithy/node-config-provider": "^4.3.
|
|
33
|
-
"@smithy/types": "^4.
|
|
32
|
+
"@smithy/node-config-provider": "^4.3.1",
|
|
33
|
+
"@smithy/types": "^4.7.0",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-middleware",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Shared utilities for to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@smithy/types": "^4.
|
|
31
|
+
"@smithy/types": "^4.7.0",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-retry",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/service-error-classification": "^4.2.
|
|
35
|
-
"@smithy/types": "^4.
|
|
34
|
+
"@smithy/service-error-classification": "^4.2.1",
|
|
35
|
+
"@smithy/types": "^4.7.0",
|
|
36
36
|
"tslib": "^2.6.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-stream",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
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 util-stream",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
33
|
-
"@smithy/node-http-handler": "^4.
|
|
34
|
-
"@smithy/types": "^4.
|
|
32
|
+
"@smithy/fetch-http-handler": "^5.3.2",
|
|
33
|
+
"@smithy/node-http-handler": "^4.4.0",
|
|
34
|
+
"@smithy/types": "^4.7.0",
|
|
35
35
|
"@smithy/util-base64": "^4.3.0",
|
|
36
36
|
"@smithy/util-buffer-from": "^4.2.0",
|
|
37
37
|
"@smithy/util-hex-encoding": "^4.2.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-waiter",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Shared utilities for client waiters for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@smithy/abort-controller": "^4.2.
|
|
7
|
-
"@smithy/types": "^4.
|
|
6
|
+
"@smithy/abort-controller": "^4.2.1",
|
|
7
|
+
"@smithy/types": "^4.7.0",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"jsii-docgen": "^10.5.0",
|
|
60
60
|
"jsii-pacmak": "^1.115.0",
|
|
61
61
|
"jsii-rosetta": "~5.8.0",
|
|
62
|
-
"projen": "^0.
|
|
62
|
+
"projen": "^0.98.0",
|
|
63
63
|
"ts-jest": "^29.4.5",
|
|
64
64
|
"ts-node": "^10.9.2",
|
|
65
65
|
"typescript": "^5.9.3"
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"version": "0.0.
|
|
104
|
+
"version": "0.0.57",
|
|
105
105
|
"jest": {
|
|
106
106
|
"coverageProvider": "v8",
|
|
107
107
|
"testMatch": [
|
|
File without changes
|
/package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts
RENAMED
|
File without changes
|
|
File without changes
|