@aws-sdk/client-codecatalyst 3.408.0 → 3.410.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const n = "type", o = "conditions", p = "argv", q = "ref", r = "properties", s = "headers";
5
- const a = true, b = false, c = "tree", d = "isSet", e = "endpoint", f = "aws.partition", g = "PartitionResult", h = { "required": false, [n]: "String" }, i = { [q]: "Endpoint" }, j = {}, k = { "fn": d, [p]: [{ [q]: "Region" }] }, l = [{ [q]: "Region" }], m = [{ [o]: [{ "fn": "booleanEquals", [p]: [{ [q]: "UseFIPS" }, true] }], [n]: c, "rules": [{ [o]: [{ "fn": "booleanEquals", [p]: [{ "fn": "getAttr", [p]: [{ [q]: g }, "supportsFIPS"] }, false] }], "error": "Partition does not support FIPS.", [n]: "error" }, { [e]: { "url": "https://codecatalyst-fips.global.{PartitionResult#dualStackDnsSuffix}", [r]: {}, [s]: {} }, [n]: e }] }, { [e]: { "url": "https://codecatalyst.global.{PartitionResult#dualStackDnsSuffix}", [r]: {}, [s]: {} }, [n]: e }];
6
- const _data = { version: "1.3", parameters: { UseFIPS: { required: a, default: b, [n]: "Boolean" }, Region: h, Endpoint: h }, rules: [{ [n]: c, rules: [{ [o]: [{ fn: d, [p]: [i] }], endpoint: { url: i, [r]: j, [s]: j }, [n]: e }, { [o]: [{ fn: "not", [p]: [k] }, { fn: f, [p]: ["us-west-2"], assign: g }], [n]: c, rules: m }, { [o]: [k, { fn: f, [p]: l, assign: g }], [n]: c, rules: m }] }] };
5
+ const a = true, b = false, c = "isSet", d = "endpoint", e = "aws.partition", f = "PartitionResult", g = "tree", h = { "required": false, [n]: "String" }, i = { [q]: "Endpoint" }, j = {}, k = { "fn": c, [p]: [{ [q]: "Region" }] }, l = [{ [q]: "Region" }], m = [{ [o]: [{ "fn": "booleanEquals", [p]: [{ [q]: "UseFIPS" }, true] }], [n]: g, "rules": [{ [o]: [{ "fn": "booleanEquals", [p]: [{ "fn": "getAttr", [p]: [{ [q]: f }, "supportsFIPS"] }, false] }], "error": "Partition does not support FIPS.", [n]: "error" }, { [d]: { "url": "https://codecatalyst-fips.global.{PartitionResult#dualStackDnsSuffix}", [r]: {}, [s]: {} }, [n]: d }] }, { [d]: { "url": "https://codecatalyst.global.{PartitionResult#dualStackDnsSuffix}", [r]: {}, [s]: {} }, [n]: d }];
6
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, [n]: "Boolean" }, Region: h, Endpoint: h }, rules: [{ [o]: [{ fn: c, [p]: [i] }], endpoint: { url: i, [r]: j, [s]: j }, [n]: d }, { [o]: [{ fn: "not", [p]: [k] }, { fn: e, [p]: ["us-west-2"], assign: f }], [n]: g, rules: m }, { [o]: [k, { fn: e, [p]: l, assign: f }], [n]: g, rules: m }] };
7
7
  exports.ruleSet = _data;
@@ -1,16 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveRuntimeExtensions = void 0;
4
+ const protocol_http_1 = require("@smithy/protocol-http");
4
5
  const smithy_client_1 = require("@smithy/smithy-client");
5
6
  const asPartial = (t) => t;
6
7
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
8
  const extensionConfiguration = {
8
9
  ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
10
+ ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
9
11
  };
10
12
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
13
  return {
12
14
  ...runtimeConfig,
13
15
  ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
16
+ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
14
17
  };
15
18
  };
16
19
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -1,4 +1,4 @@
1
1
  const n = "type", o = "conditions", p = "argv", q = "ref", r = "properties", s = "headers";
