@salesforce/b2c-tooling-sdk 2.1.0 → 2.3.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.
Files changed (105) hide show
  1. package/data/content-schemas/databindingcontext.json +1 -1
  2. package/data/guides/enrichment.json +2887 -1480
  3. package/data/guides/index.json +3846 -1870
  4. package/data/help/index.json +1537 -1457
  5. package/data/help-kb/enrichment.json +6122 -0
  6. package/data/help-kb/index.json +8496 -0
  7. package/data/job-steps/index.json +1 -1
  8. package/data/job-steps/job-steps.json +1 -1
  9. package/data/script-api/index.json +137 -22
  10. package/data/tooling/index.json +22 -4
  11. package/data/xsd/channels.xsd +47 -0
  12. package/data/xsd/index.json +6 -2
  13. package/data/xsd/library.xsd +31 -0
  14. package/data/xsd/order.xsd +317 -0
  15. package/data/xsd/search2.xsd +1 -1
  16. package/data/xsd/sort.xsd +17 -0
  17. package/data/xsd/storefronts.xsd +34 -48
  18. package/dist/esm/auth/client-credentials.d.ts +43 -0
  19. package/dist/esm/auth/client-credentials.js +55 -0
  20. package/dist/esm/auth/client-credentials.js.map +1 -1
  21. package/dist/esm/auth/index.d.ts +2 -1
  22. package/dist/esm/auth/index.js +1 -1
  23. package/dist/esm/auth/index.js.map +1 -1
  24. package/dist/esm/auth/oauth.d.ts +3 -0
  25. package/dist/esm/auth/oauth.js +3 -3
  26. package/dist/esm/auth/oauth.js.map +1 -1
  27. package/dist/esm/auth/resolve.d.ts +2 -0
  28. package/dist/esm/auth/resolve.js +3 -2
  29. package/dist/esm/auth/resolve.js.map +1 -1
  30. package/dist/esm/auth/types.d.ts +5 -0
  31. package/dist/esm/auth/types.js +0 -5
  32. package/dist/esm/auth/types.js.map +1 -1
  33. package/dist/esm/cli/config.js +1 -0
  34. package/dist/esm/cli/config.js.map +1 -1
  35. package/dist/esm/cli/instance-command.d.ts +1 -0
  36. package/dist/esm/cli/mrt-command.d.ts +1 -0
  37. package/dist/esm/cli/oauth-command.d.ts +1 -0
  38. package/dist/esm/cli/oauth-command.js +8 -0
  39. package/dist/esm/cli/oauth-command.js.map +1 -1
  40. package/dist/esm/cli/ods-command.d.ts +1 -0
  41. package/dist/esm/cli/webdav-command.d.ts +1 -0
  42. package/dist/esm/clients/middleware-registry.d.ts +8 -36
  43. package/dist/esm/clients/middleware-registry.js +62 -1
  44. package/dist/esm/clients/middleware-registry.js.map +1 -1
  45. package/dist/esm/clients/slas-shopper.generated.d.ts +2 -1
  46. package/dist/esm/config/dw-json.d.ts +31 -0
  47. package/dist/esm/config/dw-json.js +47 -1
  48. package/dist/esm/config/dw-json.js.map +1 -1
  49. package/dist/esm/config/index.d.ts +2 -2
  50. package/dist/esm/config/index.js +1 -1
  51. package/dist/esm/config/index.js.map +1 -1
  52. package/dist/esm/config/mapping.js +7 -0
  53. package/dist/esm/config/mapping.js.map +1 -1
  54. package/dist/esm/config/resolved-config.js +1 -0
  55. package/dist/esm/config/resolved-config.js.map +1 -1
  56. package/dist/esm/config/sources/env-source.js +3 -0
  57. package/dist/esm/config/sources/env-source.js.map +1 -1
  58. package/dist/esm/config/types.d.ts +3 -0
  59. package/dist/esm/docs/search.js +4 -1
  60. package/dist/esm/docs/search.js.map +1 -1
  61. package/dist/esm/docs/types.d.ts +6 -1
  62. package/dist/esm/docs/types.js +1 -0
  63. package/dist/esm/docs/types.js.map +1 -1
  64. package/dist/esm/instance/index.js +1 -0
  65. package/dist/esm/instance/index.js.map +1 -1
  66. package/dist/esm/openshell/apply.d.ts +90 -0
  67. package/dist/esm/openshell/apply.js +225 -0
  68. package/dist/esm/openshell/apply.js.map +1 -0
  69. package/dist/esm/openshell/index.d.ts +30 -0
  70. package/dist/esm/openshell/index.js +34 -0
  71. package/dist/esm/openshell/index.js.map +1 -0
  72. package/dist/esm/openshell/setup.d.ts +94 -0
  73. package/dist/esm/openshell/setup.js +307 -0
  74. package/dist/esm/openshell/setup.js.map +1 -0
  75. package/dist/esm/operations/mtls/index.d.ts +135 -0
  76. package/dist/esm/operations/mtls/index.js +270 -0
  77. package/dist/esm/operations/mtls/index.js.map +1 -0
  78. package/dist/esm/scapi/auth-primitives.js +1 -0
  79. package/dist/esm/scapi/auth-primitives.js.map +1 -1
  80. package/dist/esm/scapi/authentication.d.ts +19 -0
  81. package/dist/esm/scapi/authentication.js +65 -6
  82. package/dist/esm/scapi/authentication.js.map +1 -1
  83. package/dist/esm/scapi/catalog.d.ts +2 -0
  84. package/dist/esm/scapi/catalog.js.map +1 -1
  85. package/dist/esm/scapi/index.d.ts +7 -3
  86. package/dist/esm/scapi/index.js +4 -2
  87. package/dist/esm/scapi/index.js.map +1 -1
  88. package/dist/esm/scapi/live.d.ts +52 -0
  89. package/dist/esm/scapi/live.js +142 -0
  90. package/dist/esm/scapi/live.js.map +1 -0
  91. package/dist/esm/scapi/request.d.ts +6 -0
  92. package/dist/esm/scapi/request.js +83 -61
  93. package/dist/esm/scapi/request.js.map +1 -1
  94. package/dist/esm/scapi/shopper.d.ts +31 -0
  95. package/dist/esm/scapi/shopper.js +79 -0
  96. package/dist/esm/scapi/shopper.js.map +1 -0
  97. package/dist/esm/scapi/worker-source.js +1 -1
  98. package/dist/esm/slas/index.d.ts +1 -1
  99. package/dist/esm/slas/index.js +1 -1
  100. package/dist/esm/slas/index.js.map +1 -1
  101. package/dist/esm/slas/token.d.ts +10 -0
  102. package/dist/esm/slas/token.js +27 -0
  103. package/dist/esm/slas/token.js.map +1 -1
  104. package/package.json +11 -1
  105. package/specs/slas-shopper-v1.yaml +2 -1
