@aws-sdk/client-codecatalyst 3.787.0 → 3.797.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.
@@ -35,6 +35,7 @@ exports.defaultCodeCatalystHttpAuthSchemeProvider = defaultCodeCatalystHttpAuthS
35
35
  const resolveHttpAuthSchemeConfig = (config) => {
36
36
  const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
37
37
  return Object.assign(config, {
38
+ authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
38
39
  token,
39
40
  });
40
41
  };
@@ -1,5 +1,5 @@
1
1
  import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
2
- import { getSmithyContext } from "@smithy/util-middleware";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultCodeCatalystHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
@@ -30,6 +30,7 @@ export const defaultCodeCatalystHttpAuthSchemeProvider = (authParameters) => {
30
30
  export const resolveHttpAuthSchemeConfig = (config) => {
31
31
  const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
32
32
  return Object.assign(config, {
33
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
33
34
  token,
34
35
  });
35
36
  };
@@ -1,4 +1,4 @@
1
- import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
1
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
2
2
  import { CodeCatalystClientResolvedConfig } from "../CodeCatalystClient";
3
3
  /**
4
4
  * @internal
@@ -27,6 +27,13 @@ export declare const defaultCodeCatalystHttpAuthSchemeProvider: CodeCatalystHttp
27
27
  * @internal
28
28
  */
29
29
  export interface HttpAuthSchemeInputConfig {
30
+ /**
31
+ * A comma-separated list of case-sensitive auth scheme names.
32
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
33
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
34
+ * @public
35
+ */
36
+ authSchemePreference?: string[] | Provider<string[]>;
30
37
  /**
31
38
  * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
32
39
  * @internal
@@ -46,6 +53,13 @@ export interface HttpAuthSchemeInputConfig {
46
53
  * @internal
47
54
  */
48
55
  export interface HttpAuthSchemeResolvedConfig {
56
+ /**
57
+ * A comma-separated list of case-sensitive auth scheme names.
58
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
59
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
60
+ * @public
61
+ */
62
+ readonly authSchemePreference: Provider<string[]>;
49
63
  /**
50
64
  * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
51
65
  * @internal
@@ -37,6 +37,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
37
37
  }) => import("@smithy/types").EndpointV2;
38
38
  tls?: boolean | undefined;
39
39
  serviceConfiguredEndpoint?: undefined;
40
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
40
41
  httpAuthSchemes: {
41
42
  schemeId: string;
42
43
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
@@ -44,6 +44,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
44
44
  }) => import("@smithy/types").EndpointV2;
45
45
  tls?: boolean | undefined;
46
46
  serviceConfiguredEndpoint?: undefined;
47
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
47
48
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CodeCatalystHttpAuthSchemeProvider;
48
49
  token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider | undefined;
49
50
  };
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
36
36
  }) => import("@smithy/types").EndpointV2;
37
37
  tls?: boolean | undefined;
38
38
  serviceConfiguredEndpoint?: undefined;
39
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
39
40
  httpAuthSchemes: {
40
41
  schemeId: string;
41
42
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
@@ -4,6 +4,7 @@ import {
4
4
  HttpAuthSchemeParameters,
5
5
  HttpAuthSchemeParametersProvider,
6
6
  HttpAuthSchemeProvider,
7
+ Provider,
7
8
  TokenIdentity,
8
9
  TokenIdentityProvider,
9
10
  } from "@smithy/types";
@@ -26,11 +27,13 @@ export interface CodeCatalystHttpAuthSchemeProvider
26
27
  extends HttpAuthSchemeProvider<CodeCatalystHttpAuthSchemeParameters> {}
27
28
  export declare const defaultCodeCatalystHttpAuthSchemeProvider: CodeCatalystHttpAuthSchemeProvider;
28
29
  export interface HttpAuthSchemeInputConfig {
30
+ authSchemePreference?: string[] | Provider<string[]>;
29
31
  httpAuthSchemes?: HttpAuthScheme[];
30
32
  httpAuthSchemeProvider?: CodeCatalystHttpAuthSchemeProvider;
31
33
  token?: TokenIdentity | TokenIdentityProvider;
32
34
  }
33
35
  export interface HttpAuthSchemeResolvedConfig {
36
+ readonly authSchemePreference: Provider<string[]>;
34
37
  readonly httpAuthSchemes: HttpAuthScheme[];
35
38
  readonly httpAuthSchemeProvider: CodeCatalystHttpAuthSchemeProvider;
36
39
  readonly token?: TokenIdentityProvider;
@@ -67,6 +67,10 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
67
67
  ) => import("@smithy/types").EndpointV2;
68
68
  tls?: boolean | undefined;
69
69
  serviceConfiguredEndpoint?: undefined;
70
+ authSchemePreference?:
71
+ | string[]
72
+ | import("@smithy/types").Provider<string[]>
73
+ | undefined;
70
74
  httpAuthSchemes: {
71
75
  schemeId: string;
72
76
  identityProvider: (
@@ -77,6 +77,10 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
77
77
  ) => import("@smithy/types").EndpointV2;
78
78
  tls?: boolean | undefined;
79
79
  serviceConfiguredEndpoint?: undefined;
80
+ authSchemePreference?:
81
+ | string[]
82
+ | import("@smithy/types").Provider<string[]>
83
+ | undefined;
80
84
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CodeCatalystHttpAuthSchemeProvider;
81
85
  token?:
82
86
  | import("@smithy/types").TokenIdentity
@@ -71,6 +71,10 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
71
71
  ) => import("@smithy/types").EndpointV2;
72
72
  tls?: boolean | undefined;
73
73
  serviceConfiguredEndpoint?: undefined;
74
+ authSchemePreference?:
75
+ | string[]
76
+ | import("@smithy/types").Provider<string[]>
77
+ | undefined;
74
78
  httpAuthSchemes: {
75
79
  schemeId: string;
76
80
  identityProvider: (
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.787.0",
4
+ "version": "3.797.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codecatalyst",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.775.0",
23
+ "@aws-sdk/core": "3.796.0",
24
24
  "@aws-sdk/middleware-host-header": "3.775.0",
25
25
  "@aws-sdk/middleware-logger": "3.775.0",
26
26
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
27
- "@aws-sdk/middleware-user-agent": "3.787.0",
27
+ "@aws-sdk/middleware-user-agent": "3.796.0",
28
28
  "@aws-sdk/region-config-resolver": "3.775.0",
29
- "@aws-sdk/token-providers": "3.787.0",
29
+ "@aws-sdk/token-providers": "3.797.0",
30
30
  "@aws-sdk/types": "3.775.0",
31
31
  "@aws-sdk/util-endpoints": "3.787.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.775.0",
33
- "@aws-sdk/util-user-agent-node": "3.787.0",
33
+ "@aws-sdk/util-user-agent-node": "3.796.0",
34
34
  "@smithy/config-resolver": "^4.1.0",
35
35
  "@smithy/core": "^3.2.0",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",