@aws-sdk/client-sqs 3.658.1 → 3.664.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.
@@ -45,6 +45,7 @@ const getRuntimeConfig = (config) => {
45
45
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
46
46
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
47
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
48
49
  };
49
50
  };
50
51
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
4
+ import { NODE_APP_ID_CONFIG_OPTIONS, defaultUserAgent } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -41,5 +41,6 @@ export const getRuntimeConfig = (config) => {
41
41
  streamCollector: config?.streamCollector ?? streamCollector,
42
42
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
43
43
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
44
45
  };
45
46
  };
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  md5: false | import("@smithy/types").HashConstructor;
14
14
  region: string | import("@smithy/types").Provider<any>;
@@ -30,6 +30,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
33
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
34
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
35
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
36
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
9
9
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
11
  credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
12
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
13
13
  maxAttempts: number | import("@smithy/types").Provider<number>;
14
14
  md5: false | __HashConstructor;
15
15
  region: string | import("@smithy/types").Provider<string>;
@@ -19,6 +19,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
19
19
  streamCollector: import("@smithy/types").StreamCollector;
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
22
23
  apiVersion: string;
23
24
  cacheMiddleware?: boolean | undefined;
24
25
  urlParser: import("@smithy/types").UrlParser;
@@ -20,7 +20,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
23
+ defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
24
24
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
25
  md5: false | import("@smithy/types").HashConstructor;
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
30
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
32
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
33
34
  endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -9,9 +9,9 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
9
9
  credentialDefaultProvider: (
10
10
  input: any
11
11
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
- defaultUserAgentProvider: import("@smithy/types").Provider<
13
- import("@smithy/types").UserAgent
14
- >;
12
+ defaultUserAgentProvider: (
13
+ config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
14
+ ) => Promise<import("@smithy/types").UserAgent>;
15
15
  maxAttempts: number | import("@smithy/types").Provider<number>;
16
16
  md5: false | import("@smithy/types").HashConstructor;
17
17
  region: string | import("@smithy/types").Provider<any>;
@@ -35,6 +35,10 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
35
35
  logger: import("@smithy/types").Logger;
36
36
  extensions: import("./runtimeExtensions").RuntimeExtension[];
37
37
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
38
+ userAgentAppId?:
39
+ | string
40
+ | import("@smithy/types").Provider<string | undefined>
41
+ | undefined;
38
42
  retryStrategy?:
39
43
  | import("@smithy/types").RetryStrategy
40
44
  | import("@smithy/types").RetryStrategyV2
@@ -14,9 +14,11 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
14
14
  ) => import("@smithy/types").MemoizedProvider<
15
15
  import("@smithy/types").AwsCredentialIdentity
16
16
  >;
17
- defaultUserAgentProvider: import("@smithy/types").Provider<
18
- import("@smithy/types").UserAgent
19
- >;
17
+ defaultUserAgentProvider: (
18
+ config?:
19
+ | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
20
+ | undefined
21
+ ) => Promise<import("@smithy/types").UserAgent>;
20
22
  maxAttempts: number | import("@smithy/types").Provider<number>;
21
23
  md5: false | __HashConstructor;
22
24
  region: string | import("@smithy/types").Provider<string>;
@@ -28,6 +30,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
28
30
  streamCollector: import("@smithy/types").StreamCollector;
29
31
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
32
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
33
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
31
34
  apiVersion: string;
32
35
  cacheMiddleware?: boolean | undefined;
33
36
  urlParser: import("@smithy/types").UrlParser;