@@ -33,6 +33,9 @@
33
33
  fields account-id and account-type are exported. Since version 22.9 details to a
34
34
  Salesforce Payments payment are no longer exported in a custom method element.
35
35
  Since version 26.5 multi-level tax items can be exported for line items.
36
+ Since version 26.9 custom attributes are exported for tax items.
37
+ Since version 26.10 payment-details, fraud-decisions and transaction-details
38
+ elements can be exported per payment.
36
39
  </xsd:documentation>
37
40
  </xsd:annotation>
38
41
  <xsd:enumeration value="18.5" />
@@ -45,6 +48,8 @@
45
48
  <xsd:enumeration value="22.9" />
46
49
  <xsd:enumeration value="23.4" />
47
50
  <xsd:enumeration value="26.5" />
51
+ <xsd:enumeration value="26.9" />
52
+ <xsd:enumeration value="26.10" />
48
53
  </xsd:restriction>
49
54
  </xsd:simpleType>
50
55
 
@@ -230,6 +235,8 @@
230
235
  <xsd:documentation>Tax amount in purchase currency.</xsd:documentation>
231
236
  </xsd:annotation>
232
237
  </xsd:element>
238
+ <!-- Since 26.9: custom attributes on a tax item -->
239
+ <xsd:element name="custom-attributes" type="sharedType.CustomAttributes" minOccurs="0"/>
233
240
  </xsd:sequence>
234
241
  </xsd:complexType>
235
242
 
@@ -631,6 +638,23 @@
631
638
  <xsd:element name="custom-method" type="complexType.CustomPaymentMethod" />
632
639
  </xsd:choice>
633
640
 
641
+ <xsd:element name="payment-details" type="complexType.PaymentDetails" minOccurs="0" maxOccurs="1">
642
+ <xsd:annotation>
643
+ <xsd:documentation>
644
+ Since version 26.10.
645
+ The normalized payment details for the order payment instrument.
646
+ </xsd:documentation>
647
+ </xsd:annotation>
648
+ </xsd:element>
649
+ <xsd:element name="fraud-decisions" type="complexType.FraudDecisions" minOccurs="0" maxOccurs="1">
650
+ <xsd:annotation>
651
+ <xsd:documentation>
652
+ Since version 26.10.
653
+ The normalized fraud decisions for the order payment instrument.
654
+ </xsd:documentation>
655
+ </xsd:annotation>
656
+ </xsd:element>
657
+
634
658
  <!-- payment transaction details -->
635
659
  <xsd:element name="amount" type="xsd:decimal" minOccurs="0" maxOccurs="1"/>
636
660
  <xsd:element name="processor-id" type="simpleType.Generic.NonEmptyString.256" minOccurs="0" maxOccurs="1" />
@@ -652,6 +676,14 @@
652
676
  </xsd:documentation>
653
677
  </xsd:annotation>
654
678
  </xsd:element>
679
+ <xsd:element name="transaction-details" type="complexType.TransactionDetails" minOccurs="0" maxOccurs="1">
680
+ <xsd:annotation>
681
+ <xsd:documentation>
682
+ Since version 26.10.
683
+ The normalized transaction details for the order payment transaction.
684
+ </xsd:documentation>
685
+ </xsd:annotation>
686
+ </xsd:element>
655
687
  <xsd:element name="custom-attributes" type="sharedType.CustomAttributes" minOccurs="0" maxOccurs="1">
656
688
  <xsd:annotation>
657
689
  <xsd:documentation>These are the custom attributes of the PaymentTransaction system object.</xsd:documentation>
@@ -1168,6 +1200,54 @@
1168
1200
  </xsd:restriction>
1169
1201
  </xsd:simpleType>
1170
1202
 
