@salesforce/b2c-cli 1.10.0 → 1.12.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/commands/job/import.d.ts +1 -0
- package/dist/commands/job/import.js +15 -0
- package/dist/commands/job/import.js.map +1 -1
- package/dist/commands/setup/ide/tsserver-plugin.d.ts +56 -0
- package/dist/commands/setup/ide/tsserver-plugin.js +88 -0
- package/dist/commands/setup/ide/tsserver-plugin.js.map +1 -0
- package/dist/commands/setup/ide/vscode-types.d.ts +44 -0
- package/dist/commands/setup/ide/vscode-types.js +141 -0
- package/dist/commands/setup/ide/vscode-types.js.map +1 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/package.json +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/plugin/index.js +575 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/APIException.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/ConversionError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/EvalError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Fault.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/IOError.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/InternalError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Module.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Namespace.d.ts +77 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/QName.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/RangeError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/ReferenceError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/StopIteration.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/SyntaxError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/SystemError.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/TypeError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/URIError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XML.d.ts +398 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XMLList.d.ts +155 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XMLStreamError.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/arguments.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/Alert.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/Alerts.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTest.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTestMgr.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTestSegment.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/AmountDiscount.d.ts +22 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ApproachingDiscount.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/BonusChoiceDiscount.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/BonusDiscount.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Campaign.d.ts +167 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CampaignMgr.d.ts +192 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CampaignStatusCodes.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Coupon.d.ts +146 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponMgr.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponRedemption.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponStatusCodes.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Discount.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/DiscountPlan.d.ts +161 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FixedPriceDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FixedPriceShippingDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FreeDiscount.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FreeShippingDiscount.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PercentageDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PercentageOptionDiscount.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PriceBookPriceDiscount.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Promotion.d.ts +455 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PromotionMgr.d.ts +262 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PromotionPlan.d.ts +180 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SlotContent.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeGroup.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeInfo.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeStatusCodes.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/TotalFixedPriceDiscount.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/index.d.ts +65 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Catalog.d.ts +84 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CatalogMgr.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Category.d.ts +592 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CategoryAssignment.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CategoryLink.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/PriceBook.d.ts +94 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/PriceBookMgr.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Product.d.ts +1100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductActiveData.d.ts +593 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAttributeModel.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAvailabilityLevels.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAvailabilityModel.d.ts +359 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryList.d.ts +65 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryMgr.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryRecord.d.ts +296 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductLink.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductMgr.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOption.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOptionModel.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOptionValue.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceInfo.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceModel.d.ts +586 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceTable.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchHit.d.ts +398 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchModel.d.ts +816 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinementDefinition.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinementValue.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinements.d.ts +142 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationAttribute.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationAttributeValue.d.ts +90 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationModel.d.ts +508 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Recommendation.d.ts +139 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchModel.d.ts +277 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinementDefinition.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinementValue.d.ts +93 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinements.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SortingOption.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SortingRule.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Store.d.ts +214 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreGroup.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreInventoryFilter.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreInventoryFilterValue.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreMgr.d.ts +86 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Variant.d.ts +555 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/VariationGroup.d.ts +422 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/index.d.ts +93 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Content.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentMgr.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchModel.d.ts +230 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinementDefinition.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinementValue.d.ts +10 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinements.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Folder.d.ts +186 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Library.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/MarkupText.d.ts +125 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/MediaFile.d.ts +297 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/index.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/CertificateRef.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/CertificateUtils.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Cipher.d.ts +178 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Encoding.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWE.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWEHeader.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWS.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWSHeader.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/KeyRef.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Mac.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/MessageDigest.d.ts +108 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/SecureRandom.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Signature.d.ts +88 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakCipher.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMac.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMessageDigest.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakSignature.d.ts +63 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/X509Certificate.d.ts +73 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/index.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AddressBook.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AgentUserMgr.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AgentUserStatusCodes.d.ts +64 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AuthenticationStatus.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Credentials.d.ts +266 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Customer.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerActiveData.d.ts +276 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerAddress.d.ts +280 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerCDPData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerContextMgr.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerGroup.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerList.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerMgr.d.ts +611 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerPasswordConstraints.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerPaymentInstrument.d.ts +118 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerStatusCodes.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/EncryptedObject.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ExternalProfile.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/OrderHistory.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductList.d.ts +376 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListItem.d.ts +204 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListItemPurchase.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListMgr.d.ts +190 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListRegistrant.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Profile.d.ts +420 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Wallet.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ConsentStatusEntry.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/MarketingConsentSubscription.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentErrorCodes.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentException.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentMgr.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/index.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/index.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthAccessTokenResponse.d.ts +71 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthFinalizedResponse.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthLoginFlowMgr.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthUserInfoResponse.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContext.d.ts +171 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextErrorCodes.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextException.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextMgr.d.ts +130 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/AspectAttributeValidationException.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Component.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/ComponentRenderSettings.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/ComponentScriptContext.d.ts +96 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/CustomEditor.d.ts +80 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/CustomEditorResources.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Page.d.ts +255 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageMgr.d.ts +311 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageScriptContext.d.ts +127 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Region.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/RegionRenderSettings.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/cms/CMSRecord.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/cms/index.d.ts +5 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/FocalPoint.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/Image.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/ImageMetaData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/index.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/ApplePayHookResult.d.ts +104 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/ApplePayHooks.d.ts +271 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/FacebookFeedHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/FacebookProduct.d.ts +567 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentapi/PaymentApiHooks.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentapi/index.d.ts +5 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/PaymentRequestHookResult.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/PaymentRequestHooks.d.ts +168 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceAdyenPaymentIntent.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceAdyenSavedPaymentMethod.d.ts +126 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceBancontactPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceCardPaymentDetails.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceEpsPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceIdealPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceKlarnaPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrder.d.ts +109 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrderAddress.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrderPayer.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentDetails.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentIntent.d.ts +116 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentMethod.d.ts +162 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentRequest.d.ts +562 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsHooks.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMerchantAccount.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMerchantAccountPaymentMethod.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMgr.d.ts +420 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsSiteConfiguration.d.ts +84 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsZone.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceSepaDebitPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceVenmoPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/index.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestAvailability.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestFeedHooks.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestOrder.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestOrderHooks.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestProduct.d.ts +302 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/index.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/CSVStreamReader.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/CSVStreamWriter.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/File.d.ts +343 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/FileReader.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/FileWriter.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/InputStream.d.ts +15 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/OutputStream.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/PrintWriter.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/RandomAccessFileReader.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/Reader.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/StringWriter.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/Writer.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLIndentingStreamWriter.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamConstants.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamReader.d.ts +674 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamWriter.d.ts +204 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/index.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/JobExecution.d.ts +52 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/JobStepExecution.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/FTPClient.d.ts +219 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/FTPFileInfo.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClient.d.ts +337 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClientLoggingConfig.d.ts +180 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPRequestPart.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/Mail.d.ts +182 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/SFTPClient.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/SFTPFileInfo.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/WebDAVClient.d.ts +324 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/WebDAVFileInfo.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/index.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ActiveData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomAttributes.d.ts +143 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomObject.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomObjectMgr.d.ts +283 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/Extensible.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ExtensibleObject.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/Note.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeDefinition.d.ts +239 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeGroup.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeValueDefinition.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectTypeDefinition.d.ts +113 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/PersistentObject.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/SimpleExtensible.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/SystemObjectMgr.d.ts +319 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/index.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AbstractItem.d.ts +91 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AbstractItemCtnr.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Appeasement.d.ts +163 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AppeasementItem.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Basket.d.ts +476 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BasketMgr.d.ts +406 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BonusDiscountLineItem.d.ts +170 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CouponLineItem.d.ts +139 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateAgentBasketLimitExceededException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateBasketFromOrderException.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateCouponLineItemException.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateOrderException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateTemporaryBasketLimitExceededException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificate.d.ts +220 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateLineItem.d.ts +124 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateMgr.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateStatusCodes.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Invoice.d.ts +284 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/InvoiceItem.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItem.d.ts +265 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemCtnr.d.ts +1146 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemTax.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Order.d.ts +1360 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderAddress.d.ts +259 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderItem.d.ts +332 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderMgr.d.ts +864 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderPaymentInstrument.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderProcessStatusCodes.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentCard.d.ts +112 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentInstrument.d.ts +757 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentMethod.d.ts +141 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentMgr.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentProcessor.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentStatusCodes.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentTransaction.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PriceAdjustment.d.ts +430 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PriceAdjustmentLimitTypes.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductLineItem.d.ts +849 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingCost.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingLineItem.d.ts +154 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingModel.d.ts +73 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Return.d.ts +161 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnCase.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnCaseItem.d.ts +165 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnItem.d.ts +159 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Shipment.d.ts +506 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShipmentShippingCost.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShipmentShippingModel.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingLineItem.d.ts +151 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingLocation.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingMethod.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingMgr.d.ts +95 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingOrder.d.ts +304 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingOrderItem.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/SumItem.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxGroup.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxItem.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxMgr.d.ts +155 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TrackingInfo.d.ts +107 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TrackingRef.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/BasketMergeHooks.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/CalculateHooks.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/CheckoutHooks.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/OrderHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/PaymentHooks.d.ts +189 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/ReturnHooks.d.ts +274 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/ShippingOrderHooks.d.ts +220 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/TaxHooks.d.ts +378 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/index.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/index.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/SOAPUtil.d.ts +339 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/Stub.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/WebReference.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/SitemapFile.d.ts +57 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/SitemapMgr.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/BrandSuggestions.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/CategorySuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/ContentSuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/CustomSuggestions.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/ProductSuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SearchPhraseSuggestions.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestModel.d.ts +230 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedCategory.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedContent.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedPhrase.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedProduct.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedTerm.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedTerms.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/Suggestions.d.ts +89 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/index.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/FTPService.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/FTPServiceDefinition.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPFormService.d.ts +14 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPFormServiceDefinition.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPService.d.ts +147 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPServiceDefinition.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/LocalServiceRegistry.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/Result.d.ts +133 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/SOAPService.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/SOAPServiceDefinition.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/Service.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceCallback.d.ts +172 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceConfig.d.ts +52 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceCredential.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceDefinition.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceProfile.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceRegistry.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/index.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/AgentUserStatusCodes.d.ts +14 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Cache.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/CacheMgr.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/HookMgr.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/InternalObject.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/JobProcessMonitor.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Log.d.ts +77 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/LogNDC.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Logger.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/OrganizationPreferences.d.ts +40 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Pipeline.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/PipelineDictionary.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTErrorResponse.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTResponseMgr.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTSuccessResponse.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RemoteInclude.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Request.d.ts +363 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RequestHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Response.d.ts +278 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/SearchStatus.d.ts +74 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Session.d.ts +263 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Site.d.ts +247 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/SitePreferences.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Status.d.ts +141 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/StatusItem.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/System.d.ts +96 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Transaction.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/index.d.ts +57 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/ISML.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/Velocity.d.ts +71 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/ArrayList.d.ts +40 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Assert.d.ts +159 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/BigInteger.d.ts +104 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Bytes.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Calendar.d.ts +450 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Collection.d.ts +91 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Currency.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/DateUtils.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Decimal.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/FilteringCollection.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Geolocation.d.ts +111 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/HashMap.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/HashSet.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Iterator.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/LinkedHashMap.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/LinkedHashSet.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/List.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Locale.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Map.d.ts +82 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MapEntry.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MappingKey.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MappingMgr.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/PropertyComparator.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SecureEncoder.d.ts +371 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SecureFilter.d.ts +340 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SeekableIterator.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Set.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SortedMap.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SortedSet.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/StringUtils.d.ts +191 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Template.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/UUIDUtils.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/index.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/EnumValue.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/MimeEncodedText.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/Money.d.ts +196 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/Quantity.d.ts +103 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/CSRFProtection.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/ClickStream.d.ts +87 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/ClickStreamEntry.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Cookie.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Cookies.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Form.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormAction.d.ts +82 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormElement.d.ts +92 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormElementValidationResult.d.ts +63 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormField.d.ts +331 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormFieldOption.d.ts +90 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormFieldOptions.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormGroup.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormList.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormListItem.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Forms.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/HttpParameter.d.ts +195 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/HttpParameterMap.d.ts +92 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/LoopIterator.d.ts +95 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PageMetaData.d.ts +87 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PageMetaTag.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PagingModel.d.ts +181 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Resource.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URL.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLAction.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLParameter.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLRedirect.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLRedirectMgr.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLUtils.d.ts +759 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/index.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/Port.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/WSUtil.d.ts +311 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/WebReference2.d.ts +120 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/global.d.ts +1101 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/sfra/server.d.ts +271 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/upstream-package.json +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/upstream-tsconfig.json +7 -0
- package/oclif.manifest.json +4160 -3853
- package/package.json +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This class is used as a reference to a certificate or public key.
|
|
3
|
+
*
|
|
4
|
+
* Note: this class handles sensitive security-related data.
|
|
5
|
+
* Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
|
|
6
|
+
*/
|
|
7
|
+
declare class CertificateRef {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a `CertificateRef` from the passed alias as a reference to a certificate in Business Manager.
|
|
10
|
+
* No check is made whether the alias is actually valid until the time that this `CertificateRef` is
|
|
11
|
+
* used to resolve a certificate or public key.
|
|
12
|
+
*/
|
|
13
|
+
constructor(alias: string);
|
|
14
|
+
/**
|
|
15
|
+
* Returns the string representation of this CertificateRef.
|
|
16
|
+
*/
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export = CertificateRef;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import X509Certificate = require('./X509Certificate');
|
|
2
|
+
import CertificateRef = require('./CertificateRef');
|
|
3
|
+
import KeyRef = require('./KeyRef');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Utilities for managing certificates and keys.
|
|
7
|
+
*/
|
|
8
|
+
declare class CertificateUtils {
|
|
9
|
+
private constructor();
|
|
10
|
+
/**
|
|
11
|
+
* Gets the certificate from the given certificate reference.
|
|
12
|
+
* @throws Exception if the reference is invalid or does not refer to an X.509 certificate
|
|
13
|
+
*/
|
|
14
|
+
static getCertificate(certificateRef: CertificateRef): X509Certificate;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the public certificate from the given private key reference.
|
|
17
|
+
* @throws Exception if the reference is invalid or there is no X.509 certificate
|
|
18
|
+
*/
|
|
19
|
+
static getCertificate(keyRef: KeyRef): X509Certificate;
|
|
20
|
+
/**
|
|
21
|
+
* Encode the certificate to the base64-encoded DER format.
|
|
22
|
+
*/
|
|
23
|
+
static getEncodedCertificate(certificateRef: CertificateRef): string;
|
|
24
|
+
/**
|
|
25
|
+
* Gets the public key from the given certificate reference.
|
|
26
|
+
*
|
|
27
|
+
* It is exported in the standard X.509 SubjectPublicKeyInfo format and base64-encoded.
|
|
28
|
+
*/
|
|
29
|
+
static getEncodedPublicKey(certificateRef: CertificateRef): string;
|
|
30
|
+
/**
|
|
31
|
+
* Parse the certificate from the base64-encoded DER format.
|
|
32
|
+
*/
|
|
33
|
+
static parseEncodedCertificate(certificate: string): CertificateRef;
|
|
34
|
+
/**
|
|
35
|
+
* Parse the public key from the given key in X.509 SubjectPublicKeyInfo format.
|
|
36
|
+
*
|
|
37
|
+
* The resulting reference contains only the public key. It can be used for cryptographic operations, but not
|
|
38
|
+
* anything that requires the full certificate.
|
|
39
|
+
*/
|
|
40
|
+
static parseEncodedPublicKey(algorithm: string, encodedKey: string): CertificateRef;
|
|
41
|
+
/**
|
|
42
|
+
* Parse the public key from the given base64-encoded JWK string.
|
|
43
|
+
*
|
|
44
|
+
* This returns the public key portion of the JWK, not the `x5c` certificate chain.
|
|
45
|
+
*
|
|
46
|
+
* Only RSA and EC keys are supported.
|
|
47
|
+
*
|
|
48
|
+
* The resulting reference contains only the public key. It can be used for cryptographic operations, but not
|
|
49
|
+
* anything that requires the full certificate.
|
|
50
|
+
*/
|
|
51
|
+
static parsePublicKeyFromJWK(jwk: string): CertificateRef;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export = CertificateUtils;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Cipher.d.ts
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import CertificateRef = require('./CertificateRef');
|
|
2
|
+
import Bytes = require('../util/Bytes');
|
|
3
|
+
import KeyRef = require('./KeyRef');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This class allows access to encryption services offered through the Java
|
|
7
|
+
* Cryptography Architecture (JCA). At this time the implementation of the
|
|
8
|
+
* encryption/decryption methods is based on the default JCE provider of the JDK.
|
|
9
|
+
* See the Java documentation for a reference guide to the underlying security
|
|
10
|
+
* provider and information about the Secure Sockets Extension.
|
|
11
|
+
*
|
|
12
|
+
* You can find a good overview of the essential purposes of cryptography and
|
|
13
|
+
* some common implementations in the Wikipedia article on cryptography.
|
|
14
|
+
* Also see the website of the National Institute of Standards and Technology.
|
|
15
|
+
* The format of various files used to hold keys, certificate signing requests,
|
|
16
|
+
* and the like, as well as some related algorithms, are defined in the PKCS series of
|
|
17
|
+
* documents published by RSALabs (the research arm of RSA Security).
|
|
18
|
+
*
|
|
19
|
+
* Many internet standards documenting security protocols and concepts are described
|
|
20
|
+
* in documents originally described as "Request For Comment" and thus widely known
|
|
21
|
+
* as RFCs. Many of them are available on the Internet FAQ Archives website.
|
|
22
|
+
*
|
|
23
|
+
* dw.crypto.Cipher is intentionally an Adapter to the full cryptography power supplied
|
|
24
|
+
* in the security provider implementation.
|
|
25
|
+
*
|
|
26
|
+
* Note: this class handles sensitive security-related data.
|
|
27
|
+
* Pay special attention to PCI DSS v3 requirements 2, 4, and 12.
|
|
28
|
+
*/
|
|
29
|
+
declare class Cipher {
|
|
30
|
+
/**
|
|
31
|
+
* Strings containing keys, plain texts, cipher texts etc. are internally
|
|
32
|
+
* converted into byte arrays using this encoding (currently UTF8).
|
|
33
|
+
*/
|
|
34
|
+
static readonly CHAR_ENCODING = "UTF8";
|
|
35
|
+
private constructor();
|
|
36
|
+
/**
|
|
37
|
+
* Decrypts the passed Base-64 encoded message using the passed key and
|
|
38
|
+
* applying the transformations described by the passed parameters.
|
|
39
|
+
*
|
|
40
|
+
* Decryption is the process of getting back the original data from the
|
|
41
|
+
* cipher-text using a decryption key.
|
|
42
|
+
*/
|
|
43
|
+
decrypt(base64Msg: string, key: string, transformation: string, saltOrIV: string, iterations: number): string;
|
|
44
|
+
/**
|
|
45
|
+
* Lower-level decryption API. Decrypts the passed bytes using the specified
|
|
46
|
+
* key and applying the transformations described by the specified
|
|
47
|
+
* parameters.
|
|
48
|
+
*
|
|
49
|
+
* Typical usage:
|
|
50
|
+
* @example
|
|
51
|
+
* var base64Msg : String = "some_encoded_encrypted_message";
|
|
52
|
+
* var charset : String = "UTF8"; // or "windows-1252", etc.
|
|
53
|
+
*
|
|
54
|
+
* var encryptedBytes : Bytes = Encoding.fromBase64(base64Msg);
|
|
55
|
+
* var messageBytes : Bytes = Cipher.decryptBytes(encryptedBytes, key, transformation, salt, iterations);
|
|
56
|
+
* var message : String = messageBytes.toString(charset);
|
|
57
|
+
* @see decrypt_1
|
|
58
|
+
*/
|
|
59
|
+
decryptBytes(encryptedBytes: Bytes, key: string, transformation: string, saltOrIV: string, iterations: number): Bytes;
|
|
60
|
+
/**
|
|
61
|
+
* Encrypt the passed message by using the specified key and applying the
|
|
62
|
+
* transformations described by the specified parameters.
|
|
63
|
+
*
|
|
64
|
+
* Encryption is the process of converting normal data or plain text to
|
|
65
|
+
* something incomprehensible or cipher-text by applying transformations,
|
|
66
|
+
* which are the operation (or set of operations) to be performed on given input
|
|
67
|
+
* to produce some output. A transformation always includes the name of a
|
|
68
|
+
* cryptographic algorithm (for example, RSA) and may be followed by a mode and padding scheme.
|
|
69
|
+
* The supported algorithms are listed in the parameter description below.
|
|
70
|
+
*
|
|
71
|
+
* The cryptographic algorithms can be partitioned into symmetric
|
|
72
|
+
* and asymmetric (or public key/private key).
|
|
73
|
+
*
|
|
74
|
+
* Symmetric or "secret key" algorithms use the same key to encrypt
|
|
75
|
+
* and to decrypt the data. Symmetric algorithms are what most people think
|
|
76
|
+
* of as codes: using a well-known algorithm and a secret key to encode information,
|
|
77
|
+
* which can be decoded using the same algorithm and the same key. The algorithm
|
|
78
|
+
* is not secret, the secrecy is inherent to guarding the key. A significant
|
|
79
|
+
* problem with symmetric ciphers is that it is difficult to transfer the keys
|
|
80
|
+
* themselves securely. Symmetric algorithms include password-based algorithms.
|
|
81
|
+
*
|
|
82
|
+
* AES with key length of 256 bits is the preferred choice for symmetric encryption going forward.
|
|
83
|
+
* Please consider switching to it if you are using any other scheme or if using AES with a
|
|
84
|
+
* shorter key length. The rest of the symmetric algorithms will be deprecated in the future.
|
|
85
|
+
*
|
|
86
|
+
* Asymmetric or "public key" cryptography uses a public/private key pair, and then publishes the public key.
|
|
87
|
+
* Only the holder of the private key will be able to decrypt.
|
|
88
|
+
* The public key and private key together are also called a "key pair".
|
|
89
|
+
* Data encrypted with one key can only be decrypted using the other key
|
|
90
|
+
* from the pair, and it is not possible to deduce one key from the other.
|
|
91
|
+
* This helps to solve the key distribution problem since it is possible to
|
|
92
|
+
* publicise one of the keys widely (the "public key") and keep the other
|
|
93
|
+
* a closely guarded secret (the "private key"). Many partners can then
|
|
94
|
+
* send data encrypted with the public key, but only the holder of the
|
|
95
|
+
* corresponding private key can decrypt it.
|
|
96
|
+
*
|
|
97
|
+
* Key pairs for asymmetric ciphers can be generated with an arbitrary tool.
|
|
98
|
+
* One of the most popular options is the open source tool OpenSSL.
|
|
99
|
+
* OpenSSL has a command-line syntax and is available on major platforms.
|
|
100
|
+
*
|
|
101
|
+
* The following steps are involved in creating an RSA key pair:
|
|
102
|
+
*
|
|
103
|
+
* - Generate an RSA private key with keylength of 2048 bits. Store this key in a safe place.
|
|
104
|
+
*
|
|
105
|
+
* ```
|
|
106
|
+
* openssl genrsa -out rsaprivatekey.pem 2048
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* - Generate a public key from the private key. You use the public key to encrypt messages with Cipher.encrypt. OpenSSL saves the key PEM-encoded; this means the key is saved with a base64 encoding. After you removed the header and footer lines you can pass the content directly to the API method.
|
|
110
|
+
*
|
|
111
|
+
* ```
|
|
112
|
+
* openssl rsa -in rsaprivatekey.pem -out publickey.pem -pubout
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* - Generate a private key in PKCS#8 format. You use that key to decrypt messages with Cipher.decrypt. OpenSSL saves the key PEM-encoded; this means the key is saved with a base64 encoding. After you removed the header and footer lines you can pass the content directly to the API method.
|
|
116
|
+
*
|
|
117
|
+
* ```
|
|
118
|
+
* openssl pkcs8 -topk8 -in rsaprivatekey.pem -out privatekey.pem -nocrypt
|
|
119
|
+
* ```
|
|
120
|
+
*
|
|
121
|
+
* Modes
|
|
122
|
+
*
|
|
123
|
+
* The following modes of operation are block cipher operations that
|
|
124
|
+
* are used with some algorithms.
|
|
125
|
+
*
|
|
126
|
+
* - "NONE" no mode
|
|
127
|
+
* - "CBC" Cipher Block Chaining (defined in FIPS PUB 81)
|
|
128
|
+
* - "CTR" Counter mode or Segmented Integer Counter mode (defined in FIPS PUB 81)
|
|
129
|
+
* - "CTS" CipherText Streaming mode
|
|
130
|
+
* - "CFB" Cipher Feedback Mode, can be referred to with key
|
|
131
|
+
* length referenced as "CFB8","CFB16","CFB24".."CFB64" (defined in FIPS PUB 81)
|
|
132
|
+
* - "ECB" Electronic Cook book as defined in: The National
|
|
133
|
+
* Institute of Standards and Technology (NIST) Federal Information
|
|
134
|
+
* Processing Standard (FIPS) PUB 81, "DES Modes of Operation,"
|
|
135
|
+
* U.S. Department of Commerce, Dec 1980.
|
|
136
|
+
* - "OFB" Output Feedback Mode, can be referred to with key
|
|
137
|
+
* length referenced as "OFB8","OFB16","OFB24".."OFB64" (defined in FIPS PUB 81)
|
|
138
|
+
* - "PCBC" Propagating Cipher Block Chaining (defined in Kerberos V4)
|
|
139
|
+
*
|
|
140
|
+
* Paddings
|
|
141
|
+
*
|
|
142
|
+
* - "NoPadding": No padding.
|
|
143
|
+
* - OAEPWith<digest>And<mgf>Padding:
|
|
144
|
+
*
|
|
145
|
+
* Optimal Asymmetric Encryption
|
|
146
|
+
* Padding scheme defined in PKCS#1, where <digest> should be replaced
|
|
147
|
+
* by the message digest and <mgf> by the mask generation function.
|
|
148
|
+
*
|
|
149
|
+
* Examples: OAEPWITHSHA-256ANDMGF1PADDING, OAEPWITHSHA-384ANDMGF1PADDING, OAEPWITHSHA-512ANDMGF1PADDING
|
|
150
|
+
* - ISO10126PADDING: the ISO10126-2:1991 DEA padding scheme
|
|
151
|
+
* - PKCS1Padding: Public Key Cryptography Standard #1, a standard
|
|
152
|
+
* for padding from RSA Laboratories that can encrypt messages up
|
|
153
|
+
* to 11 bytes smaller than the modulus size in bytes.
|
|
154
|
+
* - PKCS5Padding: Public Key Cryptography Standard #1, a standard
|
|
155
|
+
* for padding from RSA Laboratories, "PKCS#5: Password-Based Encryption Standard," version 1.5, November 1993.
|
|
156
|
+
* - SSL3Padding: The padding scheme defined in the SSL Protocol Version 3.0, November 18, 1996, section 5.2.3.2 (CBC block cipher)
|
|
157
|
+
*/
|
|
158
|
+
encrypt(message: string, key: string, transformation: string, saltOrIV: string, iterations: number): string;
|
|
159
|
+
/**
|
|
160
|
+
* Lower-level encryption API. Encrypts the passed bytes by using the
|
|
161
|
+
* specified key and applying the transformations described by the specified
|
|
162
|
+
* parameters.
|
|
163
|
+
*
|
|
164
|
+
* Typical usage:
|
|
165
|
+
* @example
|
|
166
|
+
* var message : String = "some_message";
|
|
167
|
+
* var charset : String = "UTF8"; // or "windows-1252", etc.
|
|
168
|
+
*
|
|
169
|
+
* // encrypt the message
|
|
170
|
+
* var messageBytes : Bytes = new Bytes(message, charset);
|
|
171
|
+
* var encryptedBytes : Bytes = Cipher.encryptBytes(messageBytes, key, transformation, salt, iterations);
|
|
172
|
+
* var encrypted : String = Encoding.toBase64(encryptedBytes);
|
|
173
|
+
* @see encrypt_1
|
|
174
|
+
*/
|
|
175
|
+
encryptBytes(messageBytes: Bytes, key: string, transformation: string, saltOrIV: string, iterations: number): Bytes;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export = Cipher;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Encoding.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import Bytes = require('../util/Bytes');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Utility class which handles several common character encodings.
|
|
5
|
+
*/
|
|
6
|
+
declare class Encoding {
|
|
7
|
+
private constructor();
|
|
8
|
+
/**
|
|
9
|
+
* Decode the given string which represents a sequence of characters encoded in base-64 to a byte array. This
|
|
10
|
+
* operation supports both the base-64 and base-64 for URL formats. Characters not in the base-64 alphabet are
|
|
11
|
+
* ignored. An exception is thrown if a null value is passed.
|
|
12
|
+
*
|
|
13
|
+
* Note: This decoding operation is limited to the maximum number of bytes that a Bytes object can hold. See
|
|
14
|
+
* dw.util.Bytes.
|
|
15
|
+
*/
|
|
16
|
+
static fromBase64(string: string): Bytes;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a String representing hexadecimal values into an array of bytes
|
|
19
|
+
* of those same values. The returned byte array will be half the length of
|
|
20
|
+
* the passed, as it takes two characters to represent any given byte. An
|
|
21
|
+
* exception is thrown if the passed string has an odd number of character
|
|
22
|
+
* or if any characters in the string are not valid hexadecimal characters.
|
|
23
|
+
* An exception is thrown if a null value is passed.
|
|
24
|
+
*
|
|
25
|
+
* Note: This decoding operation is limited to the maximum number of bytes
|
|
26
|
+
* that a Bytes object can hold. See dw.util.Bytes.
|
|
27
|
+
*/
|
|
28
|
+
static fromHex(string: string): Bytes;
|
|
29
|
+
/**
|
|
30
|
+
* Decodes a URL safe string into its original form. Escaped characters are
|
|
31
|
+
* converted back to their original representation. An exception is thrown
|
|
32
|
+
* if URL decoding is unsuccessful or if null is passed.
|
|
33
|
+
*/
|
|
34
|
+
static fromURI(string: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* Decodes a URL safe string into its original form using the specified
|
|
37
|
+
* encoding. Escaped characters are converted back to their original
|
|
38
|
+
* representation. An exception is thrown if URL decoding is unsuccessful or
|
|
39
|
+
* if the specified encoding is unsupported or if null is passed for either
|
|
40
|
+
* argument.
|
|
41
|
+
*/
|
|
42
|
+
static fromURI(string: string, encoding: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* Convert the given byte array to a string encoded in base-64. This method
|
|
45
|
+
* does not chunk the data by adding line breaks. An exception is thrown
|
|
46
|
+
* if a null value is passed.
|
|
47
|
+
*/
|
|
48
|
+
static toBase64(bytes: Bytes): string;
|
|
49
|
+
/**
|
|
50
|
+
* Convert the given byte array to a string encoded in base-64 for URLs. This method does not chunk the data by
|
|
51
|
+
* adding line breaks and it does not add any padding. An exception is thrown if a null value is passed.
|
|
52
|
+
*/
|
|
53
|
+
static toBase64URL(bytes: Bytes): string;
|
|
54
|
+
/**
|
|
55
|
+
* Converts an array of bytes into a string representing the hexadecimal
|
|
56
|
+
* values of each byte in order. The returned string will be double the
|
|
57
|
+
* length of the passed array, as it takes two characters to represent any
|
|
58
|
+
* given byte. An exception is thrown if a null value is passed.
|
|
59
|
+
*/
|
|
60
|
+
static toHex(bytes: Bytes): string;
|
|
61
|
+
/**
|
|
62
|
+
* Encodes a string into its URL safe form according to the
|
|
63
|
+
* "application/x-www-form-urlencoded" encoding scheme using the default
|
|
64
|
+
* encoding. Unsafe characters are escaped. An exception is thrown if a null
|
|
65
|
+
* value is passed.
|
|
66
|
+
*/
|
|
67
|
+
static toURI(string: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Encodes a string into its URL safe form according to the
|
|
70
|
+
* "application/x-www-form-urlencoded" encoding scheme using the specified
|
|
71
|
+
* encoding. Unsafe characters are escaped. An exception is thrown if the
|
|
72
|
+
* specified encoding is unsupported. An exception is thrown if either
|
|
73
|
+
* argument is null.
|
|
74
|
+
*/
|
|
75
|
+
static toURI(string: string, encoding: string): string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export = Encoding;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import JWEHeader = require('./JWEHeader');
|
|
2
|
+
import Bytes = require('../util/Bytes');
|
|
3
|
+
import utilMap = require('../util/Map');
|
|
4
|
+
import KeyRef = require('./KeyRef');
|
|
5
|
+
import CertificateRef = require('./CertificateRef');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This class represents a JSON Web Encryption (JWE) object.
|
|
9
|
+
*
|
|
10
|
+
* Note: this class handles sensitive security-related data.
|
|
11
|
+
* Pay special attention to PCI DSS v3 requirements 2, 4, and 12.
|
|
12
|
+
*/
|
|
13
|
+
declare class JWE {
|
|
14
|
+
/**
|
|
15
|
+
* Get the algorithm (`alg`) from the header.
|
|
16
|
+
*/
|
|
17
|
+
readonly algorithm: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Get the encryption method (`enc`) from the header.
|
|
20
|
+
*/
|
|
21
|
+
readonly encryptionMethod: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Get a copy of the JWE headers as a Map.
|
|
24
|
+
*/
|
|
25
|
+
readonly headerMap: utilMap<any, any>;
|
|
26
|
+
/**
|
|
27
|
+
* Get the key id (`kid`) from the header.
|
|
28
|
+
*/
|
|
29
|
+
readonly keyID: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Get the decrypted payload.
|
|
32
|
+
*/
|
|
33
|
+
readonly payload: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Construct a new JWE for encryption.
|
|
36
|
+
*/
|
|
37
|
+
constructor(header: JWEHeader, payload: string);
|
|
38
|
+
/**
|
|
39
|
+
* Construct a new JWE for encryption.
|
|
40
|
+
*/
|
|
41
|
+
constructor(header: JWEHeader, payload: Bytes);
|
|
42
|
+
/**
|
|
43
|
+
* Parse a JSON Web Encryption (JWE) object from its compact serialization format.
|
|
44
|
+
*/
|
|
45
|
+
static parse(jwe: string): JWE;
|
|
46
|
+
/**
|
|
47
|
+
* Decrypt the payload of this JWE object.
|
|
48
|
+
*
|
|
49
|
+
* Elliptic Curve (EC) and RSA keys are both supported.
|
|
50
|
+
*
|
|
51
|
+
* Supported EC key management algorithms:
|
|
52
|
+
*
|
|
53
|
+
* - ECDH-ES
|
|
54
|
+
* - ECDH-ES+A128KW
|
|
55
|
+
* - ECDH-ES+A192KW
|
|
56
|
+
* - ECDH-ES+A256KW
|
|
57
|
+
*
|
|
58
|
+
* Supported EC curves:
|
|
59
|
+
*
|
|
60
|
+
* - P-256
|
|
61
|
+
* - P-384
|
|
62
|
+
* - P-521
|
|
63
|
+
*
|
|
64
|
+
* Supported RSA key management algorithms:
|
|
65
|
+
*
|
|
66
|
+
* - RSA-OAEP-256
|
|
67
|
+
* - RSA-OAEP-384
|
|
68
|
+
* - RSA-OAEP-512
|
|
69
|
+
*
|
|
70
|
+
* Supported content encryption algorithms:
|
|
71
|
+
*
|
|
72
|
+
* - A128CBC-HS256
|
|
73
|
+
* - A128CBC-HS384
|
|
74
|
+
* - A128CBC-HS512
|
|
75
|
+
* - A128GCM
|
|
76
|
+
* - A192GCM
|
|
77
|
+
* - A256GCM
|
|
78
|
+
*/
|
|
79
|
+
decrypt(privateKey: KeyRef): void;
|
|
80
|
+
/**
|
|
81
|
+
* Encrypt the payload of this JWE object.
|
|
82
|
+
*
|
|
83
|
+
* Elliptic Curve (EC) and RSA keys are both supported.
|
|
84
|
+
*
|
|
85
|
+
* See decrypt for the list of supported algorithms and encryption methods.
|
|
86
|
+
*/
|
|
87
|
+
encrypt(publicKey: CertificateRef): void;
|
|
88
|
+
/**
|
|
89
|
+
* Get the algorithm (`alg`) from the header.
|
|
90
|
+
*/
|
|
91
|
+
getAlgorithm(): string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Get the encryption method (`enc`) from the header.
|
|
94
|
+
*/
|
|
95
|
+
getEncryptionMethod(): string | null;
|
|
96
|
+
/**
|
|
97
|
+
* Get a copy of the JWE headers as a Map.
|
|
98
|
+
*/
|
|
99
|
+
getHeaderMap(): utilMap<any, any>;
|
|
100
|
+
/**
|
|
101
|
+
* Get the key id (`kid`) from the header.
|
|
102
|
+
*/
|
|
103
|
+
getKeyID(): string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Get the decrypted payload.
|
|
106
|
+
*/
|
|
107
|
+
getPayload(): string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Get this JWE in compact serialization form.
|
|
110
|
+
*/
|
|
111
|
+
serialize(): string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export = JWE;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWEHeader.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import utilMap = require('../util/Map');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This class represents an immutable header of a JWE (JSON Web Encryption) object.
|
|
5
|
+
*/
|
|
6
|
+
declare class JWEHeader {
|
|
7
|
+
/**
|
|
8
|
+
* Get the value of the algorithm parameter (`alg`).
|
|
9
|
+
*/
|
|
10
|
+
readonly algorithm: string;
|
|
11
|
+
/**
|
|
12
|
+
* Get the value of the encryption algorithm parameter (`enc`).
|
|
13
|
+
*/
|
|
14
|
+
readonly encryptionAlgorithm: string;
|
|
15
|
+
private constructor();
|
|
16
|
+
/**
|
|
17
|
+
* Convert the given Map or JavaScript object into a JWE header.
|
|
18
|
+
*
|
|
19
|
+
* All keys correspond to JWE parameters. The algorithm (`alg`) and encryption method
|
|
20
|
+
* (`enc`) parameters are required. See JWE.decrypt for supported values.
|
|
21
|
+
*/
|
|
22
|
+
static parse(map: Object): JWEHeader;
|
|
23
|
+
/**
|
|
24
|
+
* Parse the given string as a Base64URL-encoded JWE header.
|
|
25
|
+
*
|
|
26
|
+
* The algorithm (`alg`) and encryption method (`enc`) parameters are required. See
|
|
27
|
+
* JWE.decrypt for supported values.
|
|
28
|
+
*/
|
|
29
|
+
static parseEncoded(base64encoded: string): JWEHeader;
|
|
30
|
+
/**
|
|
31
|
+
* Parse the given string as a JWE header.
|
|
32
|
+
*
|
|
33
|
+
* The algorithm (`alg`) and encryption method (`enc`) parameters are required. See
|
|
34
|
+
* JWE.decrypt for supported values.
|
|
35
|
+
*/
|
|
36
|
+
static parseJSON(json: string): JWEHeader;
|
|
37
|
+
/**
|
|
38
|
+
* Get the value of the algorithm parameter (`alg`).
|
|
39
|
+
*/
|
|
40
|
+
getAlgorithm(): string;
|
|
41
|
+
/**
|
|
42
|
+
* Get the value of the encryption algorithm parameter (`enc`).
|
|
43
|
+
*/
|
|
44
|
+
getEncryptionAlgorithm(): string;
|
|
45
|
+
/**
|
|
46
|
+
* Get a copy of these headers as a Map.
|
|
47
|
+
*/
|
|
48
|
+
toMap(): utilMap<any, any>;
|
|
49
|
+
/**
|
|
50
|
+
* Get the content of the headers as a JSON String.
|
|
51
|
+
*/
|
|
52
|
+
toString(): string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export = JWEHeader;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import JWSHeader = require('./JWSHeader');
|
|
2
|
+
import Bytes = require('../util/Bytes');
|
|
3
|
+
import utilMap = require('../util/Map');
|
|
4
|
+
import CertificateRef = require('./CertificateRef');
|
|
5
|
+
import KeyRef = require('./KeyRef');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This class represents a JSON Web Signature (JWS) object.
|
|
9
|
+
*
|
|
10
|
+
* Note: this class handles sensitive security-related data.
|
|
11
|
+
* Pay special attention to PCI DSS v3 requirements 2, 4, and 12.
|
|
12
|
+
*/
|
|
13
|
+
declare class JWS {
|
|
14
|
+
/**
|
|
15
|
+
* Get the algorithm (`alg`) from the header.
|
|
16
|
+
*/
|
|
17
|
+
readonly algorithm: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Get a copy of the JWS header.
|
|
20
|
+
*/
|
|
21
|
+
readonly header: JWSHeader;
|
|
22
|
+
/**
|
|
23
|
+
* Get a copy of the JWS header as a Map.
|
|
24
|
+
*/
|
|
25
|
+
readonly headerMap: utilMap<any, any>;
|
|
26
|
+
/**
|
|
27
|
+
* Get the payload from this object.
|
|
28
|
+
*
|
|
29
|
+
* This is available even if the signature has not been verified.
|
|
30
|
+
*/
|
|
31
|
+
readonly payload: string;
|
|
32
|
+
/**
|
|
33
|
+
* Construct a new JWS for signing.
|
|
34
|
+
*/
|
|
35
|
+
constructor(header: JWSHeader, payload: string);
|
|
36
|
+
/**
|
|
37
|
+
* Construct a new JWS for signing.
|
|
38
|
+
*/
|
|
39
|
+
constructor(header: JWSHeader, payload: Bytes);
|
|
40
|
+
/**
|
|
41
|
+
* Parse a JSON Web Signature (JWS) object from its compact serialization format.
|
|
42
|
+
*/
|
|
43
|
+
static parse(jws: string): JWS;
|
|
44
|
+
/**
|
|
45
|
+
* Parse a JSON Web Signature (JWS) object from its compact serialization format.
|
|
46
|
+
*/
|
|
47
|
+
static parse(jws: string, payload: string): JWS;
|
|
48
|
+
/**
|
|
49
|
+
* Parse a JSON Web Signature (JWS) object from its compact serialization format.
|
|
50
|
+
*/
|
|
51
|
+
static parse(jws: string, payload: Bytes): JWS;
|
|
52
|
+
/**
|
|
53
|
+
* Get the algorithm (`alg`) from the header.
|
|
54
|
+
*/
|
|
55
|
+
getAlgorithm(): string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Get a copy of the JWS header.
|
|
58
|
+
*/
|
|
59
|
+
getHeader(): JWSHeader;
|
|
60
|
+
/**
|
|
61
|
+
* Get a copy of the JWS header as a Map.
|
|
62
|
+
*/
|
|
63
|
+
getHeaderMap(): utilMap<any, any>;
|
|
64
|
+
/**
|
|
65
|
+
* Get the payload from this object.
|
|
66
|
+
*
|
|
67
|
+
* This is available even if the signature has not been verified.
|
|
68
|
+
*/
|
|
69
|
+
getPayload(): string;
|
|
70
|
+
/**
|
|
71
|
+
* Get this JWS in compact serialization form.
|
|
72
|
+
*/
|
|
73
|
+
serialize(detachPayload: boolean): string;
|
|
74
|
+
/**
|
|
75
|
+
* Sign the payload using the given private key.
|
|
76
|
+
*
|
|
77
|
+
* The key type and size must match the algorithm given in the JWS header.
|
|
78
|
+
* @throws Exception if there is an error while signing the payload.
|
|
79
|
+
*/
|
|
80
|
+
sign(keyRef: KeyRef): void;
|
|
81
|
+
/**
|
|
82
|
+
* Verifies the signature of the payload.
|
|
83
|
+
*
|
|
84
|
+
* If the `x5c` header parameter is present, then that certificate chain will be used to verify the
|
|
85
|
+
* signature and the given `certificateRef` must be its root certificate. If this parameter is not
|
|
86
|
+
* present then the given `certificateRef` will be used to directly verify the signature.
|
|
87
|
+
*
|
|
88
|
+
* The following algorithms are supported:
|
|
89
|
+
*
|
|
90
|
+
* - ES256
|
|
91
|
+
* - ES256K
|
|
92
|
+
* - ES384
|
|
93
|
+
* - ES512
|
|
94
|
+
* - RS256
|
|
95
|
+
* - RS384
|
|
96
|
+
* - RS512
|
|
97
|
+
* - PS256
|
|
98
|
+
* - PS384
|
|
99
|
+
* - PS512
|
|
100
|
+
* @throws Exception if there is an error while processing the certificate (for example if the x5c is not signed by the given certificate) or the algorithm is unsupported.
|
|
101
|
+
*/
|
|
102
|
+
verify(certificateRef: CertificateRef): boolean;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export = JWS;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWSHeader.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import utilMap = require('../util/Map');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This class represents an immutable header of a JWS (JSON Web Signature) object.
|
|
5
|
+
*/
|
|
6
|
+
declare class JWSHeader {
|
|
7
|
+
/**
|
|
8
|
+
* Get the value of the algorithm parameter (`alg`).
|
|
9
|
+
*/
|
|
10
|
+
readonly algorithm: string;
|
|
11
|
+
private constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Convert the given Map or JavaScript object into a JWS header.
|
|
14
|
+
*
|
|
15
|
+
* All keys correspond to JWS parameters. The algorithm parameter (`alg`) is required. See
|
|
16
|
+
* JWS.verify for supported values.
|
|
17
|
+
*/
|
|
18
|
+
static parse(map: Object): JWSHeader;
|
|
19
|
+
/**
|
|
20
|
+
* Parse the given string as a Base64URL-encoded JWS header.
|
|
21
|
+
*
|
|
22
|
+
* The algorithm parameter (`alg`) is required. See JWS.verify for supported
|
|
23
|
+
* values.
|
|
24
|
+
*/
|
|
25
|
+
static parseEncoded(base64encoded: string): JWSHeader;
|
|
26
|
+
/**
|
|
27
|
+
* Parse the given string as a JWS header.
|
|
28
|
+
*
|
|
29
|
+
* The algorithm parameter (`alg`) is required. See JWS.verify for supported
|
|
30
|
+
* values.
|
|
31
|
+
*/
|
|
32
|
+
static parseJSON(json: string): JWSHeader;
|
|
33
|
+
/**
|
|
34
|
+
* Get the value of the algorithm parameter (`alg`).
|
|
35
|
+
*/
|
|
36
|
+
getAlgorithm(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Get a copy of these headers as a Map.
|
|
39
|
+
*/
|
|
40
|
+
toMap(): utilMap<any, any>;
|
|
41
|
+
/**
|
|
42
|
+
* Get the content of the headers as a JSON String.
|
|
43
|
+
*/
|
|
44
|
+
toString(): string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export = JWSHeader;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/KeyRef.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This class is used as a reference to a private key in the keystore
|
|
3
|
+
* which can be managed in the Business Manager.
|
|
4
|
+
*
|
|
5
|
+
* Note: this class handles sensitive security-related data.
|
|
6
|
+
* Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
|
|
7
|
+
*/
|
|
8
|
+
declare class KeyRef {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a `KeyRef` from the passed alias. No check
|
|
11
|
+
* is made whether the alias is actually referring to a key in the keystore,
|
|
12
|
+
* this check is made when the `KeyRef` is used.
|
|
13
|
+
*/
|
|
14
|
+
constructor(alias: string);
|
|
15
|
+
/**
|
|
16
|
+
* Creates a `KeyRef` from the passed alias. No check
|
|
17
|
+
* is made whether the alias is actually referring to a key in the keystore,
|
|
18
|
+
* this check is made when the `KeyRef` is used.
|
|
19
|
+
* @deprecated use KeyRef instead
|
|
20
|
+
*/
|
|
21
|
+
constructor(alias: string, password: string);
|
|
22
|
+
/**
|
|
23
|
+
* Returns the string representation of this KeyRef.
|
|
24
|
+
*/
|
|
25
|
+
toString(): string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export = KeyRef;
|