@aws-sdk/client-transcribe-streaming 3.713.0 → 3.714.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.
@@ -25,6 +25,7 @@ const getRuntimeConfig = (config) => {
25
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
26
26
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
27
27
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
28
+ const profileConfig = { profile: config?.profile };
28
29
  return {
29
30
  ...clientSharedValues,
30
31
  ...config,
@@ -36,19 +37,20 @@ const getRuntimeConfig = (config) => {
36
37
  (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
38
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
38
39
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
39
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
40
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
40
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
41
+ region: config?.region ??
42
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
41
43
  requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
42
44
  retryMode: config?.retryMode ??
43
45
  (0, node_config_provider_1.loadConfig)({
44
46
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
45
47
  default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
46
- }),
48
+ }, config),
47
49
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
48
50
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
49
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
50
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
51
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
51
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
52
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
53
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
52
54
  };
53
55
  };
54
56
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -21,6 +21,7 @@ export const getRuntimeConfig = (config) => {
21
21
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
22
22
  const clientSharedValues = getSharedRuntimeConfig(config);
23
23
  awsCheckVersion(process.version);
24
+ const profileConfig = { profile: config?.profile };
24
25
  return {
25
26
  ...clientSharedValues,
26
27
  ...config,
@@ -32,18 +33,19 @@ export const getRuntimeConfig = (config) => {
32
33
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
34
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
34
35
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
35
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
36
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
37
+ region: config?.region ??
38
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
37
39
  requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
38
40
  retryMode: config?.retryMode ??
39
41
  loadNodeConfig({
40
42
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
41
43
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
42
- }),
44
+ }, config),
43
45
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
44
46
  streamCollector: config?.streamCollector ?? streamCollector,
45
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
49
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
48
50
  };
49
51
  };
@@ -101,6 +101,24 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
101
101
  * The AWS region to which this client will send requests
102
102
  */
103
103
  region?: string | __Provider<string>;
104
+ /**
105
+ * Setting a client profile is similar to setting a value for the
106
+ * AWS_PROFILE environment variable. Setting a profile on a client
107
+ * in code only affects the single client instance, unlike AWS_PROFILE.
108
+ *
109
+ * When set, and only for environments where an AWS configuration
110
+ * file exists, fields configurable by this file will be retrieved
111
+ * from the specified profile within that file.
112
+ * Conflicting code configuration and environment variables will
113
+ * still have higher priority.
114
+ *
115
+ * For client credential resolution that involves checking the AWS
116
+ * configuration file, the client's profile (this value) will be
117
+ * used unless a different profile is set in the credential
118
+ * provider options.
119
+ *
120
+ */
121
+ profile?: string;
104
122
  /**
105
123
  * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
106
124
  * @internal
@@ -28,6 +28,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
28
28
  utf8Encoder: (input: string | Uint8Array) => string;
29
29
  disableHostPrefix: boolean;
30
30
  serviceId: string;
31
+ profile?: string | undefined;
31
32
  logger: import("@smithy/types").Logger;
32
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
34
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
29
29
  utf8Encoder: (input: string | Uint8Array) => string;
30
30
  disableHostPrefix: boolean;
31
31
  serviceId: string;
32
+ profile?: string | undefined;
32
33
  logger: import("@smithy/types").Logger;
33
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
24
24
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
25
25
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
26
26
  region: string | import("@smithy/types").Provider<any>;
27
+ profile?: string | undefined;
27
28
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
28
29
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
29
30
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -103,6 +103,7 @@ export interface ClientDefaults
103
103
  useDualstackEndpoint?: boolean | __Provider<boolean>;
104
104
  useFipsEndpoint?: boolean | __Provider<boolean>;
105
105
  region?: string | __Provider<string>;
106
+ profile?: string;
106
107
  defaultUserAgentProvider?: Provider<__UserAgent>;
107
108
  credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
108
109
  maxAttempts?: number | __Provider<number>;
@@ -35,6 +35,7 @@ export declare const getRuntimeConfig: (
35
35
  utf8Encoder: (input: string | Uint8Array) => string;
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
+ profile?: string | undefined;
38
39
  logger: import("@smithy/types").Logger;
39
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
40
41
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -42,6 +42,7 @@ export declare const getRuntimeConfig: (
42
42
  utf8Encoder: (input: string | Uint8Array) => string;
43
43
  disableHostPrefix: boolean;
44
44
  serviceId: string;
45
+ profile?: string | undefined;
45
46
  logger: import("@smithy/types").Logger;
46
47
  extensions: import("./runtimeExtensions").RuntimeExtension[];
47
48
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -37,6 +37,7 @@ export declare const getRuntimeConfig: (
37
37
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
38
38
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
39
39
  region: string | import("@smithy/types").Provider<any>;
40
+ profile?: string | undefined;
40
41
  defaultUserAgentProvider: (
41
42
  config?:
42
43
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe-streaming",
3
3
  "description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
4
- "version": "3.713.0",
4
+ "version": "3.714.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-transcribe-streaming",
@@ -22,23 +22,23 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
- "@aws-sdk/client-sso-oidc": "3.713.0",
26
- "@aws-sdk/client-sts": "3.713.0",
27
- "@aws-sdk/core": "3.713.0",
28
- "@aws-sdk/credential-provider-node": "3.713.0",
29
- "@aws-sdk/eventstream-handler-node": "3.713.0",
30
- "@aws-sdk/middleware-eventstream": "3.713.0",
31
- "@aws-sdk/middleware-host-header": "3.713.0",
32
- "@aws-sdk/middleware-logger": "3.713.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.713.0",
34
- "@aws-sdk/middleware-sdk-transcribe-streaming": "3.713.0",
35
- "@aws-sdk/middleware-user-agent": "3.713.0",
36
- "@aws-sdk/middleware-websocket": "3.713.0",
37
- "@aws-sdk/region-config-resolver": "3.713.0",
38
- "@aws-sdk/types": "3.713.0",
39
- "@aws-sdk/util-endpoints": "3.713.0",
40
- "@aws-sdk/util-user-agent-browser": "3.713.0",
41
- "@aws-sdk/util-user-agent-node": "3.713.0",
25
+ "@aws-sdk/client-sso-oidc": "3.714.0",
26
+ "@aws-sdk/client-sts": "3.714.0",
27
+ "@aws-sdk/core": "3.714.0",
28
+ "@aws-sdk/credential-provider-node": "3.714.0",
29
+ "@aws-sdk/eventstream-handler-node": "3.714.0",
30
+ "@aws-sdk/middleware-eventstream": "3.714.0",
31
+ "@aws-sdk/middleware-host-header": "3.714.0",
32
+ "@aws-sdk/middleware-logger": "3.714.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.714.0",
34
+ "@aws-sdk/middleware-sdk-transcribe-streaming": "3.714.0",
35
+ "@aws-sdk/middleware-user-agent": "3.714.0",
36
+ "@aws-sdk/middleware-websocket": "3.714.0",
37
+ "@aws-sdk/region-config-resolver": "3.714.0",
38
+ "@aws-sdk/types": "3.714.0",
39
+ "@aws-sdk/util-endpoints": "3.714.0",
40
+ "@aws-sdk/util-user-agent-browser": "3.714.0",
41
+ "@aws-sdk/util-user-agent-node": "3.714.0",
42
42
  "@smithy/config-resolver": "^3.0.13",
43
43
  "@smithy/core": "^2.5.5",
44
44
  "@smithy/eventstream-serde-browser": "^3.0.14",