1203
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.4">
1204
+ <xsd:restriction base="simpleType.Generic.String">
1205
+ <xsd:minLength value="1" />
1206
+ <xsd:maxLength value="4" />
1207
+ <xsd:pattern value="\S|(\S(.*)\S)" />
1208
+ </xsd:restriction>
1209
+ </xsd:simpleType>
1210
+
1211
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.8">
1212
+ <xsd:restriction base="simpleType.Generic.String">
1213
+ <xsd:minLength value="1" />
1214
+ <xsd:maxLength value="8" />
1215
+ <xsd:pattern value="\S|(\S(.*)\S)" />
1216
+ </xsd:restriction>
1217
+ </xsd:simpleType>
1218
+
1219
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.1">
1220
+ <xsd:restriction base="simpleType.Generic.String">
1221
+ <xsd:minLength value="1" />
1222
+ <xsd:maxLength value="1" />
1223
+ <xsd:pattern value="\S" />
1224
+ </xsd:restriction>
1225
+ </xsd:simpleType>
1226
+
1227
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.2">
1228
+ <xsd:restriction base="simpleType.Generic.String">
1229
+ <xsd:minLength value="1" />
1230
+ <xsd:maxLength value="2" />
1231
+ <xsd:pattern value="\S|(\S(.*)\S)" />
1232
+ </xsd:restriction>
1233
+ </xsd:simpleType>
1234
+
1235
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.3">
1236
+ <xsd:restriction base="simpleType.Generic.String">
1237
+ <xsd:minLength value="1" />
1238
+ <xsd:maxLength value="3" />
1239
+ <xsd:pattern value="\S|(\S(.*)\S)" />
1240
+ </xsd:restriction>
1241
+ </xsd:simpleType>
1242
+
1243
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.20">
1244
+ <xsd:restriction base="simpleType.Generic.String">
1245
+ <xsd:minLength value="1" />
1246
+ <xsd:maxLength value="20" />
1247
+ <xsd:pattern value="\S|(\S(.*)\S)" />
1248
+ </xsd:restriction>
1249
+ </xsd:simpleType>
1250
+
1171
1251
  <xsd:simpleType name="simpleType.Generic.NonEmptyString.40">
1172
1252
  <xsd:restriction base="simpleType.Generic.String">
1173
1253
  <xsd:minLength value="1" />
@@ -1224,6 +1304,243 @@
1224
1304
  </xsd:restriction>
1225
1305
  </xsd:simpleType>
1226
1306
 