2
- const a = true, b = false, c = "tree", d = "isSet", e = "endpoint", f = "aws.partition", g = "PartitionResult", h = { "required": false, [n]: "String" }, i = { [q]: "Endpoint" }, j = {}, k = { "fn": d, [p]: [{ [q]: "Region" }] }, l = [{ [q]: "Region" }], m = [{ [o]: [{ "fn": "booleanEquals", [p]: [{ [q]: "UseFIPS" }, true] }], [n]: c, "rules": [{ [o]: [{ "fn": "booleanEquals", [p]: [{ "fn": "getAttr", [p]: [{ [q]: g }, "supportsFIPS"] }, false] }], "error": "Partition does not support FIPS.", [n]: "error" }, { [e]: { "url": "https://codecatalyst-fips.global.{PartitionResult#dualStackDnsSuffix}", [r]: {}, [s]: {} }, [n]: e }] }, { [e]: { "url": "https://codecatalyst.global.{PartitionResult#dualStackDnsSuffix}", [r]: {}, [s]: {} }, [n]: e }];
3
- const _data = { version: "1.3", parameters: { UseFIPS: { required: a, default: b, [n]: "Boolean" }, Region: h, Endpoint: h }, rules: [{ [n]: c, rules: [{ [o]: [{ fn: d, [p]: [i] }], endpoint: { url: i, [r]: j, [s]: j }, [n]: e }, { [o]: [{ fn: "not", [p]: [k] }, { fn: f, [p]: ["us-west-2"], assign: g }], [n]: c, rules: m }, { [o]: [k, { fn: f, [p]: l, assign: g }], [n]: c, rules: m }] }] };
2
+ const a = true, b = false, c = "isSet", d = "endpoint", e = "aws.partition", f = "PartitionResult", g = "tree", h = { "required": false, [n]: "String" }, i = { [q]: "Endpoint" }, j = {}, k = { "fn": c, [p]: [{ [q]: "Region" }] }, l = [{ [q]: "Region" }], m = [{ [o]: [{ "fn": "booleanEquals", [p]: [{ [q]: "UseFIPS" }, true] }], [n]: g, "rules": [{ [o]: [{ "fn": "booleanEquals", [p]: [{ "fn": "getAttr", [p]: [{ [q]: f }, "supportsFIPS"] }, false] }], "error": "Partition does not support FIPS.", [n]: "error" }, { [d]: { "url": "https://codecatalyst-fips.global.{PartitionResult#dualStackDnsSuffix}", [r]: {}, [s]: {} }, [n]: d }] }, { [d]: { "url": "https://codecatalyst.global.{PartitionResult#dualStackDnsSuffix}", [r]: {}, [s]: {} }, [n]: d }];
3
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, [n]: "Boolean" }, Region: h, Endpoint: h }, rules: [{ [o]: [{ fn: c, [p]: [i] }], endpoint: { url: i, [r]: j, [s]: j }, [n]: d }, { [o]: [{ fn: "not", [p]: [k] }, { fn: e, [p]: ["us-west-2"], assign: f }], [n]: g, rules: m }, { [o]: [k, { fn: e, [p]: l, assign: f }], [n]: g, rules: m }] };
4
4
  export const ruleSet = _data;
@@ -1,12 +1,15 @@
1
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
1
2
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
2
3
  const asPartial = (t) => t;
3
4
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
4
5
  const extensionConfiguration = {
5
6
  ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
7
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
6
8
  };
7
9
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
10
  return {
9
11
  ...runtimeConfig,
10
12
  ...resolveDefaultRuntimeConfig(extensionConfiguration),
13
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
11
14
  };
12
15
  };
@@ -1,6 +1,7 @@
1
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
1
2
  import { DefaultExtensionConfiguration } from "@smithy/types";
2
3
  /**
3
4
  * @internal
4
5
  */
5
- export interface CodeCatalystExtensionConfiguration extends DefaultExtensionConfiguration {
6
+ export interface CodeCatalystExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
6
7
  }
@@ -9,7 +9,10 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
12
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
13
+ updateHttpClientConfig(key: never, value: never): void;
14
+ httpHandlerConfigs(): {};
15
+ }) | RequestHandler;
13
16
  retryMode: string | import("@smithy/types").Provider<string>;
