@aws-sdk/client-payment-cryptography-data 3.1076.0 → 3.1078.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.
- package/dist-cjs/index.js +26 -155
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/DecryptDataCommand.js +2 -14
- package/dist-es/commands/EncryptDataCommand.js +2 -14
- package/dist-es/commands/GenerateAs2805KekValidationCommand.js +2 -14
- package/dist-es/commands/GenerateAuthRequestCryptogramCommand.js +2 -14
- package/dist-es/commands/GenerateCardValidationDataCommand.js +2 -14
- package/dist-es/commands/GenerateMacCommand.js +2 -14
- package/dist-es/commands/GenerateMacEmvPinChangeCommand.js +2 -14
- package/dist-es/commands/GeneratePinDataCommand.js +2 -14
- package/dist-es/commands/ReEncryptDataCommand.js +2 -14
- package/dist-es/commands/TranslateKeyMaterialCommand.js +2 -14
- package/dist-es/commands/TranslatePinDataCommand.js +2 -14
- package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +2 -14
- package/dist-es/commands/VerifyCardValidationDataCommand.js +2 -14
- package/dist-es/commands/VerifyMacCommand.js +2 -14
- package/dist-es/commands/VerifyPinDataCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/DecryptDataCommand.d.ts +3 -8
- package/dist-types/commands/EncryptDataCommand.d.ts +3 -8
- package/dist-types/commands/GenerateAs2805KekValidationCommand.d.ts +3 -8
- package/dist-types/commands/GenerateAuthRequestCryptogramCommand.d.ts +3 -8
- package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +3 -8
- package/dist-types/commands/GenerateMacCommand.d.ts +3 -8
- package/dist-types/commands/GenerateMacEmvPinChangeCommand.d.ts +3 -8
- package/dist-types/commands/GeneratePinDataCommand.d.ts +3 -8
- package/dist-types/commands/ReEncryptDataCommand.d.ts +3 -8
- package/dist-types/commands/TranslateKeyMaterialCommand.d.ts +3 -8
- package/dist-types/commands/TranslatePinDataCommand.d.ts +3 -8
- package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +3 -8
- package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +3 -8
- package/dist-types/commands/VerifyMacCommand.d.ts +3 -8
- package/dist-types/commands/VerifyPinDataCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/DecryptDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/EncryptDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateAs2805KekValidationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateAuthRequestCryptogramCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateCardValidationDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GenerateMacEmvPinChangeCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GeneratePinDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ReEncryptDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/TranslateKeyMaterialCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/TranslatePinDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/VerifyAuthRequestCryptogramCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/VerifyCardValidationDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/VerifyPinDataCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
13
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
16
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
18
|
|
|
17
19
|
const defaultPaymentCryptographyDataHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
20
|
return {
|
|
@@ -67,7 +69,7 @@ const commonParams = {
|
|
|
67
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
68
70
|
};
|
|
69
71
|
|
|
70
|
-
var version = "3.
|
|
72
|
+
var version = "3.1077.0";
|
|
71
73
|
var packageInfo = {
|
|
72
74
|
version: version};
|
|
73
75
|
|
|
@@ -1159,6 +1161,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
1159
1161
|
serviceTarget: "PaymentCryptographyDataPlane",
|
|
1160
1162
|
},
|
|
1161
1163
|
serviceId: config?.serviceId ?? "Payment Cryptography Data",
|
|
1164
|
+
sha256: config?.sha256 ?? Sha256,
|
|
1162
1165
|
urlParser: config?.urlParser ?? parseUrl,
|
|
1163
1166
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
1164
1167
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -1192,7 +1195,6 @@ const getRuntimeConfig = (config) => {
|
|
|
1192
1195
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
1193
1196
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
1194
1197
|
}, config),
|
|
1195
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
1196
1198
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
1197
1199
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
1198
1200
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1280,184 +1282,53 @@ class PaymentCryptographyDataClient extends Client {
|
|
|
1280
1282
|
}
|
|
1281
1283
|
}
|
|
1282
1284
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
})
|
|
1289
|
-
.s("PaymentCryptographyDataPlane", "DecryptData", {})
|
|
1290
|
-
.n("PaymentCryptographyDataClient", "DecryptDataCommand")
|
|
1291
|
-
.sc(DecryptData$)
|
|
1292
|
-
.build() {
|
|
1285
|
+
const command = makeBuilder(commonParams, "PaymentCryptographyDataPlane", "PaymentCryptographyDataClient", getEndpointPlugin);
|
|
1286
|
+
const _ep0 = {};
|
|
1287
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
1288
|
+
|
|
1289
|
+
class DecryptDataCommand extends command(_ep0, _mw0, "DecryptData", DecryptData$) {
|
|
1293
1290
|
}
|
|
1294
1291
|
|
|
1295
|
-
class EncryptDataCommand extends
|
|
1296
|
-
.classBuilder()
|
|
1297
|
-
.ep(commonParams)
|
|
1298
|
-
.m(function (Command, cs, config, o) {
|
|
1299
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1300
|
-
})
|
|
1301
|
-
.s("PaymentCryptographyDataPlane", "EncryptData", {})
|
|
1302
|
-
.n("PaymentCryptographyDataClient", "EncryptDataCommand")
|
|
1303
|
-
.sc(EncryptData$)
|
|
1304
|
-
.build() {
|
|
1292
|
+
class EncryptDataCommand extends command(_ep0, _mw0, "EncryptData", EncryptData$) {
|
|
1305
1293
|
}
|
|
1306
1294
|
|
|
1307
|
-
class GenerateAs2805KekValidationCommand extends
|
|
1308
|
-
.classBuilder()
|
|
1309
|
-
.ep(commonParams)
|
|
1310
|
-
.m(function (Command, cs, config, o) {
|
|
1311
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1312
|
-
})
|
|
1313
|
-
.s("PaymentCryptographyDataPlane", "GenerateAs2805KekValidation", {})
|
|
1314
|
-
.n("PaymentCryptographyDataClient", "GenerateAs2805KekValidationCommand")
|
|
1315
|
-
.sc(GenerateAs2805KekValidation$)
|
|
1316
|
-
.build() {
|
|
1295
|
+
class GenerateAs2805KekValidationCommand extends command(_ep0, _mw0, "GenerateAs2805KekValidation", GenerateAs2805KekValidation$) {
|
|
1317
1296
|
}
|
|
1318
1297
|
|
|
1319
|
-
class GenerateAuthRequestCryptogramCommand extends
|
|
1320
|
-
.classBuilder()
|
|
1321
|
-
.ep(commonParams)
|
|
1322
|
-
.m(function (Command, cs, config, o) {
|
|
1323
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1324
|
-
})
|
|
1325
|
-
.s("PaymentCryptographyDataPlane", "GenerateAuthRequestCryptogram", {})
|
|
1326
|
-
.n("PaymentCryptographyDataClient", "GenerateAuthRequestCryptogramCommand")
|
|
1327
|
-
.sc(GenerateAuthRequestCryptogram$)
|
|
1328
|
-
.build() {
|
|
1298
|
+
class GenerateAuthRequestCryptogramCommand extends command(_ep0, _mw0, "GenerateAuthRequestCryptogram", GenerateAuthRequestCryptogram$) {
|
|
1329
1299
|
}
|
|
1330
1300
|
|
|
1331
|
-
class GenerateCardValidationDataCommand extends
|
|
1332
|
-
.classBuilder()
|
|
1333
|
-
.ep(commonParams)
|
|
1334
|
-
.m(function (Command, cs, config, o) {
|
|
1335
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1336
|
-
})
|
|
1337
|
-
.s("PaymentCryptographyDataPlane", "GenerateCardValidationData", {})
|
|
1338
|
-
.n("PaymentCryptographyDataClient", "GenerateCardValidationDataCommand")
|
|
1339
|
-
.sc(GenerateCardValidationData$)
|
|
1340
|
-
.build() {
|
|
1301
|
+
class GenerateCardValidationDataCommand extends command(_ep0, _mw0, "GenerateCardValidationData", GenerateCardValidationData$) {
|
|
1341
1302
|
}
|
|
1342
1303
|
|
|
1343
|
-
class GenerateMacCommand extends
|
|
1344
|
-
.classBuilder()
|
|
1345
|
-
.ep(commonParams)
|
|
1346
|
-
.m(function (Command, cs, config, o) {
|
|
1347
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1348
|
-
})
|
|
1349
|
-
.s("PaymentCryptographyDataPlane", "GenerateMac", {})
|
|
1350
|
-
.n("PaymentCryptographyDataClient", "GenerateMacCommand")
|
|
1351
|
-
.sc(GenerateMac$)
|
|
1352
|
-
.build() {
|
|
1304
|
+
class GenerateMacCommand extends command(_ep0, _mw0, "GenerateMac", GenerateMac$) {
|
|
1353
1305
|
}
|
|
1354
1306
|
|
|
1355
|
-
class GenerateMacEmvPinChangeCommand extends
|
|
1356
|
-
.classBuilder()
|
|
1357
|
-
.ep(commonParams)
|
|
1358
|
-
.m(function (Command, cs, config, o) {
|
|
1359
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1360
|
-
})
|
|
1361
|
-
.s("PaymentCryptographyDataPlane", "GenerateMacEmvPinChange", {})
|
|
1362
|
-
.n("PaymentCryptographyDataClient", "GenerateMacEmvPinChangeCommand")
|
|
1363
|
-
.sc(GenerateMacEmvPinChange$)
|
|
1364
|
-
.build() {
|
|
1307
|
+
class GenerateMacEmvPinChangeCommand extends command(_ep0, _mw0, "GenerateMacEmvPinChange", GenerateMacEmvPinChange$) {
|
|
1365
1308
|
}
|
|
1366
1309
|
|
|
1367
|
-
class GeneratePinDataCommand extends
|
|
1368
|
-
.classBuilder()
|
|
1369
|
-
.ep(commonParams)
|
|
1370
|
-
.m(function (Command, cs, config, o) {
|
|
1371
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1372
|
-
})
|
|
1373
|
-
.s("PaymentCryptographyDataPlane", "GeneratePinData", {})
|
|
1374
|
-
.n("PaymentCryptographyDataClient", "GeneratePinDataCommand")
|
|
1375
|
-
.sc(GeneratePinData$)
|
|
1376
|
-
.build() {
|
|
1310
|
+
class GeneratePinDataCommand extends command(_ep0, _mw0, "GeneratePinData", GeneratePinData$) {
|
|
1377
1311
|
}
|
|
1378
1312
|
|
|
1379
|
-
class ReEncryptDataCommand extends
|
|
1380
|
-
.classBuilder()
|
|
1381
|
-
.ep(commonParams)
|
|
1382
|
-
.m(function (Command, cs, config, o) {
|
|
1383
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1384
|
-
})
|
|
1385
|
-
.s("PaymentCryptographyDataPlane", "ReEncryptData", {})
|
|
1386
|
-
.n("PaymentCryptographyDataClient", "ReEncryptDataCommand")
|
|
1387
|
-
.sc(ReEncryptData$)
|
|
1388
|
-
.build() {
|
|
1313
|
+
class ReEncryptDataCommand extends command(_ep0, _mw0, "ReEncryptData", ReEncryptData$) {
|
|
1389
1314
|
}
|
|
1390
1315
|
|
|
1391
|
-
class TranslateKeyMaterialCommand extends
|
|
1392
|
-
.classBuilder()
|
|
1393
|
-
.ep(commonParams)
|
|
1394
|
-
.m(function (Command, cs, config, o) {
|
|
1395
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1396
|
-
})
|
|
1397
|
-
.s("PaymentCryptographyDataPlane", "TranslateKeyMaterial", {})
|
|
1398
|
-
.n("PaymentCryptographyDataClient", "TranslateKeyMaterialCommand")
|
|
1399
|
-
.sc(TranslateKeyMaterial$)
|
|
1400
|
-
.build() {
|
|
1316
|
+
class TranslateKeyMaterialCommand extends command(_ep0, _mw0, "TranslateKeyMaterial", TranslateKeyMaterial$) {
|
|
1401
1317
|
}
|
|
1402
1318
|
|
|
1403
|
-
class TranslatePinDataCommand extends
|
|
1404
|
-
.classBuilder()
|
|
1405
|
-
.ep(commonParams)
|
|
1406
|
-
.m(function (Command, cs, config, o) {
|
|
1407
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1408
|
-
})
|
|
1409
|
-
.s("PaymentCryptographyDataPlane", "TranslatePinData", {})
|
|
1410
|
-
.n("PaymentCryptographyDataClient", "TranslatePinDataCommand")
|
|
1411
|
-
.sc(TranslatePinData$)
|
|
1412
|
-
.build() {
|
|
1319
|
+
class TranslatePinDataCommand extends command(_ep0, _mw0, "TranslatePinData", TranslatePinData$) {
|
|
1413
1320
|
}
|
|
1414
1321
|
|
|
1415
|
-
class VerifyAuthRequestCryptogramCommand extends
|
|
1416
|
-
.classBuilder()
|
|
1417
|
-
.ep(commonParams)
|
|
1418
|
-
.m(function (Command, cs, config, o) {
|
|
1419
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1420
|
-
})
|
|
1421
|
-
.s("PaymentCryptographyDataPlane", "VerifyAuthRequestCryptogram", {})
|
|
1422
|
-
.n("PaymentCryptographyDataClient", "VerifyAuthRequestCryptogramCommand")
|
|
1423
|
-
.sc(VerifyAuthRequestCryptogram$)
|
|
1424
|
-
.build() {
|
|
1322
|
+
class VerifyAuthRequestCryptogramCommand extends command(_ep0, _mw0, "VerifyAuthRequestCryptogram", VerifyAuthRequestCryptogram$) {
|
|
1425
1323
|
}
|
|
1426
1324
|
|
|
1427
|
-
class VerifyCardValidationDataCommand extends
|
|
1428
|
-
.classBuilder()
|
|
1429
|
-
.ep(commonParams)
|
|
1430
|
-
.m(function (Command, cs, config, o) {
|
|
1431
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1432
|
-
})
|
|
1433
|
-
.s("PaymentCryptographyDataPlane", "VerifyCardValidationData", {})
|
|
1434
|
-
.n("PaymentCryptographyDataClient", "VerifyCardValidationDataCommand")
|
|
1435
|
-
.sc(VerifyCardValidationData$)
|
|
1436
|
-
.build() {
|
|
1325
|
+
class VerifyCardValidationDataCommand extends command(_ep0, _mw0, "VerifyCardValidationData", VerifyCardValidationData$) {
|
|
1437
1326
|
}
|
|
1438
1327
|
|
|
1439
|
-
class VerifyMacCommand extends
|
|
1440
|
-
.classBuilder()
|
|
1441
|
-
.ep(commonParams)
|
|
1442
|
-
.m(function (Command, cs, config, o) {
|
|
1443
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1444
|
-
})
|
|
1445
|
-
.s("PaymentCryptographyDataPlane", "VerifyMac", {})
|
|
1446
|
-
.n("PaymentCryptographyDataClient", "VerifyMacCommand")
|
|
1447
|
-
.sc(VerifyMac$)
|
|
1448
|
-
.build() {
|
|
1328
|
+
class VerifyMacCommand extends command(_ep0, _mw0, "VerifyMac", VerifyMac$) {
|
|
1449
1329
|
}
|
|
1450
1330
|
|
|
1451
|
-
class VerifyPinDataCommand extends
|
|
1452
|
-
.classBuilder()
|
|
1453
|
-
.ep(commonParams)
|
|
1454
|
-
.m(function (Command, cs, config, o) {
|
|
1455
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1456
|
-
})
|
|
1457
|
-
.s("PaymentCryptographyDataPlane", "VerifyPinData", {})
|
|
1458
|
-
.n("PaymentCryptographyDataClient", "VerifyPinDataCommand")
|
|
1459
|
-
.sc(VerifyPinData$)
|
|
1460
|
-
.build() {
|
|
1331
|
+
class VerifyPinDataCommand extends command(_ep0, _mw0, "VerifyPinData", VerifyPinData$) {
|
|
1461
1332
|
}
|
|
1462
1333
|
|
|
1463
1334
|
const commands = {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "PaymentCryptographyDataPlane", "PaymentCryptographyDataClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DecryptData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DecryptDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "DecryptData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "DecryptDataCommand")
|
|
14
|
-
.sc(DecryptData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DecryptDataCommand extends command(_ep0, _mw0, "DecryptData", DecryptData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { EncryptData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class EncryptDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "EncryptData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "EncryptDataCommand")
|
|
14
|
-
.sc(EncryptData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class EncryptDataCommand extends command(_ep0, _mw0, "EncryptData", EncryptData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateAs2805KekValidation$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateAs2805KekValidationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateAs2805KekValidation", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateAs2805KekValidationCommand")
|
|
14
|
-
.sc(GenerateAs2805KekValidation$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateAs2805KekValidationCommand extends command(_ep0, _mw0, "GenerateAs2805KekValidation", GenerateAs2805KekValidation$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateAuthRequestCryptogram$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateAuthRequestCryptogramCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateAuthRequestCryptogram", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateAuthRequestCryptogramCommand")
|
|
14
|
-
.sc(GenerateAuthRequestCryptogram$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateAuthRequestCryptogramCommand extends command(_ep0, _mw0, "GenerateAuthRequestCryptogram", GenerateAuthRequestCryptogram$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateCardValidationData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateCardValidationDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateCardValidationData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateCardValidationDataCommand")
|
|
14
|
-
.sc(GenerateCardValidationData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateCardValidationDataCommand extends command(_ep0, _mw0, "GenerateCardValidationData", GenerateCardValidationData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateMac$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateMacCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateMac", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateMacCommand")
|
|
14
|
-
.sc(GenerateMac$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateMacCommand extends command(_ep0, _mw0, "GenerateMac", GenerateMac$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GenerateMacEmvPinChange$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GenerateMacEmvPinChangeCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GenerateMacEmvPinChange", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GenerateMacEmvPinChangeCommand")
|
|
14
|
-
.sc(GenerateMacEmvPinChange$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GenerateMacEmvPinChangeCommand extends command(_ep0, _mw0, "GenerateMacEmvPinChange", GenerateMacEmvPinChange$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GeneratePinData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GeneratePinDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "GeneratePinData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "GeneratePinDataCommand")
|
|
14
|
-
.sc(GeneratePinData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GeneratePinDataCommand extends command(_ep0, _mw0, "GeneratePinData", GeneratePinData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ReEncryptData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ReEncryptDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "ReEncryptData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "ReEncryptDataCommand")
|
|
14
|
-
.sc(ReEncryptData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ReEncryptDataCommand extends command(_ep0, _mw0, "ReEncryptData", ReEncryptData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { TranslateKeyMaterial$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class TranslateKeyMaterialCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "TranslateKeyMaterial", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "TranslateKeyMaterialCommand")
|
|
14
|
-
.sc(TranslateKeyMaterial$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class TranslateKeyMaterialCommand extends command(_ep0, _mw0, "TranslateKeyMaterial", TranslateKeyMaterial$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { TranslatePinData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class TranslatePinDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "TranslatePinData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "TranslatePinDataCommand")
|
|
14
|
-
.sc(TranslatePinData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class TranslatePinDataCommand extends command(_ep0, _mw0, "TranslatePinData", TranslatePinData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { VerifyAuthRequestCryptogram$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class VerifyAuthRequestCryptogramCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "VerifyAuthRequestCryptogram", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "VerifyAuthRequestCryptogramCommand")
|
|
14
|
-
.sc(VerifyAuthRequestCryptogram$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class VerifyAuthRequestCryptogramCommand extends command(_ep0, _mw0, "VerifyAuthRequestCryptogram", VerifyAuthRequestCryptogram$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { VerifyCardValidationData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class VerifyCardValidationDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "VerifyCardValidationData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "VerifyCardValidationDataCommand")
|
|
14
|
-
.sc(VerifyCardValidationData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class VerifyCardValidationDataCommand extends command(_ep0, _mw0, "VerifyCardValidationData", VerifyCardValidationData$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { VerifyMac$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class VerifyMacCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "VerifyMac", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "VerifyMacCommand")
|
|
14
|
-
.sc(VerifyMac$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class VerifyMacCommand extends command(_ep0, _mw0, "VerifyMac", VerifyMac$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { VerifyPinData$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class VerifyPinDataCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("PaymentCryptographyDataPlane", "VerifyPinData", {})
|
|
13
|
-
.n("PaymentCryptographyDataClient", "VerifyPinDataCommand")
|
|
14
|
-
.sc(VerifyPinData$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class VerifyPinDataCommand extends command(_ep0, _mw0, "VerifyPinData", VerifyPinData$) {
|
|
16
4
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./PaymentCryptographyDataClient";
|
|
2
2
|
export * from "./PaymentCryptographyData";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
4
5
|
export * from "./schemas/schemas_0";
|
|
5
6
|
export * from "./models/enums";
|
|
6
7
|
export * from "./models/errors";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "PaymentCryptographyDataPlane",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "Payment Cryptography Data",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|