1307
+ <xsd:complexType name="complexType.PaymentDetails">
1308
+ <xsd:annotation>
1309
+ <xsd:documentation>
1310
+ Since version 26.10.
1311
+ Normalized payment details for the order payment instrument. Specific fields are populated depending on
1312
+ the type value.
1313
+ </xsd:documentation>
1314
+ </xsd:annotation>
1315
+ <xsd:sequence>
1316
+ <xsd:element name="brand" type="simpleType.Generic.NonEmptyString.20" minOccurs="0" maxOccurs="1">
1317
+ <xsd:annotation>
1318
+ <xsd:documentation>
1319
+ The normalized card brand. Expected values are amex, diners, discover, jcb,
1320
+ mastercard, unionpay, visa, and unknown. A custom value may also be returned.
1321
+ </xsd:documentation>
1322
+ </xsd:annotation>
1323
+ </xsd:element>
1324
+ <xsd:element name="last-4" type="simpleType.Generic.NonEmptyString.4" minOccurs="0" maxOccurs="1">
1325
+ <xsd:annotation>
1326
+ <xsd:documentation>
1327
+ The last four digits of the payment instrument.
1328
+ </xsd:documentation>
1329
+ </xsd:annotation>
1330
+ </xsd:element>
1331
+ <xsd:element name="wallet-type" type="simpleType.Generic.NonEmptyString.20" minOccurs="0" maxOccurs="1">
1332
+ <xsd:annotation>
1333
+ <xsd:documentation>
1334
+ The normalized digital wallet used for the payment. Expected values are
1335
+ apple_pay and google_pay. A custom value may also be returned.
1336
+ </xsd:documentation>
1337
+ </xsd:annotation>
1338
+ </xsd:element>
1339
+ <xsd:element name="expiration-month" type="simpleType.PaymentDetails.ExpirationMonth" minOccurs="0" maxOccurs="1">
1340
+ <xsd:annotation>
1341
+ <xsd:documentation>
1342
+ The month when the payment instrument expires.
1343
+ </xsd:documentation>
1344
+ </xsd:annotation>
1345
+ </xsd:element>
1346
+ <xsd:element name="expiration-year" type="xsd:int" minOccurs="0" maxOccurs="1">
1347
+ <xsd:annotation>
1348
+ <xsd:documentation>
1349
+ The year when the payment instrument expires.
1350
+ </xsd:documentation>
1351
+ </xsd:annotation>
1352
+ </xsd:element>
1353
+ <xsd:element name="token" type="simpleType.Generic.NonEmptyString.40" minOccurs="0" maxOccurs="1">
1354
+ <xsd:annotation>
1355
+ <xsd:documentation>
1356
+ The reference token representing the payment instrument. This is an opaque
1357
+ identifier, not the card number (PAN).
1358
+ </xsd:documentation>
1359
+ </xsd:annotation>
1360
+ </xsd:element>
1361
+ <xsd:element name="token-type" type="simpleType.Generic.NonEmptyString.20" minOccurs="0" maxOccurs="1">
1362
+ <xsd:annotation>
1363
+ <xsd:documentation>
1364
+ The type of token backing the reference token. Expected values are NETWORK
1365
+ and GATEWAY. A custom value may also be returned.
1366
+ </xsd:documentation>
1367
+ </xsd:annotation>
1368
+ </xsd:element>
1369
+ <xsd:element name="account-holder-name" type="simpleType.Generic.NonEmptyString.256" minOccurs="0" maxOccurs="1">
1370
+ <xsd:annotation>
1371
+ <xsd:documentation>
1372
+ The name of the payment instrument account holder.
1373
+ </xsd:documentation>
1374
+ </xsd:annotation>
1375
+ </xsd:element>
1376
+ <xsd:element name="bin" type="simpleType.Generic.NonEmptyString.8" minOccurs="0" maxOccurs="1">
1377
+ <xsd:annotation>
1378
+ <xsd:documentation>
1379
+ The bank identification number (BIN) of the payment card.
1380
+ </xsd:documentation>
1381
+ </xsd:annotation>
1382
+ </xsd:element>
1383
+ <xsd:element name="dpan-last-4" type="simpleType.Generic.NonEmptyString.4" minOccurs="0" maxOccurs="1">
1384
+ <xsd:annotation>
1385
+ <xsd:documentation>
1386
+ The last four digits of the device primary account number for a
1387
+ wallet-tokenized card.
1388
+ </xsd:documentation>
1389
+ </xsd:annotation>
1390
+ </xsd:element>
1391
+ <xsd:element name="issuing-country" type="simpleType.CountryCode" minOccurs="0" maxOccurs="1">
1392
+ <xsd:annotation>
1393
+ <xsd:documentation>
1394
+ The ISO 3166-1 alpha-2 country code of the issuing bank.
1395
+ </xsd:documentation>
1396
+ </xsd:annotation>
1397
+ </xsd:element>
1398
+ <xsd:element name="funding-type" type="simpleType.Generic.NonEmptyString.20" minOccurs="0" maxOccurs="1">
1399
+ <xsd:annotation>
1400
+ <xsd:documentation>
1401
+ The normalized card funding type. Expected values are CREDIT, DEBIT, and
1402
+ PREPAID. A custom value may also be returned.
1403
+ </xsd:documentation>
1404
+ </xsd:annotation>
1405
+ </xsd:element>
1406
+ </xsd:sequence>
1407
+ <xsd:attribute name="type" type="simpleType.Generic.NonEmptyString.256" use="required">
1408
+ <xsd:annotation>
1409
+ <xsd:documentation>
1410
+ The normalized payment method type. Expected values are bancontact, card,
1411
+ eps, gift_card, ideal, klarna, sepa_debit, paypal, venmo, afterpay_clearpay,
1412
+ amazon_pay, and twint. A custom value may also be returned.
1413
+ </xsd:documentation>
1414
+ </xsd:annotation>
1415
+ </xsd:attribute>
1416
+ </xsd:complexType>
1417
+
1418
+ <xsd:complexType name="complexType.TransactionDetails">
1419
+ <xsd:annotation>
1420
+ <xsd:documentation>
1421
+ Since version 26.10.
1422
+ Normalized transaction details for the order payment transaction. Specific fields
1423
+ are populated depending on the payment-details type value.
1424
+ </xsd:documentation>
1425
+ </xsd:annotation>
1426
+ <xsd:sequence>
1427
+ <xsd:element name="cvc-result" type="simpleType.Generic.NonEmptyString.20" minOccurs="0" maxOccurs="1">
1428
+ <xsd:annotation>
1429
+ <xsd:documentation>
1430
+ The card verification code check result. Expected values are MATCH, NO_MATCH,
1431
+ NOT_PROCESSED, and UNAVAILABLE. A custom value may also be returned.
1432
+ </xsd:documentation>
1433
+ </xsd:annotation>
1434
+ </xsd:element>
1435
+ <xsd:element name="avs-result" type="simpleType.Generic.NonEmptyString.1" minOccurs="0" maxOccurs="1">
1436
+ <xsd:annotation>
1437
+ <xsd:documentation>
1438
+ The address verification service result. Expected values are Y (full match),
1439
+ N (no match), A (address only), Z (postal code only), U (unavailable), S
1440
+ (unsupported), and R (retry). A custom value may also be returned.
1441
+ </xsd:documentation>
1442
+ </xsd:annotation>
1443
+ </xsd:element>
1444
+ <xsd:element name="three-ds-result" type="simpleType.Generic.NonEmptyString.20" minOccurs="0" maxOccurs="1">
1445
+ <xsd:annotation>
1446
+ <xsd:documentation>
1447
+ The 3D Secure authentication result. Expected values are AUTHENTICATED,
1448
+ ATTEMPTED, FAILED, REJECTED, and UNAVAILABLE. A custom value may also be returned.
1449
+ </xsd:documentation>
1450
+ </xsd:annotation>
1451
+ </xsd:element>
1452
+ <xsd:element name="three-ds-version" type="simpleType.Generic.NonEmptyString.2" minOccurs="0" maxOccurs="1">
1453
+ <xsd:annotation>
1454
+ <xsd:documentation>
1455
+ The 3D Secure protocol version. Expected values are V1 and V2. A custom value may also be returned.
1456
+ </xsd:documentation>
1457
+ </xsd:annotation>
1458
+ </xsd:element>
1459
+ <xsd:element name="three-ds-transaction-id" type="simpleType.Generic.NonEmptyString.40" minOccurs="0" maxOccurs="1">
1460
+ <xsd:annotation>
1461
+ <xsd:documentation>
1462
+ The 3D Secure transaction identifier.
1463
+ </xsd:documentation>
1464
+ </xsd:annotation>
1465
+ </xsd:element>
1466
+ <xsd:element name="electronic-commerce-indicator" type="simpleType.Generic.NonEmptyString.3" minOccurs="0" maxOccurs="1">
1467
+ <xsd:annotation>
1468
+ <xsd:documentation>
1469
+ The electronic commerce indicator (ECI) value returned by the processor.
1470
+ </xsd:documentation>
1471
+ </xsd:annotation>
1472
+ </xsd:element>
1473
+ <xsd:element name="approval-code" type="simpleType.Generic.NonEmptyString.256" minOccurs="0" maxOccurs="1">
1474
+ <xsd:annotation>
1475
+ <xsd:documentation>
1476
+ The approval code returned by the provider on a successful gift card capture.
1477
+ </xsd:documentation>
1478
+ </xsd:annotation>
1479
+ </xsd:element>
1480
+ <xsd:element name="reason-code" type="simpleType.Generic.NonEmptyString.256" minOccurs="0" maxOccurs="1">
1481
+ <xsd:annotation>
1482
+ <xsd:documentation>
1483
+ The reason code returned by the provider on a failed gift card capture.
1484
+ Expected values are DECLINED and INSUFFICIENT_FUNDS. A custom value may also
1485
+ be returned.
1486
+ </xsd:documentation>
1487
+ </xsd:annotation>
1488
+ </xsd:element>
1489
+ <xsd:element name="processor-response-text" type="simpleType.Generic.NonEmptyString.256" minOccurs="0" maxOccurs="1">
1490
+ <xsd:annotation>
1491
+ <xsd:documentation>
1492
+ The human-readable gift card processor response text. The language and localization of this
1493
+ text are provider-defined and may vary by provider integration.
1494
+ </xsd:documentation>
1495
+ </xsd:annotation>
1496
+ </xsd:element>
1497
+ </xsd:sequence>
1498
+ </xsd:complexType>
1499
+
1500
+ <xsd:complexType name="complexType.FraudDecisions">
1501
+ <xsd:annotation>
1502
+ <xsd:documentation>
1503
+ Since version 26.10.
1504
+ Normalized fraud decisions for the order payment instrument. The values remain
1505
+ readable for historical orders.
1506
+ </xsd:documentation>
1507
+ </xsd:annotation>
1508
+ <xsd:sequence>
1509
+ <xsd:element name="pre-authorization" type="simpleType.Generic.NonEmptyString.256" minOccurs="0" maxOccurs="1">
1510
+ <xsd:annotation>
1511
+ <xsd:documentation>
1512
+ The pre-authorization fraud decision used by the client to orchestrate
1513
+ checkout. Expected values are NOT_REVIEWED (no pre-authorization fraud
1514
+ decision was made), APPROVED (the payment authorization can proceed),
1515
+ CHALLENGE (the payment authorization should be challenged with additional
1516
+ verification such as a 3D Secure challenge before it can proceed), and
1517
+ DECLINED (the payment authorization is declined). A custom value may also be
1518
+ returned.
1519
+ </xsd:documentation>
1520
+ </xsd:annotation>
1521
+ </xsd:element>
1522
+ <xsd:element name="post-authorization" type="simpleType.Generic.NonEmptyString.256" minOccurs="0" maxOccurs="1">
1523
+ <xsd:annotation>
1524
+ <xsd:documentation>
1525
+ The post-authorization fraud decision indicating whether the transaction is
1526
+ covered by a fraud guarantee. Expected values are NOT_REVIEWED (no
1527
+ post-authorization fraud decision was made), GUARANTEED (the transaction is
1528
+ covered by a fraud guarantee), NOT_GUARANTEED (the transaction is not covered
1529
+ by a fraud guarantee), and PENDING (the post-authorization fraud decision is
1530
+ still pending). A custom value may also be returned.
1531
+ </xsd:documentation>
1532
+ </xsd:annotation>
1533
+ </xsd:element>
1534
+ </xsd:sequence>
1535
+ </xsd:complexType>
1536
+
1537
+ <xsd:simpleType name="simpleType.PaymentDetails.ExpirationMonth">
1538
+ <xsd:restriction base="xsd:int">
1539
+ <xsd:minInclusive value="1"/>
1540
+ <xsd:maxInclusive value="12"/>
1541
+ </xsd:restriction>
1542
+ </xsd:simpleType>
1543
+
1227
1544
  <xsd:simpleType name="simpleType.OrderBusinessType">