14
17
  sha256: import("@smithy/types").HashConstructor;
15
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -9,7 +9,10 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
12
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
13
+ updateHttpClientConfig(key: never, value: never): void;
14
+ httpHandlerConfigs(): {};
15
+ }) | RequestHandler;
13
16
  retryMode: string | import("@smithy/types").Provider<string>;
14
17
  sha256: import("@smithy/types").HashConstructor;
15
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -5,7 +5,10 @@ import { CodeCatalystClientConfig } from "./CodeCatalystClient";
5
5
  export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | import("@smithy/fetch-http-handler").FetchHttpHandler;
8
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
+ updateHttpClientConfig(key: never, value: never): void;
10
+ httpHandlerConfigs(): {};
11
+ }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
12
  apiVersion: string;
10
13
  urlParser: import("@smithy/types").UrlParser;
11
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -3,7 +3,7 @@ import { CodeCatalystExtensionConfiguration } from "./extensionConfiguration";
3
3
  * @public
4
4
  */
5
5
  export interface RuntimeExtension {
6
- configure(clientConfiguration: CodeCatalystExtensionConfiguration): void;
6
+ configure(extensionConfiguration: CodeCatalystExtensionConfiguration): void;
7
7
  }
8
8
  /**
9
9
  * @public
@@ -1,3 +1,5 @@
1
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
1
2
  import { DefaultExtensionConfiguration } from "@smithy/types";
2
3
  export interface CodeCatalystExtensionConfiguration
3
- extends DefaultExtensionConfiguration {}
4
+ extends HttpHandlerExtensionConfiguration,
5
+ DefaultExtensionConfiguration {}
@@ -16,7 +16,14 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
16
16
  any,
17
17
  import("@smithy/types").HttpHandlerOptions
18
18
  > &
19
- import("@smithy/protocol-http").HttpHandler)
19
+ import("@smithy/types").RequestHandler<
20
+ import("@smithy/protocol-http").HttpRequest,
21
+ import("@smithy/protocol-http").HttpResponse,
22
+ import("@smithy/types").HttpHandlerOptions
23
+ > & {
24
+ updateHttpClientConfig(key: never, value: never): void;
25
+ httpHandlerConfigs(): {};
26
+ })
20
27
  | RequestHandler;
21
28
  retryMode: string | import("@smithy/types").Provider<string>;
22
29
  sha256: import("@smithy/types").HashConstructor;
@@ -16,7 +16,14 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
16
16
  any,
17
17
  import("@smithy/types").HttpHandlerOptions
18
18
  > &
19
- import("@smithy/protocol-http").HttpHandler)
19
+ import("@smithy/types").RequestHandler<
20
+ import("@smithy/protocol-http").HttpRequest,
21
+ import("@smithy/protocol-http").HttpResponse,
22
+ import("@smithy/types").HttpHandlerOptions
23
+ > & {
24
+ updateHttpClientConfig(key: never, value: never): void;
25
+ httpHandlerConfigs(): {};
26
+ })
20
27
  | RequestHandler;
21
28
  retryMode: string | import("@smithy/types").Provider<string>;
22
29
  sha256: import("@smithy/types").HashConstructor;
@@ -8,7 +8,14 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
8
8
  any,
9
9
  import("@smithy/types").HttpHandlerOptions
10
10
  > &
11
- import("@smithy/protocol-http").HttpHandler)
11
+ import("@smithy/types").RequestHandler<
12
+ import("@smithy/protocol-http").HttpRequest,
13
+ import("@smithy/protocol-http").HttpResponse,
14
+ import("@smithy/types").HttpHandlerOptions
15
+ > & {
16
+ updateHttpClientConfig(key: never, value: never): void;
17
+ httpHandlerConfigs(): {};
18
+ })
12
19
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
13
20
  apiVersion: string;
14
21
  urlParser: import("@smithy/types").UrlParser;
@@ -1,6 +1,6 @@
1
1
  import { CodeCatalystExtensionConfiguration } from "./extensionConfiguration";
2
2
  export interface RuntimeExtension {
3
- configure(clientConfiguration: CodeCatalystExtensionConfiguration): void;
3
+ configure(extensionConfiguration: CodeCatalystExtensionConfiguration): void;
4
4
  }
5
5
  export interface RuntimeExtensionsConfig {
6
6
  extensions: RuntimeExtension[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codecatalyst",
3
3
  "description": "AWS SDK for JavaScript Codecatalyst Client for Node.js, Browser and React Native",
4
- "version": "3.408.0",
4
+ "version": "3.410.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,35 +21,35 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/middleware-host-header": "3.408.0",
25
- "@aws-sdk/middleware-logger": "3.408.0",
26
- "@aws-sdk/middleware-recursion-detection": "3.408.0",
27
- "@aws-sdk/middleware-token": "3.408.0",
28
- "@aws-sdk/middleware-user-agent": "3.408.0",
29
- "@aws-sdk/types": "3.408.0",
30
- "@aws-sdk/util-endpoints": "3.408.0",
31
- "@aws-sdk/util-user-agent-browser": "3.408.0",
32
- "@aws-sdk/util-user-agent-node": "3.408.0",
33
- "@smithy/config-resolver": "^2.0.5",
34
- "@smithy/fetch-http-handler": "^2.0.5",
35
- "@smithy/hash-node": "^2.0.5",
36
- "@smithy/invalid-dependency": "^2.0.5",
37
- "@smithy/middleware-content-length": "^2.0.5",
38
- "@smithy/middleware-endpoint": "^2.0.5",
39
- "@smithy/middleware-retry": "^2.0.5",
40
- "@smithy/middleware-serde": "^2.0.5",
24
+ "@aws-sdk/middleware-host-header": "3.410.0",
25
+ "@aws-sdk/middleware-logger": "3.410.0",
26
+ "@aws-sdk/middleware-recursion-detection": "3.410.0",
27
+ "@aws-sdk/middleware-token": "3.410.0",
28
+ "@aws-sdk/middleware-user-agent": "3.410.0",
29
+ "@aws-sdk/types": "3.410.0",
30
+ "@aws-sdk/util-endpoints": "3.410.0",
31
+ "@aws-sdk/util-user-agent-browser": "3.410.0",
32
+ "@aws-sdk/util-user-agent-node": "3.410.0",
33
+ "@smithy/config-resolver": "^2.0.7",
34
+ "@smithy/fetch-http-handler": "^2.1.2",
35
+ "@smithy/hash-node": "^2.0.6",
36
+ "@smithy/invalid-dependency": "^2.0.6",
37
+ "@smithy/middleware-content-length": "^2.0.8",
38
+ "@smithy/middleware-endpoint": "^2.0.6",
39
+ "@smithy/middleware-retry": "^2.0.9",
40
+ "@smithy/middleware-serde": "^2.0.6",
41
41
  "@smithy/middleware-stack": "^2.0.0",
42
- "@smithy/node-config-provider": "^2.0.6",
43
- "@smithy/node-http-handler": "^2.0.5",
44
- "@smithy/protocol-http": "^2.0.5",
45
- "@smithy/smithy-client": "^2.0.5",
46
- "@smithy/types": "^2.2.2",
47
- "@smithy/url-parser": "^2.0.5",
42
+ "@smithy/node-config-provider": "^2.0.9",
43
+ "@smithy/node-http-handler": "^2.1.2",
44
+ "@smithy/protocol-http": "^3.0.2",
45
+ "@smithy/smithy-client": "^2.1.3",
46
+ "@smithy/types": "^2.3.0",
47
+ "@smithy/url-parser": "^2.0.6",
48
48
  "@smithy/util-base64": "^2.0.0",
49
49
  "@smithy/util-body-length-browser": "^2.0.0",
50
50
  "@smithy/util-body-length-node": "^2.1.0",
51
- "@smithy/util-defaults-mode-browser": "^2.0.6",
52
- "@smithy/util-defaults-mode-node": "^2.0.6",
51
+ "@smithy/util-defaults-mode-browser": "^2.0.7",
52
+ "@smithy/util-defaults-mode-node": "^2.0.9",
53
53
  "@smithy/util-retry": "^2.0.0",
54
54
  "@smithy/util-utf8": "^2.0.0",
55
55
  "tslib": "^2.5.0"