@aws-sdk/client-payment-cryptography-data 3.395.0 → 3.404.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.
@@ -395,6 +395,7 @@ const MacAttributesFilterSensitiveLog = (obj) => {
395
395
  exports.MacAttributesFilterSensitiveLog = MacAttributesFilterSensitiveLog;
396
396
  const GenerateMacInputFilterSensitiveLog = (obj) => ({
397
397
  ...obj,
398
+ ...(obj.MessageData && { MessageData: smithy_client_1.SENSITIVE_STRING }),
398
399
  ...(obj.GenerationAttributes && { GenerationAttributes: (0, exports.MacAttributesFilterSensitiveLog)(obj.GenerationAttributes) }),
399
400
  });
400
401
  exports.GenerateMacInputFilterSensitiveLog = GenerateMacInputFilterSensitiveLog;
@@ -455,6 +456,7 @@ const TranslatePinDataInputFilterSensitiveLog = (obj) => ({
455
456
  ...(obj.OutgoingTranslationAttributes && {
456
457
  OutgoingTranslationAttributes: (0, exports.TranslationIsoFormatsFilterSensitiveLog)(obj.OutgoingTranslationAttributes),
457
458
  }),
459
+ ...(obj.EncryptedPinBlock && { EncryptedPinBlock: smithy_client_1.SENSITIVE_STRING }),
458
460
  });
459
461
  exports.TranslatePinDataInputFilterSensitiveLog = TranslatePinDataInputFilterSensitiveLog;
460
462
  const SessionKeyAmexFilterSensitiveLog = (obj) => ({
@@ -513,6 +515,8 @@ const VerifyCardValidationDataInputFilterSensitiveLog = (obj) => ({
513
515
  exports.VerifyCardValidationDataInputFilterSensitiveLog = VerifyCardValidationDataInputFilterSensitiveLog;
514
516
  const VerifyMacInputFilterSensitiveLog = (obj) => ({
515
517
  ...obj,
518
+ ...(obj.MessageData && { MessageData: smithy_client_1.SENSITIVE_STRING }),
519
+ ...(obj.Mac && { Mac: smithy_client_1.SENSITIVE_STRING }),
516
520
  ...(obj.VerificationAttributes && {
517
521
  VerificationAttributes: (0, exports.MacAttributesFilterSensitiveLog)(obj.VerificationAttributes),
518
522
  }),
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveRuntimeExtensions = void 0;
4
- const types_1 = require("@smithy/types");
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const asPartial = (t) => t;
6
6
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const clientConfiguration = {
8
- ...asPartial((0, types_1.getDefaultClientConfiguration)(runtimeConfig)),
7
+ const extensionConfiguration = {
8
+ ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
9
9
  };
10
- extensions.forEach((extension) => extension.configureClient(clientConfiguration));
10
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
11
  return {
12
12
  ...runtimeConfig,
13
- ...(0, types_1.resolveDefaultRuntimeConfig)(clientConfiguration),
13
+ ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
14
14
  };
15
15
  };
16
16
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -375,6 +375,7 @@ export const MacAttributesFilterSensitiveLog = (obj) => {
375
375
  };
376
376
  export const GenerateMacInputFilterSensitiveLog = (obj) => ({
377
377
  ...obj,
378
+ ...(obj.MessageData && { MessageData: SENSITIVE_STRING }),
378
379
  ...(obj.GenerationAttributes && { GenerationAttributes: MacAttributesFilterSensitiveLog(obj.GenerationAttributes) }),
379
380
  });
380
381
  export const GeneratePinDataInputFilterSensitiveLog = (obj) => ({
@@ -428,6 +429,7 @@ export const TranslatePinDataInputFilterSensitiveLog = (obj) => ({
428
429
  ...(obj.OutgoingTranslationAttributes && {
429
430
  OutgoingTranslationAttributes: TranslationIsoFormatsFilterSensitiveLog(obj.OutgoingTranslationAttributes),
430
431
  }),
432
+ ...(obj.EncryptedPinBlock && { EncryptedPinBlock: SENSITIVE_STRING }),
431
433
  });
432
434
  export const SessionKeyAmexFilterSensitiveLog = (obj) => ({
433
435
  ...obj,
@@ -477,6 +479,8 @@ export const VerifyCardValidationDataInputFilterSensitiveLog = (obj) => ({
477
479
  });
478
480
  export const VerifyMacInputFilterSensitiveLog = (obj) => ({
479
481
  ...obj,
482
+ ...(obj.MessageData && { MessageData: SENSITIVE_STRING }),
483
+ ...(obj.Mac && { Mac: SENSITIVE_STRING }),
480
484
  ...(obj.VerificationAttributes && {
481
485
  VerificationAttributes: MacAttributesFilterSensitiveLog(obj.VerificationAttributes),
482
486
  }),
@@ -1,12 +1,12 @@
1
- import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types";
1
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
2
2
  const asPartial = (t) => t;
3
3
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
4
- const clientConfiguration = {
5
- ...asPartial(getDefaultClientConfiguration(runtimeConfig)),
4
+ const extensionConfiguration = {
5
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
6
6
  };
7
- extensions.forEach((extension) => extension.configureClient(clientConfiguration));
7
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
8
  return {
9
9
  ...runtimeConfig,
10
- ...resolveDefaultRuntimeConfig(clientConfiguration),
10
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
11
11
  };
12
12
  };
@@ -85,7 +85,7 @@ export interface EncryptDataCommandOutput extends EncryptDataOutput, __MetadataB
85
85
  * const response = await client.send(command);
86
86
  * // { // EncryptDataOutput
87
87
  * // KeyArn: "STRING_VALUE", // required
88
- * // KeyCheckValue: "STRING_VALUE", // required
88
+ * // KeyCheckValue: "STRING_VALUE",
89
89
  * // CipherText: "STRING_VALUE", // required
90
90
  * // };
91
91
  *
@@ -0,0 +1,6 @@
1
+ import { DefaultExtensionConfiguration } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export interface PaymentCryptographyDataExtensionConfiguration extends DefaultExtensionConfiguration {
6
+ }
@@ -898,7 +898,7 @@ export interface EncryptDataOutput {
898
898
  * @public
899
899
  * <p>The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.</p>
900
900
  */
901
- KeyCheckValue: string | undefined;
901
+ KeyCheckValue?: string;
902
902
  /**
903
903
  * @public
904
904
  * <p>The encrypted ciphertext.</p>
@@ -1,9 +1,9 @@
1
- import { PaymentCryptographyDataClientConfiguration } from "./clientConfiguration";
1
+ import { PaymentCryptographyDataExtensionConfiguration } from "./extensionConfiguration";
2
2
  /**
3
3
  * @public
4
4
  */
5
5
  export interface RuntimeExtension {
6
- configureClient(clientConfiguration: PaymentCryptographyDataClientConfiguration): void;
6
+ configure(clientConfiguration: PaymentCryptographyDataExtensionConfiguration): void;
7
7
  }
8
8
  /**
9
9
  * @public
@@ -0,0 +1,3 @@
1
+ import { DefaultExtensionConfiguration } from "@smithy/types";
2
+ export interface PaymentCryptographyDataExtensionConfiguration
3
+ extends DefaultExtensionConfiguration {}
@@ -464,7 +464,7 @@ export interface EncryptDataInput {
464
464
  }
465
465
  export interface EncryptDataOutput {
466
466
  KeyArn: string | undefined;
467
- KeyCheckValue: string | undefined;
467
+ KeyCheckValue?: string;
468
468
  CipherText: string | undefined;
469
469
  }
470
470
  export interface GenerateCardValidationDataInput {
@@ -1,7 +1,7 @@
1
- import { PaymentCryptographyDataClientConfiguration } from "./clientConfiguration";
1
+ import { PaymentCryptographyDataExtensionConfiguration } from "./extensionConfiguration";
2
2
  export interface RuntimeExtension {
3
- configureClient(
4
- clientConfiguration: PaymentCryptographyDataClientConfiguration
3
+ configure(
4
+ clientConfiguration: PaymentCryptographyDataExtensionConfiguration
5
5
  ): void;
6
6
  }
7
7
  export interface RuntimeExtensionsConfig {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-payment-cryptography-data",
3
3
  "description": "AWS SDK for JavaScript Payment Cryptography Data Client for Node.js, Browser and React Native",
4
- "version": "3.395.0",
4
+ "version": "3.404.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,37 +21,37 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.395.0",
25
- "@aws-sdk/credential-provider-node": "3.395.0",
26
- "@aws-sdk/middleware-host-header": "3.391.0",
27
- "@aws-sdk/middleware-logger": "3.391.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.391.0",
29
- "@aws-sdk/middleware-signing": "3.391.0",
30
- "@aws-sdk/middleware-user-agent": "3.391.0",
31
- "@aws-sdk/types": "3.391.0",
32
- "@aws-sdk/util-endpoints": "3.391.0",
33
- "@aws-sdk/util-user-agent-browser": "3.391.0",
34
- "@aws-sdk/util-user-agent-node": "3.391.0",
35
- "@smithy/config-resolver": "^2.0.3",
36
- "@smithy/fetch-http-handler": "^2.0.3",
37
- "@smithy/hash-node": "^2.0.3",
38
- "@smithy/invalid-dependency": "^2.0.3",
39
- "@smithy/middleware-content-length": "^2.0.3",
40
- "@smithy/middleware-endpoint": "^2.0.3",
41
- "@smithy/middleware-retry": "^2.0.3",
42
- "@smithy/middleware-serde": "^2.0.3",
24
+ "@aws-sdk/client-sts": "3.398.0",
25
+ "@aws-sdk/credential-provider-node": "3.398.0",
26
+ "@aws-sdk/middleware-host-header": "3.398.0",
27
+ "@aws-sdk/middleware-logger": "3.398.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.398.0",
29
+ "@aws-sdk/middleware-signing": "3.398.0",
30
+ "@aws-sdk/middleware-user-agent": "3.398.0",
31
+ "@aws-sdk/types": "3.398.0",
32
+ "@aws-sdk/util-endpoints": "3.398.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.398.0",
34
+ "@aws-sdk/util-user-agent-node": "3.398.0",
35
+ "@smithy/config-resolver": "^2.0.5",
36
+ "@smithy/fetch-http-handler": "^2.0.5",
37
+ "@smithy/hash-node": "^2.0.5",
38
+ "@smithy/invalid-dependency": "^2.0.5",
39
+ "@smithy/middleware-content-length": "^2.0.5",
40
+ "@smithy/middleware-endpoint": "^2.0.5",
41
+ "@smithy/middleware-retry": "^2.0.5",
42
+ "@smithy/middleware-serde": "^2.0.5",
43
43
  "@smithy/middleware-stack": "^2.0.0",
44
- "@smithy/node-config-provider": "^2.0.3",
45
- "@smithy/node-http-handler": "^2.0.3",
46
- "@smithy/protocol-http": "^2.0.3",
47
- "@smithy/smithy-client": "^2.0.3",
48
- "@smithy/types": "^2.2.0",
49
- "@smithy/url-parser": "^2.0.3",
44
+ "@smithy/node-config-provider": "^2.0.5",
45
+ "@smithy/node-http-handler": "^2.0.5",
46
+ "@smithy/protocol-http": "^2.0.5",
47
+ "@smithy/smithy-client": "^2.0.5",
48
+ "@smithy/types": "^2.2.2",
49
+ "@smithy/url-parser": "^2.0.5",
50
50
  "@smithy/util-base64": "^2.0.0",
51
51
  "@smithy/util-body-length-browser": "^2.0.0",
52
- "@smithy/util-body-length-node": "^2.0.0",
53
- "@smithy/util-defaults-mode-browser": "^2.0.3",
54
- "@smithy/util-defaults-mode-node": "^2.0.3",
52
+ "@smithy/util-body-length-node": "^2.1.0",
53
+ "@smithy/util-defaults-mode-browser": "^2.0.5",
54
+ "@smithy/util-defaults-mode-node": "^2.0.5",
55
55
  "@smithy/util-retry": "^2.0.0",
56
56
  "@smithy/util-utf8": "^2.0.0",
57
57
  "tslib": "^2.5.0"
@@ -1,6 +0,0 @@
1
- import { DefaultClientConfiguration } from "@smithy/types";
2
- /**
3
- * @internal
4
- */
5
- export interface PaymentCryptographyDataClientConfiguration extends DefaultClientConfiguration {
6
- }
@@ -1,3 +0,0 @@
1
- import { DefaultClientConfiguration } from "@smithy/types";
2
- export interface PaymentCryptographyDataClientConfiguration
3
- extends DefaultClientConfiguration {}