1228
1545
  <xsd:restriction base="xsd:string">
1229
1546
  <xsd:enumeration value="B2C" />
@@ -467,7 +467,7 @@
467
467
  <xsd:simpleType name="simpleType.Generic.String.256">
468
468
  <xsd:restriction base="simpleType.Generic.String">
469
469
  <xsd:minLength value="0"/>
470
- <xsd:maxLength value="10"/>
470
+ <xsd:maxLength value="256"/>
471
471
  </xsd:restriction>
472
472
  </xsd:simpleType>
473
473
 
package/data/xsd/sort.xsd CHANGED
@@ -191,8 +191,16 @@
191
191
  <xsd:element name="description" type="LocalizedString" minOccurs="0" maxOccurs="unbounded" />
192
192
  </xsd:sequence>
193
193
  <xsd:attribute name="option-id" type="Generic.NonEmptyString.256" use="required" />
194
+ <xsd:attribute name="search-type" type="SearchType" use="optional" />
194
195
  </xsd:complexType>
195
196
 
197
+ <xsd:simpleType name="SearchType">
198
+ <xsd:restriction base="xsd:string">
199
+ <xsd:enumeration value="standard" />
200
+ <xsd:enumeration value="agentic" />
201
+ </xsd:restriction>
202
+ </xsd:simpleType>
203
+
196
204
  <xsd:simpleType name="SortingDirection">
197
205
  <xsd:restriction base="xsd:string">
198
206
  <xsd:enumeration value="ascending" />
@@ -268,9 +276,18 @@
268
276
  </xsd:restriction>
269
277
  </xsd:simpleType>
270
278
 
279
+ <!-- Owning system object type for a boostable attribute. -->
280
+ <xsd:simpleType name="BoostableObjectType">
281
+ <xsd:restriction base="xsd:string">
282
+ <xsd:enumeration value="Product" />
283
+ <xsd:enumeration value="ProductActiveData" />
284
+ </xsd:restriction>
285
+ </xsd:simpleType>
286
+
271
287
  <xsd:complexType name="BoostableAttribute">
272
288
  <xsd:attribute name="attribute-id" type="Generic.NonEmptyString.256" use="required" />