@@ -22,9 +22,9 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
- defaultUserAgentProvider: import("@smithy/types").Provider<
26
- import("@smithy/types").UserAgent
27
- >;
25
+ defaultUserAgentProvider: (
26
+ config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
27
+ ) => Promise<import("@smithy/types").UserAgent>;
28
28
  credentialDefaultProvider: (
29
29
  input: any
30
30
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
39
39
  import("@smithy/smithy-client").DefaultsMode
40
40
  >;
41
41
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
42
+ userAgentAppId?:
43
+ | string
44
+ | import("@smithy/types").Provider<string | undefined>
45
+ | undefined;
42
46
  retryStrategy?:
43
47
  | import("@smithy/types").RetryStrategy
44
48
  | import("@smithy/types").RetryStrategyV2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sqs",
3
3
  "description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
4
- "version": "3.658.1",
4
+ "version": "3.664.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-sqs",
@@ -20,45 +20,45 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.1",
24
- "@aws-sdk/client-sts": "3.658.1",
25
- "@aws-sdk/core": "3.658.1",
26
- "@aws-sdk/credential-provider-node": "3.658.1",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-sdk-sqs": "3.658.1",
31
- "@aws-sdk/middleware-user-agent": "3.654.0",
32
- "@aws-sdk/region-config-resolver": "3.654.0",
33
- "@aws-sdk/types": "3.654.0",
34
- "@aws-sdk/util-endpoints": "3.654.0",
35
- "@aws-sdk/util-user-agent-browser": "3.654.0",
36
- "@aws-sdk/util-user-agent-node": "3.654.0",
37
- "@smithy/config-resolver": "^3.0.8",
38
- "@smithy/core": "^2.4.6",
39
- "@smithy/fetch-http-handler": "^3.2.8",
40
- "@smithy/hash-node": "^3.0.6",
41
- "@smithy/invalid-dependency": "^3.0.6",
42
- "@smithy/md5-js": "^3.0.6",
43
- "@smithy/middleware-content-length": "^3.0.8",
44
- "@smithy/middleware-endpoint": "^3.1.3",
45
- "@smithy/middleware-retry": "^3.0.21",
46
- "@smithy/middleware-serde": "^3.0.6",
47
- "@smithy/middleware-stack": "^3.0.6",
48
- "@smithy/node-config-provider": "^3.1.7",
49
- "@smithy/node-http-handler": "^3.2.3",
50
- "@smithy/protocol-http": "^4.1.3",
51
- "@smithy/smithy-client": "^3.3.5",
52
- "@smithy/types": "^3.4.2",
53
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.664.0",
24
+ "@aws-sdk/client-sts": "3.664.0",
25
+ "@aws-sdk/core": "3.664.0",
26
+ "@aws-sdk/credential-provider-node": "3.664.0",
27
+ "@aws-sdk/middleware-host-header": "3.664.0",
28
+ "@aws-sdk/middleware-logger": "3.664.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.664.0",
30
+ "@aws-sdk/middleware-sdk-sqs": "3.664.0",
31
+ "@aws-sdk/middleware-user-agent": "3.664.0",
32
+ "@aws-sdk/region-config-resolver": "3.664.0",
33
+ "@aws-sdk/types": "3.664.0",
34
+ "@aws-sdk/util-endpoints": "3.664.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.664.0",
36
+ "@aws-sdk/util-user-agent-node": "3.664.0",
37
+ "@smithy/config-resolver": "^3.0.9",
38
+ "@smithy/core": "^2.4.7",
39
+ "@smithy/fetch-http-handler": "^3.2.9",
40
+ "@smithy/hash-node": "^3.0.7",
41
+ "@smithy/invalid-dependency": "^3.0.7",
42
+ "@smithy/md5-js": "^3.0.7",
43
+ "@smithy/middleware-content-length": "^3.0.9",
44
+ "@smithy/middleware-endpoint": "^3.1.4",
45
+ "@smithy/middleware-retry": "^3.0.22",
46
+ "@smithy/middleware-serde": "^3.0.7",
47
+ "@smithy/middleware-stack": "^3.0.7",
48
+ "@smithy/node-config-provider": "^3.1.8",
49
+ "@smithy/node-http-handler": "^3.2.4",
50
+ "@smithy/protocol-http": "^4.1.4",
51
+ "@smithy/smithy-client": "^3.3.6",
52
+ "@smithy/types": "^3.5.0",
53
+ "@smithy/url-parser": "^3.0.7",
54
54
  "@smithy/util-base64": "^3.0.0",
55
55
  "@smithy/util-body-length-browser": "^3.0.0",
56
56
  "@smithy/util-body-length-node": "^3.0.0",
57
- "@smithy/util-defaults-mode-browser": "^3.0.21",
58
- "@smithy/util-defaults-mode-node": "^3.0.21",
59
- "@smithy/util-endpoints": "^2.1.2",
60
- "@smithy/util-middleware": "^3.0.6",
61
- "@smithy/util-retry": "^3.0.6",
57
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
58
+ "@smithy/util-defaults-mode-node": "^3.0.22",
59
+ "@smithy/util-endpoints": "^2.1.3",
60
+ "@smithy/util-middleware": "^3.0.7",
61
+ "@smithy/util-retry": "^3.0.7",
62
62
  "@smithy/util-utf8": "^3.0.0",
63
63
  "tslib": "^2.6.2"
64
64
  },