@aws-sdk/client-sesv2 3.721.0 → 3.723.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.
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class SESv2Client extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -15,38 +15,38 @@ export const ReviewStatus = {
15
15
  PENDING: "PENDING",
16
16
  };
17
17
  export class AccountSuspendedException extends __BaseException {
18
+ name = "AccountSuspendedException";
19
+ $fault = "client";
18
20
  constructor(opts) {
19
21
  super({
20
22
  name: "AccountSuspendedException",
21
23
  $fault: "client",
22
24
  ...opts,
23
25
  });
24
- this.name = "AccountSuspendedException";
25
- this.$fault = "client";
26
26
  Object.setPrototypeOf(this, AccountSuspendedException.prototype);
27
27
  }
28
28
  }
29
29
  export class AlreadyExistsException extends __BaseException {
30
+ name = "AlreadyExistsException";
31
+ $fault = "client";
30
32
  constructor(opts) {
31
33
  super({
32
34
  name: "AlreadyExistsException",
33
35
  $fault: "client",
34
36
  ...opts,
35
37
  });
36
- this.name = "AlreadyExistsException";
37
- this.$fault = "client";
38
38
  Object.setPrototypeOf(this, AlreadyExistsException.prototype);
39
39
  }
40
40
  }
41
41
  export class BadRequestException extends __BaseException {
42
+ name = "BadRequestException";
43
+ $fault = "client";
42
44
  constructor(opts) {
43
45
  super({
44
46
  name: "BadRequestException",
45
47
  $fault: "client",
46
48
  ...opts,
47
49
  });
48
- this.name = "BadRequestException";
49
- this.$fault = "client";
50
50
  Object.setPrototypeOf(this, BadRequestException.prototype);
51
51
  }
52
52
  }
@@ -75,38 +75,38 @@ export const QueryErrorCode = {
75
75
  INTERNAL_FAILURE: "INTERNAL_FAILURE",
76
76
  };
77
77
  export class InternalServiceErrorException extends __BaseException {
78
+ name = "InternalServiceErrorException";
79
+ $fault = "server";
78
80
  constructor(opts) {
79
81
  super({
80
82
  name: "InternalServiceErrorException",
81
83
  $fault: "server",
82
84
  ...opts,
83
85
  });
84
- this.name = "InternalServiceErrorException";
85
- this.$fault = "server";
86
86
  Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
87
87
  }
88
88
  }
89
89
  export class NotFoundException extends __BaseException {
90
+ name = "NotFoundException";
91
+ $fault = "client";
90
92
  constructor(opts) {
91
93
  super({
92
94
  name: "NotFoundException",
93
95
  $fault: "client",
94
96
  ...opts,
95
97
  });
96
- this.name = "NotFoundException";
97
- this.$fault = "client";
98
98
  Object.setPrototypeOf(this, NotFoundException.prototype);
99
99
  }
100
100
  }
101
101
  export class TooManyRequestsException extends __BaseException {
102
+ name = "TooManyRequestsException";
103
+ $fault = "client";
102
104
  constructor(opts) {
103
105
  super({
104
106
  name: "TooManyRequestsException",
105
107
  $fault: "client",
106
108
  ...opts,
107
109
  });
108
- this.name = "TooManyRequestsException";
109
- this.$fault = "client";
110
110
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
111
111
  }
112
112
  }
@@ -141,26 +141,26 @@ export const DimensionValueSource = {
141
141
  MESSAGE_TAG: "MESSAGE_TAG",
142
142
  };
143
143
  export class ConcurrentModificationException extends __BaseException {
144
+ name = "ConcurrentModificationException";
145
+ $fault = "server";
144
146
  constructor(opts) {
145
147
  super({
146
148
  name: "ConcurrentModificationException",
147
149
  $fault: "server",
148
150
  ...opts,
149
151
  });
150
- this.name = "ConcurrentModificationException";
151
- this.$fault = "server";
152
152
  Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
153
153
  }
154
154
  }