273
289
  <xsd:attribute name="system" type="xsd:boolean" use="required" />
290
+ <xsd:attribute name="object-type" type="BoostableObjectType" use="optional" default="Product" />
274
291
  <xsd:attribute name="mode" type="ImportMode" use="optional" />
275
292
  </xsd:complexType>
276
293
 
@@ -24,21 +24,50 @@
24
24
  <xsd:complexType name="complexType.Storefront" mixed="false">
25
25
  <xsd:sequence>
26
26
  <xsd:element name="ecom-site" type="simpleType.Generic.String.48" minOccurs="0" maxOccurs="1"/>
27
- <xsd:element name="storefront-type" type="simpleType.StorefrontType" minOccurs="1" maxOccurs="1"/>
28
- <xsd:element name="storefront-status" type="simpleType.StorefrontStatus" minOccurs="1" maxOccurs="1"/>
27
+ <!-- Accepted values (case-insensitive on import): composable, pwa_kit. Export emits lowercase. -->
28
+ <xsd:element name="storefront-type" type="simpleType.Generic.String.32" minOccurs="1" maxOccurs="1"/>
29
+ <!--
30
+ Deprecated. Retained solely for backward compatibility: storefront import validates incoming
31
+ files against this schema (StorefrontImpexUnit.setSchema), so pre-cleanup export files that still
32
+ carry <storefront-status> must remain declared here to pass validation. Optional and ignored on
33
+ import; no longer emitted on export. Do not add new consumers.
34
+ -->
35
+ <xsd:element name="storefront-status" type="simpleType.Generic.String.32" minOccurs="0" maxOccurs="1"/>
29
36
  <xsd:element name="associated-sites" type="complexType.AssociatedSites" minOccurs="0" maxOccurs="1"/>
30
- <xsd:element name="user-id" type="simpleType.Generic.String.48" minOccurs="1" maxOccurs="1"/>
37
+ <!--
38
+ Optional. For interactive Business Manager (session-based) imports the importer's authenticated
39
+ session identity is authoritative and this value is ignored. It supplies the acting identity only for
40
+ server-to-server (client-credentials) imports, which have no session; such imports are rejected if it
41
+ is absent or unauthorized. Retained and declared here because storefront import validates incoming
42
+ files against this schema (StorefrontImpexUnit.setSchema).
43
+ -->
44
+ <xsd:element name="user-id" type="simpleType.Generic.String.48" minOccurs="0" maxOccurs="1"/>
31
45
  <xsd:element name="org-slug" type="simpleType.Generic.String.64" minOccurs="1" maxOccurs="1"/>
32
46
  <xsd:element name="mrt-site" type="simpleType.Generic.String.64" minOccurs="1" maxOccurs="1"/>
33
47
  <xsd:element name="scm-repo" type="simpleType.Generic.String.512" minOccurs="0" maxOccurs="1"/>
34
48
  <xsd:element name="scm-target" type="simpleType.Generic.String.64" minOccurs="0" maxOccurs="1"/>
49
+ <!--
50
+ Deprecated (W-23546554). Retained solely for backward compatibility: storefront import validates
51
+ incoming files against this schema (StorefrontImpexUnit.setSchema), so pre-cleanup export files that
52
+ still carry <github-app-installation> must remain declared here to pass validation. Optional and
53
+ ignored on import; no longer emitted on export. Carrying the source realm's GitHub App installation
54
+ onto a target would enable a cross-realm credential-leak (spike W-23298074 3.3), so it is dropped on
55
+ import and the GitHub App must be reconnected manually. Do not add new consumers. This element will be
56
+ removed in a future schema version once all pre-cleanup export files carrying it have cycled out.
57
+ -->
35
58
  <xsd:element name="github-app-installation" type="complexType.GitHubAppInstallation" minOccurs="0" maxOccurs="1"/>
36
59
  </xsd:sequence>
37
60
  <xsd:attribute name="storefront-name" type="simpleType.Generic.NonEmptyString.64" use="required"/>
38
- <xsd:attribute name="mode" type="simpleType.ImportMode"/>
61
+ <!--
62
+ Deprecated. Retained solely for backward compatibility: pre-cleanup delta-export files could carry
63
+ mode="delete". Optional and ignored on import (the import delete decision is driven by the framework
64
+ import mode, not this attribute); no longer emitted on export. Do not add new consumers.
65
+ -->
66
+ <xsd:attribute name="mode" type="simpleType.Generic.String.32"/>
39
67
  </xsd:complexType>
40
68
 
41
- <!-- GitHub App Installation -->
69
+ <!-- GitHub App Installation. Deprecated (W-23546554): declared only so legacy files that still carry
70
+ <github-app-installation> validate on import. Ignored on import, never exported. Do not add new consumers. -->
42
71
  <xsd:complexType name="complexType.GitHubAppInstallation" mixed="false">
43
72
  <xsd:sequence>
44
73
  <xsd:element name="app-id" type="simpleType.Generic.String.64" minOccurs="1" maxOccurs="1"/>
@@ -57,49 +86,6 @@
57
86
  </xsd:sequence>
58
87
  </xsd:complexType>
59
88
 
