@scality/cloudserverclient 0.0.1-test → 0.0.3
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/README.md +0 -9
- package/build/smithy/source/typescript-codegen/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/build/smithy/source/typescript-codegen/dist-types/runtimeConfig.d.ts +6 -1
- package/build/smithy/source/typescript-codegen/dist-types/runtimeConfig.native.d.ts +6 -1
- package/build/smithy/source/typescript-codegen/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/types/package.json +3 -3
- package/build/smithy/source/typescript-codegen/node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/types/package.json +3 -3
- package/build/smithy/source/typescript-codegen/node_modules/@aws-crypto/util/node_modules/@aws-sdk/types/package.json +3 -3
- package/build/smithy/source/typescript-codegen/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +10 -38
- package/build/smithy/source/typescript-codegen/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/abort-controller/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/config-resolver/package.json +5 -5
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +19 -3
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +8 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +19 -3
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +8 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +6 -0
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +6 -0
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/core/package.json +10 -8
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/hash-node/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +11 -3
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +10 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +1 -1
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/createConfigValueProvider.d.ts +2 -1
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/createConfigValueProvider.d.ts +2 -1
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/property-provider/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/protocol-http/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/signature-v4/package.json +4 -4
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/smithy-client/dist-cjs/index.js +6 -0
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/smithy-client/dist-es/client.js +6 -0
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/smithy-client/dist-types/client.d.ts +33 -7
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +33 -7
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/smithy-client/package.json +7 -7
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +7 -0
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/types/dist-types/schema/schema.d.ts +6 -0
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +16 -1
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +7 -0
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +6 -0
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +16 -1
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/types/package.json +1 -1
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/url-parser/package.json +3 -3
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/util-middleware/package.json +2 -2
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/util-retry/package.json +3 -3
- package/build/smithy/source/typescript-codegen/node_modules/@smithy/util-stream/package.json +4 -4
- package/build/smithy/source/typescript-codegen/node_modules/downlevel-dts/node_modules/typescript/lib/_tsc.js +1 -1
- package/build/smithy/source/typescript-codegen/node_modules/downlevel-dts/node_modules/typescript/lib/typescript.js +1 -1
- package/build/smithy/source/typescript-codegen/node_modules/downlevel-dts/node_modules/typescript/package.json +2 -2
- package/build/smithy/source/typescript-codegen/tsconfig.cjs.tsbuildinfo +1 -1
- package/build/smithy/source/typescript-codegen/tsconfig.es.tsbuildinfo +1 -1
- package/build/smithy/source/typescript-codegen/tsconfig.types.tsbuildinfo +1 -1
- package/build/smithy/source/typescript-codegen/yarn.lock +203 -203
- package/package.json +3 -3
package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-endpoint/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.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 middleware-endpoint",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.
|
|
29
|
-
"@smithy/middleware-serde": "^4.2.
|
|
30
|
-
"@smithy/node-config-provider": "^4.3.
|
|
31
|
-
"@smithy/shared-ini-file-loader": "^4.4.
|
|
32
|
-
"@smithy/types": "^4.
|
|
33
|
-
"@smithy/url-parser": "^4.2.
|
|
34
|
-
"@smithy/util-middleware": "^4.2.
|
|
28
|
+
"@smithy/core": "^3.20.0",
|
|
29
|
+
"@smithy/middleware-serde": "^4.2.8",
|
|
30
|
+
"@smithy/node-config-provider": "^4.3.7",
|
|
31
|
+
"@smithy/shared-ini-file-loader": "^4.4.2",
|
|
32
|
+
"@smithy/types": "^4.11.0",
|
|
33
|
+
"@smithy/url-parser": "^4.2.7",
|
|
34
|
+
"@smithy/util-middleware": "^4.2.7",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-retry/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.17",
|
|
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 middleware-retry",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@smithy/node-config-provider": "^4.3.
|
|
38
|
-
"@smithy/protocol-http": "^5.3.
|
|
39
|
-
"@smithy/service-error-classification": "^4.2.
|
|
40
|
-
"@smithy/smithy-client": "^4.
|
|
41
|
-
"@smithy/types": "^4.
|
|
42
|
-
"@smithy/util-middleware": "^4.2.
|
|
43
|
-
"@smithy/util-retry": "^4.2.
|
|
37
|
+
"@smithy/node-config-provider": "^4.3.7",
|
|
38
|
+
"@smithy/protocol-http": "^5.3.7",
|
|
39
|
+
"@smithy/service-error-classification": "^4.2.7",
|
|
40
|
+
"@smithy/smithy-client": "^4.10.2",
|
|
41
|
+
"@smithy/types": "^4.11.0",
|
|
42
|
+
"@smithy/util-middleware": "^4.2.7",
|
|
43
|
+
"@smithy/util-retry": "^4.2.7",
|
|
44
44
|
"@smithy/uuid": "^1.1.0",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-serde/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-serde",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 middleware-serde",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/protocol-http": "^5.3.
|
|
30
|
-
"@smithy/types": "^4.
|
|
29
|
+
"@smithy/protocol-http": "^5.3.7",
|
|
30
|
+
"@smithy/types": "^4.11.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/middleware-stack/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-stack",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.7",
|
|
4
4
|
"description": "Provides a means for composing multiple middleware functions into a single handler",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"types": "./dist-types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@smithy/types": "^4.11.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-config-provider",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.7",
|
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"module": "./dist-es/index.js",
|
|
27
27
|
"types": "./dist-types/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/property-provider": "^4.2.
|
|
30
|
-
"@smithy/shared-ini-file-loader": "^4.4.
|
|
31
|
-
"@smithy/types": "^4.
|
|
29
|
+
"@smithy/property-provider": "^4.2.7",
|
|
30
|
+
"@smithy/shared-ini-file-loader": "^4.4.2",
|
|
31
|
+
"@smithy/types": "^4.11.0",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/node-http-handler/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.7",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"types": "./dist-types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/abort-controller": "^4.2.
|
|
31
|
-
"@smithy/protocol-http": "^5.3.
|
|
32
|
-
"@smithy/querystring-builder": "^4.2.
|
|
33
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@smithy/abort-controller": "^4.2.7",
|
|
31
|
+
"@smithy/protocol-http": "^5.3.7",
|
|
32
|
+
"@smithy/querystring-builder": "^4.2.7",
|
|
33
|
+
"@smithy/types": "^4.11.0",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/property-provider/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/property-provider",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 property-provider",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/types": "^4.11.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/protocol-http/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/protocol-http",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.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 protocol-http",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/types": "^4.
|
|
28
|
+
"@smithy/types": "^4.11.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/querystring-builder/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-builder",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 querystring-builder",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@smithy/types": "^4.11.0",
|
|
27
27
|
"@smithy/util-uri-escape": "^4.2.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/querystring-parser/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-parser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 querystring-parser",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/types": "^4.11.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/service-error-classification",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 service-error-classification",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"directory": ".release/package"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@smithy/types": "^4.
|
|
58
|
+
"@smithy/types": "^4.11.0"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/signature-v4/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/signature-v4",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.7",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@smithy/is-array-buffer": "^4.2.0",
|
|
30
|
-
"@smithy/protocol-http": "^5.3.
|
|
31
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@smithy/protocol-http": "^5.3.7",
|
|
31
|
+
"@smithy/types": "^4.11.0",
|
|
32
32
|
"@smithy/util-hex-encoding": "^4.2.0",
|
|
33
|
-
"@smithy/util-middleware": "^4.2.
|
|
33
|
+
"@smithy/util-middleware": "^4.2.7",
|
|
34
34
|
"@smithy/util-uri-escape": "^4.2.0",
|
|
35
35
|
"@smithy/util-utf8": "^4.2.0",
|
|
36
36
|
"tslib": "^2.6.2"
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/smithy-client/dist-cjs/index.js
CHANGED
|
@@ -13,6 +13,12 @@ class Client {
|
|
|
13
13
|
handlers;
|
|
14
14
|
constructor(config) {
|
|
15
15
|
this.config = config;
|
|
16
|
+
const { protocol, protocolSettings } = config;
|
|
17
|
+
if (protocolSettings) {
|
|
18
|
+
if (typeof protocol === "function") {
|
|
19
|
+
config.protocol = new protocol(protocolSettings);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
16
22
|
}
|
|
17
23
|
send(command, optionsOrCb, cb) {
|
|
18
24
|
const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined;
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/smithy-client/dist-es/client.js
CHANGED
|
@@ -6,6 +6,12 @@ export class Client {
|
|
|
6
6
|
handlers;
|
|
7
7
|
constructor(config) {
|
|
8
8
|
this.config = config;
|
|
9
|
+
const { protocol, protocolSettings } = config;
|
|
10
|
+
if (protocolSettings) {
|
|
11
|
+
if (typeof protocol === "function") {
|
|
12
|
+
config.protocol = new protocol(protocolSettings);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
9
15
|
}
|
|
10
16
|
send(command, optionsOrCb, cb) {
|
|
11
17
|
const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import type { Client as IClient, Command, FetchHttpHandlerOptions, MetadataBearer, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
|
|
1
|
+
import type { $ClientProtocol, $ClientProtocolCtor, Client as IClient, ClientProtocol, ClientProtocolCtor, Command, FetchHttpHandlerOptions, MetadataBearer, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface SmithyConfiguration<HandlerOptions> {
|
|
6
|
-
requestHandler: RequestHandler<any, any, HandlerOptions> | NodeHttpHandlerOptions | FetchHttpHandlerOptions | Record<string, unknown>;
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
9
|
-
* not planned to be used by customer code.
|
|
10
|
-
* @internal
|
|
7
|
+
* @public
|
|
11
8
|
*/
|
|
12
|
-
|
|
9
|
+
requestHandler: RequestHandler<any, any, HandlerOptions> | NodeHttpHandlerOptions | FetchHttpHandlerOptions | Record<string, unknown>;
|
|
13
10
|
/**
|
|
14
11
|
* @public
|
|
15
12
|
*
|
|
@@ -26,14 +23,43 @@ export interface SmithyConfiguration<HandlerOptions> {
|
|
|
26
23
|
* and not needing middleware modifications between requests.
|
|
27
24
|
*/
|
|
28
25
|
cacheMiddleware?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* A client request/response protocol or constructor of one.
|
|
28
|
+
* A protocol in this context is not e.g. https.
|
|
29
|
+
* It is the combined implementation of how to (de)serialize and create
|
|
30
|
+
* the messages (e.g. http requests/responses) that are being exchanged.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
protocol?: ClientProtocol<any, any> | $ClientProtocol<any, any> | ClientProtocolCtor<any, any> | $ClientProtocolCtor<any, any>;
|
|
35
|
+
/**
|
|
36
|
+
* These are automatically generated and will be passed to the
|
|
37
|
+
* config.protocol if given as a constructor.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
protocolSettings?: {
|
|
41
|
+
defaultNamespace?: string;
|
|
42
|
+
[setting: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The API version set internally by the SDK, and is
|
|
46
|
+
* not planned to be used by customer code.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
readonly apiVersion: string;
|
|
29
50
|
}
|
|
30
51
|
/**
|
|
31
52
|
* @internal
|
|
32
53
|
*/
|
|
33
54
|
export type SmithyResolvedConfiguration<HandlerOptions> = {
|
|
34
55
|
requestHandler: RequestHandler<any, any, HandlerOptions>;
|
|
35
|
-
readonly apiVersion: string;
|
|
36
56
|
cacheMiddleware?: boolean;
|
|
57
|
+
protocol?: ClientProtocol<any, any> | $ClientProtocol<any, any>;
|
|
58
|
+
protocolSettings?: {
|
|
59
|
+
defaultNamespace?: string;
|
|
60
|
+
[setting: string]: unknown;
|
|
61
|
+
};
|
|
62
|
+
readonly apiVersion: string;
|
|
37
63
|
};
|
|
38
64
|
/**
|
|
39
65
|
* @public
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { Client as IClient, Command, FetchHttpHandlerOptions, MetadataBearer, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
|
|
1
|
+
import { $ClientProtocol, $ClientProtocolCtor, Client as IClient, ClientProtocol, ClientProtocolCtor, Command, FetchHttpHandlerOptions, MetadataBearer, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface SmithyConfiguration<HandlerOptions> {
|
|
6
|
-
requestHandler: RequestHandler<any, any, HandlerOptions> | NodeHttpHandlerOptions | FetchHttpHandlerOptions | Record<string, unknown>;
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
9
|
-
* not planned to be used by customer code.
|
|
10
|
-
* @internal
|
|
7
|
+
* @public
|
|
11
8
|
*/
|
|
12
|
-
|
|
9
|
+
requestHandler: RequestHandler<any, any, HandlerOptions> | NodeHttpHandlerOptions | FetchHttpHandlerOptions | Record<string, unknown>;
|
|
13
10
|
/**
|
|
14
11
|
* @public
|
|
15
12
|
*
|
|
@@ -26,14 +23,43 @@ export interface SmithyConfiguration<HandlerOptions> {
|
|
|
26
23
|
* and not needing middleware modifications between requests.
|
|
27
24
|
*/
|
|
28
25
|
cacheMiddleware?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* A client request/response protocol or constructor of one.
|
|
28
|
+
* A protocol in this context is not e.g. https.
|
|
29
|
+
* It is the combined implementation of how to (de)serialize and create
|
|
30
|
+
* the messages (e.g. http requests/responses) that are being exchanged.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
protocol?: ClientProtocol<any, any> | $ClientProtocol<any, any> | ClientProtocolCtor<any, any> | $ClientProtocolCtor<any, any>;
|
|
35
|
+
/**
|
|
36
|
+
* These are automatically generated and will be passed to the
|
|
37
|
+
* config.protocol if given as a constructor.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
protocolSettings?: {
|
|
41
|
+
defaultNamespace?: string;
|
|
42
|
+
[setting: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The API version set internally by the SDK, and is
|
|
46
|
+
* not planned to be used by customer code.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
readonly apiVersion: string;
|
|
29
50
|
}
|
|
30
51
|
/**
|
|
31
52
|
* @internal
|
|
32
53
|
*/
|
|
33
54
|
export type SmithyResolvedConfiguration<HandlerOptions> = {
|
|
34
55
|
requestHandler: RequestHandler<any, any, HandlerOptions>;
|
|
35
|
-
readonly apiVersion: string;
|
|
36
56
|
cacheMiddleware?: boolean;
|
|
57
|
+
protocol?: ClientProtocol<any, any> | $ClientProtocol<any, any>;
|
|
58
|
+
protocolSettings?: {
|
|
59
|
+
defaultNamespace?: string;
|
|
60
|
+
[setting: string]: unknown;
|
|
61
|
+
};
|
|
62
|
+
readonly apiVersion: string;
|
|
37
63
|
};
|
|
38
64
|
/**
|
|
39
65
|
* @public
|
package/build/smithy/source/typescript-codegen/node_modules/@smithy/smithy-client/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.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 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.
|
|
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.20.0",
|
|
29
|
+
"@smithy/middleware-endpoint": "^4.4.1",
|
|
30
|
+
"@smithy/middleware-stack": "^4.2.7",
|
|
31
|
+
"@smithy/protocol-http": "^5.3.7",
|
|
32
|
+
"@smithy/types": "^4.11.0",
|
|
33
|
+
"@smithy/util-stream": "^4.5.8",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
@@ -134,3 +134,10 @@ export interface ClientProtocol<Request, Response> extends ConfigurableSerdeCont
|
|
|
134
134
|
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
|
135
135
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
|
136
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
* @deprecated use $ClientProtocolCtor.
|
|
140
|
+
*/
|
|
141
|
+
export interface ClientProtocolCtor<Request, Response> {
|
|
142
|
+
new (args: any): ClientProtocol<Request, Response>;
|
|
143
|
+
}
|
|
@@ -219,6 +219,12 @@ export interface $ClientProtocol<Request, Response> extends ConfigurableSerdeCon
|
|
|
219
219
|
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
|
220
220
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: $OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
|
221
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export interface $ClientProtocolCtor<Request, Response> {
|
|
226
|
+
new (args: any): $ClientProtocol<Request, Response>;
|
|
227
|
+
}
|
|
222
228
|
/**
|
|
223
229
|
* Allows a protocol, codec, or serde utility to accept the serdeContext
|
|
224
230
|
* from a client configuration or request/response handlerExecutionContext.
|
|
@@ -15,6 +15,10 @@ export type StaticSchemaIdMap = 2;
|
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
17
|
export type StaticSchemaIdStruct = 3;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export type StaticSchemaIdUnion = 4;
|
|
18
22
|
/**
|
|
19
23
|
* @public
|
|
20
24
|
*/
|
|
@@ -26,7 +30,7 @@ export type StaticSchemaIdOperation = 9;
|
|
|
26
30
|
/**
|
|
27
31
|
* @public
|
|
28
32
|
*/
|
|
29
|
-
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticErrorSchema | StaticOperationSchema;
|
|
33
|
+
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticUnionSchema | StaticErrorSchema | StaticOperationSchema;
|
|
30
34
|
/**
|
|
31
35
|
* @public
|
|
32
36
|
*/
|
|
@@ -58,6 +62,17 @@ export type StaticStructureSchema = [
|
|
|
58
62
|
string[],
|
|
59
63
|
$SchemaRef[]
|
|
60
64
|
];
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export type StaticUnionSchema = [
|
|
69
|
+
StaticSchemaIdUnion,
|
|
70
|
+
ShapeNamespace,
|
|
71
|
+
ShapeName,
|
|
72
|
+
SchemaTraits,
|
|
73
|
+
string[],
|
|
74
|
+
$SchemaRef[]
|
|
75
|
+
];
|
|
61
76
|
/**
|
|
62
77
|
* @public
|
|
63
78
|
*/
|
|
@@ -140,3 +140,10 @@ export interface ClientProtocol<Request, Response> extends ConfigurableSerdeCont
|
|
|
140
140
|
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
|
141
141
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* @public
|
|
145
|
+
* @deprecated use $ClientProtocolCtor.
|
|
146
|
+
*/
|
|
147
|
+
export interface ClientProtocolCtor<Request, Response> {
|
|
148
|
+
new (args: any): ClientProtocol<Request, Response>;
|
|
149
|
+
}
|
|
@@ -234,6 +234,12 @@ export interface $ClientProtocol<Request, Response> extends ConfigurableSerdeCon
|
|
|
234
234
|
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
|
235
235
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: $OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
|
236
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
export interface $ClientProtocolCtor<Request, Response> {
|
|
241
|
+
new (args: any): $ClientProtocol<Request, Response>;
|
|
242
|
+
}
|
|
237
243
|
/**
|
|
238
244
|
* Allows a protocol, codec, or serde utility to accept the serdeContext
|
|
239
245
|
* from a client configuration or request/response handlerExecutionContext.
|
|
@@ -15,6 +15,10 @@ export type StaticSchemaIdMap = 2;
|
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
17
|
export type StaticSchemaIdStruct = 3;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export type StaticSchemaIdUnion = 4;
|
|
18
22
|
/**
|
|
19
23
|
* @public
|
|
20
24
|
*/
|
|
@@ -26,7 +30,7 @@ export type StaticSchemaIdOperation = 9;
|
|
|
26
30
|
/**
|
|
27
31
|
* @public
|
|
28
32
|
*/
|
|
29
|
-
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticErrorSchema | StaticOperationSchema;
|
|
33
|
+
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticUnionSchema | StaticErrorSchema | StaticOperationSchema;
|
|
30
34
|
/**
|
|
31
35
|
* @public
|
|
32
36
|
*/
|
|
@@ -77,6 +81,17 @@ export type StaticStructureSchema = [
|
|
|
77
81
|
string[],
|
|
78
82
|
$SchemaRef[]
|
|
79
83
|
];
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export type StaticUnionSchema = [
|
|
88
|
+
StaticSchemaIdUnion,
|
|
89
|
+
ShapeNamespace,
|
|
90
|
+
ShapeName,
|
|
91
|
+
SchemaTraits,
|
|
92
|
+
string[],
|
|
93
|
+
$SchemaRef[]
|
|
94
|
+
];
|
|
80
95
|
/**
|
|
81
96
|
* @public
|
|
82
97
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/url-parser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 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.7",
|
|
28
|
+
"@smithy/types": "^4.11.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.16",
|
|
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.7",
|
|
28
|
+
"@smithy/smithy-client": "^4.10.2",
|
|
29
|
+
"@smithy/types": "^4.11.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|