155
155
  export class ConflictException extends __BaseException {
156
+ name = "ConflictException";
157
+ $fault = "client";
156
158
  constructor(opts) {
157
159
  super({
158
160
  name: "ConflictException",
159
161
  $fault: "client",
160
162
  ...opts,
161
163
  });
162
- this.name = "ConflictException";
163
- this.$fault = "client";
164
164
  Object.setPrototypeOf(this, ConflictException.prototype);
165
165
  }
166
166
  }
@@ -190,14 +190,14 @@ export const FeatureStatus = {
190
190
  ENABLED: "ENABLED",
191
191
  };
192
192
  export class LimitExceededException extends __BaseException {
193
+ name = "LimitExceededException";
194
+ $fault = "client";
193
195
  constructor(opts) {
194
196
  super({
195
197
  name: "LimitExceededException",
196
198
  $fault: "client",
197
199
  ...opts,
198
200
  });
199
- this.name = "LimitExceededException";
200
- this.$fault = "client";
201
201
  Object.setPrototypeOf(this, LimitExceededException.prototype);
202
202
  }
203
203
  }
@@ -222,38 +222,38 @@ export const DeliverabilityTestStatus = {
222
222
  IN_PROGRESS: "IN_PROGRESS",
223
223
  };
224
224
  export class MailFromDomainNotVerifiedException extends __BaseException {
225
+ name = "MailFromDomainNotVerifiedException";
226
+ $fault = "client";
225
227
  constructor(opts) {
226
228
  super({
227
229
  name: "MailFromDomainNotVerifiedException",
228
230
  $fault: "client",
229
231
  ...opts,
230
232
  });
231
- this.name = "MailFromDomainNotVerifiedException";
232
- this.$fault = "client";
233
233
  Object.setPrototypeOf(this, MailFromDomainNotVerifiedException.prototype);
234
234
  }
235
235
  }
236
236
  export class MessageRejected extends __BaseException {
237
+ name = "MessageRejected";
238
+ $fault = "client";
237
239
  constructor(opts) {
238
240
  super({
239
241
  name: "MessageRejected",
240
242
  $fault: "client",
241
243
  ...opts,
242
244
  });
243
- this.name = "MessageRejected";
244
- this.$fault = "client";
245
245
  Object.setPrototypeOf(this, MessageRejected.prototype);
246
246
  }
247
247
  }
248
248
  export class SendingPausedException extends __BaseException {
249
+ name = "SendingPausedException";
250
+ $fault = "client";
249
251
  constructor(opts) {
250
252
  super({
251
253
  name: "SendingPausedException",
252
254
  $fault: "client",
253
255
  ...opts,
254
256
  });
255
- this.name = "SendingPausedException";
256
- this.$fault = "client";
257
257
  Object.setPrototypeOf(this, SendingPausedException.prototype);
258
258
  }
259
259
  }
@@ -379,14 +379,14 @@ export const ImportDestinationType = {
379
379
  SUPPRESSION_LIST: "SUPPRESSION_LIST",
380
380
  };