60
- <!-- Storefront Type enumeration -->
61
- <xsd:simpleType name="simpleType.StorefrontType">
62
- <xsd:restriction base="xsd:string">
63
- <xsd:enumeration value="composable"/>
64
- <xsd:enumeration value="headless"/>
65
- </xsd:restriction>
66
- </xsd:simpleType>
67
-
68
- <!--
69
- Storefront Status enumeration.
70
-
71
- These values must stay in sync with StorefrontSetupStatusEnum (core/internal/storefront).
72
- There is no compile-time link between this XSD and the Java enum; drift is caught by
73
- comparing the JAXB-generated SimpleTypeStorefrontStatus against StorefrontSetupStatusEnum
74
- in _JAXBStorefrontExportHandler (testStorefrontStatusEnumAndXsdInSync).
75
-
76
- Export currently restricts output to SUCCESS storefronts only
77
- (JAXBStorefrontExportHandler.mapStorefront). Adding a new exportable status requires:
78
- 1. Adding the value here
79
- 2. Adding the enum constant in StorefrontSetupStatusEnum
80
- 3. Updating the export guard in mapStorefront to allow the new status
81
- 4. Updating the sync unit test's expected set if needed
82
- -->
83
- <xsd:simpleType name="simpleType.StorefrontStatus">
84
- <xsd:restriction base="xsd:string">
85
- <xsd:enumeration value="in_progress"/>
86
- <xsd:enumeration value="success"/>
87
- <xsd:enumeration value="backfilled"/>
88
- <xsd:enumeration value="failed"/>
89
- <xsd:enumeration value="delete_in_progress"/>
90
- <xsd:enumeration value="delete_failed"/>
91
- <xsd:enumeration value="deleted"/>
92
- <xsd:enumeration value="unknown"/>
93
- </xsd:restriction>
94
- </xsd:simpleType>
95
-
96
- <!-- Import Mode -->
97
- <xsd:simpleType name="simpleType.ImportMode">
98
- <xsd:restriction base="xsd:string">
99
- <xsd:enumeration value="delete"/>
100
- </xsd:restriction>
101
- </xsd:simpleType>
102
-
103
89
  <!-- simple generic types -->
104
90
  <xsd:simpleType name="simpleType.Generic.String">
105
91
  <xsd:restriction base="xsd:string"/>
@@ -25,3 +25,46 @@
25
25
  * @see https://datatracker.ietf.org/doc/html/rfc6749#appendix-B
26
26
  */
27
27
  export declare function encodeBasicClientCredentials(clientId: string, clientSecret: string): string;
28
+ /**
29
+ * How OAuth client credentials are sent to the token endpoint.
30
+ *
31
+ * - `basic`: `Authorization: Basic` header with each component form-url-encoded
32
+ * per RFC 6749 §2.3.1 (`client_secret_basic`). The default.
33
+ * - `basic-unencoded`: `Authorization: Basic` header over the raw `id:secret`,
34
+ * without per-component encoding. For proxies and brokers that substitute a
35
+ * literal value into the decoded header. A secret containing `+` or `%` is
36
+ * misread by Account Manager in this mode.
37
+ * - `body`: `client_id` and `client_secret` in the form-url-encoded request body
38
+ * (`client_secret_post`).
39
+ */
40
+ export type ClientAuthMethod = 'basic' | 'basic-unencoded' | 'body';
41
+ /** All supported client authentication methods. */
42
+ export declare const CLIENT_AUTH_METHODS: readonly ["basic", "basic-unencoded", "body"];
43
+ /**
44
+ * Returns true when a value is a sandbox credential placeholder rather than a
45
+ * real secret.
46
+ *
47
+ * @param value - The credential value to inspect
48
+ */
49
+ export declare function isCredentialPlaceholder(value: string): boolean;
50
+ /**
51
+ * Resolves the effective client authentication method. An explicit method
52
+ * always wins; otherwise a sandbox credential placeholder selects
53
+ * `basic-unencoded` (so the proxy can find it in the header) and everything
54
+ * else uses `basic`.
55
+ *
56
+ * @param clientSecret - The OAuth client password/secret
57
+ * @param method - The configured method, if any
58
+ */
59
+ export declare function resolveClientAuthMethod(clientSecret: string, method?: ClientAuthMethod): ClientAuthMethod;
60
+ /**
61
+ * Applies OAuth client authentication to a token request using the method
62
+ * chosen by {@link resolveClientAuthMethod}. Account Manager accepts all of them.
63
+ *
64
+ * @param params - The token request body; credentials are appended in the `body` case
65
+ * @param clientId - The OAuth client identifier
66
+ * @param clientSecret - The OAuth client password/secret
67
+ * @param method - The configured client authentication method, if any
68
+ * @returns Headers to add to the token request (empty in the `body` case)
69
+ */
70
+ export declare function applyClientCredentials(params: URLSearchParams, clientId: string, clientSecret: string, method?: ClientAuthMethod): Record<string, string>;
@@ -57,4 +57,59 @@ export function encodeBasicClientCredentials(clientId, clientSecret) {
57
57
  const userPass = `${formUrlEncodeComponent(clientId)}:${formUrlEncodeComponent(clientSecret)}`;
58
58
  return Buffer.from(userPass).toString('base64');
59
59
  }
60
+ /** All supported client authentication methods. */
61
+ export const CLIENT_AUTH_METHODS = ['basic', 'basic-unencoded', 'body'];
62
+ /**
63
+ * Markers used by credential-brokering sandboxes (NVIDIA OpenShell) for the
64
+ * placeholder values they expose in place of real secrets. The sandbox proxy
65
+ * swaps the real secret in on the wire, but only where it recognizes the
66
+ * placeholder: it matches a raw placeholder inside a decoded Basic header, so
67
+ * the per-component form-url-encoding above (`:` -> `%3A`) hides it.
68
+ */
69
+ const CREDENTIAL_PLACEHOLDER_MARKERS = ['openshell:resolve:env:', 'OPENSHELL-RESOLVE-ENV-'];
70
+ /**
71
+ * Returns true when a value is a sandbox credential placeholder rather than a
72
+ * real secret.
73
+ *
74
+ * @param value - The credential value to inspect
75
+ */
76
+ export function isCredentialPlaceholder(value) {
77
+ return CREDENTIAL_PLACEHOLDER_MARKERS.some((marker) => value.includes(marker));
78
+ }
79
+ /**
80
+ * Resolves the effective client authentication method. An explicit method
81
+ * always wins; otherwise a sandbox credential placeholder selects
82
+ * `basic-unencoded` (so the proxy can find it in the header) and everything
83
+ * else uses `basic`.
84
+ *
85
+ * @param clientSecret - The OAuth client password/secret
86
+ * @param method - The configured method, if any
87
+ */
88
+ export function resolveClientAuthMethod(clientSecret, method) {
89
+ if (method)
90
+ return method;
91
+ return isCredentialPlaceholder(clientSecret) ? 'basic-unencoded' : 'basic';
92
+ }
93
+ /**
94
+ * Applies OAuth client authentication to a token request using the method
95
+ * chosen by {@link resolveClientAuthMethod}. Account Manager accepts all of them.
96
+ *
97
+ * @param params - The token request body; credentials are appended in the `body` case
98
+ * @param clientId - The OAuth client identifier
99
+ * @param clientSecret - The OAuth client password/secret
100
+ * @param method - The configured client authentication method, if any
101
+ * @returns Headers to add to the token request (empty in the `body` case)
102
+ */
103
+ export function applyClientCredentials(params, clientId, clientSecret, method) {
104
+ switch (resolveClientAuthMethod(clientSecret, method)) {
105
+ case 'basic-unencoded':
106
+ return { Authorization: `Basic ${Buffer.from(`${clientId}:${clientSecret}`).toString('base64')}` };
107
+ case 'body':
108
+ params.set('client_id', clientId);
109
+ params.set('client_secret', clientSecret);
110
+ return {};
111
+ default:
112
+ return { Authorization: `Basic ${encodeBasicClientCredentials(clientId, clientSecret)}` };
113
+ }
114
+ }
60
115
  //# sourceMappingURL=client-credentials.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-credentials.js","sourceRoot":"","sources":["../../../src/auth/client-credentials.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAS,sBAAsB,CAAC,KAAa;IAC3C,6EAA6E;IAC7E,OAAO,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,4BAA4B,CAAC,QAAgB,EAAE,YAAoB;IACjF,MAAM,QAAQ,GAAG,GAAG,sBAAsB,CAAC,QAAQ,CAAC,IAAI,sBAAsB,CAAC,YAAY,CAAC,EAAE,CAAC;IAC/F,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAClD,CAAC"}
1
+ {"version":3,"file":"client-credentials.js","sourceRoot":"","sources":["../../../src/auth/client-credentials.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAS,sBAAsB,CAAC,KAAa;IAC3C,6EAA6E;IAC7E,OAAO,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,4BAA4B,CAAC,QAAgB,EAAE,YAAoB;IACjF,MAAM,QAAQ,GAAG,GAAG,sBAAsB,CAAC,QAAQ,CAAC,IAAI,sBAAsB,CAAC,YAAY,CAAC,EAAE,CAAC;IAC/F,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAClD,CAAC;AAgBD,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAgD,CAAC;AAEvH;;;;;;GAMG;AACH,MAAM,8BAA8B,GAAG,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAC;AAE5F;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa;IACnD,OAAO,8BAA8B,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AACjF,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB,CAAC,YAAoB,EAAE,MAAyB;IACrF,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,OAAO,uBAAuB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC;AAC7E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAuB,EACvB,QAAgB,EAChB,YAAoB,EACpB,MAAyB;IAEzB,QAAQ,uBAAuB,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE,CAAC;QACtD,KAAK,iBAAiB;YACpB,OAAO,EAAC,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,IAAI,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAC,CAAC;QACnG,KAAK,MAAM;YACT,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;YAClC,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;YAC1C,OAAO,EAAE,CAAC;QACZ;YACE,OAAO,EAAC,aAAa,EAAE,SAAS,4BAA4B,CAAC,QAAQ,EAAE,YAAY,CAAC,EAAE,EAAC,CAAC;IAC5F,CAAC;AACH,CAAC"}
@@ -56,7 +56,8 @@
56
56
  */
57
57
  export type { AuthStrategy, UserAuthStrategy, FetchInit, AccessTokenResponse, DecodedJWT, AuthConfig, BasicAuthConfig, OAuthAuthConfig, ApiKeyAuthConfig, AuthMethod, AuthCredentials, } from './types.js';
58
58
  export { ALL_AUTH_METHODS } from './types.js';
59
- export { encodeBasicClientCredentials } from './client-credentials.js';
59
+ export { applyClientCredentials, CLIENT_AUTH_METHODS, encodeBasicClientCredentials, isCredentialPlaceholder, resolveClientAuthMethod, } from './client-credentials.js';
60
+ export type { ClientAuthMethod } from './client-credentials.js';
60
61
  export { BasicAuthStrategy } from './basic.js';
61
62
  export { OAuthStrategy, decodeJWT } from './oauth.js';
62
63
  export type { OAuthConfig } from './oauth.js';
@@ -61,7 +61,7 @@
61
61
  */
62
62
  export { ALL_AUTH_METHODS } from './types.js';
63
63
  // Client credential encoding (RFC 6749 §2.3.1)
64
- export { encodeBasicClientCredentials } from './client-credentials.js';
64
+ export { applyClientCredentials, CLIENT_AUTH_METHODS, encodeBasicClientCredentials, isCredentialPlaceholder, resolveClientAuthMethod, } from './client-credentials.js';
65
65
  // Strategies
66
66
  export { BasicAuthStrategy } from './basic.js';
67
67
  export { OAuthStrategy, decodeJWT } from './oauth.js';