381
381
  export class InvalidNextTokenException extends __BaseException {
382
+ name = "InvalidNextTokenException";
383
+ $fault = "client";
382
384
  constructor(opts) {
383
385
  super({
384
386
  name: "InvalidNextTokenException",
385
387
  $fault: "client",
386
388
  ...opts,
387
389
  });
388
- this.name = "InvalidNextTokenException";
389
- this.$fault = "client";
390
390
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
391
391
  }
392
392
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
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
+ 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
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sesv2",
3
3
  "description": "AWS SDK for JavaScript Sesv2 Client for Node.js, Browser and React Native",
4
- "version": "3.721.0",
4
+ "version": "3.723.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-sesv2",
@@ -20,57 +20,57 @@
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.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/signature-v4-multi-region": "3.716.0",
33
- "@aws-sdk/types": "3.714.0",
34
- "@aws-sdk/util-endpoints": "3.714.0",
35
- "@aws-sdk/util-user-agent-browser": "3.714.0",
36
- "@aws-sdk/util-user-agent-node": "3.721.0",
37
- "@smithy/config-resolver": "^3.0.13",
38
- "@smithy/core": "^2.5.5",
39
- "@smithy/fetch-http-handler": "^4.1.2",
40
- "@smithy/hash-node": "^3.0.11",
41
- "@smithy/invalid-dependency": "^3.0.11",
42
- "@smithy/middleware-content-length": "^3.0.13",
43
- "@smithy/middleware-endpoint": "^3.2.6",
44
- "@smithy/middleware-retry": "^3.0.31",
45
- "@smithy/middleware-serde": "^3.0.11",
46
- "@smithy/middleware-stack": "^3.0.11",
47
- "@smithy/node-config-provider": "^3.1.12",
48
- "@smithy/node-http-handler": "^3.3.2",
49
- "@smithy/protocol-http": "^4.1.8",
50
- "@smithy/smithy-client": "^3.5.1",
51
- "@smithy/types": "^3.7.2",
52
- "@smithy/url-parser": "^3.0.11",
53
- "@smithy/util-base64": "^3.0.0",
54
- "@smithy/util-body-length-browser": "^3.0.0",
55
- "@smithy/util-body-length-node": "^3.0.0",
56
- "@smithy/util-defaults-mode-browser": "^3.0.31",
57
- "@smithy/util-defaults-mode-node": "^3.0.31",
58
- "@smithy/util-endpoints": "^2.1.7",
59
- "@smithy/util-middleware": "^3.0.11",
60
- "@smithy/util-retry": "^3.0.11",
61
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/signature-v4-multi-region": "3.723.0",
33
+ "@aws-sdk/types": "3.723.0",
34
+ "@aws-sdk/util-endpoints": "3.723.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
36
+ "@aws-sdk/util-user-agent-node": "3.723.0",
37
+ "@smithy/config-resolver": "^4.0.0",
38
+ "@smithy/core": "^3.0.0",
39
+ "@smithy/fetch-http-handler": "^5.0.0",
40
+ "@smithy/hash-node": "^4.0.0",
41
+ "@smithy/invalid-dependency": "^4.0.0",
42
+ "@smithy/middleware-content-length": "^4.0.0",
43
+ "@smithy/middleware-endpoint": "^4.0.0",
44
+ "@smithy/middleware-retry": "^4.0.0",
45
+ "@smithy/middleware-serde": "^4.0.0",
46
+ "@smithy/middleware-stack": "^4.0.0",
47
+ "@smithy/node-config-provider": "^4.0.0",
48
+ "@smithy/node-http-handler": "^4.0.0",
49
+ "@smithy/protocol-http": "^5.0.0",
50
+ "@smithy/smithy-client": "^4.0.0",
51
+ "@smithy/types": "^4.0.0",
52
+ "@smithy/url-parser": "^4.0.0",
53
+ "@smithy/util-base64": "^4.0.0",
54
+ "@smithy/util-body-length-browser": "^4.0.0",
55
+ "@smithy/util-body-length-node": "^4.0.0",
56
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
57
+ "@smithy/util-defaults-mode-node": "^4.0.0",
58
+ "@smithy/util-endpoints": "^3.0.0",
59
+ "@smithy/util-middleware": "^4.0.0",
60
+ "@smithy/util-retry": "^4.0.0",
61
+ "@smithy/util-utf8": "^4.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {
65
- "@tsconfig/node16": "16.1.3",
66
- "@types/node": "^16.18.96",
65
+ "@tsconfig/node18": "18.2.4",
66
+ "@types/node": "^18.19.69",
67
67
  "concurrently": "7.0.0",
68
68
  "downlevel-dts": "0.10.1",
69
69
  "rimraf": "3.0.2",
70
- "typescript": "~4.9.5"
70
+ "typescript": "~5.2.2"
71
71
  },
72
72
  "engines": {
73
- "node": ">=16.0.0"
73
+ "node": ">=18.0.0"
74
74
  },
75
75
  "typesVersions": {
76
76
  "<4.0": {